2026-10-08 GLOBAL

This commit is contained in:
Dekart Deploy Bot 2026-10-08 13:50:08 +00:00
parent 9aedf79e91
commit 3eb6b14fd1
4 changed files with 15 additions and 23 deletions

View File

@ -12417,16 +12417,13 @@ main > .pksh-section:first-child {
.header .menu-wrapper button:focus-visible,
.header .btn-close-header-menu:focus-visible { outline: 3px solid #6FB6E8; outline-offset: 2px; }
/* Личный кабинет в главном меню (десктоп) */
.header-menu .menu-item-lk { display: flex; align-items: center; }
.header-menu .menu-item-lk a { display: flex; align-items: center; gap: 6px; color: #fff; white-space: nowrap; transition: .3s; }
.header-menu .menu-item-lk a:hover { color: #BBBBBB; }
.header-menu .menu-item-lk .menu-lk__icon { flex: 0 0 auto; }
@media (max-width: 860px) { .header-menu .menu-item-lk { display: none; } }
/* Личный кабинет над кнопкой записи (десктоп) */
.add-menu__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.header-lk { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; line-height: 1; text-decoration: none; opacity: .85; transition: .3s; }
.header-lk:hover { opacity: 1; }
.header-lk svg { flex: 0 0 auto; }
/* Узкий десктоп: главное меню в одну строку */
@media (min-width: 861px) and (max-width: 1366px) {
.header-menu { gap: 10px; font-size: 13px; }
.header-menu .menu-item-lk a { gap: 4px; }
.header-menu .menu-lk__icon { width: 16px; height: 16px; }
}

File diff suppressed because one or more lines are too long

View File

@ -3679,17 +3679,6 @@ function dekart_assoc_ids($val): array
return array_values(array_filter($out));
}
// ─── Пункт «Личный кабинет» в главное меню шапки ───
add_filter('wp_nav_menu_items', function ($items, $args) {
if (empty($args->theme_location) || $args->theme_location !== 'top') {
return $items;
}
$url = carbon_get_theme_option('site_lk_url') ?: 'https://lk.dekart-school.ru/';
$ico = '<svg class="menu-lk__icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>';
$items .= '<li class="menu-item menu-item-lk"><a href="' . esc_url($url) . '" target="_blank" rel="noopener noreferrer">' . $ico . '<span>' . esc_html__('Личный кабинет', 'dekart') . '</span></a></li>';
return $items;
}, 10, 2);
// Лендинг «Семейные классы»: снять конкурирующий head-скрипт Custom CSS & JS (open-bitrix-form)
add_action('wp', function () {
if (! is_page_template('page-semejnye-klassy.php')) {

View File

@ -149,9 +149,15 @@ if (is_front_page()) {
href="tel:<?php echo preg_replace('/[^0-9+]/', '', carbon_get_theme_option('site_phone')); ?>">
<span><?php echo esc_html(carbon_get_theme_option('site_phone')); ?></span>
</a>
<button class="btn-free-lesson-header btn-primary desktop btn-write">
<?php esc_html_e('Записаться на бесплатное', 'dekart'); ?>
</button>
<div class="add-menu__cta">
<a class="header-lk" href="<?php echo esc_url(carbon_get_theme_option('site_lk_url') ?: 'https://lk.dekart-school.ru/'); ?>" target="_blank" rel="noopener noreferrer" aria-label="<?php esc_attr_e('Личный кабинет', 'dekart'); ?>">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
<span><?php esc_html_e('Кабинет', 'dekart'); ?></span>
</a>
<button class="btn-free-lesson-header btn-primary desktop btn-write">
<?php esc_html_e('Записаться на бесплатное', 'dekart'); ?>
</button>
</div>
</div>
</div>