| Server IP : 54.36.91.62 / Your IP : 216.73.217.111 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/annonces/templates/yootheme/templates/ |
Upload File : |
<?php
$mobile = str_ends_with($position, '-mobile');
$header = '~theme.' . ($mobile ? 'mobile.header' :'header');
$links = (array) $config("{$header}.social_items", []);
$list = $this->el('ul', [
'class' => [
'uk-flex-inline uk-flex-middle uk-flex-nowrap',
'uk-grid-{social_gap}'
],
'uk-grid' => true
]);
$anchor = $this->el('a', [
'href' => ['{link}'],
'class' => [
'uk-preserve-width',
$config("{$header}.social_style") ? 'uk-icon-button' : 'uk-icon-link'
],
'rel' => 'noreferrer',
'target' => ['_blank' => $config("{$header}.social_target")],
'aria-label' => ['{link_aria_label}'],
]);
?>
<?php if (count($links)) : ?>
<?= $list($config($header)) ?>
<?php foreach ($links as $link) :
// Image
if (!empty($link['image'])) {
$icon = $this->el('image', [
'src' => $link['image'],
'alt' => true,
'loading' => false,
'width' => $config("{$header}.social_width") ?: 20,
'height' => $config("{$header}.social_width") ?: 20,
'uk-svg' => $config("{$header}.social_image_svg_inline"),
'thumbnail' => true,
]);
// Icon
} else {
$icon = $this->el('span', [
'uk-icon' => [
'icon: {0};' => ($link['icon'] ?? '') ?: $this->e($link['link'] ?? '', 'social'),
'width: {0};' => $config("{$header}.social_width"),
'height: {0};' => $config("{$header}.social_width"),
],
]);
}
?>
<li><?= $anchor($link, $icon([], '')) ?></li>
<?php endforeach ?>
<?= $list->end() ?>
<?php endif ?>