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 | |
// provider id => array of packages | |
$listPackagesToInstall = array( | |
1 => array( // standart modx provider | |
'sdStore' | |
, 'translit' | |
, 'TinyMCE' | |
, 'FormIt' | |
, 'Analytics' |
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 | |
switch ($modx->event->name) { | |
case 'OnMODXInit': | |
$modx->loadClass('msOrderAddress'); | |
$modx->map['msOrderAddress']['fields']['porch'] = 0; | |
$modx->map['msOrderAddress']['fieldMeta']['porch'] = array( | |
'dbtype' => 'varchar', | |
'precision' => 10, | |
'attributes' => '', |
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 | |
//Минификация кода HTML. Включение плагина по событию onWebPagePreRender | |
$output = &$modx->resource->_output; | |
$output = preg_replace('|\s+|', ' ', $output); | |
$modx->resource->set('content', $output); |
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
$pdo = $modx->getService('pdoFetch'); | |
$pdo->addTime('pdoTools загружен'); | |
$class = 'modResource'; | |
if (empty($outputSeparator)) {$outputSeparator = "\n";} | |
if (empty($colLetter)) {$colLetter = 1;} | |
if (isset($parents) && $parents === '') { | |
$parents = $modx->resource->id; | |
} | |
$parents = explode(',', $parents); |
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
/*jQuery UI autocomplete for bootstrap*/ | |
.ui-autocomplete { | |
position: absolute; | |
top: 100%; | |
left: 0; | |
z-index: 1000; | |
float: left; | |
display: none; | |
min-width: 160px; |
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 | |
$context = $modx->context->get('key'); | |
if ($context == 'mgr' || empty($_POST['quick_order']) || empty($_POST['id']) || empty($_POST['customer'])) { | |
return; | |
} | |
/** | |
* @var miniShop2 $miniShop2 | |
*/ | |
$miniShop2 = $modx->getService('minishop2'); | |
$miniShop2->initialize($context, array( |
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
//Custom javascript for AjaxForm for Modx Revo | |
var AjaxForm = { | |
initialize: function(afConfig) { | |
if(!jQuery().ajaxForm) { | |
document.write('<script src="'+afConfig.assetsUrl+'js/lib/jquery.form.min.js"><\/script>'); | |
} | |
$(document).on('submit', afConfig.formSelector, function(e) { | |
$(this).ajaxSubmit({ |
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
//Original source from http://bootsnipp.com/snippets/lWXD6 | |
@media ( min-width: 768px ) { | |
.grid-divider { | |
position: relative; | |
padding: 0; | |
> [class*='col-'] { | |
position: static; | |
} |
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
[class*="block-grid-"] { | |
display: block; | |
margin: -(@grid-gutter-width/2); | |
padding: 0; | |
.clearfix(); | |
} | |
.block-grid-item { | |
display: inline; | |
margin: 0; |
NewerOlder