src/AppBundle/Resources/views/ObjectViews/include/moreContentLinks.html.twig line 1

Open in your IDE?
  1. {% if content.getLinks() %}
  2.     <div class="row inner-full">
  3.         <div class="col-10 offset-1">
  4.             <h4 class="smaller text-primary border-bottom">{{ content.getH2() ? content.getH2() : 'news.details.links_title'|trans }}</h4>
  5.             <ul class="linklist list-unstyled d-flex">
  6.             {% for link in content.getLinks() %}
  7.                 {% if link.getType == 'page' %}
  8.                     {% set title = link.getTitle() %}
  9.                 {% else %}
  10.                     {% set title = link.getKey() %}
  11.                 {% endif %}
  12.                 {% if not title %}
  13.                     {% set title = link.getKey() %}
  14.                 {% endif %}
  15.                 {% set href = foxhabbit_common_tool_url_get_href( link) %}
  16.                 {% set target = foxhabbit_common_tool_url_get_target( link) %}
  17.                 <li><a class='lorch-icon {{ target == '_blank' ? 'lorch-icon-external-link' : 'lorch-icon-next' }}' href="{{ href }}" target="{{ target }}">{{ title }}</a></li>
  18.             {% endfor %}
  19.             </ul>
  20.         </div>
  21.     </div>
  22. {% endif %}