From 758a4ee6e9ccb286693f1219ed55e60b54afb67d Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 10 Mar 2011 05:15:23 +0000 Subject: Refs #3004. First draft of welcome widget text. git-svn-id: http://code.elgg.org/elgg/trunk@8647 36083f99-b078-4883-b0ff-0f9b5a30f544 --- languages/en.php | 23 +++++++++++++++++++++++ views/default/widgets/admin_welcome/content.php | 19 +++++++++++++++++-- 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 add" +. " 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 Plugins page 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 Advanced Site Settings page.', + + 'admin:widget:admin_welcome:external_resources' => +"There are many resources are available for help with your network. Check the links in the footer for" +. " FAQs, " +. "manuals, Elgg news, and support forums" +. " at the Elgg Community.", + + '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 '

' . elgg_echo("admin:widget:admin_welcome:$section", $strings) . '

'; +} \ No newline at end of file -- cgit v1.2.3