Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions addons/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ protected function render_attendees_list( $attr ) {

$attendees = array();
foreach ( $attendees_raw as $attendee ) {

// Skip attendees marked as private.
$privacy = get_post_meta( $attendee, 'tix_privacy', true );

if ( 'private' === $privacy ) {
continue;
}

$email = get_post_meta( $attendee, 'tix_email', true );
$attendees[ $email ] = $attendee;
}
Expand All @@ -307,13 +315,6 @@ protected function render_attendees_list( $attr ) {
break;
}

// Skip attendees marked as private.
$privacy = get_post_meta( $attendee_id, 'tix_privacy', true );
if ( $privacy == 'private' ) {
$printed ++;
continue;
}

echo '<li>';

$first = get_post_meta( $attendee_id, 'tix_first_name', true );
Expand Down Expand Up @@ -373,12 +374,12 @@ protected function get_avatar_placeholder( $id_or_email ) {
$size = 96;

return sprintf(
'<div
class="avatar avatar-placeholder"
data-url="%s"
data-url2x="%s"
data-size="%s"
data-alt="%s"
'<div
class="avatar avatar-placeholder"
data-url="%s"
data-url2x="%s"
data-size="%s"
data-alt="%s"
data-appear-top-offset="500"
></div>',
get_avatar_url( $id_or_email ),
Expand Down