mepage', '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, ), ); $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' => '