| Current Path : /home/azimutno/azimutno/www/plugins/nextendslidergenerator/phocagallery/ |
| Current File : /home/azimutno/azimutno/www/plugins/nextendslidergenerator/phocagallery/phocagallery.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
nextendimportsmartslider2('nextend.smartslider.check');
class plgNextendSliderGeneratorPhocagallery extends NextendPluginBase {
var $_group = 'phocagallery';
function onNextendSliderGeneratorList(&$group, &$list, $showall = false) {
if ($showall || smartsliderIsFull()) {
$installed = NextendFilesystem::existsFolder(JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_phocagallery');
if ($showall || $installed) {
$group[$this->_group] = 'Phoca Gallery';
if (!isset($list[$this->_group]))
$list[$this->_group] = array();
$list[$this->_group][$this->_group . '_phocagalleryimages'] = array(NextendText::_('Images'), $this->getPath() . 'phocagalleryimages' . DIRECTORY_SEPARATOR, true, true, $installed ? true : 'http://extensions.joomla.org/extensions/photos-a-images/galleries/photo-gallery/3150', 'image_extended');
}
}
}
function getPath() {
return dirname(__FILE__) . DIRECTORY_SEPARATOR;
}
}
NextendPlugin::addPlugin('nextendslidergenerator', 'plgNextendSliderGeneratorPhocagallery');