matrix/network page under Comanche cont.
This commit is contained in:
parent
0043ef66b6
commit
65e4fa3dcb
2
boot.php
2
boot.php
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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]
|
Reference in New Issue
Block a user