Vinoteca: wine shop on 1C-Bitrix (module, template, components, pages)
This commit is contained in:
commit
52795535ae
586 files changed
+27619
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
|
||||
\Jinove\Vinoteca\Catalog\Favorites::preparePage();
|
||||
$favoriteIds = \Jinove\Vinoteca\Catalog\Favorites::ids();
|
||||
?>
|
||||
<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 (!$favoriteIds): ?>
|
||||
<section class="vino-empty-page" data-favorites-empty>
|
||||
<div class="vino-wrap">
|
||||
<div class="vino-empty-state vino-empty-state--plain">
|
||||
<div>
|
||||
<h2><?= \Bitrix\Main\Localization\Loc::getMessage("VINO_FAVORITES_EMPTY_TITLE") ?></h2>
|
||||
<p><?= \Bitrix\Main\Localization\Loc::getMessage("VINO_FAVORITES_EMPTY_HINT") ?></p>
|
||||
<div class="vino-empty-state__actions"><a class="vino-btn" href="<?= SITE_DIR ?>catalog/"><?= \Bitrix\Main\Localization\Loc::getMessage("VINO_FAVORITES_CATALOG") ?></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php else: ?>
|
||||
<section class="vino-razdel-sec" data-favorites data-favorites-removed="<?= htmlspecialcharsbx((string)\Bitrix\Main\Localization\Loc::getMessage("VINO_FAVORITES_REMOVED")) ?>">
|
||||
<p class="vino-sr-only" role="status" data-favorites-status></p>
|
||||
<div class="vino-wrap">
|
||||
<?php $APPLICATION->IncludeComponent("bitrix:catalog.section", "vinoteca", \Jinove\Vinoteca\Catalog\Favorites::params($favoriteIds), false); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
<?php require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php"); ?>
|
||||
Reference in new issue
Block a user