From 247cb85c94c0214c6d60158e0429931a2f8479a0 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 1 Mar 2014 17:49:28 -0800 Subject: it's unfortunate that we use the term "layout" to refer both to a template file and to Comanche .PDL files. I think we should probably refer to the template file as "template" just to avoid confusion. For the moment we'll provide both, since the 'layout' is already in the wild. But please use "template" going forward. --- include/comanche.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/comanche.php b/include/comanche.php index 0c81b0ed3..3cf5e72a5 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -57,6 +57,10 @@ function comanche_parser(&$a,$s) { if($cnt) $a->page['template'] = trim($matches[1]); + $cnt = preg_match("/\[template\](.*?)\[\/template\]/ism", $s, $matches); + if($cnt) + $a->page['template'] = trim($matches[1]); + $cnt = preg_match("/\[theme=(.*?)\](.*?)\[\/theme\]/ism", $s, $matches); if($cnt) { -- cgit v1.2.3