1 entry in
section' => 'blog_single_post_section', 'label' => esc_html__( 'Author information.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_author', array( 'selector' => '.single-post .single-entry-footer .post-author', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Related Posts. $wp_customize->add_setting( 'blog_single_post_related', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_related', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Related Posts.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_related', array( 'selector' => '.single-post .related-posts', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Post Navigation. $wp_customize->add_setting( 'blog_single_post_navigation', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_navigation', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Post Navigation.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_navigation', array( 'selector' => '.single-post .post-navigation', 'render_callback' => '', 'fallback_refresh' => false, ) ); if ( function_exists( 'flextension_quick_view_content' ) ) { /** * Blog -> Quick View. */ $wp_customize->add_section( 'blog_quick_view_section', array( 'panel' => 'blog_panel', 'title' => esc_html__( 'Quick View', 'tripp' ), ) ); // Blog -> Quick View -> Quick View Button. $wp_customize->add_setting( 'blog_quick_view_button', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_button', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Display a Quick View button.', 'tripp' ), 'type' => 'checkbox', ) ); // Blog -> Quick View -> Post links. $wp_customize->add_setting( 'blog_quick_view_link', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_link', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Open Quick View when clicking on a post link.', 'tripp' ), 'type' => 'checkbox', ) ); // Blog -> Quick View -> Content. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'blog_quick_view_content_heading', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Post content', 'tripp' ), ) ) ); // Blog -> Quick View -> Show full content. $wp_customize->add_setting( 'blog_quick_view_full', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_full', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Show full content.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_full', array( 'selector' => '.quick-view-content .entry-content', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Quick View -> Post Metadata. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'blog_quick_view_meta_heading', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Post Metadata', 'tripp' ), ) ) ); // Blog -> Quick View -> Post tags. $wp_customize->add_setting( 'blog_quick_view_tags', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_tags', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Post tags.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_tags', array( 'selector' => '.quick-view-content .tags-links', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Quick View -> Post Buttons. $wp_customize->add_setting( 'blog_quick_view_buttons', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_buttons', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Comments, Likes and Share buttons.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_buttons', array( 'selector' => '.quick-view-content .entry-buttons', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Quick View -> Author Information. $wp_customize->add_setting( 'blog_quick_view_author', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_author', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Author information.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_author', array( 'selector' => '.quick-view-content .post-author', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Quick View -> Related Posts. $wp_customize->add_setting( 'blog_quick_view_related', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_related', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Related posts.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_related', array( 'selector' => '.quick-view-content .related-posts', 'render_callback' => '', 'fallback_refresh' => false, ) ); } /** * Blog -> Password Protected Post */ $wp_customize->add_section( 'blog_protected_post_section', array( 'panel' => 'blog_panel', 'title' => esc_html__( 'Password Protected Post', 'tripp' ), ) ); // Blog -> Password Protected Post -> Visibility Settings. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'protected_post_heading', array( 'section' => 'blog_protected_post_section', 'label' => esc_html__( 'Visibility Settings', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_protected_post_options', ) ) ); // Blog -> Password Protected Post -> Show post thumbnail. $wp_customize->add_setting( 'protected_post_thumbnail', array( 'default' => false, 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'protected_post_thumbnail', array( 'section' => 'blog_protected_post_section', 'label' => esc_html__( 'Show post thumbnail.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_protected_post_options', ) ); // Blog -> Password Protected Post -> Show post excerpt. $wp_customize->add_setting( 'protected_post_excerpt', array( 'default' => false, 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'protected_post_excerpt', array( 'section' => 'blog_protected_post_section', 'label' => esc_html__( 'Show post excerpt.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_protected_post_options', ) ); // Blog -> Password Protected Post -> Show post metadata. $wp_customize->add_setting( 'protected_post_metadata', array( 'default' => true, 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'protected_post_metadata', array( 'section' => 'blog_protected_post_section', 'label' => esc_html__( 'Show post metadata.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_protected_post_options', ) ); } add_action( 'customize_register', 'tripp_customizer_register_blog_settings', 20 );