/
header.php
94 lines (83 loc) · 5.53 KB
/
header.php
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
91
92
93
94
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Bai+Jamjuree&family=Roboto:wght@400;700&display=swap"
rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/style.css">
<script src="https://kit.fontawesome.com/77daa57238.js" crossorigin="anonymous"></script>
<?php
if (!is_404()) { ?>
<title><?php bloginfo("name"); ?> - <?php the_title(""); ?></title>
<meta name="title" content="<?php bloginfo(`name`); ?> - <?php the_title(``); ?>">
<meta property="og:title" content="<?php bloginfo('name'); ?> - <?php the_title(''); ?>">
<meta property="twitter:title" content="<?php bloginfo('name'); ?> - <?php the_title(''); ?>">
<?php if (get_post_type() === "imoveis") { ?>
<meta name="description"
content="<?php echo str_replace(array("\r", "\n"), '', strip_tags(get_the_content())); ?>">
<meta property="og:description"
content="<?php echo str_replace(array("\r", "\n"), '', strip_tags(get_the_content())); ?>">
<meta property="twitter:description"
content="<?php echo str_replace(array("\r", "\n"), '', strip_tags(get_the_content())); ?>">
<?php } else { ?>
<meta name="description" content="<?php the_field('page-desc'); ?>">
<meta property="og:description" content="<?php the_field('page-desc'); ?>">
<meta property="twitter:description" content="<?php the_field('page-desc'); ?>">
<?php } ?>
<?php } else { ?>
<title><?php bloginfo("name"); ?> - Página não encontrada</title>
<meta name="title" content="<?php bloginfo(`name`); ?> - Página não encontrada">
<meta property="og:title" content="<?php bloginfo('name'); ?> - Página não encontrada">
<meta property="twitter:title" content="<?php bloginfo('name'); ?> - Página não encontrada ">
<meta name="description"
content="A JIC IMOB Consultoria Imobiliária chega ao mercado imobiliário com a proposta de inovar no atendimento, prestando assessoria imobiliária de forma ágil e eficaz. Nosso principal foco é transparência nas negociações. A empresa atua em todos os segmentos do setor imobiliário: Locação, Administração, Compra e Venda de imóveis residenciais e comerciais.">
<meta property="og:description"
content="A JIC IMOB Consultoria Imobiliária chega ao mercado imobiliário com a proposta de inovar no atendimento, prestando assessoria imobiliária de forma ágil e eficaz. Nosso principal foco é transparência nas negociações. A empresa atua em todos os segmentos do setor imobiliário: Locação, Administração, Compra e Venda de imóveis residenciais e comerciais.">
<meta property="twitter:description"
content="A JIC IMOB Consultoria Imobiliária chega ao mercado imobiliário com a proposta de inovar no atendimento, prestando assessoria imobiliária de forma ágil e eficaz. Nosso principal foco é transparência nas negociações. A empresa atua em todos os segmentos do setor imobiliário: Locação, Administração, Compra e Venda de imóveis residenciais e comerciais.">
<?php } ?>
<meta property="og:type" content="website">
<meta property="og:url" content="<?php bloginfo('url'); ?>">
<meta property="og:image" content="<?php echo get_template_directory_uri(); ?>/img/og-image.png">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="<?php bloginfo('url'); ?>">
<meta property="twitter:image" content="<?php echo get_template_directory_uri(); ?>/img/og-image.png">
<link rel="icon" type="image/png" sizes="32x32"
href="<?php echo get_template_directory_uri(); ?>/img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16"
href="<?php echo get_template_directory_uri(); ?>/img/favicon/favicon-16x16.png">
<link rel="manifest" href="<?php echo get_template_directory_uri(); ?>/img/favicon/site.webmanifest">
<link rel="mask-icon" href="<?php echo get_template_directory_uri(); ?>/img/favicon/safari-pinned-tab.svg"
color="#f26226">
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/img/favicon/favicon.ico">
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/js/photoswipe/photoswipe.css">
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/js/photoswipe/default-skin/default-skin.css">
<meta name="msapplication-TileColor" content="#212121">
<meta name="msapplication-config" content="<?php echo get_template_directory_uri(); ?>/img/favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<?php wp_head(); ?>
</head>
<body>
<header class="header flex">
<div class="header__inner container flex flex--items-c flex--justify-sb flex--wrap">
<a class="header__logo" href="/">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/img/logo-header.svg" alt="<?php bloginfo('name'); ?>">
</a>
<nav class="header__nav hide-on-mobile">
<?php
$args = array(
'menu' => 'header',
'theme_location' => 'header-menu',
'container' => false
);
wp_nav_menu($args);
?>
</nav>
<button class="header__mobileButton hide-on-desk">
<span class="hamburger"></span>
</button>
</div>
</header>