Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * @author Jeroen De Dauw |
20 | 20 | */ |
21 | 21 | $messages['en'] = array( |
22 | | - 'contest-desc' => '', |
| 22 | + 'contest-desc' => 'Contest extension that allows users to participate in admin defined contest challanges. Via a judging interface, judges can discuss and vote on submissions.', |
23 | 23 | |
24 | 24 | // Rights |
25 | 25 | 'right-contestadmin' => 'Manage contests', |
— | — | @@ -35,6 +35,7 @@ |
36 | 36 | 'special-contests' => 'Contests', |
37 | 37 | 'special-contestsignup' => 'Contest signup', |
38 | 38 | 'special-contestsubmission' => 'Contest submission', |
| 39 | + 'special-contestwelcome' => 'Contest', |
39 | 40 | 'special-editcontest' => 'Edit contest', |
40 | 41 | |
41 | 42 | // Special:Contests |
Index: trunk/extensions/Contest/Contest.alias.php |
— | — | @@ -20,5 +20,6 @@ |
21 | 21 | 'Contests' => array( 'Contests' ), |
22 | 22 | 'ContestSignup' => array( 'ContestSignup' ), |
23 | 23 | 'ContestSubmission' => array( 'ContestSubmission' ), |
| 24 | + 'ContestWelcome' => array( 'ContestWelcome' ), |
24 | 25 | 'EditContest' => array( 'EditContest' ), |
25 | 26 | ); |
Index: trunk/extensions/Contest/specials/SpecialContestWelcome.php |
— | — | @@ -0,0 +1,49 @@ |
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Contest landing page for participants. |
| 6 | + * |
| 7 | + * @since 0.1 |
| 8 | + * |
| 9 | + * @file SpecialContestWelcome.php |
| 10 | + * @ingroup Contest |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 or later |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
| 14 | + */ |
| 15 | +class SpecialContestWelcome extends SpecialContestPage { |
| 16 | + |
| 17 | + /** |
| 18 | + * Constructor. |
| 19 | + * |
| 20 | + * @since 0.1 |
| 21 | + */ |
| 22 | + public function __construct() { |
| 23 | + parent::__construct( 'ContestWelcome' ); |
| 24 | + } |
| 25 | + |
| 26 | + /** |
| 27 | + * @see SpecialPage::getDescription |
| 28 | + * |
| 29 | + * @since 0.1 |
| 30 | + */ |
| 31 | + public function getDescription() { |
| 32 | + return wfMsg( 'special-' . strtolower( $this->getName() ) ); |
| 33 | + } |
| 34 | + |
| 35 | + /** |
| 36 | + * Main method. |
| 37 | + * |
| 38 | + * @since 0.1 |
| 39 | + * |
| 40 | + * @param string $arg |
| 41 | + */ |
| 42 | + public function execute( $subPage ) { |
| 43 | + if ( !parent::execute( $subPage ) ) { |
| 44 | + return; |
| 45 | + } |
| 46 | + |
| 47 | + |
| 48 | + } |
| 49 | + |
| 50 | +} |
\ No newline at end of file |
Property changes on: trunk/extensions/Contest/specials/SpecialContestWelcome.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 51 | + native |
Index: trunk/extensions/Contest/specials/SpecialContestSignup.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Contest signupu interface for participants. |
| 5 | + * Contest signup interface for participants. |
6 | 6 | * |
7 | 7 | * @since 0.1 |
8 | 8 | * |
Index: trunk/extensions/Contest/Contest.php |
— | — | @@ -59,6 +59,7 @@ |
60 | 60 | $wgAutoloadClasses['SpecialContests'] = dirname( __FILE__ ) . '/specials/SpecialContests.php'; |
61 | 61 | $wgAutoloadClasses['SpecialContestSignup'] = dirname( __FILE__ ) . '/specials/SpecialContestSignup.php'; |
62 | 62 | $wgAutoloadClasses['SpecialContestSubmission'] = dirname( __FILE__ ) . '/specials/SpecialContestSubmission.php'; |
| 63 | +$wgAutoloadClasses['SpecialContestWelcome'] = dirname( __FILE__ ) . '/specials/SpecialContestWelcome.php'; |
63 | 64 | $wgAutoloadClasses['SpecialEditContest'] = dirname( __FILE__ ) . '/specials/SpecialEditContest.php'; |
64 | 65 | |
65 | 66 | // Special pages |
— | — | @@ -66,12 +67,14 @@ |
67 | 68 | $wgSpecialPages['Contests'] = 'SpecialContests'; |
68 | 69 | $wgSpecialPages['ContestSignup'] = 'SpecialContestSignup'; |
69 | 70 | $wgSpecialPages['ContestSubmission'] = 'SpecialContestSubmission'; |
| 71 | +$wgSpecialPages['ContestWelcome'] = 'SpecialContestWelcome'; |
70 | 72 | $wgSpecialPages['EditContest'] = 'SpecialEditContest'; |
71 | 73 | |
72 | 74 | $wgSpecialPageGroups['Contest'] = 'other'; |
73 | 75 | $wgSpecialPageGroups['Contests'] = 'other'; |
74 | 76 | $wgSpecialPageGroups['ContestSignup'] = 'other'; |
75 | 77 | $wgSpecialPageGroups['ContestSubmission'] = 'other'; |
| 78 | +$wgSpecialPageGroups['ContestWelcome'] = 'other'; |
76 | 79 | $wgSpecialPageGroups['EditContest'] = 'other'; |
77 | 80 | |
78 | 81 | // API |