diff --git a/.access.php b/.access.php
new file mode 100644
index 0000000..0659fdc
--- /dev/null
+++ b/.access.php
@@ -0,0 +1,8 @@
+
+$PERM["personal"]["7"]="W";
+$PERM["catalog"]["7"]="W";
+$PERM["news"]["7"]="W";
+$PERM["about"]["7"]="W";
+$PERM["index.php"]["7"]="W";
+$PERM["/"]["*"]="R";
+?>
\ No newline at end of file
diff --git a/.bottom.menu.php b/.bottom.menu.php
new file mode 100644
index 0000000..9a4ad56
--- /dev/null
+++ b/.bottom.menu.php
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/.section.php b/.section.php
new file mode 100644
index 0000000..0aacaaf
--- /dev/null
+++ b/.section.php
@@ -0,0 +1,5 @@
+ 'Vinoteca: a curated wine shop. Wines from the best regions of the world, fair prices and a sommelier to help you choose.',
+ 'robots' => 'index, follow',
+];
diff --git a/.top.menu.php b/.top.menu.php
new file mode 100644
index 0000000..f0fa711
--- /dev/null
+++ b/.top.menu.php
@@ -0,0 +1,8 @@
+SetTitle(Loc::getMessage("VINO_404_TITLE"));
+$APPLICATION->SetPageProperty("title", Loc::getMessage("VINO_404_TITLE"));
+$APPLICATION->SetPageProperty("description", Loc::getMessage("VINO_404_TITLE"));
+$APPLICATION->SetPageProperty("robots", "noindex, follow");
+$APPLICATION->SetPageProperty("vino_alternates", "N");
+Asset::getInstance()->addJs(SITE_TEMPLATE_PATH . "/assets/js/vino-slider.js");
+?>
+
+
+
+
= Loc::getMessage("VINO_404_SECTIONS") ?>
+ IncludeComponent("bitrix:catalog.section.list", "vinoteca-tiles", \Jinove\Vinoteca\Catalog\Listing::sectionTilesParams() + array("VINO_SCHEMA" => "N"), false); ?>
+
+
+
+
+
+
+
= Loc::getMessage("VINO_404_LIKE") ?>
+
+
+
+
+
+
+ IncludeComponent("bitrix:catalog.top", "vinoteca-row", \Jinove\Vinoteca\Catalog\Listing::prepareBestsellers(), false); ?>
+
+
+
+
+
+
+
diff --git a/about/index.php b/about/index.php
new file mode 100644
index 0000000..5c7b105
--- /dev/null
+++ b/about/index.php
@@ -0,0 +1,4 @@
+IncludeComponent("jinove:about", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/articles/index.php b/articles/index.php
new file mode 100644
index 0000000..4dd0523
--- /dev/null
+++ b/articles/index.php
@@ -0,0 +1,32 @@
+IncludeComponent("bitrix:news", "vinoteca-news", array(
+ "IBLOCK_TYPE" => "news",
+ "IBLOCK_ID" => \Jinove\Vinoteca\News::iblockId(),
+ "CHECK_DATES" => "Y",
+ "SEF_MODE" => "Y",
+ "SEF_FOLDER" => \Jinove\Vinoteca\News::folder(),
+ "SEF_URL_TEMPLATES" => array(
+ "news" => "",
+ "section" => "",
+ "detail" => "#ELEMENT_CODE#/",
+ ),
+ "DETAIL_FIELD_CODE" => array("PREVIEW_PICTURE", "PREVIEW_TEXT", "DETAIL_TEXT", "DETAIL_PICTURE", "ACTIVE_FROM", "TIMESTAMP_X"),
+ "DETAIL_PROPERTY_CODE" => array("NAME_EN", "NAME_PL", "PREVIEW_TEXT_EN", "PREVIEW_TEXT_PL", "DETAIL_TEXT_EN", "DETAIL_TEXT_PL"),
+ "USE_SEARCH" => "N",
+ "USE_RSS" => "N",
+ "USE_RATING" => "N",
+ "USE_CATEGORIES" => "N",
+ "USE_FILTER" => "N",
+ "USE_REVIEW" => "N",
+ "USE_PERMISSIONS" => "N",
+ "AJAX_MODE" => "N",
+ "CACHE_TYPE" => "A",
+ "CACHE_TIME" => "36000000",
+ "CACHE_GROUPS" => "N",
+ "SET_STATUS_404" => "Y",
+ "SHOW_404" => "Y",
+ "FILE_404" => "",
+ "MESSAGE_404" => "",
+), false);
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/brands/index.php b/brands/index.php
new file mode 100644
index 0000000..ff16ff3
--- /dev/null
+++ b/brands/index.php
@@ -0,0 +1,54 @@
+addCss(SITE_TEMPLATE_PATH . "/catalog-styles.css");
+$APPLICATION->SetPageProperty("og_image", VINO_HOST . SITE_TEMPLATE_PATH . "/assets/media/og-catalog.jpg");
+$APPLICATION->IncludeComponent("bitrix:news", "vinoteca-brands", array(
+ "IBLOCK_TYPE" => "catalog",
+ "IBLOCK_ID" => VINO_BRANDS_IBLOCK,
+ "NEWS_COUNT" => "100",
+ "SORT_BY1" => "SORT",
+ "SORT_ORDER1" => "ASC",
+ "SORT_BY2" => "NAME",
+ "SORT_ORDER2" => "ASC",
+ "CHECK_DATES" => "Y",
+ "SEF_MODE" => "Y",
+ "SEF_FOLDER" => SITE_DIR . "brands/",
+ "SEF_URL_TEMPLATES" => array(
+ "news" => "",
+ "section" => "",
+ "detail" => "#ELEMENT_CODE#/",
+ ),
+ "LIST_FIELD_CODE" => array("PREVIEW_PICTURE"),
+ "LIST_PROPERTY_CODE" => array("COUNTRY", "REGION"),
+ "DETAIL_FIELD_CODE" => array("PREVIEW_TEXT", "PREVIEW_PICTURE", "DETAIL_PICTURE"),
+ "DETAIL_PROPERTY_CODE" => array("COUNTRY", "REGION", "REGION_FULL", "FOUNDED", "GRAPE"),
+ "USE_SEARCH" => "N",
+ "USE_RSS" => "N",
+ "USE_RATING" => "N",
+ "USE_CATEGORIES" => "N",
+ "USE_FILTER" => "N",
+ "USE_REVIEW" => "N",
+ "USE_PERMISSIONS" => "N",
+ "AJAX_MODE" => "N",
+ "CACHE_TYPE" => "A",
+ "CACHE_TIME" => "36000000",
+ "CACHE_FILTER" => "N",
+ "CACHE_GROUPS" => "Y",
+ "SET_TITLE" => "Y",
+ "SET_LAST_MODIFIED" => "N",
+ "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
+ "ADD_SECTIONS_CHAIN" => "N",
+ "ADD_ELEMENT_CHAIN" => "Y",
+ "DISPLAY_TOP_PAGER" => "N",
+ "DISPLAY_BOTTOM_PAGER" => "N",
+ "SET_STATUS_404" => "Y",
+ "SHOW_404" => "Y",
+ "FILE_404" => "",
+ "MESSAGE_404" => "",
+), false);
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/catalog/.section.php b/catalog/.section.php
new file mode 100644
index 0000000..5133e22
--- /dev/null
+++ b/catalog/.section.php
@@ -0,0 +1,2 @@
+
+?>
\ No newline at end of file
diff --git a/catalog/index.php b/catalog/index.php
new file mode 100644
index 0000000..85ed34d
--- /dev/null
+++ b/catalog/index.php
@@ -0,0 +1,8 @@
+addCss(SITE_TEMPLATE_PATH . "/catalog-styles.css");
+\Bitrix\Main\Localization\Loc::loadMessages(__FILE__);
+$APPLICATION->SetTitle(\Bitrix\Main\Localization\Loc::getMessage("VINO_CATALOG_PAGE_TITLE"));
+$APPLICATION->SetPageProperty("description", \Bitrix\Main\Localization\Loc::getMessage("VINO_CATALOG_PAGE_DESCRIPTION"));
+$APPLICATION->IncludeComponent("bitrix:catalog", "vinoteca", \Jinove\Vinoteca\Catalog\Listing::catalogParams(), false);
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/catalog/lang/en/index.php b/catalog/lang/en/index.php
new file mode 100644
index 0000000..9da0cf7
--- /dev/null
+++ b/catalog/lang/en/index.php
@@ -0,0 +1,3 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/compare/index.php b/compare/index.php
new file mode 100644
index 0000000..124a38b
--- /dev/null
+++ b/compare/index.php
@@ -0,0 +1,27 @@
+
+
+
+ GetTitle()))); ?>
+
ShowTitle(false); ?>
+
+
+
+
+
+
+
+
+
= \Bitrix\Main\Localization\Loc::getMessage("VINO_COMPARE_EMPTY_TITLE") ?>
+
= \Bitrix\Main\Localization\Loc::getMessage("VINO_COMPARE_EMPTY_HINT", array("#N#" => \Jinove\Vinoteca\Catalog\Comparison::MAX)) ?>
+
+
+
+
+
+IncludeComponent("bitrix:catalog.compare.result", "vinoteca", \Jinove\Vinoteca\Catalog\Comparison::params(), false);
+endif;
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/consent/index.php b/consent/index.php
new file mode 100644
index 0000000..74a53f3
--- /dev/null
+++ b/consent/index.php
@@ -0,0 +1,41 @@
+addCss(SITE_TEMPLATE_PATH . "/legal-styles.css");
+$email = \Jinove\Vinoteca\Config::contacts()["email"];
+$mail = '' . htmlspecialcharsbx($email) . ' ';
+$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");
+?>
+
+
+
+
= Loc::getMessage("VINO_CONSENT_H1") ?>
+
= Loc::getMessage("VINO_CONSENT_LEAD", array("#DATE#" => $date)) ?>
+
+
+
+
+
+
+
= Loc::getMessage("VINO_CONSENT_S1_H") ?>
+
= Loc::getMessage("VINO_CONSENT_S1_P", array("#HOST#" => $host, "#LINK#" => '' . Loc::getMessage("VINO_CONSENT_S1_LINK") . ' ')) ?>
+
+
+
= Loc::getMessage("VINO_CONSENT_S" . $n . "_H") ?>
+
= Loc::getMessage("VINO_CONSENT_S" . $n . "_P", array("#EMAIL#" => $mail)) ?>
+
+
+
+
+
+
+IncludeComponent("jinove:auth.forgot", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/include/about.php b/include/about.php
new file mode 100644
index 0000000..f48c4e4
--- /dev/null
+++ b/include/about.php
@@ -0,0 +1,14 @@
+
+
Почему Мы?
+
+ Выполнили свыше 150 000 заказов
+ Более 10 лет успешной работы
+ Более 50 000 покупателей
+ Контракты с домами мод
+ Оригинальные модели
+ Круглосуточная поддержка
+ Индивидуальный подход!
+ Всегда низкие цены!
+ Самые свежие игры!
+
+
\ No newline at end of file
diff --git a/include/about_title.php b/include/about_title.php
new file mode 100644
index 0000000..d981e85
--- /dev/null
+++ b/include/about_title.php
@@ -0,0 +1 @@
+О магазине
\ No newline at end of file
diff --git a/include/catalog_title.php b/include/catalog_title.php
new file mode 100644
index 0000000..d7935d0
--- /dev/null
+++ b/include/catalog_title.php
@@ -0,0 +1 @@
+Каталог товаров
\ No newline at end of file
diff --git a/include/company_about.php b/include/company_about.php
new file mode 100644
index 0000000..7030676
--- /dev/null
+++ b/include/company_about.php
@@ -0,0 +1 @@
+Добро пожаловать в интернет-магазин одежды! Мы предлагаем широкий ассортимент качественной одежды по адекватным ценам. Покупая одежду в нашем Интернет-магазине, вы можете быть уверены в её качестве - ведь мы работаем только с крупными и проверенными производителями.
\ No newline at end of file
diff --git a/include/company_logo.php b/include/company_logo.php
new file mode 100644
index 0000000..94cc9be
--- /dev/null
+++ b/include/company_logo.php
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/include/company_logo_mobile.php b/include/company_logo_mobile.php
new file mode 100644
index 0000000..bc1938d
--- /dev/null
+++ b/include/company_logo_mobile.php
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/include/company_name.php b/include/company_name.php
new file mode 100644
index 0000000..882a6ed
--- /dev/null
+++ b/include/company_name.php
@@ -0,0 +1 @@
+Vinoteca
\ No newline at end of file
diff --git a/include/copyright.php b/include/copyright.php
new file mode 100644
index 0000000..c93402c
--- /dev/null
+++ b/include/copyright.php
@@ -0,0 +1 @@
+© Интернет-магазин одежды, 2020
\ No newline at end of file
diff --git a/include/facebook_plugin.php b/include/facebook_plugin.php
new file mode 100644
index 0000000..1cacd51
--- /dev/null
+++ b/include/facebook_plugin.php
@@ -0,0 +1,9 @@
+
+
+$APPLICATION->IncludeComponent("bitrix:eshop.facebook.plugin", "",
+ array(
+ "ESHOP_FACEBOOK_LINK"=>"http://www.facebook.com/1CBitrix"
+ ),
+ false
+);
+?>
\ No newline at end of file
diff --git a/include/home-story.php b/include/home-story.php
new file mode 100644
index 0000000..ad251c1
--- /dev/null
+++ b/include/home-story.php
@@ -0,0 +1,3 @@
+
+A wine cellar, not just a shop
+Our collection spans the Old World and the New: Italian and French classics, sun-soaked wines from Spain and Portugal, California, Argentina, New Zealand and Hungarian Tokaji. Our sommelier will suggest what to pour with steak or fish, which wine makes a good gift and which one is worth cellaring for a few years. You can ask your question right here on the site.
diff --git a/include/info.php b/include/info.php
new file mode 100644
index 0000000..145dc03
--- /dev/null
+++ b/include/info.php
@@ -0,0 +1,51 @@
+
+
Полезная информация
+
+
+
+
+
+
О магазине
+
+
Узнайте больше о нашем магазине: кто мы, наши клиенты и почему они выбрали именно нас. Наши контакты и реквизиты.
Подробнее
+
+
+
+
+
+
+
Доставка
+
+
Доставим ваш заказ в любой регион России, в удобное время и день. Работаем для вас, без выходных.
Подробнее
+
+
+
+
+
+
+
Мы гарантируем
+
+
Мы гордимся безупречной репутацией нашего магазина. Если товар не устроит вас, вы всегда сможете вернуть деньги.
Подробнее
+
+
+
+
+
+
+
Как купить
+
+
Ваш первый заказ в интернет-магазине? Мы с радостью подскажем как сделать покупки в интернете простыми и удобными.
Подробнее
+
+
+
+
+
+
+
Всегда на связи
+
+
Связаться с нами можно любым удобным для вас способом: e-mail, телефон, социальные сети и мессенджеры.
Подробнее
+
+
+
+
+
diff --git a/include/personal.php b/include/personal.php
new file mode 100644
index 0000000..5266b7f
--- /dev/null
+++ b/include/personal.php
@@ -0,0 +1 @@
+Персональный раздел
\ No newline at end of file
diff --git a/include/reg_info.php b/include/reg_info.php
new file mode 100644
index 0000000..db2f747
--- /dev/null
+++ b/include/reg_info.php
@@ -0,0 +1,7 @@
+Использование информации предоставленной Клиентом и получаемой Продавцом.
+Продавец использует предоставленные Клиентом данные в течение всего срока регистрации Клиента на Сайте в целях:
+
+ для регистрации/авторизации Клиента на Сайте;
+ для обработки заказов Клиента и выполнения своих обязательств перед Клиентом;
+ для осуществления деятельности по продвижению товаров и услуг;
+
\ No newline at end of file
diff --git a/include/schedule.php b/include/schedule.php
new file mode 100644
index 0000000..8f80596
--- /dev/null
+++ b/include/schedule.php
@@ -0,0 +1 @@
+Пн-Вс 10-19
\ No newline at end of file
diff --git a/include/sender.php b/include/sender.php
new file mode 100644
index 0000000..2660dba
--- /dev/null
+++ b/include/sender.php
@@ -0,0 +1,7 @@
+
+
+
РАССЫЛКА
+ $APPLICATION->IncludeComponent("bitrix:sender.subscribe", "", array(
+ "SET_TITLE" => "N"
+ ));?>
+
\ No newline at end of file
diff --git a/include/socnet_footer.php b/include/socnet_footer.php
new file mode 100644
index 0000000..7c6c253
--- /dev/null
+++ b/include/socnet_footer.php
@@ -0,0 +1,17 @@
+
+
+$APPLICATION->IncludeComponent(
+ "bitrix:eshop.socnet.links",
+ "big_squares",
+ array(
+ "FACEBOOK" => "https://www.facebook.com/1CBitrix",
+ "VKONTAKTE" => "https://vk.com/bitrix_1c",
+ "TWITTER" => "https://twitter.com/1c_bitrix",
+ "GOOGLE" => "https://plus.google.com/111119180387208976312/",
+ "INSTAGRAM" => "https://instagram.com/1CBitrix/"
+ ),
+ false,
+ array(
+ "HIDE_ICONS" => "N"
+ )
+);?>
\ No newline at end of file
diff --git a/include/socnet_sidebar.php b/include/socnet_sidebar.php
new file mode 100644
index 0000000..7ef9e7e
--- /dev/null
+++ b/include/socnet_sidebar.php
@@ -0,0 +1,18 @@
+
+
+$APPLICATION->IncludeComponent(
+ "bitrix:eshop.socnet.links",
+ "bootstrap_v4",
+ array(
+ "COMPONENT_TEMPLATE" => "bootstrap_v4",
+ "FACEBOOK" => "https://www.facebook.com/1CBitrix",
+ "VKONTAKTE" => "https://vk.com/bitrix_1c",
+ "TWITTER" => "https://twitter.com/1c_bitrix",
+ "GOOGLE" => "https://plus.google.com/111119180387208976312/",
+ "INSTAGRAM" => "https://instagram.com/1CBitrix/"
+ ),
+ false,
+ array(
+ "HIDE_ICONS" => "N"
+ )
+);?>
\ No newline at end of file
diff --git a/include/telephone.php b/include/telephone.php
new file mode 100644
index 0000000..f9ff748
--- /dev/null
+++ b/include/telephone.php
@@ -0,0 +1 @@
+8 (495) 212 85 06
\ No newline at end of file
diff --git a/include/twitter.php b/include/twitter.php
new file mode 100644
index 0000000..65ca8b8
--- /dev/null
+++ b/include/twitter.php
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/include/viewed_product.php b/include/viewed_product.php
new file mode 100644
index 0000000..dee76aa
--- /dev/null
+++ b/include/viewed_product.php
@@ -0,0 +1,38 @@
+
+$APPLICATION->IncludeComponent("bitrix:catalog.viewed.products", "bootstrap_v4", array(
+ "HIDE_NOT_AVAILABLE" => "N",
+ "PAGE_ELEMENT_COUNT" => "5",
+ "SHOW_DISCOUNT_PERCENT" => "Y",
+ "PRODUCT_SUBSCRIPTION" => "N",
+ "SHOW_NAME" => "Y",
+ "SHOW_IMAGE" => "Y",
+ "MESS_BTN_BUY" => "Купить",
+ "MESS_BTN_DETAIL" => "Подробнее",
+ "MESS_BTN_SUBSCRIBE" => "Подписаться",
+ "LINE_ELEMENT_COUNT" => "5",
+ "TEMPLATE_THEME" => "site",
+ "SHOW_OLD_PRICE" => "N",
+ "PRICE_CODE" => array(
+ 0 => "BASE",
+ ),
+ "SHOW_PRICE_COUNT" => "1",
+ "PRICE_VAT_INCLUDE" => "Y",
+ "CONVERT_CURRENCY" => "N",
+ "BASKET_URL" => "/personal/cart/",
+ "ACTION_VARIABLE" => "action_cvp",
+ "PRODUCT_ID_VARIABLE" => "id",
+ "ADD_PROPERTIES_TO_BASKET" => "Y",
+ "PRODUCT_PROPS_VARIABLE" => "prop",
+ "PARTIAL_PRODUCT_PROPERTIES" => "N",
+ "USE_PRODUCT_QUANTITY" => "N",
+ "SHOW_PRODUCTS_2" => "Y",
+ "OFFER_TREE_PROPS_3" => array(
+ 0 => "COLOR_REF",
+ 1 => "SIZES_SHOES",
+ 2 => "SIZES_CLOTHES",
+ ),
+ "PRODUCT_QUANTITY_VARIABLE" => "quantity",
+ "CACHE_GROUPS" => "Y"
+ ),
+ false
+);?>
\ No newline at end of file
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..1eefc23
--- /dev/null
+++ b/index.php
@@ -0,0 +1,184 @@
+SetPageProperty("description", Loc::getMessage("VINO_HOME_DESCRIPTION"));
+$APPLICATION->SetPageProperty("og_image", VINO_HOST . SITE_TEMPLATE_PATH . "/assets/media/og-home.jpg");
+$APPLICATION->SetTitle(Loc::getMessage("VINO_HOME_TITLE"));
+$tpl = SITE_TEMPLATE_PATH;
+Asset::getInstance()->addJs(SITE_TEMPLATE_PATH . "/assets/js/vino-slider.js");
+$wineCount = ServiceLocator::getInstance()->get("jinove.vinoteca.wineStats")->getActiveCount();
+?>
+= Loc::getMessage("VINO_HOME_H1") ?>
+IncludeComponent("bitrix:news.list", "vhero", array(
+ "IBLOCK_TYPE" => "content",
+ "IBLOCK_ID" => VINO_BANNERS_IBLOCK,
+ "NEWS_COUNT" => "4",
+ "SORT_BY1" => "SORT",
+ "SORT_ORDER1" => "ASC",
+ "SORT_BY2" => "ID",
+ "SORT_ORDER2" => "ASC",
+ "FIELD_CODE" => array("PREVIEW_PICTURE", "PREVIEW_TEXT"),
+ "PROPERTY_CODE" => array("KICKER", "LINK", "LINK_TEXT"),
+ "CHECK_DATES" => "Y",
+ "SET_TITLE" => "N",
+ "SET_BROWSER_TITLE" => "N",
+ "SET_META_KEYWORDS" => "N",
+ "SET_META_DESCRIPTION" => "N",
+ "SET_LAST_MODIFIED" => "N",
+ "SET_STATUS_404" => "N",
+ "SHOW_404" => "N",
+ "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
+ "ADD_SECTIONS_CHAIN" => "N",
+ "DISPLAY_TOP_PAGER" => "N",
+ "DISPLAY_BOTTOM_PAGER" => "N",
+ "CACHE_TYPE" => "A",
+ "CACHE_TIME" => "36000000",
+ "CACHE_GROUPS" => "N",
+), false); ?>
+
+IncludeComponent("bitrix:news.list", "vinoteca-brands", array(
+ "IBLOCK_TYPE" => "catalog",
+ "IBLOCK_ID" => VINO_BRANDS_IBLOCK,
+ "NEWS_COUNT" => "8",
+ "DETAIL_URL" => SITE_DIR . "brands/#ELEMENT_CODE#/",
+ "SORT_BY1" => "SORT",
+ "SORT_ORDER1" => "ASC",
+ "SORT_BY2" => "NAME",
+ "SORT_ORDER2" => "ASC",
+ "FIELD_CODE" => array("PREVIEW_PICTURE"),
+ "PROPERTY_CODE" => array("COUNTRY", "REGION"),
+ "CHECK_DATES" => "Y",
+ "SET_TITLE" => "N",
+ "SET_BROWSER_TITLE" => "N",
+ "SET_META_KEYWORDS" => "N",
+ "SET_META_DESCRIPTION" => "N",
+ "SET_LAST_MODIFIED" => "N",
+ "SET_STATUS_404" => "N",
+ "SHOW_404" => "N",
+ "INCLUDE_IBLOCK_INTO_CHAIN" => "N",
+ "ADD_SECTIONS_CHAIN" => "N",
+ "DISPLAY_TOP_PAGER" => "N",
+ "DISPLAY_BOTTOM_PAGER" => "N",
+ "CACHE_TYPE" => "A",
+ "CACHE_TIME" => "36000000",
+ "CACHE_GROUPS" => "N",
+), false); ?>
+
+
+
+
+
+
= Loc::getMessage("VINO_HOME_BEST_KICKER") ?>
+
= Loc::getMessage("VINO_HOME_BEST_TITLE") ?>
+
+
+
+
+
+
+ IncludeComponent("bitrix:catalog.top", "vinoteca-row", \Jinove\Vinoteca\Catalog\Listing::prepareBestsellers(), false); ?>
+
+
+
+
+
+
+
+
+
+
+
+
= Loc::getMessage("VINO_HOME_NEW_KICKER") ?>
+
= Loc::getMessage("VINO_HOME_NEW_TITLE") ?>
+
+
+
+
+
+ IncludeComponent("bitrix:catalog.top", "vinoteca-row", array(
+ "IBLOCK_TYPE" => "catalog",
+ "IBLOCK_ID" => VINO_CATALOG_IBLOCK,
+ "ELEMENT_COUNT" => "8",
+ "ELEMENT_SORT_FIELD" => "PROPERTY_VINTAGE",
+ "ELEMENT_SORT_ORDER" => "desc",
+ "ELEMENT_SORT_FIELD2" => "ID",
+ "ELEMENT_SORT_ORDER2" => "desc",
+ "PROPERTY_CODE" => array("WINE_COLOR", "SUGAR", "VOLUME", "REGION", "COUNTRY"),
+ "PRICE_CODE" => array("BASE"),
+ "PRICE_VAT_INCLUDE" => "Y",
+ "USE_PRICE_COUNT" => "N",
+ "SHOW_PRICE_COUNT" => "1",
+ "CONVERT_CURRENCY" => "N",
+ "HIDE_NOT_AVAILABLE" => "N",
+ "DETAIL_URL" => SITE_DIR . "catalog/#SECTION_CODE#/#ELEMENT_CODE#/",
+ "SECTION_URL" => SITE_DIR . "catalog/#SECTION_CODE#/",
+ "CACHE_TYPE" => "A",
+ "CACHE_TIME" => "3600",
+ "CACHE_GROUPS" => "N",
+ "CACHE_FILTER" => "N",
+ ), false); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ ">
+
+
+
+ IncludeComponent("bitrix:main.include", "", array("AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR . "include/home-story.php"), false); ?>
+
= Loc::getMessage("VINO_HOME_ABOUT") ?>
+
+
+
+
+
+
+
+
+
+ IncludeComponent("bitrix:news.list", "vinoteca-news", \Jinove\Vinoteca\News::homeParams(), false); ?>
+
+
+
+
+IncludeComponent("jinove:auth.login", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/offers/index.php b/offers/index.php
new file mode 100644
index 0000000..956a6ec
--- /dev/null
+++ b/offers/index.php
@@ -0,0 +1,33 @@
+addCss(SITE_TEMPLATE_PATH . "/catalog-styles.css");
+$APPLICATION->IncludeComponent("bitrix:news", "vinoteca-offers", array(
+ "IBLOCK_TYPE" => "content",
+ "IBLOCK_ID" => \Jinove\Vinoteca\Offers::iblockId(),
+ "CHECK_DATES" => "Y",
+ "SEF_MODE" => "Y",
+ "SEF_FOLDER" => \Jinove\Vinoteca\Offers::folder(),
+ "SEF_URL_TEMPLATES" => array(
+ "news" => "",
+ "section" => "",
+ "detail" => "#ELEMENT_CODE#/",
+ ),
+ "DETAIL_FIELD_CODE" => array("PREVIEW_PICTURE", "PREVIEW_TEXT", "DETAIL_TEXT", "DETAIL_PICTURE", "ACTIVE_FROM", "DATE_ACTIVE_TO"),
+ "DETAIL_PROPERTY_CODE" => array("DISCOUNT_ID", "NAME_EN", "NAME_PL", "PREVIEW_TEXT_EN", "PREVIEW_TEXT_PL", "DETAIL_TEXT_EN", "DETAIL_TEXT_PL"),
+ "USE_SEARCH" => "N",
+ "USE_RSS" => "N",
+ "USE_RATING" => "N",
+ "USE_CATEGORIES" => "N",
+ "USE_FILTER" => "N",
+ "USE_REVIEW" => "N",
+ "USE_PERMISSIONS" => "N",
+ "AJAX_MODE" => "N",
+ "CACHE_TYPE" => "A",
+ "CACHE_TIME" => "3600",
+ "CACHE_GROUPS" => "N",
+ "SET_STATUS_404" => "Y",
+ "SHOW_404" => "Y",
+ "FILE_404" => "",
+ "MESSAGE_404" => "",
+), false);
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/personal/cart/index.php b/personal/cart/index.php
new file mode 100644
index 0000000..9fdda20
--- /dev/null
+++ b/personal/cart/index.php
@@ -0,0 +1,4 @@
+IncludeComponent("jinove:cart", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/personal/favorites/index.php b/personal/favorites/index.php
new file mode 100644
index 0000000..04700ae
--- /dev/null
+++ b/personal/favorites/index.php
@@ -0,0 +1,32 @@
+
+
+
+ GetTitle()))); ?>
+
ShowTitle(false); ?>
+
+
+
+
+
+
+
+
= \Bitrix\Main\Localization\Loc::getMessage("VINO_FAVORITES_EMPTY_TITLE") ?>
+
= \Bitrix\Main\Localization\Loc::getMessage("VINO_FAVORITES_EMPTY_HINT") ?>
+
+
+
+
+
+
+">
+
+
+ IncludeComponent("bitrix:catalog.section", "vinoteca", \Jinove\Vinoteca\Catalog\Favorites::params($favoriteIds), false); ?>
+
+
+
+
diff --git a/personal/index.php b/personal/index.php
new file mode 100644
index 0000000..04c4020
--- /dev/null
+++ b/personal/index.php
@@ -0,0 +1,4 @@
+IncludeComponent("jinove:personal.profile", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/personal/order/done/index.php b/personal/order/done/index.php
new file mode 100644
index 0000000..1b96a96
--- /dev/null
+++ b/personal/order/done/index.php
@@ -0,0 +1,4 @@
+IncludeComponent("jinove:order.done", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/personal/order/index.php b/personal/order/index.php
new file mode 100644
index 0000000..4890add
--- /dev/null
+++ b/personal/order/index.php
@@ -0,0 +1,4 @@
+IncludeComponent("jinove:order", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/personal/orders/index.php b/personal/orders/index.php
new file mode 100644
index 0000000..b55c3d2
--- /dev/null
+++ b/personal/orders/index.php
@@ -0,0 +1,4 @@
+IncludeComponent("jinove:personal.orders", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/personal/reviews/index.php b/personal/reviews/index.php
new file mode 100644
index 0000000..7a55739
--- /dev/null
+++ b/personal/reviews/index.php
@@ -0,0 +1,4 @@
+IncludeComponent("jinove:personal.reviews", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/pl/.bottom.menu.php b/pl/.bottom.menu.php
new file mode 100644
index 0000000..3a3bc03
--- /dev/null
+++ b/pl/.bottom.menu.php
@@ -0,0 +1,9 @@
+ 'Vinoteca: autorska winoteka. Wina z najlepszych regionów świata, uczciwe ceny i pomoc sommeliera w wyborze.',
+ 'robots' => 'index, follow',
+];
diff --git a/pl/.top.menu.php b/pl/.top.menu.php
new file mode 100644
index 0000000..c31fc44
--- /dev/null
+++ b/pl/.top.menu.php
@@ -0,0 +1,8 @@
+
+Winoteka, a nie zwykły sklep
+Nasza kolekcja obejmuje Stary i Nowy Świat: klasykę Włoch i Francji, słoneczne wina Hiszpanii i Portugalii, Kalifornię, Argentynę, Nową Zelandię i węgierski Tokaj. Nasz sommelier podpowie, co podać do steku lub ryby, jakie wino wybrać na prezent, a które warto odłożyć na kilka lat. Pytanie można zadać bezpośrednio na stronie.
diff --git a/pl/index.php b/pl/index.php
new file mode 100644
index 0000000..3800f42
--- /dev/null
+++ b/pl/index.php
@@ -0,0 +1,2 @@
+addCss(SITE_TEMPLATE_PATH . "/legal-styles.css");
+$email = \Jinove\Vinoteca\Config::contacts()["email"];
+$mail = '' . htmlspecialcharsbx($email) . ' ';
+$host = htmlspecialcharsbx((string)parse_url(\Jinove\Vinoteca\Config::host(), PHP_URL_HOST));
+$version = \Jinove\Vinoteca\Consent::POLICY_VERSION;
+$date = \Jinove\Vinoteca\DateFormat::long(\Jinove\Vinoteca\Consent::timestamp($version), LANGUAGE_ID);
+$APPLICATION->SetTitle(Loc::getMessage("VINO_PRIVACY_H1"));
+$APPLICATION->SetPageProperty("title", Loc::getMessage("VINO_PRIVACY_TITLE"));
+$APPLICATION->SetPageProperty("description", Loc::getMessage("VINO_PRIVACY_DESCRIPTION"));
+$APPLICATION->SetPageProperty("og_image", VINO_HOST . SITE_TEMPLATE_PATH . "/assets/media/og-home.jpg");
+?>
+
+
+
+
= Loc::getMessage("VINO_PRIVACY_H1") ?>
+
= Loc::getMessage("VINO_PRIVACY_LEAD", array("#DATE#" => $date)) ?>
+
+
+
+
+
+
+
= Loc::getMessage("VINO_PRIVACY_S1_H") ?>
+
= Loc::getMessage("VINO_PRIVACY_S1_P", array("#EMAIL#" => $mail)) ?>
+
+
= Loc::getMessage("VINO_PRIVACY_S2_H") ?>
+
= Loc::getMessage("VINO_PRIVACY_S2_P") ?>
+
+
= Loc::getMessage("VINO_PRIVACY_S3_H") ?>
+
+
+
= Loc::getMessage("VINO_PRIVACY_ROW" . $n . "_K") ?> = Loc::getMessage("VINO_PRIVACY_ROW" . $n . "_V") ?>
+
+
+
= Loc::getMessage("VINO_PRIVACY_S3_P", array("#LINK#" => '' . Loc::getMessage("VINO_PRIVACY_S3_LINK") . ' ')) ?>
+
+
= Loc::getMessage("VINO_PRIVACY_S4_H") ?>
+
= Loc::getMessage("VINO_PRIVACY_S4_P1") ?>
+
+
+
= Loc::getMessage("VINO_PRIVACY_COOKIE" . $n . "_K") ?> = Loc::getMessage("VINO_PRIVACY_COOKIE" . $n . "_V") ?>
+
+
+
= Loc::getMessage("VINO_PRIVACY_S4_P2") ?>
+
+
+
= Loc::getMessage("VINO_PRIVACY_S" . $n . "_H") ?>
+
= Loc::getMessage("VINO_PRIVACY_S" . $n . "_P", array("#EMAIL#" => $mail, "#DATE#" => $date)) ?>
+
+
+
+
+
+
+IncludeComponent("jinove:auth.register", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/reset-password/index.php b/reset-password/index.php
new file mode 100644
index 0000000..23b020f
--- /dev/null
+++ b/reset-password/index.php
@@ -0,0 +1,4 @@
+IncludeComponent("jinove:auth.reset", ".default", array());
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/ru/.bottom.menu.php b/ru/.bottom.menu.php
new file mode 100644
index 0000000..5253182
--- /dev/null
+++ b/ru/.bottom.menu.php
@@ -0,0 +1,9 @@
+ 'Vinoteca: авторская винотека. Вина из лучших регионов мира, честные цены и помощь сомелье в выборе.',
+ 'robots' => 'index, follow',
+];
diff --git a/ru/.top.menu.php b/ru/.top.menu.php
new file mode 100644
index 0000000..bda87f8
--- /dev/null
+++ b/ru/.top.menu.php
@@ -0,0 +1,8 @@
+
+Винотека, а не просто магазин
+Мы собираем коллекцию от Старого Света до Нового: классика Италии и Франции, солнечные вина Испании и Португалии, Калифорния, Аргентина, Новая Зеландия и венгерский Токай. Наш сомелье подскажет, что подать к стейку или рыбе, какое вино выбрать в подарок и какое стоит отложить на несколько лет. Вопрос можно задать прямо на сайте.
diff --git a/ru/index.php b/ru/index.php
new file mode 100644
index 0000000..3800f42
--- /dev/null
+++ b/ru/index.php
@@ -0,0 +1,2 @@
+IncludeComponent("bitrix:search.page", ".default", \Jinove\Vinoteca\Search::pageParams(), false);
+require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");
diff --git a/urlrewrite.php b/urlrewrite.php
new file mode 100644
index 0000000..e0dda34
--- /dev/null
+++ b/urlrewrite.php
@@ -0,0 +1,123 @@
+
+ array (
+ 'CONDITION' => '#^\\/?\\/mobileapp/jn\\/(.*)\\/.*#',
+ 'RULE' => 'componentName=$1',
+ 'ID' => NULL,
+ 'PATH' => '/bitrix/services/mobileapp/jn.php',
+ 'SORT' => 100,
+ ),
+ 2 =>
+ array (
+ 'CONDITION' => '#^/bitrix/services/ymarket/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/bitrix/services/ymarket/index.php',
+ 'SORT' => 100,
+ ),
+ 9 =>
+ array (
+ 'CONDITION' => '#^/ru/catalog/#',
+ 'RULE' => '',
+ 'ID' => 'bitrix:catalog',
+ 'PATH' => '/ru/catalog/index.php',
+ 'SORT' => 100,
+ ),
+ 13 =>
+ array (
+ 'CONDITION' => '#^/pl/catalog/#',
+ 'RULE' => '',
+ 'ID' => 'bitrix:catalog',
+ 'PATH' => '/pl/catalog/index.php',
+ 'SORT' => 100,
+ ),
+ 11 =>
+ array (
+ 'CONDITION' => '#^/ru/brands/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/ru/brands/index.php',
+ 'SORT' => 100,
+ ),
+ 15 =>
+ array (
+ 'CONDITION' => '#^/pl/brands/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/pl/brands/index.php',
+ 'SORT' => 100,
+ ),
+ 4 =>
+ array (
+ 'CONDITION' => '#^/catalog/#',
+ 'RULE' => '',
+ 'ID' => 'bitrix:catalog',
+ 'PATH' => '/catalog/index.php',
+ 'SORT' => 100,
+ ),
+ 8 =>
+ array (
+ 'CONDITION' => '#^/brands/#',
+ 'RULE' => NULL,
+ 'ID' => '',
+ 'PATH' => '/brands/index.php',
+ 'SORT' => 100,
+ ),
+ 1 =>
+ array (
+ 'CONDITION' => '#^/rest/#',
+ 'RULE' => '',
+ 'ID' => NULL,
+ 'PATH' => '/bitrix/services/rest/index.php',
+ 'SORT' => 100,
+ ),
+ 40 =>
+ array (
+ 'CONDITION' => '#^/ru/offers/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/ru/offers/index.php',
+ 'SORT' => 100,
+ ),
+ 41 =>
+ array (
+ 'CONDITION' => '#^/pl/offers/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/pl/offers/index.php',
+ 'SORT' => 100,
+ ),
+ 42 =>
+ array (
+ 'CONDITION' => '#^/offers/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/offers/index.php',
+ 'SORT' => 100,
+ ),
+ 30 =>
+ array (
+ 'CONDITION' => '#^/ru/articles/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/ru/articles/index.php',
+ 'SORT' => 100,
+ ),
+ 32 =>
+ array (
+ 'CONDITION' => '#^/pl/articles/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/pl/articles/index.php',
+ 'SORT' => 100,
+ ),
+ 31 =>
+ array (
+ 'CONDITION' => '#^/articles/#',
+ 'RULE' => '',
+ 'ID' => '',
+ 'PATH' => '/articles/index.php',
+ 'SORT' => 100,
+ ),
+);
diff --git a/vinoteca/index.php b/vinoteca/index.php
new file mode 100644
index 0000000..bc04d1e
--- /dev/null
+++ b/vinoteca/index.php
@@ -0,0 +1,55 @@
+
+
+
+ GetTitle()))); ?>
+
ShowTitle(false); ?>
+
= \Bitrix\Main\Localization\Loc::getMessage("VINO_SHOWCASE_TEXT") ?>
+
+
* = \Bitrix\Main\Localization\Loc::getMessage("VINO_SHOWCASE_NOTE") ?>
+
+
+
+
+
= \Bitrix\Main\Localization\Loc::getMessage("VINO_SHOWCASE_LIST") ?>
+
+
+
+
+
+
+
= \Bitrix\Main\Localization\Loc::getMessage("VINO_SHOWCASE_SHOTS") ?>
+
+
+
+
+