sections['kernel_shop_general'] = array( 'title' => esc_html__( 'Main Shop', 'kernel' ), 'panel' => 'kernel_shop', 'settings' => array( array( 'id' => 'shop_layout_position', 'default' => 'no-sidebar', 'control' => array( 'label' => esc_html__( 'Shop Layout Position', 'kernel' ), 'type' => 'select', 'choices' => array( 'sidebar-right' => esc_html__( 'Right Sidebar', 'kernel' ), 'sidebar-left' => esc_html__( 'Left Sidebar', 'kernel' ), 'no-sidebar' => esc_html__( 'No Sidebar', 'kernel' ), ), 'desc' => esc_html__( 'Specify layout for main shop page.', 'kernel' ), 'active_callback' => 'kernel_cac_has_woo', ), ), array( 'id' => 'shop_featured_title', 'default' => esc_html__( 'Our Shop', 'kernel' ), 'control' => array( 'label' => esc_html__( 'Shop: Featured Title', 'kernel' ), 'type' => 'kernel_textarea', 'active_callback' => 'kernel_cac_has_woo', ), ), array( 'id' => 'shop_featured_title_background_img', 'control' => array( 'type' => 'image', 'label' => esc_html__( 'Shop: Featured Title Background', 'kernel' ), 'active_callback' => 'kernel_cac_has_woo', ), ), array( 'id' => 'shop_products_per_page', 'default' => 6, 'control' => array( 'label' => esc_html__( 'Products Per Page', 'kernel' ), 'type' => 'number', 'active_callback' => 'kernel_cac_has_woo', ), ), array( 'id' => 'shop_columns', 'default' => '3', 'control' => array( 'label' => esc_html__( 'Shop Columns', 'kernel' ), 'type' => 'select', 'choices' => array( '2' => '2', '3' => '3', '4' => '4', ), 'active_callback' => 'kernel_cac_has_woo', ), ), array( 'id' => 'shop_item_bottom_margin', 'transport' => 'postMessage', 'control' => array( 'type' => 'text', 'label' => esc_html__( 'Item Bottom Margin', 'kernel' ), 'description' => esc_html__( 'Example: 30px.', 'kernel' ), 'active_callback' => 'kernel_cac_has_woo', ), 'inline_css' => array( 'target' => '.products li', 'alter' => 'margin-top', ), ), ), ); // Single Shop $this->sections['kernel_single_shop_general'] = array( 'title' => esc_html__( 'Single Shop', 'kernel' ), 'panel' => 'kernel_shop', 'settings' => array( array( 'id' => 'shop_single_layout_position', 'default' => 'no-sidebar', 'control' => array( 'label' => esc_html__( 'Shop Single Layout Position', 'kernel' ), 'type' => 'select', 'choices' => array( 'sidebar-right' => esc_html__( 'Right Sidebar', 'kernel' ), 'sidebar-left' => esc_html__( 'Left Sidebar', 'kernel' ), 'no-sidebar' => esc_html__( 'No Sidebar', 'kernel' ), ), 'desc' => esc_html__( 'Specify layout on the shop single page.', 'kernel' ), 'active_callback' => 'kernel_cac_has_woo', ), ), array( 'id' => 'shop_single_featured_title', 'default' => esc_html__( 'Our Shop', 'kernel' ), 'control' => array( 'label' => esc_html__( 'Shop Single: Featured Title', 'kernel' ), 'type' => 'text', 'active_callback' => 'kernel_cac_has_woo', ), ), array( 'id' => 'shop_single_featured_title_background_img', 'control' => array( 'type' => 'image', 'label' => esc_html__( 'Shop Single: Featured Title Background', 'kernel' ), 'active_callback' => 'kernel_cac_has_woo', ), ), array( 'id' => 'shop_realted_columns', 'default' => '3', 'control' => array( 'label' => esc_html__( 'Related Product Columns', 'kernel' ), 'type' => 'select', 'choices' => array( '2' => '2', '3' => '3', '4' => '4', ), 'active_callback' => 'kernel_cac_has_woo', ), ), ), );