php__symfony__book/templates/base.html.twig

36 lines
1.1 KiB
Twig

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Test application{% endblock %}</title>
{% block stylesheets -%}
<link rel="stylesheet" href="{{ absolute_url(asset('styles/app.css')) }}" />
{% endblock %}
</head>
<body>
<div id="sidebar">
{% block sidebar %}
{# Note: asset() is only available with composer require asset #}
<img src="{{ asset('images/wikimedia.jpeg') }}" class="logo" alt="Logo Wikimedia" />
<ul>
<li><a href="{{ path('front') }}">Home</a></li>
<li><a href="{{ url('blog_list') }}">Blog</a></li>
</ul>
{% endblock %}
</div>
<div id="messages">
{% for message in app.flashes('info') %}
<div class="flash-info">
{{ message }}
</div>
{% endfor %}
</div>
<div id="content">
{% block body %}{% endblock %}
</div>
{% block javascripts %}{% endblock %}
</body>
</html>