@@ -144,7 +144,7 @@ function shapely_customizer( $wp_customize ) {
144144 $ header_image = $ wp_customize ->get_control ( 'header_image ' );
145145 if ( $ header_image ) {
146146 $ header_image ->section = 'shapely_blog_section ' ;
147- $ header_image ->label = esc_html__ ( 'Blog Index Header Image ' , 'shapely ' );
147+ $ header_image ->description = esc_html__ ( 'Blog Index Header Image ' , 'shapely ' );
148148 $ header_image ->priority = 31 ;
149149 }
150150
@@ -394,6 +394,27 @@ function shapely_customizer( $wp_customize ) {
394394 ) ) );
395395 } // End if().
396396
397+ $ wp_customize ->add_setting ( 'title_in_header ' , array (
398+ 'default ' => 1 ,
399+ 'sanitize_callback ' => 'shapely_sanitize_checkbox ' ,
400+ ) );
401+ $ wp_customize ->add_setting ( 'title_above_post ' , array (
402+ 'default ' => 1 ,
403+ 'sanitize_callback ' => 'shapely_sanitize_checkbox ' ,
404+ ) );
405+ $ wp_customize ->add_setting ( 'post_date ' , array (
406+ 'default ' => 1 ,
407+ 'sanitize_callback ' => 'shapely_sanitize_checkbox ' ,
408+ ) );
409+ $ wp_customize ->add_setting ( 'post_category ' , array (
410+ 'default ' => 1 ,
411+ 'sanitize_callback ' => 'shapely_sanitize_checkbox ' ,
412+ ) );
413+ $ wp_customize ->add_setting ( 'post_author ' , array (
414+ 'default ' => 1 ,
415+ 'sanitize_callback ' => 'shapely_sanitize_checkbox ' ,
416+ ) );
417+
397418 $ wp_customize ->add_setting ( 'first_letter_caps ' , array (
398419 'default ' => 1 ,
399420 'sanitize_callback ' => 'shapely_sanitize_checkbox ' ,
@@ -421,6 +442,42 @@ function shapely_customizer( $wp_customize ) {
421442
422443 // Single Post Settings
423444 if ( class_exists ( 'Epsilon_Control_Toggle ' ) ) {
445+
446+ $ wp_customize ->add_control ( new Epsilon_Control_Toggle ( $ wp_customize , 'title_in_header ' , array (
447+ 'type ' => 'mte-toggle ' ,
448+ 'label ' => esc_html__ ( 'Show title in header ' , 'shapely ' ),
449+ 'description ' => esc_html__ ( 'This will show/hide the post title from callout ' , 'shapely ' ),
450+ 'section ' => 'shapely_single_post_section ' ,
451+ ) ) );
452+
453+ $ wp_customize ->add_control ( new Epsilon_Control_Toggle ( $ wp_customize , 'title_above_post ' , array (
454+ 'type ' => 'mte-toggle ' ,
455+ 'label ' => esc_html__ ( 'Show title above post ' , 'shapely ' ),
456+ 'description ' => esc_html__ ( 'This will show/hide the post title above post content ' , 'shapely ' ),
457+ 'section ' => 'shapely_single_post_section ' ,
458+ ) ) );
459+
460+ $ wp_customize ->add_control ( new Epsilon_Control_Toggle ( $ wp_customize , 'post_date ' , array (
461+ 'type ' => 'mte-toggle ' ,
462+ 'label ' => esc_html__ ( 'Show the date ' , 'shapely ' ),
463+ 'description ' => esc_html__ ( 'This will show/hide the date when post was published ' , 'shapely ' ),
464+ 'section ' => 'shapely_single_post_section ' ,
465+ ) ) );
466+
467+ $ wp_customize ->add_control ( new Epsilon_Control_Toggle ( $ wp_customize , 'post_author ' , array (
468+ 'type ' => 'mte-toggle ' ,
469+ 'label ' => esc_html__ ( 'Show the author ' , 'shapely ' ),
470+ 'description ' => esc_html__ ( 'This will show/hide the author who written the post under the post title ' , 'shapely ' ),
471+ 'section ' => 'shapely_single_post_section ' ,
472+ ) ) );
473+
474+ $ wp_customize ->add_control ( new Epsilon_Control_Toggle ( $ wp_customize , 'post_category ' , array (
475+ 'type ' => 'mte-toggle ' ,
476+ 'label ' => esc_html__ ( 'Show the category ' , 'shapely ' ),
477+ 'description ' => esc_html__ ( 'This will show/hide the categories of post ' , 'shapely ' ),
478+ 'section ' => 'shapely_single_post_section ' ,
479+ ) ) );
480+
424481 $ wp_customize ->add_control ( new Epsilon_Control_Toggle ( $ wp_customize , 'first_letter_caps ' , array (
425482 'type ' => 'mte-toggle ' ,
426483 'label ' => esc_html__ ( 'First Letter Caps ' , 'shapely ' ),
0 commit comments