function views_isotope_default_isotope_configuration in Views Isotope (Deprecated) 7.2
Implements hook_default_views_isotope_preset().
Provide a couple of default presets.
File
- ./
views_isotope.module, line 38 - Load the isotope library and provide configuration and theme options.
Code
function views_isotope_default_isotope_configuration() {
$export = array();
$config = new stdClass();
$config->api_version = 1;
$config->name = 'isotope_default_config';
$config->admin_title = 'Default config';
$config->layoutMode = 'masonry';
$config->transitionDuration = NULL;
$config->urlFilters = NULL;
$config->isFitWidth = NULL;
$config->isHorizontal = NULL;
$config->stamp = '.stamp';
$config->horizontalAlignment = NULL;
$config->verticalAlignment = NULL;
$config->isOriginLeft = 1;
// If imagesLoaded is available, add it by default.
if (views_isotope_check_additional_libraries('imagesLoaded')) {
$config->plugins = array(
'imagesLoaded',
);
}
else {
$config->plugins = array();
}
$export['isotope_default_config'] = $config;
return $export;
}