Changeset 63 for trunk/Modules/Dance/Dance.php
- Timestamp:
- Aug 3, 2021, 11:20:41 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 nbproject2 Config.php3 1 .settings 4 2 .project 5 3 .buildpath 4 .htaccess
-
- Property svn:ignore
-
trunk/Modules/Dance/Dance.php
r55 r63 1 1 <?php 2 2 3 class ModuleDance extends AppModule3 class ModuleDance extends Module 4 4 { 5 5 function __construct($System) … … 15 15 } 16 16 17 function Start() 18 { 19 $this->System->RegisterPage( 'tance', 'PageDanceList');20 $this->System->RegisterPage( 'tanec', 'PageDance');21 $this->System->RegisterPage( 'figura', 'PageDanceFigure');22 $this->System->RegisterPage( 'figury', 'PageDanceFigureList');23 $this->System->RegisterMenuItem('/tance', 'Tance');24 $this->System->RegisterMenuItem('/figury', 'Figury');25 } 17 function Start(): void 18 { 19 $this->System->RegisterPage(['tance'], 'PageDanceList'); 20 $this->System->RegisterPage(['tanec'], 'PageDance'); 21 $this->System->RegisterPage(['figura'], 'PageDanceFigure'); 22 $this->System->RegisterPage(['figury'], 'PageDanceFigureList'); 23 Core::Cast($this->System)->RegisterMenuItem('/tance', 'Tance'); 24 Core::Cast($this->System)->RegisterMenuItem('/figury', 'Figury'); 25 } 26 26 } 27 27 … … 31 31 { 32 32 parent::__construct($System); 33 $this->FullTitle = 'Tanec'; 34 $this->ShortTitle = 'Tanec'; 35 } 36 37 function Show() 38 { 39 $this->Title = 'Tanec - Tance - '.$this->Title; 33 $this->Title = 'Tanec'; 34 } 35 36 function Show(): string 37 { 40 38 $Output = ''; 41 39 if (count($this->System->PathItems) > 1) … … 101 99 $Output .= '</td>'; 102 100 }*/ 103 101 104 102 return $Output; 105 103 } … … 111 109 { 112 110 parent::__construct($System); 113 $this->FullTitle = 'Tance'; 114 $this->ShortTitle = 'Tance'; 115 } 116 117 function Show() 118 { 119 $this->Title = 'Tance - '.$this->Title; 111 $this->Title = 'Tance'; 112 } 113 114 function Show(): string 115 { 120 116 $Output = '<div class="title">Tance</div>'; 121 117 $Output .= '<table class="WideTable">'; … … 141 137 { 142 138 parent::__construct($System); 143 $this->FullTitle = 'Taneční figura'; 144 $this->ShortTitle = 'Figura'; 145 } 146 147 function Show() 148 { 149 $this->Title = 'Taneční figura - Tance - '.$this->Title; 139 $this->Title = 'Figura'; 140 $this->Description = 'Taneční figura'; 141 } 142 143 function Show(): string 144 { 150 145 $Output = ''; 151 146 if (count($this->System->PathItems) > 1) … … 196 191 $Output .= '</td>'; 197 192 }*/ 198 193 199 194 return $Output; 200 195 } … … 206 201 { 207 202 parent::__construct($System); 208 $this->FullTitle = 'Tance'; 209 $this->ShortTitle = 'Tance'; 210 } 211 212 function Show() 213 { 214 $this->Title = 'Tance - '.$this->Title; 203 $this->Title = 'Figury'; 204 $this->Description = 'Taneční figury'; 205 } 206 207 function Show(): string 208 { 215 209 $Output = '<div class="title">Taneční figury</div>'; 216 210 $Output .= '<table class="WideTable">';
Note:
See TracChangeset
for help on using the changeset viewer.