ADD footer posts
This commit is contained in:
@ -696,6 +696,10 @@ class StarterSite extends Site {
|
||||
$context['contacto_info'] = $this->getContactoFields();
|
||||
$context['posts_industry'] = $this->getPostIndustry();
|
||||
$context['subpaginas_servicios'] = $this->getSubpaginasServicios();
|
||||
|
||||
//Para Footer
|
||||
$context['lasts_posts_news'] = $this->getLastsPostsNews();
|
||||
$context['last_posts_opinion'] = $this->getLastPostOpinion();
|
||||
|
||||
//otros
|
||||
$context = array_merge($context, $this->getPolylangData());
|
||||
|
||||
17
style.css
17
style.css
@ -289,14 +289,21 @@ button[type="reset"] {
|
||||
|
||||
/* size img posts in archive -- */
|
||||
.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-servicios .posts-noticias .img-noticias {
|
||||
max-height: 300px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
.hover-title-text:hover {
|
||||
|
||||
@ -7,10 +7,10 @@ $templates = [ 'templates/page-portada.twig' ];
|
||||
|
||||
$context = Timber::context(
|
||||
[
|
||||
'lasts_posts_news' => $site->getLastsPostsNews(),
|
||||
'last_posts_opinion' => $site->getLastPostOpinion(),
|
||||
'posts_campana' => $site->getLastPostCampana(),
|
||||
'posts_conflicts' => $site->getLastPostConflicts(),
|
||||
'lasts_posts_news' => $site->getLastsPostsNews(),
|
||||
'botones_imagen' => $site->getBotonesEnlaces(),
|
||||
'videos' => $site->getVideosSlider(),
|
||||
]
|
||||
|
||||
@ -37,18 +37,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- end nav -->
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
</header>
|
||||
|
||||
<section id="content" class="content-wrapper container">
|
||||
{% if title %}
|
||||
<h1>{{ title }}</h1>
|
||||
{% endif %}
|
||||
<div class="wrapper">
|
||||
{% block content %}
|
||||
Lo siento, no hay contenido.
|
||||
{% endblock %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<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="p-1">
|
||||
<p>{{ footer_1 }}</p>
|
||||
@ -20,23 +20,44 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
{#<p>{{ dump() }}</p>
|
||||
{% include "menu.twig" with {'items': menu.get_items} %}#}
|
||||
</div>
|
||||
<div class="col-sm-3 mb-5">
|
||||
|
||||
<div class="col-sm-5 mb-5 px-2">
|
||||
|
||||
<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 class="col-sm-3">
|
||||
|
||||
{% if listContacts %}
|
||||
<div class="footer-contactos">
|
||||
<h3>{{ __('Contactos', 'Sindikatua') }}</h3>
|
||||
<h3 class="text-decoration-underline">{{ __('Contactos', 'Sindikatua') }}</h3>
|
||||
<ul class="list-unstyled ms-4">
|
||||
{% for contacto in listContacts %}
|
||||
<li>
|
||||
<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>
|
||||
</li>
|
||||
@ -51,15 +72,9 @@
|
||||
|
||||
</div>
|
||||
<div class="py-2 text-center mt-5 border-top border-light">
|
||||
{# {% if function('pll_current_language') == 'eu' %}
|
||||
<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>
|
||||
{% else %}
|
||||
<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>
|
||||
{% 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>
|
||||
|
||||
<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-privacidad">{{ __('Aviso legal y política de privacidad', 'Sindikatua') }} •</a>
|
||||
<a class="nav-link d-inline" href="/politica-cookies">{{ __('Política de cookies', 'Sindikatua') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user