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
{foreach $_modx->resource.promo_evroluce as $value} | |
{if $value == "Новинки"}<span class="flag new">new</span> | |
{elseif $value == "Распродажа"}<span class="flag discount large">Распродажа</span> | |
{elseif $value == "Хит продаж"}<span class="flag hit large">Хит продаж</span> | |
{/if} | |
{/foreach} | |
{foreach $_modx->resource.benefits_evroluce as $value} | |
{if $value == "Бесплатные лампочки"}<span class="flag idea large">Бесплатные лампочки</span> | |
{elseif $value == "Бесплатная доставка"}<span class="flag delivery large">Бесплатная доставка</span> | |
{elseif $value == "Бесплатный монтаж"}<span class="flag montage large">Бесплатный монтаж</span> |
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
1xx: Informational (информационные): | |
100 Continue («продолжай»)[2][3]; | |
101 Switching Protocols («переключение протоколов»)[2][3]; | |
102 Processing («идёт обработка»). | |
2xx: Success (успешно): | |
200 OK («хорошо»)[2][3]; | |
201 Created («создано»)[2][3][4]; | |
202 Accepted («принято»)[2][3]; | |
203 Non-Authoritative Information («информация не авторитетна»)[2][3]; | |
204 No Content («нет содержимого»)[2][3]; |
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
'where' => ['Vendor.resource:LIKE' => '%'~$_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
<a href="tel:{$_modx->config.phone | preg_replace:'/[^0-9]|/': ''}">{$_modx->config.phone}</a> |
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
{$_modx->runSnippet('!msProducts', [ | |
'parents' => 140, | |
'limit' => 4, | |
'tpl' => 'go.tpl.msProducts.similar', | |
'optionFilters' => json_encode([ | |
'collection_evroluce:=' => $_modx->resource.collection_evroluce[0] | |
]) | |
])} |
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
{$id | resource : 'pagetitle'} |
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
{foreach $cats as $cat} | |
<div class="section-option"> | |
<h5 class="mb-3">{$cat.name}</h5> | |
<ul class="list-group list-group-flush mb-3"> | |
{foreach $cat.items as $option} | |
<li class="list-group-item d-flex justify-content-between border-0 px-0 py-2"> | |
<span> | |
{$option.caption} | |
</span> | |
<span> |
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 | |
$output = $input; | |
$output = strtr($output, | |
array( | |
'а' => 'a', 'б' => 'b', 'в' => 'v', | |
'г' => 'g', 'д' => 'd', 'е' => 'e', | |
'ё' => 'e', 'ж' => 'zh', 'з' => 'z', | |
'и' => 'i', 'й' => 'ij', 'к' => 'k', | |
'л' => 'l', 'м' => 'm', 'н' => 'n', |
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
{'!mFilter2' | snippet : [ | |
'prepareSnippet' => 'prepareData' | |
]} |
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 | |
if (!$modx->user->isAuthenticated('mgr')) return; | |
$placeholders = $prefix ? array() : $modx->placeholders; | |
if ($prefix) { | |
foreach ($modx->placeholders as $key => $ph) { | |
if (strpos($key, $prefix) === 0) { | |
$placeholders[$key] = $ph; | |
} |