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']), )); } } diff --git a/doc/ChangeLog b/doc/ChangeLog index cb664a37e..a2fba5ef3 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,9 @@ +2005-08-21 Pierrick LE GALL + + * modification : adaptation of template variables and blocks in + comments page to display comment by comment instead of picture by + picture. + 2005-08-20 Pierrick LE GALL * improvement : dedicated page for user comments validation/reject diff --git a/template/cclear/admin/comments.tpl b/template/cclear/admin/comments.tpl index 93e5c4ed9..d903c332a 100644 --- a/template/cclear/admin/comments.tpl +++ b/template/cclear/admin/comments.tpl @@ -1,6 +1,6 @@

{lang:User comments validation}

-
+ diff --git a/template/cclear/comments.tpl b/template/cclear/comments.tpl index 085c0860a..2ea1dc1bb 100644 --- a/template/cclear/comments.tpl +++ b/template/cclear/comments.tpl @@ -1,47 +1,96 @@ - -

{L_COMMENT_TITLE}

- - -
- [ - - {last_day_option.OPTION}{T_SEPARATION} - - {L_COMMENT_STATS} - ] - - [ {L_COMMENT_RETURN} ] - -
- - - +
- -
{picture.TITLE_IMG}
+
-
- {picture.THUMB_ALT_IMG} -
+
+
    +
  • {lang:home}
  • +
+

{lang:User comments}

+
- -
- -

- -

- - {picture.comment.COMMENT_AUTHOR} - {picture.comment.COMMENT_DATE} -
+ -
{picture.comment.COMMENT}
- - +
+ {lang:Filter} + + + + + + + + + +
+ +
+ + {lang:Display} + + + + + + + +
+ + - -
- - -
- + + + +
+ + +
+ +

{comment.AUTHOR} - {comment.DATE}

+
{comment.CONTENT}
+
+
+ + + +
+ +
+ +
diff --git a/template/cclear/content.css b/template/cclear/content.css index 355358ba3..0ed06dd4c 100644 --- a/template/cclear/content.css +++ b/template/cclear/content.css @@ -5,6 +5,10 @@ margin-bottom: 1em; /* when it's longer than menu bar */ } +#commentsPage #content { + margin: 1em; +} + #content H2 { margin-bottom: 1ex; } @@ -96,7 +100,7 @@ doesn't work :-((*/ /* actions */ ul.categoryActions { text-align: center; - margin: 0; + margin: 1px 1px 0 0; padding: 0; text-indent: 0; } @@ -113,3 +117,41 @@ ul.categoryActions { border: none; } +/* User comments */ + +#content DIV.comment { + margin: 5px; + border: 1px solid gray; +} + +#content DIV.comment > A.illustration { + display: block; + float: left; + margin: 5px; +} + +#content DIV.comment > A.illustration IMG { + border: 1px solid gray; +} + +#content DIV.comment P.commentHeader { + text-align: right; + margin: 0.5em 0.5em 0 0; +} + +#content DIV.comment UL.actions { + text-align: center; + margin: 0.2em; + clear: left; +} + +#content DIV.comment > UL.actions > LI { + display: inline; +} + +#content DIV.comment BLOCKQUOTE { + margin: 1em 1em 1em 150px; /* margin-left corresponds to maximum thumbnail width */ + border: 1px solid #d3d3d3; + border-left: 2px solid gray; + padding: 0.5em; +} diff --git a/template/cclear/default-layout.css b/template/cclear/default-layout.css index d8af28a93..e15db32c6 100644 --- a/template/cclear/default-layout.css +++ b/template/cclear/default-layout.css @@ -176,3 +176,36 @@ form#categoryOrdering ul.categoryActions { } form#cat_modify table { width: auto; } + +/** + * Filter forms are displayed label by label with the input (or select...) + * below the label + */ +FORM.filter FIELDSET { + padding: 10px; +} + +FORM.filter FIELDSET LABEL { + display: block; + float: left; + width: auto; + margin-right: 10px; + padding: 0; +} + +FORM.filter>FIELDSET>LABEL>INPUT, FORM.filter>FIELDSET>LABEL>SELECT { + display: block; +} + +FORM.filter FIELDSET P, FORM.filter FIELDSET>INPUT { + clear: left; + display: block; +} + +FORM.filter FIELDSET { + border: 1px solid gray; +} + +FORM.filter FIELDSET + INPUT { + margin-top: 10px; +} diff --git a/template/cclear/image.css b/template/cclear/image.css index 4c587f205..74f9e1a66 100644 --- a/template/cclear/image.css +++ b/template/cclear/image.css @@ -58,7 +58,7 @@ de l'image... clear: left; } -#theImage * { +#theImage>IMG { display: block; margin: 0 auto; } diff --git a/template/cclear/theme/home.png b/template/cclear/theme/home.png new file mode 100644 index 000000000..a7714756b Binary files /dev/null and b/template/cclear/theme/home.png differ