| 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
use Joomla\CMS\Language\Text;
// Config
$logo = '~theme.logo';
$header = '~theme.header';
$mobile = '~theme.mobile';
// Link
$attrs_link = [];
$attrs_link['href'] = $config('~theme.site_url');
$attrs_link['aria-label'] = Text::_('TPL_YOOTHEME_BACK_TO_HOME');
$attrs_link['class'][] = $class ?? '';
$attrs_link['class'][] = 'uk-logo';
if ($position == 'logo' && preg_match('/^(horizontal|stacked-center-split-[ab])/', $config("$header.layout"))) {
$attrs_link['class'][] = 'uk-navbar-item';
}
if ($position == 'logo-mobile') {
$attrs_link['class'][] = 'uk-navbar-item';
if ($config("$mobile.header.logo_padding_remove") && $config("$mobile.header.layout") != 'horizontal-center-logo') {
$attrs_link['class'][] = 'uk-padding-remove-left';
}
}
// Function
$logo_img = function ($image, $width, $height, array $attrs = []) use ($config, $logo) {
$attrs['alt'] = Text::_($config("$logo.text", ''));
$attrs['loading'] = '';
if ($this->isImage($image) === 'svg') {
return $this->image($image, array_merge($attrs, ['width' => $width, 'height' => $height, 'uk-svg' => $config("$logo.image_svg_inline")]));
}
return $this->image([$image, 'thumbnail' => [$width, $height], 'srcset' => true], $attrs);
};
// Logo
$logo_el = '';
if (in_array($position, ['dialog', 'dialog-mobile'])) {
if ($config("$logo.image_dialog")) {
$logo_el = $logo_img($config("$logo.image_dialog"), $config("$logo.image_dialog_width"), $config("$logo.image_dialog_height"));
}
} elseif ($position == 'logo-mobile' && $config("$logo.image_mobile")) {
$logo_el = $logo_img($config("$logo.image_mobile"), $config("$logo.image_mobile_width"), $config("$logo.image_mobile_height"));
// Inverse
if ($config("$logo.image_mobile_inverse")) {
$logo_el .= $logo_img($config("$logo.image_mobile_inverse"), $config("$logo.image_mobile_width"), $config("$logo.image_mobile_height"), ['class' => ['uk-logo-inverse']]);
}
} elseif ($config("$logo.image")) {
$logo_el = $logo_img($config("$logo.image"), $config("$logo.image_width"), $config("$logo.image_height"));
// Inverse
if ($config("$logo.image_inverse")) {
$logo_el .= $logo_img($config("$logo.image_inverse"), $config("$logo.image_width"), $config("$logo.image_height"), ['class' => ['uk-logo-inverse']]);
}
} else {
$logo_el = Text::_($config("$logo.text", ''));
}
?>
<?php if ($logo_el) : ?>
<a<?= $this->attrs($attrs_link) ?>>
<?= $logo_el ?>
</a>
<?php endif ?>