function _blockanimate_get_block_classes in BlockAnimate 7
Helper function.
Returns an array of Animate CSS classes for a block which has an animation associated to.
1 call to _blockanimate_get_block_classes()
- _blockanimate_add_js_classes_and_attributes in ./
blockanimate.module - Extend block's classes and attributes.
File
- ./
blockanimate.module, line 284 - Add CSS3 cross-browser animation to any Drupal block.
Code
function _blockanimate_get_block_classes($block) {
if ($block->animate_css_infinite) {
$animate_classes = array(
'animated',
'infinite',
'wow',
check_plain($block->animate_css_class),
);
}
else {
$animate_classes = array(
'animated',
'wow',
check_plain($block->animate_css_class),
);
}
return $animate_classes;
}