Full ELMS Learning Network documentation
views-fluid-grid-plugin-style.tpl.php
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 sites/all/modules/local_contrib/views_fluid_grid/theme/views-fluid-grid-plugin-style.tpl.php
- 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.phpView source
- <?php
- /**
- * @file
- * 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.
- *
- * @ingroup views_templates
- */
- ?>
- <div class="views-fluid-grid">
- <?php if (!empty($title)) : ?>
- <h3><?php print $title; ?></h3>
- <?php endif; ?>
- <ul class="<?php print $list_class; ?>">
- <?php foreach ($rows as $id => $item): ?>
- <li class="views-fluid-grid-inline views-fluid-grid-item <?php print $classes_array[$id]; ?>"><?php print $item; ?></li>
- <?php endforeach; ?>
- <?php if (!empty($options['list_alignment']) && $options['list_alignment'] == 'justify') : ?>
- <li class="views-fluid-grid-inline views-fluid-grid-justify-last"></li>
- <?php endif; ?>
- </ul>
- </div>