function theme_mediaelement_audio in MediaElement 7.2
Same name and namespace in other branches
- 7 mediaelement.module \theme_mediaelement_audio()
File
- ./
mediaelement.module, line 200 - Provides HTML5 video and audio elements using Mediaelement.js for HTML4 browsers.
Code
function theme_mediaelement_audio($variables) {
$output = '<div class="mediaelement-audio">';
$output .= '<audio ' . drupal_attributes($variables['attributes']) . ' ></audio>';
if ($variables['settings']['download_link']) {
$output .= '<div class="mediaelement-download-link"><a href="' . $variables['attributes']['src'] . '">' . filter_xss_admin($variables['settings']['download_text']) . '</a></div>';
}
$output .= '</div>';
return $output;
}