Index: trunk/extensions/ContributionReporting/ContributionReporting.i18n.php |
— | — | @@ -53,6 +53,8 @@ |
54 | 54 | 'contribstats-value-under' => 'Under $1', |
55 | 55 | 'contribstats-value-from' => 'From $1 - $2', |
56 | 56 | 'contribstats-value-over' => 'Over $1', |
| 57 | + 'contribstats-header' => '', |
| 58 | + 'contribstats-footer' => '', |
57 | 59 | |
58 | 60 | // Tracking Statistics |
59 | 61 | 'contributiontrackingstatistics' => 'Contribution tracking statistics', |
Index: trunk/extensions/ContributionReporting/ContributionStatistics_body.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | } |
25 | 25 | |
26 | 26 | public function execute( $sub ) { |
27 | | - global $egContributionStatisticsViewDays; |
| 27 | + global $wgOut,$egContributionStatisticsViewDays; |
28 | 28 | |
29 | 29 | $this->evalDateRange(); |
30 | 30 | |
— | — | @@ -53,6 +53,7 @@ |
54 | 54 | // Begin output |
55 | 55 | $this->setHeaders(); |
56 | 56 | |
| 57 | + $wgOut->addWikiText(wfMsg('contribstats-header')); |
57 | 58 | // Show daily totals if the range includes today |
58 | 59 | if( $this->mEndDate > time() && $this->mStartDate < time() ) { |
59 | 60 | $this->showDailyTotals( $egContributionStatisticsViewDays ); |
— | — | @@ -66,6 +67,7 @@ |
67 | 68 | |
68 | 69 | // Show contribution breakdown |
69 | 70 | $this->showContributionBreakdown(); |
| 71 | + $wgOut->addWikiText(wfMsg('contribstats-footer')); |
70 | 72 | } |
71 | 73 | |
72 | 74 | /* Display Functions */ |
Index: trunk/extensions/ContributionReporting/ContributionTrackingStatistics_body.php |
— | — | @@ -27,6 +27,7 @@ |
28 | 28 | // Begin output |
29 | 29 | $this->setHeaders(); |
30 | 30 | |
| 31 | + $wgOut->addWikiText(wfMsg('contribstats-header')); |
31 | 32 | // Build Header |
32 | 33 | $htmlOut = Xml::openElement( 'table', |
33 | 34 | array( |
— | — | @@ -65,6 +66,7 @@ |
66 | 67 | $offset = SpecialContributionTrackingStatistics::$number_of_days_to_show * 24 * 60 * 60; |
67 | 68 | $this->showTotalsForRange( array( ( $end - $offset ), $end ), $format ); |
68 | 69 | } |
| 70 | + $wgOut->addWikiText(wfMsg('contribstats-footer')); |
69 | 71 | } |
70 | 72 | |
71 | 73 | /* Display Functions */ |
Index: trunk/extensions/ContributionReporting/FundraiserStatistics_body.php |
— | — | @@ -87,6 +87,7 @@ |
88 | 88 | |
89 | 89 | /* Display */ |
90 | 90 | |
| 91 | + $wgOut->addWikiText(wfMsg('contribstats-header')); |
91 | 92 | // Chart maximums |
92 | 93 | foreach ( $egFundraiserStatisticsFundraisers as $fundraiser ) { |
93 | 94 | foreach ( $charts as $name => $chart ) { |
— | — | @@ -260,6 +261,7 @@ |
261 | 262 | Xml::tags( 'tr', null, Xml::tags( 'td', null, $htmlViews ) ) |
262 | 263 | ) |
263 | 264 | ); |
| 265 | + $wgOut->addWikiText(wfMsg('contribstats-footer')); |
264 | 266 | } |
265 | 267 | |
266 | 268 | /* Private Functions */ |