Making WordPress.org


Ignore:
Timestamp:
07/12/2018 12:22:11 AM (8 years ago)
Author:
coreymckrill
Message:

WordCamp Reports: Update Ticket Revenue report, other minor changes

  • Show ticket revenue results split out by payment method (instead of WPCS vs non-WPCS).
  • Minor HTML markup changes on several reports.
  • Minor code cleanup changes on several reports.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/html/sponsor-invoices.php

    r6662 r7434  
    99/** @var \DateTime $start_date */
    1010/** @var \DateTime $end_date */
    11 /** @var string $wordcamp_name */
    12 /** @var array $invoices */
    13 /** @var array $payments */
     11/** @var \DateTime $xrt_date */
     12/** @var string    $wordcamp_name */
     13/** @var array     $invoices */
     14/** @var array     $payments */
    1415
    1516$asterisk2 = false;
     
    2930    </h3>
    3031
    31     <ul>
    32         <li>Invoices sent: <?php echo number_format_i18n( $invoices['total_count'] ); ?></li>
    33     </ul>
     32    <table class="striped widefat but-not-too-wide">
     33        <tbody>
     34        <tr>
     35            <td>Invoices sent:</td>
     36            <td class="number"><?php echo number_format_i18n( $invoices['total_count'] ); ?></td>
     37        </tr>
     38        </tbody>
     39    </table>
    3440
    3541    <table class="striped widefat but-not-too-wide">
     
    7682    </h3>
    7783
    78     <ul>
    79         <li>Payments received: <?php echo number_format_i18n( $payments['total_count'] ); ?></li>
    80     </ul>
     84    <table class="striped widefat but-not-too-wide">
     85        <tbody>
     86        <tr>
     87            <td>Payments received:</td>
     88            <td class="number"><?php echo number_format_i18n( $payments['total_count'] ); ?></td>
     89        </tr>
     90        </tbody>
     91    </table>
    8192
    8293    <table class="striped widefat but-not-too-wide">
     
    111122
    112123<?php if ( $invoices['total_count'] > 0 || $payments['total_count'] > 0 ) : ?>
    113     <p class="description">* Estimate based on exchange rates for <?php echo esc_html( $end_date->format( 'M jS, Y' ) ); ?></p>
    114     <?php if ( $asterisk2 ) : ?>
    115         <p class="description">** Currency exchange rate not available.</p>
    116     <?php endif; ?>
     124    <p class="description">
     125        * Estimate based on exchange rates for <?php echo esc_html( $xrt_date->format( 'M jS, Y' ) ); ?>.
     126        <?php if ( $asterisk2 ) : ?>
     127            <br />** Currency exchange rate not available.
     128        <?php endif; ?>
     129    </p>
    117130<?php else : ?>
    118131    <p>
Note: See TracChangeset for help on using the changeset viewer.