function template_preprocess_views_view_bootstrap_gallery in Bootstrap - Photo Gallery 7.3
Build grid Gallery and add necessary scripts and styles.
File
- ./
bootstrap_gallery.module, line 137
Code
function template_preprocess_views_view_bootstrap_gallery(&$vars) {
$view = $vars['view'];
$options = bootstrap_gallery_get_options($view->style_plugin->options);
drupal_add_css(drupal_get_path('module', 'bootstrap_gallery') . '/css/bootstrap-gallery.css');
drupal_add_css(drupal_get_path('module', 'bootstrap_gallery') . '/css/blueimp-gallery.min.css');
drupal_add_js(drupal_get_path('module', 'bootstrap_gallery') . '/js/jquery.blueimp-gallery.js');
drupal_add_js(drupal_get_path('module', 'bootstrap_gallery') . '/js/bootstrap-gallery.js');
drupal_add_js(array(
'bootstrapGallery' => $options,
), array(
'type' => 'setting',
));
template_preprocess_views_view_grid($vars);
}