templates/result_list.html.twig line 1

Open in your IDE?
  1. <style>
  2.     .result {
  3.         padding: 30px;
  4.         border: 1px solid #DDD;
  5.         background: #FFF;
  6.     }
  7.     .result-item, .result-not-found {
  8.         display: inline-block;
  9.         width: 100%;
  10.         margin: 5px 0;
  11.         font-size: 16px;
  12.         line-height: 22px;
  13.         font-family: "Noto Sans", Sans-serif;
  14.     }
  15.     .result-item {
  16.         float: left;
  17.     }
  18.     .result-total {
  19.         margin-top: 30px;
  20.         display: inline-block;
  21.         width: 100%;
  22.         text-align: right;
  23.         font-family: "Chivo", Sans-serif;
  24.         font-weight: 600;
  25.     }
  26.     .result-source {
  27.         display: inline-block;
  28.         /*width: 100%;*/
  29.         color: #4c4c4c;
  30.         font-family: "Chivo", Sans-serif;
  31.         font-size: 12px;
  32.         font-weight: 600;
  33.     }
  34.     .group {
  35.         display: inline-block;
  36.         margin-bottom: 20px;
  37.     }
  38.     .group--title {
  39.         font-weight: bold;
  40.     }
  41.     em {
  42.         color: #f15a3c;
  43.     }
  44.     .more {
  45.         font-weight: 600;
  46.         margin: 10px 0;
  47.         display: inline-block;
  48.     }
  49. </style>
  50. <link rel='stylesheet' id='agon-theme-style-css'  href='/styles.css' type='text/css' media='all' />
  51. <link href="https://fonts.googleapis.com/css?family=Roboto:400%7CChivo:700%7CNoto+Sans:400&display=swap" rel="stylesheet" property="stylesheet" media="all" type="text/css" >
  52. <div class="result">
  53.     {% if total == 0 %}
  54.         {% if language == 'lt' %}
  55.             <div class="result-not-found">Duomenų nerasta</div>
  56.         {% else %}
  57.             <div class="result-not-found">No results found</div>
  58.         {% endif %}
  59.     {% else %}
  60.         {% if language == 'lt' %}
  61.             <div class="result-total">Paieškos rezultatai ({{ total }})</div>
  62.         {% else %}
  63.             <div class="result-total">Search results ({{ total }})</div>
  64.         {% endif %}
  65.         {% for group in groups %}
  66.             {% if group.total %}
  67.                 <div class="group">
  68.                     {% if language == 'en' and group.title == 'Kita' %}
  69.                     {% else %}
  70.                         <div class="group--title">
  71.                             <div class="btn btn--tag animated fadeInDown">
  72.                                 <div class="tag-circle"></div>
  73.                                 {{ group.title }} ({{ group.total }})
  74.                             </div>
  75.                         </div>
  76.                     {% endif %}
  77.                     {% for item in group.items %}
  78.                         <div class="result-item">
  79.                             <a href="{{ item.link }}" target="_blank">{{ item.text|raw }}</a>
  80.                             {% if item.source %}
  81.                                 <br>
  82.                                 <div class="result-source"> {{ item.source }} {% if item.category %}| {{ item.category }}{% endif %}</div>
  83.                             {% endif %}
  84.                         </div>
  85.                     {% endfor %}
  86.                     {% if group.total > itemsPerPage %}
  87.                         <a href="{{ path('group_search_list', {group: group.id, search: search} ) }}" class="more" data-group-id="{{ group.id }}">Daugiau   <i aria-hidden="true" class="fas fa-arrow-right"></i></a>
  88.                     {% endif %}
  89.                 </div>
  90.             {% endif %}
  91.         {% endfor %}
  92.     {% endif %}
  93. </div>