added agenda title to home agenda
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user