Current File : /home/pacjaorg/public_html/km/plugins/system/djclassifiedsyt/djclassifiedsyt.php
<?php
/**
 * @package DJ-Extensions-DJClassifiedsYt-module
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@m.herzberg
 */

defined('_JEXEC') or die;

use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Uri\Uri;
use YOOtheme\Application;
use YOOtheme\Path;
class plgSystemDjclassifiedsyt extends CMSPlugin
{
    public function __construct(&$subject, $config = array())
    {
        parent::__construct($subject, $config);
        $this->loadLanguage();

    }

    public function onBeforeRender() {

    }

    public function onAfterInitialise()
    {
        if (class_exists(Application::class, false)) {
            $app = Application::getInstance();

            $root = __DIR__;
            $rootUrl = Uri::root(true);


            Path::setAlias('~djclassifiedsyt', $root);
            Path::setAlias('~djclassifiedsyt_url', $rootUrl . '/plugins/system/djclassifiedsyt');

            $doc = JFactory::getDocument();
            $doc->addScript(JURi::base() . '/plugins/system/djclassifiedsyt/assets/js/script.js');

            require_once JPATH_ROOT . '/administrator/components/com_djclassifieds/lib/djseo.php';

            require_once __DIR__ . '/vendor/autoload.php';
            $app->load('~djclassifiedsyt/modules/{builder-joomla-source,builder,form}/bootstrap.php');

        }
    }


}
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!