PluginProbe ʕ •ᴥ•ʔ
Event Tickets with Ticket Scanner / 3.1.2
Event Tickets with Ticket Scanner v3.1.2
3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.4 trunk 2.6.0 2.7.0 2.7.1 2.7.10 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.10 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.0 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 2.9.9 3.0.0 3.0.1 3.0.2 3.0.3
event-tickets-with-ticket-scanner / includes / congress / class-template-variables.php
event-tickets-with-ticket-scanner / includes / congress Last commit date
class-congress-admin.php 1 week ago class-congress-api.php 1 week ago class-congress-page.php 1 week ago class-congress-repository.php 1 week ago class-template-variables.php 1 week ago
class-template-variables.php
28 lines
1 <?php
2 if (!defined('ABSPATH')) exit;
3
4 /**
5 * Single source of truth for the Twig placeholder variables available in
6 * admin-authored templates (ticket PDFs and congress section text). Grouped
7 * for a dropdown UI. Tokens are the inner Twig expression (no braces).
8 */
9 class sasoEventtickets_TemplateVariables {
10
11 public static function getList(): array {
12 $td = 'event-tickets-with-ticket-scanner';
13 return [
14 ['group' => __('Ticket', $td), 'label' => __('Ticket number', $td), 'token' => 'TICKET.public_ticket_number'],
15 ['group' => __('Ticket', $td), 'label' => __('Start date', $td), 'token' => 'TICKET.start_date'],
16 ['group' => __('Ticket', $td), 'label' => __('Start time', $td), 'token' => 'TICKET.start_time'],
17 ['group' => __('Ticket', $td), 'label' => __('Location', $td), 'token' => 'TICKET.location'],
18 ['group' => __('Ticket', $td), 'label' => __('Seat label', $td), 'token' => 'TICKET.seat_label'],
19 ['group' => __('Order', $td), 'label' => __('Order number', $td), 'token' => 'ORDER.get_order_number()'],
20 ['group' => __('Order', $td), 'label' => __('Order date paid', $td), 'token' => 'TICKET.order_date_paid_text'],
21 ['group' => __('Customer', $td), 'label' => __('First name', $td), 'token' => 'CUSTOMER.first_name'],
22 ['group' => __('Customer', $td), 'label' => __('Last name', $td), 'token' => 'CUSTOMER.last_name'],
23 ['group' => __('Customer', $td), 'label' => __('Email', $td), 'token' => 'CUSTOMER.user_email'],
24 ['group' => __('Product', $td), 'label' => __('Product name', $td), 'token' => 'PRODUCT.get_name()'],
25 ];
26 }
27 }
28