'default' => 'content-sidebar',
'priority' => 40,
'choices' => array(
'content-sidebar' => esc_html__( 'Content Sidebar', 'martfury' ),
'sidebar-content' => esc_html__( 'Sidebar Content', 'martfury' ),
),
'description' => esc_html__( 'Select default sidebar for product page.', 'martfury' ),
'active_callback' => array(
array(
'setting' => 'product_page_layout',
'operator' => 'in',
'value' => array( '2', '4', '5', '6' ),
),
),
),
'product_page_custom_2' => array(
'type' => 'custom',
'section' => 'product_page',
'default' => '
',
'priority' => 40,
),
'product_buy_now' => array(
'type' => 'toggle',
'label' => esc_html__( 'Buy Now Button', 'martfury' ),
'section' => 'product_buy_now',
'default' => 0,
'priority' => 40,
'description' => esc_html__( 'Check this option to enable buy now button after add to cart button in the single product.', 'martfury' ),
),
'product_buy_now_text' => array(
'type' => 'textarea',
'label' => esc_html__( 'Buy Now Text', 'martfury' ),
'section' => 'product_buy_now',
'default' => esc_html__( "Buy Now", 'martfury' ),
'priority' => 40,
),
'product_buy_now_link' => array(
'type' => 'textarea',
'label' => esc_html__( 'Buy Now Link', 'martfury' ),
'section' => 'product_buy_now',
'default' => '',
'priority' => 40,
),
'show_product_socials' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Product Socials', 'martfury' ),
'section' => 'product_page_socials',
'default' => 1,
'priority' => 40,
),
'product_social_icons' => array(
'type' => 'multicheck',
'label' => esc_html__( 'Socials', 'martfury' ),
'section' => 'product_page_socials',
'default' => array( 'twitter', 'facebook', 'google', 'pinterest', 'linkedin', 'vkontakte' ),
'priority' => 40,
'choices' => array(
'twitter' => esc_html__( 'Twitter', 'martfury' ),
'facebook' => esc_html__( 'Facebook', 'martfury' ),
'google' => esc_html__( 'Google Plus', 'martfury' ),
'pinterest' => esc_html__( 'Pinterest', 'martfury' ),
'linkedin' => esc_html__( 'Linkedin', 'martfury' ),
'vkontakte' => esc_html__( 'Vkontakte', 'martfury' ),
'whatsapp' => esc_html__( 'Whatsapp', 'martfury' ),
'email' => esc_html__( 'Email', 'martfury' ),
),
),
'product_deals_expire_text' => array(
'type' => 'textarea',
'label' => esc_html__( 'Deals Expire Text', 'martfury' ),
'section' => 'product_deal_page',
'default' => esc_html__( "Don't Miss Out! This promotion will expires in", 'martfury' ),
'priority' => 40,
),
'product_deals_sold_text' => array(
'type' => 'text',
'label' => esc_html__( 'Deals Sold Text', 'martfury' ),
'section' => 'product_deal_page',
'default' => esc_html__( "Sold Items", 'martfury' ),
'priority' => 40,
),
'product_specification_text' => array(
'type' => 'text',
'label' => esc_html__( 'Specification Text', 'martfury' ),
'section' => 'product_page',
'default' => esc_html__( "Specification", 'martfury' ),
'priority' => 40,
),
'product_description_text' => array(
'type' => 'text',
'label' => esc_html__( 'Description Text', 'martfury' ),
'section' => 'product_page',
'default' => esc_html__( "Description", 'martfury' ),
'priority' => 40,
),
'product_fbt' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Frequently Bought Together', 'martfury' ),
'section' => 'product_page_fbt',
'default' => 1,
'priority' => 40,
),
'product_fbt_title' => array(
'type' => 'text',
'label' => esc_html__( 'Frequently Bought Together Title', 'martfury' ),
'section' => 'product_page_fbt',
'default' => esc_html__( 'Frequently Bought Together', 'martfury' ),
'priority' => 40,
),
'product_instagram' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Instagram Photos', 'martfury' ),
'section' => 'instagram_photos',
'default' => 1,
'priority' => 40,
'description' => esc_html__( 'Check this option to show instagram photos in single product page', 'martfury' ),
),
'api_instagram_token' => array(
'type' => 'textarea',
'label' => esc_html__( 'Access Token', 'martfury' ),
'section' => 'instagram_photos',
'default' => '',
'priority' => 40,
'description' => esc_html__( 'Enter your Access Token', 'martfury' ),
),
'product_instagram_title' => array(
'type' => 'textarea',
'label' => esc_html__( 'Product Instagram Title', 'martfury' ),
'section' => 'instagram_photos',
'default' => esc_html__( 'See It Styled On Instagram', 'martfury' ),
'priority' => 40,
),
'product_instagram_columns' => array(
'type' => 'select',
'label' => esc_html__( 'Instagram Photos Columns', 'martfury' ),
'section' => 'instagram_photos',
'default' => '5',
'priority' => 40,
'description' => esc_html__( 'Specify how many columns of Instagram Photos you want to show on single product page', 'martfury' ),
'choices' => array(
'3' => esc_html__( '3 Columns', 'martfury' ),
'4' => esc_html__( '4 Columns', 'martfury' ),
'5' => esc_html__( '5 Columns', 'martfury' ),
'6' => esc_html__( '6 Columns', 'martfury' ),
'7' => esc_html__( '7 Columns', 'martfury' ),
),
),
'product_instagram_numbers' => array(
'type' => 'number',
'label' => esc_html__( 'Instagram Photos Numbers', 'martfury' ),
'section' => 'instagram_photos',
'default' => 10,
'priority' => 40,
'description' => esc_html__( 'Specify how many Instagram Photos you want to show on single product page.', 'martfury' ),
),
'product_upsells' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Up-sells Products', 'martfury' ),
'section' => 'upsells_products',
'default' => 1,
'description' => esc_html__( 'Check this option to show instagram photos in single product page', 'martfury' ),
'priority' => 40,
),
'products_upsells_position' => array(
'type' => 'select',
'label' => esc_html__( 'Up-sells Products Position', 'martfury' ),
'section' => 'upsells_products',
'default' => '1',
'priority' => 40,
'choices' => array(
'1' => esc_html__( 'Above Product Tabs', 'martfury' ),
'2' => esc_html__( 'Under Product Tabs', 'martfury' ),
),
'active_callback' => array(
array(
'setting' => 'product_page_layout',
'operator' => '==',
'value' => '1',
),
),
),
'product_upsells_title' => array(
'type' => 'text',
'label' => esc_html__( 'Up-sells Products Title', 'martfury' ),
'section' => 'upsells_products',
'default' => esc_html__( 'You may also like', 'martfury' ),
'priority' => 40,
),
'upsells_products_columns' => array(
'type' => 'select',
'label' => esc_html__( 'Up-sells Products Columns', 'martfury' ),
'section' => 'upsells_products',
'default' => '5',
'priority' => 40,
'description' => esc_html__( 'Specify how many columns of up-sells products you want to show on single product page', 'martfury' ),
'choices' => array(
'3' => esc_html__( '3 Columns', 'martfury' ),
'4' => esc_html__( '4 Columns', 'martfury' ),
'5' => esc_html__( '5 Columns', 'martfury' ),
'6' => esc_html__( '6 Columns', 'martfury' ),
'7' => esc_html__( '7 Columns', 'martfury' ),
),
),
'upsells_products_numbers' => array(
'type' => 'number',
'label' => esc_html__( 'Up-sells Products Numbers', 'martfury' ),
'section' => 'upsells_products',
'default' => 6,
'priority' => 40,
'description' => esc_html__( 'Specify how many numbers of up-sells products you want to show on single product page', 'martfury' ),
),
'product_related' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Related Products', 'martfury' ),
'section' => 'related_products',
'description' => esc_html__( 'Check this option to show instagram photos in single product page', 'martfury' ),
'default' => 1,
'priority' => 40,
),
'product_related_title' => array(
'type' => 'text',
'label' => esc_html__( 'Related Products Title', 'martfury' ),
'section' => 'related_products',
'default' => esc_html__( 'Related products', 'martfury' ),
'priority' => 40,
),
'related_product_by_categories' => array(
'type' => 'toggle',
'label' => esc_html__( 'Related Products By Categories', 'martfury' ),
'section' => 'related_products',
'default' => 1,
'priority' => 40,
),
'related_product_by_parent_category' => array(
'type' => 'toggle',
'label' => esc_html__( 'Related Products By Parent Category', 'martfury' ),
'section' => 'related_products',
'default' => 0,
'priority' => 40,
'active_callback' => array(
array(
'setting' => 'related_product_by_categories',
'operator' => '==',
'value' => 1,
),
),
),
'related_product_by_tags' => array(
'type' => 'toggle',
'label' => esc_html__( 'Related Products By Tags', 'martfury' ),
'section' => 'related_products',
'default' => 1,
'priority' => 40,
),
'related_products_columns' => array(
'type' => 'select',
'label' => esc_html__( 'Related Products Columns', 'martfury' ),
'section' => 'related_products',
'default' => '5',
'priority' => 40,
'description' => esc_html__( 'Specify how many columns of related products you want to show on single product page', 'martfury' ),
'choices' => array(
'3' => esc_html__( '3 Columns', 'martfury' ),
'4' => esc_html__( '4 Columns', 'martfury' ),
'5' => esc_html__( '5 Columns', 'martfury' ),
'6' => esc_html__( '6 Columns', 'martfury' ),
'7' => esc_html__( '7 Columns', 'martfury' ),
),
),
'related_products_numbers' => array(
'type' => 'number',
'label' => esc_html__( 'Related Products Numbers', 'martfury' ),
'section' => 'related_products',
'default' => 6,
'priority' => 40,
'description' => esc_html__( 'Specify how many numbers of related products you want to show on single product page', 'martfury' ),
),
// Custom categories sidebar
'custom_product_cat_sidebars' => array(
'type' => 'repeater',
'label' => esc_html__( 'Custom Sidebars', 'martfury' ),
'section' => 'custom_product_cat_sidebars',
'default' => '',
'priority' => 40,
'row_label' => array(
'type' => 'text',
'value' => esc_html__( 'Sidebar', 'martfury' ),
),
'fields' => array(
'title' => array(
'type' => 'text',
'label' => esc_html__( 'Title', 'martfury' ),
'default' => '',
),
),
),
// Product Item
'product_loop_hover' => array(
'type' => 'select',
'label' => esc_html__( 'Product Loop Style', 'martfury' ),
'section' => 'product_loop',
'default' => '1',
'priority' => 40,
'choices' => array(
'1' => esc_html__( 'Icons on hover', 'martfury' ),
'2' => esc_html__( 'Icons & Add to cart button', 'martfury' ),
'3' => esc_html__( 'Standard button', 'martfury' ),
'4' => esc_html__( 'Standard button 2', 'martfury' ),
),
),
'product_loop_animation' => array(
'type' => 'select',
'label' => esc_html__( 'Product Loop Hover', 'martfury' ),
'description' => esc_html__( 'Product hover animation.', 'martfury' ),
'default' => 'classic',
'section' => 'product_loop',
'priority' => 40,
'choices' => array(
'classic' => esc_html__( 'Classic', 'martfury' ),
'fadein' => esc_html__( 'Fadein', 'martfury' ),
),
),
'custom_catalog_variation_images' => array(
'type' => 'custom',
'section' => 'product_loop',
'default' => '
',
'priority' => 40,
),
'catalog_variation_images' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Variation Images', 'martfury' ),
'section' => 'product_loop',
'default' => 1,
'priority' => 90,
'description' => esc_html__( 'Check this option to show variation images in the product item.', 'martfury' ),
'active_callback' => array(
array(
'setting' => 'product_loop_hover',
'operator' => 'in',
'value' => array( '1', '2' ),
),
),
),
'catalog_brand_name' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Brand Name', 'martfury' ),
'section' => 'product_loop',
'default' => 0,
'priority' => 90,
'description' => esc_html__( 'Check this option to show the brand name in the product item.', 'martfury' ),
),
'catalog_featured_icons' => array(
'type' => 'multicheck',
'label' => esc_html__( 'Featured Icons', 'martfury' ),
'section' => 'product_loop',
'default' => array( 'cart', 'qview', 'wishlist', 'compare' ),
'priority' => 90,
'choices' => array(
'cart' => esc_html__( 'Add To Cart', 'martfury' ),
'qview' => esc_html__( 'Quick View', 'martfury' ),
'wishlist' => esc_html__( 'Wishlist', 'martfury' ),
'compare' => esc_html__( 'Compare', 'martfury' ),
),
'description' => esc_html__( 'Select which icons you want to show.', 'martfury' ),
),
'product_loop_hover_4_bg_hover_hr' => array(
'type' => 'custom',
'section' => 'product_loop',
'default' => '
',
'priority' => 90,
'active_callback' => array(
array(
'setting' => 'product_loop_hover',
'operator' => '==',
'value' => '4',
),
),
),
'product_loop_hover_4_bg_hover' => array(
'type' => 'color',
'label' => esc_html__( 'Add to Cart Button Background Color Hover', 'martfury' ),
'default' => '',
'section' => 'product_loop',
'priority' => 90,
'active_callback' => array(
array(
'setting' => 'product_loop_hover',
'operator' => '==',
'value' => '4',
),
),
'transport' => 'postMessage',
'js_vars' => array(
array(
'element' => '.mf-product-loop-hover-4 ul.products li.product .product-inner:hover .mf-product-price-box a.button',
'property' => 'background-color',
),
)
),
// Cart Page
'clear_cart_button' => array(
'type' => 'toggle',
'label' => esc_html__( 'Clear Cart Button', 'martfury' ),
'default' => 0,
'section' => 'cart_page',
'description' => esc_html__( 'Enable to show Clear Cart button on cart page.', 'martfury' ),
'priority' => 20,
),
'quantity_ajax' => array(
'type' => 'toggle',
'label' => esc_html__( 'Update Quantity AJAX', 'martfury' ),
'default' => 0,
'section' => 'cart_page',
'description' => esc_html__( 'Change qty in the cart page with AJAX', 'martfury' ),
'priority' => 20,
),
// Account Page
'login_register_layout' => array(
'type' => 'select',
'label' => esc_html__( 'Login & Register Layout', 'martfury' ),
'section' => 'account_page',
'default' => 'tabs',
'priority' => 40,
'choices' => array(
'tabs' => esc_html__( 'Tabs', 'martfury' ),
'columns' => esc_html__( 'Columns', 'martfury' ),
'promotion' => esc_html__( 'With Promotion', 'martfury' ),
),
),
'login_promotion_title' => array(
'type' => 'textarea',
'label' => esc_html__( 'Promotion Title', 'martfury' ),
'section' => 'account_page',
'default' => esc_html__( 'Sign up today and you will be able to:', 'martfury' ),
'priority' => 40,
'active_callback' => array(
array(
'setting' => 'login_register_layout',
'operator' => '==',
'value' => 'promotion',
),
),
),
'login_promotion_text' => array(
'type' => 'textarea',
'label' => esc_html__( 'Promotion Text', 'martfury' ),
'section' => 'account_page',
'default' => '',
'priority' => 40,
'active_callback' => array(
array(
'setting' => 'login_register_layout',
'operator' => '==',
'value' => 'promotion',
),
),
),
'login_promotion_list' => array(
'type' => 'textarea',
'label' => esc_html__( 'Promotion List', 'martfury' ),
'section' => 'account_page',
'default' => '',
'priority' => 40,
'active_callback' => array(
array(
'setting' => 'login_register_layout',
'operator' => '==',
'value' => 'promotion',
),
),
),
'login_ads_title' => array(
'type' => 'textarea',
'label' => esc_html__( 'Ads Title', 'martfury' ),
'section' => 'account_page',
'default' => '',
'priority' => 40,
'active_callback' => array(
array(
'setting' => 'login_register_layout',
'operator' => '==',
'value' => 'promotion',
),
),
),
'login_ads_text' => array(
'type' => 'textarea',
'label' => esc_html__( 'Ads Text', 'martfury' ),
'section' => 'account_page',
'default' => '',
'priority' => 40,
'active_callback' => array(
array(
'setting' => 'login_register_layout',
'operator' => '==',
'value' => 'promotion',
),
),
),
// Search Page
'search_full_width' => array(
'type' => 'toggle',
'label' => esc_html__( 'Full Width', 'martfury' ),
'default' => '0',
'section' => 'search_page',
'description' => esc_html__( 'Enable to show the product search page as full width.', 'martfury' ),
'priority' => 20,
),
// Page Header Blog
'page_header_blog' => array(
'type' => 'toggle',
'default' => 1,
'label' => esc_html__( 'Enable Page Header', 'martfury' ),
'section' => 'page_header_blog',
'description' => esc_html__( 'Enable to show a page header for the blog page below the site header', 'martfury' ),
'priority' => 20,
),
'page_header_blog_layout' => array(
'type' => 'select',
'label' => esc_html__( 'Page Header Layout', 'martfury' ),
'section' => 'page_header_blog',
'default' => '1',
'priority' => 20,
'choices' => array(
'1' => esc_html__( 'Layout 1', 'martfury' ),
'2' => esc_html__( 'Layout 2', 'martfury' ),
),
'active_callback' => array(
array(
'setting' => 'page_header_blog',
'operator' => '==',
'value' => 1,
),
),
),
'page_header_blog_els' => array(
'type' => 'multicheck',
'label' => esc_html__( 'Page Header Elements', 'martfury' ),
'section' => 'page_header_blog',
'default' => array( 'breadcrumb', 'title' ),
'priority' => 20,
'choices' => array(
'breadcrumb' => esc_html__( 'BreadCrumb', 'martfury' ),
'title' => esc_html__( 'Title', 'martfury' ),
),
'description' => esc_html__( 'Select which elements you want to show.', 'martfury' ),
'active_callback' => array(
array(
'setting' => 'page_header_blog_layout',
'operator' => '==',
'value' => '1',
),
),
),
'page_header_blog_slider' => array(
'type' => 'repeater',
'label' => esc_html__( 'Sliders Content', 'martfury' ),
'section' => 'page_header_blog',
'default' => '',
'priority' => 40,
'row_label' => array(
'type' => 'text',
'value' => esc_html__( 'Slider', 'martfury' ),
),
'fields' => array(
'subtitle' => array(
'type' => 'text',
'label' => esc_html__( 'SubTitle', 'martfury' ),
'default' => '',
),
'title' => array(
'type' => 'textarea',
'label' => esc_html__( 'Title', 'martfury' ),
'default' => '',
),
'desc' => array(
'type' => 'textarea',
'label' => esc_html__( 'Description', 'martfury' ),
'default' => '',
),
'image' => array(
'type' => 'image',
'label' => esc_html__( 'Image', 'martfury' ),
'default' => '',
),
'link_url' => array(
'type' => 'text',
'label' => esc_html__( 'Link(URL)', 'martfury' ),
'default' => '',
),
),
'active_callback' => array(
array(
'setting' => 'page_header_blog_layout',
'operator' => '==',
'value' => '2',
),
array(
'setting' => 'page_header_blog',
'operator' => '==',
'value' => 1,
),
),
),
'page_header_blog_height' => array(
'type' => 'number',
'label' => esc_html__( 'Sliders Height(px)', 'martfury' ),
'default' => 860,
'section' => 'page_header_blog',
'priority' => 40,
'active_callback' => array(
array(
'setting' => 'page_header_blog_layout',
'operator' => '==',
'value' => '2',
),
array(
'setting' => 'page_header_blog',
'operator' => '==',
'value' => 1,
),
),
),
'page_header_blog_autoplay' => array(
'type' => 'number',
'label' => esc_html__( 'Sliders Autoplay', 'martfury' ),
'default' => 0,
'section' => 'page_header_blog',
'priority' => 40,
'description' => esc_html__( 'Duration of animation between slides (in ms). Enter the value is 0 or empty if you want the slider is not autoplay', 'martfury' ),
'active_callback' => array(
array(
'setting' => 'page_header_blog_layout',
'operator' => '==',
'value' => '2',
),
array(
'setting' => 'page_header_blog',
'operator' => '==',
'value' => 1,
),
),
),
// Blog
'blog_layout' => array(
'type' => 'select',
'label' => esc_html__( 'Blog Layout', 'martfury' ),
'default' => 'list',
'section' => 'blog',
'priority' => 10,
'description' => esc_html__( 'Select default layout for blog page.', 'martfury' ),
'choices' => array(
'grid' => esc_html__( 'Grid', 'martfury' ),
'list' => esc_html__( 'List', 'martfury' ),
'masonry' => esc_html__( 'Masonry', 'martfury' ),
'small-thumb' => esc_html__( 'Small Thumb', 'martfury' ),
'sidebar-content' => esc_html__( 'Sidebar Content', 'martfury' ),
'content-sidebar' => esc_html__( 'Content Sidebar', 'martfury' ),
),
),
'blog_excerpt_length' => array(
'type' => 'number',
'label' => esc_html__( 'Excerpt Length', 'martfury' ),
'section' => 'blog',
'default' => 15,
'priority' => 10,
'active_callback' => array(
array(
'setting' => 'blog_layout',
'operator' => 'in',
'value' => array( 'list', 'small-thumb' ),
),
),
),
'show_blog_cats' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Categories List', 'martfury' ),
'section' => 'blog',
'default' => 1,
'description' => esc_html__( 'Display categories list below site header on blog, category page', 'martfury' ),
'priority' => 20,
),
'custom_blog_cats' => array(
'type' => 'toggle',
'label' => esc_html__( 'Custom Categories List', 'martfury' ),
'section' => 'blog',
'default' => 0,
'priority' => 20,
),
'blog_cats_slug' => array(
'type' => 'select',
'section' => 'blog',
'label' => esc_html__( 'Custom Categories', 'martfury' ),
'description' => esc_html__( 'Select product categories you want to show.', 'martfury' ),
'default' => '',
'multiple' => 999,
'priority' => 20,
'choices' => martfury_customizer_get_categories( 'category' ),
'active_callback' => array(
array(
'setting' => 'custom_blog_cats',
'operator' => '==',
'value' => 1,
),
),
),
'blog_nav_type' => array(
'type' => 'select',
'label' => esc_html__( 'Type of Navigation', 'martfury' ),
'section' => 'blog',
'default' => 'links',
'priority' => 20,
'choices' => array(
'links' => esc_html__( 'Links', 'martfury' ),
'infinite' => esc_html__( 'Infinite Scroll', 'martfury' ),
),
),
// Single Post
'single_post_layout' => array(
'type' => 'select',
'label' => esc_html__( 'Single Post Layout', 'martfury' ),
'default' => 'full-content',
'section' => 'single_post',
'priority' => 10,
'description' => esc_html__( 'Select default sidebar for single post.', 'martfury' ),
'choices' => array(
'full-content' => esc_html__( 'Full Content', 'martfury' ),
'content-sidebar' => esc_html__( 'Content Sidebar', 'martfury' ),
'sidebar-content' => esc_html__( 'Sidebar Content', 'martfury' ),
),
),
'single_post_style' => array(
'type' => 'select',
'label' => esc_html__( 'Single Post Style', 'martfury' ),
'default' => '1',
'section' => 'single_post',
'priority' => 10,
'choices' => array(
'1' => esc_html__( 'Style 1', 'martfury' ),
'2' => esc_html__( 'Style 2', 'martfury' ),
'3' => esc_html__( 'Style 3', 'martfury' ),
'4' => esc_html__( 'Style 4', 'martfury' ),
),
),
'show_post_format' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Post Format', 'martfury' ),
'section' => 'single_post',
'default' => 1,
'description' => esc_html__( 'Check this option to show the post format above the single content.', 'martfury' ),
'priority' => 20,
'active_callback' => array(
array(
'setting' => 'single_post_style',
'operator' => 'in',
'value' => array( '1', '3', '4' ),
),
),
),
'show_post_socials' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Post Socials', 'martfury' ),
'section' => 'single_post',
'default' => 1,
'description' => esc_html__( 'Display social sharing icons on single post', 'martfury' ),
'priority' => 20,
),
'post_social_icons' => array(
'type' => 'multicheck',
'label' => esc_html__( 'Socials', 'martfury' ),
'section' => 'single_post',
'default' => array( 'facebook', 'twitter', 'pinterest', 'google', 'linkedin', 'vkontakte' ),
'priority' => 20,
'choices' => array(
'twitter' => esc_html__( 'Twitter', 'martfury' ),
'facebook' => esc_html__( 'Facebook', 'martfury' ),
'google' => esc_html__( 'Google Plus', 'martfury' ),
'pinterest' => esc_html__( 'Pinterest', 'martfury' ),
'linkedin' => esc_html__( 'Linkedin', 'martfury' ),
'vkontakte' => esc_html__( 'Vkontakte', 'martfury' ),
),
'active_callback' => array(
array(
'setting' => 'post_share_box',
'operator' => '==',
'value' => 1,
),
),
),
'post_author_box' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Author Box', 'martfury' ),
'section' => 'single_post',
'default' => 1,
'description' => esc_html__( 'Check this option to display author box on single post', 'martfury' ),
'priority' => 20,
),
'related_posts' => array(
'type' => 'toggle',
'label' => esc_html__( 'Show Related Posts', 'martfury' ),
'section' => 'single_post',
'default' => 1,
'description' => esc_html__( 'Check this option to display related posts on single post', 'martfury' ),
'priority' => 20,
),
'related_posts_title' => array(
'type' => 'text',
'label' => esc_html__( 'Related Posts Title', 'martfury' ),
'section' => 'single_post',
'default' => esc_html__( 'Related Posts', 'martfury' ),
'priority' => 20,
),
'related_posts_number' => array(
'type' => 'number',
'label' => esc_html__( 'Related Posts Number', 'martfury' ),
'section' => 'single_post',
'default' => '3',
'priority' => 20,
),
// Page Header Blog
'page_header_page' => array(
'type' => 'toggle',
'default' => 1,
'label' => esc_html__( 'Enable Page Header', 'martfury' ),
'section' => 'page_header_page',
'description' => esc_html__( 'Enable to show a page header for the page below the site header', 'martfury' ),
'priority' => 20,
),
'page_header_pages_els' => array(
'type' => 'multicheck',
'label' => esc_html__( 'Page Header Elements', 'martfury' ),
'section' => 'page_header_page',
'default' => array( 'breadcrumb', 'title' ),
'priority' => 20,
'choices' => array(
'breadcrumb' => esc_html__( 'BreadCrumb', 'martfury' ),
'title' => esc_html__( 'Title', 'martfury' ),
),
'description' => esc_html__( 'Select which elements you want to show.', 'martfury' ),
'active_callback' => array(
array(
'setting' => 'page_header_page',
'operator' => '==',
'value' => 1,
),
),
),
'custom_page_header_space' => array(
'type' => 'custom',
'section' => 'page_header_page',
'default' => '
',
'priority' => 20,
),
'page_header_pages_top_space' => array(
'type' => 'slider',
'label' => esc_html__( 'Top Space', 'martfury' ),
'section' => 'page_header_page',
'default' => 115,
'priority' => 20,
'choices' => array(
'min' => 0,
'max' => 200,
),
),
'page_header_pages_bottom_space' => array(
'type' => 'slider',
'label' => esc_html__( 'Bottom Space', 'martfury' ),
'section' => 'page_header_page',
'default' => 115,
'priority' => 20,
'choices' => array(
'min' => 0,
'max' => 200,
),
),
'page_layout' => array(
'type' => 'select',
'label' => esc_html__( 'Page Layout', 'martfury' ),
'default' => 'full-content',
'section' => 'single_page',
'priority' => 10,
'description' => esc_html__( 'Select default layout for page.', 'martfury' ),
'choices' => array(
'full-content' => esc_html__( 'Full Content', 'martfury' ),
'sidebar-content' => esc_html__( 'Sidebar Content', 'martfury' ),
'content-sidebar' => esc_html__( 'Content Sidebar', 'martfury' ),
),
),
// Footer
'footer_skin' => array(
'type' => 'select',
'label' => esc_html__( 'Footer Skin', 'martfury' ),
'section' => 'footer',
'default' => 'light',
'priority' => 20,
'choices' => array(
'light' => esc_html__( 'Light', 'martfury' ),
'gray' => esc_html__( 'Gray', 'martfury' ),
'custom' => esc_html__( 'Custom', 'martfury' ),
),
),
'footer_bg_color' => array(
'type' => 'color',
'label' => esc_html__( 'Custom Footer Skin', 'martfury' ),
'default' => '',
'section' => 'footer',
'priority' => 20,
'choices' => array(
'alpha' => true,
),
'active_callback' => array(
array(
'setting' => 'footer_skin',
'operator' => '==',
'value' => 'custom',
),
),
'transport' => 'postMessage',
'js_vars' => array(
array(
'element' => '.site-footer .footer-layout',
'property' => 'background-color',
),
)
),
'footer_heading_color' => array(
'type' => 'color',
'label' => esc_html__( 'Footer Heading Color', 'martfury' ),
'default' => '',
'section' => 'footer',
'priority' => 20,
'choices' => array(
'alpha' => true,
),
'active_callback' => array(
array(
'setting' => 'footer_skin',
'operator' => '==',
'value' => 'custom',
),
),
'transport' => 'postMessage',
'js_vars' => array(
array(
'element' => '.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6, .site-footer .widget .widget-title',
'property' => 'color',
),
)
),
'footer_text_color' => array(
'type' => 'color',
'label' => esc_html__( 'Footer Text Color', 'martfury' ),
'default' => '',
'section' => 'footer',
'priority' => 20,
'choices' => array(
'alpha' => true,
),
'active_callback' => array(
array(
'setting' => 'footer_skin',
'operator' => '==',
'value' => 'custom',
),
),
'transport' => 'postMessage',
'js_vars' => array(
array(
'element' => '.site-footer, .site-footer .footer-widgets .widget ul li a, .site-footer .footer-copyright, .site-footer .footer-links .widget_nav_menu ul li a, .site-footer .footer-payments .text',
'property' => 'color',
),
)
),
'footer_hover_color' => array(
'type' => 'color',
'label' => esc_html__( 'Footer Hover Color', 'martfury' ),
'default' => '',
'section' => 'footer',
'priority' => 20,
'choices' => array(
'alpha' => true,
),
'active_callback' => array(
array(
'setting' => 'footer_skin',
'operator' => '==',
'value' => 'custom',
),
),
'transport' => 'postMessage',
'js_vars' => array(
array(
'element' => '.site-footer .footer-widgets .widget ul li a:hover,.site-footer .footer-links .widget_nav_menu ul li a:hover',
'property' => 'color',
),
array(
'element' => '.site-footer .footer-widgets .widget ul li a:before, .site-footer .footer-links .widget_nav_menu ul li a:before',
'property' => 'background-color',
),
)
),
'footer_border_color' => array(
'type' => 'color',
'label' => esc_html__( 'Footer Border Color', 'martfury' ),
'default' => '',
'section' => 'footer',
'priority' => 20,
'choices' => array(
'alpha' => true,
),
'active_callback' => array(
array(
'setting' => 'footer_skin',
'operator' => '==',
'value' => 'custom',
),
),
'transport' => 'postMessage',
'js_vars' => array(
array(
'element' => '.site-footer .footer-newsletter, .site-footer .footer-info, .site-footer .footer-widgets, .site-footer .footer-links',
'property' => 'border-color',
),
array(
'element' => '.site-footer .footer-info .info-item-sep:after',
'property' => 'background-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' => '
',
'section' => $layout['section'],
'priority' => 70,
);
}
$catalog_fields['products_cat_level_1_els_10'] = array(
'type' => 'multicheck',
'label' => esc_html__( 'Category Layout Elements', 'martfury' ),
'default' => array( 'breadcrumb' ),
'section' => 'product_cat_level_1_page',
'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' ),
),
'active_callback' => array(
array(
'setting' => 'products_cat_level_1_layout',
'operator' => '==',
'value' => '10',
),
),
);
$fields = array_merge( $fields, $catalog_fields );
if ( did_action( 'elementor/loaded' ) ) {
$fields = array_merge(
$fields, array(
// Other Catlog
'elementor_columns_space' => array(
'type' => 'toggle',
'label' => esc_html__( 'Remove Default Columns Space', 'martfury' ),
'section' => 'elementor',
'default' => 1,
'priority' => 90,
'description' => esc_html__( 'Check this option to remove the default padding top, padding bottom of columns', 'martfury' ),
),
)
);
}
$settings['panels'] = apply_filters( 'martfury_customize_panels', $panels );
$settings['sections'] = apply_filters( 'martfury_customize_sections', $sections );
$settings['fields'] = apply_filters( 'martfury_customize_fields', $fields );
return $settings;
}
/**
* init customize
*
* @return array
*/
function martfury_customize_init() {
$martfury_customize = new Martfury_Customize( martfury_customize_settings() );
}
add_action( 'init', 'martfury_customize_init');
// Fix downloaded fonts from Google.
if ( defined( 'KIRKI_VERSION' ) && version_compare( KIRKI_VERSION, '5.0.0', '<=' ) ) {
/**
* Change the http request headers of 'user-agent' to download .woff2 fonts frm Google.
*
* @param array $args
* @param string $url
*
* @return array
*/
function martfury_fix_kirki_fonts_request_headers( $args, $url ) {
if ( false === strpos( $url, 'https://fonts.googleapis.com/css' ) ) {
return $args;
}
if ( isset( $args['user-agent'] ) && $args['user-agent'] == 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8' ) {
$args['user-agent'] = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0';
}
return $args;
}
add_filter( 'http_request_args', 'martfury_fix_kirki_fonts_request_headers', 10, 2 );
/**
* Fix incorrect fonts files downloaded from Google.
* Delete the Kirki's transients to force downloading font files again.
*
* @return void
*/
function martfury_fix_kirki_fonts() {
delete_transient( 'kirki_remote_url_contents' );
}
add_action( 'after_switch_theme', 'martfury_fix_kirki_fonts' );
add_action( 'wp_ajax_kirki_clear_font_cache', 'martfury_fix_kirki_fonts' );
}
/**
* Get product attributes
*
* @return string
*/
function martfury_get_product_attributes() {
$output = array();
if ( function_exists( 'wc_get_attribute_taxonomies' ) ) {
$attributes_tax = wc_get_attribute_taxonomies();
if ( $attributes_tax ) {
$output[''] = esc_html__( 'None', 'martfury' );
foreach ( $attributes_tax as $attribute ) {
$output[$attribute->attribute_name] = $attribute->attribute_label;
}
}
}
return $output;
}