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="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| </head> | |
| <body> |
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 | |
| /** | |
| * ManageUserFields | |
| * Плагин для скрытия и переименования полей веб-пользователей в админ-панели | |
| * | |
| * @category plugin | |
| * @version 0.2 | |
| * @author Akool | |
| * @internal @properties &hideFields=Скрываем;text; &renameFields=Переименовываем;text; | |
| * @internal @events OnWUsrFormRender |
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 | |
| // ManagerCssContexts | |
| // Add some style too the first level tree elements. | |
| // Event: OnManagerTreePrerender | |
| // Modify $contexts variable for your needs. | |
| $e = & $modx->Event; | |
| if ( $e->name == "OnManagerTreePrerender" ) { | |
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
| @ECHO OFF | |
| 7z a html%date:~-2%%date:~-7,2%%date:~-10,2%%time:~0,2%dev.zip src\* gulpfile.js package.json | |
| PAUSE |
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 | |
| $manager_theme = $modx->config['manager_theme']; | |
| $data = $modx->runSnippet('DocLister', array( | |
| 'debug' => 0, | |
| 'idType' => 'documents', | |
| 'ignoreEmpty' => 1, | |
| 'controller' => 'onetable', | |
| 'table' => 'subscribers', | |
| 'dateSource' => 'createdon', |
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
| /* | |
| * | |
| * TreeAppend | |
| * Плагин для добавления содержимого в дерево ресурсов | |
| * MODX Evo 1.0.11+ | |
| * | |
| * @category plugin | |
| * @version 0.1 | |
| * @internal @events OnManagerTreeRender | |
| * @internal @modx_category Manager and Admin |
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
| 'use strict'; | |
| const gulp = require('gulp'); | |
| const del = require("del"); | |
| const notify = require('gulp-notify'); | |
| const rename = require('gulp-rename'); | |
| const postcss = require('gulp-postcss'); | |
| const cssnano = require('gulp-cssnano'); | |
| const mqpacker = require("css-mqpacker"); | |
| const svgmin = require('gulp-svgmin'); |
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
Show hidden characters
| { | |
| "preferences": { | |
| "css.autoInsertVendorPrefixes": false | |
| } | |
| } |
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 | |
| $cid = $modx->documentIdentifier; | |
| $parent = isset($startId) ? (int)$startId : $cid; | |
| $parentTree = $modx->getParentIds($cid); | |
| $outerTpl = isset($outerTpl) ? $outerTpl : '[+wrapper+]'; | |
| $parentClass = isset($parentClass) ? ' class="'.$parentClass.'"' : ''; | |
| $rowClass = isset($rowClass) ? ' class="'.$rowClass.'"' : ''; | |
| $rowTpl = isset($rowTpl) ? $rowTpl : '<li[+class+]><a href="[+url+]"[+active+]>[+title+]</a></li>'; | |
| $rows = isset($rows) ? (int)$rows : 3; | |
| $out = ''; |
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 | |
| $content = $modx->resource->content; | |
| if(preg_match("/src=\"(.*?)\"/",$content,&$matches)){ | |
| $img = substr($matches[1],1,strlen($matches[1])); | |
| } | |
| else { | |
| $img = "assets/images/defaultImage.png"; | |
| } | |
| return $img; |