diff --git a/src/StarterSite.php b/src/StarterSite.php index 090a872..1782a1d 100644 --- a/src/StarterSite.php +++ b/src/StarterSite.php @@ -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()); diff --git a/style.css b/style.css index 9871df5..038c87c 100644 --- a/style.css +++ b/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 { diff --git a/template-portada.php b/template-portada.php index 9cd327f..5384c50 100644 --- a/template-portada.php +++ b/template-portada.php @@ -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(), ] diff --git a/views/layouts/base.twig b/views/layouts/base.twig index 65f657d..3ed6cc8 100644 --- a/views/layouts/base.twig +++ b/views/layouts/base.twig @@ -37,18 +37,13 @@ - {% endblock %}
- {% if title %} -

{{ title }}

- {% endif %}
{% block content %} - Lo siento, no hay contenido. {% endblock %}
diff --git a/views/partials/footer.twig b/views/partials/footer.twig index 61c5335..241a56e 100644 --- a/views/partials/footer.twig +++ b/views/partials/footer.twig @@ -1,7 +1,7 @@
-
+
-
+

{{ footer_1 }}

@@ -20,23 +20,44 @@
-
- {#

{{ dump() }}

- {% include "menu.twig" with {'items': menu.get_items} %}#} -
-
+ +
+

{{ __('Últimas noticias', 'Sindikatua') }}

+ {% for article in lasts_posts_news[0:2] %} + + {% endfor %} + +

{{ __('Última Opinión', 'Sindikatua') }}

+ {% for article in last_posts_opinion %} + + {% endfor %} +
{% if listContacts %}
- {# {% if function('pll_current_language') == 'eu' %} -

Web orri honen edukia Creative Commons Aitortu-Partekatu Berdin 4.0 Nazioarteko lizentzia baten pean dago, kanpoko iturri bat adierazten denean izan ezik.

- {% else %} -

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.

- {% endif %} #} -

{{ __('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') }}

-

• {{ __('Todos los derechos reservados', 'Sindikatua') }}• {{"now"|date('Y')}}

- {{ __('Aviso legal y política de privacidad', 'Sindikatua') }} • - {{ __('Política de cookies', 'Sindikatua') }} - +

{{ __('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') }}

+

• {{ __('Todos los derechos reservados', 'Sindikatua') }}• {{"now"|date('Y')}}

+ {{ __('Aviso legal y política de privacidad', 'Sindikatua') }} • + {{ __('Política de cookies', 'Sindikatua') }}
\ No newline at end of file