| Linux webm001.cluster123.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 Path : /home/lapjouc/www/wp-content/themes/laap/ |
| Current File : /home/lapjouc/www/wp-content/themes/laap/header.php |
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package laap
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e('Skip to content', 'laap'); ?></a>
<header id="masthead" class="site-header">
<div class="wContainer">
<div id="headerLeft">
<div class="site-branding">
<?php
the_custom_logo();
if (is_front_page() && is_home()) :
?>
<h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
<?php
else :
?>
<p class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></p>
<?php
endif;
$laap_description = get_bloginfo('description', 'display');
if ($laap_description || is_customize_preview()) :
?>
<p class="site-description"><?php echo $laap_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?></p>
<?php endif; ?>
</div><!-- .site-branding -->
<div id="centerHeader">
<?php
$signature = get_field('signature', 'options');
if ($signature) {
echo '<div id="signature">' . $signature . '</div>';
}; ?>
<nav id="site-navigation" class="main-navigation">
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-1',
'menu_id' => 'primary-menu',
)
);
?>
</nav><!-- #site-navigation -->
</div><!--/#centerHeader-->
</div>
<div id="topWidgets">
<?php dynamic_sidebar('header-widgets'); ?>
</div>
<button class="burger" aria-label="burger"><span></span><span></span><span></span><span></span></button>
</div><!--/wContainer-->
</header><!-- #masthead -->
<?php
// Custom Query to fetch 'depeche' posts
$args = array(
'post_type' => 'depeche',
'posts_per_page' => -1, // Fetch all posts
'order' => 'DESC', // Order by latest first
'orderby' => 'date' // Order by date
);
$depeche_query = new WP_Query($args);
// Loop through the posts
if ($depeche_query->have_posts()) : ?>
<div id="filActu">
<div class="wContainer">
<ul class="news-ticker-h">
<?php while ($depeche_query->have_posts()) : $depeche_query->the_post(); ?>
<li class="news-item"><?php /* the_title(); */ ?> - <?php
// Get the content
$content = get_the_content();
// Remove <p> and </p> tags
$content = preg_replace('/<\/?p>/i', '', $content);
echo $content;
?></li>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
</ul>
</div>
</div>
<?php endif; ?>