home agenda title is a link
This commit is contained in:
@@ -94,10 +94,21 @@ function template_preprocess_edlp_home(&$vars){
|
|||||||
// );
|
// );
|
||||||
|
|
||||||
// render the next events of agenda as list
|
// render the next events of agenda as list
|
||||||
|
$agenda_url = Url::fromRoute('edlp_agenda.agenda');
|
||||||
$agenda = array(
|
$agenda = array(
|
||||||
'#type'=>"container",
|
'#type'=>"container",
|
||||||
'title'=>array(
|
'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(
|
'list'=> array(
|
||||||
'#theme' => 'item_list',
|
'#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 class="wrapper studio-ui-wrapper">
|
||||||
<div id="studio-ui">
|
<div id="studio-ui">
|
||||||
{{ chutier_ui }}
|
{{ chutier_ui }}
|
||||||
|
|||||||
Reference in New Issue
Block a user