z M43.8,6.2h9v2h-9V6.2z M43.9,19h32.2v2H43.9 V19z M43.9,29.7l32.2,0v2H43.9V29.7z M43.9,25.7l32.2,0v2l-32.2,0V25.7z M43.9,33.9l32.2,0v2l-32.2,0V33.9z M43.9,44.6h32.2v2H43.9 V44.6z M43.9,40.6h32.2v2H43.9V40.6z M43.9,48.8h32.2v2H43.9V48.8z M43.9,53h32.2v2H43.9V53z" /> ', ), '3' => array( 'text' => esc_html__( 'Layout #3', 'tripp' ), 'image' => '', ), '4' => array( 'text' => esc_html__( 'Layout #4', 'tripp' ), 'image' => '', ), '5' => array( 'text' => esc_html__( 'Layout #5', 'tripp' ), 'image' => '', ), ), 'is_url' => false, 'description' => esc_html__( 'Default layout for the single post.', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ) ); // Blog -> Single Post -> Breadcrumb navigation. $wp_customize->add_setting( 'blog_single_post_breadcrumb', array( 'default' => '', 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_select', ) ); $wp_customize->add_control( 'blog_single_post_breadcrumb', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Breadcrumb navigation', 'tripp' ), 'type' => 'select', 'choices' => array( '' => esc_html__( 'Disabled', 'tripp' ), 'destination' => esc_html__( 'Destination based', 'tripp' ), 'category' => esc_html__( 'Category based', 'tripp' ), ), 'description' => esc_html__( 'A type of breadcrumb navigation to display on single post.', 'tripp' ), '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_breadcrumb', array( 'selector' => '.single-post .single-entry .tripp-breadcrumb', 'render_callback' => 'tripp_customizer_get_breadcrumb', 'container_inclusive' => true, ) ); // Blog -> Single Post -> Post Metadata. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'blog_single_post_meta_heading', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Post Metadata', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ) ); // Blog -> Single Post -> Destination. $wp_customize->add_setting( 'blog_single_post_destination', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_destination', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Destination.', '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_destination', array( 'selector' => '.single-post .single-entry .meta-destination', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Post category. $wp_customize->add_setting( 'blog_single_post_category', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_category', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Post category.', '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_category', array( 'selector' => '.single-post .single-entry .meta-category', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Publication date. $wp_customize->add_setting( 'blog_single_post_date', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_date', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Publication date.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Blog -> Single Post -> Modification date. $wp_customize->add_setting( 'blog_single_post_update', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_update', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Modification date.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Blog -> Single Post -> Post tags. $wp_customize->add_setting( 'blog_single_post_tags', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_tags', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Post tags.', '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_tags', array( 'selector' => '.single-post .single-entry .tags-links', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Post Buttons. $wp_customize->add_setting( 'blog_single_post_buttons', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_buttons', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Comments, Likes and Share buttons.', '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_buttons', array( 'selector' => '.single-post .single-entry-footer .entry-buttons', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Author Information. $wp_customize->add_setting( 'blog_single_post_author', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_author', array( '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 );