Files
vinoteca/local/templates/jinove_wine/components/bitrix/news/vinoteca-offers/news.php
T

32 lines
1.5 KiB
PHP

<?php
use Bitrix\Main\Localization\Loc;
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die();
}
$APPLICATION->SetTitle(Loc::getMessage("VINO_OFFERS_H1"));
$APPLICATION->SetPageProperty("title", Loc::getMessage("VINO_OFFERS_PAGE_TITLE"));
$APPLICATION->SetPageProperty("description", Loc::getMessage("VINO_OFFERS_DESCRIPTION"));
$automatic = \Jinove\Vinoteca\Offers::automatic();
?>
<section class="vino-razdel-hero">
<div class="vino-wrap">
<?php \Jinove\Vinoteca\Breadcrumbs::show(array(array(Loc::getMessage("VINO_OFFERS_H1")))); ?>
<h1 class="vino-razdel-hero__title"><?= Loc::getMessage("VINO_OFFERS_H1") ?></h1>
<p class="vino-razdel-hero__lead"><?= Loc::getMessage("VINO_OFFERS_LEAD") ?></p>
</div>
</section>
<section class="vino-offers-page">
<div class="vino-wrap">
<?php $APPLICATION->IncludeComponent("bitrix:news.list", "vinoteca-offers", \Jinove\Vinoteca\Offers::listParams(), $component); ?>
</div>
</section>
<section class="vino-razdel-sec vino-offers-wines" id="vino-offers-wines">
<div class="vino-wrap">
<h2 class="vino-offers-wines__title"><?= Loc::getMessage("VINO_OFFERS_WINES") ?></h2>
<?php $APPLICATION->IncludeComponent("bitrix:catalog.section", "vinoteca", \Jinove\Vinoteca\Offers::wineParams($automatic["products"], $automatic["sections"], \Jinove\Vinoteca\Offers::folder(), \Jinove\Vinoteca\Offers::folder()), $component); ?>
</div>
</section>
<?php \Jinove\Vinoteca\Offers::canonical(\Jinove\Vinoteca\Offers::folder()); ?>