Completed
Branch BUG-10738-inconsistency-in-ses... (4fb977)
by
unknown
104:46 queued 94:10
created
public/Espresso_Arabica_2014/archive-espresso_venues.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
 
19 19
 	<section id="primary" class="content-area">
20 20
 		<div id="content" class="site-content" role="main">
21
-			<?php espresso_get_template_part( 'loop', 'espresso_venues' ); ?>			
21
+			<?php espresso_get_template_part('loop', 'espresso_venues'); ?>			
22 22
 		</div><!-- #content -->
23 23
 	</section><!-- #primary -->
24 24
 
25 25
 <?php
26
-get_sidebar( 'content' );
26
+get_sidebar('content');
27 27
 get_sidebar();
28 28
 get_footer();
29 29
\ No newline at end of file
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_event_attendees.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@
 block discarded – undo
11 11
  * @type EE_Attendee $contact
12 12
  * @type bool       $show_gravatar  whether to show gravatar or not.
13 13
  */
14
-if ( $show_gravatar ) {
15
-	$gravatar = get_avatar( $contact->email(),
16
-		(int) apply_filters( 'FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32 )
14
+if ($show_gravatar) {
15
+	$gravatar = get_avatar($contact->email(),
16
+		(int) apply_filters('FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32)
17 17
 		);
18 18
 } else {
19 19
 	$gravatar = '';
20 20
 }
21 21
 ?>
22
-<?php do_action( 'AHEE__content-espresso_event_attendees__before', $contact, $show_gravatar ); ?>
23
-<li><?php echo $gravatar . '&nbsp;' .  $contact->full_name(); ?></li>
24
-<?php do_action( 'AHEE__content-espresso_event_attendees__after', $contact, $show_gravatar ); ?>
25 22
\ No newline at end of file
23
+<?php do_action('AHEE__content-espresso_event_attendees__before', $contact, $show_gravatar); ?>
24
+<li><?php echo $gravatar.'&nbsp;'.$contact->full_name(); ?></li>
25
+<?php do_action('AHEE__content-espresso_event_attendees__after', $contact, $show_gravatar); ?>
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_events-tickets.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
3 3
 global $post;
4
-if ( espresso_display_ticket_selector( $post->ID ) && ( is_single() || ( is_archive() && espresso_display_ticket_selector_in_event_list() ))) :
4
+if (espresso_display_ticket_selector($post->ID) && (is_single() || (is_archive() && espresso_display_ticket_selector_in_event_list()))) :
5 5
 ?>
6 6
 <div class="event-tickets" style="clear: both;">
7
-	<?php espresso_ticket_selector( $post ); ?>
7
+	<?php espresso_ticket_selector($post); ?>
8 8
 </div>
9 9
 <!-- .event-tickets -->
10
-<?php elseif ( ! is_single() ) : ?>
11
-<?php espresso_view_details_btn( $post ); ?>
10
+<?php elseif ( ! is_single()) : ?>
11
+<?php espresso_view_details_btn($post); ?>
12 12
 <?php endif; ?>
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
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_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.