Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function renderTemplate(Plates\Template $template) { |
||
16 | $content = $this->render->renderTemplate($template); |
||
17 | |||
18 | $layout = Plates\Template\getLayout($template); |
||
19 | if (!$layout) { |
||
20 | return $content; |
||
21 | } |
||
22 | |||
23 | Plates\Template\getSections($layout)->add('content', $content); |
||
24 | |||
25 | return $this->renderTemplate($layout); |
||
26 | } |
||
27 | } |
||
28 |