172 foreach(static::$instance->parents as $sModuleDirectory)
175 $aTemp = explode(
"\\", $sModuleDirectory);
176 $sModuleDirectory = array_pop($aTemp);
178 $sLookUpPath = __DIR__.
"/../../templates/".$sModuleDirectory.
"/info.php";
179 if( file_exists($sLookUpPath) )
181 require $sLookUpPath;
235 static::$instance->block =
$block;
240 static::$instance->menu =
$menu;
253 if (defined(
"LEPTON_PATH"))
255 $aLookUpFilenames = [
257 LANGUAGE.
"_custom.php",
263 foreach (static::$instance->parents as $sClassName)
266 $aTemp = explode(
"\\", $sClassName);
267 $sClassName = array_pop($aTemp);
269 $lookUpPath = LEPTON_PATH.
"/templates/".$sClassName.
"/languages/";
273 foreach ($aLookUpFilenames as $sTempFilename)
275 if (
true === file_exists($lookUpPath.$sTempFilename))
281 require $lookUpPath.$sTempFilename;
287 if (
false === $bFoundFile)
292 $tempName = (static::$instance->template_function ==
"theme"
294 :
"TEMPLATE_".strtoupper($sClassName)
297 if (isset(${$tempName}))
299 static::$instance->language = ${$tempName};