From d8b2eb4b628e8927b0bed1b254c996520de95b83 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Wed, 23 May 2012 13:47:27 -0400 Subject: pkg_comments.php: Overhaul to match archweb * Limit PHP echoing XHTML as much as possible, and use pure XHTML * Switch to alternative syntax in control structures for better readability of inter-mixed XHTML * Remove box for every comment and switch to archweb news post style Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/template/pkg_comments.php | 77 +++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 40 deletions(-) (limited to 'web/template') diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index d834651..4e9dfa3 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -1,45 +1,42 @@ -
-
{$carr['UserName']}"; - } - - $commentHeader = '

' . __('Comment by: %s on %s', $carr['UserName'], gmdate('Y-m-d H:i', $carr['CommentTS'])) . '

'; - - if (canDeleteCommentArray($carr, $atype, $uid)) { - $durl = '
'; - $durl.= '
'; - $durl.= ''; - $durl.= ''; - $durl.= '"; - } - - echo $commentHeader; -?>
-
-
- -
-
- +
+

+ + +

+ + + {$row['UserName']}"; + endif; ?> +

+ + +
+ + + +
+ + + +

+

+
+

+ +

+
+
- 10 && !isset($_GET['comments'])) { - echo ''; -} -?> + 10 && !isset($_GET['comments'])): ?> +
+

+ +

+
+ -- cgit v1.2.3-54-g00ecf