← Back
Editing: rsvp.php
<?php /** * Ticket editor panel template for classic editor. * * @since 5.30.0 * * @version 5.30.0 * * @var Tribe__Tickets__Ticket_Object $tc_rsvp The TC RSVP object. * @var Tribe__Tickets__Tickets $provider The provider instance. * @var array<string,string> $modules The available ticket modules. * @var array<string,string> $start_date_errors The ticket start date errors. * @var int $post_id The post ID. * @var int $timepicker_step The timepicker step. * @var int|null $rsvp_id The ticket post ID, or null if new. * @var int|null $rsvp_limit The limit for the RSVP. * @var string $default_module_class The default module class. * @var string $ticket_end_date The ticket end date. * @var string $provider_class The provider class. * @var string $rsvp_required_type_error_message Error message for required RSVP type. * @var string $show_not_going Whether to show the "Can't go" option. * @var string $ticket_start_date The ticket start date. * @var string $ticket_description The ticket description. * @var string $ticket_end_date_aria_label The ticket end date ARIA attribute. * @var string $ticket_end_date_help_text The ticket end date help text. * @var string $ticket_end_time The ticket end time. * @var string $ticket_start_date_aria_label The ticket start date ARIA attribute. * @var string $ticket_start_time The ticket start time. * @var string $timepicker_round The timepicker round. * @var string $ticket_type The type of Ticket the form is for. * @var Tribe__Tickets__Admin__Views $this The admin views instance. */ defined( 'ABSPATH' ) || die(); ?> <div id="tec_event_tickets_rsvp_panel" class="tribe-dependent panel_edit tribe-validation" aria-hidden="true" data-default-provider="<?php echo esc_attr( $default_module_class ); ?>" data-current-provider="<?php echo esc_attr( $provider_class ); ?>" class="tribe-dependent" data-depends="#tec_tickets_rsvp_enable" data-condition-is-checked > <?php /** * Allows for the insertion of additional elements into the main ticket edit panel. * * @since 5.30.0 * * @param int Post ID * @param int Ticket ID */ do_action( 'tribe_events_rsvp_pre_edit', $post_id, $rsvp_id ); ?> <div id="tec_tickets_rsvp_form" class="ticket_form tribe_sectionheader tribe-validation"> <div id="tec_tickets_rsvp_form_table" class="eventtable ticket_form"> <section id="tec_tickets_rsvp_form_main" class="main" data-datepicker_format="<?php echo esc_attr( Tribe__Date_Utils::get_datepicker_format_index() ); ?>"> <?php /** * Allows for the insertion of additional elements into the start of the main rsvp form. * * @since 5.30.0 * * @param int $post_id The post ID of the post the ticket is attached to. * @param string $ticket_type The type of ticket the form is being rendered for. * @param int|null $rsvp_id The post ID of the ticket that is being edited, `null` if the ticket is * being added. */ do_action( 'tec_event_tickets_rsvp_form__start', $post_id, $ticket_type, $rsvp_id ); ?> <input type='hidden' id='tec_tickets_rsvp_ticket_type' name='tec_tickets_rsvp_ticket_type' value="<?php echo esc_attr( $ticket_type ); ?>" /> <input type='hidden' id='tec_tickets_rsvp_post_id' name='post_ID' value="<?php echo absint( $post_id ); ?>" /> <input type='hidden' id='rsvp_id' name='rsvp_id' value="<?php echo absint( $rsvp_id ) === 0 ? '' : absint( $rsvp_id ); ?>" /> <?php $this->template( 'editor/panel/fields/limit' ); ?> <?php $this->template( 'editor/panel/fields/rsvp/dates' ); ?> <input type="hidden" id="tec_tickets_rsvp_ticket_provider" name="tec_tickets_rsvp_ticket_provider" value="<?php echo esc_attr( $provider_class ); ?>"/> <?php /** * Allows for the insertion of additional content into the ticket edit form - main section * * @since 5.30.0 * * @param int Post ID * @param int Ticket ID * @param string Ticket Type Whether this is a request for a ticket or an RSVP or something else. */ do_action( 'tec_event_tickets_rsvp_metabox_edit_main', $post_id, $rsvp_id, $ticket_type ); ?> </section> <div class="tec-tickets-rsvp-form__options" > <h4 id="tec_tickets_rsvp_title_edit" class="ticket_form_title" > <?php echo esc_html_x( 'Options', 'admin edit rsvp option panel heading', 'event-tickets' ); ?> </h4> <?php $this->template( [ 'components', 'switch-field' ], [ 'id' => 'show_not_going', 'name' => 'show_not_going', 'label' => esc_html_x( 'Enable "Can\'t go" responses', 'Label for toggle switch to enable negative RSVP responses in admin panel.', 'event-tickets' ), 'description' => '', 'tooltip' => '', 'value' => esc_attr( $show_not_going ), ] ); /** * Allows for the insertion of additional elements into the main ticket edit panel below the accordion * section * * @since 5.30.0 * * @param int Post ID * @param int Ticket ID */ do_action( 'tec_event_tickets_rsvp_post_options', $post_id, $rsvp_id ); ?> </div> <div class="tec-tickets-rsvp-bottom"> <div class="tec-tickets-rsvp-buttons-left"> <div class="tribe-common tribe-dependent" data-depends="#rsvp_id" data-condition-not-empty> <input type="button" id="tc_ticket_form_remove" class="tribe-validation-submit tec-tickets-rsvp-buttons__remove-rsvp" name="tc_ticket_form_remove" value="<?php echo esc_attr_x( 'Remove RSVP', 'Button text to remove RSVP settings in admin panel.', 'event-tickets' ); ?>" /> </div> <?php /** * Allows for the insertion of additional content into the ticket edit form bottom (buttons) section * * @since 5.30.0 * * @param int Post ID * @param int Ticket ID */ do_action( 'tec_event_tickets_rsvp_bottom', $post_id, $rsvp_id ); ?> </div> </div> </div> </div> </div>
Save File
Cancel