templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale }}">
  3. <head>
  4.   <meta charset="UTF-8"/>
  5.   <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  6.   <title>{% block title %}Home{% endblock %} | My WowEnglish</title>
  7.   <!-- Mobile Specific Metas -->
  8.   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
  9.   <meta name="keywords" content="english,mywowenglish,mywow,wowenglish,wow,children,english app,my wow!,wow! english">
  10.   <meta name="description" content="English app for children to learn english in a fun and natural way. For individuals or schools.">
  11.   <meta name="author" content="SMWORKS digital agency">
  12.   {% block robots %}
  13.     {% if app.environment == 'dev' %}
  14.       <meta name="robots" content="noindex, nofollow">
  15.     {% else %}
  16.       <meta name="robots" content="follow">
  17.     {% endif %}
  18.   {% endblock %}
  19.   <!-- Favicons -->
  20.   <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-touch-icon.png') }}">
  21.   <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
  22.   <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
  23.   <link rel="manifest" href="{{ asset('site.webmanifest') }}">
  24.   <link rel="mask-icon" href="{{ asset('safari-pinned-tab.svg') }}" color="#5bbad5">
  25.   <meta name="msapplication-TileColor" content="#da532c">
  26.   <meta name="theme-color" content="#ffffff">
  27.   <!-- Google login -->
  28.   <meta name="google-signin-client_id" content="117352827191-selo80jeqf3q417k4lutas06h1c7s87q.apps.googleusercontent.com">
  29.   {% set is_admin = app.user and is_granted('ROLE_EDITOR') %}
  30.   <!-- Styles -->
  31.   {% block stylesheets %}
  32.     {{ encore_entry_link_tags('app') }}
  33.     <link rel="stylesheet" href="https://1907427404.rsc.cdn77.org/cookieconsent/cookieconsent.css">
  34.   {% endblock %}
  35.   {% if app.environment == 'prod' %}
  36.     {% if dataLayer is defined %}
  37.       <script>
  38.         window.dataLayer = window.dataLayer || [];
  39.         dataLayer.push({{ dataLayer|json_encode|raw }});
  40.       </script>
  41.     {% endif %}
  42.     <!-- Google Tag Manager -->
  43.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  44.           new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  45.         j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  46.         'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  47.       })(window,document,'script','dataLayer','GTM-KFQNW5R');</script>
  48.     <!-- End Google Tag Manager -->
  49.     <!-- Cookie consent -->
  50.     <script type="application/javascript" src="https://1907427404.rsc.cdn77.org/cookieconsent/cookieconsent.js" async></script>
  51.   {% endif %}
  52. </head>
  53. <body{% if body_class is defined %} class="{{ body_class }}"{% endif %}>
  54. {% if app.environment == 'prod' %}
  55.   <!-- Google Tag Manager (noscript) -->
  56.   <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KFQNW5R"
  57.                     height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  58.   <!-- End Google Tag Manager (noscript) -->
  59. {% endif %}
  60. <div id="fb-root"></div>
  61. {% block body %}{% endblock %}
  62. <!-- Footer -->
  63. <footer class="page-footer font-small teal">
  64.   <!-- Copyright -->
  65.   <div class="footer-copyright text-center py-3">
  66.     © {{ 'now'|date('Y') }} Copyright:
  67.     <a href="https://www.smworks.cz/" target="_blank">SMW Startups s.r.o.</a> |
  68.     <a href="/assets/documents/VOP_{{ app.request.getLocale() }}.pdf" target="_blank">{{ 'terms.and.conditions'|trans }}</a> |
  69.     <a href="{{ 'privacy.policy.link'|trans }}" target="_blank">{{ 'privacy.policy'|trans }}</a>
  70.   </div>
  71. </footer>
  72. <!-- JavaScripts -->
  73. {% block javascripts %}
  74.   {{ encore_entry_script_tags('app') }}
  75.   <script nonce="{{ app_nonce() }}">
  76.     $(document).ready(function () {
  77.       $('.dropdown-toggle').dropdown()
  78.     })
  79.   </script>
  80.   <!-- Apple SDK -->
  81.   <script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script>
  82.   <!-- Google SDK -->
  83.   <script src="https://apis.google.com/js/platform.js" async defer nonce="{{ app_nonce() }}"></script>
  84.   <!-- Facebook SDK -->
  85.   <script nonce="{{ app_nonce() }}">
  86.     window.fbAsyncInit = function() {
  87.       FB.init({
  88.         appId            : '{{ constant('App\\Controller\\FacebookController::APP_ID') }}',
  89.         autoLogAppEvents : true,
  90.         xfbml            : true,
  91.         version          : '{{ constant('App\\Controller\\FacebookController::GRAPH_VERSION') }}'
  92.       });
  93.     };
  94.     (function(d, s, id){
  95.       let js, fjs = d.getElementsByTagName(s)[0];
  96.       if (d.getElementById(id)) {return;}
  97.       js = d.createElement(s); js.id = id;
  98.       js.src = "https://connect.facebook.net/en_US/sdk.js";
  99.       fjs.parentNode.insertBefore(js, fjs);
  100.     }(document, 'script', 'facebook-jssdk'));
  101.   </script>
  102. {% endblock %}
  103. </body>
  104. </html>