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 | |
| /** | |
| * @internal @properties &meatAltBase=предполагаемое содержимое атрибута alt;text;[*pagetitle*] &numImg=добавить нумерацию изображений в alt;list;да,нет;да | |
| * @internal @events OnDocFormSave | |
| * @author Борис Федоров <w-navt@yandex.ru> | |
| */ | |
| if (!isset($meatAltBase)) { | |
| $meatAltBase = '[*pagetitle*]'; // предполагаемое содержимое атрибута alt | |
| } | |
| if (!isset($numImg)) { |
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
| let myconfig = { | |
| selector: selector_myconfig, | |
| document_base_url: modx_site_url, | |
| language: lang, | |
| language_url: modx_site_url + 'assets/plugins/tinymce5/langs/' + lang + '.js', | |
| plugins: 'print preview importcss searchreplace autolink directionality visualblocks visualchars fullscreen image link media template table charmap hr paste pagebreak nonbreaking anchor toc insertdatetime advlist save lists wordcount imagetools textpattern noneditable charmap emoticons code', | |
| toolbar1: 'undo | bold italic | alignleft aligncenter alignright | bullist numlist blockquote table | link unlink image insertfile formatselect | visualblocks removeformat code ', | |
| mobile:{ | |
| theme: "mobile" |
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 | |
| $switch = !empty($switch) ? $switch : ''; | |
| $default = !empty($default) ? $default : ''; | |
| $out = ''; | |
| if (!empty($params)) { | |
| $out = $default; | |
| foreach($params as $k => $v) { | |
| $value = mb_substr($k, 5); | |
| if (mb_substr($k, 0, 5) === 'case:' && $value === $switch) { | |
| $out = $v; |
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
| #!/bin/bash | |
| # basic script, before use need change logins,passwords in this script | |
| # put this script in project folder and run: sh evo.sh | |
| #variables | |
| EVO_VERSION="3.x-dev" | |
| INSTALL_TYPE=1 | |
| DATABASE_TYPE="mysql" | |
| DATABASE_SERVER="localhost" | |
| DATABASE_NAME="DB" |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE yml_catalog SYSTEM "shops.dtd"> | |
| <yml_catalog date="[!mDate? &date=`[*editedon*]`!]"> | |
| <shop> | |
| <name>[(site_name)]</name> | |
| <company>[(site_name)]</company> | |
| <url>[(site_url)]</url> | |
| <currencies> | |
| <currency id="RUR" rate="1"/> | |
| </currencies> |
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
| $e = &$modx->Event; | |
| if($e->name = 'OnManagerNodePrerender'){ | |
| /* Разделы каталога */ | |
| if($ph['template'] == '6'){ | |
| $ph['icon'] = "<i class='fa fa-table'></i>"; | |
| $ph['icon_folder_open'] = "<i class='fa fa-table'></i>"; | |
| $ph['icon_folder_close'] = "<i class='fa fa-table'></i>"; | |
| $ph['contextmenu'] = array( | |
| 'header1' => array( |