wecuro_blog/wp-content/themes/kadence/inc/customizer/options/woo-store-notice-options.php

135 lines
3.8 KiB
PHP
Executable File

<?php
/**
* Header Main Row Options
*
* @package Kadence
*/
namespace Kadence;
use Kadence\Theme_Customizer;
use function Kadence\kadence;
$settings = array(
'woocommerce_store_notice_tabs' => array(
'control_type' => 'kadence_tab_control',
'section' => 'woocommerce_store_notice',
'settings' => false,
'priority' => 1,
'input_attrs' => array(
'general' => array(
'label' => __( 'General', 'kadence' ),
'target' => 'woocommerce_store_notice',
),
'design' => array(
'label' => __( 'Design', 'kadence' ),
'target' => 'woocommerce_store_notice_design',
),
'active' => 'general',
),
),
'woocommerce_store_notice_tabs_design' => array(
'control_type' => 'kadence_tab_control',
'section' => 'woocommerce_store_notice_design',
'settings' => false,
'priority' => 1,
'input_attrs' => array(
'general' => array(
'label' => __( 'General', 'kadence' ),
'target' => 'woocommerce_store_notice',
),
'design' => array(
'label' => __( 'Design', 'kadence' ),
'target' => 'woocommerce_store_notice_design',
),
'active' => 'design',
),
),
'woo_store_notice_placement' => array(
'control_type' => 'kadence_radio_icon_control',
'section' => 'woocommerce_store_notice',
'transport' => 'refresh',
'default' => kadence()->default( 'woo_store_notice_placement' ),
'label' => esc_html__( 'Store Notice Placement', 'kadence' ),
'input_attrs' => array(
'layout' => array(
'standard' => array(
'tooltip' => __( 'Hangs down over the top of the header', 'kadence' ),
'name' => __( 'Hang Over Top', 'kadence' ),
'icon' => '',
),
'above' => array(
'tooltip' => __( 'Placed above the Header', 'kadence' ),
'name' => __( 'Above', 'kadence' ),
'icon' => '',
),
'bottom' => array(
'tooltip' => __( 'Stuck to the Bottom of the screen', 'kadence' ),
'name' => __( 'Bottom', 'kadence' ),
'icon' => '',
),
),
'responsive' => false,
),
),
'woo_store_notice_hide_dismiss' => array(
'control_type' => 'kadence_switch_control',
'sanitize' => 'kadence_sanitize_toggle',
'section' => 'woocommerce_store_notice',
'default' => kadence()->default( 'woo_store_notice_hide_dismiss' ),
'label' => esc_html__( 'Disable Dismiss Button?', 'kadence' ),
'transport' => 'refresh',
'context' => array(
array(
'setting' => 'woo_store_notice_placement',
'operator' => '=',
'value' => 'above',
),
),
),
'woo_store_notice_font' => array(
'control_type' => 'kadence_typography_control',
'section' => 'woocommerce_store_notice_design',
'label' => esc_html__( 'Notice Font', 'kadence' ),
'default' => kadence()->default( 'woo_store_notice_font' ),
'live_method' => array(
array(
'type' => 'css_typography',
'selector' => '.woocommerce-demo-store .woocommerce-store-notice, .woocommerce-demo-store .woocommerce-store-notice a',
'property' => 'font',
'key' => 'typography',
),
),
'input_attrs' => array(
'id' => 'woo_store_notice_font',
),
),
'woo_store_notice_background' => array(
'control_type' => 'kadence_color_control',
'section' => 'woocommerce_store_notice_design',
'label' => esc_html__( 'Background Color', 'kadence' ),
'default' => kadence()->default( 'woo_store_notice_background' ),
'live_method' => array(
array(
'type' => 'css',
'selector' => '.woocommerce-demo-store .woocommerce-store-notice',
'property' => 'background',
'pattern' => '$',
'key' => 'color',
),
),
'input_attrs' => array(
'colors' => array(
'color' => array(
'tooltip' => __( 'Overlay Color', 'kadence' ),
'palette' => true,
),
),
'allowGradient' => true,
),
),
);
Theme_Customizer::add_settings( $settings );