|
@@ -93,12 +93,19 @@ function template_preprocess_edlp_home(&$vars){
|
|
// );
|
|
// );
|
|
|
|
|
|
// render the next events of agenda as list
|
|
// 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){
|
|
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);
|
|
$vars['agenda'] = render($agenda);
|
|
|
|
|