Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cornerstone/footer.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
93 lines (89 sloc)
2.46 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The template for displaying the footer. | |
* | |
* Contains the closing of the #content div and all content after | |
* | |
* @package cornerstone | |
*/ | |
if ( apply_filters( 'load_custom_footer', false ) ) { | |
$custom_footer = apply_filters( 'get_custom_footer', '' ); | |
if ( '' != $custom_footer ) { | |
// Get the header that we just received | |
// and call the native 'get_header' function | |
// as usual | |
load_template( $custom_footer ); | |
// By calling 'return' we are skipping | |
// parsing this template any further | |
return; | |
} | |
} | |
?> | |
</div><!-- .container--> | |
</div><!-- #content --> | |
<div id="footers"> | |
<?php get_template_part('inc/mega','footer'); ?> | |
<footer id="footer" class="site-footer" role="contentinfo"> | |
<div class="container"> | |
<ul id="uc-footer-links" class="clearfix"> | |
<?php | |
$options = get_option('uconn_banner_options'); | |
$text_string = $options['text_string']; | |
$location = $text_string; | |
if($location == 'uchc'){ | |
?> | |
<li> | |
<a href="http://health.uconn.edu/az/">A-Z Index</a> | |
</li> | |
<li> | |
<a href="http://health.uconn.edu/">UConn Health</a> | |
</li> | |
<li> | |
<a href="http://health.uconn.edu/disclaimersprivacy/">Disclaimer, Privacy Notice & Copyright</a> | |
</li> | |
<li> | |
<a href="http://health.uconn.edu/plan-your-visit/locations-and-directions/">Maps & Directions</a> | |
</li> | |
<!-- <li> | |
<a href="http://health.uconn.edu/contact-us/">Contact Us</a> | |
</li> --> | |
<li> | |
© UConn Health | |
</li> | |
<?php | |
} else { | |
?> | |
<li> | |
© <a href="http://uconn.edu">University of Connecticut</a> | |
</li> | |
<li> | |
<a href="http://uconn.edu/disclaimers-privacy-copyright/">Disclaimers, Privacy & Copyright</a> | |
</li> | |
<?php | |
} | |
?> | |
<li> | |
<a href="<?php echo site_url(); ?>/wp-admin/">Webmaster Login</a> | |
</li> | |
<?php | |
// Only display the footer if a menu of "Footer" exists in the site. | |
if (wp_get_nav_menu_object('Footer')){ | |
$defaults = array( | |
'menu' => 'Footer', | |
'container' => false, | |
'items_wrap' => '%3$s', | |
'depth' => 1, | |
'fallback_cb' => false | |
); | |
wp_nav_menu( $defaults ); | |
} | |
?> | |
</ul> | |
</div> | |
</footer> | |
</div><!-- #footers --> | |
</div><!-- #page --> | |
<!--[if lte IE 9]></div><![endif]--> | |
<?php wp_footer(); ?> | |
</body> | |
</html> |