'#cb2821', 'header_top_section' => 1, 'header_top_menu' => 1, 'display_breadcrumb' => 1, 'breadcrumbs_separator' => '/', 'display_slider' => 1, 'slider_background_color' => '#ffffff', 'slider_height' => 500, 'slider_autoplay' => 0, 'slider_autoplay_timeout' => 5000, 'slider_loop' => 0, 'sidebar_layout' => 'right', 'thumbnail_position' => 'left', 'archive_excerpt_length' => 100, 'archive_read_more' => esc_html__('Read More', 'fox009-vermilion'), 'display_featured_image' => 1, 'display_post_tags' => 1, /* translators: 1: copyright year, 2: blogname. */ 'custom_copyright_text' => sprintf(__('© Copyright %1$s %2$s All Rights Reserved.', 'fox009-vermilion'), date_i18n(esc_html__('Y', 'fox009-vermilion')), ''. esc_html(get_bloginfo('name')) . '' ), /* 'sticky_sidebar' => 'enable', 'slider_category' => 0, 'show_archive_auther' => 1, 'show_archive_category' => 1, 'show_archive_date' => 1, 'show_archive_comment' => 1, 'show_single_realted_post' => 'enable', 'single_realted_post_title' => esc_html__('Related Posts', 'fox009-vermilion'), 'show_single_auther' => 1, 'show_single_category' => 1, 'show_single_date' => 1, 'show_single_comment' => 1, ) */ ); return apply_filters('fox009_vermilion_default_theme_options', $defaults); } } if(!function_exists('fox009_vermilion_theme_options')){ function fox009_vermilion_theme_options(){ $defaults = fox009_vermilion_default_theme_options(); $currents = get_theme_mod( 'fox009_vermilion_theme_options'); foreach($currents as $key => $value){ if($value == ''){ $currents[$key] = $defaults[$key]; } } return is_array( $currents) ? array_merge($defaults, $currents) : $defaults; } } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function fox009_vermilion_customize_register( $wp_customize ) { $defaults = fox009_vermilion_default_theme_options(); require get_template_directory() . '/inc/customizer/panel.php'; require get_template_directory() . '/inc/customizer/section.php'; require get_template_directory() . '/inc/customizer/setting.php'; } add_action( 'customize_register', 'fox009_vermilion_customize_register' ); /** * Render the site title for the selective refresh partial. * * @return void */ function fox009_vermilion_customize_partial_blogname() { bloginfo( 'name' ); } /** * Render the site tagline for the selective refresh partial. * * @return void */ function fox009_vermilion_customize_partial_blogdescription() { bloginfo( 'description' ); } if(!function_exists('fox009_vermilion_sanitize_select')){ function fox009_vermilion_sanitize_select($input, $setting){ // Ensure input is a slug. $input = sanitize_key($input); // Get list of choices from the control associated with the setting. $choices = $setting->manager->get_control($setting->id)->choices; // If the input is a valid key, return it; otherwise, return the default. return (array_key_exists($input, $choices) ? $input : $setting->default); } } function fox009_vermilion_customizer_script() { wp_enqueue_style( 'fox009-vermilion-customizer-style', get_template_directory_uri() .'/assets/css/customizer.css', array(), THEME_VERSION, 'all' ); } add_action( 'customize_controls_enqueue_scripts', 'fox009_vermilion_customizer_script' );