You are here

views-bootstrap-dropdown-plugin-style.tpl.php in Views Bootstrap 7.3

Render a view containing a list of rows as a drop-down.

File

templates/dropdown/views-bootstrap-dropdown-plugin-style.tpl.php
View source
<?php

/**
 * @file
 * Render a view containing a list of rows as a drop-down.
 */
print $wrapper_prefix;
?>
  <button class="dropdown-toggle btn <?php

print $button_class;
?>" type="button" id="<?php

print $id;
?>-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <?php

print $button_text;
?> <span class="caret"></span>
  </button>
  <?php

print $list_type_prefix;
foreach ($rows as $key => $row) {
  ?>
    <li <?php

  print $row['attributes'];
  ?>><?php

  print strip_tags($row['content'], '<a><img>');
  ?></li>
<?php

}
?>
  <?php

print $list_type_suffix;
print $wrapper_suffix;