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/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() ) ) {
Note: See TracChangeset for help on using the changeset viewer.