You are here

views-exposed-widget.tpl.php in Views exposed form layout 7

This template handles the layout of the views exposed filter form.

Variables available:

  • $widget->label: The visible label to print. May be optional.
  • $widget->operator: The operator for the widget. May be optional.
  • $widget->widget: The widget itself.

File

theme/views-exposed-widget.tpl.php
View source
<?php

/**
 * @file
 * This template handles the layout of the views exposed filter form.
 *
 * Variables available:
 * - $widget->label: The visible label to print. May be optional.
 * - $widget->operator: The operator for the widget. May be optional.
 * - $widget->widget: The widget itself.
 *
 * @ingroup views_templates
 */
?>

<div id="<?php

print $widget->id;
?>-wrapper" class="<?php

print implode(' ', $classes_array);
?>">
  <?php

if (!empty($widget->label)) {
  ?>
    <label for="<?php

  print $widget->id;
  ?>">
      <?php

  print $widget->label;
  ?>
    </label>
  <?php

}
?>
  <?php

if (!empty($widget->operator)) {
  ?>
    <div class="views-operator">
      <?php

  print $widget->operator;
  ?>
    </div>
  <?php

}
?>

  <?php

if (property_exists($widget, 'operator')) {
  ?><div class="views-widget"><?php

}
?>
    <?php

print $widget->widget;
?>
  <?php

if (property_exists($widget, 'operator')) {
  ?></div><?php

}
?>

  <?php

if (!empty($widget->description)) {
  ?>
    <div class="description">
      <?php

  print $widget->description;
  ?>
    </div>
  <?php

}
?>
</div>