label ); ?>

description)) { ?> description); ?> add_section( 'archive_options', array( 'priority' => 4, 'capability' => 'edit_theme_options', 'title' => __('Archive Page Title', 'agencyup'), ) ); $wp_customize->add_setting( 'archive_page_title', array( 'default' => esc_html__('Archive','agencyup'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_archive_page_sanitize_text', ) ); $wp_customize->add_control( 'archive_page_title',array( 'label' => esc_html__('Archive','agencyup'), 'section' => 'archive_options', 'type' => 'text' )); $wp_customize->add_setting( 'category_page_title', array( 'default' => esc_html__('Category','agencyup'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_archive_page_sanitize_text', ) ); $wp_customize->add_control( 'category_page_title',array( 'label' => esc_html__('Category','agencyup'), 'section' => 'archive_options', 'type' => 'text' )); $wp_customize->add_setting( 'author_page_title', array( 'default' => esc_html__('All posts by','agencyup'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_archive_page_sanitize_text', ) ); $wp_customize->add_control( 'author_page_title',array( 'label' => esc_html__('Author','agencyup'), 'section' => 'archive_options', 'type' => 'text' )); $wp_customize->add_setting( 'tag_page_title', array( 'default' => esc_html__('Tag','agencyup'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_archive_page_sanitize_text', ) ); $wp_customize->add_control( 'tag_page_title',array( 'label' => esc_html__('Tag','agencyup'), 'section' => 'archive_options', 'type' => 'text' )); $wp_customize->add_setting( 'search_page_title', array( 'default' => esc_html__('Search results for','agencyup'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_archive_page_sanitize_text', ) ); $wp_customize->add_control( 'search_page_title',array( 'label' => esc_html__('Search','agencyup'), 'section' => 'archive_options', 'type' => 'text' )); $wp_customize->add_setting( '404_page_title', array( 'default' => esc_html__('404','agencyup'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_archive_page_sanitize_text', ) ); $wp_customize->add_control( '404_page_title',array( 'label' => esc_html__('404','agencyup'), 'section' => 'archive_options', 'type' => 'text' )); $wp_customize->add_setting( 'shop_page_title', array( 'default' => esc_html__('Shop','agencyup'), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_archive_page_sanitize_text', ) ); $wp_customize->add_control( 'shop_page_title',array( 'label' => esc_html__('Shop','agencyup'), 'section' => 'archive_options', 'type' => 'text' )); /* Archive Page Seetings */ $wp_customize->add_section( 'archive_settings', array( 'priority' => 4, 'capability' => 'edit_theme_options', 'title' => __('Archive Page Settings', 'agencyup'), ) ); $wp_customize->add_setting('archive_heading', array( 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Agencyup_Section_Title( $wp_customize, 'archive_heading', array( 'label' => esc_html__( 'Blog/Archive/Single', 'agencyup' ), 'section' => 'archive_settings', ) ) ); //Enable and disable Category $wp_customize->add_setting( 'post_category_enable', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_social_sanitize_checkbox', 'default' => 0, ) ); $wp_customize->add_control( 'post_category_enable', array( 'label' => __('Hide / Show Category','agencyup'), 'section' => 'archive_settings', 'type' => 'checkbox', ) ); //Enable and disable title $wp_customize->add_setting( 'post_title_enable', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_social_sanitize_checkbox', 'default' => 0, ) ); $wp_customize->add_control( 'post_title_enable', array( 'label' => __('Hide / Show Title','agencyup'), 'section' => 'archive_settings', 'type' => 'checkbox', ) ); //Enable and disable meta $wp_customize->add_setting( 'post_meta_enable', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'agencyup_social_sanitize_checkbox', 'default' => 0, ) ); $wp_customize->add_control( 'post_meta_enable', array( 'label' => __('Hide / Show Meta','agencyup'), 'section' => 'archive_settings', 'type' => 'checkbox', ) ); } add_action( 'customize_register', 'agencyup_archive_page_setting' ); if (isset($wp_customize->selective_refresh)) { $wp_customize->selective_refresh->add_partial('post_meta_enable', array( 'selector' => '.bs-blog-post .bs-blog-meta', )); } function agencyup_archive_page_sanitize_text( $input ) { return wp_kses_post( force_balance_tags( $input ) ); }