Completed
Branch FET-8365-add-indexes (4b9253)
by
unknown
527:08 queued 512:28
created
core/admin/EE_Admin_Page_CPT_Init.core.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	public function do_initial_loads() {
33 33
 		//we want to use the corresponding admin page object (but not route it!).  To do this we just set _routing to false.  That way this page object is being loaded on all pages to make sure we hook into admin properly.  But note... we are ONLY doing this if the given page is NOT pages we WANT to load ;)
34 34
 		//This is important because we have hooks that help redirect custom post type saves
35
-		if ( !isset( $_REQUEST['page'] ) || ( isset( $_REQUEST['page'] ) && $_REQUEST['page'] != $this->_menu_map->menu_slug ) ) {
35
+		if ( ! isset($_REQUEST['page']) || (isset($_REQUEST['page']) && $_REQUEST['page'] != $this->_menu_map->menu_slug)) {
36 36
 			$this->_routing = FALSE;
37 37
 			$this->_initialize_admin_page();
38 38
 		} else {
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
40 40
 			$this->_initialize_admin_page();
41 41
 			//added for 4.1 to completely disable autosave for our pages. This can be removed once we fully enable autosave functionality
42 42
 			remove_filter('wp_print_scripts', 'wp_just_in_time_script_localization');
43
-			add_filter('wp_print_scripts', array($this, 'wp_just_in_time_script_localization'), 100 );
43
+			add_filter('wp_print_scripts', array($this, 'wp_just_in_time_script_localization'), 100);
44 44
 			//end removal of autosave functionality.
45 45
 		}
46 46
 	}
47 47
 
48 48
 	public function wp_just_in_time_script_localization() {
49
-		wp_localize_script( 'autosave', 'autosaveL10n', array(
49
+		wp_localize_script('autosave', 'autosaveL10n', array(
50 50
 			'autosaveInterval' => 172800,
51 51
 			'savingText' => __('Saving Draft…'),
52 52
 			'saveAlert' => __('The changes you made will be lost if you navigate away from this page.')
53
-		) );
53
+		));
54 54
 	}
55 55
 
56 56
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
  * Event Espresso
4 6
  *
Please login to merge, or discard this patch.
core/admin/EE_Admin_Page_Loader.core.php 2 patches
Braces   +14 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
@@ -237,8 +238,9 @@  discard block
 block discarded – undo
237 238
 		//first let's order the menu groups by their internal menu order (note usort type hinting to ensure the incoming array is EE_Admin_Page_Menu_Map objects )
238 239
 		usort( $this->_admin_menu_groups, array( $this, '_sort_menu_maps' ) );
239 240
 		foreach ( $this->_admin_menu_groups as $group ) {
240
-			if ( ! $group instanceof EE_Admin_Page_Menu_Group )
241
-				throw new EE_Error( sprintf( __('Unable to continue sorting the menu groups array because there is an invalid value for the menu groups.  All values in this array are required to be a EE_Admin_Page_Menu_Group object.  Instead there was: %s', 'event_espresso'), print_r($group, TRUE) ) );
241
+			if ( ! $group instanceof EE_Admin_Page_Menu_Group ) {
242
+							throw new EE_Error( sprintf( __('Unable to continue sorting the menu groups array because there is an invalid value for the menu groups.  All values in this array are required to be a EE_Admin_Page_Menu_Group object.  Instead there was: %s', 'event_espresso'), print_r($group, TRUE) ) );
243
+			}
242 244
 			$groups[$group->menu_slug] = $group;
243 245
 		}
244 246
 		return $groups;
@@ -494,8 +496,9 @@  discard block
 block discarded – undo
494 496
 		//let's sort the groups, make sure it's a valid group, add header (if to show).
495 497
 		foreach ( $pages_array as $group => $menu_maps ) {
496 498
 			//valid_group?
497
-			if ( ! array_key_exists( $group, $menu_groups ) )
498
-				continue;
499
+			if ( ! array_key_exists( $group, $menu_groups ) ) {
500
+							continue;
501
+			}
499 502
 
500 503
 			//sort pages.
501 504
 			usort( $menu_maps, array( $this, '_sort_menu_maps' ) );
@@ -510,8 +513,9 @@  discard block
 block discarded – undo
510 513
 
511 514
 		//now let's setup the _prepped_menu_maps property
512 515
 		foreach ( $menu_groups as $group => $group_objs ) {
513
-			if ( isset( $pages_array[$group] ) )
514
-				$this->_prepped_menu_maps = array_merge( $this->_prepped_menu_maps, $pages_array[$group] );
516
+			if ( isset( $pages_array[$group] ) ) {
517
+							$this->_prepped_menu_maps = array_merge( $this->_prepped_menu_maps, $pages_array[$group] );
518
+			}
515 519
 		}/**/
516 520
 
517 521
 	}
@@ -656,8 +660,9 @@  discard block
 block discarded – undo
656 660
 	 * @return int    sort order
657 661
 	 */
658 662
 	private function _sort_menu_maps( EE_Admin_Page_Menu_Map $a, EE_Admin_Page_Menu_Map $b ) {
659
-		if ( $a->menu_order == $b->menu_order )
660
-			return 0;
663
+		if ( $a->menu_order == $b->menu_order ) {
664
+					return 0;
665
+		}
661 666
 		return ($a->menu_order < $b->menu_order) ? -1 : 1;
662 667
 	}
663 668
 
Please login to merge, or discard this patch.
Spacing   +121 added lines, -121 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
 		//let's do a scan and see what installed pages we have
120 120
 		$this->_get_installed_pages();
121 121
 		//set menus (has to be done on every load - we're not actually loading the page just setting the menus and where they point to).
122
-		add_action('admin_menu', array( $this, 'set_menus' ));
123
-		add_action( 'network_admin_menu', array( $this, 'set_network_menus' ) );
122
+		add_action('admin_menu', array($this, 'set_menus'));
123
+		add_action('network_admin_menu', array($this, 'set_network_menus'));
124 124
 	}
125 125
 
126 126
 
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
 	 * @return void
134 134
 	 */
135 135
 	private function _define_caffeinated_constants() {
136
-		define( 'EE_CORE_CAF_ADMIN', EE_PLUGIN_DIR_PATH . 'caffeinated/admin/');
137
-		define( 'EE_CORE_CAF_ADMIN_URL', EE_PLUGIN_DIR_URL . 'caffeinated/admin/');
138
-		define( 'EE_CORE_CAF_ADMIN_NEW', EE_CORE_CAF_ADMIN . 'new/');
139
-		define( 'EE_CORE_CAF_ADMIN_EXTEND', EE_CORE_CAF_ADMIN . 'extend/');
140
-		define( 'EE_CORE_CAF_ADMIN_EXTEND_URL', EE_CORE_CAF_ADMIN_URL . 'extend/');
141
-		define( 'EE_CORE_CAF_ADMIN_HOOKS', EE_CORE_CAF_ADMIN . 'hooks/');
136
+		define('EE_CORE_CAF_ADMIN', EE_PLUGIN_DIR_PATH.'caffeinated/admin/');
137
+		define('EE_CORE_CAF_ADMIN_URL', EE_PLUGIN_DIR_URL.'caffeinated/admin/');
138
+		define('EE_CORE_CAF_ADMIN_NEW', EE_CORE_CAF_ADMIN.'new/');
139
+		define('EE_CORE_CAF_ADMIN_EXTEND', EE_CORE_CAF_ADMIN.'extend/');
140
+		define('EE_CORE_CAF_ADMIN_EXTEND_URL', EE_CORE_CAF_ADMIN_URL.'extend/');
141
+		define('EE_CORE_CAF_ADMIN_HOOKS', EE_CORE_CAF_ADMIN.'hooks/');
142 142
 	}
143 143
 
144 144
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
 		//set array of EE_Admin_Page_Menu_Group objects
158 158
 		$groups = array(
159
-			'main' => new EE_Admin_Page_Menu_Group( array(
159
+			'main' => new EE_Admin_Page_Menu_Group(array(
160 160
 				'menu_label' => __('Main', 'event_espresso'),
161 161
 				'show_on_menu' => EE_Admin_Page_Menu_Map::NONE,
162 162
 				'menu_slug' => 'main',
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 				'menu_order' => 0,
165 165
 				'parent_slug' => 'espresso_events',
166 166
 				)),
167
-			'management' => new EE_Admin_Page_Menu_Group( array(
167
+			'management' => new EE_Admin_Page_Menu_Group(array(
168 168
 				'menu_label' => __('Management', 'event_espresso'),
169 169
 				'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
170 170
 				'menu_slug' => 'management',
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 				'menu_order' => 10,
173 173
 				'parent_slug' => 'espresso_events'
174 174
 				)),
175
-			'settings' => new EE_Admin_Page_Menu_Group( array(
175
+			'settings' => new EE_Admin_Page_Menu_Group(array(
176 176
 				'menu_label' => __('Settings', 'event_espresso'),
177 177
 				'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
178 178
 				'menu_slug' => 'settings',
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 				'menu_order' => 30,
181 181
 				'parent_slug' => 'espresso_events'
182 182
 				)),
183
-			'templates' => new EE_Admin_Page_Menu_Group( array(
183
+			'templates' => new EE_Admin_Page_Menu_Group(array(
184 184
 				'menu_label' => __('Templates', 'event_espresso'),
185 185
 				'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
186 186
 				'menu_slug' => 'templates',
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 				'menu_order' => 40,
189 189
 				'parent_slug' => 'espresso_events'
190 190
 				)),
191
-			'extras' => new EE_Admin_Page_Menu_Group( array(
191
+			'extras' => new EE_Admin_Page_Menu_Group(array(
192 192
 				'menu_label' => __('Extras', 'event_espresso'),
193 193
 				'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN,
194 194
 				'menu_slug' => 'extras',
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 				'parent_slug' => 'espresso_events',
198 198
 				'maintenance_mode_parent' => 'espresso_maintenance_settings'
199 199
 				)),
200
-			'tools' => new EE_Admin_Page_Menu_Group( array(
200
+			'tools' => new EE_Admin_Page_Menu_Group(array(
201 201
 				'menu_label' => __("Tools", "event_espresso"),
202 202
 				'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
203 203
 				'menu_slug' => 'tools',
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 				'menu_order' => 60,
206 206
 				'parent_slug' => 'espresso_events'
207 207
 				)),
208
-			'addons' => new EE_Admin_Page_Menu_Group( array(
208
+			'addons' => new EE_Admin_Page_Menu_Group(array(
209 209
 				'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN,
210 210
 				'menu_label' => __('Add-ons', 'event_espresso'),
211 211
 				'menu_slug' => 'addons',
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 				))
216 216
 			);
217 217
 
218
-		$this->_admin_menu_groups = apply_filters( 'FHEE__EE_Admin_Page_Loader___set_menu_groups__admin_menu_groups', $groups );
218
+		$this->_admin_menu_groups = apply_filters('FHEE__EE_Admin_Page_Loader___set_menu_groups__admin_menu_groups', $groups);
219 219
 	}
220 220
 
221 221
 
@@ -233,10 +233,10 @@  discard block
 block discarded – undo
233 233
 	private function _rearrange_menu_groups() {
234 234
 		$groups = array();
235 235
 		//first let's order the menu groups by their internal menu order (note usort type hinting to ensure the incoming array is EE_Admin_Page_Menu_Map objects )
236
-		usort( $this->_admin_menu_groups, array( $this, '_sort_menu_maps' ) );
237
-		foreach ( $this->_admin_menu_groups as $group ) {
238
-			if ( ! $group instanceof EE_Admin_Page_Menu_Group )
239
-				throw new EE_Error( sprintf( __('Unable to continue sorting the menu groups array because there is an invalid value for the menu groups.  All values in this array are required to be a EE_Admin_Page_Menu_Group object.  Instead there was: %s', 'event_espresso'), print_r($group, TRUE) ) );
236
+		usort($this->_admin_menu_groups, array($this, '_sort_menu_maps'));
237
+		foreach ($this->_admin_menu_groups as $group) {
238
+			if ( ! $group instanceof EE_Admin_Page_Menu_Group)
239
+				throw new EE_Error(sprintf(__('Unable to continue sorting the menu groups array because there is an invalid value for the menu groups.  All values in this array are required to be a EE_Admin_Page_Menu_Group object.  Instead there was: %s', 'event_espresso'), print_r($group, TRUE)));
240 240
 			$groups[$group->menu_slug] = $group;
241 241
 		}
242 242
 		return $groups;
@@ -254,48 +254,48 @@  discard block
 block discarded – undo
254 254
 	 */
255 255
 	private function _get_installed_pages() {
256 256
 		$installed_refs = array();
257
-		$exclude = array( 'assets', 'templates' );
257
+		$exclude = array('assets', 'templates');
258 258
 		// grab everything in the  admin core directory
259
-		$admin_screens = glob( EE_ADMIN_PAGES . '*', GLOB_ONLYDIR );
260
-		if ( $admin_screens ) {
261
-			foreach( $admin_screens as $admin_screen ) {
259
+		$admin_screens = glob(EE_ADMIN_PAGES.'*', GLOB_ONLYDIR);
260
+		if ($admin_screens) {
261
+			foreach ($admin_screens as $admin_screen) {
262 262
 				// files and anything in the exclude array need not apply
263
-				if ( is_dir( $admin_screen ) && ! in_array( basename( $admin_screen ), $exclude )) {
263
+				if (is_dir($admin_screen) && ! in_array(basename($admin_screen), $exclude)) {
264 264
 					// these folders represent the different EE admin pages
265
-					$installed_refs[ basename( $admin_screen ) ] = $admin_screen;
265
+					$installed_refs[basename($admin_screen)] = $admin_screen;
266 266
 				}
267 267
 			}
268 268
 		}
269 269
 
270
-		if ( empty( $installed_refs ) ) {
270
+		if (empty($installed_refs)) {
271 271
 			$error_msg[] = __('There are no EE_Admin pages detected, it looks like EE did not install properly', 'event_espresso');
272
-			$error_msg[] = $error_msg[0] . "\r\n" . sprintf( __('Check that the %s folder exists and is writable. Maybe try deactivating, then reactivating Event Espresso again.', 'event_espresso'), EE_ADMIN_PAGES );
273
-			throw new EE_Error( implode( '||', $error_msg ));
272
+			$error_msg[] = $error_msg[0]."\r\n".sprintf(__('Check that the %s folder exists and is writable. Maybe try deactivating, then reactivating Event Espresso again.', 'event_espresso'), EE_ADMIN_PAGES);
273
+			throw new EE_Error(implode('||', $error_msg));
274 274
 		}
275 275
 
276 276
 		//this just checks the caffeinated folder and takes care of setting up any caffeinated stuff.
277 277
 		$installed_refs = $this->_set_caffeinated($installed_refs);
278 278
 		//allow plugins to add in their own pages (note at this point they will need to have an autoloader defined for their class) OR hook into EEH_Autoloader::load_admin_page() to add their path.;
279
-		$installed_refs = apply_filters( 'FHEE__EE_Admin_Page_Loader___get_installed_pages__installed_refs', $installed_refs );
280
-		$this->_caffeinated_extends = apply_filters( 'FHEE__EE_Admin_Page_Loader___get_installed_pages__caffeinated_extends', $this->_caffeinated_extends );
279
+		$installed_refs = apply_filters('FHEE__EE_Admin_Page_Loader___get_installed_pages__installed_refs', $installed_refs);
280
+		$this->_caffeinated_extends = apply_filters('FHEE__EE_Admin_Page_Loader___get_installed_pages__caffeinated_extends', $this->_caffeinated_extends);
281 281
 
282 282
 		//loop through admin pages and setup the $_installed_pages array.
283 283
 		$hooks_ref = array();
284
-		foreach ( $installed_refs as $page => $path ) {
284
+		foreach ($installed_refs as $page => $path) {
285 285
 			// set autoloaders for our admin page classes based on included path information
286
-			EEH_Autoloader::instance()->register_autoloaders_for_each_file_in_folder( $path );
286
+			EEH_Autoloader::instance()->register_autoloaders_for_each_file_in_folder($path);
287 287
 			// build list of installed pages
288
-			$this->_installed_pages[$page] = $this->_load_admin_page( $page, $path );
288
+			$this->_installed_pages[$page] = $this->_load_admin_page($page, $path);
289 289
 			// verify returned object
290
-			if ( $this->_installed_pages[$page] instanceof EE_Admin_Page_Init ) {
291
-				if ( ! $this->_installed_pages[$page]->get_menu_map() instanceof EE_Admin_Page_Menu_Map ) {
290
+			if ($this->_installed_pages[$page] instanceof EE_Admin_Page_Init) {
291
+				if ( ! $this->_installed_pages[$page]->get_menu_map() instanceof EE_Admin_Page_Menu_Map) {
292 292
 					continue;
293 293
 				}
294 294
 
295 295
 				//skip if in full maintenance mode and maintenance_mode_parent is set
296 296
 				$maintenance_mode_parent = $this->_installed_pages[$page]->get_menu_map()->maintenance_mode_parent;
297
-				if ( empty( $maintenance_mode_parent ) && EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance ) {
298
-					unset( $installed_refs[$page] );
297
+				if (empty($maintenance_mode_parent) && EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
298
+					unset($installed_refs[$page]);
299 299
 					continue;
300 300
 				}
301 301
 
@@ -303,45 +303,45 @@  discard block
 block discarded – undo
303 303
 				//flag for register hooks on extended pages b/c extended pages use the default INIT.
304 304
 				$extend = FALSE;
305 305
 				//now that we've got the admin_init objects... lets see if there are any caffeinated pages extending the originals.  If there are then let's hook into the init admin filter and load our extend instead.
306
-				if ( isset( $this->_caffeinated_extends[$page] ) ) {
306
+				if (isset($this->_caffeinated_extends[$page])) {
307 307
 					$this->_current_caf_extend_slug = $page;
308
-					$path_hook = 'FHEE__EE_Admin_Page_Init___initialize_admin_page__path_to_file__' . $this->_installed_pages[$page]->get_menu_map()->menu_slug . '_' . $this->_installed_pages[$page]->get_admin_page_name();
309
-					$path_runtime = 'return "' . $this->_caffeinated_extends[$this->_current_caf_extend_slug]["path"] . '";';
310
-					$page_hook = 'FHEE__EE_Admin_Page_Init___initialize_admin_page__admin_page__' . $this->_installed_pages[$page]->get_menu_map()->menu_slug . '_' . $this->_installed_pages[$page]->get_admin_page_name();
311
-					$page_runtime = 'return "' . $this->_caffeinated_extends[$this->_current_caf_extend_slug]["admin_page"] . '";';
308
+					$path_hook = 'FHEE__EE_Admin_Page_Init___initialize_admin_page__path_to_file__'.$this->_installed_pages[$page]->get_menu_map()->menu_slug.'_'.$this->_installed_pages[$page]->get_admin_page_name();
309
+					$path_runtime = 'return "'.$this->_caffeinated_extends[$this->_current_caf_extend_slug]["path"].'";';
310
+					$page_hook = 'FHEE__EE_Admin_Page_Init___initialize_admin_page__admin_page__'.$this->_installed_pages[$page]->get_menu_map()->menu_slug.'_'.$this->_installed_pages[$page]->get_admin_page_name();
311
+					$page_runtime = 'return "'.$this->_caffeinated_extends[$this->_current_caf_extend_slug]["admin_page"].'";';
312 312
 
313
-					$hook_function_path = create_function( '$path_to_file', $path_runtime);
314
-					$hook_function_page = create_function( '$admin_page', $page_runtime );
313
+					$hook_function_path = create_function('$path_to_file', $path_runtime);
314
+					$hook_function_page = create_function('$admin_page', $page_runtime);
315 315
 
316
-					add_filter( $path_hook, $hook_function_path );
317
-					add_filter( $page_hook, $hook_function_page );
316
+					add_filter($path_hook, $hook_function_path);
317
+					add_filter($page_hook, $hook_function_page);
318 318
 					$extend = TRUE;
319 319
 				}
320 320
 				//let's do the registered hooks
321
-				$extended_hooks = $this->_installed_pages[$page]->register_hooks( $extend );
321
+				$extended_hooks = $this->_installed_pages[$page]->register_hooks($extend);
322 322
 				$hooks_ref = array_merge($hooks_ref, $extended_hooks);
323 323
 			}
324 324
 		}
325 325
 
326 326
 		//the hooks_ref is all the pages where we have $extended _Hooks files that will extend a class in a different folder.  So we want to make sure we load the file for the parent.
327 327
 		//first make sure we've got unique values
328
-		$hooks_ref = array_unique( $hooks_ref );
328
+		$hooks_ref = array_unique($hooks_ref);
329 329
 		//now let's loop and require!
330
-		foreach ( $hooks_ref as $path ) {
331
-			require_once( $path );
330
+		foreach ($hooks_ref as $path) {
331
+			require_once($path);
332 332
 		}
333 333
 		//make sure we have menu slugs global setup. Used in EE_Admin_Page->page_setup() to ensure we don't do a full class load for an admin page that isn't requested.
334 334
 		global $ee_menu_slugs;
335 335
 		$ee_menu_slugs = $this->_menu_slugs;
336 336
 
337 337
 		//we need to loop again to run any early code
338
-		foreach ( $installed_refs as $page => $path ) {
339
-			if ( $this->_installed_pages[$page] instanceof EE_Admin_Page_Init ) {
338
+		foreach ($installed_refs as $page => $path) {
339
+			if ($this->_installed_pages[$page] instanceof EE_Admin_Page_Init) {
340 340
 				$this->_installed_pages[$page]->do_initial_loads();
341 341
 			}
342 342
 		}
343 343
 
344
-		do_action( 'AHEE__EE_Admin_Page_Loader___get_installed_pages_loaded', $this->_installed_pages );
344
+		do_action('AHEE__EE_Admin_Page_Loader___get_installed_pages_loaded', $this->_installed_pages);
345 345
 
346 346
 	}
347 347
 
@@ -353,9 +353,9 @@  discard block
 block discarded – undo
353 353
 	 * @param string $page_slug
354 354
 	 * @return EE_Admin_Page
355 355
 	 */
356
-	public function get_admin_page_object( $page_slug = '' ) {
357
-		if ( isset( $this->_installed_pages[ $page_slug ] )) {
358
-			return $this->_installed_pages[ $page_slug ]->loaded_page_object();
356
+	public function get_admin_page_object($page_slug = '') {
357
+		if (isset($this->_installed_pages[$page_slug])) {
358
+			return $this->_installed_pages[$page_slug]->loaded_page_object();
359 359
 		}
360 360
 		return NULL;
361 361
 	}
@@ -368,9 +368,9 @@  discard block
 block discarded – undo
368 368
 	 * @param $dir_name
369 369
 	 * @return string
370 370
 	 */
371
-	private function _get_classname_for_admin_page( $dir_name = '' ) {
372
-		$class_name = str_replace( '_', ' ', strtolower( $dir_name ));
373
-		return str_replace( ' ', '_', ucwords( $class_name )) . '_Admin_Page';
371
+	private function _get_classname_for_admin_page($dir_name = '') {
372
+		$class_name = str_replace('_', ' ', strtolower($dir_name));
373
+		return str_replace(' ', '_', ucwords($class_name)).'_Admin_Page';
374 374
 	}
375 375
 
376 376
 
@@ -381,9 +381,9 @@  discard block
 block discarded – undo
381 381
 	 * @param $dir_name
382 382
 	 * @return string
383 383
 	 */
384
-	private function _get_classname_for_admin_init_page( $dir_name = '' ) {
385
-		$class_name = str_replace( '_', ' ', strtolower( $dir_name ));
386
-		return str_replace( ' ', '_', ucwords( $class_name )) . '_Admin_Page_Init';
384
+	private function _get_classname_for_admin_init_page($dir_name = '') {
385
+		$class_name = str_replace('_', ' ', strtolower($dir_name));
386
+		return str_replace(' ', '_', ucwords($class_name)).'_Admin_Page_Init';
387 387
 	}
388 388
 
389 389
 
@@ -396,13 +396,13 @@  discard block
 block discarded – undo
396 396
 	 * @throws EE_Error
397 397
 	 * @return object|bool  return page object if valid, bool false if not.
398 398
 	 */
399
-	private function _load_admin_page( $page = '', $path = '' ) {
400
-		$class_name = $this->_get_classname_for_admin_init_page( $page );
401
- 		EE_Registry::instance()->load_file( $path, $class_name, 'core' );
402
-		if ( ! class_exists( $class_name )) {
403
-			$error_msg[] = sprintf( __('Something went wrong with loading the %s admin page.', 'event_espresso' ), $page);
404
-			$error_msg[] = $error_msg[0] . "\r\n" . sprintf( __( 'There is no Init class in place for the %s admin page.', 'event_espresso') . '<br />' . __( 'Make sure you have <strong>%s</strong> defined. If this is a non-EE-core admin page then you also must have an autoloader in place for your class', 'event_espresso'), $page, $class_name );
405
-			throw new EE_Error( implode( '||', $error_msg ));
399
+	private function _load_admin_page($page = '', $path = '') {
400
+		$class_name = $this->_get_classname_for_admin_init_page($page);
401
+ 		EE_Registry::instance()->load_file($path, $class_name, 'core');
402
+		if ( ! class_exists($class_name)) {
403
+			$error_msg[] = sprintf(__('Something went wrong with loading the %s admin page.', 'event_espresso'), $page);
404
+			$error_msg[] = $error_msg[0]."\r\n".sprintf(__('There is no Init class in place for the %s admin page.', 'event_espresso').'<br />'.__('Make sure you have <strong>%s</strong> defined. If this is a non-EE-core admin page then you also must have an autoloader in place for your class', 'event_espresso'), $page, $class_name);
405
+			throw new EE_Error(implode('||', $error_msg));
406 406
 		}
407 407
 		$a = new ReflectionClass($class_name);
408 408
 		return  $a->newInstance();
@@ -421,9 +421,9 @@  discard block
 block discarded – undo
421 421
 	public function set_menus() {
422 422
 		//prep the menu pages (sort, group.)
423 423
 		$this->_prep_pages();
424
-		foreach( $this->_prepped_menu_maps as $menu_map ) {
425
-			if ( EE_Registry::instance()->CAP->current_user_can( $menu_map->capability, $menu_map->menu_slug ) ) {
426
-				$menu_map->add_menu_page( FALSE );
424
+		foreach ($this->_prepped_menu_maps as $menu_map) {
425
+			if (EE_Registry::instance()->CAP->current_user_can($menu_map->capability, $menu_map->menu_slug)) {
426
+				$menu_map->add_menu_page(FALSE);
427 427
 			}
428 428
 		}
429 429
 	}
@@ -436,11 +436,11 @@  discard block
 block discarded – undo
436 436
 	 *
437 437
 	 * @return void
438 438
 	 */
439
-	public function set_network_menus(){
439
+	public function set_network_menus() {
440 440
 		$this->_prep_pages();
441
-		foreach( $this->_prepped_menu_maps as $menu_map ) {
442
-			if ( EE_Registry::instance()->CAP->current_user_can( $menu_map->capability, $menu_map->menu_slug ) ) {
443
-				$menu_map->add_menu_page( TRUE );
441
+		foreach ($this->_prepped_menu_maps as $menu_map) {
442
+			if (EE_Registry::instance()->CAP->current_user_can($menu_map->capability, $menu_map->menu_slug)) {
443
+				$menu_map->add_menu_page(TRUE);
444 444
 			}
445 445
 		}
446 446
 	}
@@ -461,22 +461,22 @@  discard block
 block discarded – undo
461 461
 		//rearrange _admin_menu_groups to be indexed by group slug.
462 462
 		$menu_groups = $this->_rearrange_menu_groups();
463 463
 
464
-		foreach( $this->_installed_pages as $page ) {
465
-			if ( $page instanceof EE_Admin_page_Init ) {
464
+		foreach ($this->_installed_pages as $page) {
465
+			if ($page instanceof EE_Admin_page_Init) {
466 466
 				$page_map = $page->get_menu_map();
467 467
 				//if we've got an array then the menu map is in the old format so let's throw a persistent notice that the admin system isn't setup correctly for this item.
468
-				if ( is_array( $page_map ) || empty( $page_map ) ) {
469
-					EE_Error::add_persistent_admin_notice( 'menu_map_warning_' . str_replace(' ', '_', $page->label) . '_' . EVENT_ESPRESSO_VERSION, sprintf( __('The admin page for %s was not correctly setup because it is using an older method for integrating with Event Espresso Core.  This means that full functionality for this component is not available.  This error message usually appears with an Add-on that is out of date.  Make sure you update all your Event Espresso 4 add-ons to the latest version to ensure they have necessary compatibility updates in place.', 'event_espresso' ), $page->label ) );
468
+				if (is_array($page_map) || empty($page_map)) {
469
+					EE_Error::add_persistent_admin_notice('menu_map_warning_'.str_replace(' ', '_', $page->label).'_'.EVENT_ESPRESSO_VERSION, sprintf(__('The admin page for %s was not correctly setup because it is using an older method for integrating with Event Espresso Core.  This means that full functionality for this component is not available.  This error message usually appears with an Add-on that is out of date.  Make sure you update all your Event Espresso 4 add-ons to the latest version to ensure they have necessary compatibility updates in place.', 'event_espresso'), $page->label));
470 470
 					continue;
471 471
 				}
472 472
 
473 473
 				//if page map is NOT a EE_Admin_Page_Menu_Map object then throw error.
474
-				if ( ! $page_map instanceof EE_Admin_Page_Menu_Map ) {
475
-					throw new EE_Error( sprintf( __('The menu map for %s must be an EE_Admin_Page_Menu_Map object.  Instead it is %s.  Please double check that the menu map has been configured correctly.', 'event_espresso'), $page->label, $page_map ) );
474
+				if ( ! $page_map instanceof EE_Admin_Page_Menu_Map) {
475
+					throw new EE_Error(sprintf(__('The menu map for %s must be an EE_Admin_Page_Menu_Map object.  Instead it is %s.  Please double check that the menu map has been configured correctly.', 'event_espresso'), $page->label, $page_map));
476 476
 				}
477 477
 
478 478
 				//use the maintenance_mode_parent property and maintenance mode status to determine if this page even gets added to array.
479
-				if ( empty( $page_map->maintenance_mode_parent ) &&  EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance ) {
479
+				if (empty($page_map->maintenance_mode_parent) && EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
480 480
 					continue;
481 481
 				}
482 482
 
@@ -485,21 +485,21 @@  discard block
 block discarded – undo
485 485
 			}
486 486
 		}
487 487
 
488
-		if ( empty( $pages_array )) {
489
-			throw new EE_Error(__('Something went wrong when prepping the admin pages', 'event_espresso') );
488
+		if (empty($pages_array)) {
489
+			throw new EE_Error(__('Something went wrong when prepping the admin pages', 'event_espresso'));
490 490
 		}
491 491
 
492 492
 		//let's sort the groups, make sure it's a valid group, add header (if to show).
493
-		foreach ( $pages_array as $group => $menu_maps ) {
493
+		foreach ($pages_array as $group => $menu_maps) {
494 494
 			//valid_group?
495
-			if ( ! array_key_exists( $group, $menu_groups ) )
495
+			if ( ! array_key_exists($group, $menu_groups))
496 496
 				continue;
497 497
 
498 498
 			//sort pages.
499
-			usort( $menu_maps, array( $this, '_sort_menu_maps' ) );
499
+			usort($menu_maps, array($this, '_sort_menu_maps'));
500 500
 
501 501
 			//prepend header
502
-			array_unshift( $menu_maps, $menu_groups[$group] );
502
+			array_unshift($menu_maps, $menu_groups[$group]);
503 503
 
504 504
 			//reset $pages_array with prepped data
505 505
 			$pages_array[$group] = $menu_maps;
@@ -507,9 +507,9 @@  discard block
 block discarded – undo
507 507
 
508 508
 
509 509
 		//now let's setup the _prepped_menu_maps property
510
-		foreach ( $menu_groups as $group => $group_objs ) {
511
-			if ( isset( $pages_array[$group] ) )
512
-				$this->_prepped_menu_maps = array_merge( $this->_prepped_menu_maps, $pages_array[$group] );
510
+		foreach ($menu_groups as $group => $group_objs) {
511
+			if (isset($pages_array[$group]))
512
+				$this->_prepped_menu_maps = array_merge($this->_prepped_menu_maps, $pages_array[$group]);
513 513
 		}/**/
514 514
 
515 515
 	}
@@ -529,10 +529,10 @@  discard block
 block discarded – undo
529 529
 	 * @param array $installed_refs the original installed_refs array that may contain our NEW EE_Admin_Pages to be loaded.
530 530
 	 * @return array
531 531
 	 */
532
-	private function _set_caffeinated( $installed_refs ) {
532
+	private function _set_caffeinated($installed_refs) {
533 533
 
534 534
 		//first let's check if there IS a caffeinated folder. If there is not then lets get out.
535
-		if ( ! is_dir( EE_PLUGIN_DIR_PATH . 'caffeinated' . DS . 'admin' ) || ( defined( 'EE_DECAF' ) && EE_DECAF )) {
535
+		if ( ! is_dir(EE_PLUGIN_DIR_PATH.'caffeinated'.DS.'admin') || (defined('EE_DECAF') && EE_DECAF)) {
536 536
 			return $installed_refs;
537 537
 		}
538 538
 
@@ -541,15 +541,15 @@  discard block
 block discarded – undo
541 541
 		$exclude = array('tickets');
542 542
 
543 543
 		//okay let's setup an "New" pages first (we'll return installed refs later)
544
-		$new_admin_screens = glob( EE_CORE_CAF_ADMIN . 'new/*', GLOB_ONLYDIR );
545
-		if ( $new_admin_screens ) {
546
-			foreach( $new_admin_screens as $admin_screen ) {
544
+		$new_admin_screens = glob(EE_CORE_CAF_ADMIN.'new/*', GLOB_ONLYDIR);
545
+		if ($new_admin_screens) {
546
+			foreach ($new_admin_screens as $admin_screen) {
547 547
 				// files and anything in the exclude array need not apply
548
-				if ( is_dir( $admin_screen ) && ! in_array( basename( $admin_screen ), $exclude )) {
548
+				if (is_dir($admin_screen) && ! in_array(basename($admin_screen), $exclude)) {
549 549
 					// these folders represent the different NEW EE admin pages
550
-					$installed_refs[ basename( $admin_screen ) ] = $admin_screen;
550
+					$installed_refs[basename($admin_screen)] = $admin_screen;
551 551
 					// set autoloaders for our admin page classes based on included path information
552
-					EEH_Autoloader::instance()->register_autoloaders_for_each_file_in_folder( $admin_screen );
552
+					EEH_Autoloader::instance()->register_autoloaders_for_each_file_in_folder($admin_screen);
553 553
 //					$this->_caf_autoloader[] = array(
554 554
 //						'dir' => 'new',
555 555
 //						'folder' => basename( $admin_screen )
@@ -559,18 +559,18 @@  discard block
 block discarded – undo
559 559
 		}
560 560
 
561 561
 		//let's see if there are any EXTENDS to setup in the $_caffeinated_extends array (that will be used later for hooking into the _initialize_admin_age in the related core_init admin page)
562
-		$extends = glob( EE_CORE_CAF_ADMIN . 'extend/*', GLOB_ONLYDIR );
563
-		if ( $extends ) {
564
-			foreach( $extends as $extend ) {
565
-				if ( is_dir( $extend ) ) {
566
-					$extend_ref = basename( $extend );
562
+		$extends = glob(EE_CORE_CAF_ADMIN.'extend/*', GLOB_ONLYDIR);
563
+		if ($extends) {
564
+			foreach ($extends as $extend) {
565
+				if (is_dir($extend)) {
566
+					$extend_ref = basename($extend);
567 567
 					//now let's make sure there is a file that matches the expected format
568
-					$filename = str_replace(' ', '_', ucwords( str_replace('_', ' ', $extend_ref ) ) );
569
-					$filename = 'Extend_' . $filename . '_Admin_Page';
570
-					$this->_caffeinated_extends[$extend_ref]['path'] = str_replace( array( '\\', '/' ), DS, EE_CORE_CAF_ADMIN . 'extend' . DS . $extend_ref . DS . $filename . '.core.php' );
568
+					$filename = str_replace(' ', '_', ucwords(str_replace('_', ' ', $extend_ref)));
569
+					$filename = 'Extend_'.$filename.'_Admin_Page';
570
+					$this->_caffeinated_extends[$extend_ref]['path'] = str_replace(array('\\', '/'), DS, EE_CORE_CAF_ADMIN.'extend'.DS.$extend_ref.DS.$filename.'.core.php');
571 571
 					$this->_caffeinated_extends[$extend_ref]['admin_page'] = $filename;
572 572
 					// set autoloaders for our admin page classes based on included path information
573
-					EEH_Autoloader::instance()->register_autoloaders_for_each_file_in_folder( $extend );
573
+					EEH_Autoloader::instance()->register_autoloaders_for_each_file_in_folder($extend);
574 574
 //					$this->_caf_autoloader[] = array(
575 575
 //						'dir' => 'extend',
576 576
 //						'folder' => $extend_ref
@@ -581,22 +581,22 @@  discard block
 block discarded – undo
581 581
 
582 582
 		//let's see if there are any HOOK files and instantiate them if there are (so that hooks are loaded early!).
583 583
 		$ee_admin_hooks = array();
584
-		$hooks = glob( EE_CORE_CAF_ADMIN . 'hooks/*.class.php' );
585
-		if ( $hooks ) {
586
-			foreach ( $hooks as $hook ) {
587
-				if ( is_readable( $hook ) ) {
584
+		$hooks = glob(EE_CORE_CAF_ADMIN.'hooks/*.class.php');
585
+		if ($hooks) {
586
+			foreach ($hooks as $hook) {
587
+				if (is_readable($hook)) {
588 588
 					require_once $hook;
589
-					$classname = str_replace( EE_CORE_CAF_ADMIN . 'hooks/', '', $hook );
589
+					$classname = str_replace(EE_CORE_CAF_ADMIN.'hooks/', '', $hook);
590 590
 					$classname = str_replace('.class.php', '', $classname);
591
-					if ( class_exists( $classname ) ) {
592
-						$a = new ReflectionClass( $classname );
591
+					if (class_exists($classname)) {
592
+						$a = new ReflectionClass($classname);
593 593
 						$ee_admin_hooks[] = $a->newInstance();
594 594
 					}
595 595
 				}
596 596
 			}
597 597
 		}/**/
598 598
 
599
-		$ee_admin_hooks = apply_filters( 'FHEE__EE_Admin_Page_Loader__set_caffeinated__ee_admin_hooks', $ee_admin_hooks );
599
+		$ee_admin_hooks = apply_filters('FHEE__EE_Admin_Page_Loader__set_caffeinated__ee_admin_hooks', $ee_admin_hooks);
600 600
 
601 601
 		return $installed_refs;
602 602
 
@@ -653,8 +653,8 @@  discard block
 block discarded – undo
653 653
 	 * @param  EE_Admin_Page_Menu_Map $b being compared to
654 654
 	 * @return int    sort order
655 655
 	 */
656
-	private function _sort_menu_maps( EE_Admin_Page_Menu_Map $a, EE_Admin_Page_Menu_Map $b ) {
657
-		if ( $a->menu_order == $b->menu_order )
656
+	private function _sort_menu_maps(EE_Admin_Page_Menu_Map $a, EE_Admin_Page_Menu_Map $b) {
657
+		if ($a->menu_order == $b->menu_order)
658 658
 			return 0;
659 659
 		return ($a->menu_order < $b->menu_order) ? -1 : 1;
660 660
 	}
Please login to merge, or discard this patch.
core/admin/EE_Help_Tour_final_stop.class.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 			'action' => 'admin_option_settings',
61 61
 			'page' => 'espresso_general_settings'
62 62
 			);
63
-		return '<p>' . sprintf( __('That\'s it for the tour!  At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons.  There are help tours available on all Event Espresso Admin pages.  If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!', 'event_espresso'), '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php') ) . '">', '</a>' ) . '</p>';
63
+		return '<p>'.sprintf(__('That\'s it for the tour!  At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons.  There are help tours available on all Event Espresso Admin pages.  If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!', 'event_espresso'), '<a href="'.EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')).'">', '</a>').'</p>';
64 64
 	}
65 65
 
66 66
 }
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
core/admin/templates/about_admin_wrapper.template.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <div class="wrap espresso-admin about-wrap">
2 2
 
3 3
 	<h1><?php  echo $admin_page_title; ?></h1>
4
-	<div class="about-text"><?php echo !empty($admin_page_subtitle) ? $admin_page_subtitle : ''; ?></div>
5
-	<div class="ee-badge"><img class="" src=" <?php echo EE_GLOBAL_ASSETS_URL; ?>images/event-espresso-cup-90x90.png" width="90" height="90" alt="<?php printf( esc_attr__( '%s Logo', 'event_espresso' ), 'Event Espresso' ); ?>"/><br /><?php printf( __('Version %s', 'event_espresso' ),  EVENT_ESPRESSO_VERSION ); ?></div>
4
+	<div class="about-text"><?php echo ! empty($admin_page_subtitle) ? $admin_page_subtitle : ''; ?></div>
5
+	<div class="ee-badge"><img class="" src=" <?php echo EE_GLOBAL_ASSETS_URL; ?>images/event-espresso-cup-90x90.png" width="90" height="90" alt="<?php printf(esc_attr__('%s Logo', 'event_espresso'), 'Event Espresso'); ?>"/><br /><?php printf(__('Version %s', 'event_espresso'), EVENT_ESPRESSO_VERSION); ?></div>
6 6
 
7 7
 	<?php echo $nav_tabs; ?>
8 8
 
9 9
 
10 10
 <?php
11
-	do_action( 'AHEE__admin_wrapper__template__before_about_admin_page_content' );
11
+	do_action('AHEE__admin_wrapper__template__before_about_admin_page_content');
12 12
 	echo $about_admin_page_content;
13
-	do_action( 'AHEE__admin_wrapper__template__after_about_admin_page_content' );
13
+	do_action('AHEE__admin_wrapper__template__after_about_admin_page_content');
14 14
 ?>
15 15
 
16 16
 </div>
Please login to merge, or discard this patch.
core/admin/templates/admin_details_metabox_column_wrapper.template.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@
 block discarded – undo
10 10
 
11 11
 		<?php
12 12
 		//let's loop through the columns
13
-		 for ( $i = 1; $i <= $num_columns; $i++ ) {
14
-		 	$metaref = ( $i === 1 ) ? 'normal' : 'side';
15
-		 	$metaref = ( $i > 2 ) ? 'column'.$i : $metaref;
13
+		 for ($i = 1; $i <= $num_columns; $i++) {
14
+		 	$metaref = ($i === 1) ? 'normal' : 'side';
15
+		 	$metaref = ($i > 2) ? 'column'.$i : $metaref;
16 16
 		 ?>
17 17
 
18 18
 			<div id='postbox-container-<?php echo $i; ?>' class='postbox-container'>
19
-				<?php do_meta_boxes( $current_page, $metaref, NULL ); ?>
19
+				<?php do_meta_boxes($current_page, $metaref, NULL); ?>
20 20
 			</div>
21 21
 		<?php }// end column loop ?>
22 22
 	</div> <!-- post-body -->
Please login to merge, or discard this patch.
core/admin/templates/admin_details_publish_metabox.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php if ( $publish_box_extra_content ) : ?>
1
+<?php if ($publish_box_extra_content) : ?>
2 2
 <div id="minor-publishing">
3 3
 <?php echo $publish_box_extra_content; ?>
4 4
 </div>
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 	
14 14
 	<div id="espresso_major_buttons_wrapper">
15 15
 	
16
-		<?php if ( $publish_delete_link ) : ?>
16
+		<?php if ($publish_delete_link) : ?>
17 17
 		<div id="delete-action">
18 18
 			<?php echo $publish_delete_link; ?>
19 19
 		</div>
Please login to merge, or discard this patch.
core/admin/templates/admin_details_wrapper.template.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 			<!-- admin-page-header -->
6 6
 		<div id="post-body" class="metabox-holder columns-2">
7 7
 			
8
-		<?php if ( ! empty( $post_body_content )) : ?>
8
+		<?php if ( ! empty($post_body_content)) : ?>
9 9
 			<div id="post-body-content">
10 10
 				<?php echo $post_body_content; ?>
11 11
 			</div>
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
 		<?php endif; ?>
14 14
 			
15 15
 			<div id="postbox-container-1" class="postbox-container">
16
-				<?php do_meta_boxes( $current_page, 'side', NULL ); ?>
16
+				<?php do_meta_boxes($current_page, 'side', NULL); ?>
17 17
 			</div>
18 18
 			<!-- postbox-container-1 -->
19 19
 			
20 20
 			<div id="postbox-container-2" class="postbox-container">
21
-				<?php do_meta_boxes( $current_page, 'normal', NULL ); ?>
22
-				<?php do_meta_boxes( $current_page, 'advanced', NULL ); ?>
21
+				<?php do_meta_boxes($current_page, 'normal', NULL); ?>
22
+				<?php do_meta_boxes($current_page, 'advanced', NULL); ?>
23 23
 			</div>
24 24
 			<!-- postbox-container-2 -->
25 25
 			
Please login to merge, or discard this patch.
core/admin/templates/admin_details_wrapper_no_sidebar.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 			
14 14
 			
15 15
 			<div id="postbox-container-2" class="postbox-container">
16
-				<?php do_meta_boxes( $current_page, 'normal', NULL ); ?>
17
-				<?php do_meta_boxes( $current_page, 'advanced', NULL ); ?>
16
+				<?php do_meta_boxes($current_page, 'normal', NULL); ?>
17
+				<?php do_meta_boxes($current_page, 'advanced', NULL); ?>
18 18
 			</div>
19 19
 			<!-- postbox-container-2 -->
20 20
 			
Please login to merge, or discard this patch.
admin/templates/admin_general_metabox_contents_espresso_links.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <div class="padding">
2 2
 	   	<ul class="infolinks">
3 3
 	   		<li>
4
-	   			<?php echo '<a href="http://eventespresso.com/wiki/installation/" target="_blank">'.__('Installation', 'event_espresso') . '</a>  &amp; <a href="http://eventespresso.com/wiki/setting-up-event-espresso/" target="_blank">' . __('Usage Guide').'</a>'; ?>
4
+	   			<?php echo '<a href="http://eventespresso.com/wiki/installation/" target="_blank">'.__('Installation', 'event_espresso').'</a>  &amp; <a href="http://eventespresso.com/wiki/setting-up-event-espresso/" target="_blank">'.__('Usage Guide').'</a>'; ?>
5 5
 	   		</li>
6 6
 	   		<li>
7 7
 		   		<a href="http://eventespresso.com/wiki/put-custom-templates/" target="_blank">
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	   			</a>
31 31
 	   		</li>
32 32
 	   		<li>
33
-	   			<?php echo '<a href="http://eventespresso.com/pricing/" target="_blank">'.__('Plugins', 'event_espresso'). '</a> &amp; <a href="http://eventespresso.com/add-ons/" target="_blank">' .__('Add-ons', 'event_espresso').'</a>'; ?><br />
33
+	   			<?php echo '<a href="http://eventespresso.com/pricing/" target="_blank">'.__('Plugins', 'event_espresso').'</a> &amp; <a href="http://eventespresso.com/add-ons/" target="_blank">'.__('Add-ons', 'event_espresso').'</a>'; ?><br />
34 34
 	   			<br />
35 35
 	   			<ol>
36 36
 	   				<li>
Please login to merge, or discard this patch.