widget/page: apply nested placeholders
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 3 Dec 2020 21:57:06 +0000 (22:57 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 19 Dec 2020 02:01:43 +0000 (03:01 +0100)
Similar to article rendering added in commit v3.5-16-g9e9882d6f2
(2018-08-07) [nieuws: replace placeholders in article contents].

widget/page.php

index 10c3a2d46d85661c0fb8e6189e90a802bedd8340..7304739e4fc2443b369f73382a87df5ada41ee24 100644 (file)
@@ -1,2 +1,5 @@
 <?php
-include ".{$Page->path}.html";
+$article = new ArchiveArticle(".{$Page->path}.html");
+ob_start();
+print $article->raw;
+print $article->render();