8889841cBackgroundAnimationManager/BlockBackgroundAnimationManager.php000064400000003143150515622020020653 0ustar00model; } public function display() { $this->model = new ModelBackgroundAnimation($this); $this->renderTemplatePart('Index'); } public function displayTopBar() { $buttonCancel = new BlockButtonCancel($this); $buttonCancel->addClass('n2_fullscreen_editor__cancel'); $buttonCancel->display(); $buttonApply = new BlockButtonApply($this); $buttonApply->addClass('n2_fullscreen_editor__save'); $buttonApply->display(); } public function displayContent() { $model = $this->getModel(); Js::addFirstCode(" new _N2.BgAnimationManager({ setsIdentifier: '" . $model->getType() . "set', sets: " . json_encode($model->getSets()) . ", visuals: {}, ajaxUrl: '" . $this->createAjaxUrl(array('backgroundanimation/index')) . "' }); "); $model->renderForm(); } }BackgroundAnimationManager/Index.php000064400000002143150515622020013534 0ustar00
displayTopBar(); ?>
displayContent(); ?>
PreviewToolbar/BlockPreviewToolbar.php000064400000001213150515626730014147 0ustar00renderTemplatePart('PreviewToolbar'); } /** * @return int */ public function getSliderID() { return $this->sliderID; } /** * @param int $sliderID */ public function setSliderID($sliderID) { $this->sliderID = $sliderID; } }PreviewToolbar/PreviewToolbar.php000064400000004155150515626730013204 0ustar00
1200
X
800
addClass('n2_button_preview_orientation'); $buttonOrientation->addAttribute('data-n2tip', n2_('Toggle orientation')); $buttonOrientation->setBig(); $buttonOrientation->setIcon('ssi_24 ssi_24--orientation'); $buttonOrientation->display(); $spacer = new BlockButtonSpacer($this); $spacer->setIsVisible(true); $spacer->display(); $buttonReload = new BlockButtonPlainIcon($this); $buttonReload->addClass('n2_button_preview_reload'); $buttonReload->addAttribute('data-n2tip', n2_('Reload preview')); $buttonReload->setBig(); $buttonReload->setIcon('ssi_24 ssi_24--redo'); $buttonReload->display(); $buttonFullPreview = new BlockButtonPlainIcon($this); $buttonFullPreview->setUrl($this->getUrlPreviewFull($this->getSliderID())); $buttonFullPreview->addAttribute('data-n2tip', n2_('Open preview in full')); $buttonFullPreview->setTarget('_blank'); $buttonFullPreview->setBig(); $buttonFullPreview->setIcon('ssi_24 ssi_24--newwindow'); $buttonFullPreview->display(); ?>