SVG Support
PluginSafely upload SVG files to the Media Library with optional sanitization and minification. Render your SVG files inline for direct styling/animation of an SVG's internal elements.
- 0 stelle
- 0 lo seguono
- 0 download
- GPL-2.0-or-later
-
2.5.5 Più recente
More error fixes and general clean up. Note di rilascio
Mostra 49 versioni non ancora disponibili
Release indicate nel changelog del produttore o su WordPress.org che il repository non ha ancora.
-
2.6.1 Non ancora disponibile
-
2.5.4 Non ancora disponibile Data di rilascio non indicata
Fixed errors.
-
2.5.3 Non ancora disponibile Data di rilascio non indicata
Fixed fatal php error.
-
2.5.2 Non ancora disponibile Data di rilascio non indicata
Added some defaults for better security by default.
-
2.5.1 Non ancora disponibile Data di rilascio non indicata
Added missing quotes in uninstall.php.
-
2.5 Non ancora disponibile Data di rilascio non indicata
Cleaned up spelling mistakes and general formatting.
-
2.4.2 Non ancora disponibile Data di rilascio non indicata
Fixed srcset warning for some premium themes.
-
2.4.1 Non ancora disponibile Data di rilascio non indicata
Fixed issue causing WP-CLI to break.
-
2.4 Non ancora disponibile Data di rilascio non indicata
NEW FEATURE: Added optional SVG sanitization.
-
2.3.21 Non ancora disponibile Data di rilascio non indicata
Fixed featured image SVG overlapping container.
-
2.3.20 Non ancora disponibile Data di rilascio non indicata
Fixed admin setting not being escaped when output.
-
2.3.19 Non ancora disponibile Data di rilascio non indicata
Fixed PHP Warning from localizescript in functions/enqueue.php.
-
2.3.18 Non ancora disponibile Data di rilascio non indicata
Updated author URL in main plugin file.
-
2.3.17 Non ancora disponibile Data di rilascio non indicata
Added setting to choose whether to load frontend CSS or not.
-
2.3.16 Non ancora disponibile Data di rilascio non indicata
Fix for files that have the XML declaration.
-
2.3.15 Non ancora disponibile Data di rilascio non indicata
Had to roll back a recent PHP warnings fix due to it breaking some theme compatibility.
-
2.3.14 Non ancora disponibile Data di rilascio non indicata
Fixed: Fatal error in some cases when removing old option from the database.
-
2.3.13 Non ancora disponibile Data di rilascio non indicata
Fixed: PHP warnings and notices from the image widget when using SVG files and wpdebug was on.
-
2.3.12 Non ancora disponibile Data di rilascio non indicata
New: Native "Help" tab on the SVG Support settings page.
-
2.3.11 Non ancora disponibile Data di rilascio non indicata
New: Feature to use expanded JS file rather than the minified/compressed version (useful for bundling and minifying using external caching p...
-
2.3.10 Non ancora disponibile Data di rilascio non indicata
Fixed missing links in settings page.
-
2.3.9 Non ancora disponibile Data di rilascio non indicata
Modified plugin action meta link for settings page.
-
2.3.8 Non ancora disponibile Data di rilascio non indicata
Added some CSS to make sure featured images show on WooCommerce products, Sensei Courses and Lessons.
-
2.3.7 Non ancora disponibile Data di rilascio non indicata
Added WP version check to wrap mime fix function needed for WP v4.7.1 - v4.7.2.
-
2.3.6 Non ancora disponibile Data di rilascio non indicata
New: Added polyfill to make svgs-inline.js work with older browsers.
-
2.3.5 Non ancora disponibile Data di rilascio non indicata
Revision and modification of the thumbnail display code.
-
2.3.4 Non ancora disponibile Data di rilascio non indicata
Fix: Fatal error for some because a function wasn't prefixed.
-
2.3.3 Non ancora disponibile Data di rilascio non indicata
Fix: Missing arguments PHP warnings from new attribute control file.
-
2.3.2 Non ancora disponibile Data di rilascio non indicata
Modified the attribute control code that auto inserts our class to only apply to SVG files.
-
2.3.1 Non ancora disponibile Data di rilascio non indicata
Fix: Fatal error in some cases due to admin notice.
-
2.3 Non ancora disponibile Data di rilascio non indicata
New Feature - Advanced Mode: allows you to turn off the advanced features and simply upload SVG files like normal images. This addition also...
-
2.2.32 Non ancora disponibile Data di rilascio non indicata
Changed text domain to match plugin slug for localization.
-
2.2.31 Non ancora disponibile Data di rilascio non indicata
Attempt to fix ability to translate
-
2.2.5 Non ancora disponibile Data di rilascio non indicata
FIX: Display SVG thumbnails in attachment modals.
-
2.2.4 Non ancora disponibile Data di rilascio non indicata
FIX: Added function to temporarily fix an issue with uploading in WP 4.7.1
-
2.2.3 Non ancora disponibile Data di rilascio non indicata
Modified code in svg-support/js/svg-inline.js and svg-support/js/min/svg-inline-min.js to allow JS control of the SVG elements and detect if...
-
2.2.2 Non ancora disponibile Data di rilascio non indicata
Changed another anonymous function in svg-support/functions/thumbnail-display.php that was causing errors for some.
-
2.2.1 Non ancora disponibile Data di rilascio non indicata
Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.
-
2.2 Non ancora disponibile Data di rilascio non indicata
Added support to make SVG thumbnails visible in all media library screens.
-
2.1.7 Non ancora disponibile Data di rilascio non indicata
Tested in WordPress 4.0 and added plugin icons for the new interface.
-
2.1.6 Non ancora disponibile Data di rilascio non indicata
Added missing jQuery dependency in /functions/enqueue.php (pointed out by walbach) - was loading SVG Support JS before jQuery.
-
2.1.5 Non ancora disponibile Data di rilascio non indicata
Added Serbian translation, submitted by Ogi Djuraskovic.
-
2.1.4 Non ancora disponibile Data di rilascio non indicata
Fixed plugin settings link (on plugins page)
-
2.1.3 Non ancora disponibile Data di rilascio non indicata
Added pluginactionlinks file for custom menus on plugin page.
-
2.1.2 Non ancora disponibile Data di rilascio non indicata
Cleaned up trunk, tags and readme.txt to show correct changelog and update notice.
-
2.1.1 Non ancora disponibile Data di rilascio non indicata
Fixed JS file conditional - worked in local testing but not live.
-
2.1 Non ancora disponibile Data di rilascio non indicata
Updates to language files for localization.
-
2.0 Non ancora disponibile Data di rilascio non indicata
Added an admin settings page with instructions plus options for restricting to admin use only and setting a custom CSS target class.
-
1.0 Non ancora disponibile Data di rilascio non indicata
Initial Release.
Readme
GPL-2.0-or-laterSVG Support
Safely upload SVG files to the Media Library with optional sanitization and minification. Render your SVG files inline for direct styling/animation of an SVG's internal elements.
Safely upload SVG files to your media library and use them like any other image. Now with optional sanitization!
But SVG Support has more features!!! Read on to learn more.
When using SVG images on your WordPress site, it can be hard to style elements within the SVG using CSS. Now you can, easily!
Scalable Vector Graphics (SVG) are becoming common place in modern web design, allowing you to embed images with small file sizes that are scalable to any visual size without loss of quality.
This plugin not only provides SVG Support like the name says, it also allows you to easily embed your full SVG file's code using a simple IMG tag.
By adding the class "style-svg" to your IMG elements (or outer containers), this plugin dynamically replaces any IMG elements containing an SVG in the src that are found inside the target class with your complete SVG code, rendering it inline.
The main purpose of this is to allow styling and animation of your SVG elements. Usually your styling options are restricted when using embed, object or img tags alone.
Features
- SVG Support for your media library
- Sanitize SVG uploads
- Minify SVG files
- Inline your SVG code
- Style SVG elements directly using CSS
- Animate SVG elements using CSS and JS
- Super easy settings page with instructions
- Restrict SVG upload ability to Administrators only
- Set custom target class (can be used on outer elements as of 2.4)
- Extremely Simple To Use - Simplifies complex usage of SVG files
Faq
SVG not rendering inline since 2.3 update
SVG Support 2.3 includes a new settings section called "Advanced Mode". Users that were inlining SVG files need to make sure this setting is checked. Go to your dashboard > Settings > SVG Support and check "Advanced Mode". All of your original settings should still be there.
How do I disable the Javascript on the front end if I am not using inline SVG?
If you go to Settings > SVG Support in your admin dashboard, you can choose to enable "Advanced Mode" or not. If you leave it disabled, the advanced functionality and extraneous script is removed.
I'm trying to use SVG in the customizer but it's not working.
To allow SVG to work in the customizer, you will need to modify/add some code in your child theme's function file. Here is a great tutorial on how to do that. The important part is:
'flex-width' => true 'flex-height' => true
How do I add animation to my SVG?
You will need to edit your SVG file in a code editor so you can add CSS classes to each element you need to target within the SVG. Make sure that your IMG tag is being swapped out for your inline SVG and then you can use CSS or JS to apply animations to elements within your SVG file.
Why is SVG Support not working in multisite?
If you installed multisite prior to WordPress 3.5, then you will need to remove your ms-files. Here is a couple of resources to help you: Dumping ms-files Removing ms-files after 3.5.
Why is my SVG not working in Visual Composer?
If you are using SVG Support with Visual Composer or any other page builders, you will need to make sure that you can add your own class to the image. The easiest way to do this is by using a simple text or code block in the builder to put your image code in to. Additionally, there is now a setting to force all SVG files to be rendered inline.
How do I get this to work with the Media Library Assistant plugin?
You need to add the mime type for svg and svgz to: "MLA Settings > Media Library Assistant > Uploads (tab)" and then it works.
Screenshots
- Basic Settings
- Advanced Settings
- Featured Image checkbox to render SVG inline
- SVG used in WP native Image Widget (since 4.9)
- Inline SVG in the front end markup
- Help tab - Overview
- Help tab - The Settings
- Help tab - Standard Usage
- Help tab - Render SVG Inline (advanced usage)
- Help tab - Featured Images
- Help tab - Animation
Upgrade Notice
2.5.5
Updating to 2.5+ Adds new features and addresses a number of earlier issues raised. Please take a backup before updating! 2.5.5 fixes more reported errors in the 2.5 series of updates.
2.5.4
Updating to 2.5+ Adds new features and addresses a number of earlier issues raised. Please take a backup before updating! 2.5.4 fixes errors in the 2.5 series of updates.
2.5.3
Updating to 2.5+ Adds new features and addresses a number of earlier issues raised. Please take a backup before updating! 2.5.3 fixes fatal error in 2.5.2.
2.5.2
Updating to 2.5+ Adds new features and addresses a number of earlier issues raised. Please take a backup before updating! 2.5.2 introduces some defaults for better security.
2.5.1
2.5 Adds new features and addresses a number of recent issues raised. Please take a backup before updating! 2.5.1 fixes the uninstall file.
2.5
Adds new features and addresses a number of recent issues raised. Please take a backup before updating!
2.4.2
2.4.2 fixes srcset issue firing PHP warnings for some themes and original image IDs missing on replacement to inline SVG.
2.4.1
2.4.1 fixes broken WP-CLI. Now featuring optional SVG sanitization and ability to target nested SVGs! This update contains a lot, please BACKUP YOUR DATABASE AND FILES BEFORE UPDATING!
2.4
Now featuring optional SVG sanitization and ability to target nested SVGs! This update contains a lot, please BACKUP YOUR DATABASE AND FILES BEFORE UPDATING!
2.3.21
Fixes featured image display on edit post screen.
2.3.20
Added more security.
2.3.19
Quick update to address PHP warnings from localize_script and to add a SRC check.
2.3.18
General clean up of plugin, testing on latest nightly build plus fixed issue with metadata being removed from non SVG attachments.
2.3.17
Added a setting to choose whether to load the frontend CSS file or not. It was previously enabled by default, so you may want to flick that on after the update. This allows you to leave it out so your site has one less file to load :)
2.3.16
This update addresses upload issues, PHP warnings and some frontend CSS changes with attachment display.
2.3.15
Had to roll back a recent PHP warnings fix due to it breaking some theme compatibility.
2.3.14
Fixes fatal error in some cases when removing old option from the database.
2.3.13
Update to address PHP warnings and notices on the image widget when wp_debug is enabled.
2.3.12
- Wrapped the inline JS so you can call the inline function at will using
bodhisvgsInlineSupport();. Added a native help tab. Removed the admin update notice. Did some general clean up of code and settings page. As always, it's best to take a full backup of your site before running any updates.
2.3.11
- New Features and Fixes! Now you can force ALL of your SVG files (old and new) to be rendered inline in a single click with the new "Force Inline SVG" setting. You can also choose to use an expanded version of the inline JS if you want to minify it separately using a caching plugin or similar.
2.3.10
- Fixed missing links in settings page.
2.3.9
- Cleaned up some code and language, now stores less meta when not needed and added a plugin recommendation for Image Optimization.
2.3.8
- Adds better support for WooCommerce and Sensei. Fixes issue with featured images not showing up when auto insert class setting is on.
2.3.7
- Fixes issues with media library not loading for some, attachment-modal errors and adds some wider compatibility.
2.3.6
- Adds support for older browsers, fixes a couple of seemingly isolated errors reported, removes some redundant code.
2.3.5
- Modifications to thumbnail display code to prevent output buffer clash with another plugin.
2.3.4
- Fixes fatal error for some because a function wasn't prefixed.
2.3.3
- This update fixes some PHP warnings introduced in 2.3.2 and also has updated settings page text.
2.3.2
- Changes
Installa
composer require meteorgpl-plugin/svg-support
I controlli di licenza del produttore sono intatti: attiva il plugin in WordPress con una chiave di licenza acquistata dal produttore.
Licenza
Licenza dichiarata: GPL-2.0-or-later. Il codice è ridistribuito con la licenza dichiarata dal produttore nelle intestazioni del plugin stesso. Profilo di licenza: gpl-full.
Grafica, font, media e documenti che possono avere una licenza separata non vengono ridistribuiti; la pagina sulle licenze spiega cosa viene sostituito o rimosso e la scheda sicurezza lo elenca per ogni versione. Il diritto a supporto e aggiornamenti è incluso nella licenza che acquisti dal produttore.