Skip to content

Commit

Permalink
Prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Apr 7, 2021
1 parent f7d7dd3 commit 4f848f1
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 6 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# (MODX)EvolutionCMS.snippets.ddGetDate changelog


## Version 2.2 (2021-04-07)
* \* Attention! PHP >= 5.6 is required.
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.48 is required.
* \+ You can just call `\DDTools\Snippet::runSnippet` to run the snippet without DB and eval (see README → Examples).
* \+ `\ddGetDate\Snippet`: The new class. All snippet code was moved here.
* \+ README.
* \+ README_ru.
* \+ CHANGELOG.
* \+ CHANGELOG_ru.
* \+ Composer.json.


## Version 2.1.2 (2014-07-13)
* \* Bugfix: undeclared variables in PHP 5.3.
* \* The redundant code has been removed.
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# (MODX)EvolutionCMS.snippets.ddGetDate changelog


## Версия 2.2 (2021-04-07)
* \* Внимание! Требуется PHP >= 5.6.
* \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.48.
* \+ Запустить сниппет без DB и eval можно через `\DDTools\Snippet::runSnippet` (см. примеры в README).
* \+ `\ddGetDate\Snippet`: Новый класс. Весь код сниппета перенесён туда.
* \+ README.
* \+ README_ru.
* \+ CHANGELOG.
* \+ CHANGELOG_ru.
* \+ Composer.json.


## Версия 2.1.2 (2014-07-13)
* \* Исправлена ошибка с обращением к не объявленным переменным (PHP 5.3).
* \* Удалён избыточный код.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Snippet returns the date in a specified format. It can also:
#### 1. Elements → Snippets: Create a new snippet with the following data

1. Snippet name: `ddGetDate`.
2. Description: `<b>2.1.2</b> Snippet returns the date in a specified format.`.
2. Description: `<b>2.2</b> Snippet returns the date in a specified format.`.
3. Category: `Core`.
4. Parse DocBlock: `no`.
5. Snippet code (php): Insert content of the `ddGetDate_snippet.php` file from the archive.
Expand Down
2 changes: 1 addition & 1 deletion README_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами

1. Название сниппета: `ddGetDate`.
2. Описание: `<b>2.1.2</b> Сниппет выводит дату по заданному формату.`.
2. Описание: `<b>2.2</b> Сниппет выводит дату по заданному формату.`.
3. Категория: `Core`.
4. Анализировать DocBlock: `no`.
5. Код сниппета (php): Вставьте содержимое файла `ddGetDate_snippet.php` из архива.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dd/evolutioncms-snippets-ddgetdate",
"type": "modxevo-snippet",
"version": "2.1.2",
"version": "2.2.0",
"description": "Snippet returns the date in a specified format.",
"keywords": [
"modx",
Expand Down
4 changes: 2 additions & 2 deletions ddGetDate_snippet.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/**
* ddGetDate
* @version 2.1.2 (2014-07-13)
* @version 2.2 (2021-04-07)
*
* @see README.md
*
* @link https://code.divandesign.biz/modx/ddgetdate
*
* @copyright 2009–2014 DD Group {@link https://DivanDesign.biz }
* @copyright 2009–2021 DD Group {@link https://DivanDesign.biz }
*/

//Include (MODX)EvolutionCMS.libraries.ddTools
Expand Down
2 changes: 1 addition & 1 deletion src/Snippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class Snippet extends \DDTools\Snippet {
protected
$version = '2.1.2',
$version = '2.2.0',

$params = [
//Defaults
Expand Down

0 comments on commit 4f848f1

Please sign in to comment.