function theme_asset in Asset 5.2
Same name and namespace in other branches
- 5 asset.module \theme_asset()
- 6 inc/asset.themes.inc \theme_asset()
Theme function to wrap a rendered asset in common markup.
Related topics
1 theme call to theme_asset()
- asset_render in ./
asset.module - Central asset rendering function.
File
- ./
asset.module, line 1156 - Main module.
Code
function theme_asset($content, $attr = array()) {
$tag = $attr['display'] == 'inline' ? 'span' : 'div';
$align = $attr['align'] ? $attr['align'] : 'none';
return "<{$tag} class=\"asset asset-align-{$align}\">{$content}</{$tag}>";
}