Пример #1
0
 public static function getNextendElementUrlParameters()
 {
     $params = array('hasPosts' => N2Platform::$hasPosts);
     $params['imageUrl'] = N2Uri::pathToUri(N2LIBRARYASSETS . "/images");
     $params['url'] = N2Base::getApplication('system')->getApplicationType('backend')->router->createUrl("link/search");
     return json_encode(N2ElementUrlParams::extend($params));
 }
 public function assetsBackend()
 {
     static $once;
     if ($once != null) {
         return;
     }
     $once = true;
     $path = $this->getAssetsPath();
     N2CSS::addInline('.n2-expert {display: none !important;');
     N2CSS::addFile($path . "/admin/css/smartslider.css", 'smartslider-backend');
     foreach (glob($path . "/admin/js/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-backend');
     }
     if (!N2Base::getApplication('smartslider')->storage->get('free', 'rated')) {
         N2JS::addFile($path . "/admin/js/free/gopro.js", 'smartslider-free');
     }
     foreach (glob($path . "/admin/js/element/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-backend');
     }
     N2Localization::addJS(array('Insert', 'Insert variable', 'Choose the group', 'Choose the variable', 'Result', 'Filter', 'No', 'Clean HTML', 'Remove HTML', 'Split', 'Chars', 'Words', 'Start', 'Length', 'Find image', 'Index', 'Find link', 'Index'));
     foreach (glob($path . "/admin/js/generator/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-backend');
     }
     foreach (glob($path . "/admin/js/item/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-backend');
     }
     foreach (glob($path . "/admin/js/item/parser/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-backend');
     }
     foreach (glob($path . "/admin/js/layer/*.js") as $file) {
         N2JS::addFile($file, 'smartslider-backend');
     }
     N2Form::$documentation = 'http://doc.smartslider3.com/';
 }
Пример #3
0
 public static function backend($force = false)
 {
     static $once;
     if ($once != null && !$force) {
         return;
     }
     $once = true;
     $family = n2_x('Montserrat', 'Default Google font family for admin');
     foreach (explode(',', n2_x('latin', 'Default Google font charset for admin')) as $subset) {
         N2GoogleFonts::addSubset($subset);
     }
     N2GoogleFonts::addFont($family);
     N2CSS::addInline('.n2,html[dir="rtl"] .n2,.n2 td,.n2 th,.n2 select, .n2 textarea, .n2 input{font-family: "' . $family . '", Arial, sans-serif;}');
     N2CSS::addFiles(N2LIBRARYASSETS . "/css", array('nextend-font.css', 'font.css', 'admin.css', 'form.css', 'notificationcenter.css', 'spectrum.css', 'contextMenu.css'), 'nextend-backend');
     foreach (glob(N2LIBRARYASSETS . "/css/tabs/*.css") as $file) {
         N2CSS::addFile($file, 'nextend-backend');
     }
     foreach (glob(N2LIBRARYASSETS . "/css/jquery/*.css") as $file) {
         N2CSS::addFile($file, 'nextend-backend');
     }
     N2JS::addFiles(N2LIBRARYASSETS . "/js", array('json2.js', 'admin.js', 'color.js', 'query-string.js', 'md5.js', 'css.js', 'imagehelper.js', 'modal.js', 'notificationcenter.js', 'spectrum.js', 'expert.js'), 'nextend-backend');
     N2Localization::addJS(array('Cancel', 'Delete', 'Delete and never show again', 'Are you sure you want to delete?', 'Documentation'));
     self::form($force);
     N2JS::addFiles(N2LIBRARYASSETS . "/js/core/jquery", array("fixto.js", "jstorage.js", "jquery.datetimepicker.js", "jquery.tinyscrollbar.min.js", "jquery.unique-element-id.js", "vertical-pane.js"), "nextend-backend");
     wp_enqueue_script('nextend-ui', N2Uri::pathToUri(N2LIBRARYASSETS . "/js/core/jquery/ui/jquery-ui.nextend.js"), array('jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-autocomplete', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-resizable', 'jquery-ui-sortable', 'jquery-ui-slider'), '1.0', 1);
     wp_enqueue_script('nextend-ui-iframe-transport', N2Uri::pathToUri(N2LIBRARYASSETS . "/js/core/jquery/ui/jquery.iframe-transport.js"), array('jquery-ui-core', 'jquery-ui-widget'), '1.0', 1);
     wp_enqueue_script('nextend-ui-fileupload', N2Uri::pathToUri(N2LIBRARYASSETS . "/js/core/jquery/ui/jquery.fileupload.js"), array('jquery-ui-core', 'jquery-ui-widget'), '1.0', 1);
     N2JS::addFiles(N2LIBRARYASSETS . "/js/core/jquery/ui", array('jquery.contextMenu.js'), "nextend-backend");
     N2Base::getApplication('system')->info->assetsBackend();
     N2JS::addFirstCode("NextendAjaxHelper.addAjaxArray(" . json_encode(N2Form::tokenizeUrl()) . ");");
     N2Plugin::callPlugin('fontservices', 'onFontManagerLoadBackend');
 }
Пример #4
0
 public function initialize()
 {
     $this->app = N2Base::getApplication('system');
     parent::initialize();
     N2Loader::import(array('models.visual'), 'system');
     $this->loadModel();
     N2Localization::addJS(array('visual', 'visuals', 'Static', 'Empty', 'Save as new', 'Overwrite current', '%s changed - %s', 'Save as', 'Sets', 'Add new', '%s sets', 'Create set', 'Add', 'Name', 'Please fill the name field!', 'Set added', 'Rename set', 'Rename', 'Delete', 'Set renamed', 'Delete set', 'Cancel', 'Yes', 'Do you really want to delete the set and all associated %s?', 'Unable to delete the set'));
 }
Пример #5
0
 public static function install_new_blog($blog_id)
 {
     global $wpdb;
     $tmpPrefix = $wpdb->prefix;
     $wpdb->prefix = $wpdb->get_blog_prefix($blog_id);
     N2Base::getApplication("system")->getApplicationType('backend')->render(array("controller" => "install", "action" => "index", "useRequest" => false), array(true));
     $wpdb->prefix = $tmpPrefix;
 }
Пример #6
0
 function renderForm($type, $item, $data = array())
 {
     $configurationXmlFile = $item[4] . 'configuration.xml';
     $form = new N2Form(N2Base::getApplication('smartslider')->getApplicationType('backend'));
     $form->loadArray($data);
     $form->loadXMLFile($configurationXmlFile);
     echo $form->render('item_' . $type);
 }
Пример #7
0
 public static function renderRestoreFromServerForm()
 {
     $configurationXmlFile = dirname(__FILE__) . '/forms/import/restorefromserver.xml';
     N2Loader::import('libraries.form.form');
     $form = new N2Form(N2Base::getApplication('smartslider')->getApplicationType('backend'));
     $form->loadXMLFile($configurationXmlFile);
     echo $form->render('slider');
 }
Пример #8
0
 public static function renderForm()
 {
     $configurationXmlFile = dirname(__FILE__) . '/forms/login.xml';
     N2Loader::import('libraries.form.form');
     $form = new N2Form(N2Base::getApplication('system')->getApplicationType('backend'));
     $form->loadXMLFile($configurationXmlFile);
     return $form->render('login');
 }
Пример #9
0
 /**
  * @return N2SmartSliderHelper
  */
 public static function getInstance()
 {
     static $instance = null;
     if ($instance === null) {
         $instance = new self(N2Base::getApplication('smartslider'));
     }
     return $instance;
 }
 public static function render($parameters, $usage = 'WordPress Shortcode')
 {
     $parameters = shortcode_atts(array('id' => md5(time()), 'slider' => 0), $parameters);
     if (intval($parameters['slider']) > 0) {
         ob_start();
         N2Base::getApplication("smartslider")->getApplicationType('widget')->render(array("controller" => 'home', "action" => 'wordpress', "useRequest" => false), array(intval($parameters['slider']), $usage));
         return ob_get_clean();
     }
     return '';
 }
Пример #11
0
 public function render($xmlpath, $data)
 {
     N2Loader::import('libraries.form.form');
     $form = new N2Form(N2Base::getApplication('smartslider')->getApplicationType('backend'));
     $form->loadArray($data);
     $form->loadXMLFile($xmlpath);
     echo $form->render('settings');
     N2JS::addFirstCode('
         new NextendForm("smartslider-form", ' . json_encode($form->_data) . ', null, "' . N2Filesystem::toLinux(N2Filesystem::pathToRelativePath($xmlpath)) . '", "settings", "' . N2Uri::ajaxUri('nextend', 'smartslider') . '");
     ');
 }
Пример #12
0
 public function isActive($cacheAccepted = true)
 {
     if ($cacheAccepted && $this->maybeActive()) {
         return 'OK';
     }
     $status = $this->checkKey($this->key);
     if ($this->hasKey() && $status == 'OK') {
         N2Base::getApplication('smartslider')->storage->set('license', 'isActive', time());
         return $status;
     }
     N2Base::getApplication('smartslider')->storage->set('license', 'isActive', 0);
     return $status;
 }
Пример #13
0
 public function getDashboardButtons($slider)
 {
     $sliderid = $slider['id'];
     $app = N2Base::getApplication('smartslider');
     $accessEdit = N2Acl::canDo('smartslider_edit', $app->info);
     $accessDelete = N2Acl::canDo('smartslider_delete', $app->info);
     $buttons = '';
     if ($accessEdit) {
         $buttons .= N2Html::tag('a', array('data-label' => n2_('Quick Edit - Slides'), 'href' => '#', 'id' => 'n2-quick-slides-edit'), N2Html::tag('i', array('class' => 'n2-i n2-i-slideedit')));
         $buttons .= N2Html::tag('a', array('data-label' => n2_('Clear slider cache'), 'href' => $this->appType->router->createUrl(array('slider/clearcache', array('sliderid' => $sliderid) + N2Form::tokenizeUrl()))), N2Html::tag('i', array('class' => 'n2-i n2-i-a-refresh')));
         $buttons .= N2Html::tag('a', array('data-label' => n2_('Export slider as HTML'), 'href' => $this->appType->router->createUrl(array('slider/exporthtml', array('sliderid' => $sliderid) + N2Form::tokenizeUrl()))), N2Html::tag('i', array('class' => 'n2-i n2-i-a-html')));
         $buttons .= N2Html::tag('a', array('data-label' => n2_('Export'), 'href' => $this->appType->router->createUrl(array('slider/export', array('sliderid' => $sliderid) + N2Form::tokenizeUrl()))), N2Html::tag('i', array('class' => 'n2-i n2-i-a-export')));
         $buttons .= N2Html::tag('a', array('data-label' => n2_('Duplicate slider'), 'href' => $this->appType->router->createUrl(array('slider/duplicate', array('sliderid' => $sliderid) + N2Form::tokenizeUrl()))), N2Html::tag('i', array('class' => 'n2-i n2-i-a-duplicate')));
     }
     if ($accessDelete) {
         $buttons .= N2Html::tag('a', array('data-label' => n2_('Delete slider'), "onclick" => "return NextendDeleteModalLink(this, 'slider-delete', " . json_encode($slider['title']) . ");", 'href' => $this->appType->router->createUrl(array('slider/delete', array('sliderid' => $sliderid) + N2Form::tokenizeUrl()))), N2Html::tag('i', array('class' => 'n2-i n2-i-a-delete')));
     }
     return $buttons;
 }
Пример #14
0
 function fetchElement()
 {
     $attributes = array('class' => 'n2-form-element-single-button n2-button n2-button-big n2-uc n2-button-grey', 'href' => '#', 'onclick' => 'return false;', 'id' => $this->_id);
     $url = N2XmlHelper::getAttribute($this->_xml, 'url');
     if (!empty($url)) {
         $attributes['href'] = $url;
         $attributes['target'] = N2XmlHelper::getAttribute($this->_xml, 'target');
     } else {
         $app = (string) $this->_xml->app;
         if ($app) {
             $queries = (array) $this->_xml->queries;
             $route = $queries['controller'] . '/' . $queries['action'];
             unset($queries['controller']);
             unset($queries['action']);
             $attributes['href'] = N2Base::getApplication($app)->router->createUrl(array($route, $queries), true);
             unset($attributes['onclick']);
         }
     }
     return N2Html::tag('a', $attributes, n2_($this->getValue()));
 }
Пример #15
0
 private function importVisuals($records, $linkedVisuals)
 {
     if (count($records)) {
         if (!$linkedVisuals) {
             foreach ($records as $record) {
                 $this->sectionTranslation[$record['id']] = $record['value'];
             }
         } else {
             $sets = array();
             foreach ($records as $record) {
                 $storage = N2Base::getApplication($record['application'])->storage;
                 if (!isset($sets[$record['application'] . '_' . $record['section']])) {
                     $sets[$record['application'] . '_' . $record['section']] = $storage->add($record['section'] . 'set', null, $this->backup->slider['title']);
                 }
                 $this->sectionTranslation[$record['id']] = $storage->add($record['section'], $sets[$record['application'] . '_' . $record['section']], $record['value']);
             }
         }
     }
 }
 public function onNextendSliderItemList(&$list)
 {
     $slider = N2Base::getApplication('smartslider')->get('sliderManager')->getSlider();
     $list[$this->_identifier] = array($this->_title, $this->getTemplate($slider), $this->getPrefilledTemplate($slider), json_encode($this->getValues()), $this->getPath(), $this->layerProperties, $this->priority);
 }
Пример #17
0
 public function __construct()
 {
     $this->storage = N2Base::getApplication('smartslider')->storage;
     $this->version = $this->storage->get('update', 'version');
 }
Пример #18
0
<?php

/**
* @author    Roland Soos
* @copyright (C) 2015 Nextendweb.com
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die('Restricted access');
require N2Base::getApplication('system')->getApplicationType('backend')->path . '/layouts/lightbox.php';
Пример #19
0
    public static function init()
    {
        self::loadSettings();
        N2JS::addFirstCode('
            window.nextend.getFeatherEditor = function(){
                if(typeof window.nextend.featherEditor !== "undefined"){
                    return $.when(window.nextend.featherEditor);
                }
                var deferred = $.Deferred();

                $.getScript("https://dme0ih8comzn4.cloudfront.net/imaging/v1/editor.js").done(function(){
                    window.nextend.featherEditorHiRes = -1;
                    window.nextend.featherEditor = new Aviary.Feather({
                        apiKey: "' . self::$config['public'] . '",
                        encryptionMethod: "sha1",
                        maxSize: 1920,
                        displayImageSize: true,
                        onLoad: function(){
                            deferred.resolve();
                        },
                        onReady: function(){
                            if(window.nextend.featherEditorHiRes == -1){
                                AV.controlsWidgetInstance.serverMessaging.sendMessage({
                                    id: "avpw_auth_form",
                                    action: AV.controlsWidgetInstance.assetManager.getManifestURL(),
                                    method: "GET",
                                    dataType: "json",
                                    announcer: AV.build.asyncFeatherTargetAnnounce,
                                    origin: AV.build.asyncImgrecvBase,
                                    callback: function(response){
                                        window.nextend.featherEditorHiRes = false;
                                        for(var i = 0; i < response.permissions.length; i++){
                                            if(response.permissions[i] == "hires"){
                                                window.nextend.featherEditorHiRes = true;
                                                break;
                                            }
                                        }
                                    }
                                });
                            }
                        },
                        onError: function(error){
                            if(error.code == 8){
                                nextend.notificationCenter.error("Aviary not set up. <a target=\\"_blank\\" href=\\"' . N2Base::getApplication('system')->router->createUrl('settings/aviary') . '\\">Click here to setup!</a>");
                            }else{
                                nextend.notificationCenter.error(error.message);
                            }
                            if(typeof error.args !== "undefined" && typeof error.args[1] !== "undefined"){
                                nextend.notificationCenter.error(error.args[1].Error);
                            }
                            window.nextend.featherEditor.close();
                            deferred.reject();
                        },
                        onSaveButtonClicked: function(){
                            if(window.nextend.featherEditorHiRes === true){
                                NextendAjaxHelper.ajax({
                                    type: "POST",
                                    url: NextendAjaxHelper.makeAjaxUrl(window.nextend.featherEditor.ajaxUrl, {
                                        nextendaction: "getHighResolutionAuth"
                                    }),
                                    dataType: "json"
                                })
                                    .done(function (response) {
                                        var auth = response.data.highResolutionAuth;
                                        window.nextend.featherEditor.updateConfig({
                                            salt: auth.salt,
                                            timestamp: auth.timestamp,
                                            signature: auth.signature
                                        });

                                        window.nextend.featherEditor.saveHiRes();
                                    });
                                return false;
                            }
                        }
                    });
                    window.nextend.featherEditor.ajaxUrl = "' . N2Base::getApplication('system')->getApplicationType('backend')->router->createAjaxUrl(array('aviary/index')) . '";
                });
                return deferred;
            };
        ');
    }
Пример #20
0
 public function actionAviary()
 {
     if ($this->validatePermission('nextend') && $this->validatePermission('nextend_config')) {
         $this->redirect(N2Base::getApplication('system')->getApplicationType('backend')->router->createUrl("settings/aviary"));
     }
 }
Пример #21
0
?>
<div id="n2-ss-slides" class="<?php 
if (count($slides)) {
    echo "n2-ss-has-slides";
}
?>
">

    <div class="n2-ss-slides-container">
        <?php 
$parameters = array();
if (N2Platform::$isWordpress) {
    $parameters['nonce'] = wp_create_nonce('internal-linking');
    $parameters['wpAjaxUrl'] = admin_url('admin-ajax.php');
}
N2JS::addInline('new NextendSmartSliderAdminSidebarSlides("' . $this->appType->router->createAjaxUrl(array("slides/index", array("sliderid" => $slider['id']))) . '","' . N2Base::getApplication('system')->getApplicationType('backend')->router->createUrl("content/search") . '", ' . json_encode($parameters) . ', ' . (defined('N2_IMAGE_UPLOAD_DISABLE') ? 1 : 0) . ", '" . N2Base::getApplication('system')->router->createAjaxUrl(array('browse/upload')) . "', 'slider" . $slider['id'] . "');");
N2Localization::addJS(array('Add video', 'Video url', 'Examples', 'Add post', 'Keyword', 'No search term specified. Showing recent items.', 'Showing items match for "%s"', 'Select'));
$slidesObj = array();
foreach ($slides as $i => $slide) {
    $slidesObj[$i] = new N2SmartSliderSlide($sliderObj, $slide);
    $slidesObj[$i]->initGenerator();
}
foreach ($slidesObj as $slideObj) {
    $slideObj->fillSample();
    echo N2SmartsliderSlidesModel::box($slideObj, $sliderObj, $this->widget, $this->appType);
}
?>
        <a class="n2-box n2-box-slide-add n2-h3 n2-uc" href="#"><?php 
printf(n2_('SLIDE #%d'), 1);
?>
</a>
Пример #22
0
 public function createHTML($isZIP = true)
 {
     $this->files = array();
     ob_end_clean();
     N2AssetsManager::createStack();
     N2AssetsPredefined::frontend(true);
     ob_start();
     N2Base::getApplication("smartslider")->getApplicationType('widget')->render(array("controller" => 'home', "action" => N2Platform::getPlatform(), "useRequest" => false), array($this->sliderId, 'Export as HTML'));
     $slidersModel = new N2SmartsliderSlidersModel();
     $slider = $slidersModel->get($this->sliderId);
     $sliderHTML = ob_get_clean();
     $headHTML = '';
     $css = N2AssetsManager::getCSS(true);
     foreach ($css['url'] as $url) {
         $headHTML .= N2Html::style($url, true, array('media' => 'screen, print')) . "\n";
     }
     array_unshift($css['files'], N2LIBRARYASSETS . '/normalize.css');
     foreach ($css['files'] as $file) {
         $path = 'css/' . basename($file);
         $this->files[$path] = file_get_contents($file);
         $headHTML .= N2Html::style($path, true, array('media' => 'screen, print')) . "\n";
     }
     if ($css['inline'] != '') {
         $headHTML .= N2Html::style($css['inline']) . "\n";
     }
     $js = N2AssetsManager::getJs(true);
     if ($js['globalInline'] != '') {
         $headHTML .= N2Html::script($js['globalInline']) . "\n";
     }
     foreach ($js['url'] as $url) {
         $headHTML .= N2Html::script($url, true) . "\n";
     }
     foreach ($js['files'] as $file) {
         $path = 'js/' . basename($file);
         $this->files[$path] = file_get_contents($file);
         $headHTML .= N2Html::script($path, true) . "\n";
     }
     if ($js['inline'] != '') {
         $headHTML .= N2Html::script($js['inline']) . "\n";
     }
     $sliderHTML = preg_replace_callback('/(src|data-desktop|data-tablet|data-mobile)=["|\'](.*?)["|\']/i', array($this, 'replaceHTMLImage'), $sliderHTML);
     $sliderHTML = preg_replace_callback('/url\\(\\s*([\'"]|(&#039;))?(\\S*\\.(?:jpe?g|gif|png))([\'"]|(&#039;))?\\s*\\)[^;}]*?/i', array($this, 'replaceHTMLBGImage'), $sliderHTML);
     $sliderHTML = preg_replace_callback('/(n2-lightbox-urls)=["|\'](.*?)["|\']/i', array($this, 'replaceLightboxImages'), $sliderHTML);
     $headHTML = preg_replace_callback('/"([^"]*?\\.(jpg|png|gif|jpeg))"/i', array($this, 'replaceJSON'), $headHTML);
     $this->files['index.html'] = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge, chrome=1\">\n<title>" . $slider['title'] . "</title>\n" . $headHTML . "</head>\n<body>\n" . $sliderHTML . "</body>\n</html>";
     if (!$isZIP) {
         return $this->files;
     }
     $zip = new N2ZipFile();
     foreach ($this->files as $path => $content) {
         $zip->addFile($content, $path);
     }
     ob_end_clean();
     header('Content-disposition: attachment; filename=' . preg_replace('/[^a-zA-Z0-9_-]/', '', $slider['title']) . '.zip');
     header('Content-type: application/zip');
     echo $zip->file();
     n2_exit(true);
 }
Пример #23
0
 public static function load()
 {
     N2Base::getApplication('system')->getApplicationType('backend')->run(array('useRequest' => false, 'controller' => 'browse', 'action' => 'index'));
 }
Пример #24
0
<?php

/**
* @author    Roland Soos
* @copyright (C) 2015 Nextendweb.com
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die('Restricted access');
N2Base::getApplication('system')->getApplicationType('backend');
N2Loader::import('helpers.controllers.VisualManagerAjax', 'system.backend');
class N2SmartSliderBackendBackgroundAnimationControllerAjax extends N2SystemBackendVisualManagerControllerAjax
{
    protected $type = 'backgroundanimation';
    public function initialize()
    {
        parent::initialize();
        N2Loader::import(array('models.' . $this->type), 'smartslider');
    }
    public function getModel()
    {
        return new N2SmartSliderBackgroundAnimationModel();
    }
}
Пример #25
0
 public function simpleEditForm($data = array())
 {
     $configurationXmlFile = dirname(__FILE__) . '/forms/slide.xml';
     N2Loader::import('libraries.form.form');
     $form = new N2Form(N2Base::getApplication('smartslider')->getApplicationType('backend'));
     $data['publishdates'] = isset($data['publishdates']) ? $data['publishdates'] : (isset($data['publish_up']) ? $data['publish_up'] : '') . '|*|' . (isset($data['publish_down']) ? $data['publish_down'] : '');
     if (isset($data['slide'])) {
         $data['slide'] = base64_encode($data['slide']);
     }
     $form->loadArray($data);
     $form->loadXMLFile($configurationXmlFile);
     echo $form->render('slide');
 }
Пример #26
0
 static function store($key, $value)
 {
     N2Base::getApplication('smartslider')->storage->set($key, '', $value);
 }
Пример #27
0
                            <div id="n2-ss-slider-zoom"></div>

                            <div class="n2-expert" id="n2-ss-lock">
                                <i class="n2-i n2-i-unlock"></i>
                            </div>
                        </div>
                    </div>

                    <div class="n2-td" id="n2-ss-devices">
                        <div class="n2-controls-panel n2-table n2-table-auto">
                            <div class="n2-tr">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
        <?php 
$sliderManager = $this->appType->app->get('sliderManager');
$slider = $sliderManager->getSlider();
$slider->setStatic($slideData->get('static-slide', 0));
echo N2Html::tag('div', array('id' => 'smartslider-adjust-height', 'style' => 'overflow: auto; margin: 5px; padding: 5px'), N2Html::tag('div', array(), $sliderManager->render()));
N2Localization::addJS(array('Add', 'Clear', 'in', 'loop', 'out'));
echo N2Html::script("\n            nextend.ready(function(\$){\n                var cb = function(){\n                    nextend.smartSlider.startEditor('" . $slider->elementId . "', 'slideslide', " . (defined('N2_IMAGE_UPLOAD_DISABLE') ? 1 : 0) . ", '" . N2Base::getApplication('system')->router->createAjaxUrl(array('browse/upload')) . "', 'slider" . $slider->sliderId . "');\n                };\n                if(typeof nextend.fontsDeferred !== 'undefined'){\n                    nextend.fontsDeferred.done(cb);\n                }else {\n                    cb();\n                }\n            });\n        ");
?>
</div>
<?php 
?>
<div style="height: 600px;"></div>
Пример #28
0
* @author    Roland Soos
* @copyright (C) 2015 Nextendweb.com
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die('Restricted access');
/* @var $this N2Layout */
?>

    <div id="n2-admin" class="n2 n2-border-radius">

        <?php 
$cmd = N2Request::getVar("nextendcontroller", "sliders");
/**
 * @see Nav
 */
$views = array(N2Html::tag('a', array('href' => $this->appType->router->createUrl("sliders/index"), 'class' => 'n2-h4 n2-uc ' . ($cmd == "sliders" ? "n2-active" : "")), n2_('Sliders')), N2Html::tag('a', array('href' => $this->appType->router->createUrl("settings/default"), 'class' => 'n2-h4 n2-uc ' . ($cmd == "settings" ? "n2-active" : "")), n2_('Settings')), N2Html::tag('a', array('href' => N2Base::getApplication('system')->router->createUrl("dashboard/index"), 'class' => 'n2-h4 n2-uc ' . ($cmd == "settings" ? "n2-active" : "")), n2_('Nextend')));
$views[] = N2Html::tag('a', array('href' => N2SS3::getProUrlPricing(), 'target' => '_blank', 'class' => 'n2-h4 n2-uc '), n2_('Go Pro!'));
$this->widget->init('nav', array('logoUrl' => $this->appType->router->createUrl("sliders/index"), 'logoImageUrl' => $this->appType->app->getLogo(), 'views' => $views, 'actions' => $this->getFragmentValue('actions')));
?>

        <div class="n2-table n2-table-fixed n2-content">
            <div class="n2-tr">
                <div class="n2-td n2-sidebar n2-sidebar-base-bg n2-border-radius-bl">
                    <?php 
$this->renderFragmentBlock('nextend_sidebar', '_sliders');
?>
                </div>

                <div class="n2-td n2-content-base-bg n2-content-area n2-border-radius-br">
                    <!-- Begin Content -->
                    <?php 
Пример #29
0
<?php

/* @var $this N2Layout */
?>

    <div id="n2-admin" class="n2 n2-border-radius">

        <?php 
/**
 * @var $widget Nav
 */
$logoUrl = N2Base::getApplication('system')->getLogo();
$cmd = N2Request::getVar("nextendcontroller", "dashboard");
echo $this->widget->init('nav', array('logoUrl' => $this->appType->router->createUrl("dashboard/index"), 'logoImageUrl' => $logoUrl, 'views' => array(N2Html::tag('a', array('href' => $this->appType->router->createUrl("dashboard/index"), 'class' => 'n2-h4 n2-uc ' . ($cmd == "dashboard" ? "n2-active" : "")), n2_('Dashboard')), N2Html::tag('a', array('href' => $this->appType->router->createUrl("settings/index"), 'class' => 'n2-h4 n2-uc ' . ($cmd == "settings" ? "n2-active" : "")), n2_('Settings')), N2Html::tag('a', array('href' => $this->appType->router->createUrl("help/index"), 'class' => 'n2-h4 n2-uc ' . ($cmd == "help" ? "n2-active" : "")), n2_('Help'))), 'actions' => $this->getFragmentValue('actions')));
?>

        <div class="n2-table n2-table-fixed n2-content">
            <div class="n2-tr">
                <div class="n2-td n2-sidebar n2-sidebar-base-bg">
                    <?php 
$this->renderFragmentBlock('nextend_sidebar');
?>
                </div>

                <div class="n2-td n2-content-base-bg">
                    <!-- Begin Content -->
                    <div class="n2-content-area n2-border-radius-br">
                        <?php 
$this->renderFragmentBlock('nextend_content');
?>
                    </div>
Пример #30
0
<?php

/**
* @author    Roland Soos
* @copyright (C) 2015 Nextendweb.com
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die('Restricted access');
if (JFactory::getUser()->authorise('core.manage', 'com_nextend2')) {
    jimport("nextend2.nextend.joomla.library");
    N2Base::getApplication("system")->getApplicationType('backend')->render(array("controller" => "dashboard", "action" => "index"));
    n2_exit();
} else {
    return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}