@@ -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' => __('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( __('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'] = __('About Event Espresso', 'event_espresso'); |
|
152 | + protected function _overview() |
|
153 | + { |
|
154 | + /*$this->_template_args['admin_page_title'] = __('About Event Espresso', 'event_espresso'); |
|
155 | 155 | $this->_template_args['admin_page_subtitle'] = __('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 | - __('Welcome to Event Espresso %s', 'event_espresso'), |
|
257 | - EVENT_ESPRESSO_VERSION |
|
258 | - ); |
|
259 | - $this->_template_args['admin_page_subtitle'] = __( |
|
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 | - __('Welcome to Event Espresso %s', 'event_espresso'), |
|
277 | - EVENT_ESPRESSO_VERSION |
|
278 | - ); |
|
279 | - $this->_template_args['admin_page_subtitle'] = sprintf( |
|
280 | - __( |
|
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'] = __('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
301 | - $this->_template_args['admin_page_subtitle'] = __( |
|
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 | + __('Welcome to Event Espresso %s', 'event_espresso'), |
|
257 | + EVENT_ESPRESSO_VERSION |
|
258 | + ); |
|
259 | + $this->_template_args['admin_page_subtitle'] = __( |
|
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 | + __('Welcome to Event Espresso %s', 'event_espresso'), |
|
277 | + EVENT_ESPRESSO_VERSION |
|
278 | + ); |
|
279 | + $this->_template_args['admin_page_subtitle'] = sprintf( |
|
280 | + __( |
|
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'] = __('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
301 | + $this->_template_args['admin_page_subtitle'] = __( |
|
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 | } |
@@ -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, |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | </div> |
138 | 138 | <?php |
139 | - if (! defined('EE_CAF_URL')) { |
|
139 | + if ( ! defined('EE_CAF_URL')) { |
|
140 | 140 | ?> |
141 | 141 | <div align="right"><a |
142 | 142 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | |
257 | 257 | </div> |
258 | 258 | <?php |
259 | - if (! defined('EE_CAF_URL')) { |
|
259 | + if ( ! defined('EE_CAF_URL')) { |
|
260 | 260 | ?> |
261 | 261 | <div align="right"><a |
262 | 262 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | </div> |
368 | 368 | </div> |
369 | 369 | <?php |
370 | - if (! defined('EE_CAF_URL')) { |
|
370 | + if ( ! defined('EE_CAF_URL')) { |
|
371 | 371 | ?> |
372 | 372 | <div align="right"><a |
373 | 373 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
@@ -1,19 +1,19 @@ discard block |
||
1 | 1 | <h2 style="text-align: left;"><?php esc_html_e('Who uses Event Espresso?', 'event_espresso'); ?></h2> |
2 | 2 | <p><?php |
3 | - echo sprintf( |
|
4 | - esc_html__( |
|
5 | - 'Event Espresso is used by over 40,000 event organizers across the world. They host %sconferences%s, %sart classes%s, training courses, concerts, fundraisers, workshops, %sfilm festivals%s, %spaint and wine%s, and more.', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<a href="https://eventespresso.com/use-cases/conferences/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
9 | - '</a>', |
|
10 | - '<a href="https://eventespresso.com/use-cases/art-classes/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
11 | - '</a>', |
|
12 | - '<a href="https://eventespresso.com/use-cases/film-festival-ticketing-software/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
13 | - '</a>', |
|
14 | - '<a href="https://eventespresso.com/use-cases/paint-wine-party-ticketing-software/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
15 | - '</a>' |
|
16 | - ); ?></p> |
|
3 | + echo sprintf( |
|
4 | + esc_html__( |
|
5 | + 'Event Espresso is used by over 40,000 event organizers across the world. They host %sconferences%s, %sart classes%s, training courses, concerts, fundraisers, workshops, %sfilm festivals%s, %spaint and wine%s, and more.', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<a href="https://eventespresso.com/use-cases/conferences/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
9 | + '</a>', |
|
10 | + '<a href="https://eventespresso.com/use-cases/art-classes/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
11 | + '</a>', |
|
12 | + '<a href="https://eventespresso.com/use-cases/film-festival-ticketing-software/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
13 | + '</a>', |
|
14 | + '<a href="https://eventespresso.com/use-cases/paint-wine-party-ticketing-software/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=Decaf+vs+Regular">', |
|
15 | + '</a>' |
|
16 | + ); ?></p> |
|
17 | 17 | |
18 | 18 | <h2 class="about-headline-callout"><?php esc_html_e('Rave Reviews About Event Espresso 4', 'event_espresso'); ?></h2> |
19 | 19 | <p>See what people have to say about the Event Espresso software and support services on <a |
@@ -135,16 +135,16 @@ discard block |
||
135 | 135 | |
136 | 136 | </div> |
137 | 137 | <?php |
138 | - if (! defined('EE_CAF_URL')) { |
|
139 | - ?> |
|
138 | + if (! defined('EE_CAF_URL')) { |
|
139 | + ?> |
|
140 | 140 | <div align="right"><a |
141 | 141 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
142 | 142 | target="_blank" class="button button-primary button-hero"><span |
143 | 143 | class="dashicons dashicons-cart"></span><?php esc_html_e('Upgrade Now!', 'event_espresso') ?></a> |
144 | 144 | </div> |
145 | 145 | <?php |
146 | - } |
|
147 | - ?> |
|
146 | + } |
|
147 | + ?> |
|
148 | 148 | |
149 | 149 | <hr/> |
150 | 150 | <div class="feature-section has-3-columns is-fullwidth three-col"> |
@@ -255,16 +255,16 @@ discard block |
||
255 | 255 | |
256 | 256 | </div> |
257 | 257 | <?php |
258 | - if (! defined('EE_CAF_URL')) { |
|
259 | - ?> |
|
258 | + if (! defined('EE_CAF_URL')) { |
|
259 | + ?> |
|
260 | 260 | <div align="right"><a |
261 | 261 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
262 | 262 | target="_blank" class="button button-primary button-hero"><span |
263 | 263 | class="dashicons dashicons-cart"></span><?php esc_html_e('Upgrade Now!', 'event_espresso') ?></a> |
264 | 264 | </div> |
265 | 265 | <?php |
266 | - } |
|
267 | - ?> |
|
266 | + } |
|
267 | + ?> |
|
268 | 268 | |
269 | 269 | <hr/> |
270 | 270 | <div class="feature-section has-3-columns is-fullwidth three-col"> |
@@ -366,13 +366,13 @@ discard block |
||
366 | 366 | </div> |
367 | 367 | </div> |
368 | 368 | <?php |
369 | - if (! defined('EE_CAF_URL')) { |
|
370 | - ?> |
|
369 | + if (! defined('EE_CAF_URL')) { |
|
370 | + ?> |
|
371 | 371 | <div align="right"><a |
372 | 372 | href="https://eventespresso.com/pricing/?utm_source=wordpress_org&utm_medium=link&utm_campaign=decaf_about_page&utm_content=reviews+tab" |
373 | 373 | target="_blank" class="button button-primary button-hero"><span |
374 | 374 | class="dashicons dashicons-cart"></span><?php esc_html_e('Upgrade Now!', 'event_espresso') ?></a> |
375 | 375 | </div> |
376 | 376 | <?php |
377 | - } |
|
378 | - ?> |
|
379 | 377 | \ No newline at end of file |
378 | + } |
|
379 | + ?> |
|
380 | 380 | \ No newline at end of file |
@@ -4,52 +4,52 @@ |
||
4 | 4 | <?php $type = 'minor'; ?> |
5 | 5 | <?php // $type = 'major'; ?> |
6 | 6 | <p><?php |
7 | - printf( |
|
8 | - __('<strong>Version %1$s</strong> is a %2$s bug fix/enhancement release.', 'event_espresso'), |
|
9 | - EVENT_ESPRESSO_VERSION, |
|
10 | - $type |
|
11 | - ); ?> |
|
7 | + printf( |
|
8 | + __('<strong>Version %1$s</strong> is a %2$s bug fix/enhancement release.', 'event_espresso'), |
|
9 | + EVENT_ESPRESSO_VERSION, |
|
10 | + $type |
|
11 | + ); ?> |
|
12 | 12 | <?php |
13 | - $ver = explode('.', EVENT_ESPRESSO_VERSION); |
|
14 | - array_pop($ver); |
|
15 | - $ver = implode('.', $ver); |
|
16 | - ?> |
|
13 | + $ver = explode('.', EVENT_ESPRESSO_VERSION); |
|
14 | + array_pop($ver); |
|
15 | + $ver = implode('.', $ver); |
|
16 | + ?> |
|
17 | 17 | <?php |
18 | - printf( |
|
19 | - __('For more information, see <a href="%s">the release notes</a>.', 'event_espresso'), |
|
20 | - 'http://eventespresso.com/wiki/ee4-changelog/#' . $ver |
|
21 | - ); ?> |
|
18 | + printf( |
|
19 | + __('For more information, see <a href="%s">the release notes</a>.', 'event_espresso'), |
|
20 | + 'http://eventespresso.com/wiki/ee4-changelog/#' . $ver |
|
21 | + ); ?> |
|
22 | 22 | </p> |
23 | 23 | </div> |
24 | 24 | |
25 | 25 | <div class="changelog"> |
26 | 26 | <?php |
27 | - // maintenance mode on? |
|
28 | - if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
29 | - ?> |
|
27 | + // maintenance mode on? |
|
28 | + if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
29 | + ?> |
|
30 | 30 | <div class="ee-attention"> |
31 | 31 | <h2 class="ee-maintenance-mode-callout"> |
32 | 32 | <?php |
33 | - _e( |
|
34 | - 'Event Espresso is in full maintenance mode.', |
|
35 | - 'event_espresso' |
|
36 | - ); ?></h2> |
|
33 | + _e( |
|
34 | + 'Event Espresso is in full maintenance mode.', |
|
35 | + 'event_espresso' |
|
36 | + ); ?></h2> |
|
37 | 37 | <p> |
38 | 38 | <?php |
39 | - printf( |
|
40 | - __( |
|
41 | - 'A previous version of Event Espresso has detected. But before anything else can happen, we need to know whether or not to migrate (copy over) your existing event data so that it can be utilized by EE4. For more instructions on what to do, please visit the %sEvent Espresso Maintenance%s page.', |
|
42 | - 'event_espresso' |
|
43 | - ), |
|
44 | - '<a href="admin.php?page=espresso_maintenance_settings">', |
|
45 | - '</a>' |
|
46 | - ); |
|
47 | - ?> |
|
39 | + printf( |
|
40 | + __( |
|
41 | + 'A previous version of Event Espresso has detected. But before anything else can happen, we need to know whether or not to migrate (copy over) your existing event data so that it can be utilized by EE4. For more instructions on what to do, please visit the %sEvent Espresso Maintenance%s page.', |
|
42 | + 'event_espresso' |
|
43 | + ), |
|
44 | + '<a href="admin.php?page=espresso_maintenance_settings">', |
|
45 | + '</a>' |
|
46 | + ); |
|
47 | + ?> |
|
48 | 48 | </p> |
49 | 49 | </div> |
50 | 50 | <?php |
51 | - } |
|
52 | - ?> |
|
51 | + } |
|
52 | + ?> |
|
53 | 53 | |
54 | 54 | |
55 | 55 | <h2 class="about-headline-callout">Initial EE4 Decaf (free) Release</h2> |
@@ -17,7 +17,7 @@ |
||
17 | 17 | <?php |
18 | 18 | printf( |
19 | 19 | __('For more information, see <a href="%s">the release notes</a>.', 'event_espresso'), |
20 | - 'http://eventespresso.com/wiki/ee4-changelog/#' . $ver |
|
20 | + 'http://eventespresso.com/wiki/ee4-changelog/#'.$ver |
|
21 | 21 | ); ?> |
22 | 22 | </p> |
23 | 23 | </div> |
@@ -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( |
@@ -6,18 +6,18 @@ discard block |
||
6 | 6 | <form id="ee-msg-add-message-template-frm" action="<?php echo $edit_message_template_form_url; ?>" method="post"> |
7 | 7 | <input type="hidden" id="evt_id" name="EVT_ID" value="<?php echo ($EVT_ID) ? $EVT_ID : ''; ?>"/> |
8 | 8 | <?php |
9 | - if (isset($hidden_fields)) { |
|
10 | - echo $hidden_fields; |
|
11 | - } ?> |
|
9 | + if (isset($hidden_fields)) { |
|
10 | + echo $hidden_fields; |
|
11 | + } ?> |
|
12 | 12 | <!--active_messengers --> |
13 | 13 | <label for="MTP_messenger"><?php _e('Select Messenger', 'event_espresso'); ?></label> |
14 | 14 | <select name="MTP_messenger" id="MTP-messenger"> |
15 | 15 | <?php |
16 | - foreach ($active_messengers as $messenger => $values) : ?> |
|
16 | + foreach ($active_messengers as $messenger => $values) : ?> |
|
17 | 17 | <option value="<?php echo $messenger; ?>"> |
18 | 18 | <?php echo ucwords( |
19 | - str_replace('_', ' ', $messenger) |
|
20 | - ); ?></option> |
|
19 | + str_replace('_', ' ', $messenger) |
|
20 | + ); ?></option> |
|
21 | 21 | <?php endforeach; ?> |
22 | 22 | </select> |
23 | 23 | |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | <?php foreach ($active_message_types as $message_type => $values) : ?> |
27 | 27 | <option value="<?php echo $message_type; ?>"> |
28 | 28 | <?php echo ucwords( |
29 | - str_replace('_', ' ', $message_type) |
|
30 | - ); ?></option> |
|
29 | + str_replace('_', ' ', $message_type) |
|
30 | + ); ?></option> |
|
31 | 31 | <?php endforeach; ?> |
32 | 32 | </select> |
33 | 33 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv"> |
2 | 2 | |
3 | - <h4 class="admin-primary-mbox-h4"><?php echo ($event_name) ? $event_name . ' Custom Template' : ''; ?></h4> |
|
3 | + <h4 class="admin-primary-mbox-h4"><?php echo ($event_name) ? $event_name.' Custom Template' : ''; ?></h4> |
|
4 | 4 | <p><?php echo $action_message; ?></p> |
5 | 5 | |
6 | 6 | <form id="ee-msg-add-message-template-frm" action="<?php echo $edit_message_template_form_url; ?>" method="post"> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | </select> |
33 | 33 | |
34 | 34 | <!-- events if we don't have an EVENT_ID --> |
35 | - <?php if (! empty($active_events)) : ?> |
|
35 | + <?php if ( ! empty($active_events)) : ?> |
|
36 | 36 | <label for="EVT_ID_select"><?php _e('Select Event', 'event_espresso'); ?></label> |
37 | 37 | <select name="EVT_ID" id="EVT_ID_select"> |
38 | 38 | <?php foreach ($active_events as $event) : ?> |
@@ -12,7 +12,7 @@ |
||
12 | 12 | <span class="ee-messages-shortcodes-chooser js-open-list-trigger dashicons dashicons-menu"> |
13 | 13 | <ul id="ee_shortcode_chooser_<?php echo $fieldname; ?>" class="ee_shortcode_chooser_container hidden"> |
14 | 14 | <?php |
15 | - foreach ($shortcodes as $shortcode => $label) : ?> |
|
15 | + foreach ($shortcodes as $shortcode => $label) : ?> |
|
16 | 16 | <li> |
17 | 17 | <span class="js-shortcode-selection" data-value="<?php echo esc_attr($shortcode); ?>" |
18 | 18 | data-linked-input-id="<?php echo esc_attr($linked_input_id); ?>"><?php echo $shortcode; ?></span> |
@@ -10,7 +10,7 @@ |
||
10 | 10 | * @type string $linked_input_id The name of the input that the shortcode gets inserted to. |
11 | 11 | */ |
12 | 12 | |
13 | -if (! empty($shortcodes)) : ?> |
|
13 | +if ( ! empty($shortcodes)) : ?> |
|
14 | 14 | <span class="ee-messages-shortcodes-chooser js-open-list-trigger dashicons dashicons-menu"> |
15 | 15 | <ul id="ee_shortcode_chooser_<?php echo $fieldname; ?>" class="ee_shortcode_chooser_container hidden"> |
16 | 16 | <?php |
@@ -3,16 +3,16 @@ discard block |
||
3 | 3 | <div id="espresso-ajax-loading" class="ajax-loader-grey"> |
4 | 4 | <span class="ee-spinner ee-spin"></span><span class="hidden"> |
5 | 5 | <?php |
6 | - _e( |
|
7 | - 'loading...', |
|
8 | - 'event_espresso' |
|
9 | - ); ?></span> |
|
6 | + _e( |
|
7 | + 'loading...', |
|
8 | + 'event_espresso' |
|
9 | + ); ?></span> |
|
10 | 10 | </div> |
11 | 11 | <span id="on-off-nonce-<?php echo $messenger; ?>" class="hidden"><?php echo $nonce; ?></span> |
12 | 12 | <div class="switch"> |
13 | 13 | <?php |
14 | - $checked = $on_off_status ? ' checked="checked"' : ''; |
|
15 | - ?> |
|
14 | + $checked = $on_off_status ? ' checked="checked"' : ''; |
|
15 | + ?> |
|
16 | 16 | <input id="ee-on-off-toggle-<?php echo $messenger; ?>" type="checkbox" |
17 | 17 | class="ee-on-off-toggle ee-toggle-round-flat"<?php echo $checked; ?> |
18 | 18 | value="<?php echo $on_off_action; ?>"> |
@@ -27,9 +27,9 @@ discard block |
||
27 | 27 | <form method="POST" action="" class="mt-settings-form"> |
28 | 28 | <?php echo $template_form_fields; ?> |
29 | 29 | <?php |
30 | - foreach ($hidden_fields as $name => $field) { |
|
31 | - echo $field['field']; |
|
32 | - } ?> |
|
30 | + foreach ($hidden_fields as $name => $field) { |
|
31 | + echo $field['field']; |
|
32 | + } ?> |
|
33 | 33 | <input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>" class="button-secondary no-drag"/> |
34 | 34 | </form> |
35 | 35 | </div> |
@@ -7,9 +7,9 @@ |
||
7 | 7 | <form method="POST" action="" class="mt-settings-form<?php echo $show_form; ?>"> |
8 | 8 | <?php echo $template_form_fields; ?> |
9 | 9 | <?php |
10 | - foreach ($hidden_fields as $name => $field) { |
|
11 | - echo $field['field']; |
|
12 | - } ?> |
|
10 | + foreach ($hidden_fields as $name => $field) { |
|
11 | + echo $field['field']; |
|
12 | + } ?> |
|
13 | 13 | <input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>" |
14 | 14 | class="button-secondary mt-settings-submit no-drag"/> |
15 | 15 | </form> |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <h2><?php esc_html_e('What are Message Templates', 'event_espresso'); ?></h2> |
2 | 2 | <p> |
3 | 3 | <?php printf( |
4 | - esc_html__( |
|
5 | - 'Message Templates are the %1$sformat%2$s of the messages going out. Think of them like a “Form letter”. Templates are used to tell the system what you want your messages to look like and the content they will have when they are delivered.', |
|
6 | - 'event_espresso' |
|
7 | - ), |
|
8 | - '<em>', |
|
9 | - '</em>' |
|
10 | - ); ?></p> |
|
4 | + esc_html__( |
|
5 | + 'Message Templates are the %1$sformat%2$s of the messages going out. Think of them like a “Form letter”. Templates are used to tell the system what you want your messages to look like and the content they will have when they are delivered.', |
|
6 | + 'event_espresso' |
|
7 | + ), |
|
8 | + '<em>', |
|
9 | + '</em>' |
|
10 | + ); ?></p> |
|
11 | 11 | <p> |
12 | 12 | <?php esc_html_e( |
13 | - 'There is a template created for each messenger/message type AND context combination. So example, Emails that are sent for the Payment confirmation have a template for Event Administrator and a different one for Primary Registrant. Whereas, emails that are sent for the Registration confirmation have 3 templates, one for Event Administrator, Primary Registrant, and Registrant.', |
|
14 | - 'event_espresso' |
|
15 | - ); ?></p> |
|
13 | + 'There is a template created for each messenger/message type AND context combination. So example, Emails that are sent for the Payment confirmation have a template for Event Administrator and a different one for Primary Registrant. Whereas, emails that are sent for the Registration confirmation have 3 templates, one for Event Administrator, Primary Registrant, and Registrant.', |
|
14 | + 'event_espresso' |
|
15 | + ); ?></p> |
|
16 | 16 | <p> |
17 | 17 | <?php esc_html_e( |
18 | - 'With the Event Espresso Messages system, every Messenger, Message Type and Context will have a global template created with some default content on creation. You have the ability to edit this global template that will be used for all events you create. However, you also have the ability to create custom templates for each event on the edit event page for the event (in a metabox labelled "Notifications").', |
|
19 | - 'event_espresso' |
|
20 | - ); ?></p> |
|
21 | 18 | \ No newline at end of file |
19 | + 'With the Event Espresso Messages system, every Messenger, Message Type and Context will have a global template created with some default content on creation. You have the ability to edit this global template that will be used for all events you create. However, you also have the ability to create custom templates for each event on the edit event page for the event (in a metabox labelled "Notifications").', |
|
20 | + 'event_espresso' |
|
21 | + ); ?></p> |
|
22 | 22 | \ No newline at end of file |