Version Description
- Add admin settings page with instructions plus options for restricting to admin use only and setting a custom CSS target class.
- Whole plugin completely re-written and re-structured.
- Added option to restrict SVG uploads to administrators only.
- Added field for custom CSS target class.
- Added stylesheet to admin settings page.
Download this release
Release Info
Developer | Benbodhi |
Plugin | SVG Support |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.0
- languages/{svgsupport-en_AU.mo → svg-support-en_AU.mo} +0 -0
- languages/svg-support-en_AU.po +58 -0
- languages/svgsupport-en_AU.po +0 -224
- readme.txt +4 -12
- svg-support.php +4 -4
languages/{svgsupport-en_AU.mo → svg-support-en_AU.mo}
RENAMED
Binary file
|
languages/svg-support-en_AU.po
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: SVG Support v1.0\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2014-07-22 06:51:40+0000\n"
|
7 |
+
"Last-Translator: GoWebben <info@gowebben.com>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Generator: CSL v1.x\n"
|
14 |
+
"X-Poedit-Language: English\n"
|
15 |
+
"X-Poedit-Country: AUSTRALIA\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
18 |
+
"X-Poedit-Basepath: ../\n"
|
19 |
+
"X-Poedit-Bookmarks: \n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
"X-Textdomain-Support: yes"
|
22 |
+
|
23 |
+
#. translators: plugin header field 'Name'
|
24 |
+
#: svg-support.php:0
|
25 |
+
#@ svg-support
|
26 |
+
msgid "SVG Support"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#. translators: plugin header field 'PluginURI'
|
30 |
+
#: svg-support.php:0
|
31 |
+
#@ svg-support
|
32 |
+
msgid "http://gowebben.com/"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#. translators: plugin header field 'Description'
|
36 |
+
#: svg-support.php:0
|
37 |
+
#@ svg-support
|
38 |
+
msgid "Allows SVG file uploads plus direct styling of SVG elements using CSS."
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#. translators: plugin header field 'Author'
|
42 |
+
#: svg-support.php:0
|
43 |
+
#@ svg-support
|
44 |
+
msgid "Benbodhi"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#. translators: plugin header field 'AuthorURI'
|
48 |
+
#: svg-support.php:0
|
49 |
+
#@ svg-support
|
50 |
+
msgid "http://benbodhi.com"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#. translators: plugin header field 'Version'
|
54 |
+
#: svg-support.php:0
|
55 |
+
#@ svg-support
|
56 |
+
msgid "1.0"
|
57 |
+
msgstr ""
|
58 |
+
|
languages/svgsupport-en_AU.po
DELETED
@@ -1,224 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: SVG Support v2.1\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: 2014-07-23 11:21:54+0000\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Generator: CSL v1.x\n"
|
14 |
-
"X-Poedit-Language: \n"
|
15 |
-
"X-Poedit-Country: \n"
|
16 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
18 |
-
"X-Poedit-Basepath: \n"
|
19 |
-
"X-Poedit-Bookmarks: \n"
|
20 |
-
"X-Poedit-SearchPath-0: .\n"
|
21 |
-
"X-Textdomain-Support: yes"
|
22 |
-
|
23 |
-
#: admin/admin-init.php:12
|
24 |
-
#@ svgsupport
|
25 |
-
msgid "SVG Support Options and Instructions"
|
26 |
-
msgstr ""
|
27 |
-
|
28 |
-
#. translators: plugin header field 'Name'
|
29 |
-
#: admin/admin-init.php:13
|
30 |
-
#: svg-support.php:0
|
31 |
-
#@ svgsupport
|
32 |
-
msgid "SVG Support"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: admin/admin-init.php:26
|
36 |
-
#@ svgsupport
|
37 |
-
msgid "You can't play with this."
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: admin/svgs-settings-page.php:4
|
41 |
-
#@ svgsupport
|
42 |
-
msgid "SVG Support Settings and Usage"
|
43 |
-
msgstr ""
|
44 |
-
|
45 |
-
#: admin/svgs-settings-page.php:12
|
46 |
-
#@ svgsupport
|
47 |
-
msgid "Introduction"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: admin/svgs-settings-page.php:15
|
51 |
-
#@ svgsupport
|
52 |
-
msgid "When using SVG images on your WordPress site, it can be hard to style elements within the SVG using CSS. <strong>Now you can, easily!</strong>"
|
53 |
-
msgstr ""
|
54 |
-
|
55 |
-
#: admin/svgs-settings-page.php:16
|
56 |
-
#@ svgsupport
|
57 |
-
msgid "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 <code>style-svg</code> to your IMG elements, this plugin dynamically replaces any IMG elements containing the <code>style-svg</code> class with your complete SVG."
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: admin/svgs-settings-page.php:17
|
61 |
-
#@ svgsupport
|
62 |
-
msgid "The main purpose of this is to allow styling of SVG elements. Usually your styling options are restricted when using <code>embed</code>, <code>object</code> or <code>img</code> tags alone."
|
63 |
-
msgstr ""
|
64 |
-
|
65 |
-
#: admin/svgs-settings-page.php:34
|
66 |
-
#@ svgsupport
|
67 |
-
msgid "Settings"
|
68 |
-
msgstr ""
|
69 |
-
|
70 |
-
#: admin/svgs-settings-page.php:46
|
71 |
-
#@ svgsupport
|
72 |
-
msgid "Restrict to Administrators"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: admin/svgs-settings-page.php:51
|
76 |
-
#@ svgsupport
|
77 |
-
msgid "Yes"
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#: admin/svgs-settings-page.php:51
|
81 |
-
#@ svgsupport
|
82 |
-
msgid " Restricts SVG upload priveledges to Administrators."
|
83 |
-
msgstr ""
|
84 |
-
|
85 |
-
#: admin/svgs-settings-page.php:56
|
86 |
-
#@ svgsupport
|
87 |
-
msgid "CSS Class to target"
|
88 |
-
msgstr ""
|
89 |
-
|
90 |
-
#: admin/svgs-settings-page.php:59
|
91 |
-
#@ svgsupport
|
92 |
-
msgid "The default target class is <code>style-svg</code>. You can change it to your own class such as <code>my-class</code> by typing it here.<br />Leave blank to use the default class."
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: admin/svgs-settings-page.php:65
|
96 |
-
#@ svgsupport
|
97 |
-
msgid "Save Changes"
|
98 |
-
msgstr ""
|
99 |
-
|
100 |
-
#: admin/svgs-settings-page.php:76
|
101 |
-
#@ svgsupport
|
102 |
-
msgid "Usage"
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#: admin/svgs-settings-page.php:79
|
106 |
-
#@ svgsupport
|
107 |
-
msgid "You can simply upload SVG images to your media library like any other file."
|
108 |
-
msgstr ""
|
109 |
-
|
110 |
-
#: admin/svgs-settings-page.php:80
|
111 |
-
#@ svgsupport
|
112 |
-
msgid "Now, embed your SVG image like a standard image with the addition of adding the class <code>style-svg</code> (or your custom class from above) to any IMG tags that you want this plugin to swap out with your actual SVG code."
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: admin/svgs-settings-page.php:81
|
116 |
-
#@ svgsupport
|
117 |
-
msgid "For example:"
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: admin/svgs-settings-page.php:84
|
121 |
-
#@ svgsupport
|
122 |
-
msgid "or"
|
123 |
-
msgstr ""
|
124 |
-
|
125 |
-
#: admin/svgs-settings-page.php:87
|
126 |
-
#@ svgsupport
|
127 |
-
msgid "The whole IMG tag element will now be dynamically replaced by the actual code of your SVG, making the inner content targetable."
|
128 |
-
msgstr ""
|
129 |
-
|
130 |
-
#: admin/svgs-settings-page.php:88
|
131 |
-
#@ svgsupport
|
132 |
-
msgid "This allows you to target elements within your SVG using CSS."
|
133 |
-
msgstr ""
|
134 |
-
|
135 |
-
#: admin/svgs-settings-page.php:90
|
136 |
-
#@ svgsupport
|
137 |
-
msgid "Note: Your uploaded image needs to be an SVG file for this plugin to replace the img tag with the inline SVG code. It will not create SVG files for you."
|
138 |
-
msgstr ""
|
139 |
-
|
140 |
-
#: admin/svgs-settings-page.php:107
|
141 |
-
#@ svgsupport
|
142 |
-
msgid "Features"
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: admin/svgs-settings-page.php:110
|
146 |
-
#@ svgsupport
|
147 |
-
msgid "SVG Support for your media library"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: admin/svgs-settings-page.php:111
|
151 |
-
#@ svgsupport
|
152 |
-
msgid "Style SVG elements directly using CSS"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#: admin/svgs-settings-page.php:112
|
156 |
-
#@ svgsupport
|
157 |
-
msgid "Restrict to Administrators only"
|
158 |
-
msgstr ""
|
159 |
-
|
160 |
-
#: admin/svgs-settings-page.php:113
|
161 |
-
#@ svgsupport
|
162 |
-
msgid "Extremely Simple To Use"
|
163 |
-
msgstr ""
|
164 |
-
|
165 |
-
#: admin/svgs-settings-page.php:121
|
166 |
-
#@ svgsupport
|
167 |
-
msgid "About the plugin"
|
168 |
-
msgstr ""
|
169 |
-
|
170 |
-
#: admin/svgs-settings-page.php:123
|
171 |
-
#@ svgsupport
|
172 |
-
msgid "You can read about this plugin in detail on"
|
173 |
-
msgstr ""
|
174 |
-
|
175 |
-
#: admin/svgs-settings-page.php:123
|
176 |
-
#@ svgsupport
|
177 |
-
msgid "The WordPress Plugin Repository"
|
178 |
-
msgstr ""
|
179 |
-
|
180 |
-
#: admin/svgs-settings-page.php:124
|
181 |
-
#@ svgsupport
|
182 |
-
msgid "Need help?"
|
183 |
-
msgstr ""
|
184 |
-
|
185 |
-
#: admin/svgs-settings-page.php:124
|
186 |
-
#@ svgsupport
|
187 |
-
msgid "Visit Support"
|
188 |
-
msgstr ""
|
189 |
-
|
190 |
-
#: admin/svgs-settings-page.php:125
|
191 |
-
#@ svgsupport
|
192 |
-
msgid "from"
|
193 |
-
msgstr ""
|
194 |
-
|
195 |
-
#. translators: plugin header field 'PluginURI'
|
196 |
-
#: svg-support.php:0
|
197 |
-
#@ svgsupport
|
198 |
-
msgid "http://wordpress.org/plugins/svg-support/"
|
199 |
-
msgstr ""
|
200 |
-
|
201 |
-
#. translators: plugin header field 'Description'
|
202 |
-
#: svg-support.php:0
|
203 |
-
#@ svgsupport
|
204 |
-
msgid "Allow SVG file uploads using the WordPress Media Library uploader plus direct styling of SVG elements using CSS."
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#. translators: plugin header field 'Author'
|
208 |
-
#: svg-support.php:0
|
209 |
-
#@ svgsupport
|
210 |
-
msgid "Benbodhi"
|
211 |
-
msgstr ""
|
212 |
-
|
213 |
-
#. translators: plugin header field 'AuthorURI'
|
214 |
-
#: svg-support.php:0
|
215 |
-
#@ svgsupport
|
216 |
-
msgid "http://benbodhi.com"
|
217 |
-
msgstr ""
|
218 |
-
|
219 |
-
#. translators: plugin header field 'Version'
|
220 |
-
#: svg-support.php:0
|
221 |
-
#@ svgsupport
|
222 |
-
msgid "2.1"
|
223 |
-
msgstr ""
|
224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,11 +4,11 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: svg, vector, css, style, mime, mime type, embed, img, inline
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
@@ -106,10 +106,6 @@ I will put the answers to any questions asked here.
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
-
= 2.1 =
|
110 |
-
|
111 |
-
* Updates to language files for localization.
|
112 |
-
|
113 |
= 2.0 =
|
114 |
|
115 |
* Add admin settings page with instructions plus options for restricting to admin use only and setting a custom CSS target class.
|
@@ -124,17 +120,13 @@ I will put the answers to any questions asked here.
|
|
124 |
|
125 |
== Upgrade Notice ==
|
126 |
|
127 |
-
= 2.1 =
|
128 |
-
|
129 |
-
* Updated language files for localization that were missed in version 2.0.
|
130 |
-
|
131 |
= 2.0 =
|
132 |
|
133 |
-
|
134 |
|
135 |
= 1.0 =
|
136 |
|
137 |
-
|
138 |
|
139 |
== Translations ==
|
140 |
|
4 |
Tags: svg, vector, css, style, mime, mime type, embed, img, inline
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Allows SVG file uploads plus direct styling of SVG elements using CSS.
|
12 |
|
13 |
== Description ==
|
14 |
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
109 |
= 2.0 =
|
110 |
|
111 |
* Add admin settings page with instructions plus options for restricting to admin use only and setting a custom CSS target class.
|
120 |
|
121 |
== Upgrade Notice ==
|
122 |
|
|
|
|
|
|
|
|
|
123 |
= 2.0 =
|
124 |
|
125 |
+
SVG Support has been completely re-written and re-structured. It now includes an admin settings page with instructions, plus options for restricting to admin use only and setting a custom CSS target class.
|
126 |
|
127 |
= 1.0 =
|
128 |
|
129 |
+
Initial Release.
|
130 |
|
131 |
== Translations ==
|
132 |
|
svg-support.php
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
/*
|
3 |
Plugin Name: SVG Support
|
4 |
Plugin URI: http://wordpress.org/plugins/svg-support/
|
5 |
-
Description:
|
6 |
Author: Benbodhi
|
7 |
Author URI: http://benbodhi.com
|
8 |
Text Domain: svgsupport
|
9 |
Domain Path: /languages
|
10 |
License: GPL2
|
11 |
-
Version: 2.
|
12 |
*/
|
13 |
/* Copyright 2013 Benbodhi (email : wp@benbodhi.com)
|
14 |
|
@@ -29,14 +29,14 @@ Version: 2.1
|
|
29 |
/********************************************
|
30 |
* GLOBAL VARIABLES
|
31 |
********************************************/
|
32 |
-
$plugin_version = '2.
|
33 |
define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
|
34 |
$bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table
|
35 |
|
36 |
/********************************************
|
37 |
* INCLUDES - keeping it modular
|
38 |
********************************************/
|
39 |
-
include( BODHI_SVGS_PLUGIN_PATH . 'functions/localization.php' );
|
40 |
include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-init.php' ); // initialize admin menu & settings
|
41 |
include( BODHI_SVGS_PLUGIN_PATH . 'functions/mime-types.php' ); // setup mime types support for SVG
|
42 |
include( BODHI_SVGS_PLUGIN_PATH . 'functions/enqueue.php' ); // enqueue js & css for inline replacement
|
2 |
/*
|
3 |
Plugin Name: SVG Support
|
4 |
Plugin URI: http://wordpress.org/plugins/svg-support/
|
5 |
+
Description: Allows SVG file uploads plus direct styling of SVG elements using CSS.
|
6 |
Author: Benbodhi
|
7 |
Author URI: http://benbodhi.com
|
8 |
Text Domain: svgsupport
|
9 |
Domain Path: /languages
|
10 |
License: GPL2
|
11 |
+
Version: 2.0
|
12 |
*/
|
13 |
/* Copyright 2013 Benbodhi (email : wp@benbodhi.com)
|
14 |
|
29 |
/********************************************
|
30 |
* GLOBAL VARIABLES
|
31 |
********************************************/
|
32 |
+
$plugin_version = '2.0'; // for use on admin pages
|
33 |
define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
|
34 |
$bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table
|
35 |
|
36 |
/********************************************
|
37 |
* INCLUDES - keeping it modular
|
38 |
********************************************/
|
39 |
+
include( BODHI_SVGS_PLUGIN_PATH . 'functions/localization.php' ); // setup localization & languages
|
40 |
include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-init.php' ); // initialize admin menu & settings
|
41 |
include( BODHI_SVGS_PLUGIN_PATH . 'functions/mime-types.php' ); // setup mime types support for SVG
|
42 |
include( BODHI_SVGS_PLUGIN_PATH . 'functions/enqueue.php' ); // enqueue js & css for inline replacement
|