-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
37 lines (33 loc) · 1.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"/>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>"
href="<?php bloginfo( 'rss2_url' ); ?>"/>
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>"
href="<?php bloginfo( 'atom_url' ); ?>"/>
<?php wp_head(); ?>
</head>
<body>
<div class="container-fluid">
<?php
echo( '<div class="row row-no-padding">' );
if ( get_theme_mod( 'sidebar' ) == '1' ) {
$sidebarwidth = get_theme_mod( 'sidebar_width', 4 );
$contentwidth = 12 - $sidebarwidth;
if ( get_theme_mod( 'sidebar_align' ) == 'right' ) {
echo( '<div class="col-md-' . $contentwidth . ' col-sm-' . $contentwidth . ' col-xs-' . $contentwidth . ' first">' );
} else {
if ( get_theme_mod( 'sidebar_align' ) == 'left' ) {
echo( '<div class="col-md-' . $sidebarwidth . ' col-sm-' . $sidebarwidth . ' col-xs-' . $sidebarwidth . ' first sidebar">' );
dynamic_sidebar( 'home-right' );
echo( '</div>' );
}
echo( '<div class="col-md-' . $contentwidth . ' col-sm-' . $contentwidth . ' col-xs-' . $contentwidth . ' last">' );
}
} else {
echo( '<div class="col-md-12 col-sm-12 col-xs-12">' );
}