diff options
author | friendica <info@friendica.com> | 2014-02-27 20:48:10 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-27 20:48:10 -0800 |
commit | 102521844b3d6f31d0d801b0d0c89241c2c621af (patch) | |
tree | 9e44dc68fdf76640a3f784b1ae872b960d73a413 /include/comanche.php | |
parent | d2bc7c606a6585dc82127717acf2cfe60b45f987 (diff) | |
download | volse-hubzilla-102521844b3d6f31d0d801b0d0c89241c2c621af.tar.gz volse-hubzilla-102521844b3d6f31d0d801b0d0c89241c2c621af.tar.bz2 volse-hubzilla-102521844b3d6f31d0d801b0d0c89241c2c621af.zip |
put schemas in Comanche (this requires theme support (!))
Diffstat (limited to 'include/comanche.php')
-rw-r--r-- | include/comanche.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/comanche.php b/include/comanche.php index f02190ee5..0c81b0ed3 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -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]); |