diff --git a/Conjuro/Config.php b/Conjuro/Config.php index 8af977d..0720ce9 100644 --- a/Conjuro/Config.php +++ b/Conjuro/Config.php @@ -16,9 +16,6 @@ // Site defaults "site-title"=>"Conjuro", - "default-layout"=>"default", - "default-header"=>"#header", - "default-footer"=>"#footer", "bootusers"=>[["Admin","Admin3"]], // Comment on production "debug"=>true ]; diff --git a/Conjuro/Conjuro.php b/Conjuro/Conjuro.php index b9d2439..c999a6d 100644 --- a/Conjuro/Conjuro.php +++ b/Conjuro/Conjuro.php @@ -267,9 +267,7 @@ } public function render($meta=null,$data=null){ - echo "
"; $this->renderControl($meta,$data); - echo "
"; } abstract protected function renderControl($meta,$data); diff --git a/admin/index.php b/admin/index.php new file mode 100644 index 0000000..2a1d7b5 --- /dev/null +++ b/admin/index.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/content/controls/common.php b/content/controls/common.php index 9dd05bc..b595a53 100644 --- a/content/controls/common.php +++ b/content/controls/common.php @@ -8,6 +8,11 @@ echo $meta["html"]; } }, + new class("img") extends Control{ + protected function renderControl($meta,$data) { + echo ''; + } + }, new class("builder") extends Control{ protected function renderControl($meta,$data) { include "Conjuro/Builder.php"; diff --git a/content/fragment/layout-admin.php b/content/fragment/layout-admin.php new file mode 100644 index 0000000..2160a96 --- /dev/null +++ b/content/fragment/layout-admin.php @@ -0,0 +1,14 @@ + + + + <?=$this->conf("site-title")?> + + + + +
showContent("body");?>
+ + + \ No newline at end of file diff --git a/content/fragment/layout.php b/content/fragment/layout.php index 3198fd1..ea032f1 100644 --- a/content/fragment/layout.php +++ b/content/fragment/layout.php @@ -1,13 +1,13 @@ - - <?=$this->value("title")?> - + + <?=$this->conf("site-title")?> + - -
showContent("body");?>
-