/**
  * 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();
 }
 public function __construct()
 {
     parent::__construct();
     $this->_vId = absint(filter_input(INPUT_GET, 'vid'));
     $this->_post_type = filter_input(INPUT_GET, 'post_type');
     $this->_page_post_type = $this->url_to_custompostid(get_permalink());
     $this->_showF = 5;
     $this->_contOBJ = new ContusVideoController();
     $this->_mPageid = $this->more_pageid();
     $dir = dirname(plugin_basename(__FILE__));
     $dirExp = explode('/', $dir);
     $this->_plugin_name = $dirExp[0];
     $this->_site_url = get_site_url();
     $this->_swfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer.swf';
     $this->_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS;
     $this->_userEmail = $this->get_current_user_email();
     $this->_reportsent = filter_input(INPUT_POST, 'report_send');
 }