term_id);
$current_lang = function_exists('pll_current_language') ? pll_current_language() : null;
if ($menu_items) {
$clean_title = function($title) {
return trim(preg_replace('/\s*\([^)]*\)/', '', $title));
};
$current_region = 'RU';
$navigation_schema = array(
"@context" => "https://schema.org",
"@type" => "SiteNavigationElement",
"name" => "Главная навигация сайта",
"description" => "Основное меню навигации по сайту",
"inLanguage" => $current_lang ?: 'ru',
"areaServed" => $current_region,
"url" => array()
);
?>