ADD pages
This commit is contained in:
@ -1,101 +0,0 @@
|
||||
<section class="py-5">
|
||||
<div class="container">
|
||||
<div class="row align-items-center">
|
||||
|
||||
{# Primera columna - Carousel con vídeos embebidos SIN extraer ID #}
|
||||
<div class="col-lg-8 col-12 mb-4 mb-lg-0">
|
||||
<h2 class="mb-4">Últimos Vídeos</h2>
|
||||
|
||||
|
||||
{% if videos_carousel %}
|
||||
<div id="videosCarousel" class="carousel slide" data-bs-ride="carousel">
|
||||
<div class="carousel-inner">
|
||||
{% for video in videos_carousel %}
|
||||
<div class="carousel-item {% if loop.first %}active{% endif %}">
|
||||
<div class="video-container">
|
||||
{% set url_video = video.meta('url_video') %}
|
||||
{% set video_data = generar_embed(url_video) %}
|
||||
|
||||
{% if video_data %}
|
||||
{# Vídeo embebido de YouTube #}
|
||||
<div class="ratio ratio-16x9">
|
||||
<iframe src="{{ video_data.embed_url }}"
|
||||
title="{{ video.titulo }}"
|
||||
frameborder="0"
|
||||
allow="{{ video_data.allow }}"
|
||||
allowfullscreen>
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
{# Título del vídeo debajo #}
|
||||
<div class="carousel-caption d-none d-md-block">
|
||||
<h5 class="mb-0">{{ video.titulo }}</h5>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
{# Fallback si no hay URL #}
|
||||
<div class="alert alert-warning text-center">
|
||||
<h5>{{ video.titulo }}</h5>
|
||||
<p class="mb-0">No se ha configurado URL para este vídeo.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{# Controles del carousel (solo si hay más de un vídeo) #}
|
||||
{% if videos_carousel|length > 1 %}
|
||||
<button class="carousel-control-prev" type="button" data-bs-target="#videosCarousel" data-bs-slide="prev">
|
||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||
<span class="visually-hidden">Anterior</span>
|
||||
</button>
|
||||
<button class="carousel-control-next" type="button" data-bs-target="#videosCarousel" data-bs-slide="next">
|
||||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||
<span class="visually-hidden">Siguiente</span>
|
||||
</button>
|
||||
|
||||
{# Indicadores #}
|
||||
<div class="carousel-indicators">
|
||||
{% for video in videos_carousel %}
|
||||
<button type="button" data-bs-target="#videosCarousel" data-bs-slide-to="{{ loop.index0 }}"
|
||||
{% if loop.first %}class="active"{% endif %} aria-label="Slide {{ loop.index }}"></button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-info">
|
||||
<p class="mb-0">No hay vídeos disponibles.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{# Segunda columna - Último artículo de opinión #}
|
||||
<div class="col-lg-4 col-12 opinion-article">
|
||||
<h2 class="mb-4">Última Opinión</h2>
|
||||
|
||||
{% if ultimo_articulo_opinion %}
|
||||
<div class="h-100">
|
||||
{% for article in ultimo_articulo_opinion %}
|
||||
<div class="card secondary-article">
|
||||
<a href="{{ article.link }}">
|
||||
<img src="{{ article.thumbnail.src('medium') }}"
|
||||
alt="{{ article.thumbnail.alt }}"
|
||||
class="card-img "/>
|
||||
<div class="card-img-overlay">
|
||||
<h3 class="card-title text-wrap">
|
||||
<a href="{{ article.link }}">{{ article.title }}</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<p class="text-muted">No hay artículos de opinión disponibles.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
7
views/templates/page-acerca-de-la-cnt.twig
Normal file
7
views/templates/page-acerca-de-la-cnt.twig
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
Acerca de la CNT ---- A simple warning alert—check it out!
|
||||
</div>
|
||||
{% endblock %}
|
6
views/templates/page-barakaldo.twig
Normal file
6
views/templates/page-barakaldo.twig
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-bg-primary text-wrap">BARAKALDO</h1>
|
||||
|
||||
{% endblock %}
|
6
views/templates/page-bilbao.twig
Normal file
6
views/templates/page-bilbao.twig
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-bg-primary text-wrap">BILBAO</h1>
|
||||
|
||||
{% endblock %}
|
8
views/templates/page-documentos.twig
Normal file
8
views/templates/page-documentos.twig
Normal file
@ -0,0 +1,8 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="badge text-bg-primary text-wrap">DOCUMENTOS</h1>
|
||||
<div class="alert alert-warning" role="alert">
|
||||
DOCUMENTOS ---- A simple warning alert—check it out!
|
||||
</div>
|
||||
{% endblock %}
|
6
views/templates/page-donosti.twig
Normal file
6
views/templates/page-donosti.twig
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-bg-primary text-wrap">DONOSTI</h1>
|
||||
|
||||
{% endblock %}
|
6
views/templates/page-industria.twig
Normal file
6
views/templates/page-industria.twig
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class=" text-bg-primary text-wrap">INDUSTRIA</h1>
|
||||
|
||||
{% endblock %}
|
6
views/templates/page-irunea.twig
Normal file
6
views/templates/page-irunea.twig
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-bg-primary text-wrap">IRUÑA</h1>
|
||||
|
||||
{% endblock %}
|
6
views/templates/page-quieres-afiliarte.twig
Normal file
6
views/templates/page-quieres-afiliarte.twig
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-bg-primary text-wrap">AFILIATE</h1>
|
||||
|
||||
{% endblock %}
|
6
views/templates/page-servicios-privados.twig
Normal file
6
views/templates/page-servicios-privados.twig
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-bg-primary text-wrap">SERVICIOS PRIVADOS</h1>
|
||||
|
||||
{% endblock %}
|
5
views/templates/page-servicios-publicos.twig
Normal file
5
views/templates/page-servicios-publicos.twig
Normal file
@ -0,0 +1,5 @@
|
||||
{% extends 'layouts/base.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-bg-primary text-wrap">SERVICIOS PÚBLICOS</h1>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user