????
| Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls-2/framework/customizer/settings/ |
| Current File : /home2/morganrand/www/wp-content/themes/wanderfuls-2/framework/customizer/settings/woocommerce.php |
<?php
/**
* Customizer => WooCommerce
*
* @package Wanderfuls WordPress Theme
* @subpackage Customizer
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// General
$this->sections['tb_woocommerce_general'] = array(
'title' => __( 'General', 'tb' ),
'panel' => 'tb_woocommerce',
'settings' => array(
array(
'id' => 'woo_custom_sidebar',
'default' => true,
'control' => array (
'label' => __( 'Custom WooCommerce Sidebar', 'tb' ),
'type' => 'checkbox',
),
),
array(
'id' => 'woo_menu_icon',
'default' => true,
'control' => array (
'label' => __( 'Menu Cart', 'tb' ),
'type' => 'checkbox',
'desc' => __( 'You must save your options and refresh your live site to preview changes to this setting.', 'tb' ),
),
),
array(
'id' => 'woo_menu_icon_display',
'default' => 'icon_count',
'control' => array (
'label' => __( 'Menu Cart: Display', 'tb' ),
'type' => 'select',
'choices' => array(
'icon' => __( 'Icon','tb' ),
'icon_total' => __( 'Icon And Cart Total','tb' ),
'icon_count' => __( 'Icon And Cart Count','tb' ),
),
'desc' => __( 'You must save your options and refresh your live site to preview changes to this setting.', 'tb' ),
),
),
array(
'id' => 'woo_menu_icon_style',
'default' => 'drop_down',
'control' => array (
'label' => __( 'Menu Cart: Style', 'tb' ),
'type' => 'select',
'choices' => array(
'drop_down' => __( 'Drop-Down','tb' ),
'overlay' => __( 'Open Cart Overlay','tb' ),
'store' => __( 'Go To Store','tb' ),
'custom-link' => __( 'Custom Link','tb' ),
),
'desc' => __( 'You must save your options and refresh your live site to preview changes to this setting.', 'tb' ),
),
),
array(
'id' => 'woo_menu_icon_custom_link',
'control' => array (
'label' => __( 'Menu Cart: Custom Link', 'tb' ),
'type' => 'text',
),
),
)
);
// Archives
$this->sections['tb_woocommerce_archives'] = array(
'title' => __( 'Archives', 'tb' ),
'panel' => 'tb_woocommerce',
'settings' => array(
array(
'id' => 'woo_shop_title',
'default' => 'on',
'control' => array (
'label' => __( 'Shop Title', 'tb' ),
'type' => 'checkbox',
),
),
array(
'id' => 'woo_shop_slider',
'control' => array (
'label' => __( 'Shop Slider', 'tb' ),
'type' => 'text',
),
),
array(
'id' => 'woo_shop_posts_per_page',
'default' => '12',
'control' => array (
'label' => __( 'Shop Posts Per Page', 'tb' ),
'type' => 'text',
'desc' => __( 'You must save your options and refresh your live site to preview changes to this setting.', 'tb' ),
),
),
array(
'id' => 'woo_shop_layout',
'default' => 'full-width',
'control' => array (
'label' => __( 'Layout', 'tb' ),
'type' => 'select',
'choices' => array(
'full-width' => __( 'No Sidebar','tb' ),
'right-sidebar' => __( 'Right Sidebar','tb' ),
'left-sidebar' => __( 'Left Sidebar','tb' ),
),
),
),
array(
'id' => 'woocommerce_shop_columns',
'default' => '4',
'control' => array (
'label' => __( 'Shop Columns', 'tb' ),
'type' => 'select',
'choices' => tb_grid_columns(),
),
),
array(
'id' => 'woo_category_description_position',
'default' => 'under_title',
'control' => array (
'label' => __( 'Category Description Position', 'tb' ),
'type' => 'select',
'choices' => array(
'under_title' => __( 'Under Title', 'tb' ),
'above_loop' => __( 'Above Loop', 'tb' ),
),
),
),
array(
'id' => 'woo_shop_sort',
'default' => 'on',
'control' => array (
'label' => __( 'Shop Sort', 'tb' ),
'type' => 'checkbox',
'desc' => __( 'You must save your options and refresh your live site to preview changes to this setting.', 'tb' ),
),
),
array(
'id' => 'woo_shop_result_count',
'default' => 'on',
'control' => array (
'label' => __( 'Shop Result Count', 'tb' ),
'type' => 'checkbox',
'desc' => __( 'You must save your options and refresh your live site to preview changes to this setting.', 'tb' ),
),
),
array(
'id' => 'woo_product_entry_style',
'default' => 'image-swap',
'control' => array (
'label' => __( 'Product Entry Media', 'tb' ),
'type' => 'select',
'choices' => array(
'featured-image' => __( 'Featured Image','tb' ),
'image-swap' => __( 'Image Swap','tb' ),
'gallery-slider' => __( 'Gallery Slider','tb' ),
),
),
),
)
);
// Single
$this->sections['tb_woocommerce_single'] = array(
'title' => __( 'Single', 'tb' ),
'panel' => 'tb_woocommerce',
'settings' => array(
array(
'id' => 'woo_shop_single_title',
'default' => __( 'Store', 'tb' ),
'control' => array (
'label' => __( 'Page Header Title', 'tb' ),
'type' => 'text',
),
),
array(
'id' => 'woo_product_layout',
'default' => 'full-width',
'control' => array (
'label' => __( 'Layout', 'tb' ),
'type' => 'select',
'choices' => array(
'full-width' => __( 'No Sidebar','tb' ),
'right-sidebar' => __( 'Right Sidebar','tb' ),
'left-sidebar' => __( 'Left Sidebar','tb' ),
),
),
),
array(
'id' => 'woocommerce_upsells_count',
'default' => '4',
'control' => array (
'label' => __( 'Up-Sells Count', 'tb' ),
'type' => 'text',
),
),
array(
'id' => 'woocommerce_upsells_columns',
'default' => '4',
'control' => array (
'label' => __( 'Up-Sells Columns', 'tb' ),
'type' => 'select',
'choices' => tb_grid_columns(),
),
),
array(
'id' => 'woocommerce_related_count',
'default' => '4',
'control' => array (
'label' => __( 'Related Items Count', 'tb' ),
'type' => 'text',
),
),
array(
'id' => 'woocommerce_related_columns',
'default' => '4',
'control' => array (
'label' => __( 'Related Products Columns', 'tb' ),
'type' => 'select',
'choices' => tb_grid_columns(),
),
),
array(
'id' => 'woo_product_meta',
'default' => 'on',
'control' => array (
'label' => __( 'Product Meta', 'tb' ),
'type' => 'checkbox',
'desc' => __( 'You must save your options and refresh your live site to preview changes to this setting.', 'tb' ),
),
),
array(
'id' => 'woo_next_prev',
'default' => 'on',
'control' => array (
'label' => __( 'Next & Previous Links', 'tb' ),
'type' => 'checkbox',
),
),
),
);
// Cart
$this->sections['tb_woocommerce_cart'] = array(
'title' => __( 'Cart', 'tb' ),
'panel' => 'tb_woocommerce',
'settings' => array(
array(
'id' => 'woocommerce_cross_sells_count',
'default' => '2',
'control' => array (
'label' => __( 'Cross-Sells Count', 'tb' ),
'type' => 'text',
),
),
array(
'id' => 'woocommerce_cross_sells_columns',
'default' => '2',
'control' => array (
'label' => __( 'Cross-Sells Columns', 'tb' ),
'type' => 'select',
'choices' => tb_grid_columns(),
),
),
),
);
// Styling
$this->sections['tb_woocommerce_styling'] = array(
'title' => __( 'Styling', 'tb' ),
'panel' => 'tb_woocommerce',
'settings' => array(
array(
'id' => 'onsale_bg',
'control' => array (
'type' => 'color',
'label' => __( 'On Sale Background', 'tb' ),
),
'inline_css' => array(
'target' => '.woocommerce span.onsale',
'alter' => 'background-color',
),
),
array(
'id' => 'onsale_color',
'control' => array (
'type' => 'color',
'label' => __( 'On Sale Color', 'tb' )
),
'inline_css' => array(
'target' => '.woocommerce span.onsale',
'alter' => 'color',
),
),
array(
'id' => 'woo_product_title_link_color',
'control' => array (
'type' => 'color',
'label' => __( 'Product Entry Title Color', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce ul.products li.product h3',
'.woocommerce ul.products li.product h3 mark',
),
'alter' => 'color',
),
),
array(
'id' => 'woo_product_title_link_color_hover',
'control' => array (
'type' => 'color',
'label' => __( 'Product Entry Title Color: Hover', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce ul.products li.product h3:hover',
'.woocommerce ul.products li.product h3:hover mark',
),
'alter' => 'color',
),
),
array(
'id' => 'woo_price_color',
'control' => array (
'type' => 'color',
'label' => __( 'Global Price Color', 'tb' )
),
'inline_css' => array(
'target' => array(
'.price',
'.amount',
'.woocommerce ul.products li.product .price .amount',
),
'alter' => 'color',
),
),
array(
'id' => 'woo_product_entry_price_color',
'control' => array (
'type' => 'color',
'label' => __( 'Product Entry Price Color', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce ul.products li.product .price',
'.woocommerce ul.products li.product .price .amount',
),
'alter' => 'color',
),
),
array(
'id' => 'woo_single_price_color',
'control' => array (
'type' => 'color',
'label' => __( 'Single Product Price Color', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce .summary .price',
'.woocommerce .summary .amount',
),
'alter' => 'color',
),
),
array(
'id' => 'woo_stars_color',
'control' => array (
'type' => 'color',
'label' => __( 'Star Ratings Color', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce p.stars a',
'.woocommerce .star-rating',
),
'alter' => 'color',
),
),
array(
'id' => 'woo_single_tabs_active_border_color',
'control' => array (
'type' => 'color',
'label' => __( 'Product Tabs Active Border Color', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce div.product .woocommerce-tabs ul.tabs li.active a',
),
'alter' => 'border-color',
),
),
array(
'id' => 'woo_button_bg',
'control' => array (
'type' => 'color',
'label' => __( 'Woo Button Background', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce input#submit',
'.woocommerce .button',
'a.wc-forward',
),
'alter' => 'background',
'important' => true,
),
),
array(
'id' => 'woo_button_color',
'control' => array (
'type' => 'color',
'label' => __( 'Woo Button Color', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce input#submit',
'.woocommerce .button',
'a.wc-forward',
),
'alter' => 'color',
'important' => true,
),
),
array(
'id' => 'woo_button_border_radius',
'control' => array (
'type' => 'text',
'label' => __( 'Woo Button Border Radius', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce input#submit',
'.woocommerce .button',
'a.wc-forward',
),
'alter' => 'border-radius',
'important' => true,
),
),
array(
'id' => 'woo_button_bg_hover',
'control' => array (
'type' => 'color',
'label' => __( 'Woo Button Hover: Background', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce input#submit:hover',
'.woocommerce .button:hover',
'a.wc-forward:hover',
),
'alter' => 'background',
'important' => true,
),
),
array(
'id' => 'woo_button_color_hover',
'control' => array (
'type' => 'color',
'label' => __( 'Woo Button Hover: Color', 'tb' )
),
'inline_css' => array(
'target' => array(
'.woocommerce input#submit:hover',
'.woocommerce .button:hover',
'a.wc-forward:hover',
),
'alter' => 'color',
'important' => true,
),
),
),
);