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:
parent
c402f39cf8
commit
247cb85c94
@ -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) {
|
||||
|
Reference in New Issue
Block a user