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(); }