Exemplo n.º 1
0
        /** If type is 2 then, set thumbimage order and condition for recent videos */
        $thumImageorder = 'w.vid DESC';
        $where = '';
        /** Fetch recent video details */
        $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 */