src/Elements/Bundle/DemiFrontendBundle/Resources/views/Events/detail/contact.html.twig line 1

Open in your IDE?
  1. {#
  2. /**
  3.  * @var \Pimcore\Templating\PhpEngine this
  4.  * @var \Pimcore\Templating\PhpEngine view
  5.  * @var \Pimcore\Templating\GlobalVariables app
  6.  * #
  7.  * @var detailHeadline string
  8.  * @var detailContact array
  9.  * @var azObjLink array (optional)
  10.  * #
  11.  * @Params:
  12.  *        . detailType : string : zB. ".events", ".az" (note the dot before text)
  13.  *        . detailIcon : string : default: icon-kontakt
  14.  *        . detailHeadline : string
  15.  *        . detailContact : array
  16.  *              - address : string
  17.  */
  18. #}
  19. {% if (detailContact['phone'] is not empty or detailContact['mail'] is not empty or detailContact['url'] is not empty) and detailContact['address'] is not empty %}
  20. <section class="demi-event-detail-content-block demi-event-detail-content-block--contact">
  21.     <div class="container">
  22.         <div class="wysiwyg">
  23.             <h2>{{ detailHeadline }}</h2>
  24.             {# WF_1510584 soll jetzt doch nicht angezeigt werden an der Stelle
  25.             {% if azObjLink is defined and azObjLink is not empty %}
  26.                 <div>
  27.                     <a href="{{ azObjLink['url'] }}">{{ azObjLink['name'] }}</a>
  28.                 </div>
  29.             {% endif %}
  30.             #}
  31.             <div class="row">
  32.                 <div class="col-md-4">
  33.                     <address>
  34.                         {{ detailContact['address'] | raw }}
  35.                     </address>
  36.                 </div>
  37.                 {% if detailContact['phone'] != '' %}
  38.                 <div class="col-md-4">
  39.                     {{ 'demi.events.detail.phone' | trans }}
  40.                     <a href="tel:{{ detailContact['phone'] | replace({' ': ''}) }}"> {{ detailContact['phone'] }} </a>
  41.                 </div>
  42.                 {% endif %}
  43.                 {% if  detailContact['mobile'] != ''  %}
  44.                     <div class="">
  45.                         {{ 'demi.events.detail.mobile' | trans }} {{ detailContact['mobile'] }}
  46.                     </div>
  47.                 {% endif %}
  48.                 {% if detailContact['mail'] != '' or detailContact['url'] != '' %}
  49.                 <div class="col-md-4">
  50.                     <ul class="list-unstyled demi-event-detail-list">
  51.                         {% if detailContact['mail'] != '' %}
  52.                             <li><a href="mailto:{{ detailContact['mail'] }}">{{ 'demi.events.detail.e-mail' | trans }}</a></li>
  53.                         {% endif %}
  54.                         {% if detailContact['url'] != '' %}
  55.                             <li><a href="{{ demi_findNiceUrl(detailContact['url']) }}" target="_blank">{{ 'demi.events.detail.website' | trans }}</a></li>
  56.                         {% endif %}
  57.                     </ul>
  58.                 </div>
  59.                 {% endif %}
  60.             </div>
  61.         </div>
  62.     </div>
  63. </section>
  64. {% endif %}