forked from victorianwaderstudygroup/vwsg-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
65 lines (62 loc) · 2.74 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
</div>
<footer>
<div class="container">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-3 col-md-offset-0 twitter">
<p class="handle">
<a href="//twitter.com/vwsg_web">vwsg_web</a>
</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 gallery">
<h3><a href="<?=get_permalink( get_post( 54 ) ) ?>">Gallery</a></h3>
<?php
$i = 0;
$args = [
'category' => 3,
'numberposts' => 9,
'post_type' => 'attachment',
'orderby' => 'rand'
];
foreach (get_posts($args) as $post) :
setup_postdata($post);
if ($i % 3 == 0) :
if ($i != 0) : ?>
</div>
<?php endif; ?>
<div>
<?php
endif ?><a data-fancybox="footer-gallery" href="<?=wp_get_attachment_url(get_the_ID()) ?>" data-caption="<?=wp_get_attachment_caption(get_the_ID());?>"><img src="<?=wp_get_attachment_image_src(get_the_ID(), 'thumbnail')[0]; ?>" alt="<?php the_title()?>"></a>
<?php
$i++;
endforeach;
wp_reset_postdata();
?>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-3 bulletin">
<h3><a href="<?=get_permalink( get_post(282) ) ?>">Bulletin </a></h3>
<?php
$i = 0;
$args = [
'category' => 4,
'numberposts' => 1,
'post_type' => 'attachment',
'orderby' => 'title'
];
foreach (get_posts($args) as $post) : setup_postdata($post); ?>
<a href="<?=wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); ?>" target="_blank" class="bulletin">
<img src="<?=wp_get_attachment_image_src(get_the_ID(), 'thumbnail')[0]; ?>" alt="<?php the_title()?>"><br>
<?=nl2br(get_the_content(get_the_ID()));?>
</a>
<?php
endforeach;
wp_reset_postdata();
?>
</div>
<div class="col-xs-12 copyright">
<p>© Copyright <?=date('Y');?> VWSG. Website maintained by <?=get_userdata(1)->data->display_name; ?>. Page last updated: <?=get_the_modified_date('F d, Y')?></p>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>