SVG Support
ExtensionSafely 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 étoile
- 0 personne le suit
- 0 téléchargement
- GPL-2.0-or-later
-
2.5.5 Dernière
More error fixes and general clean up. Notes de version
Afficher 49 versions pas encore disponibles
Publications citées dans le journal des modifications de l’éditeur ou sur WordPress.org que le dépôt ne contient pas encore.
-
2.6.1 Pas encore disponible
-
2.5.4 Pas encore disponible Date de publication non indiquée
Fixed errors.
-
2.5.3 Pas encore disponible Date de publication non indiquée
Fixed fatal php error.
-
2.5.2 Pas encore disponible Date de publication non indiquée
Added some defaults for better security by default.
-
2.5.1 Pas encore disponible Date de publication non indiquée
Added missing quotes in uninstall.php.
-
2.5 Pas encore disponible Date de publication non indiquée
Cleaned up spelling mistakes and general formatting.
-
2.4.2 Pas encore disponible Date de publication non indiquée
Fixed srcset warning for some premium themes.
-
2.4.1 Pas encore disponible Date de publication non indiquée
Fixed issue causing WP-CLI to break.
-
2.4 Pas encore disponible Date de publication non indiquée
NEW FEATURE: Added optional SVG sanitization.
-
2.3.21 Pas encore disponible Date de publication non indiquée
Fixed featured image SVG overlapping container.
-
2.3.20 Pas encore disponible Date de publication non indiquée
Fixed admin setting not being escaped when output.
-
2.3.19 Pas encore disponible Date de publication non indiquée
Fixed PHP Warning from localizescript in functions/enqueue.php.
-
2.3.18 Pas encore disponible Date de publication non indiquée
Updated author URL in main plugin file.
-
2.3.17 Pas encore disponible Date de publication non indiquée
Added setting to choose whether to load frontend CSS or not.
-
2.3.16 Pas encore disponible Date de publication non indiquée
Fix for files that have the XML declaration.
-
2.3.15 Pas encore disponible Date de publication non indiquée
Had to roll back a recent PHP warnings fix due to it breaking some theme compatibility.
-
2.3.14 Pas encore disponible Date de publication non indiquée
Fixed: Fatal error in some cases when removing old option from the database.
-
2.3.13 Pas encore disponible Date de publication non indiquée
Fixed: PHP warnings and notices from the image widget when using SVG files and wpdebug was on.
-
2.3.12 Pas encore disponible Date de publication non indiquée
New: Native "Help" tab on the SVG Support settings page.
-
2.3.11 Pas encore disponible Date de publication non indiquée
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 Pas encore disponible Date de publication non indiquée
Fixed missing links in settings page.
-
2.3.9 Pas encore disponible Date de publication non indiquée
Modified plugin action meta link for settings page.
-
2.3.8 Pas encore disponible Date de publication non indiquée
Added some CSS to make sure featured images show on WooCommerce products, Sensei Courses and Lessons.
-
2.3.7 Pas encore disponible Date de publication non indiquée
Added WP version check to wrap mime fix function needed for WP v4.7.1 - v4.7.2.
-
2.3.6 Pas encore disponible Date de publication non indiquée
New: Added polyfill to make svgs-inline.js work with older browsers.
-
2.3.5 Pas encore disponible Date de publication non indiquée
Revision and modification of the thumbnail display code.
-
2.3.4 Pas encore disponible Date de publication non indiquée
Fix: Fatal error for some because a function wasn't prefixed.
-
2.3.3 Pas encore disponible Date de publication non indiquée
Fix: Missing arguments PHP warnings from new attribute control file.
-
2.3.2 Pas encore disponible Date de publication non indiquée
Modified the attribute control code that auto inserts our class to only apply to SVG files.
-
2.3.1 Pas encore disponible Date de publication non indiquée
Fix: Fatal error in some cases due to admin notice.
-
2.3 Pas encore disponible Date de publication non indiquée
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 Pas encore disponible Date de publication non indiquée
Changed text domain to match plugin slug for localization.
-
2.2.31 Pas encore disponible Date de publication non indiquée
Attempt to fix ability to translate
-
2.2.5 Pas encore disponible Date de publication non indiquée
FIX: Display SVG thumbnails in attachment modals.
-
2.2.4 Pas encore disponible Date de publication non indiquée
FIX: Added function to temporarily fix an issue with uploading in WP 4.7.1
-
2.2.3 Pas encore disponible Date de publication non indiquée
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 Pas encore disponible Date de publication non indiquée
Changed another anonymous function in svg-support/functions/thumbnail-display.php that was causing errors for some.
-
2.2.1 Pas encore disponible Date de publication non indiquée
Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.
-
2.2 Pas encore disponible Date de publication non indiquée
Added support to make SVG thumbnails visible in all media library screens.
-
2.1.7 Pas encore disponible Date de publication non indiquée
Tested in WordPress 4.0 and added plugin icons for the new interface.
-
2.1.6 Pas encore disponible Date de publication non indiquée
Added missing jQuery dependency in /functions/enqueue.php (pointed out by walbach) - was loading SVG Support JS before jQuery.
-
2.1.5 Pas encore disponible Date de publication non indiquée
Added Serbian translation, submitted by Ogi Djuraskovic.
-
2.1.4 Pas encore disponible Date de publication non indiquée
Fixed plugin settings link (on plugins page)
-
2.1.3 Pas encore disponible Date de publication non indiquée
Added pluginactionlinks file for custom menus on plugin page.
-
2.1.2 Pas encore disponible Date de publication non indiquée
Cleaned up trunk, tags and readme.txt to show correct changelog and update notice.
-
2.1.1 Pas encore disponible Date de publication non indiquée
Fixed JS file conditional - worked in local testing but not live.
-
2.1 Pas encore disponible Date de publication non indiquée
Updates to language files for localization.
-
2.0 Pas encore disponible Date de publication non indiquée
Added an admin settings page with instructions plus options for restricting to admin use only and setting a custom CSS target class.
-
1.0 Pas encore disponible Date de publication non indiquée
Initial Release.
Lisez-moi
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
Installer
composer require meteorgpl-plugin/svg-support
Les vérifications de licence de l’éditeur sont intactes : activez l’extension dans WordPress avec une clé de licence achetée auprès de l’éditeur.
Licence
Licence déclarée : GPL-2.0-or-later. Le code est redistribué sous la licence que l’éditeur a déclarée dans les en-têtes de l’extension. Profil de licence : gpl-full.
Les illustrations, polices, médias et documents susceptibles d’être soumis à une licence distincte ne sont pas redistribués ; la page sur les licences explique ce qui est remplacé ou supprimé, et l’onglet Sécurité le détaille par version. Le droit au support et aux mises à jour vient avec la licence que vous achetez auprès de l’éditeur.