You are viewing an old version of this page. Return to the latest version.
(→Installation[edit]) |
(→Installation[edit]) |
The NativeSvgHandler extension allows SVG files to by served directly to clients for client-side rendering.
NativeSvgHandler
in your extensions/
folder.
require_once"$IP/extensions/NativeSvgHandler/NativeSvgHandler.php";
class="s2">/extensions/NativeSvgHandler/NativeSvgHandler.php";
Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
The '''NativeSvgHandler''' extension allows SVG files to by served directly to clients for client-side rendering. ==<span id="Installation" class="mw-headline">Installation</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:NativeSvgHandler&action=edit§ion=1" title="Edit section: Installation">edit]</span></span>== * [https://github.com/p12tic/NativeSvgHandler/archive/master.zip Download] and place the file(s) in a directory called <code>NativeSvgHandler</code> in your <code>extensions/</code> folder. * Add the following code at the bottom of your [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:LocalSettings.php LocalSettings.php]:<div class="mw-highlight mw-content-ltr" dir="ltr"></div> require_once<nowiki>"$IP/extensions/NativeSvgHandler/NativeSvgHandler.php";</nowiki> class="s2">/extensions/NativeSvgHandler/NativeSvgHandler.php"<span class="p">;</span> '''Done''' - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Line 7: | Line 7: | ||
require_once<nowiki>"$IP/extensions/NativeSvgHandler/NativeSvgHandler.php";</nowiki> | require_once<nowiki>"$IP/extensions/NativeSvgHandler/NativeSvgHandler.php";</nowiki> | ||
− | |||
− | |||
'''Done''' - Navigate to Special:Version on your wiki to verify that the extension is successfully installed. | '''Done''' - Navigate to Special:Version on your wiki to verify that the extension is successfully installed. |