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 | |
| /** | |
| * @package agenda | |
| * @subpackage plugin | |
| */ | |
| namespace TreehillStudio\Agenda\Plugins\Events; | |
| use TreehillStudio\Agenda\Agenda; |
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 (preg_match('/safari/i', $_SERVER['HTTP_USER_AGENT']) && !preg_match('/chrome/i', $_SERVER['HTTP_USER_AGENT'])): ?> | |
| <!-- Docs: https://developer.apple.com/documentation/webkit/delivering-video-content-for-safari#Use-MP4-Video-Instead-of-Animated-GIFs --> | |
| <img | |
| src="video.mp4" | |
| width="1600" | |
| height="900" | |
| alt="" /> | |
| <?php else: ?> | |
| <video | |
| src="video.mp4" |
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
| [[pdoChunk? | |
| &file=`contentblocks/your-chunk-name.chunk.tpl` | |
| &field=`[[+field]]` | |
| &field_type_idx=`[[+field_type_idx]]` ]] |
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 ($modx->event->name == 'ContentBlocks_RegisterInputs') { | |
| class cbDateInput extends cbBaseInput | |
| { | |
| public $defaultIcon = 'snippet_B'; | |
| public $defaultTpl = ''; | |
| public function getTemplates() | |
| { |
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 | |
| $eventName = $modx->event->name; | |
| $babelLanguageLinksTv = $modx->getOption('babel.babelTvName'); | |
| $connectedResourcesTv = $resource->getTVValue($babelLanguageLinksTv); | |
| // prevent mixedImage hook in via getTVValue() | |
| //$q = $modx->newQuery('modTemplateVarResource', [ | |
| // 'tmplvarid' => 20, | |
| // 'contentid' => $modx->resource->id, | |
| //]); | |
| //$q->select('value'); |
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
| <!DOCTYPE html> | |
| <html lang="de"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>CurlyRandomGrid</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> | |
| <style> | |
| .grid { | |
| display: grid; |
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 | |
| # vars | |
| $lib = $modx->getOption("resizeImage_imageLib", null, "cli"); | |
| $libPath = $modx->getOption("resizeImage_imageLibPath", null, "/Applications/MAMP/Library/bin/convert"); | |
| $mode = $modx->getOption("mode", $scriptProperties, ""); | |
| $input = $modx->getOption("input", $scriptProperties, ""); | |
| $sizes = $modx->getOption("options", $scriptProperties, ""); | |
| $quality = $modx->getOption("quality", $scriptProperties, 70); | |
| $cultureKey = $modx->getOption("cultureKey"); |
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 | |
| # vars | |
| $filePath = $modx->getOption('input', $scriptProperties, ''); | |
| $savePath = "assets/components/phpthumbof/cache/poster_" . md5($filePath) . ".jpg"; | |
| # check file exists and is PDF | |
| if (!file_exists(MODX_BASE_PATH . $filePath) || mime_content_type(MODX_BASE_PATH . $filePath) != "application/pdf") { | |
| return $filePath; | |
| } |
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 ($modx->context->get("key") == "mgr") { | |
| if ($modx->user->get("sudo") || $modx->user->isMember("Administrator")) { | |
| return; | |
| } | |
| switch ($modx->event->name) { | |
| case "OnMODXInit": | |
| $action = $modx->getOption("action", $_REQUEST, ""); | |
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
| { | |
| "formtabs":"", | |
| "contextmenus":"", | |
| "actionbuttons":"", | |
| "columnbuttons":"", | |
| "filters":[ | |
| { | |
| "MIGX_id":1, | |
| "name":"categorie", | |
| "label":"Kategorie", |
NewerOlder