Skip to content

Instantly share code, notes, and snippets.

View Dmi3yy's full-sized avatar

Dmytro Lukianenko Dmi3yy

View GitHub Profile
@Dmi3yy
Dmi3yy / hits.php
Last active July 20, 2022 08:27
hits
//<?Hits % OnLogPageHit, OnBeforeDocFormSave, OnDocFormRender
if(!defined('MODX_BASE_PATH')){die('What are you doing? Get out of here!');}
/*
Hits 1.0.3 by Yurik Dertlyan | yurik@unix.am
update by Dmi3yy@gmail.com
Plugin for Evolution CMS to register and output page hits
Installation:
- SQL 'ALTER TABLE modx_site_content ADD COLUMN `hits` INT(10) UNSIGNED NOT NULL';
- Create plugin with name "Hits" and description "1.0.3"
@Dmi3yy
Dmi3yy / evo1.3.0-en.md
Last active August 27, 2017 23:53
Evolution 1.3

EVOLUTION CMS 1.3.0

The new release of EVO 1.3.0 runs under the name EVOLUTION CMS. Now updates will be released more often. About once a month there will be a fresh release instead of 1 release at half a year.

Just say a few words about future plans:

  • Starting with the current version we will have the correct versioning: http://semver.org/lang/ru/ I think this will be much more convenient and correct.
  • In the near future, work with the documentation site will be finished: docs.evo.im, and there will be a video of how to help with the documentation so that we can have everything in one place. Also, the documentation will be multilanguage.
  • Many additions from the kernel to the repository will be moved.
  • On the part of admin: removing mootools, translating them all in html and bootstrap.
  • Also in the plans of integrating composer and much more will be added soon to the roadmap.
@Dmi3yy
Dmi3yy / evo1.3.0.md
Last active July 19, 2017 08:21
Evolution CMS 1.3

EVOLUTION CMS 1.3.0

Новый релиз EVO 1.3.0 в первую очередь интересен тем что идет уже под именем EVOLUTION CMS. А так же интересен тем что теперь не будет отдельно моей кастомной сборки которая развивалась активней основной ветки. Это приведет к тому что теперь обновления будут выходить чаще, думаю раз в месяц будет свежий релиз а не так как было последнее время что у нас 1 релиз в пол года год.

Сразу скажу пару слов про планы на будущее:

  • Начиная с текущей версии у нас будет правильная версионность: http://semver.org/lang/ru/ думаю это будет куда как удобней и правильней.
  • В ближайшее время будет закончена работа с сайтом для документации: docs.evo.im, и сниму видео как помогать с документацией так что б собрать все в одном месте. Также документация будет сразу мультиязычной.
  • Так же будут перемещены многие дополнения из ядра в репозиторий.
  • По части админки: удаление motools, перевод всего html на бутстрап.
  • Так же в планах интеграция composer и многое другое, в скором времени собираюсь н
@Dmi3yy
Dmi3yy / widget.php
Created June 17, 2017 21:52
sample widgets for modx evo. 1.2.1-d9.1.6 +
//<?
$e = &$modx->Event;
switch($e->name){
case 'OnManagerWelcomeHome':
//if($_SESSION['mgrRole']!=='2') return;
//unset($widgets['welcome']);
//unset($widgets['onlineinfo']);
//unset($widgets['recentinfo']);
//unset($widgets['news']);

#Release 1.2 from 01.12.2016.

This release includes many changes and improvements that would make simpler of creating sites on MODX EVO.

More then 1000 commits

##On MODX Evolution 1.2 worked:

<?php
/*
* Получает имена и значения всех TV в одной категории для указанного документа
*
* version: 0.2
*
* Author:
* darksmoke from modx.im
* dsmoke@ukr.net
*
<?php
$core->event->params['TplMainOwner'] = '@CODE: <ul id="nav" class="menu level-1">[+dl.wrap+]</ul>';
$core->event->params['TplSubOwner'] = '@CODE: <ul class="sub-menu level-[+dl.currentDepth+]">[+dl.wrap+]</ul>';
$core->event->params['TplOneItem'] ='@CODE: <li id="menu-item-[+id+]" class="menu-item [+dl.class+]"><a href="[+url+]" title="[+e.title+]">[+title+]</a>[+dl.submenu+]</li>';
$core->event->params['addWhereList'] = 'c.hidemenu = 0';
$currentDepth = getkey($core->event->params, 'currentDepth', 1);
$currentTpl = getkey($core->event->params, 'TplDepth'.$currentDepth);
if(empty($currentTpl)){
$currentTpl = getkey($core->event->params, 'TplOneItem', '@CODE: <li>[+pagetitle+]</li>');

#Release 1.0.13 from 03.03.2014.

This release includes quite a few changes and improvements that would make simpler of creating sites on MODX EVO.

Fixes: 44
Refactoring: 42
Improvements: 24
Security: 1

#Релиз 1.0.13 от 03.03.2014.

Данный релиз включает довольно много исправлений а так же нововведений которые упростят разработку сайтов на MODX EVO.

Исправлений: 44
Рефактор: 42
Улучшений: 24
Безопасность: 1

##Над версией 1.0.13 работали:

@Dmi3yy
Dmi3yy / Asset.php
Created January 28, 2014 07:34
TSVpreReplace - Замена квадратных скобок в вызовах сниппетов, плейсхолдерах и TV
/**
* TSVpreReplace
*
* Замена квадратных скобок в вызовах сниппетов, плейсхолдерах и TV, находящихся между тегами <pre></pre>
*
* @author Serg24, update by Boomka
* @category plugin
* @version 1.0
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @internal @events OnLoadWebDocument