[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/date/theme/ -> date-views-filter-form.tpl.php (source)

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


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7