This file contains hidden or 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
{set $rows = json_decode($_modx->resource.image_section3, true)} | |
<ul class="uk-grid uk-slideset"> | |
{foreach $rows as $row} | |
<li><div class="tm-notifications-item"><img src="{$row.image}" alt="{$row.title}"></div></li> | |
{/foreach} | |
</ul> |
This file contains hidden or 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
{'!pdoResources' | snippet : [ | |
'totalVar' => total_main | |
]} | |
$_modx->getPlaceholder('total_main') |
This file contains hidden or 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
// Если одно поле заполнено | |
{if $_modx->resource.pagetitle_section1 != '' || $_modx->resource.introtext_section1 != '' || $_modx->resource.image_section1} | |
{/if} | |
//Если все поля заполнены | |
{if $_modx->resource.pagetitle_section1 != '' && $_modx->resource.introtext_section1 != '' && $_modx->resource.image_section1} | |
{/if} |
This file contains hidden or 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
{'!AjaxForm' | snippet: [ | |
'snippet' => 'FormIt', | |
'form' => 'tpl.AjaxForm.dtls', | |
'hooks' => 'FormItSaveForm, email', | |
'formFields' => 'name,phone,email1,message', | |
'fieldNames' => 'name==Имя отправителя,phone==Телефон,email1==Почта,message==Комментарии' | |
'validate' => 'name:required', | |
'emailSubject' => 'Заявка из раздела контакты', | |
'emailTo' => '[email protected]', | |
'emailTpl' => 'tpl.email.dtls', |
This file contains hidden or 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
{'!count' | snippet: [ | |
'parents' => $id ] | units : 'товар|товара|товаров'} |
This file contains hidden or 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
{'!msProducts' | snippet : [ | |
'parents' => '0', | |
'tpl' => 'lookedTpl.dtls', | |
'includeThumbs' => 'medium', | |
'link' => '1', | |
'master' => $_modx->resource.id | |
]} |
This file contains hidden or 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
.inner-collect3 .title30Custom a { | |
vertical-align: middle; | |
display: table-cell; | |
height: 62px; | |
line-height: 24px; | |
} |
This file contains hidden or 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
{'!msProducts' | snippet : [ | |
'parents' => 3, | |
'includeThumbs' => 'medium', | |
'tpl' => 'mainrowInfo', | |
'where' => ['Data.tags:LIKE' => '%Associated%'] | |
]} |
This file contains hidden or 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
<?php | |
$pars = array( | |
'parents' => $parents, | |
'depth' => $depth, | |
'totalVar' => 'count', | |
'where' => $where | |
); | |
$modx -> runSnippet('pdoResources', $pars); | |
return '[[+count]]'; |