-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·119 lines (105 loc) · 5.65 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
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
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title><?php if (is_singular()): ?>تدوينات كتب عربية حرة | نحو معرفة حرة<?php ; else: ?> كتب عربية حرة | نحو معرفة حرة<?php endif; ?></title>
<?php wp_head(); ?>
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<?php if (get_theme_mod('librebooks_custom_header_code')) {
echo get_theme_mod('librebooks_custom_header_code');
} ?>
<?php if (get_theme_mod('librebooks_fb_id') != '') { ?>
<div id="fb-root"></div>
<script type="text/javascript">(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.async=true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=<?php echo get_theme_mod('librebooks_fb_id') ?>";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php } ?>
<?php if (get_theme_mod('librebooks_twt_account') != '') { ?><script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id; js.async=true; js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script><?php } ?>
</head>
<body <?php body_class('body_width'); ?>>
<div class="mainnav" id="sharebox">
<div class="librebooks_container">
<div id="scroll_to_home" class="homesb">
<a href="<?php bloginfo('url'); ?>" title="<?php echo __('العودة للصفحة الرئيسية', 'LibreBooks'); ?>">𝍖</a>
</div>
<span class="snetworks">
<?php if (get_theme_mod('librebooks_fb_id') != '' && get_theme_mod('librebooks_fb_page') != '') { ?>
<span class="face">
<div class="fb-like" data-href="https://facebook.com/<?php echo get_theme_mod('librebooks_fb_page'); ?>" data-send="false" data-layout="button_count" data-width="70" data-show-faces="false"></div>
</span>
<?php } ?>
<?php if (get_theme_mod('librebooks_twt_account') != '') { ?>
<span class="twitter">
<a href="https://twitter.com/<?php echo get_theme_mod('librebooks_twt_account'); ?>" class="twitter-follow-button" data-show-count="true" data-lang="en" >Tweet</a>
</span>
<?php } ?>
</span>
<span class="left_topbar">
<?php if (get_theme_mod('librebooks_enable_taxonomies_menu')) { ?>
<?php $taxonomies_link = ''; if (get_theme_mod('librebooks_taxonomies_link')) { $taxonomies_link = get_theme_mod('librebooks_taxonomies_link'); } ?>
<ul id="menu">
<li><a href="<?php echo $taxonomies_link;?>"><?php echo __('التصنيفات', 'LibreBooks'); ?></a>
<ul>
<li><a href="<?php echo $taxonomies_link; ?>"><?php echo __('كل التصنيفات', 'LibreBooks'); ?></a></li>
<?php
if ( get_theme_mod('librebooks_taxonomies_to_show') ) {
$taxonomies = get_theme_mod('librebooks_taxonomies_to_show');
foreach ( $taxonomies as $taxonomy ) {
$taxonomy = get_taxonomy($taxonomy);
echo '<li><a href="'.$taxonomies_link.'/#'.$taxonomy->name.'">' . $taxonomy->labels->name . '</a></li>';
}
} ?>
</ul>
</li>
</ul>
<?php } ?>
<span class="left_topbar">
<?php if (get_theme_mod('librebooks_twt_account') != '') { ?><a href="https://twitter.com/<?php echo get_theme_mod('librebooks_twt_account'); ?>" class="sb min twitter small" title="تويتر" target="blank"></a><?php } ?>
<?php if (get_theme_mod('librebooks_fb_page') != '') { ?><a href="https://www.facebook.com/<?php echo get_theme_mod('librebooks_fb_page');?>" class="sb min facebook small" title="فيس بوك" target="blank"></a><?php } ?>
<a href="<?php bloginfo('url'); ?>/feed/" class="sb min rss small" title="الخلاصات"></a>
<form method="get" role="search" action="<?php bloginfo('url'); ?>/" id="search" title="<?php echo __('ابحث في الموقع', 'LibreBooks'); ?>">
<input name="s" type="text" size="40" placeholder="" />
</form>
</span>
</span>
</div>
</div>
<div id="header" class="headerbg">
<div class="librebooks_container">
<div class="right">
<div class="logo">
<a class="logo" href="<?php bloginfo('url'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<h1 class="logo"><?php echo bloginfo('name'); ?></h1>
<h2 class="logo"><?php echo bloginfo('description'); ?></h2>
</a>
</div>
</div>
<div class="left">
<div class="header_menu_con">
<div class="header_menu" id="more">
<?php wp_nav_menu(
array(
'container' => false,
'walker' => new WPDocs_Walker_Nav_Menu()
)
); ?>
<div class="clear"></div>
<!--//header_menu-->
</div>
</div><!--//left-->
<div class="clear"></div>
</div>
<div class="clear"></div>
</div><!--//header-->
</div>
<div id="main_container">