root / drupal7 / sites / all / modules / date / date_views / theme / date-views-filter-form.tpl.php @ ebcc4118
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
* Template to display the Views date filter form.
|
6 |
*
|
7 |
* Values available vary depending on the operator. The availability
|
8 |
* of date vs adjustment depending on the filter settings. It can
|
9 |
* be date-only, date and adjustment, or adjustment only.
|
10 |
*
|
11 |
* If the operator is anything but 'Is between' or 'Is not between',
|
12 |
* a single date and adjustment field is available.
|
13 |
*
|
14 |
* $date
|
15 |
* $adjustment
|
16 |
*
|
17 |
* If the operator is 'Is between' or 'Is not between',
|
18 |
* two date and adjustment fields are available.
|
19 |
*
|
20 |
* $mindate
|
21 |
* $minadjustment
|
22 |
* $maxdate
|
23 |
* $maxadjustment
|
24 |
*
|
25 |
* A description field is also available.
|
26 |
*
|
27 |
* $description
|
28 |
*/
|
29 |
?>
|
30 |
<div class="date-views-filter-wrapper"> |
31 |
<div class="container-inline-date date-clear"> |
32 |
<?php if (!empty($date) || !empty($adjustment)) : ?> |
33 |
<div class="date-clear"> |
34 |
<div class="date-views-filter"><?php print $date; ?></div> |
35 |
<div class="date-views-filter"><?php print $adjustment ?></div> |
36 |
</div>
|
37 |
<?php endif; ?> |
38 |
<?php if (!empty($mindate) || !empty($minadjustment)) : ?> |
39 |
<div class="date-clear"> |
40 |
<div class="date-views-filter"><?php print $mindate; ?></div> |
41 |
<div class="date-views-filter"><?php print $minadjustment; ?></div> |
42 |
</div>
|
43 |
<?php endif; ?> |
44 |
<?php if (!empty($maxdate) || !empty($maxadjustment)) : ?> |
45 |
<div class="date-clear"> |
46 |
<div class="date-views-filter"><?php print $maxdate; ?></div> |
47 |
<div class="date-views-filter"><?php print $maxadjustment; ?></div> |
48 |
</div>
|
49 |
<?php endif; ?> |
50 |
</div>
|
51 |
<div class="date-clear form-item"><div class="description"> |
52 |
<?php print $description; ?> |
53 |
</div>
|
54 |
</div>
|
55 |
</div>
|