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

[TASK] Release version 6.1.0

parent fddf413e
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
namespace SGalinski\SgJobs\ViewHelpers;
namespace SGalinski\SgJobs\ViewHelpers;
use Exception;
use SimpleXMLElement;
......@@ -60,7 +60,10 @@ class RenderSvgViewHelper extends AbstractTagBasedViewHelper {
public function initializeArguments(): void {
parent::initializeArguments();
$this->registerArgument(
'name', 'string', 'The SVG name, also supports folders (e.g. fontawesome/solid/ad)', TRUE
'name',
'string',
'The SVG name, also supports folders (e.g. fontawesome/solid/ad)',
TRUE
);
$this->registerArgument(
'color',
......@@ -96,7 +99,10 @@ class RenderSvgViewHelper extends AbstractTagBasedViewHelper {
);
$this->registerArgument('preserveColors', 'boolean', 'Preserves the original colors');
$this->registerArgument(
'createColorAttribute', 'boolean', 'Creates the color target for cases when it doesn\'t exist.', FALSE,
'createColorAttribute',
'boolean',
'Creates the color target for cases when it doesn\'t exist.',
FALSE,
FALSE
);
}
......@@ -232,7 +238,7 @@ class RenderSvgViewHelper extends AbstractTagBasedViewHelper {
}
if ($createColorAttribute) {
$element->addAttribute('fill', $fill);
} else if (isset($element->attributes()->fill)) {
} elseif (isset($element->attributes()->fill)) {
$element->attributes()->fill = $fill;
}
}
......@@ -250,7 +256,7 @@ class RenderSvgViewHelper extends AbstractTagBasedViewHelper {
}
if ($createColorAttribute) {
$element->addAttribute('stroke', $stroke);
} else if (isset($element->attributes()->stroke)) {
} elseif (isset($element->attributes()->stroke)) {
$element->attributes()->stroke = $stroke;
}
}
......
......@@ -6,7 +6,7 @@
"license": [
"GPL-2.0-or-later"
],
"version": "6.0.0",
"version": "6.1.0",
"support": {
"issues": "https://gitlab.sgalinski.de/typo3/sg_jobs"
},
......
......@@ -4,7 +4,7 @@ $EM_CONF['sg_jobs'] = [
'title' => 'Jobs',
'description' => 'Manage and display your Job offers.',
'category' => 'plugin',
'version' => '6.0.0',
'version' => '6.1.0',
'state' => 'stable',
'author' => 'Stefan Galinski',
'author_email' => 'stefan@sgalinski.de',
......
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