Changeset 7434 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/html/ticket-revenue.php
- Timestamp:
- 07/12/2018 12:22:11 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/html/ticket-revenue.php
r6662 r7434 9 9 /** @var \DateTime $start_date */ 10 10 /** @var \DateTime $end_date */ 11 /** @var string $wordcamp_name */ 12 /** @var array $data */ 11 /** @var \DateTime $xrt_date */ 12 /** @var string $wordcamp_name */ 13 /** @var array $data */ 14 /** @var array $total */ 13 15 14 16 $asterisk2 = false; 15 $groups = 0;16 17 ?> 17 18 18 19 <?php foreach ( $data as $key => $group ) : ?> 19 20 <?php if ( empty( $group['gross_revenue_by_currency'] ) ) continue; ?> 20 <?php if ( 'total' === $key && $groups < 2 ) continue; ?>21 21 22 22 <h3> … … 36 36 <?php endif; ?> 37 37 38 <ul> 39 <li>Tickets sold: <?php echo number_format_i18n( $group['tickets_sold'] ); ?></li> 40 <li>Tickets refunded: <?php echo number_format_i18n( $group['tickets_refunded'] ); ?></li> 41 </ul> 38 <table class="striped widefat but-not-too-wide"> 39 <tbody> 40 <tr> 41 <td>Tickets sold:</td> 42 <td class="number"><?php echo number_format_i18n( $group['tickets_sold'] ); ?></td> 43 </tr> 44 <tr> 45 <td>Tickets refunded:</td> 46 <td class="number"><?php echo number_format_i18n( $group['tickets_refunded'] ); ?></td> 47 </tr> 48 </tbody> 49 </table> 42 50 43 51 <table class="striped widefat but-not-too-wide"> … … 83 91 </tbody> 84 92 </table> 85 <?php $groups ++; ?>86 93 <?php endforeach; ?> 87 94 88 95 <?php if ( ! empty( $total['net_revenue_by_currency'] ) ) : ?> 89 96 <p class="description"> 90 * Estimate based on exchange rates for <?php echo esc_html( $ end_date->format( 'M jS, Y' ) ); ?>97 * Estimate based on exchange rates for <?php echo esc_html( $xrt_date->format( 'M jS, Y' ) ); ?>. 91 98 <?php if ( $asterisk2 ) : ?> 92 99 <br />** Currency exchange rate not available.
Note: See TracChangeset
for help on using the changeset viewer.