primeiro commit
Signed-off-by: Rodrigo Bertoldo de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
commit
e6a6f9c159
19 files changed
+3202
No files matched your search
+55
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* Template: Header
|
||||
*
|
||||
* @package MartinsEVieira
|
||||
*/
|
||||
|
||||
// Cache da URL da home para evitar múltiplas chamadas
|
||||
$home_url = esc_url(home_url('/'));
|
||||
$template_uri = get_template_directory_uri();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo('charset'); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
|
||||
<header class="site-header">
|
||||
<div class="header-container">
|
||||
<div class="logo">
|
||||
<?php if (has_custom_logo()) : ?>
|
||||
<?php the_custom_logo(); ?>
|
||||
<?php else : ?>
|
||||
<a href="<?php echo $home_url; ?>">
|
||||
<img src="<?php echo $template_uri; ?>/logo/logo-horizontal.png" alt="Martins e Vieira Advocacia" width="200" height="60">
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<button class="mobile-menu-toggle" id="mobile-menu-toggle" aria-label="Abrir menu" aria-expanded="false">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</button>
|
||||
|
||||
<nav class="main-nav" id="main-nav" aria-label="Navegação principal">
|
||||
<ul>
|
||||
<li><a href="<?php echo $home_url; ?>#inicio"><i class="fas fa-home" aria-hidden="true"></i><span class="nav-text">Início</span></a></li>
|
||||
<li><a href="<?php echo $home_url; ?>#areas"><i class="fas fa-briefcase" aria-hidden="true"></i><span class="nav-text">Áreas de Atuação</span></a></li>
|
||||
<li><a href="<?php echo $home_url; ?>#sobre"><i class="fas fa-info-circle" aria-hidden="true"></i><span class="nav-text">Sobre</span></a></li>
|
||||
<li><a href="<?php echo $home_url; ?>#equipe"><i class="fas fa-user-tie" aria-hidden="true"></i><span class="nav-text">Equipe</span></a></li>
|
||||
<li><a href="<?php echo $home_url; ?>#blog"><i class="fas fa-newspaper" aria-hidden="true"></i><span class="nav-text">Blog</span></a></li>
|
||||
<li><a href="<?php echo $home_url; ?>#contato"><i class="fas fa-envelope" aria-hidden="true"></i><span class="nav-text">Contato</span></a></li>
|
||||
<li class="theme-toggle-item">
|
||||
<button class="theme-toggle" id="theme-toggle" aria-label="Alternar modo escuro">
|
||||
<i class="fas fa-moon" aria-hidden="true"></i>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
Reference in new issue
Block a user