<?php /** * @package OSEmbed * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2016 Open Source Training, LLC. All rights reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ use Alledia\Framework; defined('_JEXEC') or die; define('OSEMBED_PLUGIN_PATH', __DIR__); // Alledia Framework if (!defined('ALLEDIA_FRAMEWORK_LOADED')) { $allediaFrameworkPath = JPATH_SITE . '/libraries/allediaframework/include.php'; if (file_exists($allediaFrameworkPath)) { require_once $allediaFrameworkPath; } else { $app = JFactory::getApplication(); if ($app->isAdmin()) { $app->enqueueMessage('[OSEmbed] Alledia framework not found', 'error'); } } } if (defined('ALLEDIA_FRAMEWORK_LOADED') && !defined('OSEMBED_LOADED')) { include_once 'library/autoload.php'; Framework\Joomla\Extension\Helper::loadLibrary('plg_content_osembed'); define('OSEMBED_LOADED', 1); }
<?php /** * @package OSDownloads * @contact www.alledia.com, hello@alledia.com * @copyright 2015 Open Source Training, LLC. All rights reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die; use Alledia\Framework\Joomla\Extension\Helper as ExtensionHelper; // Alledia Framework if (!defined('ALLEDIA_FRAMEWORK_LOADED')) { $allediaFrameworkPath = JPATH_SITE . '/libraries/allediaframework/include.php'; if (file_exists($allediaFrameworkPath)) { require_once $allediaFrameworkPath; } else { JFactory::getApplication()->enqueueMessage('[OSDownloads] Alledia framework not found', 'error'); } } define('OSDOWNLOADS_MEDIA_PATH', JPATH_SITE . 'media/com_osdownloads'); define('OSDOWNLOADS_MEDIA_URI', JUri::root() . 'media/com_osdownloads'); ExtensionHelper::loadLibrary('com_osdownloads');
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OSMap. If not, see <http://www.gnu.org/licenses/>. */ // no direct access defined('_JEXEC') or die('Restricted access'); use Alledia\Framework\Joomla\Extension\Helper as ExtensionHelper; // Alledia Framework if (!defined('ALLEDIA_FRAMEWORK_LOADED')) { $allediaFrameworkPath = JPATH_SITE . '/libraries/allediaframework/include.php'; if (file_exists($allediaFrameworkPath)) { require_once $allediaFrameworkPath; } else { JFactory::getApplication()->enqueueMessage('[OSMap] Alledia framework not found', 'error'); } } ExtensionHelper::loadLibrary('com_osmap'); jimport('joomla.application.component.controller'); JTable::addIncludePath(JPATH_COMPONENT . '/tables'); jimport('joomla.form.form'); JForm::addFieldPath(JPATH_COMPONENT . '/models/fields'); // Register helper class JLoader::register('OSMapHelper', dirname(__FILE__) . '/helpers/osmap.php'); # For compatibility with older versions of Joola 2.5 if (!class_exists('JControllerLegacy')) { class JControllerLegacy extends JController { } }