views-view-grid.tpl.php

  1. cis7 sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
  2. cis7 sites/all/modules/ulmus/views/theme/views-view-grid.tpl.php
  3. cle7 sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
  4. cle7 sites/all/modules/ulmus/views/theme/views-view-grid.tpl.php
  5. ecd7 sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
  6. ecd7 sites/all/modules/ulmus/views/theme/views-view-grid.tpl.php
  7. elmsmedia7 sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
  8. elmsmedia7 sites/all/modules/ulmus/views/theme/views-view-grid.tpl.php
  9. harmony7 sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
  10. harmony7 sites/all/modules/ulmus/views/theme/views-view-grid.tpl.php
  11. icor7 sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
  12. icor7 sites/all/modules/ulmus/views/theme/views-view-grid.tpl.php
  13. meedjum_blog7 sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
  14. meedjum_blog7 sites/all/modules/ulmus/views/theme/views-view-grid.tpl.php
  15. mooc7 sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
  16. mooc7 sites/all/modules/ulmus/views/theme/views-view-grid.tpl.php
1 string reference to the theme hook from views-view-grid.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_views_plugins in sites/all/modules/ulmus/views/includes/plugins.inc
Implements hook_views_plugins().

File

sites/all/themes/ulmus/tao/templates/views-view-grid.tpl.php
View source
  1. <?php
  2. reset($rows);
  3. $gridsize = count($rows[0]);
  4. ?>
  5. <?php if (!empty($title)) : ?>
  6. <h3 class='grid-title'><?php print $title; ?></h3>
  7. <?php endif; ?>
  8. <table class="views-view-grid grid-<?php print $gridsize ?>">
  9. <tbody>
  10. <?php foreach ($rows as $row_number => $columns): ?>
  11. <?php
  12. $row_class = 'row-' . ($row_number + 1);
  13. if ($row_number == 0 && count($rows) > 1) {
  14. $row_class .= ' row-first';
  15. }
  16. elseif (count($rows) == ($row_number + 1)) {
  17. $row_class .= ' row-last';
  18. }
  19. ?>
  20. <tr class="<?php print $row_class; ?>">
  21. <?php foreach ($columns as $column_number => $item): ?>
  22. <td class="<?php print 'col-'. ($column_number + 1); ?>">
  23. <div class='grid-item'><?php print $item; ?></div>
  24. </td>
  25. <?php endforeach; ?>
  26. </tr>
  27. <?php endforeach; ?>
  28. </tbody>
  29. </table>