function theme_soundmanager2_inline_player_pause in SoundManager2 7.2
Theme function for overriding the Inline player configuration for pause/stop.
1 theme call to theme_soundmanager2_inline_player_pause()
- soundmanager2_field_formatter_view in ./
soundmanager2.module - Implements hook_field_formatter_view().
File
- ./
soundmanager2.module, line 646 - Responsible for managing the required SWF and JS files for soundmanager2 to work
Code
function theme_soundmanager2_inline_player_pause() {
drupal_add_css('ul.graphic li a.sm2_playing, ul.graphic li a.sm2_playing:hover { background:#003366 url(/' . drupal_get_path('module', 'soundmanager2') . '/images/icon_stop.png) no-repeat 3px 50%; _background-image:url(/' . drupal_get_path('module', 'soundmanager2') . '/images/icon_stop.gif); }', array(
'type' => 'inline',
'scope' => 'header',
));
$data = "inlinePlayer.css = {sDefault: 'sm2_link', sLoading: 'sm2_loading', sPlaying: 'sm2_playing', sPaused: 'sm2_link'}; ";
$data .= "inlinePlayer.events.stop = function() { inlinePlayer.removeClass(this._data.oLink,this._data.className); this._data.className = ''; inlinePlayer.stopSound(this);}; ";
$data .= "inlinePlayer.events.pause = function() { inlinePlayer.removeClass(this._data.oLink,this._data.className); this._data.className = ''; inlinePlayer.stopSound(this);}; ";
$data .= "inlinePlayer.events.resume = function() { inlinePlayer.removeClass(this._data.oLink,this._data.className); this._data.className = inlinePlayer.css.sPlaying; inlinePlayer.addClass(this._data.oLink,this._data.className);}; ";
drupal_add_js($data, array(
'type' => 'inline',
'scope' => 'footer',
));
}