templates/VisualMediaProjectBundle/views/ProjectLayout/view.html.twig line 1

Open in your IDE?
  1. {% extends 'Layout/base.html.twig' %}
  2. {% set breadcrumbs = [
  3.     { title: 'Projecten', path: path('project_index') },
  4.     { title: project.title },
  5. ] %}
  6. {% block main %}
  7.     {% include '@VisualMediaVisual/Visual/projectvisual.html.twig' with { visuals: project.photos } %}
  8.     <section class="section section-page">
  9.         <div class="page-stripes"></div>
  10.         <div class="breadcrumb">
  11.             <div class="container">
  12.                 <div class="row">
  13.                     <div class="col-12">
  14.                         {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { 'breadcrumbs': breadcrumbs } %}
  15.                     </div>
  16.                 </div>
  17.             </div>
  18.         </div>
  19.         <div class="container project-detail_container">
  20.             <div class="row">
  21.                 <div class="col-12">
  22.                     <div class="project-slider" id="project">
  23.                         {% for photo in project.photos %}
  24.                             {% if not loop.first %}
  25.                                 <div class="project-slide">
  26.                                     <a href="{{ photo.upload|url }}" target="_blank" title="{{ project.title }}" alt="{{ project.title }}" class="thumbnail">
  27.                                         <img src="{{ photo.upload|url({}) }}" alt="{{ photo.imageAlt }}" title="{{ photo.imageTitle }}" class="img-fluid">
  28.                                     </a>
  29.                                 </div>
  30.                             {% endif %}
  31.                         {% endfor %}
  32.                     </div>
  33.                 </div>
  34.                 <div class="col-12 col-lg-8 offset-lg-2">
  35.                     <div class="project-detail_content">
  36.                         <i class="fal fa-digging"></i>
  37.                         {{ project.htmlContent|scan }}
  38.                         {% if projects is not null %}
  39.                             <div class="projecten-buttons">
  40.                                 {% if previous_project is not null %}
  41.                                     <div class="project-previous">
  42.                                         <a href="{{ path('project_view', { slug : previous_project.slug }) }}" class="btn btn-secondary"><i class="fas fa-arrow-left"></i></a>
  43.                                     </div>
  44.                                 {% endif %}
  45.                                 {% if next_project is not null %}
  46.                                     <div class="project-next">
  47.                                         <a href="{{ path('project_view', { slug : next_project.slug }) }}" class="btn btn-secondary"><i class="fas fa-arrow-right"></i></a>
  48.                                     </div>
  49.                                 {% endif %}
  50.                             </div>
  51.                         {% endif %}
  52.                     </div>
  53.                 </div>
  54.             </div>
  55.             {% if project.employee is not null %}
  56.             <div class="container">
  57.                 <div class="row">
  58.                     <div class="col-12 col-lg-10 offset-lg-1">
  59.                         {% include 'Employee/view.html.twig' with { 'employee': project.employee } %}
  60.                     </div>
  61.                 </div>
  62.             </div>
  63.             {% endif %}
  64.         </div>
  65.     </section>
  66. {% endblock %}