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

129 lines
6.9 KiB
Twig
Raw Normal View History

2017-02-13 09:56:18 -08:00
{% if form is defined %}
{% form_theme form with [_self, 'form_errors.html.twig'] %}
{% endif %}
2017-05-22 06:00:13 -07:00
{% if app.environment == 'dev' %}
{% set bucket = '' %}
{% else %}
2017-05-05 22:49:54 -07:00
{% set bucket = 'https://storage.googleapis.com/zgluzzkwodfky2m0ytbhmjhmmzqzntq2ngy3ndjmntyxmzg4' %}
2017-05-22 06:00:13 -07:00
{% endif %}
2017-02-10 21:34:31 -08:00
<!DOCTYPE html>
2017-04-26 21:32:43 -07:00
<html lang="en-us">
2017-02-10 21:34:31 -08:00
<head>
2017-04-26 21:32:43 -07:00
<meta charset="utf-8">
<title>{% block title %}{% endblock title %}{% if app.request.requestUri != '/' %} | {% endif %}&hearts; Doughnut Wedding</title>
2017-02-10 21:34:31 -08:00
<meta name="viewport" id="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=10.0,initial-scale=1.0">
2017-05-05 22:49:54 -07:00
<!-- 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') }}" />
2017-04-26 21:32:43 -07:00
<link href="https://fonts.googleapis.com/css?family=Raleway:200,300" rel="stylesheet" />
2017-04-16 16:55:58 -07:00
<link rel="stylesheet" type="text/css" href="{{ asset('css/select2.min.css') }}" />
2017-05-05 22:49:54 -07:00
<link rel="shortcut icon" type="image/png" href="{{ bucket }}/assets/favicon.png" />
<link rel="apple-touch-icon-precomposed" href="{{ bucket }}/assets/favicon.png" />
2017-04-26 21:32:43 -07:00
{% block stylesheets %}{% endblock %}
<script src="{{ asset('js/vendor.min.js') }}" type="text/javascript"></script>
2017-02-10 21:34:31 -08:00
<script src="{{ asset('js/doughnutwedding.min.js') }}" type="text/javascript"></script>
2017-04-26 21:32:43 -07:00
{% block javascripts %}{% endblock %}
2017-02-10 21:34:31 -08:00
</head>
<body>
2017-05-05 22:49:54 -07:00
{% 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 %}
2017-04-26 21:32:43 -07:00
{% block debug %}
{% endblock %}
2017-04-24 12:21:22 -07:00
<div class="uk-offcanvas-content">
2017-02-10 21:34:31 -08:00
2017-04-26 21:32:43 -07:00
<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>
2017-05-05 22:49:54 -07:00
<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>
2017-04-26 21:32:43 -07:00
<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>
2017-04-24 12:21:22 -07:00
<div class="uk-container uk-container-expand uk-hidden@m">
2017-05-05 22:49:54 -07:00
<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>
2017-04-24 12:21:22 -07:00
</div>
<div class="uk-navbar-right">
2017-04-25 15:45:32 -07:00
<a uk-navbar-toggle-icon="" href="#offcanvas" uk-toggle="" class="uk-navbar-toggle uk-hidden@m uk-navbar-toggle-icon uk-icon"></a>
2017-04-24 12:21:22 -07:00
</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">
2017-04-26 21:32:43 -07:00
<div class="uk-logo {% if app.request.requestUri == '/' %}uk-animation-scale-up{% endif %} uk-transform-origin-bottom-center">
2017-05-05 22:49:54 -07:00
{% if app.request.requestUri == '/' %}
2017-04-24 12:21:22 -07:00
<h2 class="uk-text-center">ERIC + KATRINA'S</h2>
2017-05-05 22:49:54 -07:00
{% endif %}
<a href="{{ path('sikofitt_doughnutwedding_default_index') }}"><img class="uk-logo" src="{{ bucket }}/assets/logo.png" /></a>
{% if app.request.requestUri == '/' %}
2017-04-24 12:21:22 -07:00
<h3 class="uk-margin-small-top uk-text-center">MAY 12TH, 2017</h3>
2017-05-05 22:49:54 -07:00
{% endif %}
2017-04-22 12:43:30 -07:00
</div>
2017-05-05 22:49:54 -07:00
</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 %}
2017-02-10 21:34:31 -08:00
{% include 'flash_messages.html.twig' %}
2017-04-24 12:21:22 -07:00
2017-04-26 21:32:43 -07:00
2017-02-10 21:34:31 -08:00
{% block body %}{% endblock %}
2017-04-26 21:32:43 -07:00
2017-04-16 16:55:58 -07:00
{% include "social_login.html.twig" %}
{% block footer %}{% endblock %}
2017-04-24 12:21:22 -07:00
</div>
2017-04-26 21:32:43 -07:00
{% include 'off_canvas.html.twig' %}
2017-02-10 21:34:31 -08:00
</div>
2017-05-05 22:49:54 -07:00
<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>
2017-02-10 21:34:31 -08:00
</body>
</html>