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
{$_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
<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
'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
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
{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
<?php | |
/*Переадресация с адресов, заканчивающихся без слеша / на адреса со слешем / */ | |
$url=$_SERVER['REQUEST_URI']; | |
if($_SERVER['HTTPS']=='on'){$http='https';}else{$http='http';} | |
if(substr($url,0,6)=='/index'){ | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: ".$http."://".$_SERVER['HTTP_HOST']); | |
exit(); |
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 $filters != 'Нечего фильтровать'} | |
{$filters} | |
{/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
{'phone' | snippet} |
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
$(document).ready(function() { | |
AjaxForm.Message.success = function() {}; | |
}); |