]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Minor update to the comment wall wrapper div.
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 4 May 2010 12:53:33 +0000 (12:53 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 4 May 2010 12:53:33 +0000 (12:53 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5963 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/views/default/profile/commentwall/commentwall.php

index 79869a4544bd985f1c7f0df49df7adfe31045615..a45c3adde33562f21ad6a30584267da12462d5b7 100644 (file)
@@ -2,21 +2,17 @@
 /**
  * Elgg Commentwall display page
  */
-        
+//start the div which will wrap all the message board contents
+echo "<div id='comment_wall_display'>";         
+
 // If there is any content to view, view it
-if (is_array($vars['annotation']) && sizeof($vars['annotation']) > 0) {
-               
-       //start the div which will wrap all the message board contents
-       echo "<div id='comment_wall_display'>";
-                       
+if (is_array($vars['annotation']) && sizeof($vars['annotation']) > 0) {                
        //loop through all annotations and display
        foreach($vars['annotation'] as $content) {
                echo elgg_view("profile/commentwall/commentwall_content", array('annotation' => $content));
-       }
-                       
-       //close the wrapper div
-       echo "</div>";
-                       
+       }                       
 } else {
        echo "<p class='margin_top'>" . elgg_echo("profile:commentwall:none") . "</p>";
-}
\ No newline at end of file
+}
+//close the wrapper div
+echo "</div>";
\ No newline at end of file