Šis įskiepis nebuvo išbandytas su 3 vėliausiomis WordPress versijomis. Jis tikriausiai nėra prižiūrimas ir palaikomas, todėl gali neveikti su naujausiomis WordPress versijomis.

tinyTOC

Aprašymas

A tiny and simple to help with navigation in long texts by forming an automatic Wikipedia-like table of contents.

It works by scanning the text for headings (<h1>-<h6> HTML tags). If more than a certain amount of headings (3 by default) are found – a table of contents with bookmarks is formed and inserted to the post content. Location (above or below) the text can be chosen in settings page.

TOC is formed as HTML5 <nav> element with nested ordered list inside. No specific styling is provided, so that it fits organicaly into the text. If you need specific styling, include it to your theme’s CSS.

You can also use a shortcode – [toc], template tags – get_toc()/the_toc() and a widget – tinyTOC Widget.

The plugin is translation ready and has Lithuanian translation.

Also try out my other plugins:

  • Content Cards – a plugin that makes ordinary web links great by making it possible to embed a beautiful Content Card to link to any web site.
  • Gust – a Ghost-like admin panel for WordPress, featuring Markdown based split-view editor.
  • tinyCoffee – a PayPal donations button with a twist. Ask people to treat you to a coffee/beer/etc.
  • tinySocial – a plugin to display social sharing links to Facebook/Twitter/etc. via shortcodes
  • tinyRelated – a plugin to manually assign and display related posts.
  • tinyIPPremium – stop WordPress users from sharing login information, force users to be logged in only from one device at a time.

An enormous amount of coffee was consumed while developing these plugins, so if you like what you get, please consider treating me to a cup. Or two. Or ten.

Cover image credit: Jeremy Keith

Ekrano nuotraukos

  • A TOC widget (left) and a TOC above the page content (center) in action in TwentyFourteen theme.
  • Settings screen.

Diegimas

  1. Install via WP Admin > Plugins > Add New or download a .zip file and upload via FTP to /wp-content/plugins/ directory
  2. Aktyvuokite įskiepį per WordPress meniu „Įskiepiai”
  3. (optional) Modify options via WP Admin > Settings > tinyTOC, if needed. Plugin automatically embeds TOC top of post content, but you can use a widget, a shortcode ([toc]), a couple of template tags (the_toc()/get_toc()) for other integration options.

DUK

Installation Instructions
  1. Install via WP Admin > Plugins > Add New or download a .zip file and upload via FTP to /wp-content/plugins/ directory
  2. Aktyvuokite įskiepį per WordPress meniu „Įskiepiai”
  3. (optional) Modify options via WP Admin > Settings > tinyTOC, if needed. Plugin automatically embeds TOC top of post content, but you can use a widget, a shortcode ([toc]), a couple of template tags (the_toc()/get_toc()) for other integration options.
I don’t see tinyTOC Widget in the available widget list.

You need to activate the widget via plugin Settings page (WP Admin > Settings > tinyTOC)

Atsiliepimai

3 rugsėjo, 2016
Does what it says, and does it well. Has just the right amount of control.
Perskaityti visus atsiliepimus (3)

Programuotojai ir komandos nariai

“tinyTOC” yra atviro kodo programa. Prie jos sukūrimo prisidėję žmonės surašyti toliau.

Autoriai

Įskiepis “tinyTOC” išverstas į 1 kalbą. Dėkojame vertėjams už jų darbą.

Išverskite “tinyTOC” į savo kalbą.

Domina programavimas?

Peržiūrėkite kodą, naršykite SVN repozitorijoje, arba užsiprenumeruokite kodo pakeitimų žurnalą per RSS.

Pakeitimų istorija

0.8.0

  • a tinytoc_widget_content filter (by Maciej Gryniuk / odie2 )
  • better non-latin character support (by Maciej Gryniuk / odie2 )
  • prevent duplicate slugs (by Maciej Gryniuk / odie2 )
  • better PHP < 5.3.6 support (suggested by Maciej Gryniuk / odie2 )
  • a link to plugin settings from Plugins list (suggested by Maciej Gryniuk / odie2 )
  • updated widget code to remove PHP4 style constructors

0.7

  • an option to generate slug-based links

0.6

  • a big code rewrite (options page, main class, etc.)
  • renamed main plugin file to fit WordPress tradition better. Plugin will be deactivated after upgrade and you’ll need to reactivate it.

0.5

  • fixed some typos

0.4

  • fixed UTF-8 issue

0.3

  • shortcode and template tags added
  • parser rewriten (regex -> DOMDocument)

0.2

  • Widget added (thanks to Darcy W. Christ)
  • Small bug fixes

0.1

  • Pradinė versija