{extends 'file:templates/layout.tpl'}
{block 'main'}
<!-- Promo Area End -->
<section class="promo-area">
  <div class="container">
    <div class="row">
      <div class="col-lg-6 col-sm-7">
        <div class="promo-txt pull-left">
          <h2 class="promo-title">[[*pagetitle]]</h2>
          {include 'file:chunks/breadcrumbs/breadcrumbs.tpl'}
        </div>
      </div>
    </div>
  </div>
</section>
<!-- Promo Area End -->

<!-- Main Area Start -->
<main role="main">
  <div class="blog-wrap">
    <div class="container">
      <div class="row">
        <div class="col-lg-8">
          <div class="post-wrap">
            <article class="single-post">
              <figure>
                {if $_modx->resource.image?}
                <img src="[[*image]]" alt="">
                {/if}
              </figure>
              <div class="article-details">
                <h4 class="blog-title">[[*subtitle]]</h4>
                [[*content]]
                [[*forma]]
               </div>
              <div class="share-tag">
                <div class="post-share">
                  <script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
                  <script src="//yastatic.net/share2/share.js"></script>
                  <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,moimir,gplus,viber,whatsapp,skype,telegram"></div>
                </div>
              </div>
            </article>
            <!-- Article End -->


          </div>
        </div>
        <div class="col-lg-4">
          <aside class="sidebar">
            <div class="widget">
              <h3 class="widget-title">Готовый интернет магазин</h3>
              <div class="trending-post">
               [[!pdoPage@mypagination?
               &element=`pdoResources`
               &parents=`12`
               &limit=`4`
               &includeTVs=`image`
               &tvPrefix=``
               &tpl=`@FILE chunks/product/product_item_sidebar.tpl`
               ]]
             </div>
           </div>

         </aside>
       </div>
       <!-- Sidebar End -->
     </div>
   </div>
 </div>
</main>
<!-- Main Area End -->


{/block}