SVG Support - Version 2.1.4

Version Description

  • Fixed plugin settings link (on plugins page)
  • Added more links - Support & Donate
  • Modified the settings page a little
  • Cleaned up settings page with CSS
  • Satisfied my OCD tendencies a little
Download this release

Release Info

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

Code changes from version 2.1.3 to 2.1.4

admin/plugin-action-links.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- /********************************************
3
- * PLUGIN ACTION LINKS
4
- ********************************************/
5
-
6
- // add filter to svg-support only
7
- add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'bodhi_svgs_plugin_action_links' );
8
-
9
- function bodhi_svgs_plugin_action_links( $links ) {
10
-
11
- $links[] = '<a href="'. get_admin_url(null, 'options-general.php?page=svg-support') .'">Settings</a>';
12
- //$links[] = '<a href="http://gowebben.com" target="_blank">More plugins by GoWebben</a>';
13
- return $links;
14
-
15
- }
16
-
17
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/plugin-action-meta-links.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /********************************************
3
+ * PLUGIN ACTION & ROW META LINKS
4
+ ********************************************/
5
+
6
+ // add plugin_action_links
7
+ add_filter( 'plugin_action_links_' . $plugin_file, 'bodhi_svgs_plugin_action_links' );
8
+
9
+ function bodhi_svgs_plugin_action_links( $links ) {
10
+
11
+ $links[] = '<a href="'. get_admin_url(null, 'options-general.php?page=svg-support') .'">Settings</a>';
12
+ //$links[] = '<a href="http://gowebben.com" target="_blank">More plugins by GoWebben</a>';
13
+ return $links;
14
+
15
+ }
16
+
17
+ // add plugin_row_meta links
18
+ add_filter( 'plugin_row_meta', 'bodhi_svgs_plugin_meta_links', 10, 2 );
19
+
20
+ function bodhi_svgs_plugin_meta_links( $links, $file ) {
21
+
22
+ $plugin_file = 'svg-support/svg-support.php';
23
+ if ( $file == $plugin_file ) {
24
+ return array_merge(
25
+ $links,
26
+ array(
27
+ '<a target="_blank" href="http://wordpress.org/support/plugin/svg-support">' . __( 'Get Support', 'svgsupport') . '</a>',
28
+ '<a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=F7W2NUFAVQGW2">' . __( 'Donate to author', 'svgsupport') . '</a>'
29
+ )
30
+ );
31
+ }
32
+
33
+ return $links;
34
+
35
+ }
36
+
37
+ ?>
admin/svgs-settings-page.php CHANGED
@@ -122,6 +122,7 @@
122
  <div class="inside">
123
  <p><?php _e( 'You can read about this plugin in detail on', 'svgsupport' ); ?> <a target="_blank" href="http://wordpress.org/plugins/svg-support/"><?php _e( 'The WordPress Plugin Repository', 'svgsupport' ); ?></a>.</p>
124
  <p><?php _e( 'Need help?', 'svgsupport' ); ?> <a target="_blank" href="http://wordpress.org/support/plugin/svg-support"><?php _e( 'Visit Support', 'svgsupport' ); ?></a>.</p>
 
125
  <p>&copy; <a target="_blank" href="http://benbodhi.com">Benbodhi</a> <?php _e( 'from', 'svgsupport' ); ?> <a target="_blank" href="http://gowebben.com">GoWebben</a>.
126
  </div> <!-- .inside -->
127
 
122
  <div class="inside">
123
  <p><?php _e( 'You can read about this plugin in detail on', 'svgsupport' ); ?> <a target="_blank" href="http://wordpress.org/plugins/svg-support/"><?php _e( 'The WordPress Plugin Repository', 'svgsupport' ); ?></a>.</p>
124
  <p><?php _e( 'Need help?', 'svgsupport' ); ?> <a target="_blank" href="http://wordpress.org/support/plugin/svg-support"><?php _e( 'Visit Support', 'svgsupport' ); ?></a>.</p>
125
+ <p><a target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=F7W2NUFAVQGW2"><?php _e( 'Buy Benbodhi a Beer &rarr;', 'svgsupport' ); ?></a>
126
  <p>&copy; <a target="_blank" href="http://benbodhi.com">Benbodhi</a> <?php _e( 'from', 'svgsupport' ); ?> <a target="_blank" href="http://gowebben.com">GoWebben</a>.
127
  </div> <!-- .inside -->
128
 
css/svgs-admin.css CHANGED
@@ -1,4 +1,7 @@
1
  .svgs-version {
2
  font-size: 10px;
3
  margin-left: 7px;
 
 
 
4
  }
1
  .svgs-version {
2
  font-size: 10px;
3
  margin-left: 7px;
4
+ }
5
+ .postbox .inside a {
6
+ text-decoration: none;
7
  }
languages/svgsupport-en_AU.mo CHANGED
Binary file
languages/svgsupport-en_AU.po CHANGED
@@ -1,21 +1,21 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: SVG Support v2.1\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2014-07-23 11:21:54+0000\n"
7
- "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
  "X-Generator: CSL v1.x\n"
14
- "X-Poedit-Language: \n"
15
- "X-Poedit-Country: \n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
- "X-Poedit-Basepath: \n"
19
  "X-Poedit-Bookmarks: \n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Textdomain-Support: yes"
@@ -37,6 +37,16 @@ msgstr ""
37
  msgid "You can't play with this."
38
  msgstr ""
39
 
 
 
 
 
 
 
 
 
 
 
40
  #: admin/svgs-settings-page.php:4
41
  #@ svgsupport
42
  msgid "SVG Support Settings and Usage"
@@ -189,6 +199,11 @@ msgstr ""
189
 
190
  #: admin/svgs-settings-page.php:125
191
  #@ svgsupport
 
 
 
 
 
192
  msgid "from"
193
  msgstr ""
194
 
@@ -219,6 +234,6 @@ msgstr ""
219
  #. translators: plugin header field 'Version'
220
  #: svg-support.php:0
221
  #@ svgsupport
222
- msgid "2.1"
223
  msgstr ""
224
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: SVG Support v2.1.4\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2014-07-24 02:31:01+0000\n"
7
+ "Last-Translator: Benbodhi <wp@benbodhi.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
  "X-Generator: CSL v1.x\n"
14
+ "X-Poedit-Language: English\n"
15
+ "X-Poedit-Country: AUSTRALIA\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
+ "X-Poedit-Basepath: ../\n"
19
  "X-Poedit-Bookmarks: \n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Textdomain-Support: yes"
37
  msgid "You can't play with this."
38
  msgstr ""
39
 
40
+ #: admin/plugin-action-meta-links.php:27
41
+ #@ svgsupport
42
+ msgid "Get Support"
43
+ msgstr ""
44
+
45
+ #: admin/plugin-action-meta-links.php:28
46
+ #@ svgsupport
47
+ msgid "Donate to author"
48
+ msgstr ""
49
+
50
  #: admin/svgs-settings-page.php:4
51
  #@ svgsupport
52
  msgid "SVG Support Settings and Usage"
199
 
200
  #: admin/svgs-settings-page.php:125
201
  #@ svgsupport
202
+ msgid "Buy Benbodhi a Beer &rarr;"
203
+ msgstr ""
204
+
205
+ #: admin/svgs-settings-page.php:126
206
+ #@ svgsupport
207
  msgid "from"
208
  msgstr ""
209
 
234
  #. translators: plugin header field 'Version'
235
  #: svg-support.php:0
236
  #@ svgsupport
237
+ msgid "2.1.4"
238
  msgstr ""
239
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline
5
  Requires at least: 3.4
6
  Tested up to: 3.9.1
7
- Stable tag: 2.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -106,6 +106,14 @@ I will put the answers to any questions asked here.
106
 
107
  == Changelog ==
108
 
 
 
 
 
 
 
 
 
109
  = 2.1.3 =
110
 
111
  * Added plugin_action_links file for custom menus on plugin page.
@@ -136,6 +144,10 @@ I will put the answers to any questions asked here.
136
 
137
  == Upgrade Notice ==
138
 
 
 
 
 
139
  = 2.1.3 =
140
 
141
  * Added a link on the plugins page to the plugin settings page for easy access after install.
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline
5
  Requires at least: 3.4
6
  Tested up to: 3.9.1
7
+ Stable tag: 2.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
106
 
107
  == Changelog ==
108
 
109
+ = 2.1.4 =
110
+
111
+ * Fixed plugin settings link (on plugins page)
112
+ * Added more links - Support & Donate
113
+ * Modified the settings page a little
114
+ * Cleaned up settings page with CSS
115
+ * Satisfied my OCD tendencies a little
116
+
117
  = 2.1.3 =
118
 
119
  * Added plugin_action_links file for custom menus on plugin page.
144
 
145
  == Upgrade Notice ==
146
 
147
+ = 2.1.4 =
148
+
149
+ * Some more re-arranging, added a few helpful links, updated language files, tended to my OCD a bit.
150
+
151
  = 2.1.3 =
152
 
153
  * Added a link on the plugins page to the plugin settings page for easy access after install.
svg-support.php CHANGED
@@ -8,7 +8,7 @@ Author URI: http://benbodhi.com
8
  Text Domain: svgsupport
9
  Domain Path: /languages
10
  License: GPL2
11
- Version: 2.1.3
12
  */
13
  /* Copyright 2013 Benbodhi (email : wp@benbodhi.com)
14
 
@@ -29,17 +29,18 @@ Version: 2.1.3
29
  /********************************************
30
  * GLOBAL VARIABLES
31
  ********************************************/
32
- $plugin_version = '2.1.3'; // for use on admin pages
 
33
  define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
34
  $bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table
35
 
36
  /********************************************
37
  * INCLUDES - keeping it modular
38
  ********************************************/
39
- include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-init.php' ); // initialize admin menu & settings
40
- include( BODHI_SVGS_PLUGIN_PATH . 'admin/plugin-action-links.php' );// add links to the plugin on the plugins page
41
- include( BODHI_SVGS_PLUGIN_PATH . 'functions/mime-types.php' ); // setup mime types support for SVG
42
- include( BODHI_SVGS_PLUGIN_PATH . 'functions/enqueue.php' ); // enqueue js & css for inline replacement
43
- include( BODHI_SVGS_PLUGIN_PATH . 'functions/localization.php' ); // setup localization & languages
44
 
45
  ?>
8
  Text Domain: svgsupport
9
  Domain Path: /languages
10
  License: GPL2
11
+ Version: 2.1.4
12
  */
13
  /* Copyright 2013 Benbodhi (email : wp@benbodhi.com)
14
 
29
  /********************************************
30
  * GLOBAL VARIABLES
31
  ********************************************/
32
+ $plugin_version = '2.1.4'; // for use on admin pages
33
+ $plugin_file = plugin_basename(__FILE__); // plugin file for reference
34
  define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
35
  $bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table
36
 
37
  /********************************************
38
  * INCLUDES - keeping it modular
39
  ********************************************/
40
+ include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-init.php' ); // initialize admin menu & settings page
41
+ include( BODHI_SVGS_PLUGIN_PATH . 'admin/plugin-action-meta-links.php' ); // add links to the plugin on the plugins page
42
+ include( BODHI_SVGS_PLUGIN_PATH . 'functions/mime-types.php' ); // setup mime types support for SVG
43
+ include( BODHI_SVGS_PLUGIN_PATH . 'functions/enqueue.php' ); // enqueue js & css for inline replacement & admin
44
+ include( BODHI_SVGS_PLUGIN_PATH . 'functions/localization.php' ); // setup localization & languages
45
 
46
  ?>