Skip to content
Snippets Groups Projects
Commit ef538968 authored by Johannes Kreiner's avatar Johannes Kreiner
Browse files

[TASK] Release version 7.1.0

parent 094dace0
No related branches found
No related tags found
No related merge requests found
......@@ -48,13 +48,18 @@ final class CropOppositeViewHelper extends AbstractViewHelper {
$this->registerArgument('maxCharacters', 'int', 'Place where to truncate the string', TRUE);
$this->registerArgument('append', 'string', 'What to append, if truncation happened', FALSE, '…');
$this->registerArgument(
'respectWordBoundaries', 'bool',
'If TRUE and division is in the middle of a word, the remains of that word is removed.', FALSE, TRUE
'respectWordBoundaries',
'bool',
'If TRUE and division is in the middle of a word, the remains of that word is removed.',
FALSE,
TRUE
);
}
public static function renderStatic(
array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext
array $arguments,
\Closure $renderChildrenClosure,
RenderingContextInterface $renderingContext
): string {
$maxCharacters = (int) $arguments['maxCharacters'];
$append = (string) $arguments['append'];
......@@ -81,7 +86,11 @@ final class CropOppositeViewHelper extends AbstractViewHelper {
* @param bool $cropToSpace If true then crop will be applied at nearest space.
* @return string The processed input value.
*/
private static function crop(string $content, int $numberOfChars, string $replacementForEllipsis, bool $cropToSpace
private static function crop(
string $content,
int $numberOfChars,
string $replacementForEllipsis,
bool $cropToSpace
): string {
if (!$numberOfChars || $numberOfChars < 1 || !(mb_strlen($content, 'utf-8') > abs($numberOfChars))) {
return $content;
......@@ -96,4 +105,4 @@ final class CropOppositeViewHelper extends AbstractViewHelper {
return str_replace($cropResult, '', $content);
}
}
\ No newline at end of file
}
......@@ -4,7 +4,7 @@
"description": "A solution for embedding YouTube videos, playlists, or channels easily into TYPO3 pages.",
"homepage": "https://www.sgalinski.de",
"license": "GPL-2.0-or-later",
"version": "7.0.0",
"version": "7.1.0",
"require": {
"typo3/cms-core": "^12.4.0"
},
......
......@@ -32,7 +32,7 @@ $EM_CONF['sg_youtube'] = [
'author_email' => 'stefan@sgalinski.de',
'author_company' => 'sgalinski Internet Services (https://www.sgalinski.de)',
'state' => 'stable',
'version' => '7.0.0',
'version' => '7.1.0',
'constraints' => [
'depends' => [
'typo3' => '12.4.0-12.4.99',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment