Submit
Path:
~
/
home
/
getwphos
/
public_html
/
techniquetechs
/
wp-content
/
themes
/
plexify
/
inc
/
File Content:
theme-config.php
<?php if(!function_exists('plexify_configs_options')){ function plexify_configs_options($value = false){ $body_font = '\'Kanit\', sans-serif'; $heading_font = '\'Kanit\', sans-serif'; $configs = [ 'theme_colors' => [ 'primary' => [ 'title' => esc_html__('Primary', 'plexify').' ('.plexify()->get_opt('primary_color', '#E3FF75').')', 'value' => plexify()->get_opt('primary_color', '#E3FF75') ], 'second' => [ 'title' => esc_html__('Secondary', 'plexify').' ('.plexify()->get_opt('second_color', '#505050').')', 'value' => plexify()->get_opt('second_color', '#505050') ], 'third' => [ 'title' => esc_html__('Third', 'plexify').' ('.plexify()->get_opt('third_color', '#666666').')', 'value' => plexify()->get_opt('third_color', '#666666') ], 'body' => [ 'title' => esc_html__('Body', 'plexify').' ('.plexify()->get_opt('font_body', ['color' => '#999999'], 'color').')', 'value' => plexify()->get_opt('font_body', ['color' => '#999999'],'color') ], 'heading' => [ 'title' => esc_html__('Heading', 'plexify').' ('.plexify()->get_opt('heading_color', '#191B1D').')', 'value' => plexify()->get_opt('heading_color', '#191B1D') ] ], 'link' => [ 'color' => plexify()->get_opt('link_color', ['regular' => 'var(--heading-color)'],'regular'), 'color-hover' => plexify()->get_opt('link_color', ['hover' => '#E3FF75'],'hover'), 'color-active' => plexify()->get_opt('link_color', ['active' => '#E3FF75'],'active'), ], 'body' => [ 'font-family' => plexify()->get_theme_opt('font_body',['font-family' => $body_font], 'font-family'), 'font-size' => plexify()->get_theme_opt('font_body',['font-size' => '20px'], 'font-size'), 'font-weight' => plexify()->get_theme_opt('font_body',['font-weight' => 'normal'], 'font-weight'), 'line-height' => plexify()->get_theme_opt('font_body',['line-height' => '1.5'], 'line-height'), 'letter-spacing' => plexify()->get_theme_opt('font_body',['letter-spacing' => '0'], 'letter-spacing'), ], 'content' => [ 'bg-color' => plexify()->get_page_opt('content_bb_color','') ], 'heading' => [ 'font-family' => plexify()->get_theme_opt('font_heading',['font-family' => $heading_font], 'font-family'), 'font-weight' => plexify()->get_theme_opt('font_heading',['font-weight' => '500'], 'font-weight'), 'text-transform' => plexify()->get_theme_opt('font_heading',['text-transform' => 'none'], 'text-transform'), 'line-height' => plexify()->get_theme_opt('font_heading',['line-height' => '1.14285714286'], 'line-height'), 'letter-spacing' => plexify()->get_theme_opt('font_heading',['letter-spacing' => '0px'], 'letter-spacing'), 'color-hover' => 'var(--link-color)', ], 'heading_font_size' => [ 'h1' => plexify()->get_theme_opt('font_h1','70px'), 'h2' => plexify()->get_theme_opt('font_h2','60px'), 'h3' => plexify()->get_theme_opt('font_h3','45px'), 'h4' => plexify()->get_theme_opt('font_h4','30px'), 'h5' => plexify()->get_theme_opt('font_h5','20px'), 'h6' => plexify()->get_theme_opt('font_h6','18px') ], 'logo' => [ 'width' => plexify()->get_theme_opt('logo_size', ['width' => '185px', 'units' => 'px'])['width'], 'mobile_width' => plexify()->get_theme_opt('logo_mobile_size', ['width' => '145px', 'units' => 'px'])['width'], ], 'header' => [ 'height' => '130px' // use for default header ], 'border' => [ 'color' => 'rgba(#191B1D, 0.1)', ], // Menu Color 'menu' => [ 'bg' => '#fff', 'regular' => 'var(--heading-color)', 'hover' => 'var(--heading-color)', 'active' => 'var(--heading-color)', 'font_size' => '20px', 'font_weight' => 400, 'letter_spacing' => '0px', 'font_family' => 'var(--heading-font-family)', ] , 'submenu' => [ 'bg' => '#FFFFFF', 'shadow' => '0px 10px 40px 0px rgba(27, 26, 26, 0.09)', 'regular' => 'var(--heading-color)', 'hover' => 'var(--primary-color)', 'active' => 'var(--primary-color)', 'font_size' => '16px', 'font_weight' => 400, 'font_family' => 'var(--heading-font-family)', 'item_bg' => 'transparent', 'item_bg_hover' => 'transparent' ], 'mobile_menu' => [ 'regular' => 'var(--link-color)', 'hover' => 'var(--primary-color)', 'active' => 'var(--primary-color)', 'font_size' => '18px', 'font_weight' => 500, 'font_family' => 'var(--heading-font-family)', 'item_bg' => 'transparent', 'item_bg_hover' => 'transparent', 'text_transform' => 'capitalize' ], 'mobile_submenu' => [ 'regular' => 'var(--heading-color)', 'hover' => 'var(--heading-color)', 'active' => 'var(--heading-color)', 'font_size' => '16px', 'font_weight' => 500, 'font_family' => 'var(--heading-font-family)', 'item_bg' => 'transparent', 'item_bg_hover' => 'transparent', 'text_transform' => 'capitalize' ], 'button' => [ 'font-family' => 'var(--heading-font-family)', 'font-size' => '16px', 'font-weight' => '500', 'line-height' => '1.5', 'color' => '#191B1D', 'letter-spacing' => '0px', 'padding' => '18px 34px 18px 34px', 'bg-color' => 'var(--primary-color)', 'text-transform' => 'none', 'bg-color-hover' => 'var(--default-color)', 'color-hover' => '#ffffff', ], ]; if(!$value) return $configs; else return $configs[$value]; } } if(!function_exists('plexify_inline_styles')){ function plexify_inline_styles() { $options = plexify_configs_options(); $body = $options['body']; $content = $options['content']; $theme_colors = $options['theme_colors']; $link_color = $options['link']; $heading = $options['heading']; $heading_font_size = $options['heading_font_size']; $logo = $options['logo']; ob_start(); echo ':root{'; foreach ($theme_colors as $color => $value) { printf('--%1$s-color: %2$s;', str_replace('#', '',$color), $value['value']); } foreach ($theme_colors as $color => $value) { printf('--%1$s-color-rgb: %2$s;', str_replace('#', '',$color), plexify_hex_rgb($value['value'])); } foreach ($link_color as $color => $value) { printf('--link-%1$s: %2$s;', $color, $value); } foreach ($body as $key => $value) { printf('--body-%1$s: %2$s;', $key, $value); } foreach ($content as $key => $value) { printf('--content-%1$s: %2$s;', $key, $value); } foreach ($heading as $key => $value) { printf('--heading-%1$s: %2$s;', $key, $value); } foreach ($heading_font_size as $key => $value) { printf('--heading-font-size-%1$s: %2$s;', $key, $value); } foreach ($logo as $key => $value) { printf('--logo-%1$s: %2$s;', $key, $value); } echo '}'; return ob_get_clean(); } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
admin
---
0755
classes
---
0755
theme-options
---
0755
widgets
---
0755
theme-actions.php
22122 bytes
0644
theme-config.php
9274 bytes
0644
theme-filters.php
15458 bytes
0644
theme-functions.php
11108 bytes
0644
N4ST4R_ID | Naxtarrr