From 875d2d71dbecf17088016ca573a45665482cfbc9 Mon Sep 17 00:00:00 2001 From: Lang Date: Sun, 11 Dec 2016 15:10:25 +0100 Subject: [PATCH] add google analytics and facebook scripts && improve url share method w/ fb && enforce https in prod --- app/Resources/views/base.html.twig | 27 +++++++++++++-- app/config/config.yml | 3 ++ app/config/config_dev.yml | 4 +++ app/config/config_prod.yml | 4 +++ app/config/routing.yml | 3 ++ app/config/routing_dev.yml | 1 + .../Resources/views/layout.html.twig | 29 ++++++++++++++-- .../Resources/public/css/style.mineseeker.css | 34 ++++++------------- .../Resources/public/js/mine-seeker/app.js | 32 ++++++++++++++--- .../Resources/views/Game/index.html.twig | 2 +- .../Resources/views/Game/play.html.twig | 8 +++++ 11 files changed, 113 insertions(+), 34 deletions(-) diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 6d97104..92cee5d 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -3,11 +3,31 @@ + {% block metas %}{% endblock %} {% block title %}Welcome!{% endblock %} {% block stylesheets %}{% endblock %} + + +
{% block header %}{% endblock %}
@@ -22,9 +42,12 @@ +
+ {% if app.request.hasPreviousSession %} {% for type, messages in app.session.flashbag.all() %} {% for message in messages %} @@ -42,9 +62,12 @@