forward = 30; $obj->back = 10; $obj->hideOnMobile = true; return $obj; } function shouldLoad(){ if(isVideoPlayerHasProgressBar()){ $obj = $this->getDataObject(); if($obj->hideOnMobile && isMobile()){ return false; } return true; } return false; } public function getHeadCode() { global $global; $css = ""; if ($this->shouldLoad()) { $css = ''; $css .= ''; //$css .= ''; //if(isMobile()){ //$css .= ''; //} } return $css; } public function getFooterCode() { global $global; if ($this->shouldLoad()) { $obj = $this->getDataObject(); $js = ""; if (isVideoPlayerHasProgressBar()) { $js .= ''; $js .= ''; $js .= ''; } return $js; } } }