You've already forked joomla_test
first commit
This commit is contained in:
34
modules/mod_sp_news_highlighter/elements/asset.php
Normal file
34
modules/mod_sp_news_highlighter/elements/asset.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/*
|
||||
# SP News Highlighter Module by JoomShaper.com
|
||||
# --------------------------------------------
|
||||
# Author JoomShaper http://www.joomshaper.com
|
||||
# Copyright (C) 2010 - 2013 JoomShaper.com. All Rights Reserved.
|
||||
# License - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
# Websites: http://www.joomshaper.com
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined( '_JEXEC' ) or die( 'Restricted access' );
|
||||
|
||||
jimport('joomla.form.formfield');
|
||||
|
||||
class JFormFieldAsset extends JFormField
|
||||
{
|
||||
protected $type = 'Asset';
|
||||
|
||||
protected function getInput() {
|
||||
$doc = JFactory::getDocument();
|
||||
if (JVERSION<3) {
|
||||
$doc->addScript(JURI::root(true).'/modules/mod_sp_news_highlighter/elements/js/jquery.js');
|
||||
$doc->addScript(JURI::root(true).'/modules/mod_sp_news_highlighter/elements/js/script.js');
|
||||
$doc->addStylesheet(JURI::root(true).'/modules/mod_sp_news_highlighter/elements/css/style.css');
|
||||
} else {
|
||||
JHtml::_('jquery.framework');
|
||||
$doc->addScript(JURI::root(true).'/modules/mod_sp_news_highlighter/elements/js/script_j3.js');
|
||||
}
|
||||
$doc->addScript(JURI::root(true).'/modules/mod_sp_news_highlighter/elements/js/colorpicker.js');
|
||||
$doc->addStylesheet(JURI::root(true).'/modules/mod_sp_news_highlighter/elements/css/colorpicker.css');
|
||||
return null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user