{*Контекстные настройки*} {if $_modx->resource.context_key == 'web'} {set $parent_otzuvu_id = 26} {set $parent_sport_id = 478} {set $parent_event_id = 474} {set $parent_news_id = 20} {set $parent_objects_id = 548} {set $benefit_id = 29} {set $partners_id = 27} {set $transport_id = 28} {set $contacts_id = 11} {else} {set $parent_otzuvu_id = 87} {set $parent_sport_id = 479} {set $parent_event_id = 480} {set $parent_news_id = 81} {set $parent_objects_id = 588} {set $benefit_id = 80} {set $partners_id = 88} {set $transport_id = 89} {set $contacts_id = 79} {/if} {*Отзывы*} {set $otzuvu = $_modx->runSnippet('!pdoResources', [ 'parents' => $parent_otzuvu_id, 'includeTVs' => 'video_embed', 'limit' => 5, 'sortby' => 'menuindex', 'tpl' => 'index_reviews_item.chnk', 'tplLast' => 'index_reviews_item_last.chnk' ])} {*Виды спорта*} {set $menu_kind_sports = $_modx->runSnippet('pdoMenu', [ 'parents' => $parent_sport_id, 'countChildren' => 1, 'level' => 2, 'tplOuter' => '@INLINE
{{+wrapper}}
', 'tpl' => '@INLINE
{$longtitle}
{{+wrapper}} {$_modx->lexicon->load(\'active_cyprus:default\')} {\'text_total\'|lexicon} {$children|decl:$_modx->lexicon(\'index_decl_sports\'):true}
', 'tplInner' => '@INLINE ', 'tplInnerRow' => '@INLINE {if $idx <= 5}
  • {{+menutitle}}
  • {/if}' ])} {*Ближайшие события*} {set $where = '{"date_event_first:>":"'~''|date:'Y-m-d'~'"}'} {set $events = $_modx->runSnippet('pdoResources', [ 'parents' => $parent_event_id, 'tvPrefix' => '', 'includeTVs' => 'title_coords,preview_benefit_index,date_event_first,date_event_last', 'prepareTVs' => 'preview_benefit_index', 'limit' => 3, 'tpl' => 'events_list_event.chnk', 'sortby' => 'RAND()', 'tplWrapper' => '@INLINE ', 'tplLast' => 'events_list_event_last.chnk', 'showHidden' => 0, 'where' => $where ])} {*Последние новости*} {set $last_news = $_modx->runSnippet('pdoResources', [ 'parents' => $parent_news_id, 'limit' => 3, 'sortdir' => 'DESC' 'includeTVs' => 'preview_benefit_index' 'tplWrapper' => '@INLINE ', 'tpl' => '@INLINE
  • {$pagetitle}
    {$publishedon | date:"d.m.Y"}
    {"blog_readall"|lexicon}...
  • ', 'tplLast' => '@INLINE
  • {$pagetitle}
    {$publishedon | date:"d.m.Y"}
    {"blog_readall"|lexicon}...
  • ' ])} {*Видео*} {set $index_video = $_modx->resource.index_videos|fromJSON} {*Спортивные объекты*} {set $sport_objects = $_modx->runSnippet('!pdoResources', [ 'parents' => $parent_objects_id, 'limit' => 5, 'includeTVs' => 'preview_benefit_index', 'prepareTVs' => 'preview_benefit_index', 'tpl' => 'index_sport_object.chnk', 'tplLast' => 'index_sport_object_last.chnk', 'sortby' => 'RAND()' ])} {*Верхний баннер*} {set $top_banners = $_modx->resource.index_slider | fromJSON} {$_modx->parseChunk('head.chnk', [])} {$_modx->parseChunk('og_micridata.chnk', [])} {$_modx->parseChunk('afterBodyCHNK', [])}
    {$_modx->parseChunk('header.chnk', [])}
    {$_modx->parseChunk('order_hot_offer.chnk', [])} {if $sport_objects}
    {'index_sport_objects_title'|lexicon}
      {$sport_objects}
    {/if} {$_modx->parseChunk('discount_banner.chnk', ['link' => true])} {if $menu_kind_sports}
    {$parent_sport_id|resource:'pagetitle'}
    {$menu_kind_sports}
    {/if}
    {$benefit_id|resource:'introtext'}
      {foreach $benefit_id|resource:'benefits_list'|fromJSON as $benefit}
    • {$benefit['name']}
    • {/foreach}
    {if $benefits_list_index = $_modx->resource.benefits_list_index|split} {/if}
    {$partners_id|resource:'longtitle'}
    {$transport_id|resource:'longtitle'}
    {if $otzuvu}
    {$parent_otzuvu_id|resource:'introtext'}
    {$otzuvu}
    {/if} {if $events}
    {'index_close_events_title'|lexicon}
    {$events}
    {/if} {if $last_news}
    {$parent_news_id|resource:'introtext'}
    {$last_news}
    {/if}
    {'index_ourteam_title'|lexicon}
    {if $contacts_id|resource:'main_image'}
    {/if}
    {$_modx->parseChunk('connection.chnk', [])} {if $_modx->resource.content}
    {'index_content_title'|lexicon}
    {/if}
    {$_modx->parseChunk('review_popup.chnk', ['title' => true])} {$_modx->parseChunk('info_popup.chnk', [])}
    {$_modx->parseChunk('footer.chnk', [])}