Esempio n. 1
0
 /**
  * ContusVideoShortcodeView constructor function
  */
 public function __construct()
 {
     parent::__construct();
     /** Get current video id 
      * and report send response  */
     $this->_vId = absint(filter_input(INPUT_GET, 'vid'));
     $this->_reportsent = filter_input(INPUT_POST, 'report_send');
     /** Get post type, page post type 
      * and  video more page id */
     $this->_post_type = filter_input(INPUT_GET, 'post_type');
     $this->_page_post_type = get_post_type(get_the_ID());
     $this->_mPageid = morePageID();
     /** Get plugin site URL, 
      * plugin images directory URL, 
      * upload directory URL 
      * and swf file URL   */
     $this->_site_url = get_site_url();
     $this->_imagePath = getImagesDirURL();
     $this->_uploadPath = getUploadDirURL();
     $this->_swfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer.swf';
     /** Function to check
      * whether the SSL is enabled in site */
     $this->_protocolURL = getPluginProtocol();
     /** Object for home page controller */
     $this->_contOBJ = new ContusVideoController();
 }
Esempio n. 2
0
 /**
  * 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();
 }