<?php
$jsextra = is_null($this->jsextra) ? '' : $this->jsextra;
if ($this->iemss){
    $jsextra .= <<<EOF
<script src="/vendor/openlayers/10.8.0/ol.js"></script>
<script src="/js/iemss.js?v=4"></script>
<script type="module" src="/js/form2url.module.js"></script>
EOF;
}
if ($this->jsani){
    $jsextra .= <<<EOM
<script src="/vendor/jquery/1.11.3/jquery-1.11.3.min.js"></script>
<script src="/vendor/jquery-ui/1.12.1/jquery-ui.min.js"></script>
<script src="/vendor/jsani/2.84/jquery.jsani.min.js"></script>
<script src="/js/jsani.js?v=2"></script>
EOM;
}
if ($this->iemselect2) {
    $jsextra .= <<<EOM
<script src="https://cdn.jsdelivr.net/npm/tom-select@2.4.3/dist/js/tom-select.complete.min.js"></script>
<script src="/js/select2.js?v=3"></script>
EOM;
}

?>
<footer>
    <div class="container" id="iem-footer" aria-label="Site footer">
        <div class="row">

            <!-- footer-associates -->
            <section class="footer-associates col-sm-12 col-md-3">
                <ul>
                    <li><a href="https://iastate.edu"><img src="/vendor/img/isu-stacked.svg" class="wordmark-isu" alt="Iowa State University"></a></li>
                    <li><a href="https://www.ag.iastate.edu">College of Ag</a></li>
                    <li><a href="https://www.agron.iastate.edu">Department of Agronomy</a></li>
                </ul>
            </section>

            <!-- footer-contact -->
            <section class="footer-contact col-sm-12 col-md-3" aria-labelledby="footer-contact-heading">
                <h2 id="footer-contact-heading" class="visually-hidden">Contact</h2>
                <address class="mb-2">
                    <strong>Department of Agronomy</strong><br>
                    <a href="https://maps.google.com/?q=716+Farm+House+Ln+Ames,+IA+50011">716 Farm House Ln<br>
                    Ames, IA 50011</a>
                </address>
                <a href="mailto:akrherz@iastate.edu">akrherz@iastate.edu</a><br>
            </section>

            <!-- footer-social -->
            <section class="footer-social col-sm-12 col-md-3" aria-labelledby="footer-social-heading">
                <h2 id="footer-social-heading" class="visually-hidden">Social media</h2>
                <ul class=" labeled">
                <li><a href="https://www.facebook.com/IEM-157789644737/"><i class="bi bi-box-arrow-up-right" aria-hidden="true"></i> Facebook</a></li>
                <li><a href="https://x.com/akrherz"><i class="bi bi-box-arrow-up-right" aria-hidden="true"></i> Twitter</a></li>
                <li><a href="https://github.com/akrherz/iem"><i class="bi bi-box-arrow-up-right" aria-hidden="true"></i> Github</a></li>
                <li><a href="https://youtube.com/akrherz"><i class="bi bi-box-arrow-up-right" aria-hidden="true"></i> YouTube</a></li>
                <li><a href="/rss.php"><i class="bi bi-box-arrow-up-right" aria-hidden="true"></i> RSS</a></li>
                </ul>
            </section>

            <!-- footer-legal -->
            <section class="footer-legal col-sm-12 col-md-3" aria-labelledby="footer-legal-heading">
                <h2 id="footer-legal-heading" class="visually-hidden">Legal</h2>
                <p>Copyright &copy; 2001-<?php echo date("Y"); ?><br>
                                Iowa State University<br>
                                of Science and Technology<br>
                                All rights reserved.</p>
                <ul>
                    <li><a href="https://www.policy.iastate.edu/policy/discrimination">Non-discrimination Policy</a></li>
                    <li><a href="https://www.policy.iastate.edu/electronicprivacy">Privacy Policy</a></li>
                    <li><a href="https://digitalaccess.iastate.edu">Digital Access &amp; Accessibility</a></li>
                </ul>
            </section>

        </div>
    </div>
</footer>
    <script src="/vendor/bootstrap/5.3.6/js/bootstrap.bundle.min.js"></script>
    <script src="/js/iastate-iem.js"></script>

    <?php echo $jsextra; ?>
  </body>
</html>
