Widget_Featured_Venue::setup_admin_fields()
{@inheritDoc}
Source
File: src/Tribe/Views/V2/Widgets/Widget_Featured_Venue.php
public function setup_admin_fields() {
return [
'title' => [
'label' => _x( 'Title:', 'The label for the field of the title of the Featured Venue Widget.', 'tribe-events-calendar-pro' ),
'type' => 'text',
],
'venue_ID' => [
'type' => 'venue-dropdown',
'label' => _x( 'Venue:', 'The label for the venue field of the Featured Venue Widget.', 'tribe-events-calendar-pro' ),
'placeholder' => sprintf( /* Translators: 1: single event term */ esc_html__( 'Select an %1$s', 'tribe-events-calendar-pro' ), tribe_get_venue_label_singular() ),
'disabled' => '',
'options' => [
[
'text' => _x( 'Choose a venue.', 'The label to choose the venue to show in the Featured Venue Widget.', 'tribe-events-calendar-pro' ),
'value' => '',
],
],
'selected' => $this->get_default_venue_id(),
],
'count' => [
'label' => _x( 'Show:', 'The label for the amount of events to show in the Featured Venue Widget.', 'tribe-events-calendar-pro' ),
'type' => 'number',
'default' => $this->default_arguments['count'],
'min' => 1,
'max' => 10,
'step' => 1,
],
'hide_if_empty' => [
'label' => _x( 'Hide this widget if there are no upcoming events.', 'The label for the option to hide the Featured Venue Widget if no upcoming events.', 'tribe-events-calendar-pro' ),
'type' => 'checkbox',
],
'jsonld_enable' => [
'label' => _x( 'Generate JSON-LD data', 'The label for the option to enable JSON-LD in the Featured Venue Widget.', 'tribe-events-calendar-pro' ),
'type' => 'checkbox',
],
];
}