feat: add top header with logo, phone and demo CTA
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* БИТ.WMS Child Theme — Top header bar template
|
||||
*
|
||||
* Renders the thin 60px header to the right of the sidebar.
|
||||
* Contains: logo + tagline on left, phone + CTA button + search on right.
|
||||
*
|
||||
* Hooked into generate_before_header at priority 20
|
||||
* (after sidebar-nav which uses default priority 10).
|
||||
*
|
||||
* @package bitwms-child
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$theme_uri = get_stylesheet_directory_uri();
|
||||
?>
|
||||
|
||||
<header class="top-header">
|
||||
<div class="top-header__left">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="top-header__logo" aria-label="<?php esc_attr_e( 'На главную', 'bitwms-child' ); ?>">
|
||||
<img
|
||||
src="<?php echo esc_url( $theme_uri . '/img/logo.svg' ); ?>"
|
||||
alt="<?php esc_attr_e( 'первыйБит', 'bitwms-child' ); ?>"
|
||||
height="30"
|
||||
width="auto"
|
||||
/>
|
||||
</a>
|
||||
<span class="top-header__tagline"><?php esc_html_e( 'Экспертный портал по складской логистике', 'bitwms-child' ); ?></span>
|
||||
</div>
|
||||
|
||||
<div class="top-header__right">
|
||||
<a href="tel:+73432000000" class="top-header__phone">+7 (343) 200-00-00</a>
|
||||
|
||||
<a href="#demo-form" class="btn btn-primary btn-sm">
|
||||
<?php esc_html_e( 'Заказать демо', 'bitwms-child' ); ?>
|
||||
</a>
|
||||
|
||||
<button class="top-header__search" aria-label="<?php esc_attr_e( 'Поиск', 'bitwms-child' ); ?>" type="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
|
||||
<circle cx="11" cy="11" r="8"></circle>
|
||||
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user