Vinoteca: wine shop on 1C-Bitrix (module, template, components, pages)

This commit is contained in:
jimagie committed 2026-10-22 19:35:23 +05:00
commit 0590195880
593 files changed
+27942

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
<?php
use Bitrix\Main\Localization\Loc;
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
Loc::loadMessages(__FILE__);
\Bitrix\Main\Page\Asset::getInstance()->addCss(SITE_TEMPLATE_PATH . "/legal-styles.css");
$email = \Jinove\Vinoteca\Config::contacts()["email"];
$mail = '<a class="vino-legal__link" href="mailto:' . htmlspecialcharsbx($email) . '">' . htmlspecialcharsbx($email) . '</a>';
$host = htmlspecialcharsbx((string)parse_url(\Jinove\Vinoteca\Config::host(), PHP_URL_HOST));
$version = \Jinove\Vinoteca\Consent::VERSION;
$date = \Jinove\Vinoteca\DateFormat::long(\Jinove\Vinoteca\Consent::timestamp($version), LANGUAGE_ID);
$APPLICATION->SetTitle(Loc::getMessage("VINO_CONSENT_H1"));
$APPLICATION->SetPageProperty("title", Loc::getMessage("VINO_CONSENT_TITLE"));
$APPLICATION->SetPageProperty("description", Loc::getMessage("VINO_CONSENT_DESCRIPTION"));
$APPLICATION->SetPageProperty("og_image", VINO_HOST . SITE_TEMPLATE_PATH . "/assets/media/og-home.jpg");
?>
<section class="vino-razdel-hero">
<div class="vinoteca-wrap">
<?php \Jinove\Vinoteca\Breadcrumbs::show(array(array(Loc::getMessage("VINO_CONSENT_H1")))); ?>
<h1 class="vino-razdel-hero__title"><?= Loc::getMessage("VINO_CONSENT_H1") ?></h1>
<p class="vino-page-lead"><?= Loc::getMessage("VINO_CONSENT_LEAD", array("#DATE#" => $date)) ?></p>
</div>
</section>
<section class="vino-legal">
<div class="vinoteca-wrap">
<div class="vino-legal__body">
<h2 class="vino-legal__title"><?= Loc::getMessage("VINO_CONSENT_S1_H") ?></h2>
<p class="vino-legal__text"><?= Loc::getMessage("VINO_CONSENT_S1_P", array("#HOST#" => $host, "#LINK#" => '<a class="vino-legal__link" href="' . SITE_DIR . 'privacy/">' . Loc::getMessage("VINO_CONSENT_S1_LINK") . '</a>')) ?></p>
<?php foreach (array(2, 3, 4, 5) as $n): ?>
<h2 class="vino-legal__title"><?= Loc::getMessage("VINO_CONSENT_S" . $n . "_H") ?></h2>
<p class="vino-legal__text"><?= Loc::getMessage("VINO_CONSENT_S" . $n . "_P", array("#EMAIL#" => $mail)) ?></p>
<?php endforeach; ?>
</div>
</div>
</section>
<script type="application/ld+json"><?= json_encode(\Jinove\Vinoteca\PageSchema::legalPage(SITE_DIR . "consent/", Loc::getMessage("VINO_CONSENT_H1"), Loc::getMessage("VINO_CONSENT_DESCRIPTION"), date("Y-m-d", \Jinove\Vinoteca\Consent::timestamp($version))), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP) ?></script>
<?php
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");