Projet

Général

Profil

Paste
Télécharger (1,6 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / date / date_views / theme / date-views-filter-form.tpl.php @ 599a39cd

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 of date vs
8
 * adjustment depending on the filter settings. It can be date-only, date and
9
 * adjustment, or adjustment only.
10
 *
11
 * If the operator is anything but 'Is between' or 'Is not between', a single
12
 * date and adjustment field is available.
13
 *
14
 * $date
15
 * $adjustment
16
 *
17
 * If the operator is 'Is between' or 'Is not between', two date and adjustment
18
 * 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></div>
54
</div>