forked from natejones/wpds
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathheader.php
44 lines (42 loc) · 1.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
<?php
/**
* Header
*
* Setup the header for our theme
*
* @package WordPress
*/
?>
<!DOCTYPE html>
<!--[if lte IE 9]><html class="no-js IE9 IE" lang="de-DE"><![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="de-DE"><!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
<?php wp_head(); ?>
<?php
$widths = wpds_get_dock_widths();
if (count($widths) > 0 && count($widths) == count_sidebar_widgets('dock')) {
?>
<style tyle="text/css">
<?php for ( $i = 0; $i < count($widths); $i++ ): ?>
.dock-container > .dock-element:nth-child(<?=($i+1)?>) { width: <?=$widths[$i]?>%; }
<?php endfor; ?>
</style>
<?php
}
?>
</head>
<?php
$slide_style = array();
$text_align = wpds_get_text_algin();
if ($text_align != WPDS_DEFAULT_TEXT_ALIGN) {
$slide_style['text-align'] = $text_align;
}
?>
<body <?php body_class(); ?>>
<?php if (!is_front_page() || is_customize_preview() || wpds_get_index_behaviour() == 'slides'): ?>
<div class="reveal">
<div class="slides"<?php echo print_style($slide_style);?>>
<?php endif; ?>