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.

This commit is contained in:
friendica 2014-03-01 17:49:28 -08:00
parent c402f39cf8
commit 247cb85c94

View File

@ -57,6 +57,10 @@ function comanche_parser(&$a,$s) {
if($cnt) if($cnt)
$a->page['template'] = trim($matches[1]); $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); $cnt = preg_match("/\[theme=(.*?)\](.*?)\[\/theme\]/ism", $s, $matches);
if($cnt) { if($cnt) {