2018-11-12 03:08:33 +01:00
|
|
|
<?php
|
|
|
|
$parts = [];
|
|
|
|
if (!empty($profile['locality'])) {
|
2018-11-16 06:00:03 +01:00
|
|
|
$parts[] = $this->escapeHtml($profile['locality']) . ' <a href="search?field=locality&q=' . $this->escapeUrl($profile['locality']) . '">
|
|
|
|
<span class="fa fa-filter" title="' . $this->__('Filter by locality') . '" aria-hidden="true"></span>
|
|
|
|
</a>';
|
2018-11-12 03:08:33 +01:00
|
|
|
}
|
|
|
|
if (!empty($profile['region'])
|
|
|
|
&& strtolower($profile['locality']) != strtolower($profile['region'])) {
|
2018-11-16 06:00:03 +01:00
|
|
|
$parts[] = $this->escapeHtml($profile['region']) . ' <a href="search?field=region&q=' . $this->escapeUrl($profile['region']) . '">
|
|
|
|
<span class="fa fa-filter" title="' . $this->__('Filter by region') . '" aria-hidden="true"></span>
|
|
|
|
</a>';
|
2018-11-12 03:08:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty($profile['country'])) {
|
2018-11-16 06:00:03 +01:00
|
|
|
$parts[] = $this->escapeHtml($profile['country']) . ' <a href="search?field=country&q=' . $this->escapeUrl($profile['country']) . '">
|
|
|
|
<span class="fa fa-filter" title="' . $this->__('Filter by country') . '" aria-hidden="true"></span>
|
|
|
|
</a>';
|
2018-11-12 03:08:33 +01:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<figure id="profile-<?php echo $this->escapeHtmlAttr($profile['id']) ?>" class="bg-light p-3 rounded">
|
|
|
|
<div class="media">
|
2018-11-16 06:00:03 +01:00
|
|
|
<a href="<?php echo $this->escapeHtmlAttr($profile['profile_url']) ?>">
|
|
|
|
<img class="mr-3 rounded" src="photo/<?php echo $profile['id'] ?>.jpg">
|
|
|
|
</a>
|
2018-11-12 03:08:33 +01:00
|
|
|
<div class="media-body">
|
|
|
|
<h5 class="name">
|
|
|
|
<?php if ($profile['dfrn_request']): ?>
|
2018-11-16 06:00:03 +01:00
|
|
|
<a href="<?php echo $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')?>
|
|
|
|
</a>
|
2018-11-12 03:08:33 +01:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php echo $this->escapeHtml($profile['name']) ?>
|
|
|
|
</h5>
|
2018-11-16 06:00:03 +01:00
|
|
|
<p class="url">
|
|
|
|
<a href="<?php echo $this->escapeHtmlAttr($profile['profile_url']) ?>">
|
|
|
|
<?php echo $this->escapeHtml($profile['addr']) ?>
|
|
|
|
</a>
|
2018-11-12 03:08:33 +01:00
|
|
|
</p>
|
|
|
|
<p class="description d-none d-md-block"><?php echo $this->escapeHtml($profile['pdesc']) ?></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p class="description d-md-none"><?php echo $this->escapeHtml($profile['pdesc']) ?></p>
|
2018-11-16 06:00:03 +01:00
|
|
|
<?php if ($profile['language']):?>
|
|
|
|
<div class="language">
|
|
|
|
<i class="fa fa-language" alt="<?php echo $this->__('Language')?>" title="<?php echo $this->__('Language')?>"></i>
|
2018-11-18 16:38:17 +01:00
|
|
|
<?php echo $this->e(Friendica\Directory\Utils\L10n::localeToLanguageString($profile['language'])) ?>
|
2018-11-16 06:00:03 +01:00
|
|
|
<a href="/search?field=language&q=<?php echo $this->escapeUrl($profile['language']) ?>">
|
|
|
|
<i class="fa fa-filter" title="<?php echo $this->__('Filter by language')?>"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php endif;?>
|
2018-11-12 03:08:33 +01:00
|
|
|
<div class="location">
|
|
|
|
<?php if (count($parts)): ?>
|
2018-11-16 06:00:03 +01:00
|
|
|
<i class="fa fa-globe" alt="<?php echo $this->__('Location')?>" title="<?php echo $this->__('Location')?>"></i>
|
2018-11-12 03:08:33 +01:00
|
|
|
<?php echo implode(', ', $parts); ?>
|
|
|
|
<?php endif ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if ($profile['tags']): ?>
|
|
|
|
<div class="tags">
|
|
|
|
<?php
|
|
|
|
$tags = array_map('trim', explode(' ', $profile['tags']));
|
|
|
|
foreach ($tags as $tag):?>
|
2018-11-16 06:00:03 +01:00
|
|
|
<span class="badge">
|
|
|
|
<?php echo $this->escapeHtml($tag) ?>
|
|
|
|
<a href="/search?q=<?php echo $this->escapeUrl($tag) ?>">
|
|
|
|
<i class="fa fa-tag" title="<?php echo $this->__('Search Tag')?>"></i>
|
|
|
|
</a>
|
|
|
|
</span>
|
2018-11-12 03:08:33 +01:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</figure>
|