@@ -5,42 +5,42 @@ |
||
5 | 5 | <table class="admin-primary-mbox-tbl"> |
6 | 6 | <thead> |
7 | 7 | <tr> |
8 | - <th class="jst-left"><?php esc_html_e( 'Event Name', 'event_espresso' );?></th> |
|
9 | - <th class="jst-left"><?php esc_html_e( 'REG ID', 'event_espresso' );?></th> |
|
10 | - <th class="jst-left"><?php esc_html_e( 'TXN ID', 'event_espresso' );?></th> |
|
11 | - <th class="jst-left"><?php esc_html_e( 'Reg Code', 'event_espresso' );?></th> |
|
12 | - <th class="jst-rght"><?php esc_html_e( 'Ticket Price', 'event_espresso' );?></th> |
|
8 | + <th class="jst-left"><?php esc_html_e('Event Name', 'event_espresso'); ?></th> |
|
9 | + <th class="jst-left"><?php esc_html_e('REG ID', 'event_espresso'); ?></th> |
|
10 | + <th class="jst-left"><?php esc_html_e('TXN ID', 'event_espresso'); ?></th> |
|
11 | + <th class="jst-left"><?php esc_html_e('Reg Code', 'event_espresso'); ?></th> |
|
12 | + <th class="jst-rght"><?php esc_html_e('Ticket Price', 'event_espresso'); ?></th> |
|
13 | 13 | </tr> |
14 | 14 | </thead> |
15 | 15 | <tbody> |
16 | - <?php foreach( $registrations as $registration ) : ?> |
|
16 | + <?php foreach ($registrations as $registration) : ?> |
|
17 | 17 | <tr> |
18 | 18 | <td class="jst-left"> |
19 | 19 | <?php |
20 | - $event_url = add_query_arg( array( 'action' => 'edit', 'post' => $registration->event_ID() ), admin_url( 'admin.php?page=espresso_events' )); |
|
21 | - echo EE_Registry::instance()->CAP->current_user_can( 'ee_edit_event', 'espresso_events_edit', $registration->event_ID() ) ? '<a href="'. $event_url .'" title="'. esc_attr__( 'Edit Event', 'event_espresso' ) .'">' . $registration->event_name() . '</a>' : $registration->event_name(); |
|
20 | + $event_url = add_query_arg(array('action' => 'edit', 'post' => $registration->event_ID()), admin_url('admin.php?page=espresso_events')); |
|
21 | + echo EE_Registry::instance()->CAP->current_user_can('ee_edit_event', 'espresso_events_edit', $registration->event_ID()) ? '<a href="'.$event_url.'" title="'.esc_attr__('Edit Event', 'event_espresso').'">'.$registration->event_name().'</a>' : $registration->event_name(); |
|
22 | 22 | ?> |
23 | 23 | </td> |
24 | 24 | <td class="jst-left"> |
25 | 25 | <?php |
26 | - $reg_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_registration', '_REG_ID'=>$registration->ID() ), REG_ADMIN_URL ); |
|
27 | - echo EE_Registry::instance()->CAP->current_user_can( 'ee_read_registration', 'espresso_registrations_view_registration', $registration->ID() ) ? ' |
|
28 | - <a href="'.$reg_url.'" title="' . esc_attr__( 'View Registration Details', 'event_espresso' ) . '">' . |
|
29 | - esc_html__( 'View Registration', 'event_espresso' ) . |
|
26 | + $reg_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_registration', '_REG_ID'=>$registration->ID()), REG_ADMIN_URL); |
|
27 | + echo EE_Registry::instance()->CAP->current_user_can('ee_read_registration', 'espresso_registrations_view_registration', $registration->ID()) ? ' |
|
28 | + <a href="'.$reg_url.'" title="'.esc_attr__('View Registration Details', 'event_espresso').'">'. |
|
29 | + esc_html__('View Registration', 'event_espresso'). |
|
30 | 30 | '</a>' : $registration->ID(); |
31 | 31 | ?> |
32 | 32 | </td> |
33 | 33 | <td class="jst-left"> |
34 | 34 | <?php |
35 | - $txn_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_transaction', 'TXN_ID'=>$registration->transaction_ID() ), TXN_ADMIN_URL ); |
|
36 | - echo EE_Registry::instance()->CAP->current_user_can( 'ee_read_transaction', 'espresso_transactions_view_transaction' ) ? ' |
|
37 | - <a href="'.$txn_url.'" title="' . esc_attr__( 'View Transaction Details', 'event_espresso' ) . '">' . |
|
38 | - sprintf( esc_html__('View Transaction %d', 'event_espresso'), $registration->transaction_ID() ) . |
|
35 | + $txn_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_transaction', 'TXN_ID'=>$registration->transaction_ID()), TXN_ADMIN_URL); |
|
36 | + echo EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction') ? ' |
|
37 | + <a href="'.$txn_url.'" title="'.esc_attr__('View Transaction Details', 'event_espresso').'">'. |
|
38 | + sprintf(esc_html__('View Transaction %d', 'event_espresso'), $registration->transaction_ID()). |
|
39 | 39 | '</a>' : $registration->transaction_ID(); |
40 | 40 | ?> |
41 | 41 | </td> |
42 | - <td class="jst-left"><?php echo $registration->reg_code();?></td> |
|
43 | - <td class="jst-rght"><?php echo EEH_Template::format_currency( $registration->final_price() );?></td> |
|
42 | + <td class="jst-left"><?php echo $registration->reg_code(); ?></td> |
|
43 | + <td class="jst-rght"><?php echo EEH_Template::format_currency($registration->final_price()); ?></td> |
|
44 | 44 | </tr> |
45 | 45 | <?php endforeach; ?> |
46 | 46 | </tbody> |
@@ -3,9 +3,9 @@ |
||
3 | 3 | </section> |
4 | 4 | <?php |
5 | 5 | /** |
6 | - * template args in use |
|
7 | - * |
|
8 | - * $PRT_ID |
|
9 | - * $PRT_operator |
|
10 | - * $PRT_is_percent |
|
11 | - */ |
|
12 | 6 | \ No newline at end of file |
7 | + * template args in use |
|
8 | + * |
|
9 | + * $PRT_ID |
|
10 | + * $PRT_operator |
|
11 | + * $PRT_is_percent |
|
12 | + */ |
|
13 | 13 | \ No newline at end of file |
@@ -5,12 +5,12 @@ |
||
5 | 5 | </li> |
6 | 6 | <?php |
7 | 7 | /** |
8 | - * template args in use |
|
9 | - * |
|
10 | - * $dtt_row |
|
11 | - * $tkt_row |
|
12 | - * $ticket_datetime_checked |
|
13 | - * $ticket_datetime_selected |
|
14 | - * $DTT_name; |
|
15 | - * $tkt_status_class; |
|
16 | - */ |
|
17 | 8 | \ No newline at end of file |
9 | + * template args in use |
|
10 | + * |
|
11 | + * $dtt_row |
|
12 | + * $tkt_row |
|
13 | + * $ticket_datetime_checked |
|
14 | + * $ticket_datetime_selected |
|
15 | + * $DTT_name; |
|
16 | + * $tkt_status_class; |
|
17 | + */ |
|
18 | 18 | \ No newline at end of file |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This template is responsible for the template pack and variations metabox that appears on the Message Templates editor. |
|
4 | - * |
|
5 | - * @since 4.5.0 |
|
6 | - * |
|
7 | - * Template args are: |
|
8 | - * |
|
9 | - * @type $template_packs_selector The selector for a template pack. |
|
10 | - * @type $variations_selector The selector for the variations on the selected template. |
|
11 | - * @type $template_pack_label The label for the template pack selector. |
|
12 | - * @type $template_variation_label The label for the template variation selector. |
|
13 | - * @type $template_pack_description The description for the template packs for the given messenger. |
|
14 | - * @type $template_variation_description The description for the template variations for the given messenger. |
|
15 | - */ |
|
3 | + * This template is responsible for the template pack and variations metabox that appears on the Message Templates editor. |
|
4 | + * |
|
5 | + * @since 4.5.0 |
|
6 | + * |
|
7 | + * Template args are: |
|
8 | + * |
|
9 | + * @type $template_packs_selector The selector for a template pack. |
|
10 | + * @type $variations_selector The selector for the variations on the selected template. |
|
11 | + * @type $template_pack_label The label for the template pack selector. |
|
12 | + * @type $template_variation_label The label for the template variation selector. |
|
13 | + * @type $template_pack_description The description for the template packs for the given messenger. |
|
14 | + * @type $template_variation_description The description for the template variations for the given messenger. |
|
15 | + */ |
|
16 | 16 | ?> |
17 | 17 | <div id="template-variations-selectors"> |
18 | 18 | <label for="MTP_template_pack"><?php echo $template_pack_label; ?>:</label> <?php echo $template_packs_selector; ?> <span class="spinner"></span> |