You are here

views-isotope-filter-block.tpl.php in Views Isotope (Deprecated) 7

views-isotope-filter-block.tpl.php Default simple view template to display a list of rows.

File

views-isotope-filter-block.tpl.php
View source
<?php

/**
 * @file views-isotope-filter-block.tpl.php
 * Default simple view template to display a list of rows.
 *
 * @ingroup views_templates
 */
?>

<div id="isotope-options">
  <ul id="filters" class="option-set clearfix" data-option-key="filter">
  
    <?php

foreach ($rows as $id => $row) {
  ?>

      <?php


  // remove characters that cause problems with classes
  // this is also do to the isotope elements
  $dataoption = trim(strip_tags(strtolower($row)));
  $dataoption = str_replace(' ', '-', $dataoption);
  $dataoption = str_replace('/', '-', $dataoption);
  $dataoption = str_replace('&amp;', '', $dataoption);
  ?>

      <li><a class="filterbutton" data-option-value=".<?php

  print $dataoption;
  ?>" href="#filter"><?php

  print trim($row);
  ?></a></li>


    <?php

}
?>
    
  </ul>  
</div>