You are here

function views_isotope_default_isotope_configuration in Brainstorm profile 7

Implements hook_default_views_isotope_preset().

Provide a couple of default presets.

File

modules/custom/views_isotope/views_isotope.module, line 39
Load the isotope library and provide configuration and theme options.

Code

function views_isotope_default_isotope_configuration() {
  $export = [];
  $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 = [
      'imagesLoaded',
    ];
  }
  else {
    $config->plugins = [];
  }
  $export['isotope_default_config'] = $config;
  return $export;
}