You are here

date-views-filter-form.tpl.php in Date 7.2

Template to display the Views date filter form.

Values available vary depending on the operator. The availability of date vs adjustment depending on the filter settings. It can be date-only, date and adjustment, or adjustment only.

If the operator is anything but 'Is between' or 'Is not between', a single date and adjustment field is available.

$date $adjustment

If the operator is 'Is between' or 'Is not between', two date and adjustment fields are available.

$mindate $minadjustment $maxdate $maxadjustment

A description field is also available.

$description

File

date_views/theme/date-views-filter-form.tpl.php
View source
<?php

/**
 * @file
 * Template to display the Views date filter form.
 *
 * Values available vary depending on the operator. The availability of date vs
 * adjustment depending on the filter settings. It can be date-only, date and
 * adjustment, or adjustment only.
 *
 * If the operator is anything but 'Is between' or 'Is not between', a single
 * date and adjustment field is available.
 *
 * $date
 * $adjustment
 *
 * If the operator is 'Is between' or 'Is not between', two date and adjustment
 * fields are available.
 *
 * $mindate
 * $minadjustment
 * $maxdate
 * $maxadjustment
 *
 * A description field is also available.
 *
 * $description
 */
?>
<div class="date-views-filter-wrapper">
  <div class="container-inline-date date-clear">
  <?php

if (!empty($date) || !empty($adjustment)) {
  ?>
    <div class="date-clear">
      <div class="date-views-filter"><?php

  print $date;
  ?></div>
      <div class="date-views-filter"><?php

  print $adjustment;
  ?></div>
    </div>
  <?php

}
?>
  <?php

if (!empty($mindate) || !empty($minadjustment)) {
  ?>
    <div class="date-clear">
      <div class="date-views-filter"><?php

  print $mindate;
  ?></div>
      <div class="date-views-filter"><?php

  print $minadjustment;
  ?></div>
    </div>
  <?php

}
?>
  <?php

if (!empty($maxdate) || !empty($maxadjustment)) {
  ?>
    <div class="date-clear">
      <div class="date-views-filter"><?php

  print $maxdate;
  ?></div>
      <div class="date-views-filter"><?php

  print $maxadjustment;
  ?></div>
    </div>
  <?php

}
?>
  </div>
  <div class="date-clear form-item"><div class="description">
    <?php

print $description;
?>
  </div></div>
</div>