diff --git a/conf/modules.inc.php b/conf/modules.inc.php new file mode 100644 index 0000000..16e30c0 --- /dev/null +++ b/conf/modules.inc.php @@ -0,0 +1,9 @@ + need to have the Module Class at parent with the init function ;) +$modules = []; + +// register controllers that can handle templates ;) need to have a render function for this +$controllers = [ + 'test' => \Modules\Engineers\TestController::class, +]; \ No newline at end of file diff --git a/install/db.sql b/install/db.sql index 3e89174..0039c21 100755 --- a/install/db.sql +++ b/install/db.sql @@ -7,6 +7,14 @@ create table if not exists seoData ) comment 'seo url mapping'; +create table if not exists metaTagData +( + id int(255) auto_increment not null unique primary key, + content JSON not null, + isActive tinyint(1) default 1 null +) + comment 'Meta Tag File'; + create table if not exists language ( id int(255) auto_increment not null unique primary key, @@ -26,4 +34,4 @@ create table if not exists data raw longtext not null, datatype enum ('content', 'form') ) - comment 'DataLoader File'; + comment 'DataLoader File'; \ No newline at end of file diff --git a/public/theme/engineers-dummy/css/base.css b/public/theme/engineers-dummy/css/base.css new file mode 100644 index 0000000..3a5385e --- /dev/null +++ b/public/theme/engineers-dummy/css/base.css @@ -0,0 +1,4 @@ +body { + background-color: #333333; + color: #fff; +} \ No newline at end of file diff --git a/public/theme/engineers-dummy/js/base.js b/public/theme/engineers-dummy/js/base.js new file mode 100644 index 0000000..e69de29 diff --git a/src/Venom/Helper/MetaGenerator.php b/src/Venom/Helper/MetaGenerator.php index e6dd9dd..547c592 100644 --- a/src/Venom/Helper/MetaGenerator.php +++ b/src/Venom/Helper/MetaGenerator.php @@ -10,5 +10,7 @@ namespace Venom\Helper; */ class MetaGenerator { - + //config erweitern, dass die Klasse ausgeschaltet werden kann + //ArgumentHandler muss die SEO-Urls mit der ID von der metaData gefüttert werden + // } \ No newline at end of file diff --git a/src/modules/Engineers/TestController.php b/src/modules/Engineers/TestController.php new file mode 100644 index 0000000..999e031 --- /dev/null +++ b/src/modules/Engineers/TestController.php @@ -0,0 +1,29 @@ +addCSS('base', 'base.css'); + return true; + } + + public function getTemplate(): string + { + return 'base'; + } +} \ No newline at end of file diff --git a/tpl/engineers-dummy/base.php b/tpl/engineers-dummy/base.php new file mode 100644 index 0000000..4208bda --- /dev/null +++ b/tpl/engineers-dummy/base.php @@ -0,0 +1,30 @@ +getLang(); +?> + + +includeTemplate("header/head"); +?> + +
+ getTranslation("HEADLINE") ?> +
+
+

Mami ich mag dich

+ getTranslation("TEST_TRANSLATION"); + echo $this->templateData; + ?> +
+ +renderJS(); +?> + + \ No newline at end of file diff --git a/tpl/engineers-dummy/header/head.php b/tpl/engineers-dummy/header/head.php new file mode 100644 index 0000000..b299005 --- /dev/null +++ b/tpl/engineers-dummy/header/head.php @@ -0,0 +1,17 @@ + + + + + + + Engineers Dummy + renderCSS(); + ?> + +