added 'see all' to last docs block in home #459
This commit is contained in:
@@ -89,6 +89,19 @@ function template_preprocess_edlp_home(&$vars){
|
||||
'#theme' => 'item_list',
|
||||
'#items' => [],
|
||||
),
|
||||
'seeall'=>array(
|
||||
'#type' => 'link',
|
||||
'#prefix'=> '<nav>',
|
||||
'#title' => t("See all"),
|
||||
'#suffix'=> '</nav>',
|
||||
'#url' => $lastdocs_url,
|
||||
'#options'=>array(
|
||||
'attributes' => array(
|
||||
'data-drupal-link-system-path' => $lastdocs_url->getInternalPath(),
|
||||
'class' => array('ajax-link'),
|
||||
)
|
||||
)
|
||||
),
|
||||
);
|
||||
foreach($vars['lastdocs_items'] as $node){
|
||||
$lastdocs['list']['#items'][] = $node_view_builder->view($node, 'search_index');
|
||||
|
||||
Reference in New Issue
Block a user