Resource icon

SVG Template by Xon V2.3.4

No permission to download
Compatible XF Versions
  1. 2.0.x
  2. 2.1.x
  3. 2.2.x
Depending on configuration, this add-on requires webserver URL rewrite support!

Allows SVG (Scalable Vector Graphics) images to be stored as templates. This creates a new svg.php file in the XF root directory.

To generate a link to an SVG template;

Code:

{{ getSvgUrl('tempate.svg') }}
Under Board information, if "Use Full Friendly URLs" (useFriendlyUrls) is set the URL generated is:

Code:

/data/svg/<style_id>/<langauge_id>/<style_last_modified>/<templateName>.svg
Otherwise

Code:

svg.php?svg=<templateName>&s=<style_id>&l=<langauge_id>&d=<style_last_modified>
Nginx URL rewrite config

Code:


location ^~ /data/svg/ {
access_log off;
rewrite ^/data/svg/([^/]+)/([^/]+)/([^/]+)/([^\.]+).svg$ /svg.php?svg=$4&s=$1&l=$2&d=$3 last;
return 403;
}
Author
anne51
Views
58
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from anne51

Latest updates

  1. 2.3.4 - Maintenance update

    Support getSvgUrlAs('tenplate.svg', 'png') in style properties
  2. 2.3.4 - Maintenance update

    Support getSvgUrlAs('tenplate.svg', 'png') in style properties