{% set instagramScriptBlock = get_block('home.instagram_script.block') %}
{% set social =
[{
'name': 'facebook',
'icon': 'facebook',
'url': 'https://www.facebook.com/artiemhotels/'
},{
'name': 'twitter',
'icon': 'twitter',
'url': 'https://twitter.com/Artiemhotels'
},{
'name': 'youtube',
'icon': 'youtube',
'url': 'https://www.youtube.com/user/rtmhotels'
},{
'name': 'instagram',
'icon': 'instagram',
'url': 'https://www.instagram.com/artiemhotels/?hl=es'
}]
%}
<section class="main-block home-world home-section is-light">
<div class="container">
<div class="main-content lazy-animation">
{% set block = get_block('home.world.block') %}
<div class="home-section-edit-inline">
{{ full_admin_edit(block, 'edit', {}, 'home-section-edit-inline icon-edit-inline', '', 'esi' ) }}
<div class="home-world--logo">
{% include 'partials/global/svg/brand-artiem-lovers.svg.twig' %}
</div>
<div class="main-content--title title-m">{{ block.simpleText }}</div>
<div class="main-content--text subtitle-regular">{{ block.content | raw }}</div>
</div>
<ul class="home-world--social-links">
{% for item in social %}
<li>
<a class="{{ item.name }}" href="{{ item.url }}" target="_blank">
{% include 'partials/global/svg/' ~ item.icon ~ '.svg.twig' %}
</a>
</li>
{% endfor %}
</ul>
<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>
{# <div class="home-world--nav">
<a href="#" class="previous">
{% include 'partials/global/svg/angle-left.svg.twig' %}
</a>
<a href="#" class="next">
{% include 'partials/global/svg/angle-right.svg.twig' %}
</a>
</div> #}
{# {% include 'partials/home/scroll_button.html.twig' with { 'text': 'app.home.scroll.world'|trans|upper } %} #}
</div>
<div class="secondary-content home-world--container">
{% if instagramScriptBlock.customHtml %}
<div class="home-world--instagram-block">
{{ instagramScriptBlock.customHtml|raw }}
</div>
{% else %}
<div class="home-world--background-error">
{% set Image = {
url: 'img/home/worlderror-background.jpg',
alt: '',
alternatives: [],
height: 826,
width: 900
} %}
<picture-component class="js-picture-component" :image={{Image|json_encode()}}></picture-component>
</div>
<script type="text/javascript">
var twitterResponse = {{ tweets| json_encode(constant('JSON_UNESCAPED_SLASHES')) | raw }};
</script>
{% endif %}
</div>
</div>
</section>