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
/** | |
* init | |
* @param config | |
*/ | |
var recipeComponents = function(config) { | |
config = config || {}; | |
recipeComponents.superclass.constructor.call(this,config); | |
}; |
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
{set $parents = '!pdoResources' | snippet: [ | |
'returnIds' => 1, | |
'parents' => 9, | |
'depth'=> 15, | |
'limit' => 0, | |
'where' => [ | |
'class_key' => 'msCategory' | |
] | |
]} |
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 | |
print_r(array_keys($scriptProperties)); | |
die; |
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
{set $gallery = '!pdoResources' | snippet: [ | |
'limit' => 0, | |
'class' => 'UserFile', | |
'loadModels' => 'UserFiles', | |
'sortby' => 'rank', | |
'sortdir' => 'ASC', | |
'tpl' => '@FILE pdo/eventGallery.tpl', | |
'select' => [ | |
'UserFile' => '*', | |
'Thumb' => 'Thumb.url as thumb', |
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).on('pdopage_load', function(e, config, response) { | |
// masonry media | |
var $masonryContainer = $('.media__block_masonry'); | |
if ($masonryContainer.length) { | |
$masonryContainer.masonry({ | |
itemSelector: '.media__item', | |
gutter: '.media__gutter', | |
horizontalOrder: true | |
}); | |
$masonryContainer.masonry( 'reloadItems' ); |
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
{var $style = [ | |
'logo' => 'display:block;margin: auto;', | |
'a' => 'color:#348eda;', | |
'p' => 'font-family: Arial;color: #666666;font-size: 12px;', | |
'h' => 'font-family:Arial;color: #111111;font-weight: 200;line-height: 1.2em;margin: 40px 20px;text-align:center;', | |
'h1' => 'font-size: 36px;', | |
'h2' => 'font-size: 28px;', | |
'h3' => 'font-size: 22px;', | |
'th' => 'font-family: Arial;text-align: left;color: #111111;', | |
'td' => 'font-family: Arial;text-align: left;color: #111111;border: 1px solid #eee;padding: 10px;', |
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 | |
//@EVAL return $modx->runSnippet('getDepartament'); | |
$pdo = $modx->getService('pdoFetch'); | |
$pdo->setConfig(array( | |
'parents' => 137, | |
'limit' => 0, | |
'sortby' => 'id', | |
'select' => 'id,pagetitle', | |
'return' => 'data', | |
'where' => [ |
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
[[!pdoPage? | |
&element=`pdoResources` | |
&parents=`4, 12, 17, 27` | |
&depth=`5` | |
&tpl=`list_material_tpl_view` | |
&includeTVs=`image,views` | |
&where=`modResource.isfolder IS NOT UNKNOWN AND DATE(FROM_UNIXTIME(modResource.publishedon)) > DATE_SUB(NOW(), INTERVAL 1 MONTH)` | |
&limit=`12` | |
&sortby=`{"CAST(views AS DECIMAL(13,3))":"DESC"}` | |
&tvPrefix=`` |
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 modX $modx */ | |
switch ($modx->event->name) { | |
case 'pdoToolsOnFenomInit': | |
$fenom->addModifier('round', function ($input) { | |
return round($input,1); | |
}); | |
$fenom->addModifier('format_price', function ($input) { |