88 lines
2.5 KiB
PHP
Executable File
88 lines
2.5 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Header Main Row Options
|
|
*
|
|
* @package Kadence
|
|
*/
|
|
|
|
namespace Kadence;
|
|
|
|
use Kadence\Theme_Customizer;
|
|
use function Kadence\kadence;
|
|
|
|
$settings = array(
|
|
'info_tribe_events_archive_layout' => array(
|
|
'control_type' => 'kadence_title_control',
|
|
'section' => 'tribe_events_archive',
|
|
'priority' => 10,
|
|
'label' => esc_html__( 'Events Layout', 'kadence' ),
|
|
'settings' => false,
|
|
),
|
|
'tribe_events_archive_layout' => array(
|
|
'control_type' => 'kadence_radio_icon_control',
|
|
'section' => 'tribe_events_archive',
|
|
'label' => esc_html__( 'Events Layout', 'kadence' ),
|
|
'transport' => 'refresh',
|
|
'priority' => 10,
|
|
'default' => kadence()->default( 'tribe_events_archive_layout' ),
|
|
'input_attrs' => array(
|
|
'layout' => array(
|
|
'normal' => array(
|
|
'tooltip' => __( 'Normal', 'kadence' ),
|
|
'icon' => 'normal',
|
|
),
|
|
'narrow' => array(
|
|
'tooltip' => __( 'Narrow', 'kadence' ),
|
|
'icon' => 'narrow',
|
|
),
|
|
'fullwidth' => array(
|
|
'tooltip' => __( 'Fullwidth', 'kadence' ),
|
|
'icon' => 'fullwidth',
|
|
),
|
|
'left' => array(
|
|
'tooltip' => __( 'Left Sidebar', 'kadence' ),
|
|
'icon' => 'leftsidebar',
|
|
),
|
|
'right' => array(
|
|
'tooltip' => __( 'Right Sidebar', 'kadence' ),
|
|
'icon' => 'rightsidebar',
|
|
),
|
|
),
|
|
'class' => 'kadence-three-col',
|
|
'responsive' => false,
|
|
),
|
|
),
|
|
'tribe_events_archive_sidebar_id' => array(
|
|
'control_type' => 'kadence_select_control',
|
|
'section' => 'tribe_events_archive',
|
|
'label' => esc_html__( 'Events Sidebar', 'kadence' ),
|
|
'transport' => 'refresh',
|
|
'priority' => 10,
|
|
'default' => kadence()->default( 'tribe_events_archive_sidebar_id' ),
|
|
'input_attrs' => array(
|
|
'options' => kadence()->sidebar_options(),
|
|
),
|
|
),
|
|
'tribe_events_archive_content_background' => array(
|
|
'control_type' => 'kadence_background_control',
|
|
'section' => 'tribe_events_archive',
|
|
'label' => esc_html__( 'Events Background', 'kadence' ),
|
|
'default' => kadence()->default( 'tribe_events_archive_content_background' ),
|
|
'live_method' => array(
|
|
array(
|
|
'type' => 'css_background',
|
|
'selector' => 'body.post-type-archive-tribe_events .site, body.post-type-archive-tribe_events.content-style-unboxed .site',
|
|
'property' => 'background',
|
|
'pattern' => '$',
|
|
'key' => 'base',
|
|
),
|
|
),
|
|
'input_attrs' => array(
|
|
'tooltip' => __( 'Events Background', 'kadence' ),
|
|
),
|
|
),
|
|
);
|
|
|
|
Theme_Customizer::add_settings( $settings );
|
|
|