function mediafront_plugin_style_player::render in MediaFront 7
Same name and namespace in other branches
- 6.2 views/mediafront_plugin_style_player.inc \mediafront_plugin_style_player::render()
- 6 views/mediafront_plugin_style_player.inc \mediafront_plugin_style_player::render()
- 7.2 views/mediafront_plugin_style_player.inc \mediafront_plugin_style_player::render()
Renders the media player.
Overrides views_plugin_style::render
File
- views/
mediafront_plugin_style_player.inc, line 39 - This file holds style plugin for MediaFront Views
Class
- mediafront_plugin_style_player
- @class Extension of the Views Plugin Syle for the Media Player from MediaFront
Code
function render() {
$output = '';
// Check for live preview.
if (!empty($this->view->live_preview)) {
return t('MediaFront views are not compatible with live preview.');
}
// Now render the media player for this view.
return theme($this
->theme_functions(), array(
'view' => $this->view,
'preset' => $this->options['mediafront_preset'],
));
}