This repository was archived by the owner on Sep 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfooter.php
More file actions
115 lines (105 loc) · 4.37 KB
/
Copy pathfooter.php
File metadata and controls
115 lines (105 loc) · 4.37 KB
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
<footer class="site-footer">
<div class="row">
<div class="columns medium-3">
<h4><a href="<?php echo esc_url( home_url( '/' ) ); ?>">runcommand</a></h4>
<ul class="footer-list">
<li><a href="<?php echo esc_url( home_url( 'about/' ) ); ?>">About</a></li>
<li><a href="<?php echo esc_url( home_url( 'blog/' ) ); ?>">Blog</a></li>
<li><a href="<?php echo esc_url( home_url( 'contact/' ) ); ?>">Contact</a></li>
</ul>
</div>
<div class="columns medium-3">
<?php
$command_query = new WP_Query( array(
'post_type' => 'command',
'posts_per_page' => 5,
'post_status' => 'publish',
'orderby' => 'modified',
)); ?>
<h4><a href="<?php echo esc_url( home_url( 'commands/' ) ); ?>">Commands <small>(<?php echo (int) $command_query->found_posts; ?>)</small></a></h4>
<ul class="footer-list">
<?php if ( $command_query->have_posts() ) : ?>
<?php while( $command_query->have_posts() ) : $command_query->the_post(); ?>
<li><a title="<?php echo esc_attr( get_the_excerpt() ); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
<?php endif; ?>
</ul>
</div>
<div class="columns medium-3">
<?php
$spark_query = new WP_Query( array(
'post_type' => 'spark',
'posts_per_page' => 2,
'post_status' => 'publish',
)); ?>
<h4><a href="<?php echo esc_url( home_url( 'sparks/' ) ); ?>">Sparks <small>(<?php echo (int) $spark_query->found_posts; ?>)</small></a></h4>
<ul class="footer-list">
<?php if ( $spark_query->have_posts() ) : ?>
<?php while( $spark_query->have_posts() ) : $spark_query->the_post(); ?>
<li><a title="<?php echo esc_attr( get_the_excerpt() ); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
<?php endif; ?>
</ul>
</div>
<div class="columns medium-3 end">
<?php
$tip_query = new WP_Query( array(
'post_type' => 'tip',
'posts_per_page' => 2,
'post_status' => 'publish',
'orderby' => 'modified',
)); ?>
<h4><a href="<?php echo esc_url( home_url( 'tips/' ) ); ?>">Tips <small>(<?php echo (int) $tip_query->found_posts; ?>)</small></a></h4>
<ul class="footer-list">
<?php if ( $tip_query->have_posts() ) : ?>
<?php while( $tip_query->have_posts() ) : $tip_query->the_post(); ?>
<li><a title="<?php echo esc_attr( get_the_excerpt() ); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
<?php endif; ?>
</ul>
</div>
</div>
<div class="row">
<div class="columns text-center">
<div class="made-by">
<small>Made in <img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/oregon.svg' ); ?>" alt="Tualatin, Oregon" /> by runcommand, LLC. • <a href="https://github.com/runcommand"><i class="fa fa-github"></i> Github</a> • <a href="https://twitter.com/runcommand"><i class="fa fa-twitter"></i> Twitter</a></small>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
<?php if ( 'runcommand.io' === parse_url( home_url(), PHP_URL_HOST )
&& ! current_user_can( 'manage_options' ) ) : ?>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-75452026-1', 'auto');
ga('send', 'pageview');
</script>
<?php endif; ?>
<script async>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return t;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script>
<div id="fb-root"></div>
<script async>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
</body>
</html>