esc_html__('None', 'alagu'), 'size-guide-1' => esc_html__('Size Guide 1', 'alagu'), 'size-guide-2' => esc_html__('Size Guide 2', 'alagu'), 'size-guide-3' => esc_html__('Size Guide 3', 'alagu'), 'size-guide-4' => esc_html__('Size Guide 4', 'alagu'), 'size-guide-5' => esc_html__('Size Guide 5', 'alagu') ); $product_meta_layout_section = array( 'name' => 'general_section', 'title' => esc_html__('General', 'alagu'), 'icon' => 'fa fa-angle-double-right', 'fields' => array( array( 'id' => 'page-layout', 'type' => 'image_select', 'title' => esc_html__('Page Layout', 'alagu'), 'options' => array( 'admin-option' => DTM_URL . 'images/admin-option.png', 'content-full-width' => DTM_URL . 'images/without-sidebar.png', 'with-left-sidebar' => DTM_URL . 'images/left-sidebar.png', 'with-right-sidebar' => DTM_URL . 'images/right-sidebar.png', ), 'default' => 'admin-option', 'attributes' => array( 'data-depend-id' => 'page-layout' ) ), array( 'id' => 'show-standard-sidebar', 'type' => 'switcher', 'title' => esc_html__('Show Standard Sidebar', 'alagu'), 'dependency' => array( 'page-layout', 'any', 'with-left-sidebar,with-right-sidebar' ) ), array( 'id' => 'product-widgetareas', 'type' => 'select', 'title' => esc_html__('Choose Custom Widget Area', 'alagu'), 'class' => 'chosen', 'options' => alagu_customizer_custom_widgets(), 'info' => esc_html__('You can choose custom widget areas in premium version only.','alagu'), 'dependency' => array( 'page-layout', 'any', 'with-left-sidebar,with-right-sidebar' ), 'attributes' => array( 'multiple' => 'multiple', 'data-placeholder' => esc_attr__('Select Widget Areas', 'alagu'), 'style' => 'width: 400px;' ), ), # Product Template array( 'id' => 'product-template', 'type' => 'select', 'title' => esc_html__('Product Template', 'alagu'), 'class' => 'chosen', 'options' => array( 'admin-option' => esc_html__( 'Admin Option', 'alagu' ), 'woo-default' => esc_html__( 'WooCommerce Default', 'alagu' ), 'custom-template' => esc_html__( 'Custom Template', 'alagu' ) ), 'default' => 'admin-option', 'info' => esc_html__('Don\'t use product shortcodes in content area when "WooCommerce Default" template is chosen.', 'alagu') ), array( 'id' => 'show-upsell', 'type' => 'select', 'title' => esc_html__('Show Upsell Products', 'alagu'), 'class' => 'chosen', 'default' => 'admin-option', 'attributes' => array( 'data-depend-id' => 'show-upsell' ), 'options' => array( 'admin-option' => esc_html__( 'Admin Option', 'alagu' ), 'true' => esc_html__( 'Show', 'alagu'), null => esc_html__( 'Hide', 'alagu'), ), 'dependency' => array( 'product-template', '!=', 'custom-template') ), array( 'id' => 'upsell-column', 'type' => 'select', 'title' => esc_html__('Choose Upsell Column', 'alagu'), 'class' => 'chosen', 'default' => 4, 'options' => array( 'admin-option' => esc_html__( 'Admin Option', 'alagu' ), 1 => esc_html__( 'One Column', 'alagu' ), 2 => esc_html__( 'Two Columns', 'alagu' ), 3 => esc_html__( 'Three Columns', 'alagu' ), 4 => esc_html__( 'Four Columns', 'alagu' ), ), 'dependency' => array( 'product-template|show-upsell', '!=|==', 'custom-template|true') ), array( 'id' => 'upsell-limit', 'type' => 'select', 'title' => esc_html__('Choose Upsell Limit', 'alagu'), 'class' => 'chosen', 'default' => 4, 'options' => array( 'admin-option' => esc_html__( 'Admin Option', 'alagu' ), 1 => esc_html__( 'One', 'alagu' ), 2 => esc_html__( 'Two', 'alagu' ), 3 => esc_html__( 'Three', 'alagu' ), 4 => esc_html__( 'Four', 'alagu' ), 5 => esc_html__( 'Five', 'alagu' ), 6 => esc_html__( 'Six', 'alagu' ), 7 => esc_html__( 'Seven', 'alagu' ), 8 => esc_html__( 'Eight', 'alagu' ), 9 => esc_html__( 'Nine', 'alagu' ), 10 => esc_html__( 'Ten', 'alagu' ), ), 'dependency' => array( 'product-template|show-upsell', '!=|==', 'custom-template|true') ), array( 'id' => 'show-related', 'type' => 'select', 'title' => esc_html__('Show Related Products', 'alagu'), 'class' => 'chosen', 'default' => 'admin-option', 'attributes' => array( 'data-depend-id' => 'show-related' ), 'options' => array( 'admin-option' => esc_html__( 'Admin Option', 'alagu' ), 'true' => esc_html__( 'Show', 'alagu'), null => esc_html__( 'Hide', 'alagu'), ), 'dependency' => array( 'product-template', '!=', 'custom-template') ), array( 'id' => 'related-column', 'type' => 'select', 'title' => esc_html__('Choose Related Column', 'alagu'), 'class' => 'chosen', 'default' => 4, 'options' => array( 'admin-option' => esc_html__( 'Admin Option', 'alagu' ), 2 => esc_html__( 'Two Columns', 'alagu' ), 3 => esc_html__( 'Three Columns', 'alagu' ), 4 => esc_html__( 'Four Columns', 'alagu' ), ), 'dependency' => array( 'product-template|show-related', '!=|==', 'custom-template|true') ), array( 'id' => 'related-limit', 'type' => 'select', 'title' => esc_html__('Choose Related Limit', 'alagu'), 'class' => 'chosen', 'default' => 4, 'options' => array( 'admin-option' => esc_html__( 'Admin Option', 'alagu' ), 1 => esc_html__( 'One', 'alagu' ), 2 => esc_html__( 'Two', 'alagu' ), 3 => esc_html__( 'Three', 'alagu' ), 4 => esc_html__( 'Four', 'alagu' ), 5 => esc_html__( 'Five', 'alagu' ), 6 => esc_html__( 'Six', 'alagu' ), 7 => esc_html__( 'Seven', 'alagu' ), 8 => esc_html__( 'Eight', 'alagu' ), 9 => esc_html__( 'Nine', 'alagu' ), 10 => esc_html__( 'Ten', 'alagu' ), ), 'dependency' => array( 'product-template|show-related', '!=|==', 'custom-template|true') ), # Product Additional Tabs array( 'id' => 'product-additional-tabs', 'type' => 'group', 'title' => esc_html__('Additional Tabs', 'alagu'), 'info' => esc_html__('Click button to add title and description.', 'alagu'), 'button_title' => esc_html__('Add New Tab', 'alagu'), 'accordion_title' => esc_html__('Adding New Tab Field', 'alagu'), 'fields' => array( array( 'id' => 'tab_title', 'type' => 'text', 'title' => esc_html__('Title', 'alagu'), ), array( 'id' => 'tab_description', 'type' => 'textarea', 'title' => esc_html__('Description', 'alagu') ), ) ), # Product New Label array( 'id' => 'product-new-label', 'type' => 'switcher', 'title' => esc_html__('Add "New" label', 'alagu'), ), array( 'id' => 'dt-single-product-size-guides', 'type' => 'select', 'title' => esc_html__('Product Size Guides', 'alagu'), 'options' => $size_guides, //'info' => esc_html__('Choose product size guide that defined in admin section.', 'alagu') ), array( 'id' => 'description', 'type' => 'textarea', 'title' => esc_html__('Description', 'alagu'), 'info' => esc_html__('This content will be used in description tab, when "Custom Template" is chosen.', 'alagu') ), ) ); $options[] = array( 'id' => '_custom_settings', 'title' => esc_html__('Product Settings','alagu'), 'post_type' => 'product', 'context' => 'normal', 'priority' => 'high', 'sections' => array( $product_meta_layout_section ) ); $options[] = array( 'id' => '_360viewer_gallery', 'title' => esc_html__('Product 360 View Gallery','alagu'), 'post_type' => 'product', 'context' => 'side', 'priority' => 'low', 'sections' => array( array( 'name' => '360view_section', 'fields' => array( array ( 'id' => 'product-360view-gallery', 'type' => 'gallery', 'title' => esc_html__('Gallery Images', 'alagu'), 'desc' => esc_html__('Simply add images to gallery items.', 'alagu'), 'add_title' => esc_html__('Add Images', 'alagu'), 'edit_title' => esc_html__('Edit Images', 'alagu'), 'clear_title' => esc_html__('Remove Images', 'alagu'), ) ) ) ) ); return $options; } ?>