-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-home copy.php
145 lines (127 loc) · 6.22 KB
/
header-home copy.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="sl" xml:lang="sl" xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--BOOTSTRAP LINK-->
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> -->
<!-- <script type="text/javascript" src="//use.typekit.net/rha7jnl.js"></script> -->
<!-- <script type="text/javascript">try{Typekit.load();}catch(e){}</script> -->
<meta property="fb:admins" content="1092820016" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.truncate.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/myScripts.js?v=3.11248945"></script>
<!-- <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css?v=3.31114321154083" type="text/css" media="screen" /> -->
<title><?php wp_title('«', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/home.css" type="text/css" media="screen">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!-- ZA FLATICON IKONE
<a href="https://www.flaticon.com/free-icons/instagram" title="instagram icons">Instagram icons created by edt.im - Flaticon</a>
<a href="https://www.flaticon.com/free-icons/facebook" title="facebook icons">Facebook icons created by Freepik - Flaticon</a>
-->
<!--MAILCHIMP-->
<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/ec659440ad9688227c81bf275/5de604a6b886ac4f1b4c9830e.js");</script>
<!--<style>
.socialnaOmrezjaMenu {
float: right;
}
</style>-->
<!-- favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=jw7Kjj52yv">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=jw7Kjj52yv">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=jw7Kjj52yv">
<link rel="manifest" href="/site.webmanifest?v=jw7Kjj52yv">
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=jw7Kjj52yv" color="#007a8a">
<link rel="shortcut icon" href="/favicon.ico?v=jw7Kjj52yv">
<meta name="apple-mobile-web-app-title" content="LUD Literatura">
<meta name="application-name" content="LUD Literatura">
<meta name="msapplication-TileColor" content="#ffc40d">
<meta name="msapplication-TileImage" content="/mstile-144x144.png?v=jw7Kjj52yv">
<meta name="theme-color" content="#ffdc00">
<!-- end favicons -->
<!-- <link href="<?php bloginfo('template_url'); ?>/js/flex/flexslider.css" rel="stylesheet" type="text/css" /> -->
<!-- <script src="<?php bloginfo('template_url'); ?>/js/flex/jquery.flexslider-min.js"></script> -->
<script>
/*
function getSliderItemWidth() {
return $('#newsBulletin').width() / 5;
}
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
pauseOnHover: true,
minItems: 5,
maxItems: 5,
//itemWidth: getSliderItemWidth(),
itemWidth: 100,
itemMargin: 20
})
});
*/
</script>
<?php
// custom scripts & styles
if (($myCustomHeader = get_post_meta($post->ID, 'my-custom-header', true)) != false) {
echo $myCustomHeader;
}
if (($myCustomScript = get_post_meta($post->ID, 'my-custom-script', true)) != false) {
echo "<script type='text/javascript'>
$(document).ready(function() {
" . $myCustomScript . "
})
</script>";
}
if (($myCustomStyle = get_post_meta($post->ID, 'my-custom-style', true)) != false) {
echo "<style type='text/css'>" . $myCustomStyle . "</style>";
}
?>
<?php wp_head(); ?>
<?php require "mySilktideCookieConsent.php"; ?>
</head>
<?php
$bkg = '';
if (is_home() || is_front_page()) {
//$bkg = 'gray-background';
$bkg = 'white-background';
} elseif (is_single()) {
$bkg = 'white-background';
} else {
}
/* za knjige? */
/*
* not used anymore?
$queryTax = $wp_query->query_vars['taxonomy'];
$queryTerm = $wp_query->query_vars['term'];
if ($queryTax == "zbirka" and isset($queryTerm)) {
$series = $queryTerm;
}
*/
/* za knjige? */
?>
<body <?php body_class("sans $bkg"); ?>>
<div id="myTopSocialContainer" class="relative text-outer" style="background-color: #648AAA;">
<div class="mySocialStripeMenu" style="display: flex; justify-content: space-between; align-items: center; height: 65px;">
<a class="font-size-3 hide-title" href="<?php echo home_url(); ?>" style="font-weight: bold;">LUD Literatura</a>
<div style="display: flex; justify-content: space-between; align-items: center; gap: 20px;">
<div style="list-style: none; position: sticky;">
<?php dynamic_sidebar('newlit-iskanjesitewide-widget'); ?>
</div>
<div style="display: inline-block;"> <!-- kličejo se podobne kot za true liquid block inner css class-->
<?php wp_nav_menu(array( 'container_class' => 'menu-social-container font-size-1', 'theme_location' => 'menu_social', 'menu_class' => 'menu za socialna omrezja social-icons' ) ); ?>
</div>
</div>
</div>
</div>
<div id="myTopStripeContainer" class="relative text-outer" style="background-color: white;">
<div class="myTopStripeMenu">
<div id="myTopStripe" class="newlit-css-transition-hide show-when-touched font-size-3">
<div class="center center-margins show-only-on-small-screen font-size-3" style="line-height: 3em">
<a class="font-size-2 light" href="<?php echo home_url(); ?>">LUD Literatura</a>
<i class="touch-to-show fa fa-bars"></i>
</div>
<?php wp_nav_menu( array( 'container_class' => 'menu-menu-ena-container font-size-1', 'theme_location' => 'menu_one', 'menu_class' => 'menu clearfix' ) ); ?>
</div>
</div>
</div>
<hr style="height:2px; width:100%; border-width:0; color:grey;">
<div id="container" class="clearfix">