En cours...
This commit is contained in:
119
themes/hargo-hugo/layouts/partials/footer.html
Normal file
119
themes/hargo-hugo/layouts/partials/footer.html
Normal file
@@ -0,0 +1,119 @@
|
||||
<footer class="section pb-0">
|
||||
<div class="container">
|
||||
<div class="row border-bottom pb-5 justify-content-between">
|
||||
<div class="col-12 text-center section-sm">
|
||||
<a href="{{ site.BaseURL }}">
|
||||
{{ partial "image.html" (dict "Src" site.Params.logo_footer "Alt" site.Title "Class" "img-fluid") }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6">
|
||||
<h5 class="font-weight-medium mb-4">{{i18n `important_link`}}</h5>
|
||||
<ul class="list-unstyled">
|
||||
{{ range site.Menus.footer }}
|
||||
<li class="mb-3"><a class="text-color" href="{{ .URL | absURL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm-6">
|
||||
<h5 class="font-weight-medium mb-4">{{i18n `connect_us`}}</h5>
|
||||
<ul class="list-unstyled mb-5">
|
||||
<li class="mb-3"><a class="text-color" href="tel:{{ site.Params.mobile }}"><i
|
||||
class="ti-mobile text-primary mr-2"></i>
|
||||
{{ site.Params.mobile }}</a></li>
|
||||
<li class="mb-3"><a class="text-color" href="mailto:{{ site.Params.email }}"><i
|
||||
class="ti-email text-primary mr-2"></i> {{ site.Params.email }}</a></li>
|
||||
<li class="mb-3"><i class="ti-location-pin text-primary mr-2"></i> {{ site.Params.location }}
|
||||
</li>
|
||||
</ul>
|
||||
<!-- Social Icons -->
|
||||
<ul class="list-inline">
|
||||
{{ range site.Params.social }}
|
||||
<li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }} text-primary"></i></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-5">
|
||||
<h5 class="font-weight-medium mb-4">Contact us</h5>
|
||||
{{- partial "contact-form.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12 text-center py-4">
|
||||
{{ site.Params.copyright | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{ with site.Params.snipcartApiKey }}
|
||||
{{ "<!-- Snipcart -->" | safeHTML }}
|
||||
<div id="snipcart" data-api-key="{{ . }}" hidden></div>
|
||||
{{ end }}
|
||||
|
||||
{{ "<!-- Google Maps API -->" | safeHTML }}
|
||||
<script src="{{ site.Params.gmapAPI | absURL }}"></script>
|
||||
{{ "<!-- JS Plugins -->" | safeHTML }}
|
||||
{{ range site.Params.plugins.js}}
|
||||
<script src="{{ .link | absURL }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ "<!-- Main Script -->" | safeHTML }}
|
||||
{{ $script := resources.Get "js/script.js" | minify}}
|
||||
<script src="{{ $script.Permalink }}"></script>
|
||||
|
||||
{{ with site.Params.googleAnalyticsID }}
|
||||
{{ "<!-- Google Analytics -->" | safeHTML }}
|
||||
<script>
|
||||
(function (i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function () {
|
||||
(i[r].q = i[r].q || []).push(arguments)
|
||||
}, i[r].l = 1 * new Date();
|
||||
a = s.createElement(o),
|
||||
m = s.getElementsByTagName(o)[0];
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore(a, m)
|
||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
ga('create', '{{ . }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if site.Params.rating.enable }}
|
||||
{{ "<!-- Product Ratings -->" | safeHTML }}
|
||||
<script>
|
||||
(function (d, t, e, m) {
|
||||
// Async Rating-Widget initialization
|
||||
window.RW_Async_Init = function () {
|
||||
RW.init({
|
||||
huid: "{{ site.Params.rating.websiteID }}",
|
||||
uid: "{{ site.Params.rating.publicKey }}",
|
||||
source: "website",
|
||||
options: {
|
||||
"size": "medium",
|
||||
"style": "oxygen",
|
||||
"isDummy": false
|
||||
}
|
||||
});
|
||||
RW.render();
|
||||
};
|
||||
// Append Rating-Widget JavaScript library
|
||||
var rw, s = d.getElementsByTagName(e)[0],
|
||||
id = "rw-js",
|
||||
l = d.location,
|
||||
ck = "Y" + t.getFullYear() +
|
||||
"M" + t.getMonth() + "D" + t.getDate(),
|
||||
p = l.protocol,
|
||||
f = ((l.search.indexOf("DBG=") > -1) ? "" : ".min"),
|
||||
a = ("https:" == p ? "secure." + m + "js/" : "js." + m);
|
||||
if (d.getElementById(id)) return;
|
||||
rw = d.createElement(e);
|
||||
rw.id = id;
|
||||
rw.async = true;
|
||||
rw.type = "text/javascript";
|
||||
rw.src = p + "//" + a + "external" + f + ".js?ck=" + ck;
|
||||
s.parentNode.insertBefore(rw, s);
|
||||
}(document, new Date(), "script", "rating-widget.com/"));
|
||||
</script>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user