| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: views-exposed-form.tpl.php,v 1.4.4.1 2009/11/18 20:37:58 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 for="<?php print $widget->id; ?>"> 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>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |