@@ -169,8 +169,8 @@ discard block |
||
169 | 169 | $this->_template_args['admin_page_subtitle'] = esc_html__( |
170 | 170 | 'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.', |
171 | 171 | 'event_espresso' |
172 | - ) . $settings_message; |
|
173 | - $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
172 | + ).$settings_message; |
|
173 | + $template = EE_ABOUT_TEMPLATE_PATH.'ee4-overview.template.php'; |
|
174 | 174 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
175 | 175 | $template, |
176 | 176 | $this->_template_args, |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | protected function _get_started_steps() |
184 | 184 | { |
185 | - $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>'; |
|
185 | + $steps = '<h2>'.esc_html__('Getting Started', 'event_espresso').'</h2>'; |
|
186 | 186 | $step_one = '<p>' |
187 | 187 | . sprintf( |
188 | 188 | esc_html__( |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | '</strong>', |
194 | 194 | '<a href="admin.php?page=espresso_general_settings">', |
195 | 195 | '</a>' |
196 | - ) . '</strong></p>'; |
|
196 | + ).'</strong></p>'; |
|
197 | 197 | $step_two = '<p>' |
198 | 198 | . sprintf( |
199 | 199 | esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'), |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | '</strong>', |
202 | 202 | '<a href="admin.php?page=espresso_payment_settings">', |
203 | 203 | '</a>' |
204 | - ) . '</strong></p>'; |
|
204 | + ).'</strong></p>'; |
|
205 | 205 | $step_three = '<p>' |
206 | 206 | . sprintf( |
207 | 207 | esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'), |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | '</strong>', |
210 | 210 | '<a href="admin.php?page=espresso_events&action=create_new">', |
211 | 211 | '</a>' |
212 | - ) . '</strong></p>'; |
|
212 | + ).'</strong></p>'; |
|
213 | 213 | |
214 | 214 | // done? |
215 | 215 | $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true; |
@@ -238,10 +238,10 @@ discard block |
||
238 | 238 | } |
239 | 239 | |
240 | 240 | // now let's put it together |
241 | - $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
242 | - $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
241 | + $steps .= sprintf('%s'.$step_one.'%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
242 | + $steps .= sprintf('%s'.$step_two.'%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
243 | 243 | $steps .= sprintf( |
244 | - '%s' . $step_three . '%s', |
|
244 | + '%s'.$step_three.'%s', |
|
245 | 245 | $done_step_three ? '<strike>' : '', |
246 | 246 | $done_step_three ? '</strike>' : '' |
247 | 247 | ); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | 'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', |
261 | 261 | 'event_espresso' |
262 | 262 | ); |
263 | - $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
263 | + $template = EE_ABOUT_TEMPLATE_PATH.'credits.template.php'; |
|
264 | 264 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
265 | 265 | $template, |
266 | 266 | $this->_template_args, |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | '<strong>', |
287 | 287 | '</strong>' |
288 | 288 | ); |
289 | - $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
289 | + $template = EE_ABOUT_TEMPLATE_PATH.'decafvpro.template.php'; |
|
290 | 290 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
291 | 291 | $template, |
292 | 292 | $this->_template_args, |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | 'At Event Espresso, customer satisfaction is our ultimate goal.', |
303 | 303 | 'event_espresso' |
304 | 304 | ); |
305 | - $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
305 | + $template = EE_ABOUT_TEMPLATE_PATH.'reviews.template.php'; |
|
306 | 306 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
307 | 307 | $template, |
308 | 308 | $this->_template_args, |
@@ -17,128 +17,128 @@ discard block |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - protected function _init_page_props() |
|
21 | - { |
|
22 | - $this->page_slug = EE_ABOUT_PG_SLUG; |
|
23 | - $this->page_label = esc_html__('About Event Espresso', 'event_espresso'); |
|
24 | - $this->_admin_base_url = EE_ABOUT_ADMIN_URL; |
|
25 | - $this->_admin_base_path = EE_ABOUT_ADMIN; |
|
26 | - } |
|
27 | - |
|
28 | - |
|
29 | - protected function _ajax_hooks() |
|
30 | - { |
|
31 | - // todo: all hooks for ajax goes here. |
|
32 | - } |
|
33 | - |
|
34 | - |
|
35 | - protected function _define_page_props() |
|
36 | - { |
|
37 | - $this->_labels = array(); |
|
38 | - $this->_admin_page_title = $this->page_label; |
|
39 | - } |
|
40 | - |
|
41 | - |
|
42 | - protected function _set_page_routes() |
|
43 | - { |
|
44 | - $this->_page_routes = array( |
|
45 | - 'default' => array( |
|
46 | - 'func' => '_overview', |
|
47 | - 'capability' => 'manage_options', |
|
48 | - ), |
|
49 | - // 'overview' => '_overview', |
|
50 | - // 'func' => '_overview', |
|
51 | - // 'capability' => 'ee_read_ee' |
|
52 | - // ), |
|
53 | - 'credits' => array( |
|
54 | - 'func' => '_credits', |
|
55 | - 'capability' => 'manage_options', |
|
56 | - ), |
|
57 | - |
|
58 | - 'decafvpro' => array( |
|
59 | - 'func' => '_decafvpro', |
|
60 | - 'capability' => 'manage_options', |
|
61 | - ), |
|
62 | - 'reviews' => array( |
|
63 | - 'func' => '_reviews', |
|
64 | - 'capability' => 'manage_options', |
|
65 | - ), |
|
66 | - ); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - protected function _set_page_config() |
|
71 | - { |
|
72 | - $this->_page_config = array( |
|
73 | - /*'default' => array( |
|
20 | + protected function _init_page_props() |
|
21 | + { |
|
22 | + $this->page_slug = EE_ABOUT_PG_SLUG; |
|
23 | + $this->page_label = esc_html__('About Event Espresso', 'event_espresso'); |
|
24 | + $this->_admin_base_url = EE_ABOUT_ADMIN_URL; |
|
25 | + $this->_admin_base_path = EE_ABOUT_ADMIN; |
|
26 | + } |
|
27 | + |
|
28 | + |
|
29 | + protected function _ajax_hooks() |
|
30 | + { |
|
31 | + // todo: all hooks for ajax goes here. |
|
32 | + } |
|
33 | + |
|
34 | + |
|
35 | + protected function _define_page_props() |
|
36 | + { |
|
37 | + $this->_labels = array(); |
|
38 | + $this->_admin_page_title = $this->page_label; |
|
39 | + } |
|
40 | + |
|
41 | + |
|
42 | + protected function _set_page_routes() |
|
43 | + { |
|
44 | + $this->_page_routes = array( |
|
45 | + 'default' => array( |
|
46 | + 'func' => '_overview', |
|
47 | + 'capability' => 'manage_options', |
|
48 | + ), |
|
49 | + // 'overview' => '_overview', |
|
50 | + // 'func' => '_overview', |
|
51 | + // 'capability' => 'ee_read_ee' |
|
52 | + // ), |
|
53 | + 'credits' => array( |
|
54 | + 'func' => '_credits', |
|
55 | + 'capability' => 'manage_options', |
|
56 | + ), |
|
57 | + |
|
58 | + 'decafvpro' => array( |
|
59 | + 'func' => '_decafvpro', |
|
60 | + 'capability' => 'manage_options', |
|
61 | + ), |
|
62 | + 'reviews' => array( |
|
63 | + 'func' => '_reviews', |
|
64 | + 'capability' => 'manage_options', |
|
65 | + ), |
|
66 | + ); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + protected function _set_page_config() |
|
71 | + { |
|
72 | + $this->_page_config = array( |
|
73 | + /*'default' => array( |
|
74 | 74 | 'nav' => array( |
75 | 75 | 'label' => esc_html__('What\'s New', 'event_espresso'), |
76 | 76 | 'order' => 10), |
77 | 77 | 'require_nonce' => FALSE |
78 | 78 | ),*/ |
79 | - // 'overview' => array( |
|
80 | - 'default' => array( |
|
81 | - 'nav' => array( |
|
82 | - 'label' => esc_html__('About', 'event_espresso'), |
|
83 | - 'order' => 20, |
|
84 | - ), |
|
85 | - 'require_nonce' => false, |
|
86 | - ), |
|
87 | - 'credits' => array( |
|
88 | - 'nav' => array( |
|
89 | - 'label' => esc_html__('Credits', 'event_espresso'), |
|
90 | - 'order' => 30, |
|
91 | - ), |
|
92 | - 'require_nonce' => false, |
|
93 | - ), |
|
94 | - |
|
95 | - 'decafvpro' => array( |
|
96 | - 'nav' => array( |
|
97 | - 'label' => esc_html__('Decaf vs Regular', 'event_espresso'), |
|
98 | - 'order' => 40, |
|
99 | - ), |
|
100 | - 'require_nonce' => false, |
|
101 | - ), |
|
102 | - 'reviews' => array( |
|
103 | - 'nav' => array( |
|
104 | - 'label' => esc_html__('Reviews', 'event_espresso'), |
|
105 | - 'order' => 50, |
|
106 | - ), |
|
107 | - 'require_nonce' => false, |
|
108 | - ), |
|
109 | - ); |
|
110 | - } |
|
111 | - |
|
112 | - |
|
113 | - // none of the below group are currently used for Support pages |
|
114 | - protected function _add_screen_options() |
|
115 | - { |
|
116 | - } |
|
117 | - |
|
118 | - protected function _add_feature_pointers() |
|
119 | - { |
|
120 | - } |
|
121 | - |
|
122 | - public function admin_init() |
|
123 | - { |
|
124 | - } |
|
125 | - |
|
126 | - public function admin_notices() |
|
127 | - { |
|
128 | - } |
|
129 | - |
|
130 | - public function admin_footer_scripts() |
|
131 | - { |
|
132 | - } |
|
133 | - |
|
134 | - public function load_scripts_styles() |
|
135 | - { |
|
136 | - } |
|
137 | - |
|
138 | - |
|
139 | - protected function _whats_new() |
|
140 | - { |
|
141 | - /*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE; |
|
79 | + // 'overview' => array( |
|
80 | + 'default' => array( |
|
81 | + 'nav' => array( |
|
82 | + 'label' => esc_html__('About', 'event_espresso'), |
|
83 | + 'order' => 20, |
|
84 | + ), |
|
85 | + 'require_nonce' => false, |
|
86 | + ), |
|
87 | + 'credits' => array( |
|
88 | + 'nav' => array( |
|
89 | + 'label' => esc_html__('Credits', 'event_espresso'), |
|
90 | + 'order' => 30, |
|
91 | + ), |
|
92 | + 'require_nonce' => false, |
|
93 | + ), |
|
94 | + |
|
95 | + 'decafvpro' => array( |
|
96 | + 'nav' => array( |
|
97 | + 'label' => esc_html__('Decaf vs Regular', 'event_espresso'), |
|
98 | + 'order' => 40, |
|
99 | + ), |
|
100 | + 'require_nonce' => false, |
|
101 | + ), |
|
102 | + 'reviews' => array( |
|
103 | + 'nav' => array( |
|
104 | + 'label' => esc_html__('Reviews', 'event_espresso'), |
|
105 | + 'order' => 50, |
|
106 | + ), |
|
107 | + 'require_nonce' => false, |
|
108 | + ), |
|
109 | + ); |
|
110 | + } |
|
111 | + |
|
112 | + |
|
113 | + // none of the below group are currently used for Support pages |
|
114 | + protected function _add_screen_options() |
|
115 | + { |
|
116 | + } |
|
117 | + |
|
118 | + protected function _add_feature_pointers() |
|
119 | + { |
|
120 | + } |
|
121 | + |
|
122 | + public function admin_init() |
|
123 | + { |
|
124 | + } |
|
125 | + |
|
126 | + public function admin_notices() |
|
127 | + { |
|
128 | + } |
|
129 | + |
|
130 | + public function admin_footer_scripts() |
|
131 | + { |
|
132 | + } |
|
133 | + |
|
134 | + public function load_scripts_styles() |
|
135 | + { |
|
136 | + } |
|
137 | + |
|
138 | + |
|
139 | + protected function _whats_new() |
|
140 | + { |
|
141 | + /*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE; |
|
142 | 142 | $steps = $steps !== FALSE ? $steps : ''; |
143 | 143 | $this->_admin_page_title = sprintf( esc_html__('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION ); |
144 | 144 | $settings_message = $steps; |
@@ -146,168 +146,168 @@ discard block |
||
146 | 146 | $template = EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php'; |
147 | 147 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
148 | 148 | $this->display_about_admin_page();*/ |
149 | - } |
|
149 | + } |
|
150 | 150 | |
151 | 151 | |
152 | - protected function _overview() |
|
153 | - { |
|
154 | - /*$this->_template_args['admin_page_title'] = esc_html__('About Event Espresso', 'event_espresso'); |
|
152 | + protected function _overview() |
|
153 | + { |
|
154 | + /*$this->_template_args['admin_page_title'] = esc_html__('About Event Espresso', 'event_espresso'); |
|
155 | 155 | $this->_template_args['admin_page_subtitle'] = esc_html__('Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', 'event_espresso'); |
156 | 156 | $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
157 | 157 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
158 | 158 | $this->display_about_admin_page();*/ |
159 | 159 | |
160 | - // Copied from _whats_new() |
|
161 | - $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance |
|
162 | - ? $this->_get_started_steps() : false; |
|
163 | - $steps = $steps !== false ? $steps : ''; |
|
164 | - $this->_admin_page_title = sprintf( |
|
165 | - esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
166 | - EVENT_ESPRESSO_VERSION |
|
167 | - ); |
|
168 | - $settings_message = $steps; |
|
169 | - $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
170 | - 'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.', |
|
171 | - 'event_espresso' |
|
172 | - ) . $settings_message; |
|
173 | - $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
174 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
175 | - $template, |
|
176 | - $this->_template_args, |
|
177 | - true |
|
178 | - ); |
|
179 | - $this->display_about_admin_page(); |
|
180 | - } |
|
181 | - |
|
182 | - |
|
183 | - protected function _get_started_steps() |
|
184 | - { |
|
185 | - $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>'; |
|
186 | - $step_one = '<p>' |
|
187 | - . sprintf( |
|
188 | - esc_html__( |
|
189 | - '%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.', |
|
190 | - 'event_espresso' |
|
191 | - ), |
|
192 | - '<strong>', |
|
193 | - '</strong>', |
|
194 | - '<a href="admin.php?page=espresso_general_settings">', |
|
195 | - '</a>' |
|
196 | - ) . '</strong></p>'; |
|
197 | - $step_two = '<p>' |
|
198 | - . sprintf( |
|
199 | - esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'), |
|
200 | - '<strong>', |
|
201 | - '</strong>', |
|
202 | - '<a href="admin.php?page=espresso_payment_settings">', |
|
203 | - '</a>' |
|
204 | - ) . '</strong></p>'; |
|
205 | - $step_three = '<p>' |
|
206 | - . sprintf( |
|
207 | - esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'), |
|
208 | - '<strong>', |
|
209 | - '</strong>', |
|
210 | - '<a href="admin.php?page=espresso_events&action=create_new">', |
|
211 | - '</a>' |
|
212 | - ) . '</strong></p>'; |
|
213 | - |
|
214 | - // done? |
|
215 | - $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true; |
|
216 | - $active_invoice_pm = EEM_Payment_Method::instance()->get_one_active( |
|
217 | - EEM_Payment_Method::scope_cart, |
|
218 | - array(array('PMD_type' => 'Invoice')) |
|
219 | - ); |
|
220 | - $active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart); |
|
221 | - // done step two if a non-invoice paymetn method is active; or there is more than one PM active, or |
|
222 | - // if only the invoice is active but it's clearly been updated |
|
223 | - $done_step_two = $active_pms_count > 1 || |
|
224 | - ($active_pms_count === 1 && ! $active_invoice_pm) || |
|
225 | - ($active_invoice_pm instanceof EE_Payment_Method && ( |
|
226 | - $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') || |
|
227 | - $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') || |
|
228 | - $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') || |
|
229 | - $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') || |
|
230 | - $active_invoice_pm->get_extra_meta('page_extra_info', true, '') |
|
231 | - ) |
|
232 | - ); |
|
233 | - $done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false; |
|
234 | - |
|
235 | - // if ALL steps are done, let's just return FALSE so we don't display anything |
|
236 | - if ($done_step_one && $done_step_two && $done_step_three) { |
|
237 | - return false; |
|
238 | - } |
|
239 | - |
|
240 | - // now let's put it together |
|
241 | - $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
242 | - $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
243 | - $steps .= sprintf( |
|
244 | - '%s' . $step_three . '%s', |
|
245 | - $done_step_three ? '<strike>' : '', |
|
246 | - $done_step_three ? '</strike>' : '' |
|
247 | - ); |
|
248 | - |
|
249 | - return $steps; |
|
250 | - } |
|
251 | - |
|
252 | - |
|
253 | - protected function _credits() |
|
254 | - { |
|
255 | - $this->_template_args['admin_page_title'] = sprintf( |
|
256 | - esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
257 | - EVENT_ESPRESSO_VERSION |
|
258 | - ); |
|
259 | - $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
260 | - 'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', |
|
261 | - 'event_espresso' |
|
262 | - ); |
|
263 | - $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
264 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
265 | - $template, |
|
266 | - $this->_template_args, |
|
267 | - true |
|
268 | - ); |
|
269 | - $this->display_about_admin_page(); |
|
270 | - } |
|
271 | - |
|
272 | - |
|
273 | - protected function _decafvpro() |
|
274 | - { |
|
275 | - $this->_template_args['admin_page_title'] = sprintf( |
|
276 | - esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
277 | - EVENT_ESPRESSO_VERSION |
|
278 | - ); |
|
279 | - $this->_template_args['admin_page_subtitle'] = sprintf( |
|
280 | - esc_html__( |
|
281 | - 'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s', |
|
282 | - 'event_espresso' |
|
283 | - ), |
|
284 | - '<em>', |
|
285 | - '</em>', |
|
286 | - '<strong>', |
|
287 | - '</strong>' |
|
288 | - ); |
|
289 | - $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
290 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
291 | - $template, |
|
292 | - $this->_template_args, |
|
293 | - true |
|
294 | - ); |
|
295 | - $this->display_about_admin_page(); |
|
296 | - } |
|
297 | - |
|
298 | - protected function _reviews() |
|
299 | - { |
|
300 | - $this->_template_args['admin_page_title'] = esc_html__('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
301 | - $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
302 | - 'At Event Espresso, customer satisfaction is our ultimate goal.', |
|
303 | - 'event_espresso' |
|
304 | - ); |
|
305 | - $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
306 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
307 | - $template, |
|
308 | - $this->_template_args, |
|
309 | - true |
|
310 | - ); |
|
311 | - $this->display_about_admin_page(); |
|
312 | - } |
|
160 | + // Copied from _whats_new() |
|
161 | + $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance |
|
162 | + ? $this->_get_started_steps() : false; |
|
163 | + $steps = $steps !== false ? $steps : ''; |
|
164 | + $this->_admin_page_title = sprintf( |
|
165 | + esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
166 | + EVENT_ESPRESSO_VERSION |
|
167 | + ); |
|
168 | + $settings_message = $steps; |
|
169 | + $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
170 | + 'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.', |
|
171 | + 'event_espresso' |
|
172 | + ) . $settings_message; |
|
173 | + $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
174 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
175 | + $template, |
|
176 | + $this->_template_args, |
|
177 | + true |
|
178 | + ); |
|
179 | + $this->display_about_admin_page(); |
|
180 | + } |
|
181 | + |
|
182 | + |
|
183 | + protected function _get_started_steps() |
|
184 | + { |
|
185 | + $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>'; |
|
186 | + $step_one = '<p>' |
|
187 | + . sprintf( |
|
188 | + esc_html__( |
|
189 | + '%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.', |
|
190 | + 'event_espresso' |
|
191 | + ), |
|
192 | + '<strong>', |
|
193 | + '</strong>', |
|
194 | + '<a href="admin.php?page=espresso_general_settings">', |
|
195 | + '</a>' |
|
196 | + ) . '</strong></p>'; |
|
197 | + $step_two = '<p>' |
|
198 | + . sprintf( |
|
199 | + esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'), |
|
200 | + '<strong>', |
|
201 | + '</strong>', |
|
202 | + '<a href="admin.php?page=espresso_payment_settings">', |
|
203 | + '</a>' |
|
204 | + ) . '</strong></p>'; |
|
205 | + $step_three = '<p>' |
|
206 | + . sprintf( |
|
207 | + esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'), |
|
208 | + '<strong>', |
|
209 | + '</strong>', |
|
210 | + '<a href="admin.php?page=espresso_events&action=create_new">', |
|
211 | + '</a>' |
|
212 | + ) . '</strong></p>'; |
|
213 | + |
|
214 | + // done? |
|
215 | + $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true; |
|
216 | + $active_invoice_pm = EEM_Payment_Method::instance()->get_one_active( |
|
217 | + EEM_Payment_Method::scope_cart, |
|
218 | + array(array('PMD_type' => 'Invoice')) |
|
219 | + ); |
|
220 | + $active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart); |
|
221 | + // done step two if a non-invoice paymetn method is active; or there is more than one PM active, or |
|
222 | + // if only the invoice is active but it's clearly been updated |
|
223 | + $done_step_two = $active_pms_count > 1 || |
|
224 | + ($active_pms_count === 1 && ! $active_invoice_pm) || |
|
225 | + ($active_invoice_pm instanceof EE_Payment_Method && ( |
|
226 | + $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') || |
|
227 | + $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') || |
|
228 | + $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') || |
|
229 | + $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') || |
|
230 | + $active_invoice_pm->get_extra_meta('page_extra_info', true, '') |
|
231 | + ) |
|
232 | + ); |
|
233 | + $done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false; |
|
234 | + |
|
235 | + // if ALL steps are done, let's just return FALSE so we don't display anything |
|
236 | + if ($done_step_one && $done_step_two && $done_step_three) { |
|
237 | + return false; |
|
238 | + } |
|
239 | + |
|
240 | + // now let's put it together |
|
241 | + $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
242 | + $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
243 | + $steps .= sprintf( |
|
244 | + '%s' . $step_three . '%s', |
|
245 | + $done_step_three ? '<strike>' : '', |
|
246 | + $done_step_three ? '</strike>' : '' |
|
247 | + ); |
|
248 | + |
|
249 | + return $steps; |
|
250 | + } |
|
251 | + |
|
252 | + |
|
253 | + protected function _credits() |
|
254 | + { |
|
255 | + $this->_template_args['admin_page_title'] = sprintf( |
|
256 | + esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
257 | + EVENT_ESPRESSO_VERSION |
|
258 | + ); |
|
259 | + $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
260 | + 'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', |
|
261 | + 'event_espresso' |
|
262 | + ); |
|
263 | + $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
264 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
265 | + $template, |
|
266 | + $this->_template_args, |
|
267 | + true |
|
268 | + ); |
|
269 | + $this->display_about_admin_page(); |
|
270 | + } |
|
271 | + |
|
272 | + |
|
273 | + protected function _decafvpro() |
|
274 | + { |
|
275 | + $this->_template_args['admin_page_title'] = sprintf( |
|
276 | + esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
277 | + EVENT_ESPRESSO_VERSION |
|
278 | + ); |
|
279 | + $this->_template_args['admin_page_subtitle'] = sprintf( |
|
280 | + esc_html__( |
|
281 | + 'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s', |
|
282 | + 'event_espresso' |
|
283 | + ), |
|
284 | + '<em>', |
|
285 | + '</em>', |
|
286 | + '<strong>', |
|
287 | + '</strong>' |
|
288 | + ); |
|
289 | + $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
290 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
291 | + $template, |
|
292 | + $this->_template_args, |
|
293 | + true |
|
294 | + ); |
|
295 | + $this->display_about_admin_page(); |
|
296 | + } |
|
297 | + |
|
298 | + protected function _reviews() |
|
299 | + { |
|
300 | + $this->_template_args['admin_page_title'] = esc_html__('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
301 | + $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
302 | + 'At Event Espresso, customer satisfaction is our ultimate goal.', |
|
303 | + 'event_espresso' |
|
304 | + ); |
|
305 | + $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
306 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
307 | + $template, |
|
308 | + $this->_template_args, |
|
309 | + true |
|
310 | + ); |
|
311 | + $this->display_about_admin_page(); |
|
312 | + } |
|
313 | 313 | } |
@@ -15,105 +15,105 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - 0 => array( |
|
22 | - 'content_id' => 'message_status-' . EEM_Message::status_sent, |
|
23 | - 'target' => '.msg-status-' . EEM_Message::status_sent, |
|
24 | - 'content' => $this->_message_status_legend(EEM_Message::status_sent), |
|
25 | - 'options' => array( |
|
26 | - 'position' => array( |
|
27 | - 'target' => 'mouse', |
|
28 | - ), |
|
29 | - ), |
|
30 | - ), |
|
31 | - 1 => array( |
|
32 | - 'content_id' => 'message_status-' . EEM_Message::status_idle, |
|
33 | - 'target' => '.msg-status-' . EEM_Message::status_idle, |
|
34 | - 'content' => $this->_message_status_legend(EEM_Message::status_idle), |
|
35 | - 'options' => array( |
|
36 | - 'position' => array( |
|
37 | - 'target' => 'mouse', |
|
38 | - ), |
|
39 | - ), |
|
40 | - ), |
|
41 | - 2 => array( |
|
42 | - 'content_id' => 'message_status-' . EEM_Message::status_failed, |
|
43 | - 'target' => '.msg-status-' . EEM_Message::status_failed, |
|
44 | - 'content' => $this->_message_status_legend(EEM_Message::status_failed), |
|
45 | - 'options' => array( |
|
46 | - 'position' => array( |
|
47 | - 'target' => 'mouse', |
|
48 | - ), |
|
49 | - ), |
|
50 | - ), |
|
51 | - 3 => array( |
|
52 | - 'content_id' => 'message_status-' . EEM_Message::status_resend, |
|
53 | - 'target' => '.msg-status-' . EEM_Message::status_resend, |
|
54 | - 'content' => $this->_message_status_legend(EEM_Message::status_resend), |
|
55 | - 'options' => array( |
|
56 | - 'position' => array( |
|
57 | - 'target' => 'mouse', |
|
58 | - ), |
|
59 | - ), |
|
60 | - ), |
|
61 | - 4 => array( |
|
62 | - 'content_id' => 'message_status-' . EEM_Message::status_incomplete, |
|
63 | - 'target' => '.msg-status-' . EEM_Message::status_incomplete, |
|
64 | - 'content' => $this->_message_status_legend(EEM_Message::status_incomplete), |
|
65 | - 'options' => array( |
|
66 | - 'position' => array( |
|
67 | - 'target' => 'mouse', |
|
68 | - ), |
|
69 | - ), |
|
70 | - ), |
|
71 | - 5 => array( |
|
72 | - 'content_id' => 'message_status-' . EEM_Message::status_retry, |
|
73 | - 'target' => '.msg-status-' . EEM_Message::status_retry, |
|
74 | - 'content' => $this->_message_status_legend(EEM_Message::status_retry), |
|
75 | - 'options' => array( |
|
76 | - 'position' => array( |
|
77 | - 'target' => 'mouse', |
|
78 | - ), |
|
79 | - ), |
|
80 | - ), |
|
81 | - 6 => array( |
|
82 | - 'content_id' => 'message_status-' . EEM_Message::status_debug_only, |
|
83 | - 'target' => '.msg-status-' . EEM_Message::status_debug_only, |
|
84 | - 'content' => $this->_message_status_legend(EEM_Message::status_debug_only), |
|
85 | - 'options' => array( |
|
86 | - 'position' => array( |
|
87 | - 'target' => 'mouse', |
|
88 | - ), |
|
89 | - ), |
|
90 | - ), |
|
91 | - ); |
|
92 | - } |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + 0 => array( |
|
22 | + 'content_id' => 'message_status-' . EEM_Message::status_sent, |
|
23 | + 'target' => '.msg-status-' . EEM_Message::status_sent, |
|
24 | + 'content' => $this->_message_status_legend(EEM_Message::status_sent), |
|
25 | + 'options' => array( |
|
26 | + 'position' => array( |
|
27 | + 'target' => 'mouse', |
|
28 | + ), |
|
29 | + ), |
|
30 | + ), |
|
31 | + 1 => array( |
|
32 | + 'content_id' => 'message_status-' . EEM_Message::status_idle, |
|
33 | + 'target' => '.msg-status-' . EEM_Message::status_idle, |
|
34 | + 'content' => $this->_message_status_legend(EEM_Message::status_idle), |
|
35 | + 'options' => array( |
|
36 | + 'position' => array( |
|
37 | + 'target' => 'mouse', |
|
38 | + ), |
|
39 | + ), |
|
40 | + ), |
|
41 | + 2 => array( |
|
42 | + 'content_id' => 'message_status-' . EEM_Message::status_failed, |
|
43 | + 'target' => '.msg-status-' . EEM_Message::status_failed, |
|
44 | + 'content' => $this->_message_status_legend(EEM_Message::status_failed), |
|
45 | + 'options' => array( |
|
46 | + 'position' => array( |
|
47 | + 'target' => 'mouse', |
|
48 | + ), |
|
49 | + ), |
|
50 | + ), |
|
51 | + 3 => array( |
|
52 | + 'content_id' => 'message_status-' . EEM_Message::status_resend, |
|
53 | + 'target' => '.msg-status-' . EEM_Message::status_resend, |
|
54 | + 'content' => $this->_message_status_legend(EEM_Message::status_resend), |
|
55 | + 'options' => array( |
|
56 | + 'position' => array( |
|
57 | + 'target' => 'mouse', |
|
58 | + ), |
|
59 | + ), |
|
60 | + ), |
|
61 | + 4 => array( |
|
62 | + 'content_id' => 'message_status-' . EEM_Message::status_incomplete, |
|
63 | + 'target' => '.msg-status-' . EEM_Message::status_incomplete, |
|
64 | + 'content' => $this->_message_status_legend(EEM_Message::status_incomplete), |
|
65 | + 'options' => array( |
|
66 | + 'position' => array( |
|
67 | + 'target' => 'mouse', |
|
68 | + ), |
|
69 | + ), |
|
70 | + ), |
|
71 | + 5 => array( |
|
72 | + 'content_id' => 'message_status-' . EEM_Message::status_retry, |
|
73 | + 'target' => '.msg-status-' . EEM_Message::status_retry, |
|
74 | + 'content' => $this->_message_status_legend(EEM_Message::status_retry), |
|
75 | + 'options' => array( |
|
76 | + 'position' => array( |
|
77 | + 'target' => 'mouse', |
|
78 | + ), |
|
79 | + ), |
|
80 | + ), |
|
81 | + 6 => array( |
|
82 | + 'content_id' => 'message_status-' . EEM_Message::status_debug_only, |
|
83 | + 'target' => '.msg-status-' . EEM_Message::status_debug_only, |
|
84 | + 'content' => $this->_message_status_legend(EEM_Message::status_debug_only), |
|
85 | + 'options' => array( |
|
86 | + 'position' => array( |
|
87 | + 'target' => 'mouse', |
|
88 | + ), |
|
89 | + ), |
|
90 | + ), |
|
91 | + ); |
|
92 | + } |
|
93 | 93 | |
94 | 94 | |
95 | - /** |
|
96 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
97 | - * |
|
98 | - * @param EEM_Message constant $status What status is set (by class) |
|
99 | - * @return string The status legend with the related status highlighted |
|
100 | - */ |
|
101 | - private function _message_status_legend($status) |
|
102 | - { |
|
95 | + /** |
|
96 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
97 | + * |
|
98 | + * @param EEM_Message constant $status What status is set (by class) |
|
99 | + * @return string The status legend with the related status highlighted |
|
100 | + */ |
|
101 | + private function _message_status_legend($status) |
|
102 | + { |
|
103 | 103 | |
104 | - $status_array = array( |
|
105 | - 'sent_status' => EEM_Message::status_sent, |
|
106 | - 'idle_status' => EEM_Message::status_idle, |
|
107 | - 'failed_status' => EEM_Message::status_failed, |
|
108 | - 'resend_status' => EEM_Message::status_resend, |
|
109 | - 'incomplete_status' => EEM_Message::status_incomplete, |
|
110 | - 'retry_status' => EEM_Message::status_retry, |
|
111 | - ); |
|
104 | + $status_array = array( |
|
105 | + 'sent_status' => EEM_Message::status_sent, |
|
106 | + 'idle_status' => EEM_Message::status_idle, |
|
107 | + 'failed_status' => EEM_Message::status_failed, |
|
108 | + 'resend_status' => EEM_Message::status_resend, |
|
109 | + 'incomplete_status' => EEM_Message::status_incomplete, |
|
110 | + 'retry_status' => EEM_Message::status_retry, |
|
111 | + ); |
|
112 | 112 | |
113 | - if (defined('WP_DEBUG') && WP_DEBUG) { |
|
114 | - $status_array['debug_only_status'] = EEM_Message::status_debug_only; |
|
115 | - } |
|
113 | + if (defined('WP_DEBUG') && WP_DEBUG) { |
|
114 | + $status_array['debug_only_status'] = EEM_Message::status_debug_only; |
|
115 | + } |
|
116 | 116 | |
117 | - return EEH_Template::status_legend($status_array, $status); |
|
118 | - } |
|
117 | + return EEH_Template::status_legend($status_array, $status); |
|
118 | + } |
|
119 | 119 | } |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | { |
20 | 20 | $this->_qtipsa = array( |
21 | 21 | 0 => array( |
22 | - 'content_id' => 'message_status-' . EEM_Message::status_sent, |
|
23 | - 'target' => '.msg-status-' . EEM_Message::status_sent, |
|
22 | + 'content_id' => 'message_status-'.EEM_Message::status_sent, |
|
23 | + 'target' => '.msg-status-'.EEM_Message::status_sent, |
|
24 | 24 | 'content' => $this->_message_status_legend(EEM_Message::status_sent), |
25 | 25 | 'options' => array( |
26 | 26 | 'position' => array( |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | ), |
30 | 30 | ), |
31 | 31 | 1 => array( |
32 | - 'content_id' => 'message_status-' . EEM_Message::status_idle, |
|
33 | - 'target' => '.msg-status-' . EEM_Message::status_idle, |
|
32 | + 'content_id' => 'message_status-'.EEM_Message::status_idle, |
|
33 | + 'target' => '.msg-status-'.EEM_Message::status_idle, |
|
34 | 34 | 'content' => $this->_message_status_legend(EEM_Message::status_idle), |
35 | 35 | 'options' => array( |
36 | 36 | 'position' => array( |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | ), |
40 | 40 | ), |
41 | 41 | 2 => array( |
42 | - 'content_id' => 'message_status-' . EEM_Message::status_failed, |
|
43 | - 'target' => '.msg-status-' . EEM_Message::status_failed, |
|
42 | + 'content_id' => 'message_status-'.EEM_Message::status_failed, |
|
43 | + 'target' => '.msg-status-'.EEM_Message::status_failed, |
|
44 | 44 | 'content' => $this->_message_status_legend(EEM_Message::status_failed), |
45 | 45 | 'options' => array( |
46 | 46 | 'position' => array( |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | ), |
50 | 50 | ), |
51 | 51 | 3 => array( |
52 | - 'content_id' => 'message_status-' . EEM_Message::status_resend, |
|
53 | - 'target' => '.msg-status-' . EEM_Message::status_resend, |
|
52 | + 'content_id' => 'message_status-'.EEM_Message::status_resend, |
|
53 | + 'target' => '.msg-status-'.EEM_Message::status_resend, |
|
54 | 54 | 'content' => $this->_message_status_legend(EEM_Message::status_resend), |
55 | 55 | 'options' => array( |
56 | 56 | 'position' => array( |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | ), |
60 | 60 | ), |
61 | 61 | 4 => array( |
62 | - 'content_id' => 'message_status-' . EEM_Message::status_incomplete, |
|
63 | - 'target' => '.msg-status-' . EEM_Message::status_incomplete, |
|
62 | + 'content_id' => 'message_status-'.EEM_Message::status_incomplete, |
|
63 | + 'target' => '.msg-status-'.EEM_Message::status_incomplete, |
|
64 | 64 | 'content' => $this->_message_status_legend(EEM_Message::status_incomplete), |
65 | 65 | 'options' => array( |
66 | 66 | 'position' => array( |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | ), |
70 | 70 | ), |
71 | 71 | 5 => array( |
72 | - 'content_id' => 'message_status-' . EEM_Message::status_retry, |
|
73 | - 'target' => '.msg-status-' . EEM_Message::status_retry, |
|
72 | + 'content_id' => 'message_status-'.EEM_Message::status_retry, |
|
73 | + 'target' => '.msg-status-'.EEM_Message::status_retry, |
|
74 | 74 | 'content' => $this->_message_status_legend(EEM_Message::status_retry), |
75 | 75 | 'options' => array( |
76 | 76 | 'position' => array( |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | ), |
80 | 80 | ), |
81 | 81 | 6 => array( |
82 | - 'content_id' => 'message_status-' . EEM_Message::status_debug_only, |
|
83 | - 'target' => '.msg-status-' . EEM_Message::status_debug_only, |
|
82 | + 'content_id' => 'message_status-'.EEM_Message::status_debug_only, |
|
83 | + 'target' => '.msg-status-'.EEM_Message::status_debug_only, |
|
84 | 84 | 'content' => $this->_message_status_legend(EEM_Message::status_debug_only), |
85 | 85 | 'options' => array( |
86 | 86 | 'position' => array( |
@@ -4,15 +4,15 @@ |
||
4 | 4 | <h1><?php esc_html_e("You must upgrade your Event Espresso Add-ons before Migrating", "event_espresso"); ?></h1> |
5 | 5 | <p> |
6 | 6 | <?php printf( |
7 | - esc_html__( |
|
8 | - "Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.", |
|
9 | - "event_espresso" |
|
10 | - ), |
|
11 | - "<a href='" . admin_url('/plugins.php') . "'>", |
|
12 | - "</a>" |
|
13 | - ); ?></p> |
|
7 | + esc_html__( |
|
8 | + "Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.", |
|
9 | + "event_espresso" |
|
10 | + ), |
|
11 | + "<a href='" . admin_url('/plugins.php') . "'>", |
|
12 | + "</a>" |
|
13 | + ); ?></p> |
|
14 | 14 | <p> |
15 | 15 | <?php esc_html_e( |
16 | - "You can also deactivate the addons, but all of their data will be lost when your database is migrated", |
|
17 | - "event_espresso" |
|
18 | - ); ?></p> |
|
19 | 16 | \ No newline at end of file |
17 | + "You can also deactivate the addons, but all of their data will be lost when your database is migrated", |
|
18 | + "event_espresso" |
|
19 | + ); ?></p> |
|
20 | 20 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.", |
9 | 9 | "event_espresso" |
10 | 10 | ), |
11 | - "<a href='" . admin_url('/plugins.php') . "'>", |
|
11 | + "<a href='".admin_url('/plugins.php')."'>", |
|
12 | 12 | "</a>" |
13 | 13 | ); ?></p> |
14 | 14 | <p> |
@@ -15,80 +15,80 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - 0 => array( |
|
22 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
23 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
24 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
|
25 | - 'options' => array( |
|
26 | - 'position' => array( |
|
27 | - 'target' => 'mouse', |
|
28 | - ), |
|
29 | - ), |
|
30 | - ), |
|
31 | - 1 => array( |
|
32 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
33 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
34 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
|
35 | - 'options' => array( |
|
36 | - 'position' => array( |
|
37 | - 'target' => 'mouse', |
|
38 | - ), |
|
39 | - ), |
|
40 | - ), |
|
41 | - 2 => array( |
|
42 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
43 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
44 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
|
45 | - 'options' => array( |
|
46 | - 'position' => array( |
|
47 | - 'target' => 'mouse', |
|
48 | - ), |
|
49 | - ), |
|
50 | - ), |
|
51 | - 3 => array( |
|
52 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
53 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
54 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
|
55 | - 'options' => array( |
|
56 | - 'position' => array( |
|
57 | - 'target' => 'mouse', |
|
58 | - ), |
|
59 | - ), |
|
60 | - ), |
|
61 | - 4 => array( |
|
62 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
63 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
64 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
|
65 | - 'options' => array( |
|
66 | - 'position' => array( |
|
67 | - 'target' => 'mouse', |
|
68 | - ), |
|
69 | - ), |
|
70 | - ), |
|
71 | - ); |
|
72 | - } |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + 0 => array( |
|
22 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
23 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
24 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
|
25 | + 'options' => array( |
|
26 | + 'position' => array( |
|
27 | + 'target' => 'mouse', |
|
28 | + ), |
|
29 | + ), |
|
30 | + ), |
|
31 | + 1 => array( |
|
32 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
33 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
34 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
|
35 | + 'options' => array( |
|
36 | + 'position' => array( |
|
37 | + 'target' => 'mouse', |
|
38 | + ), |
|
39 | + ), |
|
40 | + ), |
|
41 | + 2 => array( |
|
42 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
43 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
44 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
|
45 | + 'options' => array( |
|
46 | + 'position' => array( |
|
47 | + 'target' => 'mouse', |
|
48 | + ), |
|
49 | + ), |
|
50 | + ), |
|
51 | + 3 => array( |
|
52 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
53 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
54 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
|
55 | + 'options' => array( |
|
56 | + 'position' => array( |
|
57 | + 'target' => 'mouse', |
|
58 | + ), |
|
59 | + ), |
|
60 | + ), |
|
61 | + 4 => array( |
|
62 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
63 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
64 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
|
65 | + 'options' => array( |
|
66 | + 'position' => array( |
|
67 | + 'target' => 'mouse', |
|
68 | + ), |
|
69 | + ), |
|
70 | + ), |
|
71 | + ); |
|
72 | + } |
|
73 | 73 | |
74 | 74 | |
75 | - /** |
|
76 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
77 | - * |
|
78 | - * @param EEM_Payment constant $status What status is set (by class) |
|
79 | - * @return string The status legend with the related status highlighted |
|
80 | - */ |
|
81 | - private function _payment_status_legend($status) |
|
82 | - { |
|
75 | + /** |
|
76 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
77 | + * |
|
78 | + * @param EEM_Payment constant $status What status is set (by class) |
|
79 | + * @return string The status legend with the related status highlighted |
|
80 | + */ |
|
81 | + private function _payment_status_legend($status) |
|
82 | + { |
|
83 | 83 | |
84 | - $status_array = array( |
|
85 | - 'approved' => EEM_Payment::status_id_approved, |
|
86 | - 'pending' => EEM_Payment::status_id_pending, |
|
87 | - 'cancelled' => EEM_Payment::status_id_cancelled, |
|
88 | - 'declined' => EEM_Payment::status_id_declined, |
|
89 | - 'failed' => EEM_Payment::status_id_failed, |
|
90 | - ); |
|
84 | + $status_array = array( |
|
85 | + 'approved' => EEM_Payment::status_id_approved, |
|
86 | + 'pending' => EEM_Payment::status_id_pending, |
|
87 | + 'cancelled' => EEM_Payment::status_id_cancelled, |
|
88 | + 'declined' => EEM_Payment::status_id_declined, |
|
89 | + 'failed' => EEM_Payment::status_id_failed, |
|
90 | + ); |
|
91 | 91 | |
92 | - return EEH_Template::status_legend($status_array, $status); |
|
93 | - } |
|
92 | + return EEH_Template::status_legend($status_array, $status); |
|
93 | + } |
|
94 | 94 | } |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | { |
20 | 20 | $this->_qtipsa = array( |
21 | 21 | 0 => array( |
22 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
23 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
22 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_approved, |
|
23 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_approved, |
|
24 | 24 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
25 | 25 | 'options' => array( |
26 | 26 | 'position' => array( |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | ), |
30 | 30 | ), |
31 | 31 | 1 => array( |
32 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
33 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
32 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_pending, |
|
33 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_pending, |
|
34 | 34 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
35 | 35 | 'options' => array( |
36 | 36 | 'position' => array( |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | ), |
40 | 40 | ), |
41 | 41 | 2 => array( |
42 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
43 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
42 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_cancelled, |
|
43 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_cancelled, |
|
44 | 44 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
45 | 45 | 'options' => array( |
46 | 46 | 'position' => array( |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | ), |
50 | 50 | ), |
51 | 51 | 3 => array( |
52 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
53 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
52 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_declined, |
|
53 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_declined, |
|
54 | 54 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
55 | 55 | 'options' => array( |
56 | 56 | 'position' => array( |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | ), |
60 | 60 | ), |
61 | 61 | 4 => array( |
62 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
63 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
62 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_failed, |
|
63 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_failed, |
|
64 | 64 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
65 | 65 | 'options' => array( |
66 | 66 | 'position' => array( |
@@ -15,69 +15,69 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - // 0 => array( |
|
22 | - // 'content_id' => 'transaction-status-' . EEM_Transaction::overpaid_status_code, |
|
23 | - // 'target' => '.txn-status-' . EEM_Transaction::overpaid_status_code, |
|
24 | - // 'content' => $this->_transaction_status_legend(EEM_Transaction::overpaid_status_code), |
|
25 | - // 'options' => array( |
|
26 | - // 'position' => array( |
|
27 | - // 'target' => 'mouse', |
|
28 | - // ), |
|
29 | - // ), |
|
30 | - // ), |
|
31 | - // 1 => array( |
|
32 | - // 'content_id' => 'transaction-status-' . EEM_Transaction::complete_status_code, |
|
33 | - // 'target' => '.txn-status-' . EEM_Transaction::complete_status_code, |
|
34 | - // 'content' => $this->_transaction_status_legend(EEM_Transaction::complete_status_code), |
|
35 | - // 'options' => array( |
|
36 | - // 'position' => array( |
|
37 | - // 'target' => 'mouse', |
|
38 | - // ), |
|
39 | - // ), |
|
40 | - // ), |
|
41 | - // 2 => array( |
|
42 | - // 'content_id' => 'transaction-status-' . EEM_Transaction::incomplete_status_code, |
|
43 | - // 'target' => '.txn-status-' . EEM_Transaction::incomplete_status_code, |
|
44 | - // 'content' => $this->_transaction_status_legend(EEM_Transaction::incomplete_status_code), |
|
45 | - // 'options' => array( |
|
46 | - // 'position' => array( |
|
47 | - // 'target' => 'mouse', |
|
48 | - // ), |
|
49 | - // ), |
|
50 | - // ), |
|
51 | - // 3 => array( |
|
52 | - // 'content_id' => 'transaction-status-' . EEM_Transaction::failed_status_code, |
|
53 | - // 'target' => '.txn-status-' . EEM_Transaction::failed_status_code, |
|
54 | - // 'content' => $this->_transaction_status_legend(EEM_Transaction::failed_status_code), |
|
55 | - // 'options' => array( |
|
56 | - // 'position' => array( |
|
57 | - // 'target' => 'mouse', |
|
58 | - // ), |
|
59 | - // ), |
|
60 | - // ) |
|
61 | - ); |
|
62 | - } |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + // 0 => array( |
|
22 | + // 'content_id' => 'transaction-status-' . EEM_Transaction::overpaid_status_code, |
|
23 | + // 'target' => '.txn-status-' . EEM_Transaction::overpaid_status_code, |
|
24 | + // 'content' => $this->_transaction_status_legend(EEM_Transaction::overpaid_status_code), |
|
25 | + // 'options' => array( |
|
26 | + // 'position' => array( |
|
27 | + // 'target' => 'mouse', |
|
28 | + // ), |
|
29 | + // ), |
|
30 | + // ), |
|
31 | + // 1 => array( |
|
32 | + // 'content_id' => 'transaction-status-' . EEM_Transaction::complete_status_code, |
|
33 | + // 'target' => '.txn-status-' . EEM_Transaction::complete_status_code, |
|
34 | + // 'content' => $this->_transaction_status_legend(EEM_Transaction::complete_status_code), |
|
35 | + // 'options' => array( |
|
36 | + // 'position' => array( |
|
37 | + // 'target' => 'mouse', |
|
38 | + // ), |
|
39 | + // ), |
|
40 | + // ), |
|
41 | + // 2 => array( |
|
42 | + // 'content_id' => 'transaction-status-' . EEM_Transaction::incomplete_status_code, |
|
43 | + // 'target' => '.txn-status-' . EEM_Transaction::incomplete_status_code, |
|
44 | + // 'content' => $this->_transaction_status_legend(EEM_Transaction::incomplete_status_code), |
|
45 | + // 'options' => array( |
|
46 | + // 'position' => array( |
|
47 | + // 'target' => 'mouse', |
|
48 | + // ), |
|
49 | + // ), |
|
50 | + // ), |
|
51 | + // 3 => array( |
|
52 | + // 'content_id' => 'transaction-status-' . EEM_Transaction::failed_status_code, |
|
53 | + // 'target' => '.txn-status-' . EEM_Transaction::failed_status_code, |
|
54 | + // 'content' => $this->_transaction_status_legend(EEM_Transaction::failed_status_code), |
|
55 | + // 'options' => array( |
|
56 | + // 'position' => array( |
|
57 | + // 'target' => 'mouse', |
|
58 | + // ), |
|
59 | + // ), |
|
60 | + // ) |
|
61 | + ); |
|
62 | + } |
|
63 | 63 | |
64 | 64 | |
65 | - /** |
|
66 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
67 | - * |
|
68 | - * @param EEM_Transaction constant $status What status is set (by class) |
|
69 | - * @return string The status legend with the related status highlighted |
|
70 | - */ |
|
71 | - private function _transaction_status_legend($status) |
|
72 | - { |
|
65 | + /** |
|
66 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
67 | + * |
|
68 | + * @param EEM_Transaction constant $status What status is set (by class) |
|
69 | + * @return string The status legend with the related status highlighted |
|
70 | + */ |
|
71 | + private function _transaction_status_legend($status) |
|
72 | + { |
|
73 | 73 | |
74 | - $status_array = array( |
|
75 | - 'overpaid' => EEM_Transaction::overpaid_status_code, |
|
76 | - 'complete' => EEM_Transaction::complete_status_code, |
|
77 | - 'incomplete' => EEM_Transaction::incomplete_status_code, |
|
78 | - 'failed' => EEM_Transaction::failed_status_code, |
|
79 | - ); |
|
74 | + $status_array = array( |
|
75 | + 'overpaid' => EEM_Transaction::overpaid_status_code, |
|
76 | + 'complete' => EEM_Transaction::complete_status_code, |
|
77 | + 'incomplete' => EEM_Transaction::incomplete_status_code, |
|
78 | + 'failed' => EEM_Transaction::failed_status_code, |
|
79 | + ); |
|
80 | 80 | |
81 | - return EEH_Template::status_legend($status_array, $status); |
|
82 | - } |
|
81 | + return EEH_Template::status_legend($status_array, $status); |
|
82 | + } |
|
83 | 83 | } |
@@ -20,10 +20,10 @@ |
||
20 | 20 | { |
21 | 21 | // define some help/support page related constants |
22 | 22 | define('EE_OTHER_SERVICES_PG_SLUG', 'espresso_packages'); |
23 | - define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page=' . EE_OTHER_SERVICES_PG_SLUG)); |
|
24 | - define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'other_services/templates/'); |
|
25 | - define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES . 'other_services/'); |
|
26 | - define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'other_services/assets/'); |
|
23 | + define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page='.EE_OTHER_SERVICES_PG_SLUG)); |
|
24 | + define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES.'other_services/templates/'); |
|
25 | + define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES.'other_services/'); |
|
26 | + define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL.'other_services/assets/'); |
|
27 | 27 | |
28 | 28 | parent::__construct(); |
29 | 29 | } |
@@ -16,37 +16,37 @@ |
||
16 | 16 | { |
17 | 17 | |
18 | 18 | |
19 | - public function __construct() |
|
20 | - { |
|
21 | - // define some help/support page related constants |
|
22 | - define('EE_OTHER_SERVICES_PG_SLUG', 'espresso_packages'); |
|
23 | - define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page=' . EE_OTHER_SERVICES_PG_SLUG)); |
|
24 | - define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'other_services/templates/'); |
|
25 | - define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES . 'other_services/'); |
|
26 | - define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'other_services/assets/'); |
|
19 | + public function __construct() |
|
20 | + { |
|
21 | + // define some help/support page related constants |
|
22 | + define('EE_OTHER_SERVICES_PG_SLUG', 'espresso_packages'); |
|
23 | + define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page=' . EE_OTHER_SERVICES_PG_SLUG)); |
|
24 | + define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'other_services/templates/'); |
|
25 | + define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES . 'other_services/'); |
|
26 | + define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'other_services/assets/'); |
|
27 | 27 | |
28 | - parent::__construct(); |
|
29 | - } |
|
28 | + parent::__construct(); |
|
29 | + } |
|
30 | 30 | |
31 | - protected function _set_init_properties() |
|
32 | - { |
|
33 | - $this->label = esc_html__('Extensions & Services', 'event_espresso'); |
|
34 | - } |
|
31 | + protected function _set_init_properties() |
|
32 | + { |
|
33 | + $this->label = esc_html__('Extensions & Services', 'event_espresso'); |
|
34 | + } |
|
35 | 35 | |
36 | - protected function _set_menu_map() |
|
37 | - { |
|
38 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
39 | - array( |
|
40 | - 'menu_group' => 'extras', |
|
41 | - 'menu_order' => 30, |
|
42 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
43 | - 'parent_slug' => 'espresso_events', |
|
44 | - 'menu_slug' => EE_OTHER_SERVICES_PG_SLUG, |
|
45 | - 'menu_label' => esc_html__('Extensions & Services', 'event_espresso'), |
|
46 | - 'capability' => 'ee_read_ee', |
|
47 | - 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
48 | - 'admin_init_page' => $this, |
|
49 | - ) |
|
50 | - ); |
|
51 | - } |
|
36 | + protected function _set_menu_map() |
|
37 | + { |
|
38 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
39 | + array( |
|
40 | + 'menu_group' => 'extras', |
|
41 | + 'menu_order' => 30, |
|
42 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
43 | + 'parent_slug' => 'espresso_events', |
|
44 | + 'menu_slug' => EE_OTHER_SERVICES_PG_SLUG, |
|
45 | + 'menu_label' => esc_html__('Extensions & Services', 'event_espresso'), |
|
46 | + 'capability' => 'ee_read_ee', |
|
47 | + 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
48 | + 'admin_init_page' => $this, |
|
49 | + ) |
|
50 | + ); |
|
51 | + } |
|
52 | 52 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | { |
91 | 91 | wp_register_style( |
92 | 92 | 'ee-other-services-css', |
93 | - EE_OTHER_SERVICES_ASSETS_URL . 'other-services.css', |
|
93 | + EE_OTHER_SERVICES_ASSETS_URL.'other-services.css', |
|
94 | 94 | array('ee-admin-css'), |
95 | 95 | EVENT_ESPRESSO_VERSION |
96 | 96 | ); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | protected function _other_services() |
102 | 102 | { |
103 | 103 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
104 | - EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH . 'other_services_content.template.php', |
|
104 | + EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH.'other_services_content.template.php', |
|
105 | 105 | array(), |
106 | 106 | true |
107 | 107 | ); |
@@ -17,94 +17,94 @@ |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - protected function _init_page_props() |
|
21 | - { |
|
22 | - $this->page_slug = EE_OTHER_SERVICES_PG_SLUG; |
|
23 | - $this->page_label = esc_html__('Extensions & Services', 'event_espresso'); |
|
24 | - $this->_admin_base_url = EE_OTHER_SERVICES_ADMIN_URL; |
|
25 | - $this->_admin_base_path = EE_OTHER_SERVICES_ADMIN; |
|
26 | - } |
|
27 | - |
|
28 | - |
|
29 | - protected function _ajax_hooks() |
|
30 | - { |
|
31 | - // todo: all hooks for ajax goes here. |
|
32 | - } |
|
33 | - |
|
34 | - |
|
35 | - protected function _define_page_props() |
|
36 | - { |
|
37 | - $this->_labels = array(); |
|
38 | - $this->_admin_page_title = $this->page_label; |
|
39 | - } |
|
40 | - |
|
41 | - |
|
42 | - protected function _set_page_routes() |
|
43 | - { |
|
44 | - $this->_page_routes = array( |
|
45 | - 'default' => array( |
|
46 | - 'func' => '_other_services', |
|
47 | - 'capability' => 'ee_read_ee', |
|
48 | - ), |
|
49 | - ); |
|
50 | - } |
|
51 | - |
|
52 | - |
|
53 | - protected function _set_page_config() |
|
54 | - { |
|
55 | - $this->_page_config = array( |
|
56 | - 'default' => array( |
|
57 | - 'nav' => array( |
|
58 | - 'label' => esc_html__('Other Available Services', 'event_espresso'), |
|
59 | - 'order' => 10, |
|
60 | - ), |
|
61 | - 'require_nonce' => false, |
|
62 | - ), |
|
63 | - ); |
|
64 | - } |
|
65 | - |
|
66 | - |
|
67 | - // none of the below group are currently used for Support pages |
|
68 | - protected function _add_screen_options() |
|
69 | - { |
|
70 | - } |
|
71 | - |
|
72 | - protected function _add_feature_pointers() |
|
73 | - { |
|
74 | - } |
|
75 | - |
|
76 | - public function admin_init() |
|
77 | - { |
|
78 | - } |
|
79 | - |
|
80 | - public function admin_notices() |
|
81 | - { |
|
82 | - } |
|
83 | - |
|
84 | - public function admin_footer_scripts() |
|
85 | - { |
|
86 | - } |
|
87 | - |
|
88 | - |
|
89 | - public function load_scripts_styles() |
|
90 | - { |
|
91 | - wp_register_style( |
|
92 | - 'ee-other-services-css', |
|
93 | - EE_OTHER_SERVICES_ASSETS_URL . 'other-services.css', |
|
94 | - array('ee-admin-css'), |
|
95 | - EVENT_ESPRESSO_VERSION |
|
96 | - ); |
|
97 | - wp_enqueue_style('ee-other-services-css'); |
|
98 | - } |
|
99 | - |
|
100 | - |
|
101 | - protected function _other_services() |
|
102 | - { |
|
103 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
104 | - EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH . 'other_services_content.template.php', |
|
105 | - array(), |
|
106 | - true |
|
107 | - ); |
|
108 | - $this->display_admin_page_with_no_sidebar(); |
|
109 | - } |
|
20 | + protected function _init_page_props() |
|
21 | + { |
|
22 | + $this->page_slug = EE_OTHER_SERVICES_PG_SLUG; |
|
23 | + $this->page_label = esc_html__('Extensions & Services', 'event_espresso'); |
|
24 | + $this->_admin_base_url = EE_OTHER_SERVICES_ADMIN_URL; |
|
25 | + $this->_admin_base_path = EE_OTHER_SERVICES_ADMIN; |
|
26 | + } |
|
27 | + |
|
28 | + |
|
29 | + protected function _ajax_hooks() |
|
30 | + { |
|
31 | + // todo: all hooks for ajax goes here. |
|
32 | + } |
|
33 | + |
|
34 | + |
|
35 | + protected function _define_page_props() |
|
36 | + { |
|
37 | + $this->_labels = array(); |
|
38 | + $this->_admin_page_title = $this->page_label; |
|
39 | + } |
|
40 | + |
|
41 | + |
|
42 | + protected function _set_page_routes() |
|
43 | + { |
|
44 | + $this->_page_routes = array( |
|
45 | + 'default' => array( |
|
46 | + 'func' => '_other_services', |
|
47 | + 'capability' => 'ee_read_ee', |
|
48 | + ), |
|
49 | + ); |
|
50 | + } |
|
51 | + |
|
52 | + |
|
53 | + protected function _set_page_config() |
|
54 | + { |
|
55 | + $this->_page_config = array( |
|
56 | + 'default' => array( |
|
57 | + 'nav' => array( |
|
58 | + 'label' => esc_html__('Other Available Services', 'event_espresso'), |
|
59 | + 'order' => 10, |
|
60 | + ), |
|
61 | + 'require_nonce' => false, |
|
62 | + ), |
|
63 | + ); |
|
64 | + } |
|
65 | + |
|
66 | + |
|
67 | + // none of the below group are currently used for Support pages |
|
68 | + protected function _add_screen_options() |
|
69 | + { |
|
70 | + } |
|
71 | + |
|
72 | + protected function _add_feature_pointers() |
|
73 | + { |
|
74 | + } |
|
75 | + |
|
76 | + public function admin_init() |
|
77 | + { |
|
78 | + } |
|
79 | + |
|
80 | + public function admin_notices() |
|
81 | + { |
|
82 | + } |
|
83 | + |
|
84 | + public function admin_footer_scripts() |
|
85 | + { |
|
86 | + } |
|
87 | + |
|
88 | + |
|
89 | + public function load_scripts_styles() |
|
90 | + { |
|
91 | + wp_register_style( |
|
92 | + 'ee-other-services-css', |
|
93 | + EE_OTHER_SERVICES_ASSETS_URL . 'other-services.css', |
|
94 | + array('ee-admin-css'), |
|
95 | + EVENT_ESPRESSO_VERSION |
|
96 | + ); |
|
97 | + wp_enqueue_style('ee-other-services-css'); |
|
98 | + } |
|
99 | + |
|
100 | + |
|
101 | + protected function _other_services() |
|
102 | + { |
|
103 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
104 | + EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH . 'other_services_content.template.php', |
|
105 | + array(), |
|
106 | + true |
|
107 | + ); |
|
108 | + $this->display_admin_page_with_no_sidebar(); |
|
109 | + } |
|
110 | 110 | } |
@@ -13,386 +13,386 @@ |
||
13 | 13 | { |
14 | 14 | |
15 | 15 | |
16 | - /** |
|
17 | - * Creates the array for the tips |
|
18 | - */ |
|
19 | - protected function _set_tips_array() |
|
20 | - { |
|
21 | - $this->_qtipsa = array( |
|
22 | - 2 => array( |
|
23 | - 'content_id' => 'dtt-evt-name-label', |
|
24 | - 'target' => '.DTT_name_label', |
|
25 | - 'content' => $this->_get_event_name_label_info(), |
|
26 | - ), |
|
27 | - 3 => array( |
|
28 | - 'content_id' => 'dtt-evt-start-label', |
|
29 | - 'target' => '.DTT_EVT_start_label', |
|
30 | - 'content' => $this->_get_event_start_label_info(), |
|
31 | - ), |
|
32 | - 5 => array( |
|
33 | - 'content_id' => 'dtt-evt-end-label', |
|
34 | - 'target' => '.DTT_EVT_end_label', |
|
35 | - 'content' => $this->_get_event_end_label_info(), |
|
36 | - ), |
|
37 | - 10 => array( |
|
38 | - 'content_id' => 'dtt-reg-limit-label', |
|
39 | - 'target' => '.DTT_reg_limit_label', |
|
40 | - 'content' => $this->_get_event_datetime_DTT_reg_limit_label_info(), |
|
41 | - ), |
|
42 | - 15 => array( |
|
43 | - 'content_id' => 'dtt-sold-label', |
|
44 | - 'target' => '.DTT_sold_label', |
|
45 | - 'content' => $this->_get_event_datetime_DTT_sold_label_info(), |
|
46 | - ), |
|
47 | - 17 => array( |
|
48 | - 'content_id' => 'dtt-reserved-label', |
|
49 | - 'target' => '.DTT_reserved_label', |
|
50 | - 'content' => $this->_get_event_datetime_DTT_reserved_label_info(), |
|
51 | - ), |
|
52 | - 20 => array( |
|
53 | - 'content_id' => 'tkt-name-label', |
|
54 | - 'target' => '.TKT_name_label', |
|
55 | - 'content' => $this->_get_event_ticket_TKT_name_label_info(), |
|
56 | - ), |
|
57 | - 25 => array( |
|
58 | - 'content_id' => 'tkt-goes-on-sale-label', |
|
59 | - 'target' => '.TKT_goes_on_sale_label', |
|
60 | - 'content' => $this->_get_event_ticket_TKT_goes_on_sale_label_info(), |
|
61 | - ), |
|
62 | - 30 => array( |
|
63 | - 'content_id' => 'tkt-sell-until-label', |
|
64 | - 'target' => '.TKT_sell_until_label', |
|
65 | - 'content' => $this->_get_event_ticket_TKT_sell_until_label_info(), |
|
66 | - ), |
|
67 | - 35 => array( |
|
68 | - 'content_id' => 'tkt-price-label', |
|
69 | - 'target' => '.TKT_price_label', |
|
70 | - 'content' => $this->_get_event_ticket_TKT_price_label_info(), |
|
71 | - ), |
|
72 | - 40 => array( |
|
73 | - 'content_id' => 'tkt-qty-label', |
|
74 | - 'target' => '.TKT_qty_label', |
|
75 | - 'content' => $this->_get_event_ticket_TKT_qty_label_info(), |
|
76 | - ), |
|
77 | - 45 => array( |
|
78 | - 'content_id' => 'tkt-sold-label', |
|
79 | - 'target' => '.TKT_sold_label', |
|
80 | - 'content' => $this->_get_event_ticket_TKT_sold_label_info(), |
|
81 | - ), |
|
82 | - 47 => array( |
|
83 | - 'content_id' => 'tkt-reserved-label', |
|
84 | - 'target' => '.TKT_reserved_label', |
|
85 | - 'content' => $this->_get_event_ticket_TKT_reserved_label_info(), |
|
86 | - ), |
|
87 | - 50 => array( |
|
88 | - 'content_id' => 'tkt-regs-label', |
|
89 | - 'target' => '.TKT_regs_label', |
|
90 | - 'content' => $this->_get_event_ticket_TKT_regs_label_info(), |
|
91 | - ), |
|
92 | - 55 => array( |
|
93 | - 'content_id' => 'ant-tkt-name-label', |
|
94 | - 'target' => '.ANT_TKT_name_label', |
|
95 | - 'content' => $this->_get_event_ticket_ANT_TKT_name_label_info(), |
|
96 | - ), |
|
97 | - 60 => array( |
|
98 | - 'content_id' => 'ant-tkt-goes-on-sale-label', |
|
99 | - 'target' => '.ANT_TKT_goes_on_sale_label', |
|
100 | - 'content' => $this->_get_event_ticket_ANT_TKT_goes_on_sale_label_info(), |
|
101 | - ), |
|
102 | - 65 => array( |
|
103 | - 'content_id' => 'ant-tkt-sell-until-label', |
|
104 | - 'target' => '.ANT_TKT_sell_until_label', |
|
105 | - 'content' => $this->_get_event_ticket_ANT_TKT_sell_until_label_info(), |
|
106 | - ), |
|
107 | - 70 => array( |
|
108 | - 'content_id' => 'ant-tkt-price-label', |
|
109 | - 'target' => '.ANT_TKT_price_label', |
|
110 | - 'content' => $this->_get_event_ticket_ANT_TKT_price_label_info(), |
|
111 | - ), |
|
112 | - 75 => array( |
|
113 | - 'content_id' => 'ant-tkt-qty-label', |
|
114 | - 'target' => '.ANT_TKT_qty_label', |
|
115 | - 'content' => $this->_get_event_ticket_ANT_TKT_qty_label_info(), |
|
116 | - ), |
|
117 | - 80 => array( |
|
118 | - 'content_id' => 'ane-dtt-evt-start-label', |
|
119 | - 'target' => '.add-new-event-datetime-DTT_EVT_start_label', |
|
120 | - 'content' => $this->_get_add_new_event_start_label_info(), |
|
121 | - ), |
|
122 | - 85 => array( |
|
123 | - 'content_id' => 'ane-dtt-evt-end-label', |
|
124 | - 'target' => '.add-new-event-datetime-DTT_EVT_end_label', |
|
125 | - 'content' => $this->_get_add_new_event_end_label_info(), |
|
126 | - ), |
|
127 | - 90 => array( |
|
128 | - 'content_id' => 'ane_dtt-reg-limit-label', |
|
129 | - 'target' => '.add-new-event-datetime-DTT_reg_limit_label', |
|
130 | - 'content' => $this->_get_add_new_event_datetime_DTT_reg_limit_label_info(), |
|
131 | - ), |
|
132 | - 100 => array( |
|
133 | - 'content_id' => 'td-tkt-number-datetimes-label', |
|
134 | - 'target' => '.TD_TKT_number_datetimes_label', |
|
135 | - 'content' => $this->_get_event_ticket_TD_TKT_number_datetimes_label_info(), |
|
136 | - ), |
|
137 | - 110 => array( |
|
138 | - 'content_id' => 'td-tkt-min-qty-label', |
|
139 | - 'target' => '.TD_TKT_min_qty_label', |
|
140 | - 'content' => $this->_get_event_ticket_TD_TKT_min_qty_label_info(), |
|
141 | - ), |
|
142 | - 120 => array( |
|
143 | - 'content_id' => 'td-tkt-max-qty-label', |
|
144 | - 'target' => '.TD_TKT_max_qty_label', |
|
145 | - 'content' => $this->_get_event_ticket_TD_TKT_max_qty_label_info(), |
|
146 | - ), |
|
147 | - 130 => array( |
|
148 | - 'content_id' => 'ticket-lock-icon', |
|
149 | - 'target' => '.ticket-archived .ee-lock-icon', |
|
150 | - 'content' => esc_html__( |
|
151 | - 'This ticket was automatically locked and archived because it has a sold quantity and the price was modified. Existing ticket holders will still be verified using these ticket details. However, Event Espresso has automatically created a new active ticket with the modified price for new registrants. This lock is meant to prevent accidental trashing of this ticket. Certain details of this ticket can still be edited (non disabled inputs).', |
|
152 | - 'event_espresso' |
|
153 | - ), |
|
154 | - ), |
|
155 | - 135 => array( |
|
156 | - 'content_id' => 'ticket-lock-icon-event-editor', |
|
157 | - 'target' => '.ee-lock-icon', |
|
158 | - 'content' => esc_html__( |
|
159 | - 'This datetime can no longer be duplicated or deleted because tickets associated with this datetime have already been sold.', |
|
160 | - 'event_espresso' |
|
161 | - ), |
|
162 | - ), |
|
163 | - ); |
|
164 | - } |
|
16 | + /** |
|
17 | + * Creates the array for the tips |
|
18 | + */ |
|
19 | + protected function _set_tips_array() |
|
20 | + { |
|
21 | + $this->_qtipsa = array( |
|
22 | + 2 => array( |
|
23 | + 'content_id' => 'dtt-evt-name-label', |
|
24 | + 'target' => '.DTT_name_label', |
|
25 | + 'content' => $this->_get_event_name_label_info(), |
|
26 | + ), |
|
27 | + 3 => array( |
|
28 | + 'content_id' => 'dtt-evt-start-label', |
|
29 | + 'target' => '.DTT_EVT_start_label', |
|
30 | + 'content' => $this->_get_event_start_label_info(), |
|
31 | + ), |
|
32 | + 5 => array( |
|
33 | + 'content_id' => 'dtt-evt-end-label', |
|
34 | + 'target' => '.DTT_EVT_end_label', |
|
35 | + 'content' => $this->_get_event_end_label_info(), |
|
36 | + ), |
|
37 | + 10 => array( |
|
38 | + 'content_id' => 'dtt-reg-limit-label', |
|
39 | + 'target' => '.DTT_reg_limit_label', |
|
40 | + 'content' => $this->_get_event_datetime_DTT_reg_limit_label_info(), |
|
41 | + ), |
|
42 | + 15 => array( |
|
43 | + 'content_id' => 'dtt-sold-label', |
|
44 | + 'target' => '.DTT_sold_label', |
|
45 | + 'content' => $this->_get_event_datetime_DTT_sold_label_info(), |
|
46 | + ), |
|
47 | + 17 => array( |
|
48 | + 'content_id' => 'dtt-reserved-label', |
|
49 | + 'target' => '.DTT_reserved_label', |
|
50 | + 'content' => $this->_get_event_datetime_DTT_reserved_label_info(), |
|
51 | + ), |
|
52 | + 20 => array( |
|
53 | + 'content_id' => 'tkt-name-label', |
|
54 | + 'target' => '.TKT_name_label', |
|
55 | + 'content' => $this->_get_event_ticket_TKT_name_label_info(), |
|
56 | + ), |
|
57 | + 25 => array( |
|
58 | + 'content_id' => 'tkt-goes-on-sale-label', |
|
59 | + 'target' => '.TKT_goes_on_sale_label', |
|
60 | + 'content' => $this->_get_event_ticket_TKT_goes_on_sale_label_info(), |
|
61 | + ), |
|
62 | + 30 => array( |
|
63 | + 'content_id' => 'tkt-sell-until-label', |
|
64 | + 'target' => '.TKT_sell_until_label', |
|
65 | + 'content' => $this->_get_event_ticket_TKT_sell_until_label_info(), |
|
66 | + ), |
|
67 | + 35 => array( |
|
68 | + 'content_id' => 'tkt-price-label', |
|
69 | + 'target' => '.TKT_price_label', |
|
70 | + 'content' => $this->_get_event_ticket_TKT_price_label_info(), |
|
71 | + ), |
|
72 | + 40 => array( |
|
73 | + 'content_id' => 'tkt-qty-label', |
|
74 | + 'target' => '.TKT_qty_label', |
|
75 | + 'content' => $this->_get_event_ticket_TKT_qty_label_info(), |
|
76 | + ), |
|
77 | + 45 => array( |
|
78 | + 'content_id' => 'tkt-sold-label', |
|
79 | + 'target' => '.TKT_sold_label', |
|
80 | + 'content' => $this->_get_event_ticket_TKT_sold_label_info(), |
|
81 | + ), |
|
82 | + 47 => array( |
|
83 | + 'content_id' => 'tkt-reserved-label', |
|
84 | + 'target' => '.TKT_reserved_label', |
|
85 | + 'content' => $this->_get_event_ticket_TKT_reserved_label_info(), |
|
86 | + ), |
|
87 | + 50 => array( |
|
88 | + 'content_id' => 'tkt-regs-label', |
|
89 | + 'target' => '.TKT_regs_label', |
|
90 | + 'content' => $this->_get_event_ticket_TKT_regs_label_info(), |
|
91 | + ), |
|
92 | + 55 => array( |
|
93 | + 'content_id' => 'ant-tkt-name-label', |
|
94 | + 'target' => '.ANT_TKT_name_label', |
|
95 | + 'content' => $this->_get_event_ticket_ANT_TKT_name_label_info(), |
|
96 | + ), |
|
97 | + 60 => array( |
|
98 | + 'content_id' => 'ant-tkt-goes-on-sale-label', |
|
99 | + 'target' => '.ANT_TKT_goes_on_sale_label', |
|
100 | + 'content' => $this->_get_event_ticket_ANT_TKT_goes_on_sale_label_info(), |
|
101 | + ), |
|
102 | + 65 => array( |
|
103 | + 'content_id' => 'ant-tkt-sell-until-label', |
|
104 | + 'target' => '.ANT_TKT_sell_until_label', |
|
105 | + 'content' => $this->_get_event_ticket_ANT_TKT_sell_until_label_info(), |
|
106 | + ), |
|
107 | + 70 => array( |
|
108 | + 'content_id' => 'ant-tkt-price-label', |
|
109 | + 'target' => '.ANT_TKT_price_label', |
|
110 | + 'content' => $this->_get_event_ticket_ANT_TKT_price_label_info(), |
|
111 | + ), |
|
112 | + 75 => array( |
|
113 | + 'content_id' => 'ant-tkt-qty-label', |
|
114 | + 'target' => '.ANT_TKT_qty_label', |
|
115 | + 'content' => $this->_get_event_ticket_ANT_TKT_qty_label_info(), |
|
116 | + ), |
|
117 | + 80 => array( |
|
118 | + 'content_id' => 'ane-dtt-evt-start-label', |
|
119 | + 'target' => '.add-new-event-datetime-DTT_EVT_start_label', |
|
120 | + 'content' => $this->_get_add_new_event_start_label_info(), |
|
121 | + ), |
|
122 | + 85 => array( |
|
123 | + 'content_id' => 'ane-dtt-evt-end-label', |
|
124 | + 'target' => '.add-new-event-datetime-DTT_EVT_end_label', |
|
125 | + 'content' => $this->_get_add_new_event_end_label_info(), |
|
126 | + ), |
|
127 | + 90 => array( |
|
128 | + 'content_id' => 'ane_dtt-reg-limit-label', |
|
129 | + 'target' => '.add-new-event-datetime-DTT_reg_limit_label', |
|
130 | + 'content' => $this->_get_add_new_event_datetime_DTT_reg_limit_label_info(), |
|
131 | + ), |
|
132 | + 100 => array( |
|
133 | + 'content_id' => 'td-tkt-number-datetimes-label', |
|
134 | + 'target' => '.TD_TKT_number_datetimes_label', |
|
135 | + 'content' => $this->_get_event_ticket_TD_TKT_number_datetimes_label_info(), |
|
136 | + ), |
|
137 | + 110 => array( |
|
138 | + 'content_id' => 'td-tkt-min-qty-label', |
|
139 | + 'target' => '.TD_TKT_min_qty_label', |
|
140 | + 'content' => $this->_get_event_ticket_TD_TKT_min_qty_label_info(), |
|
141 | + ), |
|
142 | + 120 => array( |
|
143 | + 'content_id' => 'td-tkt-max-qty-label', |
|
144 | + 'target' => '.TD_TKT_max_qty_label', |
|
145 | + 'content' => $this->_get_event_ticket_TD_TKT_max_qty_label_info(), |
|
146 | + ), |
|
147 | + 130 => array( |
|
148 | + 'content_id' => 'ticket-lock-icon', |
|
149 | + 'target' => '.ticket-archived .ee-lock-icon', |
|
150 | + 'content' => esc_html__( |
|
151 | + 'This ticket was automatically locked and archived because it has a sold quantity and the price was modified. Existing ticket holders will still be verified using these ticket details. However, Event Espresso has automatically created a new active ticket with the modified price for new registrants. This lock is meant to prevent accidental trashing of this ticket. Certain details of this ticket can still be edited (non disabled inputs).', |
|
152 | + 'event_espresso' |
|
153 | + ), |
|
154 | + ), |
|
155 | + 135 => array( |
|
156 | + 'content_id' => 'ticket-lock-icon-event-editor', |
|
157 | + 'target' => '.ee-lock-icon', |
|
158 | + 'content' => esc_html__( |
|
159 | + 'This datetime can no longer be duplicated or deleted because tickets associated with this datetime have already been sold.', |
|
160 | + 'event_espresso' |
|
161 | + ), |
|
162 | + ), |
|
163 | + ); |
|
164 | + } |
|
165 | 165 | |
166 | - /** |
|
167 | - * @return string |
|
168 | - */ |
|
169 | - private function _get_event_name_label_info() |
|
170 | - { |
|
171 | - return esc_html__( |
|
172 | - 'This is the name or title for an event datetime.', |
|
173 | - 'event_espresso' |
|
174 | - ); |
|
175 | - } |
|
166 | + /** |
|
167 | + * @return string |
|
168 | + */ |
|
169 | + private function _get_event_name_label_info() |
|
170 | + { |
|
171 | + return esc_html__( |
|
172 | + 'This is the name or title for an event datetime.', |
|
173 | + 'event_espresso' |
|
174 | + ); |
|
175 | + } |
|
176 | 176 | |
177 | - /** |
|
178 | - * @return string |
|
179 | - */ |
|
180 | - private function _get_event_start_label_info() |
|
181 | - { |
|
182 | - return esc_html__( |
|
183 | - 'This shows when this event datetime starts.', |
|
184 | - 'event_espresso' |
|
185 | - ); |
|
186 | - } |
|
177 | + /** |
|
178 | + * @return string |
|
179 | + */ |
|
180 | + private function _get_event_start_label_info() |
|
181 | + { |
|
182 | + return esc_html__( |
|
183 | + 'This shows when this event datetime starts.', |
|
184 | + 'event_espresso' |
|
185 | + ); |
|
186 | + } |
|
187 | 187 | |
188 | - /** |
|
189 | - * @return string |
|
190 | - */ |
|
191 | - private function _get_event_end_label_info() |
|
192 | - { |
|
193 | - return esc_html__('This shows when this event datetime ends.', 'event_espresso'); |
|
194 | - } |
|
188 | + /** |
|
189 | + * @return string |
|
190 | + */ |
|
191 | + private function _get_event_end_label_info() |
|
192 | + { |
|
193 | + return esc_html__('This shows when this event datetime ends.', 'event_espresso'); |
|
194 | + } |
|
195 | 195 | |
196 | - /** |
|
197 | - * @return string |
|
198 | - */ |
|
199 | - private function _get_event_datetime_DTT_reg_limit_label_info() |
|
200 | - { |
|
201 | - return esc_html__( |
|
202 | - 'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.', |
|
203 | - 'event_espresso' |
|
204 | - ); |
|
205 | - } |
|
196 | + /** |
|
197 | + * @return string |
|
198 | + */ |
|
199 | + private function _get_event_datetime_DTT_reg_limit_label_info() |
|
200 | + { |
|
201 | + return esc_html__( |
|
202 | + 'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.', |
|
203 | + 'event_espresso' |
|
204 | + ); |
|
205 | + } |
|
206 | 206 | |
207 | - /** |
|
208 | - * @return string |
|
209 | - */ |
|
210 | - private function _get_event_datetime_DTT_sold_label_info() |
|
211 | - { |
|
212 | - return esc_html__( |
|
213 | - 'This shows the number of tickets that have been sold that have access to this event datetime.', |
|
214 | - 'event_espresso' |
|
215 | - ); |
|
216 | - } |
|
207 | + /** |
|
208 | + * @return string |
|
209 | + */ |
|
210 | + private function _get_event_datetime_DTT_sold_label_info() |
|
211 | + { |
|
212 | + return esc_html__( |
|
213 | + 'This shows the number of tickets that have been sold that have access to this event datetime.', |
|
214 | + 'event_espresso' |
|
215 | + ); |
|
216 | + } |
|
217 | 217 | |
218 | - /** |
|
219 | - * @return string |
|
220 | - */ |
|
221 | - private function _get_event_datetime_DTT_reserved_label_info() |
|
222 | - { |
|
223 | - return esc_html__( |
|
224 | - 'This shows the number of reserved tickets that have access to this event datetime.', |
|
225 | - 'event_espresso' |
|
226 | - ); |
|
227 | - } |
|
218 | + /** |
|
219 | + * @return string |
|
220 | + */ |
|
221 | + private function _get_event_datetime_DTT_reserved_label_info() |
|
222 | + { |
|
223 | + return esc_html__( |
|
224 | + 'This shows the number of reserved tickets that have access to this event datetime.', |
|
225 | + 'event_espresso' |
|
226 | + ); |
|
227 | + } |
|
228 | 228 | |
229 | - /** |
|
230 | - * @return string |
|
231 | - */ |
|
232 | - private function _get_event_ticket_TKT_name_label_info() |
|
233 | - { |
|
234 | - return esc_html__('This is the name of this ticket option.', 'event_espresso'); |
|
235 | - } |
|
229 | + /** |
|
230 | + * @return string |
|
231 | + */ |
|
232 | + private function _get_event_ticket_TKT_name_label_info() |
|
233 | + { |
|
234 | + return esc_html__('This is the name of this ticket option.', 'event_espresso'); |
|
235 | + } |
|
236 | 236 | |
237 | - /** |
|
238 | - * @return string |
|
239 | - */ |
|
240 | - private function _get_event_ticket_TKT_goes_on_sale_label_info() |
|
241 | - { |
|
242 | - return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso'); |
|
243 | - } |
|
237 | + /** |
|
238 | + * @return string |
|
239 | + */ |
|
240 | + private function _get_event_ticket_TKT_goes_on_sale_label_info() |
|
241 | + { |
|
242 | + return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso'); |
|
243 | + } |
|
244 | 244 | |
245 | - /** |
|
246 | - * @return string |
|
247 | - */ |
|
248 | - private function _get_event_ticket_TKT_sell_until_label_info() |
|
249 | - { |
|
250 | - return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso'); |
|
251 | - } |
|
245 | + /** |
|
246 | + * @return string |
|
247 | + */ |
|
248 | + private function _get_event_ticket_TKT_sell_until_label_info() |
|
249 | + { |
|
250 | + return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso'); |
|
251 | + } |
|
252 | 252 | |
253 | - /** |
|
254 | - * @return string |
|
255 | - */ |
|
256 | - private function _get_event_ticket_TKT_price_label_info() |
|
257 | - { |
|
258 | - return esc_html__('This is the price for this ticket.', 'event_espresso'); |
|
259 | - } |
|
253 | + /** |
|
254 | + * @return string |
|
255 | + */ |
|
256 | + private function _get_event_ticket_TKT_price_label_info() |
|
257 | + { |
|
258 | + return esc_html__('This is the price for this ticket.', 'event_espresso'); |
|
259 | + } |
|
260 | 260 | |
261 | - /** |
|
262 | - * @return string |
|
263 | - */ |
|
264 | - private function _get_event_ticket_TKT_qty_label_info() |
|
265 | - { |
|
266 | - return esc_html__( |
|
267 | - 'This field shows the quantity of tickets that are available for this type of ticket.', |
|
268 | - 'event_espresso' |
|
269 | - ); |
|
270 | - } |
|
261 | + /** |
|
262 | + * @return string |
|
263 | + */ |
|
264 | + private function _get_event_ticket_TKT_qty_label_info() |
|
265 | + { |
|
266 | + return esc_html__( |
|
267 | + 'This field shows the quantity of tickets that are available for this type of ticket.', |
|
268 | + 'event_espresso' |
|
269 | + ); |
|
270 | + } |
|
271 | 271 | |
272 | - /** |
|
273 | - * @return string |
|
274 | - */ |
|
275 | - private function _get_event_ticket_TKT_sold_label_info() |
|
276 | - { |
|
277 | - return esc_html__('This shows the number of tickets that have been sold for this ticket.', 'event_espresso'); |
|
278 | - } |
|
272 | + /** |
|
273 | + * @return string |
|
274 | + */ |
|
275 | + private function _get_event_ticket_TKT_sold_label_info() |
|
276 | + { |
|
277 | + return esc_html__('This shows the number of tickets that have been sold for this ticket.', 'event_espresso'); |
|
278 | + } |
|
279 | 279 | |
280 | - /** |
|
281 | - * @return string |
|
282 | - */ |
|
283 | - private function _get_event_ticket_TKT_reserved_label_info() |
|
284 | - { |
|
285 | - return esc_html__('This shows the number of tickets that are reserved for this ticket.', 'event_espresso'); |
|
286 | - } |
|
280 | + /** |
|
281 | + * @return string |
|
282 | + */ |
|
283 | + private function _get_event_ticket_TKT_reserved_label_info() |
|
284 | + { |
|
285 | + return esc_html__('This shows the number of tickets that are reserved for this ticket.', 'event_espresso'); |
|
286 | + } |
|
287 | 287 | |
288 | - /** |
|
289 | - * @return string |
|
290 | - */ |
|
291 | - private function _get_event_ticket_TKT_regs_label_info() |
|
292 | - { |
|
293 | - return esc_html__( |
|
294 | - 'This shows the number of registrations that have occurred from ticket sales.', |
|
295 | - 'event_espresso' |
|
296 | - ); |
|
297 | - } |
|
288 | + /** |
|
289 | + * @return string |
|
290 | + */ |
|
291 | + private function _get_event_ticket_TKT_regs_label_info() |
|
292 | + { |
|
293 | + return esc_html__( |
|
294 | + 'This shows the number of registrations that have occurred from ticket sales.', |
|
295 | + 'event_espresso' |
|
296 | + ); |
|
297 | + } |
|
298 | 298 | |
299 | - /** |
|
300 | - * @return string |
|
301 | - */ |
|
302 | - private function _get_event_ticket_ANT_TKT_name_label_info() |
|
303 | - { |
|
304 | - return esc_html__('This is the name of this ticket option.', 'event_espresso'); |
|
305 | - } |
|
299 | + /** |
|
300 | + * @return string |
|
301 | + */ |
|
302 | + private function _get_event_ticket_ANT_TKT_name_label_info() |
|
303 | + { |
|
304 | + return esc_html__('This is the name of this ticket option.', 'event_espresso'); |
|
305 | + } |
|
306 | 306 | |
307 | - /** |
|
308 | - * @return string |
|
309 | - */ |
|
310 | - private function _get_event_ticket_ANT_TKT_goes_on_sale_label_info() |
|
311 | - { |
|
312 | - return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso'); |
|
313 | - } |
|
307 | + /** |
|
308 | + * @return string |
|
309 | + */ |
|
310 | + private function _get_event_ticket_ANT_TKT_goes_on_sale_label_info() |
|
311 | + { |
|
312 | + return esc_html__('This shows when the first ticket is available for sale.', 'event_espresso'); |
|
313 | + } |
|
314 | 314 | |
315 | - /** |
|
316 | - * @return string |
|
317 | - */ |
|
318 | - private function _get_event_ticket_ANT_TKT_sell_until_label_info() |
|
319 | - { |
|
320 | - return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso'); |
|
321 | - } |
|
315 | + /** |
|
316 | + * @return string |
|
317 | + */ |
|
318 | + private function _get_event_ticket_ANT_TKT_sell_until_label_info() |
|
319 | + { |
|
320 | + return esc_html__('This shows the date that ticket sales end for this ticket.', 'event_espresso'); |
|
321 | + } |
|
322 | 322 | |
323 | - /** |
|
324 | - * @return string |
|
325 | - */ |
|
326 | - private function _get_event_ticket_ANT_TKT_price_label_info() |
|
327 | - { |
|
328 | - return esc_html__('This is the price for this ticket.', 'event_espresso'); |
|
329 | - } |
|
323 | + /** |
|
324 | + * @return string |
|
325 | + */ |
|
326 | + private function _get_event_ticket_ANT_TKT_price_label_info() |
|
327 | + { |
|
328 | + return esc_html__('This is the price for this ticket.', 'event_espresso'); |
|
329 | + } |
|
330 | 330 | |
331 | - /** |
|
332 | - * @return string |
|
333 | - */ |
|
334 | - private function _get_event_ticket_ANT_TKT_qty_label_info() |
|
335 | - { |
|
336 | - return esc_html__( |
|
337 | - 'This field shows the quantity of tickets that are available for this type of ticket.', |
|
338 | - 'event_espresso' |
|
339 | - ); |
|
340 | - } |
|
331 | + /** |
|
332 | + * @return string |
|
333 | + */ |
|
334 | + private function _get_event_ticket_ANT_TKT_qty_label_info() |
|
335 | + { |
|
336 | + return esc_html__( |
|
337 | + 'This field shows the quantity of tickets that are available for this type of ticket.', |
|
338 | + 'event_espresso' |
|
339 | + ); |
|
340 | + } |
|
341 | 341 | |
342 | - /** |
|
343 | - * @return string |
|
344 | - */ |
|
345 | - private function _get_add_new_event_start_label_info() |
|
346 | - { |
|
347 | - return esc_html__('This shows when this event datetime starts.', 'event_espresso'); |
|
348 | - } |
|
342 | + /** |
|
343 | + * @return string |
|
344 | + */ |
|
345 | + private function _get_add_new_event_start_label_info() |
|
346 | + { |
|
347 | + return esc_html__('This shows when this event datetime starts.', 'event_espresso'); |
|
348 | + } |
|
349 | 349 | |
350 | - /** |
|
351 | - * @return string |
|
352 | - */ |
|
353 | - private function _get_add_new_event_end_label_info() |
|
354 | - { |
|
355 | - return esc_html__('This shows when this event datetime ends.', 'event_espresso'); |
|
356 | - } |
|
350 | + /** |
|
351 | + * @return string |
|
352 | + */ |
|
353 | + private function _get_add_new_event_end_label_info() |
|
354 | + { |
|
355 | + return esc_html__('This shows when this event datetime ends.', 'event_espresso'); |
|
356 | + } |
|
357 | 357 | |
358 | - /** |
|
359 | - * @return string |
|
360 | - */ |
|
361 | - private function _get_add_new_event_datetime_DTT_reg_limit_label_info() |
|
362 | - { |
|
363 | - return esc_html__( |
|
364 | - 'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.', |
|
365 | - 'event_espresso' |
|
366 | - ); |
|
367 | - } |
|
358 | + /** |
|
359 | + * @return string |
|
360 | + */ |
|
361 | + private function _get_add_new_event_datetime_DTT_reg_limit_label_info() |
|
362 | + { |
|
363 | + return esc_html__( |
|
364 | + 'This field allows you to set a maximum number of tickets that you want to make available for an event datetime.', |
|
365 | + 'event_espresso' |
|
366 | + ); |
|
367 | + } |
|
368 | 368 | |
369 | - /** |
|
370 | - * @return string |
|
371 | - */ |
|
372 | - private function _get_event_ticket_TD_TKT_number_datetimes_label_info() |
|
373 | - { |
|
374 | - return esc_html__( |
|
375 | - 'This field allows you to set the number of datetimes that a ticket should have access to.', |
|
376 | - 'event_espresso' |
|
377 | - ); |
|
378 | - } |
|
369 | + /** |
|
370 | + * @return string |
|
371 | + */ |
|
372 | + private function _get_event_ticket_TD_TKT_number_datetimes_label_info() |
|
373 | + { |
|
374 | + return esc_html__( |
|
375 | + 'This field allows you to set the number of datetimes that a ticket should have access to.', |
|
376 | + 'event_espresso' |
|
377 | + ); |
|
378 | + } |
|
379 | 379 | |
380 | - /** |
|
381 | - * @return string |
|
382 | - */ |
|
383 | - private function _get_event_ticket_TD_TKT_min_qty_label_info() |
|
384 | - { |
|
385 | - return esc_html__( |
|
386 | - 'This shows the minimum quantity that can be purchased for this ticket.', |
|
387 | - 'event_espresso' |
|
388 | - ); |
|
389 | - } |
|
380 | + /** |
|
381 | + * @return string |
|
382 | + */ |
|
383 | + private function _get_event_ticket_TD_TKT_min_qty_label_info() |
|
384 | + { |
|
385 | + return esc_html__( |
|
386 | + 'This shows the minimum quantity that can be purchased for this ticket.', |
|
387 | + 'event_espresso' |
|
388 | + ); |
|
389 | + } |
|
390 | 390 | |
391 | - /** |
|
392 | - * @return string |
|
393 | - */ |
|
394 | - private function _get_event_ticket_TD_TKT_max_qty_label_info() |
|
395 | - { |
|
396 | - return esc_html__('This shows the maximum quantity that can be purchased for this ticket.', 'event_espresso'); |
|
397 | - } |
|
391 | + /** |
|
392 | + * @return string |
|
393 | + */ |
|
394 | + private function _get_event_ticket_TD_TKT_max_qty_label_info() |
|
395 | + { |
|
396 | + return esc_html__('This shows the maximum quantity that can be purchased for this ticket.', 'event_espresso'); |
|
397 | + } |
|
398 | 398 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | <div id="espresso-thank-you-page-overview-dv" class="width-100"> |
11 | 11 | |
12 | - <?php if (! $revisit) : ?> |
|
12 | + <?php if ( ! $revisit) : ?> |
|
13 | 13 | <div class="ee-attention"> |
14 | 14 | <div class="extra-padding-sides"> |
15 | 15 | <?php echo apply_filters( |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | '<br />' |
22 | 22 | ) |
23 | 23 | ); |
24 | - if (! empty($TXN_receipt_url)) : ?> |
|
24 | + if ( ! empty($TXN_receipt_url)) : ?> |
|
25 | 25 | <br/> |
26 | 26 | <div class="jst-rght"> |
27 | 27 | <a class="ee-button ee-roundish indented-text big-text" |
@@ -13,26 +13,26 @@ |
||
13 | 13 | <div class="ee-attention"> |
14 | 14 | <div class="extra-padding-sides"> |
15 | 15 | <?php echo apply_filters( |
16 | - 'FHEE__thank_you_page_overview_template__order_conf_desc', |
|
17 | - sprintf( |
|
18 | - $order_conf_desc, |
|
19 | - '<h3 class="">', |
|
20 | - '</h3>', |
|
21 | - '<br />' |
|
22 | - ) |
|
23 | - ); |
|
24 | - if (! empty($TXN_receipt_url)) : ?> |
|
16 | + 'FHEE__thank_you_page_overview_template__order_conf_desc', |
|
17 | + sprintf( |
|
18 | + $order_conf_desc, |
|
19 | + '<h3 class="">', |
|
20 | + '</h3>', |
|
21 | + '<br />' |
|
22 | + ) |
|
23 | + ); |
|
24 | + if (! empty($TXN_receipt_url)) : ?> |
|
25 | 25 | <br/> |
26 | 26 | <div class="jst-rght"> |
27 | 27 | <a class="ee-button ee-roundish indented-text big-text" |
28 | 28 | href="<?php echo esc_url_raw($TXN_receipt_url); ?>"><span |
29 | 29 | class="ee-icon ee-icon-PDF-file-type"></span> |
30 | 30 | <?php |
31 | - echo apply_filters( |
|
32 | - 'FHEE__thank_you_page_overview_template__order_conf_button_text', |
|
33 | - esc_html__('View Full Order Confirmation Receipt', 'event_espresso') |
|
34 | - ); |
|
35 | - ?></a> |
|
31 | + echo apply_filters( |
|
32 | + 'FHEE__thank_you_page_overview_template__order_conf_button_text', |
|
33 | + esc_html__('View Full Order Confirmation Receipt', 'event_espresso') |
|
34 | + ); |
|
35 | + ?></a> |
|
36 | 36 | </div> |
37 | 37 | <?php endif; ?> |
38 | 38 | </div> |