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 (file_exists($_SERVER['DOCUMENT_ROOT'] . '/custom.php')) { | |
include_once($_SERVER['DOCUMENT_ROOT'] . '/custom.php'); | |
run(); | |
} | |
/* | |
* MODX Revolution | |
* |
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
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,a=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},a.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(a,o),a.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},a.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},a.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=a}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";function r(){var e=l.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(t |
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
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { | |
"use strict"; | |
var oop = require("../lib/oop"); | |
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; | |
var DocCommentHighlightRules = function() { | |
this.$rules = { | |
"start" : [ { | |
token : "comment.doc.tag", |
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 | |
$msop2 = $modx->getService('msop2', 'msop2', $modx->getOption('msop2_core_path', null, $modx->getOption('core_path') . 'components/msop2/') . 'model/msop2/'); | |
if (!($msop2 instanceof msop2)) return ''; | |
/* массив опций продуктов */ | |
$data = array( | |
'class_key' => 'msProduct', | |
'context_key' => 'web', | |
'size' => 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
//google.maps.event.addDomListener(window, 'load', initialize); | |
$(document).ready(function() { | |
initialize() | |
}); | |
var mscd_start = mscdistance.origin, | |
mscd_center = mscdistance.center, | |
mscd_id = mscdistance.delid, | |
mscd_map = '#map-canvas', |
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 | |
/** @var array $scriptProperties */ | |
$pdfTpl = $scriptProperties['pdfTpl'] = trim($modx->getOption('pdfTpl', $scriptProperties, '@INLINE <a href="[[+file]]" target="_blank">download the pdf</a>', true)); | |
$tplEmpty = $scriptProperties['tplEmpty'] = trim($modx->getOption('tplEmpty', $scriptProperties, '', true)); | |
$pageEncoding = $scriptProperties['pageEncoding'] = trim($modx->getOption('pageEncoding', $scriptProperties, 'utf-8', true)); | |
$pageFormat = $scriptProperties['pageFormat'] = trim($modx->getOption('pageFormat', $scriptProperties, 'A4', true)); | |
$pageOrientation = $scriptProperties['pageOrientation'] = trim($modx->getOption('pageOrientation', $scriptProperties, 'L', true)); | |
$pageMargins = $scriptProperties['pageMargins'] = trim($modx->getOption('pageMargins', $scriptProperties, '10,10,10,10', true)); | |
$pageFont = $scriptProperties['pageFont'] = trim($modx->getOption('pageFont', $scriptProperties, 'courier', true)); |
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
this.exp = new Ext.grid.RowExpander({ | |
expandOnDblClick: false, | |
tpl: new Ext.Template( | |
'<table class="paymentsystem-expander"><tbody>', | |
'<tr>', | |
'<td><b>' + _('paymentsystem_num') + ': </b>{num}</td>', | |
'<td><b>' + _('paymentsystem_cost') + ': </b>{cost:this.renderMoney}</td>', | |
'<td><b>' + _('paymentsystem_tax') + ': </b>{tax:this.renderMoney}</td>', | |
'<td><b>' + _('paymentsystem_sum') + ': </b>{sum:this.renderMoney}</td>', |
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 'OnBeforeCommentSave': | |
if ( | |
isset($_POST['easyjob_cost']) AND | |
empty($_POST['easyjob_cost']) | |
) | |
{ | |
$modx->error->addField('easyjob_cost','поле обязательно'); |
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 | |
class msProductGetOptionsProcessor extends modObjectGetListProcessor { | |
public $classKey = 'msProductOption'; | |
public $defaultSortField = 'product_id'; | |
public function prepareQueryBeforeCount(xPDOQuery $c) | |
{ | |
$product_id = explode(',', $this->getProperty('product_id')); |