-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
164 lines (138 loc) · 5.19 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
<div class="clear"></div>
<?php wp_reset_query(); ?>
<?php if(!is_attachment()) { ?>
</div>
<footer class="custom-background">
<div class="footer-container">
<div class="footer-right">
<div class="copy">
<p class="nomargin rubiks">©<?php echo date(Y)?> <?php bloginfo('name'); ?>. All rights reserved.</p>
<p class="nature">Designed & coded with <span class="red team1160-"></span> in San Marino</p>
</div>
<ul class="screen">
<li class="follow red">
<a href="http://www.titaniumrobotics.com/for-students/donations/">
<span class="team1160-heart-outline"></span>
</a>
</li>
<li class="follow blue">
<a href="http://www.facebook.com/team1160" target="_blank">
<span class="team1160-social-facebook-circular"></span>
</a>
</li>
<li class="follow twitterblue">
<a href="http://twitter.com/frc1160" target="_blank">
<span class="team1160-social-twitter-circular"></span>
</a>
</li>
<li class="follow red">
<a href="http://www.youtube.com/titaniumrobotics" target="_blank">
<span class="team1160-video-outline"></span>
</a>
</li>
<li class="follow black">
<a href="http://www.github.com/FRC-Team-1160" target="_blank">
<span class="team1160-social-github-circular"></span>
</a>
</li>
<li class="follow blue">
<a href="mailto:[email protected]" target="_blank">
<span class="team1160-social-at-circular"></span>
</a>
</li>
</ul>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</footer>
<?php } ?>
<?php wp_footer(); ?>
<!-- RESPONSIVE VIDEOS -->
<?php if(!is_front_page()) { ?>
<script type="text/javascript">
jQuery(function ($) {
"use strict";
$(function () {
// Find all YouTube videos
var $allVideos = $("iframe"),
// The element that is fluid width
$fluidEl = $(".entry");
// Figure out and save aspect ratio for each video
$allVideos.each(function () {
$(this)
.data('aspectRatio', this.height / this.width)
// and remove the hard coded width/height
.removeAttr('height')
.removeAttr('width');
});
// When the window is resized
// (You'll probably want to debounce this)
$(window).resize(function () {
var newWidth = $fluidEl.width();
// Resize all videos according to their own aspect ratio
$allVideos.each(function () {
var $el = $(this);
$el
.width(newWidth)
.height(newWidth * $el.data('aspectRatio'));
});
// Kick off one resize to fix all videos on page load
}).resize();
});
});
</script>
<?php } ?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<!--UNIMPORTANT CSS CODE-->
<!--START GOOGLE FONTS-SOURCE SANS PRO-->
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic|Source+Code+Pro:400,700' rel='stylesheet' type='text/css'>
<!--END GOOGLE FONTS-SOURCE SANS PRO-->
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/assets/typography.css?ver=2.3" />
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/team-1160-icons.css" />
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/forms.css?ver=3.2.3" />
<link property="stylesheet" rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/print.css?ver=1.0" media="print" />
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/schedules.css?ver=2" />
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/prism.css" />
<?php
$custom_fields = get_post_custom();
$construction = $custom_fields['construction'];
if(!empty($construction)) {
foreach ( $construction as $key => $value ) {
if ($value == 'under construction') {
?>
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/construction.css?ver=1" />
<?php
}
}
}
?>
<!-- LIGATURES -->
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/liga.js"></script>
<!-- PRISM CODE HIGHLIGHTER -->
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/prism.js"></script>
<!-- NAVIGATION HOOK-UP -->
<script type="text/javascript">
var navigation = responsiveNav("#nav", {
transition:100,
label:"Open Menu",
customToggle:"toggle",
});
</script>
<?php include_once("analyticstracking.php") ?>
<script>
(function($) {
var mn = $("#toc_container");
mns = "tighter";
hdr = $('header').height();
$(window).scroll(function() {
if( $(this).scrollTop() > hdr ) {
mn.addClass(mns);
} else {
mn.removeClass(mns);
}
});
})( jQuery );
</script>
</body>
</html>