put schemas in Comanche (this requires theme support (!))

This commit is contained in:
friendica
2014-02-27 20:48:10 -08:00
parent d2bc7c606a
commit 102521844b
6 changed files with 92 additions and 73 deletions

View File

@@ -57,6 +57,13 @@ function comanche_parser(&$a,$s) {
if($cnt)
$a->page['template'] = trim($matches[1]);
$cnt = preg_match("/\[theme=(.*?)\](.*?)\[\/theme\]/ism", $s, $matches);
if($cnt) {
$a->layout['schema'] = trim($matches[1]);
$a->layout['theme'] = trim($matches[2]);
}
$cnt = preg_match("/\[theme\](.*?)\[\/theme\]/ism", $s, $matches);
if($cnt)
$a->layout['theme'] = trim($matches[1]);