📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 08:54:15
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
inc
✏️
Editing: theme-config.php
<?php if(!function_exists('berich_configs')){ function berich_configs($value){ $configs = [ 'theme_colors' => [ 'primary' => [ 'title' => esc_html__('Primary', 'berich'), 'value' => berich()->get_opt('primary_color', '#177fa3') ], 'secondary' => [ 'title' => esc_html__('Secondary', 'berich'), 'value' => berich()->get_opt('secondary_color', '#01062e') ], 'third' => [ 'title' => esc_html__('Third', 'berich'), 'value' => berich()->get_opt('third_color', '#24acdb') ], 'dark' => [ 'title' => esc_html__('Dark', 'berich'), 'value' => berich()->get_opt('dark_color', '#01062e') ], 'body-bg' => [ 'title' => esc_html__('Body Background Color', 'berich'), 'value' => berich()->get_page_opt('body_bg_color', '#fff') ] ], 'link' => [ 'color' => berich()->get_opt('link_color', ['regular' => '#177fa3'])['regular'], 'color-hover' => berich()->get_opt('link_color', ['hover' => '#0b3f66'])['hover'], 'color-active' => berich()->get_opt('link_color', ['active' => '#0b3f66'])['active'], ], 'gradient' => [ 'color-from' => berich()->get_opt('gradient_color', ['from' => '#177fa3'])['from'], 'color-to' => berich()->get_opt('gradient_color', ['to' => '#177fa3'])['to'], ], ]; return $configs[$value]; } } if(!function_exists('berich_inline_styles')) { function berich_inline_styles() { $theme_colors = berich_configs('theme_colors'); $link_color = berich_configs('link'); $gradient_color = berich_configs('gradient'); 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), berich_hex_rgb($value['value'])); } foreach ($link_color as $color => $value) { printf('--link-%1$s: %2$s;', $color, $value); } foreach ($gradient_color as $color => $value) { printf('--gradient-%1$s: %2$s;', $color, $value); } echo '}'; return ob_get_clean(); } }
💾 Save Changes
❌ Cancel