From d908f53607512b8bfa3fbf65cb6fc9623fab5c63 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 2 Aug 2018 22:49:30 -0700 Subject: add app_options field --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 17fe7e54e..6f34717b8 100755 --- a/boot.php +++ b/boot.php @@ -54,7 +54,7 @@ define ( 'STD_VERSION', '3.7.1' ); define ( 'ZOT_REVISION', '6.0a' ); -define ( 'DB_UPDATE_VERSION', 1216 ); +define ( 'DB_UPDATE_VERSION', 1217 ); define ( 'PROJECT_BASE', __DIR__ ); -- cgit v1.2.3 From 8e9d076216a364beecf57574134fb36c12be6e6f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sat, 4 Aug 2018 13:50:49 -0700 Subject: ability for addons to create .pdl files and load them automatically --- boot.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 6f34717b8..316e86758 100755 --- a/boot.php +++ b/boot.php @@ -2093,6 +2093,8 @@ function load_pdl() { if((! $s) && (($p = theme_include($n)) != '')) $s = @file_get_contents($p); + elseif(file_exists('addon/'. App::$module . '/' . $n)) + $s = @file_get_contents('addon/'. App::$module . '/' . $n); if($s) { App::$comanche->parse($s); App::$pdl = $s; -- cgit v1.2.3 From aeb9d5cd90a3bcb79c8d0b1645ece47e8756f422 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 5 Aug 2018 23:19:33 -0700 Subject: create alter_pdl hook --- boot.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 316e86758..fca184555 100755 --- a/boot.php +++ b/boot.php @@ -2072,8 +2072,8 @@ function load_pdl() { if (! count(App::$layout)) { $arr = [ - 'module' => App::$module, - 'layout' => '' + 'module' => App::$module, + 'layout' => '' ]; /** * @hooks load_pdl @@ -2095,6 +2095,14 @@ function load_pdl() { $s = @file_get_contents($p); elseif(file_exists('addon/'. App::$module . '/' . $n)) $s = @file_get_contents('addon/'. App::$module . '/' . $n); + + $arr = [ + 'module' => App::$module, + 'layout' => $s + ]; + call_hooks('alter_pdl',$arr); + $s = $arr['layout']; + if($s) { App::$comanche->parse($s); App::$pdl = $s; -- cgit v1.2.3