function theme_mediaelement_video in MediaElement 7.2
Same name and namespace in other branches
- 7 mediaelement.module \theme_mediaelement_video()
File
- ./
mediaelement.module, line 190 - Provides HTML5 video and audio elements using Mediaelement.js for HTML4 browsers.
Code
function theme_mediaelement_video($variables) {
$output = '<div class="mediaelement-video">';
$output .= '<video ' . drupal_attributes($variables['attributes']) . ' ></video>';
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;
}