/[drupal]/contributions/modules/views/theme/views-exposed-form.tpl.php
ViewVC logotype

Contents of /contributions/modules/views/theme/views-exposed-form.tpl.php

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


Revision 1.4 - (show annotations) (download) (as text)
Wed May 7 23:00:25 2008 UTC (18 months, 3 weeks ago) by merlinofchaos
Branch: MAIN
CVS Tags: DRUPAL-6--2-0-RC5, DRUPAL-6--2-0-RC4, DRUPAL-6--2-0-RC3, DRUPAL-6--2-0-RC2, DRUPAL-6--2-0-RC1, DRUPAL-6--2-0-BETA3, DRUPAL-6--2-0-BETA4, DRUPAL-6--2-7, DRUPAL-6--2-6, DRUPAL-6--2-5, DRUPAL-6--2-4, DRUPAL-6--2-3, DRUPAL-6--2-2, DRUPAL-6--2-1, DRUPAL-6--2-0, DRUPAL-6--3-0-ALPHA1, HEAD
Branch point for: DRUPAL-6--2, DRUPAL-6--3, DRUPAL-7--3
Changes since 1.3: +4 -2 lines
File MIME type: text/x-php
#254861: Make exposed filter Apply button inline like it used to be.
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>

  ViewVC Help
Powered by ViewVC 1.1.2