first version
This commit is contained in:
@@ -9,44 +9,33 @@
|
||||
|
||||
?>
|
||||
|
||||
<footer id="colophon">
|
||||
|
||||
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
|
||||
<aside role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'valier' ); ?>">
|
||||
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||||
<footer style="background: url(<?= get_field('footer_image', 'option') ?>)">
|
||||
<?php if (is_active_sidebar('footer-sidebar')) : ?>
|
||||
<aside role="complementary" aria-label="<?php esc_attr_e('Footer', 'valier'); ?>" class="container mx-auto ">
|
||||
<?php dynamic_sidebar('footer-sidebar'); ?>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
<div class="container mx-auto">
|
||||
<a href="<?= get_field('linkedin_link', 'option') ?>" target="_blank"
|
||||
class="flex justify-center gap-3 items-end mb-2">
|
||||
<img src="<?= get_field('abrevitura_de_linkedin', 'option') ?>" alt="Linkedin">
|
||||
<img src="<?= get_field('logo_linkedin', 'option') ?>" alt="Linkedin">
|
||||
|
||||
<?php if ( has_nav_menu( 'menu-2' ) ) : ?>
|
||||
<nav aria-label="<?php esc_attr_e( 'Footer Menu', 'valier' ); ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="bg-primary text-black py-2 has-playfair-font-family">
|
||||
<div class="container mx-auto has-mini-font-size flex justify-center gap-3 italic">
|
||||
<?= get_field('texto_legal', 'option') ?>
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'menu-2',
|
||||
'menu_class' => 'footer-menu',
|
||||
'depth' => 1,
|
||||
'theme_location' => 'menu-legal',
|
||||
'container' => false,
|
||||
'menu_id' => 'menu-legal',
|
||||
'items_wrap' => '<ul id="%1$s" class="%2$s flex justify-center gap-3" aria-label="submenu">%3$s</ul>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
$vlr_blog_info = get_bloginfo( 'name' );
|
||||
if ( ! empty( $vlr_blog_info ) ) :
|
||||
?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>,
|
||||
<?php
|
||||
endif;
|
||||
|
||||
/* translators: 1: WordPress link, 2: WordPress. */
|
||||
printf(
|
||||
'<a href="%1$s">proudly powered by %2$s</a>.',
|
||||
esc_url( __( 'https://wordpress.org/', 'valier' ) ),
|
||||
'WordPress'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</footer><!-- #colophon -->
|
||||
</footer>
|
||||
|
||||
@@ -7,41 +7,9 @@
|
||||
* @package Valier
|
||||
*/
|
||||
|
||||
?>
|
||||
if (is_front_page()) {
|
||||
get_template_part('template-parts/layout/header', 'home');
|
||||
} else {
|
||||
get_template_part('template-parts/layout/header', 'page');
|
||||
}
|
||||
|
||||
<header id="masthead">
|
||||
|
||||
<div>
|
||||
<?php
|
||||
if ( is_front_page() ) :
|
||||
?>
|
||||
<h1><?php bloginfo( 'name' ); ?></h1>
|
||||
<?php
|
||||
else :
|
||||
?>
|
||||
<p><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
$vlr_description = get_bloginfo( 'description', 'display' );
|
||||
if ( $vlr_description || is_customize_preview() ) :
|
||||
?>
|
||||
<p><?php echo $vlr_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<nav id="site-navigation" aria-label="<?php esc_attr_e( 'Main Navigation', 'valier' ); ?>">
|
||||
<button aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'valier' ); ?></button>
|
||||
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'menu-1',
|
||||
'menu_id' => 'primary-menu',
|
||||
'items_wrap' => '<ul id="%1$s" class="%2$s" aria-label="submenu">%3$s</ul>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav><!-- #site-navigation -->
|
||||
|
||||
</header><!-- #masthead -->
|
||||
|
||||
29
theme/template-parts/layout/header-home.php
Normal file
29
theme/template-parts/layout/header-home.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<header id="masthead" style="background-image: url(<?= get_header_image() ?>)" class="home">
|
||||
<div class="video-container">
|
||||
<video autoplay muted loop src="<?= get_field('video_header', 'option') ?>"></video>
|
||||
</div>
|
||||
|
||||
<div class="header-cointainer">
|
||||
<div class="container mx-auto flex justify-between self-start justify-self-start ">
|
||||
<img src="<?= get_field('logo_home', 'option') ?>" alt="<?= get_bloginfo('name') ?>">
|
||||
<nav id="site-navigation" aria-label="<?php esc_attr_e('Main Navigation', 'valier'); ?>"
|
||||
class="has-small-font-size uppercase has-cinzel-font-family flex items-center gap-6">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'menu-primary',
|
||||
'container' => false,
|
||||
'menu_id' => 'menu-primary',
|
||||
'items_wrap' => '<ul id="%1$s" class="%2$s flex justify-center gap-6 text-white " aria-label="submenu">%3$s</ul>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
<a href="<?= get_field('linkedin_link', 'option') ?>" target="_blank">
|
||||
<img src="<?= get_field('abrevitura_de_linkedin', 'option') ?>" alt="Linkedin" class="linkedin">
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
<h1 class="self-start justify-self-center has-extreme-font-size has-white-color has-cinzel-font-family uppercase "><?= get_the_title() ?></h1>
|
||||
</div>
|
||||
</header>
|
||||
25
theme/template-parts/layout/header-page.php
Normal file
25
theme/template-parts/layout/header-page.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<header id="masthead">
|
||||
<div class="bg-white py-6">
|
||||
<div class="container mx-auto flex justify-between self-start justify-self-start ">
|
||||
<?= get_custom_logo() ?>
|
||||
<nav id="site-navigation" aria-label="<?php esc_attr_e('Main Navigation', 'valier'); ?>"
|
||||
class="has-small-font-size uppercase has-cinzel-font-family flex items-center gap-6 ">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'menu-primary',
|
||||
'container' => false,
|
||||
'menu_id' => 'menu-primary',
|
||||
'items_wrap' => '<ul id="%1$s" class="%2$s flex justify-center gap-6 " aria-label="submenu">%3$s</ul>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
<a href="<?= get_field('linkedin_link', 'option') ?>" target="_blank">
|
||||
<img src="<?= get_field('abrevitura_de_linkedin', 'option') ?>" alt="Linkedin" class="linkedin">
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="self-start justify-self-center has-extreme-font-size has-white-color has-cinzel-font-family uppercase text-center py-10"
|
||||
style="background-image: url(<?= get_the_post_thumbnail_url() ?>)"><?= get_the_title() ?></h1>
|
||||
</header>
|
||||
Reference in New Issue
Block a user