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
| /*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */ | |
| /* Document | |
| ========================================================================== */ | |
| /** | |
| * 1. Correct the line height in all browsers. | |
| * 2. Prevent adjustments of font size after orientation changes in | |
| * IE on Windows Phone and in iOS. | |
| */ | |
| html { | |
| line-height: 1.15; /* 1 */ |
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
| /* | |
| * | |
| * Copyright (C) 2024 MODX LLC | |
| * | |
| * This file is part of MODX Revolution and was compiled using Grunt. | |
| * | |
| * MODX Revolution is free software: you can redistribute it and/or modify it under the terms of the | |
| * GNU General Public License as published by the Free Software Foundation, either version 2 of the | |
| * License, or (at your option) any later version. | |
| * |
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; | |
| } |
NewerOlder