Treiem el banner de la Literal

This commit is contained in:
Enric Pineda 2023-05-21 23:19:22 +02:00
parent 42f0fe7cf0
commit 9fb81ac252
2 changed files with 11 additions and 8 deletions

View File

@ -5,10 +5,9 @@
<div class="glide">
<div class="glide__track" data-glide-el="track">
<ul class="glide__slides">
<li class="glide_slide"><img src="<?php echo get_theme_file_uri('img/banners/banner-franquesa.png');?>" /> </li>
<li class="glide__slide"><img src="/wp-content/uploads/2021/06/bs_amades-1.jpg" /></li>
<li class="glide__slide"><img src="/wp-content/uploads/2021/06/bs_manifest-1.jpg" /></li>
<li class="glide__slide"><img src="/wp-content/uploads/2021/06/bs_cursos-1.jpg" /></li>
<li class="glide_slide"><a href="https://butiko.esperanto.cat/botiga/poemoj-rakontoj-kaj-kokcineloj/"><img src="https://www.esperanto.cat/wp-content/uploads/2023/05/banner-kokcinetoj.png"/></a></li>
<li class="glide_slide"><a href="https://butiko.esperanto.cat/"><img src="https://www.esperanto.cat/wp-content/uploads/2023/04/banner-butiko-kea-web.png" /> </a></li>
<li class="glide_slide"><a href="https://www.esperanto.cat/publicacions-kea/kataluna-esperantisto/"><img src="<?php echo get_theme_file_uri('img/banners/ke-banner.png');?>" /></a> </li>
</ul>
</div>
@ -103,10 +102,14 @@ wp_reset_postdata();
<h2><?php pll_e('Agenda');?></h2>
<?php
$avuies = date("Ymd");
$arguments = array (
'post_type' => 'events',
//'category_name' => 'esdeveniments',
'posts_per_page' => '5'
'posts_per_page' => '5',
'meta_key' => 'Data',
'meta_value' => $avuies,
'meta_compare' => '>='
);
$post_query = new WP_Query($arguments);
if ( $post_query -> have_posts() ) :

View File

@ -5,9 +5,9 @@
<div class="glide">
<div class="glide__track" data-glide-el="track">
<ul class="glide__slides">
<li class="glide__slide"><img src="/wp-content/uploads/2021/06/bs_amades-1.jpg" /></li>
<li class="glide__slide"><img src="/wp-content/uploads/2021/06/bs_manifest-1.jpg" /></li>
<li class="glide__slide"><img src="/wp-content/uploads/2021/06/bs_cursos-1.jpg" /></li>
<li class="glide_slide"><a href="https://butiko.esperanto.cat/botiga/poemoj-rakontoj-kaj-kokcineloj/"><img src="https://www.esperanto.cat/wp-content/uploads/2023/05/banner-kokcinetoj.png"/></a></li>
<li class="glide_slide"><a href="https://www.esperanto.cat/parades-de-sant-jordi-de-kea/"><img src="<?php echo get_theme_file_uri('img/banners/banner-stjordi-23.png');?>" /> </a></li>
<li class="glide_slide"><a href="https://www.esperanto.cat/publicacions-kea/kataluna-esperantisto/"><img src="<?php echo get_theme_file_uri('img/banners/ke-banner.png');?>" /></a> </li>
</ul>
</div>