SVG Support - Version 2.1.3

Version Description

  • Added plugin_action_links file for custom menus on plugin page.
Download this release

Release Info

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

Code changes from version 2.1.2 to 2.1.3

Files changed (3) hide show
  1. admin/plugin-action-links.php +17 -0
  2. readme.txt +10 -2
  3. svg-support.php +4 -3
admin/plugin-action-links.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ?>
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.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -106,6 +106,10 @@ I will put the answers to any questions asked here.
106
 
107
  == Changelog ==
108
 
 
 
 
 
109
  = 2.1.2 =
110
 
111
  * Cleaned up trunk, tags and readme.txt to show correct changelog and update notice.
@@ -132,9 +136,13 @@ I will put the answers to any questions asked here.
132
 
133
  == Upgrade Notice ==
134
 
 
 
 
 
135
  = 2.1.2 =
136
 
137
- * Alittle bit of house cleaning, updates to changelog and readme.txt for correct output with current version.
138
 
139
  = 2.1.1 =
140
 
4
  Tags: svg, vector, css, style, mime, mime type, embed, img, inline
5
  Requires at least: 3.4
6
  Tested up to: 3.9.1
7
+ Stable tag: 2.1.3
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.3 =
110
+
111
+ * Added plugin_action_links file for custom menus on plugin page.
112
+
113
  = 2.1.2 =
114
 
115
  * Cleaned up trunk, tags and readme.txt to show correct changelog and update notice.
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.
142
+
143
  = 2.1.2 =
144
 
145
+ * A little bit of house cleaning, updates to changelog and readme.txt for correct output with current version.
146
 
147
  = 2.1.1 =
148
 
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.2
12
  */
13
  /* Copyright 2013 Benbodhi (email : wp@benbodhi.com)
14
 
@@ -29,16 +29,17 @@ Version: 2.1.2
29
  /********************************************
30
  * GLOBAL VARIABLES
31
  ********************************************/
32
- $plugin_version = '2.1.2'; // for use on admin pages
33
  define( 'BODHI_SVGS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // define the absolute plugin path for includes
34
  $bodhi_svgs_options = get_option('bodhi_svgs_settings'); // retrieve our plugin settings from the options table
35
 
36
  /********************************************
37
  * INCLUDES - keeping it modular
38
  ********************************************/
39
- include( BODHI_SVGS_PLUGIN_PATH . 'functions/localization.php' ); // setup localization & languages
40
  include( BODHI_SVGS_PLUGIN_PATH . 'admin/admin-init.php' ); // initialize admin menu & settings
 
41
  include( BODHI_SVGS_PLUGIN_PATH . 'functions/mime-types.php' ); // setup mime types support for SVG
42
  include( BODHI_SVGS_PLUGIN_PATH . 'functions/enqueue.php' ); // enqueue js & css for inline replacement
 
43
 
44
  ?>
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
  /********************************************
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
  ?>