home agenda title is a link

This commit is contained in:
2018-05-03 00:01:39 +02:00
parent 6650ec69d4
commit 19b528e804
2 changed files with 13 additions and 2 deletions
@@ -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,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 }}