You are here

public function OSMPlayer::getJSFiles in MediaFront 6

Same name and namespace in other branches
  1. 6.2 players/osmplayer/player/OSMPlayer.php \OSMPlayer::getJSFiles()
  2. 7 players/osmplayer/player/OSMPlayer.php \OSMPlayer::getJSFiles()

Get the javascript files for this media player.

1 call to OSMPlayer::getJSFiles()
OSMPlayer::getJSHeader in players/osmplayer/player/OSMPlayer.php
Get the JS header for this player.

File

players/osmplayer/player/OSMPlayer.php, line 350

Class

OSMPlayer
PHP wrapper class for the Open Standard Media (OSM) player.

Code

public function getJSFiles() {
  $template = $this->settings['template'];
  if ($this->settings['debug']) {
    return array_merge(array(
      "js/source/jquery.media.drupal.js",
      "js/source/jquery.media.parser.js",
      "js/source/jquery.media.auto.js",
      "js/source/jquery.media.rpc.js",
      "js/source/jquery.media.json.js",
      "js/source/jquery.media.sha256.js",
      "js/source/jquery.media.utils.js",
      "js/source/jquery.media.control.js",
      "js/source/jquery.media.flash.js",
      "js/source/jquery.media.html5.js",
      "js/source/jquery.media.image.js",
      "js/source/jquery.media.link.js",
      "js/source/jquery.media.links.js",
      "js/source/jquery.media.display.js",
      "js/source/jquery.media.minplayer.js",
      "js/source/jquery.media.menu.js",
      "js/source/jquery.media.mousewheel.js",
      "js/source/jquery.media.node.js",
      "js/source/jquery.media.pager.js",
      "js/source/jquery.media.player.js",
      "js/source/jquery.media.playlist.js",
      "js/source/jquery.media.playlistlink.js",
      "js/source/jquery.media.rotator.js",
      "js/source/jquery.media.slider.js",
      "js/source/jquery.media.teaser.js",
      "js/source/jquery.media.titlebar.js",
      "js/source/jquery.media.scroll.js",
      "js/source/jquery.media.voter.js",
      "js/source/jquery.media.youtube.js",
      "js/source/jquery.media.vimeo.js",
      "js/source/jquery.media.dailymotion.js",
      "js/source/jquery.media.file.js",
    ), $this->template->settings['jsFiles']['debug']);
  }
  else {
    return array_merge(array(
      "js/jquery.osmplayer.compressed.js",
    ), $this->template->settings['jsFiles']['release']);
  }
}