Vinoteca: wine shop on 1C-Bitrix (module, template, components, pages)

This commit is contained in:
jimagie committed 2026-10-22 19:35:23 +05:00
commit 0590195880
593 files changed
+27942

No files matched your search

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Bitrix\Main\Localization\Loc;
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die();
}
Loc::loadMessages(__FILE__);
class JinovePersonalNavComponent extends CBitrixComponent
{
private const SECTIONS = ["profile" => "", "orders" => "orders/", "reviews" => "reviews/"];
public function executeComponent(): array
{
$items = [];
foreach (self::SECTIONS as $code => $path) {
$items[] = [
"CODE" => $code,
"URL" => SITE_DIR . "personal/" . $path,
"ACTIVE" => ($this->arParams["ACTIVE"] ?? "") === $code,
];
}
$this->arResult = ["ITEMS" => $items];
$this->includeComponentTemplate();
return $this->arResult;
}
}