" . "This will give your users the greatest wisdom of all, as well as invaluable value. "; return $txt; } public function getName() { return "AdsForJesus"; } public function getUUID() { return "AdsForJesus-43a9-479b-994a-5430dc22958c"; } public function getPluginMenu() { global $global; return "4JesusTV"; } public function getEmptyDataObject() { $obj = new stdClass(); $obj->start = true; $obj->mid25Percent = true; $obj->mid50Percent = true; $obj->mid75Percent = true; $obj->end = true; $obj->topMenuLink = false; return $obj; } public function getHTMLMenuRight() { global $global; $obj = $this->getDataObject(); if (empty($obj->topMenuLink)) { return ''; } return '
  • '; } public function getHeadCode() { $js = ''; $css = ''; //if (!empty($_GET['videoName']) || !empty($_GET['u'])) { $videos_id = getVideos_id(); if (!empty($videos_id)) { $showAds = AVideoPlugin::showAds($videos_id); if (!$showAds) { return ""; } global $global; $css .= ''; $css .= ''; }else{ $css .= ""; } return $js . $css; } public function afterVideoJS() { global $global; $js = ''; $js .= ''; $js .= ''; $js .= ''; //if (!empty($_GET['videoName']) || !empty($_GET['u'])) { $videos_id = getVideos_id(); if (!empty($videos_id)) { $showAds = AVideoPlugin::showAds($videos_id); if (!$showAds) { return ""; } if (empty($_GET['u'])) { $video = Video::getVideoLight($videos_id); $showAds = AVideoPlugin::showAds($video['id']); if (!$showAds) { return ""; } } else { $video['duration'] = "01:00:00"; $_GET['videoName'] = "Live-" . uniqid(); } $video_length = parseDurationToSeconds($video['duration']); $obj = $this->getDataObject(); PlayerSkins::setIMAADTag("https://forjesus.tv/vmap.xml?video_durarion={$video_length}&start={$obj->start}&mid25Percent={$obj->mid25Percent}&mid50Percent={$obj->mid50Percent}&mid75Percent={$obj->mid75Percent}&end={$obj->end}"); }else{ $js .= ""; } return $js; } }