Table of Contents Plus - Version 1601

Version Description

  • Released: 5 January 2016
  • Bump tested WordPress version to 4.4
  • Add 'enable' and 'disable' API functions so a developer can better control the execution.
  • Add Brazilian Portuguese translation thanks to Blog de Niteri
  • Add Spanish translation thanks to David Saiz
  • TOC+ widget now adheres to a blank title if none provided. Thanks to Dirk for the cue.
  • Updated jQuery Smooth Scroll 1.5.5 to 1.6.0
  • Updated text domain to better support translation packs.
Download this release

Release Info

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

Code changes from version 1509 to 1601

Files changed (31) hide show
  1. front.js +36 -3
  2. front.min.js +1 -1
  3. languages/{toc+-da_DK.mo → table-of-contents-plus-da_DK.mo} +0 -0
  4. languages/{toc+-da_DK.po → table-of-contents-plus-da_DK.po} +0 -0
  5. languages/{toc+-de_DE.mo → table-of-contents-plus-de_DE.mo} +0 -0
  6. languages/{toc+-de_DE.po → table-of-contents-plus-de_DE.po} +0 -0
  7. languages/{toc+-el_GR.mo → table-of-contents-plus-el_GR.mo} +0 -0
  8. languages/{toc+-el_GR.po → table-of-contents-plus-el_GR.po} +0 -0
  9. languages/table-of-contents-plus-es_ES.mo +0 -0
  10. languages/table-of-contents-plus-es_ES.po +568 -0
  11. languages/{toc+-fr_FR.mo → table-of-contents-plus-fr_FR.mo} +0 -0
  12. languages/{toc+-fr_FR.po → table-of-contents-plus-fr_FR.po} +0 -0
  13. languages/{toc+-he_IL.mo → table-of-contents-plus-he_IL.mo} +0 -0
  14. languages/{toc+-he_IL.po → table-of-contents-plus-he_IL.po} +0 -0
  15. languages/{toc+-ja.mo → table-of-contents-plus-ja.mo} +0 -0
  16. languages/{toc+-ja.po → table-of-contents-plus-ja.po} +0 -0
  17. languages/{toc+-nl_NL.mo → table-of-contents-plus-nl_NL.mo} +0 -0
  18. languages/{toc+-nl_NL.po → table-of-contents-plus-nl_NL.po} +0 -0
  19. languages/{toc+-pl_PL.mo → table-of-contents-plus-pl_PL.mo} +0 -0
  20. languages/{toc+-pl_PL.po → table-of-contents-plus-pl_PL.po} +0 -0
  21. languages/table-of-contents-plus-pt_BR.mo +0 -0
  22. languages/table-of-contents-plus-pt_BR.po +900 -0
  23. languages/{toc+-sk_SK.mo → table-of-contents-plus-sk_SK.mo} +0 -0
  24. languages/{toc+-sk_SK.po → table-of-contents-plus-sk_SK.po} +0 -0
  25. languages/{toc+-uk_UA.mo → table-of-contents-plus-uk_UA.mo} +0 -0
  26. languages/{toc+-uk_UA.po → table-of-contents-plus-uk_UA.po} +0 -0
  27. languages/{toc+-zh_CN.mo → table-of-contents-plus-zh_CN.mo} +0 -0
  28. languages/{toc+-zh_CN.po → table-of-contents-plus-zh_CN.po} +0 -0
  29. languages/{toc+.pot → table-of-contents-plus.pot} +0 -0
  30. readme.txt +18 -6
  31. toc.php +136 -117
front.js CHANGED
@@ -1,10 +1,43 @@
1
  /*!
2
- * jQuery Smooth Scroll - v1.5.5 - 2015-02-19
3
  * https://github.com/kswedberg/jquery-smooth-scroll
4
  * Copyright (c) 2015 Karl Swedberg
5
- * Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll/blob/master/LICENSE-MIT)
6
  */
7
- (function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?t(require("jquery")):t(jQuery)})(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var l="1.5.5",o={},n={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var l=[],o=!1,n=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!==document&&this!==window){var e=t(this);e[n]()>0?l.push(this):(e[n](1),o=e[n]()>0,o&&l.push(this),e[n](0))}}),l.length||this.each(function(){"BODY"===this.nodeName&&(l=[this])}),"first"===e.el&&l.length>1&&(l=[l[0]]),l};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(l,o){if(l=l||{},"options"===l)return o?this.each(function(){var e=t(this),l=t.extend(e.data("ssOpts")||{},o);t(this).data("ssOpts",l)}):this.first().data("ssOpts");var n=t.extend({},t.fn.smoothScroll.defaults,l),s=t.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(l){var o=this,r=t(this),i=t.extend({},n,r.data("ssOpts")||{}),c=n.exclude,a=i.excludeWithin,f=0,h=0,u=!0,d={},p=location.hostname===o.hostname||!o.hostname,m=i.scrollTarget||t.smoothScroll.filterPath(o.pathname)===s,S=e(o.hash);if(i.scrollTarget||p&&m&&S){for(;u&&c.length>f;)r.is(e(c[f++]))&&(u=!1);for(;u&&a.length>h;)r.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(i.preventDefault&&l.preventDefault(),t.extend(d,i,{scrollTarget:i.scrollTarget||S,link:o}),t.smoothScroll(d))}),this}}),t.smoothScroll=function(e,l){if("options"===e&&"object"==typeof l)return t.extend(o,l);var n,s,r,i,c,a=0,f="offset",h="scrollTop",u={},d={};"number"==typeof e?(n=t.extend({link:null},t.fn.smoothScroll.defaults,o),r=e):(n=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},o),n.scrollElement&&(f="position","static"===n.scrollElement.css("position")&&n.scrollElement.css("position","relative"))),h="left"===n.direction?"scrollLeft":h,n.scrollElement?(s=n.scrollElement,/^(?:HTML|BODY)$/.test(s[0].nodeName)||(a=s[h]())):s=t("html, body").firstScrollable(n.direction),n.beforeScroll.call(s,n),r="number"==typeof e?e:l||t(n.scrollTarget)[f]()&&t(n.scrollTarget)[f]()[n.direction]||0,u[h]=r+a+n.offset,i=n.speed,"auto"===i&&(c=u[h]-s.scrollTop(),0>c&&(c*=-1),i=c/n.autoCoefficient),d={duration:i,easing:n.easing,complete:function(){n.afterScroll.call(n.link,n)}},n.step&&(d.step=n.step),s.length?s.stop().animate(u,d):n.afterScroll.call(n.link,n)},t.smoothScroll.version=l,t.smoothScroll.filterPath=function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=n});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  /**
10
  * jQuery Cookie plugin
1
  /*!
2
+ * jQuery Smooth Scroll - v1.6.0 - 2015-12-26
3
  * https://github.com/kswedberg/jquery-smooth-scroll
4
  * Copyright (c) 2015 Karl Swedberg
5
+ * Licensed MIT
6
  */
7
+ !function(a){"function"==typeof define&&define.amd?
8
+ // AMD. Register as an anonymous module.
9
+ define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function b(a){return a.replace(/(:|\.|\/)/g,"\\$1")}var c="1.6.0",d={},e={exclude:[],excludeWithin:[],offset:0,
10
+ // one of 'top' or 'left'
11
+ direction:"top",
12
+ // if set, bind click events through delegation
13
+ // supported since jQuery 1.4.2
14
+ delegateSelector:null,
15
+ // jQuery set of elements you wish to scroll (for $.smoothScroll).
16
+ // if null (default), $('html, body').firstScrollable() is used.
17
+ scrollElement:null,
18
+ // only use if you want to override default behavior
19
+ scrollTarget:null,
20
+ // fn(opts) function to be called before scrolling occurs.
21
+ // `this` is the element(s) being scrolled
22
+ beforeScroll:function(){},
23
+ // fn(opts) function to be called after scrolling occurs.
24
+ // `this` is the triggering element
25
+ afterScroll:function(){},easing:"swing",speed:400,
26
+ // coefficient for "auto" speed
27
+ autoCoefficient:2,
28
+ // $.fn.smoothScroll only: whether to prevent the default click action
29
+ preventDefault:!0},f=function(b){var c=[],d=!1,e=b.dir&&"left"===b.dir?"scrollLeft":"scrollTop";
30
+ // If no scrollable elements, fall back to <body>,
31
+ // if it's in the jQuery collection
32
+ // (doing this because Safari sets scrollTop async,
33
+ // so can't set it to 1 and immediately get the value.)
34
+ // Use the first scrollable element if we're calling firstScrollable()
35
+ return this.each(function(){var b=a(this);if(this!==document&&this!==window)
36
+ // if scroll(Top|Left) === 0, nudge the element 1px and see if it moves
37
+ // then put it back, of course
38
+ return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(b[e]()>0?c.push(this):(b[e](1),d=b[e]()>0,d&&c.push(this),b[e](0))):(c.push(document.scrollingElement),!1)}),c.length||this.each(function(){"BODY"===this.nodeName&&(c=[this])}),"first"===b.el&&c.length>1&&(c=[c[0]]),c};a.fn.extend({scrollable:function(a){var b=f.call(this,{dir:a});return this.pushStack(b)},firstScrollable:function(a){var b=f.call(this,{el:"first",dir:a});return this.pushStack(b)},smoothScroll:function(c,d){if(c=c||{},"options"===c)return d?this.each(function(){var b=a(this),c=a.extend(b.data("ssOpts")||{},d);a(this).data("ssOpts",c)}):this.first().data("ssOpts");var e=a.extend({},a.fn.smoothScroll.defaults,c),f=function(c){var d=this,f=a(this),g=a.extend({},e,f.data("ssOpts")||{}),h=e.exclude,i=g.excludeWithin,j=0,k=0,l=!0,m={},n=a.smoothScroll.filterPath(location.pathname),o=a.smoothScroll.filterPath(d.pathname),p=location.hostname===d.hostname||!d.hostname,q=g.scrollTarget||o===n,r=b(d.hash);if(g.scrollTarget||p&&q&&r){for(;l&&j<h.length;)f.is(b(h[j++]))&&(l=!1);for(;l&&k<i.length;)f.closest(i[k++]).length&&(l=!1)}else l=!1;l&&(g.preventDefault&&c.preventDefault(),a.extend(m,g,{scrollTarget:g.scrollTarget||r,link:d}),a.smoothScroll(m))};return null!==c.delegateSelector?this.undelegate(c.delegateSelector,"click.smoothscroll").delegate(c.delegateSelector,"click.smoothscroll",f):this.unbind("click.smoothscroll").bind("click.smoothscroll",f),this}}),a.smoothScroll=function(b,c){if("options"===b&&"object"==typeof c)return a.extend(d,c);var e,f,g,h,i,j=0,k="offset",l="scrollTop",m={},n={};"number"==typeof b?(e=a.extend({link:null},a.fn.smoothScroll.defaults,d),g=b):(e=a.extend({link:null},a.fn.smoothScroll.defaults,b||{},d),e.scrollElement&&(k="position","static"===e.scrollElement.css("position")&&e.scrollElement.css("position","relative"))),l="left"===e.direction?"scrollLeft":l,e.scrollElement?(f=e.scrollElement,/^(?:HTML|BODY)$/.test(f[0].nodeName)||(j=f[l]())):f=a("html, body").firstScrollable(e.direction),e.beforeScroll.call(f,e),g="number"==typeof b?b:c||a(e.scrollTarget)[k]()&&a(e.scrollTarget)[k]()[e.direction]||0,m[l]=g+j+e.offset,h=e.speed,"auto"===h&&(i=Math.abs(m[l]-f[l]()),h=i/e.autoCoefficient),n={duration:h,easing:e.easing,complete:function(){e.afterScroll.call(e.link,e)}},e.step&&(n.step=e.step),f.length?f.stop().animate(m,n):e.afterScroll.call(e.link,e)},a.smoothScroll.version=c,a.smoothScroll.filterPath=function(a){return a=a||"",a.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},
39
+ // default options
40
+ a.fn.smoothScroll.defaults=e});
41
 
42
  /**
43
  * jQuery Cookie plugin
front.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.5.5",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!==document&&this!==window){var e=t(this);e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))}}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=t.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(o){var i=this,n=t(this),c=t.extend({},l,n.data("ssOpts")||{}),a=l.exclude,r=c.excludeWithin,h=0,u=0,p=!0,f={},d=location.hostname===i.hostname||!i.hostname,m=c.scrollTarget||t.smoothScroll.filterPath(i.pathname)===s,v=e(i.hash);if(c.scrollTarget||d&&m&&v){for(;p&&a.length>h;)n.is(e(a[h++]))&&(p=!1);for(;p&&r.length>u;)n.closest(r[u++]).length&&(p=!1)}else p=!1;p&&(c.preventDefault&&o.preventDefault(),t.extend(f,c,{scrollTarget:c.scrollTarget||v,link:i}),t.smoothScroll(f))}),this}}),t.smoothScroll=function(e,o){if("options"===e&&"object"==typeof o)return t.extend(i,o);var l,s,n,c,a,r=0,h="offset",u="scrollTop",p={},f={};"number"==typeof e?(l=t.extend({link:null},t.fn.smoothScroll.defaults,i),n=e):(l=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},i),l.scrollElement&&(h="position","static"===l.scrollElement.css("position")&&l.scrollElement.css("position","relative"))),u="left"===l.direction?"scrollLeft":u,l.scrollElement?(s=l.scrollElement,/^(?:HTML|BODY)$/.test(s[0].nodeName)||(r=s[u]())):s=t("html, body").firstScrollable(l.direction),l.beforeScroll.call(s,l),n="number"==typeof e?e:o||t(l.scrollTarget)[h]()&&t(l.scrollTarget)[h]()[l.direction]||0,p[u]=n+r+l.offset,c=l.speed,"auto"===c&&(a=p[u]-s.scrollTop(),0>a&&(a*=-1),c=a/l.autoCoefficient),f={duration:c,easing:l.easing,complete:function(){l.afterScroll.call(l.link,l)}},l.step&&(f.step=l.step),s.length?s.stop().animate(p,f):l.afterScroll.call(l.link,l)},t.smoothScroll.version=o,t.smoothScroll.filterPath=function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=l}),jQuery.cookie=function(t,e,o){if(arguments.length>1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' <span class="toc_toggle">[<a href="#">'+i+"</a>]</span>"),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("<div/>").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("<div/>").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}});
1
+ !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.6.0",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))):(o.push(document.scrollingElement),!1):void 0}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=function(o){var i=this,s=t(this),n=t.extend({},l,s.data("ssOpts")||{}),c=l.exclude,a=n.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(i.pathname),m=location.hostname===i.hostname||!i.hostname,g=n.scrollTarget||f===p,v=e(i.hash);if(n.scrollTarget||m&&g&&v){for(;u&&r<c.length;)s.is(e(c[r++]))&&(u=!1);for(;u&&h<a.length;)s.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(n.preventDefault&&o.preventDefault(),t.extend(d,n,{scrollTarget:n.scrollTarget||v,link:i}),t.smoothScroll(d))};return null!==o.delegateSelector?this.undelegate(o.delegateSelector,"click.smoothscroll").delegate(o.delegateSelector,"click.smoothscroll",s):this.unbind("click.smoothscroll").bind("click.smoothscroll",s),this}}),t.smoothScroll=function(e,o){if("options"===e&&"object"==typeof o)return t.extend(i,o);var l,s,n,c,a,r=0,h="offset",u="scrollTop",d={},p={};"number"==typeof e?(l=t.extend({link:null},t.fn.smoothScroll.defaults,i),n=e):(l=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},i),l.scrollElement&&(h="position","static"===l.scrollElement.css("position")&&l.scrollElement.css("position","relative"))),u="left"===l.direction?"scrollLeft":u,l.scrollElement?(s=l.scrollElement,/^(?:HTML|BODY)$/.test(s[0].nodeName)||(r=s[u]())):s=t("html, body").firstScrollable(l.direction),l.beforeScroll.call(s,l),n="number"==typeof e?e:o||t(l.scrollTarget)[h]()&&t(l.scrollTarget)[h]()[l.direction]||0,d[u]=n+r+l.offset,c=l.speed,"auto"===c&&(a=Math.abs(d[u]-s[u]()),c=a/l.autoCoefficient),p={duration:c,easing:l.easing,complete:function(){l.afterScroll.call(l.link,l)}},l.step&&(p.step=l.step),s.length?s.stop().animate(d,p):l.afterScroll.call(l.link,l)},t.smoothScroll.version=o,t.smoothScroll.filterPath=function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=l}),jQuery.cookie=function(t,e,o){if(arguments.length>1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' <span class="toc_toggle">[<a href="#">'+i+"</a>]</span>"),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("<div/>").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("<div/>").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}});
languages/{toc+-da_DK.mo → table-of-contents-plus-da_DK.mo} RENAMED
File without changes
languages/{toc+-da_DK.po → table-of-contents-plus-da_DK.po} RENAMED
File without changes
languages/{toc+-de_DE.mo → table-of-contents-plus-de_DE.mo} RENAMED
File without changes
languages/{toc+-de_DE.po → table-of-contents-plus-de_DE.po} RENAMED
File without changes
languages/{toc+-el_GR.mo → table-of-contents-plus-el_GR.mo} RENAMED
File without changes
languages/{toc+-el_GR.po → table-of-contents-plus-el_GR.po} RENAMED
File without changes
languages/table-of-contents-plus-es_ES.mo ADDED
Binary file
languages/table-of-contents-plus-es_ES.po ADDED
@@ -0,0 +1,568 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2015 Table of Contents Plus
2
+ # This file is distributed under the same license as the Table of Contents Plus package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Table of Contents Plus 1505\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/table-of-contents-"
7
+ "plus\n"
8
+ "POT-Creation-Date: 2015-10-27 13:07+0100\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2015-10-31 22:33+0100\n"
13
+ "Language-Team: \n"
14
+ "X-Generator: Poedit 1.8.6\n"
15
+ "Last-Translator: David Saiz\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "Language: es\n"
18
+
19
+ #: toc.php:201
20
+ msgid "Settings"
21
+ msgstr "Ajustes"
22
+
23
+ #: toc.php:482 toc.php:483
24
+ msgid "TOC"
25
+ msgstr "TOC"
26
+
27
+ #: toc.php:653
28
+ msgid "Options saved."
29
+ msgstr "Opciones guardadas."
30
+
31
+ #: toc.php:655
32
+ msgid "Save failed."
33
+ msgstr "Fallo al guardar."
34
+
35
+ #: toc.php:667
36
+ msgid "Main Options"
37
+ msgstr "Opciones principales"
38
+
39
+ #: toc.php:668
40
+ msgid "Sitemap"
41
+ msgstr "Mapa del sitio"
42
+
43
+ #: toc.php:669
44
+ msgid "Help"
45
+ msgstr "Ayuda"
46
+
47
+ #: toc.php:677
48
+ msgid "Position"
49
+ msgstr "Posición"
50
+
51
+ #: toc.php:680
52
+ msgid "Before first heading (default)"
53
+ msgstr "Antes del primer encabezamiento (por defecto)"
54
+
55
+ #: toc.php:681
56
+ msgid "After first heading"
57
+ msgstr "Después del primer encabezamiento"
58
+
59
+ #: toc.php:682
60
+ msgid "Top"
61
+ msgstr "Arriba"
62
+
63
+ #: toc.php:683
64
+ msgid "Bottom"
65
+ msgstr "Abajo"
66
+
67
+ #: toc.php:688
68
+ msgid "Show when"
69
+ msgstr "Mostrar cuando"
70
+
71
+ #. translators: text follows drop down list of numbers
72
+ #: toc.php:700
73
+ msgid "or more headings are present"
74
+ msgstr "o más encabezamientos aparezcan"
75
+
76
+ #: toc.php:704
77
+ msgid "Auto insert for the following content types"
78
+ msgstr "Incluir automáticamente para los siguientes tipos de contenido"
79
+
80
+ #. translators: this is the title of the table of contents
81
+ #: toc.php:719
82
+ msgid "Heading text"
83
+ msgstr "Texto del título de la tabla de contenidos"
84
+
85
+ #: toc.php:721
86
+ msgid "Show title on top of the table of contents"
87
+ msgstr "Mostrar el título encima de la tabla de contenidos"
88
+
89
+ #: toc.php:724
90
+ msgid "Eg: Contents, Table of Contents, Page Contents"
91
+ msgstr "Eg: Contenidos, Tabla de contenidos, Página de contenidos"
92
+
93
+ #: toc.php:726
94
+ msgid "Allow the user to toggle the visibility of the table of contents"
95
+ msgstr "Permitir al usuario alternar la visibilidad de la tabla de contenidos"
96
+
97
+ #: toc.php:731
98
+ msgid "Show text"
99
+ msgstr "Mostrar texto"
100
+
101
+ #. translators: example text to display when you want to expand the table of
102
+ #. contents
103
+ #: toc.php:735
104
+ msgid "Eg: show"
105
+ msgstr "Ej: mostrar"
106
+
107
+ #: toc.php:738
108
+ msgid "Hide text"
109
+ msgstr "Ocultar texto"
110
+
111
+ #. translators: example text to display when you want to collapse the table of
112
+ #. contents
113
+ #: toc.php:742
114
+ msgid "Eg: hide"
115
+ msgstr "Ej: ocultar"
116
+
117
+ #: toc.php:746
118
+ msgid "Hide the table of contents initially"
119
+ msgstr "Ocultar la tabla de contenidos inicialmente"
120
+
121
+ #: toc.php:752
122
+ msgid "Show hierarchy"
123
+ msgstr "Mostrar jerarquía"
124
+
125
+ #: toc.php:756
126
+ msgid "Number list items"
127
+ msgstr "Enumerar la lista de elementos"
128
+
129
+ #: toc.php:760
130
+ msgid "Enable smooth scroll effect"
131
+ msgstr "Permitir efecto de desplazamiento suave"
132
+
133
+ #: toc.php:761
134
+ msgid "Scroll rather than jump to the anchor link"
135
+ msgstr "Scroll en vez de saltar al anchor link"
136
+
137
+ #: toc.php:766
138
+ msgid "Appearance"
139
+ msgstr "Apariencia"
140
+
141
+ #: toc.php:770
142
+ msgid "Width"
143
+ msgstr "Ancho"
144
+
145
+ #: toc.php:773
146
+ msgid "Fixed width"
147
+ msgstr "Ancho fijo"
148
+
149
+ #: toc.php:784
150
+ msgid "Relative"
151
+ msgstr "Relativo"
152
+
153
+ #: toc.php:785
154
+ msgid "Auto (default)"
155
+ msgstr "Auto (por defecto)"
156
+
157
+ #. translators: other width
158
+ #: toc.php:795
159
+ msgid "Other"
160
+ msgstr "Otro"
161
+
162
+ #: toc.php:796
163
+ msgid "User defined"
164
+ msgstr "Definido por el usuario"
165
+
166
+ #. translators: ignore %s as it's some HTML label tags
167
+ #: toc.php:802
168
+ msgid "Please enter a number and %s select its units, eg: 100px, 10em"
169
+ msgstr ""
170
+ "Por favor introduce un número y %s selecciona las unidades, ej: 100px, 10em"
171
+
172
+ #: toc.php:813
173
+ msgid "Wrapping"
174
+ msgstr "Envoltura"
175
+
176
+ #: toc.php:816
177
+ msgid "None (default)"
178
+ msgstr "Ninguno (por defecto)"
179
+
180
+ #: toc.php:817
181
+ msgid "Left"
182
+ msgstr "Izquierda"
183
+
184
+ #: toc.php:818
185
+ msgid "Right"
186
+ msgstr "Derecha"
187
+
188
+ #: toc.php:823
189
+ msgid "Font size"
190
+ msgstr "Tamaño de la fuente"
191
+
192
+ #. translators: appearance / colour / look and feel options
193
+ #: toc.php:836
194
+ msgid "Presentation"
195
+ msgstr "Apariencia"
196
+
197
+ #: toc.php:839
198
+ msgid "Grey (default)"
199
+ msgstr "Gris (por defecto)"
200
+
201
+ #: toc.php:844
202
+ msgid "Light blue"
203
+ msgstr "Azul claro"
204
+
205
+ #: toc.php:849
206
+ msgid "White"
207
+ msgstr "Blanco"
208
+
209
+ #: toc.php:854
210
+ msgid "Black"
211
+ msgstr "Negro"
212
+
213
+ #: toc.php:859
214
+ msgid "Transparent"
215
+ msgstr "Transparente"
216
+
217
+ #: toc.php:864
218
+ msgid "Custom"
219
+ msgstr "Personalizado"
220
+
221
+ #: toc.php:874
222
+ msgid "Background"
223
+ msgstr "Fondo"
224
+
225
+ #: toc.php:878
226
+ msgid "Border"
227
+ msgstr "Borde"
228
+
229
+ #: toc.php:882 toc.php:1658
230
+ msgid "Title"
231
+ msgstr "Título"
232
+
233
+ #: toc.php:886
234
+ msgid "Links"
235
+ msgstr "Enlaces"
236
+
237
+ #: toc.php:890
238
+ msgid "Links (hover)"
239
+ msgstr "Enlaces (encima)"
240
+
241
+ #: toc.php:894
242
+ msgid "Links (visited)"
243
+ msgstr "Enlaces (visitado)"
244
+
245
+ #: toc.php:901
246
+ msgid "Leaving the value as %s will inherit your theme's styles"
247
+ msgstr "Dejar el valor como %s heredará los estilos de tu tema"
248
+
249
+ #: toc.php:908
250
+ msgid "Advanced"
251
+ msgstr "Avanzado"
252
+
253
+ #: toc.php:908 toc.php:1045
254
+ msgid "show"
255
+ msgstr "mostrar"
256
+
257
+ #: toc.php:910
258
+ msgid "Power options"
259
+ msgstr "Opciones de control"
260
+
261
+ #: toc.php:914
262
+ msgid "Lowercase"
263
+ msgstr "Minúsculas"
264
+
265
+ #: toc.php:915
266
+ msgid "Ensure anchors are in lowercase"
267
+ msgstr "Garantiza que los anclajes (anchors) están en minúsculas"
268
+
269
+ #: toc.php:918
270
+ msgid "Hyphenate"
271
+ msgstr "Dividir palabra con guión"
272
+
273
+ #: toc.php:919
274
+ msgid "Use - rather than _ in anchors"
275
+ msgstr "Usar - en vez de _ en los anclajes (anchors)"
276
+
277
+ #: toc.php:922
278
+ msgid "Include homepage"
279
+ msgstr "Incluir la página de inicio"
280
+
281
+ #: toc.php:923
282
+ msgid "Show the table of contents for qualifying items on the homepage"
283
+ msgstr ""
284
+ "Mostrar la tabla de contenidos para clasificar los elementos en la página de "
285
+ "inicio"
286
+
287
+ #: toc.php:926
288
+ msgid "Exclude CSS file"
289
+ msgstr "Excluir archivo CSS"
290
+
291
+ #: toc.php:927
292
+ msgid ""
293
+ "Prevent the loading of this plugin's CSS styles. When selected, the "
294
+ "appearance options from above will also be ignored."
295
+ msgstr ""
296
+ "Evitar la carga de los estilos CSS de este plugin. Si está seleccionado, las "
297
+ "opciones de apariencia de más categoría también serán ignoradas"
298
+
299
+ #: toc.php:930
300
+ msgid "Preserve theme bullets"
301
+ msgstr "Conservar numeración (bullets) del tema"
302
+
303
+ #: toc.php:931
304
+ msgid ""
305
+ "If your theme includes background images for unordered list elements, enable "
306
+ "this to support them"
307
+ msgstr ""
308
+ "Si tu tema incluye imágenes de fondo para una lista desordenada de "
309
+ "elementos, activa esto para que funcione"
310
+
311
+ #: toc.php:934
312
+ msgid "Heading levels"
313
+ msgstr "Niveles de encabezamiento"
314
+
315
+ #: toc.php:936
316
+ msgid ""
317
+ "Include the following heading levels. Deselecting a heading will exclude it."
318
+ msgstr ""
319
+ "Incluir los siguentes niveles de encabezamiento. Deseleccionando un "
320
+ "encabezamiento este será excluido."
321
+
322
+ #: toc.php:942
323
+ msgid "heading "
324
+ msgstr "encabezamiento"
325
+
326
+ #: toc.php:948
327
+ msgid "Exclude headings"
328
+ msgstr "Excluir encabezamientos"
329
+
330
+ #: toc.php:951
331
+ msgid ""
332
+ "Specify headings to be excluded from appearing in the table of contents. "
333
+ "Separate multiple headings with a pipe <code>|</code>. Use an asterisk "
334
+ "<code>*</code> as a wildcard to match other text. Note that this is not "
335
+ "case sensitive. Some examples:"
336
+ msgstr ""
337
+ "Especificar los encabezamientos a ser excluidos que figuran en la tabla de "
338
+ "contenidos. Separar múltiples encabezamientos con un tubo <code>|</code> . "
339
+ "Utilizar un asterisco <code>*</code> como un comodín para que coincida con "
340
+ "otro texto. Ten en cuenta que esto no es sensible a mayúsculas. Algunos "
341
+ "ejemplos:"
342
+
343
+ #: toc.php:953
344
+ msgid "<code>Fruit*</code> ignore headings starting with \"Fruit\""
345
+ msgstr ""
346
+ "<code>Fruta*</code> ignorar los encabezados que comienzan con \"Fruta\""
347
+
348
+ #: toc.php:954
349
+ msgid ""
350
+ "<code>*Fruit Diet*</code> ignore headings with \"Fruit Diet\" somewhere in "
351
+ "the heading"
352
+ msgstr ""
353
+ "<code>*Dieta de Fruta*</code> ignorar los encabezamientos \"Dieta de Fruta\" "
354
+ "en algún lugar del encabezamiento"
355
+
356
+ #: toc.php:955
357
+ msgid ""
358
+ "<code>Apple Tree|Oranges|Yellow Bananas</code> ignore headings that are "
359
+ "exactly \"Apple Tree\", \"Oranges\" or \"Yellow Bananas\""
360
+ msgstr ""
361
+ "<code>Manzano|Naranjas|Platanos amarillos</code> ignorar los encabezamientos "
362
+ "que son exactamente \"Manzano\", \"Naranjas\" o \"Platanos amarillos\""
363
+
364
+ #: toc.php:960
365
+ msgid "Smooth scroll top offset"
366
+ msgstr "Compensación del desplazamiento suave hacia arriba"
367
+
368
+ #: toc.php:963
369
+ msgid ""
370
+ "If you have a consistent menu across the top of your site, you can adjust "
371
+ "the top offset to stop the headings from appearing underneath the top menu. "
372
+ "A setting of 30 accommodates the WordPress admin bar. This setting appears "
373
+ "after you have enabled smooth scrolling from above."
374
+ msgstr ""
375
+ "Si tienes un menú consistente en la parte superior de tu sitio web, puedes "
376
+ "ajustar el desplazamiento superior para detener los encabezamientos que "
377
+ "aparezcan debajo del menú superior. Un ajuste de 30 acomoda la barra de "
378
+ "administrador de WordPress. Esta configuración aparece después de que "
379
+ "actives el desplazamiento suave hacia arriba."
380
+
381
+ #: toc.php:967
382
+ msgid "Restrict path"
383
+ msgstr "Restringir la ruta"
384
+
385
+ #: toc.php:970
386
+ msgid ""
387
+ "Restrict generation of the table of contents to pages that match the "
388
+ "required path. This path is from the root of your site and always begins "
389
+ "with a forward slash."
390
+ msgstr ""
391
+ "Restringir la generación de la tabla de contenidos a las páginas que "
392
+ "coincidan con la ruta necesaria. Esta ruta es desde la raíz de tu sitio y "
393
+ "comienza siempre con una barra diagonal."
394
+
395
+ #. translators: example URL path restriction
396
+ #: toc.php:973
397
+ msgid "Eg: /wiki/, /corporate/annual-reports/"
398
+ msgstr "Ej: /wiki/ , /corporativo/reporte-anual/ "
399
+
400
+ #: toc.php:977
401
+ msgid "Default anchor prefix"
402
+ msgstr "Prefijo del anclaje (anchor) por defecto"
403
+
404
+ #: toc.php:980
405
+ msgid ""
406
+ "Anchor targets are restricted to alphanumeric characters as per HTML "
407
+ "specification (see readme for more detail). The default anchor prefix will "
408
+ "be used when no characters qualify. When left blank, a number will be used "
409
+ "instead."
410
+ msgstr ""
411
+ "Objetivos de anclaje (anchor targets) están restringidos a caracteres "
412
+ "alfanuméricos según la especificación de HTML (ver leeme para más detalles). "
413
+ "El prefijo por defecto de anclaje (anchor) se utilizará cuando no haya "
414
+ "caracteres que califican. Cuando se deja en blanco, un número se utilizará "
415
+ "en su lugar."
416
+
417
+ #: toc.php:981
418
+ msgid ""
419
+ "This option normally applies to content written in character sets other than "
420
+ "ASCII."
421
+ msgstr ""
422
+ "Esta opción es aplicable normalmente a contenido escrito en juegos de "
423
+ "caracteres que no són ASCII."
424
+
425
+ #. translators: example anchor prefixes when no ascii characters match
426
+ #: toc.php:984
427
+ msgid "Eg: i, toc_index, index, _"
428
+ msgstr "Ej: i, toc_index, index, _"
429
+
430
+ #. translators: advanced usage
431
+ #: toc.php:992
432
+ msgid "Usage"
433
+ msgstr "Uso avanzado"
434
+
435
+ #: toc.php:993
436
+ msgid ""
437
+ "If you would like to fully customise the position of the table of contents, "
438
+ "you can use the %s shortcode by placing it at the desired position of your "
439
+ "post, page or custom post type. This method allows you to generate the table "
440
+ "of contents despite having auto insertion disabled for its content type. "
441
+ "Please visit the help tab for further information about this shortcode."
442
+ msgstr ""
443
+ "Si desea personalizar completamente la posición de la tabla de contenidos, "
444
+ "puede utilizar el código corto %s al colocarlo en la posición deseada de tu "
445
+ "post, página o tipo de mensaje personalizado. Este método permite generar la "
446
+ "tabla de contenidos a pesar de tener la auto inserción desactivada para este "
447
+ "tipo de contenido. Por favor visita la sección de ayuda para más información "
448
+ "sobre este código corto (shortcode)."
449
+
450
+ #: toc.php:1001
451
+ msgid ""
452
+ "At its simplest, placing %s into a page will automatically create a sitemap "
453
+ "of all pages and categories. This also works in a text widget."
454
+ msgstr ""
455
+ "Hacer esto mas simple, colocando %s en una página creará automáticamente un "
456
+ "mapa de todas las páginas y categorías. Esto también funciona en un widget "
457
+ "de texto."
458
+
459
+ #: toc.php:1005
460
+ msgid "Show page listing"
461
+ msgstr "Mostrar detalle de página"
462
+
463
+ #: toc.php:1009
464
+ msgid "Show category listing"
465
+ msgstr "Mostrar detalle de categoria"
466
+
467
+ #: toc.php:1013
468
+ msgid "Heading type"
469
+ msgstr "Tipo de encabezamiento"
470
+
471
+ #. translators: the full line is supposed to read - Use [1-6 drop down list] to
472
+ #. print out the titles
473
+ #: toc.php:1016
474
+ msgid "Use"
475
+ msgstr "Usar"
476
+
477
+ #. translators: the full line is supposed to read - Use [h1-h6 drop down list]
478
+ #. to print out the titles
479
+ #: toc.php:1027
480
+ msgid "to print out the titles"
481
+ msgstr "para mostrar los títulos"
482
+
483
+ #: toc.php:1031
484
+ msgid "Pages label"
485
+ msgstr "Etiqueta de páginas"
486
+
487
+ #: toc.php:1033
488
+ msgid "Eg: Pages, Page List"
489
+ msgstr "Ej: Páginas, Etiqueta de página"
490
+
491
+ #: toc.php:1037
492
+ msgid "Categories label"
493
+ msgstr "Etiqueta de categorías"
494
+
495
+ #: toc.php:1039
496
+ msgid "Eg: Categories, Category List"
497
+ msgstr "Ej: Categorías, Lista de categoría"
498
+
499
+ #: toc.php:1045
500
+ msgid "Advanced usage"
501
+ msgstr "Uso avanzado"
502
+
503
+ #: toc.php:1047
504
+ msgid ""
505
+ "lets you print out a listing of only pages. Similarly %s can be used to "
506
+ "print out a category listing. They both can accept a number of attributes so "
507
+ "visit the help tab for more information."
508
+ msgstr ""
509
+ "Te permite imprimir un listado de solo páginas. Igualmente %s puede ser "
510
+ "usado para imprimir un listado de categoria. Ambos pueden aceptar un número "
511
+ "de atributos así que visita la pestaña de ayuda para más información."
512
+
513
+ #: toc.php:1048
514
+ msgid "Examples"
515
+ msgstr "Ejemplos"
516
+
517
+ #: toc.php:1050
518
+ msgid "hides the heading from a category listing"
519
+ msgstr "ocultar el encabezado desde un listado de categoria"
520
+
521
+ #: toc.php:1051
522
+ msgid ""
523
+ "Uses h6 to display %s on a page listing excluding pages with IDs 1 and 15"
524
+ msgstr ""
525
+ "Usar h6 para mostrar %s en un listado de página excluyendo las páginas con "
526
+ "IDs 1 y 15"
527
+
528
+ #: toc.php:1060
529
+ msgid "Update Options"
530
+ msgstr "Opciones de actualización"
531
+
532
+ #: toc.php:1563
533
+ msgid "Display the table of contents in the sidebar with this widget"
534
+ msgstr ""
535
+ "Mostrar la tabla de contenidos en la barra lateral (sidebar) con este widget"
536
+
537
+ #: toc.php:1664
538
+ msgid "Show the table of contents only in the sidebar"
539
+ msgstr "Mostrar la tabla de contenidos solo en la barra lateral (sidebar)"
540
+
541
+ #: toc.php:1668
542
+ msgid "For the following content types:"
543
+ msgstr "Para los siguientes tipos de contenido:"
544
+
545
+ #. Plugin Name of the plugin/theme
546
+ msgid "Table of Contents Plus"
547
+ msgstr "Table of Contents Plus"
548
+
549
+ #. Plugin URI of the plugin/theme
550
+ msgid "http://dublue.com/plugins/toc/"
551
+ msgstr "http://dublue.com/plugins/toc/"
552
+
553
+ #. Description of the plugin/theme
554
+ msgid ""
555
+ "A powerful yet user friendly plugin that automatically creates a table of "
556
+ "contents. Can also output a sitemap listing all pages and categories."
557
+ msgstr ""
558
+ "Un potente y agradable plugin amigable al ususario que crea automáticamente "
559
+ "una tabla de contenidos. También puede crear un mapa del sitio que lista "
560
+ "todas las páginas y categorías."
561
+
562
+ #. Author of the plugin/theme
563
+ msgid "Michael Tran"
564
+ msgstr "Michael Tran"
565
+
566
+ #. Author URI of the plugin/theme
567
+ msgid "http://dublue.com/"
568
+ msgstr "http://dublue.com/"
languages/{toc+-fr_FR.mo → table-of-contents-plus-fr_FR.mo} RENAMED
File without changes
languages/{toc+-fr_FR.po → table-of-contents-plus-fr_FR.po} RENAMED
File without changes
languages/{toc+-he_IL.mo → table-of-contents-plus-he_IL.mo} RENAMED
File without changes
languages/{toc+-he_IL.po → table-of-contents-plus-he_IL.po} RENAMED
File without changes
languages/{toc+-ja.mo → table-of-contents-plus-ja.mo} RENAMED
File without changes
languages/{toc+-ja.po → table-of-contents-plus-ja.po} RENAMED
File without changes
languages/{toc+-nl_NL.mo → table-of-contents-plus-nl_NL.mo} RENAMED
File without changes
languages/{toc+-nl_NL.po → table-of-contents-plus-nl_NL.po} RENAMED
File without changes
languages/{toc+-pl_PL.mo → table-of-contents-plus-pl_PL.mo} RENAMED
File without changes
languages/{toc+-pl_PL.po → table-of-contents-plus-pl_PL.po} RENAMED
File without changes
languages/table-of-contents-plus-pt_BR.mo ADDED
Binary file
languages/table-of-contents-plus-pt_BR.po ADDED
@@ -0,0 +1,900 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014
2
+ # This file is distributed under the same license as the package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: TOC+ pt_BR 1505\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/table-of-contents-"
7
+ "plus\n"
8
+ "POT-Creation-Date: 2015-09-05 01:43-0300\n"
9
+ "PO-Revision-Date: 2015-09-05 01:47-0300\n"
10
+ "Last-Translator: Leonardo Antonioli <leo@tobeguarany.com>\n"
11
+ "Language-Team: To Be Guarany! <leo@tobeguarany.com>\n"
12
+ "Language: pt_BR\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "X-Generator: Poedit 1.8.4\n"
17
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
+ "X-Poedit-SourceCharset: UTF-8\n"
19
+
20
+ #: toc.php:201
21
+ msgid "Settings"
22
+ msgstr "Configurações"
23
+
24
+ #: toc.php:482 toc.php:483
25
+ msgid "TOC"
26
+ msgstr "TOC"
27
+
28
+ #: toc.php:653
29
+ msgid "Options saved."
30
+ msgstr "Opções gravadas."
31
+
32
+ #: toc.php:655
33
+ msgid "Save failed."
34
+ msgstr "Erro ao gravar."
35
+
36
+ #: toc.php:667
37
+ msgid "Main Options"
38
+ msgstr "Opções Principais"
39
+
40
+ #: toc.php:668
41
+ msgid "Sitemap"
42
+ msgstr "Sitemap"
43
+
44
+ #: toc.php:669
45
+ msgid "Help"
46
+ msgstr "Ajuda"
47
+
48
+ #: toc.php:677
49
+ msgid "Position"
50
+ msgstr "Posição"
51
+
52
+ #: toc.php:680
53
+ msgid "Before first heading (default)"
54
+ msgstr "Antes do primeiro título (padrão)"
55
+
56
+ #: toc.php:681
57
+ msgid "After first heading"
58
+ msgstr "Após o primeiro título"
59
+
60
+ #: toc.php:682
61
+ msgid "Top"
62
+ msgstr "Início da página"
63
+
64
+ #: toc.php:683
65
+ msgid "Bottom"
66
+ msgstr "Final da página"
67
+
68
+ #: toc.php:688
69
+ msgid "Show when"
70
+ msgstr "Exibir quando..."
71
+
72
+ #. translators: text follows drop down list of numbers
73
+ #: toc.php:700
74
+ msgid "or more headings are present"
75
+ msgstr "ou mais títulos estiverem presentes"
76
+
77
+ #: toc.php:704
78
+ msgid "Auto insert for the following content types"
79
+ msgstr "Inserção automática para os seguintes tipos de conteúdo"
80
+
81
+ #. translators: this is the title of the table of contents
82
+ #: toc.php:719
83
+ msgid "Heading text"
84
+ msgstr "Título da Tabela de Conteúdos"
85
+
86
+ #: toc.php:721
87
+ msgid "Show title on top of the table of contents"
88
+ msgstr "Exibir título no topo da tabela de conteúdos"
89
+
90
+ #: toc.php:724
91
+ msgid "Eg: Contents, Table of Contents, Page Contents"
92
+ msgstr "Ex: Conteúdo, Tabela de Conteúdos, Página de Conteúdos"
93
+
94
+ #: toc.php:726
95
+ msgid "Allow the user to toggle the visibility of the table of contents"
96
+ msgstr "Deixar o usuário exibir/ocultar a tabela"
97
+
98
+ #: toc.php:731
99
+ msgid "Show text"
100
+ msgstr "Texto para exibir"
101
+
102
+ #. translators: example text to display when you want to expand the table of
103
+ #. contents
104
+ #: toc.php:735
105
+ msgid "Eg: show"
106
+ msgstr "ex: Exibir"
107
+
108
+ #: toc.php:738
109
+ msgid "Hide text"
110
+ msgstr "Texto para ocultar"
111
+
112
+ #. translators: example text to display when you want to collapse the table of
113
+ #. contents
114
+ #: toc.php:742
115
+ msgid "Eg: hide"
116
+ msgstr "Ex: Ocultar"
117
+
118
+ #: toc.php:746
119
+ msgid "Hide the table of contents initially"
120
+ msgstr "Ocultar a tabela por padrão"
121
+
122
+ #: toc.php:752
123
+ msgid "Show hierarchy"
124
+ msgstr "Usar hierarquia"
125
+
126
+ #: toc.php:756
127
+ msgid "Number list items"
128
+ msgstr "Lista numerada"
129
+
130
+ #: toc.php:760
131
+ msgid "Enable smooth scroll effect"
132
+ msgstr "Habilitar efeito de scroll suave"
133
+
134
+ #: toc.php:761
135
+ msgid "Scroll rather than jump to the anchor link"
136
+ msgstr "Desliza para o título em vez de pular"
137
+
138
+ #: toc.php:766
139
+ msgid "Appearance"
140
+ msgstr "Aparência"
141
+
142
+ #: toc.php:770
143
+ msgid "Width"
144
+ msgstr "Largura"
145
+
146
+ #: toc.php:773
147
+ msgid "Fixed width"
148
+ msgstr "Largura fixa"
149
+
150
+ #: toc.php:784
151
+ msgid "Relative"
152
+ msgstr "Largura relativa"
153
+
154
+ #: toc.php:785
155
+ msgid "Auto (default)"
156
+ msgstr "Auto (padrão)"
157
+
158
+ #. translators: other width
159
+ #: toc.php:795
160
+ msgid "Other"
161
+ msgstr "Outra largura"
162
+
163
+ #: toc.php:796
164
+ msgid "User defined"
165
+ msgstr "Definida pelo usuário"
166
+
167
+ #. translators: ignore %s as it's some HTML label tags
168
+ #: toc.php:802
169
+ msgid "Please enter a number and %s select its units, eg: 100px, 10em"
170
+ msgstr ""
171
+ "Por favor, digite um número e %s selecione sua unidade. Ex: 100px, 10em"
172
+
173
+ #: toc.php:813
174
+ msgid "Wrapping"
175
+ msgstr "Flutuar"
176
+
177
+ #: toc.php:816
178
+ msgid "None (default)"
179
+ msgstr "Não (padrão)"
180
+
181
+ #: toc.php:817
182
+ msgid "Left"
183
+ msgstr "Esquerda"
184
+
185
+ #: toc.php:818
186
+ msgid "Right"
187
+ msgstr "Direita"
188
+
189
+ #: toc.php:823
190
+ msgid "Font size"
191
+ msgstr "Tamanho da fonte"
192
+
193
+ #. translators: appearance / colour / look and feel options
194
+ #: toc.php:836
195
+ msgid "Presentation"
196
+ msgstr "Apresentação"
197
+
198
+ #: toc.php:839
199
+ msgid "Grey (default)"
200
+ msgstr "Cinza (padrão)"
201
+
202
+ #: toc.php:844
203
+ msgid "Light blue"
204
+ msgstr "Azul claro"
205
+
206
+ #: toc.php:849
207
+ msgid "White"
208
+ msgstr "Branco"
209
+
210
+ #: toc.php:854
211
+ msgid "Black"
212
+ msgstr "Preto"
213
+
214
+ #: toc.php:859
215
+ msgid "Transparent"
216
+ msgstr "Transparente"
217
+
218
+ #: toc.php:864
219
+ msgid "Custom"
220
+ msgstr "Personalizada"
221
+
222
+ #: toc.php:874
223
+ msgid "Background"
224
+ msgstr "Fundo"
225
+
226
+ #: toc.php:878
227
+ msgid "Border"
228
+ msgstr "Borda"
229
+
230
+ #: toc.php:882 toc.php:1658
231
+ msgid "Title"
232
+ msgstr "Título"
233
+
234
+ #: toc.php:886
235
+ msgid "Links"
236
+ msgstr "Links"
237
+
238
+ #: toc.php:890
239
+ msgid "Links (hover)"
240
+ msgstr "Links (hover)"
241
+
242
+ #: toc.php:894
243
+ msgid "Links (visited)"
244
+ msgstr "Links (visitados)"
245
+
246
+ #: toc.php:901
247
+ msgid "Leaving the value as %s will inherit your theme's styles"
248
+ msgstr "Deixe o valor como %s para herdar o CSS do seu tema"
249
+
250
+ #: toc.php:908
251
+ msgid "Advanced"
252
+ msgstr "Avançado"
253
+
254
+ #: toc.php:908 toc.php:1045
255
+ msgid "show"
256
+ msgstr "exibir"
257
+
258
+ #: toc.php:910
259
+ msgid "Power options"
260
+ msgstr "Opções poderosas!"
261
+
262
+ #: toc.php:914
263
+ msgid "Lowercase"
264
+ msgstr "Minúsculas"
265
+
266
+ #: toc.php:915
267
+ msgid "Ensure anchors are in lowercase"
268
+ msgstr "Usar âncoras sempre em minúsculas"
269
+
270
+ #: toc.php:918
271
+ msgid "Hyphenate"
272
+ msgstr "Usar hifens"
273
+
274
+ #: toc.php:919
275
+ msgid "Use - rather than _ in anchors"
276
+ msgstr "Usar - em vez de _ nas âncoras"
277
+
278
+ #: toc.php:922
279
+ msgid "Include homepage"
280
+ msgstr "Incluir página inicial"
281
+
282
+ #: toc.php:923
283
+ msgid "Show the table of contents for qualifying items on the homepage"
284
+ msgstr "Exibir tabela de conteúdos também para itens da página inicial"
285
+
286
+ #: toc.php:926
287
+ msgid "Exclude CSS file"
288
+ msgstr "Excluir arquivo CSS"
289
+
290
+ #: toc.php:927
291
+ msgid ""
292
+ "Prevent the loading of this plugin's CSS styles. When selected, the "
293
+ "appearance options from above will also be ignored."
294
+ msgstr ""
295
+ "Não carregar o CSS desse plugin. Se selecionado, as opções de aparência "
296
+ "acima também serão ignoradas."
297
+
298
+ #: toc.php:930
299
+ msgid "Preserve theme bullets"
300
+ msgstr "Usar bullets do tema"
301
+
302
+ #: toc.php:931
303
+ msgid ""
304
+ "If your theme includes background images for unordered list elements, enable "
305
+ "this to support them"
306
+ msgstr ""
307
+ "Se o seu tema usa imagens de fundo para listas não-ordenadas, habilite essa "
308
+ "opção para usá-las"
309
+
310
+ #: toc.php:934
311
+ msgid "Heading levels"
312
+ msgstr "Níveis de títulos"
313
+
314
+ #: toc.php:936
315
+ msgid ""
316
+ "Include the following heading levels. Deselecting a heading will exclude it."
317
+ msgstr ""
318
+ "Utilizar os seguintes níveis de títulos (títulos desmarcados não serão "
319
+ "usados para compor a tabela):"
320
+
321
+ #: toc.php:942
322
+ msgid "heading "
323
+ msgstr "título "
324
+
325
+ #: toc.php:948
326
+ msgid "Exclude headings"
327
+ msgstr "Excluir títulos"
328
+
329
+ #: toc.php:951
330
+ msgid ""
331
+ "Specify headings to be excluded from appearing in the table of contents. "
332
+ "Separate multiple headings with a pipe <code>|</code>. Use an asterisk "
333
+ "<code>*</code> as a wildcard to match other text. Note that this is not "
334
+ "case sensitive. Some examples:"
335
+ msgstr ""
336
+ "Especifique títulos que não devem aparecer na tabela de conteúdos. Separe "
337
+ "vários títulos com um pipe <code>|</code>. Use asteriscos <code>*</code> "
338
+ "como curingas para casar com outros textos. Essa opção não diferencia "
339
+ "maiúsculas de minúsculas. Alguns exemplos:"
340
+
341
+ #: toc.php:953
342
+ msgid "<code>Fruit*</code> ignore headings starting with \"Fruit\""
343
+ msgstr "<code>Dieta*</code> ignora títulos que comecem com \"Dieta\""
344
+
345
+ #: toc.php:954
346
+ msgid ""
347
+ "<code>*Fruit Diet*</code> ignore headings with \"Fruit Diet\" somewhere in "
348
+ "the heading"
349
+ msgstr ""
350
+ "<code>*Dieta da Fruta*</code> ignora títulos que contenham \"Dieta da Fruta"
351
+ "\" em qualquer lugar"
352
+
353
+ #: toc.php:955
354
+ msgid ""
355
+ "<code>Apple Tree|Oranges|Yellow Bananas</code> ignore headings that are "
356
+ "exactly \"Apple Tree\", \"Oranges\" or \"Yellow Bananas\""
357
+ msgstr ""
358
+ "<code>Macieira|Laranjas|Bananas Amarelas</code> ignora títulos que "
359
+ "correspondam exatamente a \"Macieira\", \"Laranjas\" ou \"Bananas Amarelas\""
360
+
361
+ #: toc.php:960
362
+ msgid "Smooth scroll top offset"
363
+ msgstr "Recuo superior do scroll suave"
364
+
365
+ #: toc.php:963
366
+ msgid ""
367
+ "If you have a consistent menu across the top of your site, you can adjust "
368
+ "the top offset to stop the headings from appearing underneath the top menu. "
369
+ "A setting of 30 accommodates the WordPress admin bar. This setting appears "
370
+ "after you have enabled smooth scrolling from above."
371
+ msgstr ""
372
+ "Se você usa um menu no topo do seu site, você pode ajustar um recuo superior "
373
+ "para evitar que os títulos sejam cobertos por ele. A configuração de 30px "
374
+ "funciona para a barra de administração do Wordpress. Essa configuração só é "
375
+ "exibida caso você habilite o scroll suave acima."
376
+
377
+ #: toc.php:967
378
+ msgid "Restrict path"
379
+ msgstr "Restringir caminho"
380
+
381
+ #: toc.php:970
382
+ msgid ""
383
+ "Restrict generation of the table of contents to pages that match the "
384
+ "required path. This path is from the root of your site and always begins "
385
+ "with a forward slash."
386
+ msgstr ""
387
+ "Restringir a inserção das tabelas de conteúdos às páginas que correspondam "
388
+ "ao caminho especificado. Este caminho é relativo ao seu domínio e sempre "
389
+ "começa como uma barra."
390
+
391
+ #. translators: example URL path restriction
392
+ #: toc.php:973
393
+ msgid "Eg: /wiki/, /corporate/annual-reports/"
394
+ msgstr "Ex: /wiki/, /sobre/relatorios-anuais/"
395
+
396
+ #: toc.php:977
397
+ msgid "Default anchor prefix"
398
+ msgstr "Prefixo padrão para âncoras"
399
+
400
+ #: toc.php:980
401
+ msgid ""
402
+ "Anchor targets are restricted to alphanumeric characters as per HTML "
403
+ "specification (see readme for more detail). The default anchor prefix will "
404
+ "be used when no characters qualify. When left blank, a number will be used "
405
+ "instead."
406
+ msgstr ""
407
+ "As âncoras só podem conter caracteres alfanuméricos devido à especificação "
408
+ "HTML (leia o readme para mais detalhes). O prefixo padrão será usado quando "
409
+ "não houver no título caracteres que possam ser usados. Se deixado em branco, "
410
+ "será usado um número."
411
+
412
+ #: toc.php:981
413
+ msgid ""
414
+ "This option normally applies to content written in character sets other than "
415
+ "ASCII."
416
+ msgstr ""
417
+ "Essa opção normalmente se aplica ao conteúdo escrito com caracteres que não "
418
+ "são ASCII."
419
+
420
+ #. translators: example anchor prefixes when no ascii characters match
421
+ #: toc.php:984
422
+ msgid "Eg: i, toc_index, index, _"
423
+ msgstr "Ex: i, toc_index, index, _"
424
+
425
+ #. translators: advanced usage
426
+ #: toc.php:992
427
+ msgid "Usage"
428
+ msgstr "Especificações"
429
+
430
+ #: toc.php:993
431
+ msgid ""
432
+ "If you would like to fully customise the position of the table of contents, "
433
+ "you can use the %s shortcode by placing it at the desired position of your "
434
+ "post, page or custom post type. This method allows you to generate the table "
435
+ "of contents despite having auto insertion disabled for its content type. "
436
+ "Please visit the help tab for further information about this shortcode."
437
+ msgstr ""
438
+ "Se você quer controle total sobre a posição da tabela de conteúdos, você "
439
+ "pode usar o shortcode %s no local desejado no seu post, página ou tipos "
440
+ "customizados. Esse método permite gerar uma tabela de conteúdos mesmo que a "
441
+ "inserção automática esteja desabilitada para um determinado tipo de "
442
+ "conteúdo. Por favor, veja a aba Ajuda para maiores informações."
443
+
444
+ #: toc.php:1001
445
+ msgid ""
446
+ "At its simplest, placing %s into a page will automatically create a sitemap "
447
+ "of all pages and categories. This also works in a text widget."
448
+ msgstr ""
449
+ "Basta colocar %s em uma página para criar automaticamente um mapa do site "
450
+ "com todas suas páginas e categorias. Também funciona em um widget de texto."
451
+
452
+ #: toc.php:1005
453
+ msgid "Show page listing"
454
+ msgstr "Mostrar lista de páginas"
455
+
456
+ #: toc.php:1009
457
+ msgid "Show category listing"
458
+ msgstr "Mostrar lista de categorias"
459
+
460
+ #: toc.php:1013
461
+ msgid "Heading type"
462
+ msgstr "Tipo de título"
463
+
464
+ #. translators: the full line is supposed to read - Use [1-6 drop down list] to
465
+ #. print out the titles
466
+ #: toc.php:1016
467
+ msgid "Use"
468
+ msgstr "Usar"
469
+
470
+ #. translators: the full line is supposed to read - Use [h1-h6 drop down list]
471
+ #. to print out the titles
472
+ #: toc.php:1027
473
+ msgid "to print out the titles"
474
+ msgstr "para exibir os títulos"
475
+
476
+ #: toc.php:1031
477
+ msgid "Pages label"
478
+ msgstr "Rótulo de Páginas"
479
+
480
+ #: toc.php:1033
481
+ msgid "Eg: Pages, Page List"
482
+ msgstr "Ex: Páginas, Lista de Páginas"
483
+
484
+ #: toc.php:1037
485
+ msgid "Categories label"
486
+ msgstr "Rótulo de Categorias"
487
+
488
+ #: toc.php:1039
489
+ msgid "Eg: Categories, Category List"
490
+ msgstr "Ex: Categorias, Lista de Categorias"
491
+
492
+ #: toc.php:1045
493
+ msgid "Advanced usage"
494
+ msgstr "Especificações Avançadas"
495
+
496
+ #: toc.php:1047
497
+ msgid ""
498
+ "lets you print out a listing of only pages. Similarly %s can be used to "
499
+ "print out a category listing. They both can accept a number of attributes so "
500
+ "visit the help tab for more information."
501
+ msgstr ""
502
+ "permite exibir apenas a lista de páginas. Da mesma forma, %s pode ser usada "
503
+ "para exibir a lista de categorias. Ambos aceitam alguns atributos, que estão "
504
+ "detalhados na aba Ajuda."
505
+
506
+ #: toc.php:1048
507
+ msgid "Examples"
508
+ msgstr "Exemplos"
509
+
510
+ #: toc.php:1050
511
+ msgid "hides the heading from a category listing"
512
+ msgstr "esconde o título de uma lista de categorias"
513
+
514
+ #: toc.php:1051
515
+ msgid ""
516
+ "Uses h6 to display %s on a page listing excluding pages with IDs 1 and 15"
517
+ msgstr ""
518
+ "usa h6 para exibir %s numa lista de páginas, excluindo aquelas com IDs 1 e 15"
519
+
520
+ #: toc.php:1060
521
+ msgid "Update Options"
522
+ msgstr "Atualizar Opções"
523
+
524
+ #: toc.php:1563
525
+ msgid "Display the table of contents in the sidebar with this widget"
526
+ msgstr "Mostre a tabela de conteúdos na barra lateral com este widget"
527
+
528
+ #: toc.php:1664
529
+ msgid "Show the table of contents only in the sidebar"
530
+ msgstr "Exibir a Tabela de Conteúdos somente na barra lateral"
531
+
532
+ #: toc.php:1668
533
+ msgid "For the following content types:"
534
+ msgstr "Para os seguintes tipos de conteúdo:"
535
+
536
+ #. Plugin Name of the plugin/theme
537
+ msgid "Table of Contents Plus"
538
+ msgstr "Table of Contents Plus"
539
+
540
+ #. Plugin URI of the plugin/theme
541
+ msgid "http://dublue.com/plugins/toc/"
542
+ msgstr "http://dublue.com/plugins/toc/"
543
+
544
+ #. Description of the plugin/theme
545
+ msgid ""
546
+ "A powerful yet user friendly plugin that automatically creates a table of "
547
+ "contents. Can also output a sitemap listing all pages and categories."
548
+ msgstr ""
549
+ "Um plugin poderoso e fácil de usar que cria automaticamente uma tabela de "
550
+ "conteúdo. Também pode produzir um sitemap listando todas as páginas e "
551
+ "categorias."
552
+
553
+ #. Author of the plugin/theme
554
+ msgid "Michael Tran"
555
+ msgstr "Michael Tran"
556
+
557
+ #. Author URI of the plugin/theme
558
+ msgid "http://dublue.com/"
559
+ msgstr "http://dublue.com/"
560
+
561
+ #~ msgid "Where's my table of contents?"
562
+ #~ msgstr "Cadê minha Tabela de Conteúdos?"
563
+
564
+ #~ msgid ""
565
+ #~ "If you're reading this, then chances are you have successfully installed "
566
+ #~ "and enabled the plugin and you're just wondering why the index isn't "
567
+ #~ "appearing right? Try the following:"
568
+ #~ msgstr ""
569
+ #~ "Se você está lendo isso, então você instalou e habilitou o plugin com "
570
+ #~ "sucesso, e está apenas se perguntando por que sua tabela ainda não "
571
+ #~ "apareceu, certo? Tente o seguinte:"
572
+
573
+ #~ msgid ""
574
+ #~ "In most cases, the post, page or custom post type has less than the "
575
+ #~ "minimum number of headings. By default, this is set to four so make sure "
576
+ #~ "you have at least four headings within your content. If you want to "
577
+ #~ "change this value, you can find it under 'Main Options' &gt; 'Show when'."
578
+ #~ msgstr ""
579
+ #~ "Na maioria dos casos, o post, página ou tipo customizado têm menos "
580
+ #~ "títulos do que o mínimo necessário. Por padrão, é necessário pelo menos "
581
+ #~ "quatro títulos. Você pode alterar esse valor em 'Opções Principais' &gt; "
582
+ #~ "'Exibir quando...'"
583
+
584
+ #~ msgid ""
585
+ #~ "Is auto insertion enabled for your content type? By default, only pages "
586
+ #~ "are enabled."
587
+ #~ msgstr ""
588
+ #~ "A inserção automática está habilitada para seu tipo de conteúdo? Por "
589
+ #~ "padrão, apenas páginas estão habilitadas."
590
+
591
+ #~ msgid ""
592
+ #~ "Have you got <code>[no_toc]</code> somewhere within the content? This "
593
+ #~ "will disable the index for the current post, page or custom post type."
594
+ #~ msgstr ""
595
+ #~ "Existe o código <code>[no_toc]</code> em algum lugar do seu conteúdo? "
596
+ #~ "Isso desabilitará a tabela para o post, página ou tipo customizado que o "
597
+ #~ "contiver."
598
+
599
+ #~ msgid ""
600
+ #~ "If you are using the TOC+ widget, check if you have the <em>\"Show the "
601
+ #~ "table of contents only in the sidebar\"</em> enabled as this will limit "
602
+ #~ "its display to only the sidebar. You can check by going into Appearance "
603
+ #~ "&gt; Widgets."
604
+ #~ msgstr ""
605
+ #~ "Se você está usando o widget TOC+, verifique se você habilitou a opção "
606
+ #~ "<em>\"Exibir a Tabela de Conteúdos somente na barra lateral\"</em>. Você "
607
+ #~ "pode fazer essa verificação em Aparência &gt; Widgets."
608
+
609
+ #~ msgid ""
610
+ #~ "You may have restricted generation to a URL path match. The setting can "
611
+ #~ "be found in the advanced section under Main Options."
612
+ #~ msgstr ""
613
+ #~ "Talvez você tenha restringido a criação das tabelas a um caminho "
614
+ #~ "específico. Essa configuração pode ser encontrada na seção Avançado das "
615
+ #~ "Opções Principais."
616
+
617
+ #~ msgid "How do I stop the table of contents from appearing on a single page?"
618
+ #~ msgstr "Como desabilito a Tabela de Conteúdos em uma única página?"
619
+
620
+ #~ msgid ""
621
+ #~ "Place the following <code>[no_toc]</code> anywhere on the page to "
622
+ #~ "suppress the table of contents. This is known as a shortcode and works "
623
+ #~ "for posts, pages and custom post types that make use of the_content()"
624
+ #~ msgstr ""
625
+ #~ "Digite o código <code>[no_toc]</code> em qualquer local da página para "
626
+ #~ "suprimir a tabela de conteúdos. Isso é conhecido como shortcode e "
627
+ #~ "funciona para posts, páginas e tipos customizados que fazem uso da função "
628
+ #~ "the_content()"
629
+
630
+ #~ msgid ""
631
+ #~ "I've set wrapping to left or right but the headings don't wrap around the "
632
+ #~ "table of contents"
633
+ #~ msgstr ""
634
+ #~ "Eu configurei a Tabela de Conteúdos para flutuar na esquerda ou na "
635
+ #~ "direita, mas os títulos continuam abaixo dela"
636
+
637
+ #~ msgid ""
638
+ #~ "This normally occurs when there is a CSS clear directive in or around the "
639
+ #~ "heading originating from the theme (Twenty Eleven and Twenty Twelve are "
640
+ #~ "two themes which do this). This directive tells the user agent to reset "
641
+ #~ "the previous wrapping specifications."
642
+ #~ msgstr ""
643
+ #~ "Isso normalmente ocorre quando existe uma regra CSS 'clear' no título do "
644
+ #~ "tema (Twenty Eleven e Twenty Twelve são temas que fazem isso). Essa "
645
+ #~ "regra diz ao navegador para não aceitar regras de floating ao redor do "
646
+ #~ "elemento para a qual foi definida."
647
+
648
+ #~ msgid ""
649
+ #~ "You can adjust your theme's CSS or try moving the table of contents "
650
+ #~ "position to the top of the page. If you didn't build your theme, I'd "
651
+ #~ "highly suggest you try the %s if you wish to make CSS changes."
652
+ #~ msgstr ""
653
+ #~ "Você pode ajustar o CSS do seu tema ou tentar mover a tabela de conteúdos "
654
+ #~ "para o início da página. Se você não construiu seu tema, recomendo "
655
+ #~ "fortemente o uso do %s para fazer mudanças no CSS."
656
+
657
+ #~ msgid ""
658
+ #~ "Try adding the following CSS to allow the wrapping to occur around the "
659
+ #~ "table of contents:"
660
+ #~ msgstr ""
661
+ #~ "Tente adicionar o seguinte CSS para permitir que seus títulos se acomodem "
662
+ #~ "ao lado da tabela de conteúdos:"
663
+
664
+ #~ msgid ""
665
+ #~ "How do I include the name of the page in the table of contents title?"
666
+ #~ msgstr ""
667
+ #~ "Como posso incluir o título da minha página no título da Tabela de "
668
+ #~ "Conteúdos?"
669
+
670
+ #~ msgid ""
671
+ #~ "As the title of the page changes depending on the page you're viewing, "
672
+ #~ "you can use the following special variable to automatically insert the "
673
+ #~ "title of the page into the table of contents heading:"
674
+ #~ msgstr ""
675
+ #~ "Você pode usar a seguinte variável para automaticamente inserir o título "
676
+ #~ "da sua página no título da Tabela de Conteúdos:"
677
+
678
+ #~ msgid "You can use it as is or place text either side of the variable."
679
+ #~ msgstr "Você pode usá-la sozinha ou conjuntamente com outros textos."
680
+
681
+ #~ msgid ""
682
+ #~ "As an example: if your page is named <em>Great Expectations</em> and your "
683
+ #~ "table of contents title is set to <em>Contents for %PAGE_NAME%</em>, the "
684
+ #~ "final title would read <em>Contents for Great Expectations</em>"
685
+ #~ msgstr ""
686
+ #~ "Por exemplo: se sua página se chama <em>Grandes Espectativas</em> e o "
687
+ #~ "título da sua Tabela de Conteúdos está definido como <em>Conteúdos de "
688
+ #~ "%PAGE_NAME%</em>, o título exibido será <em>Conteúdos de Grandes "
689
+ #~ "Espectativas</em>"
690
+
691
+ #~ msgid "The sitemap uses a strange font dissimilar to the rest of the site"
692
+ #~ msgstr "O Sitemap usa uma fonte estranha, diferente do resto do site"
693
+
694
+ #~ msgid ""
695
+ #~ "No extra styles are created for the sitemap, instead it inherits any "
696
+ #~ "styles you used when adding the shortcode. If you copy and pasted, you "
697
+ #~ "probably also copied the 'code' tags surrounding it so remove them if "
698
+ #~ "this is the case."
699
+ #~ msgstr ""
700
+ #~ "Não são criados estilos extras para o Sitemap. Mas ele herda todos os "
701
+ #~ "estilos usados ao adicionar o shortcode. Então se você copiou e colou, "
702
+ #~ "você provavelmente copiou também as tags 'code' que o envolvem. Se for "
703
+ #~ "esse o caso, apenas remova-as."
704
+
705
+ #~ msgid ""
706
+ #~ "In most cases, try to have the shortcode on its own line with nothing "
707
+ #~ "before or after the square brackets."
708
+ #~ msgstr ""
709
+ #~ "Procure deixar o shortcode sozinho na linha, sem nada antes ou depois dos "
710
+ #~ "colchetes."
711
+
712
+ #~ msgid "What were those shortcodes and attributes again?"
713
+ #~ msgstr "Quais são os shortcodes e atributos mesmo?"
714
+
715
+ #~ msgid ""
716
+ #~ "When attributes are left out for the shortcodes below, they will fallback "
717
+ #~ "to the settings you defined under Settings &gt; TOC+."
718
+ #~ msgstr ""
719
+ #~ "Quando os atributos não forem definidos, eles usarão as configurações "
720
+ #~ "determinadas em Configurações &gt; TOC+."
721
+
722
+ #~ msgid "Shortcode"
723
+ #~ msgstr "Shortcode"
724
+
725
+ #~ msgid "Description"
726
+ #~ msgstr "Descrição"
727
+
728
+ #~ msgid "Attributes"
729
+ #~ msgstr "Atributos"
730
+
731
+ #~ msgid ""
732
+ #~ "Lets you generate the table of contents at the preferred position. Also "
733
+ #~ "useful for sites that only require a TOC on a small handful of pages."
734
+ #~ msgstr ""
735
+ #~ "Permite criar a Tabela de Conteúdos em uma posição específica. Também é "
736
+ #~ "útil para sites que só precisem da Tabela de Conteúdos em poucas páginas."
737
+
738
+ #~ msgid "text, title of the table of contents"
739
+ #~ msgstr "texto, título da tabela de conteúdos"
740
+
741
+ #~ msgid "true/false, shows or hides the title"
742
+ #~ msgstr "true/false, exibe ou oculta o título"
743
+
744
+ #~ msgid "text, either \"left\" or \"right\""
745
+ #~ msgstr "texto, apenas \"left\" ou \"right\""
746
+
747
+ #~ msgid ""
748
+ #~ "numbers, this lets you select the heading levels you want included in the "
749
+ #~ "table of contents. Separate multiple levels with a comma. Example: "
750
+ #~ "include headings 3, 4 and 5 but exclude the others with"
751
+ #~ msgstr ""
752
+ #~ "números, permite selecionar os níveis de títulos que devem ser incluídos "
753
+ #~ "na tabela de conteúdos. Separe múltiplos níveis com vírgulas. Exemplo: "
754
+ #~ "para incluir os títulos 3, 4 e 5, mas excluir os demais, use"
755
+
756
+ #~ msgid ""
757
+ #~ "text, enter headings to be excluded. Separate multiple headings with a "
758
+ #~ "pipe <code>|</code>. Use an asterisk <code>*</code> as a wildcard to "
759
+ #~ "match other text. You could also use regular expressions for more "
760
+ #~ "advanced matching."
761
+ #~ msgstr ""
762
+ #~ "texto, digite títulos que devem ser excluídos. Separe vários títulos com "
763
+ #~ "um pipe <code>|</code>. Use asteriscos <code>*</code> como curingas para "
764
+ #~ "casar com outros textos. Você também pode usar expressões regulares para "
765
+ #~ "correspondências avançadas."
766
+
767
+ #~ msgid ""
768
+ #~ "Allows you to disable the table of contents for the current post, page, "
769
+ #~ "or custom post type."
770
+ #~ msgstr ""
771
+ #~ "Desabilita a Tabela de Conteúdos em um post, página ou tipo customizado "
772
+ #~ "específico."
773
+
774
+ #~ msgid ""
775
+ #~ "Produces a listing of all pages and categories for your site. You can use "
776
+ #~ "this on any post, page or even in a text widget."
777
+ #~ msgstr ""
778
+ #~ "Cria uma lista de todas as páginas e categorias do seu site. Você pode "
779
+ #~ "usá-lo em qualquer post, página ou mesmo em um widget de texto."
780
+
781
+ #~ msgid "Lets you print out a listing of only pages."
782
+ #~ msgstr "Cria uma lista apenas das páginas."
783
+
784
+ #~ msgid "number between 1 and 6, defines which html heading to use"
785
+ #~ msgstr "número entre 1 e 6, define qual título HTML será usado"
786
+
787
+ #~ msgid "text, title of the list"
788
+ #~ msgstr "texto, título da lista"
789
+
790
+ #~ msgid "true/false, shows or hides the list heading"
791
+ #~ msgstr "true/false, exibe ou oculta o título da lista"
792
+
793
+ #~ msgid "IDs of the pages or categories you wish to exclude"
794
+ #~ msgstr "IDs das páginas ou categorias que não devem ser listadas"
795
+
796
+ #~ msgid ""
797
+ #~ "ID of the page or category you wish to exclude including its all "
798
+ #~ "descendants"
799
+ #~ msgstr ""
800
+ #~ "IDs das páginas ou categorias que não devem ser listadas, incluindo suas "
801
+ #~ "descendentes"
802
+
803
+ #~ msgid "Similar to [sitemap_pages] but for categories."
804
+ #~ msgstr "Parecido com [sitemap_pages], mas lista só categorias."
805
+
806
+ #~ msgid ""
807
+ #~ "This lets you print out an index of all published posts on your site. By "
808
+ #~ "default, posts are listed in alphabetical order grouped by their first "
809
+ #~ "letters. There are CSS classes for each section, letter and list allowing "
810
+ #~ "you to customise the appearance."
811
+ #~ msgstr ""
812
+ #~ "Cria uma lista de todos os posts publicados no seu site. Por padrão, "
813
+ #~ "posts são listados em ordem alfabética, agrupados pela primeira letra. "
814
+ #~ "Existem classes CSS para cada seção, letra e lista, permitindo que você "
815
+ #~ "personalize a aparência."
816
+
817
+ #~ msgid "text, either ASC or DESC"
818
+ #~ msgstr "texto, somente ASC ou DESC"
819
+
820
+ #~ msgid ""
821
+ #~ "text, popular options include \"title\", \"date\", \"ID\", and \"rand\". "
822
+ #~ "See %1$sWP_Query%2$s for a list."
823
+ #~ msgstr ""
824
+ #~ "texto, opções comuns são \"title\", \"date\", \"ID\", e \"rand\". Acesse "
825
+ #~ "%1$sWP_Query%2$s para um lista."
826
+
827
+ #~ msgid ""
828
+ #~ "true/false (defaults to true), does not separate the lists by first "
829
+ #~ "letter when set to false."
830
+ #~ msgstr ""
831
+ #~ "true/false (padrão em true), não agrupa os posts pela primeira letra "
832
+ #~ "quando definido em false."
833
+
834
+ #~ msgid "I have another question..."
835
+ #~ msgstr "Tenho uma pergunta diferente..."
836
+
837
+ #~ msgid ""
838
+ #~ "Visit the %1$splugin homepage%2$s to ask your question - who knows, maybe "
839
+ #~ "your question has already been answered. I'd really like to hear your "
840
+ #~ "suggestions if you have any."
841
+ #~ msgstr ""
842
+ #~ "Acesse a %1$spágina do plugin%2$s para fazer sua pergunta - talvez sua "
843
+ #~ "pergunta já tenha resposta. E se você tem sugestões, eu realmente "
844
+ #~ "gostaria de ouvi-las."
845
+
846
+ #~ msgid "For developers"
847
+ #~ msgstr "Para desenvolvedores"
848
+
849
+ #~ msgid "How do I customise my anchors?"
850
+ #~ msgstr "Como eu personalizo minhas âncoras?"
851
+
852
+ #~ msgid ""
853
+ #~ "If you're still not happy with the anchors, you can modify them to suit "
854
+ #~ "your needs through a custom function hooked into the "
855
+ #~ "<code>toc_url_anchor_target</code> filter. As an example, place the "
856
+ #~ "below code snippet into your functions.php file to convert all anchors to "
857
+ #~ "uppercase."
858
+ #~ msgstr ""
859
+ #~ "Se você não está satisfeito com as âncoras, você pode modifica-las para "
860
+ #~ "atender suas necessidades através de uma função customizada através do "
861
+ #~ "filtro <code>toc_url_anchor_target</code>. Por exemplo, coloque o código "
862
+ #~ "abaixo no seu arquivo functions.php para transformar todas as âncoras em "
863
+ #~ "maiúsculas:"
864
+
865
+ #~ msgid ""
866
+ #~ "Returns a HTML formatted string of the table of contents without the "
867
+ #~ "surrounding UL or OL tags to allow the theme editor to supply their own "
868
+ #~ "ID and/or classes to the outer list."
869
+ #~ msgstr ""
870
+ #~ "Retorna uma string HTML da tabela de conteúdos sem as tags UL ou OL "
871
+ #~ "envolvendo-a. Isso permite que o desenvolvedor do tema use suas próprias "
872
+ #~ "ID e/ou classes na lista."
873
+
874
+ #~ msgid "Both parameters are optional:"
875
+ #~ msgstr "Ambos os parâmetros são opcionais:"
876
+
877
+ #~ msgid ""
878
+ #~ "is the entire content with headings. If blank, will default to the "
879
+ #~ "current content found in $post (eg within \"the loop\")."
880
+ #~ msgstr ""
881
+ #~ "is the entire content with headings. If blank, will default to the "
882
+ #~ "current content found in $post (eg within \"the loop\")."
883
+
884
+ #~ msgid ""
885
+ #~ "is the URL to prefix the anchor with. If a string was provided, it will "
886
+ #~ "be used as is. If set to \"true\" then will try to obtain the permalink "
887
+ #~ "from the $post object."
888
+ #~ msgstr ""
889
+ #~ "is the URL to prefix the anchor with. If a string was provided, it will "
890
+ #~ "be used as is. If set to \"true\" then will try to obtain the permalink "
891
+ #~ "from the $post object."
892
+
893
+ #~ msgid "These examples assume you are within \"the loop\":"
894
+ #~ msgstr "Estes exemplos assumem que você está dentro do \"The Loop\":"
895
+
896
+ #~ msgid "Obtain the index for the current page"
897
+ #~ msgstr "Obter a tabela de conteúdos da página visualizada:"
898
+
899
+ #~ msgid "Create a listing of all children and their headings"
900
+ #~ msgstr "Criar uma lista de todos os descendentes com seus títulos:"
languages/{toc+-sk_SK.mo → table-of-contents-plus-sk_SK.mo} RENAMED
File without changes
languages/{toc+-sk_SK.po → table-of-contents-plus-sk_SK.po} RENAMED
File without changes
languages/{toc+-uk_UA.mo → table-of-contents-plus-uk_UA.mo} RENAMED
File without changes
languages/{toc+-uk_UA.po → table-of-contents-plus-uk_UA.po} RENAMED
File without changes
languages/{toc+-zh_CN.mo → table-of-contents-plus-zh_CN.mo} RENAMED
File without changes
languages/{toc+-zh_CN.po → table-of-contents-plus-zh_CN.po} RENAMED
File without changes
languages/{toc+.pot → table-of-contents-plus.pot} RENAMED
File without changes
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: conjur3r
3
  Tags: table of contents, indexes, toc, sitemap, cms, options, list, page listing, category listing
4
  Requires at least: 3.2
5
- Tested up to: 4.3
6
- Stable tag: 1509
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -24,8 +24,13 @@ Prefer to include the index in the sidebar? Go to Appearance > Widgets and drag
24
 
25
  Custom post types are supported, however, auto insertion works only when the_content() has been used by the custom post type. Each post type will appear in the options panel, so enable the ones you want.
26
 
 
 
27
  = Available Languages =
 
 
28
  * Australian English (default)
 
29
  * Danish - [Cupunu](http://cupunu.dk/)
30
  * Dutch - [Renee](http://101themes.com/)
31
  * French - Jean-Michel Duriez
@@ -36,12 +41,9 @@ Custom post types are supported, however, auto insertion works only when the_con
36
  * Polish - [Jakub](http://notatki.4use.pl/)
37
  * Simplified Chinese - Jason
38
  * Slovak - Boris Gereg
 
39
  * Ukrainian - [Michael Yunat](http://www.iphostmonitor.com/)
40
 
41
- Translations are more than welcome. If you have any advice in making it easier to translate, please let me know.
42
-
43
- If you have questions or suggestions, please place them at [http://dublue.com/plugins/toc/](http://dublue.com/plugins/toc/)
44
-
45
 
46
  == Screenshots ==
47
 
@@ -115,6 +117,16 @@ I will never ask for any form of reward or compensation. Helping others achieve
115
 
116
 
117
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
118
  = 1509 =
119
  * Released: 4 September 2015
120
  * Added Hebrew translation thanks to [Ahrale](http://atar4u.com/)
2
  Contributors: conjur3r
3
  Tags: table of contents, indexes, toc, sitemap, cms, options, list, page listing, category listing
4
  Requires at least: 3.2
5
+ Tested up to: 4.4
6
+ Stable tag: 1601
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
24
 
25
  Custom post types are supported, however, auto insertion works only when the_content() has been used by the custom post type. Each post type will appear in the options panel, so enable the ones you want.
26
 
27
+ Collaborate, participate, fork this plugin on [Github](https://github.com/zedzedzed/table-of-contents-plus/). Reach out on Github or place them at [http://dublue.com/plugins/toc/](http://dublue.com/plugins/toc/)
28
+
29
  = Available Languages =
30
+ This plugin is being migrated towards [Translation Packs](https://translate.wordpress.org/projects/wp-plugins/table-of-contents-plus) and older .mo and .po files are no longer being accepted. When a translation reaches maturity, the bundled language files will be removed from the distribution in favour of the Translation Pack.
31
+
32
  * Australian English (default)
33
+ * Brazilian Portuguese - [Blog de Niterói](https://twitter.com/BlogNiteroi/)
34
  * Danish - [Cupunu](http://cupunu.dk/)
35
  * Dutch - [Renee](http://101themes.com/)
36
  * French - Jean-Michel Duriez
41
  * Polish - [Jakub](http://notatki.4use.pl/)
42
  * Simplified Chinese - Jason
43
  * Slovak - Boris Gereg
44
+ * Spanish - [David Saiz](https://davidsaiz.com/)
45
  * Ukrainian - [Michael Yunat](http://www.iphostmonitor.com/)
46
 
 
 
 
 
47
 
48
  == Screenshots ==
49
 
117
 
118
 
119
  == Changelog ==
120
+ = 1601 =
121
+ * Released: 5 January 2016
122
+ * Bump tested WordPress version to 4.4
123
+ * Add 'enable' and 'disable' API functions so a developer can better control the execution.
124
+ * Add Brazilian Portuguese translation thanks to [Blog de Niterói](https://twitter.com/BlogNiteroi/)
125
+ * Add Spanish translation thanks to [David Saiz](https://davidsaiz.com/)
126
+ * TOC+ widget now adheres to a blank title if none provided. Thanks to [Dirk](http://dublue.com/plugins/toc/comment-page-11/#comment-5140) for the cue.
127
+ * Updated jQuery Smooth Scroll 1.5.5 to 1.6.0
128
+ * Updated text domain to better support translation packs.
129
+
130
  = 1509 =
131
  * Released: 4 September 2015
132
  * Added Hebrew translation thanks to [Ahrale](http://atar4u.com/)
toc.php CHANGED
@@ -5,11 +5,13 @@ 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: 1509
 
 
9
  License: GPL2
10
  */
11
 
12
- /* Copyright 2015 Michael Tran (michael@dublue.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
@@ -165,6 +167,24 @@ if ( !class_exists( 'toc' ) ) :
165
  {
166
  $this->options = array_merge($this->options, $array);
167
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
 
170
  public function set_show_toc_in_widget_only( $value = false )
@@ -198,7 +218,7 @@ if ( !class_exists( 'toc' ) ) :
198
  function plugin_action_links( $links, $file )
199
  {
200
  if ( $file == 'table-of-contents-plus/' . basename(__FILE__) ) {
201
- $settings_link = '<a href="options-general.php?page=toc">' . __('Settings', 'toc+') . '</a>';
202
  $links = array_merge( array( $settings_link ), $links );
203
  }
204
  return $links;
@@ -462,7 +482,7 @@ if ( !class_exists( 'toc' ) ) :
462
 
463
  function plugins_loaded()
464
  {
465
- load_plugin_textdomain( 'toc+', false, dirname(plugin_basename(__FILE__)) . '/languages/' );
466
  }
467
 
468
 
@@ -477,8 +497,8 @@ if ( !class_exists( 'toc' ) ) :
477
  {
478
  $page = add_submenu_page(
479
  'options-general.php',
480
- __('TOC', 'toc+') . '+',
481
- __('TOC', 'toc+') . '+',
482
  'manage_options',
483
  'toc',
484
  array(&$this, 'admin_options')
@@ -648,9 +668,9 @@ if ( !class_exists( 'toc' ) ) :
648
 
649
  if ( isset( $_GET['update'] ) ) {
650
  if ( $this->save_admin_options() )
651
- $msg = '<div id="message" class="updated fade"><p>' . __('Options saved.', 'toc+') . '</p></div>';
652
  else
653
- $msg = '<div id="message" class="error fade"><p>' . __('Save failed.', 'toc+') . '</p></div>';
654
  }
655
 
656
  ?>
@@ -662,9 +682,9 @@ if ( !class_exists( 'toc' ) ) :
662
  <?php wp_nonce_field( plugin_basename(__FILE__), 'toc-admin-options' ); ?>
663
 
664
  <ul id="tabbed-nav">
665
- <li><a href="#tab1"><?php _e('Main Options', 'toc+'); ?></a></li>
666
- <li><a href="#tab2"><?php _e('Sitemap', 'toc+'); ?></a></li>
667
- <li class="url"><a href="http://dublue.com/plugins/toc/#Help"><?php _e('Help', 'toc+'); ?></a></li>
668
  </ul>
669
  <div class="tab_container">
670
  <div id="tab1" class="tab_content">
@@ -672,18 +692,18 @@ if ( !class_exists( 'toc' ) ) :
672
  <table class="form-table">
673
  <tbody>
674
  <tr>
675
- <th><label for="position"><?php _e('Position', 'toc+'); ?></label></th>
676
  <td>
677
  <select name="position" id="position">
678
- <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>
679
- <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>
680
- <option value="<?php echo TOC_POSITION_TOP; ?>"<?php if ( TOC_POSITION_TOP == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Top', 'toc+'); ?></option>
681
- <option value="<?php echo TOC_POSITION_BOTTOM; ?>"<?php if ( TOC_POSITION_BOTTOM == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Bottom', 'toc+'); ?></option>
682
  </select>
683
  </td>
684
  </tr>
685
  <tr>
686
- <th><label for="start"><?php _e('Show when', 'toc+'); ?></label></th>
687
  <td>
688
  <select name="start" id="start">
689
  <?php
@@ -695,11 +715,11 @@ if ( !class_exists( 'toc' ) ) :
695
  ?>
696
  </select> <?php
697
  /* translators: text follows drop down list of numbers */
698
- _e('or more headings are present', 'toc+'); ?>
699
  </td>
700
  </tr>
701
  <tr>
702
- <th><?php _e('Auto insert for the following content types', 'toc+'); ?></th>
703
  <td><?php
704
  foreach (get_post_types() as $post_type) {
705
  // make sure the post type isn't on the exclusion list
@@ -714,61 +734,61 @@ if ( !class_exists( 'toc' ) ) :
714
  <tr>
715
  <th><label for="show_heading_text"><?php
716
  /* translators: this is the title of the table of contents */
717
- _e('Heading text', 'toc+'); ?></label></th>
718
  <td>
719
- <input type="checkbox" value="1" id="show_heading_text" name="show_heading_text"<?php if ( $this->options['show_heading_text'] ) echo ' checked="checked"'; ?> /><label for="show_heading_text"> <?php _e('Show title on top of the table of contents', 'toc+'); ?></label><br />
720
  <div class="more_toc_options<?php if ( !$this->options['show_heading_text'] ) echo ' disabled'; ?>">
721
  <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['heading_text'], ENT_COMPAT, 'UTF-8' ); ?>" id="heading_text" name="heading_text" />
722
- <span class="description"><label for="heading_text"><?php _e('Eg: Contents, Table of Contents, Page Contents', 'toc+'); ?></label></span><br /><br />
723
 
724
- <input type="checkbox" value="1" id="visibility" name="visibility"<?php if ( $this->options['visibility'] ) echo ' checked="checked"'; ?> /><label for="visibility"> <?php _e( 'Allow the user to toggle the visibility of the table of contents', 'toc+'); ?></label><br />
725
  <div class="more_toc_options<?php if ( !$this->options['visibility'] ) echo ' disabled'; ?>">
726
  <table class="more_toc_options_table">
727
  <tbody>
728
  <tr>
729
- <th><label for="visibility_show"><?php _e('Show text', 'toc+'); ?></label></th>
730
  <td><input type="text" class="" value="<?php echo htmlentities( $this->options['visibility_show'], ENT_COMPAT, 'UTF-8' ); ?>" id="visibility_show" name="visibility_show" />
731
  <span class="description"><label for="visibility_show"><?php
732
  /* translators: example text to display when you want to expand the table of contents */
733
- _e('Eg: show', 'toc+'); ?></label></span></td>
734
  </tr>
735
  <tr>
736
- <th><label for="visibility_hide"><?php _e('Hide text', 'toc+'); ?></label></th>
737
  <td><input type="text" class="" value="<?php echo htmlentities( $this->options['visibility_hide'], ENT_COMPAT, 'UTF-8' ); ?>" id="visibility_hide" name="visibility_hide" />
738
  <span class="description"><label for="visibility_hide"><?php
739
  /* translators: example text to display when you want to collapse the table of contents */
740
- _e('Eg: hide', 'toc+'); ?></label></span></td>
741
  </tr>
742
  </tbody>
743
  </table>
744
- <input type="checkbox" value="1" id="visibility_hide_by_default" name="visibility_hide_by_default"<?php if ( $this->options['visibility_hide_by_default'] ) echo ' checked="checked"'; ?> /><label for="visibility_hide_by_default"> <?php _e( 'Hide the table of contents initially', 'toc+'); ?></label>
745
  </div>
746
  </div>
747
  </td>
748
  </tr>
749
  <tr>
750
- <th><label for="show_heirarchy"><?php _e('Show hierarchy', 'toc+'); ?></label></th>
751
  <td><input type="checkbox" value="1" id="show_heirarchy" name="show_heirarchy"<?php if ( $this->options['show_heirarchy'] ) echo ' checked="checked"'; ?> /></td>
752
  </tr>
753
  <tr>
754
- <th><label for="ordered_list"><?php _e('Number list items', 'toc+'); ?></label></th>
755
  <td><input type="checkbox" value="1" id="ordered_list" name="ordered_list"<?php if ( $this->options['ordered_list'] ) echo ' checked="checked"'; ?> /></td>
756
  </tr>
757
  <tr>
758
- <th><label for="smooth_scroll"><?php _e('Enable smooth scroll effect', 'toc+'); ?></label></th>
759
- <td><input type="checkbox" value="1" id="smooth_scroll" name="smooth_scroll"<?php if ( $this->options['smooth_scroll'] ) echo ' checked="checked"'; ?> /><label for="smooth_scroll"> <?php _e( 'Scroll rather than jump to the anchor link', 'toc+'); ?></label></td>
760
  </tr>
761
  </tbody>
762
  </table>
763
 
764
- <h3><?php _e('Appearance', 'toc+'); ?></h3>
765
  <table class="form-table">
766
  <tbody>
767
  <tr>
768
- <th><label for="width"><?php _e('Width', 'toc+'); ?></label></td>
769
  <td>
770
  <select name="width" id="width">
771
- <optgroup label="<?php _e('Fixed width', 'toc+'); ?>">
772
  <option value="200px"<?php if ( '200px' == $this->options['width'] ) echo ' selected="selected"'; ?>>200px</option>
773
  <option value="225px"<?php if ( '225px' == $this->options['width'] ) echo ' selected="selected"'; ?>>225px</option>
774
  <option value="250px"<?php if ( '250px' == $this->options['width'] ) echo ' selected="selected"'; ?>>250px</option>
@@ -779,8 +799,8 @@ if ( !class_exists( 'toc' ) ) :
779
  <option value="375px"<?php if ( '375px' == $this->options['width'] ) echo ' selected="selected"'; ?>>375px</option>
780
  <option value="400px"<?php if ( '400px' == $this->options['width'] ) echo ' selected="selected"'; ?>>400px</option>
781
  </optgroup>
782
- <optgroup label="<?php _e('Relative', 'toc+'); ?>">
783
- <option value="Auto"<?php if ( 'Auto' == $this->options['width'] ) echo ' selected="selected"'; ?>><?php _e('Auto (default)', 'toc+'); ?></option>
784
  <option value="25%"<?php if ( '25%' == $this->options['width'] ) echo ' selected="selected"'; ?>>25%</option>
785
  <option value="33%"<?php if ( '33%' == $this->options['width'] ) echo ' selected="selected"'; ?>>33%</option>
786
  <option value="50%"<?php if ( '50%' == $this->options['width'] ) echo ' selected="selected"'; ?>>50%</option>
@@ -790,14 +810,14 @@ if ( !class_exists( 'toc' ) ) :
790
  </optgroup>
791
  <optgroup label="<?php
792
  /* translators: other width */
793
- _e('Other', 'toc+'); ?>">
794
- <option value="User defined"<?php if ( 'User defined' == $this->options['width'] ) echo ' selected="selected"'; ?>><?php _e('User defined', 'toc+'); ?></option>
795
  </optgroup>
796
  </select>
797
  <div class="more_toc_options<?php if ( 'User defined' != $this->options['width'] ) echo ' disabled'; ?>">
798
  <label for="width_custom"><?php
799
  /* translators: ignore %s as it's some HTML label tags */
800
- printf( __('Please enter a number and %s select its units, eg: 100px, 10em', 'toc+'), '</label><label for="width_custom_units">' ); ?></label><br />
801
  <input type="text" class="regular-text" value="<?php echo floatval($this->options['width_custom']); ?>" id="width_custom" name="width_custom" />
802
  <select name="width_custom_units" id="width_custom_units">
803
  <option value="px"<?php if ( 'px' == $this->options['width_custom_units'] ) echo ' selected="selected"'; ?>>px</option>
@@ -808,17 +828,17 @@ if ( !class_exists( 'toc' ) ) :
808
  </td>
809
  </tr>
810
  <tr>
811
- <th><label for="wrapping"><?php _e('Wrapping', 'toc+'); ?></label></td>
812
  <td>
813
  <select name="wrapping" id="wrapping">
814
- <option value="<?php echo TOC_WRAPPING_NONE; ?>"<?php if ( TOC_WRAPPING_NONE == $this->options['wrapping'] ) echo ' selected="selected"'; ?>><?php _e('None (default)', 'toc+'); ?></option>
815
- <option value="<?php echo TOC_WRAPPING_LEFT; ?>"<?php if ( TOC_WRAPPING_LEFT == $this->options['wrapping'] ) echo ' selected="selected"'; ?>><?php _e('Left', 'toc+'); ?></option>
816
- <option value="<?php echo TOC_WRAPPING_RIGHT; ?>"<?php if ( TOC_WRAPPING_RIGHT == $this->options['wrapping'] ) echo ' selected="selected"'; ?>><?php _e('Right', 'toc+'); ?></option>
817
  </select>
818
  </td>
819
  </tr>
820
  <tr>
821
- <th><label for="font_size"><?php _e('Font size', 'toc+'); ?></label></th>
822
  <td>
823
  <input type="text" class="regular-text" value="<?php echo floatval($this->options['font_size']); ?>" id="font_size" name="font_size" />
824
  <select name="font_size_units" id="font_size_units">
@@ -831,35 +851,35 @@ if ( !class_exists( 'toc' ) ) :
831
  <tr>
832
  <th><?php
833
  /* translators: appearance / colour / look and feel options */
834
- _e('Presentation', 'toc+'); ?></th>
835
  <td>
836
  <div class="toc_theme_option">
837
- <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_GREY; ?>" value="<?php echo TOC_THEME_GREY; ?>"<?php if ( $this->options['theme'] == TOC_THEME_GREY ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_GREY; ?>"> <?php _e('Grey (default)', 'toc+'); ?><br />
838
  <img src="<?php echo $this->path; ?>/images/grey.png" alt="" />
839
  </label>
840
  </div>
841
  <div class="toc_theme_option">
842
- <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_LIGHT_BLUE; ?>" value="<?php echo TOC_THEME_LIGHT_BLUE; ?>"<?php if ( $this->options['theme'] == TOC_THEME_LIGHT_BLUE ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_LIGHT_BLUE; ?>"> <?php _e('Light blue', 'toc+'); ?><br />
843
  <img src="<?php echo $this->path; ?>/images/blue.png" alt="" />
844
  </label>
845
  </div>
846
  <div class="toc_theme_option">
847
- <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_WHITE; ?>" value="<?php echo TOC_THEME_WHITE; ?>"<?php if ( $this->options['theme'] == TOC_THEME_WHITE ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_WHITE; ?>"> <?php _e('White', 'toc+'); ?><br />
848
  <img src="<?php echo $this->path; ?>/images/white.png" alt="" />
849
  </label>
850
  </div>
851
  <div class="toc_theme_option">
852
- <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_BLACK; ?>" value="<?php echo TOC_THEME_BLACK; ?>"<?php if ( $this->options['theme'] == TOC_THEME_BLACK ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_BLACK; ?>"> <?php _e('Black', 'toc+'); ?><br />
853
  <img src="<?php echo $this->path; ?>/images/black.png" alt="" />
854
  </label>
855
  </div>
856
  <div class="toc_theme_option">
857
- <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_TRANSPARENT; ?>" value="<?php echo TOC_THEME_TRANSPARENT; ?>"<?php if ( $this->options['theme'] == TOC_THEME_TRANSPARENT ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_TRANSPARENT; ?>"> <?php _e('Transparent', 'toc+'); ?><br />
858
  <img src="<?php echo $this->path; ?>/images/transparent.png" alt="" />
859
  </label>
860
  </div>
861
  <div class="toc_theme_option">
862
- <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_CUSTOM; ?>" value="<?php echo TOC_THEME_CUSTOM; ?>"<?php if ( $this->options['theme'] == TOC_THEME_CUSTOM ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_CUSTOM; ?>"> <?php _e('Custom', 'toc+'); ?><br />
863
  <img src="<?php echo $this->path; ?>/images/custom.png" alt="" />
864
  </label>
865
  </div>
@@ -869,69 +889,69 @@ if ( !class_exists( 'toc' ) ) :
869
  <table id="theme_custom" class="more_toc_options_table">
870
  <tbody>
871
  <tr>
872
- <th><label for="custom_background_colour"><?php _e('Background', 'toc+'); ?></label></th>
873
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_background_colour'] ); ?>" id="custom_background_colour" name="custom_background_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
874
  </tr>
875
  <tr>
876
- <th><label for="custom_border_colour"><?php _e('Border', 'toc+'); ?></label></th>
877
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_border_colour'] ); ?>" id="custom_border_colour" name="custom_border_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
878
  </tr>
879
  <tr>
880
- <th><label for="custom_title_colour"><?php _e('Title', 'toc+'); ?></label></th>
881
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_title_colour'] ); ?>" id="custom_title_colour" name="custom_title_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
882
  </tr>
883
  <tr>
884
- <th><label for="custom_links_colour"><?php _e('Links', 'toc+'); ?></label></th>
885
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_links_colour'] ); ?>" id="custom_links_colour" name="custom_links_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
886
  </tr>
887
  <tr>
888
- <th><label for="custom_links_hover_colour"><?php _e('Links (hover)', 'toc+'); ?></label></th>
889
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_links_hover_colour'] ); ?>" id="custom_links_hover_colour" name="custom_links_hover_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
890
  </tr>
891
  <tr>
892
- <th><label for="custom_links_visited_colour"><?php _e('Links (visited)', 'toc+'); ?></label></th>
893
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_links_visited_colour'] ); ?>" id="custom_links_visited_colour" name="custom_links_visited_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
894
  </tr>
895
  </tbody>
896
  </table>
897
  <div id="farbtastic_colour_wheel"></div>
898
  <div class="clear"></div>
899
- <p><?php printf(__("Leaving the value as %s will inherit your theme's styles", 'toc+'), '<code>#</code>'); ?></p>
900
  </div>
901
  </td>
902
  </tr>
903
  </tbody>
904
  </table>
905
 
906
- <h3><?php _e('Advanced', 'toc+'); ?> <span class="show_hide">(<a href="#toc_advanced_usage"><?php _e('show', 'toc+'); ?></a>)</span></h3>
907
  <div id="toc_advanced_usage">
908
- <h4><?php _e('Power options', 'toc+'); ?></h4>
909
  <table class="form-table">
910
  <tbody>
911
  <tr>
912
- <th><label for="lowercase"><?php _e('Lowercase', 'toc+'); ?></label></th>
913
- <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>
914
  </tr>
915
  <tr>
916
- <th><label for="hyphenate"><?php _e('Hyphenate', 'toc+'); ?></label></th>
917
- <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>
918
  </tr>
919
  <tr>
920
- <th><label for="include_homepage"><?php _e('Include homepage', 'toc+'); ?></label></th>
921
- <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>
922
  </tr>
923
  <tr>
924
- <th><label for="exclude_css"><?php _e('Exclude CSS file', 'toc+'); ?></label></th>
925
- <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>
926
  </tr>
927
  <tr>
928
- <th><label for="bullet_spacing"><?php _e('Preserve theme bullets', 'toc+'); ?></label></th>
929
- <td><input type="checkbox" value="1" id="bullet_spacing" name="bullet_spacing"<?php if ( $this->options['bullet_spacing'] ) echo ' checked="checked"'; ?> /><label for="bullet_spacing"> <?php _e('If your theme includes background images for unordered list elements, enable this to support them', 'toc+'); ?></label></td>
930
  </tr>
931
  <tr>
932
- <th><?php _e('Heading levels', 'toc+'); ?></th>
933
  <td>
934
- <p><?php _e('Include the following heading levels. Deselecting a heading will exclude it.', 'toc+'); ?></p>
935
  <?php
936
  // show heading 1 to 6 options
937
  for ($i = 1; $i <= 6; $i++) {
@@ -943,43 +963,43 @@ if ( !class_exists( 'toc' ) ) :
943
  </td>
944
  </tr>
945
  <tr>
946
- <th><label for="exclude"><?php _e('Exclude headings', 'toc+'); ?></label></th>
947
  <td>
948
  <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['exclude'], ENT_COMPAT, 'UTF-8' ); ?>" id="exclude" name="exclude" style="width: 100%;" /><br />
949
- <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/>
950
  <ul>
951
- <li><?php _e('<code>Fruit*</code> ignore headings starting with "Fruit"', 'toc+'); ?></li>
952
- <li><?php _e('<code>*Fruit Diet*</code> ignore headings with "Fruit Diet" somewhere in the heading', 'toc+'); ?></li>
953
- <li><?php _e('<code>Apple Tree|Oranges|Yellow Bananas</code> ignore headings that are exactly "Apple Tree", "Oranges" or "Yellow Bananas"', 'toc+'); ?></li>
954
  </ul>
955
  </td>
956
  </tr>
957
  <tr id="smooth_scroll_offset_tr" class="<?php if ( !$this->options['smooth_scroll'] ) echo 'disabled'; ?>">
958
- <th><label for="smooth_scroll_offset"><?php _e('Smooth scroll top offset', 'toc+'); ?></label></th>
959
  <td>
960
  <input type="text" class="regular-text" value="<?php echo intval($this->options['smooth_scroll_offset']); ?>" id="smooth_scroll_offset" name="smooth_scroll_offset" /> px<br />
961
- <label for="smooth_scroll_offset"><?php _e('If you have a consistent menu across the top of your site, you can adjust the top offset to stop the headings from appearing underneath the top menu. A setting of 30 accommodates the WordPress admin bar. This setting appears after you have enabled smooth scrolling from above.', 'toc+'); ?></label>
962
  </td>
963
  </tr>
964
  <tr>
965
- <th><label for="restrict_path"><?php _e('Restrict path', 'toc+'); ?></label></th>
966
  <td>
967
  <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['restrict_path'], ENT_COMPAT, 'UTF-8' ); ?>" id="restrict_path" name="restrict_path" /><br />
968
- <label for="restrict_path"><?php _e('Restrict generation of the table of contents to pages that match the required path. This path is from the root of your site and always begins with a forward slash.', 'toc+'); ?><br />
969
  <span class="description"><?php
970
  /* translators: example URL path restriction */
971
- _e('Eg: /wiki/, /corporate/annual-reports/', 'toc+'); ?></span></label>
972
  </td>
973
  </tr>
974
  <tr>
975
- <th><label for="fragment_prefix"><?php _e('Default anchor prefix', 'toc+'); ?></label></th>
976
  <td>
977
  <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['fragment_prefix'], ENT_COMPAT, 'UTF-8' ); ?>" id="fragment_prefix" name="fragment_prefix" /><br />
978
- <label for="fragment_prefix"><?php _e('Anchor targets are restricted to alphanumeric characters as per HTML specification (see readme for more detail). The default anchor prefix will be used when no characters qualify. When left blank, a number will be used instead.', 'toc+'); ?><br />
979
- <?php _e('This option normally applies to content written in character sets other than ASCII.', 'toc+'); ?><br />
980
  <span class="description"><?php
981
  /* translators: example anchor prefixes when no ascii characters match */
982
- _e('Eg: i, toc_index, index, _', 'toc+'); ?></span></label>
983
  </td>
984
  </tr>
985
  </tbody>
@@ -987,8 +1007,8 @@ if ( !class_exists( 'toc' ) ) :
987
 
988
  <h4><?php
989
  /* translators: advanced usage */
990
- _e('Usage', 'toc+'); ?></h4>
991
- <p><?php printf(__('If you would like to fully customise the position of the table of contents, you can use the %s shortcode by placing it at the desired position of your post, page or custom post type. This method allows you to generate the table of contents despite having auto insertion disabled for its content type. Please visit the help tab for further information about this shortcode.', 'toc+'), '<code>[toc]</code>'); ?></p>
992
  </div>
993
 
994
 
@@ -996,22 +1016,22 @@ if ( !class_exists( 'toc' ) ) :
996
  <div id="tab2" class="tab_content">
997
 
998
 
999
- <p><?php printf(__('At its simplest, placing %s into a page will automatically create a sitemap of all pages and categories. This also works in a text widget.', 'toc+'), '<code>[sitemap]</code>'); ?></p>
1000
  <table class="form-table">
1001
  <tbody>
1002
  <tr>
1003
- <th><label for="sitemap_show_page_listing"><?php _e('Show page listing', 'toc+'); ?></label></th>
1004
  <td><input type="checkbox" value="1" id="sitemap_show_page_listing" name="sitemap_show_page_listing"<?php if ( $this->options['sitemap_show_page_listing'] ) echo ' checked="checked"'; ?> /></td>
1005
  </tr>
1006
  <tr>
1007
- <th><label for="sitemap_show_category_listing"><?php _e('Show category listing', 'toc+'); ?></label></th>
1008
  <td><input type="checkbox" value="1" id="sitemap_show_category_listing" name="sitemap_show_category_listing"<?php if ( $this->options['sitemap_show_category_listing'] ) echo ' checked="checked"'; ?> /></td>
1009
  </tr>
1010
  <tr>
1011
- <th><label for="sitemap_heading_type"><?php _e('Heading type', 'toc+'); ?></label></th>
1012
  <td><label for="sitemap_heading_type"><?php
1013
  /* translators: the full line is supposed to read - Use [1-6 drop down list] to print out the titles */
1014
- _e('Use', 'toc+'); ?> h</label><select name="sitemap_heading_type" id="sitemap_heading_type">
1015
  <?php
1016
  // h1 to h6
1017
  for ($i = 1; $i <= 6; $i++) {
@@ -1022,31 +1042,31 @@ if ( !class_exists( 'toc' ) ) :
1022
  ?>
1023
  </select> <?php
1024
  /* translators: the full line is supposed to read - Use [h1-h6 drop down list] to print out the titles */
1025
- _e('to print out the titles', 'toc+'); ?>
1026
  </td>
1027
  </tr>
1028
  <tr>
1029
- <th><label for="sitemap_pages"><?php _e('Pages label', 'toc+'); ?></label></th>
1030
  <td><input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['sitemap_pages'], ENT_COMPAT, 'UTF-8' ); ?>" id="sitemap_pages" name="sitemap_pages" />
1031
- <span class="description"><?php _e('Eg: Pages, Page List', 'toc+'); ?></span>
1032
  </td>
1033
  </tr>
1034
  <tr>
1035
- <th><label for="sitemap_categories"><?php _e('Categories label', 'toc+'); ?></label></th>
1036
  <td><input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['sitemap_categories'], ENT_COMPAT, 'UTF-8' ); ?>" id="sitemap_categories" name="sitemap_categories" />
1037
- <span class="description"><?php _e('Eg: Categories, Category List', 'toc+'); ?></span>
1038
  </td>
1039
  </tr>
1040
  </tbody>
1041
  </table>
1042
 
1043
- <h3><?php _e('Advanced usage', 'toc+'); ?> <span class="show_hide">(<a href="#sitemap_advanced_usage"><?php _e('show', 'toc+'); ?></a>)</span></h3>
1044
  <div id="sitemap_advanced_usage">
1045
- <p><code>[sitemap_pages]</code> <?php printf(__('lets you print out a listing of only pages. Similarly %s can be used to print out a category listing. They both can accept a number of attributes so visit the help tab for more information.', 'toc+'), '<code>[sitemap_categories]</code>'); ?></p>
1046
- <p><?php _e('Examples', 'toc+'); ?></p>
1047
  <ol>
1048
- <li><code>[sitemap_categories no_label="true"]</code> <?php _e('hides the heading from a category listing', 'toc+'); ?></li>
1049
- <li><code>[sitemap_pages heading="6" label="This is an awesome listing" exclude="1,15"]</code> <?php printf(__('Uses h6 to display %s on a page listing excluding pages with IDs 1 and 15', 'toc+'), '<em>This is an awesome listing</em>'); ?></li>
1050
  </ol>
1051
  </div>
1052
 
@@ -1055,7 +1075,7 @@ if ( !class_exists( 'toc' ) ) :
1055
  </div>
1056
 
1057
 
1058
- <p class="submit"><input type="submit" name="submit" class="button-primary" value="<?php _e('Update Options', 'toc+'); ?>" /></p>
1059
  </form>
1060
  </div>
1061
  <?php
@@ -1561,7 +1581,7 @@ if ( !class_exists( 'toc_widget' ) ) :
1561
  {
1562
  $widget_options = array(
1563
  'classname' => 'toc_widget',
1564
- 'description' => __('Display the table of contents in the sidebar with this widget', 'toc+')
1565
  );
1566
  $control_options = array(
1567
  'width' => 250,
@@ -1606,12 +1626,11 @@ if ( !class_exists( 'toc_widget' ) ) :
1606
  // before widget (defined by themes)
1607
  echo $before_widget;
1608
 
1609
- // display the widget title if one was input (before and after defined by themes)
1610
- if ( !$title ) $title = $toc_options['heading_text'];
1611
- echo
1612
- $before_title . $title . $after_title .
1613
- '<ul class="toc_widget_list' . $css_classes . '">' . $items . '</ul>'
1614
- ;
1615
 
1616
  // after widget (defined by themes)
1617
  echo $after_widget;
@@ -1630,7 +1649,7 @@ if ( !class_exists( 'toc_widget' ) ) :
1630
  $instance = $old_instance;
1631
 
1632
  // strip tags for title to remove HTML (important for text inputs)
1633
- $instance['title'] = strip_tags( $new_instance['title'] );
1634
 
1635
  // no need to strip tags for the following
1636
  //$instance['hide_inline'] = $new_instance['hide_inline'];
@@ -1650,23 +1669,23 @@ if ( !class_exists( 'toc_widget' ) ) :
1650
  $toc_options = $tic->get_options();
1651
 
1652
  $defaults = array(
1653
- 'title' => ''
1654
  );
1655
  $instance = wp_parse_args( (array)$instance, $defaults );
1656
 
1657
  ?>
1658
  <p>
1659
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title', 'toc+'); ?>:</label>
1660
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
1661
  </p>
1662
 
1663
  <p>
1664
  <input class="checkbox" type="checkbox" <?php checked( $toc_options['show_toc_in_widget_only'], 1 ); ?> id="<?php echo $this->get_field_id( 'hide_inline' ); ?>" name="<?php echo $this->get_field_name( 'hide_inline' ); ?>" value="1" />
1665
- <label for="<?php echo $this->get_field_id( 'hide_inline' ); ?>"> <?php _e('Show the table of contents only in the sidebar', 'toc+'); ?></label>
1666
  </p>
1667
 
1668
  <div class="show_toc_in_widget_only_post_types" style="margin: 0 0 25px 25px; display: <?php echo ( $toc_options['show_toc_in_widget_only'] == 1 ) ? 'block' : 'none'; ?>;">
1669
- <p><?php _e('For the following content types:', 'toc+'); ?></p>
1670
 
1671
  <?php
1672
  foreach (get_post_types() as $post_type) {
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
+ Text Domain: table-of-contents-plus
9
+ Domain Path: /languages
10
+ Version: 1601
11
  License: GPL2
12
  */
13
 
14
+ /* Copyright 2016 Michael Tran (michael@dublue.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
167
  {
168
  $this->options = array_merge($this->options, $array);
169
  }
170
+
171
+
172
+ /**
173
+ * Allows the developer to disable TOC execution
174
+ */
175
+ public function disable()
176
+ {
177
+ $this->show_toc = false;
178
+ }
179
+
180
+
181
+ /**
182
+ * Allows the developer to enable TOC execution
183
+ */
184
+ public function enable()
185
+ {
186
+ $this->show_toc = true;
187
+ }
188
 
189
 
190
  public function set_show_toc_in_widget_only( $value = false )
218
  function plugin_action_links( $links, $file )
219
  {
220
  if ( $file == 'table-of-contents-plus/' . basename(__FILE__) ) {
221
+ $settings_link = '<a href="options-general.php?page=toc">' . __('Settings', 'table-of-contents-plus') . '</a>';
222
  $links = array_merge( array( $settings_link ), $links );
223
  }
224
  return $links;
482
 
483
  function plugins_loaded()
484
  {
485
+ load_plugin_textdomain( 'table-of-contents-plus', false, dirname(plugin_basename(__FILE__)) . '/languages/' );
486
  }
487
 
488
 
497
  {
498
  $page = add_submenu_page(
499
  'options-general.php',
500
+ __('TOC', 'table-of-contents-plus') . '+',
501
+ __('TOC', 'table-of-contents-plus') . '+',
502
  'manage_options',
503
  'toc',
504
  array(&$this, 'admin_options')
668
 
669
  if ( isset( $_GET['update'] ) ) {
670
  if ( $this->save_admin_options() )
671
+ $msg = '<div id="message" class="updated fade"><p>' . __('Options saved.', 'table-of-contents-plus') . '</p></div>';
672
  else
673
+ $msg = '<div id="message" class="error fade"><p>' . __('Save failed.', 'table-of-contents-plus') . '</p></div>';
674
  }
675
 
676
  ?>
682
  <?php wp_nonce_field( plugin_basename(__FILE__), 'toc-admin-options' ); ?>
683
 
684
  <ul id="tabbed-nav">
685
+ <li><a href="#tab1"><?php _e('Main Options', 'table-of-contents-plus'); ?></a></li>
686
+ <li><a href="#tab2"><?php _e('Sitemap', 'table-of-contents-plus'); ?></a></li>
687
+ <li class="url"><a href="http://dublue.com/plugins/toc/#Help"><?php _e('Help', 'table-of-contents-plus'); ?></a></li>
688
  </ul>
689
  <div class="tab_container">
690
  <div id="tab1" class="tab_content">
692
  <table class="form-table">
693
  <tbody>
694
  <tr>
695
+ <th><label for="position"><?php _e('Position', 'table-of-contents-plus'); ?></label></th>
696
  <td>
697
  <select name="position" id="position">
698
+ <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)', 'table-of-contents-plus'); ?></option>
699
+ <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', 'table-of-contents-plus'); ?></option>
700
+ <option value="<?php echo TOC_POSITION_TOP; ?>"<?php if ( TOC_POSITION_TOP == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Top', 'table-of-contents-plus'); ?></option>
701
+ <option value="<?php echo TOC_POSITION_BOTTOM; ?>"<?php if ( TOC_POSITION_BOTTOM == $this->options['position'] ) echo ' selected="selected"'; ?>><?php _e('Bottom', 'table-of-contents-plus'); ?></option>
702
  </select>
703
  </td>
704
  </tr>
705
  <tr>
706
+ <th><label for="start"><?php _e('Show when', 'table-of-contents-plus'); ?></label></th>
707
  <td>
708
  <select name="start" id="start">
709
  <?php
715
  ?>
716
  </select> <?php
717
  /* translators: text follows drop down list of numbers */
718
+ _e('or more headings are present', 'table-of-contents-plus'); ?>
719
  </td>
720
  </tr>
721
  <tr>
722
+ <th><?php _e('Auto insert for the following content types', 'table-of-contents-plus'); ?></th>
723
  <td><?php
724
  foreach (get_post_types() as $post_type) {
725
  // make sure the post type isn't on the exclusion list
734
  <tr>
735
  <th><label for="show_heading_text"><?php
736
  /* translators: this is the title of the table of contents */
737
+ _e('Heading text', 'table-of-contents-plus'); ?></label></th>
738
  <td>
739
+ <input type="checkbox" value="1" id="show_heading_text" name="show_heading_text"<?php if ( $this->options['show_heading_text'] ) echo ' checked="checked"'; ?> /><label for="show_heading_text"> <?php _e('Show title on top of the table of contents', 'table-of-contents-plus'); ?></label><br />
740
  <div class="more_toc_options<?php if ( !$this->options['show_heading_text'] ) echo ' disabled'; ?>">
741
  <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['heading_text'], ENT_COMPAT, 'UTF-8' ); ?>" id="heading_text" name="heading_text" />
742
+ <span class="description"><label for="heading_text"><?php _e('Eg: Contents, Table of Contents, Page Contents', 'table-of-contents-plus'); ?></label></span><br /><br />
743
 
744
+ <input type="checkbox" value="1" id="visibility" name="visibility"<?php if ( $this->options['visibility'] ) echo ' checked="checked"'; ?> /><label for="visibility"> <?php _e( 'Allow the user to toggle the visibility of the table of contents', 'table-of-contents-plus'); ?></label><br />
745
  <div class="more_toc_options<?php if ( !$this->options['visibility'] ) echo ' disabled'; ?>">
746
  <table class="more_toc_options_table">
747
  <tbody>
748
  <tr>
749
+ <th><label for="visibility_show"><?php _e('Show text', 'table-of-contents-plus'); ?></label></th>
750
  <td><input type="text" class="" value="<?php echo htmlentities( $this->options['visibility_show'], ENT_COMPAT, 'UTF-8' ); ?>" id="visibility_show" name="visibility_show" />
751
  <span class="description"><label for="visibility_show"><?php
752
  /* translators: example text to display when you want to expand the table of contents */
753
+ _e('Eg: show', 'table-of-contents-plus'); ?></label></span></td>
754
  </tr>
755
  <tr>
756
+ <th><label for="visibility_hide"><?php _e('Hide text', 'table-of-contents-plus'); ?></label></th>
757
  <td><input type="text" class="" value="<?php echo htmlentities( $this->options['visibility_hide'], ENT_COMPAT, 'UTF-8' ); ?>" id="visibility_hide" name="visibility_hide" />
758
  <span class="description"><label for="visibility_hide"><?php
759
  /* translators: example text to display when you want to collapse the table of contents */
760
+ _e('Eg: hide', 'table-of-contents-plus'); ?></label></span></td>
761
  </tr>
762
  </tbody>
763
  </table>
764
+ <input type="checkbox" value="1" id="visibility_hide_by_default" name="visibility_hide_by_default"<?php if ( $this->options['visibility_hide_by_default'] ) echo ' checked="checked"'; ?> /><label for="visibility_hide_by_default"> <?php _e( 'Hide the table of contents initially', 'table-of-contents-plus'); ?></label>
765
  </div>
766
  </div>
767
  </td>
768
  </tr>
769
  <tr>
770
+ <th><label for="show_heirarchy"><?php _e('Show hierarchy', 'table-of-contents-plus'); ?></label></th>
771
  <td><input type="checkbox" value="1" id="show_heirarchy" name="show_heirarchy"<?php if ( $this->options['show_heirarchy'] ) echo ' checked="checked"'; ?> /></td>
772
  </tr>
773
  <tr>
774
+ <th><label for="ordered_list"><?php _e('Number list items', 'table-of-contents-plus'); ?></label></th>
775
  <td><input type="checkbox" value="1" id="ordered_list" name="ordered_list"<?php if ( $this->options['ordered_list'] ) echo ' checked="checked"'; ?> /></td>
776
  </tr>
777
  <tr>
778
+ <th><label for="smooth_scroll"><?php _e('Enable smooth scroll effect', 'table-of-contents-plus'); ?></label></th>
779
+ <td><input type="checkbox" value="1" id="smooth_scroll" name="smooth_scroll"<?php if ( $this->options['smooth_scroll'] ) echo ' checked="checked"'; ?> /><label for="smooth_scroll"> <?php _e( 'Scroll rather than jump to the anchor link', 'table-of-contents-plus'); ?></label></td>
780
  </tr>
781
  </tbody>
782
  </table>
783
 
784
+ <h3><?php _e('Appearance', 'table-of-contents-plus'); ?></h3>
785
  <table class="form-table">
786
  <tbody>
787
  <tr>
788
+ <th><label for="width"><?php _e('Width', 'table-of-contents-plus'); ?></label></td>
789
  <td>
790
  <select name="width" id="width">
791
+ <optgroup label="<?php _e('Fixed width', 'table-of-contents-plus'); ?>">
792
  <option value="200px"<?php if ( '200px' == $this->options['width'] ) echo ' selected="selected"'; ?>>200px</option>
793
  <option value="225px"<?php if ( '225px' == $this->options['width'] ) echo ' selected="selected"'; ?>>225px</option>
794
  <option value="250px"<?php if ( '250px' == $this->options['width'] ) echo ' selected="selected"'; ?>>250px</option>
799
  <option value="375px"<?php if ( '375px' == $this->options['width'] ) echo ' selected="selected"'; ?>>375px</option>
800
  <option value="400px"<?php if ( '400px' == $this->options['width'] ) echo ' selected="selected"'; ?>>400px</option>
801
  </optgroup>
802
+ <optgroup label="<?php _e('Relative', 'table-of-contents-plus'); ?>">
803
+ <option value="Auto"<?php if ( 'Auto' == $this->options['width'] ) echo ' selected="selected"'; ?>><?php _e('Auto (default)', 'table-of-contents-plus'); ?></option>
804
  <option value="25%"<?php if ( '25%' == $this->options['width'] ) echo ' selected="selected"'; ?>>25%</option>
805
  <option value="33%"<?php if ( '33%' == $this->options['width'] ) echo ' selected="selected"'; ?>>33%</option>
806
  <option value="50%"<?php if ( '50%' == $this->options['width'] ) echo ' selected="selected"'; ?>>50%</option>
810
  </optgroup>
811
  <optgroup label="<?php
812
  /* translators: other width */
813
+ _e('Other', 'table-of-contents-plus'); ?>">
814
+ <option value="User defined"<?php if ( 'User defined' == $this->options['width'] ) echo ' selected="selected"'; ?>><?php _e('User defined', 'table-of-contents-plus'); ?></option>
815
  </optgroup>
816
  </select>
817
  <div class="more_toc_options<?php if ( 'User defined' != $this->options['width'] ) echo ' disabled'; ?>">
818
  <label for="width_custom"><?php
819
  /* translators: ignore %s as it's some HTML label tags */
820
+ printf( __('Please enter a number and %s select its units, eg: 100px, 10em', 'table-of-contents-plus'), '</label><label for="width_custom_units">' ); ?></label><br />
821
  <input type="text" class="regular-text" value="<?php echo floatval($this->options['width_custom']); ?>" id="width_custom" name="width_custom" />
822
  <select name="width_custom_units" id="width_custom_units">
823
  <option value="px"<?php if ( 'px' == $this->options['width_custom_units'] ) echo ' selected="selected"'; ?>>px</option>
828
  </td>
829
  </tr>
830
  <tr>
831
+ <th><label for="wrapping"><?php _e('Wrapping', 'table-of-contents-plus'); ?></label></td>
832
  <td>
833
  <select name="wrapping" id="wrapping">
834
+ <option value="<?php echo TOC_WRAPPING_NONE; ?>"<?php if ( TOC_WRAPPING_NONE == $this->options['wrapping'] ) echo ' selected="selected"'; ?>><?php _e('None (default)', 'table-of-contents-plus'); ?></option>
835
+ <option value="<?php echo TOC_WRAPPING_LEFT; ?>"<?php if ( TOC_WRAPPING_LEFT == $this->options['wrapping'] ) echo ' selected="selected"'; ?>><?php _e('Left', 'table-of-contents-plus'); ?></option>
836
+ <option value="<?php echo TOC_WRAPPING_RIGHT; ?>"<?php if ( TOC_WRAPPING_RIGHT == $this->options['wrapping'] ) echo ' selected="selected"'; ?>><?php _e('Right', 'table-of-contents-plus'); ?></option>
837
  </select>
838
  </td>
839
  </tr>
840
  <tr>
841
+ <th><label for="font_size"><?php _e('Font size', 'table-of-contents-plus'); ?></label></th>
842
  <td>
843
  <input type="text" class="regular-text" value="<?php echo floatval($this->options['font_size']); ?>" id="font_size" name="font_size" />
844
  <select name="font_size_units" id="font_size_units">
851
  <tr>
852
  <th><?php
853
  /* translators: appearance / colour / look and feel options */
854
+ _e('Presentation', 'table-of-contents-plus'); ?></th>
855
  <td>
856
  <div class="toc_theme_option">
857
+ <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_GREY; ?>" value="<?php echo TOC_THEME_GREY; ?>"<?php if ( $this->options['theme'] == TOC_THEME_GREY ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_GREY; ?>"> <?php _e('Grey (default)', 'table-of-contents-plus'); ?><br />
858
  <img src="<?php echo $this->path; ?>/images/grey.png" alt="" />
859
  </label>
860
  </div>
861
  <div class="toc_theme_option">
862
+ <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_LIGHT_BLUE; ?>" value="<?php echo TOC_THEME_LIGHT_BLUE; ?>"<?php if ( $this->options['theme'] == TOC_THEME_LIGHT_BLUE ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_LIGHT_BLUE; ?>"> <?php _e('Light blue', 'table-of-contents-plus'); ?><br />
863
  <img src="<?php echo $this->path; ?>/images/blue.png" alt="" />
864
  </label>
865
  </div>
866
  <div class="toc_theme_option">
867
+ <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_WHITE; ?>" value="<?php echo TOC_THEME_WHITE; ?>"<?php if ( $this->options['theme'] == TOC_THEME_WHITE ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_WHITE; ?>"> <?php _e('White', 'table-of-contents-plus'); ?><br />
868
  <img src="<?php echo $this->path; ?>/images/white.png" alt="" />
869
  </label>
870
  </div>
871
  <div class="toc_theme_option">
872
+ <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_BLACK; ?>" value="<?php echo TOC_THEME_BLACK; ?>"<?php if ( $this->options['theme'] == TOC_THEME_BLACK ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_BLACK; ?>"> <?php _e('Black', 'table-of-contents-plus'); ?><br />
873
  <img src="<?php echo $this->path; ?>/images/black.png" alt="" />
874
  </label>
875
  </div>
876
  <div class="toc_theme_option">
877
+ <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_TRANSPARENT; ?>" value="<?php echo TOC_THEME_TRANSPARENT; ?>"<?php if ( $this->options['theme'] == TOC_THEME_TRANSPARENT ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_TRANSPARENT; ?>"> <?php _e('Transparent', 'table-of-contents-plus'); ?><br />
878
  <img src="<?php echo $this->path; ?>/images/transparent.png" alt="" />
879
  </label>
880
  </div>
881
  <div class="toc_theme_option">
882
+ <input type="radio" name="theme" id="theme_<?php echo TOC_THEME_CUSTOM; ?>" value="<?php echo TOC_THEME_CUSTOM; ?>"<?php if ( $this->options['theme'] == TOC_THEME_CUSTOM ) echo ' checked="checked"'; ?> /><label for="theme_<?php echo TOC_THEME_CUSTOM; ?>"> <?php _e('Custom', 'table-of-contents-plus'); ?><br />
883
  <img src="<?php echo $this->path; ?>/images/custom.png" alt="" />
884
  </label>
885
  </div>
889
  <table id="theme_custom" class="more_toc_options_table">
890
  <tbody>
891
  <tr>
892
+ <th><label for="custom_background_colour"><?php _e('Background', 'table-of-contents-plus'); ?></label></th>
893
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_background_colour'] ); ?>" id="custom_background_colour" name="custom_background_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
894
  </tr>
895
  <tr>
896
+ <th><label for="custom_border_colour"><?php _e('Border', 'table-of-contents-plus'); ?></label></th>
897
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_border_colour'] ); ?>" id="custom_border_colour" name="custom_border_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
898
  </tr>
899
  <tr>
900
+ <th><label for="custom_title_colour"><?php _e('Title', 'table-of-contents-plus'); ?></label></th>
901
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_title_colour'] ); ?>" id="custom_title_colour" name="custom_title_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
902
  </tr>
903
  <tr>
904
+ <th><label for="custom_links_colour"><?php _e('Links', 'table-of-contents-plus'); ?></label></th>
905
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_links_colour'] ); ?>" id="custom_links_colour" name="custom_links_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
906
  </tr>
907
  <tr>
908
+ <th><label for="custom_links_hover_colour"><?php _e('Links (hover)', 'table-of-contents-plus'); ?></label></th>
909
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_links_hover_colour'] ); ?>" id="custom_links_hover_colour" name="custom_links_hover_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
910
  </tr>
911
  <tr>
912
+ <th><label for="custom_links_visited_colour"><?php _e('Links (visited)', 'table-of-contents-plus'); ?></label></th>
913
  <td><input type="text" class="custom_colour_option" value="<?php echo htmlentities( $this->options['custom_links_visited_colour'] ); ?>" id="custom_links_visited_colour" name="custom_links_visited_colour" /> <img src="<?php echo $this->path; ?>/images/colour-wheel.png" alt="" /></td>
914
  </tr>
915
  </tbody>
916
  </table>
917
  <div id="farbtastic_colour_wheel"></div>
918
  <div class="clear"></div>
919
+ <p><?php printf(__("Leaving the value as %s will inherit your theme's styles", 'table-of-contents-plus'), '<code>#</code>'); ?></p>
920
  </div>
921
  </td>
922
  </tr>
923
  </tbody>
924
  </table>
925
 
926
+ <h3><?php _e('Advanced', 'table-of-contents-plus'); ?> <span class="show_hide">(<a href="#toc_advanced_usage"><?php _e('show', 'table-of-contents-plus'); ?></a>)</span></h3>
927
  <div id="toc_advanced_usage">
928
+ <h4><?php _e('Power options', 'table-of-contents-plus'); ?></h4>
929
  <table class="form-table">
930
  <tbody>
931
  <tr>
932
+ <th><label for="lowercase"><?php _e('Lowercase', 'table-of-contents-plus'); ?></label></th>
933
+ <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', 'table-of-contents-plus'); ?></label></td>
934
  </tr>
935
  <tr>
936
+ <th><label for="hyphenate"><?php _e('Hyphenate', 'table-of-contents-plus'); ?></label></th>
937
+ <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', 'table-of-contents-plus'); ?></label></td>
938
  </tr>
939
  <tr>
940
+ <th><label for="include_homepage"><?php _e('Include homepage', 'table-of-contents-plus'); ?></label></th>
941
+ <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', 'table-of-contents-plus'); ?></label></td>
942
  </tr>
943
  <tr>
944
+ <th><label for="exclude_css"><?php _e('Exclude CSS file', 'table-of-contents-plus'); ?></label></th>
945
+ <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.", 'table-of-contents-plus'); ?></label></td>
946
  </tr>
947
  <tr>
948
+ <th><label for="bullet_spacing"><?php _e('Preserve theme bullets', 'table-of-contents-plus'); ?></label></th>
949
+ <td><input type="checkbox" value="1" id="bullet_spacing" name="bullet_spacing"<?php if ( $this->options['bullet_spacing'] ) echo ' checked="checked"'; ?> /><label for="bullet_spacing"> <?php _e('If your theme includes background images for unordered list elements, enable this to support them', 'table-of-contents-plus'); ?></label></td>
950
  </tr>
951
  <tr>
952
+ <th><?php _e('Heading levels', 'table-of-contents-plus'); ?></th>
953
  <td>
954
+ <p><?php _e('Include the following heading levels. Deselecting a heading will exclude it.', 'table-of-contents-plus'); ?></p>
955
  <?php
956
  // show heading 1 to 6 options
957
  for ($i = 1; $i <= 6; $i++) {
963
  </td>
964
  </tr>
965
  <tr>
966
+ <th><label for="exclude"><?php _e('Exclude headings', 'table-of-contents-plus'); ?></label></th>
967
  <td>
968
  <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['exclude'], ENT_COMPAT, 'UTF-8' ); ?>" id="exclude" name="exclude" style="width: 100%;" /><br />
969
+ <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:', 'table-of-contents-plus'); ?></label><br/>
970
  <ul>
971
+ <li><?php _e('<code>Fruit*</code> ignore headings starting with "Fruit"', 'table-of-contents-plus'); ?></li>
972
+ <li><?php _e('<code>*Fruit Diet*</code> ignore headings with "Fruit Diet" somewhere in the heading', 'table-of-contents-plus'); ?></li>
973
+ <li><?php _e('<code>Apple Tree|Oranges|Yellow Bananas</code> ignore headings that are exactly "Apple Tree", "Oranges" or "Yellow Bananas"', 'table-of-contents-plus'); ?></li>
974
  </ul>
975
  </td>
976
  </tr>
977
  <tr id="smooth_scroll_offset_tr" class="<?php if ( !$this->options['smooth_scroll'] ) echo 'disabled'; ?>">
978
+ <th><label for="smooth_scroll_offset"><?php _e('Smooth scroll top offset', 'table-of-contents-plus'); ?></label></th>
979
  <td>
980
  <input type="text" class="regular-text" value="<?php echo intval($this->options['smooth_scroll_offset']); ?>" id="smooth_scroll_offset" name="smooth_scroll_offset" /> px<br />
981
+ <label for="smooth_scroll_offset"><?php _e('If you have a consistent menu across the top of your site, you can adjust the top offset to stop the headings from appearing underneath the top menu. A setting of 30 accommodates the WordPress admin bar. This setting appears after you have enabled smooth scrolling from above.', 'table-of-contents-plus'); ?></label>
982
  </td>
983
  </tr>
984
  <tr>
985
+ <th><label for="restrict_path"><?php _e('Restrict path', 'table-of-contents-plus'); ?></label></th>
986
  <td>
987
  <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['restrict_path'], ENT_COMPAT, 'UTF-8' ); ?>" id="restrict_path" name="restrict_path" /><br />
988
+ <label for="restrict_path"><?php _e('Restrict generation of the table of contents to pages that match the required path. This path is from the root of your site and always begins with a forward slash.', 'table-of-contents-plus'); ?><br />
989
  <span class="description"><?php
990
  /* translators: example URL path restriction */
991
+ _e('Eg: /wiki/, /corporate/annual-reports/', 'table-of-contents-plus'); ?></span></label>
992
  </td>
993
  </tr>
994
  <tr>
995
+ <th><label for="fragment_prefix"><?php _e('Default anchor prefix', 'table-of-contents-plus'); ?></label></th>
996
  <td>
997
  <input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['fragment_prefix'], ENT_COMPAT, 'UTF-8' ); ?>" id="fragment_prefix" name="fragment_prefix" /><br />
998
+ <label for="fragment_prefix"><?php _e('Anchor targets are restricted to alphanumeric characters as per HTML specification (see readme for more detail). The default anchor prefix will be used when no characters qualify. When left blank, a number will be used instead.', 'table-of-contents-plus'); ?><br />
999
+ <?php _e('This option normally applies to content written in character sets other than ASCII.', 'table-of-contents-plus'); ?><br />
1000
  <span class="description"><?php
1001
  /* translators: example anchor prefixes when no ascii characters match */
1002
+ _e('Eg: i, toc_index, index, _', 'table-of-contents-plus'); ?></span></label>
1003
  </td>
1004
  </tr>
1005
  </tbody>
1007
 
1008
  <h4><?php
1009
  /* translators: advanced usage */
1010
+ _e('Usage', 'table-of-contents-plus'); ?></h4>
1011
+ <p><?php printf(__('If you would like to fully customise the position of the table of contents, you can use the %s shortcode by placing it at the desired position of your post, page or custom post type. This method allows you to generate the table of contents despite having auto insertion disabled for its content type. Please visit the help tab for further information about this shortcode.', 'table-of-contents-plus'), '<code>[toc]</code>'); ?></p>
1012
  </div>
1013
 
1014
 
1016
  <div id="tab2" class="tab_content">
1017
 
1018
 
1019
+ <p><?php printf(__('At its simplest, placing %s into a page will automatically create a sitemap of all pages and categories. This also works in a text widget.', 'table-of-contents-plus'), '<code>[sitemap]</code>'); ?></p>
1020
  <table class="form-table">
1021
  <tbody>
1022
  <tr>
1023
+ <th><label for="sitemap_show_page_listing"><?php _e('Show page listing', 'table-of-contents-plus'); ?></label></th>
1024
  <td><input type="checkbox" value="1" id="sitemap_show_page_listing" name="sitemap_show_page_listing"<?php if ( $this->options['sitemap_show_page_listing'] ) echo ' checked="checked"'; ?> /></td>
1025
  </tr>
1026
  <tr>
1027
+ <th><label for="sitemap_show_category_listing"><?php _e('Show category listing', 'table-of-contents-plus'); ?></label></th>
1028
  <td><input type="checkbox" value="1" id="sitemap_show_category_listing" name="sitemap_show_category_listing"<?php if ( $this->options['sitemap_show_category_listing'] ) echo ' checked="checked"'; ?> /></td>
1029
  </tr>
1030
  <tr>
1031
+ <th><label for="sitemap_heading_type"><?php _e('Heading type', 'table-of-contents-plus'); ?></label></th>
1032
  <td><label for="sitemap_heading_type"><?php
1033
  /* translators: the full line is supposed to read - Use [1-6 drop down list] to print out the titles */
1034
+ _e('Use', 'table-of-contents-plus'); ?> h</label><select name="sitemap_heading_type" id="sitemap_heading_type">
1035
  <?php
1036
  // h1 to h6
1037
  for ($i = 1; $i <= 6; $i++) {
1042
  ?>
1043
  </select> <?php
1044
  /* translators: the full line is supposed to read - Use [h1-h6 drop down list] to print out the titles */
1045
+ _e('to print out the titles', 'table-of-contents-plus'); ?>
1046
  </td>
1047
  </tr>
1048
  <tr>
1049
+ <th><label for="sitemap_pages"><?php _e('Pages label', 'table-of-contents-plus'); ?></label></th>
1050
  <td><input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['sitemap_pages'], ENT_COMPAT, 'UTF-8' ); ?>" id="sitemap_pages" name="sitemap_pages" />
1051
+ <span class="description"><?php _e('Eg: Pages, Page List', 'table-of-contents-plus'); ?></span>
1052
  </td>
1053
  </tr>
1054
  <tr>
1055
+ <th><label for="sitemap_categories"><?php _e('Categories label', 'table-of-contents-plus'); ?></label></th>
1056
  <td><input type="text" class="regular-text" value="<?php echo htmlentities( $this->options['sitemap_categories'], ENT_COMPAT, 'UTF-8' ); ?>" id="sitemap_categories" name="sitemap_categories" />
1057
+ <span class="description"><?php _e('Eg: Categories, Category List', 'table-of-contents-plus'); ?></span>
1058
  </td>
1059
  </tr>
1060
  </tbody>
1061
  </table>
1062
 
1063
+ <h3><?php _e('Advanced usage', 'table-of-contents-plus'); ?> <span class="show_hide">(<a href="#sitemap_advanced_usage"><?php _e('show', 'table-of-contents-plus'); ?></a>)</span></h3>
1064
  <div id="sitemap_advanced_usage">
1065
+ <p><code>[sitemap_pages]</code> <?php printf(__('lets you print out a listing of only pages. Similarly %s can be used to print out a category listing. They both can accept a number of attributes so visit the help tab for more information.', 'table-of-contents-plus'), '<code>[sitemap_categories]</code>'); ?></p>
1066
+ <p><?php _e('Examples', 'table-of-contents-plus'); ?></p>
1067
  <ol>
1068
+ <li><code>[sitemap_categories no_label="true"]</code> <?php _e('hides the heading from a category listing', 'table-of-contents-plus'); ?></li>
1069
+ <li><code>[sitemap_pages heading="6" label="This is an awesome listing" exclude="1,15"]</code> <?php printf(__('Uses h6 to display %s on a page listing excluding pages with IDs 1 and 15', 'table-of-contents-plus'), '<em>This is an awesome listing</em>'); ?></li>
1070
  </ol>
1071
  </div>
1072
 
1075
  </div>
1076
 
1077
 
1078
+ <p class="submit"><input type="submit" name="submit" class="button-primary" value="<?php _e('Update Options', 'table-of-contents-plus'); ?>" /></p>
1079
  </form>
1080
  </div>
1081
  <?php
1581
  {
1582
  $widget_options = array(
1583
  'classname' => 'toc_widget',
1584
+ 'description' => __('Display the table of contents in the sidebar with this widget', 'table-of-contents-plus')
1585
  );
1586
  $control_options = array(
1587
  'width' => 250,
1626
  // before widget (defined by themes)
1627
  echo $before_widget;
1628
 
1629
+ // display the widget title if one was input (before and after titles defined by themes)
1630
+ if ( $title ) echo $before_title . $title . $after_title;
1631
+
1632
+ // display the list
1633
+ echo '<ul class="toc_widget_list' . $css_classes . '">' . $items . '</ul>';
 
1634
 
1635
  // after widget (defined by themes)
1636
  echo $after_widget;
1649
  $instance = $old_instance;
1650
 
1651
  // strip tags for title to remove HTML (important for text inputs)
1652
+ $instance['title'] = strip_tags( trim( $new_instance['title'] ) );
1653
 
1654
  // no need to strip tags for the following
1655
  //$instance['hide_inline'] = $new_instance['hide_inline'];
1669
  $toc_options = $tic->get_options();
1670
 
1671
  $defaults = array(
1672
+ 'title' => $toc_options['heading_text']
1673
  );
1674
  $instance = wp_parse_args( (array)$instance, $defaults );
1675
 
1676
  ?>
1677
  <p>
1678
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title', 'table-of-contents-plus'); ?>:</label>
1679
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
1680
  </p>
1681
 
1682
  <p>
1683
  <input class="checkbox" type="checkbox" <?php checked( $toc_options['show_toc_in_widget_only'], 1 ); ?> id="<?php echo $this->get_field_id( 'hide_inline' ); ?>" name="<?php echo $this->get_field_name( 'hide_inline' ); ?>" value="1" />
1684
+ <label for="<?php echo $this->get_field_id( 'hide_inline' ); ?>"> <?php _e('Show the table of contents only in the sidebar', 'table-of-contents-plus'); ?></label>
1685
  </p>
1686
 
1687
  <div class="show_toc_in_widget_only_post_types" style="margin: 0 0 25px 25px; display: <?php echo ( $toc_options['show_toc_in_widget_only'] == 1 ) ? 'block' : 'none'; ?>;">
1688
+ <p><?php _e('For the following content types:', 'table-of-contents-plus'); ?></p>
1689
 
1690
  <?php
1691
  foreach (get_post_types() as $post_type) {