102 lines
3.1 KiB
Plaintext
102 lines
3.1 KiB
Plaintext
<footer class="np-footer">
|
|
<div class="np-footer-top">
|
|
{% if website_footer.show_navigation_links? %}
|
|
<div class="np-footer-navigation">
|
|
<ul class="np-footer-navigation-list">
|
|
{% for website_navigation in navigations.footer_navigations %}
|
|
<li class="np-footer-navigation-item">
|
|
<a
|
|
class="np-footer-navigation-link np-button-color"
|
|
href="{{ website_navigation.path }}"
|
|
{% if website_navigation.external? %} target="_blank" {% endif %}
|
|
>
|
|
{{ website_navigation.name }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% if current_school.logo_url %}
|
|
<h2 class="np-footer-logo">
|
|
<a href="{% route home %}">
|
|
<img
|
|
alt="{{ current_school.name }}"
|
|
class="np-footer-logo-image"
|
|
src="{{ current_school.logo_url }}"
|
|
/>
|
|
</a>
|
|
</h2>
|
|
{% else %}
|
|
<div class="np-school-name np-header-font-color">
|
|
{{ current_school.name }}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="np-footer-bottom">
|
|
<nav class="np-footer-social-links">
|
|
{% if website_footer.show_social_media_links? %}
|
|
<ul class="np-footer-social-links-list">
|
|
{% for social_media_link in website_footer.social_media_links %}
|
|
<li class="np-footer-social-links-item">
|
|
<a
|
|
class="np-footer-social-links-link np-button-color"
|
|
href="{{ social_media_link.link }}"
|
|
target="_blank" title="{{ social_media_link.name }}"
|
|
>
|
|
<i class="np-footer-social-links-icon
|
|
np-button-color
|
|
fab fa-{{ social_media_link.name }}"
|
|
></i>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</nav>
|
|
|
|
{% if website_footer.show_customer_service_email? and
|
|
website_footer.school_customer_service_email
|
|
%}
|
|
<div class="np-footer-support">
|
|
<div class="np-footer-support-item np-footer-support-help">
|
|
{% t .need_help %}
|
|
</div>
|
|
<div class="np-footer-support-item np-footer-support-email">
|
|
{% t .email %}
|
|
</div>
|
|
<a
|
|
class="np-footer-support-item np-footer-support-link np-button-color"
|
|
href="mailto:{{ website_footer.school_customer_service_email }}"
|
|
>
|
|
{{ website_footer.school_customer_service_email }}
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</footer>
|
|
|
|
<script>
|
|
|
|
window.onload = function() {
|
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
anchor.addEventListener('click', function() {
|
|
if (this.getAttribute('href') != "#") {
|
|
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
|
behavior: 'smooth'
|
|
});
|
|
}
|
|
});
|
|
});
|
|
|
|
if (window.location.hash) {
|
|
setTimeout(() => {
|
|
let categorySection = document.querySelector(window.location.hash)
|
|
categorySection.scrollIntoView({
|
|
behavior: 'smooth'
|
|
});
|
|
}, 500)
|
|
};
|
|
}
|
|
</script> |