{extends file="layout.tpl"} {block name=bodyClass}page-blog{/block} {block name=main}

{if $modx->resource->getTVValue('seoH1')}{$modx->resource->getTVValue('seoH1')}{else}{$modx->resource->get('pagetitle')}{/if}

{snippet name="pdoPage" assign="pdoPage" params=[ 'parents' => $modx->resource->id, 'depth' => 45, 'limit' => 12, 'cache' => 1, 'pageLimit' => 10, 'cacheTime' => 14883600, 'maxLimit' => 100, 'hideContainers' => 1, 'includeTVs' => 'blogIntroText, blogImg', 'tplPageWrapper' => '@INLINE [[+first]][[+prev]][[+pages]][[+next]][[+last]]', 'tplPageActive' => '@INLINE
  • [[+pageNo]]
  • ', 'tplPage' => '@INLINE
  • [[+pageNo]]
  • ', 'tplPagePrev' => '@INLINE ', 'tplPageNext' => '@INLINE ', 'tplPagePrevEmpty' => '@INLINE', 'tplPageNextEmpty' => '@INLINE', 'tplPageSkip' => '@INLINE
  • ...
  • ', 'return' => 'json' ]} {$pdoPage = json_decode($pdoPage)} {foreach $pdoPage as $key => $object} {$object = (array)$object} {$image = $modx->runSnippet('phpthumbof', [ "input" => $object['tv.blogImg'], "options" => "w=360&h=214&zc=1" ])}
    {$object.pagetitle}

    {$object.pagetitle}

    {$object['tv.blogIntroText']} Читать далее
    {/foreach}
    {/block}1