templates/page/office/show/components/info.html.twig line 1

Open in your IDE?
  1. {% import 'common/macros/elements.html.twig' as elements %}
  2. {% import 'common/macros/svg.html.twig' as svg %}
  3. <article class="location">
  4.     <span class="headquarters">
  5.         <p> {{ getLocationHeadquarter(data) }}</p>
  6.     </span>
  7.     {{ elements.heading(data.getCompany(), 1, 'title') }}
  8.     <div class="addresses">
  9.         <span class="address-line">{{ data.getCity() ~ ', ' ~ getCountryName(data.getCountryCode()) }}</span>
  10.         <span class="address-line">{{ data.getAddress() }}</span>
  11.     </div>
  12.     <div class="contacts">
  13.         <a href="https://www.google.com/maps/dir/{{ data.getAddress() }}" target="_blank">
  14.             {% if data.getCity | lower == 'seattle' %}
  15.                 {{ svg.seattle }}
  16.             {% elseif data.getCity | lower == 'amsterdam' %}
  17.                 {{ svg.amsterdam }}
  18.             {% elseif data.getCity | lower == 'budapest' %}
  19.                 {{ svg.budapest }}
  20.             {% elseif data.getCity | lower == 'bucharest' %}
  21.                 {{ svg.bucharest }}
  22.             {% elseif data.getCity | lower == 'luxembourg' %}
  23.                 {{ svg.luxembourg }}
  24.             {% endif %}
  25.             {{ 'our_locations.get_direction'|trans }}
  26.         </a>
  27.         {% if data.getEmail() is not empty %}
  28.             <a href="mailto:{{ data.getEmail() }}">
  29.                 {{ svg.email }}
  30.                 {{ data.getEmail() }}
  31.             </a>
  32.         {% endif %}
  33.         {% if data.getPhoneNumber() is not empty %}
  34.             <a href="tel:{{ data.getPhoneNumber() }}">
  35.                 {{ svg.mobile }}
  36.                 {{ data.getPhoneNumber() }}
  37.             </a>
  38.         {% endif %}
  39.     </div>
  40.     <div class="content">
  41.         <p>{{ getLocationDescription(data)|raw }}</p>
  42.     </div>
  43. </article>