Completed
Branch TASK-9118-extensions-page (b89c2b)
by
unknown
506:56 queued 485:08
created
core/libraries/payment_methods/EE_Gateway.lib.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Event Espresso
4
- *
5
- * Event Registration and Management Plugin for WordPress
6
- *
7
- * @ package			Event Espresso
8
- * @ author				Seth Shoultes
9
- * @ copyright		(c) 2008-2011 Event Espresso  All Rights Reserved.
10
- * @ license			http://eventespresso.com/support/terms-conditions/   * see Plugin Licensing *
11
- * @ link					http://www.eventespresso.com
12
- * @ version		 	4.2
13
- *
14
- * ------------------------------------------------------------------------
15
- *
16
- * EE_Gateway
17
- *
18
- * Abstract base class for all gateways
19
- *
20
- * @package			Event Espresso
21
- * @subpackage		core/libraries/payment_methods
22
- * @author			Mike Nelson
23
- *
24
- * ------------------------------------------------------------------------
25
- * Class for processing payments. This has been designed in a way so that other WP Plugins
26
- * can use this class for processing payments, and theoreitcally any of its children, provided they implement the
27
- * interfaces it uses.
28
- * The necessary interfaces to be implemented are contained in core/libaries/payment_methods/EEI_Payment_Method_Interfaces.php and
29
- * EEI_Interfaces. After constructing a gateway object, you need to set all the properties which reference many of the
30
- * needed helpers and models (see all the methods starting with "set_", eg seg_line_item_helper which should be passed an object
31
- * which implements EEHI_Line_Item_Helper; etc).
32
- */
3
+	 * Event Espresso
4
+	 *
5
+	 * Event Registration and Management Plugin for WordPress
6
+	 *
7
+	 * @ package			Event Espresso
8
+	 * @ author				Seth Shoultes
9
+	 * @ copyright		(c) 2008-2011 Event Espresso  All Rights Reserved.
10
+	 * @ license			http://eventespresso.com/support/terms-conditions/   * see Plugin Licensing *
11
+	 * @ link					http://www.eventespresso.com
12
+	 * @ version		 	4.2
13
+	 *
14
+	 * ------------------------------------------------------------------------
15
+	 *
16
+	 * EE_Gateway
17
+	 *
18
+	 * Abstract base class for all gateways
19
+	 *
20
+	 * @package			Event Espresso
21
+	 * @subpackage		core/libraries/payment_methods
22
+	 * @author			Mike Nelson
23
+	 *
24
+	 * ------------------------------------------------------------------------
25
+	 * Class for processing payments. This has been designed in a way so that other WP Plugins
26
+	 * can use this class for processing payments, and theoreitcally any of its children, provided they implement the
27
+	 * interfaces it uses.
28
+	 * The necessary interfaces to be implemented are contained in core/libaries/payment_methods/EEI_Payment_Method_Interfaces.php and
29
+	 * EEI_Interfaces. After constructing a gateway object, you need to set all the properties which reference many of the
30
+	 * needed helpers and models (see all the methods starting with "set_", eg seg_line_item_helper which should be passed an object
31
+	 * which implements EEHI_Line_Item_Helper; etc).
32
+	 */
33 33
 abstract class EE_Gateway{
34 34
 	/**
35 35
 	 * a constant used as a possible value for $_currencies_supported to indicate
Please login to merge, or discard this patch.
core/db_models/EEM_Attendee.model.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@
 block discarded – undo
257 257
 	* 		@param	int	$TXN_ID
258 258
 	* 		@param    int		$ATT_ID
259 259
 	* 		@param    int		$att_nmbr 	in case the ATT_ID is the same for multiple registrations (same details used) then the attendee number is required
260
-	*		@return 		mixed		array on success, FALSE on fail
260
+	*		@return 		EE_Base_Class|null		array on success, FALSE on fail
261 261
 	*/
262 262
 	public function get_registration_for_transaction_attendee( $TXN_ID = 0, $ATT_ID = 0, $att_nmbr = 0 ) {
263 263
 		return $this->get_one(array(
Please login to merge, or discard this patch.
modules/event_single/EED_Event_Single.module.php 1 patch
Spacing   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 * @return EED_Event_Single
41 41
 	 */
42 42
 	public static function instance() {
43
-		return parent::get_instance( __CLASS__ );
43
+		return parent::get_instance(__CLASS__);
44 44
 	}
45 45
 
46 46
 
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
 	 *  @return 	void
53 53
 	 */
54 54
 	public static function set_hooks() {
55
-		add_filter( 'FHEE_run_EE_wp', '__return_true' );
56
-		add_action( 'wp_loaded', array( 'EED_Event_Single', 'set_definitions' ), 2 );
57
-		EE_Config::register_route( __( 'event', 'event_espresso' ), 'Event_Single', 'run' );
55
+		add_filter('FHEE_run_EE_wp', '__return_true');
56
+		add_action('wp_loaded', array('EED_Event_Single', 'set_definitions'), 2);
57
+		EE_Config::register_route(__('event', 'event_espresso'), 'Event_Single', 'run');
58 58
 	}
59 59
 
60 60
 	/**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 *  @return 	void
65 65
 	 */
66 66
 	public static function set_hooks_admin() {
67
-		add_action( 'wp_loaded', array( 'EED_Event_Single', 'set_definitions' ), 2 );
67
+		add_action('wp_loaded', array('EED_Event_Single', 'set_definitions'), 2);
68 68
 	}
69 69
 
70 70
 
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 	 * @return void
79 79
 	 */
80 80
 	public static function set_definitions() {
81
-		define( 'EVENT_SINGLE_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets' . DS );
82
-		define( 'EVENT_SINGLE_TEMPLATES_PATH', plugin_dir_path( __FILE__ ) . 'templates' . DS );
81
+		define('EVENT_SINGLE_ASSETS_URL', plugin_dir_url(__FILE__).'assets'.DS);
82
+		define('EVENT_SINGLE_TEMPLATES_PATH', plugin_dir_path(__FILE__).'templates'.DS);
83 83
 	}
84 84
 
85 85
 
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
 	 *
90 90
 	 * @void
91 91
 	 */
92
-	protected function set_config(){
93
-		$this->set_config_section( 'template_settings' );
94
-		$this->set_config_class( 'EE_Event_Single_Config' );
95
-		$this->set_config_name( 'EED_Event_Single' );
92
+	protected function set_config() {
93
+		$this->set_config_section('template_settings');
94
+		$this->set_config_class('EE_Event_Single_Config');
95
+		$this->set_config_name('EED_Event_Single');
96 96
 	}
97 97
 
98 98
 
@@ -105,35 +105,35 @@  discard block
 block discarded – undo
105 105
 	 * @param \EE_Event_Single_Config $config
106 106
 	 * @return \EE_Template_Part_Manager
107 107
 	 */
108
-	public function initialize_template_parts( EE_Event_Single_Config $config = null ) {
108
+	public function initialize_template_parts(EE_Event_Single_Config $config = null) {
109 109
 		$config = $config instanceof EE_Event_Single_Config ? $config : $this->config();
110 110
 		EEH_Autoloader::instance()->register_template_part_autoloaders();
111 111
 		$template_parts = new EE_Template_Part_Manager();
112 112
 		$template_parts->add_template_part(
113 113
 			'tickets',
114
-			__( 'Ticket Selector', 'event_espresso' ),
114
+			__('Ticket Selector', 'event_espresso'),
115 115
 			'content-espresso_events-tickets.php',
116 116
 			$config->display_order_tickets
117 117
 		);
118 118
 		$template_parts->add_template_part(
119 119
 			'datetimes',
120
-			__( 'Dates and Times', 'event_espresso' ),
120
+			__('Dates and Times', 'event_espresso'),
121 121
 			'content-espresso_events-datetimes.php',
122 122
 			$config->display_order_datetimes
123 123
 		);
124 124
 		$template_parts->add_template_part(
125 125
 			'event',
126
-			__( 'Event Description', 'event_espresso' ),
126
+			__('Event Description', 'event_espresso'),
127 127
 			'content-espresso_events-details.php',
128 128
 			$config->display_order_event
129 129
 		);
130 130
 		$template_parts->add_template_part(
131 131
 			'venue',
132
-			__( 'Venue Information', 'event_espresso' ),
132
+			__('Venue Information', 'event_espresso'),
133 133
 			'content-espresso_events-venues.php',
134 134
 			$config->display_order_venue
135 135
 		);
136
-		do_action( 'AHEE__EED_Event_Single__initialize_template_parts', $template_parts );
136
+		do_action('AHEE__EED_Event_Single__initialize_template_parts', $template_parts);
137 137
 		return $template_parts;
138 138
 	}
139 139
 
@@ -147,15 +147,15 @@  discard block
 block discarded – undo
147 147
 	 * @param WP $WP
148 148
 	 * @return    void
149 149
 	 */
150
-	public function run( $WP ) {
150
+	public function run($WP) {
151 151
 		// ensure valid EE_Events_Single_Config() object exists
152 152
 		$this->set_config();
153 153
 		// check what template is loaded
154
-		add_filter( 'template_include',  array( $this, 'template_include' ), 999, 1 );
155
-		add_filter( 'FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true' );
154
+		add_filter('template_include', array($this, 'template_include'), 999, 1);
155
+		add_filter('FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true');
156 156
 		// load css
157
-		add_action('wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 10 );
158
-		EE_Registry::instance()->load_helper( 'Venue_View' );
157
+		add_action('wp_enqueue_scripts', array($this, 'wp_enqueue_scripts'), 10);
158
+		EE_Registry::instance()->load_helper('Venue_View');
159 159
 	}
160 160
 
161 161
 
@@ -167,27 +167,27 @@  discard block
 block discarded – undo
167 167
 	 * @param 	string $template
168 168
 	 * @return 	string
169 169
 	 */
170
-	public function template_include( $template ) {
170
+	public function template_include($template) {
171 171
 		global $post;
172 172
 		/** @type EE_Event_Single_Config $config */
173 173
 		$config = $this->config();
174
-		if ( $config->display_status_banner_single ) {
175
-			add_filter( 'the_title', array( 'EED_Event_Single', 'the_title' ), 100, 2 );
174
+		if ($config->display_status_banner_single) {
175
+			add_filter('the_title', array('EED_Event_Single', 'the_title'), 100, 2);
176 176
 		}
177 177
 		// not a custom template?
178 178
 		if (
179 179
 			EE_Front_Controller::instance()->get_selected_template() != 'single-espresso_events.php'
180
-			|| apply_filters( 'FHEE__EED_Event_Single__template_include__allow_custom_selected_template', FALSE )
181
-			&& ! post_password_required( $post )
180
+			|| apply_filters('FHEE__EED_Event_Single__template_include__allow_custom_selected_template', FALSE)
181
+			&& ! post_password_required($post)
182 182
 		) {
183 183
 			EEH_Template::load_espresso_theme_functions();
184 184
 			// then add extra event data via hooks
185
-			add_action( 'loop_start', array( 'EED_Event_Single', 'loop_start' ));
186
-			add_filter( 'get_the_excerpt', array( 'EED_Event_Single', 'get_the_excerpt' ), 1, 1 );
187
-			add_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
188
-			add_action( 'loop_end', array( 'EED_Event_Single', 'loop_end' ));
185
+			add_action('loop_start', array('EED_Event_Single', 'loop_start'));
186
+			add_filter('get_the_excerpt', array('EED_Event_Single', 'get_the_excerpt'), 1, 1);
187
+			add_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
188
+			add_action('loop_end', array('EED_Event_Single', 'loop_end'));
189 189
 			// don't display entry meta because the existing theme will take car of that
190
-			add_filter( 'FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false' );
190
+			add_filter('FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false');
191 191
 		}
192 192
 		return $template;
193 193
 	}
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
 	 * @param 	array $wp_query_array an array containing the WP_Query object
202 202
 	 * @return 	void
203 203
 	 */
204
-	public static function loop_start( $wp_query_array ) {
204
+	public static function loop_start($wp_query_array) {
205 205
 		global $post;
206
-		do_action( 'AHEE_event_details_before_post', $post, $wp_query_array );
206
+		do_action('AHEE_event_details_before_post', $post, $wp_query_array);
207 207
 	}
208 208
 
209 209
 
@@ -216,9 +216,9 @@  discard block
 block discarded – undo
216 216
 	 * @param 	int 	$id
217 217
 	 * @return 	string
218 218
 	 */
219
-	public static function the_title( $title = '', $id = 0 ) {
219
+	public static function the_title($title = '', $id = 0) {
220 220
 		global $post;
221
-		return in_the_loop() && $post->ID == $id ? espresso_event_status_banner( $post->ID ) . $title :  $title;
221
+		return in_the_loop() && $post->ID == $id ? espresso_event_status_banner($post->ID).$title : $title;
222 222
 	}
223 223
 
224 224
 
@@ -230,9 +230,9 @@  discard block
 block discarded – undo
230 230
 	 * @param        string $excerpt
231 231
 	 * @return        string
232 232
 	 */
233
-	public static function get_the_excerpt( $excerpt = '' ) {
233
+	public static function get_the_excerpt($excerpt = '') {
234 234
 		EED_Event_Single::$using_get_the_excerpt = true;
235
-		add_filter( 'wp_trim_excerpt', array( 'EED_Event_Single', 'end_get_the_excerpt' ), 999, 1 );
235
+		add_filter('wp_trim_excerpt', array('EED_Event_Single', 'end_get_the_excerpt'), 999, 1);
236 236
 		return $excerpt;
237 237
 	}
238 238
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 	 * @param  string $text
246 246
 	 * @return string
247 247
 	 */
248
-	public static function end_get_the_excerpt( $text = '' ) {
248
+	public static function end_get_the_excerpt($text = '') {
249 249
 		EED_Event_Single::$using_get_the_excerpt = false;
250 250
 		return $text;
251 251
 	}
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 	 * @param 	string 	$content
260 260
 	 * @return 	string
261 261
 	 */
262
-	public static function event_details( $content ) {
262
+	public static function event_details($content) {
263 263
 		global $post;
264 264
 		static $current_post_ID = 0;
265 265
 		if (
@@ -274,15 +274,15 @@  discard block
 block discarded – undo
274 274
 			// We want to allow those plugins to still do their thing and have access to our content, but depending on
275 275
 			// how your event content is being displayed (shortcode, CPT route, etc), this filter can get applied twice,
276 276
 			// so the following allows this filter to be applied multiple times, but only once for real
277
-			$current_post_ID = did_action( 'loop_start' ) ? $post->ID : 0;
278
-			if ( EE_Registry::instance()->CFG->template_settings->EED_Event_Single->use_sortable_display_order ) {
277
+			$current_post_ID = did_action('loop_start') ? $post->ID : 0;
278
+			if (EE_Registry::instance()->CFG->template_settings->EED_Event_Single->use_sortable_display_order) {
279 279
 				// we need to first remove this callback from being applied to the_content()
280 280
 				// (otherwise it will recurse and blow up the interweb)
281
-				remove_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
281
+				remove_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
282 282
 				EED_Event_Single::instance()->template_parts = EED_Event_Single::instance()->initialize_template_parts();
283
-				$content = EEH_Template::locate_template( 'content-espresso_events-details.php' );
284
-				$content = EED_Event_Single::instance()->template_parts->apply_template_part_filters( $content );
285
-				add_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
283
+				$content = EEH_Template::locate_template('content-espresso_events-details.php');
284
+				$content = EED_Event_Single::instance()->template_parts->apply_template_part_filters($content);
285
+				add_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
286 286
 			} else {
287 287
 				$content = EED_Event_Single::use_filterable_display_order();
288 288
 			}
@@ -303,19 +303,19 @@  discard block
 block discarded – undo
303 303
 		// it uses the_content() for displaying the $post->post_content
304 304
 		// so in order to load a template that uses the_content() from within a callback being used to filter the_content(),
305 305
 		// we need to first remove this callback from being applied to the_content() (otherwise it will recurse and blow up the interweb)
306
-		remove_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
306
+		remove_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
307 307
 		//now add additional content
308
-		add_filter( 'the_content', array( 'EED_Event_Single', 'event_datetimes' ), 110, 1 );
309
-		add_filter( 'the_content', array( 'EED_Event_Single', 'event_tickets' ), 120, 1 );
310
-		add_filter( 'the_content', array( 'EED_Event_Single', 'event_venues' ), 130, 1 );
311
-		do_action( 'AHEE__EED_Event_Single__use_filterable_display_order__after_add_filters' );
308
+		add_filter('the_content', array('EED_Event_Single', 'event_datetimes'), 110, 1);
309
+		add_filter('the_content', array('EED_Event_Single', 'event_tickets'), 120, 1);
310
+		add_filter('the_content', array('EED_Event_Single', 'event_venues'), 130, 1);
311
+		do_action('AHEE__EED_Event_Single__use_filterable_display_order__after_add_filters');
312 312
 		// now load our template
313
-		$content = EEH_Template::locate_template( 'content-espresso_events-details.php' );
313
+		$content = EEH_Template::locate_template('content-espresso_events-details.php');
314 314
 		//now add our filter back in, plus some others
315
-		add_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
316
-		remove_filter( 'the_content', array( 'EED_Event_Single', 'event_datetimes' ), 110 );
317
-		remove_filter( 'the_content', array( 'EED_Event_Single', 'event_tickets' ), 120 );
318
-		remove_filter( 'the_content', array( 'EED_Event_Single', 'event_venues' ), 130 );
315
+		add_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
316
+		remove_filter('the_content', array('EED_Event_Single', 'event_datetimes'), 110);
317
+		remove_filter('the_content', array('EED_Event_Single', 'event_tickets'), 120);
318
+		remove_filter('the_content', array('EED_Event_Single', 'event_venues'), 130);
319 319
 		// we're not returning the $content directly because the template we are loading uses the_content (or the_excerpt)
320 320
 		return $content;
321 321
 	}
@@ -329,8 +329,8 @@  discard block
 block discarded – undo
329 329
 	 * @param        string $content
330 330
 	 * @return        string
331 331
 	 */
332
-	public static function event_datetimes( $content ) {
333
-		return EEH_Template::locate_template( 'content-espresso_events-datetimes.php' ) . $content;
332
+	public static function event_datetimes($content) {
333
+		return EEH_Template::locate_template('content-espresso_events-datetimes.php').$content;
334 334
 	}
335 335
 
336 336
 
@@ -342,8 +342,8 @@  discard block
 block discarded – undo
342 342
 	 * @param        string $content
343 343
 	 * @return        string
344 344
 	 */
345
-	public static function event_tickets( $content ) {
346
-		return EEH_Template::locate_template( 'content-espresso_events-tickets.php' ) . $content;
345
+	public static function event_tickets($content) {
346
+		return EEH_Template::locate_template('content-espresso_events-tickets.php').$content;
347 347
 	}
348 348
 
349 349
 
@@ -355,8 +355,8 @@  discard block
 block discarded – undo
355 355
 	 * @param 	string $content
356 356
 	 * @return 	string
357 357
 	 */
358
-	public static function event_venue( $content ) {
359
-		return EED_Event_Single::event_venues( $content );
358
+	public static function event_venue($content) {
359
+		return EED_Event_Single::event_venues($content);
360 360
 	}
361 361
 
362 362
 
@@ -368,8 +368,8 @@  discard block
 block discarded – undo
368 368
 	 * @param        string $content
369 369
 	 * @return        string
370 370
 	 */
371
-	public static function event_venues( $content ) {
372
-		return $content . EEH_Template::locate_template( 'content-espresso_events-venues.php' );
371
+	public static function event_venues($content) {
372
+		return $content.EEH_Template::locate_template('content-espresso_events-venues.php');
373 373
 	}
374 374
 
375 375
 
@@ -381,9 +381,9 @@  discard block
 block discarded – undo
381 381
 	 * 	@param		array 	$wp_query_array an array containing the WP_Query object
382 382
 	 *  	@return 		void
383 383
 	 */
384
-	public static function loop_end( $wp_query_array ) {
384
+	public static function loop_end($wp_query_array) {
385 385
 		global $post;
386
-		do_action( 'AHEE_event_details_after_post', $post, $wp_query_array );
386
+		do_action('AHEE_event_details_after_post', $post, $wp_query_array);
387 387
 	}
388 388
 
389 389
 
@@ -396,18 +396,18 @@  discard block
 block discarded – undo
396 396
 	 */
397 397
 	public function wp_enqueue_scripts() {
398 398
 		// get some style
399
-		if ( apply_filters( 'FHEE_enable_default_espresso_css', TRUE ) && apply_filters( 'FHEE__EED_Event_Single__wp_enqueue_scripts__enable_css', TRUE )) {
400
-			EE_Registry::instance()->load_helper( 'File' );
399
+		if (apply_filters('FHEE_enable_default_espresso_css', TRUE) && apply_filters('FHEE__EED_Event_Single__wp_enqueue_scripts__enable_css', TRUE)) {
400
+			EE_Registry::instance()->load_helper('File');
401 401
 			// first check uploads folder
402
-			if ( is_readable( get_stylesheet_directory() . $this->theme . DS . 'style.css' )) {
403
-				wp_register_style( $this->theme, get_stylesheet_directory_uri() . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ));
402
+			if (is_readable(get_stylesheet_directory().$this->theme.DS.'style.css')) {
403
+				wp_register_style($this->theme, get_stylesheet_directory_uri().$this->theme.DS.'style.css', array('dashicons', 'espresso_default'));
404 404
 			} else {
405
-				wp_register_style( $this->theme, EE_TEMPLATES_URL . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ));
405
+				wp_register_style($this->theme, EE_TEMPLATES_URL.$this->theme.DS.'style.css', array('dashicons', 'espresso_default'));
406 406
 			}
407
-			wp_enqueue_script( $this->theme );
408
-			if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) {
409
-				EE_Registry::instance()->load_helper( 'Maps' );
410
-				add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 );
407
+			wp_enqueue_script($this->theme);
408
+			if (EE_Registry::instance()->CFG->map_settings->use_google_maps) {
409
+				EE_Registry::instance()->load_helper('Maps');
410
+				add_action('wp_enqueue_scripts', array('EEH_Maps', 'espresso_google_map_js'), 11);
411 411
 			}
412 412
 		}
413 413
 	}
@@ -426,12 +426,12 @@  discard block
 block discarded – undo
426 426
 	 *  @return 	bool
427 427
 	 */
428 428
 	public static function display_venue() {
429
-		EE_Registry::instance()->load_helper( 'Venue_View' );
429
+		EE_Registry::instance()->load_helper('Venue_View');
430 430
 		/** @type EE_Event_Single_Config $config */
431 431
 		$config = EED_Event_Single::instance()->config();
432
-		$display_venue= isset( $config->display_venue ) ? $config->display_venue : TRUE;
432
+		$display_venue = isset($config->display_venue) ? $config->display_venue : TRUE;
433 433
 		$venue_name = EEH_Venue_View::venue_name();
434
-		return $display_venue && ! empty( $venue_name ) ? TRUE : FALSE;
434
+		return $display_venue && ! empty($venue_name) ? TRUE : FALSE;
435 435
 	}
436 436
 
437 437
 
Please login to merge, or discard this patch.
modules/events_archive/EED_Events_Archive.module.php 1 patch
Spacing   +191 added lines, -191 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @return EED_Events_Archive
44 44
 	 */
45 45
 	public static function instance() {
46
-		return parent::get_instance( __CLASS__ );
46
+		return parent::get_instance(__CLASS__);
47 47
 	}
48 48
 
49 49
 
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 	 *  @return 	void
56 56
 	 */
57 57
 	public static function set_hooks() {
58
-		EE_Config::register_route( EE_Registry::instance()->CFG->core->event_cpt_slug, 'Events_Archive', 'run' );
59
-		EE_Config::register_route( 'event_list', 'Events_Archive', 'event_list' );
60
-		add_action( 'wp_loaded', array( 'EED_Events_Archive', 'set_definitions' ), 2 );
58
+		EE_Config::register_route(EE_Registry::instance()->CFG->core->event_cpt_slug, 'Events_Archive', 'run');
59
+		EE_Config::register_route('event_list', 'Events_Archive', 'event_list');
60
+		add_action('wp_loaded', array('EED_Events_Archive', 'set_definitions'), 2);
61 61
 	}
62 62
 
63 63
 	/**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 *  @return 	void
68 68
 	 */
69 69
 	public static function set_hooks_admin() {
70
-		add_action( 'wp_loaded', array( 'EED_Events_Archive', 'set_definitions' ), 2 );
70
+		add_action('wp_loaded', array('EED_Events_Archive', 'set_definitions'), 2);
71 71
 	}
72 72
 
73 73
 
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
 	 *  @return 	void
81 81
 	 */
82 82
 	public static function set_definitions() {
83
-		define( 'EVENTS_ARCHIVE_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets' . DS );
84
-		define( 'EVENTS_ARCHIVE_TEMPLATES_PATH', str_replace( '\\', DS, plugin_dir_path( __FILE__ )) . 'templates' . DS );
83
+		define('EVENTS_ARCHIVE_ASSETS_URL', plugin_dir_url(__FILE__).'assets'.DS);
84
+		define('EVENTS_ARCHIVE_TEMPLATES_PATH', str_replace('\\', DS, plugin_dir_path(__FILE__)).'templates'.DS);
85 85
 	}
86 86
 
87 87
 
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
 	 *
92 92
 	 * @return \EE_Events_Archive_Config
93 93
 	 */
94
-	protected function set_config(){
95
-		$this->set_config_section( 'template_settings' );
96
-		$this->set_config_class( 'EE_Events_Archive_Config' );
97
-		$this->set_config_name( 'EED_Events_Archive' );
94
+	protected function set_config() {
95
+		$this->set_config_section('template_settings');
96
+		$this->set_config_class('EE_Events_Archive_Config');
97
+		$this->set_config_name('EED_Events_Archive');
98 98
 	}
99 99
 
100 100
 
@@ -106,35 +106,35 @@  discard block
 block discarded – undo
106 106
 	 * @param \EE_Events_Archive_Config $config
107 107
 	 * @return \EE_Template_Part_Manager
108 108
 	 */
109
-	public function initialize_template_parts( EE_Events_Archive_Config $config = null ) {
109
+	public function initialize_template_parts(EE_Events_Archive_Config $config = null) {
110 110
 		$config = $config instanceof EE_Events_Archive_Config ? $config : $this->config();
111 111
 		EEH_Autoloader::instance()->register_template_part_autoloaders();
112 112
 		$template_parts = new EE_Template_Part_Manager();
113 113
 		$template_parts->add_template_part(
114 114
 			'tickets',
115
-			__( 'Ticket Selector', 'event_espresso' ),
115
+			__('Ticket Selector', 'event_espresso'),
116 116
 			'content-espresso_events-tickets.php',
117 117
 			$config->display_order_tickets
118 118
 		);
119 119
 		$template_parts->add_template_part(
120 120
 			'datetimes',
121
-			__( 'Dates and Times', 'event_espresso' ),
121
+			__('Dates and Times', 'event_espresso'),
122 122
 			'content-espresso_events-datetimes.php',
123 123
 			$config->display_order_datetimes
124 124
 		);
125 125
 		$template_parts->add_template_part(
126 126
 			'event',
127
-			__( 'Event Description', 'event_espresso' ),
127
+			__('Event Description', 'event_espresso'),
128 128
 			'content-espresso_events-details.php',
129 129
 			$config->display_order_event
130 130
 		);
131 131
 		$template_parts->add_template_part(
132 132
 			'venue',
133
-			__( 'Venue Information', 'event_espresso' ),
133
+			__('Venue Information', 'event_espresso'),
134 134
 			'content-espresso_events-venues.php',
135 135
 			$config->display_order_venue
136 136
 		);
137
-		do_action( 'AHEE__EED_Event_Archive__initialize_template_parts', $template_parts );
137
+		do_action('AHEE__EED_Event_Archive__initialize_template_parts', $template_parts);
138 138
 		return $template_parts;
139 139
 	}
140 140
 
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
 	 * @param WP $WP
148 148
 	 * @return    void
149 149
 	 */
150
-	public function run( $WP ) {
151
-		do_action( 'AHEE__EED_Events_Archive__before_run' );
150
+	public function run($WP) {
151
+		do_action('AHEE__EED_Events_Archive__before_run');
152 152
 		// ensure valid EE_Events_Archive_Config() object exists
153 153
 		$this->set_config();
154 154
 		/** @type EE_Events_Archive_Config $config */
@@ -156,19 +156,19 @@  discard block
 block discarded – undo
156 156
 		// load other required components
157 157
 		$this->load_event_list_assets();
158 158
 		// filter the WP posts_join, posts_where, and posts_orderby SQL clauses
159
-		EE_Registry::instance()->load_helper( 'Event_Query' );
159
+		EE_Registry::instance()->load_helper('Event_Query');
160 160
 		//add query filters
161 161
 		EEH_Event_Query::add_query_filters();
162 162
 		// set params that will get used by the filters
163 163
 		EEH_Event_Query::set_query_params(
164
-			'', 	// month
165
-			'', 	// category
166
-			$config->display_expired_events, 	// show_expired
167
-			'start_date', 	// orderby
164
+			'', // month
165
+			'', // category
166
+			$config->display_expired_events, // show_expired
167
+			'start_date', // orderby
168 168
 			'ASC' 	// sort
169 169
 		);
170 170
 		// check what template is loaded
171
-		add_filter( 'template_include',  array( $this, 'template_include' ), 999, 1 );
171
+		add_filter('template_include', array($this, 'template_include'), 999, 1);
172 172
 	}
173 173
 
174 174
 
@@ -200,32 +200,32 @@  discard block
 block discarded – undo
200 200
 	 * @param string $template
201 201
 	 * @return    string
202 202
 	 */
203
-	public function template_include( $template = '' ) {
203
+	public function template_include($template = '') {
204 204
 		// don't add content filter for dedicated EE child themes or private posts
205
-		EE_Registry::instance()->load_helper( 'Template' );
206
-		if ( ! EEH_Template::is_espresso_theme() ) {
205
+		EE_Registry::instance()->load_helper('Template');
206
+		if ( ! EEH_Template::is_espresso_theme()) {
207 207
 			/** @type EE_Events_Archive_Config $config */
208 208
 			$config = $this->config();
209 209
 			// add status banner ?
210
-			if ( $config->display_status_banner ) {
211
-				add_filter( 'the_title', array( 'EED_Events_Archive', 'the_title' ), 100, 2 );
210
+			if ($config->display_status_banner) {
211
+				add_filter('the_title', array('EED_Events_Archive', 'the_title'), 100, 2);
212 212
 			}
213 213
 			// if NOT a custom template
214
-			if ( EE_Front_Controller::instance()->get_selected_template() != 'archive-espresso_events.php'
215
-				|| apply_filters( 'FHEE__EED_Event_Archive__template_include__allow_custom_selected_template', FALSE )
214
+			if (EE_Front_Controller::instance()->get_selected_template() != 'archive-espresso_events.php'
215
+				|| apply_filters('FHEE__EED_Event_Archive__template_include__allow_custom_selected_template', FALSE)
216 216
 			) {
217 217
 				// don't display entry meta because the existing theme will take care of that
218
-				add_filter( 'FHEE__EED_Events_Archive__template_include__events_list_active', '__return_true' );
218
+				add_filter('FHEE__EED_Events_Archive__template_include__events_list_active', '__return_true');
219 219
 				// load functions.php file for the theme (loaded by WP if using child theme)
220 220
 				EEH_Template::load_espresso_theme_functions();
221 221
 				// because we don't know if the theme is using the_excerpt()
222
-				add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
222
+				add_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100, 1);
223 223
 				// or the_content
224
-				add_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
224
+				add_filter('the_content', array('EED_Events_Archive', 'event_details'), 100, 1);
225 225
 				// and just in case they are running get_the_excerpt() which DESTROYS things
226
-				add_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1, 1 );
226
+				add_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1, 1);
227 227
 				// don't display entry meta because the existing theme will take care of that
228
-				add_filter( 'FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false' );
228
+				add_filter('FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false');
229 229
 			}
230 230
 		}
231 231
 		return $template;
@@ -240,17 +240,17 @@  discard block
 block discarded – undo
240 240
 	 * 	@param		string 	$excerpt
241 241
 	 * 	@return 		string
242 242
 	 */
243
-	public static function get_the_excerpt( $excerpt = '' ) {
244
-		if ( post_password_required() ) {
243
+	public static function get_the_excerpt($excerpt = '') {
244
+		if (post_password_required()) {
245 245
 			return $excerpt;
246 246
 		}
247
-		if ( apply_filters( 'FHEE__EED_Events_Archive__get_the_excerpt__theme_uses_get_the_excerpt', false ) ) {
248
-			remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100 );
249
-			remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100 );
250
-			$excerpt = EED_Events_Archive::event_details( $excerpt );
247
+		if (apply_filters('FHEE__EED_Events_Archive__get_the_excerpt__theme_uses_get_the_excerpt', false)) {
248
+			remove_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100);
249
+			remove_filter('the_content', array('EED_Events_Archive', 'event_details'), 100);
250
+			$excerpt = EED_Events_Archive::event_details($excerpt);
251 251
 		} else {
252 252
 			EED_Events_Archive::$using_get_the_excerpt = true;
253
-			add_filter( 'wp_trim_excerpt', array( 'EED_Events_Archive', 'end_get_the_excerpt' ), 999, 1 );
253
+			add_filter('wp_trim_excerpt', array('EED_Events_Archive', 'end_get_the_excerpt'), 999, 1);
254 254
 		}
255 255
 		return $excerpt;
256 256
 	}
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 	 * @param  string $text
265 265
 	 * @return string
266 266
 	 */
267
-	public static function end_get_the_excerpt( $text = '' ) {
267
+	public static function end_get_the_excerpt($text = '') {
268 268
 		EED_Events_Archive::$using_get_the_excerpt = false;
269 269
 		return $text;
270 270
 	}
@@ -279,10 +279,10 @@  discard block
 block discarded – undo
279 279
 	 * @param 		string 		$id
280 280
 	 * @return 		string
281 281
 	 */
282
-	public static function the_title( $title = '', $id = '' ) {
282
+	public static function the_title($title = '', $id = '') {
283 283
 	global $post;
284
-	if ( $post instanceof WP_Post ) {
285
-		return in_the_loop() && $post->ID == $id ? espresso_event_status_banner( $post->ID  ) . $title :  $title;
284
+	if ($post instanceof WP_Post) {
285
+		return in_the_loop() && $post->ID == $id ? espresso_event_status_banner($post->ID).$title : $title;
286 286
 	}
287 287
 	return $title;
288 288
 }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 	 * 	@param		string 	$content
297 297
 	 * 	@return 		string
298 298
 	 */
299
-	public static function event_details( $content ) {
299
+	public static function event_details($content) {
300 300
 		global $post;
301 301
 		static $current_post_ID = 0;
302 302
 		if (
@@ -305,8 +305,8 @@  discard block
 block discarded – undo
305 305
 			&& ! EED_Events_Archive::$using_get_the_excerpt
306 306
 			&& ! post_password_required()
307 307
 			&& (
308
-				apply_filters( 'FHEE__EES_Espresso_Events__process_shortcode__true', false )
309
-				|| ! apply_filters( 'FHEE__content_espresso_events__template_loaded', false )
308
+				apply_filters('FHEE__EES_Espresso_Events__process_shortcode__true', false)
309
+				|| ! apply_filters('FHEE__content_espresso_events__template_loaded', false)
310 310
 			)
311 311
 		) {
312 312
 			// Set current post ID to prevent showing content twice, but only if headers have definitely been sent.
@@ -315,8 +315,8 @@  discard block
 block discarded – undo
315 315
 			// We want to allow those plugins to still do their thing and have access to our content, but depending on
316 316
 			// how your event content is being displayed (shortcode, CPT route, etc), this filter can get applied twice,
317 317
 			// so the following allows this filter to be applied multiple times, but only once for real
318
-			$current_post_ID = did_action( 'loop_start' ) ? $post->ID : 0;
319
-			if ( EE_Registry::instance()->CFG->template_settings->EED_Events_Archive->use_sortable_display_order ) {
318
+			$current_post_ID = did_action('loop_start') ? $post->ID : 0;
319
+			if (EE_Registry::instance()->CFG->template_settings->EED_Events_Archive->use_sortable_display_order) {
320 320
 				$content = \EED_Events_Archive::use_sortable_display_order();
321 321
 			} else {
322 322
 				$content = \EED_Events_Archive::use_filterable_display_order();
@@ -335,20 +335,20 @@  discard block
 block discarded – undo
335 335
 	 */
336 336
 	protected static function use_sortable_display_order() {
337 337
 		// no further password checks required atm
338
-		add_filter( 'FHEE__EED_Events_Archive__event_details__no_post_password_required', '__return_true' );
338
+		add_filter('FHEE__EED_Events_Archive__event_details__no_post_password_required', '__return_true');
339 339
 		// we need to first remove this callback from being applied to the_content() or the_excerpt() (otherwise it will recurse and blow up the interweb)
340
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100 );
341
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100 );
342
-		remove_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1 );
340
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100);
341
+		remove_filter('the_content', array('EED_Events_Archive', 'event_details'), 100);
342
+		remove_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1);
343 343
 		// now add additional content depending on whether event is using the_excerpt() or the_content()
344 344
 		EED_Events_Archive::instance()->template_parts = EED_Events_Archive::instance()->initialize_template_parts();
345
-		$content = EEH_Template::locate_template( 'content-espresso_events-details.php' );
346
-		$content = EED_Events_Archive::instance()->template_parts->apply_template_part_filters( $content );
345
+		$content = EEH_Template::locate_template('content-espresso_events-details.php');
346
+		$content = EED_Events_Archive::instance()->template_parts->apply_template_part_filters($content);
347 347
 		// re-add our main filters (or else the next event won't have them)
348
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
349
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
350
-		add_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1, 1 );
351
-		remove_filter( 'FHEE__EED_Events_Archive__event_details__no_post_password_required', '__return_true' );
348
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100, 1);
349
+		add_filter('the_content', array('EED_Events_Archive', 'event_details'), 100, 1);
350
+		add_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1, 1);
351
+		remove_filter('FHEE__EED_Events_Archive__event_details__no_post_password_required', '__return_true');
352 352
 		return $content;
353 353
 	}
354 354
 
@@ -363,22 +363,22 @@  discard block
 block discarded – undo
363 363
 	protected static function use_filterable_display_order() {
364 364
 		// we need to first remove this callback from being applied to the_content()
365 365
 		// (otherwise it will recurse and blow up the interweb)
366
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100 );
367
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100 );
368
-		remove_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1 );
366
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100);
367
+		remove_filter('the_content', array('EED_Events_Archive', 'event_details'), 100);
368
+		remove_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1);
369 369
 		//now add additional content depending on whether event is using the_excerpt() or the_content()
370 370
 		EED_Events_Archive::_add_additional_excerpt_filters();
371 371
 		EED_Events_Archive::_add_additional_content_filters();
372
-		do_action( 'AHEE__EED_Events_Archive__use_filterable_display_order__after_add_filters' );
372
+		do_action('AHEE__EED_Events_Archive__use_filterable_display_order__after_add_filters');
373 373
 		// now load our template
374
-		$content = EEH_Template::locate_template( 'content-espresso_events-details.php' );
374
+		$content = EEH_Template::locate_template('content-espresso_events-details.php');
375 375
 		// re-add our main filters (or else the next event won't have them)
376
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
377
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
378
-		add_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1, 1 );
376
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100, 1);
377
+		add_filter('the_content', array('EED_Events_Archive', 'event_details'), 100, 1);
378
+		add_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1, 1);
379 379
 		// but remove the other filters so that they don't get applied to the next post
380 380
 		EED_Events_Archive::_remove_additional_events_archive_filters();
381
-		do_action( 'AHEE__EED_Events_Archive__use_filterable_display_order__after_remove_filters' );
381
+		do_action('AHEE__EED_Events_Archive__use_filterable_display_order__after_remove_filters');
382 382
 		// we're not returning the $content directly because the template we are loading uses the_content (or the_excerpt)
383 383
 		//return ! empty( $template ) ? $template : $content;
384 384
 		return $content;
@@ -393,11 +393,11 @@  discard block
 block discarded – undo
393 393
 	 * 	@param		string 	$content
394 394
 	 *  	@return 		string
395 395
 	 */
396
-	public static function event_datetimes( $content ) {
397
-		if ( post_password_required() ) {
396
+	public static function event_datetimes($content) {
397
+		if (post_password_required()) {
398 398
 			return $content;
399 399
 		}
400
-		return EEH_Template::locate_template( 'content-espresso_events-datetimes.php' ) . $content;
400
+		return EEH_Template::locate_template('content-espresso_events-datetimes.php').$content;
401 401
 	}
402 402
 
403 403
 	/**
@@ -407,11 +407,11 @@  discard block
 block discarded – undo
407 407
 	 * 	@param		string 	$content
408 408
 	 *  	@return 		string
409 409
 	 */
410
-	public static function event_tickets( $content ) {
411
-		if ( post_password_required() ) {
410
+	public static function event_tickets($content) {
411
+		if (post_password_required()) {
412 412
 			return $content;
413 413
 		}
414
-		return EEH_Template::locate_template( 'content-espresso_events-tickets.php' ) . $content;
414
+		return EEH_Template::locate_template('content-espresso_events-tickets.php').$content;
415 415
 	}
416 416
 
417 417
 
@@ -423,8 +423,8 @@  discard block
 block discarded – undo
423 423
 	 * @param    string $content
424 424
 	 * @return    string
425 425
 	 */
426
-	public static function event_venue( $content ) {
427
-		return EED_Events_Archive::event_venues( $content );
426
+	public static function event_venue($content) {
427
+		return EED_Events_Archive::event_venues($content);
428 428
 	}
429 429
 
430 430
 	/**
@@ -434,11 +434,11 @@  discard block
 block discarded – undo
434 434
 	 * 	@param		string 	$content
435 435
 	 *  	@return 		string
436 436
 	 */
437
-	public static function event_venues( $content ) {
438
-		if ( post_password_required() ) {
437
+	public static function event_venues($content) {
438
+		if (post_password_required()) {
439 439
 			return $content;
440 440
 		}
441
-		return $content . EEH_Template::locate_template( 'content-espresso_events-venues.php' );
441
+		return $content.EEH_Template::locate_template('content-espresso_events-venues.php');
442 442
 	}
443 443
 
444 444
 
@@ -450,9 +450,9 @@  discard block
 block discarded – undo
450 450
 	 * @return        void
451 451
 	 */
452 452
 	private static function _add_additional_excerpt_filters() {
453
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_datetimes' ), 110, 1 );
454
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_tickets' ), 120, 1 );
455
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_venues' ), 130, 1 );
453
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_datetimes'), 110, 1);
454
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_tickets'), 120, 1);
455
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_venues'), 130, 1);
456 456
 	}
457 457
 
458 458
 
@@ -464,9 +464,9 @@  discard block
 block discarded – undo
464 464
 	 * @return        void
465 465
 	 */
466 466
 	private static function _add_additional_content_filters() {
467
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_datetimes' ), 110, 1 );
468
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_tickets' ), 120, 1 );
469
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_venues' ), 130, 1 );
467
+		add_filter('the_content', array('EED_Events_Archive', 'event_datetimes'), 110, 1);
468
+		add_filter('the_content', array('EED_Events_Archive', 'event_tickets'), 120, 1);
469
+		add_filter('the_content', array('EED_Events_Archive', 'event_venues'), 130, 1);
470 470
 	}
471 471
 
472 472
 
@@ -478,12 +478,12 @@  discard block
 block discarded – undo
478 478
 	 * @return        void
479 479
 	 */
480 480
 	private static function _remove_additional_events_archive_filters() {
481
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_datetimes' ), 110 );
482
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_tickets' ), 120 );
483
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_venues' ), 130 );
484
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_datetimes' ), 110 );
485
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_tickets' ), 120 );
486
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_venues' ), 130 );
481
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_datetimes'), 110);
482
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_tickets'), 120);
483
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_venues'), 130);
484
+		remove_filter('the_content', array('EED_Events_Archive', 'event_datetimes'), 110);
485
+		remove_filter('the_content', array('EED_Events_Archive', 'event_tickets'), 120);
486
+		remove_filter('the_content', array('EED_Events_Archive', 'event_venues'), 130);
487 487
 	}
488 488
 
489 489
 
@@ -496,17 +496,17 @@  discard block
 block discarded – undo
496 496
 	 */
497 497
 	public static function remove_all_events_archive_filters() {
498 498
 		//remove_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1 );
499
-		remove_filter( 'the_title', array( 'EED_Events_Archive', 'the_title' ), 100 );
500
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100 );
501
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_datetimes' ), 110 );
502
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_tickets' ), 120 );
503
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_venues' ), 130 );
504
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100 );
505
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_datetimes' ), 110 );
506
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_tickets' ), 120 );
507
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_venues' ), 130 );
499
+		remove_filter('the_title', array('EED_Events_Archive', 'the_title'), 100);
500
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100);
501
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_datetimes'), 110);
502
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_tickets'), 120);
503
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_venues'), 130);
504
+		remove_filter('the_content', array('EED_Events_Archive', 'event_details'), 100);
505
+		remove_filter('the_content', array('EED_Events_Archive', 'event_datetimes'), 110);
506
+		remove_filter('the_content', array('EED_Events_Archive', 'event_tickets'), 120);
507
+		remove_filter('the_content', array('EED_Events_Archive', 'event_venues'), 130);
508 508
 		// don't display entry meta because the existing theme will take care of that
509
-		remove_filter( 'FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false' );
509
+		remove_filter('FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false');
510 510
 	}
511 511
 
512 512
 
@@ -521,15 +521,15 @@  discard block
 block discarded – undo
521 521
 	 *  @return 	void
522 522
 	 */
523 523
 	public function load_event_list_assets() {
524
-		do_action( 'AHEE__EED_Events_Archive__before_load_assets' );
525
-		add_filter( 'FHEE_load_EE_Session', '__return_true' );
526
-		add_filter( 'FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true' );
527
-		add_action('wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 10 );
528
-		if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) {
529
-			EE_Registry::instance()->load_helper( 'Maps' );
530
-			add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 );
524
+		do_action('AHEE__EED_Events_Archive__before_load_assets');
525
+		add_filter('FHEE_load_EE_Session', '__return_true');
526
+		add_filter('FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true');
527
+		add_action('wp_enqueue_scripts', array($this, 'wp_enqueue_scripts'), 10);
528
+		if (EE_Registry::instance()->CFG->map_settings->use_google_maps) {
529
+			EE_Registry::instance()->load_helper('Maps');
530
+			add_action('wp_enqueue_scripts', array('EEH_Maps', 'espresso_google_map_js'), 11);
531 531
 		}
532
-		EE_Registry::instance()->load_helper( 'Event_View' );
532
+		EE_Registry::instance()->load_helper('Event_View');
533 533
 	}
534 534
 
535 535
 
@@ -545,14 +545,14 @@  discard block
 block discarded – undo
545 545
 	 */
546 546
 	public function wp_enqueue_scripts() {
547 547
 		// get some style
548
-		if ( apply_filters( 'FHEE_enable_default_espresso_css', FALSE ) ) {
548
+		if (apply_filters('FHEE_enable_default_espresso_css', FALSE)) {
549 549
 			// first check uploads folder
550
-			EE_Registry::instance()->load_helper( 'File' );
551
-			if ( EEH_File::is_readable( get_stylesheet_directory() . $this->theme . DS . 'style.css' )) {
552
-				wp_register_style( $this->theme, get_stylesheet_directory_uri() . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ));
550
+			EE_Registry::instance()->load_helper('File');
551
+			if (EEH_File::is_readable(get_stylesheet_directory().$this->theme.DS.'style.css')) {
552
+				wp_register_style($this->theme, get_stylesheet_directory_uri().$this->theme.DS.'style.css', array('dashicons', 'espresso_default'));
553 553
 			} else {
554 554
 		}
555
-		wp_enqueue_style( $this->theme );
555
+		wp_enqueue_style($this->theme);
556 556
 
557 557
 	}
558 558
 }
@@ -570,8 +570,8 @@  discard block
 block discarded – undo
570 570
 	 */
571 571
 	public static function template_settings_form() {
572 572
 	$template_settings = EE_Registry::instance()->CFG->template_settings;
573
-	$template_settings->EED_Events_Archive = isset( $template_settings->EED_Events_Archive ) ? $template_settings->EED_Events_Archive : new EE_Events_Archive_Config();
574
-	$template_settings->EED_Events_Archive = apply_filters( 'FHEE__EED_Events_Archive__template_settings_form__event_list_config', $template_settings->EED_Events_Archive );
573
+	$template_settings->EED_Events_Archive = isset($template_settings->EED_Events_Archive) ? $template_settings->EED_Events_Archive : new EE_Events_Archive_Config();
574
+	$template_settings->EED_Events_Archive = apply_filters('FHEE__EED_Events_Archive__template_settings_form__event_list_config', $template_settings->EED_Events_Archive);
575 575
 	$events_archive_settings = array(
576 576
 		'display_status_banner' => 0,
577 577
 		'display_description' => 1,
@@ -580,8 +580,8 @@  discard block
 block discarded – undo
580 580
 		'display_venue' => 0,
581 581
 		'display_expired_events' => 0
582 582
 	);
583
-	$events_archive_settings = array_merge( $events_archive_settings, (array)$template_settings->EED_Events_Archive );
584
-	EEH_Template::display_template( EVENTS_ARCHIVE_TEMPLATES_PATH . 'admin-event-list-settings.template.php', $events_archive_settings );
583
+	$events_archive_settings = array_merge($events_archive_settings, (array) $template_settings->EED_Events_Archive);
584
+	EEH_Template::display_template(EVENTS_ARCHIVE_TEMPLATES_PATH.'admin-event-list-settings.template.php', $events_archive_settings);
585 585
 }
586 586
 
587 587
 
@@ -597,16 +597,16 @@  discard block
 block discarded – undo
597 597
 	 *  @param 	EE_Request_Handler $REQ
598 598
 	 *  @return 	EE_Template_Config
599 599
 	 */
600
-	public static function update_template_settings( $CFG, $REQ ) {
600
+	public static function update_template_settings($CFG, $REQ) {
601 601
 		$CFG->EED_Events_Archive = new EE_Events_Archive_Config();
602 602
 		// unless we are resetting the config...
603
-		if ( ! isset( $REQ['EED_Events_Archive_reset_event_list_settings'] ) || absint( $REQ['EED_Events_Archive_reset_event_list_settings'] ) !== 1 ) {
604
-			$CFG->EED_Events_Archive->display_status_banner = isset( $REQ['EED_Events_Archive_display_status_banner'] ) ? absint( $REQ['EED_Events_Archive_display_status_banner'] ) : 0;
605
-			$CFG->EED_Events_Archive->display_description = isset( $REQ['EED_Events_Archive_display_description'] ) ? absint( $REQ['EED_Events_Archive_display_description'] ) : 1;
606
-			$CFG->EED_Events_Archive->display_ticket_selector = isset( $REQ['EED_Events_Archive_display_ticket_selector'] ) ? absint( $REQ['EED_Events_Archive_display_ticket_selector'] ) : 0;
607
-			$CFG->EED_Events_Archive->display_datetimes = isset( $REQ['EED_Events_Archive_display_datetimes'] ) ? absint( $REQ['EED_Events_Archive_display_datetimes'] ) : 1;
608
-			$CFG->EED_Events_Archive->display_venue = isset( $REQ['EED_Events_Archive_display_venue'] ) ? absint( $REQ['EED_Events_Archive_display_venue'] ) : 0;
609
-			$CFG->EED_Events_Archive->display_expired_events = isset( $REQ['EED_Events_Archive_display_expired_events'] ) ? absint( $REQ['EED_Events_Archive_display_expired_events'] ) : 0;			}
603
+		if ( ! isset($REQ['EED_Events_Archive_reset_event_list_settings']) || absint($REQ['EED_Events_Archive_reset_event_list_settings']) !== 1) {
604
+			$CFG->EED_Events_Archive->display_status_banner = isset($REQ['EED_Events_Archive_display_status_banner']) ? absint($REQ['EED_Events_Archive_display_status_banner']) : 0;
605
+			$CFG->EED_Events_Archive->display_description = isset($REQ['EED_Events_Archive_display_description']) ? absint($REQ['EED_Events_Archive_display_description']) : 1;
606
+			$CFG->EED_Events_Archive->display_ticket_selector = isset($REQ['EED_Events_Archive_display_ticket_selector']) ? absint($REQ['EED_Events_Archive_display_ticket_selector']) : 0;
607
+			$CFG->EED_Events_Archive->display_datetimes = isset($REQ['EED_Events_Archive_display_datetimes']) ? absint($REQ['EED_Events_Archive_display_datetimes']) : 1;
608
+			$CFG->EED_Events_Archive->display_venue = isset($REQ['EED_Events_Archive_display_venue']) ? absint($REQ['EED_Events_Archive_display_venue']) : 0;
609
+			$CFG->EED_Events_Archive->display_expired_events = isset($REQ['EED_Events_Archive_display_expired_events']) ? absint($REQ['EED_Events_Archive_display_expired_events']) : 0; }
610 610
 		return $CFG;
611 611
 	}
612 612
 
@@ -619,10 +619,10 @@  discard block
 block discarded – undo
619 619
 	 * @param string $extra_class
620 620
 	 * @return    string
621 621
 	 */
622
-	public static function event_list_css( $extra_class = '' ) {
623
-		$event_list_css = ! empty( $extra_class ) ? array( $extra_class ) : array();
622
+	public static function event_list_css($extra_class = '') {
623
+		$event_list_css = ! empty($extra_class) ? array($extra_class) : array();
624 624
 		$event_list_css[] = 'espresso-event-list-event';
625
-		return implode( ' ', $event_list_css );
625
+		return implode(' ', $event_list_css);
626 626
 	}
627 627
 
628 628
 
@@ -649,9 +649,9 @@  discard block
 block discarded – undo
649 649
 	 * @param $value
650 650
 	 * @return    bool
651 651
 	 */
652
-	public static function display_description( $value ) {
652
+	public static function display_description($value) {
653 653
 		$config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
654
-		$display_description= isset( $config->display_description ) ? $config->display_description : 1;
654
+		$display_description = isset($config->display_description) ? $config->display_description : 1;
655 655
 		return $display_description === $value ? TRUE : FALSE;
656 656
 	}
657 657
 
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
 	 */
665 665
 	public static function display_ticket_selector() {
666 666
 		$config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
667
-		return isset( $config->display_ticket_selector ) && $config->display_ticket_selector ? TRUE : FALSE;
667
+		return isset($config->display_ticket_selector) && $config->display_ticket_selector ? TRUE : FALSE;
668 668
 	}
669 669
 
670 670
 
@@ -676,9 +676,9 @@  discard block
 block discarded – undo
676 676
 	 *  @return 	bool
677 677
 	 */
678 678
 	public static function display_venue() {
679
-		EE_Registry::instance()->load_helper( 'Venue_View' );
679
+		EE_Registry::instance()->load_helper('Venue_View');
680 680
 		$config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
681
-		return isset( $config->display_venue ) && $config->display_venue && EEH_Venue_View::venue_name() ? TRUE : FALSE;
681
+		return isset($config->display_venue) && $config->display_venue && EEH_Venue_View::venue_name() ? TRUE : FALSE;
682 682
 	}
683 683
 
684 684
 
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
 	 */
691 691
 	public static function display_datetimes() {
692 692
 		$config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
693
-		return isset( $config->display_datetimes ) && $config->display_datetimes ? TRUE : FALSE;
693
+		return isset($config->display_datetimes) && $config->display_datetimes ? TRUE : FALSE;
694 694
 }
695 695
 
696 696
 
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
 	 *  @return 	string
706 706
 	 */
707 707
 	public static function event_list_title() {
708
-		return apply_filters( 'FHEE__archive_espresso_events_template__upcoming_events_h1', __( 'Upcoming Events', 'event_espresso' ));
708
+		return apply_filters('FHEE__archive_espresso_events_template__upcoming_events_h1', __('Upcoming Events', 'event_espresso'));
709 709
 	}
710 710
 
711 711
 
@@ -714,11 +714,11 @@  discard block
 block discarded – undo
714 714
 	/**
715 715
 	 * 	@since 4.4.0
716 716
 	 */
717
-	public static function _doing_it_wrong_notice( $function = '' ) {
717
+	public static function _doing_it_wrong_notice($function = '') {
718 718
 		EE_Error::doing_it_wrong(
719 719
 			__FUNCTION__,
720 720
 			sprintf(
721
-				__( 'EED_Events_Archive::%1$s was moved to EEH_Event_Query::%1$s:%2$sPlease update your existing code because the method it calls will be removed in version %3$s', 'event_espresso' ),
721
+				__('EED_Events_Archive::%1$s was moved to EEH_Event_Query::%1$s:%2$sPlease update your existing code because the method it calls will be removed in version %3$s', 'event_espresso'),
722 722
 				$function,
723 723
 				'<br />',
724 724
 				'4.6.0'
@@ -734,107 +734,107 @@  discard block
 block discarded – undo
734 734
 	 * 	@since 4.4.0
735 735
 	 */
736 736
 	public function get_post_data() {
737
-		EE_Registry::instance()->load_helper( 'Event_Query' );
737
+		EE_Registry::instance()->load_helper('Event_Query');
738 738
 		EEH_Event_Query::set_query_params();
739 739
 	}
740 740
 	/**
741 741
 	 * 	@deprecated
742 742
 	 * 	@since 4.4.0
743 743
 	 */
744
-	public function posts_fields( $SQL, WP_Query $wp_query ) {
745
-		EE_Registry::instance()->load_helper( 'Event_Query' );
746
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
747
-		return EEH_Event_Query::posts_fields( $SQL, $wp_query );
744
+	public function posts_fields($SQL, WP_Query $wp_query) {
745
+		EE_Registry::instance()->load_helper('Event_Query');
746
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
747
+		return EEH_Event_Query::posts_fields($SQL, $wp_query);
748 748
 	}
749 749
 	/**
750 750
 	 * 	@deprecated
751 751
 	 * 	@since 4.4.0
752 752
 	 */
753
-	public static function posts_fields_sql_for_orderby( $orderby_params = array() ) {
754
-		EE_Registry::instance()->load_helper( 'Event_Query' );
755
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
756
-		return EEH_Event_Query::posts_fields_sql_for_orderby( $orderby_params );
753
+	public static function posts_fields_sql_for_orderby($orderby_params = array()) {
754
+		EE_Registry::instance()->load_helper('Event_Query');
755
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
756
+		return EEH_Event_Query::posts_fields_sql_for_orderby($orderby_params);
757 757
 	}
758 758
 	/**
759 759
 	 * 	@deprecated
760 760
 	 * 	@since 4.4.0
761 761
 	 */
762
-	public function posts_join( $SQL, WP_Query $wp_query ) {
763
-		EE_Registry::instance()->load_helper( 'Event_Query' );
764
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
765
-		return EEH_Event_Query::posts_join( $SQL, $wp_query );
762
+	public function posts_join($SQL, WP_Query $wp_query) {
763
+		EE_Registry::instance()->load_helper('Event_Query');
764
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
765
+		return EEH_Event_Query::posts_join($SQL, $wp_query);
766 766
 	}
767 767
 	/**
768 768
 	 * 	@deprecated
769 769
 	 * 	@since 4.4.0
770 770
 	 */
771
-	public static function posts_join_sql_for_terms( $join_terms = NULL ) {
772
-		EE_Registry::instance()->load_helper( 'Event_Query' );
773
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
774
-		return EEH_Event_Query::posts_join_sql_for_terms( $join_terms );
771
+	public static function posts_join_sql_for_terms($join_terms = NULL) {
772
+		EE_Registry::instance()->load_helper('Event_Query');
773
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
774
+		return EEH_Event_Query::posts_join_sql_for_terms($join_terms);
775 775
 	}
776 776
 	/**
777 777
 	 * 	@deprecated
778 778
 	 * 	@since 4.4.0
779 779
 	 */
780
-	public static function posts_join_for_orderby( $orderby_params = array() ) {
781
-		EE_Registry::instance()->load_helper( 'Event_Query' );
782
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
783
-		return EEH_Event_Query::posts_join_for_orderby( $orderby_params );
780
+	public static function posts_join_for_orderby($orderby_params = array()) {
781
+		EE_Registry::instance()->load_helper('Event_Query');
782
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
783
+		return EEH_Event_Query::posts_join_for_orderby($orderby_params);
784 784
 	}
785 785
 	/**
786 786
 	 * 	@deprecated
787 787
 	 * 	@since 4.4.0
788 788
 	 */
789
-	public function posts_where( $SQL, WP_Query $wp_query ) {
790
-		EE_Registry::instance()->load_helper( 'Event_Query' );
791
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
792
-		return EEH_Event_Query::posts_where( $SQL, $wp_query );
789
+	public function posts_where($SQL, WP_Query $wp_query) {
790
+		EE_Registry::instance()->load_helper('Event_Query');
791
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
792
+		return EEH_Event_Query::posts_where($SQL, $wp_query);
793 793
 	}
794 794
 	/**
795 795
 	 * 	@deprecated
796 796
 	 * 	@since 4.4.0
797 797
 	 */
798
-	public static function posts_where_sql_for_show_expired( $show_expired = FALSE ) {
799
-		EE_Registry::instance()->load_helper( 'Event_Query' );
800
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
801
-		return EEH_Event_Query::posts_where_sql_for_show_expired( $show_expired );
798
+	public static function posts_where_sql_for_show_expired($show_expired = FALSE) {
799
+		EE_Registry::instance()->load_helper('Event_Query');
800
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
801
+		return EEH_Event_Query::posts_where_sql_for_show_expired($show_expired);
802 802
 	}
803 803
 	/**
804 804
 	 * 	@deprecated
805 805
 	 * 	@since 4.4.0
806 806
 	 */
807
-	public static function posts_where_sql_for_event_category_slug( $event_category_slug = NULL ) {
808
-		EE_Registry::instance()->load_helper( 'Event_Query' );
809
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
810
-		return EEH_Event_Query::posts_where_sql_for_event_category_slug( $event_category_slug );
807
+	public static function posts_where_sql_for_event_category_slug($event_category_slug = NULL) {
808
+		EE_Registry::instance()->load_helper('Event_Query');
809
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
810
+		return EEH_Event_Query::posts_where_sql_for_event_category_slug($event_category_slug);
811 811
 	}
812 812
 	/**
813 813
 	 * 	@deprecated
814 814
 	 * 	@since 4.4.0
815 815
 	 */
816
-	public static function posts_where_sql_for_event_list_month( $month = NULL ) {
817
-		EE_Registry::instance()->load_helper( 'Event_Query' );
818
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
819
-		return EEH_Event_Query::posts_where_sql_for_event_list_month( $month );
816
+	public static function posts_where_sql_for_event_list_month($month = NULL) {
817
+		EE_Registry::instance()->load_helper('Event_Query');
818
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
819
+		return EEH_Event_Query::posts_where_sql_for_event_list_month($month);
820 820
 	}
821 821
 	/**
822 822
 	 * 	@deprecated
823 823
 	 * 	@since 4.4.0
824 824
 	 */
825
-	public function posts_orderby( $SQL, WP_Query $wp_query ) {
826
-		EE_Registry::instance()->load_helper( 'Event_Query' );
827
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
828
-		return EEH_Event_Query::posts_orderby( $SQL, $wp_query );
825
+	public function posts_orderby($SQL, WP_Query $wp_query) {
826
+		EE_Registry::instance()->load_helper('Event_Query');
827
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
828
+		return EEH_Event_Query::posts_orderby($SQL, $wp_query);
829 829
 	}
830 830
 	/**
831 831
 	 * 	@deprecated
832 832
 	 * 	@since 4.4.0
833 833
 	 */
834
-	public static function posts_orderby_sql( $orderby_params = array(), $sort = 'ASC' ) {
835
-		EE_Registry::instance()->load_helper( 'Event_Query' );
836
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
837
-		return EEH_Event_Query::posts_orderby_sql( $orderby_params, $sort );
834
+	public static function posts_orderby_sql($orderby_params = array(), $sort = 'ASC') {
835
+		EE_Registry::instance()->load_helper('Event_Query');
836
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
837
+		return EEH_Event_Query::posts_orderby_sql($orderby_params, $sort);
838 838
 	}
839 839
 
840 840
 
@@ -865,8 +865,8 @@  discard block
 block discarded – undo
865 865
  * @param string $extra_class
866 866
  * @return string
867 867
  */
868
-function espresso_event_list_css( $extra_class = '' ) {
869
-	return EED_Events_Archive::event_list_css( $extra_class );
868
+function espresso_event_list_css($extra_class = '') {
869
+	return EED_Events_Archive::event_list_css($extra_class);
870 870
 }
871 871
 
872 872
 /**
@@ -880,14 +880,14 @@  discard block
 block discarded – undo
880 880
  * @return bool
881 881
  */
882 882
 function espresso_display_full_description_in_event_list() {
883
-	return EED_Events_Archive::display_description( 2 );
883
+	return EED_Events_Archive::display_description(2);
884 884
 }
885 885
 
886 886
 /**
887 887
  * @return bool
888 888
  */
889 889
 function espresso_display_excerpt_in_event_list() {
890
-	return EED_Events_Archive::display_description( 1 );
890
+	return EED_Events_Archive::display_description(1);
891 891
 }
892 892
 
893 893
 /**
Please login to merge, or discard this patch.