Add Hello World page
This commit is contained in:
parent
c09e9fe49a
commit
bee365e47c
16 changed files with 18856 additions and 0 deletions
12
onyx/include/public/home.php
Normal file
12
onyx/include/public/home.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
if ($SESS->level < 1)
|
||||
{
|
||||
$page = "public/home";
|
||||
}
|
||||
else
|
||||
{
|
||||
$page = "users/home";
|
||||
}
|
||||
12
onyx/tpl/bootstrap/404.tpl
Normal file
12
onyx/tpl/bootstrap/404.tpl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{extends file="layout.tpl"}
|
||||
{block name=content}
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
{text file="erreurs" path="$err/title"}
|
||||
<small>{text file="erreurs" path="$err/subtitle"}</small>
|
||||
</h1>
|
||||
</div>
|
||||
<p>
|
||||
{text file="erreurs" path="$err/content"}
|
||||
</p>
|
||||
{/block}
|
||||
42
onyx/tpl/bootstrap/layout.tpl
Normal file
42
onyx/tpl/bootstrap/layout.tpl
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{block name=title}Challenge FIC2014{/block}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Bootstrap -->
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||
|
||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../../assets/js/html5shiv.js"></script>
|
||||
<script src="../../assets/js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
|
||||
<meta name="author" content="EPITA Laboratoire SRS">
|
||||
<meta name="robots" content="all">
|
||||
<meta name="language" content="{$smarty.const.LANG}">
|
||||
<meta http-equiv="Content-Language" content="{$smarty.const.LANG}">
|
||||
{block name=head}{/block}
|
||||
</head>
|
||||
<body>{block name=body}
|
||||
{if $ERRmessage}
|
||||
<div class="alert alert-{$ERRcolor}">
|
||||
<button class="close" data-dismiss="alert">×</button>
|
||||
<i class="icon-warning-sign"></i> {$ERRmessage}
|
||||
</div>
|
||||
{/if}
|
||||
{block name=content}{/block}
|
||||
{/block} <hr>
|
||||
|
||||
<footer>
|
||||
<p>© <a href="http://www.fic.com/">FIC</a> 2014</p>
|
||||
</footer>
|
||||
|
||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
6
onyx/tpl/bootstrap/public/home.tpl
Normal file
6
onyx/tpl/bootstrap/public/home.tpl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{extends file="layout.tpl"}
|
||||
{block name=content}
|
||||
<h1>
|
||||
Hello World!
|
||||
</h1>
|
||||
{/block}
|
||||
Reference in a new issue