Making WordPress.org


Ignore:
Timestamp:
07/12/2018 12:22:11 AM (6 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/sponsorship-grants.php

    r6662 r7434  
    99/** @var \DateTime $start_date */
    1010/** @var \DateTime $end_date */
    11 /** @var string $wordcamp_name */
    12 /** @var array $data */
    13 /** @var array $compiled_data */
     11/** @var \DateTime $xrt_date */
     12/** @var string    $wordcamp_name */
     13/** @var array     $data */
     14/** @var array     $compiled_data */
    1415
    1516$asterisk2 = false;
     
    2930    </h3>
    3031
    31     <h4>Grants awarded: <?php echo number_format_i18n( $compiled_data['grant_count'] ) ?></h4>
     32    <table class="striped widefat but-not-too-wide">
     33        <tbody>
     34        <tr>
     35            <td>Grants awarded:</td>
     36            <td class="number"><?php echo number_format_i18n( $compiled_data['grant_count'] ) ?></td>
     37        </tr>
     38        </tbody>
     39    </table>
    3240
    3341    <table class="striped widefat but-not-too-wide">
     
    6068    </table>
    6169
    62     <p class="description">* Estimate based on exchange rates for <?php echo esc_html( $end_date->format( 'M jS, Y' ) ); ?></p>
    63     <?php if ( $asterisk2 ) : ?>
    64         <p class="description">** Currency exchange rate not available.</p>
    65     <?php endif; ?>
     70    <p class="description">
     71        * Estimate based on exchange rates for <?php echo esc_html( $xrt_date->format( 'M jS, Y' ) ); ?>.
     72        <?php if ( $asterisk2 ) : ?>
     73            <br />** Currency exchange rate not available.
     74        <?php endif; ?>
     75    </p>
    6676
    6777    <h4>Grant details:</h4>
Note: See TracChangeset for help on using the changeset viewer.