Add HTML link to profile to account name
- Normalize white space in HTML
This commit is contained in:
parent
2e84f5aa7b
commit
2aba91d42c
1 changed files with 21 additions and 14 deletions
|
@ -26,12 +26,19 @@ if (!empty($profile['country'])) {
|
||||||
</a>
|
</a>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<h5 class="name">
|
<h5 class="name">
|
||||||
<?php if ($profile['dfrn_request']): ?>
|
<?php if ($profile['dfrn_request']): ?>
|
||||||
<a href="<?php echo $this->escapeHtmlAttr($this->u($profile['dfrn_request'])); ?>" class="card-link btn btn-primary float-right">
|
<a href="<?php echo $this->escapeHtmlAttr($this->u($profile['dfrn_request'])); ?>" class="card-link btn btn-primary float-right">
|
||||||
<i class="fa fa-external-link-alt"></i> <?php echo $this->p__('verb', 'Follow')?>
|
<i class="fa fa-external-link-alt"></i> <?php echo $this->p__('verb', 'Follow')?>
|
||||||
</a>
|
</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $this->escapeHtml($profile['name']) ?>
|
<?php if ($profile['follow']): ?>
|
||||||
|
<a href="<?php echo $this->escapeHtmlAttr($profile['follow']); ?>" class="card-link btn btn-primary float-right" target="_blank" rel="noopener noreferrer">
|
||||||
|
<i class="fa fa-external-link-alt"></i> <?php echo $this->p__('verb', 'Follow')?>
|
||||||
|
</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
<a href="<?php echo $this->escapeHtmlAttr($profile['profile_url']) ?>">
|
||||||
|
<?php echo $this->escapeHtml($profile['name']) ?>
|
||||||
|
</a>
|
||||||
</h5>
|
</h5>
|
||||||
<p class="url">
|
<p class="url">
|
||||||
<a href="<?php echo $this->escapeHtmlAttr($this->u($profile['profile_url'])) ?>">
|
<a href="<?php echo $this->escapeHtmlAttr($this->u($profile['profile_url'])) ?>">
|
||||||
|
@ -42,7 +49,7 @@ if (!empty($profile['country'])) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="description d-md-none"><?php echo $this->escapeHtml($profile['pdesc']) ?></p>
|
<p class="description d-md-none"><?php echo $this->escapeHtml($profile['pdesc']) ?></p>
|
||||||
<?php if ($profile['language']):?>
|
<?php if ($profile['language']):?>
|
||||||
<div class="language">
|
<div class="language">
|
||||||
<i class="fa fa-language" alt="<?php echo $this->__('Language')?>" title="<?php echo $this->__('Language')?>"></i>
|
<i class="fa fa-language" alt="<?php echo $this->__('Language')?>" title="<?php echo $this->__('Language')?>"></i>
|
||||||
<?php echo $this->e(Friendica\Directory\Utils\L10n::localeToLanguageString($profile['language'])) ?>
|
<?php echo $this->e(Friendica\Directory\Utils\L10n::localeToLanguageString($profile['language'])) ?>
|
||||||
|
@ -50,26 +57,26 @@ if (!empty($profile['country'])) {
|
||||||
<i class="fa fa-filter" title="<?php echo $this->__('Filter by language')?>"></i>
|
<i class="fa fa-filter" title="<?php echo $this->__('Filter by language')?>"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<div class="location">
|
<div class="location">
|
||||||
<?php if (count($parts)): ?>
|
<?php if (count($parts)): ?>
|
||||||
<i class="fa fa-globe" alt="<?php echo $this->__('Location')?>" title="<?php echo $this->__('Location')?>"></i>
|
<i class="fa fa-globe" alt="<?php echo $this->__('Location')?>" title="<?php echo $this->__('Location')?>"></i>
|
||||||
<?php echo implode(', ', $parts); ?>
|
<?php echo implode(', ', $parts); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($profile['tags']): ?>
|
<?php if ($profile['tags']): ?>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<?php
|
<?php
|
||||||
$tags = array_map('trim', explode(' ', $profile['tags']));
|
$tags = array_map('trim', explode(' ', $profile['tags']));
|
||||||
foreach ($tags as $tag):?>
|
foreach ($tags as $tag):?>
|
||||||
<span class="badge">
|
<span class="badge">
|
||||||
<?php echo $this->escapeHtml($tag) ?>
|
<?php echo $this->escapeHtml($tag) ?>
|
||||||
<a href="<?php echo $this->escapeHtmlAttr($this->r('search', [], ['q' => $tag])) ?>">
|
<a href="<?php echo $this->escapeHtmlAttr($this->r('search', [], ['q' => $tag])) ?>">
|
||||||
<i class="fa fa-tag" title="<?php echo $this->__('Search Tag')?>"></i>
|
<i class="fa fa-tag" title="<?php echo $this->__('Search Tag')?>"></i>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
Loading…
Reference in a new issue