diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-08 16:48:24 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-08 16:48:24 -0700 |
commit | 4011dd18f01d275620b13815573e359c77664e3a (patch) | |
tree | 3ee8037618ec387eb7bff2ae8cbccbb113439bee /Zotlabs/Render | |
parent | 52b1ea10a1ef4ccec67b4248155651626ec24b44 (diff) | |
download | volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.tar.gz volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.tar.bz2 volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.zip |
alternate navbar layouts
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 |