42 lines
2.5 KiB
PHP
42 lines
2.5 KiB
PHP
<?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");
|