-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
76 lines (49 loc) · 2.32 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
<?
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
<? global $mods; ?>
<!DOCTYPE html>
<html lang="<?= $current_lang?>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>
<?
$titles = explode(',', get_option( 'blogname' ).','.get_the_title());
echo implode(' : ',$titles);
?>
</title>
<meta name="description" content="<?= get_bloginfo( 'description' ); ?>" />
<meta name="keywords" content="<?= generateKeywords(); ?>">
<? if(!has_site_icon()){ ?>
<link rel="apple-touch-icon" href="<?= get_template_directory_uri(); ?>/favicon.png">
<link rel="shortcut icon" type="image/x-icon" href="<?= get_template_directory_uri().'/favicon.png'; ?>" />
<? } else { ?>
<link rel="apple-touch-icon" href="<?= wp_get_attachment_image_url(get_option('site_icon'),'full'); ?>">
<link rel="shortcut icon" type="image/x-icon" href="<?= wp_get_attachment_image_url(get_option('site_icon'),'full'); ?>" />
<? } ?>
<? wp_head(); ?>
</head>
<body>
<div id="page_container">
<? if( $mods->debug_notices ) { ?>
<div class="fixed-bottom m-2">
<div class="m-0 alert alert-primary" role="alert">
<h5 class="alert-heading">Page Debug:</h5>
<hr>
<p><b>File path:</b> <?= $looptype['path'];?></p>
</div>
</div>
<?}?>
<div>
<? require_once __DIR__.'/elements/box-site-header-contents.php'; ?>
</div>
<div class="container g-4 py-4">
<div class="row <?= $mods->site_reverse_layout ? 'flex-column-reverse flex-lg-row' : ''; ?>">
<? require_once __DIR__.'/elements/box-site-header-contents-bodymode.php'; ?>
<? require_once __DIR__.'/elements/box-sidebar-selector-left.php'; ?>