aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-10 05:15:23 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-10 05:15:23 +0000
commit758a4ee6e9ccb286693f1219ed55e60b54afb67d (patch)
tree8470613999081e193a6fd7b1030c3f7b1db8ccad
parentf73b5756ea56f2f73e578892074a79c83793cb41 (diff)
downloadelgg-758a4ee6e9ccb286693f1219ed55e60b54afb67d.tar.gz
elgg-758a4ee6e9ccb286693f1219ed55e60b54afb67d.tar.bz2
Refs #3004. First draft of welcome widget text.
git-svn-id: http://code.elgg.org/elgg/trunk@8647 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--languages/en.php23
-rw-r--r--views/default/widgets/admin_welcome/content.php19
2 files changed, 40 insertions, 2 deletions
diff --git a/languages/en.php b/languages/en.php
index 5393c356a..2084137b3 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -556,8 +556,31 @@ $english = array(
'admin:widget:content_stats:help' => 'Keep track of the content created by your users',
'widget:content_stats:type' => 'Content type',
'widget:content_stats:number' => 'Number',
+
'admin:widget:admin_welcome' => 'Welcome',
'admin:widget:admin_welcome:help' => "A short introduction to Elgg's admin area",
+ 'admin:widget:admin_welcome:intro' =>
+'Welcome to Elgg! This widget is a quick overview on settin up and manging your new Elgg site.',
+
+ 'admin:widget:admin_welcome:admin_overview' =>
+'This page is the Admin Dashboard and provides a quick overview of your system. '
+. "You can <a class=\"elgg-toggler\" href=\"#widgets-add-panel\">add</a>"
+. " and rearrange widgets to show the information you care about. The menu to the right is oranganized into"
+. " three areas: Everyday Tasks, Setup and Configuration,"
+. ' and Developer Tools.',
+
+ 'admin:widget:admin_welcome:common_links' =>
+'The first section you should visit is the <a href="%s">Plugins page</a> to activate or deactivate site features.'
+. ' If you\'re not quite ready to have users on your site, think about disabling registration and'
+. ' restricting content to logged in users on the <a href="%s">Advanced Site Settings page</a>.',
+
+ 'admin:widget:admin_welcome:external_resources' =>
+"There are many resources are available for help with your network. Check the links in the footer for"
+. " <a href=\"http://docs.elgg.org/wiki/Category:Administration_FAQ\">FAQs</a>, <a href=\"http://docs.elgg.org/wiki/Administration_Manual\">"
+. "manuals</a>, <a href=\"http://blog.elgg.org/\">Elgg news</a>, and <a href=\"http://community.elgg.org/pg/groups/world/\">support forums</a>"
+. " at the <a href=\"http://community.elgg.org/\">Elgg Community</a>.",
+
+ 'admin:widget:admin_welcome:outro' => 'Thank you for using Elgg!',
'admin:footer:faq' => 'Administration FAQ',
'admin:footer:manual' => 'Administration Manual',
diff --git a/views/default/widgets/admin_welcome/content.php b/views/default/widgets/admin_welcome/content.php
index dd7078837..4ebdb719c 100644
--- a/views/default/widgets/admin_welcome/content.php
+++ b/views/default/widgets/admin_welcome/content.php
@@ -3,5 +3,20 @@
* Welcome widget for admins
*/
-?>
-Welcome to Elgg \ No newline at end of file
+// section => string replacements.
+$sections = array(
+ 'intro' => array(),
+ 'admin_overview' => array(),
+ 'common_links' => array(
+ elgg_normalize_url('pg/admin/plugins/simple'),
+ elgg_normalize_url('pg/admin/site/advanced'),
+ ),
+ 'external_resources' => array(),
+ 'outro' => array()
+);
+
+// don't use longtext because it filters output.
+// that's annoying.
+foreach ($sections as $section => $strings) {
+ echo '<p>' . elgg_echo("admin:widget:admin_welcome:$section", $strings) . '</p>';
+} \ No newline at end of file