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

43 lines
1.6 KiB
Twig
Raw Permalink Normal View History

2025-10-03 08:07:35 +00:00
{% extends 'layouts/base.twig' %}
{% block content %}
2025-10-17 11:24:50 +00:00
<h1 class="my-5 position-relative fs-3 fw-bold sp-module-title">{{ post.title }}</h1>
<section class="section-servicios">
2025-10-28 09:17:55 +00:00
{% if post.children('page') |length > 0 %}
{% for SubpagServicio in post.children('page') %}
2025-10-17 11:24:50 +00:00
2025-10-28 09:17:55 +00:00
{% set imagen = SubpagServicio.thumbnail.src | default(imagen_default) %}
{% set alt = SubpagServicio.thumbnail.alt | default('Imagen servicios cnt') %}
2025-10-17 11:24:50 +00:00
<div class="card my-3 position-relative posts-noticias">
<div class="row g-0">
<div class="col-md-4">
2025-10-21 13:29:36 +00:00
<img src="{{ imagen }}" alt="{{ alt }}"
2025-10-27 16:05:52 +00:00
class="p-2 img-noticias"
2025-10-17 11:24:50 +00:00
/>
2025-10-08 10:38:06 +00:00
</div>
2025-10-17 11:24:50 +00:00
<div class="col-md-8">
2025-10-24 09:24:25 +00:00
<div class="card-body">
2025-10-28 09:17:55 +00:00
<h5 class="card-title-text fs-4 fw-bold border-dark border-bottom">{{ SubpagServicio.title }}</h5>
<p class="card-text"> {{SubpagServicio.content}}</p>
2025-10-17 11:24:50 +00:00
</div>
</div>
</div>
</div>
{% endfor %}
{% else %}
<p>{{ __('No hay artículos', 'Sindikatua') }}</p>
{% endif %}
2025-10-28 09:17:55 +00:00
<!-- NO HAY PAGINATION -->
{# {% set pagination = post.children.pagination %}
2025-10-17 11:24:50 +00:00
{% if pagination %}
<div class="pagination-custom mt-5">
{% include 'partials/pagination-custom.twig' %}
</div>
2025-10-28 09:17:55 +00:00
{% endif %} #}
2025-10-17 11:24:50 +00:00
2025-10-03 08:07:35 +00:00
</section>
{% endblock %}