Table of Contents Plus - Version 1303

Version Description

  • Released: 21 March 2013
  • New: option auto insert after the first heading. Thanks to @thelawnetwork for requesting it.
  • New: allow headings to be excluded from the table of contents. This is available both globally under the advanced section of Settings > TOC+ and individually with the TOC shortcode. Check out the help material for examples. Thanks to the many of you that requested it.
  • New: advanced option to lowercase all anchors. The default is off.
  • New: advanced option to use hyphens rather than underscores in anchors. The default is off.
  • New: shortcode to list all posts in alphabetical order grouped by first letter.
  • New: added Slovak translation, curtesy Branco Radenovich.
  • Add version numbers to CSS/JS files to better support setups that cache these files heavily for timely invalidation. Thanks to boxcarpress for the amendments.
  • Add CSS class 'contracted' to #toc_container when the table of contents is hidden. Thanks to Sam for suggesting it.
  • With smooth scroll enabled, do not use an offset if no admin bar is present and the offset value is default. This means that public users do not have the offset space at the top.
  • New help material for developers under the help tab.
  • Added API function: toc_get_index() lets you retrieve a table of contents to be placed within PHP. Check out the new developer help material for examples.
  • Allow anchors to be filterable using toc_url_anchor_target to customise further through code. Check the new developer help material for an example. Thanks to Russell Heimlich for the tip.
  • Adjust CSS and JS registration.
  • Updated jQuery Smooth Scroll to 1.4.10.
  • Fixed: When using the widget, addressed an issue where the index with special characters (such as ' and ") would not link to the correct spot within the content. Thanks to esandman for raising it.
  • Fixed: Saving at Settings > TOC+ resets TOC+ widget options. Thanks to Chris for reporting it.
Download this release

Release Info

Developer conjur3r
Plugin Icon 128x128 Table of Contents Plus
Version 1303
Comparing to
See all releases

Code changes from version 1211 to 1303

admin.js CHANGED
@@ -1,5 +1,5 @@
1
  jQuery(document).ready(function($) {
2
- $('.tab_content, #toc_advanced_usage, #sitemap_advanced_usage, div.more_toc_options.disabled, tr.disabled').hide();
3
  $('ul#tabbed-nav li:first').addClass('active').show(); // show first tab
4
  $('.tab_content:first').show(); // show first tab content
5
 
1
  jQuery(document).ready(function($) {
2
+ $('.tab_content, #toc_advanced_usage, #sitemap_advanced_usage, #toc_for_developers, div.more_toc_options.disabled, tr.disabled').hide();
3
  $('ul#tabbed-nav li:first').addClass('active').show(); // show first tab
4
  $('.tab_content:first').show(); // show first tab content
5
 
front.js CHANGED
@@ -1,5 +1,5 @@
1
 
2
- (function(c){function k(b){return b.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")}var l=k(location.pathname),m=function(b){var d=[],a=false,e=b.dir&&b.dir=="left"?"scrollLeft":"scrollTop";this.each(function(){if(!(this==document||this==window)){var f=c(this);if(f[e]()>0)d.push(this);else{f[e](1);a=f[e]()>0;f[e](0);a&&d.push(this)}}});if(b.el==="first"&&d.length)d=[d.shift()];return d};c.fn.extend({scrollable:function(b){return this.pushStack(m.call(this,{dir:b}))},firstScrollable:function(b){return this.pushStack(m.call(this,{el:"first",dir:b}))},smoothScroll:function(b){b=b||{};var d=c.extend({},c.fn.smoothScroll.defaults,b);this.die("click.smoothscroll").live("click.smoothscroll",function(a){var e=c(this),f=location.hostname===this.hostname||!this.hostname,g=d.scrollTarget||(k(this.pathname)||l)===l,i=this.hash,h=true;if(!d.scrollTarget&&(!f||!g||!i))h=false;else{f=d.exclude;g=0;for(var j=f.length;h&&g<j;)if(e.is(f[g++]))h=false;f=d.excludeWithin;g=0;for(j=f.length;h&&g<j;)if(e.closest(f[g++]).length)h=false}if(h){d.scrollTarget=b.scrollTarget||i;d.link=this;a.preventDefault();c.smoothScroll(d)}});return this}});c.smoothScroll=function(b,d){var a,e,f,g=0;e="offset";var i="scrollTop",h={};if(typeof b==="number"){a=c.fn.smoothScroll.defaults;f=b}else{a=c.extend({},c.fn.smoothScroll.defaults,b||{});if(a.scrollElement){e="position";a.scrollElement.css("position")=="static"&&a.scrollElement.css("position","relative")}f=d||c(a.scrollTarget)[e]()&&c(a.scrollTarget)[e]()[a.direction]||0}a=c.extend({link:null},a);i=a.direction=="left"?"scrollLeft":i;if(a.scrollElement){e=a.scrollElement;g=e[i]()}else e=c("html, body").firstScrollable();h[i]=f+g+a.offset;e.animate(h,{duration:a.speed,easing:a.easing,complete:function(){a.afterScroll&&c.isFunction(a.afterScroll)&&a.afterScroll.call(a.link,a)}})};c.smoothScroll.version="1.4";c.fn.smoothScroll.defaults={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,afterScroll:null,easing:"swing",speed:400}})(jQuery);jQuery.cookie=function(a,b,c){if(arguments.length>1&&String(b)!=="[object Object]"){c=jQuery.extend({},c);if(b===null||b===undefined){c.expires=-1}if(typeof c.expires==="number"){var d=c.expires,e=c.expires=new Date;e.setDate(e.getDate()+d)}b=String(b);return document.cookie=[encodeURIComponent(a),"=",c.raw?b:encodeURIComponent(b),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=b||{};var f,g=c.raw?function(a){return a}:decodeURIComponent;return(f=(new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)")).exec(document.cookie))?g(f[1]):null}
3
  jQuery(document).ready(function($){if(typeof tocplus!='undefined'){$.fn.shrinkTOCWidth=function(){$(this).css({width:'auto',display:'table'});if($.browser.msie&&parseInt($.browser.version)==7)
4
  $(this).css('width','');}
5
  if(tocplus.smooth_scroll==1){var target=hostname=pathname=qs=hash=null;$('body a').click(function(event){if(minVersion('1.6')){hostname=$(this).prop('hostname');pathname=$(this).prop('pathname');qs=$(this).prop('search');hash=$(this).prop('hash');}
@@ -8,18 +8,23 @@ if(pathname.length>0){if(pathname.charAt(0)!='/'){pathname='/'+pathname;}}
8
  if((window.location.hostname==hostname)&&(window.location.pathname==pathname)&&(window.location.search==qs)&&(hash!=='')){var hash_selector=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,'\\$1');if($(hash_selector).length>0)
9
  target=hash;else{anchor=hash;anchor=anchor.replace('#','');target='a[name="'+anchor+'"]';if($(target).length==0)
10
  target='';}
11
- var offset=-30;if(typeof tocplus.smooth_scroll_offset!='undefined')
12
- offset=-1*tocplus.smooth_scroll_offset;if(target){$.smoothScroll({scrollTarget:target,offset:offset});}}});}
 
 
 
 
 
13
  if(typeof tocplus.visibility_show!='undefined'){var invert=(typeof tocplus.visibility_hide_by_default!='undefined')?true:false;if($.cookie)
14
  var visibility_text=($.cookie('tocplus_hidetoc'))?tocplus.visibility_show:tocplus.visibility_hide;else
15
  var visibility_text=tocplus.visibility_hide;if(invert)
16
- visibility_text=(visibility_text==tocplus.visibility_hide)?tocplus.visibility_show:tocplus.visibility_hide;$('#toc_container p.toc_title').append(' <span class="toc_toggle">[<a href="#">'+visibility_text+'</a>]</span>');if(visibility_text==tocplus.visibility_show){$('ul.toc_list').hide();$('#toc_container').shrinkTOCWidth();}
17
  $('span.toc_toggle a').click(function(event){event.preventDefault();switch($(this).html()){case $('<div/>').html(tocplus.visibility_hide).text():$(this).html(tocplus.visibility_show);if($.cookie){if(invert)
18
  $.cookie('tocplus_hidetoc',null,{path:'/'});else
19
  $.cookie('tocplus_hidetoc','1',{expires:30,path:'/'});}
20
- $('ul.toc_list').hide('fast');$('#toc_container').shrinkTOCWidth();break;case $('<div/>').html(tocplus.visibility_show).text():default:$(this).html(tocplus.visibility_hide);if($.cookie){if(invert)
21
  $.cookie('tocplus_hidetoc','1',{expires:30,path:'/'});else
22
  $.cookie('tocplus_hidetoc',null,{path:'/'});}
23
- $('#toc_container').css('width',tocplus.width);$('ul.toc_list').show('fast');}});}}
24
  function minVersion(version){var $vrs=window.jQuery.fn.jquery.split('.'),min=version.split('.');for(var i=0,len=$vrs.length;i<len;i++){if(min[i]&&$vrs[i]<min[i]){return false;}}
25
  return true;}});
1
 
2
+ (function(l){function t(l){return l.replace(/(:|\.)/g,"\\$1")}var e="1.4.10",o={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficent:2},r=function(t){var e=[],o=!1,r=t.dir&&"left"==t.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!=document&&this!=window){var t=l(this);t[r]()>0?e.push(this):(t[r](1),o=t[r]()>0,o&&e.push(this),t[r](0))}}),e.length||this.each(function(){"BODY"===this.nodeName&&(e=[this])}),"first"===t.el&&e.length>1&&(e=[e[0]]),e};l.fn.extend({scrollable:function(l){var t=r.call(this,{dir:l});return this.pushStack(t)},firstScrollable:function(l){var t=r.call(this,{el:"first",dir:l});return this.pushStack(t)},smoothScroll:function(e){e=e||{};var o=l.extend({},l.fn.smoothScroll.defaults,e),r=l.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(e){var n=this,s=l(this),c=o.exclude,i=o.excludeWithin,a=0,f=0,h=!0,u={},d=location.hostname===n.hostname||!n.hostname,m=o.scrollTarget||(l.smoothScroll.filterPath(n.pathname)||r)===r,p=t(n.hash);if(o.scrollTarget||d&&m&&p){for(;h&&c.length>a;)s.is(t(c[a++]))&&(h=!1);for(;h&&i.length>f;)s.closest(i[f++]).length&&(h=!1)}else h=!1;h&&(e.preventDefault(),l.extend(u,o,{scrollTarget:o.scrollTarget||p,link:n}),l.smoothScroll(u))}),this}}),l.smoothScroll=function(t,e){var o,r,n,s,c=0,i="offset",a="scrollTop",f={},h={};"number"==typeof t?(o=l.fn.smoothScroll.defaults,n=t):(o=l.extend({},l.fn.smoothScroll.defaults,t||{}),o.scrollElement&&(i="position","static"==o.scrollElement.css("position")&&o.scrollElement.css("position","relative"))),o=l.extend({link:null},o),a="left"==o.direction?"scrollLeft":a,o.scrollElement?(r=o.scrollElement,c=r[a]()):r=l("html, body").firstScrollable(),o.beforeScroll.call(r,o),n="number"==typeof t?t:e||l(o.scrollTarget)[i]()&&l(o.scrollTarget)[i]()[o.direction]||0,f[a]=n+c+o.offset,s=o.speed,"auto"===s&&(s=f[a]||r.scrollTop(),s/=o.autoCoefficent),h={duration:s,easing:o.easing,complete:function(){o.afterScroll.call(o.link,o)}},o.step&&(h.step=o.step),r.length?r.stop().animate(f,h):o.afterScroll.call(o.link,o)},l.smoothScroll.version=e,l.smoothScroll.filterPath=function(l){return l.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},l.fn.smoothScroll.defaults=o})(jQuery);jQuery.cookie=function(a,b,c){if(arguments.length>1&&String(b)!=="[object Object]"){c=jQuery.extend({},c);if(b===null||b===undefined){c.expires=-1}if(typeof c.expires==="number"){var d=c.expires,e=c.expires=new Date;e.setDate(e.getDate()+d)}b=String(b);return document.cookie=[encodeURIComponent(a),"=",c.raw?b:encodeURIComponent(b),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=b||{};var f,g=c.raw?function(a){return a}:decodeURIComponent;return(f=(new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)")).exec(document.cookie))?g(f[1]):null}
3
  jQuery(document).ready(function($){if(typeof tocplus!='undefined'){$.fn.shrinkTOCWidth=function(){$(this).css({width:'auto',display:'table'});if($.browser.msie&&parseInt($.browser.version)==7)
4
  $(this).css('width','');}
5
  if(tocplus.smooth_scroll==1){var target=hostname=pathname=qs=hash=null;$('body a').click(function(event){if(minVersion('1.6')){hostname=$(this).prop('hostname');pathname=$(this).prop('pathname');qs=$(this).prop('search');hash=$(this).prop('hash');}
8
  if((window.location.hostname==hostname)&&(window.location.pathname==pathname)&&(window.location.search==qs)&&(hash!=='')){var hash_selector=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,'\\$1');if($(hash_selector).length>0)
9
  target=hash;else{anchor=hash;anchor=anchor.replace('#','');target='a[name="'+anchor+'"]';if($(target).length==0)
10
  target='';}
11
+ if(typeof tocplus.smooth_scroll_offset!='undefined'){offset=-1*tocplus.smooth_scroll_offset;}
12
+ else{if($('#wpadminbar').length>0){if($('#wpadminbar').is(':visible'))
13
+ offset=-30;else
14
+ offset=0;}
15
+ else
16
+ offset=0;}
17
+ if(target){$.smoothScroll({scrollTarget:target,offset:offset});}}});}
18
  if(typeof tocplus.visibility_show!='undefined'){var invert=(typeof tocplus.visibility_hide_by_default!='undefined')?true:false;if($.cookie)
19
  var visibility_text=($.cookie('tocplus_hidetoc'))?tocplus.visibility_show:tocplus.visibility_hide;else
20
  var visibility_text=tocplus.visibility_hide;if(invert)
21
+ visibility_text=(visibility_text==tocplus.visibility_hide)?tocplus.visibility_show:tocplus.visibility_hide;$('#toc_container p.toc_title').append(' <span class="toc_toggle">[<a href="#">'+visibility_text+'</a>]</span>');if(visibility_text==tocplus.visibility_show){$('ul.toc_list').hide();$('#toc_container').addClass('contracted').shrinkTOCWidth();}
22
  $('span.toc_toggle a').click(function(event){event.preventDefault();switch($(this).html()){case $('<div/>').html(tocplus.visibility_hide).text():$(this).html(tocplus.visibility_show);if($.cookie){if(invert)
23
  $.cookie('tocplus_hidetoc',null,{path:'/'});else
24
  $.cookie('tocplus_hidetoc','1',{expires:30,path:'/'});}
25
+ $('ul.toc_list').hide('fast');$('#toc_container').addClass('contracted').shrinkTOCWidth();break;case $('<div/>').html(tocplus.visibility_show).text():default:$(this).html(tocplus.visibility_hide);if($.cookie){if(invert)
26
  $.cookie('tocplus_hidetoc','1',{expires:30,path:'/'});else
27
  $.cookie('tocplus_hidetoc',null,{path:'/'});}
28
+ $('#toc_container').css('width',tocplus.width).removeClass('contracted');$('ul.toc_list').show('fast');}});}}
29
  function minVersion(version){var $vrs=window.jQuery.fn.jquery.split('.'),min=version.split('.');for(var i=0,len=$vrs.length;i<len;i++){if(min[i]&&$vrs[i]<min[i]){return false;}}
30
  return true;}});
languages/toc+-sk_SK.mo ADDED
Binary file
languages/toc+-sk_SK.po ADDED
@@ -0,0 +1,746 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012
2
+ # This file is distributed under the same license as the package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: \n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/table-of-contents-plus\n"
7
+ "POT-Creation-Date: 2012-11-17 03:02:57+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2013-01-23 12:49+0300\n"
12
+ "Last-Translator: Serg\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "X-Generator: Poedit 1.5.4\n"
15
+
16
+ #: toc.php:171
17
+ msgid "Settings"
18
+ msgstr "Nastavenia"
19
+
20
+ #: toc.php:341 toc.php:342
21
+ msgid "TOC"
22
+ msgstr "TOC"
23
+
24
+ #: toc.php:486
25
+ msgid "Options saved."
26
+ msgstr "Nastavenia uložené."
27
+
28
+ #: toc.php:488
29
+ msgid "Save failed."
30
+ msgstr "Uloženie bolo neúspešné."
31
+
32
+ #: toc.php:500
33
+ msgid "Main Options"
34
+ msgstr "Hlavné možnosti"
35
+
36
+ #: toc.php:501
37
+ msgid "Sitemap"
38
+ msgstr "Sitemap"
39
+
40
+ #: toc.php:502
41
+ msgid "Help"
42
+ msgstr "pomoc"
43
+
44
+ #: toc.php:510
45
+ msgid "Position"
46
+ msgstr "Pozícia"
47
+
48
+ #: toc.php:513
49
+ msgid "Before first heading (default)"
50
+ msgstr "Pred prvej položky (predvolené)"
51
+
52
+ #: toc.php:514
53
+ msgid "Top"
54
+ msgstr "Top"
55
+
56
+ #: toc.php:515
57
+ msgid "Bottom"
58
+ msgstr "Dno"
59
+
60
+ #: toc.php:520
61
+ msgid "Show when"
62
+ msgstr "Show, kedy"
63
+
64
+ #. translators: text follows drop down list of numbers
65
+ #: toc.php:532
66
+ msgid "or more headings are present"
67
+ msgstr "alebo ďalšie nadpisy sú prítomné"
68
+
69
+ #: toc.php:536
70
+ msgid "Auto insert for the following content types"
71
+ msgstr "Auto vložiť pre tieto typy obsahu"
72
+
73
+ #. translators: this is the title of the table of contents
74
+ #: toc.php:551
75
+ msgid "Heading text"
76
+ msgstr "Text nadpisu"
77
+
78
+ #: toc.php:553
79
+ msgid "Show title on top of the table of contents"
80
+ msgstr "Zobraziť názov nad obsahu"
81
+
82
+ #: toc.php:556
83
+ msgid "Eg: Contents, Table of Contents, Page Contents"
84
+ msgstr "Napr: Obsah, obsah, obsah stránky"
85
+
86
+ #: toc.php:558
87
+ msgid "Allow the user to toggle the visibility of the table of contents"
88
+ msgstr "Povoliť používateľovi prepnúť viditeľnosť obsahu"
89
+
90
+ #: toc.php:563
91
+ msgid "Show text"
92
+ msgstr "Zobraziť text"
93
+
94
+ #. translators: example text to display when you want to expand the table of
95
+ #. contents
96
+ #: toc.php:567
97
+ msgid "Eg: show"
98
+ msgstr "Napr: Ukázať"
99
+
100
+ #: toc.php:570
101
+ msgid "Hide text"
102
+ msgstr "Skryť text"
103
+
104
+ #. translators: example text to display when you want to collapse the table of
105
+ #. contents
106
+ #: toc.php:574
107
+ msgid "Eg: hide"
108
+ msgstr "Napr: skryť"
109
+
110
+ #: toc.php:578
111
+ msgid "Hide the table of contents initially"
112
+ msgstr "Skryť obsah spočiatku"
113
+
114
+ #: toc.php:584
115
+ msgid "Show hierarchy"
116
+ msgstr "Zobraziť hierarchiu"
117
+
118
+ #: toc.php:588
119
+ msgid "Number list items"
120
+ msgstr "Číslo položky zoznamu"
121
+
122
+ #: toc.php:592
123
+ msgid "Enable smooth scroll effect"
124
+ msgstr "Umožniť hladké rolovacie efekt"
125
+
126
+ #: toc.php:593
127
+ msgid "Scroll rather than jump to the anchor link"
128
+ msgstr "Prejdite skôr ako skočiť na kotva odkaz"
129
+
130
+ #: toc.php:598
131
+ msgid "Appearance"
132
+ msgstr "Vzhľad"
133
+
134
+ #: toc.php:602
135
+ msgid "Width"
136
+ msgstr "Šírka"
137
+
138
+ #: toc.php:605
139
+ msgid "Fixed width"
140
+ msgstr "Pevná šírka"
141
+
142
+ #: toc.php:616
143
+ msgid "Relative"
144
+ msgstr "Relatívna"
145
+
146
+ #: toc.php:617
147
+ msgid "Auto (default)"
148
+ msgstr "Automatické (štandardne)"
149
+
150
+ #. translators: other width
151
+ #: toc.php:627
152
+ msgid "Other"
153
+ msgstr "Ostatné"
154
+
155
+ #: toc.php:628
156
+ msgid "User defined"
157
+ msgstr "Definované používateľom"
158
+
159
+ #. translators: ignore %s as it's some HTML label tags
160
+ #: toc.php:634
161
+ msgid "Please enter a number and %s select its units, eg: 100px, 10em"
162
+ msgstr "Zadajte číslo a %s vyberte svoje podielové listy, napr: 100px, 10em"
163
+
164
+ #: toc.php:645
165
+ msgid "Wrapping"
166
+ msgstr "Balenie"
167
+
168
+ #: toc.php:648
169
+ msgid "None (default)"
170
+ msgstr "None (predvolené)"
171
+
172
+ #: toc.php:649
173
+ msgid "Left"
174
+ msgstr "Doľava"
175
+
176
+ #: toc.php:650
177
+ msgid "Right"
178
+ msgstr "Právo"
179
+
180
+ #: toc.php:655
181
+ msgid "Font size"
182
+ msgstr "Veľkosť písma"
183
+
184
+ #. translators: appearance / colour / look and feel options
185
+ #: toc.php:668
186
+ msgid "Presentation"
187
+ msgstr "Prezentácia"
188
+
189
+ #: toc.php:671
190
+ msgid "Grey (default)"
191
+ msgstr "Grey (predvolené)"
192
+
193
+ #: toc.php:676
194
+ msgid "Light blue"
195
+ msgstr "Svetlo modrá"
196
+
197
+ #: toc.php:681
198
+ msgid "White"
199
+ msgstr "Biela"
200
+
201
+ #: toc.php:686
202
+ msgid "Black"
203
+ msgstr "Čierna"
204
+
205
+ #: toc.php:691
206
+ msgid "Transparent"
207
+ msgstr "Transparentné"
208
+
209
+ #: toc.php:696
210
+ msgid "Custom"
211
+ msgstr "Vlastné"
212
+
213
+ #: toc.php:706
214
+ msgid "Background"
215
+ msgstr "Pozadie"
216
+
217
+ #: toc.php:710
218
+ msgid "Border"
219
+ msgstr "Orámovanie"
220
+
221
+ #: toc.php:714 toc.php:1556
222
+ msgid "Title"
223
+ msgstr "Názov"
224
+
225
+ #: toc.php:718
226
+ msgid "Links"
227
+ msgstr "Odkazy"
228
+
229
+ #: toc.php:722
230
+ msgid "Links (hover)"
231
+ msgstr "Odkazy (hover)"
232
+
233
+ #: toc.php:726
234
+ msgid "Links (visited)"
235
+ msgstr "Odkazy (navštívil)"
236
+
237
+ #: toc.php:733
238
+ msgid "Leaving the value as %s will inherit your theme's styles"
239
+ msgstr "Odchod na hodnotu ako %s zdedí vaša téma štýly"
240
+
241
+ #: toc.php:740
242
+ msgid "Advanced"
243
+ msgstr "Pokročilé"
244
+
245
+ #: toc.php:740 toc.php:857
246
+ msgid "show"
247
+ msgstr "Zobraziť"
248
+
249
+ #: toc.php:742
250
+ msgid "Power options"
251
+ msgstr "Možnosti napájania"
252
+
253
+ #: toc.php:746
254
+ msgid "Include homepage"
255
+ msgstr "Zahŕňa domovskú stránku"
256
+
257
+ #: toc.php:747
258
+ msgid "Show the table of contents for qualifying items on the homepage"
259
+ msgstr "Zobraziť obsah pre kvalifikované položky na domovskej stránke"
260
+
261
+ #: toc.php:750
262
+ msgid "Exclude CSS file"
263
+ msgstr "Vylúčiť CSS súbor"
264
+
265
+ #: toc.php:751
266
+ msgid ""
267
+ "Prevent the loading of this plugin's CSS styles. When selected, the "
268
+ "presentation options from above will also be ignored."
269
+ msgstr ""
270
+ "Zabrániť načítaniu tento plugin CSS štýlov. Pri výbere možnosti prezentácie "
271
+ "zhora bude tiež ignorovať."
272
+
273
+ #: toc.php:754
274
+ msgid "Preserve theme bullets"
275
+ msgstr "Zachovať tému guľky"
276
+
277
+ #: toc.php:755
278
+ msgid ""
279
+ "If your theme includes background images for unordered list elements, enable "
280
+ "this to support them"
281
+ msgstr ""
282
+ "Ak vaša téma obsahuje obrázky na pozadí pre neusporiadaný zoznam prvkov, "
283
+ "umožnilo to na ich podporu"
284
+
285
+ #: toc.php:758
286
+ msgid "Heading levels"
287
+ msgstr "Úrovne nadpisov"
288
+
289
+ #: toc.php:760
290
+ msgid ""
291
+ "Include the following heading levels. Deselecting a heading will exclude it."
292
+ msgstr "Zahrnúť nasledujúce úrovne nadpisov. Zrušením nadpis vylúči to."
293
+
294
+ #: toc.php:766
295
+ msgid "heading "
296
+ msgstr "nadpis "
297
+
298
+ #: toc.php:772
299
+ msgid "Smooth scroll top offset"
300
+ msgstr "Hladké scroll najvyššie offset"
301
+
302
+ #: toc.php:775
303
+ msgid ""
304
+ "If you have a consistent menu across the top of your site, you can adjust "
305
+ "the top offset to stop the headings from appearing underneath the top menu. "
306
+ "A setting of 30 accommodates the WordPress admin bar. This setting appears "
307
+ "after you have enabled smooth scrolling from above."
308
+ msgstr ""
309
+ "Ak máte konzistentné menu v hornej časti vášho webu, môžete upraviť top "
310
+ "kompenzovať zastaviť nadpisy zobrazovaniu pod v hornom menu. Nastavenie 30 "
311
+ "pojme WordPress admin panel. Toto nastavenie sa zobrazí po povolení plynulé "
312
+ "posúvanie zhora."
313
+
314
+ #: toc.php:779
315
+ msgid "Restrict path"
316
+ msgstr "Obmedziť cesta"
317
+
318
+ #: toc.php:782
319
+ msgid ""
320
+ "Restrict generation of the table of contents to pages that match the "
321
+ "required path. This path is from the root of your site and always begins "
322
+ "with a forward slash."
323
+ msgstr ""
324
+ "Obmedziť generácie obsah na stránkach, ktoré zodpovedajú požadovanú cestu. "
325
+ "Táto cesta je z koreňa vaše stránky a vždy začína s lomkou."
326
+
327
+ #. translators: example URL path restriction
328
+ #: toc.php:785
329
+ msgid "Eg: /wiki/, /corporate/annual-reports/"
330
+ msgstr "Napr: / wiki /, /corporate/annual-reports /"
331
+
332
+ #: toc.php:789
333
+ msgid "Default anchor prefix"
334
+ msgstr "Predpona kotva predvolený"
335
+
336
+ #: toc.php:792
337
+ msgid ""
338
+ "Anchor targets are restricted to alphanumeric characters as per HTML "
339
+ "specification (see readme for more detail). The default anchor prefix will "
340
+ "be used when no characters qualify. When left blank, a number will be used "
341
+ "instead."
342
+ msgstr ""
343
+ "Kotva ciele sú obmedzené na alfanumerické znaky podľa HTML Špecifikácia "
344
+ "(pozri súbor readme pre podrobnejšie). Predpona kotva predvolený bude "
345
+ "použije pri žiadne znaky kvalifikovať. Ak ponecháte argument prázdny, číslo "
346
+ "sa použije namiesto toho."
347
+
348
+ #: toc.php:793
349
+ msgid ""
350
+ "This option normally applies to content written in character sets other than "
351
+ "ASCII."
352
+ msgstr ""
353
+ "Táto voľba sa obyčajne vzťahuje na obsah napísaný v znakovej sady ako ASCII."
354
+
355
+ #. translators: example anchor prefixes when no ascii characters match
356
+ #: toc.php:796
357
+ msgid "Eg: i, toc_index, index, _"
358
+ msgstr "EG: ja, toc_index, index _"
359
+
360
+ #. translators: advanced usage
361
+ #: toc.php:804
362
+ msgid "Usage"
363
+ msgstr "Využitie"
364
+
365
+ #: toc.php:805
366
+ msgid ""
367
+ "If you would like to fully customise the position of the table of contents, "
368
+ "you can use the %s shortcode by placing it at the desired position of your "
369
+ "post, page or custom post type. This method allows you to generate the table "
370
+ "of contents despite having auto insertion disabled for its content type. "
371
+ "Please visit the help tab for further information about this shortcode."
372
+ msgstr ""
373
+ "Ak by ste chceli prispôsobiť plne pozíciu obsahu, môžete použiť krátky kód "
374
+ "%s umiestnite ho na požadovanú pozíciu z vášho post, stránky alebo vlastné "
375
+ "post typu. Táto metóda umožňuje vytvárať tabuľky obsah napriek tomu, že "
376
+ "automatické vloženie pre jej typ obsahu zakázané. Navštívte karte pomoc pre "
377
+ "ďalšie informácie o tomto krátky."
378
+
379
+ #: toc.php:813
380
+ msgid ""
381
+ "At its simplest, placing %s into a page will automatically create a sitemap "
382
+ "of all pages and categories. This also works in a text widget."
383
+ msgstr ""
384
+ "Na jeho najjednoduchšie, uvádzanie %s do stránky automaticky vytvorí súbor "
385
+ "sitemap všetky stránky a kategórie. To funguje aj v text widget."
386
+
387
+ #: toc.php:817
388
+ msgid "Show page listing"
389
+ msgstr "Zobraziť stránku výpis"
390
+
391
+ #: toc.php:821
392
+ msgid "Show category listing"
393
+ msgstr "Zobraziť výpis kategórie"
394
+
395
+ #: toc.php:825
396
+ msgid "Heading type"
397
+ msgstr "Typ záhlavia"
398
+
399
+ #. translators: the full line is supposed to read - Use [1-6 drop down list] to
400
+ #. print out the titles
401
+ #: toc.php:828
402
+ msgid "Use"
403
+ msgstr "Použitie"
404
+
405
+ #. translators: the full line is supposed to read - Use [h1-h6 drop down list]
406
+ #. to print out the titles
407
+ #: toc.php:839
408
+ msgid "to print out the titles"
409
+ msgstr "vytlačiť nadpisy"
410
+
411
+ #: toc.php:843
412
+ msgid "Pages label"
413
+ msgstr "Stránky label"
414
+
415
+ #: toc.php:845
416
+ msgid "Eg: Pages, Page List"
417
+ msgstr "Napr: Stránky, zoznam stránok"
418
+
419
+ #: toc.php:849
420
+ msgid "Categories label"
421
+ msgstr "Menovky kategórií"
422
+
423
+ #: toc.php:851
424
+ msgid "Eg: Categories, Category List"
425
+ msgstr "Napr: Kategórie, zoznam kategórií"
426
+
427
+ #: toc.php:857
428
+ msgid "Advanced usage"
429
+ msgstr "Pokročilé použitie"
430
+
431
+ #: toc.php:859
432
+ msgid ""
433
+ "lets you print out a listing of only pages. Similarly %s can be used to "
434
+ "print out a category listing. They both can accept a number of attributes so "
435
+ "visit the help tab for more information."
436
+ msgstr ""
437
+ "umožňuje vytlačiť zoznam iba stránky. Podobne %s môžu byť použité na "
438
+ "vytlačiť výpis kategórie. Obaja môžu akceptovať viacero atribútov tak "
439
+ "Navštívte karte Pomocníka pre viac informácií."
440
+
441
+ #: toc.php:860
442
+ msgid "Examples"
443
+ msgstr "Príklady"
444
+
445
+ #: toc.php:862
446
+ msgid "hides the heading from a category listing"
447
+ msgstr "skryje položky z kategórie výpisu"
448
+
449
+ #: toc.php:863
450
+ msgid ""
451
+ "Uses h6 to display %s on a page listing excluding pages with IDs 1 and 15"
452
+ msgstr ""
453
+ "H6 sa používa na zobrazenie %s na stránke výpis okrem stránky s ID 1 a 15"
454
+
455
+ #: toc.php:871
456
+ msgid "Where's my table of contents?"
457
+ msgstr "Kde je v obsahu?"
458
+
459
+ #: toc.php:872
460
+ msgid ""
461
+ "If you're reading this, then chances are you have successfully installed and "
462
+ "enabled the plugin and you're just wondering why the index isn't appearing "
463
+ "right? Try the following:"
464
+ msgstr ""
465
+ "Ak čítate tento, potom šance sú, ste úspešne nainštalovali a povolené plugin "
466
+ "a vy ste práve premýšľal, prečo index nezobrazený právo? Vyskúšajte "
467
+ "nasledujúci postup:"
468
+
469
+ #: toc.php:874
470
+ msgid ""
471
+ "In most cases, the post, page or custom post type has less than the minimum "
472
+ "number of headings. By default, this is set to four so make sure you have at "
473
+ "least four headings within your content. If you want to change this value, "
474
+ "you can find it under 'Main Options' &gt; 'Show when'."
475
+ msgstr ""
476
+ "Vo väčšine prípadov, post, stránky alebo vlastný príspevok typ má menej než "
477
+ "minimum počet položiek. Štandardne to je nastavená na štyri tak uistite sa, "
478
+ "že máte v najmenej štyroch častí svojho obsahu. Ak chcete zmeniť túto "
479
+ "hodnotu, nájdete ju pod &quot;Hlavné možnosti&quot; &amp;gt; &quot;Show, "
480
+ "kedy&quot;."
481
+
482
+ #: toc.php:875
483
+ msgid ""
484
+ "Is auto insertion enabled for your content type? By default, only pages are "
485
+ "enabled."
486
+ msgstr ""
487
+ "Zapnuté automatické vloženie pre váš typ obsahu? Predvolene sú len stránky "
488
+ "povolené."
489
+
490
+ #: toc.php:876
491
+ msgid ""
492
+ "Have you got <code>[no_toc]</code> somewhere within the content? This will "
493
+ "disable the index for the current post, page or custom post type."
494
+ msgstr ""
495
+ "Máš <code>[no_toc]</code> niekde v obsahu? To budevypnúť index pre aktuálny "
496
+ "post, stránky alebo vlastný príspevok typu."
497
+
498
+ #: toc.php:877
499
+ msgid ""
500
+ "If you are using the TOC+ widget, check if you have the <em>\"Show the table "
501
+ "of contents only in the sidebar\"</em> enabled as this will limit its "
502
+ "display to only the sidebar. You can check by going into Appearance &gt; "
503
+ "Widgets."
504
+ msgstr ""
505
+ "Ak používate TOC + widget, skontrolujte, či máte <em>\"Show tabuľky</"
506
+ "em>obsah iba vo sidebar\" &quot;povolené ako to obmedzí jehozobrazovať iba "
507
+ "sidebar. Môžete skontrolovať ísť do vzhľad &amp;gt; Widgety."
508
+
509
+ #: toc.php:878
510
+ msgid ""
511
+ "You may have restricted generation to a URL path match. The setting can be "
512
+ "found in the advanced section under Main Options."
513
+ msgstr ""
514
+ "Môže mať obmedzený generácie na URL cestu zápas. Nastavenie môže byť nájdené "
515
+ "v sekcii rozšírené v časti hlavné možnosti."
516
+
517
+ #: toc.php:881
518
+ msgid "How do I stop the table of contents from appearing on a single page?"
519
+ msgstr "Ako môžem zastaviť obsahu zobrazeniu na jednej stránke?"
520
+
521
+ #: toc.php:882
522
+ msgid ""
523
+ "Place the following <code>[no_toc]</code> anywhere on the page to suppress "
524
+ "the table of contents. This is known as a shortcode and works for posts, "
525
+ "pages and custom post types that make use of the_content()"
526
+ msgstr ""
527
+ "Miesto nasledujúce <code>[no_toc]</code> kdekoľvek na stránke potlačiťv "
528
+ "tabuľke obsahu. Toto je známe ako pracuje pre príspevky, a krátky stránky a "
529
+ "vlastné post typy, ktoré robia použitie the_content()"
530
+
531
+ #: toc.php:884
532
+ msgid ""
533
+ "I've set wrapping to left or right but the headings don't wrap around the "
534
+ "table of contents"
535
+ msgstr ""
536
+ "Som nastaviť zalomenie vľavo alebo vpravo, ale nadpisy Nechcem ovinúť okolo "
537
+ "obsah"
538
+
539
+ #: toc.php:885
540
+ msgid ""
541
+ "This normally occurs when there is a CSS clear directive in or around the "
542
+ "heading originating from the theme (Twenty Eleven and Twenty Twelve are two "
543
+ "themes which do this). This directive tells the user agent to reset the "
544
+ "previous wrapping specifications."
545
+ msgstr ""
546
+ "Toto zvyčajne nastane, keď je jasné smernice v alebo okolo CSS položky "
547
+ "pochádzajúce z motívu (dvadsať jedenásť a dvanásť dvadsať sú dva témy, ktoré "
548
+ "sa tohto). Táto smernica hovorí user agent na obnovenie Predchádzajúci "
549
+ "balenie špecifikácie."
550
+
551
+ #: toc.php:886
552
+ msgid ""
553
+ "You can adjust your theme's CSS or try moving the table of contents position "
554
+ "to the top of the page. If you didn't build your theme, I'd highly suggest "
555
+ "you try the %s if you wish to make CSS changes."
556
+ msgstr ""
557
+ "Môžete upraviť vaše tému CSS alebo premiestnite tabuľke obsah postavenia na "
558
+ "vrchnej časti stránky. Ak ste nestavali vaše tému, by som veľmi navrhnúť "
559
+ "môžete skúsiť %s Ak chcete vykonať zmeny CSS."
560
+
561
+ #. translators: CSS code follows after this line
562
+ #: toc.php:889
563
+ msgid ""
564
+ "Try adding the following CSS to allow the wrapping to occur around the table "
565
+ "of contents:"
566
+ msgstr ""
567
+ "Skúste pridať nasledujúce CSS povoliť balenie nastať okolo stola obsah:"
568
+
569
+ #: toc.php:894
570
+ msgid "How do I include the name of the page in the table of contents title?"
571
+ msgstr "Ako urobiť zahrnúť názov stránky v tabuľke obsah hlavy?"
572
+
573
+ #: toc.php:895
574
+ msgid ""
575
+ "As the title of the page changes depending on the page you're viewing, you "
576
+ "can use the following special variable to automatically insert the title of "
577
+ "the page into the table of contents heading:"
578
+ msgstr ""
579
+ "Ako názov stránky zmien v závislosti na stránke prezeráte, ste môžete použiť "
580
+ "nasledovné špeciálne premenná automaticky vložiť názov stránky do obsahu "
581
+ "položky:"
582
+
583
+ #: toc.php:897
584
+ msgid "You can use it as is or place text either side of the variable."
585
+ msgstr "Môžete ho ako je, alebo umiestniť text oboch stranách premennej."
586
+
587
+ #: toc.php:898
588
+ msgid ""
589
+ "As an example: if your page is named <em>Great Expectations</em> and your "
590
+ "table of contents title is set to <em>Contents for %PAGE_NAME%</em>, the "
591
+ "final title would read <em>Contents for Great Expectations</em>"
592
+ msgstr ""
593
+ "Ako príklad: Ak vaše stránky s názvom <em>Great Expectations</em> a "
594
+ "vašeTabuľka obsah titulu je nastavená na <em>obsah % PAGE_NAME %</em>,"
595
+ "posledný názov by čítať <em>obsah pre veľké očakávania</em>"
596
+
597
+ #: toc.php:900
598
+ msgid "The sitemap uses a strange font dissimilar to the rest of the site"
599
+ msgstr "Sitemap používa podivné písmo nepodobné zvyšok stránky"
600
+
601
+ #: toc.php:901
602
+ msgid ""
603
+ "No extra styles are created for the sitemap, instead it inherits any styles "
604
+ "you used when adding the shortcode. If you copy and pasted, you probably "
605
+ "also copied the 'code' tags surrounding it so remove them if this is the "
606
+ "case."
607
+ msgstr ""
608
+ "Žiadne ďalšie štýly sú vytvorené na sitemap, namiesto toho ho zdedí všetky "
609
+ "štýly Použili ste pri pridávaní krátky kód. Ak ste skopírovať a vložiť, ste "
610
+ "pravdepodobne tiež skopírovať &quot;kód&quot; Tagy obklopovať to odstráni "
611
+ "ich či to je prípad."
612
+
613
+ #: toc.php:902
614
+ msgid ""
615
+ "In most cases, try to have the shortcode on its own line with nothing before "
616
+ "or after the square brackets."
617
+ msgstr ""
618
+ "Vo väčšine prípadov sa snažím mať krátky kód na samostatnom riadku s ničím "
619
+ "pred alebo po hranatých zátvoriek."
620
+
621
+ #: toc.php:904
622
+ msgid "What were those shortcodes and attributes again?"
623
+ msgstr "Aké boli tie shortcodes a atribúty znova?"
624
+
625
+ #: toc.php:905
626
+ msgid ""
627
+ "When attributes are left out for the shortcodes below, they will fallback to "
628
+ "the settings you defined under Settings &gt; TOC+."
629
+ msgstr ""
630
+ "Keď atribúty sú vynechal pre nižšie shortcodes, budú fallback na nastavenia "
631
+ "definované v časti Nastavenia &amp;gt; TOC +."
632
+
633
+ #: toc.php:909
634
+ msgid "Shortcode"
635
+ msgstr "Krátky"
636
+
637
+ #: toc.php:910
638
+ msgid "Description"
639
+ msgstr "Popis"
640
+
641
+ #: toc.php:911
642
+ msgid "Attributes"
643
+ msgstr "Atribúty"
644
+
645
+ #: toc.php:917
646
+ msgid ""
647
+ "Lets you generate the table of contents at the preferred position. Also "
648
+ "useful for sites that only require a TOC on a small handful of pages."
649
+ msgstr ""
650
+ "Umožňuje generovať obsah na prednostné pozíciu. Tiež užitočné stránky, ktoré "
651
+ "vyžadujú len TOC na malú hrsť stránky."
652
+
653
+ #: toc.php:920
654
+ msgid "text, title of the table of contents"
655
+ msgstr "text, názov obsah"
656
+
657
+ #: toc.php:921
658
+ msgid "true/false, shows or hides the title"
659
+ msgstr "pravda/nepravda, zobrazí alebo skryje názov"
660
+
661
+ #: toc.php:922
662
+ msgid "text, either \"left\" or \"right\""
663
+ msgstr "text, buď \"left\" alebo \"right\""
664
+
665
+ #: toc.php:923
666
+ msgid ""
667
+ "numbers, this lets you select the heading levels you want included in the "
668
+ "table of contents. Separate multiple levels with a comma. Example: include "
669
+ "headings 3, 4 and 5 but exclude the others with"
670
+ msgstr ""
671
+ "čísla, to vám umožní vybrať úrovne nadpisov chcete zahrnúť Tabuľka obsah. "
672
+ "Viacerých úrovniach oddeľte čiarkou. Príklad: patrí položky 3, 4 a 5, ale "
673
+ "vylúčiť ostatných, s"
674
+
675
+ #: toc.php:929
676
+ msgid ""
677
+ "Allows you to disable the table of contents for the current post, page, or "
678
+ "custom post type."
679
+ msgstr ""
680
+ "Umožňuje vypnúť obsahu pre súčasný post, stránky, alebo typu vlastný "
681
+ "príspevok."
682
+
683
+ #: toc.php:934
684
+ msgid ""
685
+ "Produces a listing of all pages and categories for your site. You can use "
686
+ "this on any post, page or even in a text widget."
687
+ msgstr ""
688
+ "Produkuje výpis všetky stránky a kategórie pre vaše stránky. Môžete použiť "
689
+ "to na každom post, stránky alebo dokonca v text widget."
690
+
691
+ #: toc.php:939
692
+ msgid "Lets you print out a listing of only pages."
693
+ msgstr "Umožňuje vytlačiť zoznam iba stránky."
694
+
695
+ #: toc.php:942
696
+ msgid "number between 1 and 6, defines which html heading to use"
697
+ msgstr "čísla 1 až 6, definuje html nadpis používať"
698
+
699
+ #: toc.php:943
700
+ msgid "text, title of the list"
701
+ msgstr "text, názov zoznamu"
702
+
703
+ #: toc.php:944
704
+ msgid "true/false, shows or hides the list heading"
705
+ msgstr "pravda/nepravda, zobrazí alebo skryje hlavičku zoznamu"
706
+
707
+ #: toc.php:945
708
+ msgid "IDs of the pages or categories you wish to exclude"
709
+ msgstr "Identifikácií stránok alebo kategórií chcete vylúčiť"
710
+
711
+ #: toc.php:946
712
+ msgid ""
713
+ "ID of the page or category you wish to exclude including its all descendants"
714
+ msgstr ""
715
+ "ID strany alebo kategórie, ktoré chcete vylúčiť, vrátane jeho všetkých "
716
+ "potomkov"
717
+
718
+ #: toc.php:952
719
+ msgid "Similar to [sitemap_pages] but for categories."
720
+ msgstr "Podobne ako [sitemap_pages] ale pre kategórie."
721
+
722
+ #: toc.php:958
723
+ msgid "I have another question..."
724
+ msgstr "Ja mám inú otázku..."
725
+
726
+ #: toc.php:959
727
+ msgid ""
728
+ "Visit the %1$splugin homepage%2$s to ask your question - who knows, maybe "
729
+ "your question has already been answered. I'd really like to hear your "
730
+ "suggestions if you have any."
731
+ msgstr ""
732
+ "Navštívte %1$ splugin homepage % 2$ s položiť vašu otázku - kto vie, možno "
733
+ "vaša otázka už bola zodpovedaná. By som naozaj rád počuť váš návrhy, ak máte "
734
+ "nejaké."
735
+
736
+ #: toc.php:965
737
+ msgid "Update Options"
738
+ msgstr "Aktualizáciou možností"
739
+
740
+ #: toc.php:1470
741
+ msgid "Display the table of contents in the sidebar with this widget"
742
+ msgstr "Zobrazenie obsahu v bočnom paneli s tento widget"
743
+
744
+ #: toc.php:1562
745
+ msgid "Show the table of contents only in the sidebar"
746
+ msgstr "Zobraziť obsah iba v bočnom paneli"
languages/toc+.pot CHANGED
@@ -1,300 +1,348 @@
1
- # Copyright (C) 2012
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/table-of-contents-plus\n"
7
- "POT-Creation-Date: 2012-11-17 03:02:57+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: toc.php:171
16
  msgid "Settings"
17
  msgstr ""
18
 
19
- #: toc.php:341 toc.php:342
20
  msgid "TOC"
21
  msgstr ""
22
 
23
- #: toc.php:486
24
  msgid "Options saved."
25
  msgstr ""
26
 
27
- #: toc.php:488
28
  msgid "Save failed."
29
  msgstr ""
30
 
31
- #: toc.php:500
32
  msgid "Main Options"
33
  msgstr ""
34
 
35
- #: toc.php:501
36
  msgid "Sitemap"
37
  msgstr ""
38
 
39
- #: toc.php:502
40
  msgid "Help"
41
  msgstr ""
42
 
43
- #: toc.php:510
44
  msgid "Position"
45
  msgstr ""
46
 
47
- #: toc.php:513
48
  msgid "Before first heading (default)"
49
  msgstr ""
50
 
51
- #: toc.php:514
 
 
 
 
52
  msgid "Top"
53
  msgstr ""
54
 
55
- #: toc.php:515
56
  msgid "Bottom"
57
  msgstr ""
58
 
59
- #: toc.php:520
60
  msgid "Show when"
61
  msgstr ""
62
 
63
  #. translators: text follows drop down list of numbers
64
- #: toc.php:532
65
  msgid "or more headings are present"
66
  msgstr ""
67
 
68
- #: toc.php:536
69
  msgid "Auto insert for the following content types"
70
  msgstr ""
71
 
72
  #. translators: this is the title of the table of contents
73
- #: toc.php:551
74
  msgid "Heading text"
75
  msgstr ""
76
 
77
- #: toc.php:553
78
  msgid "Show title on top of the table of contents"
79
  msgstr ""
80
 
81
- #: toc.php:556
82
  msgid "Eg: Contents, Table of Contents, Page Contents"
83
  msgstr ""
84
 
85
- #: toc.php:558
86
  msgid "Allow the user to toggle the visibility of the table of contents"
87
  msgstr ""
88
 
89
- #: toc.php:563
90
  msgid "Show text"
91
  msgstr ""
92
 
93
  #. translators: example text to display when you want to expand the table of
94
  #. contents
95
- #: toc.php:567
96
  msgid "Eg: show"
97
  msgstr ""
98
 
99
- #: toc.php:570
100
  msgid "Hide text"
101
  msgstr ""
102
 
103
  #. translators: example text to display when you want to collapse the table of
104
  #. contents
105
- #: toc.php:574
106
  msgid "Eg: hide"
107
  msgstr ""
108
 
109
- #: toc.php:578
110
  msgid "Hide the table of contents initially"
111
  msgstr ""
112
 
113
- #: toc.php:584
114
  msgid "Show hierarchy"
115
  msgstr ""
116
 
117
- #: toc.php:588
118
  msgid "Number list items"
119
  msgstr ""
120
 
121
- #: toc.php:592
122
  msgid "Enable smooth scroll effect"
123
  msgstr ""
124
 
125
- #: toc.php:593
126
  msgid "Scroll rather than jump to the anchor link"
127
  msgstr ""
128
 
129
- #: toc.php:598
130
  msgid "Appearance"
131
  msgstr ""
132
 
133
- #: toc.php:602
134
  msgid "Width"
135
  msgstr ""
136
 
137
- #: toc.php:605
138
  msgid "Fixed width"
139
  msgstr ""
140
 
141
- #: toc.php:616
142
  msgid "Relative"
143
  msgstr ""
144
 
145
- #: toc.php:617
146
  msgid "Auto (default)"
147
  msgstr ""
148
 
149
  #. translators: other width
150
- #: toc.php:627
151
  msgid "Other"
152
  msgstr ""
153
 
154
- #: toc.php:628
155
  msgid "User defined"
156
  msgstr ""
157
 
158
  #. translators: ignore %s as it's some HTML label tags
159
- #: toc.php:634
160
  msgid "Please enter a number and %s select its units, eg: 100px, 10em"
161
  msgstr ""
162
 
163
- #: toc.php:645
164
  msgid "Wrapping"
165
  msgstr ""
166
 
167
- #: toc.php:648
168
  msgid "None (default)"
169
  msgstr ""
170
 
171
- #: toc.php:649
172
  msgid "Left"
173
  msgstr ""
174
 
175
- #: toc.php:650
176
  msgid "Right"
177
  msgstr ""
178
 
179
- #: toc.php:655
180
  msgid "Font size"
181
  msgstr ""
182
 
183
  #. translators: appearance / colour / look and feel options
184
- #: toc.php:668
185
  msgid "Presentation"
186
  msgstr ""
187
 
188
- #: toc.php:671
189
  msgid "Grey (default)"
190
  msgstr ""
191
 
192
- #: toc.php:676
193
  msgid "Light blue"
194
  msgstr ""
195
 
196
- #: toc.php:681
197
  msgid "White"
198
  msgstr ""
199
 
200
- #: toc.php:686
201
  msgid "Black"
202
  msgstr ""
203
 
204
- #: toc.php:691
205
  msgid "Transparent"
206
  msgstr ""
207
 
208
- #: toc.php:696
209
  msgid "Custom"
210
  msgstr ""
211
 
212
- #: toc.php:706
213
  msgid "Background"
214
  msgstr ""
215
 
216
- #: toc.php:710
217
  msgid "Border"
218
  msgstr ""
219
 
220
- #: toc.php:714 toc.php:1556
221
  msgid "Title"
222
  msgstr ""
223
 
224
- #: toc.php:718
225
  msgid "Links"
226
  msgstr ""
227
 
228
- #: toc.php:722
229
  msgid "Links (hover)"
230
  msgstr ""
231
 
232
- #: toc.php:726
233
  msgid "Links (visited)"
234
  msgstr ""
235
 
236
- #: toc.php:733
237
  msgid "Leaving the value as %s will inherit your theme's styles"
238
  msgstr ""
239
 
240
- #: toc.php:740
241
  msgid "Advanced"
242
  msgstr ""
243
 
244
- #: toc.php:740 toc.php:857
245
  msgid "show"
246
  msgstr ""
247
 
248
- #: toc.php:742
249
  msgid "Power options"
250
  msgstr ""
251
 
252
- #: toc.php:746
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  msgid "Include homepage"
254
  msgstr ""
255
 
256
- #: toc.php:747
257
  msgid "Show the table of contents for qualifying items on the homepage"
258
  msgstr ""
259
 
260
- #: toc.php:750
261
  msgid "Exclude CSS file"
262
  msgstr ""
263
 
264
- #: toc.php:751
265
  msgid ""
266
  "Prevent the loading of this plugin's CSS styles. When selected, the "
267
- "presentation options from above will also be ignored."
268
  msgstr ""
269
 
270
- #: toc.php:754
271
  msgid "Preserve theme bullets"
272
  msgstr ""
273
 
274
- #: toc.php:755
275
  msgid ""
276
  "If your theme includes background images for unordered list elements, enable "
277
  "this to support them"
278
  msgstr ""
279
 
280
- #: toc.php:758
281
  msgid "Heading levels"
282
  msgstr ""
283
 
284
- #: toc.php:760
285
  msgid ""
286
  "Include the following heading levels. Deselecting a heading will exclude it."
287
  msgstr ""
288
 
289
- #: toc.php:766
290
  msgid "heading "
291
  msgstr ""
292
 
293
- #: toc.php:772
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  msgid "Smooth scroll top offset"
295
  msgstr ""
296
 
297
- #: toc.php:775
298
  msgid ""
299
  "If you have a consistent menu across the top of your site, you can adjust "
300
  "the top offset to stop the headings from appearing underneath the top menu. "
@@ -302,11 +350,11 @@ msgid ""
302
  "after you have enabled smooth scrolling from above."
303
  msgstr ""
304
 
305
- #: toc.php:779
306
  msgid "Restrict path"
307
  msgstr ""
308
 
309
- #: toc.php:782
310
  msgid ""
311
  "Restrict generation of the table of contents to pages that match the "
312
  "required path. This path is from the root of your site and always begins "
@@ -314,15 +362,15 @@ msgid ""
314
  msgstr ""
315
 
316
  #. translators: example URL path restriction
317
- #: toc.php:785
318
  msgid "Eg: /wiki/, /corporate/annual-reports/"
319
  msgstr ""
320
 
321
- #: toc.php:789
322
  msgid "Default anchor prefix"
323
  msgstr ""
324
 
325
- #: toc.php:792
326
  msgid ""
327
  "Anchor targets are restricted to alphanumeric characters as per HTML "
328
  "specification (see readme for more detail). The default anchor prefix will "
@@ -330,23 +378,23 @@ msgid ""
330
  "instead."
331
  msgstr ""
332
 
333
- #: toc.php:793
334
  msgid ""
335
  "This option normally applies to content written in character sets other than "
336
  "ASCII."
337
  msgstr ""
338
 
339
  #. translators: example anchor prefixes when no ascii characters match
340
- #: toc.php:796
341
  msgid "Eg: i, toc_index, index, _"
342
  msgstr ""
343
 
344
  #. translators: advanced usage
345
- #: toc.php:804
346
  msgid "Usage"
347
  msgstr ""
348
 
349
- #: toc.php:805
350
  msgid ""
351
  "If you would like to fully customise the position of the table of contents, "
352
  "you can use the %s shortcode by placing it at the desired position of your "
@@ -355,88 +403,88 @@ msgid ""
355
  "Please visit the help tab for further information about this shortcode."
356
  msgstr ""
357
 
358
- #: toc.php:813
359
  msgid ""
360
  "At its simplest, placing %s into a page will automatically create a sitemap "
361
  "of all pages and categories. This also works in a text widget."
362
  msgstr ""
363
 
364
- #: toc.php:817
365
  msgid "Show page listing"
366
  msgstr ""
367
 
368
- #: toc.php:821
369
  msgid "Show category listing"
370
  msgstr ""
371
 
372
- #: toc.php:825
373
  msgid "Heading type"
374
  msgstr ""
375
 
376
  #. translators: the full line is supposed to read - Use [1-6 drop down list] to
377
  #. print out the titles
378
- #: toc.php:828
379
  msgid "Use"
380
  msgstr ""
381
 
382
  #. translators: the full line is supposed to read - Use [h1-h6 drop down list]
383
  #. to print out the titles
384
- #: toc.php:839
385
  msgid "to print out the titles"
386
  msgstr ""
387
 
388
- #: toc.php:843
389
  msgid "Pages label"
390
  msgstr ""
391
 
392
- #: toc.php:845
393
  msgid "Eg: Pages, Page List"
394
  msgstr ""
395
 
396
- #: toc.php:849
397
  msgid "Categories label"
398
  msgstr ""
399
 
400
- #: toc.php:851
401
  msgid "Eg: Categories, Category List"
402
  msgstr ""
403
 
404
- #: toc.php:857
405
  msgid "Advanced usage"
406
  msgstr ""
407
 
408
- #: toc.php:859
409
  msgid ""
410
  "lets you print out a listing of only pages. Similarly %s can be used to "
411
  "print out a category listing. They both can accept a number of attributes so "
412
  "visit the help tab for more information."
413
  msgstr ""
414
 
415
- #: toc.php:860
416
  msgid "Examples"
417
  msgstr ""
418
 
419
- #: toc.php:862
420
  msgid "hides the heading from a category listing"
421
  msgstr ""
422
 
423
- #: toc.php:863
424
  msgid ""
425
  "Uses h6 to display %s on a page listing excluding pages with IDs 1 and 15"
426
  msgstr ""
427
 
428
- #: toc.php:871
429
  msgid "Where's my table of contents?"
430
  msgstr ""
431
 
432
- #: toc.php:872
433
  msgid ""
434
  "If you're reading this, then chances are you have successfully installed and "
435
  "enabled the plugin and you're just wondering why the index isn't appearing "
436
  "right? Try the following:"
437
  msgstr ""
438
 
439
- #: toc.php:874
440
  msgid ""
441
  "In most cases, the post, page or custom post type has less than the minimum "
442
  "number of headings. By default, this is set to four so make sure you have at "
@@ -444,19 +492,19 @@ msgid ""
444
  "you can find it under 'Main Options' &gt; 'Show when'."
445
  msgstr ""
446
 
447
- #: toc.php:875
448
  msgid ""
449
  "Is auto insertion enabled for your content type? By default, only pages are "
450
  "enabled."
451
  msgstr ""
452
 
453
- #: toc.php:876
454
  msgid ""
455
  "Have you got <code>[no_toc]</code> somewhere within the content? This will "
456
  "disable the index for the current post, page or custom post type."
457
  msgstr ""
458
 
459
- #: toc.php:877
460
  msgid ""
461
  "If you are using the TOC+ widget, check if you have the <em>\"Show the table "
462
  "of contents only in the sidebar\"</em> enabled as this will limit its "
@@ -464,30 +512,30 @@ msgid ""
464
  "Widgets."
465
  msgstr ""
466
 
467
- #: toc.php:878
468
  msgid ""
469
  "You may have restricted generation to a URL path match. The setting can be "
470
  "found in the advanced section under Main Options."
471
  msgstr ""
472
 
473
- #: toc.php:881
474
  msgid "How do I stop the table of contents from appearing on a single page?"
475
  msgstr ""
476
 
477
- #: toc.php:882
478
  msgid ""
479
  "Place the following <code>[no_toc]</code> anywhere on the page to suppress "
480
  "the table of contents. This is known as a shortcode and works for posts, "
481
  "pages and custom post types that make use of the_content()"
482
  msgstr ""
483
 
484
- #: toc.php:884
485
  msgid ""
486
  "I've set wrapping to left or right but the headings don't wrap around the "
487
  "table of contents"
488
  msgstr ""
489
 
490
- #: toc.php:885
491
  msgid ""
492
  "This normally occurs when there is a CSS clear directive in or around the "
493
  "heading originating from the theme (Twenty Eleven and Twenty Twelve are two "
@@ -495,7 +543,7 @@ msgid ""
495
  "previous wrapping specifications."
496
  msgstr ""
497
 
498
- #: toc.php:886
499
  msgid ""
500
  "You can adjust your theme's CSS or try moving the table of contents position "
501
  "to the top of the page. If you didn't build your theme, I'd highly suggest "
@@ -503,39 +551,39 @@ msgid ""
503
  msgstr ""
504
 
505
  #. translators: CSS code follows after this line
506
- #: toc.php:889
507
  msgid ""
508
  "Try adding the following CSS to allow the wrapping to occur around the table "
509
  "of contents:"
510
  msgstr ""
511
 
512
- #: toc.php:894
513
  msgid "How do I include the name of the page in the table of contents title?"
514
  msgstr ""
515
 
516
- #: toc.php:895
517
  msgid ""
518
  "As the title of the page changes depending on the page you're viewing, you "
519
  "can use the following special variable to automatically insert the title of "
520
  "the page into the table of contents heading:"
521
  msgstr ""
522
 
523
- #: toc.php:897
524
  msgid "You can use it as is or place text either side of the variable."
525
  msgstr ""
526
 
527
- #: toc.php:898
528
  msgid ""
529
  "As an example: if your page is named <em>Great Expectations</em> and your "
530
  "table of contents title is set to <em>Contents for %PAGE_NAME%</em>, the "
531
  "final title would read <em>Contents for Great Expectations</em>"
532
  msgstr ""
533
 
534
- #: toc.php:900
535
  msgid "The sitemap uses a strange font dissimilar to the rest of the site"
536
  msgstr ""
537
 
538
- #: toc.php:901
539
  msgid ""
540
  "No extra styles are created for the sitemap, instead it inherits any styles "
541
  "you used when adding the shortcode. If you copy and pasted, you probably "
@@ -543,119 +591,198 @@ msgid ""
543
  "case."
544
  msgstr ""
545
 
546
- #: toc.php:902
547
  msgid ""
548
  "In most cases, try to have the shortcode on its own line with nothing before "
549
  "or after the square brackets."
550
  msgstr ""
551
 
552
- #: toc.php:904
553
  msgid "What were those shortcodes and attributes again?"
554
  msgstr ""
555
 
556
- #: toc.php:905
557
  msgid ""
558
  "When attributes are left out for the shortcodes below, they will fallback to "
559
  "the settings you defined under Settings &gt; TOC+."
560
  msgstr ""
561
 
562
- #: toc.php:909
563
  msgid "Shortcode"
564
  msgstr ""
565
 
566
- #: toc.php:910
567
  msgid "Description"
568
  msgstr ""
569
 
570
- #: toc.php:911
571
  msgid "Attributes"
572
  msgstr ""
573
 
574
- #: toc.php:917
575
  msgid ""
576
  "Lets you generate the table of contents at the preferred position. Also "
577
  "useful for sites that only require a TOC on a small handful of pages."
578
  msgstr ""
579
 
580
- #: toc.php:920
581
  msgid "text, title of the table of contents"
582
  msgstr ""
583
 
584
- #: toc.php:921
585
  msgid "true/false, shows or hides the title"
586
  msgstr ""
587
 
588
- #: toc.php:922
589
  msgid "text, either \"left\" or \"right\""
590
  msgstr ""
591
 
592
- #: toc.php:923
593
  msgid ""
594
  "numbers, this lets you select the heading levels you want included in the "
595
  "table of contents. Separate multiple levels with a comma. Example: include "
596
  "headings 3, 4 and 5 but exclude the others with"
597
  msgstr ""
598
 
599
- #: toc.php:929
 
 
 
 
 
 
 
600
  msgid ""
601
  "Allows you to disable the table of contents for the current post, page, or "
602
  "custom post type."
603
  msgstr ""
604
 
605
- #: toc.php:934
606
  msgid ""
607
  "Produces a listing of all pages and categories for your site. You can use "
608
  "this on any post, page or even in a text widget."
609
  msgstr ""
610
 
611
- #: toc.php:939
612
  msgid "Lets you print out a listing of only pages."
613
  msgstr ""
614
 
615
- #: toc.php:942
616
  msgid "number between 1 and 6, defines which html heading to use"
617
  msgstr ""
618
 
619
- #: toc.php:943
620
  msgid "text, title of the list"
621
  msgstr ""
622
 
623
- #: toc.php:944
624
  msgid "true/false, shows or hides the list heading"
625
  msgstr ""
626
 
627
- #: toc.php:945
628
  msgid "IDs of the pages or categories you wish to exclude"
629
  msgstr ""
630
 
631
- #: toc.php:946
632
  msgid ""
633
  "ID of the page or category you wish to exclude including its all descendants"
634
  msgstr ""
635
 
636
- #: toc.php:952
637
  msgid "Similar to [sitemap_pages] but for categories."
638
  msgstr ""
639
 
640
- #: toc.php:958
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
641
  msgid "I have another question..."
642
  msgstr ""
643
 
644
- #: toc.php:959
645
  msgid ""
646
  "Visit the %1$splugin homepage%2$s to ask your question - who knows, maybe "
647
  "your question has already been answered. I'd really like to hear your "
648
  "suggestions if you have any."
649
  msgstr ""
650
 
651
- #: toc.php:965
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
652
  msgid "Update Options"
653
  msgstr ""
654
 
655
- #: toc.php:1470
656
  msgid "Display the table of contents in the sidebar with this widget"
657
  msgstr ""
658
 
659
- #: toc.php:1562
660
  msgid "Show the table of contents only in the sidebar"
661
  msgstr ""
1
+ # Copyright (C) 2013
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/table-of-contents-plus\n"
7
+ "POT-Creation-Date: 2013-03-21 12:46:27+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: toc.php:175
16
  msgid "Settings"
17
  msgstr ""
18
 
19
+ #: toc.php:424 toc.php:425
20
  msgid "TOC"
21
  msgstr ""
22
 
23
+ #: toc.php:575
24
  msgid "Options saved."
25
  msgstr ""
26
 
27
+ #: toc.php:577
28
  msgid "Save failed."
29
  msgstr ""
30
 
31
+ #: toc.php:589
32
  msgid "Main Options"
33
  msgstr ""
34
 
35
+ #: toc.php:590
36
  msgid "Sitemap"
37
  msgstr ""
38
 
39
+ #: toc.php:591
40
  msgid "Help"
41
  msgstr ""
42
 
43
+ #: toc.php:599
44
  msgid "Position"
45
  msgstr ""
46
 
47
+ #: toc.php:602
48
  msgid "Before first heading (default)"
49
  msgstr ""
50
 
51
+ #: toc.php:603
52
+ msgid "After first heading"
53
+ msgstr ""
54
+
55
+ #: toc.php:604
56
  msgid "Top"
57
  msgstr ""
58
 
59
+ #: toc.php:605
60
  msgid "Bottom"
61
  msgstr ""
62
 
63
+ #: toc.php:610
64
  msgid "Show when"
65
  msgstr ""
66
 
67
  #. translators: text follows drop down list of numbers
68
+ #: toc.php:622
69
  msgid "or more headings are present"
70
  msgstr ""
71
 
72
+ #: toc.php:626
73
  msgid "Auto insert for the following content types"
74
  msgstr ""
75
 
76
  #. translators: this is the title of the table of contents
77
+ #: toc.php:641
78
  msgid "Heading text"
79
  msgstr ""
80
 
81
+ #: toc.php:643
82
  msgid "Show title on top of the table of contents"
83
  msgstr ""
84
 
85
+ #: toc.php:646
86
  msgid "Eg: Contents, Table of Contents, Page Contents"
87
  msgstr ""
88
 
89
+ #: toc.php:648
90
  msgid "Allow the user to toggle the visibility of the table of contents"
91
  msgstr ""
92
 
93
+ #: toc.php:653
94
  msgid "Show text"
95
  msgstr ""
96
 
97
  #. translators: example text to display when you want to expand the table of
98
  #. contents
99
+ #: toc.php:657
100
  msgid "Eg: show"
101
  msgstr ""
102
 
103
+ #: toc.php:660
104
  msgid "Hide text"
105
  msgstr ""
106
 
107
  #. translators: example text to display when you want to collapse the table of
108
  #. contents
109
+ #: toc.php:664
110
  msgid "Eg: hide"
111
  msgstr ""
112
 
113
+ #: toc.php:668
114
  msgid "Hide the table of contents initially"
115
  msgstr ""
116
 
117
+ #: toc.php:674
118
  msgid "Show hierarchy"
119
  msgstr ""
120
 
121
+ #: toc.php:678
122
  msgid "Number list items"
123
  msgstr ""
124
 
125
+ #: toc.php:682
126
  msgid "Enable smooth scroll effect"
127
  msgstr ""
128
 
129
+ #: toc.php:683
130
  msgid "Scroll rather than jump to the anchor link"
131
  msgstr ""
132
 
133
+ #: toc.php:688
134
  msgid "Appearance"
135
  msgstr ""
136
 
137
+ #: toc.php:692
138
  msgid "Width"
139
  msgstr ""
140
 
141
+ #: toc.php:695
142
  msgid "Fixed width"
143
  msgstr ""
144
 
145
+ #: toc.php:706
146
  msgid "Relative"
147
  msgstr ""
148
 
149
+ #: toc.php:707
150
  msgid "Auto (default)"
151
  msgstr ""
152
 
153
  #. translators: other width
154
+ #: toc.php:717
155
  msgid "Other"
156
  msgstr ""
157
 
158
+ #: toc.php:718
159
  msgid "User defined"
160
  msgstr ""
161
 
162
  #. translators: ignore %s as it's some HTML label tags
163
+ #: toc.php:724
164
  msgid "Please enter a number and %s select its units, eg: 100px, 10em"
165
  msgstr ""
166
 
167
+ #: toc.php:735
168
  msgid "Wrapping"
169
  msgstr ""
170
 
171
+ #: toc.php:738
172
  msgid "None (default)"
173
  msgstr ""
174
 
175
+ #: toc.php:739
176
  msgid "Left"
177
  msgstr ""
178
 
179
+ #: toc.php:740
180
  msgid "Right"
181
  msgstr ""
182
 
183
+ #: toc.php:745
184
  msgid "Font size"
185
  msgstr ""
186
 
187
  #. translators: appearance / colour / look and feel options
188
+ #: toc.php:758
189
  msgid "Presentation"
190
  msgstr ""
191
 
192
+ #: toc.php:761
193
  msgid "Grey (default)"
194
  msgstr ""
195
 
196
+ #: toc.php:766
197
  msgid "Light blue"
198
  msgstr ""
199
 
200
+ #: toc.php:771
201
  msgid "White"
202
  msgstr ""
203
 
204
+ #: toc.php:776
205
  msgid "Black"
206
  msgstr ""
207
 
208
+ #: toc.php:781
209
  msgid "Transparent"
210
  msgstr ""
211
 
212
+ #: toc.php:786
213
  msgid "Custom"
214
  msgstr ""
215
 
216
+ #: toc.php:796
217
  msgid "Background"
218
  msgstr ""
219
 
220
+ #: toc.php:800
221
  msgid "Border"
222
  msgstr ""
223
 
224
+ #: toc.php:804 toc.php:1702
225
  msgid "Title"
226
  msgstr ""
227
 
228
+ #: toc.php:808
229
  msgid "Links"
230
  msgstr ""
231
 
232
+ #: toc.php:812
233
  msgid "Links (hover)"
234
  msgstr ""
235
 
236
+ #: toc.php:816
237
  msgid "Links (visited)"
238
  msgstr ""
239
 
240
+ #: toc.php:823
241
  msgid "Leaving the value as %s will inherit your theme's styles"
242
  msgstr ""
243
 
244
+ #: toc.php:830
245
  msgid "Advanced"
246
  msgstr ""
247
 
248
+ #: toc.php:830 toc.php:967 toc.php:1083
249
  msgid "show"
250
  msgstr ""
251
 
252
+ #: toc.php:832
253
  msgid "Power options"
254
  msgstr ""
255
 
256
+ #: toc.php:836
257
+ msgid "Lowercase"
258
+ msgstr ""
259
+
260
+ #: toc.php:837
261
+ msgid "Ensure anchors are in lowercase"
262
+ msgstr ""
263
+
264
+ #: toc.php:840
265
+ msgid "Hyphenate"
266
+ msgstr ""
267
+
268
+ #: toc.php:841
269
+ msgid "Use - rather than _ in anchors"
270
+ msgstr ""
271
+
272
+ #: toc.php:844
273
  msgid "Include homepage"
274
  msgstr ""
275
 
276
+ #: toc.php:845
277
  msgid "Show the table of contents for qualifying items on the homepage"
278
  msgstr ""
279
 
280
+ #: toc.php:848
281
  msgid "Exclude CSS file"
282
  msgstr ""
283
 
284
+ #: toc.php:849
285
  msgid ""
286
  "Prevent the loading of this plugin's CSS styles. When selected, the "
287
+ "appearance options from above will also be ignored."
288
  msgstr ""
289
 
290
+ #: toc.php:852
291
  msgid "Preserve theme bullets"
292
  msgstr ""
293
 
294
+ #: toc.php:853
295
  msgid ""
296
  "If your theme includes background images for unordered list elements, enable "
297
  "this to support them"
298
  msgstr ""
299
 
300
+ #: toc.php:856
301
  msgid "Heading levels"
302
  msgstr ""
303
 
304
+ #: toc.php:858
305
  msgid ""
306
  "Include the following heading levels. Deselecting a heading will exclude it."
307
  msgstr ""
308
 
309
+ #: toc.php:864
310
  msgid "heading "
311
  msgstr ""
312
 
313
+ #: toc.php:870
314
+ msgid "Exclude headings"
315
+ msgstr ""
316
+
317
+ #: toc.php:873
318
+ msgid ""
319
+ "Specify headings to be excluded from appearing in the table of contents. "
320
+ "Separate multiple headings with a pipe <code>|</code>. Use an asterisk "
321
+ "<code>*</code> as a wildcard to match other text. Note that this is not "
322
+ "case sensitive. Some examples:"
323
+ msgstr ""
324
+
325
+ #: toc.php:875
326
+ msgid "<code>Fruit*</code> ignore headings starting with \"Fruit\""
327
+ msgstr ""
328
+
329
+ #: toc.php:876
330
+ msgid ""
331
+ "<code>*Fruit Diet*</code> ignore headings with \"Fruit Diet\" somewhere in "
332
+ "the heading"
333
+ msgstr ""
334
+
335
+ #: toc.php:877
336
+ msgid ""
337
+ "<code>Apple Tree|Oranges|Yellow Bananas</code> ignore headings that are "
338
+ "exactly \"Apple Tree\", \"Oranges\" or \"Yellow Bananas\""
339
+ msgstr ""
340
+
341
+ #: toc.php:882
342
  msgid "Smooth scroll top offset"
343
  msgstr ""
344
 
345
+ #: toc.php:885
346
  msgid ""
347
  "If you have a consistent menu across the top of your site, you can adjust "
348
  "the top offset to stop the headings from appearing underneath the top menu. "
350
  "after you have enabled smooth scrolling from above."
351
  msgstr ""
352
 
353
+ #: toc.php:889
354
  msgid "Restrict path"
355
  msgstr ""
356
 
357
+ #: toc.php:892
358
  msgid ""
359
  "Restrict generation of the table of contents to pages that match the "
360
  "required path. This path is from the root of your site and always begins "
362
  msgstr ""
363
 
364
  #. translators: example URL path restriction
365
+ #: toc.php:895
366
  msgid "Eg: /wiki/, /corporate/annual-reports/"
367
  msgstr ""
368
 
369
+ #: toc.php:899
370
  msgid "Default anchor prefix"
371
  msgstr ""
372
 
373
+ #: toc.php:902
374
  msgid ""
375
  "Anchor targets are restricted to alphanumeric characters as per HTML "
376
  "specification (see readme for more detail). The default anchor prefix will "
378
  "instead."
379
  msgstr ""
380
 
381
+ #: toc.php:903
382
  msgid ""
383
  "This option normally applies to content written in character sets other than "
384
  "ASCII."
385
  msgstr ""
386
 
387
  #. translators: example anchor prefixes when no ascii characters match
388
+ #: toc.php:906
389
  msgid "Eg: i, toc_index, index, _"
390
  msgstr ""
391
 
392
  #. translators: advanced usage
393
+ #: toc.php:914
394
  msgid "Usage"
395
  msgstr ""
396
 
397
+ #: toc.php:915
398
  msgid ""
399
  "If you would like to fully customise the position of the table of contents, "
400
  "you can use the %s shortcode by placing it at the desired position of your "
403
  "Please visit the help tab for further information about this shortcode."
404
  msgstr ""
405
 
406
+ #: toc.php:923
407
  msgid ""
408
  "At its simplest, placing %s into a page will automatically create a sitemap "
409
  "of all pages and categories. This also works in a text widget."
410
  msgstr ""
411
 
412
+ #: toc.php:927
413
  msgid "Show page listing"
414
  msgstr ""
415
 
416
+ #: toc.php:931
417
  msgid "Show category listing"
418
  msgstr ""
419
 
420
+ #: toc.php:935
421
  msgid "Heading type"
422
  msgstr ""
423
 
424
  #. translators: the full line is supposed to read - Use [1-6 drop down list] to
425
  #. print out the titles
426
+ #: toc.php:938
427
  msgid "Use"
428
  msgstr ""
429
 
430
  #. translators: the full line is supposed to read - Use [h1-h6 drop down list]
431
  #. to print out the titles
432
+ #: toc.php:949
433
  msgid "to print out the titles"
434
  msgstr ""
435
 
436
+ #: toc.php:953
437
  msgid "Pages label"
438
  msgstr ""
439
 
440
+ #: toc.php:955
441
  msgid "Eg: Pages, Page List"
442
  msgstr ""
443
 
444
+ #: toc.php:959
445
  msgid "Categories label"
446
  msgstr ""
447
 
448
+ #: toc.php:961
449
  msgid "Eg: Categories, Category List"
450
  msgstr ""
451
 
452
+ #: toc.php:967
453
  msgid "Advanced usage"
454
  msgstr ""
455
 
456
+ #: toc.php:969
457
  msgid ""
458
  "lets you print out a listing of only pages. Similarly %s can be used to "
459
  "print out a category listing. They both can accept a number of attributes so "
460
  "visit the help tab for more information."
461
  msgstr ""
462
 
463
+ #: toc.php:970
464
  msgid "Examples"
465
  msgstr ""
466
 
467
+ #: toc.php:972
468
  msgid "hides the heading from a category listing"
469
  msgstr ""
470
 
471
+ #: toc.php:973
472
  msgid ""
473
  "Uses h6 to display %s on a page listing excluding pages with IDs 1 and 15"
474
  msgstr ""
475
 
476
+ #: toc.php:981
477
  msgid "Where's my table of contents?"
478
  msgstr ""
479
 
480
+ #: toc.php:982
481
  msgid ""
482
  "If you're reading this, then chances are you have successfully installed and "
483
  "enabled the plugin and you're just wondering why the index isn't appearing "
484
  "right? Try the following:"
485
  msgstr ""
486
 
487
+ #: toc.php:984
488
  msgid ""
489
  "In most cases, the post, page or custom post type has less than the minimum "
490
  "number of headings. By default, this is set to four so make sure you have at "
492
  "you can find it under 'Main Options' &gt; 'Show when'."
493
  msgstr ""
494
 
495
+ #: toc.php:985
496
  msgid ""
497
  "Is auto insertion enabled for your content type? By default, only pages are "
498
  "enabled."
499
  msgstr ""
500
 
501
+ #: toc.php:986
502
  msgid ""
503
  "Have you got <code>[no_toc]</code> somewhere within the content? This will "
504
  "disable the index for the current post, page or custom post type."
505
  msgstr ""
506
 
507
+ #: toc.php:987
508
  msgid ""
509
  "If you are using the TOC+ widget, check if you have the <em>\"Show the table "
510
  "of contents only in the sidebar\"</em> enabled as this will limit its "
512
  "Widgets."
513
  msgstr ""
514
 
515
+ #: toc.php:988
516
  msgid ""
517
  "You may have restricted generation to a URL path match. The setting can be "
518
  "found in the advanced section under Main Options."
519
  msgstr ""
520
 
521
+ #: toc.php:991
522
  msgid "How do I stop the table of contents from appearing on a single page?"
523
  msgstr ""
524
 
525
+ #: toc.php:992
526
  msgid ""
527
  "Place the following <code>[no_toc]</code> anywhere on the page to suppress "
528
  "the table of contents. This is known as a shortcode and works for posts, "
529
  "pages and custom post types that make use of the_content()"
530
  msgstr ""
531
 
532
+ #: toc.php:994
533
  msgid ""
534
  "I've set wrapping to left or right but the headings don't wrap around the "
535
  "table of contents"
536
  msgstr ""
537
 
538
+ #: toc.php:995
539
  msgid ""
540
  "This normally occurs when there is a CSS clear directive in or around the "
541
  "heading originating from the theme (Twenty Eleven and Twenty Twelve are two "
543
  "previous wrapping specifications."
544
  msgstr ""
545
 
546
+ #: toc.php:996
547
  msgid ""
548
  "You can adjust your theme's CSS or try moving the table of contents position "
549
  "to the top of the page. If you didn't build your theme, I'd highly suggest "
551
  msgstr ""
552
 
553
  #. translators: CSS code follows after this line
554
+ #: toc.php:999
555
  msgid ""
556
  "Try adding the following CSS to allow the wrapping to occur around the table "
557
  "of contents:"
558
  msgstr ""
559
 
560
+ #: toc.php:1004
561
  msgid "How do I include the name of the page in the table of contents title?"
562
  msgstr ""
563
 
564
+ #: toc.php:1005
565
  msgid ""
566
  "As the title of the page changes depending on the page you're viewing, you "
567
  "can use the following special variable to automatically insert the title of "
568
  "the page into the table of contents heading:"
569
  msgstr ""
570
 
571
+ #: toc.php:1007
572
  msgid "You can use it as is or place text either side of the variable."
573
  msgstr ""
574
 
575
+ #: toc.php:1008
576
  msgid ""
577
  "As an example: if your page is named <em>Great Expectations</em> and your "
578
  "table of contents title is set to <em>Contents for %PAGE_NAME%</em>, the "
579
  "final title would read <em>Contents for Great Expectations</em>"
580
  msgstr ""
581
 
582
+ #: toc.php:1010
583
  msgid "The sitemap uses a strange font dissimilar to the rest of the site"
584
  msgstr ""
585
 
586
+ #: toc.php:1011
587
  msgid ""
588
  "No extra styles are created for the sitemap, instead it inherits any styles "
589
  "you used when adding the shortcode. If you copy and pasted, you probably "
591
  "case."
592
  msgstr ""
593
 
594
+ #: toc.php:1012
595
  msgid ""
596
  "In most cases, try to have the shortcode on its own line with nothing before "
597
  "or after the square brackets."
598
  msgstr ""
599
 
600
+ #: toc.php:1014
601
  msgid "What were those shortcodes and attributes again?"
602
  msgstr ""
603
 
604
+ #: toc.php:1015
605
  msgid ""
606
  "When attributes are left out for the shortcodes below, they will fallback to "
607
  "the settings you defined under Settings &gt; TOC+."
608
  msgstr ""
609
 
610
+ #: toc.php:1019
611
  msgid "Shortcode"
612
  msgstr ""
613
 
614
+ #: toc.php:1020
615
  msgid "Description"
616
  msgstr ""
617
 
618
+ #: toc.php:1021
619
  msgid "Attributes"
620
  msgstr ""
621
 
622
+ #: toc.php:1027
623
  msgid ""
624
  "Lets you generate the table of contents at the preferred position. Also "
625
  "useful for sites that only require a TOC on a small handful of pages."
626
  msgstr ""
627
 
628
+ #: toc.php:1030
629
  msgid "text, title of the table of contents"
630
  msgstr ""
631
 
632
+ #: toc.php:1031
633
  msgid "true/false, shows or hides the title"
634
  msgstr ""
635
 
636
+ #: toc.php:1032
637
  msgid "text, either \"left\" or \"right\""
638
  msgstr ""
639
 
640
+ #: toc.php:1033
641
  msgid ""
642
  "numbers, this lets you select the heading levels you want included in the "
643
  "table of contents. Separate multiple levels with a comma. Example: include "
644
  "headings 3, 4 and 5 but exclude the others with"
645
  msgstr ""
646
 
647
+ #: toc.php:1034
648
+ msgid ""
649
+ "text, enter headings to be excluded. Separate multiple headings with a pipe "
650
+ "<code>|</code>. Use an asterisk <code>*</code> as a wildcard to match other "
651
+ "text. You could also use regular expressions for more advanced matching."
652
+ msgstr ""
653
+
654
+ #: toc.php:1040
655
  msgid ""
656
  "Allows you to disable the table of contents for the current post, page, or "
657
  "custom post type."
658
  msgstr ""
659
 
660
+ #: toc.php:1045
661
  msgid ""
662
  "Produces a listing of all pages and categories for your site. You can use "
663
  "this on any post, page or even in a text widget."
664
  msgstr ""
665
 
666
+ #: toc.php:1050
667
  msgid "Lets you print out a listing of only pages."
668
  msgstr ""
669
 
670
+ #: toc.php:1053
671
  msgid "number between 1 and 6, defines which html heading to use"
672
  msgstr ""
673
 
674
+ #: toc.php:1054
675
  msgid "text, title of the list"
676
  msgstr ""
677
 
678
+ #: toc.php:1055
679
  msgid "true/false, shows or hides the list heading"
680
  msgstr ""
681
 
682
+ #: toc.php:1056
683
  msgid "IDs of the pages or categories you wish to exclude"
684
  msgstr ""
685
 
686
+ #: toc.php:1057
687
  msgid ""
688
  "ID of the page or category you wish to exclude including its all descendants"
689
  msgstr ""
690
 
691
+ #: toc.php:1063
692
  msgid "Similar to [sitemap_pages] but for categories."
693
  msgstr ""
694
 
695
+ #: toc.php:1068
696
+ msgid ""
697
+ "This lets you print out an index of all published posts on your site. By "
698
+ "default, posts are listed in alphabetical order grouped by their first "
699
+ "letters. There are CSS classes for each section, letter and list allowing "
700
+ "you to customise the appearance."
701
+ msgstr ""
702
+
703
+ #: toc.php:1071
704
+ msgid "text, either ASC or DESC"
705
+ msgstr ""
706
+
707
+ #: toc.php:1072
708
+ msgid ""
709
+ "text, popular options include \"title\", \"date\", \"ID\", and \"rand\". See "
710
+ "%1$sWP_Query%2$s for a list."
711
+ msgstr ""
712
+
713
+ #: toc.php:1080
714
  msgid "I have another question..."
715
  msgstr ""
716
 
717
+ #: toc.php:1081
718
  msgid ""
719
  "Visit the %1$splugin homepage%2$s to ask your question - who knows, maybe "
720
  "your question has already been answered. I'd really like to hear your "
721
  "suggestions if you have any."
722
  msgstr ""
723
 
724
+ #: toc.php:1083
725
+ msgid "For developers"
726
+ msgstr ""
727
+
728
+ #: toc.php:1085
729
+ msgid "How do I customise my anchors?"
730
+ msgstr ""
731
+
732
+ #: toc.php:1086
733
+ msgid ""
734
+ "If you're still not happy with the anchors, you can modify them to suit your "
735
+ "needs through a custom function hooked into the <code>toc_url_anchor_target</"
736
+ "code> filter. As an example, place the below code snippet into your "
737
+ "functions.php file to convert all anchors to uppercase."
738
+ msgstr ""
739
+
740
+ #: toc.php:1096
741
+ msgid ""
742
+ "Returns a HTML formatted string of the table of contents without the "
743
+ "surrounding UL or OL tags to allow the theme editor to supply their own ID "
744
+ "and/or classes to the outer list."
745
+ msgstr ""
746
+
747
+ #: toc.php:1097
748
+ msgid "Both parameters are optional:"
749
+ msgstr ""
750
+
751
+ #. translators: this explains the $content parameter
752
+ #: toc.php:1101
753
+ msgid ""
754
+ "is the entire content with headings. If blank, will default to the current "
755
+ "content found in $post (eg within \"the loop\")."
756
+ msgstr ""
757
+
758
+ #. translators: this explains the $prefix_url parameter
759
+ #: toc.php:1104
760
+ msgid ""
761
+ "is the URL to prefix the anchor with. If a string was provided, it will be "
762
+ "used as is. If set to \"true\" then will try to obtain the permalink from "
763
+ "the $post object."
764
+ msgstr ""
765
+
766
+ #: toc.php:1106
767
+ msgid "These examples assume you are within \"the loop\":"
768
+ msgstr ""
769
+
770
+ #: toc.php:1108
771
+ msgid "Obtain the index for the current page"
772
+ msgstr ""
773
+
774
+ #: toc.php:1111
775
+ msgid "Create a listing of all children and their headings"
776
+ msgstr ""
777
+
778
+ #: toc.php:1136
779
  msgid "Update Options"
780
  msgstr ""
781
 
782
+ #: toc.php:1616
783
  msgid "Display the table of contents in the sidebar with this widget"
784
  msgstr ""
785
 
786
+ #: toc.php:1708
787
  msgid "Show the table of contents only in the sidebar"
788
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: table of contents, indexes, toc, sitemap, cms, options, list, page listing, category listing
5
  Requires at least: 3.0
6
  Tested up to: 3.5
7
- Stable tag: 1211
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -28,6 +28,7 @@ Custom post types are supported, however, auto insertion works only when the_con
28
  = Available Languages =
29
  * Australian English (default)
30
  * Simplified Chinese - [icedream](http://www.tesfans.org/)
 
31
 
32
  Translations are more than welcome. If you have any advice in making it easier to translate, please let me know.
33
 
@@ -36,9 +37,12 @@ If you have questions or suggestions, please place them at [http://dublue.com/pl
36
 
37
  == Screenshots ==
38
 
39
- 1. An example of the table of contents, positioned at the top and right aligned
40
- 2. The main options tab in the administration area
41
- 3. The sitemap options tab
 
 
 
42
 
43
 
44
  == Installation ==
@@ -70,7 +74,7 @@ Lets you generate the table of contents at the preferred position. Useful for s
70
  Allows you to disable the table of contents for the current post, page, or custom post type.
71
 
72
  = [sitemap] =
73
- Produces a listing of all pages and categories for your site. You can use this on any post, page or even in a text widget.
74
 
75
  = [sitemap_pages] =
76
  Lets you print out a listing of only pages. The following attributes are accepted:
@@ -83,9 +87,37 @@ Lets you print out a listing of only pages. The following attributes are accepte
83
  = [sitemap_categories] =
84
  Same as `[sitemap_pages]` but for categories.
85
 
 
 
 
 
 
 
 
 
 
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  = 1211 =
90
  * Released: 17 November 2012
91
  * New: allow %PAGE_TITLE% to be used in the TOC title. Note that this also works in the widget title too. When used, this variable will be replaced with the current page's title. Thanks to [Peter](http://dublue.com/plugins/toc/comment-page-3/#comment-4782) for the request.
4
  Tags: table of contents, indexes, toc, sitemap, cms, options, list, page listing, category listing
5
  Requires at least: 3.0
6
  Tested up to: 3.5
7
+ Stable tag: 1303
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
28
  = Available Languages =
29
  * Australian English (default)
30
  * Simplified Chinese - [icedream](http://www.tesfans.org/)
31
+ * Slovak - [Branco Radenovich (webhostinggeeks.com/user-reviews/)](http://webhostinggeeks.com/user-reviews/)
32
 
33
  Translations are more than welcome. If you have any advice in making it easier to translate, please let me know.
34
 
37
 
38
  == Screenshots ==
39
 
40
+ 1. An example of the table of contents, positioned at the top, right aligned, and a width of 275px
41
+ 2. An example of the sitemap_pages shortcode
42
+ 3. An example of the sitemap_posts shortcode
43
+ 4. The options panel found in Settings > TOC+
44
+ 5. Some advanced options
45
+ 6. The sitemap tab
46
 
47
 
48
  == Installation ==
74
  Allows you to disable the table of contents for the current post, page, or custom post type.
75
 
76
  = [sitemap] =
77
+ Produces a listing of all pages and categories for your site. You can use this on any post, page or even in a text widget. Note that this will not include an index of posts so use sitemap_posts if you need this listing.
78
 
79
  = [sitemap_pages] =
80
  Lets you print out a listing of only pages. The following attributes are accepted:
87
  = [sitemap_categories] =
88
  Same as `[sitemap_pages]` but for categories.
89
 
90
+ = [sitemap_posts] =
91
+ This lets you print out an index of all published posts on your site. By default, posts are listed in alphabetical order grouped by their first letters. The following attributes are accepted:
92
+ * "order": text, either ASC or DESC
93
+ * "orderby": text, popular options include "title", "date", "ID", and "rand". See [WP_Query](https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters) for a list.
94
+ Use the following CSS classes to customise the appearance of your listing:
95
+ * toc_sitemap_posts_section
96
+ * toc_sitemap_posts_letter
97
+ * toc_sitemap_posts_list
98
+
99
 
100
  == Changelog ==
101
 
102
+ = 1303 =
103
+ * Released: 21 March 2013
104
+ * New: option auto insert after the first heading. Thanks to [@thelawnetwork](http://dublue.com/plugins/toc/comment-page-4/#comment-1782) for requesting it.
105
+ * New: allow headings to be excluded from the table of contents. This is available both globally under the advanced section of Settings > TOC+ and individually with the TOC shortcode. Check out the help material for examples. Thanks to the many of you that requested it.
106
+ * New: advanced option to lowercase all anchors. The default is off.
107
+ * New: advanced option to use hyphens rather than underscores in anchors. The default is off.
108
+ * New: shortcode to list all posts in alphabetical order grouped by first letter.
109
+ * New: added Slovak translation, curtesy Branco Radenovich.
110
+ * Add version numbers to CSS/JS files to better support setups that cache these files heavily for timely invalidation. Thanks to [boxcarpress](http://wordpress.org/support/topic/some-changes-we-made-that-you-might-consider) for the amendments.
111
+ * Add CSS class 'contracted' to #toc_container when the table of contents is hidden. Thanks to [Sam](http://wordpress.org/support/topic/hide-link-not-working?replies=6#post-3968019) for suggesting it.
112
+ * With smooth scroll enabled, do not use an offset if no admin bar is present and the offset value is default. This means that public users do not have the offset space at the top.
113
+ * New help material for developers under the help tab.
114
+ * Added API function: toc_get_index() lets you retrieve a table of contents to be placed within PHP. Check out the new developer help material for examples.
115
+ * Allow anchors to be filterable using toc_url_anchor_target to customise further through code. Check the new developer help material for an example. Thanks to [Russell Heimlich](http://dublue.com/plugins/toc/comment-page-4/#comment-1713) for the tip.
116
+ * Adjust CSS and JS registration.
117
+ * Updated jQuery Smooth Scroll to 1.4.10.
118
+ * Fixed: When using the widget, addressed an issue where the index with special characters (such as ' and ") would not link to the correct spot within the content. Thanks to [esandman](http://wordpress.org/support/topic/problems-with-apostrophes-and-quotation-marks) for raising it.
119
+ * Fixed: Saving at Settings > TOC+ resets TOC+ widget options. Thanks to [Chris](http://dublue.com/plugins/toc/comment-page-4/#comment-1808) for reporting it.
120
+
121
  = 1211 =
122
  * Released: 17 November 2012
123
  * New: allow %PAGE_TITLE% to be used in the TOC title. Note that this also works in the widget title too. When used, this variable will be replaced with the current page's title. Thanks to [Peter](http://dublue.com/plugins/toc/comment-page-3/#comment-4782) for the request.
screen.css CHANGED
@@ -1 +1 @@
1
- #toc_container ul,#toc_container li{margin:0;padding:0}#toc_container.no_bullets ul,#toc_container.no_bullets li,.toc_widget_list,.toc_widget_list li{background:none;list-style-type:none}#toc_container.have_bullets li{padding-left:12px}#toc_container ul ul{margin-left:1.5em}#toc_container{background:#f9f9f9;border:1px solid #aaa;padding:10px;margin-bottom:1em;width:auto;display:table;font-size:95%}#toc_container.toc_light_blue{background:#edf6ff}#toc_container.toc_white{background:#fff}#toc_container.toc_black{background:#000}#toc_container.toc_transparent{background:none transparent}#toc_container p.toc_title{text-align:center;font-weight:bold;margin:0;padding:0}#toc_container.toc_black p.toc_title{color:#aaa}#toc_container span.toc_toggle{font-weight:normal;font-size:90%}#toc_container p.toc_title + ul.toc_list{margin-top:1em}.toc_wrap_left{float:left;margin-right:10px}.toc_wrap_right{float:right;margin-left:10px}#toc_container a{text-decoration:none}#toc_container a:hover{text-decoration:underline}
1
+ #toc_container ul,#toc_container li{margin:0;padding:0}#toc_container.no_bullets ul,#toc_container.no_bullets li,#toc_container.no_bullets ul li,.toc_widget_list,.toc_widget_list li{background:none;list-style-type:none;list-style:none}#toc_container.have_bullets li{padding-left:12px}#toc_container ul ul{margin-left:1.5em}#toc_container{background:#f9f9f9;border:1px solid #aaa;padding:10px;margin-bottom:1em;width:auto;display:table;font-size:95%}#toc_container.toc_light_blue{background:#edf6ff}#toc_container.toc_white{background:#fff}#toc_container.toc_black{background:#000}#toc_container.toc_transparent{background:none transparent}#toc_container p.toc_title{text-align:center;font-weight:bold;margin:0;padding:0}#toc_container.toc_black p.toc_title{color:#aaa}#toc_container span.toc_toggle{font-weight:normal;font-size:90%}#toc_container p.toc_title + ul.toc_list{margin-top:1em}.toc_wrap_left{float:left;margin-right:10px}.toc_wrap_right{float:right;margin-left:10px}#toc_container a{text-decoration:none}#toc_container a:hover{text-decoration:underline}.toc_sitemap_posts_letter{font-size:1.5em;font-style:italic}
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file
screenshot-6.png ADDED
Binary file
toc.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://dublue.com/plugins/toc/
5
  Description: A powerful yet user friendly plugin that automatically creates a table of contents. Can also output a sitemap listing all pages and categories.
6
  Author: Michael Tran
7
  Author URI: http://dublue.com/
8
- Version: 1211
9
  License: GPL2
10
  */
11
 
@@ -39,10 +39,11 @@ FOR CONSIDERATION:
39
  - highlight target css
40
  */
41
 
42
-
43
  define( 'TOC_POSITION_BEFORE_FIRST_HEADING', 1 );
44
  define( 'TOC_POSITION_TOP', 2 );
45
  define( 'TOC_POSITION_BOTTOM', 3 );
 
46
  define( 'TOC_MIN_START', 2 );
47
  define( 'TOC_MAX_START', 10 );
48
  define( 'TOC_SMOOTH_SCROLL_OFFSET', 30 );
@@ -74,7 +75,7 @@ if ( !class_exists( 'toc' ) ) :
74
 
75
  function __construct()
76
  {
77
- $this->path = dirname( WP_PLUGIN_URL . '/' . plugin_basename( __FILE__ ) );
78
  $this->show_toc = true;
79
  $this->exclude_post_types = array( 'attachment', 'revision', 'nav_menu_item', 'safecss' );
80
  $this->collision_collector = array();
@@ -108,9 +109,12 @@ if ( !class_exists( 'toc' ) ) :
108
  'custom_links_colour' => TOC_DEFAULT_LINKS_COLOUR,
109
  'custom_links_hover_colour' => TOC_DEFAULT_LINKS_HOVER_COLOUR,
110
  'custom_links_visited_colour' => TOC_DEFAULT_LINKS_VISITED_COLOUR,
 
 
111
  'bullet_spacing' => false,
112
  'include_homepage' => false,
113
  'exclude_css' => false,
 
114
  'heading_levels' => array('1', '2', '3', '4', '5', '6'),
115
  'restrict_path' => '',
116
  'sitemap_show_page_listing' => true,
@@ -122,10 +126,9 @@ if ( !class_exists( 'toc' ) ) :
122
  );
123
  $options = get_option( 'toc-options', $defaults );
124
  $this->options = wp_parse_args( $options, $defaults );
125
-
126
- add_action( 'init', array(&$this, 'init') );
127
- add_action( 'wp_print_styles', array(&$this, 'public_styles') );
128
- add_action( 'template_redirect', array(&$this, 'template_redirect') );
129
  add_action( 'wp_head', array(&$this, 'wp_head') );
130
  add_action( 'admin_init', array(&$this, 'admin_init') );
131
  add_action( 'admin_menu', array(&$this, 'admin_menu') );
@@ -140,6 +143,7 @@ if ( !class_exists( 'toc' ) ) :
140
  add_shortcode( 'sitemap', array(&$this, 'shortcode_sitemap') );
141
  add_shortcode( 'sitemap_pages', array(&$this, 'shortcode_sitemap_pages') );
142
  add_shortcode( 'sitemap_categories', array(&$this, 'shortcode_sitemap_categories') );
 
143
  }
144
 
145
 
@@ -181,7 +185,8 @@ if ( !class_exists( 'toc' ) ) :
181
  'label' => $this->options['heading_text'],
182
  'no_label' => false,
183
  'wrapping' => $this->options['wrapping'],
184
- 'heading_levels' => $this->options['heading_levels']
 
185
  ), $atts )
186
  );
187
 
@@ -201,7 +206,9 @@ if ( !class_exists( 'toc' ) ) :
201
  // do nothing
202
  }
203
  }
204
-
 
 
205
  // if $heading_levels is an array, then it came from the global options
206
  // and wasn't provided by per instance
207
  if ( $heading_levels && !is_array($heading_levels) ) {
@@ -272,7 +279,7 @@ if ( !class_exists( 'toc' ) ) :
272
  'label' => htmlentities( $this->options['sitemap_pages'], ENT_COMPAT, 'UTF-8' ),
273
  'no_label' => false,
274
  'exclude' => '',
275
- 'exclude_tree' => '',
276
  ), $atts )
277
  );
278
 
@@ -299,7 +306,7 @@ if ( !class_exists( 'toc' ) ) :
299
  'label' => htmlentities( $this->options['sitemap_categories'], ENT_COMPAT, 'UTF-8' ),
300
  'no_label' => false,
301
  'exclude' => '',
302
- 'exclude_tree' => '',
303
  ), $atts )
304
  );
305
 
@@ -319,11 +326,87 @@ if ( !class_exists( 'toc' ) ) :
319
  }
320
 
321
 
322
- function init()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
  {
324
  load_plugin_textdomain( 'toc+', false, dirname(plugin_basename(__FILE__)) . '/languages/' );
325
- wp_register_style( 'toc-screen', $this->path . '/screen.css' );
326
- wp_register_script( 'toc-front', $this->path . '/front.js', array('jquery') );
327
  }
328
 
329
 
@@ -430,44 +513,50 @@ if ( !class_exists( 'toc' ) ) :
430
  }
431
  }
432
 
433
- $this->options = array(
434
- 'fragment_prefix' => trim($_POST['fragment_prefix']),
435
- 'position' => intval($_POST['position']),
436
- 'start' => intval($_POST['start']),
437
- 'show_heading_text' => (isset($_POST['show_heading_text']) && $_POST['show_heading_text']) ? true : false,
438
- 'heading_text' => stripslashes( trim($_POST['heading_text']) ),
439
- 'auto_insert_post_types' => @(array)$_POST['auto_insert_post_types'],
440
- 'show_heirarchy' => (isset($_POST['show_heirarchy']) && $_POST['show_heirarchy']) ? true : false,
441
- 'ordered_list' => (isset($_POST['ordered_list']) && $_POST['ordered_list']) ? true : false,
442
- 'smooth_scroll' => (isset($_POST['smooth_scroll']) && $_POST['smooth_scroll']) ? true : false,
443
- 'smooth_scroll_offset' => intval($_POST['smooth_scroll_offset']),
444
- 'visibility' => (isset($_POST['visibility']) && $_POST['visibility']) ? true : false,
445
- 'visibility_show' => stripslashes( trim($_POST['visibility_show']) ),
446
- 'visibility_hide' => stripslashes( trim($_POST['visibility_hide']) ),
447
- 'visibility_hide_by_default' => (isset($_POST['visibility_hide_by_default']) && $_POST['visibility_hide_by_default']) ? true : false,
448
- 'width' => trim($_POST['width']),
449
- 'width_custom' => floatval($_POST['width_custom']),
450
- 'width_custom_units' => trim($_POST['width_custom_units']),
451
- 'wrapping' => intval($_POST['wrapping']),
452
- 'font_size' => floatval($_POST['font_size']),
453
- 'font_size_units' => trim($_POST['font_size_units']),
454
- 'theme' => intval($_POST['theme']),
455
- 'custom_background_colour' => $custom_background_colour,
456
- 'custom_border_colour' => $custom_border_colour,
457
- 'custom_title_colour' => $custom_title_colour,
458
- 'custom_links_colour' => $custom_links_colour,
459
- 'custom_links_hover_colour' => $custom_links_hover_colour,
460
- 'custom_links_visited_colour' => $custom_links_visited_colour,
461
- 'bullet_spacing' => (isset($_POST['bullet_spacing']) && $_POST['bullet_spacing']) ? true : false,
462
- 'include_homepage' => (isset($_POST['include_homepage']) && $_POST['include_homepage']) ? true : false,
463
- 'exclude_css' => (isset($_POST['exclude_css']) && $_POST['exclude_css']) ? true : false,
464
- 'heading_levels' => @(array)$_POST['heading_levels'],
465
- 'restrict_path' => $restrict_path,
466
- 'sitemap_show_page_listing' => (isset($_POST['sitemap_show_page_listing']) && $_POST['sitemap_show_page_listing']) ? true : false,
467
- 'sitemap_show_category_listing' => (isset($_POST['sitemap_show_category_listing']) && $_POST['sitemap_show_category_listing']) ? true : false,
468
- 'sitemap_heading_type' => intval($_POST['sitemap_heading_type']),
469
- 'sitemap_pages' => stripslashes( trim($_POST['sitemap_pages']) ),
470
- 'sitemap_categories' => stripslashes( trim($_POST['sitemap_categories']) )
 
 
 
 
 
 
471
  );
472
 
473
  // update_option will return false if no changes were made
@@ -511,6 +600,7 @@ if ( !class_exists( 'toc' ) ) :
511
  <td>
512
  <select name="position" id="position">
513
  <option value="<?php echo TOC_POSITION_BEFORE_FIRST_HEADING; ?>"<?php if ( TOC_POSITION_BEFORE_FIRST_HEADING == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Before first heading (default)', 'toc+'); ?></option>
 
514
  <option value="<?php echo TOC_POSITION_TOP; ?>"<?php if ( TOC_POSITION_TOP == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Top', 'toc+'); ?></option>
515
  <option value="<?php echo TOC_POSITION_BOTTOM; ?>"<?php if ( TOC_POSITION_BOTTOM == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Bottom', 'toc+'); ?></option>
516
  </select>
@@ -742,13 +832,21 @@ if ( !class_exists( 'toc' ) ) :
742
  <h4><?php _e('Power options', 'toc+'); ?></h4>
743
  <table class="form-table">
744
  <tbody>
 
 
 
 
 
 
 
 
745
  <tr>
746
  <th><label for="include_homepage"><?php _e('Include homepage', 'toc+'); ?></label></th>
747
  <td><input type="checkbox" value="1" id="include_homepage" name="include_homepage"<?php if ( $this->options['include_homepage'] ) echo ' checked="checked"'; ?> /><label for="include_homepage"> <?php _e('Show the table of contents for qualifying items on the homepage', 'toc+'); ?></label></td>
748
  </tr>
749
  <tr>
750
  <th><label for="exclude_css"><?php _e('Exclude CSS file', 'toc+'); ?></label></th>
751
- <td><input type="checkbox" value="1" id="exclude_css" name="exclude_css"<?php if ( $this->options['exclude_css'] ) echo ' checked="checked"'; ?> /><label for="exclude_css"> <?php _e("Prevent the loading of this plugin's CSS styles. When selected, the presentation options from above will also be ignored.", 'toc+'); ?></label></td>
752
  </tr>
753
  <tr>
754
  <th><label for="bullet_spacing"><?php _e('Preserve theme bullets', 'toc+'); ?></label></th>
@@ -768,6 +866,18 @@ if ( !class_exists( 'toc' ) ) :
768
  ?>
769
  </td>
770
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
771
  <tr id="smooth_scroll_offset_tr" class="<?php if ( !$this->options['smooth_scroll'] ) echo 'disabled'; ?>">
772
  <th><label for="smooth_scroll_offset"><?php _e('Smooth scroll top offset', 'toc+'); ?></label></th>
773
  <td>
@@ -921,6 +1031,7 @@ h1, h2, h3, h4, h5, h6 { clear: none; }
921
  <li><strong>no_label</strong>: <?php _e('true/false, shows or hides the title', 'toc+'); ?></li>
922
  <li><strong>wrapping</strong>: <?php _e('text, either "left" or "right"', 'toc+'); ?></li>
923
  <li><strong>heading_levels</strong>: <?php _e('numbers, this lets you select the heading levels you want included in the table of contents. Separate multiple levels with a comma. Example: include headings 3, 4 and 5 but exclude the others with', 'toc+'); ?> <code>heading_levels="3,4,5"</code></li>
 
924
  </ul>
925
  </td>
926
  </tr>
@@ -952,12 +1063,72 @@ h1, h2, h3, h4, h5, h6 { clear: none; }
952
  <td><?php _e('Similar to [sitemap_pages] but for categories.', 'toc+'); ?></td>
953
  <td>&nbsp;</td>
954
  </tr>
 
 
 
 
 
 
 
 
 
 
 
955
  </tbody>
956
  </table>
957
 
958
  <h3><?php _e('I have another question...', 'toc+'); ?></h3>
959
  <p><?php printf(__('Visit the %1$splugin homepage%2$s to ask your question - who knows, maybe your question has already been answered. I\'d really like to hear your suggestions if you have any.', 'toc+'), '<a href="http://dublue.com/plugins/toc/">', '</a>'); ?></p>
960
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
961
  </div>
962
  </div>
963
 
@@ -968,113 +1139,46 @@ h1, h2, h3, h4, h5, h6 { clear: none; }
968
  <?php
969
  }
970
 
971
-
972
- function public_styles()
973
- {
974
- if ( !$this->options['exclude_css'] )
975
- wp_enqueue_style("toc-screen");
976
- }
977
-
978
 
979
  function wp_head()
980
  {
981
- if (
982
- $this->options['theme'] == TOC_THEME_CUSTOM ||
983
- $this->options['width'] != 'Auto' ||
984
- ( '95%' != $this->options['font_size'] . $this->options['font_size_units'] )
985
- ) :
986
- ?>
987
- <style type="text/css">
988
- div#toc_container {
989
- <?php if ( $this->options['theme'] == TOC_THEME_CUSTOM && !$this->options['exclude_css'] ) : ?>
990
- background: <?php echo $this->options['custom_background_colour']; ?>;
991
- border: 1px solid <?php echo $this->options['custom_border_colour']; ?>;
992
- <?php
993
- endif;
994
-
995
- if ( $this->options['width'] != 'Auto' ) {
996
- echo ' width: ';
997
- if ( $this->options['width'] != 'User defined' )
998
- echo $this->options['width'];
999
- else
1000
- echo $this->options['width_custom'] . $this->options['width_custom_units'];
1001
- echo ";\n";
1002
- }
1003
-
1004
- if ( '95%' != $this->options['font_size'] . $this->options['font_size_units'] ) {
1005
- echo ' font-size: ' . $this->options['font_size'] . $this->options['font_size_units'] . ";\n";
1006
- }
1007
- ?>
1008
- }
1009
- <?php
1010
- if ( !$this->options['exclude_css'] ) {
1011
- if ( $this->options['custom_title_colour'] != TOC_DEFAULT_TITLE_COLOUR ) :
1012
- ?>
1013
- div#toc_container p.toc_title {
1014
- color: <?php echo $this->options['custom_title_colour']; ?>;
1015
- }
1016
- <?php
1017
- endif;
1018
 
1019
- if ( $this->options['custom_links_colour'] != TOC_DEFAULT_LINKS_COLOUR ) : ?>
1020
- div#toc_container p.toc_title a,
1021
- div#toc_container ul.toc_list a {
1022
- color: <?php echo $this->options['custom_links_colour']; ?>;
1023
- }
1024
- <?php
1025
- endif;
1026
 
1027
- if ( $this->options['custom_links_hover_colour'] != TOC_DEFAULT_LINKS_HOVER_COLOUR ) : ?>
1028
- div#toc_container p.toc_title a:hover,
1029
- div#toc_container ul.toc_list a:hover {
1030
- color: <?php echo $this->options['custom_links_hover_colour']; ?>;
1031
- }
1032
- <?php
1033
- endif;
1034
-
1035
- if ( $this->options['custom_links_visited_colour'] != TOC_DEFAULT_LINKS_VISITED_COLOUR ) : ?>
1036
- div#toc_container p.toc_title a:visited,
1037
- div#toc_container ul.toc_list a:visited {
1038
- color: <?php echo $this->options['custom_links_visited_colour']; ?>;
1039
- }
1040
- <?php
1041
- endif;
1042
- }
1043
- ?>
1044
- </style>
1045
- <?php
1046
- endif;
1047
-
1048
- }
1049
-
1050
-
1051
- /**
1052
- * Load front end javascript only on front end pages. Putting it into 'init' will
1053
- * load it on both frontend and backend pages.
1054
- */
1055
- function template_redirect()
1056
- {
1057
- $js_vars = array();
1058
-
1059
- if ( $this->options['smooth_scroll'] ) $js_vars['smooth_scroll'] = true;
1060
- wp_enqueue_script( 'toc-front' );
1061
- if ( $this->options['show_heading_text'] && $this->options['visibility'] ) {
1062
- $width = ( $this->options['width'] != 'User defined' ) ? $this->options['width'] : $this->options['width_custom'] . $this->options['width_custom_units'];
1063
- $js_vars['visibility_show'] = esc_js($this->options['visibility_show']);
1064
- $js_vars['visibility_hide'] = esc_js($this->options['visibility_hide']);
1065
- if ( $this->options['visibility_hide_by_default'] ) $js_vars['visibility_hide_by_default'] = true;
1066
- $js_vars['width'] = esc_js($width);
1067
  }
1068
- if ( $this->options['smooth_scroll_offset'] != TOC_SMOOTH_SCROLL_OFFSET )
1069
- $js_vars['smooth_scroll_offset'] = esc_js($this->options['smooth_scroll_offset']);
1070
 
1071
- if ( count($js_vars) > 0 ) {
1072
- wp_localize_script(
1073
- 'toc-front',
1074
- 'tocplus',
1075
- $js_vars
1076
- );
1077
- }
1078
  }
1079
 
1080
 
@@ -1106,12 +1210,21 @@ div#toc_container ul.toc_list a:visited {
1106
 
1107
  // remove trailing - and _
1108
  $return = rtrim( $return, '-_' );
 
 
 
1109
 
1110
  // if blank, then prepend with the fragment prefix
1111
  // blank anchors normally appear on sites that don't use the latin charset
1112
  if ( !$return ) {
1113
  $return = ( $this->options['fragment_prefix'] ) ? $this->options['fragment_prefix'] : '_';
1114
  }
 
 
 
 
 
 
1115
  }
1116
 
1117
  if ( array_key_exists($return, $this->collision_collector) ) {
@@ -1121,7 +1234,7 @@ div#toc_container ul.toc_list a:visited {
1121
  else
1122
  $this->collision_collector[$return] = 1;
1123
 
1124
- return $return;
1125
  }
1126
 
1127
 
@@ -1273,7 +1386,35 @@ div#toc_container ul.toc_list a:visited {
1273
  }
1274
  $matches = $new_matches;
1275
  }
1276
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1277
  for ($i = 0; $i < count($matches); $i++) {
1278
  // get anchor and add to find and replace arrays
1279
  $anchor = $this->url_anchor_target( $matches[$i][0] );
@@ -1440,6 +1581,11 @@ div#toc_container ul.toc_list a:visited {
1440
  case TOC_POSITION_BOTTOM:
1441
  $content = $this->mb_find_replace($find, $replace, $content) . $html;
1442
  break;
 
 
 
 
 
1443
 
1444
  case TOC_POSITION_BEFORE_FIRST_HEADING:
1445
  default:
@@ -1495,7 +1641,7 @@ if ( !class_exists( 'toc_widget' ) ) :
1495
 
1496
  extract( $args );
1497
 
1498
- $items = $tic->extract_headings( $find, $replace, $post->post_content );
1499
  $title = apply_filters('widget_title', $instance['title'] );
1500
  if ( strpos($title, '%PAGE_TITLE%') !== false ) $title = str_replace( '%PAGE_TITLE%', get_the_title(), $title );
1501
  $hide_inline = $toc_options['show_toc_in_widget_only'];
@@ -1568,6 +1714,38 @@ if ( !class_exists( 'toc_widget' ) ) :
1568
  endif;
1569
 
1570
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1571
 
1572
  // do the magic
1573
  $tic = new toc();
5
  Description: A powerful yet user friendly plugin that automatically creates a table of contents. Can also output a sitemap listing all pages and categories.
6
  Author: Michael Tran
7
  Author URI: http://dublue.com/
8
+ Version: 1303
9
  License: GPL2
10
  */
11
 
39
  - highlight target css
40
  */
41
 
42
+ define( 'TOC_VERSION', '1303' );
43
  define( 'TOC_POSITION_BEFORE_FIRST_HEADING', 1 );
44
  define( 'TOC_POSITION_TOP', 2 );
45
  define( 'TOC_POSITION_BOTTOM', 3 );
46
+ define( 'TOC_POSITION_AFTER_FIRST_HEADING', 4 );
47
  define( 'TOC_MIN_START', 2 );
48
  define( 'TOC_MAX_START', 10 );
49
  define( 'TOC_SMOOTH_SCROLL_OFFSET', 30 );
75
 
76
  function __construct()
77
  {
78
+ $this->path = plugins_url( '', __FILE__ );
79
  $this->show_toc = true;
80
  $this->exclude_post_types = array( 'attachment', 'revision', 'nav_menu_item', 'safecss' );
81
  $this->collision_collector = array();
109
  'custom_links_colour' => TOC_DEFAULT_LINKS_COLOUR,
110
  'custom_links_hover_colour' => TOC_DEFAULT_LINKS_HOVER_COLOUR,
111
  'custom_links_visited_colour' => TOC_DEFAULT_LINKS_VISITED_COLOUR,
112
+ 'lowercase' => false,
113
+ 'hyphenate' => false,
114
  'bullet_spacing' => false,
115
  'include_homepage' => false,
116
  'exclude_css' => false,
117
+ 'exclude' => '',
118
  'heading_levels' => array('1', '2', '3', '4', '5', '6'),
119
  'restrict_path' => '',
120
  'sitemap_show_page_listing' => true,
126
  );
127
  $options = get_option( 'toc-options', $defaults );
128
  $this->options = wp_parse_args( $options, $defaults );
129
+
130
+ add_action( 'plugins_loaded', array(&$this, 'plugins_loaded') );
131
+ add_action( 'wp_enqueue_scripts', array(&$this, 'wp_enqueue_scripts') );
 
132
  add_action( 'wp_head', array(&$this, 'wp_head') );
133
  add_action( 'admin_init', array(&$this, 'admin_init') );
134
  add_action( 'admin_menu', array(&$this, 'admin_menu') );
143
  add_shortcode( 'sitemap', array(&$this, 'shortcode_sitemap') );
144
  add_shortcode( 'sitemap_pages', array(&$this, 'shortcode_sitemap_pages') );
145
  add_shortcode( 'sitemap_categories', array(&$this, 'shortcode_sitemap_categories') );
146
+ add_shortcode( 'sitemap_posts', array(&$this, 'shortcode_sitemap_posts') );
147
  }
148
 
149
 
185
  'label' => $this->options['heading_text'],
186
  'no_label' => false,
187
  'wrapping' => $this->options['wrapping'],
188
+ 'heading_levels' => $this->options['heading_levels'],
189
+ 'exclude' => $this->options['exclude']
190
  ), $atts )
191
  );
192
 
206
  // do nothing
207
  }
208
  }
209
+
210
+ if ( $exclude ) $this->options['exclude'] = $exclude;
211
+
212
  // if $heading_levels is an array, then it came from the global options
213
  // and wasn't provided by per instance
214
  if ( $heading_levels && !is_array($heading_levels) ) {
279
  'label' => htmlentities( $this->options['sitemap_pages'], ENT_COMPAT, 'UTF-8' ),
280
  'no_label' => false,
281
  'exclude' => '',
282
+ 'exclude_tree' => ''
283
  ), $atts )
284
  );
285
 
306
  'label' => htmlentities( $this->options['sitemap_categories'], ENT_COMPAT, 'UTF-8' ),
307
  'no_label' => false,
308
  'exclude' => '',
309
+ 'exclude_tree' => ''
310
  ), $atts )
311
  );
312
 
326
  }
327
 
328
 
329
+ function shortcode_sitemap_posts( $atts )
330
+ {
331
+ extract( shortcode_atts( array(
332
+ 'order' => 'ASC',
333
+ 'orderby' => 'title'
334
+ ), $atts )
335
+ );
336
+
337
+ $articles = new WP_Query(array(
338
+ 'post_type' => 'post',
339
+ 'post_status' => 'publish',
340
+ 'order' => $order,
341
+ 'orderby' => $orderby,
342
+ 'posts_per_page' => -1
343
+ ));
344
+
345
+ $html = $letter = '';
346
+
347
+ while ( $articles->have_posts() ) {
348
+ $articles->the_post();
349
+ $title = get_the_title();
350
+
351
+ if ( $letter != strtolower($title[0]) ) {
352
+ if ( $letter ) $html .= '</ul></div>';
353
+
354
+ $html .= '<div class="toc_sitemap_posts_section"><p class="toc_sitemap_posts_letter">' . strtolower($title[0]) . '</p><ul class="toc_sitemap_posts_list">';
355
+ $letter = strtolower($title[0]);
356
+ }
357
+
358
+ $html .= '<li><a href="' . get_permalink($articles->post->ID) . '">' . $title . '</a></li>';
359
+ }
360
+
361
+ if ( $html ) $html .= '</div>';
362
+
363
+ wp_reset_postdata();
364
+
365
+ return $html;
366
+ }
367
+
368
+
369
+ /**
370
+ * Register and load CSS and javascript files for frontend.
371
+ */
372
+ function wp_enqueue_scripts()
373
+ {
374
+ $js_vars = array();
375
+
376
+
377
+ // register our CSS and scripts
378
+ wp_register_style( 'toc-screen', $this->path . '/screen.css', array(), TOC_VERSION );
379
+ wp_register_script( 'toc-front', $this->path . '/front.js', array('jquery'), TOC_VERSION, true );
380
+
381
+
382
+ // enqueue them!
383
+ if ( !$this->options['exclude_css'] ) wp_enqueue_style("toc-screen");
384
+
385
+ if ( $this->options['smooth_scroll'] ) $js_vars['smooth_scroll'] = true;
386
+ wp_enqueue_script( 'toc-front' );
387
+ if ( $this->options['show_heading_text'] && $this->options['visibility'] ) {
388
+ $width = ( $this->options['width'] != 'User defined' ) ? $this->options['width'] : $this->options['width_custom'] . $this->options['width_custom_units'];
389
+ $js_vars['visibility_show'] = esc_js($this->options['visibility_show']);
390
+ $js_vars['visibility_hide'] = esc_js($this->options['visibility_hide']);
391
+ if ( $this->options['visibility_hide_by_default'] ) $js_vars['visibility_hide_by_default'] = true;
392
+ $js_vars['width'] = esc_js($width);
393
+ }
394
+ if ( $this->options['smooth_scroll_offset'] != TOC_SMOOTH_SCROLL_OFFSET )
395
+ $js_vars['smooth_scroll_offset'] = esc_js($this->options['smooth_scroll_offset']);
396
+
397
+ if ( count($js_vars) > 0 ) {
398
+ wp_localize_script(
399
+ 'toc-front',
400
+ 'tocplus',
401
+ $js_vars
402
+ );
403
+ }
404
+ }
405
+
406
+
407
+ function plugins_loaded()
408
  {
409
  load_plugin_textdomain( 'toc+', false, dirname(plugin_basename(__FILE__)) . '/languages/' );
 
 
410
  }
411
 
412
 
513
  }
514
  }
515
 
516
+ $this->options = array_merge(
517
+ $this->options,
518
+ array(
519
+ 'fragment_prefix' => trim($_POST['fragment_prefix']),
520
+ 'position' => intval($_POST['position']),
521
+ 'start' => intval($_POST['start']),
522
+ 'show_heading_text' => (isset($_POST['show_heading_text']) && $_POST['show_heading_text']) ? true : false,
523
+ 'heading_text' => stripslashes( trim($_POST['heading_text']) ),
524
+ 'auto_insert_post_types' => @(array)$_POST['auto_insert_post_types'],
525
+ 'show_heirarchy' => (isset($_POST['show_heirarchy']) && $_POST['show_heirarchy']) ? true : false,
526
+ 'ordered_list' => (isset($_POST['ordered_list']) && $_POST['ordered_list']) ? true : false,
527
+ 'smooth_scroll' => (isset($_POST['smooth_scroll']) && $_POST['smooth_scroll']) ? true : false,
528
+ 'smooth_scroll_offset' => intval($_POST['smooth_scroll_offset']),
529
+ 'visibility' => (isset($_POST['visibility']) && $_POST['visibility']) ? true : false,
530
+ 'visibility_show' => stripslashes( trim($_POST['visibility_show']) ),
531
+ 'visibility_hide' => stripslashes( trim($_POST['visibility_hide']) ),
532
+ 'visibility_hide_by_default' => (isset($_POST['visibility_hide_by_default']) && $_POST['visibility_hide_by_default']) ? true : false,
533
+ 'width' => trim($_POST['width']),
534
+ 'width_custom' => floatval($_POST['width_custom']),
535
+ 'width_custom_units' => trim($_POST['width_custom_units']),
536
+ 'wrapping' => intval($_POST['wrapping']),
537
+ 'font_size' => floatval($_POST['font_size']),
538
+ 'font_size_units' => trim($_POST['font_size_units']),
539
+ 'theme' => intval($_POST['theme']),
540
+ 'custom_background_colour' => $custom_background_colour,
541
+ 'custom_border_colour' => $custom_border_colour,
542
+ 'custom_title_colour' => $custom_title_colour,
543
+ 'custom_links_colour' => $custom_links_colour,
544
+ 'custom_links_hover_colour' => $custom_links_hover_colour,
545
+ 'custom_links_visited_colour' => $custom_links_visited_colour,
546
+ 'lowercase' => (isset($_POST['lowercase']) && $_POST['lowercase']) ? true : false,
547
+ 'hyphenate' => (isset($_POST['hyphenate']) && $_POST['hyphenate']) ? true : false,
548
+ 'bullet_spacing' => (isset($_POST['bullet_spacing']) && $_POST['bullet_spacing']) ? true : false,
549
+ 'include_homepage' => (isset($_POST['include_homepage']) && $_POST['include_homepage']) ? true : false,
550
+ 'exclude_css' => (isset($_POST['exclude_css']) && $_POST['exclude_css']) ? true : false,
551
+ 'heading_levels' => @(array)$_POST['heading_levels'],
552
+ 'exclude' => stripslashes( trim($_POST['exclude']) ),
553
+ 'restrict_path' => $restrict_path,
554
+ 'sitemap_show_page_listing' => (isset($_POST['sitemap_show_page_listing']) && $_POST['sitemap_show_page_listing']) ? true : false,
555
+ 'sitemap_show_category_listing' => (isset($_POST['sitemap_show_category_listing']) && $_POST['sitemap_show_category_listing']) ? true : false,
556
+ 'sitemap_heading_type' => intval($_POST['sitemap_heading_type']),
557
+ 'sitemap_pages' => stripslashes( trim($_POST['sitemap_pages']) ),
558
+ 'sitemap_categories' => stripslashes( trim($_POST['sitemap_categories']) )
559
+ )
560
  );
561
 
562
  // update_option will return false if no changes were made
600
  <td>
601
  <select name="position" id="position">
602
  <option value="<?php echo TOC_POSITION_BEFORE_FIRST_HEADING; ?>"<?php if ( TOC_POSITION_BEFORE_FIRST_HEADING == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Before first heading (default)', 'toc+'); ?></option>
603
+ <option value="<?php echo TOC_POSITION_AFTER_FIRST_HEADING; ?>"<?php if ( TOC_POSITION_AFTER_FIRST_HEADING == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('After first heading', 'toc+'); ?></option>
604
  <option value="<?php echo TOC_POSITION_TOP; ?>"<?php if ( TOC_POSITION_TOP == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Top', 'toc+'); ?></option>
605
  <option value="<?php echo TOC_POSITION_BOTTOM; ?>"<?php if ( TOC_POSITION_BOTTOM == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Bottom', 'toc+'); ?></option>
606
  </select>
832
  <h4><?php _e('Power options', 'toc+'); ?></h4>
833
  <table class="form-table">
834
  <tbody>
835
+ <tr>
836
+ <th><label for="lowercase"><?php _e('Lowercase', 'toc+'); ?></label></th>
837
+ <td><input type="checkbox" value="1" id="lowercase" name="lowercase"<?php if ( $this->options['lowercase'] ) echo ' checked="checked"'; ?> /><label for="lowercase"> <?php _e('Ensure anchors are in lowercase', 'toc+'); ?></label></td>
838
+ </tr>
839
+ <tr>
840
+ <th><label for="hyphenate"><?php _e('Hyphenate', 'toc+'); ?></label></th>
841
+ <td><input type="checkbox" value="1" id="hyphenate" name="hyphenate"<?php if ( $this->options['hyphenate'] ) echo ' checked="checked"'; ?> /><label for="hyphenate"> <?php _e('Use - rather than _ in anchors', 'toc+'); ?></label></td>
842
+ </tr>
843
  <tr>
844
  <th><label for="include_homepage"><?php _e('Include homepage', 'toc+'); ?></label></th>
845
  <td><input type="checkbox" value="1" id="include_homepage" name="include_homepage"<?php if ( $this->options['include_homepage'] ) echo ' checked="checked"'; ?> /><label for="include_homepage"> <?php _e('Show the table of contents for qualifying items on the homepage', 'toc+'); ?></label></td>
846
  </tr>
847
  <tr>
848
  <th><label for="exclude_css"><?php _e('Exclude CSS file', 'toc+'); ?></label></th>
849
+ <td><input type="checkbox" value="1" id="exclude_css" name="exclude_css"<?php if ( $this->options['exclude_css'] ) echo ' checked="checked"'; ?> /><label for="exclude_css"> <?php _e("Prevent the loading of this plugin's CSS styles. When selected, the appearance options from above will also be ignored.", 'toc+'); ?></label></td>
850
  </tr>
851
  <tr>
852
  <th><label for="bullet_spacing"><?php _e('Preserve theme bullets', 'toc+'); ?></label></th>
866
  ?>
867
  </td>
868
  </tr>
869
+ <tr>
870
+ <th><label for="exclude"><?php _e('Exclude headings', 'toc+'); ?></label></th>
871
+ <td>
872
+ <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['exclude'] ); ?>" id="exclude" name="exclude" style="width: 100%;" /><br />
873
+ <label for="exclude"><?php _e('Specify headings to be excluded from appearing in the table of contents. Separate multiple headings with a pipe <code>|</code>. Use an asterisk <code>*</code> as a wildcard to match other text. Note that this is not case sensitive. Some examples:', 'toc+'); ?></label><br/>
874
+ <ul>
875
+ <li><?php _e('<code>Fruit*</code> ignore headings starting with "Fruit"', 'toc+'); ?></li>
876
+ <li><?php _e('<code>*Fruit Diet*</code> ignore headings with "Fruit Diet" somewhere in the heading', 'toc+'); ?></li>
877
+ <li><?php _e('<code>Apple Tree|Oranges|Yellow Bananas</code> ignore headings that are exactly "Apple Tree", "Oranges" or "Yellow Bananas"', 'toc+'); ?></li>
878
+ </ul>
879
+ </td>
880
+ </tr>
881
  <tr id="smooth_scroll_offset_tr" class="<?php if ( !$this->options['smooth_scroll'] ) echo 'disabled'; ?>">
882
  <th><label for="smooth_scroll_offset"><?php _e('Smooth scroll top offset', 'toc+'); ?></label></th>
883
  <td>
1031
  <li><strong>no_label</strong>: <?php _e('true/false, shows or hides the title', 'toc+'); ?></li>
1032
  <li><strong>wrapping</strong>: <?php _e('text, either "left" or "right"', 'toc+'); ?></li>
1033
  <li><strong>heading_levels</strong>: <?php _e('numbers, this lets you select the heading levels you want included in the table of contents. Separate multiple levels with a comma. Example: include headings 3, 4 and 5 but exclude the others with', 'toc+'); ?> <code>heading_levels="3,4,5"</code></li>
1034
+ <li><strong>exclude</strong>: <?php _e('text, enter headings to be excluded. Separate multiple headings with a pipe <code>|</code>. Use an asterisk <code>*</code> as a wildcard to match other text. You could also use regular expressions for more advanced matching.', 'toc+'); ?></li>
1035
  </ul>
1036
  </td>
1037
  </tr>
1063
  <td><?php _e('Similar to [sitemap_pages] but for categories.', 'toc+'); ?></td>
1064
  <td>&nbsp;</td>
1065
  </tr>
1066
+ <tr>
1067
+ <td>[sitemap_posts]</td>
1068
+ <td><?php _e('This lets you print out an index of all published posts on your site. By default, posts are listed in alphabetical order grouped by their first letters. There are CSS classes for each section, letter and list allowing you to customise the appearance.', 'toc+'); ?></td>
1069
+ <td>
1070
+ <ul>
1071
+ <li><strong>order</strong>: <?php _e('text, either ASC or DESC', 'toc+'); ?></li>
1072
+ <li><strong>orderby</strong>: <?php printf(__('text, popular options include "title", "date", "ID", and "rand". See %1$sWP_Query%2$s for a list.', 'toc+'), '<a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters">', '</a>'); ?></li>
1073
+ </ul>
1074
+ </td>
1075
+ </tr>
1076
+
1077
  </tbody>
1078
  </table>
1079
 
1080
  <h3><?php _e('I have another question...', 'toc+'); ?></h3>
1081
  <p><?php printf(__('Visit the %1$splugin homepage%2$s to ask your question - who knows, maybe your question has already been answered. I\'d really like to hear your suggestions if you have any.', 'toc+'), '<a href="http://dublue.com/plugins/toc/">', '</a>'); ?></p>
1082
 
1083
+ <h3><?php _e('For developers', 'toc+'); ?> <span class="show_hide">(<a href="#toc_for_developers"><?php _e('show', 'toc+'); ?></a>)</span></h3>
1084
+ <div id="toc_for_developers">
1085
+ <h4><?php _e('How do I customise my anchors?', 'toc+'); ?></h4>
1086
+ <p><?php _e("If you're still not happy with the anchors, you can modify them to suit your needs through a custom function hooked into the <code>toc_url_anchor_target</code> filter. As an example, place the below code snippet into your functions.php file to convert all anchors to uppercase.", 'toc+'); ?></p>
1087
+ <pre>
1088
+ function my_custom_anchor( $anchor )
1089
+ {
1090
+ return strtoupper( $anchor );
1091
+ }
1092
+ add_filter( 'toc_url_anchor_target', 'my_custom_anchor' );
1093
+ </pre>
1094
+
1095
+ <h4>toc_get_index( $content = '', $prefix_url = '' )</h4>
1096
+ <p><?php _e('Returns a HTML formatted string of the table of contents without the surrounding UL or OL tags to allow the theme editor to supply their own ID and/or classes to the outer list.', 'toc+'); ?></p>
1097
+ <p><?php _e('Both parameters are optional:', 'toc+'); ?></p>
1098
+ <ul>
1099
+ <li><code>$content</code> <?php
1100
+ /* translators: this explains the $content parameter */
1101
+ _e('is the entire content with headings. If blank, will default to the current content found in $post (eg within "the loop").', 'toc+'); ?></li>
1102
+ <li><code>$prefix_url</code> <?php
1103
+ /* translators: this explains the $prefix_url parameter */
1104
+ _e('is the URL to prefix the anchor with. If a string was provided, it will be used as is. If set to "true" then will try to obtain the permalink from the $post object.', 'toc+'); ?></li>
1105
+ </ul>
1106
+ <p><?php _e('These examples assume you are within "the loop":', 'toc+'); ?></p>
1107
+ <ol>
1108
+ <li><?php _e('Obtain the index for the current page', 'toc+'); ?>
1109
+ <pre>echo '&lt;ul id="my_toc"&gt;' . toc_get_index() . '&lt;/ul&gt;';</pre>
1110
+ </li>
1111
+ <li><?php _e('Create a listing of all children and their headings', 'toc+'); ?>
1112
+ <pre>
1113
+ $children = new WP_Query(array(
1114
+ 'post_parent' => get_the_ID(),
1115
+ 'posts_per_page' => -1 // get all children
1116
+ ));
1117
+ while ( $children->have_posts() ) {
1118
+ $children->the_post();
1119
+ echo
1120
+ '&lt;h3&gt;' . get_the_title() . '&lt;/h3&gt;' .
1121
+ '&lt;ul&gt;' . toc_get_index( get_the_content(), get_permalink( $children->post->ID ) ) . '&lt;/ul&gt;'
1122
+ ;
1123
+ }
1124
+ wp_reset_postdata();
1125
+ </pre>
1126
+ </li>
1127
+ </ol>
1128
+
1129
+ </div>
1130
+
1131
+
1132
  </div>
1133
  </div>
1134
 
1139
  <?php
1140
  }
1141
 
 
 
 
 
 
 
 
1142
 
1143
  function wp_head()
1144
  {
1145
+ $css = '';
1146
+
1147
+ if ( !$this->options['exclude_css'] ) {
1148
+ if ( $this->options['theme'] == TOC_THEME_CUSTOM || $this->options['width'] != 'Auto' ) {
1149
+ $css .= 'div#toc_container {';
1150
+ if ( $this->options['theme'] == TOC_THEME_CUSTOM )
1151
+ $css .= 'background: ' . $this->options['custom_background_colour'] . ';border: 1px solid ' . $this->options['custom_border_colour'] . ';';
1152
+ if ( $this->options['width'] != 'Auto' ) {
1153
+ $css .= 'width: ';
1154
+ if ( $this->options['width'] != 'User defined' )
1155
+ $css .= $this->options['width'];
1156
+ else
1157
+ $css .= $this->options['width_custom'] . $this->options['width_custom_units'];
1158
+ $css .= ';';
1159
+ }
1160
+ $css .= '}';
1161
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1162
 
1163
+ if ( '95%' != $this->options['font_size'] . $this->options['font_size_units'] )
1164
+ $css .= 'div#toc_container ul li {font-size: ' . $this->options['font_size'] . $this->options['font_size_units'] . ';}';
 
 
 
 
 
1165
 
1166
+ if ( $this->options['theme'] == TOC_THEME_CUSTOM ) {
1167
+ if ( $this->options['custom_title_colour'] != TOC_DEFAULT_TITLE_COLOUR )
1168
+ $css .= 'div#toc_container p.toc_title {color: ' . $this->options['custom_title_colour'] . ';}';
1169
+ if ( $this->options['custom_links_colour'] != TOC_DEFAULT_LINKS_COLOUR )
1170
+ $css .= 'div#toc_container p.toc_title a,div#toc_container ul.toc_list a {color: ' . $this->options['custom_links_colour'] . ';}';
1171
+ if ( $this->options['custom_links_hover_colour'] != TOC_DEFAULT_LINKS_HOVER_COLOUR )
1172
+ $css .= 'div#toc_container p.toc_title a:hover,div#toc_container ul.toc_list a:hover {color: ' . $this->options['custom_links_hover_colour'] . ';}';
1173
+ if ( $this->options['custom_links_hover_colour'] != TOC_DEFAULT_LINKS_HOVER_COLOUR )
1174
+ $css .= 'div#toc_container p.toc_title a:hover,div#toc_container ul.toc_list a:hover {color: ' . $this->options['custom_links_hover_colour'] . ';}';
1175
+ if ( $this->options['custom_links_visited_colour'] != TOC_DEFAULT_LINKS_VISITED_COLOUR )
1176
+ $css .= 'div#toc_container p.toc_title a:visited,div#toc_container ul.toc_list a:visited {color: ' . $this->options['custom_links_visited_colour'] . ';}';
1177
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1178
  }
 
 
1179
 
1180
+ if ( $css )
1181
+ echo '<style type="text/css">' . $css . '</style>';
 
 
 
 
 
1182
  }
1183
 
1184
 
1210
 
1211
  // remove trailing - and _
1212
  $return = rtrim( $return, '-_' );
1213
+
1214
+ // lowercase everything?
1215
+ if ( $this->options['lowercase'] ) $return = strtolower($return);
1216
 
1217
  // if blank, then prepend with the fragment prefix
1218
  // blank anchors normally appear on sites that don't use the latin charset
1219
  if ( !$return ) {
1220
  $return = ( $this->options['fragment_prefix'] ) ? $this->options['fragment_prefix'] : '_';
1221
  }
1222
+
1223
+ // hyphenate?
1224
+ if ( $this->options['hyphenate'] ) {
1225
+ $return = str_replace('_', '-', $return);
1226
+ $return = str_replace('--', '-', $return);
1227
+ }
1228
  }
1229
 
1230
  if ( array_key_exists($return, $this->collision_collector) ) {
1234
  else
1235
  $this->collision_collector[$return] = 1;
1236
 
1237
+ return apply_filters( 'toc_url_anchor_target', $return );
1238
  }
1239
 
1240
 
1386
  }
1387
  $matches = $new_matches;
1388
  }
1389
+
1390
+ // remove specific headings if provided via the 'exclude' property
1391
+ $excluded_headings = explode('|', $this->options['exclude']);
1392
+ if ( count($excluded_headings) > 0 ) {
1393
+ for ($j = 0; $j < count($excluded_headings); $j++) {
1394
+ // escape some regular expression characters
1395
+ // others: http://www.php.net/manual/en/regexp.reference.meta.php
1396
+ $excluded_headings[$j] = str_replace(
1397
+ array('*'),
1398
+ array('.*'),
1399
+ trim($excluded_headings[$j])
1400
+ );
1401
+ }
1402
+
1403
+ $new_matches = array();
1404
+ for ($i = 0; $i < count($matches); $i++) {
1405
+ $found = false;
1406
+ for ($j = 0; $j < count($excluded_headings); $j++) {
1407
+ if ( @preg_match('/^' . $excluded_headings[$j] . '$/imU', strip_tags($matches[$i][0])) ) {
1408
+ $found = true;
1409
+ break;
1410
+ }
1411
+ }
1412
+ if (!$found) $new_matches[] = $matches[$i];
1413
+ }
1414
+ if ( count($matches) != count($new_matches) )
1415
+ $matches = $new_matches;
1416
+ }
1417
+
1418
  for ($i = 0; $i < count($matches); $i++) {
1419
  // get anchor and add to find and replace arrays
1420
  $anchor = $this->url_anchor_target( $matches[$i][0] );
1581
  case TOC_POSITION_BOTTOM:
1582
  $content = $this->mb_find_replace($find, $replace, $content) . $html;
1583
  break;
1584
+
1585
+ case TOC_POSITION_AFTER_FIRST_HEADING:
1586
+ $replace[0] = $replace[0] . $html;
1587
+ $content = $this->mb_find_replace($find, $replace, $content);
1588
+ break;
1589
 
1590
  case TOC_POSITION_BEFORE_FIRST_HEADING:
1591
  default:
1641
 
1642
  extract( $args );
1643
 
1644
+ $items = $tic->extract_headings( $find, $replace, wptexturize($post->post_content) );
1645
  $title = apply_filters('widget_title', $instance['title'] );
1646
  if ( strpos($title, '%PAGE_TITLE%') !== false ) $title = str_replace( '%PAGE_TITLE%', get_the_title(), $title );
1647
  $hide_inline = $toc_options['show_toc_in_widget_only'];
1714
  endif;
1715
 
1716
 
1717
+ /**
1718
+ * Returns a HTML formatted string of the table of contents without the surrounding UL or OL
1719
+ * tags to enable the theme editor to supply their own ID and/or classes to the outer list.
1720
+ *
1721
+ * There are two optional parameters you can feed this function with:
1722
+ *
1723
+ * - $content is the entire content with headings. If blank, will default to the current $post
1724
+ *
1725
+ * - $link is the URL to prefix the anchor with. If provided a string, will use it as the prefix.
1726
+ * If set to true then will try to obtain the permalink from the $post object.
1727
+ */
1728
+ function toc_get_index( $content = '', $prefix_url = '' )
1729
+ {
1730
+ global $wp_query, $tic;
1731
+
1732
+ $return = '';
1733
+ $find = $replace = array();
1734
+
1735
+ if ( !$content ) {
1736
+ $post = get_post( $wp_query->post->ID );
1737
+ $content = wptexturize($post->post_content);
1738
+ }
1739
+
1740
+ if ( $tic->is_eligible() ) {
1741
+ $return = $tic->extract_headings( $find, $replace, $content );
1742
+ if ( $prefix_url ) $return = str_replace('href="#', 'href="' . $prefix_url . '#', $return);
1743
+ }
1744
+
1745
+ return $return;
1746
+ }
1747
+
1748
+
1749
 
1750
  // do the magic
1751
  $tic = new toc();