-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
182 lines (138 loc) · 4.85 KB
/
footer.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<footer id="footer" class="b80 cwhite pr z2 cle">
<div class="n9">
<div class="footer footer1">
<div class="minus10">
<div class="col col1 fl n33 plr10">
<h3 class="mb40 pb40 ttn fblack">KiMitTud</h3>
<?php // https://blog.atlatszo.hu/kimittud.xml // 5 db ?>
<p class="mb40">Legutóbb teljesült adatigénylések:</p>
<ul>
<?php dynamic_sidebar('sidebar-footer-2'); ?>
</ul>
</div>
<div class="col col2 fl n33 plr10">
<h3 class="mb40 pb40 ttn fblack">Üvegzseb figyelő</h3>
<p class="mb40">Legutóbb megváltozott üvegzsebek:</p>
<ul>
<?php echo bag_tracker(5); ?>
</ul>
</div>
<div class="col col3 fl n33 plr10">
<h3 class="mb40 pb40 ttn fblack"><?php _e('Archívum', 'atlatszo'); ?></h3>
<ul class="the_archive archive_by_month mb30">
<?php
$the_current_month=date('n');
$args_archive_by_month=array(
'limit' => $the_current_month
);
wp_get_archives($args_archive_by_month); ?>
</ul>
<ul class="the_archive archive_by_year">
<?php
$args_archive_by_year=array(
'type' => 'yearly'
);
wp_get_archives($args_archive_by_year); ?>
</ul>
</div>
<div class="cl"></div>
</div>
</div>
<div class="footer footer2 pt25 mt50">
<div class="shell">
<div class="ib n30 copyright vm"><img src="<?php bloginfo('template_url')?>/i/atlatszo-logo-footer.svg" width="116" height="47" alt="<?php bloginfo('name')?>" /></a></div><div class="footermenu ib n70 vm">
<ul class="footermenu ar">
<?php wp_nav_menu( array('container' => '', 'items_wrap' => '%3$s', 'theme_location' => 'footermenu', 'item_spacing' => 'discard')); ?>
</ul>
</div>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
<script src="<?php bloginfo('template_url')?>/j/swp/js/jquery.swipebox.js"></script>
<link href="<?php bloginfo('template_url')?>/j/owl/owl.carousel.min.css" rel="stylesheet">
<link href="<?php bloginfo('template_url')?>/j/owl/owl.theme.default.min.css" rel="stylesheet">
<script src="<?php bloginfo('template_url')?>/j/owl/owl.carousel.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
// Tovabbi sztorik slider on mobile
$('#tovabbi_sztorik_slider').owlCarousel({
items: 1
});
//Swipebox
//$("a[rel='swipebox'], a.swipebox, .wp-caption a").swipebox({useCSS:true, useSVG:false});
$(".accmenu a").click(function(e) {
e.preventDefault();
});
$(".accmenu").click(function(e) {
e.preventDefault();
$('.downmenu').hide();
$('.accmenu').removeClass('active');
$(this).addClass('active');
$(this).next().slideToggle('medium', function() {
});
});
// 18 warning
$("#was18").click(function(e) {
e.preventDefault();
$('#okm18').remove();
});
// Main menu opener
$("#menuopener").click(function(e) {
e.preventDefault();
$('#hungry').toggle();
$('#satiated').toggle();
$('#the_red_heart').toggle();
$('#the_mobile_menu').slideToggle('medium', function() {
});
});
// Search box opener
$("#close_the_search, .submenu li.search a, .socialmenu li.search a").click(function(e) {
e.preventDefault();
/*$('#hungry').toggle();
$('#satiated').toggle();
$('#the_red_heart').toggle();*/
$('#the_searchform').slideToggle('medium', function() {
});
});
//scroll to anchor from sidebar
$(".alink").click(function() {
$('#side .alink').removeClass('active');
$(this).addClass('active');
var aid=$(this).attr('itemprop');
var aTag = $("h2[id='"+aid+"']");
$("html, body").animate({ scrollTop: aTag.offset().top }, 'slow');
});
// Submenu
$("#mainmenu li:not(.lastmenu) a").click(function(e) {
e.preventDefault();
$('div.submenus').slideToggle('medium', function() {
});
/*$('#side .alink').removeClass('active');
$(this).addClass('active');
var aid=$(this).attr('itemprop');
var aTag = $("h2[id='"+aid+"']");
$("html, body").animate({ scrollTop: aTag.offset().top }, 'slow');*/
});
window.onscroll = function(){
if (window.pageYOffset<190) {
//stick on
if (jQuery("body").hasClass("sticky")) {jQuery("body").removeClass("sticky");}
} else {
//sticky off
if (jQuery("body").hasClass("sticky")) {} else {jQuery("body").addClass("sticky");}
}
};
});
</script>
</body>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-24025028-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-24025028-1', { 'anonymize_ip': true });
</script>
</html>