Changeset 912 for trunk/Application
- Timestamp:
- Aug 3, 2021, 11:38:29 AM (3 years ago)
- Location:
- trunk/Application
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/BaseView.php
r899 r912 8 8 public bool $FormatHTML = false; 9 9 public bool $ShowRuntimeInfo = false; 10 public bool $ ClearPage = false;10 public bool $RawPage = false; 11 11 public bool $BasicHTML = false; 12 12 public string $ParentClass = ''; 13 public string $ ShortTitle;14 public string $ FullTitle;13 public string $Title; 14 public string $Description; 15 15 public string $Encoding; 16 16 public string $Style; … … 58 58 while ($Page) 59 59 { 60 $Output = ' > <a href="'.$this->System->Link($ScriptName).'/">'.$Page-> ShortTitle.'</a>'.$Output;60 $Output = ' > <a href="'.$this->System->Link($ScriptName).'/">'.$Page->Title.'</a>'.$Output; 61 61 62 62 if (class_exists($Page->ParentClass)) … … 73 73 function ShowHeader(Page $Page): string 74 74 { 75 $Title = $Page->FullTitle; 76 $Path = $Page->ShortTitle; 75 $Path = $Page->Title; 77 76 78 77 $Navigation = $this->ShowNavigation($Page); … … 87 86 '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$this->Encoding.'" />'. 88 87 '<script type="text/javascript" src="'.$this->System->Link('/style/').$this->Style.'/global.js"></script>'. 89 '<title>'.$ this->System->Config['Web']['Title'].' - '.$Path.'</title>';88 '<title>'.$Path.' - '.$this->System->Config['Web']['Title'].'</title>'; 90 89 91 90 // Show page headers … … 133 132 134 133 $Output = $Page->Show(); 135 if ($Page-> ClearPage == false)134 if ($Page->RawPage == false) 136 135 { 137 136 $Output = $this->ShowHeader($Page).$Output.$this->ShowFooter(); -
trunk/Application/Core.php
r903 r912 152 152 if (file_exists($this->ModuleManager->FileName)) $this->ModuleManager->LoadState(); 153 153 if (ModuleSetup::Cast($ModuleSetup)->CheckState()) 154 154 { 155 155 $this->ModuleManager->StartAll(array(ModuleCondition::Enabled)); 156 156 } … … 236 236 return $System; 237 237 } 238 throw new Exception('Expected ModuleSetuptype but '.gettype($System));238 throw new Exception('Expected Core type but '.gettype($System)); 239 239 } 240 240 } … … 245 245 { 246 246 parent::__construct($System); 247 $this->FullTitle = 'Stránka nenalezena'; 248 $this->ShortTitle = 'Stránka nenalezena'; 247 $this->Title = 'Stránka nenalezena'; 249 248 $this->ParentClass = 'PagePortal'; 250 249 }
Note:
See TracChangeset
for help on using the changeset viewer.