@@ -75,7 +75,7 @@ |
||
75 | 75 | if ($transaction->ID()) { |
76 | 76 | $info['TXN_status'] = $transaction->status_ID(); |
77 | 77 | $info['TXN_reg_steps'] = $transaction->reg_steps(); |
78 | - $index = 'EE_Transaction: ' . $transaction->ID(); |
|
78 | + $index = 'EE_Transaction: '.$transaction->ID(); |
|
79 | 79 | EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index); |
80 | 80 | } |
81 | 81 | } |
@@ -13,71 +13,71 @@ |
||
13 | 13 | */ |
14 | 14 | class EE_Processor_Base |
15 | 15 | { |
16 | - /** |
|
17 | - * Used to indicate whether current request is for an IPN or not. |
|
18 | - * |
|
19 | - * @var bool |
|
20 | - */ |
|
21 | - protected static $IPN = false; |
|
16 | + /** |
|
17 | + * Used to indicate whether current request is for an IPN or not. |
|
18 | + * |
|
19 | + * @var bool |
|
20 | + */ |
|
21 | + protected static $IPN = false; |
|
22 | 22 | |
23 | - /** |
|
24 | - * Used to indicate whether SPCO is being revisited by registrant or not. |
|
25 | - * |
|
26 | - * @var bool |
|
27 | - */ |
|
28 | - protected $_revisit = false; |
|
23 | + /** |
|
24 | + * Used to indicate whether SPCO is being revisited by registrant or not. |
|
25 | + * |
|
26 | + * @var bool |
|
27 | + */ |
|
28 | + protected $_revisit = false; |
|
29 | 29 | |
30 | 30 | |
31 | - /** |
|
32 | - * @param boolean $IPN |
|
33 | - */ |
|
34 | - public static function set_IPN($IPN) |
|
35 | - { |
|
36 | - self::$IPN = filter_var($IPN, FILTER_VALIDATE_BOOLEAN); |
|
37 | - } |
|
31 | + /** |
|
32 | + * @param boolean $IPN |
|
33 | + */ |
|
34 | + public static function set_IPN($IPN) |
|
35 | + { |
|
36 | + self::$IPN = filter_var($IPN, FILTER_VALIDATE_BOOLEAN); |
|
37 | + } |
|
38 | 38 | |
39 | 39 | |
40 | - /** |
|
41 | - * Allows external class (usually checkout) to set whether SPCO is being revisited by registrant or not. |
|
42 | - * |
|
43 | - * @param bool $revisit |
|
44 | - * @return void |
|
45 | - */ |
|
46 | - public function set_revisit($revisit = false) |
|
47 | - { |
|
48 | - $this->_revisit = filter_var($revisit, FILTER_VALIDATE_BOOLEAN); |
|
49 | - } |
|
40 | + /** |
|
41 | + * Allows external class (usually checkout) to set whether SPCO is being revisited by registrant or not. |
|
42 | + * |
|
43 | + * @param bool $revisit |
|
44 | + * @return void |
|
45 | + */ |
|
46 | + public function set_revisit($revisit = false) |
|
47 | + { |
|
48 | + $this->_revisit = filter_var($revisit, FILTER_VALIDATE_BOOLEAN); |
|
49 | + } |
|
50 | 50 | |
51 | 51 | |
52 | - /** |
|
53 | - * debug |
|
54 | - * |
|
55 | - * @param string $class |
|
56 | - * @param string $func |
|
57 | - * @param string $line |
|
58 | - * @param \EE_Transaction $transaction |
|
59 | - * @param array $info |
|
60 | - * @param bool $display_request |
|
61 | - */ |
|
62 | - protected function log( |
|
63 | - $class = '', |
|
64 | - $func = '', |
|
65 | - $line = '', |
|
66 | - EE_Transaction $transaction, |
|
67 | - $info = array(), |
|
68 | - $display_request = false |
|
69 | - ) { |
|
70 | - if (WP_DEBUG && false) { |
|
71 | - if ($transaction instanceof EE_Transaction) { |
|
72 | - // don't serialize objects |
|
73 | - $info = EEH_Debug_Tools::strip_objects($info); |
|
74 | - if ($transaction->ID()) { |
|
75 | - $info['TXN_status'] = $transaction->status_ID(); |
|
76 | - $info['TXN_reg_steps'] = $transaction->reg_steps(); |
|
77 | - $index = 'EE_Transaction: ' . $transaction->ID(); |
|
78 | - EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index); |
|
79 | - } |
|
80 | - } |
|
81 | - } |
|
82 | - } |
|
52 | + /** |
|
53 | + * debug |
|
54 | + * |
|
55 | + * @param string $class |
|
56 | + * @param string $func |
|
57 | + * @param string $line |
|
58 | + * @param \EE_Transaction $transaction |
|
59 | + * @param array $info |
|
60 | + * @param bool $display_request |
|
61 | + */ |
|
62 | + protected function log( |
|
63 | + $class = '', |
|
64 | + $func = '', |
|
65 | + $line = '', |
|
66 | + EE_Transaction $transaction, |
|
67 | + $info = array(), |
|
68 | + $display_request = false |
|
69 | + ) { |
|
70 | + if (WP_DEBUG && false) { |
|
71 | + if ($transaction instanceof EE_Transaction) { |
|
72 | + // don't serialize objects |
|
73 | + $info = EEH_Debug_Tools::strip_objects($info); |
|
74 | + if ($transaction->ID()) { |
|
75 | + $info['TXN_status'] = $transaction->status_ID(); |
|
76 | + $info['TXN_reg_steps'] = $transaction->reg_steps(); |
|
77 | + $index = 'EE_Transaction: ' . $transaction->ID(); |
|
78 | + EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index); |
|
79 | + } |
|
80 | + } |
|
81 | + } |
|
82 | + } |
|
83 | 83 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 'That\'s it for the tour! At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons. There are help tours available on all Event Espresso Admin pages. If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!', |
58 | 58 | 'event_espresso' |
59 | 59 | ), |
60 | - '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">', |
|
60 | + '<a href="'.EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')).'">', |
|
61 | 61 | '</a>' |
62 | 62 | ) |
63 | 63 | . '</p>'; |
@@ -14,51 +14,51 @@ |
||
14 | 14 | */ |
15 | 15 | class EE_Help_Tour_final_stop extends EE_Help_Tour |
16 | 16 | { |
17 | - protected function _set_tour_properties() |
|
18 | - { |
|
19 | - $this->_label = esc_html__('Final Stop Tour', 'event_espresso'); |
|
20 | - $this->_slug = 'final-stop-tour'; |
|
21 | - } |
|
17 | + protected function _set_tour_properties() |
|
18 | + { |
|
19 | + $this->_label = esc_html__('Final Stop Tour', 'event_espresso'); |
|
20 | + $this->_slug = 'final-stop-tour'; |
|
21 | + } |
|
22 | 22 | |
23 | 23 | |
24 | - protected function _set_tour_stops() |
|
25 | - { |
|
26 | - $this->_stops = array( |
|
27 | - 10 => array( |
|
28 | - 'id' => 'contextual-help-link', |
|
29 | - 'content' => $this->_end(), |
|
30 | - 'button_text' => esc_html__('Quit', 'event_espresso'), |
|
31 | - 'options' => array( |
|
32 | - 'tipLocation' => 'left', |
|
33 | - 'tipAdjustmentY' => -20, |
|
34 | - 'tipAdjustmentX' => 10, |
|
35 | - ), |
|
36 | - ), |
|
37 | - ); |
|
38 | - } |
|
24 | + protected function _set_tour_stops() |
|
25 | + { |
|
26 | + $this->_stops = array( |
|
27 | + 10 => array( |
|
28 | + 'id' => 'contextual-help-link', |
|
29 | + 'content' => $this->_end(), |
|
30 | + 'button_text' => esc_html__('Quit', 'event_espresso'), |
|
31 | + 'options' => array( |
|
32 | + 'tipLocation' => 'left', |
|
33 | + 'tipAdjustmentY' => -20, |
|
34 | + 'tipAdjustmentX' => 10, |
|
35 | + ), |
|
36 | + ), |
|
37 | + ); |
|
38 | + } |
|
39 | 39 | |
40 | 40 | |
41 | - /** |
|
42 | - * This is the default last stop for all tours that is displayed at the end of a tour OR when a tour is exited for |
|
43 | - * the first time. |
|
44 | - * |
|
45 | - * @return string |
|
46 | - */ |
|
47 | - protected function _end() |
|
48 | - { |
|
49 | - $query_args = array( |
|
50 | - 'action' => 'admin_option_settings', |
|
51 | - 'page' => 'espresso_general_settings', |
|
52 | - ); |
|
53 | - return '<p>' |
|
54 | - . sprintf( |
|
55 | - esc_html__( |
|
56 | - 'That\'s it for the tour! At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons. There are help tours available on all Event Espresso Admin pages. If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!', |
|
57 | - 'event_espresso' |
|
58 | - ), |
|
59 | - '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">', |
|
60 | - '</a>' |
|
61 | - ) |
|
62 | - . '</p>'; |
|
63 | - } |
|
41 | + /** |
|
42 | + * This is the default last stop for all tours that is displayed at the end of a tour OR when a tour is exited for |
|
43 | + * the first time. |
|
44 | + * |
|
45 | + * @return string |
|
46 | + */ |
|
47 | + protected function _end() |
|
48 | + { |
|
49 | + $query_args = array( |
|
50 | + 'action' => 'admin_option_settings', |
|
51 | + 'page' => 'espresso_general_settings', |
|
52 | + ); |
|
53 | + return '<p>' |
|
54 | + . sprintf( |
|
55 | + esc_html__( |
|
56 | + 'That\'s it for the tour! At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons. There are help tours available on all Event Espresso Admin pages. If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!', |
|
57 | + 'event_espresso' |
|
58 | + ), |
|
59 | + '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">', |
|
60 | + '</a>' |
|
61 | + ) |
|
62 | + . '</p>'; |
|
63 | + } |
|
64 | 64 | } |
@@ -20,10 +20,10 @@ |
||
20 | 20 | { |
21 | 21 | // define some help/support page related constants |
22 | 22 | define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
23 | - define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
24 | - define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
25 | - define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
26 | - define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
23 | + define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page='.EE_SUPPORT_PG_SLUG)); |
|
24 | + define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES.'support/templates/'); |
|
25 | + define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES.'support/'); |
|
26 | + define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL.'support/assets/'); |
|
27 | 27 | parent::__construct(); |
28 | 28 | } |
29 | 29 |
@@ -14,36 +14,36 @@ |
||
14 | 14 | */ |
15 | 15 | class Support_Admin_Page_Init extends EE_Admin_Page_Init |
16 | 16 | { |
17 | - public function __construct() |
|
18 | - { |
|
19 | - // define some help/support page related constants |
|
20 | - define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
|
21 | - define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
22 | - define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
23 | - define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
24 | - define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
25 | - parent::__construct(); |
|
26 | - } |
|
17 | + public function __construct() |
|
18 | + { |
|
19 | + // define some help/support page related constants |
|
20 | + define('EE_SUPPORT_PG_SLUG', 'espresso_support'); |
|
21 | + define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG)); |
|
22 | + define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/'); |
|
23 | + define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/'); |
|
24 | + define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/'); |
|
25 | + parent::__construct(); |
|
26 | + } |
|
27 | 27 | |
28 | - protected function _set_init_properties() |
|
29 | - { |
|
30 | - $this->label = esc_html__('Help & Support', 'event_espresso'); |
|
31 | - } |
|
28 | + protected function _set_init_properties() |
|
29 | + { |
|
30 | + $this->label = esc_html__('Help & Support', 'event_espresso'); |
|
31 | + } |
|
32 | 32 | |
33 | - protected function _set_menu_map() |
|
34 | - { |
|
35 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
36 | - array( |
|
37 | - 'menu_group' => 'extras', |
|
38 | - 'menu_order' => 30, |
|
39 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
40 | - 'parent_slug' => 'espresso_events', |
|
41 | - 'menu_slug' => EE_SUPPORT_PG_SLUG, |
|
42 | - 'menu_label' => esc_html__('Help & Support', 'event_espresso'), |
|
43 | - 'capability' => 'ee_read_ee', |
|
44 | - 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
45 | - 'admin_init_page' => $this, |
|
46 | - ) |
|
47 | - ); |
|
48 | - } |
|
33 | + protected function _set_menu_map() |
|
34 | + { |
|
35 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
36 | + array( |
|
37 | + 'menu_group' => 'extras', |
|
38 | + 'menu_order' => 30, |
|
39 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
40 | + 'parent_slug' => 'espresso_events', |
|
41 | + 'menu_slug' => EE_SUPPORT_PG_SLUG, |
|
42 | + 'menu_label' => esc_html__('Help & Support', 'event_espresso'), |
|
43 | + 'capability' => 'ee_read_ee', |
|
44 | + 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
45 | + 'admin_init_page' => $this, |
|
46 | + ) |
|
47 | + ); |
|
48 | + } |
|
49 | 49 | } |
@@ -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, |
@@ -15,128 +15,128 @@ discard block |
||
15 | 15 | */ |
16 | 16 | class About_Admin_Page extends EE_Admin_Page |
17 | 17 | { |
18 | - protected function _init_page_props() |
|
19 | - { |
|
20 | - $this->page_slug = EE_ABOUT_PG_SLUG; |
|
21 | - $this->page_label = esc_html__('About Event Espresso', 'event_espresso'); |
|
22 | - $this->_admin_base_url = EE_ABOUT_ADMIN_URL; |
|
23 | - $this->_admin_base_path = EE_ABOUT_ADMIN; |
|
24 | - } |
|
25 | - |
|
26 | - |
|
27 | - protected function _ajax_hooks() |
|
28 | - { |
|
29 | - // todo: all hooks for ajax goes here. |
|
30 | - } |
|
31 | - |
|
32 | - |
|
33 | - protected function _define_page_props() |
|
34 | - { |
|
35 | - $this->_labels = array(); |
|
36 | - $this->_admin_page_title = $this->page_label; |
|
37 | - } |
|
38 | - |
|
39 | - |
|
40 | - protected function _set_page_routes() |
|
41 | - { |
|
42 | - $this->_page_routes = array( |
|
43 | - 'default' => array( |
|
44 | - 'func' => '_overview', |
|
45 | - 'capability' => 'manage_options', |
|
46 | - ), |
|
47 | - // 'overview' => '_overview', |
|
48 | - // 'func' => '_overview', |
|
49 | - // 'capability' => 'ee_read_ee' |
|
50 | - // ), |
|
51 | - 'credits' => array( |
|
52 | - 'func' => '_credits', |
|
53 | - 'capability' => 'manage_options', |
|
54 | - ), |
|
55 | - |
|
56 | - 'decafvpro' => array( |
|
57 | - 'func' => '_decafvpro', |
|
58 | - 'capability' => 'manage_options', |
|
59 | - ), |
|
60 | - 'reviews' => array( |
|
61 | - 'func' => '_reviews', |
|
62 | - 'capability' => 'manage_options', |
|
63 | - ), |
|
64 | - ); |
|
65 | - } |
|
66 | - |
|
67 | - |
|
68 | - protected function _set_page_config() |
|
69 | - { |
|
70 | - $this->_page_config = array( |
|
71 | - /*'default' => array( |
|
18 | + protected function _init_page_props() |
|
19 | + { |
|
20 | + $this->page_slug = EE_ABOUT_PG_SLUG; |
|
21 | + $this->page_label = esc_html__('About Event Espresso', 'event_espresso'); |
|
22 | + $this->_admin_base_url = EE_ABOUT_ADMIN_URL; |
|
23 | + $this->_admin_base_path = EE_ABOUT_ADMIN; |
|
24 | + } |
|
25 | + |
|
26 | + |
|
27 | + protected function _ajax_hooks() |
|
28 | + { |
|
29 | + // todo: all hooks for ajax goes here. |
|
30 | + } |
|
31 | + |
|
32 | + |
|
33 | + protected function _define_page_props() |
|
34 | + { |
|
35 | + $this->_labels = array(); |
|
36 | + $this->_admin_page_title = $this->page_label; |
|
37 | + } |
|
38 | + |
|
39 | + |
|
40 | + protected function _set_page_routes() |
|
41 | + { |
|
42 | + $this->_page_routes = array( |
|
43 | + 'default' => array( |
|
44 | + 'func' => '_overview', |
|
45 | + 'capability' => 'manage_options', |
|
46 | + ), |
|
47 | + // 'overview' => '_overview', |
|
48 | + // 'func' => '_overview', |
|
49 | + // 'capability' => 'ee_read_ee' |
|
50 | + // ), |
|
51 | + 'credits' => array( |
|
52 | + 'func' => '_credits', |
|
53 | + 'capability' => 'manage_options', |
|
54 | + ), |
|
55 | + |
|
56 | + 'decafvpro' => array( |
|
57 | + 'func' => '_decafvpro', |
|
58 | + 'capability' => 'manage_options', |
|
59 | + ), |
|
60 | + 'reviews' => array( |
|
61 | + 'func' => '_reviews', |
|
62 | + 'capability' => 'manage_options', |
|
63 | + ), |
|
64 | + ); |
|
65 | + } |
|
66 | + |
|
67 | + |
|
68 | + protected function _set_page_config() |
|
69 | + { |
|
70 | + $this->_page_config = array( |
|
71 | + /*'default' => array( |
|
72 | 72 | 'nav' => array( |
73 | 73 | 'label' => esc_html__('What\'s New', 'event_espresso'), |
74 | 74 | 'order' => 10), |
75 | 75 | 'require_nonce' => FALSE |
76 | 76 | ),*/ |
77 | - // 'overview' => array( |
|
78 | - 'default' => array( |
|
79 | - 'nav' => array( |
|
80 | - 'label' => esc_html__('About', 'event_espresso'), |
|
81 | - 'order' => 20, |
|
82 | - ), |
|
83 | - 'require_nonce' => false, |
|
84 | - ), |
|
85 | - 'credits' => array( |
|
86 | - 'nav' => array( |
|
87 | - 'label' => esc_html__('Credits', 'event_espresso'), |
|
88 | - 'order' => 30, |
|
89 | - ), |
|
90 | - 'require_nonce' => false, |
|
91 | - ), |
|
92 | - |
|
93 | - 'decafvpro' => array( |
|
94 | - 'nav' => array( |
|
95 | - 'label' => esc_html__('Decaf vs Regular', 'event_espresso'), |
|
96 | - 'order' => 40, |
|
97 | - ), |
|
98 | - 'require_nonce' => false, |
|
99 | - ), |
|
100 | - 'reviews' => array( |
|
101 | - 'nav' => array( |
|
102 | - 'label' => esc_html__('Reviews', 'event_espresso'), |
|
103 | - 'order' => 50, |
|
104 | - ), |
|
105 | - 'require_nonce' => false, |
|
106 | - ), |
|
107 | - ); |
|
108 | - } |
|
109 | - |
|
110 | - |
|
111 | - // none of the below group are currently used for Support pages |
|
112 | - protected function _add_screen_options() |
|
113 | - { |
|
114 | - } |
|
115 | - |
|
116 | - protected function _add_feature_pointers() |
|
117 | - { |
|
118 | - } |
|
119 | - |
|
120 | - public function admin_init() |
|
121 | - { |
|
122 | - } |
|
123 | - |
|
124 | - public function admin_notices() |
|
125 | - { |
|
126 | - } |
|
127 | - |
|
128 | - public function admin_footer_scripts() |
|
129 | - { |
|
130 | - } |
|
131 | - |
|
132 | - public function load_scripts_styles() |
|
133 | - { |
|
134 | - } |
|
135 | - |
|
136 | - |
|
137 | - protected function _whats_new() |
|
138 | - { |
|
139 | - /*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE; |
|
77 | + // 'overview' => array( |
|
78 | + 'default' => array( |
|
79 | + 'nav' => array( |
|
80 | + 'label' => esc_html__('About', 'event_espresso'), |
|
81 | + 'order' => 20, |
|
82 | + ), |
|
83 | + 'require_nonce' => false, |
|
84 | + ), |
|
85 | + 'credits' => array( |
|
86 | + 'nav' => array( |
|
87 | + 'label' => esc_html__('Credits', 'event_espresso'), |
|
88 | + 'order' => 30, |
|
89 | + ), |
|
90 | + 'require_nonce' => false, |
|
91 | + ), |
|
92 | + |
|
93 | + 'decafvpro' => array( |
|
94 | + 'nav' => array( |
|
95 | + 'label' => esc_html__('Decaf vs Regular', 'event_espresso'), |
|
96 | + 'order' => 40, |
|
97 | + ), |
|
98 | + 'require_nonce' => false, |
|
99 | + ), |
|
100 | + 'reviews' => array( |
|
101 | + 'nav' => array( |
|
102 | + 'label' => esc_html__('Reviews', 'event_espresso'), |
|
103 | + 'order' => 50, |
|
104 | + ), |
|
105 | + 'require_nonce' => false, |
|
106 | + ), |
|
107 | + ); |
|
108 | + } |
|
109 | + |
|
110 | + |
|
111 | + // none of the below group are currently used for Support pages |
|
112 | + protected function _add_screen_options() |
|
113 | + { |
|
114 | + } |
|
115 | + |
|
116 | + protected function _add_feature_pointers() |
|
117 | + { |
|
118 | + } |
|
119 | + |
|
120 | + public function admin_init() |
|
121 | + { |
|
122 | + } |
|
123 | + |
|
124 | + public function admin_notices() |
|
125 | + { |
|
126 | + } |
|
127 | + |
|
128 | + public function admin_footer_scripts() |
|
129 | + { |
|
130 | + } |
|
131 | + |
|
132 | + public function load_scripts_styles() |
|
133 | + { |
|
134 | + } |
|
135 | + |
|
136 | + |
|
137 | + protected function _whats_new() |
|
138 | + { |
|
139 | + /*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE; |
|
140 | 140 | $steps = $steps !== FALSE ? $steps : ''; |
141 | 141 | $this->_admin_page_title = sprintf( esc_html__('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION ); |
142 | 142 | $settings_message = $steps; |
@@ -144,168 +144,168 @@ discard block |
||
144 | 144 | $template = EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php'; |
145 | 145 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
146 | 146 | $this->display_about_admin_page();*/ |
147 | - } |
|
147 | + } |
|
148 | 148 | |
149 | 149 | |
150 | - protected function _overview() |
|
151 | - { |
|
152 | - /*$this->_template_args['admin_page_title'] = esc_html__('About Event Espresso', 'event_espresso'); |
|
150 | + protected function _overview() |
|
151 | + { |
|
152 | + /*$this->_template_args['admin_page_title'] = esc_html__('About Event Espresso', 'event_espresso'); |
|
153 | 153 | $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'); |
154 | 154 | $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
155 | 155 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE ); |
156 | 156 | $this->display_about_admin_page();*/ |
157 | 157 | |
158 | - // Copied from _whats_new() |
|
159 | - $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance |
|
160 | - ? $this->_get_started_steps() : false; |
|
161 | - $steps = $steps !== false ? $steps : ''; |
|
162 | - $this->_admin_page_title = sprintf( |
|
163 | - esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
164 | - EVENT_ESPRESSO_VERSION |
|
165 | - ); |
|
166 | - $settings_message = $steps; |
|
167 | - $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
168 | - 'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.', |
|
169 | - 'event_espresso' |
|
170 | - ) . $settings_message; |
|
171 | - $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
172 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
173 | - $template, |
|
174 | - $this->_template_args, |
|
175 | - true |
|
176 | - ); |
|
177 | - $this->display_about_admin_page(); |
|
178 | - } |
|
179 | - |
|
180 | - |
|
181 | - protected function _get_started_steps() |
|
182 | - { |
|
183 | - $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>'; |
|
184 | - $step_one = '<p>' |
|
185 | - . sprintf( |
|
186 | - esc_html__( |
|
187 | - '%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.', |
|
188 | - 'event_espresso' |
|
189 | - ), |
|
190 | - '<strong>', |
|
191 | - '</strong>', |
|
192 | - '<a href="admin.php?page=espresso_general_settings">', |
|
193 | - '</a>' |
|
194 | - ) . '</strong></p>'; |
|
195 | - $step_two = '<p>' |
|
196 | - . sprintf( |
|
197 | - esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'), |
|
198 | - '<strong>', |
|
199 | - '</strong>', |
|
200 | - '<a href="admin.php?page=espresso_payment_settings">', |
|
201 | - '</a>' |
|
202 | - ) . '</strong></p>'; |
|
203 | - $step_three = '<p>' |
|
204 | - . sprintf( |
|
205 | - esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'), |
|
206 | - '<strong>', |
|
207 | - '</strong>', |
|
208 | - '<a href="admin.php?page=espresso_events&action=create_new">', |
|
209 | - '</a>' |
|
210 | - ) . '</strong></p>'; |
|
211 | - |
|
212 | - // done? |
|
213 | - $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true; |
|
214 | - $active_invoice_pm = EEM_Payment_Method::instance()->get_one_active( |
|
215 | - EEM_Payment_Method::scope_cart, |
|
216 | - array(array('PMD_type' => 'Invoice')) |
|
217 | - ); |
|
218 | - $active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart); |
|
219 | - // done step two if a non-invoice paymetn method is active; or there is more than one PM active, or |
|
220 | - // if only the invoice is active but it's clearly been updated |
|
221 | - $done_step_two = $active_pms_count > 1 || |
|
222 | - ($active_pms_count === 1 && ! $active_invoice_pm) || |
|
223 | - ($active_invoice_pm instanceof EE_Payment_Method && ( |
|
224 | - $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') || |
|
225 | - $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') || |
|
226 | - $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') || |
|
227 | - $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') || |
|
228 | - $active_invoice_pm->get_extra_meta('page_extra_info', true, '') |
|
229 | - ) |
|
230 | - ); |
|
231 | - $done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false; |
|
232 | - |
|
233 | - // if ALL steps are done, let's just return FALSE so we don't display anything |
|
234 | - if ($done_step_one && $done_step_two && $done_step_three) { |
|
235 | - return false; |
|
236 | - } |
|
237 | - |
|
238 | - // now let's put it together |
|
239 | - $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
240 | - $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
241 | - $steps .= sprintf( |
|
242 | - '%s' . $step_three . '%s', |
|
243 | - $done_step_three ? '<strike>' : '', |
|
244 | - $done_step_three ? '</strike>' : '' |
|
245 | - ); |
|
246 | - |
|
247 | - return $steps; |
|
248 | - } |
|
249 | - |
|
250 | - |
|
251 | - protected function _credits() |
|
252 | - { |
|
253 | - $this->_template_args['admin_page_title'] = sprintf( |
|
254 | - esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
255 | - EVENT_ESPRESSO_VERSION |
|
256 | - ); |
|
257 | - $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
258 | - 'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', |
|
259 | - 'event_espresso' |
|
260 | - ); |
|
261 | - $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
262 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
263 | - $template, |
|
264 | - $this->_template_args, |
|
265 | - true |
|
266 | - ); |
|
267 | - $this->display_about_admin_page(); |
|
268 | - } |
|
269 | - |
|
270 | - |
|
271 | - protected function _decafvpro() |
|
272 | - { |
|
273 | - $this->_template_args['admin_page_title'] = sprintf( |
|
274 | - esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
275 | - EVENT_ESPRESSO_VERSION |
|
276 | - ); |
|
277 | - $this->_template_args['admin_page_subtitle'] = sprintf( |
|
278 | - esc_html__( |
|
279 | - 'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s', |
|
280 | - 'event_espresso' |
|
281 | - ), |
|
282 | - '<em>', |
|
283 | - '</em>', |
|
284 | - '<strong>', |
|
285 | - '</strong>' |
|
286 | - ); |
|
287 | - $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
288 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
289 | - $template, |
|
290 | - $this->_template_args, |
|
291 | - true |
|
292 | - ); |
|
293 | - $this->display_about_admin_page(); |
|
294 | - } |
|
295 | - |
|
296 | - protected function _reviews() |
|
297 | - { |
|
298 | - $this->_template_args['admin_page_title'] = esc_html__('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
299 | - $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
300 | - 'At Event Espresso, customer satisfaction is our ultimate goal.', |
|
301 | - 'event_espresso' |
|
302 | - ); |
|
303 | - $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
304 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
305 | - $template, |
|
306 | - $this->_template_args, |
|
307 | - true |
|
308 | - ); |
|
309 | - $this->display_about_admin_page(); |
|
310 | - } |
|
158 | + // Copied from _whats_new() |
|
159 | + $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance |
|
160 | + ? $this->_get_started_steps() : false; |
|
161 | + $steps = $steps !== false ? $steps : ''; |
|
162 | + $this->_admin_page_title = sprintf( |
|
163 | + esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
164 | + EVENT_ESPRESSO_VERSION |
|
165 | + ); |
|
166 | + $settings_message = $steps; |
|
167 | + $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
168 | + 'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.', |
|
169 | + 'event_espresso' |
|
170 | + ) . $settings_message; |
|
171 | + $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
172 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
173 | + $template, |
|
174 | + $this->_template_args, |
|
175 | + true |
|
176 | + ); |
|
177 | + $this->display_about_admin_page(); |
|
178 | + } |
|
179 | + |
|
180 | + |
|
181 | + protected function _get_started_steps() |
|
182 | + { |
|
183 | + $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>'; |
|
184 | + $step_one = '<p>' |
|
185 | + . sprintf( |
|
186 | + esc_html__( |
|
187 | + '%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.', |
|
188 | + 'event_espresso' |
|
189 | + ), |
|
190 | + '<strong>', |
|
191 | + '</strong>', |
|
192 | + '<a href="admin.php?page=espresso_general_settings">', |
|
193 | + '</a>' |
|
194 | + ) . '</strong></p>'; |
|
195 | + $step_two = '<p>' |
|
196 | + . sprintf( |
|
197 | + esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'), |
|
198 | + '<strong>', |
|
199 | + '</strong>', |
|
200 | + '<a href="admin.php?page=espresso_payment_settings">', |
|
201 | + '</a>' |
|
202 | + ) . '</strong></p>'; |
|
203 | + $step_three = '<p>' |
|
204 | + . sprintf( |
|
205 | + esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'), |
|
206 | + '<strong>', |
|
207 | + '</strong>', |
|
208 | + '<a href="admin.php?page=espresso_events&action=create_new">', |
|
209 | + '</a>' |
|
210 | + ) . '</strong></p>'; |
|
211 | + |
|
212 | + // done? |
|
213 | + $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true; |
|
214 | + $active_invoice_pm = EEM_Payment_Method::instance()->get_one_active( |
|
215 | + EEM_Payment_Method::scope_cart, |
|
216 | + array(array('PMD_type' => 'Invoice')) |
|
217 | + ); |
|
218 | + $active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart); |
|
219 | + // done step two if a non-invoice paymetn method is active; or there is more than one PM active, or |
|
220 | + // if only the invoice is active but it's clearly been updated |
|
221 | + $done_step_two = $active_pms_count > 1 || |
|
222 | + ($active_pms_count === 1 && ! $active_invoice_pm) || |
|
223 | + ($active_invoice_pm instanceof EE_Payment_Method && ( |
|
224 | + $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') || |
|
225 | + $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') || |
|
226 | + $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') || |
|
227 | + $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') || |
|
228 | + $active_invoice_pm->get_extra_meta('page_extra_info', true, '') |
|
229 | + ) |
|
230 | + ); |
|
231 | + $done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false; |
|
232 | + |
|
233 | + // if ALL steps are done, let's just return FALSE so we don't display anything |
|
234 | + if ($done_step_one && $done_step_two && $done_step_three) { |
|
235 | + return false; |
|
236 | + } |
|
237 | + |
|
238 | + // now let's put it together |
|
239 | + $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : ''); |
|
240 | + $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : ''); |
|
241 | + $steps .= sprintf( |
|
242 | + '%s' . $step_three . '%s', |
|
243 | + $done_step_three ? '<strike>' : '', |
|
244 | + $done_step_three ? '</strike>' : '' |
|
245 | + ); |
|
246 | + |
|
247 | + return $steps; |
|
248 | + } |
|
249 | + |
|
250 | + |
|
251 | + protected function _credits() |
|
252 | + { |
|
253 | + $this->_template_args['admin_page_title'] = sprintf( |
|
254 | + esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
255 | + EVENT_ESPRESSO_VERSION |
|
256 | + ); |
|
257 | + $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
258 | + 'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', |
|
259 | + 'event_espresso' |
|
260 | + ); |
|
261 | + $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
262 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
263 | + $template, |
|
264 | + $this->_template_args, |
|
265 | + true |
|
266 | + ); |
|
267 | + $this->display_about_admin_page(); |
|
268 | + } |
|
269 | + |
|
270 | + |
|
271 | + protected function _decafvpro() |
|
272 | + { |
|
273 | + $this->_template_args['admin_page_title'] = sprintf( |
|
274 | + esc_html__('Welcome to Event Espresso %s', 'event_espresso'), |
|
275 | + EVENT_ESPRESSO_VERSION |
|
276 | + ); |
|
277 | + $this->_template_args['admin_page_subtitle'] = sprintf( |
|
278 | + esc_html__( |
|
279 | + 'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s', |
|
280 | + 'event_espresso' |
|
281 | + ), |
|
282 | + '<em>', |
|
283 | + '</em>', |
|
284 | + '<strong>', |
|
285 | + '</strong>' |
|
286 | + ); |
|
287 | + $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
288 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
289 | + $template, |
|
290 | + $this->_template_args, |
|
291 | + true |
|
292 | + ); |
|
293 | + $this->display_about_admin_page(); |
|
294 | + } |
|
295 | + |
|
296 | + protected function _reviews() |
|
297 | + { |
|
298 | + $this->_template_args['admin_page_title'] = esc_html__('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
299 | + $this->_template_args['admin_page_subtitle'] = esc_html__( |
|
300 | + 'At Event Espresso, customer satisfaction is our ultimate goal.', |
|
301 | + 'event_espresso' |
|
302 | + ); |
|
303 | + $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
304 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
305 | + $template, |
|
306 | + $this->_template_args, |
|
307 | + true |
|
308 | + ); |
|
309 | + $this->display_about_admin_page(); |
|
310 | + } |
|
311 | 311 | } |
@@ -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( |
@@ -13,105 +13,105 @@ |
||
13 | 13 | */ |
14 | 14 | class EE_Message_List_Table_Tips extends EE_Qtip_Config |
15 | 15 | { |
16 | - protected function _set_tips_array() |
|
17 | - { |
|
18 | - $this->_qtipsa = array( |
|
19 | - 0 => array( |
|
20 | - 'content_id' => 'message_status-' . EEM_Message::status_sent, |
|
21 | - 'target' => '.msg-status-' . EEM_Message::status_sent, |
|
22 | - 'content' => $this->_message_status_legend(EEM_Message::status_sent), |
|
23 | - 'options' => array( |
|
24 | - 'position' => array( |
|
25 | - 'target' => 'mouse', |
|
26 | - ), |
|
27 | - ), |
|
28 | - ), |
|
29 | - 1 => array( |
|
30 | - 'content_id' => 'message_status-' . EEM_Message::status_idle, |
|
31 | - 'target' => '.msg-status-' . EEM_Message::status_idle, |
|
32 | - 'content' => $this->_message_status_legend(EEM_Message::status_idle), |
|
33 | - 'options' => array( |
|
34 | - 'position' => array( |
|
35 | - 'target' => 'mouse', |
|
36 | - ), |
|
37 | - ), |
|
38 | - ), |
|
39 | - 2 => array( |
|
40 | - 'content_id' => 'message_status-' . EEM_Message::status_failed, |
|
41 | - 'target' => '.msg-status-' . EEM_Message::status_failed, |
|
42 | - 'content' => $this->_message_status_legend(EEM_Message::status_failed), |
|
43 | - 'options' => array( |
|
44 | - 'position' => array( |
|
45 | - 'target' => 'mouse', |
|
46 | - ), |
|
47 | - ), |
|
48 | - ), |
|
49 | - 3 => array( |
|
50 | - 'content_id' => 'message_status-' . EEM_Message::status_resend, |
|
51 | - 'target' => '.msg-status-' . EEM_Message::status_resend, |
|
52 | - 'content' => $this->_message_status_legend(EEM_Message::status_resend), |
|
53 | - 'options' => array( |
|
54 | - 'position' => array( |
|
55 | - 'target' => 'mouse', |
|
56 | - ), |
|
57 | - ), |
|
58 | - ), |
|
59 | - 4 => array( |
|
60 | - 'content_id' => 'message_status-' . EEM_Message::status_incomplete, |
|
61 | - 'target' => '.msg-status-' . EEM_Message::status_incomplete, |
|
62 | - 'content' => $this->_message_status_legend(EEM_Message::status_incomplete), |
|
63 | - 'options' => array( |
|
64 | - 'position' => array( |
|
65 | - 'target' => 'mouse', |
|
66 | - ), |
|
67 | - ), |
|
68 | - ), |
|
69 | - 5 => array( |
|
70 | - 'content_id' => 'message_status-' . EEM_Message::status_retry, |
|
71 | - 'target' => '.msg-status-' . EEM_Message::status_retry, |
|
72 | - 'content' => $this->_message_status_legend(EEM_Message::status_retry), |
|
73 | - 'options' => array( |
|
74 | - 'position' => array( |
|
75 | - 'target' => 'mouse', |
|
76 | - ), |
|
77 | - ), |
|
78 | - ), |
|
79 | - 6 => array( |
|
80 | - 'content_id' => 'message_status-' . EEM_Message::status_debug_only, |
|
81 | - 'target' => '.msg-status-' . EEM_Message::status_debug_only, |
|
82 | - 'content' => $this->_message_status_legend(EEM_Message::status_debug_only), |
|
83 | - 'options' => array( |
|
84 | - 'position' => array( |
|
85 | - 'target' => 'mouse', |
|
86 | - ), |
|
87 | - ), |
|
88 | - ), |
|
89 | - ); |
|
90 | - } |
|
16 | + protected function _set_tips_array() |
|
17 | + { |
|
18 | + $this->_qtipsa = array( |
|
19 | + 0 => array( |
|
20 | + 'content_id' => 'message_status-' . EEM_Message::status_sent, |
|
21 | + 'target' => '.msg-status-' . EEM_Message::status_sent, |
|
22 | + 'content' => $this->_message_status_legend(EEM_Message::status_sent), |
|
23 | + 'options' => array( |
|
24 | + 'position' => array( |
|
25 | + 'target' => 'mouse', |
|
26 | + ), |
|
27 | + ), |
|
28 | + ), |
|
29 | + 1 => array( |
|
30 | + 'content_id' => 'message_status-' . EEM_Message::status_idle, |
|
31 | + 'target' => '.msg-status-' . EEM_Message::status_idle, |
|
32 | + 'content' => $this->_message_status_legend(EEM_Message::status_idle), |
|
33 | + 'options' => array( |
|
34 | + 'position' => array( |
|
35 | + 'target' => 'mouse', |
|
36 | + ), |
|
37 | + ), |
|
38 | + ), |
|
39 | + 2 => array( |
|
40 | + 'content_id' => 'message_status-' . EEM_Message::status_failed, |
|
41 | + 'target' => '.msg-status-' . EEM_Message::status_failed, |
|
42 | + 'content' => $this->_message_status_legend(EEM_Message::status_failed), |
|
43 | + 'options' => array( |
|
44 | + 'position' => array( |
|
45 | + 'target' => 'mouse', |
|
46 | + ), |
|
47 | + ), |
|
48 | + ), |
|
49 | + 3 => array( |
|
50 | + 'content_id' => 'message_status-' . EEM_Message::status_resend, |
|
51 | + 'target' => '.msg-status-' . EEM_Message::status_resend, |
|
52 | + 'content' => $this->_message_status_legend(EEM_Message::status_resend), |
|
53 | + 'options' => array( |
|
54 | + 'position' => array( |
|
55 | + 'target' => 'mouse', |
|
56 | + ), |
|
57 | + ), |
|
58 | + ), |
|
59 | + 4 => array( |
|
60 | + 'content_id' => 'message_status-' . EEM_Message::status_incomplete, |
|
61 | + 'target' => '.msg-status-' . EEM_Message::status_incomplete, |
|
62 | + 'content' => $this->_message_status_legend(EEM_Message::status_incomplete), |
|
63 | + 'options' => array( |
|
64 | + 'position' => array( |
|
65 | + 'target' => 'mouse', |
|
66 | + ), |
|
67 | + ), |
|
68 | + ), |
|
69 | + 5 => array( |
|
70 | + 'content_id' => 'message_status-' . EEM_Message::status_retry, |
|
71 | + 'target' => '.msg-status-' . EEM_Message::status_retry, |
|
72 | + 'content' => $this->_message_status_legend(EEM_Message::status_retry), |
|
73 | + 'options' => array( |
|
74 | + 'position' => array( |
|
75 | + 'target' => 'mouse', |
|
76 | + ), |
|
77 | + ), |
|
78 | + ), |
|
79 | + 6 => array( |
|
80 | + 'content_id' => 'message_status-' . EEM_Message::status_debug_only, |
|
81 | + 'target' => '.msg-status-' . EEM_Message::status_debug_only, |
|
82 | + 'content' => $this->_message_status_legend(EEM_Message::status_debug_only), |
|
83 | + 'options' => array( |
|
84 | + 'position' => array( |
|
85 | + 'target' => 'mouse', |
|
86 | + ), |
|
87 | + ), |
|
88 | + ), |
|
89 | + ); |
|
90 | + } |
|
91 | 91 | |
92 | 92 | |
93 | - /** |
|
94 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
95 | - * |
|
96 | - * @param EEM_Message constant $status What status is set (by class) |
|
97 | - * @return string The status legend with the related status highlighted |
|
98 | - */ |
|
99 | - private function _message_status_legend($status) |
|
100 | - { |
|
93 | + /** |
|
94 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
95 | + * |
|
96 | + * @param EEM_Message constant $status What status is set (by class) |
|
97 | + * @return string The status legend with the related status highlighted |
|
98 | + */ |
|
99 | + private function _message_status_legend($status) |
|
100 | + { |
|
101 | 101 | |
102 | - $status_array = array( |
|
103 | - 'sent_status' => EEM_Message::status_sent, |
|
104 | - 'idle_status' => EEM_Message::status_idle, |
|
105 | - 'failed_status' => EEM_Message::status_failed, |
|
106 | - 'resend_status' => EEM_Message::status_resend, |
|
107 | - 'incomplete_status' => EEM_Message::status_incomplete, |
|
108 | - 'retry_status' => EEM_Message::status_retry, |
|
109 | - ); |
|
102 | + $status_array = array( |
|
103 | + 'sent_status' => EEM_Message::status_sent, |
|
104 | + 'idle_status' => EEM_Message::status_idle, |
|
105 | + 'failed_status' => EEM_Message::status_failed, |
|
106 | + 'resend_status' => EEM_Message::status_resend, |
|
107 | + 'incomplete_status' => EEM_Message::status_incomplete, |
|
108 | + 'retry_status' => EEM_Message::status_retry, |
|
109 | + ); |
|
110 | 110 | |
111 | - if (defined('WP_DEBUG') && WP_DEBUG) { |
|
112 | - $status_array['debug_only_status'] = EEM_Message::status_debug_only; |
|
113 | - } |
|
111 | + if (defined('WP_DEBUG') && WP_DEBUG) { |
|
112 | + $status_array['debug_only_status'] = EEM_Message::status_debug_only; |
|
113 | + } |
|
114 | 114 | |
115 | - return EEH_Template::status_legend($status_array, $status); |
|
116 | - } |
|
115 | + return EEH_Template::status_legend($status_array, $status); |
|
116 | + } |
|
117 | 117 | } |
@@ -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> |
@@ -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( |
@@ -13,80 +13,80 @@ |
||
13 | 13 | */ |
14 | 14 | class Transaction_Details_Tips extends EE_Qtip_Config |
15 | 15 | { |
16 | - protected function _set_tips_array() |
|
17 | - { |
|
18 | - $this->_qtipsa = array( |
|
19 | - 0 => array( |
|
20 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
21 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
22 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
|
23 | - 'options' => array( |
|
24 | - 'position' => array( |
|
25 | - 'target' => 'mouse', |
|
26 | - ), |
|
27 | - ), |
|
28 | - ), |
|
29 | - 1 => array( |
|
30 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
31 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
32 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
|
33 | - 'options' => array( |
|
34 | - 'position' => array( |
|
35 | - 'target' => 'mouse', |
|
36 | - ), |
|
37 | - ), |
|
38 | - ), |
|
39 | - 2 => array( |
|
40 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
41 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
42 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
|
43 | - 'options' => array( |
|
44 | - 'position' => array( |
|
45 | - 'target' => 'mouse', |
|
46 | - ), |
|
47 | - ), |
|
48 | - ), |
|
49 | - 3 => array( |
|
50 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
51 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
52 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
|
53 | - 'options' => array( |
|
54 | - 'position' => array( |
|
55 | - 'target' => 'mouse', |
|
56 | - ), |
|
57 | - ), |
|
58 | - ), |
|
59 | - 4 => array( |
|
60 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
61 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
62 | - 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
|
63 | - 'options' => array( |
|
64 | - 'position' => array( |
|
65 | - 'target' => 'mouse', |
|
66 | - ), |
|
67 | - ), |
|
68 | - ), |
|
69 | - ); |
|
70 | - } |
|
16 | + protected function _set_tips_array() |
|
17 | + { |
|
18 | + $this->_qtipsa = array( |
|
19 | + 0 => array( |
|
20 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
21 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
22 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
|
23 | + 'options' => array( |
|
24 | + 'position' => array( |
|
25 | + 'target' => 'mouse', |
|
26 | + ), |
|
27 | + ), |
|
28 | + ), |
|
29 | + 1 => array( |
|
30 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
31 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
32 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
|
33 | + 'options' => array( |
|
34 | + 'position' => array( |
|
35 | + 'target' => 'mouse', |
|
36 | + ), |
|
37 | + ), |
|
38 | + ), |
|
39 | + 2 => array( |
|
40 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
41 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
42 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
|
43 | + 'options' => array( |
|
44 | + 'position' => array( |
|
45 | + 'target' => 'mouse', |
|
46 | + ), |
|
47 | + ), |
|
48 | + ), |
|
49 | + 3 => array( |
|
50 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
51 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
52 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
|
53 | + 'options' => array( |
|
54 | + 'position' => array( |
|
55 | + 'target' => 'mouse', |
|
56 | + ), |
|
57 | + ), |
|
58 | + ), |
|
59 | + 4 => array( |
|
60 | + 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
61 | + 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
62 | + 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
|
63 | + 'options' => array( |
|
64 | + 'position' => array( |
|
65 | + 'target' => 'mouse', |
|
66 | + ), |
|
67 | + ), |
|
68 | + ), |
|
69 | + ); |
|
70 | + } |
|
71 | 71 | |
72 | 72 | |
73 | - /** |
|
74 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
75 | - * |
|
76 | - * @param EEM_Payment constant $status What status is set (by class) |
|
77 | - * @return string The status legend with the related status highlighted |
|
78 | - */ |
|
79 | - private function _payment_status_legend($status) |
|
80 | - { |
|
73 | + /** |
|
74 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
75 | + * |
|
76 | + * @param EEM_Payment constant $status What status is set (by class) |
|
77 | + * @return string The status legend with the related status highlighted |
|
78 | + */ |
|
79 | + private function _payment_status_legend($status) |
|
80 | + { |
|
81 | 81 | |
82 | - $status_array = array( |
|
83 | - 'approved' => EEM_Payment::status_id_approved, |
|
84 | - 'pending' => EEM_Payment::status_id_pending, |
|
85 | - 'cancelled' => EEM_Payment::status_id_cancelled, |
|
86 | - 'declined' => EEM_Payment::status_id_declined, |
|
87 | - 'failed' => EEM_Payment::status_id_failed, |
|
88 | - ); |
|
82 | + $status_array = array( |
|
83 | + 'approved' => EEM_Payment::status_id_approved, |
|
84 | + 'pending' => EEM_Payment::status_id_pending, |
|
85 | + 'cancelled' => EEM_Payment::status_id_cancelled, |
|
86 | + 'declined' => EEM_Payment::status_id_declined, |
|
87 | + 'failed' => EEM_Payment::status_id_failed, |
|
88 | + ); |
|
89 | 89 | |
90 | - return EEH_Template::status_legend($status_array, $status); |
|
91 | - } |
|
90 | + return EEH_Template::status_legend($status_array, $status); |
|
91 | + } |
|
92 | 92 | } |
@@ -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 | } |
@@ -14,37 +14,37 @@ |
||
14 | 14 | */ |
15 | 15 | class Other_Services_Admin_Page_Init extends EE_Admin_Page_Init |
16 | 16 | { |
17 | - public function __construct() |
|
18 | - { |
|
19 | - // define some help/support page related constants |
|
20 | - define('EE_OTHER_SERVICES_PG_SLUG', 'espresso_packages'); |
|
21 | - define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page=' . EE_OTHER_SERVICES_PG_SLUG)); |
|
22 | - define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'other_services/templates/'); |
|
23 | - define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES . 'other_services/'); |
|
24 | - define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'other_services/assets/'); |
|
17 | + public function __construct() |
|
18 | + { |
|
19 | + // define some help/support page related constants |
|
20 | + define('EE_OTHER_SERVICES_PG_SLUG', 'espresso_packages'); |
|
21 | + define('EE_OTHER_SERVICES_ADMIN_URL', admin_url('admin.php?page=' . EE_OTHER_SERVICES_PG_SLUG)); |
|
22 | + define('EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'other_services/templates/'); |
|
23 | + define('EE_OTHER_SERVICES_ADMIN', EE_ADMIN_PAGES . 'other_services/'); |
|
24 | + define('EE_OTHER_SERVICES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'other_services/assets/'); |
|
25 | 25 | |
26 | - parent::__construct(); |
|
27 | - } |
|
26 | + parent::__construct(); |
|
27 | + } |
|
28 | 28 | |
29 | - protected function _set_init_properties() |
|
30 | - { |
|
31 | - $this->label = esc_html__('Extensions & Services', 'event_espresso'); |
|
32 | - } |
|
29 | + protected function _set_init_properties() |
|
30 | + { |
|
31 | + $this->label = esc_html__('Extensions & Services', 'event_espresso'); |
|
32 | + } |
|
33 | 33 | |
34 | - protected function _set_menu_map() |
|
35 | - { |
|
36 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
37 | - array( |
|
38 | - 'menu_group' => 'extras', |
|
39 | - 'menu_order' => 30, |
|
40 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
41 | - 'parent_slug' => 'espresso_events', |
|
42 | - 'menu_slug' => EE_OTHER_SERVICES_PG_SLUG, |
|
43 | - 'menu_label' => esc_html__('Extensions & Services', 'event_espresso'), |
|
44 | - 'capability' => 'ee_read_ee', |
|
45 | - 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
46 | - 'admin_init_page' => $this, |
|
47 | - ) |
|
48 | - ); |
|
49 | - } |
|
34 | + protected function _set_menu_map() |
|
35 | + { |
|
36 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
37 | + array( |
|
38 | + 'menu_group' => 'extras', |
|
39 | + 'menu_order' => 30, |
|
40 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN, |
|
41 | + 'parent_slug' => 'espresso_events', |
|
42 | + 'menu_slug' => EE_OTHER_SERVICES_PG_SLUG, |
|
43 | + 'menu_label' => esc_html__('Extensions & Services', 'event_espresso'), |
|
44 | + 'capability' => 'ee_read_ee', |
|
45 | + 'maintenance_mode_parent' => 'espresso_maintenance_settings', |
|
46 | + 'admin_init_page' => $this, |
|
47 | + ) |
|
48 | + ); |
|
49 | + } |
|
50 | 50 | } |
@@ -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 | ); |
@@ -15,94 +15,94 @@ |
||
15 | 15 | */ |
16 | 16 | class Other_Services_Admin_Page extends EE_Admin_Page |
17 | 17 | { |
18 | - protected function _init_page_props() |
|
19 | - { |
|
20 | - $this->page_slug = EE_OTHER_SERVICES_PG_SLUG; |
|
21 | - $this->page_label = esc_html__('Extensions & Services', 'event_espresso'); |
|
22 | - $this->_admin_base_url = EE_OTHER_SERVICES_ADMIN_URL; |
|
23 | - $this->_admin_base_path = EE_OTHER_SERVICES_ADMIN; |
|
24 | - } |
|
25 | - |
|
26 | - |
|
27 | - protected function _ajax_hooks() |
|
28 | - { |
|
29 | - // todo: all hooks for ajax goes here. |
|
30 | - } |
|
31 | - |
|
32 | - |
|
33 | - protected function _define_page_props() |
|
34 | - { |
|
35 | - $this->_labels = array(); |
|
36 | - $this->_admin_page_title = $this->page_label; |
|
37 | - } |
|
38 | - |
|
39 | - |
|
40 | - protected function _set_page_routes() |
|
41 | - { |
|
42 | - $this->_page_routes = array( |
|
43 | - 'default' => array( |
|
44 | - 'func' => '_other_services', |
|
45 | - 'capability' => 'ee_read_ee', |
|
46 | - ), |
|
47 | - ); |
|
48 | - } |
|
49 | - |
|
50 | - |
|
51 | - protected function _set_page_config() |
|
52 | - { |
|
53 | - $this->_page_config = array( |
|
54 | - 'default' => array( |
|
55 | - 'nav' => array( |
|
56 | - 'label' => esc_html__('Other Available Services', 'event_espresso'), |
|
57 | - 'order' => 10, |
|
58 | - ), |
|
59 | - 'require_nonce' => false, |
|
60 | - ), |
|
61 | - ); |
|
62 | - } |
|
63 | - |
|
64 | - |
|
65 | - // none of the below group are currently used for Support pages |
|
66 | - protected function _add_screen_options() |
|
67 | - { |
|
68 | - } |
|
69 | - |
|
70 | - protected function _add_feature_pointers() |
|
71 | - { |
|
72 | - } |
|
73 | - |
|
74 | - public function admin_init() |
|
75 | - { |
|
76 | - } |
|
77 | - |
|
78 | - public function admin_notices() |
|
79 | - { |
|
80 | - } |
|
81 | - |
|
82 | - public function admin_footer_scripts() |
|
83 | - { |
|
84 | - } |
|
85 | - |
|
86 | - |
|
87 | - public function load_scripts_styles() |
|
88 | - { |
|
89 | - wp_register_style( |
|
90 | - 'ee-other-services-css', |
|
91 | - EE_OTHER_SERVICES_ASSETS_URL . 'other-services.css', |
|
92 | - array('ee-admin-css'), |
|
93 | - EVENT_ESPRESSO_VERSION |
|
94 | - ); |
|
95 | - wp_enqueue_style('ee-other-services-css'); |
|
96 | - } |
|
97 | - |
|
98 | - |
|
99 | - protected function _other_services() |
|
100 | - { |
|
101 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
102 | - EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH . 'other_services_content.template.php', |
|
103 | - array(), |
|
104 | - true |
|
105 | - ); |
|
106 | - $this->display_admin_page_with_no_sidebar(); |
|
107 | - } |
|
18 | + protected function _init_page_props() |
|
19 | + { |
|
20 | + $this->page_slug = EE_OTHER_SERVICES_PG_SLUG; |
|
21 | + $this->page_label = esc_html__('Extensions & Services', 'event_espresso'); |
|
22 | + $this->_admin_base_url = EE_OTHER_SERVICES_ADMIN_URL; |
|
23 | + $this->_admin_base_path = EE_OTHER_SERVICES_ADMIN; |
|
24 | + } |
|
25 | + |
|
26 | + |
|
27 | + protected function _ajax_hooks() |
|
28 | + { |
|
29 | + // todo: all hooks for ajax goes here. |
|
30 | + } |
|
31 | + |
|
32 | + |
|
33 | + protected function _define_page_props() |
|
34 | + { |
|
35 | + $this->_labels = array(); |
|
36 | + $this->_admin_page_title = $this->page_label; |
|
37 | + } |
|
38 | + |
|
39 | + |
|
40 | + protected function _set_page_routes() |
|
41 | + { |
|
42 | + $this->_page_routes = array( |
|
43 | + 'default' => array( |
|
44 | + 'func' => '_other_services', |
|
45 | + 'capability' => 'ee_read_ee', |
|
46 | + ), |
|
47 | + ); |
|
48 | + } |
|
49 | + |
|
50 | + |
|
51 | + protected function _set_page_config() |
|
52 | + { |
|
53 | + $this->_page_config = array( |
|
54 | + 'default' => array( |
|
55 | + 'nav' => array( |
|
56 | + 'label' => esc_html__('Other Available Services', 'event_espresso'), |
|
57 | + 'order' => 10, |
|
58 | + ), |
|
59 | + 'require_nonce' => false, |
|
60 | + ), |
|
61 | + ); |
|
62 | + } |
|
63 | + |
|
64 | + |
|
65 | + // none of the below group are currently used for Support pages |
|
66 | + protected function _add_screen_options() |
|
67 | + { |
|
68 | + } |
|
69 | + |
|
70 | + protected function _add_feature_pointers() |
|
71 | + { |
|
72 | + } |
|
73 | + |
|
74 | + public function admin_init() |
|
75 | + { |
|
76 | + } |
|
77 | + |
|
78 | + public function admin_notices() |
|
79 | + { |
|
80 | + } |
|
81 | + |
|
82 | + public function admin_footer_scripts() |
|
83 | + { |
|
84 | + } |
|
85 | + |
|
86 | + |
|
87 | + public function load_scripts_styles() |
|
88 | + { |
|
89 | + wp_register_style( |
|
90 | + 'ee-other-services-css', |
|
91 | + EE_OTHER_SERVICES_ASSETS_URL . 'other-services.css', |
|
92 | + array('ee-admin-css'), |
|
93 | + EVENT_ESPRESSO_VERSION |
|
94 | + ); |
|
95 | + wp_enqueue_style('ee-other-services-css'); |
|
96 | + } |
|
97 | + |
|
98 | + |
|
99 | + protected function _other_services() |
|
100 | + { |
|
101 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
102 | + EE_OTHER_SERVICES_ADMIN_TEMPLATE_PATH . 'other_services_content.template.php', |
|
103 | + array(), |
|
104 | + true |
|
105 | + ); |
|
106 | + $this->display_admin_page_with_no_sidebar(); |
|
107 | + } |
|
108 | 108 | } |