Month_View::setup_content_controls()
{@inheritdoc}
Source
File: src/Tribe/Views/V2/Customizer/Section/Month_View.php
public function setup_content_controls() {
$customizer = tribe( 'customizer' );
return [
'days_of_week_color' => [
'priority' => 3,
'type' => 'color',
'label' => esc_html_x(
'Days of the Week',
'The days of the week text color setting label.',
'the-events-calendar'
),
],
'date_marker_color' => [
'priority' => 5,
'type' => 'color',
'label' => esc_html_x(
'Date Marker',
'The date marker text color setting label.',
'the-events-calendar'
),
],
'grid_background_color_choice' => [
'priority' => 17,
'type' => 'radio',
'label' => esc_html_x(
'Grid Background',
'The grid background color setting label.',
'the-events-calendar'
),
'choices' => [
'transparent' => esc_html_x(
'Transparent',
'Label for option to leave transparent (default).',
'the-events-calendar'
),
'custom' => esc_html_x(
'Custom',
'Label for option to set a custom color.',
'the-events-calendar'
),
],
],
'grid_background_color' => [
'priority' => 18, // This should come immediately after 'grid_background_color_choice'.
'type' => 'color',
],
'tooltip_background_color' => [
'priority' => 18, // This should come immediately after 'grid_background_color_choice'.
'type' => 'radio',
'label' => esc_html_x(
'Event Preview Background',
'Label for tooltip background color setting.',
'the-events-calendar'
),
'description' => esc_html_x(
'Preview display when hovering on an event title',
'The grid background color setting description.',
'the-events-calendar'
),
'choices' => [
'default' => _x(
'White',
'Label for option to leave white (default).',
'the-events-calendar'
),
'event' => sprintf(
/* translators: 1: Customizer url. */
_x(
'Use the <a href="%1$s">General Background Color</a>',
'Label for option to use the event background color. Links to the event background color setting.',
'the-events-calendar'
),
$customizer->get_setting_url(
'global_elements',
'background_color_choice'
)
)
],
],
'grid_lines_color' => [
'priority' => 13,
'type' => 'color',
'label' => esc_html_x(
'Grid Lines Color',
'The grid lines color setting label.',
'the-events-calendar'
),
],
'multiday_event_bar_color_choice' => [
'priority' => 7,
'type' => 'radio',
'label' => esc_html_x(
'Event Span',
'The multiday event bar color setting label.',
'the-events-calendar'
),
'description' => esc_html_x(
'For all-day and multi-day events',
'The multiday event bar color setting description.',
'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. Links to the accent color setting.',
'the-events-calendar'
),
$customizer->get_setting_url(
'global_elements',
'accent_color'
)
),
'custom' => _x(
'Custom',
'Label for option to set a custom color.',
'the-events-calendar'
),
],
],
'multiday_event_bar_color' => [
'priority' => 9,
'type' => 'color',
],
'grid_hover_color' => [
'priority' => 15,
'type' => 'color',
'label' => esc_html_x(
'Day Hover',
'Day hover color setting label.',
'the-events-calendar'
),
'description' => esc_html_x(
'Bottom border highlight when hovering on a day',
'The grid hover color setting description.',
'the-events-calendar'
),
],
];
}