You are here

public function OSMPlayer::getJSHeader in MediaFront 6.2

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

Get the JS header for this player.

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

File

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

Class

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

Code

public function getJSHeader() {
  $header = '';

  // Add all of the javascript files.
  $jsfiles = $this
    ->getJSFiles();
  foreach ($jsfiles as $file) {
    $header .= '<script type="text/javascript" src="' . $this->settings['playerPath'] . $file . '"></script>';
    $header .= "\n";
  }

  // Return the header.
  return $header;
}