templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     {% block meta %}
  5.         {% set uri =  app.request.uri %}
  6.         <meta charset="UTF-8">
  7.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8.         <!-- Meta Pixel Code -->
  9.             <script>
  10.             !function(f,b,e,v,n,t,s)
  11.             {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  12.             n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  13.             if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  14.             n.queue=[];t=b.createElement(e);t.async=!0;
  15.             t.src=v;s=b.getElementsByTagName(e)[0];
  16.             s.parentNode.insertBefore(t,s)}(window, document,'script',
  17.             'https://connect.facebook.net/en_US/fbevents.js');
  18.             fbq('init', '1547501902380553');
  19.             fbq('track', 'PageView');
  20.             </script>
  21.             <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1547501902380553&ev=PageView&noscript=1"/></noscript>
  22.             <!-- End Meta Pixel Code -->
  23.         <meta property="og:site_name" content="triwu_u">
  24.         {%if (uri|slice(uri|length -8, 8)=="product/") %}
  25.             <meta property="og:image" itemprop="image" content="{{ absolute_url(asset('build/images/logo.png')) }}">
  26.         {% endif %}
  27.         <meta property="og:type" content="website" />
  28.         <meta property="og:url" content="{{uri}}" />
  29.         <meta property="fb:app_id" content="1140827673514308"/>
  30.         {% set meta_title = get_meta_title(app.request.uri) %}
  31.         {% set meta_description = get_meta_description(app.request.uri) %}
  32.         {% if meta_title is not null%}
  33.             <meta name="title" content="{{ meta_title }}" />
  34.         {% endif %}
  35.         {% if meta_description is not null%}
  36.             <meta name="description" content="{{ meta_description }}" />
  37.         {% endif %}
  38.     {% endblock meta %}
  39.     <title>
  40.         {% block title %}triwu_u
  41.         {% endblock %}
  42.     </title>
  43.     <link rel="icon" href="{{ asset('build/images/favicon.png') }}">
  44.     {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  45.     {% block stylesheets %}
  46.     {{ encore_entry_link_tags('app') }}
  47.     {% endblock stylesheets %}
  48.     <div class="js-translations" data-translations="{{ loadTranslations()|json_encode()|e('html_attr') }}"></div>
  49.     {% block javascripts %}
  50.     <script type='text/javascript'>
  51.         var requestLanguage = "{{ app.request.locale }}";
  52.     </script>
  53.     {{ encore_entry_script_tags('app') }}
  54.     {% endblock javascripts %}
  55.     <!-- Google Tag Manager -->
  56.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  57.     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  58.     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  59.     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  60.     })(window,document,'script','dataLayer','GTM-5Z94GW2');</script>
  61.     <!-- End Google Tag Manager -->
  62. </head>
  63. <body>
  64.     {% block menu %}
  65.         {% include 'components/header/header.html.twig' %}
  66.     {% endblock menu %}
  67.     {% block body %}
  68.     <main class="{% block mainClass %}{% endblock %}">
  69.         <div class="row">
  70.             <div class="col">
  71.                 <div id="flashMessages">
  72.                     {% include '_base_flashes.html.twig' %}
  73.                 </div>
  74.             </div>
  75.         </div>
  76.         {% block login %}
  77.         <section class="grid tablet:grid-cols-2">
  78.             <div class="hidden tablet:block login-bg bg-shadow-50">
  79.                 <img src="{{ asset('build/images/index_rrss.png') }}" class="object-cover w-full h-full" />
  80.             </div>
  81.             <div class="p-edge">
  82.                 <div class="text-center flex items-center justify-center min-h-[75vh] desktop:max-w-lg mx-auto">
  83.                     {% block index_left_card_body %}
  84.                     <div class="container">
  85.                         <div class="row">
  86.                             <h1 class="h5">{{ 'general.logintitle'|trans }}</h1>
  87.                         </div>
  88.                         <div class="mt-5 row">
  89.                             <div class="gap-2 mx-auto d-grid col-md-8">
  90.                                 <a class="btn btn--md btn--primary btn-rrss text-sm desktop:text-lg" href="{{ path('app_register') }}">
  91.                                     <img alt="triwu_u sign-in" src="{{asset('build/images/triwuu_sign_in_logo.svg')}}" />
  92.                                     {{ 'general.register.email'|trans }}
  93.                                 </a>
  94.                                 <a class="btn btn-outline-dark btn-rrss text-sm desktop:text-lg" href="{{ path('connect_google') }}">
  95.                                     <img alt="Google sign-in" src="{{asset('build/images/google_sign_in_logo.svg')}}" />
  96.                                     {{ 'general.register.google'|trans }}
  97.                                 </a>
  98.                                 <a class="btn btn-outline-dark btn-rrss-fb text-sm desktop:text-lg" href="{{ path('connect_facebook') }}">
  99.                                     <img alt="Facebook sign-in"
  100.                                         src="{{asset('build/images/facebook_sign_in_logo.svg')}}" />
  101.                                     {{ 'general.register.facebook'|trans }}
  102.                                 </a>
  103.                                 <p class="mt-5 fw-bold text-uppercase"><a class="text-dark"
  104.                                         href="{{ path('app_login') }}">{{ 'general.loginhere'|trans }}</a></p>
  105.                             </div>
  106.                         </div>
  107.                     </div>
  108.                     {% endblock index_left_card_body %}
  109.                 </div>
  110.             </div>
  111.         </section>
  112.         {% endblock login %}
  113.         {% block content %}
  114.         {% endblock content %}
  115.     </main>
  116.     {% endblock body %}
  117.     <!-- Modal -->
  118.     {# 
  119.     <div class="pt-4 modal modal-app fade bg-modal-img" id="boardingModal" tabindex="-1" aria-labelledby="boardingModalLabel"
  120.         data-firsttime="{% if(app.user and app.user.isOnBoarding == true) %}true{% else %}false{%endif%}"
  121.         aria-hidden="true">
  122.         <div class="mx-auto modal-dialog modal-dialog-centered md:p-5" style="width: 45vh;">
  123.             <div class="p-2 border-0 shadow modal-content">
  124.                 <div class="mb-4 border-0 row">
  125.                     <div class="col">
  126.                         <div
  127.                             class="top-0 bg-white position-absolute start-50 translate-middle rounded-circle img-tw-ob">
  128.                             <img src="{{asset('build/images/img-onboarding.png')}}" class="p-2 bg-transparent border-0"
  129.                                 alt="MINIATURA ONBOARDING">
  130.                         </div>
  131.                     </div>
  132.                 </div>
  133.                 <div class="row">
  134.                     <div class="px-2 d-flex justify-content-center">
  135.                         <video id="onboardingVideo" src="{{ asset('build/images/video-onboarding.mp4') }}" controls class="p-3 mw-100">
  136.                             {{ 'general.video_format.unsupported'|trans }}
  137.                         </video>
  138.                     </div>
  139.                 </div>
  140.                 <div class="row">
  141.                     <div class="py-2 col-lg-12 text-end sticky-bottom">
  142.                         <button type="button" class="btn btn-secondary" id="dismissBoardingButton"
  143.                             data-bs-dismiss="modal">{{ 'general.skiptutorial'|trans }}</button>
  144.                     </div>
  145.                 </div>
  146.             </div>
  147.         </div>
  148.     </div>
  149.     #}
  150.     {% block footer %}
  151.         {% include 'components/footer/footer.html.twig' %}
  152.     {% endblock footer %}
  153.     {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
  154.     {% if not app.user and currentPath not in [
  155.         '/login-rrss',
  156.         '/register',
  157.         '/register-rrss',
  158.         '/check-register-rrss',
  159.         '/quienes-somos',
  160.         '/login',
  161.         '/reset-password',
  162.         '/reset-password/check-email',
  163.         '/reset-password/reset'   
  164.     ] %}
  165.         {% import 'components/modals/login.html.twig' as login %}
  166.         {{ login.create() }}
  167.     {% endif %}
  168.     {% import 'components/modals/modal-triwers-offer.html.twig' as triwersModal %}
  169.     {{ triwersModal.create() }}
  170.     {% import 'components/modals/modal-countdown.html.twig' as countDownModal %}
  171.     {{ countDownModal.create() }}
  172.  {% import 'components/modals/modal-buying-groups.html.twig' as buyingGroupsModal %}
  173.     {{ buyingGroupsModal.create() }}
  174.     {% if app.environment == 'prod' %}
  175.     <!-- Chatra {literal} -->
  176.     <script>
  177.             window.ChatraSetup = {
  178.                 colors: {
  179.                     buttonText: '#ECFDF4',
  180.                     buttonBg: '#31D29E'
  181.                 }
  182.             };
  183.             (function(d, w, c) {
  184.                 w.ChatraID = 'S9LS9puhpWQPcjvDH';
  185.                 var s = d.createElement('script');
  186.                 w[c] = w[c] || function() {
  187.                     (w[c].q = w[c].q || []).push(arguments);
  188.                 };
  189.                 s.async = true;
  190.                 s.src = 'https://call.chatra.io/chatra.js';
  191.                 if (d.head) d.head.appendChild(s);
  192.             })(document, window, 'Chatra');
  193.     </script>
  194.     <!-- /Chatra {/literal} -->
  195.     {% endif %}
  196. </body>
  197. </html>