Commit 1e587326 authored by Mat's avatar Mat

twig, mise en place de base->layout, css et js

parent 5087774d
......@@ -2,12 +2,21 @@
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
{% block stylesheets %}{% endblock %}
<link rel="stylesheet" type="text/css" href="{{ asset('css/style.css') }}">
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
{% block body %}{% endblock %}
<body id="{% block bodyParam %}{% endblock %}">
{% block layout %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>
{% extends 'base.html.twig' %}
{% extends '@Potage/layout.html.twig' %}
{% block title %}
Hello Potage!
{% endblock %}
{% block body %}
<h2>Hello Potage!</h2>
{{ block('breadcrumb') }}
<h1>{{ block('title') }}</h1>
<p>post webhook test 2</p>
{% endblock %}
{% extends "base.html.twig" %}
{% block title %}
Application Potage
{% endblock %}
{% block stylesheets %}{% endblock %}
{% block bodyParam %}{{ app.request.get('_route')|replace({'potage_': ''}) }}{% endblock %}
{% block layout %}
<header id="header">
<div class="container">
{% block header %}
<div class="accueil">
<h1>Agence Touris</h1>
<h3>la dernière chance du moment</h3>
</div>
<nav id="mainnav">
<ul>
<li class="{{ app.request.get('_route') == 'potage_homepage' ? 'active' }}">
<a href="{{ path('potage_homepage') }}">
Accueil
</a>
</li>
</ul>
</nav>
{% endblock %}
</div>
</header>
<div id="content">
<div class="container">
{% block body %}
<aside>
{% block sidebar %}
<h3>Albums</h3>
<ul>
<li class="{{ app.request.get('_route') == 'potage_legume_read' ? 'active' }}">
<a href="{{ path('potage_legume_read') }}">
<i class="fas fa-users"></i> Les légumes
</a>
</li>
</ul>
{% endblock %}
</aside>
<section>
{% block content %}
{% block breadcrumb %}
<span class="breadcrumb">
<i class="fas fa-caret-right fa-xs fa-fw"></i>
<a href="{{ path('potage_homepage') }}">Accueil</a>
<i class="fas fa-caret-right fa-xs fa-fw"></i>
<a href="">{{ block('title') }}</a>
</span>
{% endblock %}
<h1>{{ block('title') }}</h1>
{% endblock %}
</section>
{% endblock %}
<br class="clearfix" />
</div>
</div>
{% block hero %}{% endblock %}
<footer id="footer">
<div class="container">
{% block footer %}
<a href="http://mathieu.actic.be">Tchama</a> 2018 —
propulsé par <a href="https://symfony.com/doc/current/index.html" target="_blank">Symfony 3</a>
habillé avec <a href="https://twig.symfony.com/doc/2.x/" target="_blank">Twig</a>
<a href="">Admin Potage</a>
{% endblock %}
</div>
</footer>
{% block javascripts %}
<script src="{{ asset('js/script.js') }}"></script>
{% endblock %}
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment