Файловый менеджер - Редактировать - /home/goldin10/public_html/getoutyourbox.com/wp-content/themes/sparks/includes/options/styling-options.php
Error occurred
Назад
<?php /** * Create the Styling Options section */ add_action('admin_init', 'zilla_styling_options'); function zilla_styling_options(){ $styling_options['description'] = __('Configure the visual appearance of you theme by choosing your overall layout and inserting any desired Custom CSS.', 'zilla'); $styling_options[] = array( 'title' => __('Main Layout', 'zilla'), 'desc' => __('Select main content and sidebar alignment.', 'zilla'), 'type' => 'radio', 'id' => 'style_main_layout', 'val' => 'layout-2cr', 'options' => array( 'layout-2cr' => __('2 Columns (right)', 'zilla'), 'layout-2cl' => __('2 Columns (left)', 'zilla') ) ); $styling_options[] = array( 'title' => __('Accent Color', 'zilla'), 'desc' => __('Select a custom accent color.', 'zilla'), 'type' => 'color', 'id' => 'style_accent_color', 'val' => '#f2664f' ); $styling_options[] = array( 'title' => __('Custom CSS', 'zilla'), 'desc' => __('Quickly add some CSS to your theme by adding it to this block.', 'zilla'), 'type' => 'textarea', 'id' => 'style_custom_css' ); zilla_add_framework_page( 'Styling Options', $styling_options, 10 ); } /** * Output main layout */ function zilla_style_main_layout($classes) { $zilla_values = get_option( 'zilla_framework_values' ); $layout = 'layout-2cr'; if( array_key_exists( 'style_main_layout', $zilla_values ) && $zilla_values['style_main_layout'] != '' ){ $layout = $zilla_values['style_main_layout']; } $classes[] = $layout; return $classes; } add_filter( 'body_class', 'zilla_style_main_layout' ); /** * Output the custom CSS */ function zilla_custom_css($content) { $zilla_values = get_option( 'zilla_framework_values' ); if( array_key_exists( 'style_custom_css', $zilla_values ) && $zilla_values['style_custom_css'] != '' ){ $content .= '/* Custom CSS */' . "\n"; $content .= stripslashes($zilla_values['style_custom_css']); $content .= "\n\n"; } return $content; } add_filter( 'zilla_custom_styles', 'zilla_custom_css' ); /** * Output the Accent Color */ function zilla_accent_color($content) { $zilla_values = get_option( 'zilla_framework_values' ); if( array_key_exists( 'style_accent_color', $zilla_values ) && $zilla_values['style_accent_color'] != '') { $color = $zilla_values['style_accent_color']; if( !empty($color) && $color != '#f2664f' ) { $content .= "a,\n.entry-title a:hover,\n#logo a:hover,\n.entry-meta a:hover,\n.single .entry-meta a:hover,\n.portfolio-filter a.active,\n.portfolio-filter a:hover,\n.featured-portfolios h3 a:hover,\n.single-portfolio .entry-meta .portfolio-url,\n.comment-meta a:hover,\nspan.required,\n.moderation,\n.contactform li label.error,\nlabel.error { color: $color; }\n\n"; $content .= ".primary-menu > li > a:hover,\n.primary-menu > .current-menu-item > a,\n.primary-menu > .sfHover > a,\n.zilla-slide-prev:hover,\n.zilla-slide-next:hover,\n.zilla-slide-prev-full:hover,\n.zilla-slide-next-full:hover,\n.jp-interface,\n.jp-play:hover,\n.jp-pause:hover,\n.jp-mute:hover,\n.jp-unmute:hover,\n.jp-play-bar,\n.jp-volume-bar-value,\nbutton:hover,\n#submit:hover,\ninput[type='submit']:hover,\n.gform_next_button:hover,\n.gform_previous_button:hover,\n.gform_button:hover,\n.more-link:hover,\n.page-navigation a:hover,\n.single-page-navigation a:hover { background-color: $color; }\n\n"; $content .= "button:hover,\n#submit:hover,\ninput[type='submit']:hover,\n.gform_next_button:hover,\n.gform_previous_button:hover,\n.gform_button:hover,\n.more-link:hover { border-color: $color; }"; } } return $content; } add_action( 'zilla_custom_styles', 'zilla_accent_color' );
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка