-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfooter.php
92 lines (89 loc) · 4.26 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
<?php
/**
* @package WordPress
* @subpackage Agrilife
*/
$options = get_option('AgrilifeOptions');
$isresearch = (is_array($options) ? $options['isResearch'] : true);
$isextension = (is_array($options) ? $options['isExtension'] : true);
$iscollege = (is_array($options) ? $options['isCollege'] : true);
$istvmdl = (is_array($options) ? $options['isTvmdl'] : true);
$collegeonly = ($iscollege && !$isextension && !$isresearch && !$istvmdl ? true : false);
$footerhtml = (is_array($options) ? $options['footerHtml'] : '');
?>
<!-- begin footer -->
<div id="agrilife-footer">
<div id="agrilife-footer-box">
<?php
/*
Rewrite Edit Tab for Mapped Domains
*/
function unmapped_admin_link($link) {
return str_replace('https','http', $link);
}
if ( defined( 'DOMAIN_MAPPING' ) ) {
// stripping https out prevents mapped domains from throwing a bad SSL Cert error
// links to admin get redirected to https under the original (unmapped) domain
add_filter('edit_post_link', 'unmapped_admin_link', 10, 2);
edit_post_link('You are Logged in: Edit this entry.', '', '');
} else {
echo "<!-- No Mapping-->";
edit_post_link('You are Logged in: Edit this entry.', '', '');
}
?>
<div id="tamus">
<?php if($collegeonly) : ?>
<a href="http://www.tamu.edu"><img src="<?php echo THEME_TEMPLATEURL;?>/images/tamu-logo.gif?v=100" alt="Texas A&M University" /></a>
<?php else: ?>
<a href="http://www.tamus.edu"><img src="<?php echo THEME_TEMPLATEURL;?>/images/tamus-logo.png?v=100" alt="Texas A&M System" /></a>
<?php endif; ?>
</div>
<div id="agrilife-site-info">
<div>
<?php echo $footerhtml; ?>
</div>
© <script type="text/javascript">
var d = new Date();
document.write(d.getFullYear());
</script> All rights reserved
<ul>
<li class="row-start"><a href="http://agrilife.tamu.edu/compact/">Compact with Texans</a></li>
<li><a href="http://agrilife.tamu.edu/privacy/">Privacy and Security</a></li>
<li><a href="http://itaccessibility.tamu.edu/">Accessibility Policy</a></li>
<li><a href="http://www.dir.texas.gov/pubs/retired/Pages/srrpub11-agencylink.aspx">State Link Policy</a></li>
<li><a href="https://www.tsl.texas.gov/trail/index.html">Statewide Search</a></li>
<li class="row-start"><a href="http://agrilifeas.tamu.edu/hr/diversity/equal-opportunity-educational-programs/">Equal Opportunity for Educational Programs Statement</a></li>
<li><a href="https://aggie.tamu.edu/financial-aid/veterans">Veterans Benefits</a></li>
<li><a href="https://fch.tamu.edu/programs/military-programs/">Military Families</a></li>
<li class="row-start"><a href="https://secure.ethicspoint.com/domain/en/report_custom.asp?clientid=19681">Risk, Fraud & Misconduct Hotline</a></li>
<li><a href="https://gov.texas.gov/organization/hsgd">Texas Homeland Security</a></li>
<li><a href="http://agrilife.org/required-links/orpi/">Open Records/Public Information</a></li>
<li class="row-start wp-footer"><a href="http://akismet.com/">Protected by Akismet</a></li>
<li class="wp-footer"><a href="http://wordpress.com/">WordPress</a></li>
</ul>
</div><!-- #agrilife-site-info -->
</div><!-- #agrilife-footer-box -->
</div><!-- #agrilife-footer -->
<?php wp_footer(); ?>
<?php if ($options['googleAnalytics'] <> ''){ ?>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("<?php echo $options['googleAnalytics'];?>");
pageTracker._trackPageview();
} catch(err) {}</script>
<?php } ?>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-12777638-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>