function isotope_additional_libraries_list in Isotope (with Masonry and Packery) 7.2
Return a list of accepted plugins.
Return value
array Plugins accepted by this module.
3 calls to isotope_additional_libraries_list()
- isotope_addjs in ./
isotope.module - Function to add the right version of the js file.
- isotope_check_additional_libraries in ./
isotope.module - Check for all additional libraries.
- isotope_ctools_export_ui_form in plugins/
export_ui/ isotope_ctools_export_ui.inc - Define the configuration add/edit form.
File
- ./
isotope.module, line 185 - Load the isotope library and provide configuration and theme options.
Code
function isotope_additional_libraries_list() {
$libraries['cellsByRow'] = array(
'filename' => 'cells-by-row.js',
'type' => 'layout',
'url' => 'https://raw.githubusercontent.com/metafizzy/isotope-cells-by-row/master/cells-by-row.js',
'description' => t('A grid layout where items are centered inside each cell.'),
);
$libraries['packery'] = array(
'filename' => 'packery-mode.pkgd.min.js',
'type' => 'layout',
'url' => 'https://raw.githubusercontent.com/metafizzy/isotope-packery/master/packery-mode.pkgd.min.js',
'description' => t('The packery layout mode uses a bin-packing algorithm. This is a fancy way of saying “it fills empty gaps.”'),
);
$libraries['masonryHorizontal'] = array(
'filename' => 'masonry-horizontal.js',
'type' => 'layout',
'url' => 'https://raw.githubusercontent.com/metafizzy/isotope-masonry-horizontal/master/masonry-horizontal.js',
'description' => t('masonryHorizontal is the horizontal version of masonry. It works by placing elements in optimal position based on available horizontal space.'),
);
$libraries['fitColumns'] = array(
'filename' => 'fit-columns.js',
'type' => 'layout',
'url' => 'https://raw.githubusercontent.com/metafizzy/isotope-fit-columns/master/fit-columns.js',
'description' => t('Items are arranged into columns. Columns progress horizontally. fitColumns is ideal for items that have the same width.'),
);
$libraries['cellsByColumn'] = array(
'filename' => 'cells-by-column.js',
'type' => 'layout',
'url' => 'https://raw.githubusercontent.com/metafizzy/isotope-cells-by-column/master/cells-by-column.js',
'description' => t('A horizontal grid layout where items are centered inside each cell.'),
);
$libraries['horizontal'] = array(
'filename' => 'horizontal.js',
'type' => 'layout',
'url' => 'https://raw.githubusercontent.com/metafizzy/isotope-horizontal/master/horizontal.js',
'description' => t('Items are arranged horizontally.'),
);
$libraries['imagesLoaded'] = array(
'filename' => 'imagesloaded.pkgd.min.js',
'type' => 'plugin',
'url' => 'http://imagesloaded.desandro.com/imagesloaded.pkgd.min.js',
'description' => t('Detect when images have been loaded. (Requires jQuery version 1.9 or later.)'),
);
return $libraries;
}