theme.inc in Views Bootstrap 7.3
Same filename in this branch
- 7.3 templates/accordion/theme.inc
- 7.3 templates/panel/theme.inc
- 7.3 templates/table/theme.inc
- 7.3 templates/tab/theme.inc
- 7.3 templates/dropdown/theme.inc
- 7.3 templates/grid/theme.inc
- 7.3 templates/media/theme.inc
- 7.3 templates/thumbnail/theme.inc
- 7.3 templates/list_group/theme.inc
- 7.3 templates/carousel/theme.inc
Preprocessors and helper functions for list group theming.
File
templates/list_group/theme.incView source
<?php
/**
* @file
* Preprocessors and helper functions for list group theming.
*/
/**
* Implementation of template preprocess for the view.
*/
function template_preprocess_views_bootstrap_list_group_plugin_style(&$vars) {
$view = $vars['view'];
$link_field = $vars['options']['link_field'];
$vars['linked_items'] = !empty($link_field);
$vars['panels'] = isset($vars['options']['panels']) ? $vars['options']['panels'] : FALSE;
foreach (array_keys($vars['rows']) as $key) {
$vars['link_fields'][$key] = $view->style_plugin
->get_field($key, $link_field);
}
}
Functions
Name![]() |
Description |
---|---|
template_preprocess_views_bootstrap_list_group_plugin_style | Implementation of template preprocess for the view. |