From fdc5ce0a556df37b126d759ccdd0800115306998 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 31 Mar 2005 21:53:24 +0000 Subject: - apply category name and element name separation in calendar special category - change method of counting total number of viewable pictures : pictures linked to more than one category are not counted twice. git-svn-id: http://piwigo.org/svn/trunk@761 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_calendar.inc.php | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) (limited to 'include/category_calendar.inc.php') diff --git a/include/category_calendar.inc.php b/include/category_calendar.inc.php index fd6c11861..827897b85 100644 --- a/include/category_calendar.inc.php +++ b/include/category_calendar.inc.php @@ -245,12 +245,18 @@ SELECT file,tn_ext,'.$conf['calendar_datefield'].',path 'IMAGE'=>$thumbnail_src, 'IMAGE_ALT'=>$row['file'], 'IMAGE_TITLE'=>$thumbnail_title, - 'IMAGE_NAME'=>$name, 'U_IMG_LINK'=>add_session_id($url_link) ) ); + $template->assign_block_vars( + 'thumbnails.line.thumbnail.category_name', + array( + 'NAME' => $name + ) + ); + // create a new line ? if (++$row_number == $user['nb_image_line']) { @@ -299,12 +305,18 @@ SELECT file,tn_ext,'.$conf['calendar_datefield'].',path 'IMAGE'=>$thumbnail_src, 'IMAGE_ALT'=>$row['file'], 'IMAGE_TITLE'=>$thumbnail_title, - 'IMAGE_NAME'=>$name, 'U_IMG_LINK'=>add_session_id($url_link) ) ); + $template->assign_block_vars( + 'thumbnails.line.thumbnail.category_name', + array( + 'NAME' => $name + ) + ); + // create a new line ? if (++$row_number == $user['nb_image_line']) { @@ -347,12 +359,18 @@ SELECT file,tn_ext,'.$conf['calendar_datefield'].',path 'IMAGE'=>$thumbnail_src, 'IMAGE_ALT'=>$row['file'], 'IMAGE_TITLE'=>$thumbnail_title, - 'IMAGE_NAME'=>$name, 'U_IMG_LINK'=>add_session_id($url_link) ) ); + $template->assign_block_vars( + 'thumbnails.line.thumbnail.category_name', + array( + 'NAME' => $name + ) + ); + // create a new line ? if (++$row_number == $user['nb_image_line']) { @@ -415,12 +433,17 @@ SELECT file,tn_ext,'.$conf['calendar_datefield'].',path 'IMAGE'=>$thumbnail_src, 'IMAGE_ALT'=>$row['file'], 'IMAGE_TITLE'=>$thumbnail_title, - 'IMAGE_NAME'=>$name, 'U_IMG_LINK'=>add_session_id($url_link) ) ); - $template->assign_block_vars('thumbnails.line.thumbnail.bullet',array()); + + $template->assign_block_vars( + 'thumbnails.line.thumbnail.category_name', + array( + 'NAME' => $name + ) + ); // create a new line ? if (++$row_number == $user['nb_image_line']) -- cgit v1.2.3