This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
crispage-lite/patch/core/templates/default/layouts/default.php

39 lines
865 B
PHP
Raw Permalink Normal View History

2023-12-07 14:07:15 -05:00
<?php
$com_head = $this->app->page->createComponent(
"\\Crispage\\Components\\HeadTagsComponent",
["render" => ["title", "metas", "links", "scripts", "styles"]]
);
?>
<!DOCTYPE html>
<html lang="<?php echo $this->app->i18n->getLanguage(); ?>" dir="<?php echo $this->app->i18n->getDirection(); ?>">
<head>
<?php $this->app->page->renderComponent($com_head); ?>
<style>
html {
background: #7f7f7f;
}
body {
background: #ffffff;
font-family: monospace;
width: 100%;
max-width: 960px;
margin: 20px auto;
padding: 10px;
}
</style>
</head>
<body>
<?php
$com_msgs = $this->app->page->createComponent(
"\\Crispage\\Components\\MessagesComponent", []
);
$this->app->page->renderComponent($com_msgs);
$this->app->page->renderMainComponent();
2023-12-07 17:10:41 -05:00
echo "<p>v" . VERSION . "</p>";
2023-12-07 14:07:15 -05:00
?>
</body>
</html>