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
<?php | |
require_once '_fenom.php'; | |
class FenomPlus extends FenomX | |
{ | |
/** | |
* @inheritdoc | |
*/ | |
protected function _addDefaultModifiers() | |
{ |
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
<?php | |
$oneBooking = $modx->getService('onebooking','oneBooking',$modx->getOption('core_path').'components/onebooking/model/onebooking/', $scriptProperties); | |
if (!($oneBooking instanceof oneBooking)) return ''; | |
$included = array(); | |
if (!empty($scriptProperties['fields'])) { | |
$included = explode(',',$scriptProperties['fields']); | |
array_walk($included,'trim'); | |
} | |
$fields = false; |
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
<?php | |
$tstart = microtime(true); | |
$hits = array(); | |
$q = $modx->newQuery('modResource'); | |
$q->select('id,properties'); | |
$q->sortby('id'); | |
// Для поэтапной обработки указываем limit и offset | |
//$q->limit(100,0); | |
if ($q->prepare() && $q->stmt->execute()) { | |
while($row = $q->stmt->fetch(PDO::FETCH_ASSOC)) { |
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
<?php | |
switch ($modx->event->name) { | |
case 'OnManagerPageBeforeRender': | |
// Определяем названия // Define titles on your language | |
$lang['no'] = 'Нет'; //No | |
$lang['yes'] = 'Есть'; //Yes | |
$lang['errors'] = 'Ошибки'; //Errors | |
$lang['errors_title'] = 'Открыть журнал ошибок в новом окне'; //Open the error log in a new window | |
// | |
$response = $modx->runProcessor('system/errorlog/get'); |
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
var mSearch2 = { | |
options: { | |
wrapper: '#mse2_mfilter' | |
,filters: '#mse2_filters' | |
,results: '#mse2_results' | |
,total: '#mse2_total' | |
,pagination: '#mse2_pagination' | |
,sort: '#mse2_sort' | |
,limit: '#mse2_limit' | |
,slider: '.mse2_number_slider' |
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
<?php | |
/** | |
* The extended class for mSearch2. | |
* Feature: search in found | |
*/ | |
require_once 'mSearch2.class.php'; | |
class mSearch2ext extends mSearch2 { | |
/** @var array $resources */ | |
public $resources = array(); |
NewerOlder