Initial commit

This commit is contained in:
Ivan Petrov
2025-12-24 19:19:01 +03:00
commit a7097c6178
19493 changed files with 94306 additions and 0 deletions

View File

@@ -0,0 +1,101 @@
<?php $page = $b->ls_get_key("page"); ?>
<?php $b->script_add(array("src" => "https://api-maps.yandex.ru/2.1/?apikey=68f9a0ea-6fba-4a6e-9f0a-5a716b0b30d5&lang=ru_RU")); ?>
<?php $this->ls_set_key("breadcrumbs", array(array($page->get_item_name(), $b->router_get_canonical_uri()))); ?>
<?php $this->template_load("head.php"); ?>
<?php $this->template_load("header.php"); ?>
<section class="section first-other contacts">
<div class="container">
<h1 class="little">Контакты</h1>
<ul class="contacts__info contacts-list">
<li class="thank-list__item">
<h2 class="checkout__heading thank-list__heading">Адрес</h2>
<p><?= $b->setting_get_value("contact_company_name"); ?></p>
</li>
<li class="thank-list__item">
<h2 class="checkout__heading thank-list__heading">Телефон</h2>
<a href="tel:<?= $b->setting_get_value("contact_phone"); ?>"><?= $b->setting_get_value("contact_phone"); ?></a>
</li>
<li class="thank-list__item">
<h2 class="checkout__heading thank-list__heading">Email</h2>
<a href="mailto:<?= $b->setting_get_value("contact_email"); ?>"><?= $b->setting_get_value("contact_email"); ?></a>
</li>
<li class="thank-list__item">
<h2 class="checkout__heading thank-list__heading">Время работы</h2>
<p><?= $b->setting_get_value("contact_company_time"); ?></p>
</li>
</ul>
</div>
</section>
<section id="map" class="map">
<script src="https://api-maps.yandex.ru/2.1/?apikey=68f9a0ea-6fba-4a6e-9f0a-5a716b0b30d5&lang=ru_RU"></script>
<script type="text/javascript">
ymaps.ready(init);
function init() {
var myMap = new ymaps.Map(
"map",
{
center: [55.616453, 37.624588],
zoom: 15,
controls: ["zoomControl"],
},
{
searchControlProvider: "yandex#search",
}
);
myGeoObject = new ymaps.GeoObject(
{
// Описание геометрии.
geometry: {
type: "Point",
coordinates: [55.616453, 37.624588],
},
// Свойства.
properties: {
balloonContentHeader:
'<figure class="map__image"><img src="<?= $b->pa_get_assets_dir() ?>main/images/logo.svg"></figure>',
balloonContentBody: `
<div class="baloon__box">
<h3 class="baloon__heading">Время работы:</h3>
<p class="baloon__text">ПН-ПТ с 9:00 до 18:00</p>
</div>`,
},
},
{
// Опции.
preset: "islands#redGlyphIcon",
}
);
myMap.geoObjects.add(myGeoObject);
myMap.behaviors.disable("scrollZoom");
}
</script>
</section>
<?php $this->template_load("main/questions.php"); ?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "<?= $b->setting_get_value("schema_organisation_name"); ?>",
"url": "<?= $b->router_get_root_uri() ?>",
"logo": "<?= $b->pa_get_assets_dir() ?>main/images/logo.svg",
"description": "<?= $b->setting_get_value("schema_organisation_desc"); ?>",
"email": "<?= $b->setting_get_value("schema_organisation_email"); ?>",
"address": {
"@type": "PostalAddress",
"streetAddress": "<?= $b->setting_get_value("schema_organisation_street"); ?>",
"addressLocality": "<?= $b->setting_get_value("schema_organisation_city"); ?>",
"postalCode": "<?= $b->setting_get_value("schema_organisation_index"); ?>",
"addressCountry": "Россия"
},
"contactPoint": {
"@type": "ContactPoint",
"telephone": "<?= $b->setting_get_value("schema_organisation_phone"); ?>",
"contactType": "Общий контакт"
}
}
</script>
<?php $this->template_load("footer.php"); ?>