Changeset 6768 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/html-badges/template-badges.php
- Timestamp:
- 02/26/2018 06:38:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/html-badges/template-badges.php
r4316 r6768 2 2 3 3 namespace CampTix\Badge_Generator\HTML; 4 use WP_Post; 5 4 6 defined( 'WPINC' ) or die(); 5 7 6 8 /** 7 * @global string 8 * @var array 9 * @var \WP_Post $attendee9 * @global string $template 10 * @var array $attendees 11 * @var WP_Post $attendee 10 12 */ 11 13 … … 30 32 <body> 31 33 <?php 32 if ( empty( $attendees ) ) :33 34 34 _e( 'No attendees were found. Please try again once tickets have been purchased.', 'wordcamporg' );35 if ( empty( $attendees ) ) : 35 36 36 else :37 _e( 'No attendees were found. Please try again once tickets have been purchased.', 'wordcamporg' ); 37 38 38 foreach ( $attendees as $attendee ) : 39 ?> 39 else : 40 40 41 <article class="attendee <?php echo esc_attr( $attendee->css_classes ); ?>"> 42 <section class="badge badge-back"> 43 <?php require( __DIR__ . '/template-part-badge-contents.php' ); ?> 44 </section> 41 foreach ( $attendees as $attendee ) : ?> 42 <article class="attendee <?php echo esc_attr( $attendee->css_classes ); ?>"> 43 <section class="badge badge-back"> 44 <?php require( __DIR__ . '/template-part-badge-contents.php' ); ?> 45 </section> 45 46 46 47 47 <section class="badge badge-front"> 48 <div class="holepunch">Ⓧ</div> 48 49 49 50 50 <?php require( __DIR__ . '/template-part-badge-contents.php' ); ?> 51 </section> 51 52 52 <!-- These are arbitrary elements that you can use for any purpose --> 53 <div class="attendee-design-element-1"></div> 54 <div class="attendee-design-element-2"></div> 55 <div class="attendee-design-element-3"></div> 56 <div class="attendee-design-element-4"></div> 57 <div class="attendee-design-element-5"></div> 58 </article> 59 <?php endforeach; ?> 60 <?php endif; ?> 53 <!-- These are arbitrary elements that you can use for any purpose --> 54 <div class="attendee-design-element-1"></div> 55 <div class="attendee-design-element-2"></div> 56 <div class="attendee-design-element-3"></div> 57 <div class="attendee-design-element-4"></div> 58 <div class="attendee-design-element-5"></div> 59 </article> 60 <?php endforeach; 61 61 62 <?php wp_footer(); ?> 62 endif; 63 64 wp_footer(); 65 66 ?> 63 67 </body> 64 68 </html>
Note: See TracChangeset
for help on using the changeset viewer.