matrix/network page under Comanche cont.

This commit is contained in:
friendica 2013-12-10 00:58:58 -08:00
parent 0043ef66b6
commit 65e4fa3dcb
2 changed files with 4 additions and 0 deletions

View File

@ -1872,6 +1872,7 @@ function construct_page(&$a) {
if($comanche) {
foreach($a->layout as $k => $v) {
logger('layout: ' . $k . ' ' . strlen($v));
if((strpos($k,'region_') === 0) && strlen($v)) {
if(strpos($v,'$region_') !== false) {
$v = preg_replace_callback('/\$region_([a-zA-Z0-9]+)/ism','comanche_replace_region',$v);
@ -1887,6 +1888,7 @@ function construct_page(&$a) {
}
$a->page[substr($k,7)] = $v;
}
}
}

View File

@ -1,3 +1,4 @@
[region=nav]$nav[/region]
[region=aside]
[widget=collections][/widget]
[widget=archive][/widget]
@ -6,3 +7,4 @@
[widget=filer][/widget]
[widget=notes][/widget]
[/region]
[region=section]$content[/region]