Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
90 lines (82 loc) · 3.6 KB
/
Copy pathheader.php
File metadata and controls
90 lines (82 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?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 Dez
*/
?>
<!doctype html>
<html <?php language_attributes(); ?> data-theme="">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="text-scale" content="scale">
<meta name="robots" content="noarchive">
<?php wp_head(); ?>
<link rel="preconnect" href="https://umami.pcdomanual.com/" crossorigin>
<link rel="preconnect" href="https://alo.pcdomanual.com/" crossorigin>
<link rel="manifest" href="/wp-content/themes/dez/manifest.json">
<?php $currentlang = get_bloginfo( 'language' );
if ( $currentlang == 'en-US' ) : ?>
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
<?php endif; ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'dez' ); ?></a>
<header id="masthead" class="site-header">
<div class="site-branding">
<img src="/wp-content/themes/dez/img/logo-manual-do-usuario.png" width="38" height="44" alt="">
<div class="branding-text">
<?php
$title_tag = ( is_front_page() && is_home() ) ? 'h1' : 'p';
?>
<<?php echo esc_html( $title_tag ); ?>>
<?php if ( $currentlang == 'en-US' ) : ?>
<a href="https://manualdousuario.net/en/">Manual do Usuário</a>
<?php else : ?>
<a href="https://manualdousuario.net/">Manual do Usuário</a>
<?php endif; ?>
</<?php echo esc_html( $title_tag ); ?>>
<span>
<?php pll_e('por'); ?> Rodrigo Ghedin
</span>
</div>
</div>
<div class="patrocinio-okkre2025">
<?php if ( shortcode_exists( 'sc' ) && $currentlang == 'pt-BR' ) :
echo '<ins class="adupeex" data-ad-client="up-ba-332228" data-ad-slot="37872" data-ad-display="square" style="height: 250px;display: flex;justify-content: center;"></ins>';
echo '<script src="https://upeex.com.br/adsupeex.js" async></script>';
elseif ( $currentlang == 'en-US' ) :
echo '<div class="adaptive-css horizontal" data-ea-publisher="manualdousuarionet" data-ea-type="image"></div>';
endif; ?>
</div>
<nav role="navigation" aria-label="Menu principal" class="main-navigation">
<ul>
<?php if ( $currentlang == 'pt-BR' ) : ?>
<li><a href="/acompanhe">Newsletter</a></li>
<li><a href="/orbita">Órbita</a></li>
<li><a href="/podcast">Podcasts</a></li>
<li><a href="/leituras">Grupo de leitura</a></li>
<li><a href="https://pcdomanual.com/" class="link-externo">PC do Manual</a></li>
<li><a href="/sobre">Sobre</a></li>
<li><a href="/apoie"><strong>Assine</strong></a></li>
<li class="lang-item"><a href="https://manualdousuario.net/en/" hreflang="en-US" lang="en-US">English</a></li>
<li class="autenticacao"><?php if ( is_user_logged_in() ) {
echo '<a href="' . esc_url( wp_logout_url( get_permalink() ) ) . '">Sair</a>';
} else {
echo '<a href="/cadastro/">Cadastrar</a> / <a href="' . esc_url( wp_login_url( get_permalink() ) ) . '">Entrar</a>';
} ?></li>
<li><a href="/mais">Mais…</a></li>
<?php else : ?>
<li><a href="/en/about">About</a></li>
<li><a href="https://pcdomanual.com/" class="link-externo">PC do Manual</a></li>
<li class="lang-item"><a href="https://manualdousuario.net/?lang=pt" hreflang="pt-BR" lang="pt-BR">Português</a></li>
<?php endif; ?>
</ul>
</nav>
</header>