@@ -11,14 +11,14 @@ |
||
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 . ' ' . $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.' '.$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 |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode |
|
4 | - * |
|
5 | - * @package Event Espresso |
|
6 | - * @subpackage templates |
|
7 | - * @since 4.6.29 |
|
8 | - * @author Darren Ethier |
|
9 | - * |
|
10 | - * Template Args that are available in this template |
|
11 | - * @type EE_Attendee $contact |
|
12 | - * @type bool $show_gravatar whether to show gravatar or not. |
|
13 | - */ |
|
3 | + * Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode |
|
4 | + * |
|
5 | + * @package Event Espresso |
|
6 | + * @subpackage templates |
|
7 | + * @since 4.6.29 |
|
8 | + * @author Darren Ethier |
|
9 | + * |
|
10 | + * Template Args that are available in this template |
|
11 | + * @type EE_Attendee $contact |
|
12 | + * @type bool $show_gravatar whether to show gravatar or not. |
|
13 | + */ |
|
14 | 14 | if ( $show_gravatar ) { |
15 | 15 | $gravatar = get_avatar( $contact->email(), |
16 | 16 | (int) apply_filters( 'FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32 ) |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>'; |
3 | 3 | |
4 | -if ( is_single() || is_archive() && espresso_display_datetimes_in_event_list() ) : |
|
4 | +if (is_single() || is_archive() && espresso_display_datetimes_in_event_list()) : |
|
5 | 5 | global $post; |
6 | -do_action( 'AHEE_event_details_before_event_date', $post ); |
|
6 | +do_action('AHEE_event_details_before_event_date', $post); |
|
7 | 7 | ?> |
8 | 8 | <div class="event-datetimes"> |
9 | - <?php espresso_list_of_event_dates( $post->ID );?> |
|
9 | + <?php espresso_list_of_event_dates($post->ID); ?> |
|
10 | 10 | </div> |
11 | 11 | <!-- .event-datetimes --> |
12 | 12 | <?php |
13 | -do_action( 'AHEE_event_details_after_event_date', $post ); |
|
13 | +do_action('AHEE_event_details_after_event_date', $post); |
|
14 | 14 | endif; |
15 | 15 | ?> |
16 | 16 | \ No newline at end of file |
@@ -3,12 +3,12 @@ |
||
3 | 3 | global $post; |
4 | 4 | ?> |
5 | 5 | <header class="event-header"> |
6 | - <?php if ( is_single() ) : ?> |
|
6 | + <?php if (is_single()) : ?> |
|
7 | 7 | <h1 id="event-details-h1-<?php echo $post->ID; ?>" class="entry-title"> |
8 | 8 | <?php else : ?> |
9 | 9 | <h2 id="event-details-h2-<?php echo $post->ID; ?>" class="entry-title"> |
10 | 10 | <?php endif; ?> |
11 | 11 | <a class="" href="<?php the_permalink(); ?>"><?php the_title(); ?></a> |
12 | - <?php if ( is_single() ) : ?></h1><?php else : ?></h2><?php endif; ?> |
|
13 | - <?php if ( ! is_archive() && has_excerpt( $post->ID )): the_excerpt(); endif;?> |
|
12 | + <?php if (is_single()) : ?></h1><?php else : ?></h2><?php endif; ?> |
|
13 | + <?php if ( ! is_archive() && has_excerpt($post->ID)): the_excerpt(); endif; ?> |
|
14 | 14 | </header> |
@@ -5,10 +5,16 @@ |
||
5 | 5 | <header class="event-header"> |
6 | 6 | <?php if ( is_single() ) : ?> |
7 | 7 | <h1 id="event-details-h1-<?php echo $post->ID; ?>" class="entry-title"> |
8 | - <?php else : ?> |
|
9 | - <h2 id="event-details-h2-<?php echo $post->ID; ?>" class="entry-title"> |
|
8 | + <?php else { |
|
9 | + : ?> |
|
10 | + <h2 id="event-details-h2-<?php echo $post->ID; |
|
11 | +} |
|
12 | +?>" class="entry-title"> |
|
10 | 13 | <?php endif; ?> |
11 | 14 | <a class="" href="<?php the_permalink(); ?>"><?php the_title(); ?></a> |
12 | - <?php if ( is_single() ) : ?></h1><?php else : ?></h2><?php endif; ?> |
|
15 | + <?php if ( is_single() ) : ?></h1><?php else { |
|
16 | + : ?></h2><?php endif; |
|
17 | +} |
|
18 | +?> |
|
13 | 19 | <?php if ( ! is_archive() && has_excerpt( $post->ID )): the_excerpt(); endif;?> |
14 | 20 | </header> |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>'; |
3 | 3 | global $post; |
4 | -do_action( 'AHEE_event_details_before_featured_img', $post ); |
|
4 | +do_action('AHEE_event_details_before_featured_img', $post); |
|
5 | 5 | |
6 | -if ( has_post_thumbnail( $post->ID )) : |
|
7 | - if ( $img_ID = get_post_thumbnail_id( $post->ID )) : |
|
8 | - if ( $featured_img = wp_get_attachment_image_src( $img_ID, 'large' )) : |
|
9 | - $caption = esc_attr( get_post( get_post( $img_ID ))->post_excerpt ); |
|
6 | +if (has_post_thumbnail($post->ID)) : |
|
7 | + if ($img_ID = get_post_thumbnail_id($post->ID)) : |
|
8 | + if ($featured_img = wp_get_attachment_image_src($img_ID, 'large')) : |
|
9 | + $caption = esc_attr(get_post(get_post($img_ID))->post_excerpt); |
|
10 | 10 | ?> |
11 | 11 | <div id="ee-event-img-dv-<?php echo $post->ID; ?>" class="ee-event-img-dv"> |
12 | 12 | <a class="" href="<?php the_permalink(); ?>"> |
@@ -18,4 +18,4 @@ discard block |
||
18 | 18 | endif; |
19 | 19 | endif; |
20 | 20 | ?> |
21 | -<?php do_action( 'AHEE_event_details_after_featured_img', $post );?> |
|
21 | +<?php do_action('AHEE_event_details_after_featured_img', $post); ?> |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' <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 |
@@ -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/> |
@@ -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 | - <?php _e( 'Location', 'event_espresso' ); ?> |
|
15 | + <?php _e('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/> |
|
37 | - <?php echo do_shortcode( $venue_description ); ?> |
|
36 | + <strong><?php _e('Description:', 'event_espresso'); ?></strong><br/> |
|
37 | + <?php echo do_shortcode($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 | ?> |
@@ -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 --> |