vegan-prestwich/_includes/place-meta.html

69 lines
2.7 KiB
HTML
Raw Normal View History

2022-11-25 00:54:51 +00:00
<div class="place-meta">
<ul>
2022-11-27 23:45:57 +00:00
{% if web %}
2022-11-25 00:54:51 +00:00
<li>
<strong>Web:</strong>
2022-11-27 23:45:57 +00:00
<a href="{{ web }}">
{{ web | replace: "https://", "" | replace: "http://", "" | replace: "www.", "" }}
2022-11-25 00:54:51 +00:00
</a>
</li>
{% endif %}
2022-11-27 23:45:57 +00:00
{% if address %}
<li><strong>Address:</strong> {{ address }}</li>
2022-11-25 00:54:51 +00:00
{% endif %}
2022-11-27 23:45:57 +00:00
{% if postcode %}
<li><strong>Postcode:</strong> {{ postcode }}</li>
2022-11-25 00:54:51 +00:00
{% endif %}
2022-11-27 23:45:57 +00:00
{% if phone %}
<li><strong>Phone:</strong> <a href="tel:{{ phone | replace: " ", "" }}">{{ phone }}</a></li>
2022-11-25 00:54:51 +00:00
{% endif %}
</ul>
2022-11-27 23:45:57 +00:00
{% if google or facebook or twitter or tripadvisor or instagram %}
2022-11-25 00:54:51 +00:00
<hr>
<ul>
2022-11-27 23:45:57 +00:00
{% if google %}
<li><strong>Google:</strong> <a href="{{ google }}">click here</a></li>
2022-11-25 00:54:51 +00:00
{% endif %}
2022-11-27 23:45:57 +00:00
{% if facebook %}
2022-12-10 12:18:35 +00:00
{% capture facebook_text %}
2022-11-27 23:45:57 +00:00
@{{ facebook | replace: "https://www.facebook.com/", "" }}
2022-11-25 00:54:51 +00:00
{% endcapture %}
2022-12-10 12:18:35 +00:00
{% assign stripped_facebook = facebook_text | replace: "/", "" %}
{% if stripped_facebook != facebook_text %}
{% assign facebook_text = "click here" %}
2022-11-25 00:54:51 +00:00
{% endif %}
2022-12-10 12:18:35 +00:00
<li><strong>Facebook:</strong> <a href="{{ facebook }}">{{ facebook_text | escape }}</a></li>
2022-11-25 00:54:51 +00:00
{% endif %}
2022-11-27 23:45:57 +00:00
{% if instagram %}
2022-12-10 12:18:35 +00:00
{% capture instagram_text %}
2022-11-27 23:45:57 +00:00
@{{ instagram | replace: "https://www.instagram.com/u/", "" | replace: "https://www.instagram.com/", "" }}
2022-11-25 00:54:51 +00:00
{% endcapture %}
2022-12-10 12:18:35 +00:00
{% assign stripped_instagram = instagram_text | replace: "/", "" %}
{% if stripped_instagram != instagram_text %}
{% assign instagram_text = "click here" %}
2022-11-25 00:54:51 +00:00
{% endif %}
2022-12-10 12:18:35 +00:00
<li><strong>Instagram:</strong> <a href="{{ instagram }}">{{ instagram_text | escape }}</a></li>
2022-11-25 00:54:51 +00:00
{% endif %}
2022-11-27 23:45:57 +00:00
{% if twitter %}
<li><strong>Twitter:</strong> <a href="{{ twitter }}">@{{ twitter | replace: "https://twitter.com/", "" }}</a></li>
2022-11-25 00:54:51 +00:00
{% endif %}
2022-11-27 23:45:57 +00:00
{% if tripadvisor %}
<li><strong>TripAdvisor:</strong> <a href="{{ tripadvisor }}">click here</a></li>
2022-11-25 00:54:51 +00:00
{% endif %}
</ul>
{% endif %}
2022-11-27 23:45:57 +00:00
{% if times %}
2022-11-25 00:54:51 +00:00
<hr>
<ul>
<li>
<strong>Times</strong>
<ul class="small">
2022-11-27 23:45:57 +00:00
{% for time in times %}
2022-11-25 00:54:51 +00:00
<li>{{ time }}</li>
{% endfor %}
</ul>
</li>
</ul>
{% endif %}
2022-12-10 12:18:35 +00:00
</div>