Events_Bar::setup_content_controls()
{@inheritdoc}
Source
File: src/Tribe/Views/V2/Customizer/Section/Events_Bar.php
public function setup_content_controls() {
$customizer = tribe( 'customizer' );
return [
'events_bar_text_color' => [
'priority' => 3,
'type' => 'color',
'label' => esc_html_x(
'Text Color',
'The events bar text color setting label.',
'the-events-calendar'
),
],
'find_events_button_text_color' => [
'priority' => 5,
'type' => 'color',
'transport' => 'postMessage',
'label' => esc_html_x(
'Find Events Button Text',
'The "Find Events" button text color setting label.',
'the-events-calendar'
),
],
'events_bar_icon_color_choice' => [
'priority' => 15,
'type' => 'radio',
'label' => esc_html_x(
'Icons',
'The Events Bar icon color setting label.',
'the-events-calendar'
),
'choices' => [
'default' => esc_html_x(
'Default',
'Label for the default option.',
'the-events-calendar'
),
'accent' => sprintf(
/* translators: 1: Customizer url. */
_x(
'Use the <a href="%1$s">Accent Color</a>',
'Label for option to use the accent color. Links to the accent color setting.',
'the-events-calendar'
),
$customizer->get_setting_url(
'global_elements',
'accent_color'
)
),
'custom' => esc_html_x(
'Custom',
'Label for option to set a custom color.',
'the-events-calendar'
),
],
],
'events_bar_icon_color' => [
'priority' => 16, // Immediately after events_bar_icon_color_choice.
'type' => 'color',
],
'find_events_button_color_choice' => [
'priority' => 20,
'type' => 'radio',
'label' => esc_html_x(
'Find Events Button Color',
'The "Find Events" button color setting label.',
'the-events-calendar'
),
'choices' => [
'default' => sprintf(
/* translators: 1: Customizer url. */
_x(
'Use the <a href="%1$s">Accent Color</a>',
'Label for option to use the accent color (default). Links to the accent color setting.',
'the-events-calendar'
),
$customizer->get_setting_url(
'global_elements',
'accent_color'
)
),
'custom' => esc_html_x(
'Custom',
'Label for option to set a custom color.',
'the-events-calendar'
),
],
],
'find_events_button_color' => [
'priority' => 21, // Immediately after find_events_button_color_choice.
'type' => 'color',
],
'events_bar_background_color_choice' => [
'priority' => 25,
'type' => 'radio',
'label' => esc_html_x(
'Background Color',
'The Events Bar background color setting label.',
'the-events-calendar'
),
'choices' => [
'default' => esc_html_x(
'Default',
'Label for the default option.',
'the-events-calendar'
),
'global_background' => sprintf(
/* translators: 1: Customizer url. */
_x(
'Use the Calendar <a href="%1$s">Background Color</a>',
'Label for option to use the events background color. Links to the background color setting.',
'the-events-calendar'
),
$customizer->get_setting_url(
'global_elements',
'background_color_choice'
)
),
'custom' => esc_html_x(
'Custom',
'Label for option to set a custom color.',
'the-events-calendar'
),
]
],
'events_bar_background_color' => [
'priority' => 26, // Immediately after events_bar_background_color_choice.
'type' => 'color',
],
'events_bar_border_color_choice' => [
'priority' => 30,
'type' => 'radio',
'label' => esc_html_x(
'Border Color',
'The Events Bar border color setting label.',
'the-events-calendar'
),
'choices' => [
'default' => esc_html_x(
'Default',
'Label for the default option.',
'the-events-calendar'
),
'custom' => esc_html_x(
'Custom',
'Label for option to set a custom color.',
'the-events-calendar'
),
]
],
'events_bar_border_color' => [
'priority' => 31, // Immediately after events_bar_border_color_choice.
'type' => 'color',
],
];
}