getRequest()->getQuery("PAGEN_1"); $page = 1; if ($requested !== null) { if ($requested === "1") { LocalRedirect(VINO_HOST . \Jinove\Vinoteca\News::folder(), true, "301 Moved Permanently"); } if (!is_string($requested) || !ctype_digit($requested) || (int)$requested < 2 || (int)$requested > \Jinove\Vinoteca\News::pageCount()) { \Bitrix\Iblock\Component\Tools::process404("", true, true, true); return; } $page = (int)$requested; } $meta = \Jinove\Vinoteca\News::pageMeta($page); $APPLICATION->SetTitle(Loc::getMessage("VINO_NEWS_HEADING")); $APPLICATION->SetPageProperty("title", $meta["title"]); $APPLICATION->SetPageProperty("description", $meta["description"]); if ($page > 1) { $APPLICATION->SetPageProperty("vino_canonical", $meta["canonical"]); } ?>

IncludeComponent("bitrix:news.list", \Jinove\Vinoteca\News::LIST_TEMPLATE, \Jinove\Vinoteca\News::listParams(), $component); ?>