templates/site/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html {{ sonata_seo_html_attributes() }}>
  3. <head {{ sonata_seo_head_attributes() }}>
  4.     <!-- Required meta tags -->
  5.     <meta charset="utf-8" />
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  7.     <meta name="google-site-verification" content="VQxeSAT7hZy-DZpyslHlt4A0pmCzmTC22PgiTUzSNds" />
  8.     <meta property="og:image" content="https://benditotrabajo.com/build/backend/images/logo_last.png" />
  9.     {{ sonata_seo_metadatas() }}
  10.     {{ sonata_seo_link_canonical() }}
  11.     {{ sonata_seo_lang_alternates() }}
  12.     <title>
  13.         {{ sonata_seo_title_text() }}
  14.         |
  15.         {% block title %}{% endblock %}
  16.     </title>
  17.     {{ encore_entry_link_tags('app') }}
  18.     {{ encore_entry_link_tags('home') }}
  19.     <style>
  20.         .counter-badge {
  21.             position: absolute;
  22.             left: 10px;
  23.             bottom: 17px;
  24.             border-radius: 50%;
  25.         }
  26.     </style>
  27.     <link rel="icon" href="{{ asset('site/images/favicon.png') }}" />
  28.     <link rel="apple-touch-icon" href="{{ asset('site/images/apple-touch-icon.png') }}" />
  29.     <link rel="apple-touch-icon" sizes="72x72" href="{{ asset('site/images/icon-72x72.png') }}" />
  30.     <link rel="apple-touch-icon" sizes="114x114" href="{{ asset('site/images/icon-114x114.png') }}" /> {% block
  31.     stylesheet %}{% endblock %}{% block headerScript %}{% endblock %}
  32.     <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2667595224207635"
  33.         crossorigin="anonymous"></script>
  34. </head>
  35. <body>
  36.     {% block body %}
  37.     {{ include('site/job/partials/header.html.twig') }}
  38.     {{ include('site/includes/carousel.html.twig') }}
  39.     {% block jobs_list %}{% endblock %}
  40.     <div class="section-padding-top padding-bottom-90">
  41.         <div class="container">
  42.             <div class="row">
  43.                 <div class="col">
  44.                     <div id="company-carousel" class="company-carousel owl-carousel owl-loaded owl-drag"></div>
  45.                 </div>
  46.             </div>
  47.         </div>
  48.     </div>
  49.     <div class="searchAndFilter-wrapper">
  50.         {{ include('site/includes/filters.html.twig') }}
  51.     </div>
  52.     {% endblock %}
  53.     {{ encore_entry_script_tags('app') }}
  54.     {{ include('site/job/partials/footer.html.twig') }}
  55.     {{ include('site/job/partials/scripts.html.twig') }}
  56.     <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
  57.     <script src="{{ asset( 'bundles/fosjsrouting/js/fos_js_routing.js' ) }}"></script>
  58.     {{ encore_entry_script_tags('home') }}
  59.     {% block js %}{% endblock %}
  60.     {{ include('site/utils/flagsBag.html.twig') }}
  61.     <script>
  62.         $(function () {
  63.             $('.post-job').on({
  64.                 mouseenter: function () {
  65.                     $('#help').popover('show')
  66.                 },
  67.                 mouseleave: function () {
  68.                     $('#help').popover('hide')
  69.                 }
  70.             })
  71.         })
  72.     </script>
  73.     {% block scrips %}{% endblock %}
  74.     <script>
  75.         $(document).ready(function () {
  76.             const url = "{{ path('alert_new') }}";
  77.             $('#createAlert').on('click', function (e) {
  78.                 e.preventDefault();
  79.                 const form = $('#alertForm');
  80.                 const email = $('#email').val();
  81.                 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)) {
  82.                     $.ajax({
  83.                         type: "GET",
  84.                         url: url,
  85.                         data: form.serialize(),
  86.                         success: function (response) {
  87.                             if (response.type === 'success') {
  88.                                 $('#response').html(response.message)
  89.                                 $('#response').removeClass('text-warning').addClass('text-success');
  90.                                 $('#email').val('');
  91.                             } else {
  92.                                 $('#response').html(response.message)
  93.                                 $('#response').removeClass('text-success').addClass('text-warning');
  94.                             }
  95.                         }
  96.                     });
  97.                 } else {
  98.                     $('#response').html('El correo no es vĂ¡lido')
  99.                     $('#response').removeClass('text-success').addClass('text-warning');
  100.                 }
  101.             })
  102.         })
  103.     </script>
  104.     <script>
  105.         $(document).ready(function () {
  106.             let count = 0;
  107.             {% if notifications is defined and notifications is not null %}
  108.                   {% for n in notifications %}
  109.                     {% if n.active %} 
  110.                         count++;
  111.                     {% endif %}
  112.                  {% endfor %}
  113.             {% endif %}
  114.             if (count > 0) {
  115.                 $('.counter-badge').html(count)
  116.             }
  117.             $('#mar-all-as-read').on('click', function (e) {
  118.                 e.preventDefault();
  119.                 $.ajax({
  120.                     url: Routing.generate('mark_all_as_read'),
  121.                     success: function (response) {
  122.                         if (response.type === 'success')
  123.                             location.reload();
  124.                     }
  125.                 });
  126.             })
  127.         })
  128.     </script>
  129. </body>
  130. </html>