diff --git a/extended-toc.php b/extended-toc.php
index a9f96aa..582ac70 100644
--- a/extended-toc.php
+++ b/extended-toc.php
@@ -3,7 +3,7 @@
Plugin Name: Extended Table of Contents (with nextpage support)
Plugin URI: http://www.happybooking.de/wordpress/plugins/extended-toc
Description: This plugin automatically generates and inserts a table of contents (ToC) to your pages and posts, based on tags h1-h6. Whenever the plugin discovers more than a certain amount of headings (default: 3) the ToC is inserted at the top of the page. This plugin also can handle posts that are divided into pages by the nextpage-wordpress-tag. By using the markups [extoc] you can decide where to insert the ToC. Also you can use a whitelist by disable general ToC insertion and insert the ToC to special pages/subpages/posts by [extoc]. Otherwise you can use a blacklist and disable the ToC only on special pages/subpages/posts by using the [noextoc] markup. Any feedback or suggestions are welcome.
-Version: 0.8.4
+Version: 0.8.5
Author: Daniel Boldura, HappyBooking UG
Author URI: http://www.happybooking.de/
@@ -34,7 +34,7 @@ Author URI: http://www.happybooking.de/
* 4. Config the ToC within a markup e.g. [extoc start=5 headers=1,2,3 title="My table of contents"] oder [extoc start=5 headers=1,2,3 notitle]
*/
-define( 'EXTENDED_TOC_VERSION', '0.8.4' );
+define( 'EXTENDED_TOC_VERSION', '0.8.5' );
define( 'EXTENDED_TOC_ID', 'extended_toc' );
define( 'EXTENDED_TOC_NAME', 'Extended-ToC' );
define( 'TOC_MIN_START', 2 );
@@ -72,6 +72,9 @@ if( !class_exists('ExToC') ) {
add_action( 'plugins_loaded', array(&$this, 'plugins_loaded') );
if( is_admin() ) {
+ //Additional links on the plugin page
+ add_filter('plugin_row_meta', array(&$this, 'register_plugin_links'), 10, 2);
+
add_action('admin_init', array(&$this, 'admin_init'));
add_action('admin_menu', array(&$this, 'admin_menu'));
}
@@ -85,6 +88,15 @@ if( !class_exists('ExToC') ) {
public function __destruct() {
}
+ public function register_plugin_links($links, $file) {
+ if( $file == plugin_basename(__FILE__) ) {
+ $links[] = '' . __('Donate', EXTENDED_TOC_ID) . '';
+ }
+
+ return $links;
+ }
+
+
public function admin_init() {
wp_register_style( EXTENDED_TOC_ID, $this->path . '/admin-style.css', array(), EXTENDED_TOC_VERSION );
wp_enqueue_style(EXTENDED_TOC_ID);
@@ -138,9 +150,9 @@ if( !class_exists('ExToC') ) {
-