Пример #1
0
 public static function registerApplication()
 {
     N2Base::registerApplication(dirname(__FILE__) . '/library/applications/system/N2SystemApplicationInfo.php');
     N2Base::getApplication('system')->getApplicationType('backend');
 }
Пример #2
0
 function onInitN2Library()
 {
     N2Base::registerApplication(JPATH_SITE . DIRECTORY_SEPARATOR . "libraries" . DIRECTORY_SEPARATOR . 'nextend2/nextend/library/applications/system/N2SystemApplicationInfo.php');
 }
 public static function registerApplication()
 {
     N2Base::registerApplication(dirname(NEXTEND_SMARTSLIDER_3__FILE__) . '/library/smartslider/N2SmartsliderApplicationInfo.php');
 }
Пример #4
0
* @copyright (C) 2015 Nextendweb.com
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die('Restricted access');
if (!defined("N2_PLATFORM_LIBRARY")) {
    define('N2_PLATFORM_LIBRARY', dirname(__FILE__));
}
define('N2WORDPRESS', 0);
define('N2JOOMLA', 1);
define('N2MAGENTO', 0);
define('N2NATIVE', 0);
if (!defined('N2PRO')) {
    define('N2PRO', 0);
}
if (!defined('JPATH_NEXTEND_IMAGES')) {
    define('JPATH_NEXTEND_IMAGES', '/' . trim(JComponentHelper::getParams('com_media')->get('image_path', 'images'), "/"));
}
require_once N2_PLATFORM_LIBRARY . '/../library/library.php';
N2Base::registerApplication(N2_PLATFORM_LIBRARY . '/../library/applications/system/N2SystemApplicationInfo.php');
function N2JoomlaExit()
{
    if (N2Platform::$isAdmin) {
        $lifetime = JFactory::getConfig()->get('lifetime');
        if (empty($lifetime)) {
            $lifetime = 60;
        }
        $lifetime = min(max(intval($lifetime) - 1, 9), 60 * 24);
        N2JS::addInline('setInterval(function(){$.ajax({url: "' . JURI::current() . '", cache: false});}, ' . $lifetime * 60 * 1000 . ');');
    }
}
N2Pluggable::addAction('exit', 'N2JoomlaExit');
 public function onInitN2Library()
 {
     N2Base::registerApplication(JPATH_SITE . DIRECTORY_SEPARATOR . "libraries" . DIRECTORY_SEPARATOR . 'nextend2/smartslider/smartslider/N2SmartsliderApplicationInfo.php');
 }