From 9e993f2d21e9cf7bd44a7c676af567be550dca90 Mon Sep 17 00:00:00 2001 From: gweltas Date: Thu, 26 Feb 2004 18:33:45 +0000 Subject: New default template - User side git-svn-id: http://piwigo.org/svn/trunk@375 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'picture.php') diff --git a/picture.php b/picture.php index 47f0d51d1..03d5300c3 100644 --- a/picture.php +++ b/picture.php @@ -203,13 +203,14 @@ if ( isset( $_GET['slideshow'] ) && $next) } $title_img = $picture['current']['name']; +$title_nb = ''; if (is_numeric( $page['cat'] )) { - $title_img = get_cat_display_name( $page['cat_name'], " - ","font-style:italic;" ); + $title_img = replace_space(get_cat_display_name( $page['cat_name'], " > ","font-style:italic;" )); $n = $page['num'] + 1; - $title_img = replace_space( $title_img." - " ).$n.'/'; - $title_img.= $page['cat_nb_images']."
"; - $title_img.= $picture['current']['name']; + $title_nb = "Photo".' '.$n.'/'; + $title_nb.= $page['cat_nb_images']; + //$title_img.= $picture['current']['name']; } else if ( $page['cat'] == 'search' ) { @@ -237,7 +238,9 @@ $template->set_filenames(array('picture'=>'picture.tpl')); initialize_template(); $template->assign_vars(array( - 'TITLE' => $title_img, + 'CATEGORY' => $title_img, + 'PHOTO' => $title_nb, + 'TITLE' => $picture['current']['name'], 'PREV_TITLE_IMG' => $picture['prev']['name'], 'NEXT_TITLE_IMG' => $picture['next']['name'], 'PREV_IMG' => $picture['prev']['thumbnail'], -- cgit v1.2.3