aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-08-21 21:23:17 +0000
committerplegall <plg@piwigo.org>2005-08-21 21:23:17 +0000
commitb08df0468873fa5e6f69a0737d3557bd1de0daa1 (patch)
treee4d2a569da1962b27e0544af7288c578b0e01e12 /comments.php
parent0a4b49abd8b0faf9ccc5fe8328adfaa42bcf8f4c (diff)
- 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
Diffstat (limited to '')
-rw-r--r--comments.php10
1 files changed, 6 insertions, 4 deletions
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']),
));
}
}