function gridstack_preprocess_blazy in GridStack 8.2
Overrides template_preprocess_blazy().
File
- ./
gridstack.module, line 98 - Provides GridStack integration to have multi-column grids with drag-and-drop.
Code
function gridstack_preprocess_blazy(array &$variables) {
$settings =& $variables['settings'];
// Aspect ratio doesn't work out well with various box sizes, disable.
if (isset($settings['view_plugin_id']) && $settings['view_plugin_id'] == 'gridstack') {
$variables['attributes']['class'][] = 'b-noratio';
}
}