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
[[phpthumb? &input=`[+image+]` &options=`w=200,h=200,far=C,bg=fff`]] |
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
/***********************создаем в админке вкладку (с помощью чанка mm_rules) *********************/ | |
mm_createTab('Название вкладки', 'alias вкладки', '', 'id шаблона', '', ''); | |
mm_moveFieldsToTab('alias TV', 'alias вкладки', '', 'id шаблона'); |
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
/**************************************** Условия *********************************/ | |
[+phx:if=`[[Level]]`:is=`4`:then=` | |
<section class="">[[Wayfinder? &startId=`[*id:parent=`id`*]` &level=`1` &outerTpl=`cat_outerTpl` &rowTpl=`cat_rowTpl`]]</section> | |
`+] | |
[+phx:if=`[[UltimateParent? &topLevel=`1`]]`:is=`269`:then=`<a class="item__button" href="[~343~]" title=""><span>Find a store?</span></a>`+] | |
[+phx:if=`[[UltimateParent? &topLevel=`1`]]`:isnot=`419`:and:isnot=`269`:then=`<a class="item__button" href="[~5~]" title=""><span>Где заказать?</span></a>`+] |
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
NotiferNewUser | |
Системные события OnWebSaveUser | |
Уведомление администратора о новой регистрации на сайте. | |
/** | |
* NotiferNewUser | |
* |
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
/*** | |
number - исходное число | |
decimals - количество знаков после разделителя | |
dec_point - символ разделителя | |
thousands_sep - разделитель тысячных | |
***/ | |
function number_format(number, decimals, dec_point, thousands_sep) { | |
number = (number + '').replace(/[^0-9+\-Ee.]/g, ''); | |
var n = !isFinite(+number) ? 0 : +number, | |
prec = !isFinite(+decimals) ? 0 : Math.abs(decimals), |
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
User-agent: * | |
Disallow: /assets/cache/ | |
Disallow: /assets/docs/ | |
Disallow: /assets/export/ | |
Disallow: /assets/import/ | |
Disallow: /assets/modules/ | |
Disallow: /assets/plugins/ | |
Disallow: /assets/snippets/ | |
Disallow: /install/ | |
Disallow: /manager/ |
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
https://github.com/extras-evolution/Shopkeeper/blob/master/assets/snippets/shopkeeper/docs/OnSHKsaveOrder_plugin_example.txt |
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
Открываем базу данных и в таблице modx_user_attributes заменяем на нули содержимое полей (если там что-то есть) | |
blocked, blockeduntil и failedlogincount. | |
Все, у вас снова есть три попытки для правильной авторизации |
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
define('MODX_API_MODE', true); | |
include_once(dirname(__FILE__)."/index.php"); | |
$modx->db->connect(); | |
if (empty($modx->config)) { | |
$modx->getSettings(); | |
} |
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
$('.object').each(function(i) { | |
if ((i+1)%4 == 0) { | |
$(this).after('<div class="clearfix"></div>'); | |
} | |
}); |