Skip to content

Instantly share code, notes, and snippets.

View Dmi3yy's full-sized avatar

Dmytro Lukianenko Dmi3yy

View GitHub Profile
@Dmi3yy
Dmi3yy / evo1.4.0.en.md
Created January 25, 2018 10:50
evo.1.4.0.en

Evolution CMS 1.4.0

For half a year, a lot of work has been done (more than 600 comets), this is the second major release of Evolution CMS, the first one can be read here (http://modx.im/blog/news/5311.html). The main emphasis in this release was aimed at the stability of the system, as well as updating the old snippets for new ones. What makes it possible to create sites even faster, and even work sites will be even faster. In this we are very much helped by DocLister.

Of the most important:

  • Updated demo site all old components are replaced with new ones, old components are rendered in extras and are not recommended for use.  - Ditto -> DocLister  - Wayfinder -> DLMenu  - Breadcrumbs -> DLCrumbs  - Eform -> FormLister
@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:

@Dmi3yy
Dmi3yy / gist:2d54571209afcb770d95
Last active October 1, 2016 20:25
Elements Tab in Tree
//<?php
//OnManagerTreePrerender,OnManagerTreeRender
//Autor: Dmi3yy
//Version: 0.1
if($_SESSION['mgrRole']=='1') {
$e = &$modx->Event;
if($e->name == 'OnManagerTreePrerender'){
$output = '
<style>
@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
//<?php
//***********************************
// TVCurrencyConverter plugin v1.1 for MODx 1.0.x
//***********************************
// Eugeny `zk` Krylov - http://nopreset.ru
// Support topic: http://modx-shopkeeper.ru/forum/viewtopic.php?id=239
//***********************************
// Description: TV Currency Converter
// Configuration: &tv_price=TV цены;string;цена &tv_valuta=TV цены в валюте;string;доллары &id_curr=id ресурса с курсом;string;1 &tv_curr=TV курса;string;курс
@Dmi3yy
Dmi3yy / gist:7246860
Created October 31, 2013 09:31
cheats sampe
<?php include '../inc/header.php'; ?>
<div class="container">
<div class="row">
<div class="col-md-6">
<h3><a name="ditto" href="#wayfinder">Wayfinder</a></h3>
<h4><a name="wayfinderpar" href="#wayfinderpar">Parameters</a></h4>
<pre class="prettyprint lang-php">
//Шаблон родителей текущего пункта меню
&activeParentRowTpl=`false`
//Шаблон вывода категории
@Dmi3yy
Dmi3yy / ph.snippet.php
Last active December 17, 2015 22:59
ph snippet PHx alternative
<?php
/*
* Замена PHx для обработки плейсхолдеров
* Версия: 0.1
* Пример: [[ph? &fn=`mydate` &input=`[*pub_date*]` &options=`%d-%m-%Y %H:%M`]]
* Автор: Dmi3yy (dmi3yy@gmail.com)
*/
$output = isset($input)?$input:'';
$options = isset($options)?$options:'';
$fn = isset($fn)?$fn:'none';