aboutsummaryrefslogtreecommitdiffstats
path: root/about.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-02-17 18:52:17 +0000
committervdigital <vdigital@piwigo.org>2007-02-17 18:52:17 +0000
commit7b5386f0dd7998b2b09680e04b511e57c9d00b2e (patch)
treefff2cb6d255175657865f4710ce3493f6bad7396 /about.php
parent25cd3c5f7e10561e995d1c692459567722567246 (diff)
0000497: (facultative) themeconf.inc.php can build additional about text for PWG about page (see wipi theme).
git-svn-id: http://piwigo.org/svn/trunk@1834 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--about.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/about.php b/about.php
index c25bd5712..cb23cf1fa 100644
--- a/about.php
+++ b/about.php
@@ -42,18 +42,31 @@ $title= $lang['about_page_title'];
$page['body_id'] = 'theAboutPage';
include(PHPWG_ROOT_PATH.'include/page_header.php');
+/**
+ * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
+ * for example for clear theme:
+ $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
+ ' A standard template/theme of PhpWebgallery.';
+ *
+ * Don't forget php tags !!!
+ *
+ * Another way is to code it thru the theme itself in ./themeconf.inc.php
+ */
+@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
+ '/theme/'.$user['theme'].'/themeconf.inc.php');
+
$template->set_filenames(
array(
'about'=>'about.tpl',
'about_content' => get_language_filepath('about.html')
)
);
-if ( isset( $themeconf['About']) and $themeconf['About']!=='' )
+if ( isset($lang['Theme: '.$user['theme']]) )
{
$template->assign_block_vars(
'theme',
array(
- 'ABOUT' => l10n($themeconf['About']),
+ 'ABOUT' => l10n('Theme: '.$user['theme']),
)
);
}