-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
87 lines (67 loc) · 2.83 KB
/
Copy pathheader.php
File metadata and controls
87 lines (67 loc) · 2.83 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
<?php require "functions.php"; ?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="robots" content="index, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title><?php
if(empty($_GET['k']) AND empty($_GET['q'])){
echo $settings['sitename']." - ".$settings['slogan'];
}else{
if(empty($_GET['k'])){
echo mb_strtoupper(str_replace("-"," ",$_GET['q']),'utf-8')." - ".$settings['sitename'];
}else{
echo mb_strtoupper(str_replace("-"," ",$_GET['k']),'utf-8')." - ".$settings['sitename'];
}
}
?></title>
<meta name="description" content="<?=utf8_encode($settings['description']);?>" />
<style>
:root {
--linkcolor: <?= $settings['link_color'];?>;
--maincolor: <?= $settings['main_color'];?>;
--secondarycolor: <?= $settings['secondary_color'];?>;
--maintextcolor: <?= $settings['maintext_color'];?>;
--secondarytextcolor: <?= $settings['secondarytext_color'];?>;
}
</style>
<link rel="stylesheet" href="/assets/style_<?= $estilo_menu; ?>.css">
<link rel="icon" type="image/png" href="/assets/favicon.png">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<?= $settings['google_tag'];?>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<?= $settings['google_tag'];?>');
</script>
</head>
<body>
<div class="mainwrap">
<div class="leftbox"><?php include "blocks/leftbox.php"; ?></div>
<div class="wrap">
<header>
<a href="/"><img class="logo" src="<?=$settings['logo'];?>" alt="<?= $settings['sitename'];?> - <?= $settings['slogan'];?>"></a>
<?php
if($estilo_menu ==="vertical"){
echo '</header>';
}
?>
<button type="button" class="collapsible">Menu</button>
<div class="topnav">
<?php
foreach($settings['menu'] as $nav){
echo '<a href="/categoria/'.str_replace(" ","-",strtolower($nav['url'])).'">'.strtoupper($nav['text']).'</a>';
}
?>
<!--<form action="https://www.google.es/search" target="_blank" id="gform">
<input type="text" placeholder="Buscar.." name="q" id="q" autocomplete="off">
<input type="hidden" name="q" value="site:<?= $_SERVER['HTTP_HOST']; ?>">
</form>//-->
</div>
<?php
//if($estilo_menu ==="horizontal"){
echo '</header>';
//}
?>