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
2023-12-07 14:07:15 -05:00

37 lines
829 B
PHP

<?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();
?>
</body>
</html>