-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
131 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Displays the search form block. | ||
* | ||
* Available variables: | ||
* - $search_form: The complete search form ready for print. | ||
* - $search: Associative array of search elements. Can be used to print each | ||
* form element separately. | ||
* | ||
* Default elements within $search: | ||
* - $search['search_block_form']: Text input area wrapped in a div. | ||
* - $search['actions']: Rendered form buttons. | ||
* - $search['hidden']: Hidden form elements. Used to validate forms when | ||
* submitted. | ||
* | ||
* Modules can add to the search form, so it is recommended to check for their | ||
* existence before printing. The default keys will always exist. To check for | ||
* a module-provided field, use code like this: | ||
* @code | ||
* <?php if (isset($search['extra_field'])): ?> | ||
* <div class="extra-field"> | ||
* <?php print $search['extra_field']; ?> | ||
* </div> | ||
* <?php endif; ?> | ||
* @endcode | ||
* | ||
* @see template_preprocess_search_block_form() | ||
*/ | ||
?> | ||
<div class="container-inline"> | ||
<?php if (empty($variables['form']['#block']->subject)): ?> | ||
<h2 class="element-invisible"><?php print t('Search form'); ?></h2> | ||
<?php endif; ?> | ||
<?php print $search_form; ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters