@!
Hubzilla Development While working with a new theme it happens that the layout defined in pdl for a different theme conflicts with the way i use regions in my theme, so i decided to use custom regions names so if a person has defined a custom layout in say '
redbasic' it won't affect my theme. But this turned out to not work because only three region names are supported in
pdleditgui.php like:
function get_regions($pdl) {
$ret = [];
$supported_regions = ['aside', 'content', 'right_aside'];
$cnt = preg_match_all("/\[region=(.*?)\](.*?)\[\/region\]/ism", $pdl, $matches, PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
if (!in_array($mtch[1], $supported_regions)) {
continue;
}
$ret[$mtch[1]] = self::parse_region($mtch[2]);
}
}
return $ret;
}
Is there any reason why this is hardcoded and if this removing this restriction would break any functionality?