function farm_theme_preprocess_views_view in farmOS 7
Implements hook_preprocess_views_view().
File
- themes/
farm_theme/ template.php, line 111 - Farm theme template.php.
Code
function farm_theme_preprocess_views_view(&$vars) {
// If the View has a 'footer' or 'feed_icon', wrap it in a div with the
// 'text-center' class.
$center_elements = array(
'footer',
'feed_icon',
);
foreach ($center_elements as $element) {
if (!empty($vars[$element])) {
$vars[$element] = '<div class="text-center">' . $vars[$element] . '</div>';
}
}
}