eesyphp/templates/empty.tpl

135 lines
4.4 KiB
Smarty
Raw Normal View History

2020-04-18 00:51:33 +02:00
<!DOCTYPE html>
<html class="h-100" lang="fr">
2020-04-18 00:51:33 +02:00
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<meta name="description" content=""/>
<meta name="author" content=""/>
2020-04-18 00:51:33 +02:00
<base href="{$public_root_url}/"/>
{block name="head"}{/block}
<link rel="icon" href="{static_url path="images/favicon.png"}"/>
2020-04-18 00:51:33 +02:00
<title>{$main_pagetitle}{if $pagetitle} - {$pagetitle}{/if}</title>
<!-- Bootstrap -->
<link href="{static_url path="lib/bootstrap-5.2.3/css/bootstrap.min.css"}" rel="stylesheet"/>
2020-04-18 00:51:33 +02:00
<!-- Font Awesome -->
<link href="{static_url path="lib/Fork-Awesome-1.2.0/css/fork-awesome.min.css"}" rel="stylesheet"/>
2020-04-18 00:51:33 +02:00
2023-03-05 12:30:04 +01:00
<link href="{static_url path="css/app.css"}" rel="stylesheet"/>
{foreach $css as $path}
<link href="{$path|escape:"quotes"}" rel="stylesheet"/>
2020-04-18 00:51:33 +02:00
{/foreach}
</head>
<body {block name="body-attrs"}class="d-flex flex-column h-100"{/block}>
2020-04-18 00:51:33 +02:00
{block name="body"}
{block name="navbar"}
2023-03-08 13:04:33 +01:00
<header>
<nav class="{block name="navbar-class"}navbar navbar-expand-lg{/block}" {block name="navbar-extra-args"}{/block}>
<div class="{block name="navbar-container-class"}container{/block}">
2023-03-05 13:41:55 +01:00
{block name="navbar-brand"}
2023-03-08 13:04:33 +01:00
<a class="navbar-brand me-3" href="#">
<img id="logo" src="{static_url path="images/logo.svg"}" alt="Logo" title="Logo"/>
</a>
2023-03-05 13:41:55 +01:00
{/block}
2023-03-08 13:04:33 +01:00
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar-menu">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
{block name="navbar-menu"}
{/block}
</ul>
2023-03-08 13:04:33 +01:00
{block name="navbar-extra-content"}{/block}
2023-03-08 13:04:33 +01:00
{block name="navbar-user"}
<ul class="navbar-nav text-end">
{if isset($auth_user) && $auth_user}
2023-03-08 13:04:33 +01:00
<li class="nav-item dropdown">
{block name="navbar-user-name"}
<a class="nav-link active dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fa fa-user-circle" aria-hidden="true"></i>
{$auth_user->name|escape:"htmlall"}
</a>
2023-03-08 13:04:33 +01:00
{/block}
{block name="navbar-user-menu"}
<ul class="dropdown-menu text-small">
{block name="navbar-user-menu-content"}{/block}
<li>
<a class="dropdown-item" href="logout">
<i class="fa fa-sign-out"></i> {t domain=$CORE_TEXT_DOMAIN}Sign out{/t}
</a>
</li>
</ul>
{/block}
</li>
{else}
{block name="navbar-login-btn"}
<li class="nav-item">
<a href="login" class="btn btn-sm btn-success">
<i class="fa fa-sign-in"></i> {t domain=$CORE_TEXT_DOMAIN}Log in{/t}
</a>
</li>
{/block}
{/if}
</ul>
2023-03-05 13:41:55 +01:00
{/block}
</div>
</div>
2020-04-18 00:51:33 +02:00
</div>
</header>
2020-04-18 00:51:33 +02:00
{/block}
{block name="main"}
2023-03-08 13:04:33 +01:00
<main class="flex-shrink-0 mt-2">
<div class="container">
{block name="pagetitle"}{if $pagetitle}<h1 class="mt-5">{$pagetitle}</h1>{/if}{/block}
{include file='Tpl:errors.tpl'}
{include file='Tpl:messages.tpl'}
2020-04-18 00:51:33 +02:00
{block name="content"}{/block}
</div>
</main>
{/block}
2020-04-18 00:51:33 +02:00
{block name="footer"}
<footer class="footer mt-auto py-3 bg-light">
<div class="container text-center">
{block name="footer-content"}
<span class="text-muted">
<a href="https://gitea.zionetrix.net/bn8/eesyphp">EesyPHP</a>
</span>
{/block}
</div>
</footer>
2020-04-18 00:51:33 +02:00
{/block}
{/block}
<!-- Jquery & Bootstrap -->
<script src="{static_url path="lib/jquery-3.6.3.min.js"}"></script>
<script src="{static_url path="lib/bootstrap-5.2.3/js/bootstrap.bundle.min.js"}"></script>
<!-- Other libs & JavaScript scripts -->
{foreach $js as $path}
<script language="javascript" src="{$path|escape:"quotes"}"></script>
{/foreach}
{if $webstats_js_code}{$webstats_js_code}{/if}
2020-04-18 00:51:33 +02:00
</body>
</html>
2023-02-15 23:55:36 +01:00
{*
# vim: autoindent expandtab tabstop=2 shiftwidth=2 softtabstop=2
*}