| Current Path : /home/azimutno/www/demo/plugins/nextendslidergenerator/cobalt/ |
| Current File : /home/azimutno/www/demo/plugins/nextendslidergenerator/cobalt/cobalt.php |
<?php
/*
# author Roland Soos
# copyright Copyright (C) Nextendweb.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-3.0.txt GNU/GPL
*/
defined('_JEXEC') or die('Restricted access'); ?><?php
class plgNextendSliderGeneratorCobalt extends NextendPluginBase {
var $_group = 'cobalt';
function onNextendSliderGeneratorList(&$group, &$list) {
if(NextendFilesystem::existsFolder(JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_cobalt')){
$group[$this->_group] = 'Cobalt';
if (!isset($list[$this->_group])) $list[$this->_group] = array();
$list[$this->_group][$this->_group . '_records'] = array('Records', $this->getPath() . 'records' . DIRECTORY_SEPARATOR);
}
}
function getPath() {
return dirname(__FILE__) . DIRECTORY_SEPARATOR;
}
}
NextendPlugin::addPlugin('nextendslidergenerator', 'plgNextendSliderGeneratorCobalt');