und-color', ), ) ), 'footer_full_width' => array( 'type' => 'toggle', 'label' => esc_html__( 'Footer Full Width', 'martfury' ), 'default' => '0', 'section' => 'footer', 'priority' => 20, ), 'footer_newsletter' => array( 'type' => 'toggle', 'label' => esc_html__( 'Show Footer Newsletter', 'martfury' ), 'section' => 'footer_newsletter', 'default' => 0, 'description' => esc_html__( 'Check this option to the newsletter in the footer.', 'martfury' ), 'priority' => 20, ), 'footer_newsletter_text' => array( 'type' => 'textarea', 'label' => esc_html__( 'Newsletter Text', 'martfury' ), 'section' => 'footer_newsletter', 'default' => '', 'priority' => 20, ), 'footer_newsletter_form' => array( 'type' => 'textarea', 'label' => esc_html__( 'Newsletter Form', 'martfury' ), 'description' => esc_html__( 'Enter the shortcode of MailChimp form', 'martfury' ), 'section' => 'footer_newsletter', 'default' => '', 'priority' => 20, ), 'custom_newsletter_form_2' => array( 'type' => 'custom', 'section' => 'footer_newsletter', 'default' => sprintf( '%s', admin_url( 'admin.php?page=mailchimp-for-wp-forms' ), esc_html__( 'Go to MailChimp form', 'martfury' ) ), 'priority' => 20, ), 'footer_info' => array( 'type' => 'toggle', 'label' => esc_html__( 'Show Footer Info', 'martfury' ), 'section' => 'footer_info', 'default' => 0, 'description' => esc_html__( 'Check this option to the info in the footer.', 'martfury' ), 'priority' => 20, ), 'footer_info_list' => array( 'type' => 'repeater', 'label' => esc_html__( 'Footer Info', 'martfury' ), 'section' => 'footer_info', 'priority' => 20, 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Icon Box', 'martfury' ), ), 'fields' => array( 'icon' => array( 'type' => 'textarea', 'label' => esc_html__( 'Icon', 'martfury' ), 'default' => '', ), 'title' => array( 'type' => 'text', 'label' => esc_html__( 'Title', 'martfury' ), 'default' => '', ), 'desc' => array( 'type' => 'textarea', 'label' => esc_html__( 'Description', 'martfury' ), 'default' => '', ), ), ), 'footer_widgets' => array( 'type' => 'toggle', 'label' => esc_html__( 'Show Footer Widgets', 'martfury' ), 'section' => 'footer_widgets', 'default' => 1, 'priority' => 20, ), 'footer_widget_columns' => array( 'type' => 'select', 'label' => esc_html__( 'Footer Columns', 'martfury' ), 'section' => 'footer_widgets', 'default' => '4', 'description' => esc_html__( 'Go to Appearance - Widgets - Footer 1, 2, 3, 4, 5, 6 to add widgets content.', 'martfury' ), 'priority' => 20, 'choices' => array( '4' => esc_html__( '4 Columns', 'martfury' ), '3' => esc_html__( '3 Columns', 'martfury' ), '5' => esc_html__( '5 Columns', 'martfury' ), '6' => esc_html__( '6 Columns', 'martfury' ), ), ), 'footer_links' => array( 'type' => 'toggle', 'label' => esc_html__( 'Show Footer Links', 'martfury' ), 'section' => 'footer_links', 'default' => 1, 'description' => esc_html__( 'Go to Appearance > Widgets > Footer Links to add widgets content.', 'martfury' ), 'priority' => 20, ), 'footer_copyright' => array( 'type' => 'textarea', 'label' => esc_html__( 'Footer Copyright', 'martfury' ), 'description' => esc_html__( 'Shortcodes are allowed', 'martfury' ), 'section' => 'footer_copyright', 'default' => esc_html__( 'Copyright © 2020', 'martfury' ), 'priority' => 20, ), 'footer_payment_text' => array( 'type' => 'text', 'label' => esc_html__( 'Footer Payment Text', 'martfury' ), 'section' => 'footer_payment', 'priority' => 20, ), 'footer_payment_images' => array( 'type' => 'repeater', 'label' => esc_html__( 'Footer Images', 'martfury' ), 'section' => 'footer_payment', 'priority' => 40, 'row_label' => array( 'type' => 'text', 'value' => esc_html__( 'Image', 'martfury' ), ), 'fields' => array( 'image' => array( 'type' => 'image', 'label' => esc_html__( 'Image', 'martfury' ), 'default' => '', ), 'alt' => array( 'type' => 'text', 'label' => esc_html__( 'Alt Text', 'martfury' ), 'default' => '', ), 'link' => array( 'type' => 'text', 'label' => esc_html__( 'Link', 'martfury' ), 'default' => '', ), ), ), // Recent viewed 'footer_recently_viewed' => array( 'type' => 'toggle', 'label' => esc_html__( 'Show Recently Viewed', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => 1, 'priority' => 90, 'description' => esc_html__( 'Check this option to show the recently viewed products above the footer.', 'martfury' ), ), 'footer_recently_viewed_layout' => array( 'type' => 'select', 'label' => esc_html__( 'Recently Viewed Layout', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => '1', 'priority' => 90, 'choices' => array( '1' => esc_html__( 'Layout 1', 'martfury' ), '2' => esc_html__( 'Layout 2', 'martfury' ), ), ), 'footer_recently_viewed_ajax' => array( 'type' => 'toggle', 'label' => esc_html__( 'Loading with AJAX', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => 1, 'priority' => 90, 'description' => esc_html__( 'Check this option to load the recently viewed products with AJAX.', 'martfury' ), 'active_callback' => array( array( 'setting' => 'footer_recently_viewed_layout', 'operator' => '==', 'value' => '1', ), ), ), 'footer_recently_viewed_empty' => array( 'type' => 'toggle', 'label' => esc_html__( 'Hide Recently Viewed Empty', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => 1, 'priority' => 90, 'description' => esc_html__( 'Check this option to hide the recently viewed products when empty.', 'martfury' ), 'active_callback' => array( array( 'setting' => 'footer_recently_viewed_layout', 'operator' => '==', 'value' => '1', ), ), ), 'footer_recently_viewed_pt' => array( 'type' => 'toggle', 'label' => esc_html__( 'No Padding Top', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => 0, 'priority' => 90, 'description' => esc_html__( 'Check this option to remove padding top of the recently viewed products. This option is used for the homepage only.', 'martfury' ), 'active_callback' => array( array( 'setting' => 'footer_recently_viewed_layout', 'operator' => '==', 'value' => '1', ), ), ), 'footer_recently_viewed_no_bg' => array( 'type' => 'toggle', 'label' => esc_html__( 'No Background', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => 0, 'priority' => 90, 'description' => esc_html__( 'Check this option to disable background of the recently viewed products. This option is used for the homepage only.', 'martfury' ), 'active_callback' => array( array( 'setting' => 'footer_recently_viewed_layout', 'operator' => '==', 'value' => '1', ), ), ), 'footer_recently_viewed_els' => array( 'type' => 'multicheck', 'label' => esc_html__( 'Show Recently Viewed in', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => array( 'homepage', 'catalog', 'single_product' ), 'priority' => 90, 'choices' => array( 'homepage' => esc_html__( 'HomePage', 'martfury' ), 'catalog' => esc_html__( 'Catalog', 'martfury' ), 'single_product' => esc_html__( 'Single Product', 'martfury' ), 'page' => esc_html__( 'Page', 'martfury' ), 'post' => esc_html__( 'Post', 'martfury' ), 'other' => esc_html__( 'Other Pages', 'martfury' ), ), 'description' => esc_html__( 'Check pages to show the recently viewed products above the footer.', 'martfury' ), ), 'footer_recently_viewed_title' => array( 'type' => 'text', 'label' => esc_html__( 'Recently Viewed Title', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => esc_html__( 'Your Recently Viewed Products', 'martfury' ), 'priority' => 90, ), 'footer_recently_viewed_number' => array( 'type' => 'number', 'label' => esc_html__( 'Products Per Page', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => 12, 'priority' => 90, ), 'footer_recently_viewed_link_text' => array( 'type' => 'text', 'label' => esc_html__( 'View All Text', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => '', 'priority' => 90, ), 'footer_recently_viewed_link_url' => array( 'type' => 'text', 'label' => esc_html__( 'View All URL', 'martfury' ), 'section' => 'footer_recently_viewed', 'default' => '', 'priority' => 90, ), ); if ( function_exists('wcboost_products_compare') ) { $columns = [ 'rating' => esc_html__( 'Rating', 'martfury' ), 'price' => esc_html__( 'Price', 'martfury' ), 'stock' => esc_html__( 'Availability', 'martfury' ), 'sku' => esc_html__( 'SKU', 'martfury' ), 'dimensions' => esc_html__( 'Dimensions', 'martfury' ), 'weight' => esc_html__( 'Weight', 'martfury' ), 'add-to-cart' => esc_html__( 'Add To Cart', 'martfury' ), ]; $columns = array_merge( $columns, martfury_get_product_attributes() ); if( isset( $columns[''] ) ) { unset($columns['']); } $fields['compare_page_columns'] = array( 'type' => 'multicheck', 'label' => esc_html__('Table Columns', 'martfury'), 'default' => array('rating', 'price', 'stock', 'sku', 'dimensions', 'weight', 'add-to-cart'), 'choices' => $columns, 'section' => 'compare_page', ); } $catalog_layouts = array( 'shop_layout' => array( 'section' => 'shop_page', 'field' => 'shop', 'label' => esc_html__( 'Shop Layout', 'martfury' ), 'description' => esc_html__( 'Select default layout for shop.', 'martfury' ), ), 'products_cat_level_1_layout' => array( 'section' => 'product_cat_level_1_page', 'field' => 'products_cat_level_1', 'label' => esc_html__( 'Category Layout', 'martfury' ), 'description' => esc_html__( 'Select default layout for category level 1.', 'martfury' ), ), ); $catalog_fields = array(); foreach ( $catalog_layouts as $layout ) { $catalog_fields[ $layout['field'] . '_layout' ] = array( 'type' => 'select', 'label' => $layout['label'], 'default' => '10', 'section' => $layout['section'], 'description' => $layout['description'], 'priority' => 70, 'choices' => array( '10' => esc_html__( 'Default', 'martfury' ), '1' => esc_html__( 'Catalog Layout 1', 'martfury' ), '2' => esc_html__( 'Catalog Layout 2', 'martfury' ), '3' => esc_html__( 'Catalog Layout 3', 'martfury' ), ), ); $catalog_fields[ $layout['field'] . '_els_1' ] = array( 'type' => 'multicheck', 'label' => $layout['label'] . ' ' . esc_html__( 'Elements', 'martfury' ), 'default' => array( 'banners', 'brands', 'categories', 'products_carousel', 'breadcrumb' ), 'section' => $layout['section'], 'priority' => 70, 'description' => esc_html__( 'Select which elements you want to show.', 'martfury' ), 'choices' => array( 'title' => esc_html__( 'Page Title', 'martfury' ), 'breadcrumb' => esc_html__( 'Breadcrumb', 'martfury' ), 'banners' => esc_html__( 'Banners', 'martfury' ), 'brands' => esc_html__( 'Brands', 'martfury' ), 'categories' => esc_html__( 'Categories Box', 'martfury' ), 'products_carousel' => esc_html__( 'Products Carousel', 'martfury' ), ), 'active_callback' => array( array( 'setting' => $layout['field'] . '_layout', 'operator' => '==', 'value' => '1', ), ), ); $catalog_fields[ $layout['field'] . '_els_2' ] = array( 'type' => 'multicheck', 'label' => $layout['label'] . ' ' . esc_html__( 'Elements', 'martfury' ), 'default' => array( 'title', 'top_categories', 'products_carousel', 'featured_categories', 'other_categories', 'breadcrumb' ), 'section' => $layout['section'], 'priority' => 70, 'description' => esc_html__( 'Select which elements you want to show.', 'martfury' ), 'choices' => array( 'title' => esc_html__( 'Page Title', 'martfury' ), 'breadcrumb' => esc_html__( 'Breadcrumb', 'martfury' ), 'top_categories' => esc_html__( 'Top Categories', 'martfury' ), 'products_carousel' => esc_html__( 'Products Carousel', 'martfury' ), 'featured_categories' => esc_html__( 'Featured Categories', 'martfury' ), 'other_categories' => esc_html__( 'Other Categories', 'martfury' ), ), 'active_callback' => array( array( 'setting' => $layout['field'] . '_layout', 'operator' => '==', 'value' => '2', ), ), ); $catalog_fields[ $layout['field'] . '_els_3' ] = array( 'type' => 'multicheck', 'label' => $layout['label'] . ' ' . esc_html__( 'Elements', 'martfury' ), 'default' => array( 'title', 'banners', 'products_carousel', 'breadcrumb' ), 'section' => $layout['section'], 'priority' => 70, 'description' => esc_html__( 'Select which elements you want to show.', 'martfury' ), 'choices' => array( 'title' => esc_html__( 'Page Title', 'martfury' ), 'breadcrumb' => esc_html__( 'Breadcrumb', 'martfury' ), 'banners' => esc_html__( 'Banners', 'martfury' ), 'products_carousel' => esc_html__( 'Products Carousel', 'martfury' ), ), 'active_callback' => array( array( 'setting' => $layout['field'] . '_layout', 'operator' => '==', 'value' => '3', ), ), ); $catalog_fields[ $layout['field'] . 'custom' ] = array( 'type' => 'custom', 'default' => '