-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout.html.php
205 lines (180 loc) · 10.2 KB
/
layout.html.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!doctype html>
<html lang="<?php echo blog_language();?>">
<head>
<?php echo head_contents();?>
<title><?php echo $title;?></title>
<meta name="description" content="<?php echo $description; ?>"/>
<link rel="canonical" href="<?php echo $canonical; ?>" />
<?php echo $metatags;?>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" id="genericons-css" href="<?php echo theme_path();?>genericons/genericons.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo theme_path();?>css/style.css" type="text/css" media="all">
<script type="text/javascript" src="<?php echo theme_path();?>js/jquery.js" id="jquery-core-js"></script>
</head>
<?php
$occasioClass = '';
if (is_index()) {
if (isset($is_front) && config('static.frontpage') === 'true') {
$occasioClass = 'no-sidebar single';
} else {
if (config('teaser.type') === 'full') {
$occasioClass = 'has-sidebar blog-layout-one-column-grid';
} else {
$occasioClass = 'has-sidebar blog-layout-two-column-grid';
}
}
} elseif (isset($is_page) || isset($is_subpage)) {
$occasioClass = 'no-sidebar single';
} else {
$occasioClass = 'has-sidebar single';
}
?>
<body class="centered-theme-layout <?php echo $occasioClass;?> hfeed">
<?php if (facebook()) { echo facebook(); } ?>
<?php if (login()) { toolbar(); } ?>
<svg width="0" height="0" style="display: none;">
<symbol viewBox="0 0 16 16" id="menu-toggle"><title>menu</title> <path d="M0,14h16v-2H0V14z M0,2v2h16V2H0z M0,9h16V7H0V9z"/> </symbol>
<symbol viewBox="0 0 16 16" id="menu-close"><title>close</title> <polygon points="12.7,4.7 11.3,3.3 8,6.6 4.7,3.3 3.3,4.7 6.6,8 3.3,11.3 4.7,12.7 8,9.4 11.3,12.7 12.7,11.3 9.4,8"/> </symbol>
<symbol viewBox="0 0 16 16" id="search"><title>search</title> <path d="M14.7,13.3L11,9.6c0.6-0.9,1-2,1-3.1C12,3.5,9.5,1,6.5,1S1,3.5,1,6.5S3.5,12,6.5,12c1.2,0,2.2-0.4,3.1-1l3.7,3.7L14.7,13.3zM2.5,6.5c0-2.2,1.8-4,4-4s4,1.8,4,4s-1.8,4-4,4S2.5,8.7,2.5,6.5z"/> </symbol>
<symbol id="icon-twitter" viewBox="0 0 512 512"><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></symbol>
<symbol id="icon-facebook" viewBox="0 0 512 512"><path d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"/></symbol>
<symbol viewBox="0 0 16 16" id="icon-feed"><title>feed</title> <g enable-background="new"> <path d="M2,6v2c3.3,0,6,2.7,6,6h2C10,9.6,6.4,6,2,6z M2,2v2c5.5,0,10,4.5,10,10h2C14,7.4,8.6,2,2,2z M3.5,11C2.7,11,2,11.7,2,12.5S2.7,14,3.5,14S5,13.3,5,12.5S4.3,11,3.5,11z"/> </g> </symbol>
</svg>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content">Skip to content</a>
<header id="masthead" class="site-header" role="banner">
<div class="header-main">
<div class="site-branding">
<h1 class="site-title"><a href="<?php echo site_url();?>" rel="home"><?php echo blog_title();?></a></h1>
<p class="site-description"><?php echo blog_tagline();?></p>
</div><!-- .site-branding -->
<button class="primary-menu-toggle menu-toggle" aria-controls="primary-menu" aria-expanded="false">
<svg class="icon icon-menu" aria-hidden="true" role="img"> <use xlink:href="#menu-toggle"></use> </svg><svg class="icon icon-close" aria-hidden="true" role="img"> <use xlink:href="#menu-close"></use> </svg> <span class="menu-toggle-text">Menu</span>
</button>
<div class="primary-navigation">
<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="Primary Menu">
<?php echo menu('menu');?>
</nav><!-- #site-navigation -->
</div><!-- .primary-navigation -->
</div><!-- .header-main -->
</header><!-- #masthead -->
<div id="content" class="site-content">
<main id="main" class="site-main" role="main">
<?php if (!empty($breadcrumb)): ?>
<div class="breadcrumbs tzwb-clearfix">
<?php echo $breadcrumb ?>
</div>
<?php endif;?>
<?php if (isset($is_category)):?>
<header class="entry-header"><h1 class="entry-title"><?php echo i18n('Category');?>: <?php echo $category->title;?></h1><div class="taxonomy-description"><?php echo $category->body;?></div></header>
<?php endif;?>
<?php if (isset($is_tag)):?>
<header class="entry-header"><h1 class="entry-title"><?php echo i18n('Tags');?>: <?php echo $tag->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_archive)):?>
<header class="entry-header"><h1 class="entry-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_search)):?>
<header class="entry-header"><h1 class="entry-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1></header>
<?php endif;?>
<?php if (isset($is_type)):?>
<header class="entry-header"><h1 class="entry-title">Type: <?php echo ucfirst($type->title);?></h1></header>
<?php endif;?>
<?php if (isset($is_blog)):?>
<header class="entry-header"><h1 class="entry-title">Blog</h1></header>
<?php endif;?>
<div id="post-wrapper" class="post-wrapper">
<?php echo content();?>
</div>
</main><!-- #main -->
<section id="secondary" class="sidebar widget-area" role="complementary">
<div id="tzwb-social-icons" class="widget tzwb-social-icons">
<div class="tzwb-content tzwb-clearfix">
<?php echo social();?>
</div>
</div>
<?php if (!isset($is_front) && !isset($is_blog)):?>
<div id="tzwb-recent-posts" class="widget tzwb-recent-posts">
<h3 class="widget-title"><?php echo i18n("Recent_posts");?></h3>
<div class="tzwb-content tzwb-clearfix">
<?php echo recent_posts();?>
</div>
</div>
<?php endif;?>
<?php if (config('views.counter') === 'true') :?>
<?php if (isset($is_front) || isset($is_blog)):?>
<div id="tzwb-popular-posts" class="widget tzwb-popular-posts">
<h3 class="widget-title"><?php echo i18n("Popular_posts");?></h3>
<div class="tzwb-content tzwb-clearfix">
<?php echo popular_posts();?>
</div>
</div>
<?php endif;?>
<?php endif;?>
<?php if (disqus()): ?>
<section id="tzwb-recent-comments" class="widget tzwb-recent-comments">
<h3 class="widget-title"><?php echo i18n('Comments');?></h3>
<script src="//<?php echo config('disqus.shortname');?>.disqus.com/recent_comments_widget.js?num_items=5&hide_avatars=0&avatar_size=48&excerpt_length=200&hide_mods=0" type="text/javascript"></script><style>li.dsq-widget-item {padding-top:15px;} img.dsq-widget-avatar {margin-right:5px;} ul.dsq-widget-list {padding-left:0px}</style>
</section>
<?php endif;?>
<div id="tzwb-tabbed-content-1" class="widget tzwb-tabbed-content">
<div class="tzwb-content tzwb-clearfix">
<div class="tzwb-tabnavi-wrap tzwb-clearfix">
<ul class="tzwb-tabnavi">
<li><a href="#tzwb-tabbed-content-1-tab-0" class="current-tab"><?php echo i18n("Archives");?></a></li>
<li><a href="#tzwb-tabbed-content-1-tab-1"><?php echo i18n('Category');?></a></li>
<li><a href="#tzwb-tabbed-content-1-tab-2"><?php echo i18n('Tags');?></a></li>
</ul>
</div>
<div id="tzwb-tabbed-content-1-tab-0" class="tzwb-tabcontent" style="">
<ul class="tzwb-tabcontent-archives">
<?php echo archive_list('month-year');?>
</ul>
</div>
<div id="tzwb-tabbed-content-1-tab-1" class="tzwb-tabcontent" style="display: none;">
<?php echo category_list();?>
</div>
<div id="tzwb-tabbed-content-1-tab-2" class="tzwb-tabcontent" style="display: none;">
<div class="tzwb-tabcontent-tagcloud widget_tag_cloud">
<div class="tagcloud"><?php echo tag_cloud();?></div>
</div>
</div>
</div>
</div>
<div id="search-widget" class="widget widget_search">
<h3 class="widget-title"><?php echo i18n('Search');?></h3>
<form role="search" class="search-form" >
<label>
<span class="screen-reader-text"><?php echo i18n('Search_for');?></span>
<input type="search" class="search-field" placeholder="<?php echo i18n('Search_for');?> …" name="search" title="<?php echo i18n('Search_for');?>">
</label>
<button type="submit" class="search-submit">
<svg class="icon icon-search" aria-hidden="true" role="img"> <use xlink:href="#search"></use> </svg>
<span class="screen-reader-text"><?php echo i18n('Search');?></span>
</button>
</form>
</div>
</section><!-- #secondary -->
</div><!-- #content -->
<div class="footer-wrap">
<footer id="colophon" class="site-footer">
<div id="footer-line" class="site-info">
<style>.credit-link span {text-align:center;font-size:14px;}</style>
<div class="credit-link">
<?php echo copyright();?> <span style="float:right;">Design by <a href="https://themezee.com/" target="_blank" rel="nofollow">ThemeZee</a></span>
</div>
</div>
</footer><!-- #colophon -->
</div>
</div><!-- #page -->
<script type="text/javascript">
/* <![CDATA[ */
var screenReaderText = {"expand":"expand child menu","collapse":"collapse child menu"};
/* ]]> */
</script>
<script type="text/javascript" src="<?php echo theme_path();?>js/custom.js" id="custom-js"></script>
<?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
</body>
</html>