From 67bee86f7fa86273494302bdb816fc27022ea037 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 19 Feb 2011 17:15:20 +0000 Subject: improved the styling of the comment area git-svn-id: http://code.elgg.org/elgg/trunk@8335 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css/elements/chrome.php | 10 ++++++++++ views/default/forms/comments/add.php | 2 +- views/default/page/elements/comments.php | 7 ++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/views/default/css/elements/chrome.php b/views/default/css/elements/chrome.php index 157b00c6e..659acd869 100644 --- a/views/default/css/elements/chrome.php +++ b/views/default/css/elements/chrome.php @@ -87,6 +87,13 @@ h2 { background-color: white; } +.elgg-comments { + margin-top: 25px; +} +.elgg-comments > form { + margin-top: 15px; +} + .radius8 { -webkit-border-radius: 8px; @@ -96,6 +103,9 @@ h2 { /* *************************************** USER INPUT DISPLAY RESET *************************************** */ +.elgg-output { + margin-top: 10px; +} .elgg-output ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 1.5em; diff --git a/views/default/forms/comments/add.php b/views/default/forms/comments/add.php index 8a2b89f2d..f0d42fb80 100644 --- a/views/default/forms/comments/add.php +++ b/views/default/forms/comments/add.php @@ -10,7 +10,7 @@ if (isset($vars['entity']) && elgg_is_logged_in()) { ?>
- + 'generic_comment')); ?>
$vars['entity']->getGUID(), 'annotation_name' => 'generic_comment' ); -echo elgg_list_annotations($options); +$html = elgg_list_annotations($options); +if ($html) { + echo '

Comments

'; + echo $html; +} +//echo strlen($html); if ($show_add_form) { $form_vars = array('name' => 'elgg_add_comment'); -- cgit v1.2.3