예제 #1
0
 function fixLanguages($templateSource)
 {
     $templateSource = str_replace('<head>', '<head><base href="' . GLZ_HOST . '/" />', $templateSource);
     $templateSource = preg_replace('/(\\<html.*xml:lang=)"([^"]*)"/', '$1"' . $this->language . '"', $templateSource);
     $templateSource = preg_replace('/(\\<html.*lang=)"([^"]*)"/', '$1"' . $this->language . '"', $templateSource);
     if (org_glizy_Config::get('SEF_URL') === 'full') {
         // non è il massimo ma la regexp su testi lunghi crasha
         $templateSource = str_replace(array('href="#', 'href=\'#', 'href="noTranslate:'), array('href="' . __Routing::scriptUrl() . '#', 'href=\'' . __Routing::scriptUrl() . '#', 'href="'), $templateSource);
         //$newtemplateSource = preg_replace("/<(.*?)(href)\s*=\s*(\'|\")(\#.*)(\'|\")(.*?)>/si", "<$1$2=$3".__Routing::scriptUrl()."$4$5$6>", $templateSource);
         // if ( !empty( $newtemplateSource ) )
         // 			{
         // 				$templateSource = &$newtemplateSource;
         // 			}
     }
     return $templateSource;
 }
예제 #2
0
 function process()
 {
     $content = org_glizy_helpers_Convert::formEditObjectToStdObject($this->_parent->loadContent($this->getId(), true));
     $this->_content = new movio_modules_storyteller_views_skins_StorytellerSkinIterator($content, $this->_application->getPageId(), __Routing::scriptUrl());
 }
예제 #3
0
 function goHere($params = null, $hash)
 {
     org_glizy_helpers_Navigation::gotoUrl(__Routing::scriptUrl(), $params, $hash);
 }