aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/config_default.inc.php8
-rw-r--r--include/functions_html.inc.php20
-rw-r--r--include/page_header.php12
3 files changed, 25 insertions, 15 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index e13090fd4..62e4a2782 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -270,9 +270,13 @@ $conf['allow_random_representative'] = false;
// category and element description.
$conf['allow_html_descriptions'] = true;
-// gallery_title : Title for RSS feed
-$conf['gallery_title'] = 'PhpWebGallery demo';
+// gallery_title : Title at top of each page and for RSS feed
+$conf['gallery_title'] = 'PhpWebGallery demonstration site';
+
+// gallery_description : Short description displayed with gallery title
+$conf['gallery_description'] = 'My photos web site';
// galery_url : URL given in RSS feed
$conf['gallery_url'] = 'http://demo.phpwebgallery.net';
+
?>
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index b797d2657..b3aacb70d 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -374,27 +374,21 @@ function get_html_menu_category($categories)
$menu.= str_repeat("\n</ul>",($ref_level-$level));
}
$ref_level = $level;
-
- $menu.= '
- <li>';
-
- $url = add_session_id(PHPWG_ROOT_PATH.'category.php?cat='.$category['id']);
+ $menu.= '
- $class = '';
+ <li';
if (isset($page['cat'])
and is_numeric($page['cat'])
and $category['id'] == $page['cat'])
{
- $class = 'menuCategorySelected';
+ $menu.= ' class="selected"';
}
- else
- {
- $class = 'menuCategoryNotSelected';
- }
-
+ $menu.= '>';
+
+ $url = add_session_id(PHPWG_ROOT_PATH.'category.php?cat='.$category['id']);
$menu.= '
- <a href="'.$url.'" class="'.$class.'">'.$category['name'].'</a>';
+ <a href="'.$url.'">'.$category['name'].'</a>';
if ($category['nb_images'] > 0)
{
diff --git a/include/page_header.php b/include/page_header.php
index 7b00e7055..8bf830cf5 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -35,6 +35,18 @@ $css.= '/'.$user['template'].'.css';
$template->assign_vars(
array(
+ 'GALLERY_TITLE' =>
+ isset($page['gallery_title']) ?
+ $page['gallery_title'] : $conf['gallery_title'],
+
+ 'GALLERY_DESCRIPTION' =>
+ isset($page['gallery_description']) ?
+ $page['gallery_description'] : $conf['gallery_description'],
+
+ 'BODY_ID' =>
+ isset($page['body_id']) ?
+ $page['body_id'] : '',
+
'CONTENT_ENCODING' => $lang_info['charset'],
'PAGE_TITLE' => $title,
'LANG'=>$lang_info['code'],