Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.i18n.php |
— | — | @@ -33,6 +33,11 @@ |
34 | 34 | 'ac-hover-tooltip-body-request' => "<ul><li> You want to see the article exist, and</li> |
35 | 35 | <li>You do not wish to write it yourself.</li></ul>", |
36 | 36 | |
| 37 | + 'ac-action-exit' => 'Get out of here.', |
| 38 | + 'ac-action-exit-subtitle' => 'Oops. This isn\'t what I wanted.', |
| 39 | + 'ac-action-exit-subtitle-anon' => 'Oops. This isn\'t what I wanted.', |
| 40 | + 'ac-hover-tooltip-body-exit' => '<ul><li>You want to go back to previous page.</li></ul>', |
| 41 | + |
37 | 42 | 'ac-action-draft' => 'Create a draft', |
38 | 43 | 'ac-action-draft-subtitle' => 'I want to make a draft of this article before I publish it to {{SITENAME}}.', |
39 | 44 | 'ac-hover-tooltip-body-draft' => "<ul><li>You haven't created an article before, or</li> |
— | — | @@ -83,6 +88,11 @@ |
84 | 89 | 'ac-action-request-subtitle-anon' => 'Explanation that AfC does not require an account', |
85 | 90 | 'ac-hover-tooltip-body-request' => "Bullet point, explains why the user might want to create a draft", |
86 | 91 | |
| 92 | + 'ac-action-exit' => 'Prompt to get out of Article Creation Workflow landing page', |
| 93 | + 'ac-action-exit-subtitle' => 'First-person statement for the exit button subtitle', |
| 94 | + 'ac-action-exit-subtitle-anon' => 'First-person statement for the exit button subtitle', |
| 95 | + 'ac-hover-tooltip-body-exit' => "Bullet point, displayed when the user wants to get out of Article Creation Workflow landing page", |
| 96 | + |
87 | 97 | 'ac-action-draft' => 'Prompt to create a draft, goes inside button', |
88 | 98 | 'ac-action-draft-subtitle' => 'First-person statement for the draft button subtitle.', |
89 | 99 | 'ac-hover-tooltip-body-draft' => "Bullet point, explains why the user might want to create a draft article.", |
Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.php |
— | — | @@ -72,6 +72,7 @@ |
73 | 73 | 'ac-hover-tooltip-body-draft', |
74 | 74 | 'ac-hover-tooltip-body-signup', |
75 | 75 | 'ac-hover-tooltip-body-login', |
| 76 | + 'ac-hover-tooltip-body-exit', |
76 | 77 | 'ac-create-warning-create', |
77 | 78 | 'ac-create-warning-wizard', |
78 | 79 | 'ac-create-button', |
— | — | @@ -117,6 +118,14 @@ |
118 | 119 | 'text' => 'ac-hover-tooltip-body-request', |
119 | 120 | ), |
120 | 121 | ), |
| 122 | + 'exit' => array( |
| 123 | + 'title' => 'ac-action-exit', |
| 124 | + 'text' => 'ac-action-exit-subtitle-anon', |
| 125 | + 'tooltip' => array( |
| 126 | + 'title' => 'ac-hover-tooltip-title', |
| 127 | + 'text' => 'ac-hover-tooltip-body-exit', |
| 128 | + ), |
| 129 | + ), |
121 | 130 | ), |
122 | 131 | 'logged-in' => array( |
123 | 132 | 'request' => array( |
— | — | @@ -167,6 +176,14 @@ |
168 | 177 | </div> |
169 | 178 | HTML |
170 | 179 | ), |
| 180 | + 'exit' => array( |
| 181 | + 'title' => 'ac-action-exit', |
| 182 | + 'text' => 'ac-action-exit-subtitle', |
| 183 | + 'tooltip' => array( |
| 184 | + 'title' => 'ac-hover-tooltip-title', |
| 185 | + 'text' => 'ac-hover-tooltip-body-exit', |
| 186 | + ), |
| 187 | + ), |
171 | 188 | ), |
172 | 189 | ); |
173 | 190 | |
— | — | @@ -176,7 +193,8 @@ |
177 | 194 | 'create' => '{{SCRIPT}}?title={{PAGE}}&action=edit&acwbucket={{BUCKETID}}&acwsource={{SOURCE}}', |
178 | 195 | 'login' => '{{SCRIPT}}?title=Special:Userlogin&returnto=Special:ArticleCreationLanding/{{PAGE}}', |
179 | 196 | 'signup' => '{{SCRIPT}}?title=Special:Userlogin/signup&returnto=Special:ArticleCreationLanding/{{PAGE}}&returntoquery=' . urlencode( 'fromsignup=1' ), |
180 | | - 'request' => 'http://google.com/?q={{PAGE}}' |
| 197 | + 'request' => 'http://google.com/?q={{PAGE}}', |
| 198 | + 'exit' => 'javascript:history.go(-1)', |
181 | 199 | ), |
182 | 200 | 'buttons' => $wgArticleCreationButtons, |
183 | 201 | ); |