From 85a38870b1696feb60c2ee5adffb71e814afef2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Fri, 18 Aug 2017 10:38:41 +0200
Subject: [PATCH] More contact information

---
 commonBody.html  | 62 ++++++++++++++++++++++++++++++++++++++++++++++++
 detailsBody.html | 34 ++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)

diff --git a/commonBody.html b/commonBody.html
index b014368..49ef42e 100644
--- a/commonBody.html
+++ b/commonBody.html
@@ -13,6 +13,26 @@
 </li>
 {% endif %}
 
+{% if tags.website %}
+<li class='hasSymbol'>
+  <i class="fa fa-globe" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('website') }}:</span>
+  <span class='value'>
+    <a href='{{ tags.website }}'>{{ tags.website }}</a>
+  </span>
+</li>
+{% endif %}
+
+{% if attribute(tags, 'contact:website') %}
+<li class='hasSymbol'>
+  <i class="fa fa-globe" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('website') }}:</span>
+  <span class='value'>
+    <a href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a>
+  </span>
+</li>
+{% endif %}
+
 {% if tags.phone %}
 <li class='hasSymbol'>
   <i class="fa fa-phone" aria-hidden="true"></i>
@@ -23,6 +43,48 @@
 </li>
 {% endif %}
 
+{% if attribute(tags, 'contact:phone') %}
+<li class='hasSymbol'>
+  <i class="fa fa-phone" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('phone') }}:</span>
+  <span class='value'>
+    <a href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a>
+  </span>
+</li>
+{% endif %}
+
+{% if attribute(tags, 'contact:email') or tags.email %}
+<li class='hasSymbol'>
+  <i class="fa fa-user-circle" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('contact') }}:</span>
+  <span class='value'>
+
+  {% if attribute(tags, 'contact:email') %}
+    <a href='mailto:{{ attribute(tags, 'contact:email') }}'>
+      <i class="fa fa-envelope" aria-hidden="true"></i>
+    </a>
+  {% endif %}
+
+  {% if attribute(tags, 'email') %}
+    <a href='mailto:{{ attribute(tags, 'email') }}'>
+      <i class="fa fa-envelope" aria-hidden="true"></i>
+    </a>
+  {% endif %}
+
+  </span>
+</li>
+{% endif %}
+
+{% if attribute(tags, 'contact:website') %}
+<li class='hasSymbol'>
+  <i class="fa fa-globe" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('website') }}:</span>
+  <span class='value'>
+    <a href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a>
+  </span>
+</li>
+{% endif %}
+
 {% if tags.opening_hours %}
 {% set oh_state = openingHoursState(tags.opening_hours) %}
 {% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %}
diff --git a/detailsBody.html b/detailsBody.html
index 27682fc..b0e6274 100644
--- a/detailsBody.html
+++ b/detailsBody.html
@@ -23,6 +23,40 @@
 </li>
 {% endif %}
 
+{% if attribute(tags, 'contact:phone') %}
+<li class='hasSymbol'>
+  <i class="fa fa-phone" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('phone') }}:</span>
+  <span class='value'>
+    <a href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a>
+  </span>
+</li>
+{% endif %}
+
+{% if attribute(tags, 'contact:email') %}
+<li class='hasSymbol'>
+  <i class="fa fa-envelope" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('email') }}:</span>
+  <span class='value'>
+    <a href='mailto:{{ attribute(tags, 'contact:email') }}'>
+    {{ attribute(tags, 'contact:email') }}
+    </a>
+  </span>
+</li>
+{% endif %}
+
+{% if attribute(tags, 'email') %}
+<li class='hasSymbol'>
+  <i class="fa fa-envelope" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('email') }}:</span>
+  <span class='value'>
+    <a href='mailto:{{ attribute(tags, 'email') }}'>
+    {{ attribute(tags, 'email') }}
+    </a>
+  </span>
+</li>
+{% endif %}
+
 {% if tags.opening_hours %}
 {% set oh_state = openingHoursState(tags.opening_hours) %}
 {% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %}