From b08df0468873fa5e6f69a0737d3557bd1de0daa1 Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 21 Aug 2005 21:23:17 +0000 Subject: - modification : adaptation of template variables and blocks in comments page to display comment by comment instead of picture by picture. - [template cclear] comments.tpl copied and adapted from template default. Return to home new icon. As asked by chrisaga, special id #commentsPage in comments.tpl to set the #content margin-left to 0 (since no #menubar to display). - [template cclear] FORM.filter rules taken from template default (these rules have been written some time ago by yoDan. - [template cclear] bug fixed on #theImage : display:block must be used only on IMG and not on the P>A (yes, in BSF you can have HTML in picture and categories descriptions) git-svn-id: http://piwigo.org/svn/trunk@848 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'comments.php') diff --git a/comments.php b/comments.php index 115bf8572..6b949eb31 100644 --- a/comments.php +++ b/comments.php @@ -425,11 +425,13 @@ SELECT id, uppercats } $template->assign_block_vars( - 'picture.comment', + 'comment', array( - 'COMMENT_AUTHOR' => $author, - 'COMMENT_DATE'=>format_date($comment['date'],'mysql_datetime',true), - 'COMMENT'=>parse_comment_content($comment['content']), + 'U_PICTURE' => add_session_id($url), + 'TN_SRC' => $thumbnail_src, + 'AUTHOR' => $author, + 'DATE'=>format_date($comment['date'],'mysql_datetime',true), + 'CONTENT'=>parse_comment_content($comment['content']), )); } } -- cgit v1.2.3