| @@ 1311-1317 (lines=7) @@ | ||
| 1308 | elseif ($this->cnt_templates == 1) { |
|
| 1309 | return $this->getParsedTemplate($this->templates[0]); |
|
| 1310 | } // No dependencies, but more than one => return all parsed templates in an array |
|
| 1311 | else { |
|
| 1312 | for ($i = 0; $i < $this->cnt_templates; ++$i) { |
|
| 1313 | $arr[$this->templates[$i]] = $this->getParsedTemplate($this->templates[$i]); |
|
| 1314 | } |
|
| 1315 | ||
| 1316 | return $arr; |
|
| 1317 | } |
|
| 1318 | } |
|
| 1319 | } |
|
| 1320 | ||
| @@ 1346-1351 (lines=6) @@ | ||
| 1343 | elseif ($this->cnt_templates == 1) { |
|
| 1344 | echo $this->getParsedTemplate($this->templates[0]); |
|
| 1345 | } // parse and display them all |
|
| 1346 | else { |
|
| 1347 | $templates = $this->getParsedTemplate(); |
|
| 1348 | for ($i = 0; $i < $this->cnt_templates; ++$i) { |
|
| 1349 | echo $templates[$this->templates[$i]]; |
|
| 1350 | } |
|
| 1351 | } |
|
| 1352 | } |
|
| 1353 | } |
|
| 1354 | ||