Changeset 6768
- Timestamp:
- 02/26/2018 06:38:36 PM (8 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator
- Files:
-
- 6 edited
-
includes/common.php (modified) (3 diffs)
-
includes/html-badges.php (modified) (1 diff)
-
includes/indesign-badges.php (modified) (3 diffs)
-
views/html-badges/template-badges.php (modified) (2 diffs)
-
views/html-badges/template-part-badge-contents.php (modified) (2 diffs)
-
views/indesign-badges/page-indesign-badges.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/common.php
r4576 r6768 66 66 * Get the attendees 67 67 * 68 * @param string|array $ticket_ids Reduce fetched attendees by the ticket they purchased. The string 'all'69 * will result in all attendees being fetched, regardless of their70 * ticket. An array of ticket IDs will result in only the attendees for71 * those tickets being fetched.72 * @param string $registered_afterReduce fetched attendees by their registration date. Any value parseable73 * by strtotime().68 * @param string|array $ticket_ids Reduce fetched attendees by the ticket they purchased. The string 'all' 69 * will result in all attendees being fetched, regardless of their 70 * ticket. An array of ticket IDs will result in only the attendees for 71 * those tickets being fetched. 72 * @param string $registered_after Reduce fetched attendees by their registration date. Any value parseable 73 * by strtotime(). 74 74 * 75 75 * @todo Maybe optimize this by looking at post_date rather than tix_timestamp … … 143 143 'size' => 1024, 144 144 'default' => 'blank', 145 'rating' => 'g' 145 'rating' => 'g', 146 146 ) 147 147 ); … … 188 188 $classes = array( 189 189 'attendee-' . $attendee->post_name, 190 'ticket-' . $attendee->ticket 190 'ticket-' . $attendee->ticket, 191 191 ); 192 192 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/html-badges.php
r6014 r6768 223 223 } 224 224 225 foreach ( $wp_styles->queue as $stylesheet ) {225 foreach ( $wp_styles->queue as $stylesheet ) { 226 226 wp_dequeue_style( $stylesheet ); 227 227 } -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/indesign-badges.php
r6600 r6768 33 33 array( 34 34 'ticket_ids' => 'all', 35 'registered_after' => '' 35 'registered_after' => '', 36 36 ), 37 37 $options … … 256 256 */ 257 257 function get_header_row( $admin_flags, $questions ) { 258 $header_row = array( 'First Name', 'Last Name', 'Email Address', 'Ticket', 'Coupon', 'Twitter' ,);258 $header_row = array( 'First Name', 'Last Name', 'Email Address', 'Ticket', 'Coupon', 'Twitter' ); 259 259 $header_row = array_merge( $header_row, array_values( $admin_flags ) ); 260 260 $header_row = array_merge( $header_row, wp_list_pluck( $questions, 'post_title' ) ); … … 433 433 array( 434 434 'add_path' => $zip_local_folder . '/gravatars/', 435 'remove_all_path' => true 435 'remove_all_path' => true, 436 436 ) 437 437 ); -
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 $template8 * @var array $attendees9 * @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 <section class="badge badge-front">47 <div class="holepunch">Ⓧ</div>47 <section class="badge badge-front"> 48 <div class="holepunch">Ⓧ</div> 48 49 49 <?php require( __DIR__ . '/template-part-badge-contents.php' ); ?>50 </section>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> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/html-badges/template-part-badge-contents.php
r4315 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 * @var \WP_Post $attendee8 * @var array $allowed_html9 * @var WP_Post $attendee 10 * @var array $allowed_html 9 11 */ 10 12 … … 25 27 <figure> 26 28 <img 27 class="attendee-avatar"29 class="attendee-avatar" 28 30 src="<?php echo esc_url( $attendee->avatar_url ); ?>" 29 31 alt="<?php echo esc_attr( strip_tags( $attendee->formatted_name ) ); ?>" -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/indesign-badges/page-indesign-badges.php
r5819 r6768 24 24 <?php printf( 25 25 __( 26 'Full instructions are <a href="% s">available in the WordCamp Organizer Handbook</a>. If you\'d prefer an easier way, <a href="%s">the HTML/CSS method</a> is much more automated at this time.',26 'Full instructions are <a href="%1$s">available in the WordCamp Organizer Handbook</a>. If you\'d prefer an easier way, <a href="%2$s">the HTML/CSS method</a> is much more automated at this time.', 27 27 'wordcamporg' 28 28 ),
Note: See TracChangeset
for help on using the changeset viewer.