@@ -3,13 +3,15 @@ |
||
3 | 3 | <div class="clearfix"> |
4 | 4 | <?php _e( 'There is no billing info for this transaction.', 'event_espresso' );?><br/> |
5 | 5 | </div> |
6 | -<?php else : |
|
6 | +<?php else { |
|
7 | + : |
|
7 | 8 | function ee_show_billing_info_cleaned( EE_Form_Section_Proper $form_section ) { |
8 | 9 | foreach( $form_section->subsections() as $subsection ) { |
9 | 10 | if( $subsection instanceof EE_Form_Input_Base ) { |
10 | 11 | if( $subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal || |
11 | 12 | $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal ){ |
12 | 13 | continue; |
14 | +} |
|
13 | 15 | } |
14 | 16 | ?> |
15 | 17 | <div class="clearfix"> |
@@ -1,37 +1,37 @@ |
||
1 | 1 | <div id="admin-side-mbox-billing-info-dv" class="admin-side-mbox-dv"> |
2 | -<?php if ( empty($billing_form) ) : ?> |
|
2 | +<?php if (empty($billing_form)) : ?> |
|
3 | 3 | <div class="clearfix"> |
4 | - <?php _e( 'There is no billing info for this transaction.', 'event_espresso' );?><br/> |
|
4 | + <?php _e('There is no billing info for this transaction.', 'event_espresso'); ?><br/> |
|
5 | 5 | </div> |
6 | 6 | <?php else : |
7 | - function ee_show_billing_info_cleaned( EE_Form_Section_Proper $form_section, $found_cc_data = false ) { |
|
8 | - foreach( $form_section->subsections() as $subsection ) { |
|
9 | - if( $subsection instanceof EE_Form_Input_Base ) { |
|
10 | - if( $subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal || |
|
11 | - $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal ){ |
|
7 | + function ee_show_billing_info_cleaned(EE_Form_Section_Proper $form_section, $found_cc_data = false) { |
|
8 | + foreach ($form_section->subsections() as $subsection) { |
|
9 | + if ($subsection instanceof EE_Form_Input_Base) { |
|
10 | + if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal || |
|
11 | + $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal) { |
|
12 | 12 | continue; |
13 | 13 | } |
14 | - if( $subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal ) { |
|
14 | + if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal) { |
|
15 | 15 | $found_cc_data = true; |
16 | 16 | } |
17 | 17 | ?> |
18 | 18 | <div class="clearfix"> |
19 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php echo $subsection->get_html_for_label();?></span><?php echo $subsection->pretty_value();?> |
|
19 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php echo $subsection->get_html_for_label(); ?></span><?php echo $subsection->pretty_value(); ?> |
|
20 | 20 | </div><?php |
21 | - } elseif( $subsection instanceof EE_Form_Section_Proper ) { |
|
22 | - $found_cc_data = ee_show_billing_info_cleaned( $subsection, $found_cc_data); |
|
21 | + } elseif ($subsection instanceof EE_Form_Section_Proper) { |
|
22 | + $found_cc_data = ee_show_billing_info_cleaned($subsection, $found_cc_data); |
|
23 | 23 | } |
24 | 24 | } |
25 | 25 | return $found_cc_data; |
26 | 26 | } |
27 | - $found_cc_data = ee_show_billing_info_cleaned( $billing_form ); |
|
28 | - if( apply_filters( |
|
27 | + $found_cc_data = ee_show_billing_info_cleaned($billing_form); |
|
28 | + if (apply_filters( |
|
29 | 29 | 'FHEE__txn_admin_details_side_meta_box_billing_info__show_default_note', |
30 | 30 | $found_cc_data, |
31 | - $billing_form ) ) {?> |
|
32 | - <p class="help"><?php _e( 'Note: Card expiry dates and CCV are not stored. Only the last 4 digits of card numbers are stored.', 'event_espresso' );?></p> |
|
31 | + $billing_form )) {?> |
|
32 | + <p class="help"><?php _e('Note: Card expiry dates and CCV are not stored. Only the last 4 digits of card numbers are stored.', 'event_espresso'); ?></p> |
|
33 | 33 | <?php } |
34 | - do_action( 'AHEE__txn_admin_details_side_meta_box_billing_info__billing_form_footer', $billing_form ); |
|
34 | + do_action('AHEE__txn_admin_details_side_meta_box_billing_info__billing_form_footer', $billing_form); |
|
35 | 35 | endif; ?> |
36 | 36 | |
37 | 37 | </div> |
@@ -9,23 +9,23 @@ discard block |
||
9 | 9 | /** @type string $edit_attendee_url */ |
10 | 10 | ?> |
11 | 11 | <div id="admin-side-mbox-primary-registrant-dv" class="admin-side-mbox-dv"> |
12 | -<?php if ( ! empty( $no_attendee_message ) ) : ?> |
|
12 | +<?php if ( ! empty($no_attendee_message)) : ?> |
|
13 | 13 | <p class="clearfix"> |
14 | 14 | <?php echo $no_attendee_message; ?> |
15 | 15 | </p> |
16 | 16 | </div> <!-- end #admin-side-mbox-primary-registrant-dv --> |
17 | 17 | <?php else : ?> |
18 | 18 | <p class="clearfix"> |
19 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e( 'Name', 'event_espresso' );?></span><?php echo $prime_reg_fname . ' ' . $prime_reg_lname;?> |
|
19 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Name', 'event_espresso'); ?></span><?php echo $prime_reg_fname.' '.$prime_reg_lname; ?> |
|
20 | 20 | </p> |
21 | 21 | <p class="clearfix"> |
22 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e( 'Email', 'event_espresso' );?></span><a href="mailto:<?php echo $prime_reg_email;?>"><?php echo $prime_reg_email;?></a> |
|
22 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Email', 'event_espresso'); ?></span><a href="mailto:<?php echo $prime_reg_email; ?>"><?php echo $prime_reg_email; ?></a> |
|
23 | 23 | </p> |
24 | 24 | <p class="clearfix"> |
25 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e( 'Phone #', 'event_espresso' );?></span><?php echo $prime_reg_phone;?> |
|
25 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Phone #', 'event_espresso'); ?></span><?php echo $prime_reg_phone; ?> |
|
26 | 26 | </p> |
27 | 27 | <p class="clearfix"> |
28 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e( 'Address', 'event_espresso' );?></span> |
|
28 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e('Address', 'event_espresso'); ?></span> |
|
29 | 29 | <div class="admin-side-mbox-text-dv"> |
30 | 30 | <?php echo $formatted_address; ?> |
31 | 31 | </div> |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | |
35 | 35 | |
36 | 36 | <p style="text-align:right;"> |
37 | - <a class="button button-small" href="<?php echo $edit_attendee_url; ?>" title="<?php esc_attr_e( 'View details for this contact.', 'event_espresso' );?>"> |
|
37 | + <a class="button button-small" href="<?php echo $edit_attendee_url; ?>" title="<?php esc_attr_e('View details for this contact.', 'event_espresso'); ?>"> |
|
38 | 38 | <span class="ee-icon ee-icon-user-edit"></span><?php _e('View / Edit this Contact', 'event_espresso'); ?> |
39 | 39 | </a> |
40 | 40 | </p> |
41 | -<?php endif; //end no attendee check?> |
|
41 | +<?php endif; //end no attendee check?> |
@@ -14,9 +14,12 @@ |
||
14 | 14 | <?php echo $no_attendee_message; ?> |
15 | 15 | </p> |
16 | 16 | </div> <!-- end #admin-side-mbox-primary-registrant-dv --> |
17 | -<?php else : ?> |
|
17 | +<?php else { |
|
18 | + : ?> |
|
18 | 19 | <p class="clearfix"> |
19 | - <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e( 'Name', 'event_espresso' );?></span><?php echo $prime_reg_fname . ' ' . $prime_reg_lname;?> |
|
20 | + <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e( 'Name', 'event_espresso' ); |
|
21 | +} |
|
22 | +?></span><?php echo $prime_reg_fname . ' ' . $prime_reg_lname;?> |
|
20 | 23 | </p> |
21 | 24 | <p class="clearfix"> |
22 | 25 | <span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php _e( 'Email', 'event_espresso' );?></span><a href="mailto:<?php echo $prime_reg_email;?>"><?php echo $prime_reg_email;?></a> |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | <table id="admin-primary-mbox-txn-details-tbl" class="form-table"> |
4 | 4 | <tbody> |
5 | - <?php foreach ( $txn_details as $key => $txn_detail ) : ?> |
|
5 | + <?php foreach ($txn_details as $key => $txn_detail) : ?> |
|
6 | 6 | <tr> |
7 | 7 | <th> |
8 | - <label for="<?php echo $key;?>"><?php echo $txn_detail['label'];?></label> |
|
8 | + <label for="<?php echo $key; ?>"><?php echo $txn_detail['label']; ?></label> |
|
9 | 9 | </th> |
10 | 10 | <td> |
11 | - <?php echo $txn_detail['value'];?> |
|
11 | + <?php echo $txn_detail['value']; ?> |
|
12 | 12 | </td> |
13 | 13 | </tr> |
14 | 14 | <?php endforeach; // $txn_details?> |
@@ -1,19 +1,19 @@ |
||
1 | 1 | |
2 | 2 | <ul class="subsubsub"> |
3 | - <li class="all"><a class="current" href="<?php echo $view_all_url;?>">View All <span class="count">(<?php echo $table_rows; ?>)</span></a></li> |
|
3 | + <li class="all"><a class="current" href="<?php echo $view_all_url; ?>">View All <span class="count">(<?php echo $table_rows; ?>)</span></a></li> |
|
4 | 4 | </ul> |
5 | 5 | |
6 | 6 | <div id="txn-filters-dv"> |
7 | - <form id="txn-filters-frm" action="<?php echo $txn_overview_url;?>" method="post" name="txn-filters-frm"> |
|
8 | - <label for="txn-filter-start-date"><?php _e( 'Display Transactions from ', 'event_espresso' ); ?></label> |
|
7 | + <form id="txn-filters-frm" action="<?php echo $txn_overview_url; ?>" method="post" name="txn-filters-frm"> |
|
8 | + <label for="txn-filter-start-date"><?php _e('Display Transactions from ', 'event_espresso'); ?></label> |
|
9 | 9 | <input id="txn-filter-start-date" class="datepicker" type="text" value="<?php echo $start_date; ?>" name="txn-filter-start-date" size="15"/> |
10 | - <label for="txn-filter-end-date"> <?php _e( 'until', 'event_espresso' ); ?> </label> |
|
10 | + <label for="txn-filter-end-date"> <?php _e('until', 'event_espresso'); ?> </label> |
|
11 | 11 | <input id="txn-filter-end-date" class="datepicker" type="text" value="<?php echo $end_date; ?>" name="txn-filter-end-date" size="15"/> |
12 | 12 | <input id="submit-txn-filters-sbmt" class="button-secondary" type="submit" value="Filter Months"> |
13 | 13 | </form> |
14 | 14 | </div> |
15 | 15 | |
16 | - <form id="transactions-overview-frm" action="<?php echo $txn_overview_url;?>" method="get"> |
|
16 | + <form id="transactions-overview-frm" action="<?php echo $txn_overview_url; ?>" method="get"> |
|
17 | 17 | <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /> |
18 | 18 | <input type="hidden" id="per_page" name="per_page" value="" /> |
19 | 19 | <?php echo $list_table->display(); ?> |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <div class="wrap"> |
2 | 2 | |
3 | - <h2><?php esc_attr_e( 'Event Espresso', 'event_espresso' ); ?> - <?php esc_attr_e( $admin_page_title, 'event_espresso' ); ?></h2> |
|
3 | + <h2><?php esc_attr_e('Event Espresso', 'event_espresso'); ?> - <?php esc_attr_e($admin_page_title, 'event_espresso'); ?></h2> |
|
4 | 4 | |
5 | 5 | <h2 class="nav-tab-wrapper"> |
6 | 6 | <a class="nav-tab<?php echo $tab_active_overview; ?>" href="<?php echo $tab_url_overview; ?>"><?php echo $tab_lnk_overview; ?></a> |
7 | - <?php if ( $tab_details ) : ?> |
|
7 | + <?php if ($tab_details) : ?> |
|
8 | 8 | <a class="nav-tab<?php echo $tab_active_details; ?>" href="<?php echo $tab_url_details; ?>"><?php echo $tab_lnk_details; ?></a> |
9 | 9 | <?php endif; ?> |
10 | 10 | <a class="nav-tab<?php echo $tab_active_reports; ?>" href="<?php echo $tab_url_reports; ?>"><?php echo $tab_lnk_reports; ?></a> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
3 | 3 | exit('NO direct script access allowed'); |
4 | 4 | |
5 | 5 | /** |
@@ -32,15 +32,15 @@ discard block |
||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | - public function __construct( $routing = TRUE ) { |
|
36 | - parent::__construct( $routing ); |
|
37 | - define( 'EE_ABOUT_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'about/templates/' ); |
|
35 | + public function __construct($routing = TRUE) { |
|
36 | + parent::__construct($routing); |
|
37 | + define('EE_ABOUT_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND.'about/templates/'); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | 42 | protected function _extend_page_config() { |
43 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'about'; |
|
43 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND.'about'; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | protected function _set_page_routes() { |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | protected function _whats_new() { |
90 | 90 | $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE; |
91 | 91 | $steps = $steps !== FALSE ? $steps : ''; |
92 | - $this->_admin_page_title = sprintf( __('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION ); |
|
92 | + $this->_admin_page_title = sprintf(__('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION); |
|
93 | 93 | $settings_message = $steps; |
94 | - $this->_template_args['admin_page_subtitle'] = __('Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', 'event_espresso'). $settings_message ; |
|
95 | - $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php') ? EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php' : EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php'; |
|
96 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
|
94 | + $this->_template_args['admin_page_subtitle'] = __('Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', 'event_espresso').$settings_message; |
|
95 | + $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH.'whats_new.template.php') ? EE_ABOUT_CAF_TEMPLATE_PATH.'whats_new.template.php' : EE_ABOUT_TEMPLATE_PATH.'whats_new.template.php'; |
|
96 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template($template, $this->_template_args, TRUE); |
|
97 | 97 | $this->display_about_admin_page(); |
98 | 98 | } |
99 | 99 | |
@@ -101,16 +101,16 @@ discard block |
||
101 | 101 | protected function _overview() { |
102 | 102 | $this->_admin_page_title = __('About Event Espresso', 'event_espresso'); |
103 | 103 | $this->_template_args['admin_page_subtitle'] = __('Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', 'event_espresso'); |
104 | - $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php') ? EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php' : EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
105 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
|
104 | + $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH.'ee4-overview.template.php') ? EE_ABOUT_CAF_TEMPLATE_PATH.'ee4-overview.template.php' : EE_ABOUT_TEMPLATE_PATH.'ee4-overview.template.php'; |
|
105 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template($template, $this->_template_args, TRUE); |
|
106 | 106 | $this->display_about_admin_page(); |
107 | 107 | } |
108 | 108 | |
109 | 109 | protected function _credits() { |
110 | 110 | // $this->_template_args['admin_page_title'] = sprintf( __('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION ); |
111 | 111 | $this->_template_args['admin_page_subtitle'] = __('Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', 'event_espresso'); |
112 | - $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
113 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
|
112 | + $template = EE_ABOUT_TEMPLATE_PATH.'credits.template.php'; |
|
113 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template($template, $this->_template_args, TRUE); |
|
114 | 114 | $this->display_about_admin_page(); |
115 | 115 | } |
116 | 116 | } |
@@ -6,8 +6,9 @@ |
||
6 | 6 | * @package Event Espresso |
7 | 7 | * @subpackage messages |
8 | 8 | */ |
9 | -if (!defined('EVENT_ESPRESSO_VERSION') ) |
|
9 | +if (!defined('EVENT_ESPRESSO_VERSION') ) { |
|
10 | 10 | exit('NO direct script access allowed'); |
11 | +} |
|
11 | 12 | |
12 | 13 | /** |
13 | 14 | * |
@@ -1,25 +1,25 @@ |
||
1 | 1 | <div class="changelog point-releases"> |
2 | - <!-- <h3><?php echo _n( 'Minor Release Information', 'Minor Releases', 1 ); ?></h3> --> |
|
3 | - <h3><?php echo _n( 'Major Release Information', 'Major Releases', 1 ); ?></h3> |
|
2 | + <!-- <h3><?php echo _n('Minor Release Information', 'Minor Releases', 1); ?></h3> --> |
|
3 | + <h3><?php echo _n('Major Release Information', 'Major Releases', 1); ?></h3> |
|
4 | 4 | <?php //$type = 'minor'; ?> |
5 | 5 | <?php $type = 'major'; ?> |
6 | - <p><?php printf( __( '<strong>Version %1$s</strong> is a %2$s release.', 'event_espresso'), EVENT_ESPRESSO_VERSION, $type ); ?> |
|
6 | + <p><?php printf(__('<strong>Version %1$s</strong> is a %2$s release.', 'event_espresso'), EVENT_ESPRESSO_VERSION, $type); ?> |
|
7 | 7 | <?php |
8 | - $ver = explode( '.', EVENT_ESPRESSO_VERSION ); |
|
9 | - array_pop( $ver ); |
|
10 | - $ver = implode( '.', $ver ); |
|
8 | + $ver = explode('.', EVENT_ESPRESSO_VERSION); |
|
9 | + array_pop($ver); |
|
10 | + $ver = implode('.', $ver); |
|
11 | 11 | ?> |
12 | - <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://eventespresso.com/wiki/ee4-changelog/#' . $ver ); ?> |
|
12 | + <?php printf(__('For more information, see <a href="%s">the release notes</a>.'), 'http://eventespresso.com/wiki/ee4-changelog/#'.$ver); ?> |
|
13 | 13 | </p> |
14 | 14 | </div> |
15 | 15 | |
16 | 16 | <div class="changelog"> |
17 | 17 | <?php |
18 | 18 | //maintenance mode on? |
19 | - if ( EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance ) { |
|
19 | + if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
20 | 20 | ?> |
21 | 21 | <div class="ee-attention"> |
22 | - <h2 class="ee-maintenance-mode-callout"><?php _e('Event Espresso is in full maintenance mode.' , 'event_espresso'); ?></h2> |
|
22 | + <h2 class="ee-maintenance-mode-callout"><?php _e('Event Espresso is in full maintenance mode.', 'event_espresso'); ?></h2> |
|
23 | 23 | <p> |
24 | 24 | <?php |
25 | 25 | printf( |
@@ -17,14 +17,14 @@ |
||
17 | 17 | */ |
18 | 18 | class Extend_Events_Admin_List_Table extends Events_Admin_List_Table { |
19 | 19 | |
20 | - protected function _column_name_action_setup( EE_Event $item ) { |
|
20 | + protected function _column_name_action_setup(EE_Event $item) { |
|
21 | 21 | $export_query_args = array( |
22 | 22 | 'action' => 'export_events', |
23 | 23 | 'EVT_ID' => $item->ID() |
24 | 24 | ); |
25 | - $export_event_link = EE_Admin_Page::add_query_args_and_nonce( $export_query_args, EVENTS_ADMIN_URL ); |
|
25 | + $export_event_link = EE_Admin_Page::add_query_args_and_nonce($export_query_args, EVENTS_ADMIN_URL); |
|
26 | 26 | |
27 | - $actions = parent::_column_name_action_setup( $item ); |
|
27 | + $actions = parent::_column_name_action_setup($item); |
|
28 | 28 | // $actions['export'] = '<a href="' . $export_event_link . '" title="' . __('Export Event', 'event_espresso') . '">' . __('Export', 'event_espresso') . '</a>'; |
29 | 29 | return $actions; |
30 | 30 | } |
@@ -5,7 +5,9 @@ |
||
5 | 5 | * @subpackage plugin api, messages |
6 | 6 | * @since 4.5.0 |
7 | 7 | */ |
8 | -if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed'); |
|
8 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
9 | + exit('No direct script access allowed'); |
|
10 | +} |
|
9 | 11 | |
10 | 12 | /** |
11 | 13 | * Use this to register or deregister a new message template pack variation for the EE messages system. |
@@ -31,9 +31,9 @@ discard block |
||
31 | 31 | |
32 | 32 | protected function _setup_data() { |
33 | 33 | $trashed = $this->_admin_page->get_view() == 'trashed' ? TRUE : FALSE; |
34 | - $this->_data = $this->_admin_page->get_default_tickets( $this->_per_page, FALSE, $trashed ); |
|
35 | - $this->_all_data_count = $this->_admin_page->get_default_tickets( $this->_per_page, TRUE, FALSE ); |
|
36 | - $this->_trashed_count = $this->_admin_page->get_default_tickets( $this->_per_page, TRUE, TRUE ); |
|
34 | + $this->_data = $this->_admin_page->get_default_tickets($this->_per_page, FALSE, $trashed); |
|
35 | + $this->_all_data_count = $this->_admin_page->get_default_tickets($this->_per_page, TRUE, FALSE); |
|
36 | + $this->_trashed_count = $this->_admin_page->get_default_tickets($this->_per_page, TRUE, TRUE); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | |
@@ -61,13 +61,13 @@ discard block |
||
61 | 61 | |
62 | 62 | $this->_sortable_columns = array( |
63 | 63 | // TRUE means its already sorted |
64 | - 'TKT_name' => array( 'TKT_name' => TRUE ), |
|
65 | - 'TKT_description' => array( 'TKT_description' => FALSE ), |
|
66 | - 'TKT_qty' => array( 'TKT_qty' => FALSE ), |
|
67 | - 'TKT_uses' => array( 'TKT_uses' => FALSE ), |
|
68 | - 'TKT_min' => array( 'TKT_min' => FALSE ), |
|
69 | - 'TKT_max' => array( 'TKT_max' => FALSE ), |
|
70 | - 'TKT_price' => array( 'TKT_price' => FALSE ) |
|
64 | + 'TKT_name' => array('TKT_name' => TRUE), |
|
65 | + 'TKT_description' => array('TKT_description' => FALSE), |
|
66 | + 'TKT_qty' => array('TKT_qty' => FALSE), |
|
67 | + 'TKT_uses' => array('TKT_uses' => FALSE), |
|
68 | + 'TKT_min' => array('TKT_min' => FALSE), |
|
69 | + 'TKT_max' => array('TKT_max' => FALSE), |
|
70 | + 'TKT_price' => array('TKT_price' => FALSE) |
|
71 | 71 | ); |
72 | 72 | |
73 | 73 | $this->_hidden_columns = array( |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | |
95 | 95 | function column_cb($item) { |
96 | - return $item->ID() === 1 ? '<span class="ee-lock-icon"></span>' : sprintf( '<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', /* $1%s */ $item->ID() ); |
|
96 | + return $item->ID() === 1 ? '<span class="ee-lock-icon"></span>' : sprintf('<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', /* $1%s */ $item->ID()); |
|
97 | 97 | |
98 | 98 | } |
99 | 99 | |
@@ -104,21 +104,21 @@ discard block |
||
104 | 104 | $actions = array(); |
105 | 105 | |
106 | 106 | //trash links |
107 | - if ( $item->ID() !== 1 ) { |
|
108 | - if ( $this->_view == 'all' ) { |
|
109 | - $trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action' => 'trash_ticket', 'TKT_ID' => $item->ID() ), EVENTS_ADMIN_URL ); |
|
110 | - $actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' . esc_attr__('Move Ticket to trash', 'event_espresso') . '">' . __('Trash', 'event_espresso') . '</a>'; |
|
107 | + if ($item->ID() !== 1) { |
|
108 | + if ($this->_view == 'all') { |
|
109 | + $trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'trash_ticket', 'TKT_ID' => $item->ID()), EVENTS_ADMIN_URL); |
|
110 | + $actions['trash'] = '<a href="'.$trash_lnk_url.'" title="'.esc_attr__('Move Ticket to trash', 'event_espresso').'">'.__('Trash', 'event_espresso').'</a>'; |
|
111 | 111 | } else { |
112 | 112 | // restore price link |
113 | - $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'restore_ticket', 'TKT_ID'=>$item->ID() ), EVENTS_ADMIN_URL ); |
|
114 | - $actions['restore'] = '<a href="'.$restore_lnk_url.'" title="' . esc_attr__( 'Restore Ticket', 'event_espresso' ) . '">' . __( 'Restore', 'event_espresso' ) . '</a>'; |
|
113 | + $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'restore_ticket', 'TKT_ID'=>$item->ID()), EVENTS_ADMIN_URL); |
|
114 | + $actions['restore'] = '<a href="'.$restore_lnk_url.'" title="'.esc_attr__('Restore Ticket', 'event_espresso').'">'.__('Restore', 'event_espresso').'</a>'; |
|
115 | 115 | // delete price link |
116 | - $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'delete_ticket', 'TKT_ID'=>$item->ID() ), EVENTS_ADMIN_URL ); |
|
117 | - $actions['delete'] = '<a href="'.$delete_lnk_url.'" title="' . esc_attr__( 'Delete Ticket Permanently', 'event_espresso' ) . '">' . __( 'Delete Permanently', 'event_espresso' ) . '</a>'; |
|
116 | + $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'delete_ticket', 'TKT_ID'=>$item->ID()), EVENTS_ADMIN_URL); |
|
117 | + $actions['delete'] = '<a href="'.$delete_lnk_url.'" title="'.esc_attr__('Delete Ticket Permanently', 'event_espresso').'">'.__('Delete Permanently', 'event_espresso').'</a>'; |
|
118 | 118 | } |
119 | 119 | } |
120 | 120 | |
121 | - return $item->get('TKT_name') . $this->row_actions( $actions ); |
|
121 | + return $item->get('TKT_name').$this->row_actions($actions); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | |
@@ -131,13 +131,13 @@ discard block |
||
131 | 131 | |
132 | 132 | |
133 | 133 | function column_TKT_qty($item) { |
134 | - return $item->get_pretty('TKT_qty','text'); |
|
134 | + return $item->get_pretty('TKT_qty', 'text'); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | |
138 | 138 | |
139 | 139 | function column_TKT_uses($item) { |
140 | - return $item->get_pretty('TKT_uses','text'); |
|
140 | + return $item->get_pretty('TKT_uses', 'text'); |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | |
150 | 150 | function column_TKT_max($item) { |
151 | - return $item->get_pretty('TKT_max','text'); |
|
151 | + return $item->get_pretty('TKT_max', 'text'); |
|
152 | 152 | } |
153 | 153 | |
154 | 154 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | 'TKT_taxable' => __('Taxable', 'event_espresso') |
60 | 60 | ); |
61 | 61 | |
62 | - $this->_sortable_columns = array( |
|
62 | + $this->_sortable_columns = array( |
|
63 | 63 | // TRUE means its already sorted |
64 | 64 | 'TKT_name' => array( 'TKT_name', TRUE ), |
65 | 65 | 'TKT_description' => array( 'TKT_description', FALSE ), |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | 'TKT_min' => array( 'TKT_min', FALSE ), |
69 | 69 | 'TKT_max' => array( 'TKT_max', FALSE ), |
70 | 70 | 'TKT_price' => array( 'TKT_price', FALSE ) |
71 | - ); |
|
71 | + ); |
|
72 | 72 | |
73 | - $this->_hidden_columns = array( |
|
73 | + $this->_hidden_columns = array( |
|
74 | 74 | ); |
75 | 75 | |
76 | 76 | } |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Event Espresso |
4 | 6 | * |