Widget_Month::setup_admin_fields()
{@inheritDoc}
Source
File: src/Tribe/Views/V2/Widgets/Widget_Month.php
public function setup_admin_fields() {
$admin_fields = [
'title' => [
'type' => 'text',
'label' => _x(
'Title:',
'The label for the title field of the Month Widget.',
'tribe-events-calendar-pro'
),
'default' => sprintf(
_x(
'%1$s Calendar',
'The title of the Month Widget.',
'tribe-events-calendar-pro'
),
tribe_get_event_label_plural()
),
],
'count' => [
'type' => 'number',
'label' => _x(
'Number of events to list below the widget calendar:',
'tribe-events-calendar-pro'
),
'default' => $this->default_arguments['count'],
'min' => 1,
'max' => 10,
'step' => 1,
],
];
// Add the taxonomy filter controls. Before the JSON checkbox.
$admin_fields = array_merge( $admin_fields, tribe( 'pro.views.v2.widgets.taxonomy' )->get_taxonomy_admin_section() );
$admin_fields ['jsonld_enable'] = [
'type' => 'checkbox',
'label' => _x(
'Generate JSON-LD data',
'The label for the option to enable JSON-LD in the Month Widget.',
'tribe-events-calendar-pro'
),
];
return $admin_fields;
}