b0y-101 Mini Shell


Current Path : E:/www/plan/modules/mod_news_pro_gk5/admin/elements/
File Upload :
Current File : E:/www/plan/modules/mod_news_pro_gk5/admin/elements/asset.php

<?php
/**
* Asset element
* @package News Show Pro GK5
* @Copyright (C) 2009-2013 Gavick.com
* @ All rights reserved
* @ Joomla! is Free Software
* @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @version $Revision: GK5 1.3.3 $
**/

// access restriction
defined('_JEXEC') or die('Restricted access');

jimport('joomla.form.formfield');

class JFormFieldAsset extends JFormField {
    protected $type = 'Asset';
    protected function getInput() {
        $doc = JFactory::getDocument();
        $refresher = rand(1000000, 9999999);
        // scripts
        $doc->addScript(JURI::root().$this->element['path'].'class.articlelayout.js?r=' . $refresher);
        $doc->addScript(JURI::root().$this->element['path'].'class.configmanager.js?r=' . $refresher);
        $doc->addScript(JURI::root().$this->element['path'].'class.datasources.js?r=' . $refresher);
        $doc->addScript(JURI::root().$this->element['path'].'class.portalmodes.js?r=' . $refresher);
        $doc->addScript(JURI::root().$this->element['path'].'class.imagecrop.js?r=' . $refresher);
        $doc->addScript(JURI::root().$this->element['path'].'main.js?r=' . $refresher);
  		// stylesheets
        $doc->addStyleSheet(JURI::root().$this->element['path'].'style.css?r=' . $refresher);
        return null;
    }
}
/* eof */

Copyright © 2019 by b0y-101