function isotope_default_isotope_configuration in Isotope (with Masonry and Packery) 7.2
Implements hook_default_isotope_preset().
Provide a couple of default presets.
File
- ./
isotope.module, line 38 - Load the isotope library and provide configuration and theme options.
Code
function 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 = '0.4s';
$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 (isotope_check_additional_libraries('imagesLoaded')) {
$config->plugins = array(
'imagesLoaded',
);
}
else {
$config->plugins = array();
}
$export['isotope_default_config'] = $config;
return $export;
}