views-fluid-grid-plugin-style.tpl.php

  1. cis7 sites/all/modules/local_contrib/views_fluid_grid/theme/views-fluid-grid-plugin-style.tpl.php
  2. elmsmedia7 sites/all/modules/local_contrib/views_fluid_grid/theme/views-fluid-grid-plugin-style.tpl.php

Default view template to display a list of items in a fluid grid.

Available template variables:

  • $view: The view object.
  • $title: Title of the view. May be empty.
  • $rows: Array of items.
  • $list_class: The class for the items list.
  • $classes: Array of classes for each item.
  • $classes_array: Array of classes for each item.
1 string reference to the theme hook from views-fluid-grid-plugin-style.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

views_fluid_grid_views_plugins in sites/all/modules/local_contrib/views_fluid_grid/views/views_fluid_grid.views.inc
Implementation of hook_views_plugins().

File

sites/all/modules/local_contrib/views_fluid_grid/theme/views-fluid-grid-plugin-style.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default view template to display a list of items in a fluid grid.
  5. *
  6. * Available template variables:
  7. * - $view: The view object.
  8. * - $title: Title of the view. May be empty.
  9. * - $rows: Array of items.
  10. * - $list_class: The class for the items list.
  11. * - $classes: Array of classes for each item.
  12. * - $classes_array: Array of classes for each item.
  13. *
  14. * @ingroup views_templates
  15. */
  16. ?>
  17. <div class="views-fluid-grid">
  18. <?php if (!empty($title)) : ?>
  19. <h3><?php print $title; ?></h3>
  20. <?php endif; ?>
  21. <ul class="<?php print $list_class; ?>">
  22. <?php foreach ($rows as $id => $item): ?>
  23. <li class="views-fluid-grid-inline views-fluid-grid-item <?php print $classes_array[$id]; ?>"><?php print $item; ?></li>
  24. <?php endforeach; ?>
  25. <?php if (!empty($options['list_alignment']) && $options['list_alignment'] == 'justify') : ?>
  26. <li class="views-fluid-grid-inline views-fluid-grid-justify-last"></li>
  27. <?php endif; ?>
  28. </ul>
  29. </div>

Related topics