From: Vincent Vanwaelscappel Date: Tue, 27 Feb 2024 11:03:59 +0000 (+0100) Subject: wip #6753 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=22b9979802f46f2926fa3eec2003d304b16e3dec;p=fluidbook-toolbox.git wip #6753 @1 --- diff --git a/app/Fluidbook/Compiler/Tabs.php b/app/Fluidbook/Compiler/Tabs.php index 4be7cf026..6a33d201e 100644 --- a/app/Fluidbook/Compiler/Tabs.php +++ b/app/Fluidbook/Compiler/Tabs.php @@ -52,14 +52,13 @@ trait Tabs $svg = $this->wdir . '/' . $this->fluidbookSettings->tabsHTML5; - $opt = SVGTools::optimizeSVG($svg, null, '--trim-ids no --remove-unreferenced-ids no --ungroup-groups no --group-by-style no', true); - - $svgContent = file_get_contents($opt); - $svgContent = str_replace('_1_', '', $svgContent, $count); - if ($count) { - file_put_contents($opt, $svgContent); - } + $opt = str_replace('.svg', '.o.svg', $this->wdir . '/' . $this->fluidbookSettings->tabsHTML5); + $svgContent = file_get_contents($svg); + $svgContent = str_replace('_1_', '', $svgContent); + $svgContent = str_replace('xmlns:xlink="http://www.w3.org/1999/xlink"', '',$svgContent); + $svgContent = SVGTools::addDimensionsAttributes($svgContent); + file_put_contents($opt, $svgContent); $this->vdir->copy($opt, 'data/tabs.svg'); $this->config->svgTabs = true;