|
@@ -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',
|