]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use <p> to keep stuff in profile block from bunching
authorEvan Prodromou <evan@status.net>
Wed, 16 Mar 2011 14:03:28 +0000 (10:03 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 16 Mar 2011 14:03:28 +0000 (10:03 -0400)
lib/profileblock.php

index 716149dfeb07e557b02da39241d6c05a937787f5..dca0814437452ca8e94683ced83230d1e1e13c90 100644 (file)
@@ -69,19 +69,21 @@ abstract class ProfileBlock extends Widget
         $name = $this->name();
 
         if (!empty($name)) {
+            $this->out->elementStart('p', 'profile_block_name');
             $url = $this->url();
             if (!empty($url)) {
                 $this->out->element('a', array('href' => $url),
                                     $name);
             } else {
-                $this->out->element('span', 'profile_block_name', $name);
+                $this->out->text($name);
             }
+            $this->out->elementEnd('p');
         }
 
         $location = $this->location();
 
         if (!empty($location)) {
-            $this->out->element('span', 'profile_block_location', $location);
+            $this->out->element('p', 'profile_block_location', $location);
         }
 
         $homepage = $this->homepage();