forked from GNUsocial/gnu-social
use <p> to keep stuff in profile block from bunching
This commit is contained in:
parent
410ca34ce9
commit
519bbfb2e9
@ -69,19 +69,21 @@ abstract class ProfileBlock extends Widget
|
|||||||
$name = $this->name();
|
$name = $this->name();
|
||||||
|
|
||||||
if (!empty($name)) {
|
if (!empty($name)) {
|
||||||
|
$this->out->elementStart('p', 'profile_block_name');
|
||||||
$url = $this->url();
|
$url = $this->url();
|
||||||
if (!empty($url)) {
|
if (!empty($url)) {
|
||||||
$this->out->element('a', array('href' => $url),
|
$this->out->element('a', array('href' => $url),
|
||||||
$name);
|
$name);
|
||||||
} else {
|
} else {
|
||||||
$this->out->element('span', 'profile_block_name', $name);
|
$this->out->text($name);
|
||||||
}
|
}
|
||||||
|
$this->out->elementEnd('p');
|
||||||
}
|
}
|
||||||
|
|
||||||
$location = $this->location();
|
$location = $this->location();
|
||||||
|
|
||||||
if (!empty($location)) {
|
if (!empty($location)) {
|
||||||
$this->out->element('span', 'profile_block_location', $location);
|
$this->out->element('p', 'profile_block_location', $location);
|
||||||
}
|
}
|
||||||
|
|
||||||
$homepage = $this->homepage();
|
$homepage = $this->homepage();
|
||||||
|
Loading…
Reference in New Issue
Block a user