-
-
Save Fi1osof/22dd35b45d409bd0fc38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{extends file="tpl/index.tpl"} | |
{block name=slider} | |
{* [[$Top.new_goods.tpl]] *} | |
{$params = [ | |
"new" => 1, | |
"limit" => 20 | |
]} | |
{processor action="web/catalog/products/getdata" ns="modxsite" params=$params assign=result} | |
<div class="pm-news-goods"> | |
<h2>[[%front_section_new_products?&namespace=`frontend`]]</h2> | |
<div class="pm-news-goods-list"> | |
<div class="pm-btn l"></div> | |
<div class="pm-btn r"></div> | |
<div class="pm-news-goods-sl Vtop"> | |
{*literal} | |
[[msProducts? | |
&tpl=`Top.new_goods_row.tpl` | |
&parents=`[[++site_shop_page]]` | |
&limit=`6` | |
&sortdir=`DESC` | |
&where=`{"Data.new":"1"}` | |
&includeThumbs=`117x116` | |
]] | |
{/literal*} | |
{foreach $result.object as $object} | |
<div class="pm-news-goods-item"> | |
<a href="{$object.uri}" class="pm-news-goods-lnk"> | |
<div class="pm-news-goods-el"> | |
<div class="pm-news-goods-mask"></div> | |
<div class="pm-news-goods-price"> | |
<span>{$object.sm_price}</span> | |
</div> | |
<div class="pm-news-goods-pic"> | |
{$image = $object.image} | |
{$src = $modx->runSnippet('phpthumbof', [ | |
"input" => $image, | |
"options" => "w=117&h=117" | |
])} | |
<img src="{$src}" alt="{$object.pagetitle|@escape}" /> | |
</div> | |
</div> | |
<div class="pm-news-name"> | |
<span>{$object.pagetitle}</span> | |
</div> | |
</a> | |
</div> | |
{/foreach} | |
</div> | |
</div> | |
</div> | |
{* Eof [[$Top.new_goods.tpl]] *} | |
{/block} | |
{block name=sidebar_right} | |
{* [[$Sidebar_r.stock.tpl]] *} | |
<h2>[[%front_section_stock?&namespace=`frontend`]]</h2> | |
{$params=[ | |
"active_only" => 1 | |
,"limit" => 5 | |
,"getPage" => 1 | |
,"getPageParamsSet" => "ListPage" | |
]} | |
{processor action="web/promo/getdata" ns="modxsite" params=$params assign=result} | |
{foreach $result.object as $val} | |
<div class="pm-shares"> | |
<div class="pm-shares-titles"> | |
<span>{$val.pagetitle}</span> | |
</div> | |
<div class="pm-shares-desc"> | |
<p>{$val.introtext}</p> | |
</div> | |
<div class="pm-shares-lnk"> | |
<a href="{$modx->makeUrl($val.id)}">[[%front_section_stock_page_lnk?&namespace=`frontend`]]</a> | |
</div> | |
</div> | |
{/foreach} | |
{* | |
<div class="pm-shares-lnk"> | |
<a href="{$modx->makeUrl( $modx->getOption('site_action') )}">Перейти ко всем акциям</a> | |
</div> | |
*} | |
{* Eof [[$Sidebar_r.stock.tpl]] *} | |
{/block} | |
{block name=content} | |
[[!smarty?tpl=`shop/catalog/list.tpl`]] | |
{/block} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment