You are here

function mediafront_plugin_style_player::render in MediaFront 6

Same name and namespace in other branches
  1. 6.2 views/mediafront_plugin_style_player.inc \mediafront_plugin_style_player::render()
  2. 7.2 views/mediafront_plugin_style_player.inc \mediafront_plugin_style_player::render()
  3. 7 views/mediafront_plugin_style_player.inc \mediafront_plugin_style_player::render()

Renders the media player.

File

views/mediafront_plugin_style_player.inc, line 47
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(), $this->view, $this->options['mediafront_preset']);
}