alternate navbar layouts

This commit is contained in:
zotlabs
2017-10-08 16:48:24 -07:00
parent 52b1ea10a1
commit 4011dd18f0
7 changed files with 325 additions and 12 deletions

View File

@@ -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