doughnut-wedding/app/Resources/views/base.html.twig

74 lines
3.6 KiB
Twig

{% if form is defined %}
{% form_theme form with [_self, 'form_errors.html.twig'] %}
{% endif %}
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>{% block title %}{% endblock title %}{% if app.request.requestUri != '/' %} | {% endif %}&hearts; Doughnut Wedding</title>
<meta name="viewport" id="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=10.0,initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="{{ asset('css/doughnutwedding.min.css') }}" />
<link href="https://fonts.googleapis.com/css?family=Raleway:200,300" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="{{ asset('css/select2.min.css') }}" />
<link rel="shortcut icon" type="image/png" href="{{ asset('/images/favicon.png') }}" />
<link rel="apple-touch-icon-precomposed" href="{{ asset('/images/favicon.png') }}" />
{% block stylesheets %}{% endblock %}
<script src="{{ asset('js/vendor.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('js/doughnutwedding.min.js') }}" type="text/javascript"></script>
{% block javascripts %}{% endblock %}
</head>
<body>
{% block debug %}
{% if app.request.requestUri != '/' %}
{# dump(app.request.requestUri) #}
{% endif %}
{% endblock %}
<div class="uk-offcanvas-content">
<div class="uk-login-container uk-container uk-container-expand uk-visible@m uk-position-top-right">
<nav class="uk-navbar uk-navbar-container uk-navbar-transparent" uk-navbar>
<div class="uk-navbar-right uk-responsive-width">
<ul class="uk-navbar-nav">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<li><a href="{{ path('fos_user_profile_show') }}">{{ app.user.name }}</a></li>
<div class="uk-navbar-item">|</div>
<li><a class="" href="{{ path('fos_user_security_logout') }}" title="Logout">Logout</a></li>
{% else %}
<li><a class="" href="{{ path('fos_user_security_login') }}" title="Login">Login</a></li>
{% endif %}
</ul>
</div>
</nav>
</div>
<div class="uk-container uk-container-expand uk-hidden@m">
<nav class="uk-navbar">
<div class="uk-navbar-left uk-responsive-width">
<a class="uk-transform-origin-center-left {% if app.request.requestUri == '/' %}uk-animation-scale-up{% endif %}" href="{{ path('sikofitt_doughnutwedding_default_index') }}"><img src="{{ asset('images/logo.png') }}" /></a>
</div>
<div class="uk-navbar-right">
<a uk-navbar-toggle-icon="" href="#offcanvas" uk-toggle="" class="uk-navbar-toggle uk-hidden@m uk-navbar-toggle-icon uk-icon"></a>
</div>
</nav>
</div>
<div class="uk-container-small uk-container uk-margin-medium-top uk-margin-medium-bottom">
<div class="uk-visible@m uk-responsive-width uk-width-3-4 uk-align-center">
<div class="uk-logo {% if app.request.requestUri == '/' %}uk-animation-scale-up{% endif %} uk-transform-origin-bottom-center">
<h2 class="uk-text-center">ERIC + KATRINA'S</h2>
<a href="{{ path('sikofitt_doughnutwedding_default_index') }}"><img class="uk-logo" src="{{ asset('images/logo.png') }}" /></a>
<h3 class="uk-margin-small-top uk-text-center">MAY 12TH, 2017</h3>
</div>
</div>
{% include 'flash_messages.html.twig' %}
{% block body %}{% endblock %}
{% include "social_login.html.twig" %}
{% block footer %}{% endblock %}
</div>
{% include 'off_canvas.html.twig' %}
</div>
</body>
</html>