first commit

This commit is contained in:
2025-09-22 16:00:20 +02:00
parent bb5cc93cb0
commit ce4d458162
61 changed files with 6544 additions and 114 deletions

View File

@@ -9,6 +9,7 @@
* @package brpfinanse
*/
$header_btns = get_field('header_btns', 'option');
?>
<!doctype html>
<html <?php language_attributes(); ?>>
@@ -23,37 +24,43 @@
<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', 'brpfinanse' ); ?></a>
<!-- <a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'brpfinanse' ); ?></a> -->
<header id="masthead" class="site-header">
<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;
$brpfinanse_description = get_bloginfo( 'description', 'display' );
if ( $brpfinanse_description || is_customize_preview() ) :
?>
<p class="site-description"><?php echo $brpfinanse_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
<?php endif; ?>
</div><!-- .site-branding -->
<div class="container">
<div class="row">
<div class="site-branding">
<?php the_custom_logo(); ?>
</div>
<nav id="site-navigation" class="main-navigation">
<?php
wp_nav_menu(
array(
'menu_id' => 'primary-menu',
)
);
?>
</nav>
<ul class="main-navigation-secondary">
<li>
<a href="<?php echo esc_url($header_btns['btn_1']['url']); ?>" target="<?php echo esc_attr($header_btns['btn_1']['target'] ?: '_self'); ?>">
<?php echo esc_html($header_btns['btn_1']['title']); ?>
</a>
</li>
<li>
<a href="<?php echo esc_url($header_btns['btn_2']['url']); ?>" target="<?php echo esc_attr($header_btns['btn_2']['target'] ?: '_self'); ?>">
<?php echo esc_html($header_btns['btn_2']['title']); ?>
</a>
</li>
</ul>
<button id="nav-menu-toggle">
<span class="icon"></span>
<span class="text">Menu</span>
</button>
</div>
</div>
</header>
<nav id="site-navigation" class="main-navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'brpfinanse' ); ?></button>
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-1',
'menu_id' => 'primary-menu',
)
);
?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->