Commit 519bbfb2 authored by Evan Prodromou's avatar Evan Prodromou

use <p> to keep stuff in profile block from bunching

parent 410ca34c
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment