function theme_swftools_embed in SWF Tools 6
Same name and namespace in other branches
- 5 swftools.module \theme_swftools_embed()
- 6.3 includes/swftools.theme.inc \theme_swftools_embed()
- 6.2 swftools.module \theme_swftools_embed()
1 theme call to theme_swftools_embed()
- swf in ./
swftools.module - Return output, which might be embed markup, or pre-flash markup that includes the appropriate jQuery added to the <head>
File
- ./
swftools.module, line 446
Code
function theme_swftools_embed($embed_code, $action, $methods, $vars, $html_alt) {
// Generate a css id if possible.
$id = !empty($vars->othervars['id']) ? ' id="swf-' . $vars->othervars['id'] . '"' : '';
$classes[] = 'swftools-wrapper';
$classes[] = str_replace('_', '-', $methods->player['name']);
if (!empty($vars->othervars['class'])) {
$classes[] = $vars->othervars['class'];
}
return '<div' . $id . ' class="' . implode(' ', $classes) . '">' . $embed_code . '</div>';
}