Skip to content

Commit

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


## Version 2.3 (2023-06-03)
* \+ Parameters → `operator` → Valid values → `'isIncludes'`: The new valid value. Case-sensitive check if `operand1` contains `operand2` (see README → Examples).
* \* `\ddTools::getTpl` is used instead of `$modx->getTpl` (means a bit less bugs).
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.


## Version 2.2 (2021-04-30)
* \+ Parameters → `operator`:
* \+ Added the ability to check if `operand1` is just white space (see README).
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# (MODX)EvolutionCMS.snippets.ddIf changelog


## Версия 2.3 (2023-06-03)
* \+ Параметры → `operator` → Допустимые значения → `'isIncludes'`: Новое значение. Проверяет, содержит ли `operand1` в себе `operand2` с учётом регистра, (см. README → Примеры).
* \* `\ddTools::getTpl` используется вместо `$modx->getTpl` (стало чуть меньше багов).
* \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.60.


## Версия 2.2 (2021-04-30)
* \+ Параметры → `operator`:
* \+ Добавлена возможность проверить, что строка `operand1` содержит только пробельные символы (см. README).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ require_once(
#### 1. Elements → Snippets: Create a new snippet with the following data

1. Snippet name: `ddIf`.
2. Description: `<b>2.2</b> This snippet compares different values and returns required chunk or string.`.
2. Description: `<b>2.3</b> This snippet compares different values and returns required chunk or string.`.
3. Category: `Core`.
4. Parse DocBlock: `no`.
5. Snippet code (php): Insert content of the `ddIf_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 @@ -41,7 +41,7 @@ require_once(
#### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами

1. Название сниппета: `ddIf`.
2. Описание: `<b>2.2</b> Сравнивает значения и выводит необходимый чанк или строку.`.
2. Описание: `<b>2.3</b> Сравнивает значения и выводит необходимый чанк или строку.`.
3. Категория: `Core`.
4. Анализировать DocBlock: `no`.
5. Код сниппета (php): Вставьте содержимое файла `ddIf_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-ddif",
"type": "modxevo-snippet",
"version": "2.2.0",
"version": "2.3.0",
"description": "This snippet compares different values and returns required chunk or string.",
"keywords": [
"modx",
Expand Down
4 changes: 2 additions & 2 deletions ddIf_snippet.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/**
* ddIf
* @version 2.2 (2021-04-30)
* @version 2.3 (2023-06-03)
*
* @see README.md
*
* @link https://code.divandesign.ru/modx/ddif
*
* @copyright 2012–2021 Ronef {@link https://Ronef.ru }
* @copyright 2012–2023 Ronef {@link https://Ronef.ru }
*/

//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.2.0',
$version = '2.3.0',

$params = [
//Defaults
Expand Down

0 comments on commit 845ef80

Please sign in to comment.