static function getIncludePaths() { $helper = JPlantLoader::_getHelperInstance(); return $helper->getIncludePaths(); }
<?php /* * @package JPlant.Framework * @author http://www.j-plant.com * @copyright Copyright (C) 2010 J-Plant. All rights reserved. * @license GNU/GPL v. 3.0 * * JPlant Framework is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ defined('_JEXEC') or die('Restricted access'); JPlantLoader::import('core.plugin.plugin'); jimport('joomla.plugin.plugin'); class JPlantJoomlaContentPlugin extends JPlugin { var $_pluginName = null; var $_nested = false; function onPrepareContent($article, $params, $limitstart) { if (!$this->needToParse()) { return; } $article->text = $this->parsePlugin($article->text); } function onContentPrepare($context, $article) { if (!$this->needToParse()) {
* @copyright Copyright (C) 2010 J-Plant. All rights reserved. * @license GNU/GPL v. 3.0 * * This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ defined('_JEXEC') or die('Restricted access'); define('ACCORDIONPLANTLIGHT_VERSION', '1.2.2'); require_once dirname(__FILE__) . '/accordionplantlight/loader.php'; JPlantLoader::import('core.joomla.plugin.extcontent'); JPlantLoader::import('core.utilities.params'); JPlantLoader::import('accordionplantlight.plugin.item'); JPlantLoader::import('accordionplantlight.accordionplantlight'); class plgSystemAccordionplantlight extends JPlantJoomlaExtContentPlugin { function plgSystemAccordionplantlight($subject, $config) { $this->_pluginName = 'accordion'; parent::__construct($subject, $config); } function _contentHandler($params, $text, $originalText) { $id = uniqid('accordion', false); $accordion = AccordionPlantLight::getInstance(); $plgParams = JPlantParamsHelper::getParamsTree($this->params); $plgJsParams = isset($plgParams['js']) ? $plgParams['js'] : array(); $plgJsParams = array_merge($plgJsParams, $params); $jsParams = $accordion->normalizeJSParameters($plgJsParams);
/* * @package JPlant.Framework * @author http://www.j-plant.com * @copyright Copyright (C) 2010 J-Plant. All rights reserved. * @license GNU/GPL v. 3.0 * * JPlant Framework is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ defined('_JEXEC') or die('Restricted Access'); JPlantLoader::import('core.joomla.plugin.content'); JPlantLoader::import('core.joomla.document.html.helper'); class JPlantJoomlaExtContentPlugin extends JPlantJoomlaContentPlugin { var $_executed = false; function onPrepareContent($article, $params, $limitstart) { if (!$this->isMode('content')) { return; } $this->_executed = true; parent::onPrepareContent($article, $params, $limitstart); } function onContentPrepare($context, $article) { if (!$this->isMode('content')) { return;
* @author http://www.j-plant.com * @copyright Copyright (C) 2010 J-Plant. All rights reserved. * @license GNU/GPL v. 3.0 * * This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ defined('_JEXEC') or die('Restricted Access'); jimport('joomla.filter.filterinput'); JPlantLoader::import('core.environment.uri'); JPlantLoader::import('core.html.json.json'); JPlantLoader::import('core.html.style'); JPlantLoader::import('core.utilities.params'); class AccordionPlantLight { var $_assetsLoaded = false; var $_jsParameters = array('activeIndex' => '0', 'hideSpeed' => 300, 'onOver' => false, 'showSpeed' => 300, 'single' => false); static function getInstance() { static $instance; if (is_null($instance)) { $instance = new AccordionPlantLight(); } return $instance; } function getOriginalJSParameters() { return $this->_jsParameters;