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

126 lines
6.8 KiB
Twig

{% if form is defined %}
{% form_theme form with [_self, 'form_errors.html.twig'] %}
{% endif %}
{% set bucket = 'https://storage.googleapis.com/zgluzzkwodfky2m0ytbhmjhmmzqzntq2ngy3ndjmntyxmzg4' %}
<!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">
<!-- Android -->
<meta name="theme-color" content="#f7a59d" />
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#9dd3d5" />
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#9dd3d5" />
<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="{{ bucket }}/assets/favicon.png" />
<link rel="apple-touch-icon-precomposed" href="{{ bucket }}/assets/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>
{% if app.request.requestUri == path('sikofitt_doughnutwedding_default_index') %}
<div class="uk-preload">
<div class="our-story"></div>
<div class="photo-gallery"></div>
</div>
{% endif %}
{% block debug %}
{% 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('sikofitt_doughnutwedding_gallery_upload') }}" title="Upload a wedding photo">Upload a photo</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 uk-margin-small-top">
<div class="uk-navbar-left uk-width-medium">
<a class="{% if app.request.requestUri == path('sikofitt_doughnutwedding_default_index') %}uk-animation-slide-left{% endif %}" href="{{ path('sikofitt_doughnutwedding_default_index') }}"><img src="{{ bucket }}/assets/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">
{% if app.request.requestUri == '/' %}
<h2 class="uk-text-center">ERIC + KATRINA'S</h2>
{% endif %}
<a href="{{ path('sikofitt_doughnutwedding_default_index') }}"><img class="uk-logo" src="{{ bucket }}/assets/logo.png" /></a>
{% if app.request.requestUri == '/' %}
<h3 class="uk-margin-small-top uk-text-center">MAY 12TH, 2017</h3>
{% endif %}
</div>
</div>{% set currentUrl = app.request.requestUri %}
{% if currentUrl != path('sikofitt_doughnutwedding_default_index') %}
<div class="uk-navigation-container uk-container uk-container-expand uk-visible@m">
<nav class="uk-navbar uk-navbar-container uk-navbar-transparent" uk-navbar>
<div class="uk-navbar-center uk-width-expand uk-margin-medium-bottom">
<ul class="uk-navbar-nav uk-doughnut-main-nav uk-child-width-1-5 uk-width-1-1">
<li class="{% if currentUrl == path('sikofitt_doughnutwedding_default_ourstory') %}uk-active{% endif %}">
<a href="{{ path('sikofitt_doughnutwedding_default_ourstory') }}" title="Our Story">Our Story</a>
</li>
<li class="{% if currentUrl == path('fos_user_profile_edit') %}uk-active{% endif %}">
<a href="{{ path('fos_user_profile_edit') }}" title="RSVP">RSVP</a>
</li>
<li class="{% if currentUrl == path('sikofitt_doughnutwedding_gallery_index') %}uk-active{% endif %}">
<a href="{{ path('sikofitt_doughnutwedding_gallery_index') }}" title="Photos!">Photo Gallery</a>
</li>
<li class="{% if currentUrl == path('sikofitt_doughnutwedding_default_location') %}uk-active{% endif %}">
<a href="{{ path('sikofitt_doughnutwedding_default_location') }}" title="Location">Location</a>
</li>
<li class="{% if currentUrl == path('sikofitt_doughnutwedding_default_contact') %}uk-active{% endif %}">
<a href="{{ path('sikofitt_doughnutwedding_default_contact') }}" title="Get In Touch">Get In Touch</a>
</li>
</ul>
</div>
</nav>
</div>
{% endif %}
{% include 'flash_messages.html.twig' %}
{% block body %}{% endblock %}
{% include "social_login.html.twig" %}
{% block footer %}{% endblock %}
</div>
{% include 'off_canvas.html.twig' %}
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-98404954-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>