Full ELMS Learning Network documentation
views-exposed-form.tpl.php
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.php
- cle7 sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.php
- ecd7 sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.php
- elmsmedia7 sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.php
- harmony7 sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.php
- icor7 sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.php
- meedjum_blog7 sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.php
- mooc7 sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.php
This template handles the layout of the views exposed filter form.
Variables available:
- $widgets: An array of exposed form widgets. Each widget contains:
- $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.
- $sort_by: The select box to sort the view using an exposed form.
- $sort_order: The select box with the ASC, DESC options to define order. May be optional.
- $items_per_page: The select box with the available items per page. May be optional.
- $offset: A textfield to define the offset of the view. May be optional.
- $reset_button: A button to reset the exposed filter applied. May be optional.
- $button: The submit button for the form.
5 string references to the theme hook from views-exposed-form.tpl.php
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- cis_helper_form_alter in profiles/
cis/ modules/ custom/ cis_helper/ cis_helper.module - Implements hook_form_alter().
- media_form_alter in sites/
all/ modules/ ulmus/ media/ media.module - Implements hook_form_alter().
- views_plugin_exposed_form::render_exposed_form in sites/
all/ modules/ ulmus/ views/ plugins/ views_plugin_exposed_form.inc - Render the exposed filter form.
- views_theme in sites/
all/ modules/ ulmus/ views/ views.module - Implement hook_theme(). Register views theming functions.
- views_theme in sites/
all/ modules/ ulmus/ views/ views.module - Implement hook_theme(). Register views theming functions.
File
sites/all/modules/ulmus/views/theme/views-exposed-form.tpl.phpView source
- <?php
-
- /**
- * @file
- * This template handles the layout of the views exposed filter form.
- *
- * Variables available:
- * - $widgets: An array of exposed form widgets. Each widget contains:
- * - $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.
- * - $sort_by: The select box to sort the view using an exposed form.
- * - $sort_order: The select box with the ASC, DESC options to define order. May be optional.
- * - $items_per_page: The select box with the available items per page. May be optional.
- * - $offset: A textfield to define the offset of the view. May be optional.
- * - $reset_button: A button to reset the exposed filter applied. May be optional.
- * - $button: The submit button for the form.
- *
- * @ingroup views_templates
- */
- ?>
- <?php if (!empty($q)): ?>
- <?php
- // This ensures that, if clean URLs are off, the 'q' is added first so that
- // it shows up first in the URL.
- print $q;
- ?>
- <?php endif; ?>
- <div class="views-exposed-form">
- <div class="views-exposed-widgets clearfix">
- <?php foreach ($widgets as $id => $widget): ?>
- <div id="<?php print $widget->id; ?>-wrapper" class="views-exposed-widget views-widget-<?php print $id; ?>">
- <?php if (!empty($widget->label)): ?>
- <label for="<?php print $widget->id; ?>">
- <?php print $widget->label; ?>
- </label>
- <?php endif; ?>
- <?php if (!empty($widget->operator)): ?>
- <div class="views-operator">
- <?php print $widget->operator; ?>
- </div>
- <?php endif; ?>
- <div class="views-widget">
- <?php print $widget->widget; ?>
- </div>
- <?php if (!empty($widget->description)): ?>
- <div class="description">
- <?php print $widget->description; ?>
- </div>
- <?php endif; ?>
- </div>
- <?php endforeach; ?>
- <?php if (!empty($sort_by)): ?>
- <div class="views-exposed-widget views-widget-sort-by">
- <?php print $sort_by; ?>
- </div>
- <div class="views-exposed-widget views-widget-sort-order">
- <?php print $sort_order; ?>
- </div>
- <?php endif; ?>
- <?php if (!empty($items_per_page)): ?>
- <div class="views-exposed-widget views-widget-per-page">
- <?php print $items_per_page; ?>
- </div>
- <?php endif; ?>
- <?php if (!empty($offset)): ?>
- <div class="views-exposed-widget views-widget-offset">
- <?php print $offset; ?>
- </div>
- <?php endif; ?>
- <div class="views-exposed-widget views-submit-button">
- <?php print $button; ?>
- </div>
- <?php if (!empty($reset_button)): ?>
- <div class="views-exposed-widget views-reset-button">
- <?php print $reset_button; ?>
- </div>
- <?php endif; ?>
- </div>
- </div>
-