2025-12-11 01:12:45 +03:00
|
|
|
|
---
|
2026-03-08 19:09:23 +03:00
|
|
|
|
const { category, contentType } = Astro.props;
|
2025-12-11 01:12:45 +03:00
|
|
|
|
|
2026-03-08 19:09:23 +03:00
|
|
|
|
import Stores from './LazyStores.astro';
|
2026-03-15 10:41:55 +03:00
|
|
|
|
import MainMenu from '@components/Menus/MainMenu.astro';
|
2025-12-11 01:12:45 +03:00
|
|
|
|
|
2026-03-08 19:09:23 +03:00
|
|
|
|
const MENU_ID = 3340; // 103246 (бургер 1). 103247 (бургер 2 )
|
|
|
|
|
|
let menuItems = [];
|
2025-12-11 01:12:45 +03:00
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
<header class="header" itemscope itemtype="https://schema.org/WPHeader">
|
2026-03-16 16:48:34 +03:00
|
|
|
|
|
2026-03-08 19:09:23 +03:00
|
|
|
|
<div class="top-bar">
|
|
|
|
|
|
<a href="/"><img alt="Профиль" width="249" height="55" src="https://cdn.profile.ru/wp-content/themes/profile/assets/img/profile-logo-delovoy.svg"></a>
|
|
|
|
|
|
|
2026-02-27 00:12:33 +03:00
|
|
|
|
{category && (
|
2026-03-08 19:09:23 +03:00
|
|
|
|
<div class="header__subtitle">
|
|
|
|
|
|
{contentType === 'news' && (
|
|
|
|
|
|
<span class="header__news-badge"><a href="/news">Новости</a></span>
|
|
|
|
|
|
)}
|
|
|
|
|
|
<a href={`/${category.slug}`}>{category.name}</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
2025-12-11 01:12:45 +03:00
|
|
|
|
<Stores />
|
2026-03-08 19:09:23 +03:00
|
|
|
|
</div>
|
2025-12-17 23:05:49 +03:00
|
|
|
|
|
2026-03-08 19:09:23 +03:00
|
|
|
|
<MainMenu menuId={MENU_ID} />
|
2026-03-16 16:48:34 +03:00
|
|
|
|
|
2025-12-11 01:12:45 +03:00
|
|
|
|
</header>
|
|
|
|
|
|
|