public function __construct() { // contructor starts parent::__construct(); $this->_settingsData = $this->settings_data(); // Get player settings $this->_videosData = $this->videos_data(); // Get particular video data $this->_mPageid = $this->more_pageid(); // Get more page id $this->_feaMore = $this->video_count(); // Get featured videos count $this->_vId = absint(filter_input(INPUT_GET, 'vid')); // Get vid from URL $this->_pId = absint(filter_input(INPUT_GET, 'pid')); // Get pid from URL $this->_tagname = $this->tag_detail($this->_vId); // Get tag detail for the current video $this->_pagenum = filter_input(INPUT_GET, 'pagenum'); // Get current page number $this->_showF = 5; $this->_colCat = $this->_settingsData->colCat; $this->_site_url = get_site_url(); $this->_singlevideoData = $this->home_playerdata(); $this->_featuredvideodata = $this->home_featuredvideodata(); // Get featured videos data $this->_viewslang = __('Views', 'video_gallery'); $this->_viewlang = __('View', 'video_gallery'); $dir = dirname(plugin_basename(__FILE__)); $dirExp = explode('/', $dir); $this->_plugin_name = $dirExp[0]; // Get plugin folder name $this->_bannerswfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer_banner.swf'; // Declare banner swf path $this->_swfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer.swf'; // Declare swf path $this->_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; $this->_setting_related_video_count = $this->settings_data(); // Declare image path }
/** * ContusHomeVideoView constructor starts */ public function __construct() { parent::__construct(); /** * Call plugin helper function * to get plugin settings * and more page id */ $this->_settingsData = getPluginSettings(); $this->_player_colors = unserialize($this->_settingsData->player_colors); $this->_mPageid = morePageID(); /** Get video id from request URL for home page */ $this->_vId = absint(filter_input(INPUT_GET, 'vid')); /** Get pid from request URL for home page */ $this->_pId = absint(filter_input(INPUT_GET, 'pid')); /** Get pagenum from request URL for home page */ $this->_pagenum = filter_input(INPUT_GET, 'pagenum'); /** Get Category column count from settings */ $this->_colCat = $this->_settingsData->colCat; /** Get featured videos data */ $this->_featuredvideodata = $this->home_featuredvideodata(); /** Get WordPress admin URL */ $this->_site_url = get_site_url(); /** Get WordPress site URL */ $this->_siteURL = home_url(); /** Set banner player swf path */ $this->_bannerswfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer_banner.swf'; /** Set plugin player swf path */ $this->_swfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer.swf'; /** * Get protocol URL, * uploads / videogallery * and plugin images directory path * from plugin helper */ $this->_imagePath = getImagesDirURL(); $this->_pluginProtocol = getPluginProtocol(); $this->_uploadPath = getUploadDirURL(); }
* @copyright Copyright (C) 2014 Apptha. All rights reserved. * @license GNU General Public License http://www.gnu.org/copyleft/gpl.html */ require_once dirname(__FILE__) . '/hdflv-config.php'; header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '"?' . '>'; $dir = dirname(plugin_basename(__FILE__)); $dirExp = explode('/', $dir); $dirPage = $dirExp[0]; $image_path = str_replace('plugins/' . $dirPage . '/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); $_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; ## declare image path $type = filter_input(INPUT_GET, 'type'); $where = $tag_name = ''; $dataLimit = 1000; $contusOBJ = new ContusVideoController(); switch ($type) { case 'popular': ## GETTING POPULAR VIDEOS STARTS ## GETTING POPULAR VIDEOS STARTS default: $thumImageorder = 'w.hitcount DESC'; $TypeOFvideos = $contusOBJ->home_thumbdata($thumImageorder, $where, $dataLimit); break; ## GETTING POPULAR VIDEOS ENDS ## GETTING POPULAR VIDEOS ENDS case 'recent': $thumImageorder = 'w.vid DESC'; $TypeOFvideos = $contusOBJ->home_thumbdata($thumImageorder, $where, $dataLimit); break; case 'featured':
* @package Contus video Gallery * @version 3.0 * @author Apptha Team <*****@*****.**> * @copyright Copyright (C) 2015 Apptha. All rights reserved. * @license GNU General Public License http://www.gnu.org/copyleft/gpl.html */ /** Include config file for playlist xml */ require_once dirname(__FILE__) . '/hdflv-config.php'; /** Variable Decalration and set defualt values */ $banner = 0; $islive = $streamer = $videoPreview = $videotag = $postroll_id = $featured = ''; $singleVideodata = array(); /** Create object for Videohome view class */ $pageOBJ = new ContusVideoView(); /** Create object for Videohome controller class */ $contOBJ = new ContusVideoController(); /** Get video ID from video home view */ $getVid = $pageOBJ->_vId; /** Get playlist ID from video home view */ $getPid = $pageOBJ->_pId; /** * Get number of videos from URL * If it is empty then get related videos count from settings */ $numberofvideos = filter_input(INPUT_GET, 'numberofvideos'); if (empty($numberofvideos)) { $numberofvideos = get_related_video_count(); } /** If number of videos are empty then set default value as 4 */ if (empty($numberofvideos)) { $numberofvideos = 4;