-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
202 lines (168 loc) · 9.1 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package regnsky
*/
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="container">
<div class="flex">
<div class="col col-xs-12 col-sm-6 col-lg-3 footer-module follow-regnsky">
<h4>Følg Regnsky</h4>
<!-- <p class="hidden-sm-down">Subscribe til vores RSS-feed og find os på følgende sider:</p> -->
<div class="social-buttons">
<a href="<?php echo bloginfo('rss2_url'); ?>" target="_blank"><img class="social-btn social-btn-rss" src="<?php echo get_stylesheet_directory_uri(); ?>/img/icon-rss_white.png" alt="RSS Feed"></a>
<a href="http://www.facebook.com/regnsky.dk" target="_blank"><img class="social-btn social-btn-fb" src="<?php echo get_stylesheet_directory_uri(); ?>/img/icon-fb_white.png" alt="Regnsky on Facebook"></a>
<a href="http://twitter.com/regnskyblog" target="_blank"><img class="social-btn social-btn-twitter" src="<?php echo get_stylesheet_directory_uri(); ?>/img/icon-twitter_white.png" alt="Regnsky on twitter"></a>
<a href="http://hypem.com/blog/regnsky/6579" target="_blank"><img class="social-btn social-btn-hypem" src="<?php echo get_stylesheet_directory_uri(); ?>/img/icon-hypem_white.png" alt="Regnsky on Hype Machine"></a>
</div>
<div class="footer-fb">
<span class="fb-follow-text">Følg os på Facebook:</span>
<div class="fb-like" data-href="https://www.facebook.com/regnsky.dk/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
</div>
</div>
<div class="col col-xs-12 col-sm-6 col-lg-3 footer-module about-regnsky">
<h4>Om Regnsky</h4>
<p>Regnsky er en dansksproget musikblog, der har eksisteret siden 2008. Her skriver skribenterne af lyst og kærlighed til musikken om interessante og aktuelle kunstnere. <a href="<?php echo esc_url( home_url( '/om-regnsky/' ) ); ?>">Læs mere</a>.</p>
</div>
<div class="col col-xs-12 col-sm-6 col-lg-3 footer-module recent-comments">
<h4>Seneste kommentarer</h4>
<ul>
<?php
$comment_args = array(
'number' => 3,
'type' => 'comment'
);
$comments = get_comments($comment_args);
foreach($comments as $comment) : ?>
<li class="recent-comment">
<span class="comment-author-link">
<a href="<?php echo($comment->comment_author_url); ?>" rel="external nofollow" class="url">
<?php echo($comment->comment_author); ?>
</a>
</span>
til
<a href="<?php echo get_post_permalink( $comment->comment_post_ID); ?>">
<?php echo get_the_title( $comment->comment_post_ID ); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="col col-xs-12 col-sm-6 col-lg-3 footer-module recent-posts">
<h4>Seneste indlæg</h4>
<ul>
<?php
$post_args = array(
'numberposts' => 3,
'post_status' => 'publish'
);
$recent_posts = wp_get_recent_posts($post_args);
foreach( $recent_posts as $recent ) {
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
}
?>
</ul>
</div>
</div>
</div>
</footer><!-- #colophon -->
</div><!-- #page -->
<div class="site-info">
<h5>
Copyright © Regnsky-skribenterne <?php echo date("Y"); ?><span class="hidden-md-up"><br></span><span class="hidden-sm-down"> · </span>Hjemmeside af <a href="http://www.ungtriumf.dk/">Benjamin Vedel Ottensten</a><span class="hidden-md-up"><br></span><span class="hidden-sm-down"> · </span>Illustration af Nan Na Hvass<span class="hidden-lg-up"><br><br></span><span class="hidden-md-down"> · Tak til </span><img src="<?php echo get_stylesheet_directory_uri(); ?>/img/kunstfonden.svg">
</h5>
</div><!-- .site-info -->
</div> <!-- /.page-wrap -->
<!-- <script src="<?php //echo get_stylesheet_directory_uri(); ?>/js/lodash.throttle.min.js"></script> -->
<?php wp_footer(); ?>
<!-- FastClick -->
<script>
(function (window, document) {
"use strict";
var scriptInclude = (function () {
var noop = function () {
return;
};
return function () {
var toLoad = arguments.length,
callback,
hasCallback = arguments[toLoad - 1] instanceof Function,
script,
i,
onloaded = function () {
toLoad -= 1;
if (toLoad === 0) {
callback.call();
}
};
if (hasCallback) {
toLoad -= 1;
callback = arguments[arguments.length - 1];
} else {
callback = noop;
}
for (i = 0; i < toLoad; i += 1) {
script = document.createElement("script");
script.src = arguments[i];
script.onload = script.onerror = onloaded;
document.head.appendChild(script);
}
};
}());
var includefastClick = function () {
var isTouchDevice =
("ontouchstart" in window)
|| window.DocumentTouch
&& document instanceof DocumentTouch;
if (isTouchDevice) {
scriptInclude("<?php echo get_stylesheet_directory_uri(); ?>/js/fastClick.min.js", function () {
FastClick.attach(document.body);
});
}
};
// Load FastClick
includefastClick();
// Remove 300ms delay on touch screens
if ('addEventListener' in document) {
document.addEventListener('DOMContentLoaded', function() {
FastClick.attach(document.body);
}, false);
}
}(this, document));
</script>
<!-- Lazy load -->
<script>
$.extend($.lazyLoadXT, {
edgeY: 200
});
</script>
<!-- Facebook -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '137149236384098', // App ID
// channelUrl : '//www.YOUR_DOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
</body>
</html>