templates/uniqskills/catalogue/landing_new/landing_partials/forYou.html.twig line 1

Open in your IDE?
  1. <section class="rowOtherForYou">
  2.     <div class="container container--header">
  3.         <div class="row">
  4.             <div class="col rowOtherForYou__header">
  5.                 <h2>{{ 'uniqskills.landing.nl.othersForYou'|trans }}</h2>
  6.             </div>
  7.         </div>
  8.     </div>
  9.     <div class="container">
  10.         <div class="row">
  11.             <div class="container suggestedCurses__slider">
  12.             {% for item in suggestedCourses %}
  13.                 <div class="slide rowOtherForYou__box text-center">
  14.                     <div class="rowOtherForYou__box__title__wrapper">
  15.                         <div class="rowOtherForYou__box__title">
  16.                             <div class="rowOtherForYou__box__title__img-container" style="background: url({{ asset(item.background) | imagine_filter('img_350_width') }}) no-repeat center center;">
  17.                             </div>
  18.                             <div class="rowOtherForYou__box__title__overlay"></div>
  19.                             <div class="rowOtherForYou__box__title__text-container">
  20.                                 <div class="rowOtherForYou__box__title__top">{{ item.name }}</div>
  21.                                 <div class="rowOtherForYou__box__title__description">{{ item.category }}</div>
  22.                                 <a href="{{ path(item.link.routing, {categorySlug: item.link.category, slug: item.link.slug}) }}" class="rowOtherForYou__box__title__btn">
  23.                                     {{ 'btn.check'|trans }}
  24.                                 </a>
  25.                             </div>
  26.                         </div>
  27.                     </div>
  28.                     <div class="rowOtherForYou__box__info text-center" style="background: #fff;">
  29.                         <div class="row">
  30.                             <div class="col-6 rowOtherForYou__box__info__border">
  31.                                 <div class="rowOtherForYou__box__info__startDate">
  32.                                     {% if item.startDate or item.isContinuous %}
  33.                                     <span>{{ 'uniqskills.landing.startDate'|trans }}</span>
  34.                                         {% if item.isContinuous %}
  35.                                             {{ 'uniqskills.catalog.courses.startingSoon1'|trans }}
  36.                                         {% else %}
  37.                                             {{ item.startDate.format('Y-m-d') }}
  38.                                         {% endif %}
  39.                                     {% endif %}
  40.                                 </div>
  41.                             </div>
  42.                             {% if item.price %}
  43.                                 <div class="col-6 rowOtherForYou__box__info__noBorder">
  44.                                     <div class="rowOtherForYou__box__info__price">
  45.                                         <span>{{ 'uniqskills.landing.price'|trans }}</span>
  46.                                         {% if app.request.session.get('userLocale', 'pl') == 'pl' %}
  47.                                             {{ (item.price + (item.price*23)/100)|number_format(2, '.', '') }} PLN
  48.                                         {% elseif item.countryProduct[0] is defined %}
  49.                                             {% include '/uniqskills/catalogue/landing_price.html.twig' with {
  50.                                                 'landingPriceNet': item.price|number_format(2),
  51.                                                 'landingPriceGross': item.price|number_format(2),
  52.                                                 'country': item.country
  53.                                             } %}
  54.                                         {% elseif app.request.session.get('userLocale', 'pl') == 'en-us'
  55.                                             or app.request.session.get('userLocale', 'pl') == 'de' %}
  56.                                             {{ item.price|number_format(2) }} €
  57.                                         {% else %}
  58.                                             {{ item.price|number_format(2) }} $
  59.                                         {% endif %}
  60.                                     </div>
  61.                                 </div>
  62.                             {% endif %}
  63.                             {#<div class="col-4 rowOtherForYou__box__info__noBorder" style="padding-left: 0;">#}
  64.                                 {#<div class="rowOtherForYou__box__info__btn">#}
  65.                                     {#<a href="{{ path(item.link.routing, {categorySlug: item.link.category, slug: item.link.slug}) }}">{{ 'uniqskills.landing.signInNow'|trans }}</a>#}
  66.                                 {#</div>#}
  67.                             {#</div>#}
  68.                         </div>
  69.                     </div>
  70.                     <div class="rowOtherForYou__box__footerline"></div>
  71.                 </div>
  72.             {% endfor %}
  73.             </div>
  74.         </div>
  75.     </div>
  76. </section>