Current Path : /var/www/mainsite/wp-content/themes/maxcoach/customizer/ |
Current File : /var/www/mainsite/wp-content/themes/maxcoach/customizer/section-sidebars.php |
<?php $section = 'sidebars'; $priority = 1; $prefix = 'sidebars_'; $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' => sprintf( '<div class="desc"> <strong class="insight-label insight-label-info">%s</strong> <p>%s</p> <p>%s</p> </div>', esc_html__( 'IMPORTANT NOTE: ', 'maxcoach' ), esc_html__( 'Sidebar 2 can only be used if sidebar 1 is selected.', 'maxcoach' ), esc_html__( 'Sidebar position option will control the position of sidebar 1. If sidebar 2 is selected, it will display on the opposite side.', '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__( 'General Settings', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'number', 'settings' => 'one_sidebar_breakpoint', 'label' => esc_html__( 'One Sidebar Breakpoint', 'maxcoach' ), 'description' => esc_html__( 'Controls the breakpoint when has only one sidebar to make the sidebar 100% width.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'postMessage', 'default' => 992, 'choices' => array( 'min' => 460, 'max' => 1300, 'step' => 10, ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'number', 'settings' => 'both_sidebar_breakpoint', 'label' => esc_html__( 'Both Sidebars Breakpoint', 'maxcoach' ), 'description' => esc_html__( 'Controls the breakpoint when has both sidebars to make sidebars 100% width.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'transport' => 'postMessage', 'default' => 1199, 'choices' => array( 'min' => 460, 'max' => 1300, 'step' => 10, ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'sidebars_below_content_mobile', 'label' => esc_html__( 'Sidebars Below Content', 'maxcoach' ), 'description' => esc_html__( 'Move sidebars display after main content on smaller screens.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'No', 'maxcoach' ), '1' => esc_html__( 'Yes', '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__( 'Single Sidebar Layouts', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'number', 'settings' => 'single_sidebar_width', 'label' => esc_html__( 'Single Sidebar Width', 'maxcoach' ), 'description' => esc_html__( 'Controls the width of the sidebar when only one sidebar is present. Input value as % unit. For e.g: 33.33333', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '33.333333', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'dimension', 'settings' => 'single_sidebar_offset', 'label' => esc_html__( 'Single Sidebar Offset', 'maxcoach' ), 'description' => esc_html__( 'Controls the offset of the sidebar when only one sidebar is present. Enter value including any valid CSS unit. For e.g: 70px.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '30px', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Dual Sidebar Layouts', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'number', 'settings' => 'dual_sidebar_width', 'label' => esc_html__( 'Dual Sidebar Width', 'maxcoach' ), 'description' => esc_html__( 'Controls the width of sidebars when dual sidebars are present. Enter value including any valid CSS unit. For e.g: 33.33333.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '25', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'dimension', 'settings' => 'dual_sidebar_offset', 'label' => esc_html__( 'Dual Sidebar Offset', 'maxcoach' ), 'description' => esc_html__( 'Controls the offset of sidebars when dual sidebars are present. Enter value including any valid CSS unit. For e.g: 70px.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '0', ) );