From 888bf76e4b4c2d4285c0bb28334df6e9af884e16 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 12 Nov 2015 17:47:38 -0800 Subject: allow pdl content --- boot.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index f9b826bb7..390560592 100755 --- a/boot.php +++ b/boot.php @@ -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) { -- cgit v1.2.3