Zum Hauptinhalt springen
MeteorGPLby WebbingApps

SVG Support

Plugin
Beobachten 0 Mit Stern markieren 0
Installieren

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.

  • 0 Sterne
  • 0 Beobachter
  • 0 Downloads
  • GPL-2.0-or-later

Versionen 1

Neueste zuerst · jede Version vor der Veröffentlichung gescannt
  1. 2.5.5 Neueste

    More error fixes and general clean up. Versionshinweise

    110 Dateien 330,7 KB Verifiziert

49 noch nicht verfügbare Versionen anzeigen

Releases, die im Changelog des Anbieters oder auf WordPress.org genannt werden und die das Repository noch nicht enthält.

  1. 2.6.1 Noch nicht verfügbar

    Auf WordPress.org veröffentlicht

  2. 2.5.4 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed errors.

    Changelog-Eintrag

  3. 2.5.3 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed fatal php error.

    Changelog-Eintrag

  4. 2.5.2 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added some defaults for better security by default.

    Changelog-Eintrag

  5. 2.5.1 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added missing quotes in uninstall.php.

    Changelog-Eintrag

  6. 2.5 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Cleaned up spelling mistakes and general formatting.

    Changelog-Eintrag

  7. 2.4.2 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed srcset warning for some premium themes.

    Changelog-Eintrag

  8. 2.4.1 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed issue causing WP-CLI to break.

    Changelog-Eintrag

  9. 2.4 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    NEW FEATURE: Added optional SVG sanitization.

    Changelog-Eintrag

  10. 2.3.21 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed featured image SVG overlapping container.

    Changelog-Eintrag

  11. 2.3.20 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed admin setting not being escaped when output.

    Changelog-Eintrag

  12. 2.3.19 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed PHP Warning from localizescript in functions/enqueue.php.

    Changelog-Eintrag

  13. 2.3.18 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Updated author URL in main plugin file.

    Changelog-Eintrag

  14. 2.3.17 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added setting to choose whether to load frontend CSS or not.

    Changelog-Eintrag

  15. 2.3.16 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fix for files that have the XML declaration.

    Changelog-Eintrag

  16. 2.3.15 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Had to roll back a recent PHP warnings fix due to it breaking some theme compatibility.

    Changelog-Eintrag

  17. 2.3.14 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed: Fatal error in some cases when removing old option from the database.

    Changelog-Eintrag

  18. 2.3.13 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed: PHP warnings and notices from the image widget when using SVG files and wpdebug was on.

    Changelog-Eintrag

  19. 2.3.12 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    New: Native "Help" tab on the SVG Support settings page.

    Changelog-Eintrag

  20. 2.3.11 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    New: Feature to use expanded JS file rather than the minified/compressed version (useful for bundling and minifying using external caching p...

    Changelog-Eintrag

  21. 2.3.10 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed missing links in settings page.

    Changelog-Eintrag

  22. 2.3.9 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Modified plugin action meta link for settings page.

    Changelog-Eintrag

  23. 2.3.8 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added some CSS to make sure featured images show on WooCommerce products, Sensei Courses and Lessons.

    Changelog-Eintrag

  24. 2.3.7 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added WP version check to wrap mime fix function needed for WP v4.7.1 - v4.7.2.

    Changelog-Eintrag

  25. 2.3.6 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    New: Added polyfill to make svgs-inline.js work with older browsers.

    Changelog-Eintrag

  26. 2.3.5 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Revision and modification of the thumbnail display code.

    Changelog-Eintrag

  27. 2.3.4 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fix: Fatal error for some because a function wasn't prefixed.

    Changelog-Eintrag

  28. 2.3.3 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fix: Missing arguments PHP warnings from new attribute control file.

    Changelog-Eintrag

  29. 2.3.2 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Modified the attribute control code that auto inserts our class to only apply to SVG files.

    Changelog-Eintrag

  30. 2.3.1 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fix: Fatal error in some cases due to admin notice.

    Changelog-Eintrag

  31. 2.3 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    New Feature - Advanced Mode: allows you to turn off the advanced features and simply upload SVG files like normal images. This addition also...

    Changelog-Eintrag

  32. 2.2.32 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Changed text domain to match plugin slug for localization.

    Changelog-Eintrag

  33. 2.2.31 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Attempt to fix ability to translate

    Changelog-Eintrag

  34. 2.2.5 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    FIX: Display SVG thumbnails in attachment modals.

    Changelog-Eintrag

  35. 2.2.4 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    FIX: Added function to temporarily fix an issue with uploading in WP 4.7.1

    Changelog-Eintrag

  36. 2.2.3 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    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...

    Changelog-Eintrag

  37. 2.2.2 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Changed another anonymous function in svg-support/functions/thumbnail-display.php that was causing errors for some.

    Changelog-Eintrag

  38. 2.2.1 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.

    Changelog-Eintrag

  39. 2.2 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added support to make SVG thumbnails visible in all media library screens.

    Changelog-Eintrag

  40. 2.1.7 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Tested in WordPress 4.0 and added plugin icons for the new interface.

    Changelog-Eintrag

  41. 2.1.6 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added missing jQuery dependency in /functions/enqueue.php (pointed out by walbach) - was loading SVG Support JS before jQuery.

    Changelog-Eintrag

  42. 2.1.5 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added Serbian translation, submitted by Ogi Djuraskovic.

    Changelog-Eintrag

  43. 2.1.4 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed plugin settings link (on plugins page)

    Changelog-Eintrag

  44. 2.1.3 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added pluginactionlinks file for custom menus on plugin page.

    Changelog-Eintrag

  45. 2.1.2 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Cleaned up trunk, tags and readme.txt to show correct changelog and update notice.

    Changelog-Eintrag

  46. 2.1.1 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Fixed JS file conditional - worked in local testing but not live.

    Changelog-Eintrag

  47. 2.1 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Updates to language files for localization.

    Changelog-Eintrag

  48. 2.0 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Added an admin settings page with instructions plus options for restricting to admin use only and setting a custom CSS target class.

    Changelog-Eintrag

  49. 1.0 Noch nicht verfügbar Veröffentlichungsdatum nicht angegeben

    Initial Release.

    Changelog-Eintrag

SVG 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

  1. Basic Settings
  2. Advanced Settings
  3. Featured Image checkbox to render SVG inline
  4. SVG used in WP native Image Widget (since 4.9)
  5. Inline SVG in the front end markup
  6. Help tab - Overview
  7. Help tab - The Settings
  8. Help tab - Standard Usage
  9. Help tab - Render SVG Inline (advanced usage)
  10. Help tab - Featured Images
  11. 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

Installieren

composer require meteorgpl-plugin/svg-support

Die Lizenzprüfungen des Anbieters sind unverändert: Aktivieren Sie das Plugin in WordPress mit einem beim Anbieter gekauften Lizenzschlüssel.

Lizenz

Deklarierte Lizenz: GPL-2.0-or-later. Der Code wird unter der Lizenz weiterverbreitet, die der Anbieter in den eigenen Headern des Plugins deklariert hat. Lizenzprofil: gpl-full.

Grafiken, Schriften, Medien und Dokumente, die möglicherweise separat lizenziert sind, werden nicht weiterverbreitet; die Lizenzseite erklärt, was ersetzt oder entfernt wird, und der Sicherheits-Tab listet es pro Version auf. Der Anspruch auf Support und Updates ergibt sich aus der Lizenz, die Sie beim Anbieter kaufen.

Feedback senden

Was funktioniert, was nicht, was fehlt: Ein paar Worte helfen.

Nur wenn Sie eine Antwort möchten.

Wird in Ihrem Browser aufgenommen, ohne dieses Fenster. Passwörter, Ihre Eingaben in Formularen, Schlüssel und Tokens werden als graue Blöcke ausgelassen; vor dem Senden können Sie weitere Bereiche verbergen. Screenshots bewahren wir 90 Tage auf.

Wir speichern es mit der Seitenadresse, Ihrer Sprache, der Fenstergröße, dem Browser und der IP-Adresse, und Ihrer E-Mail-Adresse, wenn Sie eine angeben. IP-Adresse und Browser werden nach 90 Tagen gelöscht. Datenschutzerklärung.

Alle Sprachen