dioma; if ($idioma == self::$mainLanguage) { $prefix = ''; } if ($this->isDynamic()) { $basePath = $this->getFolderPath(); $folderName = basename($basePath); $folderName = preg_replace("/(^[a-z]{2}_|_[a-z]{2}$)/i", '', $folderName); $path = dirname($basePath); if ($path == '.') { $path = ''; } $parentPath = self::$basePath.'/'.$path; $parentUrl = self::$baseUrl . $path; if (in_array($folderName, array('news', 'noticies', 'noticias'))) { if ($idioma == 'ca' && file_exists($parentPath.'/noticies')) { return $this->filterUrl($parentUrl.'/noticies'); } else if ($idioma == 'es' && file_exists($parentPath.'/noticias')) { return $this->filterUrl($parentUrl.'/noticias'); } else if ($idioma == 'en' && file_exists($parentPath.'/news')) { return $this->filterUrl($parentUrl.'/news'); } } elseif (in_array($folderName, array('estudis-clinics', 'estudios-clinicos', 'clinical-trials'))) { if ($idioma == 'ca' && file_exists($parentPath.'/estudis-clinics')) { return $this->filterUrl($parentUrl.'/estudis-clinics'); } else if ($idioma == 'es' && file_exists($parentPath.'/estudios-clinicos')) { return $this->filterUrl($parentUrl.'/estudios-clinicos'); } else if ($idioma == 'en' && file_exists($parentPath.'/clinical-trials')) { return $this->filterUrl($parentUrl.'/clinical-trials'); } } else if (file_exists($parentPath.'/'.$prefix.$folderName)) { return $this->filterUrl($parentUrl.'/'.$prefix.$folderName); } else if (file_exists($parentPath.'/'.$folderName . $postfix)) { return $this->filterUrl($parentUrl.'/'.$folderName . $postfix); } } else { $basePath = $this->getFolderPath(true); $baseUrl = $this->getFolderUrl(); $file = preg_replace("/^[a-z]{2}_/i", '', self::$fileName); if ($baseUrl == '/' && $prefix == '' && $file == 'index.html') { return self::$baseUrl.'/'.'ca_'.$file; } elseif (file_exists($basePath.'/'.$prefix.$file)) { return $this->filterPath($baseUrl.'/'.$prefix.$file); } else if (file_exists($basePath.'/'.$prefix.'index.html')) { //anar al index de la carpeta return $this->filterPath($baseUrl.'/'.$prefix.'index.html'); } } return self::$baseUrl. '/' . $prefix .'index.html'; } /* * Private methods */ private function filterUrl($url) { $urlParts = parse_url($url); $urlParts['path'] = self::filterPath($urlParts['path']); return http_build_url('', $urlParts); } private function filterPath($path) { return str_replace('//','/', $path); } }
Fatal error: Class 'Houdini_Content_Generated_Element' not found in /webs/test.imim.cat/sct/microscopia/microsc_piaelectr_nica.html on line 18