FEATURE Changing the menu template parts and behaviour
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d1610f4281
commit
c4e8479b26
51
template-parts/header/primary-menu.php
Normal file
51
template-parts/header/primary-menu.php
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
<?php
|
||||||
|
?>
|
||||||
|
<div class="primary-menu-container lg:flex lg:justify-between lg:items-center">
|
||||||
|
<nav id="primary-menu-nav" class="flex justify-between items-center">
|
||||||
|
<div class="website_logo">
|
||||||
|
<?php if (has_custom_logo()) { ?>
|
||||||
|
<?php the_custom_logo(); ?>
|
||||||
|
<?php } else { ?>
|
||||||
|
<a href=" <?php echo get_bloginfo('url'); ?>" class="font-extrabold text-lg uppercase">
|
||||||
|
<?php echo get_bloginfo('name'); ?>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<p class="text-sm font-light text-gray-600">
|
||||||
|
<?php echo get_bloginfo('description'); ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="primary-menu">
|
||||||
|
<!-- <button id="close-menu-btn" aria-label="<?php echo esc_html_e("Fermer le menu", 'deligraph-theme') ?>">
|
||||||
|
<?php echo get_template_part('resources/svg/close-menu-icon.svg'); ?>
|
||||||
|
</button> -->
|
||||||
|
<?php
|
||||||
|
wp_nav_menu(
|
||||||
|
array(
|
||||||
|
'container' => 'false',
|
||||||
|
// 'container_id' => 'primary-menu',
|
||||||
|
// 'container_class' => '',
|
||||||
|
'theme_location' => 'primary',
|
||||||
|
'li_class' => 'menu-navlink',
|
||||||
|
'fallback_cb' => false,
|
||||||
|
)
|
||||||
|
); ?>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tools-container">
|
||||||
|
<button class="search-button">
|
||||||
|
<img src="<?php echo get_template_directory_uri(); ?>/resources/img/icons/carhop-rechercher.svg" alt="">
|
||||||
|
Rechercher
|
||||||
|
</button>
|
||||||
|
<button class="subscribe-button">
|
||||||
|
<img src="<?php echo get_template_directory_uri(); ?>/resources/img/icons/carhop-abonner.svg" alt="">
|
||||||
|
S’abonner
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
21
template-parts/header/secondary-menu.php
Normal file
21
template-parts/header/secondary-menu.php
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
?>
|
||||||
|
<div class="secondary-menu-container">
|
||||||
|
<div class="secondary-menu-nav">
|
||||||
|
<?php
|
||||||
|
wp_nav_menu(
|
||||||
|
array(
|
||||||
|
'container' => 'false',
|
||||||
|
'theme_location' => 'secondary',
|
||||||
|
'li_class' => 'menu-navlink',
|
||||||
|
'fallback_cb' => false,
|
||||||
|
)
|
||||||
|
); ?>
|
||||||
|
<div class="network-redirector">
|
||||||
|
<a href="<?php echo get_site_url(1); ?>">
|
||||||
|
CARHOP
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user