getModel('file'); $id = Utilities::getInt('id'); $catid = Utilities::getInt('catid'); $ext = Utilities::getInput('ext','GET','string'); $this->mediaType = Utilities::getInput('type','GET','string'); $app = Application::getInstance('wpfd') ; $this->downloadLink= $app->getAjaxUrl().'&task=file.download&wpfd_file_id='.$id.'&wpfd_category_id='.$catid.'&preview=1'; $this->mineType = wpfdHelperFile::mime_type($ext); wp_enqueue_style('wpfd-mediaelementplayer', plugins_url( 'app/site/assets/css/mediaelementplayer.min.css' , WPFDL_PLUGIN_FILE ),array(),WPFDL_VERSION); wp_enqueue_script('wpfd-mediaelementplayer', plugins_url( 'app/site/assets/js/mediaelement-and-player.js' , WPFDL_PLUGIN_FILE ),array(),WPFDL_VERSION); parent::render($tpl); die(); } }