diff --git a/extended-toc.php b/extended-toc.php index b6d57ae..f791ed9 100644 --- a/extended-toc.php +++ b/extended-toc.php @@ -3,8 +3,8 @@ 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.2 -Author: HappyBooking UG // Daniel Boldura +Version: 0.8.3 +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.2' ); +define( 'EXTENDED_TOC_VERSION', '0.8.3' ); define( 'EXTENDED_TOC_ID', 'extended_toc' ); define( 'EXTENDED_TOC_NAME', 'Extended-ToC' ); define( 'TOC_MIN_START', 2 ); diff --git a/locale/extended_toc-de_DE.mo b/locale/extended_toc-de_DE.mo index 9cb5b92..80b9b17 100644 Binary files a/locale/extended_toc-de_DE.mo and b/locale/extended_toc-de_DE.mo differ diff --git a/locale/extended_toc-de_DE.po b/locale/extended_toc-de_DE.po index 8689d32..77d2ce8 100644 --- a/locale/extended_toc-de_DE.po +++ b/locale/extended_toc-de_DE.po @@ -1,14 +1,14 @@ msgid "" msgstr "" "Project-Id-Version: Extended-Toc\n" -"POT-Creation-Date: 2013-07-04 14:16+0100\n" -"PO-Revision-Date: 2013-07-04 14:17+0100\n" +"POT-Creation-Date: 2013-08-08 21:20+0100\n" +"PO-Revision-Date: 2013-08-08 21:22+0100\n" "Last-Translator: HappyBooking UG \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.5.5\n" +"X-Generator: Poedit 1.5.7\n" "X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n" "X-Poedit-Basepath: .\n" "X-Poedit-SourceCharset: UTF-8\n" @@ -16,52 +16,57 @@ msgstr "" "\\wordpress\n" #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:128 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:130 msgid "Options saved." msgstr "Konfiguration wurde gespeichert." #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:130 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:132 msgid "Save failed." msgstr "Speichern fehlgeschlagen." #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:138 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:140 msgid "Extended Table of Contents" msgstr "Extended Table of Contents" #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:149 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:151 msgid "Show heading text" msgstr "Überschrift anzeigen" #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:156 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:158 msgid "Heading text" msgstr "Überschrift" #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:161 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:163 msgid "Add table of contents to following content types" msgstr "Inhaltsverzeichnis (ToC) zu folgenden Inhalten einfügen" #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:173 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:175 msgid "Show when" msgstr "Anzeigen bei" #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:184 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:186 msgid "or more headings are present" msgstr "und mehr Überschriften" #: D:\1 - Aktuelle Projekte\0 -#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:189 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:191 msgid "Show hierarchy" msgstr "Hierarchie anzeigen" #: D:\1 - Aktuelle Projekte\0 #: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:198 +msgid "Number list items" +msgstr "Kapitel nummerieren" + +#: D:\1 - Aktuelle Projekte\0 +#: happybooking\projekte\wordpress/plugins/extended-toc/extended-toc.php:207 msgid "Save Options" msgstr "Konfiguration speichern" diff --git a/readme.txt b/readme.txt index 793e238..947eb1c 100644 --- a/readme.txt +++ b/readme.txt @@ -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.5.2 -Stable tag: 0.8.1 +Stable tag: 0.8.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -31,7 +31,9 @@ You can change the default settings and more under Plugins > Extended-ToC == Screenshots == -1. The options panel found in Plugins > Extended-ToC +1. Table of Contents after a preable +2. The options panel found under Plugins > Extended-ToC +3. Markup example within the post content == Frequently Asked Questions == @@ -39,6 +41,9 @@ If you have any questions or suggestions please contact us at any time: support@ == Changelog == += 0.8.3 = +* Minor CSS style changes + = 0.8.2 = * Bug influence with SEO Plugin fixed / Bug numbering item list fixed diff --git a/screenshot-1.png b/screenshot-1.png index 909c91e..7702805 100644 Binary files a/screenshot-1.png and b/screenshot-1.png differ diff --git a/style.css b/style.css index 200c40d..bd006c0 100644 --- a/style.css +++ b/style.css @@ -9,7 +9,12 @@ #toc-np-container ul, #toc-np-container li { margin: 0; - padding: 0 + padding: 0; +} + +#toc-np-container li.header-level-1 { + font-weight: bold; + margin-top: 8px; } #toc-np-container li.header-level-2 {