| 1 |
<?php
|
| 2 |
// $Id: views-exposed-form.tpl.php,v 1.3 2008/03/31 17:20:38 merlinofchaos Exp $
|
| 3 |
/**
|
| 4 |
* @file views-exposed-form.tpl.php
|
| 5 |
*
|
| 6 |
* This template handles the layout of the views exposed filter form.
|
| 7 |
*
|
| 8 |
* Variables available:
|
| 9 |
* - $widgets: An array of exposed form widgets. Each widget contains:
|
| 10 |
* - $widget->label: The visible label to print. May be optional.
|
| 11 |
* - $widget->operator: The operator for the widget. May be optional.
|
| 12 |
* - $widget->widget: The widget itself.
|
| 13 |
* - $button: The submit button for the form.
|
| 14 |
*
|
| 15 |
* @ingroup views_templates
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
<?php if (!empty($q)): ?>
|
| 19 |
<?php
|
| 20 |
// This ensures that, if clean URLs are off, the 'q' is added first so that
|
| 21 |
// it shows up first in the URL.
|
| 22 |
print $q;
|
| 23 |
?>
|
| 24 |
<?php endif; ?>
|
| 25 |
<div class="views-exposed-form">
|
| 26 |
<div class="views-exposed-widgets clear-block">
|
| 27 |
<?php foreach($widgets as $id => $widget): ?>
|
| 28 |
<div class="views-exposed-widget">
|
| 29 |
<?php if (!empty($widget->label)): ?>
|
| 30 |
<label>
|
| 31 |
<?php print $widget->label; ?>
|
| 32 |
</label>
|
| 33 |
<?php endif; ?>
|
| 34 |
<?php if (!empty($widget->operator)): ?>
|
| 35 |
<div class="views-operator">
|
| 36 |
<?php print $widget->operator; ?>
|
| 37 |
</div>
|
| 38 |
<?php endif; ?>
|
| 39 |
<div class="views-widget">
|
| 40 |
<?php print $widget->widget; ?>
|
| 41 |
</div>
|
| 42 |
</div>
|
| 43 |
<?php endforeach; ?>
|
| 44 |
<div class="views-exposed-widget">
|
| 45 |
<?php print $button ?>
|
| 46 |
</div>
|
| 47 |
</div>
|
| 48 |
</div>
|