Example #1
0
 protected function initLayout()
 {
     if (N2Request::getVar('layout') == 'modal') {
         $this->layoutName = 'modal';
     }
     parent::initLayout();
 }
 public function initialize()
 {
     parent::initialize();
     N2JS::addFirstCode('window.ss2lang = {};');
     N2Loader::import(array('models.GroupStorage', 'models.License', 'models.Update'), 'smartslider');
     N2JS::addInline("new NextendSmartSliderCreateSlider('" . $this->appType->router->createUrl(array('slider/create')) . "');");
     N2Localization::addJS(array('Create Slider', 'Slider name', 'Slider', 'Width', 'Height', 'Create', 'Preset', 'Default', 'Full width', 'Full page', 'Block', 'Thumbnail - horizontal', 'Thumbnail - vertical', 'Caption', 'Horizontal accordion', 'Vertical accordion', 'Showcase', 'Saved slide'));
 }
Example #3
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'));
 }
Example #4
0
 public function __construct($appType, $defaultParams)
 {
     N2Localization::addJS(array('Drop files anywhere to upload or', 'Select files'));
     parent::__construct($appType, $defaultParams);
 }