added agenda title to home agenda

This commit is contained in:
2018-04-26 18:19:06 +02:00
parent 1c12c205ec
commit fcd97f6492
@@ -93,12 +93,19 @@ function template_preprocess_edlp_home(&$vars){
// );
// render the next events of agenda as list
$agenda = array (
'#theme' => 'item_list',
'#items' => [],
$agenda = array(
'#type'=>"container",
'title'=>array(
'#markup'=>"<h3>".t("Agenda")."</h3>",
),
'list'=> array(
'#theme' => 'item_list',
'#items' => [],
),
);
foreach($vars['agenda_items'] as $node){
$agenda['#items'][] = $view_builder->view($node, 'teaser');
$agenda['list']['#items'][] = $view_builder->view($node, 'teaser');
}
$vars['agenda'] = render($agenda);