$singleVideodata = $contOBJ->home_playxmldata($getVid, $thumImageorder, $where, $numberofvideos); } else { if (!empty($type) && $type == 3) { /** If type is 2 then, set thumbimage order and condition for featured videos */ $thumImageorder = 'w.ordering ASC'; $where = 'AND w.featured=1'; /** Fetch featured video details */ $singleVideodata = $contOBJ->home_playxmldata($getVid, $thumImageorder, $where, $numberofvideos); } else { if (!empty($getVid)) { /** If video id is exist then, fetch particular video detail */ $singleVideodata = $contOBJ->video_detail($getVid); } else { if (!empty($getPid)) { /** If playlist id is exist then, fetch video details for particular playlist */ $singleVideodata = $contOBJ->video_Pid_detail($getPid, 'playxml', $numberofvideos); } else { /** Else fetch featured videos by default */ if ($featured) { $singleVideodata = $pageOBJ->_featuredvideodata; } } } } } } /** Get setting values from helper */ $settingsContent = getPluginSettings(); /** Get plugin "uploads/ videogallery" directory URL */ $uploadPath = getUploadDirURL(); /** Get images directory path */