templates/partials/home/world.html.twig line 1

Open in your IDE?
  1. {% set instagramScriptBlock = get_block('home.instagram_script.block') %}
  2. {% set social =
  3.     [{
  4.         'name': 'facebook',
  5.         'icon': 'facebook',
  6.         'url': 'https://www.facebook.com/artiemhotels/'
  7.     },{
  8.         'name': 'twitter',
  9.         'icon': 'twitter',
  10.         'url': 'https://twitter.com/Artiemhotels'
  11.     },{
  12.         'name': 'youtube',
  13.         'icon': 'youtube',
  14.         'url': 'https://www.youtube.com/user/rtmhotels'
  15.     },{
  16.         'name': 'instagram',
  17.         'icon': 'instagram',
  18.         'url': 'https://www.instagram.com/artiemhotels/?hl=es'
  19.     }]
  20. %}
  21. <section class="main-block home-world home-section is-light">
  22.     <div class="container">
  23.         <div class="main-content lazy-animation">
  24.             {% set block = get_block('home.world.block') %}
  25.             <div class="home-section-edit-inline">
  26.                 {{ full_admin_edit(block, 'edit', {}, 'home-section-edit-inline icon-edit-inline', '', 'esi' ) }}
  27.                 <div class="home-world--logo">
  28.                     {% include 'partials/global/svg/brand-artiem-lovers.svg.twig' %}
  29.                 </div>
  30.                 <div class="main-content--title title-m">{{ block.simpleText }}</div>
  31.                 <div class="main-content--text subtitle-regular">{{ block.content | raw }}</div>
  32.             </div>
  33.             <ul class="home-world--social-links">
  34.                 {% for item in social %}
  35.                 <li>
  36.                     <a class="{{ item.name }}" href="{{ item.url }}" target="_blank">
  37.                         {% include 'partials/global/svg/' ~ item.icon ~ '.svg.twig' %}
  38.                     </a>
  39.                 </li>
  40.                 {% endfor %}
  41.             </ul>
  42.             <div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button" data-action="like" data-size="small" data-show-faces="false" data-share="false"></div>
  43.             {# <div class="home-world--nav">
  44.                 <a href="#" class="previous">
  45.                     {% include 'partials/global/svg/angle-left.svg.twig' %}
  46.                 </a>
  47.                 <a href="#" class="next">
  48.                     {% include 'partials/global/svg/angle-right.svg.twig' %}
  49.                 </a>
  50.             </div> #}
  51.             {# {% include 'partials/home/scroll_button.html.twig' with { 'text': 'app.home.scroll.world'|trans|upper } %} #}
  52.         </div>
  53.         <div class="secondary-content home-world--container">
  54.             {% if instagramScriptBlock.customHtml %}
  55.                 <div class="home-world--instagram-block">
  56.                     {{ instagramScriptBlock.customHtml|raw }}
  57.                 </div>
  58.             {% else %}
  59.             <div class="home-world--background-error">
  60.                 {% set Image = {
  61.                         url: 'img/home/worlderror-background.jpg',
  62.                         alt: '',
  63.                         alternatives: [],
  64.                         height: 826,
  65.                         width: 900
  66.                     } %}
  67.                 <picture-component class="js-picture-component" :image={{Image|json_encode()}}></picture-component>
  68.             </div>
  69.             <script type="text/javascript">
  70.                 var twitterResponse = {{ tweets| json_encode(constant('JSON_UNESCAPED_SLASHES')) | raw }};
  71.             </script>
  72.             {% endif %}
  73.         </div>
  74.     </div>
  75. </section>