SVG Support - Version 2.3.12

Version Description

  • New: Native "Help" tab on the SVG Support settings page.
  • New: Wrapped the inline JS in a function so you can call it at will using bodhisvgsInlineSupport();.
  • Modified: Admin CSS to target SVG src only.
  • Modified: SVG Support settings page - cleaned it up a little.
  • Removed: Version update admin notice.
Download this release

Release Info

Developer Benbodhi
Plugin Icon 128x128 SVG Support
Version 2.3.12
Comparing to
See all releases

Code changes from version 2.3.11 to 2.3.12

admin/admin-init.php CHANGED
@@ -17,7 +17,12 @@ function bodhi_svgs_admin_menu() {
17
  'manage_options',
18
  'svg-support',
19
  'bodhi_svg_support_settings_page'
20
- );
 
 
 
 
 
21
 
22
  }
23
  add_action( 'admin_menu', 'bodhi_svgs_admin_menu' );
17
  'manage_options',
18
  'svg-support',
19
  'bodhi_svg_support_settings_page'
20
+ );
21
+
22
+ // load the help menu on the SVG Support settings page
23
+ add_action( 'load-' . $bodhi_svgs_options_page, 'bodhi_svgs_help_tab' );
24
+
25
+ require( BODHI_SVGS_PLUGIN_PATH . 'admin/svgs-settings-page-help.php' );
26
 
27
  }
28
  add_action( 'admin_menu', 'bodhi_svgs_admin_menu' );
admin/svgs-settings-page-help.php ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Add SVG Support help tab to the top of the settings page
4
+ */
5
+ if ( ! defined( 'ABSPATH' ) ) {
6
+ exit; // Exit if accessed directly
7
+ }
8
+
9
+ function bodhi_svgs_help_tab () {
10
+
11
+ $screen = get_current_screen();
12
+
13
+ /**
14
+ * Overview Tab
15
+ */
16
+ // overview tab content
17
+ $bodhi_svgs_help_tab_overview = '<h3>' . __( 'Overview', 'svg-support' ) . '</h3>';
18
+
19
+ $bodhi_svgs_help_tab_overview .= '<p>' . __( 'At it\'s core, SVG Support allows you to upload SVG files and use them as you would any regular image with the added benefit of being scalable and looking great on any screen size, no matter what size it\'s displayed. Additionally, SVG file sizes are (more often than not) much smaller than conventional image formats.', 'svg-support' ) . '</p><p>' . __( 'Even this most basic of usage is very powerful for modern websites, however, there\'s lots of cool stuff you can do with SVG files!', 'svg-support' ) . '</p><p>' . __( 'SVG Support features an "Advanced Mode" which toggles extra features, allowing you to take more control of how your SVG files are used. By rendering SVG files inline, it opens up a huge number of possibilities including animations, embedded links within the SVG, odd shaped link areas, custom CSS targeting elements within the SVG and whole lot more!', 'svg-support' ) . '</p><p>' . __( 'So let\'s get into some more details! Simply click the tabs to the left to get more of an understanding of how powerful SVG Support is.', 'svg-support' ) . '</p>';
20
+
21
+ // register overview tab
22
+ $screen->add_help_tab( array(
23
+ 'id' => 'bodhi_svgs_help_tab-overview',
24
+ 'title' => __( 'Overview', 'svg-support' ),
25
+ 'content' => $bodhi_svgs_help_tab_overview
26
+ ));
27
+
28
+ /**
29
+ * The Settings Tab
30
+ */
31
+ // the settings tab content
32
+ $bodhi_svgs_help_tab_the_settings = '<h3>' . __( 'The Settings', 'svg-support' ) . '</h3>';
33
+
34
+ $bodhi_svgs_help_tab_the_settings .= '<p><strong>' . __( 'Restrict To Administrators:', 'svg-support' ) . '</strong><br>' . __( 'SVG files are actually XML code, so allowing regular users to upload them can pose serious security risks. Please leave this checked unless you really know what you\'re doing.', 'svg-support' ) . '</p>';
35
+
36
+ $bodhi_svgs_help_tab_the_settings .= '<p><strong>' . __( 'Enable Advanced Mode:', 'svg-support' ) . '</strong><br>' . __( 'When using SVG files like regular images just isn\'t enough ;)', 'svg-support' ) . '<br>' . __( 'Enabling "Advanced Mode" displays options to give you more control over how you use SVG files on your site. It also includes extra JS on the front end, so leave this disabled unless you\'re actually using any of the advanced features.', 'svg-support' ) . '</p>';
37
+
38
+ $bodhi_svgs_help_tab_the_settings .= '<p><strong>' . __( 'Output JS in Footer:', 'svg-support' ) . '</strong><br>' . __( 'This setting allows you to choose whether the SVG Support JS file is enqueued in the header or the footer of the site. Usually you would enqueue in the footer unless you need it to be loaded sooner for some reason.', 'svg-support' ) . '</p>';
39
+
40
+ $bodhi_svgs_help_tab_the_settings .= '<p><strong>' . __( 'Use Expanded JS:', 'svg-support' ) . '</strong><br>' . __( 'This setting gives you the choice of JS file that is enqueued, the full expanded version or the minified version. You would usually enqueue the minified version, but if you want to bundle the JS file using a caching or minification plugin or similar, then you might want to enqueue the expanded, non-minified version.', 'svg-support' ) . '</p>';
41
+
42
+ $bodhi_svgs_help_tab_the_settings .= '<p><strong>' . __( 'CSS Class To Target:', 'svg-support' ) . '</strong><br>' . __( 'This allows you to set your own custom class that you will use in your SVG source IMG tags that you would like rendered inline. For example, it might be easier for you to remember to add the class "inline-svg" or something, in which case you would use your desired class name in this field to be used across your site.', 'svg-support' ) . '</p>';
43
+
44
+ $bodhi_svgs_help_tab_the_settings .= '<p><strong>' . __( 'Automatically Insert Class:', 'svg-support' ) . '</strong><br>' . __( 'When this is checked, you won\'t have to add the class to your SVG files during the embed process in the editor. When you pick your SVG, it will be placed in the editor with just the SVG Support class and others stripped. It does not change existing code, it\'s only a helper to allow you to quickly embed your SVG files and have them render inline without having to fiddle with the classes.', 'svg-support' ) . '</p>';
45
+
46
+ $bodhi_svgs_help_tab_the_settings .= '<p><strong>' . __( 'Force Inline SVG:', 'svg-support' ) . '</strong><br>' . __( 'This feature is to force all SVG files that are found in your site to be rendered inline. This can help if you aren\'t able to set a custom class on your IMG tags for some reason, usually when used in theme options or page builder elements.', 'svg-support' ) . '</p>';
47
+
48
+ // register the settings tab
49
+ $screen->add_help_tab( array(
50
+ 'id' => 'bodhi_svgs_help_tab-the_settings',
51
+ 'title' => __( 'The Settings', 'svg-support' ),
52
+ 'content' => $bodhi_svgs_help_tab_the_settings
53
+ ));
54
+
55
+ /**
56
+ * Standard Usage Tab
57
+ */
58
+ // standard usage tab content
59
+ $bodhi_svgs_help_tab_usage_standard = '<h3>' . __( 'Standard Usage', 'svg-support' ) . '</h3>';
60
+
61
+ $bodhi_svgs_help_tab_usage_standard .= '<p>' . __( 'You can simply upload SVG files to your media library like any other image. Make sure to select "Restrict to Administrators" if you only want to allow admins to upload SVG files.', 'svg-support' ) . '</p>';
62
+
63
+ // register standard usage tab
64
+ $screen->add_help_tab( array(
65
+ 'id' => 'bodhi_svgs_help_tab_usage-standard',
66
+ 'title' => __( 'Standard Usage', 'svg-support' ),
67
+ 'content' => $bodhi_svgs_help_tab_usage_standard
68
+ ));
69
+
70
+ /**
71
+ * Inline SVG Tab
72
+ */
73
+ // inline SVG tab content
74
+ $bodhi_svgs_help_tab_inlining_svg = '<h3>' . __( 'Render SVG Inline', 'svg-support' ) . '</h3>';
75
+
76
+ $bodhi_svgs_help_tab_inlining_svg .= '<p>' . __( 'You can embed your SVG image like any standard image with the addition of adding the class <code>style-svg</code> (or your custom class) to any IMG tags that you want this plugin to swap out with your actual SVG code.', 'svg-support' ) . '<br>' . __( 'For example:', 'svg-support' ) . '</p>';
77
+
78
+ $bodhi_svgs_help_tab_inlining_svg .= '<pre><code>&lt;img class="style-svg" alt="alt-text" src="image-source.svg" /&gt;</code></pre>' . __( 'or', 'svg-support' ) . '<pre><code>&lt;img class="your-custom-class" alt="alt-text" src="image-source.svg" /&gt;</code></pre>';
79
+
80
+ $bodhi_svgs_help_tab_inlining_svg .= '<p>' . __( 'The whole IMG tag element will now be dynamically replaced by the actual code of your SVG, making the inner content targetable.', 'svg-support' ) . '<br>' . __( 'This allows you to target elements within your SVG using CSS.', 'svg-support' ) . '</p>';
81
+
82
+ $bodhi_svgs_help_tab_inlining_svg .= '<p><em>' . __( 'Please Note:', 'svg-support' ) . '</em><br><em>- ' . __( 'You will likely need to set your own height and width in your CSS for SVG files to display correctly.', 'svg-support' ) . '</em><br><em>- ' . __( '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.', 'svg-support' ) . '</em></p>';
83
+
84
+ // register inline SVG tab
85
+ $screen->add_help_tab( array(
86
+ 'id' => 'bodhi_svgs_help_tab-inlining_svg',
87
+ 'title' => __( 'Render SVG Inline', 'svg-support' ),
88
+ 'content' => $bodhi_svgs_help_tab_inlining_svg
89
+ ));
90
+
91
+ /**
92
+ * Featured Images Tab
93
+ */
94
+ // featured images tab content
95
+ $bodhi_svgs_help_tab_featured_images = '<h3>' . __( 'Featured Images', 'svg-support' ) . '</h3>';
96
+
97
+ $bodhi_svgs_help_tab_featured_images .= '<p>' . __( 'You can use SVG files as featured images just like any other image format, with the addition of being able to render your featured SVG inline on a per-post basis.', 'svg-support' ) . '</p>';
98
+
99
+ $bodhi_svgs_help_tab_featured_images .= '<p>' . __( 'To render your featured SVG inline:', 'svg-support' ) . '</p>';
100
+
101
+ $bodhi_svgs_help_tab_featured_images .= '<ol><li>' . __( 'Make sure "Advanced Mode" is enabled.', 'svg-support' ) . '</li><li>' . __( 'Add your featured SVG like you would any regular featured image format.', 'svg-support' ) . '</li><li>' . __( 'Publish, Save Draft, or Update the post.', 'svg-support' ) . '</li><li>' . __( 'Once the screen reloads, click the new checkbox below the featured image to render your SVG inline.', 'svg-support' ) . '</li><li>' . __( 'Publish, Save Draft, or Update the post a final time to render the SVG inline.', 'svg-support' ) . '</li></ol>';
102
+
103
+ // register featured images tab
104
+ $screen->add_help_tab( array(
105
+ 'id' => 'bodhi_svgs_help_tab-featured_images',
106
+ 'title' => __( 'Featured Images', 'svg-support' ),
107
+ 'content' => $bodhi_svgs_help_tab_featured_images
108
+ ));
109
+
110
+ /**
111
+ * Animation Tab
112
+ */
113
+ $bodhi_svgs_help_tab_animation = '<h3>' . __( 'Animation', 'svg-support' ) . '</h3>';
114
+
115
+ $bodhi_svgs_help_tab_animation .= '<p>' . __( 'So you want to animate your SVG?', 'svg-support' ) . '<br>' . __( 'There\'s a number of ways you can animate an SVG. You could use CSS or JS to target elements within your SVG or even embed the animations in the file itself. Whichever way you choose, there is always a little bit of preparation required before uploading your SVG to your media library.', 'svg-support' ) . '</p>';
116
+
117
+ $bodhi_svgs_help_tab_animation .= '<p><strong>' . __( 'First, let\'s talk about using CSS or JS to target elements within your SVG.', 'svg-support' ) . '</strong><br>' . __( 'Before you upload your SVG, you\'re going to need some classes to target inside your SVG. To do this, open your SVG file in the code editor of choice (I use Sublime Text). You will see each element within your SVG file written in XML code. Each little part of your SVG has it\'s own bit of code, so it\'s up to you which ones you want to target. It\'s in here that you\'ll place your new classes on each element you want to target.', 'svg-support' ) . '</p>';
118
+
119
+ $bodhi_svgs_help_tab_animation .= '<p>' . __( 'Then there\'s the option of animating the SVG file itself. There is a number of online tools to do this, or you can use the software of your choice. Once your SVG is animated and ready to go, you then upload it like any other image to your WordPress media library. When you embed it on a page/post, you will need to make sure to add the class to the IMG tag so SVG Support can render it inline. This will ensure your animations are displayed.', 'svg-support' ) . '</p>';
120
+
121
+ // register animation tab
122
+ $screen->add_help_tab( array(
123
+ 'id' => 'bodhi_svgs_help_tab-animation',
124
+ 'title' => __( 'Animation', 'svg-support' ),
125
+ 'content' => $bodhi_svgs_help_tab_animation
126
+ ));
127
+
128
+ /**
129
+ * DONATIONS Tab
130
+ */
131
+ // donations tab content
132
+ $bodhi_svgs_help_tab_donations = '<h3>' . __( 'Donations', 'svg-support' ) . '</h3>';
133
+
134
+ $bodhi_svgs_help_tab_donations .= '<p>' . __( 'SVG Support (this plugin) has grown to be used by over 100,000 websites actively and is maintained solely by one person. I couldn\'t possibly tell you how many hours have gone into the development, maintenance and support of this plugin. If you find it useful and would like to donate to help keep it going, that would be amazing! I truly appreciate the support and how far this has come.', 'svg-support' ) . '</p>';
135
+
136
+ $bodhi_svgs_help_tab_donations .= '<p><strong>' . __( 'Donation Methods:', 'svg-support' ) . '</strong></p>';
137
+
138
+ $bodhi_svgs_help_tab_donations .= '<p><strong>' . __( 'PayPal: ', 'svg-support' ) . '</strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ" target="_blank">Click Here</a><br/><strong>' . __( 'BTC: 1qF8r2HkTLifND7WLGfWmvxfXc9ze55DZ', 'svg-support' ) . '</strong><br/><strong>' . __( 'LTC: LUnQPJrSk6cVFmMqBMv5FAqweJbnzRUz4o', 'svg-support' ) . '</strong><br/><strong>' . __( 'ETH: 0x599695Eb51aFe2e5a0DAD60aD9c89Bc8f10B54f4', 'svg-support' ) . '</strong></p>';
139
+
140
+ $bodhi_svgs_help_tab_donations .= '<p>' . __( 'Need to buy some crypto to donate?', 'svg-support' ) . '</br>' . __( 'My Coinbase referral link will get $10 USD worth of BTC for free when you spend $100.', 'svg-support' ) . '</br>' . __( '(You don\'t need to send me that much to me, anything is appreciated!)', 'svg-support' ) . '<br/><a href="https://www.coinbase.com/join/59be646cb87715012bbdcc6b" target="_blank">https://www.coinbase.com/join/59be646cb87715012bbdcc6b</a></p>';
141
+
142
+ // register featured images tab
143
+ $screen->add_help_tab( array(
144
+ 'id' => 'bodhi_svgs_help_tab-donations',
145
+ 'title' => __( 'DONATIONS', 'svg-support' ),
146
+ 'content' => $bodhi_svgs_help_tab_donations
147
+ ));
148
+
149
+ /**
150
+ * Help Tab Sidebar
151
+ */
152
+ // add help tab sidebar
153
+ $screen->set_help_sidebar(
154
+ '<p><strong>' . __( 'For more help, visit:' ) . '</strong></p>' .
155
+ '<p>' . __( '<a target="_blank" href="https://wordpress.org/support/plugin/svg-support">SVG Support Forum</a>' ) . '</p>'
156
+ );
157
+
158
+ }
admin/svgs-settings-page.php CHANGED
@@ -15,7 +15,28 @@
15
  <p><?php _e( '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>', 'svg-support' ); ?></p>
16
  <p><?php _e( 'When you enable advanced mode, 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.', 'svg-support' ); ?></p>
17
  <p><?php _e( '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.', 'svg-support' ); ?></p>
18
- <p><strong><?php _e( 'Now with featured image support for inlining your featured images!</strong> (since 2.3)', 'svg-support' ); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  </div> <!-- .inside -->
21
 
@@ -41,8 +62,20 @@
41
 
42
  <table class="form-table svg-settings">
43
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  <tr valign="top" class="svgs-simple">
45
- <!-- simple mode selector -->
46
  <th scope="row">
47
  <label for="bodhi_svgs_settings[advanced_mode]"><strong><?php _e( 'Enable Advanced Mode?', 'svg-support' ); ?></strong></label>
48
  </th>
@@ -53,15 +86,13 @@
53
  </td>
54
  </tr>
55
 
56
- <tr valign="top">
57
- <!-- Swap with future feature: Multiselect Roles -->
58
  <th scope="row">
59
- <label for="bodhi_svgs_settings[restrict]"><strong><?php _e( 'Restrict to Administrators?', 'svg-support' ); ?></strong></label>
60
  </th>
61
  <td>
62
- <?php printf(
63
- '<input id="bodhi_svgs_settings[restrict]" name="bodhi_svgs_settings[restrict]" type="checkbox" %2$s />', 'bodhi_svgs_settings_restrict', checked( isset( $bodhi_svgs_options['restrict'] ), true, false ) ); ?>
64
- <?php _e( 'Yes', 'svg-support' ); ?><br /><small class="description"><?php _e(' Restricts SVG upload priveledges to Administrators.', 'svg-support' ); ?></small>
65
  </td>
66
  </tr>
67
 
@@ -90,24 +121,24 @@
90
  </tr>
91
 
92
  <tr valign="top" class="svgs-advanced">
93
- <!-- Automatically insert class to target in images when inserting into posts/pages from admin edit screen -->
94
  <th scope="row">
95
- <label for="bodhi_svgs_settings[auto_insert_class]"><strong><?php _e( 'Automatically insert class?', 'svg-support' ); ?></strong></label>
96
  </th>
97
  <td>
98
- <?php printf(
99
- '<input id="bodhi_svgs_settings[auto_insert_class]" name="bodhi_svgs_settings[auto_insert_class]" type="checkbox" %2$s />', 'bodhi_svgs_settings_auto_insert_class', checked( isset( $bodhi_svgs_options['auto_insert_class'] ), true, false ) ); ?>
100
- <?php _e( 'Yes', 'svg-support' ); ?><br /><small class="description"><?php _e(' Checking this will make sure that either the default class or the custom one you set below is inserted into the style attributes of <code>img</code> tags when you insert SVG images. Additionally, it will remove all of the default WordPress classes. It will leave normal image types as default and only affect SVG files.', 'svg-support' ); ?></small>
101
  </td>
102
  </tr>
103
 
104
  <tr valign="top" class="svgs-advanced">
105
- <!-- Custom CSS target field so users can set their own class to target -->
106
  <th scope="row">
107
- <label for="bodhi_svgs_settings[css_target]"><strong><?php _e( 'CSS Class to target', 'svg-support' ); ?></strong></label>
108
  </th>
109
  <td>
110
- <input id="bodhi_svgs_settings[css_target]" class="all-options code" name="bodhi_svgs_settings[css_target]" type="text" value="<?php if( isset( $bodhi_svgs_options['css_target'] ) ) echo $bodhi_svgs_options['css_target']; ?>"><br /><small class="description"><?php _e( '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.', 'svg-support' ); ?></small>
 
 
111
  </td>
112
  </tr>
113
 
@@ -181,6 +212,7 @@
181
  <?php echo '<a target="_blank" class="shortpixel-logo" href="https://shortpixel.com/h/af/OLKMLXE207471"><img src="' . BODHI_SVGS_PLUGIN_URL . '/admin/img/shortpixel.png" /></a>'; ?>
182
  <p><?php _e( 'Now that you\'ve set up SVG Support on your site, it\'s time to look at optimizing your existing images (jpg & png).', 'svg-support' ); ?></p>
183
  <p><?php _e( 'ShortPixel improves website performance by reducing the size of your images. The results are no different in quality from the original, plus your originals are stored in a backup folder for you.', 'svg-support' ); ?></p>
 
184
  <p><a class="shortpixel-button button-primary" href="https://shortpixel.com/h/af/OLKMLXE207471"><?php _e( 'Try ShortPixel WordPress Plugin for FREE', 'svg-support' ); ?></a></p>
185
  </div> <!-- .inside -->
186
  </div> <!-- .postbox -->
@@ -232,17 +264,10 @@
232
  <div class="postbox">
233
  <h3><span><?php _e( 'About The Plugin', 'svg-support' ); ?></span></h3>
234
  <div class="inside">
235
- <p><?php _e( 'You can read about this plugin in detail on', 'svg-support' ); ?> <a target="_blank" href="http://wordpress.org/plugins/svg-support/"><?php _e( 'The WordPress Plugin Repository', 'svg-support' ); ?></a>.</p>
236
- <p><?php _e( 'Need help?', 'svg-support' ); ?> <a target="_blank" href="http://wordpress.org/support/plugin/svg-support"><?php _e( 'Visit Support', 'svg-support' ); ?></a>.</p>
237
- <p><a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ"><?php _e( 'Donate to author &rarr;', 'svg-support' ); ?></a>
238
- <p>&copy; <a target="_blank" href="http://benbodhi.com">Benbodhi</a> <?php _e( 'from', 'svg-support' ); ?> <a target="_blank" href="http://gowebben.com">GoWebben</a>.
239
- </div> <!-- .inside -->
240
- </div> <!-- .postbox -->
241
-
242
- <div class="postbox">
243
- <h3><span><?php _e( 'GoWebben Hosting', 'svg-support' ); ?></span></h3>
244
- <div class="inside">
245
- <p><a target="_blank" href="https://secure.gowebben.com/cart.php?promocode=svg-support"><?php _e( 'Claim your FREE $25 credit from', 'svg-support' ); ?> GoWebben</a> - <?php _e( 'No catch, just free credit for using this plugin! It will be applied automatically using the link provided, but in any case you can simply use code: SVGSUPPORT during checkout.', 'svg-support' ); ?></p>
246
  </div> <!-- .inside -->
247
  </div> <!-- .postbox -->
248
 
15
  <p><?php _e( '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>', 'svg-support' ); ?></p>
16
  <p><?php _e( 'When you enable advanced mode, 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.', 'svg-support' ); ?></p>
17
  <p><?php _e( '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.', 'svg-support' ); ?></p>
18
+ <p><strong><?php _e( 'For help and more information, please check the help tab (top right of your screen).', 'svg-support' ); ?></strong></p>
19
+
20
+ </div> <!-- .inside -->
21
+
22
+ </div> <!-- .postbox -->
23
+
24
+ </div> <!-- .meta-box-sortables .ui-sortable -->
25
+
26
+ <div class="meta-box-sortables ui-sortable">
27
+
28
+ <div class="postbox">
29
+
30
+ <h3><span><?php _e( 'Send Some Love', 'svg-support' ); ?></span></h3>
31
+ <div class="inside">
32
+
33
+ <p><?php _e( 'SVG Support has grown to be installed on over 100,000 active websites. That\'s insane! It\'s developed and maintained by one person alone. If you find it useful, please consider donating to help keep it going. I truly appreciate any contribution.', 'svg-support' ); ?></p>
34
+ <p><strong>
35
+ <?php _e( 'BTC: 1qF8r2HkTLifND7WLGfWmvxfXc9ze55DZ', 'svg-support' ); ?><br/>
36
+ <?php _e( 'LTC: LUnQPJrSk6cVFmMqBMv5FAqweJbnzRUz4o', 'svg-support' ); ?><br/>
37
+ <?php _e( 'ETH: 0x599695Eb51aFe2e5a0DAD60aD9c89Bc8f10B54f4', 'svg-support' ); ?>
38
+ </strong></p>
39
+ <p><?php _e( 'Or if you\'re old school, you can', 'svg-support' ); ?> <a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ"><?php _e( 'Donate using PayPal', 'svg-support' ); ?></a></p>
40
 
41
  </div> <!-- .inside -->
42
 
62
 
63
  <table class="form-table svg-settings">
64
 
65
+ <tr valign="top">
66
+ <!-- Swap with future feature: Multiselect Roles -->
67
+ <th scope="row">
68
+ <label for="bodhi_svgs_settings[restrict]"><strong><?php _e( 'Restrict to Administrators?', 'svg-support' ); ?></strong></label>
69
+ </th>
70
+ <td>
71
+ <?php printf(
72
+ '<input id="bodhi_svgs_settings[restrict]" name="bodhi_svgs_settings[restrict]" type="checkbox" %2$s />', 'bodhi_svgs_settings_restrict', checked( isset( $bodhi_svgs_options['restrict'] ), true, false ) ); ?>
73
+ <?php _e( 'Yes', 'svg-support' ); ?><br /><small class="description"><?php _e(' Restricts SVG upload priveledges to Administrators.', 'svg-support' ); ?></small>
74
+ </td>
75
+ </tr>
76
+
77
  <tr valign="top" class="svgs-simple">
78
+ <!-- Simple/Advanced mode selector -->
79
  <th scope="row">
80
  <label for="bodhi_svgs_settings[advanced_mode]"><strong><?php _e( 'Enable Advanced Mode?', 'svg-support' ); ?></strong></label>
81
  </th>
86
  </td>
87
  </tr>
88
 
89
+ <tr valign="top" class="svgs-advanced">
90
+ <!-- Advanced Header -->
91
  <th scope="row">
92
+ <h3 class="inner-title"><?php _e( 'Advanced', 'svg-support' ); ?></h3>
93
  </th>
94
  <td>
95
+ <hr>
 
 
96
  </td>
97
  </tr>
98
 
121
  </tr>
122
 
123
  <tr valign="top" class="svgs-advanced">
124
+ <!-- Custom CSS target field so users can set their own class to target -->
125
  <th scope="row">
126
+ <label for="bodhi_svgs_settings[css_target]"><strong><?php _e( 'CSS Class to target', 'svg-support' ); ?></strong></label>
127
  </th>
128
  <td>
129
+ <input id="bodhi_svgs_settings[css_target]" class="all-options code" name="bodhi_svgs_settings[css_target]" type="text" value="<?php if( isset( $bodhi_svgs_options['css_target'] ) ) echo $bodhi_svgs_options['css_target']; ?>"><br /><small class="description"><?php _e( '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.', 'svg-support' ); ?></small>
 
 
130
  </td>
131
  </tr>
132
 
133
  <tr valign="top" class="svgs-advanced">
134
+ <!-- Automatically insert class to target in images when inserting into posts/pages from admin edit screen -->
135
  <th scope="row">
136
+ <label for="bodhi_svgs_settings[auto_insert_class]"><strong><?php _e( 'Automatically insert class?', 'svg-support' ); ?></strong></label>
137
  </th>
138
  <td>
139
+ <?php printf(
140
+ '<input id="bodhi_svgs_settings[auto_insert_class]" name="bodhi_svgs_settings[auto_insert_class]" type="checkbox" %2$s />', 'bodhi_svgs_settings_auto_insert_class', checked( isset( $bodhi_svgs_options['auto_insert_class'] ), true, false ) ); ?>
141
+ <?php _e( 'Yes', 'svg-support' ); ?><br /><small class="description"><?php _e(' Checking this will make sure that either the default class or the custom one you set below is inserted into the style attributes of <code>img</code> tags when you insert SVG images. Additionally, it will remove all of the default WordPress classes. It will leave normal image types as default and only affect SVG files.', 'svg-support' ); ?></small>
142
  </td>
143
  </tr>
144
 
212
  <?php echo '<a target="_blank" class="shortpixel-logo" href="https://shortpixel.com/h/af/OLKMLXE207471"><img src="' . BODHI_SVGS_PLUGIN_URL . '/admin/img/shortpixel.png" /></a>'; ?>
213
  <p><?php _e( 'Now that you\'ve set up SVG Support on your site, it\'s time to look at optimizing your existing images (jpg & png).', 'svg-support' ); ?></p>
214
  <p><?php _e( 'ShortPixel improves website performance by reducing the size of your images. The results are no different in quality from the original, plus your originals are stored in a backup folder for you.', 'svg-support' ); ?></p>
215
+ <p><?php _e( 'If you upgrade to a paid plan, I\'ll receive a small commission... And that\'s really nice!', 'svg-support' ); ?></p>
216
  <p><a class="shortpixel-button button-primary" href="https://shortpixel.com/h/af/OLKMLXE207471"><?php _e( 'Try ShortPixel WordPress Plugin for FREE', 'svg-support' ); ?></a></p>
217
  </div> <!-- .inside -->
218
  </div> <!-- .postbox -->
264
  <div class="postbox">
265
  <h3><span><?php _e( 'About The Plugin', 'svg-support' ); ?></span></h3>
266
  <div class="inside">
267
+ <p><?php _e( 'Learn more about SVG Support on:', 'svg-support' ); ?><br/><a target="_blank" href="http://wordpress.org/plugins/svg-support/"><?php _e( 'The WordPress Plugin Repository', 'svg-support' ); ?></a></p>
268
+ <p><?php _e( 'Need help?', 'svg-support' ); ?><br/><a target="_blank" href="http://wordpress.org/support/plugin/svg-support"><?php _e( 'Visit The Support Forum', 'svg-support' ); ?></a></p>
269
+ <p>&copy; <?php _e( 'Benbodhi', 'svg-support' ); ?> | <a target="_blank" href="https://benbodhi.com/">Benbodhi.com</a></p>
270
+ <p><?php _e( 'Thanks for your support, please consider donating.', 'svg-support' ); ?></p>
 
 
 
 
 
 
 
271
  </div> <!-- .inside -->
272
  </div> <!-- .postbox -->
273
 
config.codekit3 CHANGED
@@ -7,15 +7,17 @@
7
  "uuidString": "FDF09C14-788E-4A4D-A218-DA6A56580A0D"
8
  }
9
  ],
10
- "creatorBuild": "25900",
11
  "files": {
12
  "\/admin\/admin-init.php": {
 
13
  "ft": 8192,
14
  "oA": 2,
15
  "oAP": "\/admin\/admin-init.php",
16
  "oF": 0
17
  },
18
  "\/admin\/admin-notice.php": {
 
19
  "ft": 8192,
20
  "oA": 2,
21
  "oAP": "\/admin\/admin-notice.php",
@@ -33,12 +35,21 @@
33
  "q": 100
34
  },
35
  "\/admin\/plugin-action-meta-links.php": {
 
36
  "ft": 8192,
37
  "oA": 2,
38
  "oAP": "\/admin\/plugin-action-meta-links.php",
39
  "oF": 0
40
  },
 
 
 
 
 
 
 
41
  "\/admin\/svgs-settings-page.php": {
 
42
  "ft": 8192,
43
  "oA": 2,
44
  "oAP": "\/admin\/svgs-settings-page.php",
@@ -85,42 +96,49 @@
85
  "oS": 0
86
  },
87
  "\/functions\/attachment-modal.php": {
 
88
  "ft": 8192,
89
  "oA": 2,
90
  "oAP": "\/functions\/attachment-modal.php",
91
  "oF": 0
92
  },
93
  "\/functions\/attribute-control.php": {
 
94
  "ft": 8192,
95
  "oA": 2,
96
  "oAP": "\/functions\/attribute-control.php",
97
  "oF": 0
98
  },
99
  "\/functions\/enqueue.php": {
 
100
  "ft": 8192,
101
  "oA": 2,
102
  "oAP": "\/functions\/enqueue.php",
103
  "oF": 0
104
  },
105
  "\/functions\/featured-image.php": {
 
106
  "ft": 8192,
107
  "oA": 2,
108
  "oAP": "\/functions\/featured-image.php",
109
  "oF": 0
110
  },
111
  "\/functions\/localization.php": {
 
112
  "ft": 8192,
113
  "oA": 2,
114
  "oAP": "\/functions\/localization.php",
115
  "oF": 0
116
  },
117
  "\/functions\/mime-types.php": {
 
118
  "ft": 8192,
119
  "oA": 2,
120
  "oAP": "\/functions\/mime-types.php",
121
  "oF": 0
122
  },
123
  "\/functions\/thumbnail-display.php": {
 
124
  "ft": 8192,
125
  "oA": 2,
126
  "oAP": "\/functions\/thumbnail-display.php",
@@ -167,36 +185,42 @@
167
  "tS": 0
168
  },
169
  "\/languages\/svgsupport-es_ES.mo": {
 
170
  "ft": 8192,
171
  "oA": 2,
172
  "oAP": "\/languages\/svgsupport-es_ES.mo",
173
  "oF": 0
174
  },
175
  "\/languages\/svgsupport-es_ES.po": {
 
176
  "ft": 8192,
177
  "oA": 2,
178
  "oAP": "\/languages\/svgsupport-es_ES.po",
179
  "oF": 0
180
  },
181
  "\/languages\/svgsupport-sr_RS.mo": {
 
182
  "ft": 8192,
183
  "oA": 2,
184
  "oAP": "\/languages\/svgsupport-sr_RS.mo",
185
  "oF": 0
186
  },
187
  "\/languages\/svgsupport-sr_RS.po": {
 
188
  "ft": 8192,
189
  "oA": 2,
190
  "oAP": "\/languages\/svgsupport-sr_RS.po",
191
  "oF": 0
192
  },
193
  "\/languages\/svgsupport.pot": {
 
194
  "ft": 8192,
195
  "oA": 2,
196
  "oAP": "\/languages\/svgsupport.pot",
197
  "oF": 0
198
  },
199
  "\/readme.txt": {
 
200
  "ft": 8192,
201
  "oA": 2,
202
  "oAP": "\/readme.txt",
@@ -255,6 +279,7 @@
255
  "uL": 1
256
  },
257
  "\/svg-support.php": {
 
258
  "ft": 8192,
259
  "oA": 2,
260
  "oAP": "\/svg-support.php",
@@ -269,7 +294,8 @@
269
  "creationDate": 507572464,
270
  "displayValue": "svg-support",
271
  "displayValueWasSetByUser": 0,
272
- "iconImageName": "meme-ariel"
 
273
  },
274
  "projectSettings": {
275
  "abortBuildOnError": 1,
@@ -277,6 +303,7 @@
277
  "animateCSSInjections": 1,
278
  "autoBuildNewItems": 1,
279
  "autoprefixerBrowserString": "> 1%, last 2 versions, Firefox ESR, Opera 12.1",
 
280
  "babelAuxiliaryCommentAfter": "",
281
  "babelAuxiliaryCommentBefore": "",
282
  "babelConfigFileHandlingType": 0,
@@ -805,6 +832,10 @@
805
  "active": 0,
806
  "optionString": "'expression'"
807
  },
 
 
 
 
808
  "generator-star-spacing": {
809
  "active": 0,
810
  "optionString": "{'before': true, 'after': false}"
@@ -837,6 +868,10 @@
837
  "active": 0,
838
  "optionString": "'^[a-z]+([A-Z][a-z]+)*$', {'properties': false, 'onlyDeclarations': true}"
839
  },
 
 
 
 
840
  "indent": {
841
  "active": 0,
842
  "optionString": "4, {'SwitchCase': 0, 'VariableDeclarator': 1, 'outerIIFEBody': 1, }"
@@ -869,9 +904,9 @@
869
  "active": 0,
870
  "optionString": "{'beforeBlockComment': true}"
871
  },
872
- "lines-around-directive": {
873
  "active": 0,
874
- "optionString": "{'before': 'always', 'after': 'always'}"
875
  },
876
  "max-depth": {
877
  "active": 0,
@@ -901,6 +936,10 @@
901
  "active": 0,
902
  "optionString": "{'max': 1}"
903
  },
 
 
 
 
904
  "multiline-ternary": {
905
  "active": 0,
906
  "optionString": "'always'"
@@ -913,14 +952,6 @@
913
  "active": 0,
914
  "optionString": ""
915
  },
916
- "newline-after-var": {
917
- "active": 0,
918
- "optionString": "'always'"
919
- },
920
- "newline-before-return": {
921
- "active": 0,
922
- "optionString": ""
923
- },
924
  "newline-per-chained-call": {
925
  "active": 0,
926
  "optionString": "{'ignoreChainWithDepth': 2}"
@@ -2021,7 +2052,8 @@
2021
  "createSourceMap": 0,
2022
  "minifyOutput": 1,
2023
  "outputStyle": 0,
2024
- "syntaxCheckerStyle": 1
 
2025
  },
2026
  "languageDefaultsCSS": {
2027
  "autoOutputAction": 0,
@@ -2054,6 +2086,7 @@
2054
  "noEscapeInAttributes": 0,
2055
  "outputFormat": 2,
2056
  "outputStyle": 0,
 
2057
  "useCDATA": 0,
2058
  "useDoubleQuotes": 0,
2059
  "useUnixNewlines": 0
@@ -2065,6 +2098,7 @@
2065
  "autoOutputPathReplace1": "",
2066
  "autoOutputPathReplace2": "",
2067
  "autoOutputPathStyle": 0,
 
2068
  "quality": 100
2069
  },
2070
  "languageDefaultsJS": {
@@ -2095,7 +2129,8 @@
2095
  "autoOutputPathRelativePath": "",
2096
  "autoOutputPathReplace1": "kit",
2097
  "autoOutputPathReplace2": "html",
2098
- "autoOutputPathStyle": 0
 
2099
  },
2100
  "languageDefaultsLESS": {
2101
  "allowInsecureImports": 0,
@@ -2127,13 +2162,13 @@
2127
  "enableFootnotes": 1,
2128
  "enableLabels": 1,
2129
  "enableSmartQuotes": 1,
2130
- "escapeLineBreaks": 0,
2131
  "maskEmailAddresses": 1,
2132
  "outputFormat": 0,
2133
  "outputStyle": 0,
2134
  "parseMetadata": 1,
2135
  "processHTML": 0,
2136
  "randomFootnoteNumbers": 0,
 
2137
  "useCompatibilityMode": 0
2138
  },
2139
  "languageDefaultsOTHER": {
@@ -2142,7 +2177,8 @@
2142
  "autoOutputPathRelativePath": "",
2143
  "autoOutputPathReplace1": "",
2144
  "autoOutputPathReplace2": "",
2145
- "autoOutputPathStyle": 0
 
2146
  },
2147
  "languageDefaultsPNG": {
2148
  "autoOutputAction": 0,
@@ -2162,7 +2198,8 @@
2162
  "autoOutputPathReplace2": "",
2163
  "autoOutputPathStyle": 0,
2164
  "compileDebug": 1,
2165
- "outputStyle": 0
 
2166
  },
2167
  "languageDefaultsSASS": {
2168
  "autoOutputAction": 0,
@@ -2190,7 +2227,8 @@
2190
  "logicless": 0,
2191
  "outputFormat": 0,
2192
  "outputStyle": 1,
2193
- "railsCompatible": 0
 
2194
  },
2195
  "languageDefaultsSTYLUS": {
2196
  "autoOutputAction": 0,
7
  "uuidString": "FDF09C14-788E-4A4D-A218-DA6A56580A0D"
8
  }
9
  ],
10
+ "creatorBuild": "26680",
11
  "files": {
12
  "\/admin\/admin-init.php": {
13
+ "cB": 0,
14
  "ft": 8192,
15
  "oA": 2,
16
  "oAP": "\/admin\/admin-init.php",
17
  "oF": 0
18
  },
19
  "\/admin\/admin-notice.php": {
20
+ "cB": 0,
21
  "ft": 8192,
22
  "oA": 2,
23
  "oAP": "\/admin\/admin-notice.php",
35
  "q": 100
36
  },
37
  "\/admin\/plugin-action-meta-links.php": {
38
+ "cB": 0,
39
  "ft": 8192,
40
  "oA": 2,
41
  "oAP": "\/admin\/plugin-action-meta-links.php",
42
  "oF": 0
43
  },
44
+ "\/admin\/svgs-settings-page-help.php": {
45
+ "cB": 0,
46
+ "ft": 8192,
47
+ "oA": 2,
48
+ "oAP": "\/admin\/svgs-settings-page-help.php",
49
+ "oF": 0
50
+ },
51
  "\/admin\/svgs-settings-page.php": {
52
+ "cB": 0,
53
  "ft": 8192,
54
  "oA": 2,
55
  "oAP": "\/admin\/svgs-settings-page.php",
96
  "oS": 0
97
  },
98
  "\/functions\/attachment-modal.php": {
99
+ "cB": 0,
100
  "ft": 8192,
101
  "oA": 2,
102
  "oAP": "\/functions\/attachment-modal.php",
103
  "oF": 0
104
  },
105
  "\/functions\/attribute-control.php": {
106
+ "cB": 0,
107
  "ft": 8192,
108
  "oA": 2,
109
  "oAP": "\/functions\/attribute-control.php",
110
  "oF": 0
111
  },
112
  "\/functions\/enqueue.php": {
113
+ "cB": 0,
114
  "ft": 8192,
115
  "oA": 2,
116
  "oAP": "\/functions\/enqueue.php",
117
  "oF": 0
118
  },
119
  "\/functions\/featured-image.php": {
120
+ "cB": 0,
121
  "ft": 8192,
122
  "oA": 2,
123
  "oAP": "\/functions\/featured-image.php",
124
  "oF": 0
125
  },
126
  "\/functions\/localization.php": {
127
+ "cB": 0,
128
  "ft": 8192,
129
  "oA": 2,
130
  "oAP": "\/functions\/localization.php",
131
  "oF": 0
132
  },
133
  "\/functions\/mime-types.php": {
134
+ "cB": 0,
135
  "ft": 8192,
136
  "oA": 2,
137
  "oAP": "\/functions\/mime-types.php",
138
  "oF": 0
139
  },
140
  "\/functions\/thumbnail-display.php": {
141
+ "cB": 0,
142
  "ft": 8192,
143
  "oA": 2,
144
  "oAP": "\/functions\/thumbnail-display.php",
185
  "tS": 0
186
  },
187
  "\/languages\/svgsupport-es_ES.mo": {
188
+ "cB": 0,
189
  "ft": 8192,
190
  "oA": 2,
191
  "oAP": "\/languages\/svgsupport-es_ES.mo",
192
  "oF": 0
193
  },
194
  "\/languages\/svgsupport-es_ES.po": {
195
+ "cB": 0,
196
  "ft": 8192,
197
  "oA": 2,
198
  "oAP": "\/languages\/svgsupport-es_ES.po",
199
  "oF": 0
200
  },
201
  "\/languages\/svgsupport-sr_RS.mo": {
202
+ "cB": 0,
203
  "ft": 8192,
204
  "oA": 2,
205
  "oAP": "\/languages\/svgsupport-sr_RS.mo",
206
  "oF": 0
207
  },
208
  "\/languages\/svgsupport-sr_RS.po": {
209
+ "cB": 0,
210
  "ft": 8192,
211
  "oA": 2,
212
  "oAP": "\/languages\/svgsupport-sr_RS.po",
213
  "oF": 0
214
  },
215
  "\/languages\/svgsupport.pot": {
216
+ "cB": 0,
217
  "ft": 8192,
218
  "oA": 2,
219
  "oAP": "\/languages\/svgsupport.pot",
220
  "oF": 0
221
  },
222
  "\/readme.txt": {
223
+ "cB": 0,
224
  "ft": 8192,
225
  "oA": 2,
226
  "oAP": "\/readme.txt",
279
  "uL": 1
280
  },
281
  "\/svg-support.php": {
282
+ "cB": 0,
283
  "ft": 8192,
284
  "oA": 2,
285
  "oAP": "\/svg-support.php",
294
  "creationDate": 507572464,
295
  "displayValue": "svg-support",
296
  "displayValueWasSetByUser": 0,
297
+ "iconImageName": "meme-ariel",
298
+ "iconImageWasSetByUser": 0
299
  },
300
  "projectSettings": {
301
  "abortBuildOnError": 1,
303
  "animateCSSInjections": 1,
304
  "autoBuildNewItems": 1,
305
  "autoprefixerBrowserString": "> 1%, last 2 versions, Firefox ESR, Opera 12.1",
306
+ "autoprefixerEnableIEGrid": 0,
307
  "babelAuxiliaryCommentAfter": "",
308
  "babelAuxiliaryCommentBefore": "",
309
  "babelConfigFileHandlingType": 0,
832
  "active": 0,
833
  "optionString": "'expression'"
834
  },
835
+ "function-paren-newline": {
836
+ "active": 0,
837
+ "optionString": "'multiline'"
838
+ },
839
  "generator-star-spacing": {
840
  "active": 0,
841
  "optionString": "{'before': true, 'after': false}"
868
  "active": 0,
869
  "optionString": "'^[a-z]+([A-Z][a-z]+)*$', {'properties': false, 'onlyDeclarations': true}"
870
  },
871
+ "implicit-arrow-linebreak": {
872
+ "active": 0,
873
+ "optionString": "'beside'"
874
+ },
875
  "indent": {
876
  "active": 0,
877
  "optionString": "4, {'SwitchCase': 0, 'VariableDeclarator': 1, 'outerIIFEBody': 1, }"
904
  "active": 0,
905
  "optionString": "{'beforeBlockComment': true}"
906
  },
907
+ "lines-between-class-members": {
908
  "active": 0,
909
+ "optionString": "'always', {exceptAfterSingleLine: false}"
910
  },
911
  "max-depth": {
912
  "active": 0,
936
  "active": 0,
937
  "optionString": "{'max': 1}"
938
  },
939
+ "multiline-comment-style": {
940
+ "active": 0,
941
+ "optionString": "'starred-block'"
942
+ },
943
  "multiline-ternary": {
944
  "active": 0,
945
  "optionString": "'always'"
952
  "active": 0,
953
  "optionString": ""
954
  },
 
 
 
 
 
 
 
 
955
  "newline-per-chained-call": {
956
  "active": 0,
957
  "optionString": "{'ignoreChainWithDepth': 2}"
2052
  "createSourceMap": 0,
2053
  "minifyOutput": 1,
2054
  "outputStyle": 0,
2055
+ "syntaxCheckerStyle": 1,
2056
+ "transpilerStyle": 1
2057
  },
2058
  "languageDefaultsCSS": {
2059
  "autoOutputAction": 0,
2086
  "noEscapeInAttributes": 0,
2087
  "outputFormat": 2,
2088
  "outputStyle": 0,
2089
+ "shouldRunCacheBuster": 0,
2090
  "useCDATA": 0,
2091
  "useDoubleQuotes": 0,
2092
  "useUnixNewlines": 0
2098
  "autoOutputPathReplace1": "",
2099
  "autoOutputPathReplace2": "",
2100
  "autoOutputPathStyle": 0,
2101
+ "outputFormat": 0,
2102
  "quality": 100
2103
  },
2104
  "languageDefaultsJS": {
2129
  "autoOutputPathRelativePath": "",
2130
  "autoOutputPathReplace1": "kit",
2131
  "autoOutputPathReplace2": "html",
2132
+ "autoOutputPathStyle": 0,
2133
+ "shouldRunCacheBuster": 0
2134
  },
2135
  "languageDefaultsLESS": {
2136
  "allowInsecureImports": 0,
2162
  "enableFootnotes": 1,
2163
  "enableLabels": 1,
2164
  "enableSmartQuotes": 1,
 
2165
  "maskEmailAddresses": 1,
2166
  "outputFormat": 0,
2167
  "outputStyle": 0,
2168
  "parseMetadata": 1,
2169
  "processHTML": 0,
2170
  "randomFootnoteNumbers": 0,
2171
+ "shouldRunCacheBuster": 0,
2172
  "useCompatibilityMode": 0
2173
  },
2174
  "languageDefaultsOTHER": {
2177
  "autoOutputPathRelativePath": "",
2178
  "autoOutputPathReplace1": "",
2179
  "autoOutputPathReplace2": "",
2180
+ "autoOutputPathStyle": 0,
2181
+ "shouldRunCacheBuster": 0
2182
  },
2183
  "languageDefaultsPNG": {
2184
  "autoOutputAction": 0,
2198
  "autoOutputPathReplace2": "",
2199
  "autoOutputPathStyle": 0,
2200
  "compileDebug": 1,
2201
+ "outputStyle": 0,
2202
+ "shouldRunCacheBuster": 0
2203
  },
2204
  "languageDefaultsSASS": {
2205
  "autoOutputAction": 0,
2227
  "logicless": 0,
2228
  "outputFormat": 0,
2229
  "outputStyle": 1,
2230
+ "railsCompatible": 0,
2231
+ "shouldRunCacheBuster": 0
2232
  },
2233
  "languageDefaultsSTYLUS": {
2234
  "autoOutputAction": 0,
css/svgs-admin-edit-post.css CHANGED
@@ -1 +1 @@
1
- body #set-post-thumbnail,body #postimagediv .inside img{width:100%}
1
+ body #set-post-thumbnail,body #postimagediv .inside img[src$=".svg"]{width:100%}
css/svgs-admin.css CHANGED
@@ -1 +1 @@
1
- .svgs-version{font-size:10px;margin-left:7px}.postbox .inside a{text-decoration:none}h3{padding:0 12px}.shortpixel-logo img{position:absolute;right:10px;bottom:0;width:140px}table.media .column-title .media-icon img{width:60px}
1
+ .svgs-version{font-size:10px;margin-left:7px}.postbox .inside a{text-decoration:none}h3{padding:0 12px}.help-tab-content h3{padding:0}h3.inner-title{padding:0;font-size:1.2em}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2.hndle,.metabox-holder h3.hndle{font-size:1.3em;font-weight:600}.shortpixel-logo img{position:absolute;right:10px;bottom:0;width:140px}table.media .column-title .media-icon img{width:60px}
functions/attachment-modal.php CHANGED
@@ -49,6 +49,7 @@ function bodhi_svgs_get_dimensions( $svg ) {
49
  $attributes = $svg->attributes();
50
  $width = (string) $attributes->width;
51
  $height = (string) $attributes->height;
 
52
  }
53
 
54
  return (object) array( 'width' => $width, 'height' => $height );
49
  $attributes = $svg->attributes();
50
  $width = (string) $attributes->width;
51
  $height = (string) $attributes->height;
52
+
53
  }
54
 
55
  return (object) array( 'width' => $width, 'height' => $height );
js/min/svgs-inline-min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function($){if("true"===ForceInlineSVGActive&&jQuery("img").each(function(){jQuery(this).attr("src").match(/\.(svg)/)&&(jQuery(this).hasClass(cssTarget.ForceInlineSVG)||jQuery(this).addClass(cssTarget.ForceInlineSVG))}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var r=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>r.length)&&(e=r.length),e-=t.length;var s=r.lastIndexOf(t,e);return-1!==s&&s===e}),String.prototype.endsWith=function(t){var e=this.length-t.length;return e>=0&&this.lastIndexOf(t)===e},"true"===ForceInlineSVGActive)var t="img."!==cssTarget.Bodhi?cssTarget.Bodhi:"img.style-svg";else var t="img."!==cssTarget?cssTarget:"img.style-svg";$(t).each(function(t){var e=jQuery(this),r=e.attr("id"),s=e.attr("class"),i=e.attr("src");i.endsWith("svg")&&$.get(i,function(i){var n=$(i).find("svg"),a=n.attr("id");void 0===r?void 0===a?(r="svg-replaced-"+t,n=n.attr("id",r)):r=a:n=n.attr("id",r),void 0!==s&&(n=n.attr("class",s+" replaced-svg svg-replaced-"+t)),n=n.removeAttr("xmlns:a"),e.replaceWith(n),$(document).trigger("svg.loaded",[r])},"xml")})});
1
+ jQuery(document).ready(function($){(bodhisvgsInlineSupport=function(){if("true"===ForceInlineSVGActive&&jQuery("img").each(function(){jQuery(this).attr("src").match(/\.(svg)/)&&(jQuery(this).hasClass(cssTarget.ForceInlineSVG)||jQuery(this).addClass(cssTarget.ForceInlineSVG))}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var r=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>r.length)&&(e=r.length),e-=t.length;var s=r.lastIndexOf(t,e);return-1!==s&&s===e}),String.prototype.endsWith=function(t){var e=this.length-t.length;return e>=0&&this.lastIndexOf(t)===e},"true"===ForceInlineSVGActive)var t="img."!==cssTarget.Bodhi?cssTarget.Bodhi:"img.style-svg";else var t="img."!==cssTarget?cssTarget:"img.style-svg";$(t).each(function(t){var e=jQuery(this),r=e.attr("id"),s=e.attr("class"),i=e.attr("src");i.endsWith("svg")&&$.get(i,function(i){var n=$(i).find("svg"),a=n.attr("id");void 0===r?void 0===a?(r="svg-replaced-"+t,n=n.attr("id",r)):r=a:n=n.attr("id",r),void 0!==s&&(n=n.attr("class",s+" replaced-svg svg-replaced-"+t)),n=n.removeAttr("xmlns:a"),e.replaceWith(n),$(document).trigger("svg.loaded",[r])},"xml")})})()});
js/svgs-inline.js CHANGED
@@ -1,101 +1,106 @@
1
  jQuery(document).ready(function ($) {
2
 
3
- // If force inline SVG option is active then add class
4
- if ( ForceInlineSVGActive === 'true' ) {
5
 
6
- // Find all SVG inside img and add class if it hasn't got it
7
- jQuery('img').each(function() {
8
 
9
- // Pick only those with the extension we want
10
- if ( jQuery(this).attr('src').match(/\.(svg)/) ) {
11
 
12
- // Add our class name
13
- if ( !jQuery(this).hasClass(cssTarget.ForceInlineSVG) ) {
14
- jQuery(this).addClass(cssTarget.ForceInlineSVG);
 
 
 
 
15
  }
16
- }
17
- });
18
- }
19
-
20
- // Polyfill to support all ye old browsers
21
- // delete when not needed in the future
22
- if (!String.prototype.endsWith) {
23
- String.prototype.endsWith = function(searchString, position) {
24
- var subjectString = this.toString();
25
- if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
26
- position = subjectString.length;
27
- }
28
- position -= searchString.length;
29
- var lastIndex = subjectString.lastIndexOf(searchString, position);
30
- return lastIndex !== -1 && lastIndex === position;
 
 
 
 
 
 
31
  };
32
- } // end polyfill
33
-
34
- // Another snippet to support IE11
35
- String.prototype.endsWith = function(pattern) {
36
- var d = this.length - pattern.length;
37
- return d >= 0 && this.lastIndexOf(pattern) === d;
38
- };
39
- // End snippet to support IE11
40
-
41
- // Check to see if user set alternate class
42
- if ( ForceInlineSVGActive === 'true' ) {
43
- var target = ( cssTarget.Bodhi !== 'img.' ? cssTarget.Bodhi : 'img.style-svg' );
44
- } else {
45
- var target = ( cssTarget !== 'img.' ? cssTarget : 'img.style-svg' );
46
- }
47
-
48
- $(target).each(function(index){
49
- var $img = jQuery(this);
50
- var imgID = $img.attr('id');
51
- var imgClass = $img.attr('class');
52
- var imgURL = $img.attr('src');
53
-
54
- // Set svg size to the original img size
55
- // var imgWidth = $img.attr('width');
56
- // var imgHeight = $img.attr('height');
57
-
58
- if (!imgURL.endsWith('svg')) {
59
- return;
60
  }
61
 
62
- $.get(imgURL, function(data) {
 
 
 
 
63
 
64
- // Get the SVG tag, ignore the rest
65
- var $svg = $(data).find('svg');
 
66
 
67
- var svgID = $svg.attr('id');
 
 
68
 
69
- // Add replaced image's ID to the new SVG if necessary
70
- if(typeof imgID === 'undefined') {
71
- if(typeof svgID === 'undefined') {
72
- imgID = 'svg-replaced-'+index;
73
- $svg = $svg.attr('id', imgID);
 
 
 
 
 
 
 
 
 
 
74
  } else {
75
- imgID = svgID;
76
  }
77
- } else {
78
- $svg = $svg.attr('id', imgID);
79
- }
80
 
81
- // Add replaced image's classes to the new SVG
82
- if(typeof imgClass !== 'undefined') {
83
- $svg = $svg.attr('class', imgClass+' replaced-svg svg-replaced-'+index);
84
- }
85
 
86
- // Remove any invalid XML tags as per http://validator.w3.org
87
- $svg = $svg.removeAttr('xmlns:a');
88
 
89
- // Add size attributes
90
- // $svg = $svg.attr('width', imgWidth);
91
- // $svg = $svg.attr('height', imgHeight);
92
 
93
- // Replace image with new SVG
94
- $img.replaceWith($svg);
95
 
96
- $(document).trigger('svg.loaded', [imgID]);
 
 
 
97
 
98
- }, 'xml');
99
- });
100
 
101
- });
1
  jQuery(document).ready(function ($) {
2
 
3
+ // Wrap in IIFE so that it can be called again later as bodhisvgsInlineSupport();
4
+ (bodhisvgsInlineSupport = function() {
5
 
6
+ // If force inline SVG option is active then add class
7
+ if ( ForceInlineSVGActive === 'true' ) {
8
 
9
+ // Find all SVG inside img and add class if it hasn't got it
10
+ jQuery('img').each(function() {
11
 
12
+ // Pick only those with the extension we want
13
+ if ( jQuery(this).attr('src').match(/\.(svg)/) ) {
14
+
15
+ // Add our class name
16
+ if ( !jQuery(this).hasClass(cssTarget.ForceInlineSVG) ) {
17
+ jQuery(this).addClass(cssTarget.ForceInlineSVG);
18
+ }
19
  }
20
+ });
21
+ }
22
+
23
+ // Polyfill to support all ye old browsers
24
+ // delete when not needed in the future
25
+ if (!String.prototype.endsWith) {
26
+ String.prototype.endsWith = function(searchString, position) {
27
+ var subjectString = this.toString();
28
+ if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
29
+ position = subjectString.length;
30
+ }
31
+ position -= searchString.length;
32
+ var lastIndex = subjectString.lastIndexOf(searchString, position);
33
+ return lastIndex !== -1 && lastIndex === position;
34
+ };
35
+ } // end polyfill
36
+
37
+ // Another snippet to support IE11
38
+ String.prototype.endsWith = function(pattern) {
39
+ var d = this.length - pattern.length;
40
+ return d >= 0 && this.lastIndexOf(pattern) === d;
41
  };
42
+ // End snippet to support IE11
43
+
44
+ // Check to see if user set alternate class
45
+ if ( ForceInlineSVGActive === 'true' ) {
46
+ var target = ( cssTarget.Bodhi !== 'img.' ? cssTarget.Bodhi : 'img.style-svg' );
47
+ } else {
48
+ var target = ( cssTarget !== 'img.' ? cssTarget : 'img.style-svg' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  }
50
 
51
+ $(target).each(function(index){
52
+ var $img = jQuery(this);
53
+ var imgID = $img.attr('id');
54
+ var imgClass = $img.attr('class');
55
+ var imgURL = $img.attr('src');
56
 
57
+ // Set svg size to the original img size
58
+ // var imgWidth = $img.attr('width');
59
+ // var imgHeight = $img.attr('height');
60
 
61
+ if (!imgURL.endsWith('svg')) {
62
+ return;
63
+ }
64
 
65
+ $.get(imgURL, function(data) {
66
+
67
+ // Get the SVG tag, ignore the rest
68
+ var $svg = $(data).find('svg');
69
+
70
+ var svgID = $svg.attr('id');
71
+
72
+ // Add replaced image's ID to the new SVG if necessary
73
+ if(typeof imgID === 'undefined') {
74
+ if(typeof svgID === 'undefined') {
75
+ imgID = 'svg-replaced-'+index;
76
+ $svg = $svg.attr('id', imgID);
77
+ } else {
78
+ imgID = svgID;
79
+ }
80
  } else {
81
+ $svg = $svg.attr('id', imgID);
82
  }
 
 
 
83
 
84
+ // Add replaced image's classes to the new SVG
85
+ if(typeof imgClass !== 'undefined') {
86
+ $svg = $svg.attr('class', imgClass+' replaced-svg svg-replaced-'+index);
87
+ }
88
 
89
+ // Remove any invalid XML tags as per http://validator.w3.org
90
+ $svg = $svg.removeAttr('xmlns:a');
91
 
92
+ // Add size attributes
93
+ // $svg = $svg.attr('width', imgWidth);
94
+ // $svg = $svg.attr('height', imgHeight);
95
 
96
+ // Replace image with new SVG
97
+ $img.replaceWith($svg);
98
 
99
+ $(document).trigger('svg.loaded', [imgID]);
100
+
101
+ }, 'xml');
102
+ });
103
 
104
+ })(); // Execute immediately
 
105
 
106
+ });
languages/svgsupport-es_ES.po CHANGED
@@ -1,281 +1,281 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: SVG Support 2.2.3.1\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-05-16 20:19:06+00:00\n"
6
- "PO-Revision-Date: Mon May 16 2016 13:54:01 GMT-0700 (PDT)\n"
7
- "Last-Translator: root <benbodhi@gmail.com>\n"
8
- "Language-Team: Benbodhi <wp@benbodhi.com>\n"
9
- "Language: Spanish (Spain)\n"
10
- "Plural-Forms: nplurals=2; plural=n != 1\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Generator: Loco - https://localise.biz/\n"
16
- "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
17
- "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
18
- "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
19
- "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
20
- "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
21
- "X-Poedit-Basepath: ..\n"
22
- "X-Textdomain-Support: yes\n"
23
- "X-Loco-Target-Locale: es_ES\n"
24
- "X-Poedit-SearchPath-0: ."
25
-
26
- #. URI of the plugin
27
- msgid "http://wordpress.org/plugins/svg-support"
28
- msgstr ""
29
-
30
- #: ../admin/plugin-action-meta-links.php:32
31
- msgid "$25 Free Credit from GoWebben"
32
- msgstr ""
33
-
34
- #: ../admin/svgs-settings-page.php:57
35
- msgid "Output JS in Footer?"
36
- msgstr ""
37
-
38
- #: ../admin/svgs-settings-page.php:62
39
- msgid ""
40
- " Normally, scripts are placed in <code>head</code> of the HTML document. If "
41
- "this parameter is true, the script is placed before the closing "
42
- "<code>body</code> tag. This requires the theme to have the "
43
- "<code>wp_footer()</code> template tag in the appropriate place."
44
- msgstr ""
45
-
46
- #: ../admin/svgs-settings-page.php:68
47
- msgid "Automatically insert class?"
48
- msgstr ""
49
-
50
- #: ../admin/svgs-settings-page.php:73
51
- msgid ""
52
- " Checking this will make sure that either the default class or the custom "
53
- "one you set below is inserted into the style attributes of <code>img</code> "
54
- "tags when you insert images. Additionally, it will remove all of the default "
55
- "WordPress classes."
56
- msgstr ""
57
-
58
- #: ../admin/svgs-settings-page.php:112
59
- msgid "Please Note:"
60
- msgstr ""
61
-
62
- #: ../admin/svgs-settings-page.php:113
63
- msgid ""
64
- "- You will need to set your own height and width in your CSS for SVG files "
65
- "to display correctly."
66
- msgstr ""
67
-
68
- #: ../admin/svgs-settings-page.php:114
69
- msgid ""
70
- "- Your uploaded image needs to be an SVG file for this plugin to replace the "
71
- "img tag with the inline SVG code. It will not create SVG files for you."
72
- msgstr ""
73
-
74
- #: ../admin/svgs-settings-page.php:131
75
- msgid "Plugin Features"
76
- msgstr ""
77
-
78
- #: ../admin/svgs-settings-page.php:145
79
- msgid "About The Plugin"
80
- msgstr ""
81
-
82
- #: ../admin/svgs-settings-page.php:157
83
- msgid "GoWebben Hosting"
84
- msgstr ""
85
-
86
- #: ../admin/svgs-settings-page.php:159
87
- msgid "Claim your FREE $25 credit from"
88
- msgstr ""
89
-
90
- #: ../admin/svgs-settings-page.php:159
91
- msgid ""
92
- "No catch, just free credit for using this plugin! It will be applied "
93
- "automatically using the link provided, but in any case you can simply use "
94
- "code: SVGSUPPORT during checkout."
95
- msgstr ""
96
-
97
- msgid "SVG Support"
98
- msgstr "SVG Support"
99
-
100
- msgid ""
101
- "Allow SVG file uploads using the WordPress Media Library uploader plus "
102
- "direct styling of SVG elements using CSS."
103
- msgstr ""
104
- "Permitir la subida de archivos SVG a través de la librería de medios además "
105
- "de dar formato a los elementos SVG usando CSS."
106
-
107
- msgid "Benbodhi"
108
- msgstr "Benbodhi"
109
-
110
- msgid "http://benbodhi.com"
111
- msgstr "http://benbodhi.com"
112
-
113
- #: ../admin/admin-init.php:15
114
- msgid "SVG Support Options and Instructions"
115
- msgstr "SVG Support Opciones e Instrucciones"
116
-
117
- #: ../admin/admin-init.php:29
118
- msgid "You can't play with this."
119
- msgstr "No puedes jugar con esto."
120
-
121
- #: ../admin/plugin-action-meta-links.php:30
122
- msgid "Get Support"
123
- msgstr "Obtener soporte"
124
-
125
- #: ../admin/plugin-action-meta-links.php:31
126
- msgid "Donate to author"
127
- msgstr "Donar al autor"
128
-
129
- #: ../admin/svgs-settings-page.php:4
130
- msgid "SVG Support Settings and Usage"
131
- msgstr "SVG Support Configuración y Uso"
132
-
133
- #: ../admin/svgs-settings-page.php:12
134
- msgid "Introduction"
135
- msgstr "Introducción"
136
-
137
- #: ../admin/svgs-settings-page.php:15
138
- msgid ""
139
- "When using SVG images on your WordPress site, it can be hard to style "
140
- "elements within the SVG using CSS. <strong>Now you can, easily!</strong>"
141
- msgstr ""
142
- "Al usar imágenes SVG en un sitio de WordPress es complicado darle formato a "
143
- "los elementos SVG usando CSS. <strong>¡Ahora esto es sencillo!</strong>"
144
-
145
- #: ../admin/svgs-settings-page.php:16
146
- msgid ""
147
- "This plugin not only provides SVG Support like the name says, it also allows "
148
- "you to easily embed your full SVG file's code using a simple IMG tag. By "
149
- "adding the class <code>style-svg</code> to your IMG elements, this plugin "
150
- "dynamically replaces any IMG elements containing the <code>style-svg</code> "
151
- "class with your complete SVG."
152
- msgstr ""
153
- "Este plugin no solo da soporte SVG como su nombre indica, sino que además "
154
- "permite insertar el código completo SVG utilizando una simple etiqueta IMG. "
155
- "Añadiendo la clase <code>style-svg</code> a los elementos IMG este plugin "
156
- "los reemplaza de forma dinámica con los SVG completos."
157
-
158
- #: ../admin/svgs-settings-page.php:17
159
- msgid ""
160
- "The main purpose of this is to allow styling of SVG elements. Usually your "
161
- "styling options are restricted when using <code>embed</code>, "
162
- "<code>object</code> or <code>img</code> tags alone."
163
- msgstr ""
164
- "El objetivo principal es permitir darle formato a los elementos SVG. "
165
- "Normalmente las opciones de formato están restringidas al usar solo las "
166
- "etiquetas <code>embed</code>, <code>object</code> o <code>img</code>."
167
-
168
- #: ../admin/svgs-settings-page.php:34
169
- msgid "Settings"
170
- msgstr "Configuración"
171
-
172
- #: ../admin/svgs-settings-page.php:46
173
- msgid "Restrict to Administrators"
174
- msgstr "Restringir a los administradores"
175
-
176
- #: ../admin/svgs-settings-page.php:51 ../admin/svgs-settings-page.php:62 ..
177
- #: admin/svgs-settings-page.php:73
178
- msgid "Yes"
179
- msgstr "Si"
180
-
181
- #: ../admin/svgs-settings-page.php:51
182
- msgid " Restricts SVG upload priveledges to Administrators."
183
- msgstr " Restringe la subida de archivos SVG a los administradores."
184
-
185
- #: ../admin/svgs-settings-page.php:78
186
- msgid "CSS Class to target"
187
- msgstr "Clase CSS objetivo"
188
-
189
- #: ../admin/svgs-settings-page.php:81
190
- msgid ""
191
- "The default target class is <code>style-svg</code>. You can change it to "
192
- "your own class such as <code>my-class</code> by typing it here.<br />Leave "
193
- "blank to use the default class."
194
- msgstr ""
195
- "La clase por defecto es <code>style-svg</code>. Puedes cambiarla por una "
196
- "clase propia como <code>my-class</code> tecleándola aquí.<br />Déjalo en "
197
- "blanco para usar la clase por defecto."
198
-
199
- #: ../admin/svgs-settings-page.php:87
200
- msgid "Save Changes"
201
- msgstr "Guardar cambios"
202
-
203
- #: ../admin/svgs-settings-page.php:98
204
- msgid "Usage"
205
- msgstr "Uso"
206
-
207
- #: ../admin/svgs-settings-page.php:101
208
- msgid "You can simply upload SVG images to your media library like any other file."
209
- msgstr ""
210
- "Puedes subir fácilmente imágenes SVG a tu librería de medios como otros "
211
- "formatos de archivo."
212
-
213
- #: ../admin/svgs-settings-page.php:102
214
- msgid ""
215
- "Now, embed your SVG image like a standard image with the addition of adding "
216
- "the class <code>style-svg</code> (or your custom class from above) to any "
217
- "IMG tags that you want this plugin to swap out with your actual SVG code."
218
- msgstr ""
219
- "Ahora, incluye tu imagen SVG como una imágen estándar añadiendo la clase "
220
- "<code>style-svg</code> (o tu clase propia definida arriba) a cualquier "
221
- "etiqueta IMG que quieres que se cambie por el código SVG."
222
-
223
- #: ../admin/svgs-settings-page.php:103
224
- msgid "For example:"
225
- msgstr "por ejemplo:"
226
-
227
- #: ../admin/svgs-settings-page.php:106
228
- msgid "or"
229
- msgstr "o"
230
-
231
- #: ../admin/svgs-settings-page.php:109
232
- msgid ""
233
- "The whole IMG tag element will now be dynamically replaced by the actual "
234
- "code of your SVG, making the inner content targetable."
235
- msgstr ""
236
- "Toda la etiqueta IMG ahora se reemplaza de forma dinámica con el código del "
237
- "SVG haciendo su contenido accesible."
238
-
239
- #: ../admin/svgs-settings-page.php:110
240
- msgid "This allows you to target elements within your SVG using CSS."
241
- msgstr "Esto permite acceder a los elementos SVG usando CSS."
242
-
243
- #: ../admin/svgs-settings-page.php:134
244
- msgid "SVG Support for your media library"
245
- msgstr "Soporte SVG para la librería de medios"
246
-
247
- #: ../admin/svgs-settings-page.php:135
248
- msgid "Style SVG elements directly using CSS"
249
- msgstr "Dar formato a los elementos SVG usando CSS"
250
-
251
- #: ../admin/svgs-settings-page.php:136
252
- msgid "Restrict to Administrators only"
253
- msgstr "Restringido para administradores"
254
-
255
- #: ../admin/svgs-settings-page.php:137
256
- msgid "Extremely Simple To Use"
257
- msgstr "Muy fácil de usar"
258
-
259
- #: ../admin/svgs-settings-page.php:147
260
- msgid "You can read about this plugin in detail on"
261
- msgstr "Puedes leer todo sobre el plugin en"
262
-
263
- #: ../admin/svgs-settings-page.php:147
264
- msgid "The WordPress Plugin Repository"
265
- msgstr "El repositorio de plugins de WordPress"
266
-
267
- #: ../admin/svgs-settings-page.php:148
268
- msgid "Need help?"
269
- msgstr "¿Necesitas ayuda?"
270
-
271
- #: ../admin/svgs-settings-page.php:148
272
- msgid "Visit Support"
273
- msgstr "Visitar soporte"
274
-
275
- #: ../admin/svgs-settings-page.php:149
276
- msgid "Buy Benbodhi a Beer &rarr;"
277
- msgstr "Comprar una cerveza para Benbodhi &rarr;"
278
-
279
- #: ../admin/svgs-settings-page.php:150
280
- msgid "from"
281
- msgstr "de"
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: SVG Support 2.2.3.1\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-05-16 20:19:06+00:00\n"
6
+ "PO-Revision-Date: Mon May 16 2016 13:54:01 GMT-0700 (PDT)\n"
7
+ "Last-Translator: root <benbodhi@gmail.com>\n"
8
+ "Language-Team: Benbodhi <wp@benbodhi.com>\n"
9
+ "Language: Spanish (Spain)\n"
10
+ "Plural-Forms: nplurals=2; plural=n != 1\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Generator: Loco - https://localise.biz/\n"
16
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
17
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
18
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
19
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
20
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
21
+ "X-Poedit-Basepath: ..\n"
22
+ "X-Textdomain-Support: yes\n"
23
+ "X-Loco-Target-Locale: es_ES\n"
24
+ "X-Poedit-SearchPath-0: ."
25
+
26
+ #. URI of the plugin
27
+ msgid "http://wordpress.org/plugins/svg-support"
28
+ msgstr ""
29
+
30
+ #: ../admin/plugin-action-meta-links.php:32
31
+ msgid "$25 Free Credit from GoWebben"
32
+ msgstr ""
33
+
34
+ #: ../admin/svgs-settings-page.php:57
35
+ msgid "Output JS in Footer?"
36
+ msgstr ""
37
+
38
+ #: ../admin/svgs-settings-page.php:62
39
+ msgid ""
40
+ " Normally, scripts are placed in <code>head</code> of the HTML document. If "
41
+ "this parameter is true, the script is placed before the closing "
42
+ "<code>body</code> tag. This requires the theme to have the "
43
+ "<code>wp_footer()</code> template tag in the appropriate place."
44
+ msgstr ""
45
+
46
+ #: ../admin/svgs-settings-page.php:68
47
+ msgid "Automatically insert class?"
48
+ msgstr ""
49
+
50
+ #: ../admin/svgs-settings-page.php:73
51
+ msgid ""
52
+ " Checking this will make sure that either the default class or the custom "
53
+ "one you set below is inserted into the style attributes of <code>img</code> "
54
+ "tags when you insert images. Additionally, it will remove all of the default "
55
+ "WordPress classes."
56
+ msgstr ""
57
+
58
+ #: ../admin/svgs-settings-page.php:112
59
+ msgid "Please Note:"
60
+ msgstr ""
61
+
62
+ #: ../admin/svgs-settings-page.php:113
63
+ msgid ""
64
+ "- You will need to set your own height and width in your CSS for SVG files "
65
+ "to display correctly."
66
+ msgstr ""
67
+
68
+ #: ../admin/svgs-settings-page.php:114
69
+ msgid ""
70
+ "- Your uploaded image needs to be an SVG file for this plugin to replace the "
71
+ "img tag with the inline SVG code. It will not create SVG files for you."
72
+ msgstr ""
73
+
74
+ #: ../admin/svgs-settings-page.php:131
75
+ msgid "Plugin Features"
76
+ msgstr ""
77
+
78
+ #: ../admin/svgs-settings-page.php:145
79
+ msgid "About The Plugin"
80
+ msgstr ""
81
+
82
+ #: ../admin/svgs-settings-page.php:157
83
+ msgid "GoWebben Hosting"
84
+ msgstr ""
85
+
86
+ #: ../admin/svgs-settings-page.php:159
87
+ msgid "Claim your FREE $25 credit from"
88
+ msgstr ""
89
+
90
+ #: ../admin/svgs-settings-page.php:159
91
+ msgid ""
92
+ "No catch, just free credit for using this plugin! It will be applied "
93
+ "automatically using the link provided, but in any case you can simply use "
94
+ "code: SVGSUPPORT during checkout."
95
+ msgstr ""
96
+
97
+ msgid "SVG Support"
98
+ msgstr "SVG Support"
99
+
100
+ msgid ""
101
+ "Allow SVG file uploads using the WordPress Media Library uploader plus "
102
+ "direct styling of SVG elements using CSS."
103
+ msgstr ""
104
+ "Permitir la subida de archivos SVG a través de la librería de medios además "
105
+ "de dar formato a los elementos SVG usando CSS."
106
+
107
+ msgid "Benbodhi"
108
+ msgstr "Benbodhi"
109
+
110
+ msgid "http://benbodhi.com"
111
+ msgstr "http://benbodhi.com"
112
+
113
+ #: ../admin/admin-init.php:15
114
+ msgid "SVG Support Options and Instructions"
115
+ msgstr "SVG Support Opciones e Instrucciones"
116
+
117
+ #: ../admin/admin-init.php:29
118
+ msgid "You can't play with this."
119
+ msgstr "No puedes jugar con esto."
120
+
121
+ #: ../admin/plugin-action-meta-links.php:30
122
+ msgid "Get Support"
123
+ msgstr "Obtener soporte"
124
+
125
+ #: ../admin/plugin-action-meta-links.php:31
126
+ msgid "Donate to author"
127
+ msgstr "Donar al autor"
128
+
129
+ #: ../admin/svgs-settings-page.php:4
130
+ msgid "SVG Support Settings and Usage"
131
+ msgstr "SVG Support Configuración y Uso"
132
+
133
+ #: ../admin/svgs-settings-page.php:12
134
+ msgid "Introduction"
135
+ msgstr "Introducción"
136
+
137
+ #: ../admin/svgs-settings-page.php:15
138
+ msgid ""
139
+ "When using SVG images on your WordPress site, it can be hard to style "
140
+ "elements within the SVG using CSS. <strong>Now you can, easily!</strong>"
141
+ msgstr ""
142
+ "Al usar imágenes SVG en un sitio de WordPress es complicado darle formato a "
143
+ "los elementos SVG usando CSS. <strong>¡Ahora esto es sencillo!</strong>"
144
+
145
+ #: ../admin/svgs-settings-page.php:16
146
+ msgid ""
147
+ "This plugin not only provides SVG Support like the name says, it also allows "
148
+ "you to easily embed your full SVG file's code using a simple IMG tag. By "
149
+ "adding the class <code>style-svg</code> to your IMG elements, this plugin "
150
+ "dynamically replaces any IMG elements containing the <code>style-svg</code> "
151
+ "class with your complete SVG."
152
+ msgstr ""
153
+ "Este plugin no solo da soporte SVG como su nombre indica, sino que además "
154
+ "permite insertar el código completo SVG utilizando una simple etiqueta IMG. "
155
+ "Añadiendo la clase <code>style-svg</code> a los elementos IMG este plugin "
156
+ "los reemplaza de forma dinámica con los SVG completos."
157
+
158
+ #: ../admin/svgs-settings-page.php:17
159
+ msgid ""
160
+ "The main purpose of this is to allow styling of SVG elements. Usually your "
161
+ "styling options are restricted when using <code>embed</code>, "
162
+ "<code>object</code> or <code>img</code> tags alone."
163
+ msgstr ""
164
+ "El objetivo principal es permitir darle formato a los elementos SVG. "
165
+ "Normalmente las opciones de formato están restringidas al usar solo las "
166
+ "etiquetas <code>embed</code>, <code>object</code> o <code>img</code>."
167
+
168
+ #: ../admin/svgs-settings-page.php:34
169
+ msgid "Settings"
170
+ msgstr "Configuración"
171
+
172
+ #: ../admin/svgs-settings-page.php:46
173
+ msgid "Restrict to Administrators"
174
+ msgstr "Restringir a los administradores"
175
+
176
+ #: ../admin/svgs-settings-page.php:51 ../admin/svgs-settings-page.php:62 ..
177
+ #: admin/svgs-settings-page.php:73
178
+ msgid "Yes"
179
+ msgstr "Si"
180
+
181
+ #: ../admin/svgs-settings-page.php:51
182
+ msgid " Restricts SVG upload priveledges to Administrators."
183
+ msgstr " Restringe la subida de archivos SVG a los administradores."
184
+
185
+ #: ../admin/svgs-settings-page.php:78
186
+ msgid "CSS Class to target"
187
+ msgstr "Clase CSS objetivo"
188
+
189
+ #: ../admin/svgs-settings-page.php:81
190
+ msgid ""
191
+ "The default target class is <code>style-svg</code>. You can change it to "
192
+ "your own class such as <code>my-class</code> by typing it here.<br />Leave "
193
+ "blank to use the default class."
194
+ msgstr ""
195
+ "La clase por defecto es <code>style-svg</code>. Puedes cambiarla por una "
196
+ "clase propia como <code>my-class</code> tecleándola aquí.<br />Déjalo en "
197
+ "blanco para usar la clase por defecto."
198
+
199
+ #: ../admin/svgs-settings-page.php:87
200
+ msgid "Save Changes"
201
+ msgstr "Guardar cambios"
202
+
203
+ #: ../admin/svgs-settings-page.php:98
204
+ msgid "Usage"
205
+ msgstr "Uso"
206
+
207
+ #: ../admin/svgs-settings-page.php:101
208
+ msgid "You can simply upload SVG images to your media library like any other file."
209
+ msgstr ""
210
+ "Puedes subir fácilmente imágenes SVG a tu librería de medios como otros "
211
+ "formatos de archivo."
212
+
213
+ #: ../admin/svgs-settings-page.php:102
214
+ msgid ""
215
+ "Now, embed your SVG image like a standard image with the addition of adding "
216
+ "the class <code>style-svg</code> (or your custom class from above) to any "
217
+ "IMG tags that you want this plugin to swap out with your actual SVG code."
218
+ msgstr ""
219
+ "Ahora, incluye tu imagen SVG como una imágen estándar añadiendo la clase "
220
+ "<code>style-svg</code> (o tu clase propia definida arriba) a cualquier "
221
+ "etiqueta IMG que quieres que se cambie por el código SVG."
222
+
223
+ #: ../admin/svgs-settings-page.php:103
224
+ msgid "For example:"
225
+ msgstr "por ejemplo:"
226
+
227
+ #: ../admin/svgs-settings-page.php:106
228
+ msgid "or"
229
+ msgstr "o"
230
+
231
+ #: ../admin/svgs-settings-page.php:109
232
+ msgid ""
233
+ "The whole IMG tag element will now be dynamically replaced by the actual "
234
+ "code of your SVG, making the inner content targetable."
235
+ msgstr ""
236
+ "Toda la etiqueta IMG ahora se reemplaza de forma dinámica con el código del "
237
+ "SVG haciendo su contenido accesible."
238
+
239
+ #: ../admin/svgs-settings-page.php:110
240
+ msgid "This allows you to target elements within your SVG using CSS."
241
+ msgstr "Esto permite acceder a los elementos SVG usando CSS."
242
+
243
+ #: ../admin/svgs-settings-page.php:134
244
+ msgid "SVG Support for your media library"
245
+ msgstr "Soporte SVG para la librería de medios"
246
+
247
+ #: ../admin/svgs-settings-page.php:135
248
+ msgid "Style SVG elements directly using CSS"
249
+ msgstr "Dar formato a los elementos SVG usando CSS"
250
+
251
+ #: ../admin/svgs-settings-page.php:136
252
+ msgid "Restrict to Administrators only"
253
+ msgstr "Restringido para administradores"
254
+
255
+ #: ../admin/svgs-settings-page.php:137
256
+ msgid "Extremely Simple To Use"
257
+ msgstr "Muy fácil de usar"
258
+
259
+ #: ../admin/svgs-settings-page.php:147
260
+ msgid "You can read about this plugin in detail on"
261
+ msgstr "Puedes leer todo sobre el plugin en"
262
+
263
+ #: ../admin/svgs-settings-page.php:147
264
+ msgid "The WordPress Plugin Repository"
265
+ msgstr "El repositorio de plugins de WordPress"
266
+
267
+ #: ../admin/svgs-settings-page.php:148
268
+ msgid "Need help?"
269
+ msgstr "¿Necesitas ayuda?"
270
+
271
+ #: ../admin/svgs-settings-page.php:148
272
+ msgid "Visit Support"
273
+ msgstr "Visitar soporte"
274
+
275
+ #: ../admin/svgs-settings-page.php:149
276
+ msgid "Buy Benbodhi a Beer &rarr;"
277
+ msgstr "Comprar una cerveza para Benbodhi &rarr;"
278
+
279
+ #: ../admin/svgs-settings-page.php:150
280
+ msgid "from"
281
+ msgstr "de"
languages/svgsupport-sr_RS.po CHANGED
@@ -1,284 +1,284 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: SVG Support 2.2.3.1\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-05-16 20:19:06+00:00\n"
6
- "PO-Revision-Date: Mon May 16 2016 13:54:09 GMT-0700 (PDT)\n"
7
- "Last-Translator: root <benbodhi@gmail.com>\n"
8
- "Language-Team: Benbodhi <wp@benbodhi.com>\n"
9
- "Language: Serbian\n"
10
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10 >= 2 && "
11
- "n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2)\n"
12
- "MIME-Version: 1.0\n"
13
- "Content-Type: text/plain; charset=UTF-8\n"
14
- "Content-Transfer-Encoding: 8bit\n"
15
- "X-Poedit-SourceCharset: utf-8\n"
16
- "X-Generator: Loco - https://localise.biz/\n"
17
- "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
18
- "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
19
- "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
20
- "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
21
- "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
22
- "X-Poedit-Basepath: ../\n"
23
- "X-Textdomain-Support: yes\n"
24
- "X-Poedit-SearchPath-0: .\n"
25
- "X-Loco-Target-Locale: sr_RS"
26
-
27
- #. URI of the plugin
28
- msgid "http://wordpress.org/plugins/svg-support"
29
- msgstr ""
30
-
31
- #: ../admin/plugin-action-meta-links.php:32
32
- msgid "$25 Free Credit from GoWebben"
33
- msgstr ""
34
-
35
- #: ../admin/svgs-settings-page.php:57
36
- msgid "Output JS in Footer?"
37
- msgstr ""
38
-
39
- #: ../admin/svgs-settings-page.php:62
40
- msgid ""
41
- " Normally, scripts are placed in <code>head</code> of the HTML document. If "
42
- "this parameter is true, the script is placed before the closing "
43
- "<code>body</code> tag. This requires the theme to have the "
44
- "<code>wp_footer()</code> template tag in the appropriate place."
45
- msgstr ""
46
-
47
- #: ../admin/svgs-settings-page.php:68
48
- msgid "Automatically insert class?"
49
- msgstr ""
50
-
51
- #: ../admin/svgs-settings-page.php:73
52
- msgid ""
53
- " Checking this will make sure that either the default class or the custom "
54
- "one you set below is inserted into the style attributes of <code>img</code> "
55
- "tags when you insert images. Additionally, it will remove all of the default "
56
- "WordPress classes."
57
- msgstr ""
58
-
59
- #: ../admin/svgs-settings-page.php:112
60
- msgid "Please Note:"
61
- msgstr ""
62
-
63
- #: ../admin/svgs-settings-page.php:113
64
- msgid ""
65
- "- You will need to set your own height and width in your CSS for SVG files "
66
- "to display correctly."
67
- msgstr ""
68
-
69
- #: ../admin/svgs-settings-page.php:114
70
- msgid ""
71
- "- Your uploaded image needs to be an SVG file for this plugin to replace the "
72
- "img tag with the inline SVG code. It will not create SVG files for you."
73
- msgstr ""
74
-
75
- #: ../admin/svgs-settings-page.php:131
76
- msgid "Plugin Features"
77
- msgstr ""
78
-
79
- #: ../admin/svgs-settings-page.php:145
80
- msgid "About The Plugin"
81
- msgstr ""
82
-
83
- #: ../admin/svgs-settings-page.php:157
84
- msgid "GoWebben Hosting"
85
- msgstr ""
86
-
87
- #: ../admin/svgs-settings-page.php:159
88
- msgid "Claim your FREE $25 credit from"
89
- msgstr ""
90
-
91
- #: ../admin/svgs-settings-page.php:159
92
- msgid ""
93
- "No catch, just free credit for using this plugin! It will be applied "
94
- "automatically using the link provided, but in any case you can simply use "
95
- "code: SVGSUPPORT during checkout."
96
- msgstr ""
97
-
98
- msgid "SVG Support"
99
- msgstr "SVG Podrška"
100
-
101
- msgid ""
102
- "Allow SVG file uploads using the WordPress Media Library uploader plus "
103
- "direct styling of SVG elements using CSS."
104
- msgstr ""
105
- "Aktivirajte učitavanje SVG datoteka uz pomoć WordPress Media Library "
106
- "uploader-a i direktno stilizovanje SVG elemenata uz pomoć CSS-a."
107
-
108
- msgid "Benbodhi"
109
- msgstr "Benbodhi"
110
-
111
- msgid "http://benbodhi.com"
112
- msgstr "http://benbodhi.com"
113
-
114
- #: ../admin/admin-init.php:15
115
- msgid "SVG Support Options and Instructions"
116
- msgstr "SVG opcije podrške i uputstva"
117
-
118
- #: ../admin/admin-init.php:29
119
- msgid "You can't play with this."
120
- msgstr "Ne možete se igrati ovim."
121
-
122
- #: ../admin/plugin-action-meta-links.php:30
123
- msgid "Get Support"
124
- msgstr "Obezbedite podršku"
125
-
126
- #: ../admin/plugin-action-meta-links.php:31
127
- msgid "Donate to author"
128
- msgstr "Donirajte autoru"
129
-
130
- #: ../admin/svgs-settings-page.php:4
131
- msgid "SVG Support Settings and Usage"
132
- msgstr "SVG postavke podrške i upotreba"
133
-
134
- #: ../admin/svgs-settings-page.php:12
135
- msgid "Introduction"
136
- msgstr "Uvod"
137
-
138
- #: ../admin/svgs-settings-page.php:15
139
- msgid ""
140
- "When using SVG images on your WordPress site, it can be hard to style "
141
- "elements within the SVG using CSS. <strong>Now you can, easily!</strong>"
142
- msgstr ""
143
- "Kad koristite SVG slike na svom WordPress sajtu, može vam biti teško da "
144
- "stilizujete elemente u SVG-u uz pomoć CSS-a. <strong>Sad to možete uraditi s "
145
- "lakoćom!</strong>"
146
-
147
- #: ../admin/svgs-settings-page.php:16
148
- msgid ""
149
- "This plugin not only provides SVG Support like the name says, it also allows "
150
- "you to easily embed your full SVG file's code using a simple IMG tag. By "
151
- "adding the class <code>style-svg</code> to your IMG elements, this plugin "
152
- "dynamically replaces any IMG elements containing the <code>style-svg</code> "
153
- "class with your complete SVG."
154
- msgstr ""
155
- "Ovaj plugin ne obezbeđuje samo SVG podršku, kao što mu ime kaže, već vam "
156
- "omogućava i da s lakoćom ugradite svoj puni kod SVG datoteke uz pomoć "
157
- "jednostavne IMG oznake. Dodavanjem klase <code>style-svg</code> svojim IMG "
158
- "elementima, ovaj plugin dinamički zamenjuje bilo koje IMG elemente koji "
159
- "sadrže <code>style-svg</code klasu vašim kompletnim SVG-om."
160
-
161
- #: ../admin/svgs-settings-page.php:17
162
- msgid ""
163
- "The main purpose of this is to allow styling of SVG elements. Usually your "
164
- "styling options are restricted when using <code>embed</code>, "
165
- "<code>object</code> or <code>img</code> tags alone."
166
- msgstr ""
167
- "Osnovna svrha ovoga je da omogući stilizovanje SVG elemenata. Obično su "
168
- "opcije stilizovanja ograničene ako koristite samo oznake: <code>embed</code>,"
169
- " <code>object</code> or <code>img</code>."
170
-
171
- #: ../admin/svgs-settings-page.php:34
172
- msgid "Settings"
173
- msgstr "Postavke"
174
-
175
- #: ../admin/svgs-settings-page.php:46
176
- msgid "Restrict to Administrators"
177
- msgstr "Ograniči administratorima"
178
-
179
- #: ../admin/svgs-settings-page.php:51 ../admin/svgs-settings-page.php:62 ..
180
- #: admin/svgs-settings-page.php:73
181
- msgid "Yes"
182
- msgstr "Da"
183
-
184
- #: ../admin/svgs-settings-page.php:51
185
- msgid " Restricts SVG upload priveledges to Administrators."
186
- msgstr "Ograničava privilegije SVG učitavanja administratorima."
187
-
188
- #: ../admin/svgs-settings-page.php:78
189
- msgid "CSS Class to target"
190
- msgstr "CSS meta za ciljanje"
191
-
192
- #: ../admin/svgs-settings-page.php:81
193
- msgid ""
194
- "The default target class is <code>style-svg</code>. You can change it to "
195
- "your own class such as <code>my-class</code> by typing it here.<br />Leave "
196
- "blank to use the default class."
197
- msgstr ""
198
- "Podrazumevana ciljna klasa je <code>style-svg</code>. Možete je promeniti u "
199
- "svoju klasu, kao što je <code>my-class</code> tako što ćete je ukucati ovde."
200
- "<br /> Ostavite prazno polje da biste koristili podrazumevanu klasu."
201
-
202
- #: ../admin/svgs-settings-page.php:87
203
- msgid "Save Changes"
204
- msgstr "Sačuvaj izmene"
205
-
206
- #: ../admin/svgs-settings-page.php:98
207
- msgid "Usage"
208
- msgstr "Upotreba"
209
-
210
- #: ../admin/svgs-settings-page.php:101
211
- msgid "You can simply upload SVG images to your media library like any other file."
212
- msgstr ""
213
- "Jednostavno, možete učitati SVG slike u svoju biblioteku medija kao i bilo "
214
- "koju drugu datoteku."
215
-
216
- #: ../admin/svgs-settings-page.php:102
217
- msgid ""
218
- "Now, embed your SVG image like a standard image with the addition of adding "
219
- "the class <code>style-svg</code> (or your custom class from above) to any "
220
- "IMG tags that you want this plugin to swap out with your actual SVG code."
221
- msgstr ""
222
- "Sada ugradite svoju SVG sliku kao standardnu sliku uz dodatak klase "
223
- "<code>style-svg</code> (ili svoje prilagođene navedene klase) u bilo koju od "
224
- "IMG oznaka koju želite da ovaj plugin zameni vašim pravim SVG kodom."
225
-
226
- #: ../admin/svgs-settings-page.php:103
227
- msgid "For example:"
228
- msgstr "Na primer:"
229
-
230
- #: ../admin/svgs-settings-page.php:106
231
- msgid "or"
232
- msgstr "ili"
233
-
234
- #: ../admin/svgs-settings-page.php:109
235
- msgid ""
236
- "The whole IMG tag element will now be dynamically replaced by the actual "
237
- "code of your SVG, making the inner content targetable."
238
- msgstr ""
239
- "Sada će ceo IMG element oznake biti dinamički zamenjen pravim kodom ili "
240
- "vašim SVG-om, što znači da će unutrašnji sadržaj biti raspoloživ za ciljanje."
241
-
242
- #: ../admin/svgs-settings-page.php:110
243
- msgid "This allows you to target elements within your SVG using CSS."
244
- msgstr "Omogućava vam da ciljate elemente u svom SVG-u koristeći CSS."
245
-
246
- #: ../admin/svgs-settings-page.php:134
247
- msgid "SVG Support for your media library"
248
- msgstr "SVG podrška za vaše biblioteke medija"
249
-
250
- #: ../admin/svgs-settings-page.php:135
251
- msgid "Style SVG elements directly using CSS"
252
- msgstr "Stilizuj SVG elemente direktno koristeći CSS"
253
-
254
- #: ../admin/svgs-settings-page.php:136
255
- msgid "Restrict to Administrators only"
256
- msgstr "Ograniči samo za administratore"
257
-
258
- #: ../admin/svgs-settings-page.php:137
259
- msgid "Extremely Simple To Use"
260
- msgstr "Izuzetno jednostavan za upotrebu"
261
-
262
- #: ../admin/svgs-settings-page.php:147
263
- msgid "You can read about this plugin in detail on"
264
- msgstr "O ovom plugin-u detaljnije možete pročitati na:"
265
-
266
- #: ../admin/svgs-settings-page.php:147
267
- msgid "The WordPress Plugin Repository"
268
- msgstr "WordPress Plugin Repository"
269
-
270
- #: ../admin/svgs-settings-page.php:148
271
- msgid "Need help?"
272
- msgstr "Potrebna vam je pomoć?"
273
-
274
- #: ../admin/svgs-settings-page.php:148
275
- msgid "Visit Support"
276
- msgstr "Posetite podršku"
277
-
278
- #: ../admin/svgs-settings-page.php:149
279
- msgid "Buy Benbodhi a Beer &rarr;"
280
- msgstr "Kupite Benbodhi-ju pivo &rarr;"
281
-
282
- #: ../admin/svgs-settings-page.php:150
283
- msgid "from"
284
- msgstr "od"
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: SVG Support 2.2.3.1\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-05-16 20:19:06+00:00\n"
6
+ "PO-Revision-Date: Mon May 16 2016 13:54:09 GMT-0700 (PDT)\n"
7
+ "Last-Translator: root <benbodhi@gmail.com>\n"
8
+ "Language-Team: Benbodhi <wp@benbodhi.com>\n"
9
+ "Language: Serbian\n"
10
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10 >= 2 && "
11
+ "n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2)\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Generator: Loco - https://localise.biz/\n"
17
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
18
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
19
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
20
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
21
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
22
+ "X-Poedit-Basepath: ../\n"
23
+ "X-Textdomain-Support: yes\n"
24
+ "X-Poedit-SearchPath-0: .\n"
25
+ "X-Loco-Target-Locale: sr_RS"
26
+
27
+ #. URI of the plugin
28
+ msgid "http://wordpress.org/plugins/svg-support"
29
+ msgstr ""
30
+
31
+ #: ../admin/plugin-action-meta-links.php:32
32
+ msgid "$25 Free Credit from GoWebben"
33
+ msgstr ""
34
+
35
+ #: ../admin/svgs-settings-page.php:57
36
+ msgid "Output JS in Footer?"
37
+ msgstr ""
38
+
39
+ #: ../admin/svgs-settings-page.php:62
40
+ msgid ""
41
+ " Normally, scripts are placed in <code>head</code> of the HTML document. If "
42
+ "this parameter is true, the script is placed before the closing "
43
+ "<code>body</code> tag. This requires the theme to have the "
44
+ "<code>wp_footer()</code> template tag in the appropriate place."
45
+ msgstr ""
46
+
47
+ #: ../admin/svgs-settings-page.php:68
48
+ msgid "Automatically insert class?"
49
+ msgstr ""
50
+
51
+ #: ../admin/svgs-settings-page.php:73
52
+ msgid ""
53
+ " Checking this will make sure that either the default class or the custom "
54
+ "one you set below is inserted into the style attributes of <code>img</code> "
55
+ "tags when you insert images. Additionally, it will remove all of the default "
56
+ "WordPress classes."
57
+ msgstr ""
58
+
59
+ #: ../admin/svgs-settings-page.php:112
60
+ msgid "Please Note:"
61
+ msgstr ""
62
+
63
+ #: ../admin/svgs-settings-page.php:113
64
+ msgid ""
65
+ "- You will need to set your own height and width in your CSS for SVG files "
66
+ "to display correctly."
67
+ msgstr ""
68
+
69
+ #: ../admin/svgs-settings-page.php:114
70
+ msgid ""
71
+ "- Your uploaded image needs to be an SVG file for this plugin to replace the "
72
+ "img tag with the inline SVG code. It will not create SVG files for you."
73
+ msgstr ""
74
+
75
+ #: ../admin/svgs-settings-page.php:131
76
+ msgid "Plugin Features"
77
+ msgstr ""
78
+
79
+ #: ../admin/svgs-settings-page.php:145
80
+ msgid "About The Plugin"
81
+ msgstr ""
82
+
83
+ #: ../admin/svgs-settings-page.php:157
84
+ msgid "GoWebben Hosting"
85
+ msgstr ""
86
+
87
+ #: ../admin/svgs-settings-page.php:159
88
+ msgid "Claim your FREE $25 credit from"
89
+ msgstr ""
90
+
91
+ #: ../admin/svgs-settings-page.php:159
92
+ msgid ""
93
+ "No catch, just free credit for using this plugin! It will be applied "
94
+ "automatically using the link provided, but in any case you can simply use "
95
+ "code: SVGSUPPORT during checkout."
96
+ msgstr ""
97
+
98
+ msgid "SVG Support"
99
+ msgstr "SVG Podrška"
100
+
101
+ msgid ""
102
+ "Allow SVG file uploads using the WordPress Media Library uploader plus "
103
+ "direct styling of SVG elements using CSS."
104
+ msgstr ""
105
+ "Aktivirajte učitavanje SVG datoteka uz pomoć WordPress Media Library "
106
+ "uploader-a i direktno stilizovanje SVG elemenata uz pomoć CSS-a."
107
+
108
+ msgid "Benbodhi"
109
+ msgstr "Benbodhi"
110
+
111
+ msgid "http://benbodhi.com"
112
+ msgstr "http://benbodhi.com"
113
+
114
+ #: ../admin/admin-init.php:15
115
+ msgid "SVG Support Options and Instructions"
116
+ msgstr "SVG opcije podrške i uputstva"
117
+
118
+ #: ../admin/admin-init.php:29
119
+ msgid "You can't play with this."
120
+ msgstr "Ne možete se igrati ovim."
121
+
122
+ #: ../admin/plugin-action-meta-links.php:30
123
+ msgid "Get Support"
124
+ msgstr "Obezbedite podršku"
125
+
126
+ #: ../admin/plugin-action-meta-links.php:31
127
+ msgid "Donate to author"
128
+ msgstr "Donirajte autoru"
129
+
130
+ #: ../admin/svgs-settings-page.php:4
131
+ msgid "SVG Support Settings and Usage"
132
+ msgstr "SVG postavke podrške i upotreba"
133
+
134
+ #: ../admin/svgs-settings-page.php:12
135
+ msgid "Introduction"
136
+ msgstr "Uvod"
137
+
138
+ #: ../admin/svgs-settings-page.php:15
139
+ msgid ""
140
+ "When using SVG images on your WordPress site, it can be hard to style "
141
+ "elements within the SVG using CSS. <strong>Now you can, easily!</strong>"
142
+ msgstr ""
143
+ "Kad koristite SVG slike na svom WordPress sajtu, može vam biti teško da "
144
+ "stilizujete elemente u SVG-u uz pomoć CSS-a. <strong>Sad to možete uraditi s "
145
+ "lakoćom!</strong>"
146
+
147
+ #: ../admin/svgs-settings-page.php:16
148
+ msgid ""
149
+ "This plugin not only provides SVG Support like the name says, it also allows "
150
+ "you to easily embed your full SVG file's code using a simple IMG tag. By "
151
+ "adding the class <code>style-svg</code> to your IMG elements, this plugin "
152
+ "dynamically replaces any IMG elements containing the <code>style-svg</code> "
153
+ "class with your complete SVG."
154
+ msgstr ""
155
+ "Ovaj plugin ne obezbeđuje samo SVG podršku, kao što mu ime kaže, već vam "
156
+ "omogućava i da s lakoćom ugradite svoj puni kod SVG datoteke uz pomoć "
157
+ "jednostavne IMG oznake. Dodavanjem klase <code>style-svg</code> svojim IMG "
158
+ "elementima, ovaj plugin dinamički zamenjuje bilo koje IMG elemente koji "
159
+ "sadrže <code>style-svg</code klasu vašim kompletnim SVG-om."
160
+
161
+ #: ../admin/svgs-settings-page.php:17
162
+ msgid ""
163
+ "The main purpose of this is to allow styling of SVG elements. Usually your "
164
+ "styling options are restricted when using <code>embed</code>, "
165
+ "<code>object</code> or <code>img</code> tags alone."
166
+ msgstr ""
167
+ "Osnovna svrha ovoga je da omogući stilizovanje SVG elemenata. Obično su "
168
+ "opcije stilizovanja ograničene ako koristite samo oznake: <code>embed</code>,"
169
+ " <code>object</code> or <code>img</code>."
170
+
171
+ #: ../admin/svgs-settings-page.php:34
172
+ msgid "Settings"
173
+ msgstr "Postavke"
174
+
175
+ #: ../admin/svgs-settings-page.php:46
176
+ msgid "Restrict to Administrators"
177
+ msgstr "Ograniči administratorima"
178
+
179
+ #: ../admin/svgs-settings-page.php:51 ../admin/svgs-settings-page.php:62 ..
180
+ #: admin/svgs-settings-page.php:73
181
+ msgid "Yes"
182
+ msgstr "Da"
183
+
184
+ #: ../admin/svgs-settings-page.php:51
185
+ msgid " Restricts SVG upload priveledges to Administrators."
186
+ msgstr "Ograničava privilegije SVG učitavanja administratorima."
187
+
188
+ #: ../admin/svgs-settings-page.php:78
189
+ msgid "CSS Class to target"
190
+ msgstr "CSS meta za ciljanje"
191
+
192
+ #: ../admin/svgs-settings-page.php:81
193
+ msgid ""
194
+ "The default target class is <code>style-svg</code>. You can change it to "
195
+ "your own class such as <code>my-class</code> by typing it here.<br />Leave "
196
+ "blank to use the default class."
197
+ msgstr ""
198
+ "Podrazumevana ciljna klasa je <code>style-svg</code>. Možete je promeniti u "
199
+ "svoju klasu, kao što je <code>my-class</code> tako što ćete je ukucati ovde."
200
+ "<br /> Ostavite prazno polje da biste koristili podrazumevanu klasu."
201
+
202
+ #: ../admin/svgs-settings-page.php:87
203
+ msgid "Save Changes"
204
+ msgstr "Sačuvaj izmene"
205
+
206
+ #: ../admin/svgs-settings-page.php:98
207
+ msgid "Usage"
208
+ msgstr "Upotreba"
209
+
210
+ #: ../admin/svgs-settings-page.php:101
211
+ msgid "You can simply upload SVG images to your media library like any other file."
212
+ msgstr ""
213
+ "Jednostavno, možete učitati SVG slike u svoju biblioteku medija kao i bilo "
214
+ "koju drugu datoteku."
215
+
216
+ #: ../admin/svgs-settings-page.php:102
217
+ msgid ""
218
+ "Now, embed your SVG image like a standard image with the addition of adding "
219
+ "the class <code>style-svg</code> (or your custom class from above) to any "
220
+ "IMG tags that you want this plugin to swap out with your actual SVG code."
221
+ msgstr ""
222
+ "Sada ugradite svoju SVG sliku kao standardnu sliku uz dodatak klase "
223
+ "<code>style-svg</code> (ili svoje prilagođene navedene klase) u bilo koju od "
224
+ "IMG oznaka koju želite da ovaj plugin zameni vašim pravim SVG kodom."
225
+
226
+ #: ../admin/svgs-settings-page.php:103
227
+ msgid "For example:"
228
+ msgstr "Na primer:"
229
+
230
+ #: ../admin/svgs-settings-page.php:106
231
+ msgid "or"
232
+ msgstr "ili"
233
+
234
+ #: ../admin/svgs-settings-page.php:109
235
+ msgid ""
236
+ "The whole IMG tag element will now be dynamically replaced by the actual "
237
+ "code of your SVG, making the inner content targetable."
238
+ msgstr ""
239
+ "Sada će ceo IMG element oznake biti dinamički zamenjen pravim kodom ili "
240
+ "vašim SVG-om, što znači da će unutrašnji sadržaj biti raspoloživ za ciljanje."
241
+
242
+ #: ../admin/svgs-settings-page.php:110
243
+ msgid "This allows you to target elements within your SVG using CSS."
244
+ msgstr "Omogućava vam da ciljate elemente u svom SVG-u koristeći CSS."
245
+
246
+ #: ../admin/svgs-settings-page.php:134
247
+ msgid "SVG Support for your media library"
248
+ msgstr "SVG podrška za vaše biblioteke medija"
249
+
250
+ #: ../admin/svgs-settings-page.php:135
251
+ msgid "Style SVG elements directly using CSS"
252
+ msgstr "Stilizuj SVG elemente direktno koristeći CSS"
253
+
254
+ #: ../admin/svgs-settings-page.php:136
255
+ msgid "Restrict to Administrators only"
256
+ msgstr "Ograniči samo za administratore"
257
+
258
+ #: ../admin/svgs-settings-page.php:137
259
+ msgid "Extremely Simple To Use"
260
+ msgstr "Izuzetno jednostavan za upotrebu"
261
+
262
+ #: ../admin/svgs-settings-page.php:147
263
+ msgid "You can read about this plugin in detail on"
264
+ msgstr "O ovom plugin-u detaljnije možete pročitati na:"
265
+
266
+ #: ../admin/svgs-settings-page.php:147
267
+ msgid "The WordPress Plugin Repository"
268
+ msgstr "WordPress Plugin Repository"
269
+
270
+ #: ../admin/svgs-settings-page.php:148
271
+ msgid "Need help?"
272
+ msgstr "Potrebna vam je pomoć?"
273
+
274
+ #: ../admin/svgs-settings-page.php:148
275
+ msgid "Visit Support"
276
+ msgstr "Posetite podršku"
277
+
278
+ #: ../admin/svgs-settings-page.php:149
279
+ msgid "Buy Benbodhi a Beer &rarr;"
280
+ msgstr "Kupite Benbodhi-ju pivo &rarr;"
281
+
282
+ #: ../admin/svgs-settings-page.php:150
283
+ msgid "from"
284
+ msgstr "od"
readme.txt CHANGED
@@ -3,12 +3,14 @@ Contributors: Benbodhi
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline, animation, animate, js
5
  Requires at least: 4.8
6
- Tested up to: 4.9-alpha-41335
7
- Stable tag: 2.3.11
 
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Allow SVG file uploads using the WordPress Media Library uploader plus the ability to inline SVG files for direct styling/animation of SVG elements using CSS/JS.
 
12
 
13
  == Description ==
14
 
@@ -22,7 +24,6 @@ By adding the class `"style-svg"` to your IMG elements, this plugin dynamically
22
  The main purpose of this is to allow styling of SVG elements. Usually your styling options are restricted when using `embed`, `object` or `img` tags alone.
23
 
24
  = Features =
25
-
26
  * SVG Support for your media library
27
  * Inline your SVG code
28
  * Works with the new Image Widget (WordPress 4.8+)
@@ -32,6 +33,7 @@ The main purpose of this is to allow styling of SVG elements. Usually your styli
32
  * Set custom css target class
33
  * **Extremely Simple To Use**
34
 
 
35
  == Usage ==
36
 
37
  Firstly, install and activate SVG Support (this plugin).
@@ -68,100 +70,88 @@ Please Note: If your SVG isn’t showing, it’s likely that it is being display
68
 
69
  *If you're having any issues, please use the support tab and I will try my best to get back to you quickly*
70
 
 
71
  == Security ==
72
 
73
  As with allowing uploads of any files, there is potential risks involved. Only allow users to upload SVG files if you trust them. You have the option to restrict SVG usage to Administrators only from the settings page. By default, anyone with Media Library access or upload_files capability will be able to upload SVG files (that is Administrators, Authors and Editors). Please note that SVG files are actually XML which would allow someone to inject malicious code if you're not careful with who has upload privileges.
74
 
 
75
  == Feedback ==
76
 
77
  * I'm open to your [suggestions and feedback](mailto:wp@benbodhi.com) - Thanks for using SVG Support!
78
- * Tag me [@benbodhi](https://twitter.com/benbodhi) or [@GoWebben](https://twitter.com/gowebben) on Twitter
79
- * Like & Follow [my Facebook page](https://www.facebook.com/gowebben)
80
- * Or circle [+GoWebben](https://plus.google.com/+Gowebben/) on Google Plus ;-)
81
 
82
- *Note:* This is my second plugin on the WordPress repository, I hope you like it. Please take a moment to rate it and click 'works' under compatibility with your version of WordPress.
83
 
84
  == Translations ==
85
 
86
  You can [contribute your translation here](https://translate.wordpress.org/projects/wp-plugins/svg-support).
87
  New to Translating WordPress? Read through the [Translator Handbook](https://make.wordpress.org/polyglots/handbook/tools/glotpress-translate-wordpress-org/) to get started.
88
 
89
- == Additional Info ==
90
- **Idea Behind / Philosophy:** I needed an easy way to include SVG support in sites instead of having to copy and paste the code for each one. I also needed the ability to make odd shaped image links which SVG allows by embedding the links in the SVG file directly. I found a [really cool snippet](http://stackoverflow.com/questions/11978995/how-to-change-color-of-svg-image-using-css-jquery-svg-image-replacement) of jQuery written by Drew Baker a while ago and have used it (modified for WordPress) a few times until I was inspired to build it all into a plugin for ease of use and to share with others. Now styling SVG elements is super easy :)
91
-
92
- Again, feel free to [shoot me suggestions](mailto:wp@benbodhi.com)
93
 
94
  == Credits ==
 
95
  Plugin by [Benbodhi](https://benbodhi.com/) [@benbodhi](https://twitter.com/benbodhi) from [GoWebben](http://gowebben.com/) [@GoWebben](https://twitter.com/gowebben)
96
 
97
  Thanks to [ipokkel](https://wordpress.org/support/users/ipokkel/) for his suggestions and code contributions.
98
  Thanks to [laurosello](https://wordpress.org/support/users/laurosollero) for his code contribution.
99
  Logo By W3C, CC BY 2.5, [https://commons.wikimedia.org/w/index.php?curid=1895005](https://commons.wikimedia.org/w/index.php?curid=1895005).
100
 
 
101
  == Frequently Asked Questions ==
102
 
103
  = SVG not rendering inline since 2.3 update =
104
-
105
  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.
106
 
107
  = How do I disable the Javascript on the front end if I am not using inline SVG? =
108
-
109
  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.
110
 
111
  = I'm trying to use SVG in the customizer but it's not working. =
112
-
113
- 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](https://thebrandid.com/using-svg-logos-wordpress-customizer/) on how to do that. The important part is
114
  `
115
  'flex-width' => true
116
  'flex-height' => true
117
  `
118
 
119
  = How do I add animation to my SVG? =
120
-
121
  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.
122
 
123
  = Why is SVG Support not working in multisite? =
124
-
125
  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](http://halfelf.org/2012/dumping-ms-files/) [Removing ms-files after 3.5](https://www.yunomie.com/2298/removing-ms-files-php-after-upgrading-an-existing-multisite-installation-to-3-5/).
126
 
127
  = Why is my SVG not working in Visual Composer? =
128
-
129
- 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.
130
 
131
  = How do I get this to work with the Media Library Assistant plugin? =
132
-
133
  You need to add the mime type for svg and svgz to: "MLA Settings > Media Library Assistant > Uploads (tab)" and then it works.
134
 
 
135
  == Screenshots ==
136
 
137
  1. Basic Settings
138
  2. Advanced Settings
139
  3. Featured Image checkbox to render SVG inline
140
- 4. Inline SVG in the front end markup
141
-
142
- == Installation ==
143
-
144
- = via wp-admin =
145
- 1. Visit 'Plugins' > 'Add New'
146
- 2. Type "SVG Support" into the search field
147
- 3. Click 'Install Plugin' and confirm in the pop up
148
- 4. Click 'Activate Plugin'
149
-
150
- or
151
-
152
- 1. Upload the compressed version `svg-support.zip` through 'Plugins' > 'Add New' > 'Upload'
153
- 2. Click 'Activate Plugin'
154
-
155
- = via FTP =
156
- 1. Download plugin zip and extract it on your computer
157
- 2. Upload folder `svg-support` to your `/wp-content/plugins/` directory
158
- 3. Activate the plugin through the 'Plugins' menu in WordPress
159
 
160
 
161
  == Changelog ==
162
 
163
- = 2.3.11 =
 
 
 
 
 
164
 
 
165
  * New: Feature to use expanded JS file rather than the minified/compressed version (useful for bundling and minifying using external caching plugins).
166
  * New: Force Inline SVG option. This feature allows you to force all of your SVG files to be rendered inline regardless of classes applied. Addresses issues where you can't add your own class to an image for some reason. For example, some page builder image elements. Also addresses changing your target class in the settings and needing to change all of your already embedded media, allowing you to simply force render rather than update all of the classes.
167
  * Modified the readme file and descriptions a bit.
@@ -169,23 +159,19 @@ or
169
  * Updated "Requires at least" tag to 4.8 (though it should still work in older versions, there was issues with core during the 4.7 phase and it's time for you to update anyway).
170
 
171
  = 2.3.10 =
172
-
173
  * Fixed missing links in settings page.
174
 
175
  = 2.3.9 =
176
-
177
  * Modified plugin action meta link for settings page.
178
  * Changed some language throughout the plugin.
179
  * Added recommendation for ShortPixel Image Optimization.
180
  * Added conditional to check post type supports thumbnail before setting meta data.
181
 
182
  = 2.3.8 =
183
-
184
  * Added some CSS to make sure featured images show on WooCommerce products, Sensei Courses and Lessons.
185
  * Fix: Auto insert class setting was stripping featured image HTML in some cases.
186
 
187
  = 2.3.7 =
188
-
189
  * Added WP version check to wrap mime fix function needed for WP v4.7.1 - v4.7.2.
190
  * Moved mime fix into mime type file.
191
  * Modified admin notice code to make it neater.
@@ -194,37 +180,29 @@ or
194
  * Compatibility: Added another snippet to the JS to support IE11 (apparently people still use IE).
195
  * Added more FAQ's.
196
 
197
-
198
  = 2.3.6 =
199
-
200
  * New: Added polyfill to make svgs-inline.js work with older browsers.
201
  * New: Section to leave reviews on settings page.
202
  * Removed: Redundant one time upgrade activate code.
203
  * Fix: Errors reported on activation and on the settings page - [Related Support Thread](https://wordpress.org/support/topic/error-on-plugin-settings-page/).
204
 
205
  = 2.3.5 =
206
-
207
  * Revision and modification of the thumbnail display code.
208
 
209
  = 2.3.4 =
210
-
211
  * Fix: Fatal error for some because a function wasn't prefixed.
212
 
213
  = 2.3.3 =
214
-
215
  * Fix: Missing arguments PHP warnings from new attribute control file.
216
  * Update settings page text.
217
 
218
  = 2.3.2 =
219
-
220
  * Modified the attribute control code that auto inserts our class to only apply to SVG files.
221
 
222
  = 2.3.1 =
223
-
224
  * Fix: Fatal error in some cases due to admin notice.
225
 
226
  = 2.3 =
227
-
228
  * New Feature - Advanced Mode: allows you to turn off the advanced features and simply upload SVG files like normal images. This addition also enables users to turn off the script added on front end by leaving Advanced Mode unchecked.
229
  * New Feature - Featured Image Support: If your featured image is SVG, once the post is saved you will see a checkbox to render the SVG inline (advanced mode only).
230
  * Performance - Stop inlining JS from running if image source is not SVG.
@@ -237,38 +215,30 @@ or
237
  * Added notice so people are aware they may need to turn on the advanced mode.
238
 
239
  = 2.2.5 =
240
-
241
  * FIX: Display SVG thumbnails in attachment modals.
242
 
243
  = 2.2.4 =
244
-
245
  * FIX: Added function to temporarily fix an issue with uploading in WP 4.7.1
246
 
247
  = 2.2.32 =
248
-
249
  * Changed text domain to match plugin slug for localization.
250
 
251
  = 2.2.31 =
252
-
253
  * Attempt to fix ability to translate
254
 
255
  = 2.2.3 =
256
-
257
  * 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 they have been loaded (IMG tag swapped out). Thanks to [laurosello](https://wordpress.org/support/profile/laurosollero) for this suggestion and code contribution.
258
  * Fixed SVG thumbnails not displaying correctly in list view of the media library.
259
  * Cleaned up the code and comments a bit.
260
  * Added translation for Spanish. Thanks to [Apasionados del Marketing](http://apasionados.es) for the translation.
261
 
262
  = 2.2.2 =
263
-
264
  * Changed another anonymous function in svg-support/functions/thumbnail-display.php that was causing errors for some.
265
 
266
  = 2.2.1 =
267
-
268
  * Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.
269
 
270
  = 2.2 =
271
-
272
  * Added support to make SVG thumbnails visible in all media library screens.
273
  * Added SVGZ to the mime types.
274
  * Automatically removes the width and height attributes when inserting SVG files.
@@ -283,19 +253,15 @@ or
283
  * Updated Readme file.
284
 
285
  = 2.1.7 =
286
-
287
  * Tested in WordPress 4.0 and added plugin icons for the new interface.
288
 
289
  = 2.1.6 =
290
-
291
  * Added missing jQuery dependency in /functions/enqueue.php (pointed out by [walbach](http://wordpress.org/support/profile/waldbach)) - was loading SVG Support JS before jQuery.
292
 
293
  = 2.1.5 =
294
-
295
  * Added Serbian translation, submitted by Ogi Djuraskovic.
296
 
297
  = 2.1.4 =
298
-
299
  * Fixed plugin settings link (on plugins page)
300
  * Added more links - Support & Donate
301
  * Modified the settings page a little
@@ -303,23 +269,18 @@ or
303
  * Satisfied my OCD tendencies a little
304
 
305
  = 2.1.3 =
306
-
307
  * Added plugin_action_links file for custom menus on plugin page.
308
 
309
  = 2.1.2 =
310
-
311
  * Cleaned up trunk, tags and readme.txt to show correct changelog and update notice.
312
 
313
  = 2.1.1 =
314
-
315
  * Fixed JS file conditional - worked in local testing but not live.
316
 
317
  = 2.1 =
318
-
319
  * Updates to language files for localization.
320
 
321
  = 2.0 =
322
-
323
  * Added an admin settings page with instructions plus options for restricting to admin use only and setting a custom CSS target class.
324
  * Whole plugin completely re-written and re-structured.
325
  * Added option to restrict SVG uploads to administrators only.
@@ -327,129 +288,102 @@ or
327
  * Added stylesheet to admin settings page.
328
 
329
  = 1.0 =
330
-
331
  * Initial Release.
332
 
 
333
  == Upgrade Notice ==
334
 
335
- = 2.3.11 =
 
336
 
 
337
  * 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.
338
 
339
  = 2.3.10 =
340
-
341
  * Fixed missing links in settings page.
342
 
343
  = 2.3.9 =
344
-
345
  * Cleaned up some code and language, now stores less meta when not needed and added a plugin recommendation for Image Optimization.
346
 
347
  = 2.3.8 =
348
-
349
  * Adds better support for WooCommerce and Sensei. Fixes issue with featured images not showing up when auto insert class setting is on.
350
 
351
  = 2.3.7 =
352
-
353
  * Fixes issues with media library not loading for some, attachment-modal errors and adds some wider compatibility.
354
 
355
  = 2.3.6 =
356
-
357
  * Adds support for older browsers, fixes a couple of seemingly isolated errors reported, removes some redundant code.
358
 
359
  = 2.3.5 =
360
-
361
  * Modifications to thumbnail display code to prevent output buffer clash with another plugin.
362
 
363
  = 2.3.4 =
364
-
365
  * Fixes fatal error for some because a function wasn't prefixed.
366
 
367
  = 2.3.3 =
368
-
369
  * This update fixes some PHP warnings introduced in 2.3.2 and also has updated settings page text.
370
 
371
  = 2.3.2 =
372
-
373
  * Changes to the way the auto class insert works.
374
 
375
  = 2.3.1 =
376
-
377
  * Fixes fatal error in some cases due to admin notice in V2.3.
378
 
379
  = 2.3 =
380
-
381
  IMPORTANT, MAJOR CHANGES, BACKUP BEFORE UPDATING: Users that are inlining SVG will need to make sure "Advanced Mode" is active under "Settings > SVG Support". Your settings should all still be there. Make sure you run a backup before updating just in case!!!
382
 
383
  = 2.2.5 =
384
-
385
  * Fix to display SVG thumbnails in attachment modals. (NOTE: You can not edit SVG files like other images in WordPress)
386
 
387
  = 2.2.4 =
388
-
389
  * IMPORTANT: Fixes upload ability in WP 4.7.1
390
 
391
  = 2.2.32 =
392
-
393
  * Changed text domain to match plugin slug for localization.
394
 
395
  = 2.2.31 =
396
-
397
  * This release attempts to fix translation issues.
398
 
399
  = 2.2.3 =
400
-
401
  * Feature - Changed code to allow JS detection if SVG has loaded and ability to control SVG using JS.
402
  * Fix - Thumbnail display in media library list view.
403
  * Added Spanish translation and cleaned up code/comments a bit.
404
 
405
  = 2.2.2 =
406
-
407
  * Fix - Another change from anonymous function that was triggering errors for some.
408
 
409
  = 2.2.1 =
410
-
411
  * Minor change to remove anonymous function that triggered a fatal error in older PHP versions.
412
 
413
  = 2.2 =
414
-
415
  * Significant changes, added functionality, please BACKUP BEFORE UPDATING just in case.
416
 
417
  = 2.1.7 =
418
-
419
  * Tested in WordPress 4.0 and added plugin icons for the new interface.
420
 
421
  = 2.1.6 =
422
-
423
  * Important update! Added missing jQuery dependency in /functions/enqueue.php - was loading SVG Support JS before jQuery.
424
 
425
  = 2.1.5 =
426
-
427
  * Added Serbian translation, submitted by Ogi Djuraskovic.
428
 
429
  = 2.1.4 =
430
-
431
  * Some more re-arranging, added a few helpful links, updated language files, tended to my OCD a bit.
432
 
433
  = 2.1.3 =
434
-
435
  * Added a link on the plugins page to the plugin settings page for easy access after install.
436
 
437
  = 2.1.2 =
438
-
439
  * A little bit of house cleaning, updates to changelog and readme.txt for correct output with current version.
440
 
441
  = 2.1.1 =
442
-
443
  * Update to conditional in JS file.
444
 
445
  = 2.1 =
446
-
447
  * Updated language files for localization that were missed in version 2.0.
448
 
449
  = 2.0 =
450
-
451
  * 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.
452
 
453
  = 1.0 =
454
-
455
  * Initial Release.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z9R7JERS82EQQ
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline, animation, animate, js
5
  Requires at least: 4.8
6
+ Tested up to: 5.0-alpha-42984
7
+ Requires PHP: 5.2
8
+ Stable tag: 2.3.12
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
+ Upload SVG files to the Media Library and render SVG files inline for direct styling/animation of an SVG's internal elements using CSS/JS.
13
+
14
 
15
  == Description ==
16
 
24
  The main purpose of this is to allow styling of SVG elements. Usually your styling options are restricted when using `embed`, `object` or `img` tags alone.
25
 
26
  = Features =
 
27
  * SVG Support for your media library
28
  * Inline your SVG code
29
  * Works with the new Image Widget (WordPress 4.8+)
33
  * Set custom css target class
34
  * **Extremely Simple To Use**
35
 
36
+
37
  == Usage ==
38
 
39
  Firstly, install and activate SVG Support (this plugin).
70
 
71
  *If you're having any issues, please use the support tab and I will try my best to get back to you quickly*
72
 
73
+
74
  == Security ==
75
 
76
  As with allowing uploads of any files, there is potential risks involved. Only allow users to upload SVG files if you trust them. You have the option to restrict SVG usage to Administrators only from the settings page. By default, anyone with Media Library access or upload_files capability will be able to upload SVG files (that is Administrators, Authors and Editors). Please note that SVG files are actually XML which would allow someone to inject malicious code if you're not careful with who has upload privileges.
77
 
78
+
79
  == Feedback ==
80
 
81
  * I'm open to your [suggestions and feedback](mailto:wp@benbodhi.com) - Thanks for using SVG Support!
82
+ * Tag me [@benbodhi](https://twitter.com/benbodhi) on Twitter
83
+
84
+ *Note:* I hope you like this plugin! Please take a moment to rate it and click 'works' under compatibility with your version of WordPress.
85
 
 
86
 
87
  == Translations ==
88
 
89
  You can [contribute your translation here](https://translate.wordpress.org/projects/wp-plugins/svg-support).
90
  New to Translating WordPress? Read through the [Translator Handbook](https://make.wordpress.org/polyglots/handbook/tools/glotpress-translate-wordpress-org/) to get started.
91
 
 
 
 
 
92
 
93
  == Credits ==
94
+
95
  Plugin by [Benbodhi](https://benbodhi.com/) [@benbodhi](https://twitter.com/benbodhi) from [GoWebben](http://gowebben.com/) [@GoWebben](https://twitter.com/gowebben)
96
 
97
  Thanks to [ipokkel](https://wordpress.org/support/users/ipokkel/) for his suggestions and code contributions.
98
  Thanks to [laurosello](https://wordpress.org/support/users/laurosollero) for his code contribution.
99
  Logo By W3C, CC BY 2.5, [https://commons.wikimedia.org/w/index.php?curid=1895005](https://commons.wikimedia.org/w/index.php?curid=1895005).
100
 
101
+
102
  == Frequently Asked Questions ==
103
 
104
  = SVG not rendering inline since 2.3 update =
 
105
  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.
106
 
107
  = How do I disable the Javascript on the front end if I am not using inline SVG? =
 
108
  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.
109
 
110
  = I'm trying to use SVG in the customizer but it's not working. =
111
+ 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](https://thebrandid.com/using-svg-logos-wordpress-customizer/) on how to do that. The important part is:
 
112
  `
113
  'flex-width' => true
114
  'flex-height' => true
115
  `
116
 
117
  = How do I add animation to my SVG? =
 
118
  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.
119
 
120
  = Why is SVG Support not working in multisite? =
 
121
  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](http://halfelf.org/2012/dumping-ms-files/) [Removing ms-files after 3.5](https://www.yunomie.com/2298/removing-ms-files-php-after-upgrading-an-existing-multisite-installation-to-3-5/).
122
 
123
  = Why is my SVG not working in Visual Composer? =
124
+ 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.
 
125
 
126
  = How do I get this to work with the Media Library Assistant plugin? =
 
127
  You need to add the mime type for svg and svgz to: "MLA Settings > Media Library Assistant > Uploads (tab)" and then it works.
128
 
129
+
130
  == Screenshots ==
131
 
132
  1. Basic Settings
133
  2. Advanced Settings
134
  3. Featured Image checkbox to render SVG inline
135
+ 4. SVG used in WP native Image Widget (since 4.9)
136
+ 5. Inline SVG in the front end markup
137
+ 61. Help tab - Overview
138
+ 62. Help tab - The Settings
139
+ 63. Help tab - Standard Usage
140
+ 64. Help tab - Render SVG Inline (advanced usage)
141
+ 65. Help tab - Featured Images
142
+ 66. Help tab - Animation
 
 
 
 
 
 
 
 
 
 
 
143
 
144
 
145
  == Changelog ==
146
 
147
+ = 2.3.12 =
148
+ * New: Native "Help" tab on the SVG Support settings page.
149
+ * New: Wrapped the inline JS in a function so you can call it at will using `bodhisvgsInlineSupport();`.
150
+ * Modified: Admin CSS to target SVG src only.
151
+ * Modified: SVG Support settings page - cleaned it up a little.
152
+ * Removed: Version update admin notice.
153
 
154
+ = 2.3.11 =
155
  * New: Feature to use expanded JS file rather than the minified/compressed version (useful for bundling and minifying using external caching plugins).
156
  * New: Force Inline SVG option. This feature allows you to force all of your SVG files to be rendered inline regardless of classes applied. Addresses issues where you can't add your own class to an image for some reason. For example, some page builder image elements. Also addresses changing your target class in the settings and needing to change all of your already embedded media, allowing you to simply force render rather than update all of the classes.
157
  * Modified the readme file and descriptions a bit.
159
  * Updated "Requires at least" tag to 4.8 (though it should still work in older versions, there was issues with core during the 4.7 phase and it's time for you to update anyway).
160
 
161
  = 2.3.10 =
 
162
  * Fixed missing links in settings page.
163
 
164
  = 2.3.9 =
 
165
  * Modified plugin action meta link for settings page.
166
  * Changed some language throughout the plugin.
167
  * Added recommendation for ShortPixel Image Optimization.
168
  * Added conditional to check post type supports thumbnail before setting meta data.
169
 
170
  = 2.3.8 =
 
171
  * Added some CSS to make sure featured images show on WooCommerce products, Sensei Courses and Lessons.
172
  * Fix: Auto insert class setting was stripping featured image HTML in some cases.
173
 
174
  = 2.3.7 =
 
175
  * Added WP version check to wrap mime fix function needed for WP v4.7.1 - v4.7.2.
176
  * Moved mime fix into mime type file.
177
  * Modified admin notice code to make it neater.
180
  * Compatibility: Added another snippet to the JS to support IE11 (apparently people still use IE).
181
  * Added more FAQ's.
182
 
 
183
  = 2.3.6 =
 
184
  * New: Added polyfill to make svgs-inline.js work with older browsers.
185
  * New: Section to leave reviews on settings page.
186
  * Removed: Redundant one time upgrade activate code.
187
  * Fix: Errors reported on activation and on the settings page - [Related Support Thread](https://wordpress.org/support/topic/error-on-plugin-settings-page/).
188
 
189
  = 2.3.5 =
 
190
  * Revision and modification of the thumbnail display code.
191
 
192
  = 2.3.4 =
 
193
  * Fix: Fatal error for some because a function wasn't prefixed.
194
 
195
  = 2.3.3 =
 
196
  * Fix: Missing arguments PHP warnings from new attribute control file.
197
  * Update settings page text.
198
 
199
  = 2.3.2 =
 
200
  * Modified the attribute control code that auto inserts our class to only apply to SVG files.
201
 
202
  = 2.3.1 =
 
203
  * Fix: Fatal error in some cases due to admin notice.
204
 
205
  = 2.3 =
 
206
  * New Feature - Advanced Mode: allows you to turn off the advanced features and simply upload SVG files like normal images. This addition also enables users to turn off the script added on front end by leaving Advanced Mode unchecked.
207
  * New Feature - Featured Image Support: If your featured image is SVG, once the post is saved you will see a checkbox to render the SVG inline (advanced mode only).
208
  * Performance - Stop inlining JS from running if image source is not SVG.
215
  * Added notice so people are aware they may need to turn on the advanced mode.
216
 
217
  = 2.2.5 =
 
218
  * FIX: Display SVG thumbnails in attachment modals.
219
 
220
  = 2.2.4 =
 
221
  * FIX: Added function to temporarily fix an issue with uploading in WP 4.7.1
222
 
223
  = 2.2.32 =
 
224
  * Changed text domain to match plugin slug for localization.
225
 
226
  = 2.2.31 =
 
227
  * Attempt to fix ability to translate
228
 
229
  = 2.2.3 =
 
230
  * 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 they have been loaded (IMG tag swapped out). Thanks to [laurosello](https://wordpress.org/support/profile/laurosollero) for this suggestion and code contribution.
231
  * Fixed SVG thumbnails not displaying correctly in list view of the media library.
232
  * Cleaned up the code and comments a bit.
233
  * Added translation for Spanish. Thanks to [Apasionados del Marketing](http://apasionados.es) for the translation.
234
 
235
  = 2.2.2 =
 
236
  * Changed another anonymous function in svg-support/functions/thumbnail-display.php that was causing errors for some.
237
 
238
  = 2.2.1 =
 
239
  * Changed anonymous function in svg-support/functions/thumbnail-display.php line 15 to prevent fatal error in older PHP versions.
240
 
241
  = 2.2 =
 
242
  * Added support to make SVG thumbnails visible in all media library screens.
243
  * Added SVGZ to the mime types.
244
  * Automatically removes the width and height attributes when inserting SVG files.
253
  * Updated Readme file.
254
 
255
  = 2.1.7 =
 
256
  * Tested in WordPress 4.0 and added plugin icons for the new interface.
257
 
258
  = 2.1.6 =
 
259
  * Added missing jQuery dependency in /functions/enqueue.php (pointed out by [walbach](http://wordpress.org/support/profile/waldbach)) - was loading SVG Support JS before jQuery.
260
 
261
  = 2.1.5 =
 
262
  * Added Serbian translation, submitted by Ogi Djuraskovic.
263
 
264
  = 2.1.4 =
 
265
  * Fixed plugin settings link (on plugins page)
266
  * Added more links - Support & Donate
267
  * Modified the settings page a little
269
  * Satisfied my OCD tendencies a little
270
 
271
  = 2.1.3 =
 
272
  * Added plugin_action_links file for custom menus on plugin page.
273
 
274
  = 2.1.2 =
 
275
  * Cleaned up trunk, tags and readme.txt to show correct changelog and update notice.
276
 
277
  = 2.1.1 =
 
278
  * Fixed JS file conditional - worked in local testing but not live.
279
 
280
  = 2.1 =
 
281
  * Updates to language files for localization.
282
 
283
  = 2.0 =
 
284
  * Added an admin settings page with instructions plus options for restricting to admin use only and setting a custom CSS target class.
285
  * Whole plugin completely re-written and re-structured.
286
  * Added option to restrict SVG uploads to administrators only.
288
  * Added stylesheet to admin settings page.
289
 
290
  = 1.0 =
 
291
  * Initial Release.
292
 
293
+
294
  == Upgrade Notice ==
295
 
296
+ = 2.3.12 =
297
+ * 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.
298
 
299
+ = 2.3.11 =
300
  * 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.
301
 
302
  = 2.3.10 =
 
303
  * Fixed missing links in settings page.
304
 
305
  = 2.3.9 =
 
306
  * Cleaned up some code and language, now stores less meta when not needed and added a plugin recommendation for Image Optimization.
307
 
308
  = 2.3.8 =
 
309
  * Adds better support for WooCommerce and Sensei. Fixes issue with featured images not showing up when auto insert class setting is on.
310
 
311
  = 2.3.7 =
 
312
  * Fixes issues with media library not loading for some, attachment-modal errors and adds some wider compatibility.
313
 
314
  = 2.3.6 =
 
315
  * Adds support for older browsers, fixes a couple of seemingly isolated errors reported, removes some redundant code.
316
 
317
  = 2.3.5 =
 
318
  * Modifications to thumbnail display code to prevent output buffer clash with another plugin.
319
 
320
  = 2.3.4 =
 
321
  * Fixes fatal error for some because a function wasn't prefixed.
322
 
323
  = 2.3.3 =
 
324
  * This update fixes some PHP warnings introduced in 2.3.2 and also has updated settings page text.
325
 
326
  = 2.3.2 =
 
327
  * Changes to the way the auto class insert works.
328
 
329
  = 2.3.1 =
 
330
  * Fixes fatal error in some cases due to admin notice in V2.3.
331
 
332
  = 2.3 =
 
333
  IMPORTANT, MAJOR CHANGES, BACKUP BEFORE UPDATING: Users that are inlining SVG will need to make sure "Advanced Mode" is active under "Settings > SVG Support". Your settings should all still be there. Make sure you run a backup before updating just in case!!!
334
 
335
  = 2.2.5 =
 
336
  * Fix to display SVG thumbnails in attachment modals. (NOTE: You can not edit SVG files like other images in WordPress)
337
 
338
  = 2.2.4 =
 
339
  * IMPORTANT: Fixes upload ability in WP 4.7.1
340
 
341
  = 2.2.32 =
 
342
  * Changed text domain to match plugin slug for localization.
343
 
344
  = 2.2.31 =
 
345
  * This release attempts to fix translation issues.
346
 
347
  = 2.2.3 =
 
348
  * Feature - Changed code to allow JS detection if SVG has loaded and ability to control SVG using JS.
349
  * Fix - Thumbnail display in media library list view.
350
  * Added Spanish translation and cleaned up code/comments a bit.
351
 
352
  = 2.2.2 =
 
353
  * Fix - Another change from anonymous function that was triggering errors for some.
354
 
355
  = 2.2.1 =
 
356
  * Minor change to remove anonymous function that triggered a fatal error in older PHP versions.
357
 
358
  = 2.2 =
 
359
  * Significant changes, added functionality, please BACKUP BEFORE UPDATING just in case.
360
 
361
  = 2.1.7 =
 
362
  * Tested in WordPress 4.0 and added plugin icons for the new interface.
363
 
364
  = 2.1.6 =
 
365
  * Important update! Added missing jQuery dependency in /functions/enqueue.php - was loading SVG Support JS before jQuery.
366
 
367
  = 2.1.5 =
 
368
  * Added Serbian translation, submitted by Ogi Djuraskovic.
369
 
370
  = 2.1.4 =
 
371
  * Some more re-arranging, added a few helpful links, updated language files, tended to my OCD a bit.
372
 
373
  = 2.1.3 =
 
374
  * Added a link on the plugins page to the plugin settings page for easy access after install.
375
 
376
  = 2.1.2 =
 
377
  * A little bit of house cleaning, updates to changelog and readme.txt for correct output with current version.
378
 
379
  = 2.1.1 =
 
380
  * Update to conditional in JS file.
381
 
382
  = 2.1 =
 
383
  * Updated language files for localization that were missed in version 2.0.
384
 
385
  = 2.0 =
 
386
  * 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.
387
 
388
  = 1.0 =
 
389
  * Initial Release.
scss/svgs-admin-edit-post.scss CHANGED
@@ -5,6 +5,6 @@
5
  * WooCommerce Product, Sensei Course
6
  */
7
  body #set-post-thumbnail,
8
- body #postimagediv .inside img {
9
  width: 100%;
10
  }
5
  * WooCommerce Product, Sensei Course
6
  */
7
  body #set-post-thumbnail,
8
+ body #postimagediv .inside img[src$=".svg"] {
9
  width: 100%;
10
  }
scss/svgs-admin.scss CHANGED
@@ -11,6 +11,24 @@
11
  h3 {
12
  padding: 0 12px;
13
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  .shortpixel-logo img {
15
  position: absolute;
16
  right: 10px;
@@ -24,4 +42,4 @@ h3 {
24
  table.media .column-title .media-icon img {
25
  width: 60px;
26
  // height: 60px;
27
- }
11
  h3 {
12
  padding: 0 12px;
13
  }
14
+ .help-tab-content h3 {
15
+ padding: 0;
16
+ }
17
+ h3.inner-title {
18
+ padding: 0;
19
+ font-size: 1.2em;
20
+ }
21
+
22
+ .metabox-holder {
23
+ .postbox>h3,
24
+ .stuffbox>h3,
25
+ h2.hndle,
26
+ h3.hndle {
27
+ font-size: 1.3em;
28
+ font-weight: 600;
29
+ }
30
+ }
31
+
32
  .shortpixel-logo img {
33
  position: absolute;
34
  right: 10px;
42
  table.media .column-title .media-icon img {
43
  width: 60px;
44
  // height: 60px;
45
+ }
svg-support.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: SVG Support
4
  Plugin URI: http://wordpress.org/plugins/svg-support/
5
- Description: Allow SVG file uploads using the WordPress Media Library uploader plus the ability to inline SVG files for direct styling/animation of SVG elements using CSS/JS.
6
- Version: 2.3.11
7
  Author: Benbodhi
8
  Author URI: http://benbodhi.com
9
  Text Domain: svg-support
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
22
  /**
23
  * Global variables
24
  */
25
- $svgs_plugin_version = '2.3.11'; // for use on admin pages
26
  $plugin_file = plugin_basename(__FILE__); // plugin file for reference
27
  define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
28
  define( 'BODHI_SVGS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // define the plugin url for use in enqueue
@@ -33,7 +33,7 @@ $bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugi
33
  */
34
  include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-init.php' ); // initialize admin menu & settings page
35
  include( BODHI_SVGS_PLUGIN_PATH . 'admin/plugin-action-meta-links.php' ); // add links to the plugin on the plugins page
36
- include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-notice.php' ); // dismissable admin notice to warn users to update settings
37
  include( BODHI_SVGS_PLUGIN_PATH . 'functions/mime-types.php' ); // setup mime types support for SVG (with fix for WP 4.7.1 - 4.7.2)
38
  include( BODHI_SVGS_PLUGIN_PATH . 'functions/thumbnail-display.php' ); // make SVG thumbnails display correctly in media library
39
  include( BODHI_SVGS_PLUGIN_PATH . 'functions/attachment-modal.php' ); // make SVG thumbnails display correctly in attachment modals
2
  /*
3
  Plugin Name: SVG Support
4
  Plugin URI: http://wordpress.org/plugins/svg-support/
5
+ Description: Upload SVG files to the Media Library and render SVG files inline for direct styling/animation of an SVG's internal elements using CSS/JS.
6
+ Version: 2.3.12
7
  Author: Benbodhi
8
  Author URI: http://benbodhi.com
9
  Text Domain: svg-support
22
  /**
23
  * Global variables
24
  */
25
+ $svgs_plugin_version = '2.3.12'; // for use on admin pages
26
  $plugin_file = plugin_basename(__FILE__); // plugin file for reference
27
  define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
28
  define( 'BODHI_SVGS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // define the plugin url for use in enqueue
33
  */
34
  include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-init.php' ); // initialize admin menu & settings page
35
  include( BODHI_SVGS_PLUGIN_PATH . 'admin/plugin-action-meta-links.php' ); // add links to the plugin on the plugins page
36
+ // include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-notice.php' ); // dismissable admin notice to warn users to update settings
37
  include( BODHI_SVGS_PLUGIN_PATH . 'functions/mime-types.php' ); // setup mime types support for SVG (with fix for WP 4.7.1 - 4.7.2)
38
  include( BODHI_SVGS_PLUGIN_PATH . 'functions/thumbnail-display.php' ); // make SVG thumbnails display correctly in media library
39
  include( BODHI_SVGS_PLUGIN_PATH . 'functions/attachment-modal.php' ); // make SVG thumbnails display correctly in attachment modals