@@ -17,151 +17,151 @@ |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - protected function _setup_data() |
|
21 | - { |
|
22 | - $trashed = $this->_admin_page->get_view() == 'trashed' ? true : false; |
|
23 | - $this->_data = $this->_admin_page->get_default_tickets($this->_per_page, false, $trashed); |
|
24 | - $this->_all_data_count = $this->_admin_page->get_default_tickets($this->_per_page, true, false); |
|
25 | - $this->_trashed_count = $this->_admin_page->get_default_tickets($this->_per_page, true, true); |
|
26 | - } |
|
27 | - |
|
28 | - |
|
29 | - protected function _set_properties() |
|
30 | - { |
|
31 | - $this->_wp_list_args = array( |
|
32 | - 'singular' => __('ticket', 'event_espresso'), |
|
33 | - 'plural' => __('tickets', 'event_espresso'), |
|
34 | - 'ajax' => true, |
|
35 | - 'screen' => $this->_admin_page->get_current_screen()->id, |
|
36 | - ); |
|
37 | - |
|
38 | - $this->_columns = array( |
|
39 | - 'cb' => '<input type="checkbox" />', // Render a checkbox instead of text |
|
40 | - 'TKT_name' => __('Name', 'event_espresso'), |
|
41 | - 'TKT_description' => __('Description', 'event_espresso'), |
|
42 | - 'TKT_qty' => __('Quantity', 'event_espresso'), |
|
43 | - 'TKT_uses' => __('Datetimes', 'event_espresso'), |
|
44 | - 'TKT_min' => __('Minimum', 'event_espresso'), |
|
45 | - 'TKT_max' => __('Maximum', 'event_espresso'), |
|
46 | - 'TKT_price' => __('Price', 'event_espresso'), |
|
47 | - 'TKT_taxable' => __('Taxable', 'event_espresso'), |
|
48 | - ); |
|
49 | - |
|
50 | - $this->_sortable_columns = array( |
|
51 | - // TRUE means its already sorted |
|
52 | - 'TKT_name' => array('TKT_name' => true), |
|
53 | - 'TKT_description' => array('TKT_description' => false), |
|
54 | - 'TKT_qty' => array('TKT_qty' => false), |
|
55 | - 'TKT_uses' => array('TKT_uses' => false), |
|
56 | - 'TKT_min' => array('TKT_min' => false), |
|
57 | - 'TKT_max' => array('TKT_max' => false), |
|
58 | - 'TKT_price' => array('TKT_price' => false), |
|
59 | - ); |
|
60 | - |
|
61 | - $this->_hidden_columns = array(); |
|
62 | - } |
|
63 | - |
|
64 | - |
|
65 | - protected function _get_table_filters() |
|
66 | - { |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - protected function _add_view_counts() |
|
71 | - { |
|
72 | - $this->_views['all']['count'] = $this->_all_data_count; |
|
73 | - $this->_views['trashed']['count'] = $this->_trashed_count; |
|
74 | - } |
|
75 | - |
|
76 | - |
|
77 | - public function column_cb($item) |
|
78 | - { |
|
79 | - return $item->ID() === 1 |
|
80 | - ? '<span class="ee-lock-icon"></span>' |
|
81 | - : sprintf( |
|
82 | - '<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', |
|
83 | - $item->ID() |
|
84 | - ); |
|
85 | - } |
|
86 | - |
|
87 | - |
|
88 | - public function column_TKT_name($item) |
|
89 | - { |
|
90 | - // build row actions |
|
91 | - $actions = array(); |
|
92 | - |
|
93 | - // trash links |
|
94 | - if ($item->ID() !== 1) { |
|
95 | - if ($this->_view == 'all') { |
|
96 | - $trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
97 | - 'action' => 'trash_ticket', |
|
98 | - 'TKT_ID' => $item->ID(), |
|
99 | - ), EVENTS_ADMIN_URL); |
|
100 | - $actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' |
|
101 | - . esc_attr__('Move Ticket to trash', 'event_espresso') . '">' |
|
102 | - . __('Trash', 'event_espresso') . '</a>'; |
|
103 | - } else { |
|
104 | - // restore price link |
|
105 | - $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
106 | - 'action' => 'restore_ticket', |
|
107 | - 'TKT_ID' => $item->ID(), |
|
108 | - ), EVENTS_ADMIN_URL); |
|
109 | - $actions['restore'] = '<a href="' . $restore_lnk_url . '" title="' |
|
110 | - . esc_attr__('Restore Ticket', 'event_espresso') . '">' |
|
111 | - . __('Restore', 'event_espresso') . '</a>'; |
|
112 | - // delete price link |
|
113 | - $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
114 | - 'action' => 'delete_ticket', |
|
115 | - 'TKT_ID' => $item->ID(), |
|
116 | - ), EVENTS_ADMIN_URL); |
|
117 | - $actions['delete'] = '<a href="' . $delete_lnk_url . '" title="' |
|
118 | - . esc_attr__('Delete Ticket Permanently', 'event_espresso') . '">' |
|
119 | - . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
120 | - } |
|
121 | - } |
|
122 | - |
|
123 | - return $item->get('TKT_name') . $this->row_actions($actions); |
|
124 | - } |
|
125 | - |
|
126 | - |
|
127 | - public function column_TKT_description($item) |
|
128 | - { |
|
129 | - return $item->get('TKT_description'); |
|
130 | - } |
|
131 | - |
|
132 | - |
|
133 | - public function column_TKT_qty($item) |
|
134 | - { |
|
135 | - return $item->get_pretty('TKT_qty', 'text'); |
|
136 | - } |
|
137 | - |
|
138 | - |
|
139 | - public function column_TKT_uses($item) |
|
140 | - { |
|
141 | - return $item->get_pretty('TKT_uses', 'text'); |
|
142 | - } |
|
143 | - |
|
144 | - |
|
145 | - public function column_TKT_min($item) |
|
146 | - { |
|
147 | - return $item->get('TKT_min'); |
|
148 | - } |
|
149 | - |
|
150 | - |
|
151 | - public function column_TKT_max($item) |
|
152 | - { |
|
153 | - return $item->get_pretty('TKT_max', 'text'); |
|
154 | - } |
|
155 | - |
|
156 | - |
|
157 | - public function column_TKT_price($item) |
|
158 | - { |
|
159 | - return EEH_Template::format_currency($item->get('TKT_price')); |
|
160 | - } |
|
161 | - |
|
162 | - |
|
163 | - public function column_TKT_taxable($item) |
|
164 | - { |
|
165 | - return $item->get('TKT_taxable') ? __('Yes', 'event_espresso') : __('No', 'event_espresso'); |
|
166 | - } |
|
20 | + protected function _setup_data() |
|
21 | + { |
|
22 | + $trashed = $this->_admin_page->get_view() == 'trashed' ? true : false; |
|
23 | + $this->_data = $this->_admin_page->get_default_tickets($this->_per_page, false, $trashed); |
|
24 | + $this->_all_data_count = $this->_admin_page->get_default_tickets($this->_per_page, true, false); |
|
25 | + $this->_trashed_count = $this->_admin_page->get_default_tickets($this->_per_page, true, true); |
|
26 | + } |
|
27 | + |
|
28 | + |
|
29 | + protected function _set_properties() |
|
30 | + { |
|
31 | + $this->_wp_list_args = array( |
|
32 | + 'singular' => __('ticket', 'event_espresso'), |
|
33 | + 'plural' => __('tickets', 'event_espresso'), |
|
34 | + 'ajax' => true, |
|
35 | + 'screen' => $this->_admin_page->get_current_screen()->id, |
|
36 | + ); |
|
37 | + |
|
38 | + $this->_columns = array( |
|
39 | + 'cb' => '<input type="checkbox" />', // Render a checkbox instead of text |
|
40 | + 'TKT_name' => __('Name', 'event_espresso'), |
|
41 | + 'TKT_description' => __('Description', 'event_espresso'), |
|
42 | + 'TKT_qty' => __('Quantity', 'event_espresso'), |
|
43 | + 'TKT_uses' => __('Datetimes', 'event_espresso'), |
|
44 | + 'TKT_min' => __('Minimum', 'event_espresso'), |
|
45 | + 'TKT_max' => __('Maximum', 'event_espresso'), |
|
46 | + 'TKT_price' => __('Price', 'event_espresso'), |
|
47 | + 'TKT_taxable' => __('Taxable', 'event_espresso'), |
|
48 | + ); |
|
49 | + |
|
50 | + $this->_sortable_columns = array( |
|
51 | + // TRUE means its already sorted |
|
52 | + 'TKT_name' => array('TKT_name' => true), |
|
53 | + 'TKT_description' => array('TKT_description' => false), |
|
54 | + 'TKT_qty' => array('TKT_qty' => false), |
|
55 | + 'TKT_uses' => array('TKT_uses' => false), |
|
56 | + 'TKT_min' => array('TKT_min' => false), |
|
57 | + 'TKT_max' => array('TKT_max' => false), |
|
58 | + 'TKT_price' => array('TKT_price' => false), |
|
59 | + ); |
|
60 | + |
|
61 | + $this->_hidden_columns = array(); |
|
62 | + } |
|
63 | + |
|
64 | + |
|
65 | + protected function _get_table_filters() |
|
66 | + { |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + protected function _add_view_counts() |
|
71 | + { |
|
72 | + $this->_views['all']['count'] = $this->_all_data_count; |
|
73 | + $this->_views['trashed']['count'] = $this->_trashed_count; |
|
74 | + } |
|
75 | + |
|
76 | + |
|
77 | + public function column_cb($item) |
|
78 | + { |
|
79 | + return $item->ID() === 1 |
|
80 | + ? '<span class="ee-lock-icon"></span>' |
|
81 | + : sprintf( |
|
82 | + '<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', |
|
83 | + $item->ID() |
|
84 | + ); |
|
85 | + } |
|
86 | + |
|
87 | + |
|
88 | + public function column_TKT_name($item) |
|
89 | + { |
|
90 | + // build row actions |
|
91 | + $actions = array(); |
|
92 | + |
|
93 | + // trash links |
|
94 | + if ($item->ID() !== 1) { |
|
95 | + if ($this->_view == 'all') { |
|
96 | + $trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
97 | + 'action' => 'trash_ticket', |
|
98 | + 'TKT_ID' => $item->ID(), |
|
99 | + ), EVENTS_ADMIN_URL); |
|
100 | + $actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' |
|
101 | + . esc_attr__('Move Ticket to trash', 'event_espresso') . '">' |
|
102 | + . __('Trash', 'event_espresso') . '</a>'; |
|
103 | + } else { |
|
104 | + // restore price link |
|
105 | + $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
106 | + 'action' => 'restore_ticket', |
|
107 | + 'TKT_ID' => $item->ID(), |
|
108 | + ), EVENTS_ADMIN_URL); |
|
109 | + $actions['restore'] = '<a href="' . $restore_lnk_url . '" title="' |
|
110 | + . esc_attr__('Restore Ticket', 'event_espresso') . '">' |
|
111 | + . __('Restore', 'event_espresso') . '</a>'; |
|
112 | + // delete price link |
|
113 | + $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
114 | + 'action' => 'delete_ticket', |
|
115 | + 'TKT_ID' => $item->ID(), |
|
116 | + ), EVENTS_ADMIN_URL); |
|
117 | + $actions['delete'] = '<a href="' . $delete_lnk_url . '" title="' |
|
118 | + . esc_attr__('Delete Ticket Permanently', 'event_espresso') . '">' |
|
119 | + . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
120 | + } |
|
121 | + } |
|
122 | + |
|
123 | + return $item->get('TKT_name') . $this->row_actions($actions); |
|
124 | + } |
|
125 | + |
|
126 | + |
|
127 | + public function column_TKT_description($item) |
|
128 | + { |
|
129 | + return $item->get('TKT_description'); |
|
130 | + } |
|
131 | + |
|
132 | + |
|
133 | + public function column_TKT_qty($item) |
|
134 | + { |
|
135 | + return $item->get_pretty('TKT_qty', 'text'); |
|
136 | + } |
|
137 | + |
|
138 | + |
|
139 | + public function column_TKT_uses($item) |
|
140 | + { |
|
141 | + return $item->get_pretty('TKT_uses', 'text'); |
|
142 | + } |
|
143 | + |
|
144 | + |
|
145 | + public function column_TKT_min($item) |
|
146 | + { |
|
147 | + return $item->get('TKT_min'); |
|
148 | + } |
|
149 | + |
|
150 | + |
|
151 | + public function column_TKT_max($item) |
|
152 | + { |
|
153 | + return $item->get_pretty('TKT_max', 'text'); |
|
154 | + } |
|
155 | + |
|
156 | + |
|
157 | + public function column_TKT_price($item) |
|
158 | + { |
|
159 | + return EEH_Template::format_currency($item->get('TKT_price')); |
|
160 | + } |
|
161 | + |
|
162 | + |
|
163 | + public function column_TKT_taxable($item) |
|
164 | + { |
|
165 | + return $item->get('TKT_taxable') ? __('Yes', 'event_espresso') : __('No', 'event_espresso'); |
|
166 | + } |
|
167 | 167 | } |
@@ -97,30 +97,30 @@ |
||
97 | 97 | 'action' => 'trash_ticket', |
98 | 98 | 'TKT_ID' => $item->ID(), |
99 | 99 | ), EVENTS_ADMIN_URL); |
100 | - $actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' |
|
101 | - . esc_attr__('Move Ticket to trash', 'event_espresso') . '">' |
|
102 | - . __('Trash', 'event_espresso') . '</a>'; |
|
100 | + $actions['trash'] = '<a href="'.$trash_lnk_url.'" title="' |
|
101 | + . esc_attr__('Move Ticket to trash', 'event_espresso').'">' |
|
102 | + . __('Trash', 'event_espresso').'</a>'; |
|
103 | 103 | } else { |
104 | 104 | // restore price link |
105 | 105 | $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
106 | 106 | 'action' => 'restore_ticket', |
107 | 107 | 'TKT_ID' => $item->ID(), |
108 | 108 | ), EVENTS_ADMIN_URL); |
109 | - $actions['restore'] = '<a href="' . $restore_lnk_url . '" title="' |
|
110 | - . esc_attr__('Restore Ticket', 'event_espresso') . '">' |
|
111 | - . __('Restore', 'event_espresso') . '</a>'; |
|
109 | + $actions['restore'] = '<a href="'.$restore_lnk_url.'" title="' |
|
110 | + . esc_attr__('Restore Ticket', 'event_espresso').'">' |
|
111 | + . __('Restore', 'event_espresso').'</a>'; |
|
112 | 112 | // delete price link |
113 | 113 | $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
114 | 114 | 'action' => 'delete_ticket', |
115 | 115 | 'TKT_ID' => $item->ID(), |
116 | 116 | ), EVENTS_ADMIN_URL); |
117 | - $actions['delete'] = '<a href="' . $delete_lnk_url . '" title="' |
|
118 | - . esc_attr__('Delete Ticket Permanently', 'event_espresso') . '">' |
|
119 | - . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
117 | + $actions['delete'] = '<a href="'.$delete_lnk_url.'" title="' |
|
118 | + . esc_attr__('Delete Ticket Permanently', 'event_espresso').'">' |
|
119 | + . __('Delete Permanently', 'event_espresso').'</a>'; |
|
120 | 120 | } |
121 | 121 | } |
122 | 122 | |
123 | - return $item->get('TKT_name') . $this->row_actions($actions); |
|
123 | + return $item->get('TKT_name').$this->row_actions($actions); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 |
@@ -12,15 +12,15 @@ |
||
12 | 12 | class Extend_Events_Admin_List_Table extends Events_Admin_List_Table |
13 | 13 | { |
14 | 14 | |
15 | - protected function _column_name_action_setup(EE_Event $item) |
|
16 | - { |
|
17 | - $export_query_args = array( |
|
18 | - 'action' => 'export_events', |
|
19 | - 'EVT_ID' => $item->ID(), |
|
20 | - ); |
|
21 | - $export_event_link = EE_Admin_Page::add_query_args_and_nonce($export_query_args, EVENTS_ADMIN_URL); |
|
15 | + protected function _column_name_action_setup(EE_Event $item) |
|
16 | + { |
|
17 | + $export_query_args = array( |
|
18 | + 'action' => 'export_events', |
|
19 | + 'EVT_ID' => $item->ID(), |
|
20 | + ); |
|
21 | + $export_event_link = EE_Admin_Page::add_query_args_and_nonce($export_query_args, EVENTS_ADMIN_URL); |
|
22 | 22 | |
23 | - $actions = parent::_column_name_action_setup($item); |
|
24 | - return $actions; |
|
25 | - } |
|
23 | + $actions = parent::_column_name_action_setup($item); |
|
24 | + return $actions; |
|
25 | + } |
|
26 | 26 | } |
@@ -15,17 +15,17 @@ |
||
15 | 15 | class Extend_EE_Attendee_Contact_List_Table extends EE_Attendee_Contact_List_Table |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_properties() |
|
19 | - { |
|
20 | - parent::_set_properties(); |
|
21 | - $this->_bottom_buttons = array( |
|
22 | - 'contact_list_report' => array( |
|
23 | - 'route' => 'contact_list_report', |
|
24 | - 'extra_request' => |
|
25 | - array( |
|
26 | - 'return_url' => urlencode("//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"), |
|
27 | - ), |
|
28 | - ), |
|
29 | - ); |
|
30 | - } |
|
18 | + protected function _set_properties() |
|
19 | + { |
|
20 | + parent::_set_properties(); |
|
21 | + $this->_bottom_buttons = array( |
|
22 | + 'contact_list_report' => array( |
|
23 | + 'route' => 'contact_list_report', |
|
24 | + 'extra_request' => |
|
25 | + array( |
|
26 | + 'return_url' => urlencode("//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"), |
|
27 | + ), |
|
28 | + ), |
|
29 | + ); |
|
30 | + } |
|
31 | 31 | } |
@@ -39,12 +39,12 @@ discard block |
||
39 | 39 | 'ee_read_checkins', |
40 | 40 | 'espresso_registrations_registration_checkins' |
41 | 41 | ) |
42 | - ? '<a href="' . $check_in_url . '"' |
|
43 | - . ' title="' . esc_attr__( |
|
42 | + ? '<a href="'.$check_in_url.'"' |
|
43 | + . ' title="'.esc_attr__( |
|
44 | 44 | 'The Check-In List allows you to easily toggle check-in status for this event', |
45 | 45 | 'event_espresso' |
46 | 46 | ) |
47 | - . '">' . esc_html__('View Check-ins', 'event_espresso') . '</a>' |
|
47 | + . '">'.esc_html__('View Check-ins', 'event_espresso').'</a>' |
|
48 | 48 | : esc_html__('View Check-ins', 'event_espresso'); |
49 | 49 | |
50 | 50 | return sprintf('%1$s %2$s', $date_linked, $this->row_actions($actions)); |
@@ -105,17 +105,17 @@ discard block |
||
105 | 105 | // add a "View Registrations" link that filters list by event AND datetime |
106 | 106 | $datetime_string .= $this->row_actions( |
107 | 107 | array( |
108 | - 'event_datetime_filter' => '<a href="' . EE_Admin_Page::add_query_args_and_nonce( |
|
108 | + 'event_datetime_filter' => '<a href="'.EE_Admin_Page::add_query_args_and_nonce( |
|
109 | 109 | array('event_id' => $EVT_ID, 'datetime_id' => $datetime->ID()), |
110 | 110 | REG_ADMIN_URL |
111 | 111 | ) |
112 | - . '" title="' . sprintf( |
|
112 | + . '" title="'.sprintf( |
|
113 | 113 | esc_attr__( |
114 | 114 | 'Filter this list to only show registrations for this datetime %s', |
115 | 115 | 'event_espresso' |
116 | 116 | ), |
117 | 117 | $datetime->name() |
118 | - ) . '">' |
|
118 | + ).'">' |
|
119 | 119 | . esc_html__('View Registrations', 'event_espresso') |
120 | 120 | . '</a>', |
121 | 121 | ) |
@@ -13,117 +13,117 @@ |
||
13 | 13 | class Extend_EE_Registrations_List_Table extends EE_Registrations_List_Table |
14 | 14 | { |
15 | 15 | |
16 | - /** |
|
17 | - * @param EE_Registration $item |
|
18 | - * @return string |
|
19 | - * @throws EE_Error |
|
20 | - * @throws InvalidArgumentException |
|
21 | - * @throws ReflectionException |
|
22 | - * @throws InvalidDataTypeException |
|
23 | - * @throws InvalidInterfaceException |
|
24 | - */ |
|
25 | - public function column__REG_date(EE_Registration $item) |
|
26 | - { |
|
27 | - $date_linked = parent::column__REG_date($item); |
|
28 | - $actions = array(); |
|
29 | - // Build row actions |
|
30 | - $check_in_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
31 | - 'action' => 'event_registrations', |
|
32 | - 'event_id' => $item->event_ID(), |
|
33 | - ), REG_ADMIN_URL); |
|
34 | - $actions['check_in'] = EE_Registry::instance()->CAP->current_user_can( |
|
35 | - 'ee_read_registration', |
|
36 | - 'espresso_registrations_registration_checkins', |
|
37 | - $item->ID() |
|
38 | - ) && EE_Registry::instance()->CAP->current_user_can( |
|
39 | - 'ee_read_checkins', |
|
40 | - 'espresso_registrations_registration_checkins' |
|
41 | - ) |
|
42 | - ? '<a href="' . $check_in_url . '"' |
|
43 | - . ' title="' . esc_attr__( |
|
44 | - 'The Check-In List allows you to easily toggle check-in status for this event', |
|
45 | - 'event_espresso' |
|
46 | - ) |
|
47 | - . '">' . esc_html__('View Check-ins', 'event_espresso') . '</a>' |
|
48 | - : esc_html__('View Check-ins', 'event_espresso'); |
|
16 | + /** |
|
17 | + * @param EE_Registration $item |
|
18 | + * @return string |
|
19 | + * @throws EE_Error |
|
20 | + * @throws InvalidArgumentException |
|
21 | + * @throws ReflectionException |
|
22 | + * @throws InvalidDataTypeException |
|
23 | + * @throws InvalidInterfaceException |
|
24 | + */ |
|
25 | + public function column__REG_date(EE_Registration $item) |
|
26 | + { |
|
27 | + $date_linked = parent::column__REG_date($item); |
|
28 | + $actions = array(); |
|
29 | + // Build row actions |
|
30 | + $check_in_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
31 | + 'action' => 'event_registrations', |
|
32 | + 'event_id' => $item->event_ID(), |
|
33 | + ), REG_ADMIN_URL); |
|
34 | + $actions['check_in'] = EE_Registry::instance()->CAP->current_user_can( |
|
35 | + 'ee_read_registration', |
|
36 | + 'espresso_registrations_registration_checkins', |
|
37 | + $item->ID() |
|
38 | + ) && EE_Registry::instance()->CAP->current_user_can( |
|
39 | + 'ee_read_checkins', |
|
40 | + 'espresso_registrations_registration_checkins' |
|
41 | + ) |
|
42 | + ? '<a href="' . $check_in_url . '"' |
|
43 | + . ' title="' . esc_attr__( |
|
44 | + 'The Check-In List allows you to easily toggle check-in status for this event', |
|
45 | + 'event_espresso' |
|
46 | + ) |
|
47 | + . '">' . esc_html__('View Check-ins', 'event_espresso') . '</a>' |
|
48 | + : esc_html__('View Check-ins', 'event_espresso'); |
|
49 | 49 | |
50 | - return sprintf('%1$s %2$s', $date_linked, $this->row_actions($actions)); |
|
51 | - } |
|
50 | + return sprintf('%1$s %2$s', $date_linked, $this->row_actions($actions)); |
|
51 | + } |
|
52 | 52 | |
53 | 53 | |
54 | - /** |
|
55 | - * column_default |
|
56 | - * |
|
57 | - * @param \EE_Registration $item |
|
58 | - * @return string |
|
59 | - * @throws EE_Error |
|
60 | - * @throws InvalidArgumentException |
|
61 | - * @throws InvalidDataTypeException |
|
62 | - * @throws InvalidInterfaceException |
|
63 | - * @throws ReflectionException |
|
64 | - */ |
|
65 | - public function column_DTT_EVT_start(EE_Registration $item) |
|
66 | - { |
|
67 | - $remove_defaults = array('default_where_conditions' => 'none'); |
|
68 | - $ticket = $item->ticket(); |
|
69 | - $datetimes = $ticket instanceof EE_Ticket ? $ticket->datetimes($remove_defaults) : array(); |
|
70 | - $EVT_ID = $item->event_ID(); |
|
71 | - $datetimes_for_display = array(); |
|
72 | - foreach ($datetimes as $datetime) { |
|
73 | - $datetime_string = ''; |
|
74 | - if ( |
|
75 | - EE_Registry::instance()->CAP->current_user_can( |
|
76 | - 'ee_read_checkin', |
|
77 | - 'espresso_registrations_registration_checkins', |
|
78 | - $item->ID() |
|
79 | - ) |
|
80 | - ) { |
|
81 | - // open "a" tag and "href" |
|
82 | - $datetime_string .= '<a href="'; |
|
83 | - // checkin URL |
|
84 | - $datetime_string .= EE_Admin_Page::add_query_args_and_nonce( |
|
85 | - array( |
|
86 | - 'action' => 'event_registrations', |
|
87 | - 'event_id' => $EVT_ID, |
|
88 | - 'DTT_ID' => $datetime->ID(), |
|
89 | - ), |
|
90 | - REG_ADMIN_URL |
|
91 | - ); |
|
92 | - // close "href" |
|
93 | - $datetime_string .= '"'; |
|
94 | - // open "title" tag |
|
95 | - $datetime_string .= ' title="'; |
|
96 | - // link title text |
|
97 | - $datetime_string .= esc_attr__('View Checkins for this Event', 'event_espresso'); |
|
98 | - // close "title" tag and end of "a" tag opening |
|
99 | - $datetime_string .= '">'; |
|
100 | - // link text |
|
101 | - $datetime_string .= $datetime->get_i18n_datetime('DTT_EVT_start'); |
|
102 | - // close "a" tag |
|
103 | - $datetime_string .= '</a>'; |
|
104 | - } else { |
|
105 | - $datetime_string .= $datetime->get_i18n_datetime('DTT_EVT_start'); |
|
106 | - } |
|
107 | - // add a "View Registrations" link that filters list by event AND datetime |
|
108 | - $datetime_string .= $this->row_actions( |
|
109 | - array( |
|
110 | - 'event_datetime_filter' => '<a href="' . EE_Admin_Page::add_query_args_and_nonce( |
|
111 | - array('event_id' => $EVT_ID, 'datetime_id' => $datetime->ID()), |
|
112 | - REG_ADMIN_URL |
|
113 | - ) |
|
114 | - . '" title="' . sprintf( |
|
115 | - esc_attr__( |
|
116 | - 'Filter this list to only show registrations for this datetime %s', |
|
117 | - 'event_espresso' |
|
118 | - ), |
|
119 | - $datetime->name() |
|
120 | - ) . '">' |
|
121 | - . esc_html__('View Registrations', 'event_espresso') |
|
122 | - . '</a>', |
|
123 | - ) |
|
124 | - ); |
|
125 | - $datetimes_for_display[] = $datetime_string; |
|
126 | - } |
|
127 | - return $this->generateDisplayForDateTimes($datetimes_for_display); |
|
128 | - } |
|
54 | + /** |
|
55 | + * column_default |
|
56 | + * |
|
57 | + * @param \EE_Registration $item |
|
58 | + * @return string |
|
59 | + * @throws EE_Error |
|
60 | + * @throws InvalidArgumentException |
|
61 | + * @throws InvalidDataTypeException |
|
62 | + * @throws InvalidInterfaceException |
|
63 | + * @throws ReflectionException |
|
64 | + */ |
|
65 | + public function column_DTT_EVT_start(EE_Registration $item) |
|
66 | + { |
|
67 | + $remove_defaults = array('default_where_conditions' => 'none'); |
|
68 | + $ticket = $item->ticket(); |
|
69 | + $datetimes = $ticket instanceof EE_Ticket ? $ticket->datetimes($remove_defaults) : array(); |
|
70 | + $EVT_ID = $item->event_ID(); |
|
71 | + $datetimes_for_display = array(); |
|
72 | + foreach ($datetimes as $datetime) { |
|
73 | + $datetime_string = ''; |
|
74 | + if ( |
|
75 | + EE_Registry::instance()->CAP->current_user_can( |
|
76 | + 'ee_read_checkin', |
|
77 | + 'espresso_registrations_registration_checkins', |
|
78 | + $item->ID() |
|
79 | + ) |
|
80 | + ) { |
|
81 | + // open "a" tag and "href" |
|
82 | + $datetime_string .= '<a href="'; |
|
83 | + // checkin URL |
|
84 | + $datetime_string .= EE_Admin_Page::add_query_args_and_nonce( |
|
85 | + array( |
|
86 | + 'action' => 'event_registrations', |
|
87 | + 'event_id' => $EVT_ID, |
|
88 | + 'DTT_ID' => $datetime->ID(), |
|
89 | + ), |
|
90 | + REG_ADMIN_URL |
|
91 | + ); |
|
92 | + // close "href" |
|
93 | + $datetime_string .= '"'; |
|
94 | + // open "title" tag |
|
95 | + $datetime_string .= ' title="'; |
|
96 | + // link title text |
|
97 | + $datetime_string .= esc_attr__('View Checkins for this Event', 'event_espresso'); |
|
98 | + // close "title" tag and end of "a" tag opening |
|
99 | + $datetime_string .= '">'; |
|
100 | + // link text |
|
101 | + $datetime_string .= $datetime->get_i18n_datetime('DTT_EVT_start'); |
|
102 | + // close "a" tag |
|
103 | + $datetime_string .= '</a>'; |
|
104 | + } else { |
|
105 | + $datetime_string .= $datetime->get_i18n_datetime('DTT_EVT_start'); |
|
106 | + } |
|
107 | + // add a "View Registrations" link that filters list by event AND datetime |
|
108 | + $datetime_string .= $this->row_actions( |
|
109 | + array( |
|
110 | + 'event_datetime_filter' => '<a href="' . EE_Admin_Page::add_query_args_and_nonce( |
|
111 | + array('event_id' => $EVT_ID, 'datetime_id' => $datetime->ID()), |
|
112 | + REG_ADMIN_URL |
|
113 | + ) |
|
114 | + . '" title="' . sprintf( |
|
115 | + esc_attr__( |
|
116 | + 'Filter this list to only show registrations for this datetime %s', |
|
117 | + 'event_espresso' |
|
118 | + ), |
|
119 | + $datetime->name() |
|
120 | + ) . '">' |
|
121 | + . esc_html__('View Registrations', 'event_espresso') |
|
122 | + . '</a>', |
|
123 | + ) |
|
124 | + ); |
|
125 | + $datetimes_for_display[] = $datetime_string; |
|
126 | + } |
|
127 | + return $this->generateDisplayForDateTimes($datetimes_for_display); |
|
128 | + } |
|
129 | 129 | } |
@@ -18,153 +18,153 @@ |
||
18 | 18 | { |
19 | 19 | |
20 | 20 | |
21 | - protected function _setup_data() |
|
22 | - { |
|
23 | - $trashed = $this->_admin_page->get_view() == 'trashed' ? true : false; |
|
24 | - $this->_data = $this->_admin_page->get_default_tickets($this->_per_page, false, $trashed); |
|
25 | - $this->_all_data_count = $this->_admin_page->get_default_tickets($this->_per_page, true, false); |
|
26 | - $this->_trashed_count = $this->_admin_page->get_default_tickets($this->_per_page, true, true); |
|
27 | - } |
|
28 | - |
|
29 | - |
|
30 | - protected function _set_properties() |
|
31 | - { |
|
32 | - $this->_wp_list_args = array( |
|
33 | - 'singular' => __('ticket', 'event_espresso'), |
|
34 | - 'plural' => __('tickets', 'event_espresso'), |
|
35 | - 'ajax' => true, |
|
36 | - 'screen' => $this->_admin_page->get_current_screen()->id, |
|
37 | - ); |
|
38 | - |
|
39 | - $this->_columns = array( |
|
40 | - 'cb' => '<input type="checkbox" />', // Render a checkbox instead of text |
|
41 | - 'TKT_name' => __('Name', 'event_espresso'), |
|
42 | - 'TKT_description' => __('Description', 'event_espresso'), |
|
43 | - 'TKT_qty' => __('Quantity', 'event_espresso'), |
|
44 | - 'TKT_uses' => __('Uses', 'event_espresso'), |
|
45 | - 'TKT_min' => __('Minimum', 'event_espresso'), |
|
46 | - 'TKT_max' => __('Maximum', 'event_espresso'), |
|
47 | - 'TKT_price' => __('Price', 'event_espresso'), |
|
48 | - 'TKT_taxable' => __('Taxable', 'event_espresso'), |
|
49 | - ); |
|
50 | - |
|
51 | - $this->_sortable_columns = array( |
|
52 | - // TRUE means its already sorted |
|
53 | - 'TKT_name' => array('TKT_name', true), |
|
54 | - 'TKT_description' => array('TKT_description', false), |
|
55 | - 'TKT_qty' => array('TKT_qty', false), |
|
56 | - 'TKT_uses' => array('TKT_uses', false), |
|
57 | - 'TKT_min' => array('TKT_min', false), |
|
58 | - 'TKT_max' => array('TKT_max', false), |
|
59 | - 'TKT_price' => array('TKT_price', false), |
|
60 | - ); |
|
61 | - |
|
62 | - $this->_hidden_columns = array(); |
|
63 | - } |
|
64 | - |
|
65 | - |
|
66 | - protected function _get_table_filters() |
|
67 | - { |
|
68 | - } |
|
69 | - |
|
70 | - |
|
71 | - protected function _add_view_counts() |
|
72 | - { |
|
73 | - $this->_views['all']['count'] = $this->_all_data_count; |
|
74 | - if (EE_Registry::instance()->CAP->current_user_can('ee_delete_default_tickets', 'trash_ticket')) { |
|
75 | - $this->_views['trashed']['count'] = $this->_trashed_count; |
|
76 | - } |
|
77 | - } |
|
78 | - |
|
79 | - |
|
80 | - public function column_cb($item) |
|
81 | - { |
|
82 | - return $item->ID() === 1 |
|
83 | - ? '<span class="ee-lock-icon"></span>' |
|
84 | - : sprintf( |
|
85 | - '<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', |
|
86 | - $item->ID() |
|
87 | - ); |
|
88 | - } |
|
89 | - |
|
90 | - |
|
91 | - public function column_TKT_name($item) |
|
92 | - { |
|
93 | - // build row actions |
|
94 | - $actions = array(); |
|
95 | - |
|
96 | - // trash links |
|
97 | - if ($item->ID() !== 1) { |
|
98 | - if ($this->_view == 'all') { |
|
99 | - $trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
100 | - 'action' => 'trash_ticket', |
|
101 | - 'TKT_ID' => $item->ID(), |
|
102 | - ), TICKETS_ADMIN_URL); |
|
103 | - $actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' |
|
104 | - . esc_attr__('Move Ticket to trash', 'event_espresso') . '">' |
|
105 | - . __('Trash', 'event_espresso') . '</a>'; |
|
106 | - } else { |
|
107 | - // restore price link |
|
108 | - $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
109 | - 'action' => 'restore_ticket', |
|
110 | - 'TKT_ID' => $item->ID(), |
|
111 | - ), TICKETS_ADMIN_URL); |
|
112 | - $actions['restore'] = '<a href="' . $restore_lnk_url . '" title="' |
|
113 | - . esc_attr__('Restore Ticket', 'event_espresso') . '">' |
|
114 | - . __('Restore', 'event_espresso') . '</a>'; |
|
115 | - // delete price link |
|
116 | - $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
117 | - 'action' => 'delete_ticket', |
|
118 | - 'TKT_ID' => $item->ID(), |
|
119 | - ), TICKETS_ADMIN_URL); |
|
120 | - $actions['delete'] = '<a href="' . $delete_lnk_url . '" title="' |
|
121 | - . esc_attr__('Delete Ticket Permanently', 'event_espresso') . '">' |
|
122 | - . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
123 | - } |
|
124 | - } |
|
125 | - |
|
126 | - return $item->get('TKT_name') . $this->row_actions($actions); |
|
127 | - } |
|
128 | - |
|
129 | - |
|
130 | - public function column_TKT_description($item) |
|
131 | - { |
|
132 | - return $item->get('TKT_description'); |
|
133 | - } |
|
134 | - |
|
135 | - |
|
136 | - public function column_TKT_qty($item) |
|
137 | - { |
|
138 | - return $item->get_pretty('TKT_qty', 'text'); |
|
139 | - } |
|
140 | - |
|
141 | - |
|
142 | - public function column_TKT_uses($item) |
|
143 | - { |
|
144 | - return $item->get_pretty('TKT_uses', 'text'); |
|
145 | - } |
|
146 | - |
|
147 | - |
|
148 | - public function column_TKT_min($item) |
|
149 | - { |
|
150 | - return $item->get('TKT_min'); |
|
151 | - } |
|
152 | - |
|
153 | - |
|
154 | - public function column_TKT_max($item) |
|
155 | - { |
|
156 | - return $item->get_pretty('TKT_max', 'text'); |
|
157 | - } |
|
158 | - |
|
159 | - |
|
160 | - public function column_TKT_price($item) |
|
161 | - { |
|
162 | - return EEH_Template::format_currency($item->get('TKT_price')); |
|
163 | - } |
|
164 | - |
|
165 | - |
|
166 | - public function column_TKT_taxable($item) |
|
167 | - { |
|
168 | - return $item->get('TKT_taxable') ? __('Yes', 'event_espresso') : __('No', 'event_espresso'); |
|
169 | - } |
|
21 | + protected function _setup_data() |
|
22 | + { |
|
23 | + $trashed = $this->_admin_page->get_view() == 'trashed' ? true : false; |
|
24 | + $this->_data = $this->_admin_page->get_default_tickets($this->_per_page, false, $trashed); |
|
25 | + $this->_all_data_count = $this->_admin_page->get_default_tickets($this->_per_page, true, false); |
|
26 | + $this->_trashed_count = $this->_admin_page->get_default_tickets($this->_per_page, true, true); |
|
27 | + } |
|
28 | + |
|
29 | + |
|
30 | + protected function _set_properties() |
|
31 | + { |
|
32 | + $this->_wp_list_args = array( |
|
33 | + 'singular' => __('ticket', 'event_espresso'), |
|
34 | + 'plural' => __('tickets', 'event_espresso'), |
|
35 | + 'ajax' => true, |
|
36 | + 'screen' => $this->_admin_page->get_current_screen()->id, |
|
37 | + ); |
|
38 | + |
|
39 | + $this->_columns = array( |
|
40 | + 'cb' => '<input type="checkbox" />', // Render a checkbox instead of text |
|
41 | + 'TKT_name' => __('Name', 'event_espresso'), |
|
42 | + 'TKT_description' => __('Description', 'event_espresso'), |
|
43 | + 'TKT_qty' => __('Quantity', 'event_espresso'), |
|
44 | + 'TKT_uses' => __('Uses', 'event_espresso'), |
|
45 | + 'TKT_min' => __('Minimum', 'event_espresso'), |
|
46 | + 'TKT_max' => __('Maximum', 'event_espresso'), |
|
47 | + 'TKT_price' => __('Price', 'event_espresso'), |
|
48 | + 'TKT_taxable' => __('Taxable', 'event_espresso'), |
|
49 | + ); |
|
50 | + |
|
51 | + $this->_sortable_columns = array( |
|
52 | + // TRUE means its already sorted |
|
53 | + 'TKT_name' => array('TKT_name', true), |
|
54 | + 'TKT_description' => array('TKT_description', false), |
|
55 | + 'TKT_qty' => array('TKT_qty', false), |
|
56 | + 'TKT_uses' => array('TKT_uses', false), |
|
57 | + 'TKT_min' => array('TKT_min', false), |
|
58 | + 'TKT_max' => array('TKT_max', false), |
|
59 | + 'TKT_price' => array('TKT_price', false), |
|
60 | + ); |
|
61 | + |
|
62 | + $this->_hidden_columns = array(); |
|
63 | + } |
|
64 | + |
|
65 | + |
|
66 | + protected function _get_table_filters() |
|
67 | + { |
|
68 | + } |
|
69 | + |
|
70 | + |
|
71 | + protected function _add_view_counts() |
|
72 | + { |
|
73 | + $this->_views['all']['count'] = $this->_all_data_count; |
|
74 | + if (EE_Registry::instance()->CAP->current_user_can('ee_delete_default_tickets', 'trash_ticket')) { |
|
75 | + $this->_views['trashed']['count'] = $this->_trashed_count; |
|
76 | + } |
|
77 | + } |
|
78 | + |
|
79 | + |
|
80 | + public function column_cb($item) |
|
81 | + { |
|
82 | + return $item->ID() === 1 |
|
83 | + ? '<span class="ee-lock-icon"></span>' |
|
84 | + : sprintf( |
|
85 | + '<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', |
|
86 | + $item->ID() |
|
87 | + ); |
|
88 | + } |
|
89 | + |
|
90 | + |
|
91 | + public function column_TKT_name($item) |
|
92 | + { |
|
93 | + // build row actions |
|
94 | + $actions = array(); |
|
95 | + |
|
96 | + // trash links |
|
97 | + if ($item->ID() !== 1) { |
|
98 | + if ($this->_view == 'all') { |
|
99 | + $trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
100 | + 'action' => 'trash_ticket', |
|
101 | + 'TKT_ID' => $item->ID(), |
|
102 | + ), TICKETS_ADMIN_URL); |
|
103 | + $actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' |
|
104 | + . esc_attr__('Move Ticket to trash', 'event_espresso') . '">' |
|
105 | + . __('Trash', 'event_espresso') . '</a>'; |
|
106 | + } else { |
|
107 | + // restore price link |
|
108 | + $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
109 | + 'action' => 'restore_ticket', |
|
110 | + 'TKT_ID' => $item->ID(), |
|
111 | + ), TICKETS_ADMIN_URL); |
|
112 | + $actions['restore'] = '<a href="' . $restore_lnk_url . '" title="' |
|
113 | + . esc_attr__('Restore Ticket', 'event_espresso') . '">' |
|
114 | + . __('Restore', 'event_espresso') . '</a>'; |
|
115 | + // delete price link |
|
116 | + $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
|
117 | + 'action' => 'delete_ticket', |
|
118 | + 'TKT_ID' => $item->ID(), |
|
119 | + ), TICKETS_ADMIN_URL); |
|
120 | + $actions['delete'] = '<a href="' . $delete_lnk_url . '" title="' |
|
121 | + . esc_attr__('Delete Ticket Permanently', 'event_espresso') . '">' |
|
122 | + . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
123 | + } |
|
124 | + } |
|
125 | + |
|
126 | + return $item->get('TKT_name') . $this->row_actions($actions); |
|
127 | + } |
|
128 | + |
|
129 | + |
|
130 | + public function column_TKT_description($item) |
|
131 | + { |
|
132 | + return $item->get('TKT_description'); |
|
133 | + } |
|
134 | + |
|
135 | + |
|
136 | + public function column_TKT_qty($item) |
|
137 | + { |
|
138 | + return $item->get_pretty('TKT_qty', 'text'); |
|
139 | + } |
|
140 | + |
|
141 | + |
|
142 | + public function column_TKT_uses($item) |
|
143 | + { |
|
144 | + return $item->get_pretty('TKT_uses', 'text'); |
|
145 | + } |
|
146 | + |
|
147 | + |
|
148 | + public function column_TKT_min($item) |
|
149 | + { |
|
150 | + return $item->get('TKT_min'); |
|
151 | + } |
|
152 | + |
|
153 | + |
|
154 | + public function column_TKT_max($item) |
|
155 | + { |
|
156 | + return $item->get_pretty('TKT_max', 'text'); |
|
157 | + } |
|
158 | + |
|
159 | + |
|
160 | + public function column_TKT_price($item) |
|
161 | + { |
|
162 | + return EEH_Template::format_currency($item->get('TKT_price')); |
|
163 | + } |
|
164 | + |
|
165 | + |
|
166 | + public function column_TKT_taxable($item) |
|
167 | + { |
|
168 | + return $item->get('TKT_taxable') ? __('Yes', 'event_espresso') : __('No', 'event_espresso'); |
|
169 | + } |
|
170 | 170 | } |
@@ -100,30 +100,30 @@ |
||
100 | 100 | 'action' => 'trash_ticket', |
101 | 101 | 'TKT_ID' => $item->ID(), |
102 | 102 | ), TICKETS_ADMIN_URL); |
103 | - $actions['trash'] = '<a href="' . $trash_lnk_url . '" title="' |
|
104 | - . esc_attr__('Move Ticket to trash', 'event_espresso') . '">' |
|
105 | - . __('Trash', 'event_espresso') . '</a>'; |
|
103 | + $actions['trash'] = '<a href="'.$trash_lnk_url.'" title="' |
|
104 | + . esc_attr__('Move Ticket to trash', 'event_espresso').'">' |
|
105 | + . __('Trash', 'event_espresso').'</a>'; |
|
106 | 106 | } else { |
107 | 107 | // restore price link |
108 | 108 | $restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
109 | 109 | 'action' => 'restore_ticket', |
110 | 110 | 'TKT_ID' => $item->ID(), |
111 | 111 | ), TICKETS_ADMIN_URL); |
112 | - $actions['restore'] = '<a href="' . $restore_lnk_url . '" title="' |
|
113 | - . esc_attr__('Restore Ticket', 'event_espresso') . '">' |
|
114 | - . __('Restore', 'event_espresso') . '</a>'; |
|
112 | + $actions['restore'] = '<a href="'.$restore_lnk_url.'" title="' |
|
113 | + . esc_attr__('Restore Ticket', 'event_espresso').'">' |
|
114 | + . __('Restore', 'event_espresso').'</a>'; |
|
115 | 115 | // delete price link |
116 | 116 | $delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array( |
117 | 117 | 'action' => 'delete_ticket', |
118 | 118 | 'TKT_ID' => $item->ID(), |
119 | 119 | ), TICKETS_ADMIN_URL); |
120 | - $actions['delete'] = '<a href="' . $delete_lnk_url . '" title="' |
|
121 | - . esc_attr__('Delete Ticket Permanently', 'event_espresso') . '">' |
|
122 | - . __('Delete Permanently', 'event_espresso') . '</a>'; |
|
120 | + $actions['delete'] = '<a href="'.$delete_lnk_url.'" title="' |
|
121 | + . esc_attr__('Delete Ticket Permanently', 'event_espresso').'">' |
|
122 | + . __('Delete Permanently', 'event_espresso').'</a>'; |
|
123 | 123 | } |
124 | 124 | } |
125 | 125 | |
126 | - return $item->get('TKT_name') . $this->row_actions($actions); |
|
126 | + return $item->get('TKT_name').$this->row_actions($actions); |
|
127 | 127 | } |
128 | 128 | |
129 | 129 |
@@ -15,20 +15,20 @@ discard block |
||
15 | 15 | class Pricing_Edit_Default_Price_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Edit Default Price Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'edit-default-price-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Edit Default Price Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'edit-default-price-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - /*20 => array( |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + /*20 => array( |
|
32 | 32 | 'id' => 'PRT_ID', |
33 | 33 | 'content' => $this->_price_type_stop(), |
34 | 34 | 'options' => array( |
@@ -37,74 +37,74 @@ discard block |
||
37 | 37 | 'tipAdjustmentX' => -15 |
38 | 38 | ) |
39 | 39 | ),*/ |
40 | - 30 => array( |
|
41 | - 'id' => 'PRC_name', |
|
42 | - 'content' => $this->_price_name_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentY' => -40, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'id' => 'PRC_desc', |
|
50 | - 'content' => $this->_price_description_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentY' => -40, |
|
54 | - ), |
|
55 | - ), |
|
56 | - 50 => array( |
|
57 | - 'id' => 'PRC_amount', |
|
58 | - 'content' => $this->_price_amount_stop(), |
|
59 | - 'options' => array( |
|
60 | - 'tipLocation' => 'top', |
|
61 | - 'tipAdjustmentY' => -40, |
|
62 | - ), |
|
63 | - ), |
|
64 | - ); |
|
65 | - } |
|
40 | + 30 => array( |
|
41 | + 'id' => 'PRC_name', |
|
42 | + 'content' => $this->_price_name_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentY' => -40, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'id' => 'PRC_desc', |
|
50 | + 'content' => $this->_price_description_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentY' => -40, |
|
54 | + ), |
|
55 | + ), |
|
56 | + 50 => array( |
|
57 | + 'id' => 'PRC_amount', |
|
58 | + 'content' => $this->_price_amount_stop(), |
|
59 | + 'options' => array( |
|
60 | + 'tipLocation' => 'top', |
|
61 | + 'tipAdjustmentY' => -40, |
|
62 | + ), |
|
63 | + ), |
|
64 | + ); |
|
65 | + } |
|
66 | 66 | |
67 | 67 | |
68 | - protected function _start() |
|
69 | - { |
|
70 | - $content = '<h3>' . __('Edit Default Price', 'event_espresso') . '</h3>'; |
|
71 | - $content .= '<p>' |
|
72 | - . __( |
|
73 | - 'This tour of the Edit Default Price page will go over different areas of the screen to help you understand what they are used for.', |
|
74 | - 'event_espresso' |
|
75 | - ) . '</p>'; |
|
76 | - return $content; |
|
77 | - } |
|
68 | + protected function _start() |
|
69 | + { |
|
70 | + $content = '<h3>' . __('Edit Default Price', 'event_espresso') . '</h3>'; |
|
71 | + $content .= '<p>' |
|
72 | + . __( |
|
73 | + 'This tour of the Edit Default Price page will go over different areas of the screen to help you understand what they are used for.', |
|
74 | + 'event_espresso' |
|
75 | + ) . '</p>'; |
|
76 | + return $content; |
|
77 | + } |
|
78 | 78 | |
79 | - protected function _price_type_stop() |
|
80 | - { |
|
81 | - return '<p>' |
|
82 | - . __( |
|
83 | - 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', |
|
84 | - 'event_espresso' |
|
85 | - ) . '</p>'; |
|
86 | - } |
|
79 | + protected function _price_type_stop() |
|
80 | + { |
|
81 | + return '<p>' |
|
82 | + . __( |
|
83 | + 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', |
|
84 | + 'event_espresso' |
|
85 | + ) . '</p>'; |
|
86 | + } |
|
87 | 87 | |
88 | - protected function _price_name_stop() |
|
89 | - { |
|
90 | - return '<p>' |
|
91 | - . __( |
|
92 | - 'The name of the price, discount, tax, or surcharge that will be seen by your customers.', |
|
93 | - 'event_espresso' |
|
94 | - ) . '</p>'; |
|
95 | - } |
|
88 | + protected function _price_name_stop() |
|
89 | + { |
|
90 | + return '<p>' |
|
91 | + . __( |
|
92 | + 'The name of the price, discount, tax, or surcharge that will be seen by your customers.', |
|
93 | + 'event_espresso' |
|
94 | + ) . '</p>'; |
|
95 | + } |
|
96 | 96 | |
97 | - protected function _price_description_stop() |
|
98 | - { |
|
99 | - return '<p>' |
|
100 | - . __( |
|
101 | - 'View the price type (price, discount, tax or surcharge) description.', |
|
102 | - 'event_espresso' |
|
103 | - ) . '</p>'; |
|
104 | - } |
|
97 | + protected function _price_description_stop() |
|
98 | + { |
|
99 | + return '<p>' |
|
100 | + . __( |
|
101 | + 'View the price type (price, discount, tax or surcharge) description.', |
|
102 | + 'event_espresso' |
|
103 | + ) . '</p>'; |
|
104 | + } |
|
105 | 105 | |
106 | - protected function _price_amount_stop() |
|
107 | - { |
|
108 | - return '<p>' . __('The ticket amount before any deductions.', 'event_espresso') . '</p>'; |
|
109 | - } |
|
106 | + protected function _price_amount_stop() |
|
107 | + { |
|
108 | + return '<p>' . __('The ticket amount before any deductions.', 'event_espresso') . '</p>'; |
|
109 | + } |
|
110 | 110 | } |
@@ -67,12 +67,12 @@ discard block |
||
67 | 67 | |
68 | 68 | protected function _start() |
69 | 69 | { |
70 | - $content = '<h3>' . __('Edit Default Price', 'event_espresso') . '</h3>'; |
|
70 | + $content = '<h3>'.__('Edit Default Price', 'event_espresso').'</h3>'; |
|
71 | 71 | $content .= '<p>' |
72 | 72 | . __( |
73 | 73 | 'This tour of the Edit Default Price page will go over different areas of the screen to help you understand what they are used for.', |
74 | 74 | 'event_espresso' |
75 | - ) . '</p>'; |
|
75 | + ).'</p>'; |
|
76 | 76 | return $content; |
77 | 77 | } |
78 | 78 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | . __( |
83 | 83 | 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', |
84 | 84 | 'event_espresso' |
85 | - ) . '</p>'; |
|
85 | + ).'</p>'; |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | protected function _price_name_stop() |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | . __( |
92 | 92 | 'The name of the price, discount, tax, or surcharge that will be seen by your customers.', |
93 | 93 | 'event_espresso' |
94 | - ) . '</p>'; |
|
94 | + ).'</p>'; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | protected function _price_description_stop() |
@@ -100,11 +100,11 @@ discard block |
||
100 | 100 | . __( |
101 | 101 | 'View the price type (price, discount, tax or surcharge) description.', |
102 | 102 | 'event_espresso' |
103 | - ) . '</p>'; |
|
103 | + ).'</p>'; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | protected function _price_amount_stop() |
107 | 107 | { |
108 | - return '<p>' . __('The ticket amount before any deductions.', 'event_espresso') . '</p>'; |
|
108 | + return '<p>'.__('The ticket amount before any deductions.', 'event_espresso').'</p>'; |
|
109 | 109 | } |
110 | 110 | } |
@@ -15,84 +15,84 @@ |
||
15 | 15 | class Pricing_Add_New_Price_Type_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Add New Price Type Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'add-new-price-type-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Add New Price Type Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'add-new-price-type-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'base_type', |
|
33 | - 'content' => $this->_basic_type_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentY' => -50, |
|
37 | - 'tipAdjustmentX' => -15, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'PRT_name', |
|
42 | - 'content' => $this->_price_type_name_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentY' => -40, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'id' => 'PRT_name', |
|
50 | - 'content' => $this->_percentage_dollar_amount_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentY' => 45, |
|
54 | - ), |
|
55 | - ), |
|
56 | - 50 => array( |
|
57 | - 'id' => 'PRT_order', |
|
58 | - 'content' => $this->_order_of_application_stop(), |
|
59 | - 'options' => array( |
|
60 | - 'tipLocation' => 'top', |
|
61 | - 'tipAdjustmentY' => -40, |
|
62 | - ), |
|
63 | - ), |
|
64 | - ); |
|
65 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'base_type', |
|
33 | + 'content' => $this->_basic_type_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentY' => -50, |
|
37 | + 'tipAdjustmentX' => -15, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'PRT_name', |
|
42 | + 'content' => $this->_price_type_name_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentY' => -40, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'id' => 'PRT_name', |
|
50 | + 'content' => $this->_percentage_dollar_amount_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentY' => 45, |
|
54 | + ), |
|
55 | + ), |
|
56 | + 50 => array( |
|
57 | + 'id' => 'PRT_order', |
|
58 | + 'content' => $this->_order_of_application_stop(), |
|
59 | + 'options' => array( |
|
60 | + 'tipLocation' => 'top', |
|
61 | + 'tipAdjustmentY' => -40, |
|
62 | + ), |
|
63 | + ), |
|
64 | + ); |
|
65 | + } |
|
66 | 66 | |
67 | 67 | |
68 | - protected function _start() |
|
69 | - { |
|
70 | - $content = '<h3>' . __('Add New Price Type', 'event_espresso') . '</h3>'; |
|
71 | - $content .= '<p>' |
|
72 | - . __( |
|
73 | - 'This tour of the Add New Price Type page will go over different areas of the screen to help you understand what they are used for.', |
|
74 | - 'event_espresso' |
|
75 | - ) . '</p>'; |
|
76 | - return $content; |
|
77 | - } |
|
68 | + protected function _start() |
|
69 | + { |
|
70 | + $content = '<h3>' . __('Add New Price Type', 'event_espresso') . '</h3>'; |
|
71 | + $content .= '<p>' |
|
72 | + . __( |
|
73 | + 'This tour of the Add New Price Type page will go over different areas of the screen to help you understand what they are used for.', |
|
74 | + 'event_espresso' |
|
75 | + ) . '</p>'; |
|
76 | + return $content; |
|
77 | + } |
|
78 | 78 | |
79 | - protected function _basic_type_stop() |
|
80 | - { |
|
81 | - return '<p>' . __('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>'; |
|
82 | - } |
|
79 | + protected function _basic_type_stop() |
|
80 | + { |
|
81 | + return '<p>' . __('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>'; |
|
82 | + } |
|
83 | 83 | |
84 | - protected function _price_type_name_stop() |
|
85 | - { |
|
86 | - return '<p>' . __('The name of the price type.', 'event_espresso') . '</p>'; |
|
87 | - } |
|
84 | + protected function _price_type_name_stop() |
|
85 | + { |
|
86 | + return '<p>' . __('The name of the price type.', 'event_espresso') . '</p>'; |
|
87 | + } |
|
88 | 88 | |
89 | - protected function _percentage_dollar_amount_stop() |
|
90 | - { |
|
91 | - return '<p>' . __('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>'; |
|
92 | - } |
|
89 | + protected function _percentage_dollar_amount_stop() |
|
90 | + { |
|
91 | + return '<p>' . __('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>'; |
|
92 | + } |
|
93 | 93 | |
94 | - protected function _order_of_application_stop() |
|
95 | - { |
|
96 | - return '<p>' . __('Set the order of application for a price type.', 'event_espresso') . '</p>'; |
|
97 | - } |
|
94 | + protected function _order_of_application_stop() |
|
95 | + { |
|
96 | + return '<p>' . __('Set the order of application for a price type.', 'event_espresso') . '</p>'; |
|
97 | + } |
|
98 | 98 | } |
@@ -67,32 +67,32 @@ |
||
67 | 67 | |
68 | 68 | protected function _start() |
69 | 69 | { |
70 | - $content = '<h3>' . __('Add New Price Type', 'event_espresso') . '</h3>'; |
|
70 | + $content = '<h3>'.__('Add New Price Type', 'event_espresso').'</h3>'; |
|
71 | 71 | $content .= '<p>' |
72 | 72 | . __( |
73 | 73 | 'This tour of the Add New Price Type page will go over different areas of the screen to help you understand what they are used for.', |
74 | 74 | 'event_espresso' |
75 | - ) . '</p>'; |
|
75 | + ).'</p>'; |
|
76 | 76 | return $content; |
77 | 77 | } |
78 | 78 | |
79 | 79 | protected function _basic_type_stop() |
80 | 80 | { |
81 | - return '<p>' . __('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>'; |
|
81 | + return '<p>'.__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso').'</p>'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | protected function _price_type_name_stop() |
85 | 85 | { |
86 | - return '<p>' . __('The name of the price type.', 'event_espresso') . '</p>'; |
|
86 | + return '<p>'.__('The name of the price type.', 'event_espresso').'</p>'; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | protected function _percentage_dollar_amount_stop() |
90 | 90 | { |
91 | - return '<p>' . __('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>'; |
|
91 | + return '<p>'.__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso').'</p>'; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | protected function _order_of_application_stop() |
95 | 95 | { |
96 | - return '<p>' . __('Set the order of application for a price type.', 'event_espresso') . '</p>'; |
|
96 | + return '<p>'.__('Set the order of application for a price type.', 'event_espresso').'</p>'; |
|
97 | 97 | } |
98 | 98 | } |
@@ -15,96 +15,96 @@ |
||
15 | 15 | class Pricing_Add_New_Default_Price_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Add New Default Price Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'add-new-default-price-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Add New Default Price Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'add-new-default-price-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'PRT_ID', |
|
33 | - 'content' => $this->_price_type_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentY' => -50, |
|
37 | - 'tipAdjustmentX' => -15, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'PRC_name', |
|
42 | - 'content' => $this->_price_name_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentY' => -40, |
|
46 | - ), |
|
47 | - ), |
|
48 | - 40 => array( |
|
49 | - 'id' => 'PRC_desc', |
|
50 | - 'content' => $this->_price_description_stop(), |
|
51 | - 'options' => array( |
|
52 | - 'tipLocation' => 'top', |
|
53 | - 'tipAdjustmentY' => -40, |
|
54 | - ), |
|
55 | - ), |
|
56 | - 50 => array( |
|
57 | - 'id' => 'PRC_amount', |
|
58 | - 'content' => $this->_price_amount_stop(), |
|
59 | - 'options' => array( |
|
60 | - 'tipLocation' => 'top', |
|
61 | - 'tipAdjustmentY' => -40, |
|
62 | - ), |
|
63 | - ), |
|
64 | - ); |
|
65 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'PRT_ID', |
|
33 | + 'content' => $this->_price_type_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentY' => -50, |
|
37 | + 'tipAdjustmentX' => -15, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'PRC_name', |
|
42 | + 'content' => $this->_price_name_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentY' => -40, |
|
46 | + ), |
|
47 | + ), |
|
48 | + 40 => array( |
|
49 | + 'id' => 'PRC_desc', |
|
50 | + 'content' => $this->_price_description_stop(), |
|
51 | + 'options' => array( |
|
52 | + 'tipLocation' => 'top', |
|
53 | + 'tipAdjustmentY' => -40, |
|
54 | + ), |
|
55 | + ), |
|
56 | + 50 => array( |
|
57 | + 'id' => 'PRC_amount', |
|
58 | + 'content' => $this->_price_amount_stop(), |
|
59 | + 'options' => array( |
|
60 | + 'tipLocation' => 'top', |
|
61 | + 'tipAdjustmentY' => -40, |
|
62 | + ), |
|
63 | + ), |
|
64 | + ); |
|
65 | + } |
|
66 | 66 | |
67 | 67 | |
68 | - protected function _start() |
|
69 | - { |
|
70 | - $content = '<h3>' . __('Add New Default Price', 'event_espresso') . '</h3>'; |
|
71 | - $content .= '<p>' |
|
72 | - . __( |
|
73 | - 'This tour of the add new default price page will go over different areas of the screen to help you understand what they are used for.', |
|
74 | - 'event_espresso' |
|
75 | - ) . '</p>'; |
|
76 | - return $content; |
|
77 | - } |
|
68 | + protected function _start() |
|
69 | + { |
|
70 | + $content = '<h3>' . __('Add New Default Price', 'event_espresso') . '</h3>'; |
|
71 | + $content .= '<p>' |
|
72 | + . __( |
|
73 | + 'This tour of the add new default price page will go over different areas of the screen to help you understand what they are used for.', |
|
74 | + 'event_espresso' |
|
75 | + ) . '</p>'; |
|
76 | + return $content; |
|
77 | + } |
|
78 | 78 | |
79 | - protected function _price_type_stop() |
|
80 | - { |
|
81 | - return '<p>' |
|
82 | - . __( |
|
83 | - 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', |
|
84 | - 'event_espresso' |
|
85 | - ) . '</p>'; |
|
86 | - } |
|
79 | + protected function _price_type_stop() |
|
80 | + { |
|
81 | + return '<p>' |
|
82 | + . __( |
|
83 | + 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', |
|
84 | + 'event_espresso' |
|
85 | + ) . '</p>'; |
|
86 | + } |
|
87 | 87 | |
88 | - protected function _price_name_stop() |
|
89 | - { |
|
90 | - return '<p>' |
|
91 | - . __( |
|
92 | - 'The name of the price, discount, tax, or surcharge that will be seen by your customers.', |
|
93 | - 'event_espresso' |
|
94 | - ) . '</p>'; |
|
95 | - } |
|
88 | + protected function _price_name_stop() |
|
89 | + { |
|
90 | + return '<p>' |
|
91 | + . __( |
|
92 | + 'The name of the price, discount, tax, or surcharge that will be seen by your customers.', |
|
93 | + 'event_espresso' |
|
94 | + ) . '</p>'; |
|
95 | + } |
|
96 | 96 | |
97 | - protected function _price_description_stop() |
|
98 | - { |
|
99 | - return '<p>' |
|
100 | - . __( |
|
101 | - 'View the price type (price, discount, tax or surcharge) description.', |
|
102 | - 'event_espresso' |
|
103 | - ) . '</p>'; |
|
104 | - } |
|
97 | + protected function _price_description_stop() |
|
98 | + { |
|
99 | + return '<p>' |
|
100 | + . __( |
|
101 | + 'View the price type (price, discount, tax or surcharge) description.', |
|
102 | + 'event_espresso' |
|
103 | + ) . '</p>'; |
|
104 | + } |
|
105 | 105 | |
106 | - protected function _price_amount_stop() |
|
107 | - { |
|
108 | - return '<p>' . __('The ticket amount before any deductions.', 'event_espresso') . '</p>'; |
|
109 | - } |
|
106 | + protected function _price_amount_stop() |
|
107 | + { |
|
108 | + return '<p>' . __('The ticket amount before any deductions.', 'event_espresso') . '</p>'; |
|
109 | + } |
|
110 | 110 | } |
@@ -67,12 +67,12 @@ discard block |
||
67 | 67 | |
68 | 68 | protected function _start() |
69 | 69 | { |
70 | - $content = '<h3>' . __('Add New Default Price', 'event_espresso') . '</h3>'; |
|
70 | + $content = '<h3>'.__('Add New Default Price', 'event_espresso').'</h3>'; |
|
71 | 71 | $content .= '<p>' |
72 | 72 | . __( |
73 | 73 | 'This tour of the add new default price page will go over different areas of the screen to help you understand what they are used for.', |
74 | 74 | 'event_espresso' |
75 | - ) . '</p>'; |
|
75 | + ).'</p>'; |
|
76 | 76 | return $content; |
77 | 77 | } |
78 | 78 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | . __( |
83 | 83 | 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.', |
84 | 84 | 'event_espresso' |
85 | - ) . '</p>'; |
|
85 | + ).'</p>'; |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | protected function _price_name_stop() |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | . __( |
92 | 92 | 'The name of the price, discount, tax, or surcharge that will be seen by your customers.', |
93 | 93 | 'event_espresso' |
94 | - ) . '</p>'; |
|
94 | + ).'</p>'; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | protected function _price_description_stop() |
@@ -100,11 +100,11 @@ discard block |
||
100 | 100 | . __( |
101 | 101 | 'View the price type (price, discount, tax or surcharge) description.', |
102 | 102 | 'event_espresso' |
103 | - ) . '</p>'; |
|
103 | + ).'</p>'; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | protected function _price_amount_stop() |
107 | 107 | { |
108 | - return '<p>' . __('The ticket amount before any deductions.', 'event_espresso') . '</p>'; |
|
108 | + return '<p>'.__('The ticket amount before any deductions.', 'event_espresso').'</p>'; |
|
109 | 109 | } |
110 | 110 | } |
@@ -15,135 +15,135 @@ |
||
15 | 15 | class Pricing_Default_Prices_Help_Tour extends EE_Help_Tour |
16 | 16 | { |
17 | 17 | |
18 | - protected function _set_tour_properties() |
|
19 | - { |
|
20 | - $this->_label = __('Default Pricing Tour', 'event_espresso'); |
|
21 | - $this->_slug = 'default-prices-joyride'; |
|
22 | - } |
|
18 | + protected function _set_tour_properties() |
|
19 | + { |
|
20 | + $this->_label = __('Default Pricing Tour', 'event_espresso'); |
|
21 | + $this->_slug = 'default-prices-joyride'; |
|
22 | + } |
|
23 | 23 | |
24 | 24 | |
25 | - protected function _set_tour_stops() |
|
26 | - { |
|
27 | - $this->_stops = array( |
|
28 | - 10 => array( |
|
29 | - 'content' => $this->_start(), |
|
30 | - ), |
|
31 | - 20 => array( |
|
32 | - 'id' => 'name', |
|
33 | - 'content' => $this->_name_column_stop(), |
|
34 | - 'options' => array( |
|
35 | - 'tipLocation' => 'top', |
|
36 | - 'tipAdjustmentX' => -5, |
|
37 | - 'tipAdjustmentY' => -30, |
|
38 | - ), |
|
39 | - ), |
|
40 | - 30 => array( |
|
41 | - 'id' => 'type', |
|
42 | - 'content' => $this->_type_column_stop(), |
|
43 | - 'options' => array( |
|
44 | - 'tipLocation' => 'top', |
|
45 | - 'tipAdjustmentX' => 5, |
|
46 | - 'tipAdjustmentY' => -30, |
|
47 | - ), |
|
48 | - ), |
|
49 | - 40 => array( |
|
50 | - 'id' => 'description', |
|
51 | - 'content' => $this->_description_column_stop(), |
|
52 | - 'options' => array( |
|
53 | - 'tipLocation' => 'top', |
|
54 | - 'tipAdjustmentX' => 5, |
|
55 | - 'tipAdjustmentY' => -30, |
|
56 | - ), |
|
57 | - ), |
|
58 | - 50 => array( |
|
59 | - 'id' => 'amount', |
|
60 | - 'content' => $this->_amount_column_stop(), |
|
61 | - 'options' => array( |
|
62 | - 'tipLocation' => 'left', |
|
63 | - 'tipAdjustmentY' => -50, |
|
64 | - 'tipAdjustmentX' => 20, |
|
65 | - ), |
|
66 | - ), |
|
67 | - 60 => array( |
|
68 | - 'class' => 'bulkactions', |
|
69 | - 'content' => $this->_bulk_actions_stop(), |
|
70 | - 'options' => array( |
|
71 | - 'tipLocation' => 'left', |
|
72 | - 'tipAdjustmentY' => -50, |
|
73 | - 'tipAdjustmentX' => -75, |
|
74 | - ), |
|
75 | - ), |
|
76 | - 70 => array( |
|
77 | - 'id' => 'event-espresso_page_pricing-search-input', |
|
78 | - 'content' => $this->_search_stop(), |
|
79 | - 'options' => array( |
|
80 | - 'tipLocation' => 'left', |
|
81 | - 'tipAdjustmentY' => -50, |
|
82 | - 'tipAdjustmentX' => -15, |
|
83 | - ), |
|
84 | - ), |
|
85 | - ); |
|
86 | - } |
|
25 | + protected function _set_tour_stops() |
|
26 | + { |
|
27 | + $this->_stops = array( |
|
28 | + 10 => array( |
|
29 | + 'content' => $this->_start(), |
|
30 | + ), |
|
31 | + 20 => array( |
|
32 | + 'id' => 'name', |
|
33 | + 'content' => $this->_name_column_stop(), |
|
34 | + 'options' => array( |
|
35 | + 'tipLocation' => 'top', |
|
36 | + 'tipAdjustmentX' => -5, |
|
37 | + 'tipAdjustmentY' => -30, |
|
38 | + ), |
|
39 | + ), |
|
40 | + 30 => array( |
|
41 | + 'id' => 'type', |
|
42 | + 'content' => $this->_type_column_stop(), |
|
43 | + 'options' => array( |
|
44 | + 'tipLocation' => 'top', |
|
45 | + 'tipAdjustmentX' => 5, |
|
46 | + 'tipAdjustmentY' => -30, |
|
47 | + ), |
|
48 | + ), |
|
49 | + 40 => array( |
|
50 | + 'id' => 'description', |
|
51 | + 'content' => $this->_description_column_stop(), |
|
52 | + 'options' => array( |
|
53 | + 'tipLocation' => 'top', |
|
54 | + 'tipAdjustmentX' => 5, |
|
55 | + 'tipAdjustmentY' => -30, |
|
56 | + ), |
|
57 | + ), |
|
58 | + 50 => array( |
|
59 | + 'id' => 'amount', |
|
60 | + 'content' => $this->_amount_column_stop(), |
|
61 | + 'options' => array( |
|
62 | + 'tipLocation' => 'left', |
|
63 | + 'tipAdjustmentY' => -50, |
|
64 | + 'tipAdjustmentX' => 20, |
|
65 | + ), |
|
66 | + ), |
|
67 | + 60 => array( |
|
68 | + 'class' => 'bulkactions', |
|
69 | + 'content' => $this->_bulk_actions_stop(), |
|
70 | + 'options' => array( |
|
71 | + 'tipLocation' => 'left', |
|
72 | + 'tipAdjustmentY' => -50, |
|
73 | + 'tipAdjustmentX' => -75, |
|
74 | + ), |
|
75 | + ), |
|
76 | + 70 => array( |
|
77 | + 'id' => 'event-espresso_page_pricing-search-input', |
|
78 | + 'content' => $this->_search_stop(), |
|
79 | + 'options' => array( |
|
80 | + 'tipLocation' => 'left', |
|
81 | + 'tipAdjustmentY' => -50, |
|
82 | + 'tipAdjustmentX' => -15, |
|
83 | + ), |
|
84 | + ), |
|
85 | + ); |
|
86 | + } |
|
87 | 87 | |
88 | 88 | |
89 | - protected function _start() |
|
90 | - { |
|
91 | - $content = '<h3>' . __('Default Pricing', 'event_espresso') . '</h3>'; |
|
92 | - $content .= '<p>' |
|
93 | - . __( |
|
94 | - 'This tour of the Default Pricing page will go over different areas of the screen to help you understand what they are used for.', |
|
95 | - 'event_espresso' |
|
96 | - ) . '</p>'; |
|
97 | - return $content; |
|
98 | - } |
|
89 | + protected function _start() |
|
90 | + { |
|
91 | + $content = '<h3>' . __('Default Pricing', 'event_espresso') . '</h3>'; |
|
92 | + $content .= '<p>' |
|
93 | + . __( |
|
94 | + 'This tour of the Default Pricing page will go over different areas of the screen to help you understand what they are used for.', |
|
95 | + 'event_espresso' |
|
96 | + ) . '</p>'; |
|
97 | + return $content; |
|
98 | + } |
|
99 | 99 | |
100 | - protected function _name_column_stop() |
|
101 | - { |
|
102 | - return '<p>' |
|
103 | - . __( |
|
104 | - 'The name of the price, discount, tax, or surcharge that will be seen by your customers. Can be sorted in ascending or descending order.', |
|
105 | - 'event_espresso' |
|
106 | - ) . '</p>'; |
|
107 | - } |
|
100 | + protected function _name_column_stop() |
|
101 | + { |
|
102 | + return '<p>' |
|
103 | + . __( |
|
104 | + 'The name of the price, discount, tax, or surcharge that will be seen by your customers. Can be sorted in ascending or descending order.', |
|
105 | + 'event_espresso' |
|
106 | + ) . '</p>'; |
|
107 | + } |
|
108 | 108 | |
109 | - protected function _type_column_stop() |
|
110 | - { |
|
111 | - return '<p>' |
|
112 | - . __( |
|
113 | - 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs. Can be sorted in ascending or descending order.', |
|
114 | - 'event_espresso' |
|
115 | - ) . '</p>'; |
|
116 | - } |
|
109 | + protected function _type_column_stop() |
|
110 | + { |
|
111 | + return '<p>' |
|
112 | + . __( |
|
113 | + 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs. Can be sorted in ascending or descending order.', |
|
114 | + 'event_espresso' |
|
115 | + ) . '</p>'; |
|
116 | + } |
|
117 | 117 | |
118 | - protected function _description_column_stop() |
|
119 | - { |
|
120 | - return '<p>' |
|
121 | - . __( |
|
122 | - 'View the price type (price, discount, tax or surcharge) description.', |
|
123 | - 'event_espresso' |
|
124 | - ) . '</p>'; |
|
125 | - } |
|
118 | + protected function _description_column_stop() |
|
119 | + { |
|
120 | + return '<p>' |
|
121 | + . __( |
|
122 | + 'View the price type (price, discount, tax or surcharge) description.', |
|
123 | + 'event_espresso' |
|
124 | + ) . '</p>'; |
|
125 | + } |
|
126 | 126 | |
127 | - protected function _amount_column_stop() |
|
128 | - { |
|
129 | - return '<p>' |
|
130 | - . __( |
|
131 | - 'The ticket amount before any deductions. Can be sorted in ascending or descending order.', |
|
132 | - 'event_espresso' |
|
133 | - ) . '</p>'; |
|
134 | - } |
|
127 | + protected function _amount_column_stop() |
|
128 | + { |
|
129 | + return '<p>' |
|
130 | + . __( |
|
131 | + 'The ticket amount before any deductions. Can be sorted in ascending or descending order.', |
|
132 | + 'event_espresso' |
|
133 | + ) . '</p>'; |
|
134 | + } |
|
135 | 135 | |
136 | - protected function _bulk_actions_stop() |
|
137 | - { |
|
138 | - return '<p>' . __('Perform bulk actions to multiple price types.', 'event_espresso') . '</p>'; |
|
139 | - } |
|
136 | + protected function _bulk_actions_stop() |
|
137 | + { |
|
138 | + return '<p>' . __('Perform bulk actions to multiple price types.', 'event_espresso') . '</p>'; |
|
139 | + } |
|
140 | 140 | |
141 | - protected function _search_stop() |
|
142 | - { |
|
143 | - return '<p>' |
|
144 | - . __( |
|
145 | - 'Search through default pricing. The following sources will be searched: Price Name, Price Type, Price Description, and Price Amount.', |
|
146 | - 'event_espresso' |
|
147 | - ) . '</p>'; |
|
148 | - } |
|
141 | + protected function _search_stop() |
|
142 | + { |
|
143 | + return '<p>' |
|
144 | + . __( |
|
145 | + 'Search through default pricing. The following sources will be searched: Price Name, Price Type, Price Description, and Price Amount.', |
|
146 | + 'event_espresso' |
|
147 | + ) . '</p>'; |
|
148 | + } |
|
149 | 149 | } |
@@ -88,12 +88,12 @@ discard block |
||
88 | 88 | |
89 | 89 | protected function _start() |
90 | 90 | { |
91 | - $content = '<h3>' . __('Default Pricing', 'event_espresso') . '</h3>'; |
|
91 | + $content = '<h3>'.__('Default Pricing', 'event_espresso').'</h3>'; |
|
92 | 92 | $content .= '<p>' |
93 | 93 | . __( |
94 | 94 | 'This tour of the Default Pricing page will go over different areas of the screen to help you understand what they are used for.', |
95 | 95 | 'event_espresso' |
96 | - ) . '</p>'; |
|
96 | + ).'</p>'; |
|
97 | 97 | return $content; |
98 | 98 | } |
99 | 99 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | . __( |
104 | 104 | 'The name of the price, discount, tax, or surcharge that will be seen by your customers. Can be sorted in ascending or descending order.', |
105 | 105 | 'event_espresso' |
106 | - ) . '</p>'; |
|
106 | + ).'</p>'; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | protected function _type_column_stop() |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | . __( |
113 | 113 | 'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs. Can be sorted in ascending or descending order.', |
114 | 114 | 'event_espresso' |
115 | - ) . '</p>'; |
|
115 | + ).'</p>'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | protected function _description_column_stop() |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | . __( |
122 | 122 | 'View the price type (price, discount, tax or surcharge) description.', |
123 | 123 | 'event_espresso' |
124 | - ) . '</p>'; |
|
124 | + ).'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _amount_column_stop() |
@@ -130,12 +130,12 @@ discard block |
||
130 | 130 | . __( |
131 | 131 | 'The ticket amount before any deductions. Can be sorted in ascending or descending order.', |
132 | 132 | 'event_espresso' |
133 | - ) . '</p>'; |
|
133 | + ).'</p>'; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | protected function _bulk_actions_stop() |
137 | 137 | { |
138 | - return '<p>' . __('Perform bulk actions to multiple price types.', 'event_espresso') . '</p>'; |
|
138 | + return '<p>'.__('Perform bulk actions to multiple price types.', 'event_espresso').'</p>'; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | protected function _search_stop() |
@@ -144,6 +144,6 @@ discard block |
||
144 | 144 | . __( |
145 | 145 | 'Search through default pricing. The following sources will be searched: Price Name, Price Type, Price Description, and Price Amount.', |
146 | 146 | 'event_espresso' |
147 | - ) . '</p>'; |
|
147 | + ).'</p>'; |
|
148 | 148 | } |
149 | 149 | } |