Azeri
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
vhosts
/
chipionatv.com
/
httpdocs
/
modules
/
mod_tabs_gk5
/
admin
/
elements
/
Filename :
asset.php
back
Copy
<?php /** * Tabs GK5 - main PHP file * @package Joomla! * @Copyright (C) 2009-2012 Gavick.com * @ All rights reserved * @ Joomla! is Free Software * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html * @ version $Revision: GK5 1.0 $ **/ defined('JPATH_BASE') or die; jimport('joomla.form.formfield'); JHtml::_('behavior.framework', true); class JFormFieldAsset extends JFormField { protected $type = 'Asset'; protected function getInput() { // get the handler for the back-end document $doc = JFactory::getDocument(); // include the prefixfree for less work with CSS code $doc->addScript(JURI::root().$this->element['path'].'prefixfree.js'); // include the back-end styles $doc->addStyleSheet(JURI::root().$this->element['path'].'style.css'); // include the back-end scripts return '<script src="'.JURI::root().$this->element['path'].'script.js"></script>'; } } // EOF