Full ELMS Learning Network documentation
views-fluid-grid-plugin-style--courses-overview--page-1.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).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.
File
profiles/cis/themes/cis-theme/templates/views-fluid-grid-plugin-style--courses-overview--page-1.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 class="courses-unit-heading"><?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>