WordPress.org

Making WordPress.org

Changeset 7434


Ignore:
Timestamp:
07/12/2018 12:22:11 AM (2 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.
Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/assets/css/admin-common.css

    r6662 r7434  
    11
    22/** Tables **/
    3 .widefat.but-not-too-wide {
     3.report-results table {
     4    margin: 1em 0;
     5}
     6
     7.report-results .widefat.but-not-too-wide {
    48    width: auto;
    59}
    610
    7 td.number {
     11.report-results td.number {
    812    text-align: right;
    913}
    1014
    11 td.total {
     15.report-results td.total {
    1216    font-weight: bold;
    1317}
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-payment-activity.php

    r7378 r7434  
    518518     */
    519519    public function render_html() {
    520         $data       = $this->compile_report_data( $this->get_data() );
     520        $now  = new \DateTime();
     521        $data = $this->compile_report_data( $this->get_data() );
     522
    521523        $start_date = $this->start_date;
    522524        $end_date   = $this->end_date;
    523 
     525        $xrt_date      = ( $end_date > $now ) ? $now : $end_date;
    524526        $wordcamp_name = ( $this->wordcamp_site_id ) ? get_wordcamp_name( $this->wordcamp_site_id ) : '';
    525527        $requests      = $data['requests'];
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-sponsor-invoices.php

    r7378 r7434  
    474474     */
    475475    public function render_html() {
    476         $data       = $this->compile_report_data( $this->get_data() );
    477         $start_date = $this->start_date;
    478         $end_date   = $this->end_date;
    479 
     476        $now  = new \DateTime();
     477        $data = $this->compile_report_data( $this->get_data() );
     478
     479        $start_date    = $this->start_date;
     480        $end_date      = $this->end_date;
     481        $xrt_date      = ( $end_date > $now ) ? $now : $end_date;
    480482        $wordcamp_name = ( $this->wordcamp_site_id ) ? get_wordcamp_name( $this->wordcamp_site_id ) : '';
    481483        $invoices      = $data['invoices'];
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-sponsorship-grants.php

    r6662 r7434  
    316316     */
    317317    public function render_html() {
     318        $now = new \DateTime();
     319
     320        $start_date    = $this->start_date;
     321        $end_date      = $this->end_date;
     322        $xrt_date      = ( $end_date > $now ) ? $now : $end_date;
     323        $wordcamp_name = ( $this->wordcamp_site_id ) ? get_wordcamp_name( $this->wordcamp_site_id ) : '';
    318324        $data          = $this->get_data();
    319325        $compiled_data = $this->compile_report_data( $data );
    320         $start_date    = $this->start_date;
    321         $end_date      = $this->end_date;
    322 
    323         $wordcamp_name = ( $this->wordcamp_site_id ) ? get_wordcamp_name( $this->wordcamp_site_id ) : '';
    324326
    325327        if ( ! empty( $this->error->get_error_messages() ) ) {
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/classes/report/class-ticket-revenue.php

    r7378 r7434  
    4949            <li>Query each WordCamp site with matched events and retrieve ticket data related to each event.</li>
    5050            <li>Append the ticket data to the event data.</li>
    51             <li>Group the events based on whether the transaction was handled by WPCS. Assume all transactions in a currency supported by PayPal were handled by WPCS.</li>
     51            <li>Group the events by payment method.</li>
    5252        </ol>
    5353    ";
     
    319319
    320320        foreach ( $ticket_ids as $ticket_id ) {
     321            $method = get_post_meta( $ticket_id, 'tix_payment_method', true ) ?: 'none';
     322
    321323            $ticket_details[ $blog_id . '_' . $ticket_id ] = array(
    322                 'method'           => get_post_meta( $ticket_id, 'tix_payment_method', true ),
     324                'method'           => $method,
    323325                'currency'         => $currency,
    324326                'full_price'       => floatval( get_post_meta( $ticket_id, 'tix_ticket_price', true ) ),
     
    354356
    355357        $data_groups = array(
    356             'wpcs'     => array_merge( $initial_data, array(
    357                 'label'       => 'WPCS ticket revenue',
    358                 'description' => 'Transactions using a payment method for which WPCS has an established account.',
     358            'total'     => array_merge( $initial_data, array(
     359                'label'       => 'Total ticket revenue',
     360                'description' => 'Not including transaction fees.',
    359361            ) ),
    360             'non_wpcs' => array_merge( $initial_data, array(
    361                 'label'       => 'Non-WPCS ticket revenue',
    362                 'description' => 'Transactions using a payment method for which WPCS does not have an established account.',
     362            'stripe'    => array_merge( $initial_data, array(
     363                'label'       => 'Ticket transactions through Stripe',
     364                'description' => '',
    363365            ) ),
    364             'none'     => array_merge( $initial_data, array(
     366            'paypal'    => array_merge( $initial_data, array(
     367                'label'       => 'Ticket transactions through PayPal',
     368                'description' => '',
     369            ) ),
     370            'instamojo' => array_merge( $initial_data, array(
     371                'label'       => 'Ticket transactions through Instamojo',
     372                'description' => '',
     373            ) ),
     374            'razorpay'  => array_merge( $initial_data, array(
     375                'label'       => 'Ticket transactions through Razorpay',
     376                'description' => '',
     377            ) ),
     378            'none'      => array_merge( $initial_data, array(
    365379                'label'       => 'Ticket transactions with no payment',
    366380                'description' => 'Transactions for which no payment method was recorded.',
    367381            ) ),
    368             'total'    => array_merge( $initial_data, array(
    369                 'label'       => 'Total ticket revenue',
    370                 'description' => '',
    371             ) ),
    372382        );
    373383
    374         // Assume that all transactions through a gateway for which WPCS has an account, used the WPCS account.
    375         $wpcs_payment_methods = array( 'paypal', 'stripe' );
    376384        $currencies           = array();
    377385
    378386        foreach ( $events as $event ) {
    379387            $currency = $event['currency'];
    380 
    381             if ( ! $event['method'] ) {
    382                 $group = 'none';
    383             } elseif ( in_array( $event['method'], $wpcs_payment_methods, true ) ) {
    384                 $group = 'wpcs';
    385             } else {
    386                 $group = 'non_wpcs';
     388            $method   = $event['method'];
     389            $type     = $event['type'];
     390
     391            if ( ! isset( $data_groups[ $method ] ) ) {
     392                $data_groups[ $method ] = array_merge( $initial_data, array(
     393                    'label'       => sprintf(
     394                        'Ticket transactions through %s',
     395                        esc_html( $method )
     396                    ),
     397                    'description' => '',
     398                ) );
    387399            }
    388400
    389401            if ( ! in_array( $currency, $currencies, true ) ) {
    390                 $data_groups[ $group ]['gross_revenue_by_currency'][ $currency ]   = 0;
    391                 $data_groups[ $group ]['discounts_by_currency'][ $currency ]       = 0;
    392                 $data_groups[ $group ]['amount_refunded_by_currency'][ $currency ] = 0;
    393                 $data_groups[ $group ]['net_revenue_by_currency'][ $currency ]     = 0;
    394                 $data_groups['total']['gross_revenue_by_currency'][ $currency ]    = 0;
    395                 $data_groups['total']['discounts_by_currency'][ $currency ]        = 0;
    396                 $data_groups['total']['amount_refunded_by_currency'][ $currency ]  = 0;
    397                 $data_groups['total']['net_revenue_by_currency'][ $currency ]      = 0;
    398                 $currencies[]                                                      = $currency;
    399             }
    400 
    401             switch ( $event['type'] ) {
     402                $data_groups[ $method ]['gross_revenue_by_currency'][ $currency ]   = 0;
     403                $data_groups[ $method ]['discounts_by_currency'][ $currency ]       = 0;
     404                $data_groups[ $method ]['amount_refunded_by_currency'][ $currency ] = 0;
     405                $data_groups[ $method ]['net_revenue_by_currency'][ $currency ]     = 0;
     406                $data_groups['total']['gross_revenue_by_currency'][ $currency ]     = 0;
     407                $data_groups['total']['discounts_by_currency'][ $currency ]         = 0;
     408                $data_groups['total']['amount_refunded_by_currency'][ $currency ]   = 0;
     409                $data_groups['total']['net_revenue_by_currency'][ $currency ]       = 0;
     410                $currencies[]                                                       = $currency;
     411            }
     412
     413            switch ( $type ) {
    402414                case 'Purchase' :
    403                     $data_groups[ $group ]['tickets_sold'] ++;
    404                     $data_groups[ $group ]['gross_revenue_by_currency'][ $currency ] += $event['full_price'];
    405                     $data_groups[ $group ]['discounts_by_currency'][ $currency ]     += $event['full_price'] - $event['discounted_price'];
    406                     $data_groups[ $group ]['net_revenue_by_currency'][ $currency ]   += $event['discounted_price'];
    407                     $data_groups['total']['tickets_sold']  ++;
    408                     $data_groups['total']['gross_revenue_by_currency'][ $currency ]  += $event['full_price'];
    409                     $data_groups['total']['discounts_by_currency'][ $currency ]      += $event['full_price'] - $event['discounted_price'];
    410                     $data_groups['total']['net_revenue_by_currency'][ $currency ]    += $event['discounted_price'];
     415                    $data_groups[ $method ]['tickets_sold'] ++;
     416                    $data_groups[ $method ]['gross_revenue_by_currency'][ $currency ] += $event['full_price'];
     417                    $data_groups[ $method ]['discounts_by_currency'][ $currency ]     += $event['full_price'] - $event['discounted_price'];
     418                    $data_groups[ $method ]['net_revenue_by_currency'][ $currency ]   += $event['discounted_price'];
     419                    $data_groups['total']['tickets_sold'] ++;
     420                    $data_groups['total']['gross_revenue_by_currency'][ $currency ] += $event['full_price'];
     421                    $data_groups['total']['discounts_by_currency'][ $currency ]     += $event['full_price'] - $event['discounted_price'];
     422                    $data_groups['total']['net_revenue_by_currency'][ $currency ]   += $event['discounted_price'];
    411423                    break;
    412424
    413425                case 'Refund' :
    414                     $data_groups[ $group ]['tickets_refunded'] ++;
    415                     $data_groups[ $group ]['amount_refunded_by_currency'][ $currency ] += $event['discounted_price'];
    416                     $data_groups[ $group ]['net_revenue_by_currency'][ $currency ]     -= $event['discounted_price'];
     426                    $data_groups[ $method ]['tickets_refunded'] ++;
     427                    $data_groups[ $method ]['amount_refunded_by_currency'][ $currency ] += $event['discounted_price'];
     428                    $data_groups[ $method ]['net_revenue_by_currency'][ $currency ]     -= $event['discounted_price'];
    417429                    $data_groups['total']['tickets_refunded']  ++;
    418430                    $data_groups['total']['amount_refunded_by_currency'][ $currency ]  += $event['discounted_price'];
     
    461473     */
    462474    public function render_html() {
    463         $data       = $this->compile_report_data( $this->get_data() );
    464         $start_date = $this->start_date;
    465         $end_date   = $this->end_date;
    466 
     475        $now = new \DateTime();
     476
     477        $start_date    = $this->start_date;
     478        $end_date      = $this->end_date;
     479        $xrt_date      = ( $end_date > $now ) ? $now : $end_date;
    467480        $wordcamp_name = ( $this->wordcamp_site_id ) ? get_wordcamp_name( $this->wordcamp_site_id ) : '';
    468         $wpcs          = $data['wpcs'];
    469         $non_wpcs      = $data['non_wpcs'];
    470         $none          = $data['none'];
     481        $data          = $this->compile_report_data( $this->get_data() );
    471482        $total         = $data['total'];
    472483
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/index.php

    r7376 r7434  
    2525 * Get the path for the includes directory.
    2626 *
    27  * @return string Path with trailing slash
     27 * @return string Path with trailing slash.
    2828 */
    2929function get_classes_dir_path() {
     
    3434 * Get the path for the views directory.
    3535 *
    36  * @return string Path with trailing slash
     36 * @return string Path with trailing slash.
    3737 */
    3838function get_views_dir_path() {
    3939    return trailingslashit( PLUGIN_DIR ) . 'views/';
     40}
     41
     42/**
     43 * Get the path for the assets directory.
     44 *
     45 * @return string Path with trailing slash.
     46 */
     47function get_assets_dir_path() {
     48    return trailingslashit( PLUGIN_DIR ) . 'assets/';
    4049}
    4150
     
    203212        get_assets_url() . 'css/admin-common.css',
    204213        array(),
    205         CSS_VERSION
     214        filemtime( get_assets_dir_path() . 'css/admin-common.css' )
    206215    );
    207216
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/html/payment-activity.php

    r6662 r7434  
    99/** @var \DateTime $start_date */
    1010/** @var \DateTime $end_date */
    11 /** @var string $wordcamp_name */
    12 /** @var array $requests */
    13 /** @var array $payments */
    14 /** @var array $failures */
     11/** @var \DateTime $xrt_date */
     12/** @var string    $wordcamp_name */
     13/** @var array     $requests */
     14/** @var array     $payments */
     15/** @var array     $failures */
    1516
    1617$asterisk2 = false;
     
    3031    </h3>
    3132
    32     <ul>
    33         <?php if ( $requests['vendor_payment_count'] ) : ?>
    34             <li>Vendor payments: <?php echo number_format_i18n( $requests['vendor_payment_count'] ) ?></li>
    35         <?php endif; ?>
    36         <?php if ( $requests['reimbursement_count'] ) : ?>
    37             <li>Reimbursements: <?php echo number_format_i18n( $requests['reimbursement_count'] ) ?></li>
    38         <?php endif; ?>
    39     </ul>
     33    <table class="striped widefat but-not-too-wide">
     34        <tbody>
     35        <tr>
     36            <td>Vendor payments:</td>
     37            <td class="number"><?php echo number_format_i18n( $requests['vendor_payment_count'] ) ?></td>
     38        </tr>
     39        <tr>
     40            <td>Reimbursements:</td>
     41            <td class="number"><?php echo number_format_i18n( $requests['reimbursement_count'] ) ?></td>
     42        </tr>
     43        </tbody>
     44    </table>
    4045
    4146    <table class="striped widefat but-not-too-wide">
     
    8287    </h3>
    8388
    84     <ul>
    85         <?php if ( $payments['vendor_payment_count'] ) : ?>
    86             <li>Vendor payments: <?php echo number_format_i18n( $payments['vendor_payment_count'] ) ?></li>
    87         <?php endif; ?>
    88         <?php if ( $payments['reimbursement_count'] ) : ?>
    89             <li>Reimbursements: <?php echo number_format_i18n( $payments['reimbursement_count'] ) ?></li>
    90         <?php endif; ?>
    91     </ul>
     89    <table class="striped widefat but-not-too-wide">
     90        <tbody>
     91        <tr>
     92            <td>Vendor payments:</td>
     93            <td class="number"><?php echo number_format_i18n( $payments['vendor_payment_count'] ) ?></td>
     94        </tr>
     95        <tr>
     96            <td>Reimbursements:</td>
     97            <td class="number"><?php echo number_format_i18n( $payments['reimbursement_count'] ) ?></td>
     98        </tr>
     99        </tbody>
     100    </table>
    92101
    93102    <table class="striped widefat but-not-too-wide">
     
    95104        <tr>
    96105            <td>Currency</td>
    97             <td>Total Amount Requested</td>
     106            <td>Total Amount Paid</td>
    98107            <td>Estimated Value in USD *</td>
    99108        </tr>
     
    134143    </h3>
    135144
    136     <ul>
    137         <?php if ( $failures['vendor_payment_count'] ) : ?>
    138             <li>Vendor payments: <?php echo number_format_i18n( $failures['vendor_payment_count'] ) ?></li>
    139         <?php endif; ?>
    140         <?php if ( $failures['reimbursement_count'] ) : ?>
    141             <li>Reimbursements: <?php echo number_format_i18n( $failures['reimbursement_count'] ) ?></li>
    142         <?php endif; ?>
    143     </ul>
     145    <table class="striped widefat but-not-too-wide">
     146        <tbody>
     147        <tr>
     148            <td>Vendor payments:</td>
     149            <td class="number"><?php echo number_format_i18n( $failures['vendor_payment_count'] ) ?></td>
     150        </tr>
     151        <tr>
     152            <td>Reimbursements:</td>
     153            <td class="number"><?php echo number_format_i18n( $failures['reimbursement_count'] ) ?></td>
     154        </tr>
     155        </tbody>
     156    </table>
    144157
    145158    <table class="striped widefat but-not-too-wide">
     
    174187
    175188<?php if ( $requests['vendor_payment_count'] || $requests['reimbursement_count'] || $payments['vendor_payment_count'] || $payments['reimbursement_count'] || $failures['vendor_payment_count'] || $failures['reimbursement_count'] ) : ?>
    176     <p class="description">* Estimate based on exchange rates for <?php echo esc_html( $end_date->format( 'M jS, Y' ) ); ?></p>
    177     <?php if ( $asterisk2 ) : ?>
    178         <p class="description">** Currency exchange rate not available.</p>
    179     <?php endif; ?>
     189    <p class="description">
     190        * Estimate based on exchange rates for <?php echo esc_html( $xrt_date->format( 'M jS, Y' ) ); ?>.
     191        <?php if ( $asterisk2 ) : ?>
     192            <br />** Currency exchange rate not available.
     193        <?php endif; ?>
     194    </p>
    180195<?php else : ?>
    181196    <p>
  • 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>
  • 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>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/html/ticket-revenue.php

    r6662 r7434  
    99/** @var \DateTime $start_date */
    1010/** @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 */
    1315
    1416$asterisk2 = false;
    15 $groups    = 0;
    1617?>
    1718
    1819<?php foreach ( $data as $key => $group ) : ?>
    1920    <?php if ( empty( $group['gross_revenue_by_currency'] ) ) continue; ?>
    20     <?php if ( 'total' === $key && $groups < 2 ) continue; ?>
    2121
    2222    <h3>
     
    3636    <?php endif; ?>
    3737
    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>
    4250
    4351    <table class="striped widefat but-not-too-wide">
     
    8391        </tbody>
    8492    </table>
    85     <?php $groups ++; ?>
    8693<?php endforeach; ?>
    8794
    8895<?php if ( ! empty( $total['net_revenue_by_currency'] ) ) : ?>
    8996    <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' ) ); ?>.
    9198        <?php if ( $asterisk2 ) : ?>
    9299            <br />** Currency exchange rate not available.
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/report/meetup-groups.php

    r6662 r7434  
    5353
    5454    <?php if ( $report instanceof Report\Meetup_Groups ) : ?>
    55         <?php $report->render_html(); ?>
     55        <div class="report-results">
     56            <?php $report->render_html(); ?>
     57        </div>
    5658    <?php endif; ?>
    5759</div>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/report/payment-activity.php

    r6662 r7434  
    5858
    5959    <?php if ( $report instanceof Report\Payment_Activity ) : ?>
    60         <?php $report->render_html(); ?>
     60        <div class="report-results">
     61            <?php $report->render_html(); ?>
     62        </div>
    6163    <?php endif; ?>
    6264</div>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/report/sponsor-invoices.php

    r6662 r7434  
    5858
    5959    <?php if ( $report instanceof Report\Sponsor_Invoices ) : ?>
    60         <?php $report->render_html(); ?>
     60        <div class="report-results">
     61            <?php $report->render_html(); ?>
     62        </div>
    6163    <?php endif; ?>
    6264</div>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/report/sponsorship-grants.php

    r6662 r7434  
    5858
    5959    <?php if ( $report instanceof Report\Sponsorship_Grants ) : ?>
    60         <?php $report->render_html(); ?>
     60        <div class="report-results">
     61            <?php $report->render_html(); ?>
     62        </div>
    6163    <?php endif; ?>
    6264</div>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/report/ticket-revenue.php

    r6662 r7434  
    5858
    5959    <?php if ( $report instanceof Report\Ticket_Revenue ) : ?>
    60         <?php $report->render_html(); ?>
     60        <div class="report-results">
     61            <?php $report->render_html(); ?>
     62        </div>
    6163    <?php endif; ?>
    6264</div>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-reports/views/report/wordcamp-status.php

    r6662 r7434  
    6666
    6767    <?php if ( $report instanceof Report\WordCamp_Status ) : ?>
    68         <?php $report->render_html(); ?>
     68        <div class="report-results">
     69            <?php $report->render_html(); ?>
     70        </div>
    6971    <?php endif; ?>
    7072</div>
Note: See TracChangeset for help on using the changeset viewer.