You are here

exposed_filter_data.tpl.php in Exposed Filter Data 6

Same filename and directory in other branches
  1. 7 exposed_filter_data.tpl.php

Basic template file

File

exposed_filter_data.tpl.php
View source
<?php

/**
 * @file
 * Basic template file
 */
if ($exposed_filters) {
  ?>
  <div class="exposed_filter_data">
    <div class="title"><?php

  print t('Filtered by:');
  ?></div>
    <div class="content">
      <?php

  foreach ($exposed_filters as $filter => $value) {
    ?>
        <?php

    if ($value) {
      ?>
          <div class="filter"><div class="name"><?php

      print $filter;
      ?>: </div>
          <?php

      if (is_array($value)) {
        ?>
            <div class="value"><?php

        print implode(', ', $value);
        ?></div>
          <?php

      }
      else {
        ?>
            <div class="value"><?php

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

      }
      ?>
          </div>
        <?php

    }
    ?>
      <?php

  }
  ?>
    </div>
  </div>
+<?php

}