2017-07-01 15:52:28 +00:00
|
|
|
---
|
|
|
|
---
|
2017-07-05 19:36:03 +00:00
|
|
|
|
2017-07-01 15:52:28 +00:00
|
|
|
<!doctype html>
|
2019-07-05 16:56:48 +00:00
|
|
|
<html lang="en">
|
2017-07-01 15:52:28 +00:00
|
|
|
|
|
|
|
{% include head.html %}
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2017-07-01 16:32:16 +00:00
|
|
|
{% include header.html %}
|
2017-07-01 15:52:28 +00:00
|
|
|
|
|
|
|
<div class="service">
|
|
|
|
|
|
|
|
<div id="page-banner">
|
|
|
|
<div class="row">
|
|
|
|
<div class="small-12 small-centered columns">
|
2019-06-20 13:05:16 +00:00
|
|
|
<img src="/images/services/{{ page.slug }}" alt="{{ page.name }}">
|
2018-11-30 14:44:51 +00:00
|
|
|
<h1>Coops that offer <span>{{ page.name }}</span></h1>
|
2019-04-25 17:53:35 +00:00
|
|
|
{% if page.description %}
|
|
|
|
<p>{{ page.description }}</p>
|
2019-04-25 13:30:24 +00:00
|
|
|
{% endif %}
|
2017-07-01 15:52:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="small-12 columns">
|
|
|
|
|
|
|
|
<div class="view float-center">
|
|
|
|
<ul class="tabs" data-tabs id="coops-view-tabs">
|
|
|
|
<li class="tabs-title is-active"><a href="#grid" aria-selected="true">Grid</a></li>
|
|
|
|
<li class="separator">|</li>
|
|
|
|
<li class="tabs-title"><a href="#map">Map</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tabs-content" data-tabs-content="coops-view-tabs">
|
|
|
|
<!-- START Grid View Content -->
|
|
|
|
<div class="tabs-panel is-active" id="grid">
|
|
|
|
<div class="row small-up-2 medium-up-4 large-up-6 small-collapse">
|
|
|
|
{% for coop in site.coops %}
|
|
|
|
{% if coop.services contains page.slug %}
|
|
|
|
<div class="column">
|
2019-07-05 12:36:13 +00:00
|
|
|
<a href="{{ coop.url | relative_url }}" class="coop-thumb" id="#{{ coop.slug }}">
|
|
|
|
<img src="/images/coops/{{ coop.slug }}" alt="{{ coop.name }}">
|
2017-07-01 15:52:28 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- END Grid View Content -->
|
2017-07-01 19:04:13 +00:00
|
|
|
|
|
|
|
<!-- START Map View Content -->
|
|
|
|
<div class="tabs-panel" id="map">
|
|
|
|
<div class="row small-up-2 medium-up-4 large-up-6 small-collapse">
|
|
|
|
<div id="map-services"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var mapEntries = [
|
|
|
|
{% for coop in site.coops %}
|
|
|
|
{% if coop.services contains page.slug %}
|
|
|
|
{
|
|
|
|
lat: {{ coop.latitude }},
|
|
|
|
lng: {{ coop.longitude }},
|
|
|
|
markerText: '<b><a href=\"{{ coop.url | relative_url }}\">{{ coop.name }}</a></b><br><br>{{ coop.address | split: "," | join: "<br>" }}'
|
|
|
|
},
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
];
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
2020-08-20 09:53:58 +00:00
|
|
|
var map = window.app.createMapMultiMarker('map-services', 54.7, -4.2, 6, mapEntries);
|
|
|
|
$('#coops-view-tabs').on('change.zf.tabs', function() {
|
|
|
|
map.invalidateSize();
|
|
|
|
});
|
2017-07-01 19:04:13 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- END Map View Content -->
|
2017-07-01 15:52:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% include footer.html %}
|
|
|
|
|
2017-07-01 17:42:02 +00:00
|
|
|
{% include javascripts.html %}
|
2017-07-01 15:52:28 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|