getMenu()->getItems('menutype', 'mainmenu') ?? []; // Фильтруем только опубликованные пункты меню $menu = array_filter($menu, fn($item) => $item->published); // Формируем элементы меню для JSON-LD $items = array_map(function($item, $index) { return [ "@type" => "SiteNavigationElement", "position" => $index + 1, "name" => $item->title, "url" => $item->flink // автоматически подтягивает ссылку Joomla ]; }, array_values($menu), array_keys($menu)); // Собираем итоговый JSON-LD $json = [ "@context" => "https://schema.org", "@type" => "ItemList", "itemListElement" => $items ]; // Выводим скрипт JSON-LD echo ''; ?>

All Recipes

Slow Grilled Chinese Char Siu Chicken

Slow Grilled Chinese Char Siu Chicken

These mini loaves are packed with greens, which means you'll get one serving out of the way before the day gets going.

Quinoa and Asparagus

Quinoa and Asparagus

These mini loaves are packed with greens, which means you'll get one serving out of the way before the day gets going.

Thai Edamame Salad

Thai Edamame Salad

These mini loaves are packed with greens, which means you'll get one serving out of the way before the day gets going.

Image