FEATURE handling secondary logo
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
402f5e3350
commit
6010de5476
|
|
@ -2,9 +2,16 @@
|
||||||
?>
|
?>
|
||||||
<div class="primary-menu-container lg:flex lg:justify-between lg:items-center">
|
<div class="primary-menu-container lg:flex lg:justify-between lg:items-center">
|
||||||
<nav id="primary-menu-nav" class="flex justify-between items-center">
|
<nav id="primary-menu-nav" class="flex justify-between items-center">
|
||||||
<div class="website_logo">
|
<?php $secondary_logo_url = get_secondary_logo_url(); ?>
|
||||||
|
<div class="website_logo <?php echo $secondary_logo_url ? 'has-secondary-logo' : ''; ?>">
|
||||||
<?php if (has_custom_logo()) { ?>
|
<?php if (has_custom_logo()) { ?>
|
||||||
|
|
||||||
<?php the_custom_logo(); ?>
|
<?php the_custom_logo(); ?>
|
||||||
|
|
||||||
|
<?php if ($secondary_logo_url) : ?>
|
||||||
|
<img id="secondary-logo" src="<?php echo $secondary_logo_url; ?>" alt="<?php echo get_bloginfo('name'); ?> - Logo alternatif">
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<a href=" <?php echo get_bloginfo('url'); ?>" class="font-extrabold text-lg uppercase">
|
<a href=" <?php echo get_bloginfo('url'); ?>" class="font-extrabold text-lg uppercase">
|
||||||
<?php echo get_bloginfo('name'); ?>
|
<?php echo get_bloginfo('name'); ?>
|
||||||
|
|
@ -19,15 +26,10 @@
|
||||||
|
|
||||||
|
|
||||||
<div id="primary-menu">
|
<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
|
<?php
|
||||||
wp_nav_menu(
|
wp_nav_menu(
|
||||||
array(
|
array(
|
||||||
'container' => 'false',
|
'container' => 'false',
|
||||||
// 'container_id' => 'primary-menu',
|
|
||||||
// 'container_class' => '',
|
|
||||||
'theme_location' => 'primary',
|
'theme_location' => 'primary',
|
||||||
'li_class' => 'menu-navlink',
|
'li_class' => 'menu-navlink',
|
||||||
'fallback_cb' => false,
|
'fallback_cb' => false,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user