Current Path : /var/www/mainsite/wp-content/themes/maxcoach/customizer/shop/ |
Current File : /var/www/mainsite/wp-content/themes/maxcoach/customizer/shop/archive.php |
<?php $section = 'shop_archive'; $priority = 1; $prefix = 'shop_archive_'; $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' => 'product_archive_header_type', 'label' => esc_html__( 'Header Style', 'maxcoach' ), 'description' => esc_html__( 'Select default header style that displays on archive product page.', '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' => 'product_archive_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' => 'product_archive_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' => 'product_archive_title_bar_layout', 'label' => esc_html__( 'Title Bar Style', 'maxcoach' ), 'description' => esc_html__( 'Select default Title Bar that displays on all archive product (included cart, checkout, my-account...) pages.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '', 'choices' => Maxcoach_Title_Bar::instance()->get_list( true, esc_html__( 'Use Global Title Bar', '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__( 'Sidebar', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'select', 'settings' => 'product_archive_page_sidebar_1', 'label' => esc_html__( 'Sidebar 1', 'maxcoach' ), 'description' => esc_html__( 'Select sidebar 1 that will display on product archive pages.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 'none', 'choices' => $registered_sidebars, ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'select', 'settings' => 'product_archive_page_sidebar_2', 'label' => esc_html__( 'Sidebar 2', 'maxcoach' ), 'description' => esc_html__( 'Select sidebar 2 that will display on product archive pages.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 'none', 'choices' => $registered_sidebars, ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'product_archive_page_sidebar_position', 'label' => esc_html__( 'Sidebar Position', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 'left', 'choices' => $sidebar_positions, ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'number', 'settings' => 'product_archive_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. Leave blank to use global setting.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '25', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'dimension', 'settings' => 'product_archive_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. Leave blank to use global setting.', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '0', ) ); 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' => 'preset', 'settings' => 'shop_archive_preset', 'label' => esc_html__( 'Shop Layout Preset', 'maxcoach' ), 'section' => $section, 'default' => '-1', 'priority' => $priority++, 'multiple' => 3, 'choices' => array( '-1' => array( 'label' => esc_html__( 'None', 'maxcoach' ), 'settings' => array(), ), 'left-sidebar' => array( 'label' => esc_html__( 'Shop Left Sidebar', 'maxcoach' ), 'settings' => array( 'product_archive_page_sidebar_1' => 'shop_sidebar', 'product_archive_page_sidebar_position' => 'left', 'shop_archive_number_item' => 9, 'shop_archive_lg_columns' => '3', ), ), 'right-sidebar' => array( 'label' => esc_html__( 'Shop Right Sidebar', 'maxcoach' ), 'settings' => array( 'product_archive_page_sidebar_1' => 'shop_sidebar', 'product_archive_page_sidebar_position' => 'right', 'shop_archive_number_item' => 9, 'shop_archive_lg_columns' => '3', ), ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'shop_archive_layout', 'label' => esc_html__( 'Layout', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 'boxed', 'choices' => array( 'boxed' => esc_html__( 'Boxed', 'maxcoach' ), 'wide' => esc_html__( 'Wide', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'shop_archive_sorting', 'label' => esc_html__( 'Sorting & Results Text', 'maxcoach' ), 'description' => esc_html__( 'Turn on to show sorting select options & results text that displays above products list.', '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' => 'shop_archive_hover_image', 'label' => esc_html__( 'Hover Image', 'maxcoach' ), 'description' => esc_html__( 'Turn on to show first gallery image when hover', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'None', 'maxcoach' ), '1' => esc_html__( 'Yes', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'shop_archive_quick_view', 'label' => esc_html__( 'Quick View', 'maxcoach' ), 'description' => esc_html__( 'Turn on to display quick view button', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'shop_archive_compare', 'label' => esc_html__( 'Compare', 'maxcoach' ), 'description' => esc_html__( 'Turn on to display compare button', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'radio-buttonset', 'settings' => 'shop_archive_wishlist', 'label' => esc_html__( 'Wishlist', 'maxcoach' ), 'description' => esc_html__( 'Turn on to display love button', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => '1', 'choices' => array( '0' => esc_html__( 'Off', 'maxcoach' ), '1' => esc_html__( 'On', 'maxcoach' ), ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'number', 'settings' => 'shop_archive_number_item', 'label' => esc_html__( 'Number items', 'maxcoach' ), 'description' => esc_html__( 'Controls the number of products display on shop archive page', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 8, 'choices' => array( 'min' => 1, 'max' => 50, 'step' => 1, ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'custom', 'settings' => $prefix . 'group_title_' . $priority++, 'section' => $section, 'priority' => $priority++, 'default' => '<div class="big_title">' . esc_html__( 'Shop Columns', 'maxcoach' ) . '</div>', ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'shop_archive_lg_columns', 'label' => esc_html__( 'Large Device', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 3, 'transport' => 'auto', 'choices' => array( 'min' => 0, 'max' => 6, 'step' => 1, ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'shop_archive_md_columns', 'label' => esc_html__( 'Medium Device', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 2, 'transport' => 'auto', 'choices' => array( 'min' => 0, 'max' => 6, 'step' => 1, ), ) ); Maxcoach_Kirki::add_field( 'theme', array( 'type' => 'slider', 'settings' => 'shop_archive_sm_columns', 'label' => esc_html__( 'Small Device', 'maxcoach' ), 'section' => $section, 'priority' => $priority++, 'default' => 1, 'transport' => 'auto', 'choices' => array( 'min' => 0, 'max' => 6, 'step' => 1, ), ) );