File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed
Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ protected function createTemplate(): Template
2323 final protected function getTemplateFile (?string $ template = null ): string
2424 {
2525 if (!$ template ) {
26- $ template = static ::DEFAULT_TEMPLATE ;
26+ $ template = self ::DEFAULT_TEMPLATE ;
2727 }
2828 $ file = (string )$ this ->getReflection ()->getFileName ();
29- return dirname ($ file ) . " /templates/ $ template.latte " ;
29+ return sprintf ( ' %s/templates/%s.latte ' , dirname ($ file ), $ template) ;
3030 }
3131
3232}
Original file line number Diff line number Diff line change 55use App \Model \Services \Search \Search ;
66use App \Model \UI \AbstractPresenter ;
77use App \Model \UI \Destination ;
8- use App \Model \Webpack \Entries ;
98use App \Modules \Front \Base \Controls \FlashMessages \FlashMessagesComponent ;
109use App \Modules \Front \Base \Controls \Layout \Footer \FooterComponent ;
1110use App \Modules \Front \Base \Controls \Layout \Header \HeaderComponent ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function render(): void
2020 ->template
2121 ->setParameters (
2222 [
23- 'heading ' =>'Subscribe to our newsletter ' ,
23+ 'heading ' => 'Subscribe to our newsletter ' ,
2424 ]
2525 )->render ();
2626 }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public function render(): void
1616 $ this ->template ->setParameters (
1717 [
1818 'home ' => $ this ->presenter ->link (':Front:Home: ' ),
19- 'menu ' => $ this ->links ()
19+ 'menu ' => $ this ->links (),
2020 ]
2121 )->render ();
2222 }
Original file line number Diff line number Diff line change 77class Control extends BaseRenderControl
88{
99
10-
1110 public function render (string $ content , string $ type = 'h2 ' ): void
1211 {
1312 $ this ->template ->setParameters (['content ' => $ content , 'type ' => $ type ])->render ();
You can’t perform that action at this time.
0 commit comments