Mercurial > hg > drupalISMI
comparison mpiwgISMI/views-exposed-form.tpl.php @ 8:5148098e96a4
add theme drupalISMI.
author | casties |
---|---|
date | Fri, 19 Jun 2015 18:58:25 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7:f651752ee9ad | 8:5148098e96a4 |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * This template handles the layout of the views exposed filter form. | |
6 * | |
7 * Variables available: | |
8 * - $widgets: An array of exposed form widgets. Each widget contains: | |
9 * - $widget->label: The visible label to print. May be optional. | |
10 * - $widget->operator: The operator for the widget. May be optional. | |
11 * - $widget->widget: The widget itself. | |
12 * - $sort_by: The select box to sort the view using an exposed form. | |
13 * - $sort_order: The select box with the ASC, DESC options to define order. May be optional. | |
14 * - $items_per_page: The select box with the available items per page. May be optional. | |
15 * - $offset: A textfield to define the offset of the view. May be optional. | |
16 * - $reset_button: A button to reset the exposed filter applied. May be optional. | |
17 * - $button: The submit button for the form. | |
18 * | |
19 * @ingroup views_templates | |
20 */ | |
21 ?> | |
22 <?php if (!empty($q)): ?> | |
23 <?php | |
24 // This ensures that, if clean URLs are off, the 'q' is added first so that | |
25 // it shows up first in the URL. | |
26 print $q; | |
27 ?> | |
28 <?php endif; ?> | |
29 <div class="views-exposed-form"> | |
30 <div class="views-exposed-widgets clearfix"> | |
31 <?php foreach ($widgets as $id => $widget): ?> | |
32 <div id="<?php print $widget->id; ?>-wrapper" | |
33 class="views-exposed-widget views-widget-<?php print $id; ?>"> | |
34 <?php if (!empty($widget->label)): ?> | |
35 <label for="<?php print $widget->id; ?>"> <?php print $widget->label; ?> | |
36 </label> | |
37 <?php endif; ?> | |
38 <?php if (!empty($widget->operator)): ?> | |
39 <div class="views-operator"> | |
40 <?php print $widget->operator; ?> | |
41 </div> | |
42 <?php endif; ?> | |
43 <div class="views-widget"> | |
44 <?php print $widget->widget; ?> | |
45 </div> | |
46 <?php if (!empty($widget->description)): ?> | |
47 <div class="description"> | |
48 <?php print $widget->description; ?> | |
49 </div> | |
50 <?php endif; ?> | |
51 </div> | |
52 <?php endforeach; ?> | |
53 | |
54 </div> | |
55 <div class="views-mpiwg-commands"> | |
56 <?php if (!empty($sort_by)): ?> | |
57 <!-- <div class="views-exposed-widget views-widget-sort-by"> --> | |
58 <?php print $sort_by; ?> | |
59 <!-- </div> --> | |
60 <!-- <div class="views-exposed-widget views-widget-sort-order">--> | |
61 <?php print $sort_order; ?> | |
62 <!-- </div> --> | |
63 <?php endif; ?> | |
64 <?php if (!empty($items_per_page)): ?> | |
65 <div class="views-exposed-widget views-widget-per-page"> | |
66 <?php print $items_per_page; ?> | |
67 </div> | |
68 <?php endif; ?> | |
69 <?php if (!empty($offset)): ?> | |
70 <div class="views-exposed-widget views-widget-offset"> | |
71 <?php print $offset; ?> | |
72 </div> | |
73 <?php endif; ?> | |
74 </div> | |
75 <div class="views-mpiwg-submit"> | |
76 <div class="views-exposed-widget views-submit-button"> | |
77 <?php print $button; ?> | |
78 </div> | |
79 <?php if (!empty($reset_button)): ?> | |
80 <div class="views-exposed-widget views-reset-button"> | |
81 <?php print $reset_button; ?> | |
82 </div> | |
83 <?php endif; ?> | |
84 </div> | |
85 | |
86 | |
87 </div> |