From 76a58082252e71443f3983d5bfb8e123818adb3d Mon Sep 17 00:00:00 2001 From: vdigital Date: Sun, 4 Feb 2007 20:42:26 +0000 Subject: [PATCH] Evolution request 0000497: Insert information about theme on about.php To mention Creative Commons pictures, Free for private use, ... Totally optional. Just precise what you want in About field (see any template/yoga/theme/.../themeconf.inc.php git-svn-id: http://piwigo.org/svn/trunk@1779 68402e56-0260-453c-a942-63ccdbb3a9ee --- about.php | 10 +++++++++- template/yoga/about.tpl | 6 +++++- template/yoga/theme/clear/themeconf.inc.php | 4 +++- template/yoga/theme/dark/themeconf.inc.php | 4 +++- template/yoga/theme/p0w0/themeconf.inc.php | 4 +++- template/yoga/theme/wipi/themeconf.inc.php | 4 +++- 6 files changed, 26 insertions(+), 6 deletions(-) diff --git a/about.php b/about.php index 56f0a36d1..c25bd5712 100644 --- a/about.php +++ b/about.php @@ -48,7 +48,15 @@ $template->set_filenames( 'about_content' => get_language_filepath('about.html') ) ); - +if ( isset( $themeconf['About']) and $themeconf['About']!=='' ) +{ + $template->assign_block_vars( + 'theme', + array( + 'ABOUT' => l10n($themeconf['About']), + ) + ); +} $template->assign_vars( array( 'U_HOME' => make_index_url(), diff --git a/template/yoga/about.tpl b/template/yoga/about.tpl index 6efa0e9ee..77af4ada5 100644 --- a/template/yoga/about.tpl +++ b/template/yoga/about.tpl @@ -11,5 +11,9 @@ {ABOUT_MESSAGE} - + + + diff --git a/template/yoga/theme/clear/themeconf.inc.php b/template/yoga/theme/clear/themeconf.inc.php index 0184d9b27..02831007d 100644 --- a/template/yoga/theme/clear/themeconf.inc.php +++ b/template/yoga/theme/clear/themeconf.inc.php @@ -1,4 +1,5 @@ 'yoga', 'theme' => 'clear', @@ -6,6 +7,7 @@ $themeconf = array( 'icon_dir' => 'template/yoga/icon', 'admin_icon_dir' => 'template/yoga/icon/admin', 'mime_icon_dir' => 'template/yoga/icon/mimetypes/', - 'local_head' => '' + 'local_head' => '', + 'About' => '', /* About text to display on About screen */ ); ?> diff --git a/template/yoga/theme/dark/themeconf.inc.php b/template/yoga/theme/dark/themeconf.inc.php index 7d6d00da5..324997c69 100644 --- a/template/yoga/theme/dark/themeconf.inc.php +++ b/template/yoga/theme/dark/themeconf.inc.php @@ -1,4 +1,5 @@ 'yoga', 'theme' => 'dark', @@ -6,6 +7,7 @@ $themeconf = array( 'icon_dir' => 'template/yoga/icon', 'admin_icon_dir' => 'template/yoga/icon/admin', 'mime_icon_dir' => 'template/yoga/icon/mimetypes/', - 'local_head' => '' + 'local_head' => '', + 'About' => '', /* About text to display on About screen */ ); ?> diff --git a/template/yoga/theme/p0w0/themeconf.inc.php b/template/yoga/theme/p0w0/themeconf.inc.php index f29bab129..b1e1a421e 100644 --- a/template/yoga/theme/p0w0/themeconf.inc.php +++ b/template/yoga/theme/p0w0/themeconf.inc.php @@ -1,4 +1,5 @@ 'yoga', 'theme' => 'p0w0', @@ -6,6 +7,7 @@ $themeconf = array( 'icon_dir' => 'template/yoga/icon', 'admin_icon_dir' => 'template/yoga/icon/admin', 'mime_icon_dir' => 'template/yoga/icon/mimetypes/', - 'local_head' => '' + 'local_head' => '', + 'About' => '', /* About text to display on About screen */ ); ?> diff --git a/template/yoga/theme/wipi/themeconf.inc.php b/template/yoga/theme/wipi/themeconf.inc.php index 60ead4fef..853f01c8b 100644 --- a/template/yoga/theme/wipi/themeconf.inc.php +++ b/template/yoga/theme/wipi/themeconf.inc.php @@ -1,4 +1,5 @@ 'yoga', 'theme' => 'wipi', @@ -6,6 +7,7 @@ $themeconf = array( 'icon_dir' => 'template/yoga/icon', 'admin_icon_dir' => 'template/yoga/icon/admin', 'mime_icon_dir' => 'template/yoga/icon/mimetypes/', - 'local_head' => '' + 'local_head' => '', + 'About' => '', /* About text to display on About screen */ ); ?>