Completed
Branch BUG-9518-remove-recommend-wp-v... (799da8)
by
unknown
480:10 queued 465:05
created
public/Espresso_Arabica_2014/loop-espresso_events.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,10 @@  discard block
 block discarded – undo
24 24
 				elseif ( is_year() ) :
25 25
 					printf( __( 'Events This Year: %s', 'event_espresso' ), get_the_date( _x( 'Y', 'yearly archives date format', 'event_espresso' ) ) );
26 26
 
27
-				else :
27
+				else {
28
+					:
28 29
 					echo apply_filters( 'FHEE__archive_espresso_events_template__upcoming_events_h1', __( 'Upcoming Events', 'event_espresso' ));
30
+				}
29 31
 
30 32
 				endif;
31 33
 			?>
@@ -45,9 +47,11 @@  discard block
 block discarded – undo
45 47
 		// allow moar other stuff
46 48
 		do_action( 'AHEE__archive_espresso_events_template__after_loop' );
47 49
 
48
-	else :
50
+	else {
51
+		:
49 52
 		// If no content, include the "No posts found" template.
50 53
 		espresso_get_template_part( 'content', 'none' );
54
+	}
51 55
 		
52 56
 	endif;
53 57
 	
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -11,22 +11,22 @@  discard block
 block discarded – undo
11 11
  * @ version		4+
12 12
  */
13 13
 
14
- if ( have_posts() ) : ?>
14
+ if (have_posts()) : ?>
15 15
 
16 16
 	<header class="page-header">
17 17
 		<h1 class="page-title">
18 18
 			<?php
19
-				if ( is_day() ) :
20
-					printf( __( 'Today\'s Events: %s', 'event_espresso' ), get_the_date() );
19
+				if (is_day()) :
20
+					printf(__('Today\'s Events: %s', 'event_espresso'), get_the_date());
21 21
 
22
-				elseif ( is_month() ) :
23
-					printf( __( 'Events This Month: %s', 'event_espresso' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'event_espresso' ) ) );
22
+				elseif (is_month()) :
23
+					printf(__('Events This Month: %s', 'event_espresso'), get_the_date(_x('F Y', 'monthly archives date format', 'event_espresso')));
24 24
 
25
-				elseif ( is_year() ) :
26
-					printf( __( 'Events This Year: %s', 'event_espresso' ), get_the_date( _x( 'Y', 'yearly archives date format', 'event_espresso' ) ) );
25
+				elseif (is_year()) :
26
+					printf(__('Events This Year: %s', 'event_espresso'), get_the_date(_x('Y', 'yearly archives date format', 'event_espresso')));
27 27
 
28 28
 				else :
29
-					echo apply_filters( 'FHEE__archive_espresso_events_template__upcoming_events_h1', __( 'Upcoming Events', 'event_espresso' ));
29
+					echo apply_filters('FHEE__archive_espresso_events_template__upcoming_events_h1', __('Upcoming Events', 'event_espresso'));
30 30
 
31 31
 				endif;
32 32
 			?>
@@ -36,20 +36,20 @@  discard block
 block discarded – undo
36 36
 
37 37
 	<?php
38 38
 		// allow other stuff
39
-		do_action( 'AHEE__archive_espresso_events_template__before_loop' );
39
+		do_action('AHEE__archive_espresso_events_template__before_loop');
40 40
 		// Start the Loop.
41
-		while ( have_posts() ) : the_post();
41
+		while (have_posts()) : the_post();
42 42
 			// Include the post TYPE-specific template for the content.
43
-			espresso_get_template_part( 'content', 'espresso_events-shortcode' );
43
+			espresso_get_template_part('content', 'espresso_events-shortcode');
44 44
 		endwhile;
45 45
 		// Previous/next page navigation.
46 46
 		espresso_pagination();
47 47
 		// allow moar other stuff
48
-		do_action( 'AHEE__archive_espresso_events_template__after_loop' );
48
+		do_action('AHEE__archive_espresso_events_template__after_loop');
49 49
 
50 50
 	else :
51 51
 		// If no content, include the "No posts found" template.
52
-		espresso_get_template_part( 'content', 'none' );
52
+		espresso_get_template_part('content', 'none');
53 53
 
54 54
 	endif;
55 55
 
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/loop-espresso_venues.php 3 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,30 +10,30 @@
 block discarded – undo
10 10
  * @ version		4+
11 11
  */
12 12
 
13
-if ( have_posts() ) : ?>
13
+if (have_posts()) : ?>
14 14
 
15 15
 	<header class="page-header">
16 16
 		<h1 class="page-title">
17
-			<?php echo __( 'Event Venues', 'event_espresso' ); ?>
17
+			<?php echo __('Event Venues', 'event_espresso'); ?>
18 18
 		</h1>
19 19
 	</header><!-- .page-header -->
20 20
 	
21 21
 <?php 
22 22
 	// allow other stuff
23
-	do_action( 'AHEE__archive_espresso_venues_template__before_loop' ); 
23
+	do_action('AHEE__archive_espresso_venues_template__before_loop'); 
24 24
 	// Start the Loop.
25
-	while ( have_posts() ) : the_post();
25
+	while (have_posts()) : the_post();
26 26
 		// Include the post TYPE-specific template for the content.
27
-		espresso_get_template_part( 'content', 'espresso_venues' );
27
+		espresso_get_template_part('content', 'espresso_venues');
28 28
 	endwhile;
29 29
 	// Previous/next page navigation.
30 30
 	espresso_pagination();
31 31
 	// allow moar other stuff
32
-	do_action( 'AHEE__archive_espresso_venues_template__after_loop' ); 
32
+	do_action('AHEE__archive_espresso_venues_template__after_loop'); 
33 33
 
34 34
 
35 35
 else :
36 36
 	// If no content, include the "No posts found" template.
37
-	espresso_get_template_part( 'content', 'none' );
37
+	espresso_get_template_part('content', 'none');
38 38
 	
39 39
 endif;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,8 +32,10 @@
 block discarded – undo
32 32
 	do_action( 'AHEE__archive_espresso_venues_template__after_loop' ); 
33 33
 
34 34
 
35
-else :
35
+else {
36
+	:
36 37
 	// If no content, include the "No posts found" template.
37 38
 	espresso_get_template_part( 'content', 'none' );
39
+}
38 40
 	
39 41
 endif;
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This template will display The Loop that displays your venues 
4
- *
5
- * @ package		Event Espresso
6
- * @ author		Seth Shoultes
7
- * @ copyright	(c) 2008-2013 Event Espresso  All Rights Reserved.
8
- * @ license		http://eventespresso.com/support/terms-conditions/   * see Plugin Licensing *
9
- * @ link			http://www.eventespresso.com
10
- * @ version		4+
11
- */
3
+			 * This template will display The Loop that displays your venues 
4
+			 *
5
+			 * @ package		Event Espresso
6
+			 * @ author		Seth Shoultes
7
+			 * @ copyright	(c) 2008-2013 Event Espresso  All Rights Reserved.
8
+			 * @ license		http://eventespresso.com/support/terms-conditions/   * see Plugin Licensing *
9
+			 * @ link			http://www.eventespresso.com
10
+			 * @ version		4+
11
+			 */
12 12
 
13 13
 if ( have_posts() ) : ?>
14 14
 
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/single-espresso_events.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
 				<div id="espresso-event-details-dv" class="" >				
19 19
 			<?php
20 20
 				// Start the Loop.
21
-				while ( have_posts() ) : the_post();
21
+				while (have_posts()) : the_post();
22 22
 					//  Include the post TYPE-specific template for the content.
23
-					espresso_get_template_part( 'content', 'espresso_events' );
23
+					espresso_get_template_part('content', 'espresso_events');
24 24
 					// If comments are open or we have at least one comment, load up the comment template.
25
-					if ( comments_open() || get_comments_number() ) {
25
+					if (comments_open() || get_comments_number()) {
26 26
 						comments_template();
27 27
 					}
28 28
 				endwhile;
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
 	</div><!-- #primary -->
35 35
 
36 36
 <?php
37
-get_sidebar( 'content' );
37
+get_sidebar('content');
38 38
 get_sidebar();
39 39
 get_footer();
40 40
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Template Name: Event Details
4
- *
5
- * This is template will display all of your event's details
6
- *
7
- * @ package		Event Espresso - Event Registration and Management Plugin for WordPress
8
- * @ link			http://www.eventespresso.com
9
- * @ version		EE4+
10
- */
3
+  * Template Name: Event Details
4
+  *
5
+  * This is template will display all of your event's details
6
+  *
7
+  * @ package		Event Espresso - Event Registration and Management Plugin for WordPress
8
+  * @ link			http://www.eventespresso.com
9
+  * @ version		EE4+
10
+  */
11 11
 get_header();
12 12
 //echo '<br/><h6 style="color:#2EA2CC;">' . __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
13 13
 ?>
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/single-espresso_venues.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
 				<div id="espresso-venue-details-dv" class="" >				
19 19
 			<?php
20 20
 				// Start the Loop.
21
-				while ( have_posts() ) : the_post();
21
+				while (have_posts()) : the_post();
22 22
 					//  Include the post TYPE-specific template for the content.
23
-					espresso_get_template_part( 'content', 'espresso_venues' );
23
+					espresso_get_template_part('content', 'espresso_venues');
24 24
 					// If comments are open or we have at least one comment, load up the comment template.
25
-					if ( comments_open() || get_comments_number() ) {
25
+					if (comments_open() || get_comments_number()) {
26 26
 						comments_template();
27 27
 					}
28 28
 				endwhile;
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
 	</div><!-- #primary -->
35 35
 
36 36
 <?php
37
-get_sidebar( 'content' );
37
+get_sidebar('content');
38 38
 get_sidebar();
39 39
 get_footer();
40 40
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Template Name: Venue Details
4
- *
5
- * This is template will display all of your Venue's details
6
- *
7
- * @ package		Event Espresso - Event Registration and Management Plugin for WordPress
8
- * @ link			http://www.eventespresso.com
9
- * @ version		EE4+
10
- */
3
+	 * Template Name: Venue Details
4
+	 *
5
+	 * This is template will display all of your Venue's details
6
+	 *
7
+	 * @ package		Event Espresso - Event Registration and Management Plugin for WordPress
8
+	 * @ link			http://www.eventespresso.com
9
+	 * @ version		EE4+
10
+	 */
11 11
 get_header(); 
12 12
 ?>
13 13
 
Please login to merge, or discard this patch.
shortcodes/espresso_cancelled/EES_Espresso_Cancelled.shortcode.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 	 * @param WP $WP
52 52
 	 * @return    void
53 53
 	 */
54
-	public function run( WP $WP ) {
54
+	public function run(WP $WP) {
55 55
 	}
56 56
 
57 57
 	/**
@@ -61,28 +61,28 @@  discard block
 block discarded – undo
61 61
 	 *  @param		array 	$attributes
62 62
 	 *  @return 	string
63 63
 	 */
64
-	public function process_shortcode( $attributes = array() ) {
65
-		EE_Registry::instance()->load_core( 'Session' );
66
-		$transaction = EE_Registry::instance()->SSN->get_session_data( 'transaction' );
67
-		if ( $transaction instanceof EE_Transaction ) {
68
-			do_action( 'AHEE__EES_Espresso_Cancelled__process_shortcode__transaction', $transaction );
64
+	public function process_shortcode($attributes = array()) {
65
+		EE_Registry::instance()->load_core('Session');
66
+		$transaction = EE_Registry::instance()->SSN->get_session_data('transaction');
67
+		if ($transaction instanceof EE_Transaction) {
68
+			do_action('AHEE__EES_Espresso_Cancelled__process_shortcode__transaction', $transaction);
69 69
 			$registrations = $transaction->registrations();
70
-			foreach( $registrations as $registration ) {
71
-				if ( $registration instanceof EE_Registration ) {
72
-					do_action( 'AHEE__EES_Espresso_Cancelled__process_shortcode__registration', $registration );
70
+			foreach ($registrations as $registration) {
71
+				if ($registration instanceof EE_Registration) {
72
+					do_action('AHEE__EES_Espresso_Cancelled__process_shortcode__registration', $registration);
73 73
 				}
74 74
 			}
75 75
 		}
76
-		do_action( 'AHEE__EES_Espresso_Cancelled__process_shortcode__clear_session' );
76
+		do_action('AHEE__EES_Espresso_Cancelled__process_shortcode__clear_session');
77 77
 		// remove all unwanted records from the db
78
-		if ( EE_Registry::instance()->CART instanceof EE_Cart ) {
78
+		if (EE_Registry::instance()->CART instanceof EE_Cart) {
79 79
 			EE_Registry::instance()->CART->delete_cart();
80 80
 		}
81 81
 		EE_Registry::instance()->SSN->reset_cart();
82 82
 		EE_Registry::instance()->SSN->reset_checkout();
83 83
 		EE_Registry::instance()->SSN->reset_transaction();
84
-		EE_Registry::instance()->SSN->clear_session( __CLASS__, __FUNCTION__ );
85
-		return sprintf( __( '%sAll unsaved registration information entered during this session has been deleted.%s', 'event_espresso' ) , '<p class="ee-registrations-cancelled-pg ee-attention">', '</p>' );
84
+		EE_Registry::instance()->SSN->clear_session(__CLASS__, __FUNCTION__);
85
+		return sprintf(__('%sAll unsaved registration information entered during this session has been deleted.%s', 'event_espresso'), '<p class="ee-registrations-cancelled-pg ee-attention">', '</p>');
86 86
 	}
87 87
 
88 88
 }
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.
espresso_event_attendees/EES_Espresso_Event_Attendees.shortcode.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,10 +117,10 @@
 block discarded – undo
117 117
 			} else {
118 118
 				//try getting the earliest active event if none then get the
119 119
 				$events = EEM_Event::instance()->get_active_events( array( 'limit'    => 1,
120
-				                                                          'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
120
+																		  'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
121 121
 				) );
122 122
 				$events = empty( $events ) ? EEM_Event::instance()->get_upcoming_events( array( 'limit'    => 1,
123
-				                                                                              'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
123
+																							  'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
124 124
 				) ) : array();
125 125
 				$event = reset( $events );
126 126
 				if ( $event instanceof EE_Event ) {
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.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 * @param       WP $WP
20 20
 	 * @return    void
21 21
 	 */
22
-	public function run( WP $WP ) {}
22
+	public function run(WP $WP) {}
23 23
 
24 24
 
25 25
 	/**
@@ -69,14 +69,14 @@  discard block
 block discarded – undo
69 69
 	 *  @param 	    array 	$attributes
70 70
 	 *  @return 	string
71 71
 	 */
72
-	public function process_shortcode( $attributes = array() ) {
72
+	public function process_shortcode($attributes = array()) {
73 73
 
74 74
 		//load helpers
75
-		EE_Registry::instance()->load_helper( 'Event_View' );
76
-		EE_Registry::instance()->load_helper( 'Template' );
75
+		EE_Registry::instance()->load_helper('Event_View');
76
+		EE_Registry::instance()->load_helper('Template');
77 77
 
78 78
 		// merge in any attributes passed via fallback shortcode processor
79
-		$attributes = array_merge( (array) $attributes, (array) $this->_attributes );
79
+		$attributes = array_merge((array) $attributes, (array) $this->_attributes);
80 80
 
81 81
 		//set default attributes
82 82
 		$default_shortcode_attributes = array(
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
 		);
89 89
 
90 90
 		// allow the defaults to be filtered
91
-		$default_shortcode_attributes = apply_filters( 'EES_Espresso_Event_Attendees__process_shortcode__default_shortcode_atts', $default_shortcode_attributes );
91
+		$default_shortcode_attributes = apply_filters('EES_Espresso_Event_Attendees__process_shortcode__default_shortcode_atts', $default_shortcode_attributes);
92 92
 		// grab attributes and merge with defaults, then extract
93
-		$attributes = array_merge( $default_shortcode_attributes, $attributes );
93
+		$attributes = array_merge($default_shortcode_attributes, $attributes);
94 94
 
95 95
 		$template_args = array(
96 96
 			'contacts'      => array(),
@@ -106,31 +106,31 @@  discard block
 block discarded – undo
106 106
 		$error = false;
107 107
 
108 108
 		//what event?
109
-		if ( empty( $attributes['event_id'] ) && empty( $attributes['datetime_id'] ) && empty( $attributes['ticket_id'] ) ) {
109
+		if (empty($attributes['event_id']) && empty($attributes['datetime_id']) && empty($attributes['ticket_id'])) {
110 110
 			//seems like is_espresso_event_single() isn't working as expected. So using alternate method.
111
-			if ( is_single() && is_espresso_event() ) {
111
+			if (is_single() && is_espresso_event()) {
112 112
 				$event = EEH_Event_View::get_event();
113
-				if ( $event instanceof EE_Event ) {
113
+				if ($event instanceof EE_Event) {
114 114
 					$template_args['event']          = $event;
115 115
 					$query[0]['Registration.EVT_ID'] = $event->ID();
116 116
 				}
117 117
 			} else {
118 118
 				//try getting the earliest active event if none then get the
119
-				$events = EEM_Event::instance()->get_active_events( array( 'limit'    => 1,
120
-				                                                          'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
121
-				) );
122
-				$events = empty( $events ) ? EEM_Event::instance()->get_upcoming_events( array( 'limit'    => 1,
123
-				                                                                              'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
124
-				) ) : $events;
125
-				$event = reset( $events );
126
-				if ( $event instanceof EE_Event ) {
119
+				$events = EEM_Event::instance()->get_active_events(array('limit'    => 1,
120
+				                                                          'order_by' => array('Datetime.DTT_EVT_start' => 'ASC')
121
+				));
122
+				$events = empty($events) ? EEM_Event::instance()->get_upcoming_events(array('limit'    => 1,
123
+				                                                                              'order_by' => array('Datetime.DTT_EVT_start' => 'ASC')
124
+				)) : $events;
125
+				$event = reset($events);
126
+				if ($event instanceof EE_Event) {
127 127
 					$query[0]['Registration.EVT_ID'] = $event->ID();
128 128
 					$template_args['event']          = $event;
129 129
 				}
130 130
 			}
131
-		} elseif ( ! empty( $attributes['event_id'] ) ) {
132
-			$event = EEM_Event::instance()->get_one_by_ID( $attributes['event_id'] );
133
-			if ( $event instanceof EE_Event ) {
131
+		} elseif ( ! empty($attributes['event_id'])) {
132
+			$event = EEM_Event::instance()->get_one_by_ID($attributes['event_id']);
133
+			if ($event instanceof EE_Event) {
134 134
 				$query[0]['Registration.EVT_ID'] = $attributes['event_id'];
135 135
 				$template_args['event']          = $event;
136 136
 			} else {
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
 		}
140 140
 
141 141
 		//datetime?
142
-		if ( ! empty( $attributes['datetime_id'] ) && empty( $attributes['event_id'] ) ) {
143
-			$datetime = EEM_Datetime::instance()->get_one_by_ID( $attributes['datetime_id'] );
144
-			if ( $datetime instanceof EE_Datetime ) {
142
+		if ( ! empty($attributes['datetime_id']) && empty($attributes['event_id'])) {
143
+			$datetime = EEM_Datetime::instance()->get_one_by_ID($attributes['datetime_id']);
144
+			if ($datetime instanceof EE_Datetime) {
145 145
 				$query[0]['Registration.Ticket.Datetime.DTT_ID'] = $attributes['datetime_id'];
146 146
 				$query['default_where_conditions'] = 'this_model_only';
147 147
 				$template_args['datetime']                      = $datetime;
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
 		}
153 153
 
154 154
 		//ticket?just
155
-		if ( ! empty( $attributes['ticket_id'] ) && empty( $attributes['event_id'] ) && empty( $attributes['datetime_id'] ) ) {
156
-			$ticket = EEM_Ticket::instance()->get_one_by_ID( $attributes['ticket_id'] );
157
-			if ( $ticket instanceof EE_Ticket ) {
155
+		if ( ! empty($attributes['ticket_id']) && empty($attributes['event_id']) && empty($attributes['datetime_id'])) {
156
+			$ticket = EEM_Ticket::instance()->get_one_by_ID($attributes['ticket_id']);
157
+			if ($ticket instanceof EE_Ticket) {
158 158
 				$query[0]['Registration.TKT_ID'] = $attributes['ticket_id'];
159 159
 				$template_args['ticket']         = $ticket;
160 160
 				$template_args['event']          = $ticket->first_datetime() instanceof EE_Datetime ? $ticket->first_datetime()->event() : null;
@@ -165,17 +165,17 @@  discard block
 block discarded – undo
165 165
 
166 166
 		//status
167 167
 		$reg_status_array = EEM_Registration::reg_status_array();
168
-		if ( $attributes['status'] != 'all' && isset( $reg_status_array[$attributes['status']] ) ) {
168
+		if ($attributes['status'] != 'all' && isset($reg_status_array[$attributes['status']])) {
169 169
 			$query[0]['Registration.STS_ID'] = $attributes['status'];
170 170
 		}
171
-		$query['group_by'] = array( 'ATT_ID' );
172
-		$query['order_by'] = apply_filters( 'FHEE__EES_Espresso_Event_Attendees__process_shortcode__order_by', array( 'ATT_lname' => 'ASC', 'ATT_fname' => 'ASC' ) );
171
+		$query['group_by'] = array('ATT_ID');
172
+		$query['order_by'] = apply_filters('FHEE__EES_Espresso_Event_Attendees__process_shortcode__order_by', array('ATT_lname' => 'ASC', 'ATT_fname' => 'ASC'));
173 173
 
174 174
 		//if we have NO query where conditions, then there was an invalid parameter or the shortcode was used incorrectly
175 175
 		//so when WP_DEBUG is set and true, we'll show a message, otherwise we'll just return an empty string.
176
-		if ( ( ! isset( $query[0] ) || ! is_array( $query[0] ) ) || $error ) {
177
-			if ( WP_DEBUG ) {
178
-				return '<div class="important-notice ee-attention">' . __( 'The [ESPRESSO_EVENT_ATTENDEES] shortcode has been used incorrectly.  Please double check the arguments you used for any typos.  In the case of ID type arguments, its possible the given ID does not correspond to existing data in the database.', 'event_espresso' ) . '</div>';
176
+		if (( ! isset($query[0]) || ! is_array($query[0])) || $error) {
177
+			if (WP_DEBUG) {
178
+				return '<div class="important-notice ee-attention">'.__('The [ESPRESSO_EVENT_ATTENDEES] shortcode has been used incorrectly.  Please double check the arguments you used for any typos.  In the case of ID type arguments, its possible the given ID does not correspond to existing data in the database.', 'event_espresso').'</div>';
179 179
 			} else {
180 180
 				return '';
181 181
 			}
@@ -183,11 +183,11 @@  discard block
 block discarded – undo
183 183
 
184 184
 
185 185
 		//get contacts!
186
-		$template_args['contacts'] = EEM_Attendee::instance()->get_all( $query );
186
+		$template_args['contacts'] = EEM_Attendee::instance()->get_all($query);
187 187
 
188 188
 
189 189
 		//all set let's load up the template and return.
190
-		return EEH_Template::locate_template( 'loop-espresso_event_attendees.php', $template_args, true, true );
190
+		return EEH_Template::locate_template('loop-espresso_event_attendees.php', $template_args, true, true);
191 191
 
192 192
 	}
193 193
 
Please login to merge, or discard this patch.
espresso_thank_you/templates/thank-you-page-overview.template.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php  do_action( 'AHEE__thank_you_page_overview_template__top', $transaction ); ?>
1
+<?php  do_action('AHEE__thank_you_page_overview_template__top', $transaction); ?>
2 2
 
3 3
 <div id="espresso-thank-you-page-overview-dv" class="width-100" >
4 4
 
5
-	<?php if ( ! $revisit ) : ?>
5
+	<?php if ( ! $revisit) : ?>
6 6
 	<div class="ee-attention">
7 7
 		<div class="extra-padding-sides">
8 8
 			<p class="bigger-text">
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 			);
19 19
 			?>
20 20
 			</p>
21
-			<?php if ( ! empty( $TXN_receipt_url )) : ?>
21
+			<?php if ( ! empty($TXN_receipt_url)) : ?>
22 22
 			<div class="jst-rght">
23
-				<a class="ee-button ee-roundish indented-text big-text" href="<?php echo $TXN_receipt_url;?>"><span class="ee-icon ee-icon-PDF-file-type"></span><?php echo apply_filters( 'FHEE__thank_you_page_overview_template__order_conf_button_text', __( 'View Full Order Confirmation Receipt', 'event_espresso' )); ?></a>
23
+				<a class="ee-button ee-roundish indented-text big-text" href="<?php echo $TXN_receipt_url; ?>"><span class="ee-icon ee-icon-PDF-file-type"></span><?php echo apply_filters('FHEE__thank_you_page_overview_template__order_conf_button_text', __('View Full Order Confirmation Receipt', 'event_espresso')); ?></a>
24 24
 			</div>
25 25
 			<?php endif; ?>
26 26
 		</div>
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	<?php endif; ?>
30 30
 	<br/>
31 31
 
32
-	<?php  do_action( 'AHEE__thank_you_page_overview_template__content', $transaction ); ?>
32
+	<?php  do_action('AHEE__thank_you_page_overview_template__content', $transaction); ?>
33 33
 
34 34
 </div>
35 35
 <!-- end of espresso-thank-you-page-overview-dv -->
36 36
 
37
-<?php  do_action( 'AHEE__thank_you_page_overview_template__bottom', $transaction ); ?>
37
+<?php  do_action('AHEE__thank_you_page_overview_template__bottom', $transaction); ?>
Please login to merge, or discard this patch.
espresso_thank_you/templates/thank-you-page-payment-details.template.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,30 +1,30 @@  discard block
 block discarded – undo
1 1
 <h2 class="section-heading display-box-heading">
2 2
 	<?php _e('Payment Overview', 'event_espresso'); ?>
3 3
 </h2>
4
-<?php  do_action( 'AHEE__thank_you_page_payment_details_template__after_heading' ); ?>
4
+<?php  do_action('AHEE__thank_you_page_payment_details_template__after_heading'); ?>
5 5
 
6 6
 <div id="espresso-thank-you-page-payment-details-dv">
7
-<?php if ( ! empty( $payments )){	 ?>
7
+<?php if ( ! empty($payments)) {	 ?>
8 8
 	<table class="ee-table">
9 9
 		<thead>
10 10
 			<tr>
11 11
 				<th width="35%" class="jst-left">
12
-					<?php _e('Payment Date','event_espresso')?>
12
+					<?php _e('Payment Date', 'event_espresso')?>
13 13
 				</th>
14 14
 				<th width="17.5%" class="jst-left">
15
-					<?php _e('Type','event_espresso');?>
15
+					<?php _e('Type', 'event_espresso'); ?>
16 16
 				</th>
17 17
 				<th width="17.5%" class="jst-rght">
18
-					<?php _e('Amount','event_espresso');?>
18
+					<?php _e('Amount', 'event_espresso'); ?>
19 19
 				</th>
20 20
 				<th width="30%" class="jst-rght">
21
-					<?php _e('Status','event_espresso');?>
21
+					<?php _e('Status', 'event_espresso'); ?>
22 22
 				</th>
23 23
 			</tr>
24 24
 		</thead>
25 25
 		<tbody>
26 26
 		<?php
27
-			foreach ( $payments as $payment ) {
27
+			foreach ($payments as $payment) {
28 28
 				echo $payment;
29 29
 			}
30 30
 		?>
@@ -33,38 +33,38 @@  discard block
 block discarded – undo
33 33
 <?php
34 34
 	} else {
35 35
 
36
-		if ( $transaction->total() ){
36
+		if ($transaction->total()) {
37 37
 
38 38
 			echo apply_filters(
39 39
 				'FHEE__payment_overview_template__no_payments_made',
40
-				sprintf (
41
-					__('%sNo payments towards this transaction have been received.%s', 'event_espresso' ),
40
+				sprintf(
41
+					__('%sNo payments towards this transaction have been received.%s', 'event_espresso'),
42 42
 					'<p class="important-notice">',
43 43
 					'</p>'
44 44
 				)
45 45
 			);
46
-			do_action( 'AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction );
46
+			do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction);
47 47
 
48 48
 		} else {
49 49
 
50 50
 			echo apply_filters(
51 51
 				'FHEE__payment_overview_template__no_payment_required',
52
-				sprintf (
53
-					__('%sNo payment is required for this transaction.%s', 'event_espresso' ),
52
+				sprintf(
53
+					__('%sNo payment is required for this transaction.%s', 'event_espresso'),
54 54
 					'<p>',
55 55
 					'</p>'
56 56
 				)
57 57
 			);
58
-			do_action( 'AHEE__thank_you_page_payment_details_template__no_payment_required' );
58
+			do_action('AHEE__thank_you_page_payment_details_template__no_payment_required');
59 59
 
60 60
 		 }
61 61
 
62 62
 	}
63 63
 	echo $gateway_content;
64
-	do_action( 'AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content );
64
+	do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content);
65 65
 
66 66
 ?>
67 67
 
68 68
 	<br/>
69
-	<?php  do_action( 'AHEE__thank_you_page_payment_details_template__after_payment_details' ); ?>
69
+	<?php  do_action('AHEE__thank_you_page_payment_details_template__after_payment_details'); ?>
70 70
 
Please login to merge, or discard this patch.
templates/thank-you-page-transaction-details.template.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <h3><?php _e('Transaction Details', 'event_espresso'); ?></h3>
2
-<?php  do_action( 'AHEE__thank_you_page_transaction_details_template__after_heading' ); ?>
2
+<?php  do_action('AHEE__thank_you_page_transaction_details_template__after_heading'); ?>
3 3
 
4 4
 <div id="espresso-thank-you-page-transaction-details-dv">
5 5
 	<table class='ee-table'>
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 					<label><?php _e('Total Cost: ', 'event_espresso'); ?></label>
10 10
 				</td>
11 11
 				<td>
12
-					<?php echo EEH_Template::format_currency( $transaction->total() ); ?>
12
+					<?php echo EEH_Template::format_currency($transaction->total()); ?>
13 13
 				</td>
14 14
 			</tr>
15 15
 			<tr>
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 					<label><?php _e('Amount Owing: ', 'event_espresso'); ?></label>
18 18
 				</td>
19 19
 				<td class="<?php echo ($transaction->paid() == $transaction->total()) ? 'ee-transaction-paid' : 'ee-transaction-unpaid' ?>">
20
-					<?php echo EEH_Template::format_currency( $transaction->remaining() ); ?>
20
+					<?php echo EEH_Template::format_currency($transaction->remaining()); ?>
21 21
 				</td>
22 22
 			</tr>
23 23
 			<tr>
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 					<label><?php _e('Transaction Status: ', 'event_espresso'); ?></label>
26 26
 				</td>
27 27
 				<td>
28
-					<?php $transaction->e_pretty_status( TRUE );
29
-					if ( $show_try_pay_again_link && ! $transaction->is_completed() ) { ?>
28
+					<?php $transaction->e_pretty_status(TRUE);
29
+					if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
30 30
 					 &nbsp; <span class="small-text"><a href='<?php echo $SPCO_payment_options_url?>'><?php _e('View Payment Options', 'event_espresso'); ?></a></span>
31 31
 					<?php } ?>
32 32
 				</td>
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 					<?php  echo $primary_registrant_name; ?>
40 40
 				</td>
41 41
 			</tr>
42
-            <?php  do_action( 'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row', $transaction ); ?>
42
+            <?php  do_action('AHEE__thank_you_page_transaction_details_template__after_transaction_table_row', $transaction); ?>
43 43
 		</tbody>
44 44
 	</table>
45 45
 
46
-<?php if ( $show_try_pay_again_link && ! $transaction->is_completed() ) { ?>
46
+<?php if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
47 47
 	<p class="small-text jst-rght">
48 48
 		<a href='<?php echo $SPCO_payment_options_url?>'><?php _e("Click here to view Payment Options", 'event_espresso'); ?></a>
49 49
 	</p>
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
 
53 53
 <?php }?>
54 54
 
55
-    <?php  do_action( 'AHEE__thank_you_page_transaction_details_template__after_transaction_details' ); ?>
55
+    <?php  do_action('AHEE__thank_you_page_transaction_details_template__after_transaction_details'); ?>
56 56
 
57 57
 </div>
Please login to merge, or discard this patch.