Skip to content

Commit

Permalink
roll back
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Dec 27, 2018
1 parent a0cf5b5 commit c0d593f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions plugin/VR360/VR360.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,13 @@ private function getHeadPanorama() {
}

private function getFooterPanorama() {
global $global, $advancedCustom;
global $global;
require_once $global['systemRootPath'] . 'plugin/VR360/Objects/VideosVR360.php';
if (empty($_GET['videoName']) || !VideosVR360::isVR360EnabledByVideoCleanTitle($_GET['videoName'])) {
return "";
}

$webSiteRoorURL = $global['webSiteRootURL'];

if(!empty($advancedCustom->videosCDN)){
$webSiteRoorURL = $advancedCustom->videosCDN;
}
$js = '<script src="' . $webSiteRoorURL . 'plugin/VR360/videojs-panorama/videojs-panorama.v5.js" type="text/javascript"></script>';
$js .= '<script src="' . $webSiteRoorURL . 'plugin/VR360/videojs-panorama/three.min.js" type="text/javascript"></script>';
$js = '<script src="' . $global['webSiteRootURL'] . 'plugin/VR360/videojs-panorama/videojs-panorama.v5.js" type="text/javascript"></script>';
$js .= '<script src="' . $global['webSiteRootURL'] . 'plugin/VR360/videojs-panorama/three.min.js" type="text/javascript"></script>';
$js .= '<script>
(function(window, videojs) {
var player = window.player = videojs(\'mainVideo\', {}, function () {
Expand Down

0 comments on commit c0d593f

Please sign in to comment.