templates/content/tmpl/ebooks-list.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block body %}
  3.     {% embed "1-col-sidebar.html.twig" %}
  4.         {% block column %}
  5.             {% if site_code == constant("App\\Entity\\Content::SITE_RCS") %}
  6.                 {% include  "includes/curtain-ads/rlw.html.twig" %}
  7.             {% endif %}
  8.             <style>
  9.                 .book {
  10.                     height: 288px;
  11.                     margin: auto;
  12.                     box-shadow: 5px 4px 6px 2px #0000006e;
  13.                     position: relative;
  14.                     transition: 0.2s ease-in-out;
  15.                     width: 223px;
  16.                     overflow: hidden;
  17.                 }
  18.                 .book:hover {
  19.                     box-shadow: 0 12px 15px -2px #0000006e;
  20.                     padding: 0;
  21.                     transform: scale(1.05);
  22.                 }
  23.                 .book:hover > .title {
  24.                     bottom: 15px;
  25.                 }
  26.                 .title {
  27.                     /*position: absolute;*/
  28.                     bottom: 5px;
  29.                     left: 0;
  30.                     width: 100%;
  31.                     text-align: center;
  32.                     font-weight: bolder;
  33.                     transition: 0.2s ease-in-out;
  34.                     padding: 0 10px;
  35.                 }
  36.                 .book-container {
  37.                     margin-top: 20px;
  38.                     margin-bottom: 14px;
  39.                 }
  40.                 .cover-art {
  41.                     max-height: 288px;
  42.                     margin: auto;
  43.                     display: block;
  44.                 }
  45.                 .row {
  46.                     display: flex;
  47.                     flex-direction: row;
  48.                 }
  49.                 .column {
  50.                     justify-content: center;
  51.                     display: flex;
  52.                     flex-direction: column;
  53.                 }
  54.             </style>
  55.             <div class="row">
  56.                 {% if customer is defined %}
  57.                     <h1>{{customer}}</h1>
  58.                 {% else %}
  59.                     <h1>{{title}}</h1>
  60.                 {% endif %}
  61.                 {% if showSortSelect is defined and showSortSelect %}
  62.                     {% include "includes/ebooks-sort-select.html.twig" %}
  63.                 {% endif %}
  64.             </div>
  65.             <div class="row">
  66.                 {% for eBook in eBooks %}
  67.                     <a class="col-lg-4 col-md-6" href="{{eBook.getURL()}}">
  68.                         <div class="book-container">
  69.                             <div class="book">
  70.                                 {% if eBook.getMedia() %}
  71.                                     {{eBook.getMedia().getImageTag('cover-art')|raw}}
  72.                                 {% endif %}
  73.                                 {# <span class="title">{{eBook}}</span> #}
  74.                             </div>
  75.                         </div>
  76.                         <div class="title">{{eBook.getTitle()}}</div>
  77.                     </a>
  78.                 {% endfor %}
  79.             </div>
  80.         {% endblock %}
  81.     {% endembed %}
  82. {% endblock %}