add_section('simple_days_yahman_add_ons_toc',array( 'title' => esc_html__('TOC', 'simple-days'), 'panel' => 'simple_days_yahman_add_ons_setting', )); $wp_customize->add_setting('simple_days_yahman_add_ons_toc_partial',array('sanitize_callback' => 'absint',)); $wp_customize->add_control('simple_days_yahman_add_ons_toc_partial',array('type' => 'hidden', 'section' => 'simple_days_yahman_add_ons_toc', )); $wp_customize->selective_refresh->add_partial( 'simple_days_yahman_add_ons_toc_partial', array( 'selector' => '#toc.toc', )); $wp_customize->add_setting( 'yahman_add_ons_toc_font_color',array( 'default' => '', 'sanitize_callback' => 'simple_days_sanitize_rgba_color', 'transport' => 'postMessage', )); $wp_customize->add_control( new Simple_Days_Color_Alpha_Custom_Control($wp_customize, 'yahman_add_ons_toc_font_color',array( 'label' => esc_html__( 'Font color', 'simple-days' ), 'description' => esc_html__('default:', 'simple-days').esc_html('#000'), 'section' => 'simple_days_yahman_add_ons_toc', ))); $wp_customize->add_setting( 'yahman_add_ons_toc_link_color',array( 'default' => '', 'sanitize_callback' => 'simple_days_sanitize_rgba_color', 'transport' => 'postMessage', )); $wp_customize->add_control( new Simple_Days_Color_Alpha_Custom_Control($wp_customize, 'yahman_add_ons_toc_link_color',array( 'label' => esc_html__( 'Link color', 'simple-days' ), 'description' => esc_html__('default:', 'simple-days').esc_html('#000'), 'section' => 'simple_days_yahman_add_ons_toc', ))); $wp_customize->add_setting( 'yahman_add_ons_toc_link_hover_color',array( 'default' => '', 'sanitize_callback' => 'simple_days_sanitize_rgba_color', 'transport' => 'postMessage', )); $wp_customize->add_control( new Simple_Days_Color_Alpha_Custom_Control($wp_customize, 'yahman_add_ons_toc_link_hover_color',array( 'label' => esc_html__( 'Link hover color', 'simple-days' ), 'description' => esc_html__('default:', 'simple-days').esc_html('#07a'), 'section' => 'simple_days_yahman_add_ons_toc', ))); $custom_section = 'simple_days_yahman_add_ons_toc'; $custom_name = 'yahman_add_ons_toc_'; $custom_default['margin_min'] = 0; Simple_Days_custom_padding_margin($wp_customize,$custom_name,$custom_section,$custom_default,$border_angle); $custom_default = array(); Simple_Days_custom_border($wp_customize,$custom_name,$custom_section,$custom_default,$border_angle,$heading_border_style); Simple_Days_custom_background_image($wp_customize,$custom_name,$custom_section,''); Simple_Days_custom_background_color($wp_customize,$custom_name,$custom_section,''); Simple_Days_custom_border_radius($wp_customize,$custom_name,$custom_section,''); $wp_customize->add_section('simple_days_pageview_setting',array( 'title' => esc_html__('Pageview', 'simple-days'), 'panel' => 'simple_days_yahman_add_ons_setting', )); $wp_customize->add_setting('pageview',array('sanitize_callback' => 'absint',)); $wp_customize->add_control('pageview',array( 'section' => 'simple_days_pageview_setting', 'type' => 'hidden' )); $wp_customize->selective_refresh->add_partial( 'pageview', array( 'selector' => '.page_view', )); $wp_customize->add_setting( 'simple_days_pageview',array( 'default' => 'none', 'sanitize_callback' => 'simple_days_sanitize_select', )); $wp_customize->add_control( 'simple_days_pageview',array( 'label' => esc_html__( 'Display page view at the each post.', 'simple-days'), 'section' => 'simple_days_pageview_setting', 'type' => 'select', 'choices' => array( 'none' => esc_html__( 'Hide', 'simple-days' ), 'all' => esc_html__('Page View', 'simple-days'), 'yearly' => esc_html__('Yearly Page View', 'simple-days'), 'monthly' => esc_html__('Monthly Page View', 'simple-days'), 'weekly' => esc_html__('Weekly Page View', 'simple-days'), 'daily' => esc_html__('Daily Page View', 'simple-days'), ), )); $wp_customize->add_setting( 'simple_days_pageview_icon',array( 'default' => 'fa-signal', 'sanitize_callback' => 'wp_strip_all_tags', )); $wp_customize->add_control( 'simple_days_pageview_icon',array( 'label' => esc_html__( 'Page view icon', 'simple-days'), 'section' => 'simple_days_pageview_setting', 'type' => 'select', 'choices' => array( ' ' => esc_html(' '), 'fa-signal' => ' fa-signal', 'fa-area-chart' => ' fa-area-chart', 'fa-line-chart' => ' fa-line-chart', 'fa-heart-o' => ' fa-heart-o', 'fa-heart' => ' fa-heart', 'fa-star-o' => ' fa-star-o', 'fa-star' => ' fa-star', 'fa-history' => ' fa-history', 'fa-history' => ' fa-history', 'fa-home' => ' fa-home', 'fa-bolt' => ' fa-bolt', 'fa-lightbulb-o' => ' fa-lightbulb-o', 'fa-smile-o' => ' fa-smile-o', 'fa-rocket' => ' fa-rocket', 'fa-location-arrow' => ' fa-location-arrow', 'fa-info-circle' => ' fa-info-circle', 'fa-info' => ' fa-info', 'fa-paw' => ' fa-paw', 'fa-bomb' => ' fa-bomb', 'fa-birthday-cake' => ' fa-birthday-cake', 'fa-fort-awesome' => ' fa-fort-awesome', 'fa-gamepad' => ' fa-gamepad', ), )); $wp_customize->add_setting( 'simple_days_pageview_position', array( 'default' => 'right', 'sanitize_callback' => 'simple_days_sanitize_radio', 'transport'=>'postMessage', )); $wp_customize->add_control( 'simple_days_pageview_position', array( 'label' => esc_html__( 'Post view display position', 'simple-days' ), 'section' => 'simple_days_pageview_setting', 'type' => 'radio', 'choices' => array( 'left' => esc_html__( 'Left', 'simple-days' ), 'center' => esc_html__( 'Center', 'simple-days' ), 'right' => esc_html__( 'Right', 'simple-days' ), ), ));