modif css
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user