Skip to content

Commit

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


## Version 1.4 (2023-09-04)
* \+ You can just call `\DDTools\Snippet::runSnippet` to run the snippet without DB and eval (see README → Examples).
* \+ README → Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
* \+ README_ru, CHANGELOG_ru.
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.


## Version 1.3.1 (2020-06-22)
* \* Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.40.1 is required (not tested in older versions).
* \* Compatibility with new versions of (MODX)EvolutionCMS.libraries.ddTools.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# (MODX)EvolutionCMS.snippets.ddGetParentId changelog


## Версия 1.4 (2023-09-04)
* \+ Запустить сниппет без DB и eval можно через `\DDTools\Snippet::runSnippet` (см. README → Примеры).
* \+ README → Установка → Используя (MODX)EvolutionCMS.libraries.ddInstaller.
* \+ README_ru, CHANGELOG_ru.
* \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.60.


## Версия 1.3.1 (2020-06-22)
* \* Внимание! Требуется (MODX)EvolutionCMS.libraries.ddTools >= 0.40.1 (не тестировался с более ранними версиями).
* \* Совместимость с новыми версиями (MODX)EvolutionCMS.libraries.ddTools.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ require_once(
#### 1. Elements → Snippets: Create a new snippet with the following data

1. Snippet name: `ddGetParentId`.
2. Description: `<b>1.3.1</b> Gets document parent ID(s) of the required level.`.
2. Description: `<b>1.4</b> Gets document parent ID(s) of the required level.`.
3. Category: `Core`.
4. Parse DocBlock: `no`.
5. Snippet code (php): Insert content of the `ddGetParentId_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 @@ -40,7 +40,7 @@ require_once(
#### 1. Элементы → Сниппеты: Создайте новый сниппет со следующими параметрами

1. Название сниппета: `ddGetParentId`.
2. Описание: `<b>1.3.1</b> Получает ID родителя(ей) необходимого уровня.`.
2. Описание: `<b>1.4</b> Получает ID родителя(ей) необходимого уровня.`.
3. Категория: `Core`.
4. Анализировать DocBlock: `no`.
5. Код сниппета (php): Вставьте содержимое файла `ddGetParentId_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-ddgetparentid",
"type": "modxevo-snippet",
"version": "1.3.1",
"version": "1.4.0",
"description": "Gets document parent ID(s) of the required level.",
"keywords": [
"modx",
Expand Down
4 changes: 2 additions & 2 deletions ddGetParentId_snippet.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/**
* ddGetParentId
* @version 1.3.1 (2020-06-22)
* @version 1.4 (2023-09-04)
*
* @see README.md
*
* @link https://code.divandesign.ru/modx/ddgetparentid
*
* @copyright 2011–2020 Ronef {@link https://Ronef.ru }
* @copyright 2011–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 = '1.3.1',
$version = '1.4.0',

$params = [
//Defaults
Expand Down

0 comments on commit c767dbf

Please sign in to comment.