@@ -1,54 +1,54 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>'; |
| 3 | -if (( is_single() && espresso_display_venue_in_event_details() ) || ( is_archive() && espresso_display_venue_in_event_list() ) ) : |
|
| 3 | +if ((is_single() && espresso_display_venue_in_event_details()) || (is_archive() && espresso_display_venue_in_event_list())) : |
|
| 4 | 4 | global $post; |
| 5 | - do_action( 'AHEE_event_details_before_venue_details', $post ); |
|
| 6 | - $venue_name = espresso_venue_name( 0, 'details', FALSE ); |
|
| 7 | - if ( empty( $venue_name ) && espresso_is_venue_private() ) { |
|
| 8 | - do_action( 'AHEE_event_details_after_venue_details', $post ); |
|
| 5 | + do_action('AHEE_event_details_before_venue_details', $post); |
|
| 6 | + $venue_name = espresso_venue_name(0, 'details', FALSE); |
|
| 7 | + if (empty($venue_name) && espresso_is_venue_private()) { |
|
| 8 | + do_action('AHEE_event_details_after_venue_details', $post); |
|
| 9 | 9 | return ''; |
| 10 | 10 | } |
| 11 | 11 | ?> |
| 12 | 12 | |
| 13 | 13 | <div class="espresso-venue-dv<?php echo espresso_is_venue_private() ? ' espresso-private-venue-dv' : ''; ?>"> |
| 14 | 14 | <h3 class="event-venues-h3 ee-event-h3"> |
| 15 | - <span class="ee-icon ee-icon-venue"></span><?php _e( 'Event Location', 'event_espresso' ); ?> |
|
| 15 | + <span class="ee-icon ee-icon-venue"></span><?php _e('Event Location', 'event_espresso'); ?> |
|
| 16 | 16 | </h3> |
| 17 | - <h4><strong><?php _e( 'Venue:', 'event_espresso' ); ?></strong> <strong> <?php echo $venue_name; ?></strong></h4> |
|
| 17 | + <h4><strong><?php _e('Venue:', 'event_espresso'); ?></strong> <strong> <?php echo $venue_name; ?></strong></h4> |
|
| 18 | 18 | <p><span class="smaller-text tags-links"><?php echo espresso_venue_categories(); ?></span></p> |
| 19 | -<?php if ( $venue_phone = espresso_venue_phone( $post->ID, FALSE )) : ?> |
|
| 19 | +<?php if ($venue_phone = espresso_venue_phone($post->ID, FALSE)) : ?> |
|
| 20 | 20 | <p> |
| 21 | - <span class="small-text"><strong><?php _e( 'Venue Phone:', 'event_espresso' ); ?></strong></span> <?php echo $venue_phone; ?> |
|
| 21 | + <span class="small-text"><strong><?php _e('Venue Phone:', 'event_espresso'); ?></strong></span> <?php echo $venue_phone; ?> |
|
| 22 | 22 | </p> |
| 23 | -<?php endif; ?> |
|
| 24 | -<?php if ( espresso_venue_has_address( $post->ID )) : ?> |
|
| 25 | - <strong><span class="dashicons dashicons-location-alt"></span><?php _e( 'Address:', 'event_espresso' ); ?></strong> |
|
| 26 | - <?php espresso_venue_address( 'inline' ); ?> |
|
| 27 | - <?php espresso_venue_gmap( $post->ID ); ?> |
|
| 23 | +<?php endif; ?> |
|
| 24 | +<?php if (espresso_venue_has_address($post->ID)) : ?> |
|
| 25 | + <strong><span class="dashicons dashicons-location-alt"></span><?php _e('Address:', 'event_espresso'); ?></strong> |
|
| 26 | + <?php espresso_venue_address('inline'); ?> |
|
| 27 | + <?php espresso_venue_gmap($post->ID); ?> |
|
| 28 | 28 | <div class="clear"><br/></div> |
| 29 | -<?php endif; ?> |
|
| 29 | +<?php endif; ?> |
|
| 30 | 30 | |
| 31 | - <?php $VNU_ID = espresso_venue_id( $post->ID ); ?> |
|
| 32 | - <?php if ( is_single() ) : ?> |
|
| 33 | - <?php $venue_description = espresso_venue_description( $VNU_ID, FALSE ); ?> |
|
| 34 | - <?php if ( $venue_description ) : ?> |
|
| 31 | + <?php $VNU_ID = espresso_venue_id($post->ID); ?> |
|
| 32 | + <?php if (is_single()) : ?> |
|
| 33 | + <?php $venue_description = espresso_venue_description($VNU_ID, FALSE); ?> |
|
| 34 | + <?php if ($venue_description) : ?> |
|
| 35 | 35 | <p> |
| 36 | - <strong><?php _e( 'Description:', 'event_espresso' ); ?></strong><br/> |
|
| 36 | + <strong><?php _e('Description:', 'event_espresso'); ?></strong><br/> |
|
| 37 | 37 | <?php echo $venue_description; ?> |
| 38 | 38 | </p> |
| 39 | - <?php endif; ?> |
|
| 39 | + <?php endif; ?> |
|
| 40 | 40 | <?php else : ?> |
| 41 | - <?php $venue_excerpt = espresso_venue_excerpt( $VNU_ID, FALSE ); ?> |
|
| 42 | - <?php if ( $venue_excerpt ) : ?> |
|
| 41 | + <?php $venue_excerpt = espresso_venue_excerpt($VNU_ID, FALSE); ?> |
|
| 42 | + <?php if ($venue_excerpt) : ?> |
|
| 43 | 43 | <p> |
| 44 | - <strong><?php _e( 'Description:', 'event_espresso' ); ?></strong><br/> |
|
| 44 | + <strong><?php _e('Description:', 'event_espresso'); ?></strong><br/> |
|
| 45 | 45 | <?php echo $venue_excerpt; ?> |
| 46 | 46 | </p> |
| 47 | - <?php endif; ?> |
|
| 48 | - <?php endif; ?> |
|
| 47 | + <?php endif; ?> |
|
| 48 | + <?php endif; ?> |
|
| 49 | 49 | </div> |
| 50 | 50 | <!-- .espresso-venue-dv --> |
| 51 | 51 | <?php |
| 52 | -do_action( 'AHEE_event_details_after_venue_details', $post ); |
|
| 52 | +do_action('AHEE_event_details_after_venue_details', $post); |
|
| 53 | 53 | endif; |
| 54 | 54 | ?> |
@@ -37,8 +37,11 @@ |
||
| 37 | 37 | <?php echo $venue_description; ?> |
| 38 | 38 | </p> |
| 39 | 39 | <?php endif; ?> |
| 40 | - <?php else : ?> |
|
| 41 | - <?php $venue_excerpt = espresso_venue_excerpt( $VNU_ID, FALSE ); ?> |
|
| 40 | + <?php else { |
|
| 41 | + : ?> |
|
| 42 | + <?php $venue_excerpt = espresso_venue_excerpt( $VNU_ID, FALSE ); |
|
| 43 | +} |
|
| 44 | +?> |
|
| 42 | 45 | <?php if ( $venue_excerpt ) : ?> |
| 43 | 46 | <p> |
| 44 | 47 | <strong><?php _e( 'Description:', 'event_espresso' ); ?></strong><br/> |
@@ -12,47 +12,47 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | global $post; |
| 15 | -$event_class = has_excerpt( $post->ID ) ? ' has-excerpt' : ''; |
|
| 16 | -$event_class = apply_filters( 'FHEE__content_espresso_events__event_class', $event_class ); |
|
| 15 | +$event_class = has_excerpt($post->ID) ? ' has-excerpt' : ''; |
|
| 16 | +$event_class = apply_filters('FHEE__content_espresso_events__event_class', $event_class); |
|
| 17 | 17 | ?> |
| 18 | -<?php do_action( 'AHEE_event_details_before_post', $post ); ?> |
|
| 19 | -<article id="post-<?php the_ID(); ?>" <?php post_class( $event_class ); ?>> |
|
| 18 | +<?php do_action('AHEE_event_details_before_post', $post); ?> |
|
| 19 | +<article id="post-<?php the_ID(); ?>" <?php post_class($event_class); ?>> |
|
| 20 | 20 | |
| 21 | -<?php if ( is_single() ) : ?> |
|
| 21 | +<?php if (is_single()) : ?> |
|
| 22 | 22 | |
| 23 | - <div id="espresso-event-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv"> |
|
| 24 | - <?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?> |
|
| 25 | - <?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?> |
|
| 23 | + <div id="espresso-event-header-dv-<?php echo $post->ID; ?>" class="espresso-event-header-dv"> |
|
| 24 | + <?php espresso_get_template_part('content', 'espresso_events-thumbnail'); ?> |
|
| 25 | + <?php espresso_get_template_part('content', 'espresso_events-header'); ?> |
|
| 26 | 26 | </div> |
| 27 | 27 | |
| 28 | 28 | <div class="espresso-event-wrapper-dv"> |
| 29 | - <?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?> |
|
| 30 | - <?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?> |
|
| 31 | - <?php espresso_get_template_part( 'content', 'espresso_events-details' ); ?> |
|
| 32 | - <?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?> |
|
| 29 | + <?php espresso_get_template_part('content', 'espresso_events-tickets'); ?> |
|
| 30 | + <?php espresso_get_template_part('content', 'espresso_events-datetimes'); ?> |
|
| 31 | + <?php espresso_get_template_part('content', 'espresso_events-details'); ?> |
|
| 32 | + <?php espresso_get_template_part('content', 'espresso_events-venues'); ?> |
|
| 33 | 33 | <footer class="event-meta"> |
| 34 | - <?php do_action( 'AHEE_event_details_footer_top', $post ); ?> |
|
| 35 | - <?php do_action( 'AHEE_event_details_footer_bottom', $post ); ?> |
|
| 34 | + <?php do_action('AHEE_event_details_footer_top', $post); ?> |
|
| 35 | + <?php do_action('AHEE_event_details_footer_bottom', $post); ?> |
|
| 36 | 36 | </footer> |
| 37 | 37 | </div> |
| 38 | 38 | |
| 39 | -<?php elseif ( is_archive() ) : ?> |
|
| 39 | +<?php elseif (is_archive()) : ?> |
|
| 40 | 40 | |
| 41 | - <div id="espresso-event-list-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv"> |
|
| 42 | - <?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?> |
|
| 43 | - <?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?> |
|
| 41 | + <div id="espresso-event-list-header-dv-<?php echo $post->ID; ?>" class="espresso-event-header-dv"> |
|
| 42 | + <?php espresso_get_template_part('content', 'espresso_events-thumbnail'); ?> |
|
| 43 | + <?php espresso_get_template_part('content', 'espresso_events-header'); ?> |
|
| 44 | 44 | </div> |
| 45 | 45 | |
| 46 | 46 | <div class="espresso-event-list-wrapper-dv"> |
| 47 | - <?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?> |
|
| 48 | - <?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?> |
|
| 49 | - <?php espresso_get_template_part( 'content', 'espresso_events-details' ); ?> |
|
| 50 | - <?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?> |
|
| 47 | + <?php espresso_get_template_part('content', 'espresso_events-tickets'); ?> |
|
| 48 | + <?php espresso_get_template_part('content', 'espresso_events-datetimes'); ?> |
|
| 49 | + <?php espresso_get_template_part('content', 'espresso_events-details'); ?> |
|
| 50 | + <?php espresso_get_template_part('content', 'espresso_events-venues'); ?> |
|
| 51 | 51 | </div> |
| 52 | 52 | |
| 53 | 53 | <?php endif; ?> |
| 54 | 54 | |
| 55 | 55 | </article> |
| 56 | 56 | <!-- #post --> |
| 57 | -<?php do_action( 'AHEE_event_details_after_post', $post ); |
|
| 57 | +<?php do_action('AHEE_event_details_after_post', $post); |
|
| 58 | 58 | |
@@ -1,43 +1,43 @@ |
||
| 1 | 1 | <?php //echo '<h1>' . __FILE__ . '</h1>'; ?> |
| 2 | 2 | <?php global $post; ?> |
| 3 | 3 | <div class="venue-content"> |
| 4 | -<?php if ( apply_filters( 'FHEE__content_espresso_venues_details_template__display_entry_meta', TRUE )): ?> |
|
| 4 | +<?php if (apply_filters('FHEE__content_espresso_venues_details_template__display_entry_meta', TRUE)): ?> |
|
| 5 | 5 | <div class="entry-meta"> |
| 6 | - <span class="tags-links"><?php espresso_venue_categories( $post->ID, TRUE, TRUE ); ?></span> |
|
| 6 | + <span class="tags-links"><?php espresso_venue_categories($post->ID, TRUE, TRUE); ?></span> |
|
| 7 | 7 | <?php |
| 8 | - if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : |
|
| 8 | + if ( ! post_password_required() && (comments_open() || get_comments_number())) : |
|
| 9 | 9 | ?> |
| 10 | - <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'event_espresso' ), __( '1 Comment', 'event_espresso' ), __( '% Comments', 'event_espresso' ) ); ?></span> |
|
| 10 | + <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'event_espresso'), __('1 Comment', 'event_espresso'), __('% Comments', 'event_espresso')); ?></span> |
|
| 11 | 11 | <?php |
| 12 | 12 | endif; |
| 13 | 13 | |
| 14 | - edit_post_link( __( 'Edit', 'event_espresso' ), '<span class="edit-link">', '</span>' ); |
|
| 14 | + edit_post_link(__('Edit', 'event_espresso'), '<span class="edit-link">', '</span>'); |
|
| 15 | 15 | ?> |
| 16 | 16 | </div> |
| 17 | 17 | <?php endif; ?> |
| 18 | 18 | |
| 19 | 19 | <h3 class="event-venues-h3 ee-event-h3"> |
| 20 | - <span class="ee-icon ee-icon-venue"></span><?php _e( 'Venue Details', 'event_espresso' ); ?> |
|
| 20 | + <span class="ee-icon ee-icon-venue"></span><?php _e('Venue Details', 'event_espresso'); ?> |
|
| 21 | 21 | </h3> |
| 22 | 22 | |
| 23 | - <?php if ( $venue_phone = espresso_venue_phone( $post->ID, FALSE )) : ?> |
|
| 23 | + <?php if ($venue_phone = espresso_venue_phone($post->ID, FALSE)) : ?> |
|
| 24 | 24 | <p> |
| 25 | - <span class="small-text"><strong><?php _e( 'Venue Phone:', 'event_espresso' ); ?> </strong></span><?php echo $venue_phone; ?> |
|
| 25 | + <span class="small-text"><strong><?php _e('Venue Phone:', 'event_espresso'); ?> </strong></span><?php echo $venue_phone; ?> |
|
| 26 | 26 | </p> |
| 27 | 27 | <?php endif; ?> |
| 28 | - <?php if ( $venue_website = espresso_venue_website( $post->ID, FALSE )) : ?> |
|
| 28 | + <?php if ($venue_website = espresso_venue_website($post->ID, FALSE)) : ?> |
|
| 29 | 29 | <p> |
| 30 | - <span class="small-text"><strong><?php _e( 'Venue Website:', 'event_espresso' ); ?> </strong></span><?php echo $venue_website; ?> |
|
| 30 | + <span class="small-text"><strong><?php _e('Venue Website:', 'event_espresso'); ?> </strong></span><?php echo $venue_website; ?> |
|
| 31 | 31 | </p> |
| 32 | 32 | <?php endif; ?> |
| 33 | 33 | <?php |
| 34 | - do_action( 'AHEE__content_espresso_venues_details_template__before_the_content', $post ); |
|
| 35 | - if ( is_archive() && has_excerpt( $post->ID )) { |
|
| 34 | + do_action('AHEE__content_espresso_venues_details_template__before_the_content', $post); |
|
| 35 | + if (is_archive() && has_excerpt($post->ID)) { |
|
| 36 | 36 | the_excerpt(); |
| 37 | 37 | } else { |
| 38 | 38 | the_content(); |
| 39 | 39 | } |
| 40 | - do_action( 'AHEE__content_espresso_venues_details_template__after_the_content', $post ); |
|
| 40 | + do_action('AHEE__content_espresso_venues_details_template__after_the_content', $post); |
|
| 41 | 41 | ?> |
| 42 | 42 | </div> |
| 43 | 43 | <!-- .venue-content --> |
@@ -1,11 +1,11 @@ |
||
| 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 --> |
@@ -1,16 +1,16 @@ |
||
| 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> |
@@ -1,11 +1,11 @@ discard block |
||
| 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 |
||
| 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 --> |
@@ -11,41 +11,41 @@ |
||
| 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 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * @ link http://www.eventespresso.com |
| 10 | 10 | * @ version 4+ |
| 11 | 11 | */ |
| 12 | -define( 'EE_THEME_FUNCTIONS_LOADED', TRUE ); |
|
| 12 | +define('EE_THEME_FUNCTIONS_LOADED', TRUE); |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * espresso_pagination |
@@ -20,20 +20,20 @@ discard block |
||
| 20 | 20 | function espresso_pagination() { |
| 21 | 21 | global $wp_query; |
| 22 | 22 | $big = 999999999; // need an unlikely integer |
| 23 | - $pagination = paginate_links( array( |
|
| 24 | - 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), |
|
| 23 | + $pagination = paginate_links(array( |
|
| 24 | + 'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), |
|
| 25 | 25 | 'format' => '?paged=%#%', |
| 26 | - 'current' => max( 1, get_query_var('paged') ), |
|
| 26 | + 'current' => max(1, get_query_var('paged')), |
|
| 27 | 27 | 'total' => $wp_query->max_num_pages, |
| 28 | 28 | 'show_all' => TRUE, |
| 29 | 29 | 'end_size' => 10, |
| 30 | 30 | 'mid_size' => 6, |
| 31 | 31 | 'prev_next' => TRUE, |
| 32 | - 'prev_text' => __( '‹ PREV', 'event_espresso' ), |
|
| 33 | - 'next_text' => __( 'NEXT ›', 'event_espresso' ), |
|
| 32 | + 'prev_text' => __('‹ PREV', 'event_espresso'), |
|
| 33 | + 'next_text' => __('NEXT ›', 'event_espresso'), |
|
| 34 | 34 | 'type' => 'plain', |
| 35 | 35 | 'add_args' => FALSE, |
| 36 | 36 | 'add_fragment' => '' |
| 37 | 37 | )); |
| 38 | - echo ! empty( $pagination ) ? '<div class="ee-pagination-dv clear">' . $pagination . '</div>' : ''; |
|
| 38 | + echo ! empty($pagination) ? '<div class="ee-pagination-dv clear">'.$pagination.'</div>' : ''; |
|
| 39 | 39 | } |
| 40 | 40 | \ No newline at end of file |
@@ -10,22 +10,22 @@ discard block |
||
| 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 | 17 | <?php |
| 18 | - if ( is_day() ) : |
|
| 19 | - printf( __( 'Today\'s Events: %s', 'event_espresso' ), get_the_date() ); |
|
| 18 | + if (is_day()) : |
|
| 19 | + printf(__('Today\'s Events: %s', 'event_espresso'), get_the_date()); |
|
| 20 | 20 | |
| 21 | - elseif ( is_month() ) : |
|
| 22 | - printf( __( 'Events This Month: %s', 'event_espresso' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'event_espresso' ) ) ); |
|
| 21 | + elseif (is_month()) : |
|
| 22 | + printf(__('Events This Month: %s', 'event_espresso'), get_the_date(_x('F Y', 'monthly archives date format', 'event_espresso'))); |
|
| 23 | 23 | |
| 24 | - elseif ( is_year() ) : |
|
| 25 | - printf( __( 'Events This Year: %s', 'event_espresso' ), get_the_date( _x( 'Y', 'yearly archives date format', 'event_espresso' ) ) ); |
|
| 24 | + elseif (is_year()) : |
|
| 25 | + printf(__('Events This Year: %s', 'event_espresso'), get_the_date(_x('Y', 'yearly archives date format', 'event_espresso'))); |
|
| 26 | 26 | |
| 27 | 27 | else : |
| 28 | - echo apply_filters( 'FHEE__archive_espresso_events_template__upcoming_events_h1', __( 'Upcoming Events', 'event_espresso' )); |
|
| 28 | + echo apply_filters('FHEE__archive_espresso_events_template__upcoming_events_h1', __('Upcoming Events', 'event_espresso')); |
|
| 29 | 29 | |
| 30 | 30 | endif; |
| 31 | 31 | ?> |
@@ -34,20 +34,20 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | <?php |
| 36 | 36 | // allow other stuff |
| 37 | - do_action( 'AHEE__archive_espresso_events_template__before_loop' ); |
|
| 37 | + do_action('AHEE__archive_espresso_events_template__before_loop'); |
|
| 38 | 38 | // Start the Loop. |
| 39 | - while ( have_posts() ) : the_post(); |
|
| 39 | + while (have_posts()) : the_post(); |
|
| 40 | 40 | // Include the post TYPE-specific template for the content. |
| 41 | - espresso_get_template_part( 'content', 'espresso_events' ); |
|
| 41 | + espresso_get_template_part('content', 'espresso_events'); |
|
| 42 | 42 | endwhile; |
| 43 | 43 | // Previous/next page navigation. |
| 44 | 44 | espresso_pagination(); |
| 45 | 45 | // allow moar other stuff |
| 46 | - do_action( 'AHEE__archive_espresso_events_template__after_loop' ); |
|
| 46 | + do_action('AHEE__archive_espresso_events_template__after_loop'); |
|
| 47 | 47 | |
| 48 | 48 | else : |
| 49 | 49 | // If no content, include the "No posts found" template. |
| 50 | - espresso_get_template_part( 'content', 'none' ); |
|
| 50 | + espresso_get_template_part('content', 'none'); |
|
| 51 | 51 | |
| 52 | 52 | endif; |
| 53 | 53 | |
@@ -24,8 +24,10 @@ discard block |
||
| 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 |
||
| 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 | |