templates/uniqskills/catalogue/landing.html.twig line 1

Open in your IDE?
  1. {% extends '/uniqskills/layout.html.twig' %}
  2. {% block meta %}
  3.     {% if course.metaTitle is not empty %}
  4.         <meta name="title" content="{{ course.metaTitle }}">
  5.     {% endif %}
  6.     {% if course.metaDescription is not empty %}
  7.         <meta name="description" content="{{ course.metaDescription }}">
  8.     {% endif %}
  9. {% endblock %}
  10. {% block content %}
  11.     {% if app.request.locale == 'es' %}
  12.         <div class="promotionBarEs">
  13.             <div class="promotionBarEs-content">
  14.                 <img class="img-fluid promotionBarEs-img"
  15.                      src="{{ asset('/uniqskills/img/clock.png') }}">
  16.                 <b>¡{{ countOrders }} personas</b>
  17.                 ya se han inscrito a este curso! ¡No esperes más y
  18.                 <b>únete a ellos hoy mismo!</b>
  19.             </div>
  20.         </div>
  21.     {% endif %}
  22.     {% if preview == true %}
  23.         <div class="landing-preview-info">
  24.             LANDING PREVIEW
  25.         </div>
  26.     {% endif %}
  27.     {% for module in landing.modules %}
  28.         {% if module.showModule == true %}
  29.             {% if module.type == 'promotionBar' %}
  30.                 {% include 'uniqskills/catalogue/landing_partials/promotionBar.html.twig' %}
  31.             {% elseif module.type == 'courseTitle' %}
  32.                 {% include 'uniqskills/catalogue/landing_partials/courseTitle.html.twig' %}
  33.             {% elseif
  34.                 module.type == 'basicDescription'
  35.                 and module.descriptionCheckboxes is defined
  36.             %}
  37.                 {% include 'uniqskills/catalogue/landing_partials/basicDescription.html.twig' %}
  38.             {% elseif module.type == 'description' %}
  39.                 {% include 'uniqskills/catalogue/landing_partials/description.html.twig' %}
  40.             {% elseif
  41.                 module.type == 'cooperators'
  42.                 and module.cooperatorList is defined
  43.             %}
  44.                 {% include 'uniqskills/catalogue/landing_partials/cooperators.html.twig' %}
  45.             {% elseif
  46.                 module.type == 'finishCourse'
  47.                 and module.json is defined
  48.             %}
  49.                 {% include 'uniqskills/catalogue/landing_partials/finishCourse.html.twig' %}
  50.             {% elseif
  51.                 module.type == 'courseContent'
  52.                 and module.points is defined
  53.             %}
  54.                 {% include 'uniqskills/catalogue/landing_partials/courseContent.html.twig' %}
  55.             {% elseif module.type == 'courseProgram' %}
  56.                 {% include 'uniqskills/catalogue/landing_partials/courseProgram.html.twig' %}
  57.             {% elseif
  58.                 module.type == 'tutors'
  59.                 and module.tutorsList is defined
  60.             %}
  61.                 {% include 'uniqskills/catalogue/landing_partials/tutors.html.twig' %}
  62.             {% elseif
  63.                 module.type == 'teaching'
  64.                 and module.json is defined
  65.             %}
  66.                 {% include 'uniqskills/catalogue/landing_partials/teaching.html.twig' %}
  67.             {% elseif module.type == 'payment' %}
  68.                 {% include 'uniqskills/catalogue/landing_partials/payment.html.twig' %}
  69.             {% elseif
  70.                 module.type == 'faq'
  71.                 and module.list is defined
  72.             %}
  73.                 {% include 'uniqskills/catalogue/landing_partials/faq.html.twig' %}
  74.             {% elseif module.type == 'contact' %}
  75.                 {% include 'uniqskills/catalogue/landing_partials/contact.html.twig' %}
  76.             {% elseif module.type == 'clearHtmlSection' %}
  77.                 {{ include(template_from_string(module.text|raw)) }}
  78.             {% endif %}
  79.         {% endif %}
  80.     {% endfor %}
  81. {% endblock %}
  82. {% block customjs %}
  83.     <script src="{{ asset('uniqskills/js/landingFrontend.js') }}"></script>
  84.     <script>
  85.         window.dataLayer = window.dataLayer || [];
  86.         window.dataLayer.push({
  87.             'course': {{ course.id }}
  88.         });
  89.     </script>
  90.     {% if landing.landing.customScripts is not empty %}
  91.         <script>
  92.             {{ landing.landing.customScripts|raw }}
  93.         </script>
  94.     {% endif %}
  95. {% endblock %}