Browse Source

added agenda title to home agenda

Bachir Soussi Chiadmi 6 năm trước cách đây
mục cha
commit
fcd97f6492
1 tập tin đã thay đổi với 11 bổ sung4 xóa
  1. 11 4
      sites/all/modules/figli/edlp_home/includes/edlp_home.inc

+ 11 - 4
sites/all/modules/figli/edlp_home/includes/edlp_home.inc

@@ -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);