diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-10-09 17:49:55 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-10-09 17:49:55 +0200 |
commit | 5698462588066b942d7f8784d06942385db8daa4 (patch) | |
tree | 15e65d68fc7a0c8bbe06143e4d8da23a6b8e8585 /Zotlabs/Render | |
parent | f99c007187b83755d7b1c80c63fde7c1162a99c4 (diff) | |
parent | 23812e5b48b7a4d4f0c275c0fbb3d244a582397c (diff) | |
download | volse-hubzilla-5698462588066b942d7f8784d06942385db8daa4.tar.gz volse-hubzilla-5698462588066b942d7f8784d06942385db8daa4.tar.bz2 volse-hubzilla-5698462588066b942d7f8784d06942385db8daa4.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Render')
-rw-r--r-- | Zotlabs/Render/Comanche.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Render/Comanche.php b/Zotlabs/Render/Comanche.php index d126cb3da..ca664cba6 100644 --- a/Zotlabs/Render/Comanche.php +++ b/Zotlabs/Render/Comanche.php @@ -121,6 +121,11 @@ class Comanche { if($cnt) \App::$layout['theme'] = trim($matches[1]); + $cnt = preg_match("/\[navbar\](.*?)\[\/navbar\]/ism", $s, $matches); + if($cnt) + \App::$layout['navbar'] = trim($matches[1]); + + $cnt = preg_match_all("/\[webpage\](.*?)\[\/webpage\]/ism", $s, $matches, PREG_SET_ORDER); if($cnt) { // only the last webpage definition is used if there is more than one |