]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
improved the styling of the comment area
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 19 Feb 2011 17:15:20 +0000 (17:15 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 19 Feb 2011 17:15:20 +0000 (17:15 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8335 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/css/elements/chrome.php
views/default/forms/comments/add.php
views/default/page/elements/comments.php

index 157b00c6ed4745cdb5549ccac2fa9abdba6f47a6..659acd8692c9a7abbfd2a3025fe8774e8ecbe5ea 100644 (file)
@@ -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;
index 8a2b89f2dd7370bdcde7ef5ef8d8db6337f5dabe..f0d42fb8099b26a3404c6e56fc57142eea45282d 100644 (file)
@@ -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
index 6a7e74b2a3ae7a20af4aeb5fc08c8b8ce9ef5614..3d44f5785f0d432b9b5597e83b17924602046938 100644 (file)
@@ -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');