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
Same filename and directory in other branches
Preprocessors and helper functions for panel theming.
File
templates/media/theme.incView source
<?php
/**
* @file
* Preprocessors and helper functions for panel theming.
*/
/**
* Implements hook_preprocess_HOOK().
*/
function template_preprocess_views_bootstrap_media_plugin_style(&$vars) {
$view =& $vars['view'];
$image_field = $vars['options']['image_field'];
$heading_field = $vars['options']['heading_field'];
$vars['image_class'] = $vars['options']['image_class'];
foreach ($vars['rows'] as $id => $row) {
$vars['rows'][$id] = array();
$vars['rows'][$id]['image'] = isset($view->field[$image_field]) ? $view->style_plugin
->get_field($id, $image_field) : NULL;
$vars['rows'][$id]['heading'] = isset($view->field[$heading_field]) ? $view->style_plugin
->get_field($id, $heading_field) : NULL;
$vars['rows'][$id]['body'] = $row;
}
}
Functions
Name![]() |
Description |
---|---|
template_preprocess_views_bootstrap_media_plugin_style | Implements hook_preprocess_HOOK(). |