Completed
Branch BUG-10608-primary-registration... (c40aa6)
by
unknown
65:42 queued 53:47
created
public/Espresso_Arabica_2014/content-espresso_venues-header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php //echo '<h1>' . __FILE__ . '</h1>'; ?>
2 2
 <?php global $post; 
3
-$wrap_class = has_excerpt( $post->ID ) ? ' has-excerpt' : '';
3
+$wrap_class = has_excerpt($post->ID) ? ' has-excerpt' : '';
4 4
 ?>
5
-<header class="venue-header<?php echo $wrap_class;?>">
5
+<header class="venue-header<?php echo $wrap_class; ?>">
6 6
 	<h1 id="venue-details-h1" class="entry-title">
7 7
 		<a class="" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
8 8
 	</h1>
9
-	<?php if ( has_excerpt( $post->ID )) { the_excerpt(); } ?>
9
+	<?php if (has_excerpt($post->ID)) { the_excerpt(); } ?>
10 10
 </header>
11 11
 <!-- .venue-content -->
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_venues-location.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php //echo '<h1>' . __FILE__ . '</h1>'; 
2 2
 global $post; 
3
-if ( espresso_venue_has_address( $post->ID )) :
3
+if (espresso_venue_has_address($post->ID)) :
4 4
 ?>
5 5
 <div class="venue-location">
6 6
 	
7 7
 	<h3 class="venue-address-h3 ee-venue-h3">
8
-		<span class="dashicons dashicons-location-alt"></span><?php _e( 'Location', 'event_espresso' ); ?>
8
+		<span class="dashicons dashicons-location-alt"></span><?php _e('Location', 'event_espresso'); ?>
9 9
 	</h3>
10
-	<span class="small-text"><strong><?php _e( 'Address:', 'event_espresso' ); ?></strong></span><?php espresso_venue_address( 'inline', $post->ID ); ?>
10
+	<span class="small-text"><strong><?php _e('Address:', 'event_espresso'); ?></strong></span><?php espresso_venue_address('inline', $post->ID); ?>
11 11
 	<div class="clear"></div>
12 12
 
13
-	<div class="venue-gmap"><?php espresso_venue_gmap( $post->ID ); ?></div>
13
+	<div class="venue-gmap"><?php espresso_venue_gmap($post->ID); ?></div>
14 14
 	<div class="clear"></div>
15 15
 	
16 16
 </div>
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_venues-thumbnail.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php //echo '<h1>' . __FILE__ . '</h1>'; ?>
2 2
 <?php global $post; ?>
3
-<?php do_action( 'AHEE__content_espresso_venues_template__before_featured_img', $post ); ?>	
3
+<?php do_action('AHEE__content_espresso_venues_template__before_featured_img', $post); ?>	
4 4
 <?php				
5
-if ( has_post_thumbnail( $post->ID )) :
6
-	if ( $img_ID = get_post_thumbnail_id( $post->ID )) :
7
-		if ( $featured_img = wp_get_attachment_image_src( $img_ID, 'large' )) :
8
-			$caption = esc_attr( get_post( get_post( $img_ID ))->post_excerpt );
5
+if (has_post_thumbnail($post->ID)) :
6
+	if ($img_ID = get_post_thumbnail_id($post->ID)) :
7
+		if ($featured_img = wp_get_attachment_image_src($img_ID, 'large')) :
8
+			$caption = esc_attr(get_post(get_post($img_ID))->post_excerpt);
9 9
 			$wrap_class .= ' has-img';
10 10
 			?>
11 11
 <div id="ee-venue-img-dv-<?php echo $post->ID; ?>" class="ee-venue-img-dv">
@@ -18,5 +18,5 @@  discard block
 block discarded – undo
18 18
 	endif;
19 19
 endif;
20 20
 ?>		
21
-<?php do_action( 'AHEE__content_espresso_venues_template__after_featured_img', $post );?>
21
+<?php do_action('AHEE__content_espresso_venues_template__after_featured_img', $post); ?>
22 22
 <!-- .venue-content -->
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_venues.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -11,41 +11,41 @@
 block discarded – undo
11 11
  */
12 12
 
13 13
 global $post;
14
-$wrap_class = has_excerpt( $post->ID ) ? ' has-excerpt' : '';
14
+$wrap_class = has_excerpt($post->ID) ? ' has-excerpt' : '';
15 15
 ?>
16
-<?php do_action( 'AHEE__content_espresso_venues_template__before_post', $post ); ?>
17
-<article id="post-<?php the_ID(); ?>" <?php post_class( 'espresso-venue-details entry-content ' . $wrap_class ); ?>>
16
+<?php do_action('AHEE__content_espresso_venues_template__before_post', $post); ?>
17
+<article id="post-<?php the_ID(); ?>" <?php post_class('espresso-venue-details entry-content '.$wrap_class); ?>>
18 18
 
19
-<?php if ( is_single() ) : ?>
19
+<?php if (is_single()) : ?>
20 20
 
21
-	<div id="espresso-venue-header-dv-<?php echo $post->ID;?>" class="espresso-venue-header-dv">
22
-		<?php espresso_get_template_part( 'content', 'espresso_venues-thumbnail' ); ?>
23
-		<?php espresso_get_template_part( 'content', 'espresso_venues-header' ); ?>
21
+	<div id="espresso-venue-header-dv-<?php echo $post->ID; ?>" class="espresso-venue-header-dv">
22
+		<?php espresso_get_template_part('content', 'espresso_venues-thumbnail'); ?>
23
+		<?php espresso_get_template_part('content', 'espresso_venues-header'); ?>
24 24
 	</div>
25 25
 
26 26
 	<div class="espresso-venue-wrapper-dv">
27
-		<?php espresso_get_template_part( 'content', 'espresso_venues-details' ); ?>
28
-		<?php espresso_get_template_part( 'content', 'espresso_venues-location' ); ?>
27
+		<?php espresso_get_template_part('content', 'espresso_venues-details'); ?>
28
+		<?php espresso_get_template_part('content', 'espresso_venues-location'); ?>
29 29
 		<footer class="venue-meta">
30
-			<?php do_action( 'AHEE__content_espresso_venues_template__footer_top', $post ); ?>
31
-			<?php do_action( 'AHEE__content_espresso_venues_template__footer_bottom', $post ); ?>
30
+			<?php do_action('AHEE__content_espresso_venues_template__footer_top', $post); ?>
31
+			<?php do_action('AHEE__content_espresso_venues_template__footer_bottom', $post); ?>
32 32
 		</footer>
33 33
 	</div>
34 34
 
35
-<?php elseif ( is_archive() ) : ?>
35
+<?php elseif (is_archive()) : ?>
36 36
 
37
-	<div id="espresso-venue-header-dv-<?php echo $post->ID;?>" class="espresso-venue-header-dv">
38
-		<?php espresso_get_template_part( 'content', 'espresso_venues-thumbnail' ); ?>
39
-		<?php espresso_get_template_part( 'content', 'espresso_venues-header' ); ?>
37
+	<div id="espresso-venue-header-dv-<?php echo $post->ID; ?>" class="espresso-venue-header-dv">
38
+		<?php espresso_get_template_part('content', 'espresso_venues-thumbnail'); ?>
39
+		<?php espresso_get_template_part('content', 'espresso_venues-header'); ?>
40 40
 	</div>
41 41
 
42 42
 	<div class="espresso-venue-wrapper-dv">
43
-		<?php espresso_get_template_part( 'content', 'espresso_venues-details' ); ?>
43
+		<?php espresso_get_template_part('content', 'espresso_venues-details'); ?>
44 44
 	</div>
45 45
 
46 46
 <?php endif; ?>
47 47
 
48 48
 </article>
49 49
 <!-- #post -->
50
-<?php do_action( 'AHEE__content_espresso_venues_template__after_post', $post );
50
+<?php do_action('AHEE__content_espresso_venues_template__after_post', $post);
51 51
 
Please login to merge, or discard this patch.
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 2 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.
public/Espresso_Arabica_2014/single-espresso_venues.php 1 patch
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.
espresso_event_attendees/EES_Espresso_Event_Attendees.shortcode.php 3 patches
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 Attendees shortcode class
4 6
  *
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 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,7 +69,7 @@  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
 		//set default attributes
75 75
 		$default_shortcode_attributes = array(
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 			$default_shortcode_attributes
87 87
 		);
88 88
 		// grab attributes and merge with defaults, then extract
89
-		$attributes = array_merge( (array) $default_shortcode_attributes, (array) $attributes );
89
+		$attributes = array_merge((array) $default_shortcode_attributes, (array) $attributes);
90 90
 
91 91
 		$template_args = array(
92 92
 			'contacts'      => array(),
@@ -102,31 +102,31 @@  discard block
 block discarded – undo
102 102
 		$error = false;
103 103
 
104 104
 		//what event?
105
-		if ( empty( $attributes['event_id'] ) && empty( $attributes['datetime_id'] ) && empty( $attributes['ticket_id'] ) ) {
105
+		if (empty($attributes['event_id']) && empty($attributes['datetime_id']) && empty($attributes['ticket_id'])) {
106 106
 			//seems like is_espresso_event_single() isn't working as expected. So using alternate method.
107
-			if ( is_single() && is_espresso_event() ) {
107
+			if (is_single() && is_espresso_event()) {
108 108
 				$event = EEH_Event_View::get_event();
109
-				if ( $event instanceof EE_Event ) {
109
+				if ($event instanceof EE_Event) {
110 110
 					$template_args['event']          = $event;
111 111
 					$query[0]['Registration.EVT_ID'] = $event->ID();
112 112
 				}
113 113
 			} else {
114 114
 				//try getting the earliest active event if none then get the
115
-				$events = EEM_Event::instance()->get_active_events( array( 'limit'    => 1,
116
-				                                                          'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
117
-				) );
118
-				$events = empty( $events ) ? EEM_Event::instance()->get_upcoming_events( array( 'limit'    => 1,
119
-				                                                                              'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
120
-				) ) : $events;
121
-				$event = reset( $events );
122
-				if ( $event instanceof EE_Event ) {
115
+				$events = EEM_Event::instance()->get_active_events(array('limit'    => 1,
116
+				                                                          'order_by' => array('Datetime.DTT_EVT_start' => 'ASC')
117
+				));
118
+				$events = empty($events) ? EEM_Event::instance()->get_upcoming_events(array('limit'    => 1,
119
+				                                                                              'order_by' => array('Datetime.DTT_EVT_start' => 'ASC')
120
+				)) : $events;
121
+				$event = reset($events);
122
+				if ($event instanceof EE_Event) {
123 123
 					$query[0]['Registration.EVT_ID'] = $event->ID();
124 124
 					$template_args['event']          = $event;
125 125
 				}
126 126
 			}
127
-		} elseif ( ! empty( $attributes['event_id'] ) ) {
128
-			$event = EEM_Event::instance()->get_one_by_ID( $attributes['event_id'] );
129
-			if ( $event instanceof EE_Event ) {
127
+		} elseif ( ! empty($attributes['event_id'])) {
128
+			$event = EEM_Event::instance()->get_one_by_ID($attributes['event_id']);
129
+			if ($event instanceof EE_Event) {
130 130
 				$query[0]['Registration.EVT_ID'] = $attributes['event_id'];
131 131
 				$template_args['event']          = $event;
132 132
 			} else {
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
 		}
136 136
 
137 137
 		//datetime?
138
-		if ( ! empty( $attributes['datetime_id'] ) && empty( $attributes['event_id'] ) ) {
139
-			$datetime = EEM_Datetime::instance()->get_one_by_ID( $attributes['datetime_id'] );
140
-			if ( $datetime instanceof EE_Datetime ) {
138
+		if ( ! empty($attributes['datetime_id']) && empty($attributes['event_id'])) {
139
+			$datetime = EEM_Datetime::instance()->get_one_by_ID($attributes['datetime_id']);
140
+			if ($datetime instanceof EE_Datetime) {
141 141
 				$query[0]['Registration.Ticket.Datetime.DTT_ID'] = $attributes['datetime_id'];
142 142
 				$query['default_where_conditions'] = 'this_model_only';
143 143
 				$template_args['datetime']                      = $datetime;
@@ -148,9 +148,9 @@  discard block
 block discarded – undo
148 148
 		}
149 149
 
150 150
 		//ticket?just
151
-		if ( ! empty( $attributes['ticket_id'] ) && empty( $attributes['event_id'] ) && empty( $attributes['datetime_id'] ) ) {
152
-			$ticket = EEM_Ticket::instance()->get_one_by_ID( $attributes['ticket_id'] );
153
-			if ( $ticket instanceof EE_Ticket ) {
151
+		if ( ! empty($attributes['ticket_id']) && empty($attributes['event_id']) && empty($attributes['datetime_id'])) {
152
+			$ticket = EEM_Ticket::instance()->get_one_by_ID($attributes['ticket_id']);
153
+			if ($ticket instanceof EE_Ticket) {
154 154
 				$query[0]['Registration.TKT_ID'] = $attributes['ticket_id'];
155 155
 				$template_args['ticket']         = $ticket;
156 156
 				$template_args['event']          = $ticket->first_datetime() instanceof EE_Datetime ? $ticket->first_datetime()->event() : null;
@@ -161,17 +161,17 @@  discard block
 block discarded – undo
161 161
 
162 162
 		//status
163 163
 		$reg_status_array = EEM_Registration::reg_status_array();
164
-		if ( $attributes['status'] != 'all' && isset( $reg_status_array[$attributes['status']] ) ) {
164
+		if ($attributes['status'] != 'all' && isset($reg_status_array[$attributes['status']])) {
165 165
 			$query[0]['Registration.STS_ID'] = $attributes['status'];
166 166
 		}
167
-		$query['group_by'] = array( 'ATT_ID' );
168
-		$query['order_by'] = apply_filters( 'FHEE__EES_Espresso_Event_Attendees__process_shortcode__order_by', array( 'ATT_lname' => 'ASC', 'ATT_fname' => 'ASC' ) );
167
+		$query['group_by'] = array('ATT_ID');
168
+		$query['order_by'] = apply_filters('FHEE__EES_Espresso_Event_Attendees__process_shortcode__order_by', array('ATT_lname' => 'ASC', 'ATT_fname' => 'ASC'));
169 169
 
170 170
 		//if we have NO query where conditions, then there was an invalid parameter or the shortcode was used incorrectly
171 171
 		//so when WP_DEBUG is set and true, we'll show a message, otherwise we'll just return an empty string.
172
-		if ( ( ! isset( $query[0] ) || ! is_array( $query[0] ) ) || $error ) {
173
-			if ( WP_DEBUG ) {
174
-				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>';
172
+		if (( ! isset($query[0]) || ! is_array($query[0])) || $error) {
173
+			if (WP_DEBUG) {
174
+				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>';
175 175
 			} else {
176 176
 				return '';
177 177
 			}
@@ -179,11 +179,11 @@  discard block
 block discarded – undo
179 179
 
180 180
 
181 181
 		//get contacts!
182
-		$template_args['contacts'] = EEM_Attendee::instance()->get_all( $query );
182
+		$template_args['contacts'] = EEM_Attendee::instance()->get_all($query);
183 183
 
184 184
 
185 185
 		//all set let's load up the template and return.
186
-		return EEH_Template::locate_template( 'loop-espresso_event_attendees.php', $template_args, true, true );
186
+		return EEH_Template::locate_template('loop-espresso_event_attendees.php', $template_args, true, true);
187 187
 
188 188
 	}
189 189
 
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,10 +113,10 @@
 block discarded – undo
113 113
 			} else {
114 114
 				//try getting the earliest active event if none then get the
115 115
 				$events = EEM_Event::instance()->get_active_events( array( 'limit'    => 1,
116
-				                                                          'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
116
+																		  'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
117 117
 				) );
118 118
 				$events = empty( $events ) ? EEM_Event::instance()->get_upcoming_events( array( 'limit'    => 1,
119
-				                                                                              'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
119
+																							  'order_by' => array( 'Datetime.DTT_EVT_start' => 'ASC' )
120 120
 				) ) : $events;
121 121
 				$event = reset( $events );
122 122
 				if ( $event instanceof EE_Event ) {
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.