templates/Default/odpage/_spinning_address.html.twig line 1

Open in your IDE?
  1. {% if addresses | length > 0 %}
  2.     <div class="col-md-6">
  3.         <h3 class="panel-subtitle">{{ (transport~'.odpage.spinning.address.title2') | trans }} {{ stopName }}</h3>
  4.         {% set pzoom = (addresses | length == 1)? '&z=13' : '' %}
  5.         <img alt="{{ (transport~'.odpage.spinning.address.title2') | trans }} {{ stopName }}"
  6.             src="https://static-maps.yandex.ru/1.x/?lang=en_US&size=300,300&l=map{{ pzoom }}&pt={% for k, address in addresses %}{{ address.longitude | trim}},{{ address.latitude | trim }},pm2lbm{{ k + 1}}{{ loop.last?'':'~' }}{% endfor %}" />
  7.         <div class="title-list">
  8.             {% if addresses | length > 1 %}
  9.                 {{ (transport~'.odpage.spinning.address.'~transDepArr~'.multi.'~transIds_address_multi) | trans(seoOd.transParams) | raw }}
  10.             {% else %}
  11.                 {{ (transport~'.odpage.spinning.address.'~transDepArr~'.one.'~transIds_address_one) | trans(seoOd.transParams) | raw}}
  12.             {% endif %}
  13.         </div>
  14.         <ol type="1">
  15.             {% for address in addresses %}
  16.                 <li style="text-align: left;">
  17.                     <b>{{ address.name }} - {{ address.companies | join(', ') }}</b><br />
  18.                     {{ address.address }}
  19.                 </li>
  20.             {% endfor %}
  21.         </ol>
  22.     </div>
  23. {% endif %}