Commit 2e784b41 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Commit WIP

parent e25520ae
......@@ -121,113 +121,53 @@
<div id="footer" class="uw-footer">
<div id="uw-site-share" class="uw-site-share">
<div class="uw-section--inner">
<div class="uw-section-share">
</div>
<div class="uw-section-share"></div>
<ul class="uw-site-share-top">
<li class="uw-site-share--button__top">
<a href="#" id="uw-top-button" class="uw-top-button">
<i class="ifdsu fdsu-arrow"></i>
<span class="uw-footer-top-word">TOP</span></a>
<i class="ifdsu fdsu-arrow"></i>
<span class="uw-footer-top-word">TOP</span>
</a>
</li>
<li class="uw-site-share--button__share">
<a href="#" class="uw-footer-social-button">
<i class="ifdsu fdsu-share"></i>
<span class="uw-footer-share-word">Share</span>
<i class="ifdsu fdsu-share"></i>
<span class="uw-footer-share-word">Share</span>
</a>
</li>
</ul>
</div>
</div>
<div id="site-footer" class="uw-site-footer site-footer-toggle open-site-footer">
<div class="uw-section--inner">
<?php if (empty($page['site_footer'])): ?>
<div class="uw-site-footer1 uw-no-site-footer">
<?php else : ?>
<div class="uw-section--inner">
<?php
// If there is no local site footer, insert generic elements.
if (empty($page['site_footer'])) {
?>
<div class="uw-site-footer1 uw-no-site-footer">
<div class="uw-site-footer1">
<?php endif; ?>
<div class="uw-site-footer1--logo-dept">
<?php
$site_logo = variable_get('uw_nav_site_footer_logo');
$site_logo_link = variable_get('uw_nav_site_footer_logo_link');
$facebook = variable_get('uw_nav_site_footer_facebook');
$twitter = variable_get('uw_nav_site_footer_twitter');
$instagram = variable_get('uw_nav_site_footer_instagram');
$youtube = variable_get('uw_nav_site_footer_youtube');
$linkedin = variable_get('uw_nav_site_footer_linkedin');
$alt_tag = str_replace('_', ' ', variable_get('uw_nav_site_footer_logo')) . ' logo';
$arr = explode( " " , $alt_tag );
$arr = array_unique( $arr );
$alt_tag = implode(" " , $arr);
?>
<?php if ( isset( $site_logo_link ) ) : ?>
<a href="<?php print $site_logo_link; ?>"><img src="<?php print base_path() . drupal_get_path('module', 'uw_nav_site_footer'); ?>/logos/<?php print variable_get('uw_nav_site_footer_logo'); ?>.png" alt="<?php print $alt_tag; ?>" /></a>
<?php else : ?>
<?php $site_name = (strtolower($site_name)); print '<a href="' . url('<front>') . '">' . (ucfirst($site_name)) . '</a>'; ?>
<?php endif; ?>
</div>
<div class="uw-site-footer1--contact">
<ul class="uw-footer-social">
<?php if($facebook !== "" && $facebook !== NULL): ?>
<li>
<a href="https://www.facebook.com/<?php print check_plain($facebook); ?>">
<i class="ifdsu fdsu-facebook"></i>
<span class="off-screen">facebook</span>
</a>
</li>
<?php endif; ?>
<?php if($twitter !== "" && $twitter !== NULL): ?>
<li>
<a href="https://www.twitter.com/<?php print check_plain($twitter); ?>">
<i class="ifdsu fdsu-twitter"></i>
<span class="off-screen">twitter</span>
</a>
</li>
<?php endif; ?>
<?php if($youtube !== "" && $youtube !== NULL): ?>
<li>
<a href="<?php print check_plain($youtube); ?>">
<i class="ifdsu fdsu-youtube"></i>
<span class="off-screen">youtube</span>
</a>
</li>
<?php endif; ?>
<?php if($instagram !== "" && $instagram !== NULL): ?>
<li>
<a href="<?php print check_plain($instagram); ?>">
<i class="ifdsu fdsu-instagram"></i>
<span class="off-screen">instagram</span>
</a>
</li>
<?php endif; ?>
<?php if($linkedin !== "" && $linkedin !== NULL): ?>
<li>
<a href="<?php check_plain(print $linkedin); ?>">
<i class="ifdsu fdsu-linkedin"></i>
<span class="off-screen">linkedin</span>
</a>
</li>
<?php endif; ?>
</ul>
</div>
</div>
<?php if (!empty($page['site_footer'])): ?>
<div class="uw-site-footer2">
<?php print render($page['site_footer']); ?>
<div class="uw-site-footer1--logo-dept">
<?php print '<a href="' . url('<front>') . '">' . $site_name . '</a>'; ?>
</div>
<!-- This would have printed before, but there doesn't seem to be a structural reason.
<div class="uw-site-footer1--contact">
<ul class="uw-footer-social"></ul>
</div>
<?php endif; ?>
-->
</div>
</div>
<?php
}
// Print the local site footer.
else {
print render($page['site_footer']);
}
?>
</div>
</div>
<?php print render($page['global_footer']); ?>
</div>
</div>
</div>
</div><!--/site-->
<div class="ie-resize-fix"></div>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment