Resource icon

Svg Template by Xon 2.7.0

No permission to download
  • Require StandardLib v1.23.0+
  • php 8.4+ compatibility fixes
  • Prevent XF2.3 injecting the template name for admins into SVG templates
  • Fix separate <style> chunks in .svg templates would get rendered in reverse order
  • Fix a missing xmlns=http://www.w3.org/2000/svg attribute on the <svg> tag could cause compatibility issues
  • Fix LESS in .svg templates wasn't correctly supported, and CSS in a svg template's <style> tag without XML escaped attributes would error.
  • Add "getSvgAsInlineCss" template method to automate pulling .svg template files and in-lining them into .less templates
  • Like
Reactions: goyo
  • Fix falsy template name for svg's wasn't supported (ie 0.svg)
  • Fix style variant support for getSvgUrl/getSvgUrlAs could fail when using property_variation() template method
  • Provide a better error message when getSvgUrl is used to request a png of an svg when svg => png rendering isn't setup
  • Fix XF2.3 style variations support for getSvgUrl() in style properties
  • Requires StandardLib v1.19.0+
  • If installed, requires Redis Cache 2.17.0+
  • XF2.3 compatibility update
  • php 8.4 compatibility fix
  • Fix "[E_DEPRECATED] strlen(): Passing null to parameter #1 ($string) of type string is deprecated" when attempting to save a new template with an invalid name
  • Fix internal server error being generated instead of a 404 when requesting an invalid svg
This add-on is now avaliable on atelieraphelion.com
  • Require php 7.2+
  • Require StandardLib v1.18.0+
  • If using resvg support, recommend updating to v0.35.0.
    Pre-compiled linux x86_64 binary has been made available here.
    Compiled on CentOS 7, works on Ubuntu 18.04/20.04/22.04
  • Document using resvg v0.35.0+ with "CLI - Pipe" mode, which avoid temporary files when converting SVGs to PNGs
    Example using resvg v0.35.0+, configure CLI - Pipe command with;
    Code:
    /usr/local/bin/resvg --quiet --resources-dir=/tmp/ - -c
  • Like
Reactions: akok
  • Fix SVG template validation was broken which could result in preventing adding a language or style from working correctly (or rebuilding master data)
  • Fix error running "xf:rebuild-master-data" when the exact template directory structure is missing and the SVG template is the first template compiled for that style.
  • Fix possible compatibility issues with other add-ons extending SV/StandardLib's template helper code
Back
Top Bottom