diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-13 16:45:31 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-13 16:45:31 +0100 |
commit | 0178840c19978cf4b0378609df0bcc004c6d36ae (patch) | |
tree | c8a8bcb86661f6278e9e08439c9621638d387d1e /boot.php | |
parent | d04c73ae0000bcd7cf854a936f25583355e78def (diff) | |
parent | 5d0646c9e1f207fa05fd923bcccd9f5844de2664 (diff) | |
download | volse-hubzilla-0178840c19978cf4b0378609df0bcc004c6d36ae.tar.gz volse-hubzilla-0178840c19978cf4b0378609df0bcc004c6d36ae.tar.bz2 volse-hubzilla-0178840c19978cf4b0378609df0bcc004c6d36ae.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2056,6 +2056,10 @@ function construct_page(&$a) { $a->build_pagehead(); + if($a->page['pdl_content']) { + $a->page['content'] = comanche_region($a,$a->page['content']); + } + // Let's say we have a comanche declaration '[region=nav][/region][region=content]$nav $content[/region]'. // The text 'region=' identifies a section of the layout by that name. So what we want to do here is leave // $a->page['nav'] empty and put the default content from $a->page['nav'] and $a->page['section'] @@ -2070,6 +2074,7 @@ function construct_page(&$a) { call_hooks('construct_page', $arr); $a->layout = $arr['layout']; + foreach($a->layout as $k => $v) { if((strpos($k, 'region_') === 0) && strlen($v)) { if(strpos($v, '$region_') !== false) { |