aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 17:15:20 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 17:15:20 +0000
commit67bee86f7fa86273494302bdb816fc27022ea037 (patch)
treeb988ea5b05612003ce300740d62d95b50ee76ed8 /views/default
parent8a4261fb21d1fe604d00a6ad62848683fc575824 (diff)
downloadelgg-67bee86f7fa86273494302bdb816fc27022ea037.tar.gz
elgg-67bee86f7fa86273494302bdb816fc27022ea037.tar.bz2
improved the styling of the comment area
git-svn-id: http://code.elgg.org/elgg/trunk@8335 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/css/elements/chrome.php10
-rw-r--r--views/default/forms/comments/add.php2
-rw-r--r--views/default/page/elements/comments.php7
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;
+}
+
<?php //@todo remove ?>
.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()) {
?>
<div class="mbn">
- <label><?php echo elgg_echo("generic_comments:text"); ?></label>
+ <label><?php echo elgg_echo("generic_comments:add"); ?></label>
<?php echo elgg_view('input/longtext', array('name' => 'generic_comment')); ?>
</div>
<?php
diff --git a/views/default/page/elements/comments.php b/views/default/page/elements/comments.php
index 6a7e74b2a..3d44f5785 100644
--- a/views/default/page/elements/comments.php
+++ b/views/default/page/elements/comments.php
@@ -23,7 +23,12 @@ $options = array(
'guid' => $vars['entity']->getGUID(),
'annotation_name' => 'generic_comment'
);
-echo elgg_list_annotations($options);
+$html = elgg_list_annotations($options);
+if ($html) {
+ echo '<h3>Comments</h3>';
+ echo $html;
+}
+//echo strlen($html);
if ($show_add_form) {
$form_vars = array('name' => 'elgg_add_comment');