/[drupal]/contributions/themes/acquia_slate/search-theme-form.tpl.php
ViewVC logotype

Contents of /contributions/themes/acquia_slate/search-theme-form.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sat Feb 28 23:33:58 2009 UTC (8 months, 4 weeks ago) by jwolf
Branch: MAIN
CVS Tags: DRUPAL-6--1-4, DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-6--1-3, HEAD
Branch point for: DRUPAL-6--1, DRUPAL-6--2
File MIME type: text/x-php
initial commit of Acquia Slate theme
1 <?php
2 // $Id$
3
4 /**
5 * @file search-theme-form.tpl.php
6 * Default theme implementation for displaying a search form directly into the
7 * theme layout. Not to be confused with the search block or the search page.
8 *
9 * Available variables:
10 * - $search_form: The complete search form ready for print.
11 * - $search: Array of keyed search elements. Can be used to print each form
12 * element separately.
13 *
14 * Default keys within $search:
15 * - $search['search_theme_form']: Text input area wrapped in a div.
16 * - $search['submit']: Form submit button.
17 * - $search['hidden']: Hidden form elements. Used to validate forms when submitted.
18 *
19 * Since $search is keyed, a direct print of the form element is possible.
20 * Modules can add to the search form so it is recommended to check for their
21 * existance before printing. The default keys will always exist.
22 *
23 * <?php if (isset($search['extra_field'])): ?>
24 * <div class="extra-field">
25 * <?php print $search['extra_field']; ?>
26 * </div>
27 * <?php endif; ?>
28 *
29 * To check for all available data within $search, use the code below.
30 *
31 * <?php print '<pre>'. check_plain(print_r($search, 1)) .'</pre>'; ?>
32 *
33 * @see template_preprocess_search_theme_form()
34 */
35 ?>
36
37 <div id="search" class="container-inline">
38 <?php // <label for="edit-search_theme_form">Search</label> ?>
39 <input class="search-input form-text" type="text" maxlength="128" name="search_theme_form" id="edit-search_theme_form" size="15" value="" title="Enter the terms you wish to search for" />
40 <input class="search_submit" type="submit" name="op" value="Search" />
41 <?php print $search['hidden']; ?>
42 <?php // <a class="advanced-search-link" href="/search" title="Advanced Search">Advanced Search</a> ?>
43 </div>

  ViewVC Help
Powered by ViewVC 1.1.2