Releases: DivanDesign/EvolutionCMS.snippets.ddStringTools
Releases · DivanDesign/EvolutionCMS.snippets.ddStringTools
Version 2.2
Version 2.1
- + Parameters →
tools->typographer->optAlign_useClasses
: The new parameter. Allows to use CSS classes instead of inline styles for optical alignment (<span class="oa_comma_b">
instead of<span style="margin-right:-0.2em;">
). - *
\ddTools::getTpl
is used instead of$modx->getTpl
(means a bit less bugs). - + Composer.json →
autoload
. - * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.60 is required.
- * Attention! (MODX)EvolutionCMS.snippets.ddTypograph >= 2.6 is required (if the
tools->typographer
parameter is used).
Version 2.0
- * Attention! Backward compatibility is broken.
- * Attention! PHP >= 5.6 is required.
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.48.2 is required.
- * Attention! (MODX)EvolutionCMS.snippets.ddTypograph >= 2.5 is required.
- - The following outdated parameters is not supported anymore (use the
tools
parameter instead):- -
specialCharsToHTMLEntities
. - -
removePlaceholders
. - -
escapeForJS
. - -
URLEncode
. - -
toUppercase
. - -
toLowercase
. - -
parseMarkdown
. - -
typography
. - -
typography_params
. - -
stripTags
. - -
stripTags_allowed
.
- -
- + Parameters →
tools
: Can also be set as HJSON. - + You can just call
\DDTools\Snippet::runSnippet
to run the snippet without DB and eval (see README → Examples). - +
\ddStringTools\Snippet
: The new class. All snippet code was moved here. - +
\ddStringTools\Tool\Tplparser\Tool::modify_exec
: Less fragile code, now placeholders can be either an array or an object. - *
\ddStringTools\Tool\Typographer\Tool::modify_exec
:- *
\DDTools\Snippet::runSnippet
is used instead of$modx->runSnippet
for running theddTypograph
snippet without DB and eval. - * Less fragile code,
\DDTools\ObjectTools::extend
is used instead ofarray_merge
.
- *
- * README:
- + Links → Packagist.
- * Documentation:
- + Installation → Using (MODX)EvolutionCMS.libraries.ddInstaller.
- * Parameters description: Text improvements.
- + README_ru.
- + Composer.json →
support
.
Version 1.7
- + Added the ability to perform a regular expression search and replace (see README):
- +
ddStringTools\Tool\Pregreplacer\Tool
. - + Snippet → Parameters:
- +
tools->pregReplacer
: The new parameter. - +
tools->pregReplacer->pattern
: The new parameter. - +
tools->pregReplacer->replacement
: The new parameter.
- +
- +
Version 1.6
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.38.1 is required.
- + Parameters →
inputString
: Can also be set as a PHP object or array (e. g. for calls through$modx->runSnippet
). In this case, it will be converted to JSON first. - * Small refactoring.
- + README:
- + Documentation → Examples → Call through
$modx->runSnippet
. - - Home page.
- + Links.
- + Documentation → Examples → Call through
- + CHANGELOG: Style and text improvements.
- + CHANGELOG_ru.
- * Composer.json:
- +
homepage
. - +
authors
. - *
require
:- *
dd/evolutioncms-libraries-ddtools
: Renamed fromdd/modxevo-library-ddtools
. - *
dd/evolutioncms-snippets-ddtypograph
: Renamed fromdd/modxevo-snippet-ddtypograph
.
- *
- +
Version 1.5.2
- *
tools->charEscaper->lineBreaks
: Line breaks will be replaced to'\r\n'
instead of space. - * Small refactoring.
Version 1.5.1
- * Snippet: A tool will not be applied to an empty string.
Version 1.5
- * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.35 is required.
- * The new snippet structure (see README):
- + Added the ability to use multiple tools together with the required order.
- - The following parameters were removed (with backward compatibility):
- -
toLowercase
. - -
toUppercase
. - -
parseMarkdown
. - -
typography
. - -
typography_params
. - -
stripTags
. - -
stripTags_allowed
. - -
specialCharsToHTMLEntities
. - -
removePlaceholders
. - -
escapeForJS
. - -
URLEncode
.
- -
- + The following parameters were added:
- +
tools
. - +
tools->caseConverter
. - +
tools->caseConverter->toLower
. - +
tools->caseConverter->toUpper
. - +
tools->markdownParser
. - +
tools->markdownParser->parseInline
. - +
tools->typographer
. - +
tools->typographer->optAlign
. - +
tools->typographer->text_paragraphs
. - +
tools->typographer->text_autoLinks
. - +
tools->typographer->etc_unicodeConvert
. - +
tools->typographer->noTags
. - +
tools->typographer->excludeTags
. - +
tools->tagRemover
. - +
tools->tagRemover->allowed
. - +
tools->specialCharConverter
. - +
tools->charEscaper
. - +
tools->urlEncoder
. - +
tools->placeholderRemover
.
- +
- + Snippet: The following parameters added (see README):
- +
tools->charEscaper->backslashes
. - +
tools->charEscaper->lineBreaks
. - +
tools->charEscaper->tabs
. - +
tools->charEscaper->modxPlaceholders
. - +
tools->charEscaper->quotes
. - +
tools->tplParser
. - +
tools->tplParser->tpl
. - +
tools->tplParser->placeholders
.
- +
- * Composer.json: Fixed versions format.
Version 1.4
- + Added the ability to remove placeholders like
[+placeholder+]
. - * Refactoring, the
$modx->getConfig
method is used instead of the$modx->config
field. - * README:
- * Style changes.
- * Documentation → Parameters description: Small order changes.
- + Composer.json → Require.
Version 1.3
- * Attention! EvolutionCMS.libraries.ddTools >= 0.27 is required (because not tested in older versions).
- * Attention! EvolutionCMS.snippets.ddTypograph >= 2.4 is required if the
typography
parameter is used. - + Added the ability to text typography (see the
typography
parameter). - + README → Documentation:
- + Installation instructions.
- + Parameters description.
- + Examples.
- + Composer.json.