templates/front/base/base.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.session.get('lang') == 'si' ? 'sl' : app.session.get('lang') }}">
  3. {% block head %}
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>{% block meta_title %}{{'home.meta.title'|trans }}{% endblock %}</title>
  7. {% if constant('IS_MOBILE') %}
  8. <meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no;" name="viewport">
  9. <meta content="True" name="HandheldFriendly">
  10. <meta content="320" name="MobileOptimized">
  11. {% else %}
  12. <meta name="SKYPE_TOOLBAR" content ="SKYPE_TOOLBAR_PARSER_COMPATIBLE"/>
  13. {% endif %}
  14. <meta name="description" content="{% block meta_description %}{% endblock %}">
  15. <meta name="keywords" content="{% block meta_keywords %}{{ legacy_trans('comprar a precio mayorista, oferta dropshipping, venta al por mayor, productos a precio mayorista, dropshipping', 'Controller')|addslashes }}{% endblock %}">
  16. {% if metas is defined %}
  17. <meta property="og:title" content="{% block meta_title_fb %}{% endblock %}" />
  18. <meta property="og:type" content="website" />
  19. <meta property="og:image" content="{% block meta_image_fb %}{% endblock %}" />
  20. <meta property="og:url" content="{% block current_url %}{{ base_url }}{% endblock %}" />
  21. <meta property="og:description" content="{% block meta_description_fb %}{% endblock %}" />
  22. <meta property="og:site_name" content="{{ block('meta_title') }}" />
  23. {% endif %}
  24. {% if is_staging or app.environment == 'dev' %}
  25. <meta name="robots" content="noindex,nofollow">
  26. {% endif %}
  27. {% include 'front/base/js_head.html.twig' %}
  28. {% block link_rel_alternate %}
  29. {% if languages is defined %}
  30. {% for lang in languages %}
  31. <link rel="alternate" href="{{ lang.url }}" hreflang="{% if lang.isoCodeReal is not empty %}{{ lang.isoCodeReal }}{% else %}{{ lang.isoCode }}{% endif %}" />
  32. {% endfor %}
  33. {% endif %}
  34. {% endblock %}
  35. {% block link_rel_canonical %}{% endblock %}
  36. {% block stylesheets %}
  37. <link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,400italic,700|Roboto:400,500,700,300,400italic,700italic&subset=latin,cyrillic-ext,cyrillic,latin-ext,greek-ext,greek' rel='stylesheet' type='text/css'>
  38. <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
  39. {% if not constant('IS_MOBILE') %}
  40. <link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
  41. {% endif %}
  42. <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.js"></script>
  43. {{ encore_entry_link_tags('bigbuy-ui-css') }}
  44. {{ encore_entry_link_tags('bigbuy-ui') }}
  45. <link rel="stylesheet" href="{{ base_url_img }}/public/css/{{ constant('IS_MOBILE') ? 'mobile.css?tmp=202208030944' : 'front.css?tmp=202208030944' }}">
  46. <link rel="stylesheet" href="{{ base_url_img }}/public/css/magnific-popup.css">
  47. <link rel="stylesheet" href="{{ base_url_img }}/public/css/lightbox.css" type="text/css" media="screen" />
  48. <link rel="stylesheet" href="{{ base_url_img }}/public/fontawesome/css/all.min.css" type="text/css" media="screen" />
  49. {% endblock %}
  50. {% block js_head %}
  51. {% include 'front/base/js_vwo.html.twig' %}
  52. {# Didomi scripts #}
  53. {% include 'front/base/didomi_scripts.html.twig' %}
  54. {% include 'front/base/empathy_scripts.html.twig' %}
  55. {% endblock %}
  56. </head>
  57. {% endblock %}
  58. <body>
  59. {% block header %}
  60. {{ render(controller('App\\Controller\\Front\\HeaderController::corporateHeader', { parentController: app.request.get('_controller'), uri: app.request.uri })) }}
  61. {% endblock %}
  62. {% block content %}{% endblock %} {# TODO if is old browser, show message #}
  63. {{ render(controller('App\\Controller\\Front\\FooterController::footer')) }}
  64. <script src="https://kit.fontawesome.com/d852f36c8f.js"></script>
  65. {% include 'include/cms/notification_dialog.html.twig' %}
  66. {% block js_footer %}
  67. {% include 'front/base/footer/js_footer.html.twig' %}
  68. {% endblock %}
  69. {% block javascript %}
  70. {# Carga de scripts al final de la web #}
  71. {% endblock %}
  72. <div class="scroll-locker"></div>
  73. </body>
  74. </html>