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',
|
'#theme' => 'item_list',
|
||||||
'#items' => [],
|
'#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){
|
foreach($vars['lastdocs_items'] as $node){
|
||||||
$lastdocs['list']['#items'][] = $node_view_builder->view($node, 'search_index');
|
$lastdocs['list']['#items'][] = $node_view_builder->view($node, 'search_index');
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -560,6 +560,11 @@ main[role="main"]{
|
|||||||
@include entree-micro-square;
|
@include entree-micro-square;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
nav{
|
||||||
|
a{
|
||||||
|
font-size: 0.756em;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.lastdocs{
|
div.lastdocs{
|
||||||
@@ -1678,6 +1683,8 @@ body.path-agenda main .col{
|
|||||||
// | __ / _ \ ' \/ -_)
|
// | __ / _ \ ' \/ -_)
|
||||||
// |_||_\___/_|_|_\___|
|
// |_||_\___/_|_|_\___|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ___ _ _ _
|
// ___ _ _ _
|
||||||
// | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
|
// | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
|
||||||
// | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
|
// | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
|
||||||
|
|||||||
Reference in New Issue
Block a user