Browse Source

home agenda title is a link

Bachir Soussi Chiadmi 7 years ago
parent
commit
19b528e804

+ 12 - 1
sites/all/modules/figli/edlp_home/includes/edlp_home.inc

@@ -94,10 +94,21 @@ function template_preprocess_edlp_home(&$vars){
   // );
 
   // render the next events of agenda as list
+  $agenda_url = Url::fromRoute('edlp_agenda.agenda');
   $agenda = array(
     '#type'=>"container",
     'title'=>array(
-      '#markup'=>"<h3>".t("Agenda")."</h3>",
+      '#prefix'=> '<h3>',
+      '#title' => t("Agenda"),
+      '#suffix' => '</h3>',
+      '#type' => 'link',
+      '#url' => $agenda_url,
+      '#options'=>array(
+        'attributes' => array(
+          'data-drupal-link-system-path' => $agenda_url->getInternalPath(),
+          'class' => array('ajax-link'),
+        )
+      )
     ),
     'list'=> array(
       '#theme' => 'item_list',

+ 1 - 1
sites/all/themes/custom/edlptheme/templates/content/edlp-studio-ui.html.twig

@@ -1,4 +1,4 @@
-<div class="col small-col-12 med-col-12 large-col-6">
+<div class="col small-col-12 med-col-12 large-col-8">
   <div class="wrapper studio-ui-wrapper">
     <div id="studio-ui">
       {{ chutier_ui }}