Skip to content
Snippets Groups Projects
Commit 463388a2 authored by Aspectis's avatar Aspectis Committed by Dorian Merz
Browse files

refs #19235 [fid_bbi] always display header search

Even on advanced search page.
parent 246bc216
No related merge requests found
...@@ -4,17 +4,7 @@ ...@@ -4,17 +4,7 @@
<!-- fid_bbi: layout - layout --> <!-- fid_bbi: layout - layout -->
<?php $isHome = $this->templateDir === 'search' && $this->templateName === 'home'; ?> <?php $isHome = $this->templateDir === 'search' && $this->templateName === 'home'; ?>
<body class="layout <?=$isHome ? '-home' : '-default'?>"> <body class="layout <?=$isHome ? '-home' : '-default'?>">
<?php <?php $this->layout()->searchbox = $this->render('search/searchbox.phtml'); ?>
// Set up the search box -- there are three possible cases:
// 1. No search box was set; we should default to the normal box
// 2. It was set to false; we should display nothing
// 3. It is set to a custom string; we should display the provided version
// Set up default search box if no data was provided from the template;
// this covers case 1. Cases 2 and 3 are then covered by logic below.
if (!isset($this->layout()->searchbox)) {
$this->layout()->searchbox = $this->render('search/searchbox.phtml');
}
?>
<?php // Add landmark role to avoid 'all content must be inside landmarks error', CK ?> <?php // Add landmark role to avoid 'all content must be inside landmarks error', CK ?>
<div role="navigation" aria-label="Skip_navigation_links"> <div role="navigation" aria-label="Skip_navigation_links">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment