public function styleswitcherGeneratePage(\PageModel $objPage, \LayoutModel $objLayout, \PageRegular $objPageRegular) { if (\Input::get('sy')) { $strStyleHandler = \Input::get('sy'); if (in_array($strStyleHandler, $GLOBALS['DMA_STYLESWITCHER']['STYLES'])) { $objPersistant = null; if ($this->blnUseSession) { $objPersistant = \Session::getInstance(); } if ($objPersistant !== null) { $objPersistant->set('style', $strStyleHandler); } } global $objPage; $this->redirect($this->generateFrontendUrl($objPage->row())); } $objTemplate = new \FrontendTemplate('styleswitcher_loader'); $objTemplate->style = $this->strCurrentStyle; $objTemplate->parse(); }
public function fontsizerGeneratePage(\PageModel $objPage, \LayoutModel $objLayout, \PageRegular $objPageRegular) { if (\Input::get('fz')) { $strFontHandler = \Input::get('fz'); $intNewFontSize = $this->intCurrentFontsize; if ($strFontHandler == "bigger") { $intNewFontSize = $this->intCurrentFontsize + 1; } if ($strFontHandler == "smaller") { $intNewFontSize = $this->intCurrentFontsize - 1; } if ($GLOBALS['DMA_FONTSIZER']['SIZES'][$intNewFontSize]) { $objPersistant = null; if ($this->blnUseSession) { $objPersistant = \Session::getInstance(); } if ($objPersistant !== null) { $objPersistant->set('fontsize', $intNewFontSize); } } global $objPage; $this->redirect($this->generateFrontendUrl($objPage->row())); } }