AnonSec Shell
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/voscatalogues/templates/yootheme/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/voscatalogues/templates/yootheme/templates/breadcrumbs.php
<?php

use Joomla\CMS\Language\Text;
use YOOtheme\Metadata;
use function YOOtheme\app;

$el = $this->el('nav', [
    'class' => 'uk-margin-medium-bottom',
    'aria-label' => Text::_('TPL_YOOTHEME_BREADCRUMB'),
]);

$list = $this->el('ul', ['class' => ['uk-breadcrumb']]);
$li = $this->el('li');
$span = $this->el('span');

$position = 1;

// Structured data as JSON
$data = [
    '@context' => 'https://schema.org',
    '@type' => 'BreadcrumbList',
    'itemListElement' => []
];

if (!empty($schemaorgId)) {
    $data['@id'] = $schemaorgId;
}

foreach ($items as $key => $item) {
    if (!empty($item->link)) {
        $data['itemListElement'][] = [
            '@type' => 'ListItem',
            'position' => $position++,
            'item' => [
                '@type' => 'WebPage',
                '@id' => $item->link,
                'name' => $item->name,
            ],
        ];
    } elseif ($key === array_key_last($items)) {
        $data['itemListElement'][] = [
            '@type' => 'ListItem',
            'position' => $position++,
            'item' => [
                'name' => $item->name,
            ],
        ];
    }
}

app(Metadata::class)->set(
    'script:schemaorg-breadcrumb',
    json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
    ['type' => 'application/ld+json']
);

?>

<?php if ($items) : ?>

<?= $el() ?>

    <?= $list() ?>

    <?php foreach ($items as $key => $item) : ?>

    <?php if (!empty($item->link)) : ?>
        <?= $li() ?>
            <a href="<?= $item->link ?>"><?= $span([], $item->name) ?></a>
    <?php elseif ($key !== array_key_last($items)) : ?>
        <li class="uk-disabled">
            <span><?= $item->name ?></span>
    <?php else : ?>
        <?= $li() ?>
            <?= $span([], ['aria-current' => 'page'], $item->name) ?>
    <?php endif ?>
        <?= $li->end() ?>
    <?php endforeach ?>

    <?= $list->end() ?>

<?= $el->end() ?>

<?php endif ?>

Anon7 - 2022
AnonSec Team