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

Open in your IDE?
  1. {% if seoOd.stat is not null %}
  2.     {% set transIds = seoOd.transIds %}
  3.     <section class="panel">
  4.         {% if seoOd.block.content is empty %}
  5.         <h2 class="panel-heading">{{ (transport~'.odpage.spinning.title') | trans(seoOd.transParams) }}</h2>
  6.         <div class="panel-body">
  7.             <div class="row">
  8.                 <div class="col-md-6" style="text-align: center;"><br />
  9.                     <img alt="{{ 'bus.odpage.spinning.title' | trans(seoOd.transParams) }}"
  10.                          src="https://static-maps.yandex.ru/1.x/?lang=en_US&size=300,300&pt={{ depStop.lon }},{{ depStop.lat }},pm2lbm~{{ arrStop.lon }},{{ arrStop.lat }},pm2lbm&l=map" />
  11.                 </div>
  12.                 <div class="col-md-6" style="text-align: justify;">
  13.                     <p>{{ (transport~'.odpage.spinning.trip.1.'~transIds.trip_1) | trans(seoOd.transParams) | raw }}</p>
  14.                     <br />
  15.                     <p>
  16.                         {{ (transport~'.odpage.spinning.trip.2.'~transIds.trip_2) | trans(seoOd.transParams) | raw }}
  17.                         {{ (transport~'.odpage.spinning.trip.3.'~transIds.trip_3) | trans(seoOd.transParams) | raw }}
  18.                     </p>
  19.                     <br />
  20.                     <p>{{ (transport~'.odpage.spinning.trip.4.'~transIds.trip_4) | trans(seoOd.transParams) | raw }}</p>
  21.                     <br />
  22.                     <p>
  23.                         {{ (transport~'.odpage.spinning.trip.5.'~transIds.trip_5) | trans(seoOd.transParams) | raw }}
  24.                         {{ (transport~'.odpage.spinning.trip.6.'~transIds.trip_6) | trans(seoOd.transParams) | raw }}
  25.                     </p>
  26.                     <br />
  27.                     {% if seoOd.returnLink is not empty %}
  28.                         <p>
  29.                             {{ (transport~'.odpage.spinning.trip.reverse.'~transIds.trip_reverse) | trans(seoOd.transParams) | raw }}
  30.                             <a href="{{ seoOd.returnLink.url }}">{{ seoOd.returnLink.label }}</a>
  31.                         </p>
  32.                         <br />
  33.                     {% endif %}
  34.                     <p>
  35.                         {{ (transport~'.odpage.spinning.trip.list.'~transIds.trip_list) | trans(seoOd.transParams) | raw }}
  36.                         <ul>
  37.                             {% if seoOd.depAddresses | length > 0 or seoOd.arrAddresses | length > 0 %}
  38.                                 <li><a href="#adresses">{{ (transport~'.odpage.spinning.trip.list.address.'~transIds.trip_list_address) | trans(seoOd.transParams) | raw }}</a></li>
  39.                             {% endif %}
  40.                             {% if seoOd.companiesLetter | length > 0 %}
  41.                                 <li><a href="#companies">{{ (transport~'.odpage.spinning.trip.list.companies.'~transIds.trip_list_companies) | trans(seoOd.transParams) | raw }}</a></li>
  42.                             {% endif %}
  43.                             {#<li><a href="#horaires">{{ (transport~'.odpage.spinning.trip.list.schedule.'~transIds.trip_list_schedule) | trans(seoOd.transParams) | raw }}</a></li>#}
  44.                         </ul>
  45.                     </p>
  46.                     <p style="text-align: center;"><a class="primary small" href="#">{{ 'bus.odpage.spinning.book-btn' | trans(seoOd.transParams) }}</a></p>
  47.                 </div>
  48.             </div>
  49.         </div>
  50.         {% endif %}
  51.         {% include 'Default/odpage/_spinning_faq.html.twig' %}
  52.         {% if seoOd.depAddresses | length > 0 or seoOd.arrAddresses | length > 0 %}
  53.             <h2 class="panel-title" id="adresses">{{ (transport~'.odpage.spinning.address.title') | trans(seoOd.transParams) }}</h2>
  54.             <div class="panel-body panel-addresses">
  55.                 <div class="row">
  56.                     {% include 'Default/odpage/_spinning_address.html.twig' with {
  57.                         'stopName' : depStop.name,
  58.                         'addresses' : seoOd.depAddresses,
  59.                         'transIds_address_multi' : transIds.address_dep_multi,
  60.                         'transIds_address_one' : transIds.address_dep_one,
  61.                         'transDepArr' : 'dep'
  62.                     } %}
  63.                     {% include 'Default/odpage/_spinning_address.html.twig' with {
  64.                         'stopName' : arrStop.name,
  65.                         'addresses' : seoOd.arrAddresses,
  66.                         'transIds_address_multi' : transIds.address_arr_multi,
  67.                         'transIds_address_one' : transIds.address_arr_one,
  68.                         'transDepArr' : 'arr'
  69.                     } %}
  70.                 </div>
  71.             </div>
  72.         {% endif %}
  73.         {% if seoOd.block.content is empty %}
  74.             {% if seoOd.companiesLetter | length > 0 %}
  75.                 <h2 class="panel-title" id="companies">{{ (transport~'.odpage.spinning.companies.title') | trans(seoOd.transParams) }}</h2>
  76.                 <div class="panel-body">
  77.                    <!-- COMPANY_NAMES={{ seoOd.companiesName |join(" / ") }} -->
  78.                     {% for icompany in seoOd.companiesLetter %}
  79.                         {% set name = (transport~'.odpage.spinning.'~icompany~'.name')|trans %}
  80.                         <!-- COMPANY_NAME_TRANS={{ name }} -->
  81.                         {% set text1 = (transport~'.odpage.spinning.'~icompany~'.1.'~transIds[icompany~'_1']) | trans(seoOd.transParams) | raw %}
  82.                         {% set text2 = (transport~'.odpage.spinning.'~icompany~'.2.'~transIds[icompany~'_2']) | trans(seoOd.transParams) | raw %}
  83.                         <div class="row">
  84.                             <div class="col-md-3" style="text-align: center">
  85.                                 <img alt="{{ name }} {{ depStop.name }} {{ arrStop.name }}" src="{{ asset('bundles/static/uploads/odpage/'~name~'.png') }}" style="max-height: 80px; max-width: 200px" />
  86.                             </div>
  87.                             <div class="col-md-9">
  88.                                 <h3 class="panel-subtitle">{{ name }} {{ depStop.name }} {{ arrStop.name }}</h3>
  89.                                 <p style="text-align: justify;">{{ text1 | raw }} {{ text2 | raw }}</p>
  90.                             </div>
  91.                         </div>
  92.                         <br />
  93.                     {% endfor %}
  94.                 </div>
  95.             {% endif %}
  96.         {% endif %}
  97.     </section>
  98. {% endif %}