diff --git a/local/components/evolution/about.contacts.list/templates/.default/template.php b/local/components/evolution/about.contacts.list/templates/.default/template.php index 257da59..a73838d 100644 --- a/local/components/evolution/about.contacts.list/templates/.default/template.php +++ b/local/components/evolution/about.contacts.list/templates/.default/template.php @@ -12,71 +12,6 @@ /** @var CBitrixComponent $component */ $this->setFrameMode(true); ?> - -$main_office_markup_content = [ - "@context" => "https://schema.org", - "@type" => "FinancialService", - "image" => [ - "https://avatars.mds.yandex.net/get-altay/2389272/2a000001749629d635959647ec27834f22be/XXXL", - ], - "name" => "Эволюция Автолизинга", - "address" => [ - "@type" => "PostalAddress", - "streetAddress" => "Котляковская ул., 8", - "addressLocality" => "Москва", - "addressRegion" => "Москва", - "postalCode" => "115201", - "addressCountry" => "Россия", - ], - //"review" => [ - // "@type" => "Review", - // "reviewRating" => [ - // "@type" => "Rating", - // "ratingValue" => "4", - // "bestRating" => "5" - // ], - // "author" => [ - // "@type" => "Person", - // "name" => "Lillian Ruiz", - // ] - //], - "geo" => [ - "@type" => "GeoCoordinates", - "latitude" => 55.643978, - "longitude" => 37.640452, - ], - "url" => "https://".SITE_SERVER_NAME."/about/contacts/", - "telephone" => "+74951466767", - "openingHoursSpecification" => [ - [ - "@type" => "OpeningHoursSpecification", - "dayOfWeek" => [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - ], - "opens" => "09:00", - "closes" => "18:00", - ], - [ - "@type" => "OpeningHoursSpecification", - "dayOfWeek" => "Saturday", - "opens" => "00:00", - "closes" => "00:00", - ], - [ - "@type" => "OpeningHoursSpecification", - "dayOfWeek" => "Sunday", - "opens" => "00:00", - "closes" => "00:00", - ], - ], -]; - -$APPLICATION->AddHeadString('', false, "AFTER_JS"); -?> $placemarks = []; foreach($arResult['AGENCIES'] AS $agency) diff --git a/local/components/evolution/catalog/component.php b/local/components/evolution/catalog/component.php index d2996ba..c54d963 100644 --- a/local/components/evolution/catalog/component.php +++ b/local/components/evolution/catalog/component.php @@ -334,8 +334,6 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) if(!empty($arParams['BRAND'])) { - $arResult['SHOW_PROMO_BRANDS'] = true; - if($arResult['BRAND_DISABLED']) { $arResult['SHOW_PROMO_BRANDS'] = false; diff --git a/local/components/evolution/catalog/templates/.default/template.php b/local/components/evolution/catalog/templates/.default/template.php index a46bbf0..507162f 100644 --- a/local/components/evolution/catalog/templates/.default/template.php +++ b/local/components/evolution/catalog/templates/.default/template.php @@ -112,7 +112,7 @@ if(!empty($arResult['TITLES']['MODEL'])) else: ?> if($arResult['MODEL_DISABLED']): ?>
Модель = $arResult['TITLES']['BRAND']; ?> = $arResult['TITLES']['MODEL']; ?> на данный момент отсутствует в каталоге, но это не означает, что мы не сможем её для Вас найти. Оставьте заявку или позвоните по номеру горячей линии 8 800 333 75 75 и мы найдём Вам автомобиль!
-Посмотрите другие модели Bentley:
+Посмотрите другие модели = $arResult['TITLES']['BRAND']; ?>:
endif; ?> endif; ?> diff --git a/local/components/evolution/mainoffice.markup/.description.php b/local/components/evolution/mainoffice.markup/.description.php new file mode 100644 index 0000000..a20bdf3 --- /dev/null +++ b/local/components/evolution/mainoffice.markup/.description.php @@ -0,0 +1,8 @@ + +if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); + +$arTemplateDescription = array( + "NAME" => GetMessage("DEFAULT_NAME"), + "DESCRIPTION" => GetMessage("DEFAULT_DESC"), +); +?> \ No newline at end of file diff --git a/local/components/evolution/mainoffice.markup/component.php b/local/components/evolution/mainoffice.markup/component.php new file mode 100644 index 0000000..81e8d0e --- /dev/null +++ b/local/components/evolution/mainoffice.markup/component.php @@ -0,0 +1,13 @@ + +if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); +/** @var CBitrixComponent $this */ +/** @var array $arParams */ +/** @var array $arResult */ +/** @var string $componentPath */ +/** @var string $componentName */ +/** @var string $componentTemplate */ +/** @global CDatabase $DB */ +/** @global CUser $USER */ +/** @global CMain $APPLICATION */ + +$this->IncludeComponentTemplate(); \ No newline at end of file diff --git a/local/components/evolution/mainoffice.markup/ru/.description.php b/local/components/evolution/mainoffice.markup/ru/.description.php new file mode 100644 index 0000000..00b6583 --- /dev/null +++ b/local/components/evolution/mainoffice.markup/ru/.description.php @@ -0,0 +1,4 @@ + +$MESS ['DEFAULT_NAME'] = "Микроразметка основного офиса"; +$MESS ['DEFAULT_DESC'] = "Микроразметка основного офиса"; +?> \ No newline at end of file diff --git a/local/components/evolution/mainoffice.markup/templates/.default/template.php b/local/components/evolution/mainoffice.markup/templates/.default/template.php new file mode 100644 index 0000000..aaee20c --- /dev/null +++ b/local/components/evolution/mainoffice.markup/templates/.default/template.php @@ -0,0 +1,79 @@ +setFrameMode(true); +?> + +$main_office_markup_content = [ + "@context" => "https://schema.org", + "@type" => "FinancialService", + "image" => [ + "https://avatars.mds.yandex.net/get-altay/2389272/2a000001749629d635959647ec27834f22be/XXXL", + ], + "name" => "Эволюция Автолизинга", + "address" => [ + "@type" => "PostalAddress", + "streetAddress" => "Котляковская ул., 8", + "addressLocality" => "Москва", + "addressRegion" => "Москва", + "postalCode" => "115201", + "addressCountry" => "Россия", + ], + //"review" => [ + // "@type" => "Review", + // "reviewRating" => [ + // "@type" => "Rating", + // "ratingValue" => "4", + // "bestRating" => "5" + // ], + // "author" => [ + // "@type" => "Person", + // "name" => "Lillian Ruiz", + // ] + //], + "geo" => [ + "@type" => "GeoCoordinates", + "latitude" => 55.643978, + "longitude" => 37.640452, + ], + "url" => "https://".SITE_SERVER_NAME."/about/contacts/", + "telephone" => "+74951466767", + "openingHoursSpecification" => [ + [ + "@type" => "OpeningHoursSpecification", + "dayOfWeek" => [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + ], + "opens" => "09:00", + "closes" => "18:00", + ], + [ + "@type" => "OpeningHoursSpecification", + "dayOfWeek" => "Saturday", + "opens" => "00:00", + "closes" => "00:00", + ], + [ + "@type" => "OpeningHoursSpecification", + "dayOfWeek" => "Sunday", + "opens" => "00:00", + "closes" => "00:00", + ], + ], +]; + +$APPLICATION->AddHeadString('', false, "AFTER_JS"); +?> \ No newline at end of file diff --git a/local/templates/404/footer.php b/local/templates/404/footer.php index a35ee7c..9342f9b 100644 --- a/local/templates/404/footer.php +++ b/local/templates/404/footer.php @@ -72,5 +72,12 @@ + + $APPLICATION->IncludeComponent( + "evolution:mainoffice.markup", + "", + Array() + ); + ?>