Current Path : /var/www/mainsite/wp-content/themes/maxcoach/customizer/blog/ |
Current File : /var/www/mainsite/wp-content/themes/maxcoach/customizer/blog/single.php |
<?php $section = 'blog_single'; $priority = 1; $prefix = 'single_post_'; $sidebar_positions = Maxcoach_Helper::get_list_sidebar_positions(); $registered_sidebars = Maxcoach_Helper::get_registered_sidebars(); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Header', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'select', 'settings' => 'blog_single_header_type', 'label' => esc_html__( 'Header Style', 'maxcoach' ), 'description' => esc_html__( 'Select default header style that displays on all single blog post pages.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '', 'choices' => Maxcoach_Header::instance()->get_list( true, esc_html__( 'Use Global Header Style', 'maxcoach' ) ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'blog_single_header_overlay', 'label' => esc_html__( 'Header Overlay', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '', 'choices' => array( '' => esc_html__( 'Use Global', 'maxcoach' ), '0' => esc_html__( 'No', 'maxcoach' ), '1' => esc_html__( 'Yes', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'blog_single_header_skin', 'label' => esc_html__( 'Header Skin', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '', 'choices' => array( '' => esc_html__( 'Use Global', 'maxcoach' ), 'dark' => esc_html__( 'Dark', 'maxcoach' ), 'light' => esc_html__( 'Light', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Page Title Bar', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'select', 'settings' => 'blog_single_title_bar_layout', 'label' => esc_html__( 'Title Bar Style', 'maxcoach' ), 'description' => esc_html__( 'Select default Title Bar that displays on all single blog post pages.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'choices' => Maxcoach_Title_Bar::instance()->get_list( true, esc_html__( 'Use Global Title Bar', 'maxcoach' ) ), 'default' => '', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Sidebar', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'select', 'settings' => 'post_page_sidebar_1', 'label' => esc_html__( 'Sidebar 1', 'maxcoach' ), 'description' => esc_html__( 'Select sidebar 1 that will display on single blog post pages.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 'blog_sidebar', 'choices' => $registered_sidebars, ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'select', 'settings' => 'post_page_sidebar_2', 'label' => esc_html__( 'Sidebar 2', 'maxcoach' ), 'description' => esc_html__( 'Select sidebar 2 that will display on single blog post pages.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 'none', 'choices' => $registered_sidebars, ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'post_page_sidebar_position', 'label' => esc_html__( 'Sidebar Position', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 'right', 'choices' => $sidebar_positions, ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Others', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_feature_enable', 'label' => esc_html__( 'Featured Image', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_title_enable', 'label' => esc_html__( 'Post Title', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_categories_enable', 'label' => esc_html__( 'Categories', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_tags_enable', 'label' => esc_html__( 'Tags', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_date_enable', 'label' => esc_html__( 'Post Meta Date', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_view_count_enable', 'label' => esc_html__( 'View Count', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_comment_count_enable', 'label' => esc_html__( 'Comment Count', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_author_enable', 'label' => esc_html__( 'Author Meta', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Customize::instance()->field_social_sharing_enable( array( 'settings' => 'single_post_share_enable', 'section' => $section, 'priority' => $priority++, 'default' => '1', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_author_box_enable', 'label' => esc_html__( 'Author Info Box', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_pagination_enable', 'label' => esc_html__( 'Previous/Next Pagination', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_related_enable', 'label' => esc_html__( 'Related Post', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '0', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'number', 'settings' => 'single_post_related_number', 'label' => esc_html__( 'Number of related posts item', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 10, 'choices' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), 'active_callback' => array( array( 'setting' => 'single_post_related_enable', 'operator' => '==', 'value' => '1', ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'single_post_comment_enable', 'label' => esc_html__( 'Comments List/Form', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Hide', 'maxcoach' ), '1' => esc_html__( 'Show', 'maxcoach' ), ), ) );