]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
convert profile details to use divs so that we don't have invalid html due to output...
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 11 Jun 2011 23:18:35 +0000 (23:18 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 11 Jun 2011 23:18:35 +0000 (23:18 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9187 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/views/default/profile/details.php

index 04d95001d2ba2e7524e6f92c60a0b43e28b1a91f..3af5cb7567b8f535b7211a4a7fe531525d4cd944 100644 (file)
@@ -25,12 +25,12 @@ if (is_array($profile_fields) && sizeof($profile_fields) > 0) {
                        //This function controls the alternating class
                        $even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even';
                        ?>
-                       <p class="<?php echo $even_odd; ?>">
+                       <div class="<?php echo $even_odd; ?>">
                                <b><?php echo elgg_echo("profile:{$shortname}"); ?>: </b>
                                <?php
                                        echo elgg_view("output/{$valtype}", array('value' => $user->$shortname));
                                ?>
-                       </p>
+                       </div>
                        <?php
                }
        }
@@ -45,7 +45,7 @@ if (!elgg_get_config('profile_custom_fields')) {
                if ($user->description) {
                        echo "<p class='profile-aboutme-title'><b>" . elgg_echo("profile:aboutme") . "</b></p>";
                        echo "<div class='profile-aboutme-contents'>";
-                       echo elgg_view('output/longtext', array('value' => $user->description));
+                       echo elgg_view('output/longtext', array('value' => $user->description, 'class' => 'mtn'));
                        echo "</div>";
                }
        }