| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/uxhactp/www/wp-content/themes/applica/template-parts/header/styles/ |
Upload File : |
<?php
$is_sticky = applica_get_option('enable_sticky_menu');
$enable_dark_mode = applica_get_option('enable_dark_mode');
$enable_dark_mode_switcher = applica_get_option('enable_dark_mode_switcher');
$enable_search = applica_get_option('enable_search_on_header');
?>
<div class="masthead-main-navigation <?php echo ($is_sticky) ? 'has-sticky-header' : ''; ?>">
<div class="wrapper">
<div class="site-header-wrapper">
<div class="site-header-left">
<?php if (is_active_sidebar('applica-offcanvas-widget')): ?>
<button id="theme-offcanvas-widget-button" class="theme-button theme-button-transparent theme-button-offcanvas">
<span class="screen-reader-text"><?php _e('Offcanvas Widget', 'applica'); ?></span>
<span class="toggle-icon"><?php applica_theme_svg('menu-alt'); ?></span>
</button>
<?php endif; ?>
<?php get_template_part('template-parts/header/site-branding'); ?>
</div>
<div class="site-header-right">
<div id="site-navigation" class="main-navigation theme-primary-menu">
<?php
if (has_nav_menu('primary-menu')) {
?>
<nav class="primary-menu-wrapper" aria-label="<?php echo esc_attr_x('Primary', 'menu', 'applica'); ?>">
<ul class="primary-menu reset-list-style">
<?php
wp_nav_menu(
array(
'container' => '',
'items_wrap' => '%3$s',
'theme_location' => 'primary-menu'
)
);
?>
</ul>
</nav><!-- .primary-menu-wrapper -->
<?php
} else { ?>
<nav class="primary-menu-wrapper" aria-label="<?php echo esc_attr_x('Primary', 'menu', 'applica'); ?>">
<ul class="primary-menu reset-list-style">
<?php
wp_list_pages(
array(
'match_menu_classes' => true,
'show_sub_menu_icons' => true,
'title_li' => false,
)
);
?>
</ul>
</nav><!-- .primary-menu-wrapper -->
<?php } ?>
</div><!-- .main-navigation -->
<?php
$enable_random_post = applica_get_option('enable_random_post');
if ($enable_random_post) {
$random_post_category = applica_get_option('random_post_category');
$rand_posts_arg = array(
'posts_per_page' => 1,
'orderby' => 'rand'
);
if ($random_post_category) {
$rand_posts_arg['cat'] = absint($random_post_category);
}
$rand_posts = get_posts($rand_posts_arg);
if ($rand_posts) {
?>
<a href="<?php echo esc_url(get_permalink($rand_posts[0]->ID)); ?>"
class="theme-button theme-button-transparent theme-button-shuffle">
<span class="screen-reader-text"><?php _e('Shuffle', 'applica'); ?></span>
<?php applica_theme_svg('shuffle'); ?>
</a>
<?php
}
}
?>
<?php if ($enable_dark_mode && $enable_dark_mode_switcher) : ?>
<button id="theme-toggle-mode-button" class="theme-button theme-button-transparent theme-button-colormode" title="<?php _e('Toggle light/dark mode', 'applica'); ?>" aria-label="auto" aria-live="polite">
<span class="screen-reader-text"><?php _e('Switch color mode', 'applica'); ?></span>
<svg class="svg-icon svg-icon-colormode" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24">
<mask class="moon" id="moon-mask">
<rect x="0" y="0" width="100%" height="100%" fill="white"/>
<circle cx="24" cy="10" r="6" fill="black"/>
</mask>
<circle class="sun" cx="12" cy="12" r="6" mask="url(#moon-mask)" fill="currentColor"/>
<g class="sun-beams" stroke="currentColor">
<line x1="12" y1="1" x2="12" y2="3"/>
<line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/>
<line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</g>
</svg>
</button>
<?php endif; ?>
<button id="theme-toggle-offcanvas-button" class="theme-button theme-button-transparent theme-button-offcanvas" aria-expanded="false" aria-controls="theme-offcanvas-navigation">
<span class="screen-reader-text"><?php _e('Menu', 'applica'); ?></span>
<span class="toggle-icon"><?php applica_theme_svg('menu'); ?></span>
</button>
<button id="theme-toggle-search-button" class="theme-button theme-button-transparent theme-button-search" aria-expanded="false" aria-controls="theme-header-search">
<span class="screen-reader-text"><?php _e('Search', 'applica'); ?></span>
<?php applica_theme_svg('search'); ?>
</button>
</div>
</div>
</div>
</div>