mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-17 19:59:22 +00:00
Hide address/map for Online only stores.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
|
{% if store.store_type != 2 %}
|
||||||
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
|
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function initialize_map_store() {
|
function initialize_map_store() {
|
||||||
@@ -42,6 +43,7 @@ function initialize_map_store() {
|
|||||||
}
|
}
|
||||||
$(document).ready(function(){initialize_map_store()});
|
$(document).ready(function(){initialize_map_store()});
|
||||||
</script>
|
</script>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@@ -88,12 +90,16 @@ $(document).ready(function(){initialize_map_store()});
|
|||||||
<h3>Address</h3>
|
<h3>Address</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li itemprop="name">{{ store.name }}</li>
|
<li itemprop="name">{{ store.name }}</li>
|
||||||
|
{% if store.store_type != 2 %}
|
||||||
<li itemprop="streetAddress">{{ store.address.address1 }}</li>
|
<li itemprop="streetAddress">{{ store.address.address1 }}</li>
|
||||||
{% if store.address.address2 %}<li>{{ store.address.address2 }}</li>{% endif %}
|
{% if store.address.address2 %}<li>{{ store.address.address2 }}</li>{% endif %}
|
||||||
{% if store.address.address3 %}<li>{{ store.address.address3 }}</li>{% endif %}
|
{% if store.address.address3 %}<li>{{ store.address.address3 }}</li>{% endif %}
|
||||||
|
{% endif %}
|
||||||
<li itemprop="addressLocality">{{ store.address.city }}</li>
|
<li itemprop="addressLocality">{{ store.address.city }}</li>
|
||||||
{% if store.address.county %}<li itemprop="addressRegion">{{ store.address.county }}</li>{% endif %}
|
{% if store.address.county %}<li itemprop="addressRegion">{{ store.address.county }}</li>{% endif %}
|
||||||
|
{% if store.store_type != 2 %}
|
||||||
<li itemprop="postalCode">{{ store.address.postcode }}</li>
|
<li itemprop="postalCode">{{ store.address.postcode }}</li>
|
||||||
|
{% endif %}
|
||||||
<li itemprop="addressCountry">{{ store.address.country }}</li>
|
<li itemprop="addressCountry">{{ store.address.country }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -107,11 +113,13 @@ $(document).ready(function(){initialize_map_store()});
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
{% if store.store_type != 2 %}
|
||||||
<div id="map-canvas-store" style="width: 300px; height: 300px;" class="map">
|
<div id="map-canvas-store" style="width: 300px; height: 300px;" class="map">
|
||||||
<noscript>
|
<noscript>
|
||||||
<img alt="Map of {{ store.address.full_address }}" src="https://maps.google.com/maps/api/staticmap?center={{ store.address.geo_latitude }},{{ store.address.geo_longitude }}&zoom=16&markers={{ store.address.geo_latitude }},{{ store.address.geo_longitude }}&size=300x300&sensor=false">
|
<img alt="Map of {{ store.address.full_address }}" src="https://maps.google.com/maps/api/staticmap?center={{ store.address.geo_latitude }},{{ store.address.geo_longitude }}&zoom=16&markers={{ store.address.geo_latitude }},{{ store.address.geo_longitude }}&size=300x300&sensor=false">
|
||||||
</noscript>
|
</noscript>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p class="muted">Last Updated: {{ store.changed }}</p>
|
<p class="muted">Last Updated: {{ store.changed }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user