https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112654
Revision: 112654
Author: bsitu
Date: 2012-02-28 23:18:11 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
Adding a new exit button to article creation landing page
Modified Paths:
--------------
trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.i18n.php
trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.php
Modified:
trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.i18n.php
===================================================================
--- trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.i18n.php
2012-02-28 22:54:27 UTC (rev 112653)
+++ trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.i18n.php
2012-02-28 23:18:11 UTC (rev 112654)
@@ -33,6 +33,11 @@
'ac-hover-tooltip-body-request' => "<ul><li> You want to see the
article exist, and</li>
<li>You do not wish to write it yourself.</li></ul>",
+ 'ac-action-exit' => 'Get out of here.',
+ 'ac-action-exit-subtitle' => 'Oops. This isn\'t what I wanted.',
+ 'ac-action-exit-subtitle-anon' => 'Oops. This isn\'t what I wanted.',
+ 'ac-hover-tooltip-body-exit' => '<ul><li>You want to go back to
previous page.</li></ul>',
+
'ac-action-draft' => 'Create a draft',
'ac-action-draft-subtitle' => 'I want to make a draft of this article
before I publish it to {{SITENAME}}.',
'ac-hover-tooltip-body-draft' => "<ul><li>You haven't created an
article before, or</li>
@@ -83,6 +88,11 @@
'ac-action-request-subtitle-anon' => 'Explanation that AfC does not
require an account',
'ac-hover-tooltip-body-request' => "Bullet point, explains why the user
might want to create a draft",
+ 'ac-action-exit' => 'Prompt to get out of Article Creation Workflow
landing page',
+ 'ac-action-exit-subtitle' => 'First-person statement for the exit
button subtitle',
+ 'ac-action-exit-subtitle-anon' => 'First-person statement for the exit
button subtitle',
+ 'ac-hover-tooltip-body-exit' => "Bullet point, displayed when the user
wants to get out of Article Creation Workflow landing page",
+
'ac-action-draft' => 'Prompt to create a draft, goes inside button',
'ac-action-draft-subtitle' => 'First-person statement for the draft
button subtitle.',
'ac-hover-tooltip-body-draft' => "Bullet point, explains why the user
might want to create a draft article.",
Modified: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.php
===================================================================
--- trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.php
2012-02-28 22:54:27 UTC (rev 112653)
+++ trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.php
2012-02-28 23:18:11 UTC (rev 112654)
@@ -72,6 +72,7 @@
'ac-hover-tooltip-body-draft',
'ac-hover-tooltip-body-signup',
'ac-hover-tooltip-body-login',
+ 'ac-hover-tooltip-body-exit',
'ac-create-warning-create',
'ac-create-warning-wizard',
'ac-create-button',
@@ -117,6 +118,14 @@
'text' => 'ac-hover-tooltip-body-request',
),
),
+ 'exit' => array(
+ 'title' => 'ac-action-exit',
+ 'text' => 'ac-action-exit-subtitle-anon',
+ 'tooltip' => array(
+ 'title' => 'ac-hover-tooltip-title',
+ 'text' => 'ac-hover-tooltip-body-exit',
+ ),
+ ),
),
'logged-in' => array(
'request' => array(
@@ -167,6 +176,14 @@
</div>
HTML
),
+ 'exit' => array(
+ 'title' => 'ac-action-exit',
+ 'text' => 'ac-action-exit-subtitle',
+ 'tooltip' => array(
+ 'title' => 'ac-hover-tooltip-title',
+ 'text' => 'ac-hover-tooltip-body-exit',
+ ),
+ ),
),
);
@@ -176,7 +193,8 @@
'create' =>
'{{SCRIPT}}?title={{PAGE}}&action=edit&acwbucket={{BUCKETID}}&acwsource={{SOURCE}}',
'login' =>
'{{SCRIPT}}?title=Special:Userlogin&returnto=Special:ArticleCreationLanding/{{PAGE}}',
'signup' =>
'{{SCRIPT}}?title=Special:Userlogin/signup&returnto=Special:ArticleCreationLanding/{{PAGE}}&returntoquery='
. urlencode( 'fromsignup=1' ),
- 'request' => 'http://google.com/?q={{PAGE}}'
+ 'request' => 'http://google.com/?q={{PAGE}}',
+ 'exit' => 'javascript:history.go(-1)',
),
'buttons' => $wgArticleCreationButtons,
);
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs