-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
123 lines (90 loc) · 4.64 KB
/
Copy pathheader.php
File metadata and controls
123 lines (90 loc) · 4.64 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
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
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
$wentasi_topbar_sticky = get_theme_mod( 'wentasi_topbar_sticky' );
?>
<nav id="ft-topbar" class="ft-topbar<?php if ( $wentasi_topbar_sticky != 1 ) echo ' topbar-fixed'; ?>">
<div class="wrapper clearfix">
<div class="ft-menu span9">
<div id="site-navigation">
<a class="ft-jpbutton" href="#menu"><i class="icon-reorder"></i></a>
<?php if ( has_nav_menu( 'primary_navigation' ) ): ?>
<?php wp_nav_menu( array('theme_location' => 'primary_navigation','container' => false,'menu_class' => 'primenu','echo' => true,'before' => '','after' => '','link_before' => '','link_after' => '','depth' => 3,'items_wrap' => '<ul class="primenu">%3$s</ul>')); ?>
<?php else: ?>
<p class="ft-nomenus">Please Setup Your Menus : Dashboard -> Appearance -> Menus</p>
<?php endif; ?>
</div>
</div>
<div class="ft-icons span3 right">
<ul>
<?php
$wentasi_social_rss = get_theme_mod( 'wentasi_social_rss', get_bloginfo('rss2_url') );
$wentasi_social_instagram = get_theme_mod( 'wentasi_social_instagram', '#' );
$wentasi_social_facebook = get_theme_mod( 'wentasi_social_facebook', '#' );
$wentasi_social_twitter = get_theme_mod( 'wentasi_social_twitter', '#' );
$wentasi_social_google = get_theme_mod( 'wentasi_social_google', '#' );
?>
<?php if ($wentasi_social_rss): ?><li><a target="_blank" href="<?php echo esc_url($wentasi_social_rss); ?>"><i class="icon-rss"></i></a></li><?php endif; ?>
<?php if ($wentasi_social_twitter): ?><li><a target="_blank" href="<?php echo esc_url($wentasi_social_twitter) ?>"><i class="icon-twitter"></i></a></li><?php endif; ?>
<?php if ($wentasi_social_facebook): ?><li><a target="_blank" href="<?php echo esc_url($wentasi_social_facebook); ?>"><i class="icon-facebook"></i></a></li><?php endif; ?>
<?php if ($wentasi_social_google): ?><li><a target="_blank" href="<?php echo esc_url($wentasi_social_google); ?>"><i class="icon-google-plus"></i></a></li><?php endif; ?>
<li><a class="search-bt" href="#"><i class="icon-search"></i></a></li>
</ul>
<div class="ft-search-hide"><?php get_search_form( true ); ?><div class="ft-shbg"></div></div>
</div>
</div>
</nav>
<section class="container clearfix">
<header id="header">
<div class="row clearfix">
<hgroup class="ft-logo">
<?php
$site_text_logo = get_theme_mod( 'wentasi_site_text_logo', get_bloginfo('name') );
$site_image_logo = get_theme_mod( 'wentasi_site_image_logo' );
$wentasi_logo_width = get_theme_mod( 'wentasi_logo_width', '105' );
?>
<?php if ( $site_image_logo ) : ?>
<?php if(is_home() || is_front_page()) : ?>
<h1 class="ct-logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<img<?php echo ($wentasi_logo_width != '') ? ' width="'.$wentasi_logo_width.'"' : ''; ?> src="<?php echo $site_image_logo; ?>" alt="<?php bloginfo('name'); ?>" />
<span><?php echo $site_text_logo; ?></span>
</a>
</h1>
<?php else: ?>
<div class="ct-logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<img<?php echo ($wentasi_logo_width != '') ? ' width="'.$wentasi_logo_width.'"' : ''; ?> src="<?php echo $site_image_logo; ?>" alt="<?php bloginfo('name'); ?>" />
<span><?php echo $site_text_logo; ?></span>
</a>
</div>
<?php endif; ?>
<?php else: ?>
<?php if(is_home() || is_front_page()) : ?>
<h1 class="ct-logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<?php $admin_email = get_bloginfo('admin_email');
echo get_avatar( $admin_email, 105 ); ?>
<span><?php echo $site_text_logo; ?></span>
</a>
</h1>
<?php else: ?>
<div class="ct-logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<?php $admin_email = get_bloginfo('admin_email');
echo get_avatar( $admin_email, 105 ); ?>
<span><?php echo $site_text_logo; ?></span>
</a>
</div>
<?php endif; ?>
<?php endif; ?>
</hgroup>
</div>
</header>