Files
cnt-sindikatua/views/templates/page-opinion.twig

61 lines
2.7 KiB
Twig
Raw Normal View History

2025-10-08 08:06:54 +00:00
{% extends 'layouts/base.twig' %}
{% block content %}
2025-10-15 15:34:24 +00:00
<h1 class="my-5 position-relative fs-3 fw-bold sp-module-title">{{ __('Opinión', 'Sindikatua') }}</h1>
2025-10-08 08:06:54 +00:00
2025-10-17 11:25:33 +00:00
<section class="section-opinion">
2025-10-08 08:06:54 +00:00
{% if posts_opinion %}
{% for noticias in posts_opinion %}
2025-10-27 16:05:52 +00:00
{% set imagen = noticias.thumbnail.src | default(imagen_default) %}
2025-10-08 08:06:54 +00:00
{% set alt = noticias.thumbnail.alt | default('Imagen por defecto') %}
2025-10-17 11:25:33 +00:00
<div class="card my-3 position-relative posts-noticias">
2025-10-08 08:06:54 +00:00
<div class="row g-0">
2025-10-21 13:29:36 +00:00
<div class="col-md-4 ">
2025-10-08 08:06:54 +00:00
<a href="{{ noticias.link }}" title="{{ noticias.title }}">
2025-10-21 13:29:36 +00:00
<img src="{{ imagen }}" alt="{{ alt }}"
class="rounded-start object-fit-cover w-100 h-100 img-noticias"
/>
2025-10-08 08:06:54 +00:00
</a>
</div>
<div class="col-md-8">
<div class="card-body" style="padding-bottom: 60px;">
<a href="{{ noticias.link }}" title="{{ noticias.title }}" class="text-decoration-none card-title">
<h2 class="fw-bolder fs-4 hover-title-text">{{ noticias.title }}</h2>
2025-10-08 08:06:54 +00:00
</a>
<p class="card-text"> {{
noticias.excerpt({
words: 50,
read_more: ''
})
}}</p>
<p class="card-text"><small class="text-body-secondary">{{ noticias.date }}</small></p>
<a href="{{ noticias.link }}"
class="btn position-absolute btn-secondary-cnt"
2025-10-21 13:29:36 +00:00
style="bottom: 15px; right: 15px; z-index: 10;"
2025-10-08 08:06:54 +00:00
>
{{ __('Sigue leyendo', 'Sindikatua') }}...
</a>
</div>
</div>
</div>
</div>
{% endfor %}
{% else %}
<h2>no hay artículos</h2>
{% endif %}
2025-10-08 10:38:06 +00:00
<!-- PAGINATION -->
{% set pagination = posts_opinion.pagination %}
2025-10-08 08:06:54 +00:00
<div class="pagination-custom mt-5">
{% include 'partials/pagination-custom.twig' %}
</div>
</section>
{% endblock %}