Vinoteca: wine shop on 1C-Bitrix (module, template, components, pages)
This commit is contained in:
commit
0590195880
593 files changed
+27942
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
|
||||
if (empty($arResult)) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<ul class="vino-footer__list">
|
||||
<?php foreach ($arResult as $item): ?>
|
||||
<li class="vino-footer__item"><a class="vino-footer__link" href="<?= htmlspecialcharsbx($item["LINK"]) ?>"><?= htmlspecialcharsbx($item["TEXT"]) ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$MESS["VINO_MEGA_CATALOG"] = "Catalogue";
|
||||
$MESS["VINO_MEGA_MAIN_MENU"] = "Main menu";
|
||||
$MESS["VINO_MEGA_FAVORITES"] = "Favourites";
|
||||
$MESS["VINO_MEGA_COMPARE"] = "Compare";
|
||||
$MESS["VINO_MEGA_ACCOUNT"] = "My account";
|
||||
$MESS["VINO_MEGA_ASK"] = "Ask the sommelier";
|
||||
$MESS["VINO_MEGA_LOGIN"] = "Sign in";
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$MESS["VINO_MEGA_CATALOG"] = "Katalog";
|
||||
$MESS["VINO_MEGA_MAIN_MENU"] = "Menu główne";
|
||||
$MESS["VINO_MEGA_FAVORITES"] = "Ulubione";
|
||||
$MESS["VINO_MEGA_COMPARE"] = "Porównanie";
|
||||
$MESS["VINO_MEGA_ACCOUNT"] = "Moje konto";
|
||||
$MESS["VINO_MEGA_ASK"] = "Zapytaj sommeliera";
|
||||
$MESS["VINO_MEGA_LOGIN"] = "Zaloguj się";
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$MESS["VINO_MEGA_CATALOG"] = "Каталог";
|
||||
$MESS["VINO_MEGA_MAIN_MENU"] = "Основное меню";
|
||||
$MESS["VINO_MEGA_FAVORITES"] = "Избранное";
|
||||
$MESS["VINO_MEGA_COMPARE"] = "Сравнение";
|
||||
$MESS["VINO_MEGA_ACCOUNT"] = "Личный кабинет";
|
||||
$MESS["VINO_MEGA_LOGIN"] = "Войти";
|
||||
$MESS["VINO_MEGA_ASK"] = "Спросить сомелье";
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
use Bitrix\Main\Localization\Loc;
|
||||
|
||||
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
|
||||
if (empty($arResult)) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<div class="vino-header__main">
|
||||
<a class="vino-catalog-btn" href="<?= SITE_DIR ?>catalog/" aria-haspopup="true" aria-expanded="false" aria-controls="vino-mega" data-mega-toggle><?= Loc::getMessage("VINO_MEGA_CATALOG") ?></a>
|
||||
<nav class="vino-nav" id="vino-menu" aria-label="<?= htmlspecialcharsbx(Loc::getMessage("VINO_MEGA_MAIN_MENU")) ?>" data-menu>
|
||||
<?php foreach ($arResult as $item): ?>
|
||||
<?php $item["SELECTED"] = $item["SELECTED"] && !defined("ERROR_404"); ?>
|
||||
<?php if ($item["LINK"] === SITE_DIR . "catalog/"): ?>
|
||||
<a class="vino-nav__link vino-nav__link--catalog<?= $item["SELECTED"] ? " vino-nav__link--active" : "" ?>"<?= $item["SELECTED"] ? ' aria-current="page"' : "" ?> href="<?= htmlspecialcharsbx($item["LINK"]) ?>"><?= htmlspecialcharsbx($item["TEXT"]) ?></a>
|
||||
<?php else: ?>
|
||||
<a class="vino-nav__link<?= $item["SELECTED"] ? " vino-nav__link--active" : "" ?>"<?= $item["SELECTED"] ? ' aria-current="page"' : "" ?> href="<?= htmlspecialcharsbx($item["LINK"]) ?>"><?= htmlspecialcharsbx($item["TEXT"]) ?></a>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<a class="vino-nav__link vino-nav__link--extra" href="<?= SITE_DIR ?>personal/favorites/"><?= Loc::getMessage("VINO_MEGA_FAVORITES") ?></a>
|
||||
<a class="vino-nav__link vino-nav__link--extra" href="<?= SITE_DIR ?>compare/"><?= Loc::getMessage("VINO_MEGA_COMPARE") ?></a>
|
||||
<a class="vino-nav__link vino-nav__link--extra" href="<?= htmlspecialcharsbx(\Jinove\Vinoteca\Account::url()) ?>"><?= htmlspecialcharsbx(\Jinove\Vinoteca\Account::label("VINO_MEGA_ACCOUNT", "VINO_MEGA_LOGIN")) ?></a>
|
||||
<button type="button" class="vino-nav__ask" data-sommelier-open><?= Loc::getMessage("VINO_MEGA_ASK") ?></button>
|
||||
</nav>
|
||||
</div>
|
||||
Reference in new issue
Block a user