diff --git a/public/theme/default/css/test.css b/public/theme/default/css/test.css index 047290a..cfed392 100644 --- a/public/theme/default/css/test.css +++ b/public/theme/default/css/test.css @@ -8,9 +8,6 @@ html, body { color: #fff; background-color: #333; font-family: sans-serif; - display: flex; - justify-content: center; - align-items: center; height: 100vh; width: 100vw; } diff --git a/src/Venom/Core/Language.php b/src/Venom/Core/Language.php index eeeba39..edcb0ba 100644 --- a/src/Venom/Core/Language.php +++ b/src/Venom/Core/Language.php @@ -53,9 +53,6 @@ class Language if (!isset($this->languages[$this->language])) { return $key; } - if (isset($this->languages[$this->language][$key])) { - return $this->languages[$this->language][$key]; - } - return $key; + return $this->languages[$this->language][$key] ?? $key; } } \ No newline at end of file diff --git a/src/Venom/Views/Asset.php b/src/Venom/Views/Asset.php index 843f44a..77305d4 100644 --- a/src/Venom/Views/Asset.php +++ b/src/Venom/Views/Asset.php @@ -61,7 +61,7 @@ class Asset usort($this->jsFiles, function ($a, $b) { return $a['pos'] <=> $b['pos']; }); - $theme = $this->getPath('/theme/' . Config::getInstance()->getRenderer()['theme'] . '/js/'); + $theme = $this->getPath('/theme/' . Config::getInstance()->getRenderer()->theme . '/js/'); foreach ($this->jsFiles as $key => $file) { echo ''; } diff --git a/src/modules/TestController.php b/src/modules/TestController.php index b526fc8..87dbc0f 100644 --- a/src/modules/TestController.php +++ b/src/modules/TestController.php @@ -25,6 +25,6 @@ class TestController implements RenderController public function getTemplate(): string { - return 'base.php'; + return 'base'; } } \ No newline at end of file diff --git a/tpl/default/base.php b/tpl/default/base.php index d8c6d1c..3cdc019 100644 --- a/tpl/default/base.php +++ b/tpl/default/base.php @@ -20,12 +20,15 @@ $lang = $reg->getLang();
- getTranslation("HEADLINE")?> + getTranslation("HEADLINE") ?>
- + getTranslation("TEST_TRANSLATION"); echo $this->templateData; -?> + ?> + + renderJS(); ?>