@@ -12,71 +12,71 @@ |
||
12 | 12 | class Extend_Support_Admin_Page extends Support_Admin_Page |
13 | 13 | { |
14 | 14 | |
15 | - public function __construct($routing = true) |
|
16 | - { |
|
17 | - parent::__construct($routing); |
|
18 | - define('EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'support/templates/'); |
|
19 | - } |
|
15 | + public function __construct($routing = true) |
|
16 | + { |
|
17 | + parent::__construct($routing); |
|
18 | + define('EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'support/templates/'); |
|
19 | + } |
|
20 | 20 | |
21 | 21 | |
22 | - protected function _extend_page_config() |
|
23 | - { |
|
24 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'support'; |
|
25 | - // new routes and new configs (or overrides ) |
|
26 | - $new_page_routes = array( |
|
27 | - 'faq' => array( |
|
28 | - 'func' => '_faq', |
|
29 | - 'capability' => 'ee_read_ee', |
|
30 | - ), |
|
31 | - ); |
|
32 | - $this->_page_routes = array_merge($this->_page_routes, $new_page_routes); |
|
33 | - $new_page_config = array( |
|
34 | - 'faq' => array( |
|
35 | - 'nav' => array( |
|
36 | - 'label' => esc_html__('FAQ', 'event_espresso'), |
|
37 | - 'order' => 40, |
|
38 | - ), |
|
39 | - 'metaboxes' => array('_espresso_news_post_box', '_espresso_links_post_box'), |
|
40 | - 'require_nonce' => false, |
|
41 | - ), |
|
42 | - ); |
|
43 | - $this->_page_config = array_merge($this->_page_config, $new_page_config); |
|
44 | - $this->_page_config['default']['metaboxes'][] = '_installation_boxes'; |
|
45 | - } |
|
22 | + protected function _extend_page_config() |
|
23 | + { |
|
24 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'support'; |
|
25 | + // new routes and new configs (or overrides ) |
|
26 | + $new_page_routes = array( |
|
27 | + 'faq' => array( |
|
28 | + 'func' => '_faq', |
|
29 | + 'capability' => 'ee_read_ee', |
|
30 | + ), |
|
31 | + ); |
|
32 | + $this->_page_routes = array_merge($this->_page_routes, $new_page_routes); |
|
33 | + $new_page_config = array( |
|
34 | + 'faq' => array( |
|
35 | + 'nav' => array( |
|
36 | + 'label' => esc_html__('FAQ', 'event_espresso'), |
|
37 | + 'order' => 40, |
|
38 | + ), |
|
39 | + 'metaboxes' => array('_espresso_news_post_box', '_espresso_links_post_box'), |
|
40 | + 'require_nonce' => false, |
|
41 | + ), |
|
42 | + ); |
|
43 | + $this->_page_config = array_merge($this->_page_config, $new_page_config); |
|
44 | + $this->_page_config['default']['metaboxes'][] = '_installation_boxes'; |
|
45 | + } |
|
46 | 46 | |
47 | 47 | |
48 | - protected function _faq() |
|
49 | - { |
|
50 | - $template_path = EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH . 'support_admin_details_faq.template.php'; |
|
51 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
52 | - $template_path, |
|
53 | - '', |
|
54 | - true |
|
55 | - ); |
|
56 | - $this->display_admin_page_with_sidebar(); |
|
57 | - } |
|
48 | + protected function _faq() |
|
49 | + { |
|
50 | + $template_path = EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH . 'support_admin_details_faq.template.php'; |
|
51 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
52 | + $template_path, |
|
53 | + '', |
|
54 | + true |
|
55 | + ); |
|
56 | + $this->display_admin_page_with_sidebar(); |
|
57 | + } |
|
58 | 58 | |
59 | 59 | |
60 | - protected function _installation_boxes() |
|
61 | - { |
|
62 | - $callback_args = array( |
|
63 | - 'template_path' => EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH |
|
64 | - . 'support_admin_details_additional_information.template.php', |
|
65 | - ); |
|
66 | - add_meta_box( |
|
67 | - 'espresso_additional_information_support', |
|
68 | - esc_html__('Additional Information', 'event_espresso'), |
|
69 | - function ($post, $metabox) { |
|
70 | - echo EEH_Template::display_template( |
|
71 | - $metabox['args']['template_path'], |
|
72 | - '', |
|
73 | - true |
|
74 | - ); |
|
75 | - }, |
|
76 | - $this->_current_screen->id, |
|
77 | - 'normal', |
|
78 | - 'high', |
|
79 | - $callback_args |
|
80 | - ); |
|
81 | - } |
|
60 | + protected function _installation_boxes() |
|
61 | + { |
|
62 | + $callback_args = array( |
|
63 | + 'template_path' => EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH |
|
64 | + . 'support_admin_details_additional_information.template.php', |
|
65 | + ); |
|
66 | + add_meta_box( |
|
67 | + 'espresso_additional_information_support', |
|
68 | + esc_html__('Additional Information', 'event_espresso'), |
|
69 | + function ($post, $metabox) { |
|
70 | + echo EEH_Template::display_template( |
|
71 | + $metabox['args']['template_path'], |
|
72 | + '', |
|
73 | + true |
|
74 | + ); |
|
75 | + }, |
|
76 | + $this->_current_screen->id, |
|
77 | + 'normal', |
|
78 | + 'high', |
|
79 | + $callback_args |
|
80 | + ); |
|
81 | + } |
|
82 | 82 | } |
@@ -15,13 +15,13 @@ discard block |
||
15 | 15 | public function __construct($routing = true) |
16 | 16 | { |
17 | 17 | parent::__construct($routing); |
18 | - define('EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'support/templates/'); |
|
18 | + define('EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND.'support/templates/'); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | |
22 | 22 | protected function _extend_page_config() |
23 | 23 | { |
24 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'support'; |
|
24 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND.'support'; |
|
25 | 25 | // new routes and new configs (or overrides ) |
26 | 26 | $new_page_routes = array( |
27 | 27 | 'faq' => array( |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | protected function _faq() |
49 | 49 | { |
50 | - $template_path = EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH . 'support_admin_details_faq.template.php'; |
|
50 | + $template_path = EE_SUPPORT_CAF_ADMIN_TEMPLATE_PATH.'support_admin_details_faq.template.php'; |
|
51 | 51 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
52 | 52 | $template_path, |
53 | 53 | '', |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | add_meta_box( |
67 | 67 | 'espresso_additional_information_support', |
68 | 68 | esc_html__('Additional Information', 'event_espresso'), |
69 | - function ($post, $metabox) { |
|
69 | + function($post, $metabox) { |
|
70 | 70 | echo EEH_Template::display_template( |
71 | 71 | $metabox['args']['template_path'], |
72 | 72 | '', |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <div class="padding"> |
2 | 2 | <p><?php |
3 | - printf( |
|
4 | - esc_html__('Check out the %1$sroadmap for Event Espresso%2$s.', 'event_espresso'), |
|
5 | - '<a href="https://trello.com/b/zg9DCIpe/event-espresso-public-roadmap" target="_blank">', |
|
6 | - '</a>' |
|
7 | - ); ?></p> |
|
3 | + printf( |
|
4 | + esc_html__('Check out the %1$sroadmap for Event Espresso%2$s.', 'event_espresso'), |
|
5 | + '<a href="https://trello.com/b/zg9DCIpe/event-espresso-public-roadmap" target="_blank">', |
|
6 | + '</a>' |
|
7 | + ); ?></p> |
|
8 | 8 | </div> |
9 | 9 | \ No newline at end of file |
@@ -4,14 +4,14 @@ |
||
4 | 4 | <h4><?php esc_html_e('New to Event Espresso?', 'event_espresso'); ?></h4> |
5 | 5 | |
6 | 6 | <p><?php |
7 | - printf( |
|
8 | - esc_html__( |
|
9 | - 'Check out the %1$squick start guide for Event Espresso 4%2$s. It has recommendations, tips, and tutorials so you can get your project started %3$squicker%4$s.', |
|
10 | - 'event_espresso' |
|
11 | - ), |
|
12 | - '<a href="https://eventespresso.com/wiki/welcome-to-event-espresso/#event-espresso-4" target="_blank">', |
|
13 | - '</a>', |
|
14 | - '<em>', |
|
15 | - '</em>' |
|
16 | - ); ?></p> |
|
7 | + printf( |
|
8 | + esc_html__( |
|
9 | + 'Check out the %1$squick start guide for Event Espresso 4%2$s. It has recommendations, tips, and tutorials so you can get your project started %3$squicker%4$s.', |
|
10 | + 'event_espresso' |
|
11 | + ), |
|
12 | + '<a href="https://eventespresso.com/wiki/welcome-to-event-espresso/#event-espresso-4" target="_blank">', |
|
13 | + '</a>', |
|
14 | + '<em>', |
|
15 | + '</em>' |
|
16 | + ); ?></p> |
|
17 | 17 | </div> |
18 | 18 | \ No newline at end of file |
@@ -18,189 +18,189 @@ |
||
18 | 18 | { |
19 | 19 | |
20 | 20 | |
21 | - public function __construct($routing = true) |
|
22 | - { |
|
23 | - parent::__construct($routing); |
|
24 | - define('EE_ABOUT_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'about/templates/'); |
|
25 | - } |
|
26 | - |
|
27 | - |
|
28 | - protected function _extend_page_config() |
|
29 | - { |
|
30 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'about'; |
|
31 | - } |
|
32 | - |
|
33 | - protected function _set_page_routes() |
|
34 | - { |
|
35 | - $this->_page_routes = array( |
|
36 | - 'default' => array( |
|
37 | - 'func' => '_whats_new', |
|
38 | - 'capability' => 'manage_options', |
|
39 | - ), |
|
40 | - 'overview' => array( |
|
41 | - 'func' => '_overview', |
|
42 | - 'capability' => 'manage_options', |
|
43 | - ), |
|
44 | - 'credits' => array( |
|
45 | - 'func' => '_credits', |
|
46 | - 'capability' => 'manage_options', |
|
47 | - ), |
|
48 | - /*'decafvpro' => array( |
|
21 | + public function __construct($routing = true) |
|
22 | + { |
|
23 | + parent::__construct($routing); |
|
24 | + define('EE_ABOUT_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'about/templates/'); |
|
25 | + } |
|
26 | + |
|
27 | + |
|
28 | + protected function _extend_page_config() |
|
29 | + { |
|
30 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'about'; |
|
31 | + } |
|
32 | + |
|
33 | + protected function _set_page_routes() |
|
34 | + { |
|
35 | + $this->_page_routes = array( |
|
36 | + 'default' => array( |
|
37 | + 'func' => '_whats_new', |
|
38 | + 'capability' => 'manage_options', |
|
39 | + ), |
|
40 | + 'overview' => array( |
|
41 | + 'func' => '_overview', |
|
42 | + 'capability' => 'manage_options', |
|
43 | + ), |
|
44 | + 'credits' => array( |
|
45 | + 'func' => '_credits', |
|
46 | + 'capability' => 'manage_options', |
|
47 | + ), |
|
48 | + /*'decafvpro' => array( |
|
49 | 49 | 'func' => '_decafvpro', |
50 | 50 | 'capability' => 'manage_options' |
51 | 51 | ),*/ |
52 | - 'reviews' => array( |
|
53 | - 'func' => '_reviews', |
|
54 | - 'capability' => 'manage_options', |
|
55 | - ), |
|
56 | - |
|
57 | - |
|
58 | - ); |
|
59 | - } |
|
60 | - |
|
61 | - |
|
62 | - protected function _set_page_config() |
|
63 | - { |
|
64 | - $this->_page_config = array( |
|
65 | - 'default' => array( |
|
66 | - 'nav' => array( |
|
67 | - 'label' => __('What\'s New', 'event_espresso'), |
|
68 | - 'order' => 10, |
|
69 | - ), |
|
70 | - 'require_nonce' => false, |
|
71 | - ), |
|
72 | - 'overview' => array( |
|
73 | - 'nav' => array( |
|
74 | - 'label' => __('About', 'event_espresso'), |
|
75 | - 'order' => 20, |
|
76 | - ), |
|
77 | - 'require_nonce' => false, |
|
78 | - ), |
|
79 | - 'credits' => array( |
|
80 | - 'nav' => array( |
|
81 | - 'label' => __('Credits', 'event_espresso'), |
|
82 | - 'order' => 30, |
|
83 | - ), |
|
84 | - 'require_nonce' => false, |
|
85 | - ), |
|
86 | - /*'decafvpro' => array( |
|
52 | + 'reviews' => array( |
|
53 | + 'func' => '_reviews', |
|
54 | + 'capability' => 'manage_options', |
|
55 | + ), |
|
56 | + |
|
57 | + |
|
58 | + ); |
|
59 | + } |
|
60 | + |
|
61 | + |
|
62 | + protected function _set_page_config() |
|
63 | + { |
|
64 | + $this->_page_config = array( |
|
65 | + 'default' => array( |
|
66 | + 'nav' => array( |
|
67 | + 'label' => __('What\'s New', 'event_espresso'), |
|
68 | + 'order' => 10, |
|
69 | + ), |
|
70 | + 'require_nonce' => false, |
|
71 | + ), |
|
72 | + 'overview' => array( |
|
73 | + 'nav' => array( |
|
74 | + 'label' => __('About', 'event_espresso'), |
|
75 | + 'order' => 20, |
|
76 | + ), |
|
77 | + 'require_nonce' => false, |
|
78 | + ), |
|
79 | + 'credits' => array( |
|
80 | + 'nav' => array( |
|
81 | + 'label' => __('Credits', 'event_espresso'), |
|
82 | + 'order' => 30, |
|
83 | + ), |
|
84 | + 'require_nonce' => false, |
|
85 | + ), |
|
86 | + /*'decafvpro' => array( |
|
87 | 87 | 'nav' => array( |
88 | 88 | 'label' => esc_html__('Decaf vs Regular', 'event_espresso'), |
89 | 89 | 'order' => 40), |
90 | 90 | 'require_nonce' => FALSE |
91 | 91 | ),*/ |
92 | - 'reviews' => array( |
|
93 | - 'nav' => array( |
|
94 | - 'label' => esc_html__('Reviews', 'event_espresso'), |
|
95 | - 'order' => 50, |
|
96 | - ), |
|
97 | - 'require_nonce' => false, |
|
98 | - ), |
|
99 | - |
|
100 | - ); |
|
101 | - } |
|
102 | - |
|
103 | - |
|
104 | - protected function _whats_new() |
|
105 | - { |
|
106 | - $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance |
|
107 | - ? $this->_get_started_steps() : false; |
|
108 | - $steps = $steps !== false ? $steps : ''; |
|
109 | - $this->_admin_page_title = sprintf( |
|
110 | - __('Welcome to Event Espresso %s', 'event_espresso'), |
|
111 | - EVENT_ESPRESSO_VERSION |
|
112 | - ); |
|
113 | - $settings_message = $steps; |
|
114 | - $this->_template_args['admin_page_subtitle'] = __( |
|
115 | - 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
|
116 | - 'event_espresso' |
|
117 | - ) . $settings_message; |
|
118 | - $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php') |
|
119 | - ? EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php' : EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php'; |
|
120 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
121 | - $template, |
|
122 | - $this->_template_args, |
|
123 | - true |
|
124 | - ); |
|
125 | - $this->display_about_admin_page(); |
|
126 | - } |
|
127 | - |
|
128 | - |
|
129 | - protected function _overview() |
|
130 | - { |
|
131 | - $this->_admin_page_title = __('About Event Espresso', 'event_espresso'); |
|
132 | - $this->_template_args['admin_page_subtitle'] = __( |
|
133 | - 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
|
134 | - 'event_espresso' |
|
135 | - ); |
|
136 | - $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php') |
|
137 | - ? EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php' |
|
138 | - : EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
139 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
140 | - $template, |
|
141 | - $this->_template_args, |
|
142 | - true |
|
143 | - ); |
|
144 | - $this->display_about_admin_page(); |
|
145 | - } |
|
146 | - |
|
147 | - protected function _credits() |
|
148 | - { |
|
149 | - // $this->_template_args['admin_page_title'] = sprintf( |
|
150 | - // __('Welcome to Event Espresso %s', 'event_espresso'), |
|
151 | - // EVENT_ESPRESSO_VERSION |
|
152 | - // ); |
|
153 | - $this->_template_args['admin_page_subtitle'] = __( |
|
154 | - 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
|
155 | - 'event_espresso' |
|
156 | - ); |
|
157 | - $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
158 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
159 | - $template, |
|
160 | - $this->_template_args, |
|
161 | - true |
|
162 | - ); |
|
163 | - $this->display_about_admin_page(); |
|
164 | - } |
|
165 | - |
|
166 | - protected function _decafvpro() |
|
167 | - { |
|
168 | - $this->_template_args['admin_page_title'] = sprintf( |
|
169 | - __('Welcome to Event Espresso %s', 'event_espresso'), |
|
170 | - EVENT_ESPRESSO_VERSION |
|
171 | - ); |
|
172 | - $this->_template_args['admin_page_subtitle'] = sprintf( |
|
173 | - __( |
|
174 | - 'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s', |
|
175 | - 'event_espresso' |
|
176 | - ), |
|
177 | - '<em>', |
|
178 | - '</em>', |
|
179 | - '<strong>', |
|
180 | - '</strong>' |
|
181 | - ); |
|
182 | - $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
183 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
184 | - $template, |
|
185 | - $this->_template_args, |
|
186 | - true |
|
187 | - ); |
|
188 | - $this->display_about_admin_page(); |
|
189 | - } |
|
190 | - |
|
191 | - protected function _reviews() |
|
192 | - { |
|
193 | - $this->_template_args['admin_page_title'] = __('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
194 | - $this->_template_args['admin_page_subtitle'] = __( |
|
195 | - 'At Event Espresso, customer satisfaction is our ultimate goal.', |
|
196 | - 'event_espresso' |
|
197 | - ); |
|
198 | - $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
199 | - $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
200 | - $template, |
|
201 | - $this->_template_args, |
|
202 | - true |
|
203 | - ); |
|
204 | - $this->display_about_admin_page(); |
|
205 | - } |
|
92 | + 'reviews' => array( |
|
93 | + 'nav' => array( |
|
94 | + 'label' => esc_html__('Reviews', 'event_espresso'), |
|
95 | + 'order' => 50, |
|
96 | + ), |
|
97 | + 'require_nonce' => false, |
|
98 | + ), |
|
99 | + |
|
100 | + ); |
|
101 | + } |
|
102 | + |
|
103 | + |
|
104 | + protected function _whats_new() |
|
105 | + { |
|
106 | + $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance |
|
107 | + ? $this->_get_started_steps() : false; |
|
108 | + $steps = $steps !== false ? $steps : ''; |
|
109 | + $this->_admin_page_title = sprintf( |
|
110 | + __('Welcome to Event Espresso %s', 'event_espresso'), |
|
111 | + EVENT_ESPRESSO_VERSION |
|
112 | + ); |
|
113 | + $settings_message = $steps; |
|
114 | + $this->_template_args['admin_page_subtitle'] = __( |
|
115 | + 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
|
116 | + 'event_espresso' |
|
117 | + ) . $settings_message; |
|
118 | + $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php') |
|
119 | + ? EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php' : EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php'; |
|
120 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
121 | + $template, |
|
122 | + $this->_template_args, |
|
123 | + true |
|
124 | + ); |
|
125 | + $this->display_about_admin_page(); |
|
126 | + } |
|
127 | + |
|
128 | + |
|
129 | + protected function _overview() |
|
130 | + { |
|
131 | + $this->_admin_page_title = __('About Event Espresso', 'event_espresso'); |
|
132 | + $this->_template_args['admin_page_subtitle'] = __( |
|
133 | + 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
|
134 | + 'event_espresso' |
|
135 | + ); |
|
136 | + $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php') |
|
137 | + ? EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php' |
|
138 | + : EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
139 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
140 | + $template, |
|
141 | + $this->_template_args, |
|
142 | + true |
|
143 | + ); |
|
144 | + $this->display_about_admin_page(); |
|
145 | + } |
|
146 | + |
|
147 | + protected function _credits() |
|
148 | + { |
|
149 | + // $this->_template_args['admin_page_title'] = sprintf( |
|
150 | + // __('Welcome to Event Espresso %s', 'event_espresso'), |
|
151 | + // EVENT_ESPRESSO_VERSION |
|
152 | + // ); |
|
153 | + $this->_template_args['admin_page_subtitle'] = __( |
|
154 | + 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
|
155 | + 'event_espresso' |
|
156 | + ); |
|
157 | + $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
158 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
159 | + $template, |
|
160 | + $this->_template_args, |
|
161 | + true |
|
162 | + ); |
|
163 | + $this->display_about_admin_page(); |
|
164 | + } |
|
165 | + |
|
166 | + protected function _decafvpro() |
|
167 | + { |
|
168 | + $this->_template_args['admin_page_title'] = sprintf( |
|
169 | + __('Welcome to Event Espresso %s', 'event_espresso'), |
|
170 | + EVENT_ESPRESSO_VERSION |
|
171 | + ); |
|
172 | + $this->_template_args['admin_page_subtitle'] = sprintf( |
|
173 | + __( |
|
174 | + 'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s', |
|
175 | + 'event_espresso' |
|
176 | + ), |
|
177 | + '<em>', |
|
178 | + '</em>', |
|
179 | + '<strong>', |
|
180 | + '</strong>' |
|
181 | + ); |
|
182 | + $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
183 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
184 | + $template, |
|
185 | + $this->_template_args, |
|
186 | + true |
|
187 | + ); |
|
188 | + $this->display_about_admin_page(); |
|
189 | + } |
|
190 | + |
|
191 | + protected function _reviews() |
|
192 | + { |
|
193 | + $this->_template_args['admin_page_title'] = __('Rave Reviews About Event Espresso 4', 'event_espresso'); |
|
194 | + $this->_template_args['admin_page_subtitle'] = __( |
|
195 | + 'At Event Espresso, customer satisfaction is our ultimate goal.', |
|
196 | + 'event_espresso' |
|
197 | + ); |
|
198 | + $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
199 | + $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
|
200 | + $template, |
|
201 | + $this->_template_args, |
|
202 | + true |
|
203 | + ); |
|
204 | + $this->display_about_admin_page(); |
|
205 | + } |
|
206 | 206 | } |
@@ -21,13 +21,13 @@ discard block |
||
21 | 21 | public function __construct($routing = true) |
22 | 22 | { |
23 | 23 | parent::__construct($routing); |
24 | - define('EE_ABOUT_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'about/templates/'); |
|
24 | + define('EE_ABOUT_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND.'about/templates/'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | |
28 | 28 | protected function _extend_page_config() |
29 | 29 | { |
30 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'about'; |
|
30 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND.'about'; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | protected function _set_page_routes() |
@@ -114,9 +114,9 @@ discard block |
||
114 | 114 | $this->_template_args['admin_page_subtitle'] = __( |
115 | 115 | 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
116 | 116 | 'event_espresso' |
117 | - ) . $settings_message; |
|
118 | - $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php') |
|
119 | - ? EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php' : EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php'; |
|
117 | + ).$settings_message; |
|
118 | + $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH.'whats_new.template.php') |
|
119 | + ? EE_ABOUT_CAF_TEMPLATE_PATH . 'whats_new.template.php' : EE_ABOUT_TEMPLATE_PATH.'whats_new.template.php'; |
|
120 | 120 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
121 | 121 | $template, |
122 | 122 | $this->_template_args, |
@@ -133,9 +133,9 @@ discard block |
||
133 | 133 | 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
134 | 134 | 'event_espresso' |
135 | 135 | ); |
136 | - $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php') |
|
136 | + $template = is_readable(EE_ABOUT_CAF_TEMPLATE_PATH.'ee4-overview.template.php') |
|
137 | 137 | ? EE_ABOUT_CAF_TEMPLATE_PATH . 'ee4-overview.template.php' |
138 | - : EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php'; |
|
138 | + : EE_ABOUT_TEMPLATE_PATH.'ee4-overview.template.php'; |
|
139 | 139 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
140 | 140 | $template, |
141 | 141 | $this->_template_args, |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | 'Thank you for choosing Event Espresso, the most powerful Event Management plugin for WordPress.', |
155 | 155 | 'event_espresso' |
156 | 156 | ); |
157 | - $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php'; |
|
157 | + $template = EE_ABOUT_TEMPLATE_PATH.'credits.template.php'; |
|
158 | 158 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
159 | 159 | $template, |
160 | 160 | $this->_template_args, |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | '<strong>', |
180 | 180 | '</strong>' |
181 | 181 | ); |
182 | - $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php'; |
|
182 | + $template = EE_ABOUT_TEMPLATE_PATH.'decafvpro.template.php'; |
|
183 | 183 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
184 | 184 | $template, |
185 | 185 | $this->_template_args, |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | 'At Event Espresso, customer satisfaction is our ultimate goal.', |
196 | 196 | 'event_espresso' |
197 | 197 | ); |
198 | - $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php'; |
|
198 | + $template = EE_ABOUT_TEMPLATE_PATH.'reviews.template.php'; |
|
199 | 199 | $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( |
200 | 200 | $template, |
201 | 201 | $this->_template_args, |
@@ -1,55 +1,55 @@ discard block |
||
1 | 1 | <div class="changelog"> |
2 | 2 | <h2 class="about-headline-callout"><?php esc_html_e('Welcome to Event Espresso 4!', 'event_espresso'); ?></h2> |
3 | 3 | <p><?php |
4 | - echo sprintf( |
|
5 | - esc_html__( |
|
6 | - 'Manage your events from your WordPress dashboard. Reduce your admin, reduce your costs, make your life easier! This is the Caffeinated/Regular version of Event Espresso, but we also have a hosted version called %sEvent Smart%s for customers that want to cut back on their hosting and security expenses.', |
|
7 | - 'event_espresso' |
|
8 | - ), |
|
9 | - '<a href="https://eventsmart.com//?utm_source=ee4_decaf&utm_medium=link&utm_campaign=espresso_about_tab&utm_content=EE4+Caffeinated">', |
|
10 | - '</a>' |
|
11 | - ); ?></p> |
|
4 | + echo sprintf( |
|
5 | + esc_html__( |
|
6 | + 'Manage your events from your WordPress dashboard. Reduce your admin, reduce your costs, make your life easier! This is the Caffeinated/Regular version of Event Espresso, but we also have a hosted version called %sEvent Smart%s for customers that want to cut back on their hosting and security expenses.', |
|
7 | + 'event_espresso' |
|
8 | + ), |
|
9 | + '<a href="https://eventsmart.com//?utm_source=ee4_decaf&utm_medium=link&utm_campaign=espresso_about_tab&utm_content=EE4+Caffeinated">', |
|
10 | + '</a>' |
|
11 | + ); ?></p> |
|
12 | 12 | <h2><?php |
13 | - esc_html_e( |
|
14 | - 'Powering 40,000+ event websites; $100 million in ticket sales per year!', |
|
15 | - 'event_espresso' |
|
16 | - ); ?></h2> |
|
13 | + esc_html_e( |
|
14 | + 'Powering 40,000+ event websites; $100 million in ticket sales per year!', |
|
15 | + 'event_espresso' |
|
16 | + ); ?></h2> |
|
17 | 17 | <p><?php |
18 | - echo sprintf( |
|
19 | - esc_html__( |
|
20 | - 'Event Espresso is a %sWordPress event manager%s which makes it easy for you to register attendees for classes, workshops, events, trainings, conferences or concerts, all from your WordPress website. Event Espresso events are created from the WordPress admin area. You can create signup forms to collect information about your attendees, accept payments, and create reports. The lite version of the plugin provides everything that you need to manage your event using WordPress.', |
|
21 | - 'event_espresso' |
|
22 | - ), |
|
23 | - '<a href="http://eventespresso.com/?utm_source=wordpress_org&utm_medium=link&utm_campaign=espresso_about_tab&utm_content=EE4+Decaf" rel="nofollow">', |
|
24 | - '</a>' |
|
25 | - ); ?></p> |
|
18 | + echo sprintf( |
|
19 | + esc_html__( |
|
20 | + 'Event Espresso is a %sWordPress event manager%s which makes it easy for you to register attendees for classes, workshops, events, trainings, conferences or concerts, all from your WordPress website. Event Espresso events are created from the WordPress admin area. You can create signup forms to collect information about your attendees, accept payments, and create reports. The lite version of the plugin provides everything that you need to manage your event using WordPress.', |
|
21 | + 'event_espresso' |
|
22 | + ), |
|
23 | + '<a href="http://eventespresso.com/?utm_source=wordpress_org&utm_medium=link&utm_campaign=espresso_about_tab&utm_content=EE4+Decaf" rel="nofollow">', |
|
24 | + '</a>' |
|
25 | + ); ?></p> |
|
26 | 26 | <div class="feature-section col three-col about-updates"> |
27 | 27 | <div class="col-1"> |
28 | 28 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/publish_meta_box.jpg"> |
29 | 29 | <h3><?php esc_html_e('Optimized aesthetic', 'event_espresso'); ?></h3> |
30 | 30 | <p><?php |
31 | - esc_html_e( |
|
32 | - 'The Event Espresso 4 dashboard has a fresh, uncluttered design that embraces clarity and simplicity.', |
|
33 | - 'event_espresso' |
|
34 | - ); ?></p> |
|
31 | + esc_html_e( |
|
32 | + 'The Event Espresso 4 dashboard has a fresh, uncluttered design that embraces clarity and simplicity.', |
|
33 | + 'event_espresso' |
|
34 | + ); ?></p> |
|
35 | 35 | </div> |
36 | 36 | <div class="col-2"> |
37 | 37 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/registrations-overview.jpg"> |
38 | 38 | <h3><?php esc_html_e('Integrated management', 'event_espresso'); ?></h3> |
39 | 39 | <p><?php |
40 | - esc_html_e( |
|
41 | - 'We’ve made it easier to know who your customers are and how they’ve done business with you over time.', |
|
42 | - 'event_espresso' |
|
43 | - ); ?></p> |
|
40 | + esc_html_e( |
|
41 | + 'We’ve made it easier to know who your customers are and how they’ve done business with you over time.', |
|
42 | + 'event_espresso' |
|
43 | + ); ?></p> |
|
44 | 44 | </div> |
45 | 45 | <div class="col-3 last-feature"> |
46 | 46 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/refined-bookkeeping.jpg"> |
47 | 47 | <h3><?php esc_html_e('Easy bookkeeping', 'event_espresso'); ?></h3> |
48 | 48 | <p><?php |
49 | - esc_html_e( |
|
50 | - 'Registrations, payment, and transactions have been substantially improved in Event Espresso 4.', |
|
51 | - 'event_espresso' |
|
52 | - ); ?></p> |
|
49 | + esc_html_e( |
|
50 | + 'Registrations, payment, and transactions have been substantially improved in Event Espresso 4.', |
|
51 | + 'event_espresso' |
|
52 | + ); ?></p> |
|
53 | 53 | </div> |
54 | 54 | </div> |
55 | 55 | |
@@ -61,16 +61,16 @@ discard block |
||
61 | 61 | <div> |
62 | 62 | <h3><?php esc_html_e('Higher customer retention', 'event_espresso'); ?></h3> |
63 | 63 | <p><?php |
64 | - esc_html_e( |
|
65 | - 'The Event Espresso 4 registration process is faster than ever. With quick ticket selections, single page check-out, and customizable notifications! Registration that can scale to your business needs.', |
|
66 | - 'event_espresso' |
|
67 | - ); ?></p> |
|
64 | + esc_html_e( |
|
65 | + 'The Event Espresso 4 registration process is faster than ever. With quick ticket selections, single page check-out, and customizable notifications! Registration that can scale to your business needs.', |
|
66 | + 'event_espresso' |
|
67 | + ); ?></p> |
|
68 | 68 | <h4><?php esc_html_e('Ticket selection boxes on any post page or post', 'event_espresso'); ?></h4> |
69 | 69 | <p><?php |
70 | - esc_html_e( |
|
71 | - 'Customers can easily register for classes, events, or conferences, in just a few simple steps. No matter how you use it, Event Espresso 4 will adapt to a multitude of different ticketing and pricing scenarios.', |
|
72 | - 'event_espresso' |
|
73 | - ); ?></p> |
|
70 | + esc_html_e( |
|
71 | + 'Customers can easily register for classes, events, or conferences, in just a few simple steps. No matter how you use it, Event Espresso 4 will adapt to a multitude of different ticketing and pricing scenarios.', |
|
72 | + 'event_espresso' |
|
73 | + ); ?></p> |
|
74 | 74 | </div> |
75 | 75 | <div class="last-feature about-colors-img"> |
76 | 76 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/registrtation-page-large.jpg"> |
@@ -84,21 +84,21 @@ discard block |
||
84 | 84 | <div> |
85 | 85 | <h3><?php esc_html_e('Refined event management', 'event_espresso'); ?></h3> |
86 | 86 | <p><?php |
87 | - esc_html_e( |
|
88 | - 'The new event management screen lets you survey your events at a glance. Want more information? Click to view more. Quickly add/edit prices, dates, or information in any event.', |
|
89 | - 'event_espresso' |
|
90 | - ); ?></p> |
|
87 | + esc_html_e( |
|
88 | + 'The new event management screen lets you survey your events at a glance. Want more information? Click to view more. Quickly add/edit prices, dates, or information in any event.', |
|
89 | + 'event_espresso' |
|
90 | + ); ?></p> |
|
91 | 91 | <h4><?php esc_html_e('Smoother price types, taxes, and price modifiers', 'event_espresso'); ?></h4> |
92 | 92 | <p><?php |
93 | - esc_html_e( |
|
94 | - 'Price Types allow you to create new prices that adjust the default ticket (base) price for your system-default ticket', |
|
95 | - 'event_espresso' |
|
96 | - ); ?>.</p> |
|
93 | + esc_html_e( |
|
94 | + 'Price Types allow you to create new prices that adjust the default ticket (base) price for your system-default ticket', |
|
95 | + 'event_espresso' |
|
96 | + ); ?>.</p> |
|
97 | 97 | <p><?php |
98 | - esc_html_e( |
|
99 | - 'Easily categorize a price modifier and indicate how that price gets applied to the running total when a transaction occurs.', |
|
100 | - 'event_espresso' |
|
101 | - ); ?></p> |
|
98 | + esc_html_e( |
|
99 | + 'Easily categorize a price modifier and indicate how that price gets applied to the running total when a transaction occurs.', |
|
100 | + 'event_espresso' |
|
101 | + ); ?></p> |
|
102 | 102 | </div> |
103 | 103 | <div class="last-feature about-themes-img"> |
104 | 104 | <img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/event-management.jpg"> |
@@ -110,68 +110,68 @@ discard block |
||
110 | 110 | |
111 | 111 | <div class="changelog about-event-espresso"> |
112 | 112 | <h2 class="about-headline-callout"><?php |
113 | - esc_html_e( |
|
114 | - 'People Like You Manage Event Registration with WordPress', |
|
115 | - 'event_espresso' |
|
116 | - ); ?></h2> |
|
113 | + esc_html_e( |
|
114 | + 'People Like You Manage Event Registration with WordPress', |
|
115 | + 'event_espresso' |
|
116 | + ); ?></h2> |
|
117 | 117 | <div class="feature-section col two-col"> |
118 | 118 | <div class="grid_6"> |
119 | 119 | <p><?php |
120 | - echo sprintf( |
|
121 | - esc_html__( |
|
122 | - 'Trusted by thousands, Event Espresso is the best WordPress event online registration and ticketing manager plugin–and the best supported with full-time support. Turn your existing blog or website into a %sfully-featured event management website%s and a new way to make money. With Event Espresso you get it all; everything from custom registration forms and emails, seating limits, multiple price options, and discount codes to printable tickets.', |
|
123 | - 'event_espresso' |
|
124 | - ), |
|
125 | - '<strong>', |
|
126 | - '</strong>' |
|
127 | - ); ?></p> |
|
120 | + echo sprintf( |
|
121 | + esc_html__( |
|
122 | + 'Trusted by thousands, Event Espresso is the best WordPress event online registration and ticketing manager plugin–and the best supported with full-time support. Turn your existing blog or website into a %sfully-featured event management website%s and a new way to make money. With Event Espresso you get it all; everything from custom registration forms and emails, seating limits, multiple price options, and discount codes to printable tickets.', |
|
123 | + 'event_espresso' |
|
124 | + ), |
|
125 | + '<strong>', |
|
126 | + '</strong>' |
|
127 | + ); ?></p> |
|
128 | 128 | <p><?php |
129 | - esc_html_e( |
|
130 | - 'Event Espresso works perfectly for classes, workshops, fundraisers, sporting, trainings, conferences, networking, religion, social, non-profit, and nearly any other type of event.', |
|
131 | - 'event_espresso' |
|
132 | - ); ?></p> |
|
129 | + esc_html_e( |
|
130 | + 'Event Espresso works perfectly for classes, workshops, fundraisers, sporting, trainings, conferences, networking, religion, social, non-profit, and nearly any other type of event.', |
|
131 | + 'event_espresso' |
|
132 | + ); ?></p> |
|
133 | 133 | </div> |
134 | 134 | <div class="grid_6"> |
135 | 135 | <p><?php |
136 | - echo sprintf( |
|
137 | - esc_html__( |
|
138 | - 'Our online event registration software can %smake your organization more profitable and efficient%s by helping you save money on registration and ticketing fees, reduce the countless hours of time you spend manually processing registrations, create a “green” and paperless event registration process and you will be open for business to accept registrations and payment 24/7.', |
|
139 | - 'event_espresso' |
|
140 | - ), |
|
141 | - '<strong>', |
|
142 | - '</strong>' |
|
143 | - ); ?></p> |
|
136 | + echo sprintf( |
|
137 | + esc_html__( |
|
138 | + 'Our online event registration software can %smake your organization more profitable and efficient%s by helping you save money on registration and ticketing fees, reduce the countless hours of time you spend manually processing registrations, create a “green” and paperless event registration process and you will be open for business to accept registrations and payment 24/7.', |
|
139 | + 'event_espresso' |
|
140 | + ), |
|
141 | + '<strong>', |
|
142 | + '</strong>' |
|
143 | + ); ?></p> |
|
144 | 144 | <p><?php |
145 | - esc_html_e( |
|
146 | - 'If you\'re doing event registration and ticketing any other way, then you’re wasting time and money. We offer packages and prices to fit any budget, so get started with your online event registration and ticketing management system today.', |
|
147 | - 'event_espresso' |
|
148 | - ); ?></p> |
|
145 | + esc_html_e( |
|
146 | + 'If you\'re doing event registration and ticketing any other way, then you’re wasting time and money. We offer packages and prices to fit any budget, so get started with your online event registration and ticketing management system today.', |
|
147 | + 'event_espresso' |
|
148 | + ); ?></p> |
|
149 | 149 | </div> |
150 | 150 | </div> |
151 | 151 | |
152 | 152 | <div class="feature-section col two-col"> |
153 | 153 | <div> |
154 | 154 | <h3><?php |
155 | - esc_html_e( |
|
156 | - 'Turn your blog into a complete event registration and management system', |
|
157 | - 'event_espresso' |
|
158 | - ); ?></h3> |
|
155 | + esc_html_e( |
|
156 | + 'Turn your blog into a complete event registration and management system', |
|
157 | + 'event_espresso' |
|
158 | + ); ?></h3> |
|
159 | 159 | <p><?php |
160 | - esc_html_e( |
|
161 | - 'Create a beautiful event page with ticket selection, venue details, and an integrated single page checkout system. With WordPress, Event Espresso, and Espresso Arabica 2014 (based on the "Twenty Fourteen" theme by WordPress), your events will certainly sell out faster than ever!', |
|
162 | - 'event_espresso' |
|
163 | - ); ?></p> |
|
160 | + esc_html_e( |
|
161 | + 'Create a beautiful event page with ticket selection, venue details, and an integrated single page checkout system. With WordPress, Event Espresso, and Espresso Arabica 2014 (based on the "Twenty Fourteen" theme by WordPress), your events will certainly sell out faster than ever!', |
|
162 | + 'event_espresso' |
|
163 | + ); ?></p> |
|
164 | 164 | <p><?php |
165 | - esc_html_e( |
|
166 | - 'With a striking design that does not compromise the simplicity of WordPress and Event Espresso 4, Espresso Arabica 2014 will be the best event theme on the market.', |
|
167 | - 'event_espresso' |
|
168 | - ); ?></p> |
|
165 | + esc_html_e( |
|
166 | + 'With a striking design that does not compromise the simplicity of WordPress and Event Espresso 4, Espresso Arabica 2014 will be the best event theme on the market.', |
|
167 | + 'event_espresso' |
|
168 | + ); ?></p> |
|
169 | 169 | <p><?php |
170 | - echo sprintf( |
|
171 | - esc_html__('%sLearn more >>%s', 'event_espresso'), |
|
172 | - '<a href="http://eventespresso.com/wiki/setup-event-espresso-arabica-theme/">', |
|
173 | - '</a>' |
|
174 | - ); ?></p> |
|
170 | + echo sprintf( |
|
171 | + esc_html__('%sLearn more >>%s', 'event_espresso'), |
|
172 | + '<a href="http://eventespresso.com/wiki/setup-event-espresso-arabica-theme/">', |
|
173 | + '</a>' |
|
174 | + ); ?></p> |
|
175 | 175 | </div> |
176 | 176 | <div><img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/single-event-page.jpg"></div> |
177 | 177 | </div> |
@@ -182,9 +182,9 @@ discard block |
||
182 | 182 | |
183 | 183 | <h3><?php esc_html_e('Pick a theme, any theme', 'event_espresso'); ?></h3> |
184 | 184 | <p><?php |
185 | - esc_html_e( |
|
186 | - 'We’ve made it super easy to integrate Event Espresso with almost any properly coded WordPress theme, including many of the thousands of themes available on WordPress.org. The image below shows the same Event Espresso ticketing page across three diffrent WordPress themes.', |
|
187 | - 'event_espresso' |
|
188 | - ); ?></p> |
|
185 | + esc_html_e( |
|
186 | + 'We’ve made it super easy to integrate Event Espresso with almost any properly coded WordPress theme, including many of the thousands of themes available on WordPress.org. The image below shows the same Event Espresso ticketing page across three diffrent WordPress themes.', |
|
187 | + 'event_espresso' |
|
188 | + ); ?></p> |
|
189 | 189 | <p><img class="about-overview-img" src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/multiple-themes.jpg"/></p> |
190 | 190 | <hr> |
@@ -4,48 +4,48 @@ |
||
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 release.', 'event_espresso'), |
|
9 | - EVENT_ESPRESSO_VERSION, |
|
10 | - $type |
|
11 | - ); ?> |
|
7 | + printf( |
|
8 | + __('<strong>Version %1$s</strong> is a %2$s 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 printf( |
18 | - __('For more information, see <a href="%s" target="_blank">the release notes</a>.', 'event_espresso'), |
|
19 | - 'http://eventespresso.com/wiki/ee4-changelog/#' . $ver |
|
20 | - ); ?> |
|
18 | + __('For more information, see <a href="%s" target="_blank">the release notes</a>.', 'event_espresso'), |
|
19 | + 'http://eventespresso.com/wiki/ee4-changelog/#' . $ver |
|
20 | + ); ?> |
|
21 | 21 | </p> |
22 | 22 | </div> |
23 | 23 | |
24 | 24 | <div class="changelog"> |
25 | 25 | <?php |
26 | - // maintenance mode on? |
|
27 | - if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
28 | - ?> |
|
26 | + // maintenance mode on? |
|
27 | + if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) { |
|
28 | + ?> |
|
29 | 29 | <div class="ee-attention"> |
30 | 30 | <h2 class="ee-maintenance-mode-callout"><?php |
31 | - _e('Event Espresso is in full maintenance mode.', 'event_espresso'); |
|
32 | - ?></h2> |
|
31 | + _e('Event Espresso is in full maintenance mode.', 'event_espresso'); |
|
32 | + ?></h2> |
|
33 | 33 | <p> |
34 | 34 | <?php |
35 | - printf( |
|
36 | - __( |
|
37 | - '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.', |
|
38 | - 'event_espresso' |
|
39 | - ), |
|
40 | - '<a href="admin.php?page=espresso_maintenance_settings">', |
|
41 | - '</a>' |
|
42 | - ); |
|
43 | - ?> |
|
35 | + printf( |
|
36 | + __( |
|
37 | + '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.', |
|
38 | + 'event_espresso' |
|
39 | + ), |
|
40 | + '<a href="admin.php?page=espresso_maintenance_settings">', |
|
41 | + '</a>' |
|
42 | + ); |
|
43 | + ?> |
|
44 | 44 | </p> |
45 | 45 | </div> |
46 | 46 | <?php |
47 | - } |
|
48 | - ?> |
|
47 | + } |
|
48 | + ?> |
|
49 | 49 | |
50 | 50 | <h2 class="about-headline-callout">Updates & Fixes in EE 4.9</h2> |
51 | 51 | <p>This release brought many background updates/improvements to existing core features, and support for many new |
@@ -16,7 +16,7 @@ |
||
16 | 16 | ?> |
17 | 17 | <?php printf( |
18 | 18 | __('For more information, see <a href="%s" target="_blank">the release notes</a>.', 'event_espresso'), |
19 | - 'http://eventespresso.com/wiki/ee4-changelog/#' . $ver |
|
19 | + 'http://eventespresso.com/wiki/ee4-changelog/#'.$ver |
|
20 | 20 | ); ?> |
21 | 21 | </p> |
22 | 22 | </div> |
@@ -18,187 +18,187 @@ |
||
18 | 18 | { |
19 | 19 | |
20 | 20 | |
21 | - public function __construct($routing = true) |
|
22 | - { |
|
23 | - parent::__construct($routing); |
|
24 | - if (! defined('EE_MSG_CAF_ASSETS_PATH')) { |
|
25 | - define('EE_MSG_CAF_ASSETS_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'messages/assets/'); |
|
26 | - define('EE_MSG_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'messages/assets/'); |
|
27 | - define('EE_MSG_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'messages/templates/'); |
|
28 | - define('EE_MSG_CAF_TEMPLATE_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'messages/templates/'); |
|
29 | - } |
|
30 | - } |
|
31 | - |
|
32 | - protected function _extend_page_config() |
|
33 | - { |
|
34 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'messages'; |
|
35 | - $this->_page_routes['custom_mtps'] = array( |
|
36 | - 'func' => '_ee_custom_messages_overview_list_table', |
|
37 | - 'capability' => 'ee_read_messages', |
|
38 | - ); |
|
39 | - $this->_page_config['custom_mtps'] = array( |
|
40 | - 'nav' => array( |
|
41 | - 'label' => __('Custom Message Templates', 'event_espresso'), |
|
42 | - 'order' => 30, |
|
43 | - ), |
|
44 | - 'list_table' => 'Custom_Messages_Template_List_Table', |
|
45 | - 'help_tabs' => array( |
|
46 | - 'message_overview_message_types_help_tab' => array( |
|
47 | - 'title' => __('Message Types', 'event_espresso'), |
|
48 | - 'filename' => 'messages_overview_types', |
|
49 | - ), |
|
50 | - 'messages_overview_messengers_help_tab' => array( |
|
51 | - 'title' => __('Messengers', 'event_espresso'), |
|
52 | - 'filename' => 'messages_overview_messengers', |
|
53 | - ), |
|
54 | - 'messages_overview_other_help_tab' => array( |
|
55 | - 'title' => __('Messages Other', 'event_espresso'), |
|
56 | - 'filename' => 'messages_overview_other', |
|
57 | - ), |
|
58 | - ), |
|
59 | - 'help_tour' => array(), |
|
60 | - 'require_nonce' => false, |
|
61 | - ); |
|
62 | - |
|
63 | - add_action('current_screen', array($this, 'dynamic_screen_hooks'), 10); |
|
64 | - } |
|
65 | - |
|
66 | - |
|
67 | - /** |
|
68 | - * Callback for current_screen action |
|
69 | - * This is used for any filters and/or actions that require the dynamic screen hook_prefix to be correct. |
|
70 | - * |
|
71 | - * @since 4.5.0 |
|
72 | - * |
|
73 | - * @return void |
|
74 | - */ |
|
75 | - public function dynamic_screen_hooks() |
|
76 | - { |
|
77 | - global $admin_page_hooks; |
|
78 | - |
|
79 | - if (! empty($admin_page_hooks['espresso_events'])) { |
|
80 | - // we're on a EE specific page... good stuff! |
|
81 | - $hook_prefix = $admin_page_hooks['espresso_events']; |
|
82 | - $filter_ref = $hook_prefix . '_page_' . $this->page_slug; |
|
83 | - add_filter('FHEE_manage_' . $filter_ref . '_columns', array($this, 'add_custom_mtps_columns'), 10, 2); |
|
84 | - add_action( |
|
85 | - 'AHEE__EE_Admin_List_Table__column_actions__' . $filter_ref, |
|
86 | - array($this, 'custom_mtp_create_button_column'), |
|
87 | - 10, |
|
88 | - 2 |
|
89 | - ); |
|
90 | - } |
|
91 | - } |
|
92 | - |
|
93 | - |
|
94 | - /** |
|
95 | - * This is the callback for the FHEE__manage_event-espresso_page_espresso_messages_columns to register the |
|
96 | - * caffeinated columns for the global message templates list table. |
|
97 | - * |
|
98 | - * @since 4.3.2 |
|
99 | - * |
|
100 | - * @param array $columns Original defined list of columns |
|
101 | - * @param string $screen_id The unique screen id for the page. |
|
102 | - */ |
|
103 | - public function add_custom_mtps_columns($columns, $screen_id) |
|
104 | - { |
|
105 | - if ($screen_id !== 'espresso_messages_global_mtps') { |
|
106 | - return $columns; |
|
107 | - } |
|
108 | - |
|
109 | - $columns['actions'] = ''; |
|
110 | - return $columns; |
|
111 | - } |
|
112 | - |
|
113 | - |
|
114 | - /** |
|
115 | - * Callback for FHEE__EE_Admin_List_Table__column_actions__event-espresso_page_espresso_messages action that allows |
|
116 | - * for adding the content for the registered "action" column. |
|
117 | - * |
|
118 | - * @since 4.3.2 |
|
119 | - * |
|
120 | - * @param EE_Base_Class |
|
121 | - * @param string $screen_id Unique screen id for the page |
|
122 | - * |
|
123 | - * @return string html content for the page. |
|
124 | - */ |
|
125 | - public function custom_mtp_create_button_column($item, $screen_id) |
|
126 | - { |
|
127 | - if ($screen_id !== 'espresso_messages_global_mtps' || ! EE_Registry::instance()->CAP->current_user_can( |
|
128 | - 'ee_edit_messages', |
|
129 | - 'espresso_messages_add_new_message_template' |
|
130 | - )) { |
|
131 | - return ''; |
|
132 | - } |
|
133 | - |
|
134 | - // first we consider whether this template has override set. If it does then that means no custom templates can be created from this template as a base. So let's just skip the button creation. |
|
135 | - if ($item->get('MTP_is_override')) { |
|
136 | - return ''; |
|
137 | - } |
|
138 | - |
|
139 | - |
|
140 | - $create_args = array( |
|
141 | - 'GRP_ID' => $item->ID(), |
|
142 | - 'messenger' => $item->messenger(), |
|
143 | - 'message_type' => $item->message_type(), |
|
144 | - 'action' => 'add_new_message_template', |
|
145 | - ); |
|
146 | - $create_link = EE_Admin_Page::add_query_args_and_nonce($create_args, EE_MSG_ADMIN_URL); |
|
147 | - echo sprintf( |
|
148 | - '<a href="%s" class="button button-small">%s</a>', |
|
149 | - $create_link, |
|
150 | - __('Create Custom', 'event_espresso') |
|
151 | - ); |
|
152 | - } |
|
153 | - |
|
154 | - |
|
155 | - protected function _add_screen_options_custom_mtps() |
|
156 | - { |
|
157 | - $page_title = $this->_admin_page_title; |
|
158 | - $this->_admin_page_title = __('Custom Message Templates', 'event_espresso'); |
|
159 | - $this->_per_page_screen_option(); |
|
160 | - $this->_admin_page_title = $page_title; |
|
161 | - } |
|
162 | - |
|
163 | - |
|
164 | - /** |
|
165 | - * set views array for Custom Templates list table |
|
166 | - * |
|
167 | - * @access public |
|
168 | - * @return void |
|
169 | - */ |
|
170 | - public function _set_list_table_views_custom_mtps() |
|
171 | - { |
|
172 | - $this->_views = array( |
|
173 | - 'in_use' => array( |
|
174 | - 'slug' => 'in_use', |
|
175 | - 'label' => __('In Use', 'event_espresso'), |
|
176 | - 'count' => 0, |
|
177 | - 'bulk_action' => array( |
|
178 | - 'trash_message_template' => __('Move to Trash', 'event_espresso'), |
|
179 | - ), |
|
180 | - ), |
|
181 | - ); |
|
182 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
183 | - 'ee_delete_messages', |
|
184 | - 'espresso_messages_trash_message_template' |
|
185 | - )) { |
|
186 | - $this->_views['trashed'] = array( |
|
187 | - 'slug' => 'trashed', |
|
188 | - 'label' => __('Trash', 'event_espresso'), |
|
189 | - 'count' => 0, |
|
190 | - 'bulk_action' => array( |
|
191 | - 'restore_message_template' => __('Restore From Trash', 'event_espresso'), |
|
192 | - 'delete_message_template' => __('Delete Permanently', 'event_espresso'), |
|
193 | - ), |
|
194 | - ); |
|
195 | - } |
|
196 | - } |
|
197 | - |
|
198 | - |
|
199 | - protected function _ee_custom_messages_overview_list_table() |
|
200 | - { |
|
201 | - $this->_admin_page_title = __('Custom Message Templates', 'event_espresso'); |
|
202 | - $this->display_admin_list_table_page_with_no_sidebar(); |
|
203 | - } |
|
21 | + public function __construct($routing = true) |
|
22 | + { |
|
23 | + parent::__construct($routing); |
|
24 | + if (! defined('EE_MSG_CAF_ASSETS_PATH')) { |
|
25 | + define('EE_MSG_CAF_ASSETS_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'messages/assets/'); |
|
26 | + define('EE_MSG_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'messages/assets/'); |
|
27 | + define('EE_MSG_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'messages/templates/'); |
|
28 | + define('EE_MSG_CAF_TEMPLATE_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'messages/templates/'); |
|
29 | + } |
|
30 | + } |
|
31 | + |
|
32 | + protected function _extend_page_config() |
|
33 | + { |
|
34 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'messages'; |
|
35 | + $this->_page_routes['custom_mtps'] = array( |
|
36 | + 'func' => '_ee_custom_messages_overview_list_table', |
|
37 | + 'capability' => 'ee_read_messages', |
|
38 | + ); |
|
39 | + $this->_page_config['custom_mtps'] = array( |
|
40 | + 'nav' => array( |
|
41 | + 'label' => __('Custom Message Templates', 'event_espresso'), |
|
42 | + 'order' => 30, |
|
43 | + ), |
|
44 | + 'list_table' => 'Custom_Messages_Template_List_Table', |
|
45 | + 'help_tabs' => array( |
|
46 | + 'message_overview_message_types_help_tab' => array( |
|
47 | + 'title' => __('Message Types', 'event_espresso'), |
|
48 | + 'filename' => 'messages_overview_types', |
|
49 | + ), |
|
50 | + 'messages_overview_messengers_help_tab' => array( |
|
51 | + 'title' => __('Messengers', 'event_espresso'), |
|
52 | + 'filename' => 'messages_overview_messengers', |
|
53 | + ), |
|
54 | + 'messages_overview_other_help_tab' => array( |
|
55 | + 'title' => __('Messages Other', 'event_espresso'), |
|
56 | + 'filename' => 'messages_overview_other', |
|
57 | + ), |
|
58 | + ), |
|
59 | + 'help_tour' => array(), |
|
60 | + 'require_nonce' => false, |
|
61 | + ); |
|
62 | + |
|
63 | + add_action('current_screen', array($this, 'dynamic_screen_hooks'), 10); |
|
64 | + } |
|
65 | + |
|
66 | + |
|
67 | + /** |
|
68 | + * Callback for current_screen action |
|
69 | + * This is used for any filters and/or actions that require the dynamic screen hook_prefix to be correct. |
|
70 | + * |
|
71 | + * @since 4.5.0 |
|
72 | + * |
|
73 | + * @return void |
|
74 | + */ |
|
75 | + public function dynamic_screen_hooks() |
|
76 | + { |
|
77 | + global $admin_page_hooks; |
|
78 | + |
|
79 | + if (! empty($admin_page_hooks['espresso_events'])) { |
|
80 | + // we're on a EE specific page... good stuff! |
|
81 | + $hook_prefix = $admin_page_hooks['espresso_events']; |
|
82 | + $filter_ref = $hook_prefix . '_page_' . $this->page_slug; |
|
83 | + add_filter('FHEE_manage_' . $filter_ref . '_columns', array($this, 'add_custom_mtps_columns'), 10, 2); |
|
84 | + add_action( |
|
85 | + 'AHEE__EE_Admin_List_Table__column_actions__' . $filter_ref, |
|
86 | + array($this, 'custom_mtp_create_button_column'), |
|
87 | + 10, |
|
88 | + 2 |
|
89 | + ); |
|
90 | + } |
|
91 | + } |
|
92 | + |
|
93 | + |
|
94 | + /** |
|
95 | + * This is the callback for the FHEE__manage_event-espresso_page_espresso_messages_columns to register the |
|
96 | + * caffeinated columns for the global message templates list table. |
|
97 | + * |
|
98 | + * @since 4.3.2 |
|
99 | + * |
|
100 | + * @param array $columns Original defined list of columns |
|
101 | + * @param string $screen_id The unique screen id for the page. |
|
102 | + */ |
|
103 | + public function add_custom_mtps_columns($columns, $screen_id) |
|
104 | + { |
|
105 | + if ($screen_id !== 'espresso_messages_global_mtps') { |
|
106 | + return $columns; |
|
107 | + } |
|
108 | + |
|
109 | + $columns['actions'] = ''; |
|
110 | + return $columns; |
|
111 | + } |
|
112 | + |
|
113 | + |
|
114 | + /** |
|
115 | + * Callback for FHEE__EE_Admin_List_Table__column_actions__event-espresso_page_espresso_messages action that allows |
|
116 | + * for adding the content for the registered "action" column. |
|
117 | + * |
|
118 | + * @since 4.3.2 |
|
119 | + * |
|
120 | + * @param EE_Base_Class |
|
121 | + * @param string $screen_id Unique screen id for the page |
|
122 | + * |
|
123 | + * @return string html content for the page. |
|
124 | + */ |
|
125 | + public function custom_mtp_create_button_column($item, $screen_id) |
|
126 | + { |
|
127 | + if ($screen_id !== 'espresso_messages_global_mtps' || ! EE_Registry::instance()->CAP->current_user_can( |
|
128 | + 'ee_edit_messages', |
|
129 | + 'espresso_messages_add_new_message_template' |
|
130 | + )) { |
|
131 | + return ''; |
|
132 | + } |
|
133 | + |
|
134 | + // first we consider whether this template has override set. If it does then that means no custom templates can be created from this template as a base. So let's just skip the button creation. |
|
135 | + if ($item->get('MTP_is_override')) { |
|
136 | + return ''; |
|
137 | + } |
|
138 | + |
|
139 | + |
|
140 | + $create_args = array( |
|
141 | + 'GRP_ID' => $item->ID(), |
|
142 | + 'messenger' => $item->messenger(), |
|
143 | + 'message_type' => $item->message_type(), |
|
144 | + 'action' => 'add_new_message_template', |
|
145 | + ); |
|
146 | + $create_link = EE_Admin_Page::add_query_args_and_nonce($create_args, EE_MSG_ADMIN_URL); |
|
147 | + echo sprintf( |
|
148 | + '<a href="%s" class="button button-small">%s</a>', |
|
149 | + $create_link, |
|
150 | + __('Create Custom', 'event_espresso') |
|
151 | + ); |
|
152 | + } |
|
153 | + |
|
154 | + |
|
155 | + protected function _add_screen_options_custom_mtps() |
|
156 | + { |
|
157 | + $page_title = $this->_admin_page_title; |
|
158 | + $this->_admin_page_title = __('Custom Message Templates', 'event_espresso'); |
|
159 | + $this->_per_page_screen_option(); |
|
160 | + $this->_admin_page_title = $page_title; |
|
161 | + } |
|
162 | + |
|
163 | + |
|
164 | + /** |
|
165 | + * set views array for Custom Templates list table |
|
166 | + * |
|
167 | + * @access public |
|
168 | + * @return void |
|
169 | + */ |
|
170 | + public function _set_list_table_views_custom_mtps() |
|
171 | + { |
|
172 | + $this->_views = array( |
|
173 | + 'in_use' => array( |
|
174 | + 'slug' => 'in_use', |
|
175 | + 'label' => __('In Use', 'event_espresso'), |
|
176 | + 'count' => 0, |
|
177 | + 'bulk_action' => array( |
|
178 | + 'trash_message_template' => __('Move to Trash', 'event_espresso'), |
|
179 | + ), |
|
180 | + ), |
|
181 | + ); |
|
182 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
183 | + 'ee_delete_messages', |
|
184 | + 'espresso_messages_trash_message_template' |
|
185 | + )) { |
|
186 | + $this->_views['trashed'] = array( |
|
187 | + 'slug' => 'trashed', |
|
188 | + 'label' => __('Trash', 'event_espresso'), |
|
189 | + 'count' => 0, |
|
190 | + 'bulk_action' => array( |
|
191 | + 'restore_message_template' => __('Restore From Trash', 'event_espresso'), |
|
192 | + 'delete_message_template' => __('Delete Permanently', 'event_espresso'), |
|
193 | + ), |
|
194 | + ); |
|
195 | + } |
|
196 | + } |
|
197 | + |
|
198 | + |
|
199 | + protected function _ee_custom_messages_overview_list_table() |
|
200 | + { |
|
201 | + $this->_admin_page_title = __('Custom Message Templates', 'event_espresso'); |
|
202 | + $this->display_admin_list_table_page_with_no_sidebar(); |
|
203 | + } |
|
204 | 204 | } |
@@ -21,17 +21,17 @@ discard block |
||
21 | 21 | public function __construct($routing = true) |
22 | 22 | { |
23 | 23 | parent::__construct($routing); |
24 | - if (! defined('EE_MSG_CAF_ASSETS_PATH')) { |
|
25 | - define('EE_MSG_CAF_ASSETS_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'messages/assets/'); |
|
26 | - define('EE_MSG_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'messages/assets/'); |
|
27 | - define('EE_MSG_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'messages/templates/'); |
|
28 | - define('EE_MSG_CAF_TEMPLATE_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'messages/templates/'); |
|
24 | + if ( ! defined('EE_MSG_CAF_ASSETS_PATH')) { |
|
25 | + define('EE_MSG_CAF_ASSETS_PATH', EE_CORE_CAF_ADMIN_EXTEND.'messages/assets/'); |
|
26 | + define('EE_MSG_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL.'messages/assets/'); |
|
27 | + define('EE_MSG_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND.'messages/templates/'); |
|
28 | + define('EE_MSG_CAF_TEMPLATE_URL', EE_CORE_CAF_ADMIN_EXTEND_URL.'messages/templates/'); |
|
29 | 29 | } |
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function _extend_page_config() |
33 | 33 | { |
34 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'messages'; |
|
34 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND.'messages'; |
|
35 | 35 | $this->_page_routes['custom_mtps'] = array( |
36 | 36 | 'func' => '_ee_custom_messages_overview_list_table', |
37 | 37 | 'capability' => 'ee_read_messages', |
@@ -76,13 +76,13 @@ discard block |
||
76 | 76 | { |
77 | 77 | global $admin_page_hooks; |
78 | 78 | |
79 | - if (! empty($admin_page_hooks['espresso_events'])) { |
|
79 | + if ( ! empty($admin_page_hooks['espresso_events'])) { |
|
80 | 80 | // we're on a EE specific page... good stuff! |
81 | 81 | $hook_prefix = $admin_page_hooks['espresso_events']; |
82 | - $filter_ref = $hook_prefix . '_page_' . $this->page_slug; |
|
83 | - add_filter('FHEE_manage_' . $filter_ref . '_columns', array($this, 'add_custom_mtps_columns'), 10, 2); |
|
82 | + $filter_ref = $hook_prefix.'_page_'.$this->page_slug; |
|
83 | + add_filter('FHEE_manage_'.$filter_ref.'_columns', array($this, 'add_custom_mtps_columns'), 10, 2); |
|
84 | 84 | add_action( |
85 | - 'AHEE__EE_Admin_List_Table__column_actions__' . $filter_ref, |
|
85 | + 'AHEE__EE_Admin_List_Table__column_actions__'.$filter_ref, |
|
86 | 86 | array($this, 'custom_mtp_create_button_column'), |
87 | 87 | 10, |
88 | 88 | 2 |
@@ -19,9 +19,9 @@ discard block |
||
19 | 19 | <p> |
20 | 20 | <label for="custom-message-template-name"> |
21 | 21 | <?php _e( |
22 | - 'Name for Template:', |
|
23 | - 'event_espresso' |
|
24 | - ); ?></label><br/> |
|
22 | + 'Name for Template:', |
|
23 | + 'event_espresso' |
|
24 | + ); ?></label><br/> |
|
25 | 25 | <input id="custom-message-template-name" type="text" class="regular-text" |
26 | 26 | name="custom_template_args[MTP_name]" value=""> |
27 | 27 | </p> |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | value="<?php _e('Create Template', 'event_espresso'); ?>"> |
38 | 38 | <button type="button" class="button button-secondary cancel-create-template"> |
39 | 39 | <?php _e( |
40 | - 'Cancel', |
|
41 | - 'event_espresso' |
|
42 | - ); ?></button> |
|
40 | + 'Cancel', |
|
41 | + 'event_espresso' |
|
42 | + ); ?></button> |
|
43 | 43 | </div> |
44 | 44 | </form> |
45 | 45 | </div> |
@@ -18,73 +18,73 @@ |
||
18 | 18 | { |
19 | 19 | |
20 | 20 | |
21 | - public function __construct($routing = true) |
|
22 | - { |
|
23 | - parent::__construct($routing); |
|
24 | - define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
25 | - } |
|
21 | + public function __construct($routing = true) |
|
22 | + { |
|
23 | + parent::__construct($routing); |
|
24 | + define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
25 | + } |
|
26 | 26 | |
27 | 27 | |
28 | - protected function _extend_page_config() |
|
29 | - { |
|
28 | + protected function _extend_page_config() |
|
29 | + { |
|
30 | 30 | |
31 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
31 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
32 | 32 | |
33 | - // filters and action hooks here |
|
34 | - add_action('AHEE__admin_option_settings__template__before', array($this, 'debug_logging_options'), 9); |
|
35 | - add_filter( |
|
36 | - 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__CFG_admin', |
|
37 | - array($this, 'update_debug_logging_options'), |
|
38 | - 10, |
|
39 | - 1 |
|
40 | - ); |
|
41 | - } |
|
33 | + // filters and action hooks here |
|
34 | + add_action('AHEE__admin_option_settings__template__before', array($this, 'debug_logging_options'), 9); |
|
35 | + add_filter( |
|
36 | + 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__CFG_admin', |
|
37 | + array($this, 'update_debug_logging_options'), |
|
38 | + 10, |
|
39 | + 1 |
|
40 | + ); |
|
41 | + } |
|
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | - /************* Logging Settings *************/ |
|
45 | + /************* Logging Settings *************/ |
|
46 | 46 | |
47 | - /** |
|
48 | - * debug_logging_options |
|
49 | - * |
|
50 | - * @param array $template_args |
|
51 | - * |
|
52 | - * @return void |
|
53 | - */ |
|
54 | - public function debug_logging_options($template_args = array()) |
|
55 | - { |
|
56 | - $template_args['use_full_logging'] = EE_Registry::instance()->CFG->admin->use_full_logging; |
|
57 | - $template_args['use_remote_logging'] = isset(EE_Registry::instance()->CFG->admin->use_remote_logging) ? absint( |
|
58 | - EE_Registry::instance()->CFG->admin->use_remote_logging |
|
59 | - ) : false; |
|
60 | - $template_args['remote_logging_url'] = isset(EE_Registry::instance()->CFG->admin->remote_logging_url) |
|
61 | - && ! empty(EE_Registry::instance()->CFG->admin->remote_logging_url) |
|
62 | - ? stripslashes(EE_Registry::instance()->CFG->admin->remote_logging_url) : ''; |
|
63 | - $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
64 | - EEH_Template::display_template($template, $template_args); |
|
65 | - } |
|
47 | + /** |
|
48 | + * debug_logging_options |
|
49 | + * |
|
50 | + * @param array $template_args |
|
51 | + * |
|
52 | + * @return void |
|
53 | + */ |
|
54 | + public function debug_logging_options($template_args = array()) |
|
55 | + { |
|
56 | + $template_args['use_full_logging'] = EE_Registry::instance()->CFG->admin->use_full_logging; |
|
57 | + $template_args['use_remote_logging'] = isset(EE_Registry::instance()->CFG->admin->use_remote_logging) ? absint( |
|
58 | + EE_Registry::instance()->CFG->admin->use_remote_logging |
|
59 | + ) : false; |
|
60 | + $template_args['remote_logging_url'] = isset(EE_Registry::instance()->CFG->admin->remote_logging_url) |
|
61 | + && ! empty(EE_Registry::instance()->CFG->admin->remote_logging_url) |
|
62 | + ? stripslashes(EE_Registry::instance()->CFG->admin->remote_logging_url) : ''; |
|
63 | + $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
64 | + EEH_Template::display_template($template, $template_args); |
|
65 | + } |
|
66 | 66 | |
67 | 67 | |
68 | - /** |
|
69 | - * update_debug_logging_options |
|
70 | - * |
|
71 | - * @param array $admin_options |
|
72 | - * |
|
73 | - * @return array |
|
74 | - */ |
|
75 | - public function update_debug_logging_options($admin_options = array()) |
|
76 | - { |
|
77 | - $use_full_logging = isset($this->_req_data['use_full_logging']) ? (bool) absint( |
|
78 | - $this->_req_data['use_full_logging'] |
|
79 | - ) : $admin_options->use_full_logging; |
|
80 | - $admin_options->use_full_logging = $use_full_logging; |
|
81 | - $admin_options->use_remote_logging = isset($this->_req_data['use_remote_logging']) ? absint( |
|
82 | - $this->_req_data['use_remote_logging'] |
|
83 | - ) : $admin_options->use_remote_logging; |
|
84 | - $admin_options->remote_logging_url = isset($this->_req_data['remote_logging_url']) ? esc_url_raw( |
|
85 | - $this->_req_data['remote_logging_url'] |
|
86 | - ) : $admin_options->remote_logging_url; |
|
68 | + /** |
|
69 | + * update_debug_logging_options |
|
70 | + * |
|
71 | + * @param array $admin_options |
|
72 | + * |
|
73 | + * @return array |
|
74 | + */ |
|
75 | + public function update_debug_logging_options($admin_options = array()) |
|
76 | + { |
|
77 | + $use_full_logging = isset($this->_req_data['use_full_logging']) ? (bool) absint( |
|
78 | + $this->_req_data['use_full_logging'] |
|
79 | + ) : $admin_options->use_full_logging; |
|
80 | + $admin_options->use_full_logging = $use_full_logging; |
|
81 | + $admin_options->use_remote_logging = isset($this->_req_data['use_remote_logging']) ? absint( |
|
82 | + $this->_req_data['use_remote_logging'] |
|
83 | + ) : $admin_options->use_remote_logging; |
|
84 | + $admin_options->remote_logging_url = isset($this->_req_data['remote_logging_url']) ? esc_url_raw( |
|
85 | + $this->_req_data['remote_logging_url'] |
|
86 | + ) : $admin_options->remote_logging_url; |
|
87 | 87 | |
88 | - return $admin_options; |
|
89 | - } |
|
88 | + return $admin_options; |
|
89 | + } |
|
90 | 90 | } |
@@ -21,14 +21,14 @@ discard block |
||
21 | 21 | public function __construct($routing = true) |
22 | 22 | { |
23 | 23 | parent::__construct($routing); |
24 | - define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
24 | + define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND.'general_settings/templates/'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | |
28 | 28 | protected function _extend_page_config() |
29 | 29 | { |
30 | 30 | |
31 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
31 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND.'general_settings'; |
|
32 | 32 | |
33 | 33 | // filters and action hooks here |
34 | 34 | add_action('AHEE__admin_option_settings__template__before', array($this, 'debug_logging_options'), 9); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $template_args['remote_logging_url'] = isset(EE_Registry::instance()->CFG->admin->remote_logging_url) |
61 | 61 | && ! empty(EE_Registry::instance()->CFG->admin->remote_logging_url) |
62 | 62 | ? stripslashes(EE_Registry::instance()->CFG->admin->remote_logging_url) : ''; |
63 | - $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
63 | + $template = GEN_SET_CAF_TEMPLATE_PATH.'debug_log_settings.template.php'; |
|
64 | 64 | EEH_Template::display_template($template, $template_args); |
65 | 65 | } |
66 | 66 |