From: Carsten K. <car...@us...> - 2003-12-11 20:37:17
|
Update of /cvsroot/phpwiki/phpwiki/themes/default/templates In directory sc8-pr-cvs1:/tmp/cvs-serv26275 Modified Files: homepage.tmpl Log Message: Fixed php syntax error. Text rewording. (Note that automatic homepage creation is not ready yet.) Index: homepage.tmpl =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/themes/default/templates/homepage.tmpl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -2 -b -p -d -r1.1 -r1.2 --- homepage.tmpl 22 Aug 2002 23:28:32 -0000 1.1 +++ homepage.tmpl 11 Dec 2003 20:37:13 -0000 1.2 @@ -1,13 +1,37 @@ -<?php // -*-html-*- $Id$ -$username = $user->getId()); -?> +<?php // -*-php-*- +rcs_id('$Id$'); +/** + * Note: Automatic homepage creation is not yet functional. + */ +$UserName = $user->getId(); +$DefaultMessage = sprintf(_("Describe %s here."), $UserName); -<?= sprintf(_('Automatically created homepage for %s. This page is needed to store the users preferences. The [/Calendar] subpage enables simple weblogging, at your [/Preferences] page you can customize various settings or change your password.'), $username) ?> +$UserPreferencesMessage[0] = + sprintf(_("You can personalize various settings in %s."), + _("UserPreferences")); +$UserPreferencesMessage[1] = + _("(Your preferences are stored as hidden data within this page)."); -* <?= '[ ' . SUBPAGE_SEPARATOR . _('Calendar') . ' ]' ?> -* <?= '[ ' . SUBPAGE_SEPARATOR . _('Preferences') . ' ]' ?> +$CalendarSubpage = sprintf('[%s]', SUBPAGE_SEPARATOR . _("Calendar")); +$calendarMessage = sprintf(_("The %s subpage enables simple weblogging."), + $CalendarSubpage); + +$BackLinks = sprintf('<'.'?plugin BackLinks ?'.'>'); +$FullTextSearch = sprintf('<'.'?plugin-form FullTextSearch s=%s ?'.'>', + $UserName); +/** + * WikiMarkup with embedded PHP follows: + */ +?> +<?=$DefaultMessage?> -<?= sprintf('<'.'?plugin BackLinks ?'.'>') ?> -<?= sprintf('<'.'?plugin-form FullTextSearch s=%s ?'.'>', $username) ?> ---- -<?= _('CategoryHomepage') ?> \ No newline at end of file +<?=$UserPreferencesMessage[0]?>%%% +_<?=$UserPreferencesMessage[1]?>_ + +<?=$CalendarMessage?> +---- +<?=$BackLinks?> +<?=$FullTextSearch?> +---- +<?=_("CategoryHomepage")?> |