]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3004. First draft of welcome widget text.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Mar 2011 05:15:23 +0000 (05:15 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Mar 2011 05:15:23 +0000 (05:15 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8647 36083f99-b078-4883-b0ff-0f9b5a30f544

languages/en.php
views/default/widgets/admin_welcome/content.php

index 5393c356a21394e5145fa0d634c1f95251d49e5a..2084137b35b02d1655b1bee56f2f6fa437af72ac 100644 (file)
@@ -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',
index dd707883715b6e160be5605e47678c2393e4c871..4ebdb719cd4e217b0fd8fa9290a60658d6f4bbeb 100644 (file)
@@ -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