<commit_before>{% extends ':Frontend:layout_two_column.html.twig' %}

{% block title %}{{ 'Portal title'|trans }}{% endblock %}

{% block page_header_title %}{{ 'Portal title'|trans }}{% endblock %}

{% block body_class %}index-main{% endblock %}

{% block sub_header %} 
    <section class="index-block index-museum-block clearfix">
        {# <h2><a href="{{ path('armd_museum_virtual') }}">{{ "Museums"|trans }}</a></h2> #}

        <div class="plitka-one-wrap plitka-one-wrap-opened">
            <div class="plitka-one clearfix">
                <div class="museum-image-container">
                    <div class="museum-image" style="background-image:url({% path museum.bannerImage, 'banner' %});"></div>
                    <div class="museum-image-over">
                        <div class="museum-image-title clearfix"><span>ГОСУДАРСТВЕННЫЙ ИСТОРИЧЕСКИЙ МУЗЕЙ</span></div>
                        <div class="museum-image-text-wrap">
                            <a href="#" class="museum-town">Москва</a>
                            <a class="museum-image-link vob iframe" href="{{ museum.url }}" data-fancybox-type="iframe">
                                <span class="museum-image-text">
                                    {{ "visit_museum"|trans|raw }}
                                </span>
                            </a>
                            <a href="#instruction" class="museum-instr-link">
                                {{ "manual_instruction"|trans|raw }}
                            </a>
                        </div>
                        <div class="museum-image-image"></div>
                    </div>
                </div>
            </div>

            <div id="instruction" style="display:none;">
                <div class="window">
                    <div class="block window-content">
                        {% include 'ArmdMuseumBundle:Default:instruction.'~app.request.locale~'.html.twig' %}
                    </div>
               </div>
            </div>
        </div>
    </section>

{% endblock %}

{% block left_column %}
    <section class="block new-on-site">
        {#
        <h1><span>{{ "Mainpage block.New on portal"|trans }}</span></h1>
        <section class="index-block clearfix index-russia-images-block">
            <h2><a href="{{ path('armd_atlas_russia_images') }}">{{ "Mainpage block.Images of Russia.Title"|trans }}</a></h2>
            {% include 'ArmdMainBundle:Homepage:new_russia_images.html.twig' with {'objects': newRussiaImages} %}
            <p class="all"><a href="{{ path('armd_atlas_russia_images') }}">{{ "Mainpage block.Images of Russia.All"|trans }}</a></p>
        </section>
        #}
        {% if app.request.locale == 'ru' %}
            <section class="index-block two-column-block clearfix index-news-block">
                <section class="index-block">
                    {% set newsCategoryHref = path('armd_news_list_index_by_category', {'category': 'reportages'}) %}
                    {% set newsArticleHref = path('armd_news_item_by_category', {'id': lastReportage.id, 'category': lastReportage.category.slug }) %}
                    <h2><a href="{{ newsCategoryHref }}">Статьи</a></h2>
                    <a href="{{ newsArticleHref }}">
                        {% thumbnail lastReportage.image, 'list' with {'class': 'block-left-image', 'height': 'auto'} %}
                        {#<img class="block-left-image" alt=""~ src="{{ newsArticleHref. }}">#}
                    </a>

                    <div class="text-overflow">
                        <a class="two-column-name" href="{{ newsArticleHref }}">{{ lastReportage.title|raw }}</a>
                        <p>{{ lastReportage.announce|striptags|truncate(200)|raw }}</p>
                        <p class="all"><a href="{{ newsCategoryHref }}">все статьи</a></p>
                    </div>
                </section>

                <section class="index-block">
                    {% set newsCategoryHref = path('armd_news_list_index_by_category', {'category': 'interviews'}) %}
                    {% set newsArticleHref = path('armd_news_item_by_category', {'id': lastInterview.id, 'category': lastInterview.category.slug }) %}

                    <h2><a href="{{ newsCategoryHref }}">Интервью</a></h2>
                    <a href="{{ newsArticleHref }}">
                        {% thumbnail lastInterview.image, 'list' with {'class': 'block-left-image', 'height': 'auto'} %}
                        {#<img class="block-left-image" alt="" src="images/index-interview.jpg">#}
                    </a>

                    <div class="text-overflow">
                        <a class="two-column-name" href="{{ newsArticleHref }}">{{ lastInterview.title }}</a>
                        <p>{{ lastInterview.announce|striptags|truncate(200)|raw }}</p>
                        <p class="all"><a href="{{ newsCategoryHref }}">все интервью</a></p>
                    </div>
                </section>
            </section>
        </section>
    {% endif %}

    {% if app.request.locale == 'ru' %}
        <section class="index-block index-video-block clearfix">
            <h2><a href="{{ path('armd_lecture_cinema_index') }}">Кинозал</a></h2>
            {#
            <div id="video-list">
                 {% include 'ArmdMainBundle:Homepage:new_video.html.twig' with {'videos': newVideos} %}
            </div>
            #}

<!-- static sample -->
<div id="video-list">
<ul class="slides index-video-list" style="width:606px; margin-left:auto; margin-right:auto;">
<li>
<div class="index-video-one">
<a href="http://culture.ru/lecture/view/576">
<div class="cinema-top100-icon"></div>
<div class="index-video-image">
<img height="auto" alt="Курьер" width="auto" class="lecture-tile-list-image" src="http://culture.ru/ru/uploads/media/lecture/0001/13/thumb_12283_lecture_lectureW160H120.png">            
</div>
</a>
<a href="http://culture.ru/lecture/view/576" class="index-video-name">Курьер</a>
<span class="index-video-info">Мосфильм, 1986</span>
</div>
</li>

<li>
<div class="index-video-one">
<a href="http://culture.ru/lecture/view/600">
<div class="cinema-top100-icon"></div>
<div class="index-video-image">
<img height="auto" alt="Земля" width="auto" class="lecture-tile-list-image" src="http://culture.ru/ru/uploads/media/lecture/0001/13/thumb_12632_lecture_lectureW160H120.jpeg">            
</div>
</a>
<a href="http://culture.ru/lecture/view/600" class="index-video-name">Земля</a>
<span class="index-video-info">Всеукраинское фотокиноуправление, 1930</span>
</div>
</li>

<li>
<div class="index-video-one">
<a href="http://culture.ru/lecture/view/577">
<div class="cinema-top100-icon"></div>
<div class="index-video-image">
<img height="auto" alt="Летят журавли" width="auto" class="lecture-tile-list-image" src="http://culture.ru/ru/uploads/media/lecture/0001/13/thumb_12284_lecture_lectureW160H120.png">            
</div>
</a>
<a href="http://culture.ru/lecture/view/577" class="index-video-name"><NAME></a>
<span class="index-video-info">Мосфильм, 1957</span>
</div>
</li>
</ul>
</div>
<!-- /static sample -->

            <p class="all"><a href="{{ path('armd_lecture_cinema_index') }}">Все видео</a></p>
        </section>
    {% endif %}

    </section>
{% endblock %}


{% block right_column %}
    <span class="helper-top-orange-line"></span>
    <section id="homepage-online-translation">
        {% render 'ArmdOnlineTranslationBundle:Default:homepageWidget' %}
    </section>
    
    {% include "ArmdMainBundle:Homepage:news_tabs.html.twig" %}

{% endblock %}

{% block wide_body %}
<!-- begin-->
    <div class="index-map">
        <div class="bar bar-top"></div>
        <div class="bar bar-right"></div>
        <div class="bar bar-bottom"></div>
        <div class="bar bar-left"></div>
        <div id="map"></div>
        <div class="map-lister scrollblock">
            <div class="scrollblock-content">
                <div class="map-lister-image"><a href="#"><img src="http://culture.ru/ru/uploads/media/atlas/0001/13/thumb_12210_atlas_atlasW613.jpeg" /></a></div>
                <div class="map-lister-overflow">
                    <div class="map-lister-title"><h3><a href="#">Кирилло-Белозерский монастырь</a></h3></div>
                    <div class="map-lister-text">Кирилло-Белозерский монастырь был основан в конце ХIV столетия на землях бывшего Белозерского княжества, потерявшего к тому времени независимость и ставшего уделом с<NAME>. Основатель Успенского, впоследствии</div>
                </div>
                <p class="all"><a href="#">подробнее</a></p>
            </div>
            <div class="scrollblock-buttons clearfix"><a class="scrollblock-a scrollblock-left"></a><a class="scrollblock-a scrollblock-right"></a></div>
        </div><!-- /map-lister -->
    </div>

    <!-- Асинхронная загрузка jsapi -->
    <div id="script_block" class="script_block"></div>
    <div id="script_ad" class="script_ad" style="display:none;">
        <script type="text/javascript" charset="utf-8" src="http://js.tmcrussia.com/map.js?{{ progorod_api_key }}&version=0.1.10"></script>
        {# <script type="text/javascript" charset="utf-8" src="http://jsapi.murzina.jsdev.tmcrussia.com/?{{ progorod_api_key }}&version=0.1.10"></script> #}
    </div>
    <script type="text/javascript">
        document.getElementById('script_block').appendChild(document.getElementById('script_ad'));
        document.getElementById('script_ad').style.display = 'block';
    </script>
    <!-- /Асинхронная загрузка jsapi -->
<!-- /end -->
{% endblock %}

{% block after_body %}
<div class="right-column" style="padding-top:38px;">
    <section class="newspaper newspaper-culture"><a href="{{ path('armd_paper_edition', {'slug': 'archive'}) }}" title='{{ "menu.culture_magazine"|trans }}'></a></section>
    <section class="newspaper newspaper-literature"><a href="{{ path('armd_paper_edition', {'slug': 'litnews'}) }}" title='{{ "menu.literature_magazine"|trans }}'></a></section>
{#
{% if app.request.locale == 'ru' %}
    <a href="http://www.yandex.ru/?add=126758&from=promocode" target="_blank" class="read-yandex">
        <img src="{{ asset('img/read_yandex.jpg') }}">
    </a>
    <section id="homepage-social-widgets">
        {% include 'ArmdMainBundle:Homepage:facebook_likebox.html.twig' %}
        {% include 'ArmdMainBundle:Homepage:vkontakte_likebox.html.twig' %}
    </section>
    
    <section id="homepage-polls">
        <h3><span>Опрос</span></h3>
        {% render url('armd_poll_poll') %}
    </section>

{% endif %}
#}
</div><!-- /right-column -->
<div class="left-column">
    <div class="left-column-content">
        <section class="block new-on-site">
            {% if app.request.locale == 'ru' %}
                <section class="block social-widget-block">
                    {% render url("armd_main_latest_topics", {"domain": "people.culture.ru"}) %}
                </section>
                <section class="block twitter-widget-block">
                    {% include 'ArmdMainBundle:Homepage:twitter_widget.html.twig' %}
                </section>
            {% endif %}
        </section>
    </div>
</div><!-- /left-column -->
{% endblock %}

{% block stylesheets %}
    {{ parent() }}
    <link rel="stylesheet" href="{{ asset('bundles/armdatlas/css/atlas_new.css') }}">
    <link rel="stylesheet" href="{{ asset('bundles/armdmain/css/atlas_obrazy.css') }}">
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script src="{{ asset('bundles/armdmain/js/atlas_obrazy.js') }}" type="text/javascript"></script>
    <script src="{{ asset('bundles/armdmain/js/main_page.js') }}" type="text/javascript"></script>

    <script type="text/javascript">
        $(function () {
            armdMainPage.init();
        });
    </script>
{% endblock %}


<commit_msg>59701 new index page(1-7 done)<commit_after>{% extends ':Frontend:layout_two_column.html.twig' %}

{% block title %}{{ 'Portal title'|trans }}{% endblock %}

{% block page_header_title %}{{ 'Portal title'|trans }}{% endblock %}

{% block body_class %}index-main{% endblock %}

{% block sub_header %} 
    <section class="index-block index-museum-block clearfix">
        {# <h2><a href="{{ path('armd_museum_virtual') }}">{{ "Museums"|trans }}</a></h2> #}

        <div class="plitka-one-wrap plitka-one-wrap-opened">
            <div class="plitka-one clearfix">
                <div class="museum-image-container">
                    <div class="museum-image" style="background-image:url({% path museum.bannerImage, 'banner' %});"></div>
                    <div class="museum-image-over">
                        <div class="museum-image-title clearfix"><span>ГОСУДАРСТВЕННЫЙ ИСТОРИЧЕСКИЙ МУЗЕЙ</span></div>
                        <div class="museum-image-text-wrap">
                            <a href="#" class="museum-town">Москва</a>
                            <a class="museum-image-link vob iframe" href="{{ museum.url }}" data-fancybox-type="iframe">
                                <span class="museum-image-text">
                                    {{ "visit_museum"|trans|raw }}
                                </span>
                            </a>
                            <a href="#instruction" class="museum-instr-link">
                                {{ "manual_instruction"|trans|raw }}
                            </a>
                        </div>
                        <div class="museum-image-image"></div>
                    </div>
                </div>
            </div>

            <div id="instruction" style="display:none;">
                <div class="window">
                    <div class="block window-content">
                        {% include 'ArmdMuseumBundle:Default:instruction.'~app.request.locale~'.html.twig' %}
                    </div>
               </div>
            </div>
        </div>
    </section>

{% endblock %}

{% block left_column %}
    <section class="block new-on-site">
        {#
        <h1><span>{{ "Mainpage block.New on portal"|trans }}</span></h1>
        <section class="index-block clearfix index-russia-images-block">
            <h2><a href="{{ path('armd_atlas_russia_images') }}">{{ "Mainpage block.Images of Russia.Title"|trans }}</a></h2>
            {% include 'ArmdMainBundle:Homepage:new_russia_images.html.twig' with {'objects': newRussiaImages} %}
            <p class="all"><a href="{{ path('armd_atlas_russia_images') }}">{{ "Mainpage block.Images of Russia.All"|trans }}</a></p>
        </section>
        #}
        {% if app.request.locale == 'ru' %}
            <section class="index-block two-column-block clearfix index-news-block">
                <section class="index-block">
                    {% set newsCategoryHref = path('armd_news_list_index_by_category', {'category': 'reportages'}) %}
                    {% set newsArticleHref = path('armd_news_item_by_category', {'id': lastReportage.id, 'category': lastReportage.category.slug }) %}
                    <h2><a href="{{ newsCategoryHref }}">Статьи</a></h2>
                    <a href="{{ newsArticleHref }}">
                        {% thumbnail lastReportage.image, 'list' with {'class': 'block-left-image', 'height': 'auto'} %}
                        {#<img class="block-left-image" alt=""~ src="{{ newsArticleHref. }}">#}
                    </a>

                    <div class="text-overflow">
                        <a class="two-column-name" href="{{ newsArticleHref }}">{{ lastReportage.title|raw }}</a>
                        <p>{{ lastReportage.announce|striptags|truncate(200)|raw }}</p>
                        <p class="all"><a href="{{ newsCategoryHref }}">все статьи</a></p>
                    </div>
                </section>

                <section class="index-block">
                    {% set newsCategoryHref = path('armd_news_list_index_by_category', {'category': 'interviews'}) %}
                    {% set newsArticleHref = path('armd_news_item_by_category', {'id': lastInterview.id, 'category': lastInterview.category.slug }) %}

                    <h2><a href="{{ newsCategoryHref }}">Интервью</a></h2>
                    <a href="{{ newsArticleHref }}">
                        {% thumbnail lastInterview.image, 'list' with {'class': 'block-left-image', 'height': 'auto'} %}
                        {#<img class="block-left-image" alt="" src="images/index-interview.jpg">#}
                    </a>

                    <div class="text-overflow">
                        <a class="two-column-name" href="{{ newsArticleHref }}">{{ lastInterview.title }}</a>
                        <p>{{ lastInterview.announce|striptags|truncate(200)|raw }}</p>
                        <p class="all"><a href="{{ newsCategoryHref }}">все интервью</a></p>
                    </div>
                </section>
            </section>
        </section>
    {% endif %}

    {% if app.request.locale == 'ru' %}
        <section class="index-block index-video-block clearfix">
            <h2><a href="{{ path('armd_lecture_cinema_index') }}">Кинозал</a></h2>
            {#
            <div id="video-list">
                 {% include 'ArmdMainBundle:Homepage:new_video.html.twig' with {'videos': newVideos} %}
            </div>
            #}

<!-- static sample -->
<div id="video-list">
<ul class="slides index-video-list" style="width:606px; margin-left:auto; margin-right:auto;">
<li>
<div class="index-video-one">
<a href="http://culture.ru/lecture/view/576">
<div class="index-video-image">
<img height="auto" alt="Курьер" width="auto" class="lecture-tile-list-image" src="http://culture.ru/ru/uploads/media/lecture/0001/13/thumb_12283_lecture_lectureW160H120.png">            
</div>
</a>
<a href="http://culture.ru/lecture/view/576" class="index-video-name">Курьер</a>
<span class="index-video-info">Мосфильм, 1986</span>
</div>
</li>

<li>
<div class="index-video-one">
<a href="http://culture.ru/lecture/view/600">
<div class="index-video-image">
<img height="auto" alt="Земля" width="auto" class="lecture-tile-list-image" src="http://culture.ru/ru/uploads/media/lecture/0001/13/thumb_12632_lecture_lectureW160H120.jpeg">            
</div>
</a>
<a href="http://culture.ru/lecture/view/600" class="index-video-name">Земля</a>
<span class="index-video-info">Всеукраинское фотокиноуправление, 1930</span>
</div>
</li>

<li>
<div class="index-video-one">
<a href="http://culture.ru/lecture/view/577">
<div class="index-video-image">
<img height="auto" alt="Летят журавли" width="auto" class="lecture-tile-list-image" src="http://culture.ru/ru/uploads/media/lecture/0001/13/thumb_12284_lecture_lectureW160H120.png">            
</div>
</a>
<a href="http://culture.ru/lecture/view/577" class="index-video-name">Летят журавли</a>
<span class="index-video-info">Мосфильм, 1957</span>
</div>
</li>
</ul>
</div>
<!-- /static sample -->

            <p class="all"><a href="{{ path('armd_lecture_cinema_index') }}">Все видео</a></p>
        </section>
    {% endif %}

    </section>
{% endblock %}


{% block right_column %}
    <span class="helper-top-orange-line"></span>
    <section id="homepage-online-translation">
        {% render 'ArmdOnlineTranslationBundle:Default:homepageWidget' %}
    </section>
    
    {% include "ArmdMainBundle:Homepage:news_tabs.html.twig" %}

{% endblock %}

{% block wide_body %}
<!-- begin-->
    <div class="index-map">
        <div class="bar bar-top"></div>
        <div class="bar bar-right"></div>
        <div class="bar bar-bottom"></div>
        <div class="bar bar-left"></div>
        <div id="map"></div>
        <div class="map-lister scrollblock">
            <div class="scrollblock-content">
                <div class="map-lister-image"><a href="#"><img src="http://culture.ru/ru/uploads/media/atlas/0001/13/thumb_12210_atlas_atlasW613.jpeg" /></a></div>
                <div class="map-lister-overflow">
                    <div class="map-lister-title"><h3><a href="#">Кирилло-Белозерский монастырь</a></h3></div>
                    <div class="map-lister-text">Кирилло-Белозерский монастырь был основан в конце ХIV столетия на землях бывшего Белозерского княжества, потерявшего к тому времени независимость и ставшего уделом сына Дмитрия Донского Андрея. Основатель Успенского, впоследствии</div>
                </div>
                <p class="all"><a href="#">подробнее</a></p>
            </div>
            <div class="scrollblock-buttons clearfix"><a class="scrollblock-a scrollblock-left"></a><a class="scrollblock-a scrollblock-right"></a></div>
        </div><!-- /map-lister -->
    </div>

    <!-- Асинхронная загрузка jsapi -->
    <div id="script_block" class="script_block"></div>
    <div id="script_ad" class="script_ad" style="display:none;">
        <script type="text/javascript" charset="utf-8" src="http://js.tmcrussia.com/map.js?{{ progorod_api_key }}&version=0.1.10"></script>
        {# <script type="text/javascript" charset="utf-8" src="http://jsapi.murzina.jsdev.tmcrussia.com/?{{ progorod_api_key }}&version=0.1.10"></script> #}
    </div>
    <script type="text/javascript">
        document.getElementById('script_block').appendChild(document.getElementById('script_ad'));
        document.getElementById('script_ad').style.display = 'block';
    </script>
    <!-- /Асинхронная загрузка jsapi -->
<!-- /end -->
{% endblock %}

{% block after_body %}
<div class="right-column" style="padding-top:38px;">
    <section class="newspaper newspaper-culture"><a href="{{ path('armd_paper_edition', {'slug': 'archive'}) }}" title='{{ "menu.culture_magazine"|trans }}'></a></section>
    <section class="newspaper newspaper-literature"><a href="{{ path('armd_paper_edition', {'slug': 'litnews'}) }}" title='{{ "menu.literature_magazine"|trans }}'></a></section>
{#
{% if app.request.locale == 'ru' %}
    <a href="http://www.yandex.ru/?add=126758&from=promocode" target="_blank" class="read-yandex">
        <img src="{{ asset('img/read_yandex.jpg') }}">
    </a>
    <section id="homepage-social-widgets">
        {% include 'ArmdMainBundle:Homepage:facebook_likebox.html.twig' %}
        {% include 'ArmdMainBundle:Homepage:vkontakte_likebox.html.twig' %}
    </section>
    
    <section id="homepage-polls">
        <h3><span>Опрос</span></h3>
        {% render url('armd_poll_poll') %}
    </section>

{% endif %}
#}
</div><!-- /right-column -->
<div class="left-column">
    <div class="left-column-content">
        <section class="block new-on-site">
            {% if app.request.locale == 'ru' %}
                <section class="block social-widget-block">
                    {% render url("armd_main_latest_topics", {"domain": "people.culture.ru"}) %}
                </section>
                <section class="block twitter-widget-block">
                    {% include 'ArmdMainBundle:Homepage:twitter_widget.html.twig' %}
                </section>
            {% endif %}
        </section>
    </div>
</div><!-- /left-column -->
{% endblock %}

{% block stylesheets %}
    {{ parent() }}
    <link rel="stylesheet" href="{{ asset('bundles/armdatlas/css/atlas_new.css') }}">
    <link rel="stylesheet" href="{{ asset('bundles/armdmain/css/atlas_obrazy.css') }}">
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script src="{{ asset('bundles/armdmain/js/atlas_obrazy.js') }}" type="text/javascript"></script>
    <script src="{{ asset('bundles/armdmain/js/main_page.js') }}" type="text/javascript"></script>

    <script type="text/javascript">
        $(function () {
            armdMainPage.init();
        });
    </script>
{% endblock %}



{'fraction_non_alphanumeric': 0.1895089475023323, 'fraction_numerical': 0.012382325502501908, 'mean_word_length': 2.5015590200445432, 'pattern_counts': {'":': 2, '<': 517, '<?xml version=': 0, '>': 517, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '137512', 'n_tokens_mistral': 8082, 'n_tokens_neox': 7561, 'n_words': 1208}