templates/Layout/includes/head.html.twig line 1

Open in your IDE?
  1. <meta charset="UTF-8">
  2. <script>_config = {};</script>
  3. <meta name="format-detection" content="telephone=no"/>
  4. <link rel="apple-touch-icon" sizes="152x152" href="/static/img/favicons/apple-touch-icon-152x152.png">
  5. <link rel="apple-touch-icon" sizes="180x180" href="/static/img/favicons/apple-touch-icon-180x180.png">
  6. <link rel="icon" type="image/png" href="/static/img/favicons/favicon-32x32.png" sizes="32x32">
  7. <link rel="icon" type="image/png" href="/static/img/favicons/android-chrome-192x192.png" sizes="192x192">
  8. <link rel="icon" type="image/png" href="/static/img/favicons/favicon-96x96.png" sizes="96x96">
  9. <link rel="manifest" href="/manifest.json">
  10. <link rel="mask-icon" href="/static/img/favicons/safari-pinned-tab.svg">
  11. {% if pimcore_placeholder('backgroundImage') != "" and pimcore_placeholder('backgroundImageMobile') != "" %}
  12.     <link fetchpriority="high" rel="preload" href="{{ pimcore_placeholder('backgroundImageMobile') }}" as="image" media="(max-width:767px)">
  13.     <link fetchpriority="high" rel="preload" href="{{ pimcore_placeholder('backgroundImage') }}" as="image" media="(min-width:768px)">
  14. {% endif %}
  15. <script data-cookieconsent="ignore">
  16.     window.onload = function() {
  17.         var image = document.getElementById('CybotCookiebotDialogPoweredbyImage');
  18.         if(image){
  19.             image.setAttribute('width', '100');
  20.             image.setAttribute('height', '100');
  21.         }
  22.     };
  23. </script>
  24. {#<meta name="theme-color" content="#78BB32">#}
  25. {{ pimcore_head_link() }}
  26. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  27. {{ include('Layout/includes/css.html.twig') }}
  28. {{ pimcore_head_script() }}
  29. {{ elements_criticalJs('/static/js/critical.js') }}
  30. <script>
  31.     _wishlists = [{
  32.         activeIds: [{{ activeWishlistIds|default([])|join(',') }}],
  33.         wishlistName: "default-wishlist",
  34.         routeAdd: "{{ url('add-to-wishlist', {'documentId':document.id})|raw }}",
  35.         routeRemove: "{{ url('remove-from-wishlist', {'documentId': document.id })|raw }}",
  36.     }, {
  37.         activeIds: [{{ activePressDossiersWishlistIds|default([])|join(',') }}],
  38.         wishlistId: "press-dossiers",
  39.         wishlistName: "press-dossiers",
  40.         routeAdd: "{{ url('pressdossiers-wishlist-add', {'documentId': document.id })|raw }}",
  41.         routeRemove: "{{ url('pressdossiers-wishlist-remove', {'documentId': document.id })|raw }}",
  42.     }, {
  43.         activeIds: [{{ activePressArticlesWishlistIds|default([])|join(',') }}],
  44.         wishlistId: "press-articles",
  45.         wishlistName: "press-articles",
  46.         routeAdd: "{{ url('pressarticle-wishlist-add', {'documentId': document.id })|raw }}",
  47.         routeRemove: "{{ url('pressarticle-wishlist-remove', {'documentId': document.id })|raw }}",
  48.     }, {
  49.         activeIds: [{{ activePressPicturesWishlistIds|default([])|join(',') }}],
  50.         wishlistName: "press-pictures",
  51.         wishlistId: "press-pictures",
  52.         routeAdd: "{{ url('pressimage-wishlist-add', {'documentId': document.id }) }}",
  53.         routeRemove: "{{ url('pressimage-wishlist-remove', {'documentId': document.id })|raw }}",
  54.     }, {
  55.         activeIds: [{{ app.request.session.get('pressAlbumWishlistIds', [])|join(',') }}],
  56.         wishlistName: "press-album",
  57.         wishlistId: "press-album",
  58.         routeAdd: "{{ url('pressalbum-wishlist-add', {'ajax': 1, 'documentId': document.id })|raw }}",
  59.         routeRemove: "{{ url('pressalbum-wishlist-remove', {'documentId': document.id })|raw }}",
  60.     }, {
  61.         activeIds: [{{ app.request.session.get('pressAlbumItemsWishlistIds', [])|join(',') }}],
  62.         wishlistName: "press-album-item",
  63.         wishlistId: "press-album-item",
  64.         routeAdd: "{{ url('pressalbum-item-wishlist-add', {'documentId': document.id })|raw }}",
  65.         routeRemove: "{{ url('pressalbum-item-wishlist-remove', {'documentId': document.id })|raw }}"
  66.     },
  67.     {
  68.         activeIds: [{{ app.request.session.get('pressMediaAssetsWishlistIds', [])|join(',') }}],
  69.         wishlistName: "press-media-asset",
  70.         wishlistId: "press-media-asset",
  71.         routeAdd: "{{ url('press-media-asset-item-wishlist-add', {'documentId': document.id })|raw }}",
  72.         routeRemove: "{{ url('press-media-asset-item-wishlist-remove', {'documentId': document.id })|raw }}",
  73.     }];
  74. </script>
  75. {#{% if pimcore_placeholder('add-hashcash-script').value %}#}
  76. {#    <script src="/bundles/elementshashcash/js/hashCash.js"></script>#}
  77. {#{% endif %}#}