This commit is contained in:
happybooking 2013-11-03 07:12:16 +00:00
parent f9a9222900
commit b3b022dbb6
2 changed files with 13 additions and 9 deletions

View File

@ -1,14 +1,14 @@
<?php
/*
Plugin Name: Extended Table of Contents (with nextpage support)
Plugin URI: http://www.happybooking.de/wordpress/plugins/extended-toc
Plugin URI: http://http://www.web-cloud-apps.com/produkte/wordpress-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. Any feedback or suggestions are welcome.
Version: 0.9.3
Author: Daniel Boldura, HappyBooking UG
Author URI: http://www.happybooking.de/
Version: 0.9.5
Author: Daniel Boldura, Web.Cloud.Apps. UG
Author URI: http://www.web-cloud-apps.com
/* Copyright 2013 HappyBooking UG // Daniel Boldura (email: info at happybooking.de or daniel at boldura.de)
/* Copyright 2013 Web.Cloud.Apps. UG // Daniel Boldura (email: info at web-cloud-apps.com or daniel at boldura.de)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -25,7 +25,7 @@ Author URI: http://www.happybooking.de/
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
define( 'EXTENDED_TOC_VERSION', '0.9.3' );
define( 'EXTENDED_TOC_VERSION', '0.9.5' );
define( 'EXTENDED_TOC_ID', 'extended_toc' );
define( 'EXTENDED_TOC_NAME', 'Extended-ToC' );
define( 'TOC_MIN_START', 2 );
@ -84,7 +84,7 @@ if( !class_exists('ExToC') ) {
public function register_plugin_links($links, $file) {
if( $file == plugin_basename(__FILE__) ) {
$links[] = '<a href="http://www.happybooking.de/wordpress/plugins/extended-toc/donate">' . __('Donate', EXTENDED_TOC_ID) . '</a>';
$links[] = '<a href="http://http://www.web-cloud-apps.com/produkte/wordpress-extended-toc">' . __('Donate', EXTENDED_TOC_ID) . '</a>';
}
return $links;
@ -306,7 +306,8 @@ if( !class_exists('ExToC') ) {
'title' => $this->options["heading_text"],
), $atts ) );
$headers = preg_split('/[\s*,]+/i', $headers);
if( !is_array($headers) )
$headers = preg_split('/[\s*,]+/i', $headers);
if($start) $this->options['start'] = $start;
if($headers) $this->options['heading_levels'] = $headers;

View File

@ -4,7 +4,7 @@ Donate link: http://www.happybooking.de/wordpress/plugins/extended-toc/donate
Tags: table of contents, indexes, toc, sitemap, cms, options, list, page listing, category listing
Requires at least: 3.0.1
Tested up to: 3.6.1
Stable tag: 0.9.0
Stable tag: 0.9.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -40,6 +40,9 @@ You can change the default settings and more under Plugins > Extended-ToC
If you have any questions or suggestions please contact us at any time: support@happybooking.de or http://www.happybooking.de/
== Changelog ==
= 0.9.3 =
* bugfix preg_split error
= 0.9.3 =
* bugfix for headungs enumeration error