modif css

This commit is contained in:
Tessier
2020-10-16 17:03:15 +02:00
parent a40b4fa8d2
commit fd8cd36704
34 changed files with 1624 additions and 119 deletions
+20 -1
View File
@@ -40,9 +40,28 @@ $args = array (
$context['video_url'] = get_field('video_la_mine', FALSE, FALSE);
$context['projet'] = Timber::get_posts( $projet );
$context['posts'] = Timber::get_posts( $args );
$count_events = count($context['posts']);
$args = array (
'post_type' => 'post',
'orderby' => 'informations_fin_event',
'order' => 'ASC',
'meta_query' => array(
array(
'key' => 'informations_fin_event',
'compare' => '>=',
'value' => $today,
),
),
'numberposts' => 3
);
if ($count_events == 0) {
$context['posts_now'] = Timber::get_posts( $args );
}
$context['tpsF'] = Timber::get_posts( $tpsF );
Timber::render('accueil.twig', $context);