| Server IP : 54.36.91.62 / Your IP : 216.73.217.117 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;
// Toggle
$attrs_toggle = ['uk-toggle' => true];
if (in_array($position, ['navbar', 'navbar-push', 'header', 'header-push'])) {
// Config
$header = '~theme.header';
$dialog = '~theme.dialog';
$countModules = $this->countModules('dialog') || str_starts_with($config("$header.search", ''), 'dialog') || str_starts_with($config("$header.social", ''), 'dialog');
$attrs_toggle['href'] ='#tm-dialog';
if (str_starts_with($config("$header.layout"), 'stacked') && in_array($position, ['header', 'header-push'])) {
$attrs_toggle['class'][] = 'uk-icon-link';
} else {
$attrs_toggle['class'][] = 'uk-navbar-toggle';
}
$attrs_toggle['class'][] = str_starts_with($config("$dialog.layout"), 'dropbar') ? 'uk-navbar-toggle-animate' : '';
} elseif (in_array($position, ['navbar-mobile', 'header-mobile'])) {
// Config
$header = '~theme.mobile.header';
$dialog = '~theme.mobile.dialog';
$countModules = $this->countModules('dialog-mobile') || str_starts_with($config("$header.search", ''), 'dialog') || str_starts_with($config("$header.social", ''), 'dialog');
$attrs_toggle['href'] ='#tm-dialog-mobile';
$attrs_toggle['class'][] = 'uk-navbar-toggle';
$attrs_toggle['class'][] = str_starts_with($config("$dialog.layout"), 'dropbar') ? 'uk-navbar-toggle-animate' : '';
}
?>
<?php // Mind that `$this->countModules()` does not count the custom created modules (logo, search, socials) because this file is called from the module/widget listener ?>
<?php if ($countModules) : ?>
<a<?= $this->attrs($attrs_toggle) ?>>
<?php if ($config("$dialog.toggle_text") && explode(':', $config("$dialog.toggle"), 2)[1] == 'end') : ?>
<span class="uk-margin-small-right uk-text-middle"><?= Text::_('TPL_YOOTHEME_MENU') ?></span>
<?php endif ?>
<div uk-navbar-toggle-icon></div>
<?php if ($config("$dialog.toggle_text") && explode(':', $config("$dialog.toggle"), 2)[1] == 'start') : ?>
<span class="uk-margin-small-left uk-text-middle"><?= Text::_('TPL_YOOTHEME_MENU') ?></span>
<?php endif ?>
</a>
<?php endif ?>