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

+27
View File
@@ -0,0 +1,27 @@
<?php
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
\Jinove\Vinoteca\Catalog\Comparison::preparePage();
?>
<section class="vino-razdel-hero">
<div class="vino-wrap">
<?php \Jinove\Vinoteca\Breadcrumbs::show(array(array($APPLICATION->GetTitle()))); ?>
<h1 class="vino-razdel-hero__title"><?php $APPLICATION->ShowTitle(false); ?></h1>
</div>
</section>
<?php if (\Jinove\Vinoteca\Catalog\Comparison::isEmpty()): ?>
<section class="vino-empty-page">
<div class="vino-wrap">
<div class="vino-empty-state">
<span class="vino-empty-state__icon" aria-hidden="true"><svg class="vino-empty-state__svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><path d="M6 20V11M12 20V4M18 20v-6"></path></svg></span>
<div>
<h2><?= \Bitrix\Main\Localization\Loc::getMessage("VINO_COMPARE_EMPTY_TITLE") ?></h2>
<p><?= \Bitrix\Main\Localization\Loc::getMessage("VINO_COMPARE_EMPTY_HINT", array("#N#" => \Jinove\Vinoteca\Catalog\Comparison::MAX)) ?></p>
<div class="vino-empty-state__actions"><a class="vino-btn" href="<?= SITE_DIR ?>catalog/"><?= \Bitrix\Main\Localization\Loc::getMessage("VINO_COMPARE_CATALOG") ?></a></div>
</div>
</div>
</div>
</section>
<?php else:
$APPLICATION->IncludeComponent("bitrix:catalog.compare.result", "vinoteca", \Jinove\Vinoteca\Catalog\Comparison::params(), false);
endif;
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");