Server IP : 172.67.214.6 / Your IP : 216.73.216.73 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/redwjova/fyntric.com/wp-content/themes/smart-mag/admin/options/header/ |
Upload File : |
<?php /** * Element: Dark Switcher */ $fields = []; $template = [ [ 'name' => '_g_{key}_switcher', 'type' => 'group', 'style' => 'collapsible', 'template' => [ 'header' => [ 'label' => esc_html__('Main Header', 'bunyad-admin'), 'collapsed' => false, 'group' => '', ], 'header_mob' => [ 'label' => esc_html__('Mobile Header', 'bunyad-admin'), 'group' => '', ], ] ], [ 'name' => 'css_{key}_switcher_color', 'label' => esc_html__('Icon Color', 'bunyad-admin'), 'desc' => '', 'value' => '', 'type' => 'color', 'style' => 'inline-sm', 'css' => [ '.smart-head-{suffix} .scheme-switcher a' => [ 'props' => ['color' => '%s'] ] ] ], [ 'name' => 'css_{key}_switcher_color_sd', 'label' => esc_html__('Dark: Icon Color', 'bunyad-admin'), 'desc' => '', 'value' => '', 'type' => 'color-alpha', 'style' => 'inline-sm', 'css' => [ '.s-dark .smart-head-{suffix} .scheme-switcher a, .smart-head-{suffix} .s-dark .scheme-switcher a' => [ 'props' => ['color' => '%s'] ] ] ], [ 'name' => 'css_{key}_switcher_hov_color', 'label' => esc_html__('Icon Hover', 'bunyad-admin'), 'desc' => '', 'value' => '', 'type' => 'color-alpha', 'style' => 'inline-sm', 'css' => [ '.smart-head-{suffix} .scheme-switcher a:hover' => [ 'props' => ['color' => '%s'] ] ] ], [ 'name' => 'css_{key}_switcher_hov_color_sd', 'label' => esc_html__('Dark: Icon Hover', 'bunyad-admin'), 'desc' => '', 'value' => '', 'type' => 'color-alpha', 'style' => 'inline-sm', 'css' => [ '.s-dark .smart-head-{suffix} .scheme-switcher a:hover, .smart-head-{suffix} .s-dark .scheme-switcher a:hover' => [ 'props' => ['color' => '%s'] ] ] ], [ 'name' => 'css_{key}_switcher_size', 'label' => esc_html__('Icon Size', 'bunyad-admin'), 'desc' => '', 'value' => '', 'type' => 'number', 'input_attrs' => ['min' => 8], 'style' => 'inline-sm', 'css' => [ '.smart-head-{suffix} .scheme-switcher' => [ 'props' => ['--icons-size' => '%spx'] ] ] ], [ 'name' => 'css_{key}_switcher_mr', 'label' => esc_html__('Space Right', 'bunyad-admin'), 'desc' => 'Margin on the right side of the item.', 'value' => '', 'type' => 'number', 'style' => 'inline-sm', 'css' => [ '.smart-head-{suffix} .scheme-switcher' => [ 'props' => ['--item-mr' => '%spx'] ] ] ], ]; \Bunyad\Util\repeat_options( $template, [ 'header' => [ 'replacements' => ['{suffix}' => 'main'], 'group' => '_g_{key}_switcher' ], 'header_mob' => [ 'replacements' => ['{suffix}' => 'mobile'], 'group' => '_g_{key}_switcher' ], ], $fields, [ 'replace_in' => ['css', 'group'], ] ); return $fields;