ADD footer posts
This commit is contained in:
@ -696,6 +696,10 @@ class StarterSite extends Site {
|
|||||||
$context['contacto_info'] = $this->getContactoFields();
|
$context['contacto_info'] = $this->getContactoFields();
|
||||||
$context['posts_industry'] = $this->getPostIndustry();
|
$context['posts_industry'] = $this->getPostIndustry();
|
||||||
$context['subpaginas_servicios'] = $this->getSubpaginasServicios();
|
$context['subpaginas_servicios'] = $this->getSubpaginasServicios();
|
||||||
|
|
||||||
|
//Para Footer
|
||||||
|
$context['lasts_posts_news'] = $this->getLastsPostsNews();
|
||||||
|
$context['last_posts_opinion'] = $this->getLastPostOpinion();
|
||||||
|
|
||||||
//otros
|
//otros
|
||||||
$context = array_merge($context, $this->getPolylangData());
|
$context = array_merge($context, $this->getPolylangData());
|
||||||
|
|||||||
17
style.css
17
style.css
@ -289,14 +289,21 @@ button[type="reset"] {
|
|||||||
|
|
||||||
/* size img posts in archive -- */
|
/* size img posts in archive -- */
|
||||||
.section-opinion .posts-noticias .img-noticias,
|
.section-opinion .posts-noticias .img-noticias,
|
||||||
.section-noticias .posts-noticias .img-noticias,
|
.section-noticias .posts-noticias .img-noticias {
|
||||||
|
max-height: 300px;
|
||||||
|
display: flex;
|
||||||
|
overflow: hidden;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
.section-industria .posts-noticias .img-noticias,
|
.section-industria .posts-noticias .img-noticias,
|
||||||
.section-servicios .posts-noticias .img-noticias {
|
.section-servicios .posts-noticias .img-noticias {
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
overflow: hidden;
|
height: 100%;
|
||||||
display: flex;
|
width: 100%;
|
||||||
justify-content: center;
|
object-fit: contain;
|
||||||
align-items: center;
|
object-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hover-title-text:hover {
|
.hover-title-text:hover {
|
||||||
|
|||||||
@ -7,10 +7,10 @@ $templates = [ 'templates/page-portada.twig' ];
|
|||||||
|
|
||||||
$context = Timber::context(
|
$context = Timber::context(
|
||||||
[
|
[
|
||||||
|
'lasts_posts_news' => $site->getLastsPostsNews(),
|
||||||
'last_posts_opinion' => $site->getLastPostOpinion(),
|
'last_posts_opinion' => $site->getLastPostOpinion(),
|
||||||
'posts_campana' => $site->getLastPostCampana(),
|
'posts_campana' => $site->getLastPostCampana(),
|
||||||
'posts_conflicts' => $site->getLastPostConflicts(),
|
'posts_conflicts' => $site->getLastPostConflicts(),
|
||||||
'lasts_posts_news' => $site->getLastsPostsNews(),
|
|
||||||
'botones_imagen' => $site->getBotonesEnlaces(),
|
'botones_imagen' => $site->getBotonesEnlaces(),
|
||||||
'videos' => $site->getVideosSlider(),
|
'videos' => $site->getVideosSlider(),
|
||||||
]
|
]
|
||||||
|
|||||||
@ -37,18 +37,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- end nav -->
|
<!-- end nav -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section id="content" class="content-wrapper container">
|
<section id="content" class="content-wrapper container">
|
||||||
{% if title %}
|
|
||||||
<h1>{{ title }}</h1>
|
|
||||||
{% endif %}
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
Lo siento, no hay contenido.
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row py-2">
|
<div class="row py-4">
|
||||||
|
|
||||||
<div class="col-sm-3 mb-1">
|
<div class="col-sm-4 mb-1">
|
||||||
<div class=""><img src="/wp-content/uploads/2025/07/logobehea.png" class="img-fluid" /></div>
|
<div class=""><img src="/wp-content/uploads/2025/07/logobehea.png" class="img-fluid" /></div>
|
||||||
<div class="p-1">
|
<div class="p-1">
|
||||||
<p>{{ footer_1 }}</p>
|
<p>{{ footer_1 }}</p>
|
||||||
@ -20,23 +20,44 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
|
||||||
{#<p>{{ dump() }}</p>
|
<div class="col-sm-5 mb-5 px-2">
|
||||||
{% include "menu.twig" with {'items': menu.get_items} %}#}
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3 mb-5">
|
|
||||||
|
|
||||||
|
<h3 class="text-decoration-underline">{{ __('Últimas noticias', 'Sindikatua') }}</h3>
|
||||||
|
{% for article in lasts_posts_news[0:2] %}
|
||||||
|
<ul class="list-unstyled ms-4">
|
||||||
|
<li>
|
||||||
|
<a href="{{ article.link }}"
|
||||||
|
class="text-decoration-none fs-6 text-white hover-title-text"
|
||||||
|
>
|
||||||
|
{{ article.title }}</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
<h3 class="text-decoration-underline">{{ __('Última Opinión', 'Sindikatua') }}</h3>
|
||||||
|
{% for article in last_posts_opinion %}
|
||||||
|
<ul class="list-unstyled ms-4">
|
||||||
|
<li>
|
||||||
|
<a href="{{ article.link }}"
|
||||||
|
class="text-decoration-none fs-6 text-white hover-title-text"
|
||||||
|
>
|
||||||
|
{{ article.title }}</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
|
|
||||||
{% if listContacts %}
|
{% if listContacts %}
|
||||||
<div class="footer-contactos">
|
<div class="footer-contactos">
|
||||||
<h3>{{ __('Contactos', 'Sindikatua') }}</h3>
|
<h3 class="text-decoration-underline">{{ __('Contactos', 'Sindikatua') }}</h3>
|
||||||
<ul class="list-unstyled ms-4">
|
<ul class="list-unstyled ms-4">
|
||||||
{% for contacto in listContacts %}
|
{% for contacto in listContacts %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ contacto.link }}"
|
<a href="{{ contacto.link }}"
|
||||||
class="text-decoration-none fs-5 text-white"
|
class="text-decoration-none fs-6 text-white hover-title-text"
|
||||||
>
|
>
|
||||||
{{ contacto.title }}</a>
|
{{ contacto.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
@ -51,15 +72,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="py-2 text-center mt-5 border-top border-light">
|
<div class="py-2 text-center mt-5 border-top border-light">
|
||||||
{# {% if function('pll_current_language') == 'eu' %}
|
<p>{{ __('El contenido de esta página web está bajo una licencia Creative Commons Reconocimiento-Compartir Igual 4.0 Internacional excepto aquel en el que se indique una fuente externa.', 'Sindikatua') }}</p>
|
||||||
<p>Web orri honen edukia Creative Commons Aitortu-Partekatu Berdin 4.0 Nazioarteko lizentzia baten pean dago, kanpoko iturri bat adierazten denean izan ezik.</p>
|
<p class="mb-0 fs-8">• {{ __('Todos los derechos reservados', 'Sindikatua') }}• {{"now"|date('Y')}}</p>
|
||||||
{% else %}
|
<a class="nav-link d-inline" href="/politica-privacidad">{{ __('Aviso legal y política de privacidad', 'Sindikatua') }} •</a>
|
||||||
<p>El contenido de esta página web está bajo una licencia Creative Commons Reconocimiento-Compartir Igual 4.0 Internacional excepto aquel en el que se indique una fuente externa.</p>
|
<a class="nav-link d-inline" href="/politica-cookies">{{ __('Política de cookies', 'Sindikatua') }}</a>
|
||||||
{% endif %} #}
|
|
||||||
<p>{{ __('El contenido de esta página web está bajo una licencia Creative Commons Reconocimiento-Compartir Igual 4.0 Internacional excepto aquel en el que se indique una fuente externa.', 'Sindikatua') }}</p>
|
|
||||||
<p class="mb-0 fs-8">• {{ __('Todos los derechos reservados', 'Sindikatua') }}• {{"now"|date('Y')}}</p>
|
|
||||||
<a class="nav-link d-inline" href="/politica-de-privacidad">{{ __('Aviso legal y política de privacidad', 'Sindikatua') }} •</a>
|
|
||||||
<a class="nav-link d-inline" href="/politica-de-cookies">{{ __('Política de cookies', 'Sindikatua') }}</a>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user