@@ -12,9 +12,9 @@ |
||
12 | 12 | <?php _e('This option will save all Event Espresso registration form data, and debugging information to a file in the /wp-content/uploads/espresso/logs directory on your server. This will occur each time a page is accessed on your site until this option is turned off.', 'event_espresso'); ?> |
13 | 13 | <br/> |
14 | 14 | <?php printf( |
15 | - __('Note that if you are accessing your filesystem over FTP or SSH, and logging writes to the filesystem on every request, you should put your credentials in your wp-config.php file, as described %1$shere.%2$s', 'event_espresso'), |
|
16 | - '<a href="https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants" target="_blank">', |
|
17 | - '</a>' |
|
15 | + __('Note that if you are accessing your filesystem over FTP or SSH, and logging writes to the filesystem on every request, you should put your credentials in your wp-config.php file, as described %1$shere.%2$s', 'event_espresso'), |
|
16 | + '<a href="https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants" target="_blank">', |
|
17 | + '</a>' |
|
18 | 18 | ); ?> |
19 | 19 | </li> |
20 | 20 | <li> |
@@ -18,37 +18,37 @@ |
||
18 | 18 | class General_Settings_Admin_Page_Init extends EE_Admin_Page_Init |
19 | 19 | { |
20 | 20 | |
21 | - public function __construct() |
|
22 | - { |
|
23 | - // define some constants |
|
24 | - define('GEN_SET_PG_SLUG', 'espresso_general_settings'); |
|
25 | - define('GEN_SET_LABEL', __('General Settings', 'event_espresso')); |
|
26 | - define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings' . DS); |
|
27 | - define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG)); |
|
28 | - define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates' . DS); |
|
29 | - define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/'); |
|
21 | + public function __construct() |
|
22 | + { |
|
23 | + // define some constants |
|
24 | + define('GEN_SET_PG_SLUG', 'espresso_general_settings'); |
|
25 | + define('GEN_SET_LABEL', __('General Settings', 'event_espresso')); |
|
26 | + define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings' . DS); |
|
27 | + define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG)); |
|
28 | + define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates' . DS); |
|
29 | + define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/'); |
|
30 | 30 | |
31 | - parent::__construct(); |
|
32 | - } |
|
31 | + parent::__construct(); |
|
32 | + } |
|
33 | 33 | |
34 | - protected function _set_init_properties() |
|
35 | - { |
|
36 | - $this->label = GEN_SET_LABEL; |
|
37 | - } |
|
34 | + protected function _set_init_properties() |
|
35 | + { |
|
36 | + $this->label = GEN_SET_LABEL; |
|
37 | + } |
|
38 | 38 | |
39 | - protected function _set_menu_map() |
|
40 | - { |
|
41 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
42 | - array( |
|
43 | - 'menu_group' => 'settings', |
|
44 | - 'menu_order' => 20, |
|
45 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
|
46 | - 'parent_slug' => 'espresso_events', |
|
47 | - 'menu_slug' => GEN_SET_PG_SLUG, |
|
48 | - 'menu_label' => GEN_SET_LABEL, |
|
49 | - 'capability' => 'manage_options', |
|
50 | - 'admin_init_page' => $this, |
|
51 | - ) |
|
52 | - ); |
|
53 | - } |
|
39 | + protected function _set_menu_map() |
|
40 | + { |
|
41 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
42 | + array( |
|
43 | + 'menu_group' => 'settings', |
|
44 | + 'menu_order' => 20, |
|
45 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
|
46 | + 'parent_slug' => 'espresso_events', |
|
47 | + 'menu_slug' => GEN_SET_PG_SLUG, |
|
48 | + 'menu_label' => GEN_SET_LABEL, |
|
49 | + 'capability' => 'manage_options', |
|
50 | + 'admin_init_page' => $this, |
|
51 | + ) |
|
52 | + ); |
|
53 | + } |
|
54 | 54 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | // define some constants |
24 | 24 | define('GEN_SET_PG_SLUG', 'espresso_general_settings'); |
25 | 25 | define('GEN_SET_LABEL', __('General Settings', 'event_espresso')); |
26 | - define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings' . DS); |
|
27 | - define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG)); |
|
28 | - define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates' . DS); |
|
29 | - define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/'); |
|
26 | + define('GEN_SET_ADMIN', EE_ADMIN_PAGES.'general_settings'.DS); |
|
27 | + define('GEN_SET_ADMIN_URL', admin_url('admin.php?page='.GEN_SET_PG_SLUG)); |
|
28 | + define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN.'templates'.DS); |
|
29 | + define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL.'general_settings/assets/'); |
|
30 | 30 | |
31 | 31 | parent::__construct(); |
32 | 32 | } |
@@ -5,15 +5,15 @@ discard block |
||
5 | 5 | </h2> |
6 | 6 | <p class="ee-attention"> |
7 | 7 | <?php |
8 | - echo sprintf( |
|
9 | - __( |
|
10 | - 'The following shortcodes and page settings are required for Event Espresso to function properly. These shortcodes should not be replaced with any other shortcodes. Please view %sthis page%s for a list of optional shortcodes you can use on other pages.', |
|
11 | - 'event_espresso' |
|
12 | - ), |
|
13 | - '<a href="admin.php?page=espresso_support">', |
|
14 | - '</a>' |
|
15 | - ); |
|
16 | - ?> |
|
8 | + echo sprintf( |
|
9 | + __( |
|
10 | + 'The following shortcodes and page settings are required for Event Espresso to function properly. These shortcodes should not be replaced with any other shortcodes. Please view %sthis page%s for a list of optional shortcodes you can use on other pages.', |
|
11 | + 'event_espresso' |
|
12 | + ), |
|
13 | + '<a href="admin.php?page=espresso_support">', |
|
14 | + '</a>' |
|
15 | + ); |
|
16 | + ?> |
|
17 | 17 | </p> |
18 | 18 | |
19 | 19 | <table class="form-table"> |
@@ -39,21 +39,21 @@ discard block |
||
39 | 39 | </select> |
40 | 40 | <span> |
41 | 41 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
42 | - $reg_page_obj, |
|
43 | - '[ESPRESSO_CHECKOUT]' |
|
44 | - ); ?> |
|
42 | + $reg_page_obj, |
|
43 | + '[ESPRESSO_CHECKOUT]' |
|
44 | + ); ?> |
|
45 | 45 | </span> |
46 | 46 | <br/> |
47 | 47 | <p class="description"> |
48 | 48 | <?php |
49 | - echo sprintf( |
|
50 | - __( |
|
51 | - 'This page can be hidden from navigation if desired, but should always contain the %s shortcode.', |
|
52 | - 'event_espresso' |
|
53 | - ), |
|
54 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CHECKOUT]</span>' |
|
55 | - ); |
|
56 | - ?> |
|
49 | + echo sprintf( |
|
50 | + __( |
|
51 | + 'This page can be hidden from navigation if desired, but should always contain the %s shortcode.', |
|
52 | + 'event_espresso' |
|
53 | + ), |
|
54 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CHECKOUT]</span>' |
|
55 | + ); |
|
56 | + ?> |
|
57 | 57 | </p> |
58 | 58 | <br/><br/> |
59 | 59 | </td> |
@@ -69,9 +69,9 @@ discard block |
||
69 | 69 | <br/> |
70 | 70 | <span class="lt-grey-text"> |
71 | 71 | <?php _e( |
72 | - 'Notify URL (processes payments)', |
|
73 | - 'event_espresso' |
|
74 | - ); ?></span><br/> |
|
72 | + 'Notify URL (processes payments)', |
|
73 | + 'event_espresso' |
|
74 | + ); ?></span><br/> |
|
75 | 75 | <?php echo General_Settings_Admin_Page::edit_view_links($txn_page_id); ?> |
76 | 76 | </label> |
77 | 77 | </th> |
@@ -84,21 +84,21 @@ discard block |
||
84 | 84 | </select> |
85 | 85 | <span> |
86 | 86 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
87 | - $txn_page_obj, |
|
88 | - '[ESPRESSO_TXN_PAGE]' |
|
89 | - ); ?> |
|
87 | + $txn_page_obj, |
|
88 | + '[ESPRESSO_TXN_PAGE]' |
|
89 | + ); ?> |
|
90 | 90 | </span> |
91 | 91 | <br/> |
92 | 92 | <p class="description"> |
93 | 93 | <?php |
94 | - echo sprintf( |
|
95 | - __( |
|
96 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
97 | - 'event_espresso' |
|
98 | - ), |
|
99 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_TXN_PAGE]</span>' |
|
100 | - ); |
|
101 | - ?> |
|
94 | + echo sprintf( |
|
95 | + __( |
|
96 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
97 | + 'event_espresso' |
|
98 | + ), |
|
99 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_TXN_PAGE]</span>' |
|
100 | + ); |
|
101 | + ?> |
|
102 | 102 | </p> |
103 | 103 | <br/><br/> |
104 | 104 | </td> |
@@ -124,21 +124,21 @@ discard block |
||
124 | 124 | </select> |
125 | 125 | <span> |
126 | 126 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
127 | - $thank_you_page_obj, |
|
128 | - '[ESPRESSO_THANK_YOU]' |
|
129 | - ); ?> |
|
127 | + $thank_you_page_obj, |
|
128 | + '[ESPRESSO_THANK_YOU]' |
|
129 | + ); ?> |
|
130 | 130 | </span> |
131 | 131 | <br/> |
132 | 132 | <p class="description"> |
133 | 133 | <?php |
134 | - echo sprintf( |
|
135 | - __( |
|
136 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
137 | - 'event_espresso' |
|
138 | - ), |
|
139 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_THANK_YOU]</span>' |
|
140 | - ); |
|
141 | - ?> |
|
134 | + echo sprintf( |
|
135 | + __( |
|
136 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain the %s shortcode.', |
|
137 | + 'event_espresso' |
|
138 | + ), |
|
139 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_THANK_YOU]</span>' |
|
140 | + ); |
|
141 | + ?> |
|
142 | 142 | </p> |
143 | 143 | <br/><br/> |
144 | 144 | </td> |
@@ -164,21 +164,21 @@ discard block |
||
164 | 164 | </select> |
165 | 165 | <span> |
166 | 166 | <?php echo General_Settings_Admin_Page::page_and_shortcode_status( |
167 | - $cancel_page_obj, |
|
168 | - '[ESPRESSO_CANCELLED]' |
|
169 | - ); ?> |
|
167 | + $cancel_page_obj, |
|
168 | + '[ESPRESSO_CANCELLED]' |
|
169 | + ); ?> |
|
170 | 170 | </span> |
171 | 171 | <br/> |
172 | 172 | <p class="description"> |
173 | 173 | <?php |
174 | - echo sprintf( |
|
175 | - __( |
|
176 | - 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain a "cancelled transaction" message and the %s shortcode.', |
|
177 | - 'event_espresso' |
|
178 | - ), |
|
179 | - '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CANCELLED]</span>' |
|
180 | - ); |
|
181 | - ?> |
|
174 | + echo sprintf( |
|
175 | + __( |
|
176 | + 'This page should be hidden from your navigation, but still viewable to the public (not password protected), and should always contain a "cancelled transaction" message and the %s shortcode.', |
|
177 | + 'event_espresso' |
|
178 | + ), |
|
179 | + '<span class="highlight" style="padding:3px;margin:0;">[ESPRESSO_CANCELLED]</span>' |
|
180 | + ); |
|
181 | + ?> |
|
182 | 182 | </p> |
183 | 183 | <br/><br/> |
184 | 184 | </td> |
@@ -194,27 +194,27 @@ discard block |
||
194 | 194 | <br/> |
195 | 195 | <a href='<?php echo get_post_type_archive_link('espresso_events') ?>'> |
196 | 196 | <?php _e( |
197 | - 'View', |
|
198 | - 'event_espresso' |
|
199 | - ); ?></a> |
|
197 | + 'View', |
|
198 | + 'event_espresso' |
|
199 | + ); ?></a> |
|
200 | 200 | </label> |
201 | 201 | </th> |
202 | 202 | <td> |
203 | 203 | <p class="description"> |
204 | 204 | <?php echo __( |
205 | - 'Events are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
206 | - 'event_espresso' |
|
207 | - ) ?> |
|
205 | + 'Events are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
206 | + 'event_espresso' |
|
207 | + ) ?> |
|
208 | 208 | </p> |
209 | 209 | <p class="description"> |
210 | 210 | <?php printf( |
211 | - __( |
|
212 | - 'If you would still like your events on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
213 | - 'event_espresso' |
|
214 | - ), |
|
215 | - '<a href="admin.php?page=espresso_support">', |
|
216 | - '</a>' |
|
217 | - ) ?> |
|
211 | + __( |
|
212 | + 'If you would still like your events on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
213 | + 'event_espresso' |
|
214 | + ), |
|
215 | + '<a href="admin.php?page=espresso_support">', |
|
216 | + '</a>' |
|
217 | + ) ?> |
|
218 | 218 | </p> |
219 | 219 | <br/><br/> |
220 | 220 | </td> |
@@ -230,27 +230,27 @@ discard block |
||
230 | 230 | <br/> |
231 | 231 | <a href='<?php echo get_post_type_archive_link('espresso_venues') ?>'> |
232 | 232 | <?php _e( |
233 | - 'View', |
|
234 | - 'event_espresso' |
|
235 | - ); ?></a> |
|
233 | + 'View', |
|
234 | + 'event_espresso' |
|
235 | + ); ?></a> |
|
236 | 236 | </label> |
237 | 237 | </th> |
238 | 238 | <td> |
239 | 239 | <p class="description"> |
240 | 240 | <?php echo __( |
241 | - 'Venues are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
242 | - 'event_espresso' |
|
243 | - ) ?> |
|
241 | + 'Venues are custom post types and use WordPress\' normal archive pages for displaying events.', |
|
242 | + 'event_espresso' |
|
243 | + ) ?> |
|
244 | 244 | </p> |
245 | 245 | <p class="description"> |
246 | 246 | <?php printf( |
247 | - __( |
|
248 | - 'If you would still like your venues on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
249 | - 'event_espresso' |
|
250 | - ), |
|
251 | - '<a href="admin.php?page=espresso_support">', |
|
252 | - '</a>' |
|
253 | - ) ?> |
|
247 | + __( |
|
248 | + 'If you would still like your venues on a page like in Event Espresso 3.1 or earlier, simply create a page and place a shortcode to display them on the page, as described %s here %s', |
|
249 | + 'event_espresso' |
|
250 | + ), |
|
251 | + '<a href="admin.php?page=espresso_support">', |
|
252 | + '</a>' |
|
253 | + ) ?> |
|
254 | 254 | </p> |
255 | 255 | </td> |
256 | 256 | </tr> |
@@ -5,24 +5,24 @@ discard block |
||
5 | 5 | <th><?php _e('Name', 'event_espresso'); ?></th> |
6 | 6 | <th colspan="2"><span class="small-text"> |
7 | 7 | <?php _e( |
8 | - 'State Appears in<br/>Dropdown Select Lists ', |
|
9 | - 'event_espresso' |
|
10 | - ); ?></span></th> |
|
8 | + 'State Appears in<br/>Dropdown Select Lists ', |
|
9 | + 'event_espresso' |
|
10 | + ); ?></span></th> |
|
11 | 11 | </tr> |
12 | 12 | </thead> |
13 | 13 | <tbody> |
14 | 14 | <?php |
15 | - if ($states) { |
|
16 | - foreach ($states as $STA_ID => $state) { |
|
17 | - ?> |
|
15 | + if ($states) { |
|
16 | + foreach ($states as $STA_ID => $state) { |
|
17 | + ?> |
|
18 | 18 | <tr id="state-<?php echo $STA_ID; ?>-tr" class="country-state-columns"> |
19 | 19 | <?php |
20 | - foreach ($state['inputs'] as $ID => $input) { |
|
21 | - if ($ID != 'STA_ID' && $ID != 'CNT_ISO') { |
|
22 | - echo EEH_Form_Fields::generate_form_input($input); |
|
23 | - } |
|
24 | - } |
|
25 | - ?> |
|
20 | + foreach ($state['inputs'] as $ID => $input) { |
|
21 | + if ($ID != 'STA_ID' && $ID != 'CNT_ISO') { |
|
22 | + echo EEH_Form_Fields::generate_form_input($input); |
|
23 | + } |
|
24 | + } |
|
25 | + ?> |
|
26 | 26 | <td class="delete-state-td"> |
27 | 27 | <a id="delete-state-<?php echo $STA_ID; ?>-lnk" |
28 | 28 | class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" rel="<?php echo $STA_ID; ?>" |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | </td> |
32 | 32 | </tr> |
33 | 33 | <?php |
34 | - } |
|
35 | - ?> |
|
34 | + } |
|
35 | + ?> |
|
36 | 36 | </tbody> |
37 | 37 | </table> |
38 | 38 | <br/> |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | value="<?php _e('Save States/Provinces', 'event_espresso'); ?>"/><br/> |
41 | 41 | |
42 | 42 | <?php |
43 | - } |
|
43 | + } |
|
44 | 44 | ?> |
45 | 45 | <table class="form-table add-new-state-tbl"> |
46 | 46 | <tbody> |
@@ -17,39 +17,39 @@ |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - public function __construct() |
|
21 | - { |
|
22 | - // define some event categories related constants |
|
23 | - define('EE_VENUES_PG_SLUG', 'espresso_venues'); |
|
24 | - define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page=' . EE_VENUES_PG_SLUG)); |
|
25 | - define('EE_VENUES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'venues/assets/'); |
|
26 | - define('EE_VENUES_TEMPLATE_PATH', EE_ADMIN_PAGES . 'venues/templates/'); |
|
20 | + public function __construct() |
|
21 | + { |
|
22 | + // define some event categories related constants |
|
23 | + define('EE_VENUES_PG_SLUG', 'espresso_venues'); |
|
24 | + define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page=' . EE_VENUES_PG_SLUG)); |
|
25 | + define('EE_VENUES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'venues/assets/'); |
|
26 | + define('EE_VENUES_TEMPLATE_PATH', EE_ADMIN_PAGES . 'venues/templates/'); |
|
27 | 27 | |
28 | - parent::__construct(); |
|
29 | - $this->_folder_path = EE_ADMIN_PAGES . $this->_folder_name . DS; |
|
30 | - } |
|
28 | + parent::__construct(); |
|
29 | + $this->_folder_path = EE_ADMIN_PAGES . $this->_folder_name . DS; |
|
30 | + } |
|
31 | 31 | |
32 | - protected function _set_init_properties() |
|
33 | - { |
|
34 | - $this->label = __('Event Venues', 'event_espresso'); |
|
35 | - $this->menu_label = __('Venues', 'event_espresso'); |
|
36 | - $this->menu_slug = EE_VENUES_PG_SLUG; |
|
37 | - } |
|
32 | + protected function _set_init_properties() |
|
33 | + { |
|
34 | + $this->label = __('Event Venues', 'event_espresso'); |
|
35 | + $this->menu_label = __('Venues', 'event_espresso'); |
|
36 | + $this->menu_slug = EE_VENUES_PG_SLUG; |
|
37 | + } |
|
38 | 38 | |
39 | 39 | |
40 | - protected function _set_menu_map() |
|
41 | - { |
|
42 | - $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
43 | - array( |
|
44 | - 'menu_group' => 'management', |
|
45 | - 'menu_order' => 40, |
|
46 | - 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
|
47 | - 'parent_slug' => 'espresso_events', |
|
48 | - 'menu_slug' => EE_VENUES_PG_SLUG, |
|
49 | - 'menu_label' => __('Venues', 'event_espresso'), |
|
50 | - 'capability' => 'ee_read_venues', |
|
51 | - 'admin_init_page' => $this, |
|
52 | - ) |
|
53 | - ); |
|
54 | - } |
|
40 | + protected function _set_menu_map() |
|
41 | + { |
|
42 | + $this->_menu_map = new EE_Admin_Page_Sub_Menu( |
|
43 | + array( |
|
44 | + 'menu_group' => 'management', |
|
45 | + 'menu_order' => 40, |
|
46 | + 'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY, |
|
47 | + 'parent_slug' => 'espresso_events', |
|
48 | + 'menu_slug' => EE_VENUES_PG_SLUG, |
|
49 | + 'menu_label' => __('Venues', 'event_espresso'), |
|
50 | + 'capability' => 'ee_read_venues', |
|
51 | + 'admin_init_page' => $this, |
|
52 | + ) |
|
53 | + ); |
|
54 | + } |
|
55 | 55 | } |
@@ -21,12 +21,12 @@ |
||
21 | 21 | { |
22 | 22 | // define some event categories related constants |
23 | 23 | define('EE_VENUES_PG_SLUG', 'espresso_venues'); |
24 | - define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page=' . EE_VENUES_PG_SLUG)); |
|
25 | - define('EE_VENUES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'venues/assets/'); |
|
26 | - define('EE_VENUES_TEMPLATE_PATH', EE_ADMIN_PAGES . 'venues/templates/'); |
|
24 | + define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page='.EE_VENUES_PG_SLUG)); |
|
25 | + define('EE_VENUES_ASSETS_URL', EE_ADMIN_PAGES_URL.'venues/assets/'); |
|
26 | + define('EE_VENUES_TEMPLATE_PATH', EE_ADMIN_PAGES.'venues/templates/'); |
|
27 | 27 | |
28 | 28 | parent::__construct(); |
29 | - $this->_folder_path = EE_ADMIN_PAGES . $this->_folder_name . DS; |
|
29 | + $this->_folder_path = EE_ADMIN_PAGES.$this->_folder_name.DS; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function _set_init_properties() |
@@ -8,8 +8,8 @@ |
||
8 | 8 | </label> |
9 | 9 | <textarea id="url-event" cols="30" rows="4" tabindex="112" name="vnu_virtual_url"> |
10 | 10 | <?php $_venue->f( |
11 | - 'VNU_virtual_url' |
|
12 | - ); ?></textarea> |
|
11 | + 'VNU_virtual_url' |
|
12 | + ); ?></textarea> |
|
13 | 13 | </p> |
14 | 14 | <p> |
15 | 15 | <label for="call-in-num" style="display:inline-block; width:100px;"> |
@@ -3,10 +3,10 @@ discard block |
||
3 | 3 | <td valign="top"> |
4 | 4 | <fieldset> |
5 | 5 | <?php |
6 | - if (isset(EE_Registry::instance()->CFG->map_settings) |
|
7 | - && isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
|
8 | - && EE_Registry::instance()->CFG->map_settings->use_google_maps |
|
9 | - ) { ?> |
|
6 | + if (isset(EE_Registry::instance()->CFG->map_settings) |
|
7 | + && isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
|
8 | + && EE_Registry::instance()->CFG->map_settings->use_google_maps |
|
9 | + ) { ?> |
|
10 | 10 | <p> |
11 | 11 | <label for="enable_for_gmap"> |
12 | 12 | <?php _e('Display Google Map for this venue? ', 'event_espresso') ?> |
@@ -19,22 +19,22 @@ discard block |
||
19 | 19 | </p> --> |
20 | 20 | <?php } ?> |
21 | 21 | <?php |
22 | - if (! isset(EE_Registry::instance()->CFG->map_settings) |
|
23 | - || ! isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
|
24 | - || ! EE_Registry::instance()->CFG->map_settings->use_google_maps |
|
25 | - ) { ?> |
|
22 | + if (! isset(EE_Registry::instance()->CFG->map_settings) |
|
23 | + || ! isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
|
24 | + || ! EE_Registry::instance()->CFG->map_settings->use_google_maps |
|
25 | + ) { ?> |
|
26 | 26 | <p class="ee-notice"> |
27 | 27 | <?php |
28 | - echo sprintf( |
|
29 | - __( |
|
30 | - 'To display a Google Map for event venues, go to %sEvent Espresso General Settings%sGoogle Maps%s, and set "Activate Google Maps" to "Yes"', |
|
31 | - 'event_espresso' |
|
32 | - ), |
|
33 | - '<b>', |
|
34 | - '</b> » <b>', |
|
35 | - '</b>' |
|
36 | - ); |
|
37 | - ?> |
|
28 | + echo sprintf( |
|
29 | + __( |
|
30 | + 'To display a Google Map for event venues, go to %sEvent Espresso General Settings%sGoogle Maps%s, and set "Activate Google Maps" to "Yes"', |
|
31 | + 'event_espresso' |
|
32 | + ), |
|
33 | + '<b>', |
|
34 | + '</b> » <b>', |
|
35 | + '</b>' |
|
36 | + ); |
|
37 | + ?> |
|
38 | 38 | </p> |
39 | 39 | <?php } ?> |
40 | 40 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | </p> --> |
20 | 20 | <?php } ?> |
21 | 21 | <?php |
22 | - if (! isset(EE_Registry::instance()->CFG->map_settings) |
|
22 | + if ( ! isset(EE_Registry::instance()->CFG->map_settings) |
|
23 | 23 | || ! isset(EE_Registry::instance()->CFG->map_settings->use_google_maps) |
24 | 24 | || ! EE_Registry::instance()->CFG->map_settings->use_google_maps |
25 | 25 | ) { ?> |
@@ -11,20 +11,20 @@ discard block |
||
11 | 11 | </th> |
12 | 12 | <td> |
13 | 13 | <?php echo EEH_Form_Fields::select_input( |
14 | - 'use_google_maps', |
|
15 | - $values, |
|
16 | - $map_settings->use_google_maps, |
|
17 | - 'id="ee-display-map-no-shortcodes"' |
|
18 | - ); ?> |
|
14 | + 'use_google_maps', |
|
15 | + $values, |
|
16 | + $map_settings->use_google_maps, |
|
17 | + 'id="ee-display-map-no-shortcodes"' |
|
18 | + ); ?> |
|
19 | 19 | <p class="description"> |
20 | 20 | <?php _e( |
21 | - 'Turn Google maps on or off site wide for Event Espresso.', |
|
22 | - 'event_espresso' |
|
23 | - ); ?></p> |
|
21 | + 'Turn Google maps on or off site wide for Event Espresso.', |
|
22 | + 'event_espresso' |
|
23 | + ); ?></p> |
|
24 | 24 | </td> |
25 | 25 | </tr> |
26 | 26 | <?php |
27 | - if (apply_filters('FHEE__google_map__show_api_key_input', true)) { ?> |
|
27 | + if (apply_filters('FHEE__google_map__show_api_key_input', true)) { ?> |
|
28 | 28 | <tr> |
29 | 29 | <th> |
30 | 30 | <label for="ee-google-map-api-key"> |
@@ -36,15 +36,15 @@ discard block |
||
36 | 36 | value="<?php echo $map_settings->google_map_api_key; ?>"/> |
37 | 37 | <p class="description"> |
38 | 38 | <?php |
39 | - printf( |
|
40 | - __( |
|
41 | - 'An API key is now required to use the Google Maps API: %1$sclick here to get an API key%2$s', |
|
42 | - 'event_espresso' |
|
43 | - ), |
|
44 | - '<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">', |
|
45 | - '</a>' |
|
46 | - ); |
|
47 | - ?> |
|
39 | + printf( |
|
40 | + __( |
|
41 | + 'An API key is now required to use the Google Maps API: %1$sclick here to get an API key%2$s', |
|
42 | + 'event_espresso' |
|
43 | + ), |
|
44 | + '<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank">', |
|
45 | + '</a>' |
|
46 | + ); |
|
47 | + ?> |
|
48 | 48 | </p> |
49 | 49 | </td> |
50 | 50 | </tr> |
@@ -105,11 +105,11 @@ discard block |
||
105 | 105 | </th> |
106 | 106 | <td> |
107 | 107 | <?php echo EEH_Form_Fields::select_input( |
108 | - 'event_details_display_nav', |
|
109 | - $values, |
|
110 | - $map_settings->event_details_display_nav, |
|
111 | - 'id="event_details_display_nav" ' |
|
112 | - ); ?> |
|
108 | + 'event_details_display_nav', |
|
109 | + $values, |
|
110 | + $map_settings->event_details_display_nav, |
|
111 | + 'id="event_details_display_nav" ' |
|
112 | + ); ?> |
|
113 | 113 | </td> |
114 | 114 | </tr> |
115 | 115 | |
@@ -121,11 +121,11 @@ discard block |
||
121 | 121 | </th> |
122 | 122 | <td> |
123 | 123 | <?php echo EEH_Form_Fields::select_input( |
124 | - 'event_details_nav_size', |
|
125 | - $values, |
|
126 | - $map_settings->event_details_nav_size, |
|
127 | - 'id="event_details_nav_size"' |
|
128 | - ); ?> |
|
124 | + 'event_details_nav_size', |
|
125 | + $values, |
|
126 | + $map_settings->event_details_nav_size, |
|
127 | + 'id="event_details_nav_size"' |
|
128 | + ); ?> |
|
129 | 129 | </td> |
130 | 130 | </tr> |
131 | 131 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | <td> |
137 | 137 | <label for="event_details_control_type-default" class="ee-admin-radio-lbl"> |
138 | 138 | <?php $checked = $map_settings->event_details_control_type == 'default' ? 'checked="checked"' |
139 | - : ''; ?> |
|
139 | + : ''; ?> |
|
140 | 140 | <input id="event_details_control_type-default" type="radio" name="event_details_control_type" |
141 | 141 | value="default"<?php echo $checked; ?>/> |
142 | 142 | <?php _e(' Default', 'event_espresso') ?> |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | <label for="event_details_control_type-horizontal" class="ee-admin-radio-lbl"> |
146 | 146 | <?php $checked = $map_settings->event_details_control_type == 'horizontal' ? 'checked="checked"' |
147 | - : ''; ?> |
|
147 | + : ''; ?> |
|
148 | 148 | <input id="event_details_control_type-horizontal" type="radio" name="event_details_control_type" |
149 | 149 | value="horizontal"<?php echo $checked; ?>/> |
150 | 150 | <?php _e(' Horizontal', 'event_espresso') ?> |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | <label for="event_details_control_type-dropdown" class="ee-admin-radio-lbl"> |
154 | 154 | <?php $checked = $map_settings->event_details_control_type == 'dropdown' ? 'checked="checked"' |
155 | - : ''; ?> |
|
155 | + : ''; ?> |
|
156 | 156 | <input id="event_details_control_type-dropdown" type="radio" name="event_details_control_type" |
157 | 157 | value="dropdown"<?php echo $checked; ?>/> |
158 | 158 | <?php _e(' Dropdown', 'event_espresso') ?> |
@@ -246,11 +246,11 @@ discard block |
||
246 | 246 | </th> |
247 | 247 | <td> |
248 | 248 | <?php echo EEH_Form_Fields::select_input( |
249 | - 'event_list_display_nav', |
|
250 | - $values, |
|
251 | - $map_settings->event_list_display_nav, |
|
252 | - 'id="event_list_display_nav"' |
|
253 | - ); ?> |
|
249 | + 'event_list_display_nav', |
|
250 | + $values, |
|
251 | + $map_settings->event_list_display_nav, |
|
252 | + 'id="event_list_display_nav"' |
|
253 | + ); ?> |
|
254 | 254 | </td> |
255 | 255 | </tr> |
256 | 256 | |
@@ -262,11 +262,11 @@ discard block |
||
262 | 262 | </th> |
263 | 263 | <td> |
264 | 264 | <?php echo EEH_Form_Fields::select_input( |
265 | - 'event_list_nav_size', |
|
266 | - $values, |
|
267 | - $map_settings->event_list_nav_size, |
|
268 | - 'id="event_list_nav_size"' |
|
269 | - ); ?> |
|
265 | + 'event_list_nav_size', |
|
266 | + $values, |
|
267 | + $map_settings->event_list_nav_size, |
|
268 | + 'id="event_list_nav_size"' |
|
269 | + ); ?> |
|
270 | 270 | </td> |
271 | 271 | </tr> |
272 | 272 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | |
285 | 285 | <label for="event_list_control_type-horizontal" class="ee-admin-radio-lbl"> |
286 | 286 | <?php $checked = $map_settings->event_list_control_type == 'horizontal' ? 'checked="checked"' |
287 | - : ''; ?> |
|
287 | + : ''; ?> |
|
288 | 288 | <input id="event_list_control_type-horizontal" type="radio" name="event_list_control_type" |
289 | 289 | value="horizontal"<?php echo $checked; ?>/> |
290 | 290 | <?php _e(' Horizontal', 'event_espresso') ?> |
@@ -15,16 +15,16 @@ discard block |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | |
18 | - protected function _set_tips_array() |
|
19 | - { |
|
20 | - $this->_qtipsa = array( |
|
21 | - 0 => array( |
|
22 | - 'content_id' => 'registration-trash-lock', |
|
23 | - 'target' => '.ee-lock-icon', |
|
24 | - 'content' => $this->_registration_trash_message(), |
|
25 | - ), |
|
26 | - /** removing status strips for now because they are triggered anywhere on the row. */ |
|
27 | - /**1 => array( |
|
18 | + protected function _set_tips_array() |
|
19 | + { |
|
20 | + $this->_qtipsa = array( |
|
21 | + 0 => array( |
|
22 | + 'content_id' => 'registration-trash-lock', |
|
23 | + 'target' => '.ee-lock-icon', |
|
24 | + 'content' => $this->_registration_trash_message(), |
|
25 | + ), |
|
26 | + /** removing status strips for now because they are triggered anywhere on the row. */ |
|
27 | + /**1 => array( |
|
28 | 28 | * 'content_id' => 'registration-status-' . EEM_Registration::status_id_approved, |
29 | 29 | * 'target' => '.reg-status-' . EEM_Registration::status_id_approved, |
30 | 30 | * 'content' => $this->_registration_status_legend(EEM_Registration::status_id_approved), |
@@ -74,37 +74,37 @@ discard block |
||
74 | 74 | * ) |
75 | 75 | * ) |
76 | 76 | * )/**/ |
77 | - ); |
|
78 | - } |
|
77 | + ); |
|
78 | + } |
|
79 | 79 | |
80 | 80 | |
81 | - private function _registration_trash_message() |
|
82 | - { |
|
83 | - return '<p>' |
|
84 | - . __( |
|
85 | - 'This lock-icon means that this registration cannot be trashed. Registrations that belong to a transaction that has payments cannot be trashed. If you wish to trash this registration then you must delete all payments attached to the related transaction first.', |
|
86 | - 'event_espresso' |
|
87 | - ) . '</p>'; |
|
88 | - } |
|
81 | + private function _registration_trash_message() |
|
82 | + { |
|
83 | + return '<p>' |
|
84 | + . __( |
|
85 | + 'This lock-icon means that this registration cannot be trashed. Registrations that belong to a transaction that has payments cannot be trashed. If you wish to trash this registration then you must delete all payments attached to the related transaction first.', |
|
86 | + 'event_espresso' |
|
87 | + ) . '</p>'; |
|
88 | + } |
|
89 | 89 | |
90 | 90 | |
91 | - /** |
|
92 | - * output the relevant ee-status-legend with the designated status highlighted. |
|
93 | - * |
|
94 | - * @param EEM_Registration constant $status What status is set (by class) |
|
95 | - * @return string The status legend with the related status highlighted |
|
96 | - */ |
|
97 | - private function _registration_status_legend($status) |
|
98 | - { |
|
91 | + /** |
|
92 | + * output the relevant ee-status-legend with the designated status highlighted. |
|
93 | + * |
|
94 | + * @param EEM_Registration constant $status What status is set (by class) |
|
95 | + * @return string The status legend with the related status highlighted |
|
96 | + */ |
|
97 | + private function _registration_status_legend($status) |
|
98 | + { |
|
99 | 99 | |
100 | - $status_array = array( |
|
101 | - 'approved_status' => EEM_Registration::status_id_approved, |
|
102 | - 'pending_status' => EEM_Registration::status_id_pending_payment, |
|
103 | - 'not_approved' => EEM_Registration::status_id_not_approved, |
|
104 | - 'declined_status' => EEM_Registration::status_id_declined, |
|
105 | - 'cancelled_status' => EEM_Registration::status_id_cancelled, |
|
106 | - ); |
|
100 | + $status_array = array( |
|
101 | + 'approved_status' => EEM_Registration::status_id_approved, |
|
102 | + 'pending_status' => EEM_Registration::status_id_pending_payment, |
|
103 | + 'not_approved' => EEM_Registration::status_id_not_approved, |
|
104 | + 'declined_status' => EEM_Registration::status_id_declined, |
|
105 | + 'cancelled_status' => EEM_Registration::status_id_cancelled, |
|
106 | + ); |
|
107 | 107 | |
108 | - return EEH_Template::status_legend($status_array, $status); |
|
109 | - } |
|
108 | + return EEH_Template::status_legend($status_array, $status); |
|
109 | + } |
|
110 | 110 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | . __( |
85 | 85 | 'This lock-icon means that this registration cannot be trashed. Registrations that belong to a transaction that has payments cannot be trashed. If you wish to trash this registration then you must delete all payments attached to the related transaction first.', |
86 | 86 | 'event_espresso' |
87 | - ) . '</p>'; |
|
87 | + ).'</p>'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 |