Version Description
06/27/2022 = * TWEAK: Added Migration from Table of Contents Plus and LuckyWP Table of Contents #160 * TWEAK: Added Option to add inline CSS and JS #189 * TWEAK: Added Shortcode to show hidden view on particular posts #183 * TWEAK: Added Hyphen Counter to display the TOC heading #192 * TWEAK: Added Dot Counter to display the TOC heading #180 * TWEAK: Improved the Web Accessibility in TOC Toggle #190 * BUG: Shortcodes are not rendering in TOC titles #197 * BUG: TOC heading are getting hidden in sticky header #186 * BUG: No success or error message after support request is submitted #196 * BUG: Same font size appearing in headings and sub-headings #161 * BUG: Salient core plugin conflict with last update 2.0.24.1 #207
Download this release
Release Info
Developer | magazine3 |
Plugin | Easy Table of Contents |
Version | 2.0.25 |
Comparing to | |
See all releases |
Code changes from version 2.0.24 to 2.0.25
- README.txt +18 -1
- assets/css/admin.css +21 -7
- assets/css/admin.min.css +1 -1
- assets/css/screen.css +16 -5
- assets/css/screen.min.css +23 -1
- easy-table-of-contents.php +14 -6
- includes/class.options.php +71 -0
- includes/class.post.php +14 -2
- includes/class.widget-toc.php +9 -0
- includes/inc.admin-options-page.php +3 -0
- includes/inc.functions.php +7 -0
README.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: table of contents, toc
|
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 5.6.20
|
8 |
-
Stable tag: 2.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -97,6 +97,23 @@ Easy Table Contents is a fork of the excellent [Table of Contents Plus](https://
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 2.0.24 06/10/2022 =
|
101 |
* TWEAK: Added TOC in Infinite Scroll #138
|
102 |
* TWEAK: Improved the activation process #187
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 6.0
|
7 |
Requires PHP: 5.6.20
|
8 |
+
Stable tag: 2.0.25
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 2.0.25 06/27/2022 =
|
101 |
+
* TWEAK: Added Migration from Table of Contents Plus and LuckyWP Table of Contents #160
|
102 |
+
* TWEAK: Added Option to add inline CSS and JS #189
|
103 |
+
* TWEAK: Added Shortcode to show hidden view on particular posts #183
|
104 |
+
* TWEAK: Added Hyphen Counter to display the TOC heading #192
|
105 |
+
* TWEAK: Added Dot Counter to display the TOC heading #180
|
106 |
+
* TWEAK: Improved the Web Accessibility in TOC Toggle #190
|
107 |
+
* BUG: Shortcodes are not rendering in TOC titles #197
|
108 |
+
* BUG: TOC heading are getting hidden in sticky header #186
|
109 |
+
* BUG: No success or error message after support request is submitted #196
|
110 |
+
* BUG: Same font size appearing in headings and sub-headings #161
|
111 |
+
* BUG: Salient core plugin conflict with last update 2.0.24.1 #207
|
112 |
+
|
113 |
+
= 2.0.24.1 06/14/2022 =
|
114 |
+
* BUG: TOC not displaying properly when initial view option is disabled #195
|
115 |
+
* BUG: Initial View option not working with Pure CSS Loading Method #194
|
116 |
+
|
117 |
= 2.0.24 06/10/2022 =
|
118 |
* TWEAK: Added TOC in Infinite Scroll #138
|
119 |
* TWEAK: Improved the activation process #187
|
assets/css/admin.css
CHANGED
@@ -101,6 +101,7 @@ div.toc_theme_option {
|
|
101 |
}
|
102 |
input#width_custom,
|
103 |
input#font_size,
|
|
|
104 |
input#smooth_scroll_offset {
|
105 |
width: 50px;
|
106 |
text-align: center;
|
@@ -570,7 +571,7 @@ div#eztoc-tabs a:first-child {
|
|
570 |
}
|
571 |
|
572 |
.sp_ov {
|
573 |
-
background:
|
574 |
bottom: 0;
|
575 |
left: 0;
|
576 |
position: absolute;
|
@@ -612,7 +613,7 @@ div#eztoc-tabs a:first-child {
|
|
612 |
border-radius: 8px !important;
|
613 |
font-size: 16px !important;
|
614 |
padding: 12px 18px;
|
615 |
-
color:
|
616 |
font-weight: 500;
|
617 |
}
|
618 |
.etoc-eztoc-cnt .buy:hover{
|
@@ -641,7 +642,7 @@ div#eztoc-tabs a:first-child {
|
|
641 |
margin: 15px 0 12px 0;
|
642 |
font-weight: 600;
|
643 |
font-size: 20px;
|
644 |
-
color:
|
645 |
}
|
646 |
|
647 |
.ex-1 p {
|
@@ -711,7 +712,7 @@ div#eztoc-tabs a:first-child {
|
|
711 |
|
712 |
.pr h1 {
|
713 |
padding-left: 50px;
|
714 |
-
color:
|
715 |
}
|
716 |
|
717 |
.fr-fe {
|
@@ -807,7 +808,7 @@ div#eztoc-tabs a:first-child {
|
|
807 |
line-height: 1.2;
|
808 |
background: -webkit-linear-gradient(to right, #e35796, #fc789f);
|
809 |
font-weight: 600;
|
810 |
-
background: linear-gradient(to right, #e35796,
|
811 |
margin-top: 0;
|
812 |
box-shadow: 0 .15em .65em 0 rgba(0, 0, 0, .25);
|
813 |
}
|
@@ -1173,7 +1174,7 @@ div#freevspro {
|
|
1173 |
}
|
1174 |
a#eztoc-upgrade {
|
1175 |
color: #ffffff;
|
1176 |
-
background:
|
1177 |
padding: 16px;
|
1178 |
}
|
1179 |
div#welcome {
|
@@ -1218,4 +1219,17 @@ a#eztoc-welcome {
|
|
1218 |
.button-toc:hover span:after {
|
1219 |
opacity: 1;
|
1220 |
right: 0;
|
1221 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
}
|
102 |
input#width_custom,
|
103 |
input#font_size,
|
104 |
+
input#child_font_size,
|
105 |
input#smooth_scroll_offset {
|
106 |
width: 50px;
|
107 |
text-align: center;
|
571 |
}
|
572 |
|
573 |
.sp_ov {
|
574 |
+
background: rgba(234, 76, 137, 1);
|
575 |
bottom: 0;
|
576 |
left: 0;
|
577 |
position: absolute;
|
613 |
border-radius: 8px !important;
|
614 |
font-size: 16px !important;
|
615 |
padding: 12px 18px;
|
616 |
+
color: rgba(234, 76, 137, 1) !important;
|
617 |
font-weight: 500;
|
618 |
}
|
619 |
.etoc-eztoc-cnt .buy:hover{
|
642 |
margin: 15px 0 12px 0;
|
643 |
font-weight: 600;
|
644 |
font-size: 20px;
|
645 |
+
color: rgba(234, 76, 137, 1);
|
646 |
}
|
647 |
|
648 |
.ex-1 p {
|
712 |
|
713 |
.pr h1 {
|
714 |
padding-left: 50px;
|
715 |
+
color: rgba(234, 76, 137, 1);
|
716 |
}
|
717 |
|
718 |
.fr-fe {
|
808 |
line-height: 1.2;
|
809 |
background: -webkit-linear-gradient(to right, #e35796, #fc789f);
|
810 |
font-weight: 600;
|
811 |
+
background: linear-gradient(to right, #e35796, rgba(234, 76, 137, 1));
|
812 |
margin-top: 0;
|
813 |
box-shadow: 0 .15em .65em 0 rgba(0, 0, 0, .25);
|
814 |
}
|
1174 |
}
|
1175 |
a#eztoc-upgrade {
|
1176 |
color: #ffffff;
|
1177 |
+
background: rgba(234, 76, 137, 1);
|
1178 |
padding: 16px;
|
1179 |
}
|
1180 |
div#welcome {
|
1219 |
.button-toc:hover span:after {
|
1220 |
opacity: 1;
|
1221 |
right: 0;
|
1222 |
+
}
|
1223 |
+
|
1224 |
+
.eztoc-query-success{
|
1225 |
+
color: green;
|
1226 |
+
}
|
1227 |
+
.eztoc-query-error{
|
1228 |
+
color: red;
|
1229 |
+
}
|
1230 |
+
.eztoc_hide{
|
1231 |
+
display: none;
|
1232 |
+
}
|
1233 |
+
.eztoc-result{
|
1234 |
+
margin-left: 70px;
|
1235 |
+
}
|
assets/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div.tab_content table {margin-bottom: 1em;}table.more_toc_options_table th, table.more_toc_options_table td {padding: 0;margin: 0;}table.more_toc_options_table th {width: auto;padding-right: 4px;padding-top: 2px;}div.tab_content ul li {margin-left: 2em;list-style-type: disc;}div.tab_content ol li {list-style: inherit;}div.tab_content pre {margin-left: 2em;}ul#tabbed-nav {margin-top: 1em;}#tabbed-nav {margin: 0;padding: 0;float: left;list-style: none;height: 32px;border-bottom: 1px solid #DFDFDF;border-left: 1px solid #DFDFDF;width: 100%;}#tabbed-nav li {float: left;margin: 0;padding: 0;height: 31px;line-height: 31px;border: 1px solid #DFDFDF;border-left: none;margin-bottom: -1px;overflow: hidden;position: relative;background: #F5F5F5;background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#F5F5F5));background-image: -webkit-linear-gradient(center top, #fff, #F5F5F5);background-image: -moz-linear-gradient(center top, #fff, #F5F5F5);background-image: -ms-linear-gradient(center top, #fff, #F5F5F5);background-image: -o-linear-gradient(center top, #fff, #F5F5F5);background-image: linear-gradient(center top, #fff, #F5F5F5);}#tabbed-nav li a {text-decoration: none;color: #000;display: block;font-size: 1.2em;padding: 0 20px;border: 1px solid #fff;outline: none;}#tabbed-nav li a:hover {background: #ECECEC;}html #tabbed-nav li.active, html #tabbed-nav li.active a:hover {background: #fff;border-bottom: 1px solid #fff;}div.tab_container {border: 1px solid #DFDFDF;border-top: none;overflow: hidden;clear: both;float: left;width: 100%;background: #fff;margin-bottom: 2em;padding-bottom: 2em;}div.tab_content {padding: 10px;padding-bottom: 0;font-size: 1em;}h3 span.show_hide {font-size: 0.85em;font-weight: normal;}div.more_toc_options {margin-top: 4px;margin-left: 2em;}div.toc_theme_option {width: 200px;float: left;margin-right: 5px;}#wpcontent select optgroup option {padding-left: 15px;}input#width_custom, input#font_size, input#smooth_scroll_offset {width: 50px;text-align: center;}input.custom_colour_option {width: 75px;}table#theme_custom, div#farbtastic_colour_wheel {float: left;}table#theme_custom {margin-top: 30px;}table#theme_custom img {vertical-align: middle;opacity: 0.4;}table#theme_custom img:hover {cursor: pointer;opacity: 1;}div#farbtastic_colour_wheel {margin-left: 20px;}#tab3 h3:not(:first-child) {margin-top: 2em;}#toc input.small-text {width: 50px;padding: 2px;height: 28px;line-height: 28px;vertical-align: bottom;}#toc .form-table tr > th > strong {font-size: 18px;font-style: italic;}.postbox{padding: 10px;}html {scroll-behavior: smooth;}.toc-tab-panel {overflow: hidden;border: 1px solid #ccc;background-color: #fff;margin-top: 15px;}.toc-tab-panel a {background-color: inherit;text-decoration: none;float: left;border: none;outline: none;cursor: pointer;padding: 14px 16px;transition: 0s;font-size: 15px;color: #2271b1;font-weight: 500;}.toc-tab-panel a:hover {color: #0a4b78;}.toc-tab-panel a.active {box-shadow: none;border-bottom: 4px solid #646970;color: #1d2327;}.toc-tab-panel a:focus {box-shadow: none;outline: none;}.eztoc-tabcontent {display: none;border-top: none;animation: fadeEffect 1s;}.eztoc_support_div {background: #fff;margin-top: 10px;padding: 28px;min-width: 255px;border: 1px solid #c3c4c7;box-shadow: 0 1px 1px rgb(0 0 0 / 4%);}.support-label {float: left;width: 70px;font-size: 14px;}.star-mark{color: red;margin-left: 4px;font-family:bold;}.eztoc_support_div li {margin:25px 0px 20px 0px;}.eztoc-query-success{color: green;}.eztoc-query-error{color: red;}.eztoc_hide{display: none;}.eztoc-result{margin-left: 70px;}.eztoc-send-query{margin-left: 70px !important;;}@keyframes fadeEffect {from {opacity: 0;}to {opacity: 1;}}.eztoc-wrapper{max-width: 1090px;width: 100%;display: flex;flex-wrap: wrap;margin: auto;}.eztoc-wrapper .table{margin: 0 auto;background: #fff;width: calc(30%);padding: 30px 20px;position: relative;box-shadow: 0 5px 10px rgb(0 0 0 / 10%);}.table .price-section{display: flex;justify-content: center;}.price-section .price-area{height: 120px;width: 120px;background: #ffd861;border-radius: 50%;padding: 2px;}.price-section .price-area .inner-area{height: 100%;width: 100%;border-radius: 50%;border: 3px solid #fff;color: #fff;line-height: 117px;text-align: center;position: relative;}.price-area .inner-area .text{font-size: 25px;font-weight: 400;position: absolute;top: -10px;left: 17px;}.price-area .inner-area .price{font-size: 55px;font-weight: 500;}.table .package-name{width: 100%;height: 2px;background: #ffecb3;margin: 35px 0;position: relative;}.table .package-name::before{position: absolute;content: "Basic";top: 50%;left: 50%;transform: translate(-50%, -50%);background: #fff;font-size: 25px;padding: 0 10px;font-weight: bolder;}.table .features li{list-style: none;display: flex;justify-content: space-between;margin-bottom: 15px;}.features li .list-name{font-size: 17px;font-weight: 400;}.features li .icon{font-size: 15px;}.features li .icon.check{color: #2db94d;}.features li .icon.cross{color: #cd3241;}.table .btn{display: flex;justify-content: center;margin-top: 35px;}.table .btn button{width: 80%;height: 50px;font-weight: 700;color: #fff;font-size: 20px;border: none;outline: none;border-radius: 25px;cursor: pointer;transition: all 0.3s ease;}.basic .price-area, .basic .inner-area{background: #ffd861;}.basic .btn button{background: #fff;color: #ffd861;border: 2px solid #ffd861;}.basic .btn button:hover{border-radius: 6px;background: #ffd861;color: #fff;}.Premium .price-area, .Premium .inner-area{background: #a26bfa;}.Premium .btn button{background: #fff;color: #a26bfa;border: 2px solid #a26bfa;}.Premium .btn button:hover{border-radius: 6px;background: #a26bfa;color: #fff;}.basic .package-name{background: #ffecb3;}.Premium .package-name{background: #a26bfa;}.basic .package-name::before{content: "Free";}.Premium .package-name::before{content: "PRO";}.basic ::selection, .basic .price-area, .basic .inner-area{background: #ffd861;}.Premium ::selection, .Premium .price-area, .Premium .inner-area{background: #a26bfa;}div#eztoc-tabs a {text-decoration: none;}div#eztoc-tabs a:first-child {color: #000;}a#eztoc-upgrade {color: #b8ef0e;background: #000;padding: 16px;}
|
1 |
+
div.tab_content table {margin-bottom: 1em;}table.more_toc_options_table th, table.more_toc_options_table td {padding: 0;margin: 0;}table.more_toc_options_table th {width: auto;padding-right: 4px;padding-top: 2px;}div.tab_content ul li {margin-left: 2em;list-style-type: disc;}div.tab_content ol li {list-style: inherit;}div.tab_content pre {margin-left: 2em;}ul#tabbed-nav {margin-top: 1em;}#tabbed-nav {margin: 0;padding: 0;float: left;list-style: none;height: 32px;border-bottom: 1px solid #DFDFDF;border-left: 1px solid #DFDFDF;width: 100%;}#tabbed-nav li {float: left;margin: 0;padding: 0;height: 31px;line-height: 31px;border: 1px solid #DFDFDF;border-left: none;margin-bottom: -1px;overflow: hidden;position: relative;background: #F5F5F5;background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#F5F5F5));background-image: -webkit-linear-gradient(center top, #fff, #F5F5F5);background-image: -moz-linear-gradient(center top, #fff, #F5F5F5);background-image: -ms-linear-gradient(center top, #fff, #F5F5F5);background-image: -o-linear-gradient(center top, #fff, #F5F5F5);background-image: linear-gradient(center top, #fff, #F5F5F5);}#tabbed-nav li a {text-decoration: none;color: #000;display: block;font-size: 1.2em;padding: 0 20px;border: 1px solid #fff;outline: none;}#tabbed-nav li a:hover {background: #ECECEC;}html #tabbed-nav li.active, html #tabbed-nav li.active a:hover {background: #fff;border-bottom: 1px solid #fff;}div.tab_container {border: 1px solid #DFDFDF;border-top: none;overflow: hidden;clear: both;float: left;width: 100%;background: #fff;margin-bottom: 2em;padding-bottom: 2em;}div.tab_content {padding: 10px;padding-bottom: 0;font-size: 1em;}h3 span.show_hide {font-size: 0.85em;font-weight: normal;}div.more_toc_options {margin-top: 4px;margin-left: 2em;}div.toc_theme_option {width: 200px;float: left;margin-right: 5px;}#wpcontent select optgroup option {padding-left: 15px;}input#width_custom, input#font_size, input#child_font_size, input#smooth_scroll_offset {width: 50px;text-align: center;}input.custom_colour_option {width: 75px;}table#theme_custom, div#farbtastic_colour_wheel {float: left;}table#theme_custom {margin-top: 30px;}table#theme_custom img {vertical-align: middle;opacity: 0.4;}table#theme_custom img:hover {cursor: pointer;opacity: 1;}div#farbtastic_colour_wheel {margin-left: 20px;}#tab3 h3:not(:first-child) {margin-top: 2em;}#toc input.small-text {width: 50px;padding: 2px;height: 28px;line-height: 28px;vertical-align: bottom;}#toc .form-table tr > th > strong {font-size: 18px;font-style: italic;}.postbox{padding: 10px;}html {scroll-behavior: smooth;}.toc-tab-panel {overflow: hidden;border: 1px solid #ccc;background-color: #fff;margin-top: 15px;}.toc-tab-panel a {background-color: inherit;text-decoration: none;float: left;border: none;outline: none;cursor: pointer;padding: 14px 16px;transition: 0s;font-size: 15px;color: #2271b1;font-weight: 500;}.toc-tab-panel a:hover {color: #0a4b78;}.toc-tab-panel a.active {box-shadow: none;border-bottom: 4px solid #646970;color: #1d2327;}.toc-tab-panel a:focus {box-shadow: none;outline: none;}.eztoc-tabcontent {display: none;border-top: none;animation: fadeEffect 1s;}.eztoc_support_div {background: #fff;margin-top: 10px;padding: 28px;min-width: 255px;border: 1px solid #c3c4c7;box-shadow: 0 1px 1px rgb(0 0 0 / 4%);}.support-label {float: left;width: 70px;font-size: 14px;}.star-mark{color: red;margin-left: 4px;font-family:bold;}.eztoc_support_div li {margin:25px 0px 20px 0px;}.eztoc-query-success{color: green;}.eztoc-query-error{color: red;}.eztoc_hide{display: none;}.eztoc-result{margin-left: 70px;}.eztoc-send-query{margin-left: 70px !important;;}@keyframes fadeEffect {from {opacity: 0;}to {opacity: 1;}}.eztoc-wrapper{max-width: 1090px;width: 100%;display: flex;flex-wrap: wrap;margin: auto;}.eztoc-wrapper .table{margin: 0 auto;background: #fff;width: calc(30%);padding: 30px 20px;position: relative;box-shadow: 0 5px 10px rgb(0 0 0 / 10%);}.table .price-section{display: flex;justify-content: center;}.price-section .price-area{height: 120px;width: 120px;background: #ffd861;border-radius: 50%;padding: 2px;}.price-section .price-area .inner-area{height: 100%;width: 100%;border-radius: 50%;border: 3px solid #fff;color: #fff;line-height: 117px;text-align: center;position: relative;}.price-area .inner-area .text{font-size: 25px;font-weight: 400;position: absolute;top: -10px;left: 17px;}.price-area .inner-area .price{font-size: 55px;font-weight: 500;}.table .package-name{width: 100%;height: 2px;background: #ffecb3;margin: 35px 0;position: relative;}.table .package-name::before{position: absolute;content: "Basic";top: 50%;left: 50%;transform: translate(-50%, -50%);background: #fff;font-size: 25px;padding: 0 10px;font-weight: bolder;}.table .features li{list-style: none;display: flex;justify-content: space-between;margin-bottom: 15px;}.features li .list-name{font-size: 17px;font-weight: 400;}.features li .icon{font-size: 15px;}.features li .icon.check{color: #2db94d;}.features li .icon.cross{color: #cd3241;}.table .btn{display: flex;justify-content: center;margin-top: 35px;}.table .btn button{width: 80%;height: 50px;font-weight: 700;color: #fff;font-size: 20px;border: none;outline: none;border-radius: 25px;cursor: pointer;transition: all 0.3s ease;}.basic .price-area, .basic .inner-area{background: #ffd861;}.basic .btn button{background: #fff;color: #ffd861;border: 2px solid #ffd861;}.basic .btn button:hover{border-radius: 6px;background: #ffd861;color: #fff;}.Premium .price-area, .Premium .inner-area{background: #a26bfa;}.Premium .btn button{background: #fff;color: #a26bfa;border: 2px solid #a26bfa;}.Premium .btn button:hover{border-radius: 6px;background: #a26bfa;color: #fff;}.basic .package-name{background: #ffecb3;}.Premium .package-name{background: #a26bfa;}.basic .package-name::before{content: "Free";}.Premium .package-name::before{content: "PRO";}.basic ::selection, .basic .price-area, .basic .inner-area{background: #ffd861;}.Premium ::selection, .Premium .price-area, .Premium .inner-area{background: #a26bfa;}div#eztoc-tabs a {text-decoration: none;}div#eztoc-tabs a:first-child {color: #000;}a#eztoc-upgrade {color: #b8ef0e;background: #000;padding: 16px;}
|
assets/css/screen.css
CHANGED
@@ -161,6 +161,21 @@ div.ez-toc-widget-container li {
|
|
161 |
list-style-position: inside;
|
162 |
}
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
#ez-toc-container.counter-decimal ul.ez-toc-list li a::before,
|
165 |
.ez-toc-widget-container.counter-decimal ul.ez-toc-list li a::before {
|
166 |
content: counters(item, ".") ". ";
|
@@ -373,8 +388,4 @@ div#ez-toc-container p.ez-toc-title {
|
|
373 |
}
|
374 |
div#ez-toc-container {
|
375 |
padding-right: 20px;
|
376 |
-
}
|
377 |
-
|
378 |
-
div#ez-toc-container nav {
|
379 |
-
display: inherit!important;
|
380 |
-
}
|
161 |
list-style-position: inside;
|
162 |
}
|
163 |
|
164 |
+
#ez-toc-container.counter-disc li,
|
165 |
+
.ez-toc-widget-container.counter-disc li {
|
166 |
+
list-style-type: disc;
|
167 |
+
list-style-position: inside;
|
168 |
+
}
|
169 |
+
|
170 |
+
#ez-toc-container.counter-hyphen li,
|
171 |
+
.ez-toc-widget-container.counter-hyphen li {
|
172 |
+
list-style-type: '-';
|
173 |
+
list-style-position: inside;
|
174 |
+
}
|
175 |
+
|
176 |
+
|
177 |
+
|
178 |
+
|
179 |
#ez-toc-container.counter-decimal ul.ez-toc-list li a::before,
|
180 |
.ez-toc-widget-container.counter-decimal ul.ez-toc-list li a::before {
|
181 |
content: counters(item, ".") ". ";
|
388 |
}
|
389 |
div#ez-toc-container {
|
390 |
padding-right: 20px;
|
391 |
+
}
|
|
|
|
|
|
|
|
assets/css/screen.min.css
CHANGED
@@ -1 +1,23 @@
|
|
1 |
-
#ez-toc-container {background: #F9F9F9;border: 1px solid #AAAAAA;border-radius: 4px;-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);display: table;margin-bottom: 1em;padding: 10px;position: relative;width: auto;}div.ez-toc-widget-container {padding: 0;position: relative;}#ez-toc-container.ez-toc-light-blue {background: #EDF6FF;}#ez-toc-container.ez-toc-white {background: #FFFFFF;}#ez-toc-container.ez-toc-black {background: #000000;}#ez-toc-container.ez-toc-transparent {background: none transparent;}div.ez-toc-widget-container ul {display: block;}div.ez-toc-widget-container li {border: none;padding: 0;}div.ez-toc-widget-container ul.ez-toc-list {padding: 10px;}#ez-toc-container ul ul, .ez-toc div.ez-toc-widget-container ul ul {margin-left: 1.5em;}#ez-toc-container ul, #ez-toc-container li {margin: 0;padding: 0;}#ez-toc-container ul, #ez-toc-container li, #ez-toc-container ul li, div.ez-toc-widget-container, div.ez-toc-widget-container li {background: none;list-style: none none;line-height: 1.6;margin: 0;overflow: hidden;z-index: 1;}#ez-toc-container p.ez-toc-title {text-align: left;line-height: 1.45;margin: 0;padding: 0;}.ez-toc-title-container {display: table;width: 100%;}.ez-toc-title, .ez-toc-title-toggle {display: table-cell;text-align: left;vertical-align: middle;}#ez-toc-container.ez-toc-black p.ez-toc-title {color: #FFF;}#ez-toc-container div.ez-toc-title-container + ul.ez-toc-list {margin-top: 1em;}.ez-toc-wrap-left {float: left;margin-right: 10px;}.ez-toc-wrap-right {float: right;margin-left: 10px;}#ez-toc-container a {color: #444444;box-shadow: none;text-decoration: none;text-shadow: none;}#ez-toc-container a:visited {color: #9f9f9f;}#ez-toc-container a:hover {text-decoration: underline;}#ez-toc-container.ez-toc-black a {color: #FFF;}#ez-toc-container.ez-toc-black a:visited {color: #FFF;}#ez-toc-container a.ez-toc-toggle {color: #444444;}#ez-toc-container.counter-hierarchy ul, .ez-toc-widget-container.counter-hierarchy ul, #ez-toc-container.counter-flat ul, .ez-toc-widget-container.counter-flat ul {counter-reset: item;}#ez-toc-container.counter-numeric li, .ez-toc-widget-container.counter-numeric li {list-style-type: decimal;list-style-position: inside;}#ez-toc-container.counter-decimal ul.ez-toc-list li a::before, .ez-toc-widget-container.counter-decimal ul.ez-toc-list li a::before {content: counters(item, ".") ". ";display: inline-block;counter-increment: item;margin-right: .2em;}#ez-toc-container.counter-roman li a::before, .ez-toc-widget-container.counter-roman ul.ez-toc-list li a::before {content: counters(item, ".", upper-roman) ". ";counter-increment: item;}.ez-toc-widget-container ul.ez-toc-list li::before {content: ' ';position: absolute;left: 0;right: 0;height: 30px;line-height: 30px;z-index: -1;}.ez-toc-widget-container ul.ez-toc-list li.active::before {background-color: #EDEDED;}.ez-toc-widget-container li.active > a {font-weight: 900;}.ez-toc-btn {display: inline-block;padding: 6px 12px;margin-bottom: 0;font-size: 14px;font-weight: normal;line-height: 1.428571429;text-align: center;white-space: nowrap;vertical-align: middle;cursor: pointer;background-image: none;border: 1px solid transparent;border-radius: 4px;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none;user-select: none }.ez-toc-btn:focus {outline: thin dotted #333;outline: 5px auto -webkit-focus-ring-color;outline-offset: -2px }.ez-toc-btn:hover,.ez-toc-btn:focus {color: #333;text-decoration: none }.ez-toc-btn:active,.ez-toc-btn.active {background-image: none;outline: 0;-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) }.ez-toc-btn-default {color: #333;background-color: #fff;border-color: #ccc }.ez-toc-btn-default:hover,.ez-toc-btn-default:focus,.ez-toc-btn-default:active,.ez-toc-btn-default.active {color: #333;background-color: #ebebeb;border-color: #adadad }.ez-toc-btn-default:active,.ez-toc-btn-default.active {background-image: none }.ez-toc-btn-sm,.ez-toc-btn-xs {padding: 5px 10px;font-size: 12px;line-height: 1.5;border-radius: 3px }.ez-toc-btn-xs {padding: 1px 5px }.ez-toc-btn-default {text-shadow: 0 -1px 0 rgba(0,0,0,0.2);-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075);box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075) }.ez-toc-btn-default:active {-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) }.ez-toc-btn:active,.btn.active {background-image: none }.ez-toc-btn-default {text-shadow: 0 1px 0 #fff;background-image: -webkit-gradient(linear,left 0,left 100%,from(#fff),to(#e0e0e0));background-image: -webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image: -moz-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image: linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-repeat: repeat-x;border-color: #dbdbdb;border-color: #ccc;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe0e0e0',GradientType=0);filter: progid:DXImageTransform.Microsoft.gradient(enabled=false) }.ez-toc-btn-default:hover,.ez-toc-btn-default:focus {background-color: #e0e0e0;background-position: 0 -15px }.ez-toc-btn-default:active,.ez-toc-btn-default.active {background-color: #e0e0e0;border-color: #dbdbdb }.ez-toc-pull-right {float: right !important;margin-left: 10px;}.ez-toc-glyphicon {position: relative;top: 1px;display: inline-block;font-family: 'Glyphicons Halflings';-webkit-font-smoothing: antialiased;font-style: normal;font-weight: normal;line-height: 1;-moz-osx-font-smoothing: grayscale }.ez-toc-glyphicon:empty {width: 1em }.ez-toc-toggle i.ez-toc-glyphicon {font-size: 16px;margin-left: 2px;}[class*="ez-toc-icon-"] {font-family: 'ez-toc-icomoon' !important;speak: none;font-style: normal;font-weight: normal;font-variant: normal;text-transform: none;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}.ez-toc-icon-toggle:before {content: "\e87a";}#ez-toc-container input {position: absolute;left: -999em;}#ez-toc-container input[type="checkbox"]:checked + nav {opacity: 0;max-height: 0;border: none;}#ez-toc-container label {float: right;position: relative;left: 3px;font-size: 16px
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ez-toc-container {background: #F9F9F9;border: 1px solid #AAAAAA;border-radius: 4px;-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);display: table;margin-bottom: 1em;padding: 10px;position: relative;width: auto;}div.ez-toc-widget-container {padding: 0;position: relative;}#ez-toc-container.ez-toc-light-blue {background: #EDF6FF;}#ez-toc-container.ez-toc-white {background: #FFFFFF;}#ez-toc-container.ez-toc-black {background: #000000;}#ez-toc-container.ez-toc-transparent {background: none transparent;}div.ez-toc-widget-container ul {display: block;}div.ez-toc-widget-container li {border: none;padding: 0;}div.ez-toc-widget-container ul.ez-toc-list {padding: 10px;}#ez-toc-container ul ul, .ez-toc div.ez-toc-widget-container ul ul {margin-left: 1.5em;}#ez-toc-container ul, #ez-toc-container li {margin: 0;padding: 0;}#ez-toc-container ul, #ez-toc-container li, #ez-toc-container ul li, div.ez-toc-widget-container, div.ez-toc-widget-container li {background: none;list-style: none none;line-height: 1.6;margin: 0;overflow: hidden;z-index: 1;}#ez-toc-container p.ez-toc-title {text-align: left;line-height: 1.45;margin: 0;padding: 0;}.ez-toc-title-container {display: table;width: 100%;}.ez-toc-title, .ez-toc-title-toggle {display: table-cell;text-align: left;vertical-align: middle;}#ez-toc-container.ez-toc-black p.ez-toc-title {color: #FFF;}#ez-toc-container div.ez-toc-title-container + ul.ez-toc-list {margin-top: 1em;}.ez-toc-wrap-left {float: left;margin-right: 10px;}.ez-toc-wrap-right {float: right;margin-left: 10px;}#ez-toc-container a {color: #444444;box-shadow: none;text-decoration: none;text-shadow: none;}#ez-toc-container a:visited {color: #9f9f9f;}#ez-toc-container a:hover {text-decoration: underline;}#ez-toc-container.ez-toc-black a {color: #FFF;}#ez-toc-container.ez-toc-black a:visited {color: #FFF;}#ez-toc-container a.ez-toc-toggle {color: #444444;}#ez-toc-container.counter-hierarchy ul, .ez-toc-widget-container.counter-hierarchy ul, #ez-toc-container.counter-flat ul, .ez-toc-widget-container.counter-flat ul {counter-reset: item;}#ez-toc-container.counter-numeric li, .ez-toc-widget-container.counter-numeric li {list-style-type: decimal;list-style-position: inside;}#ez-toc-container.counter-decimal ul.ez-toc-list li a::before, .ez-toc-widget-container.counter-decimal ul.ez-toc-list li a::before {content: counters(item, ".") ". ";display: inline-block;counter-increment: item;margin-right: .2em;}#ez-toc-container.counter-roman li a::before, .ez-toc-widget-container.counter-roman ul.ez-toc-list li a::before {content: counters(item, ".", upper-roman) ". ";counter-increment: item;}.ez-toc-widget-container ul.ez-toc-list li::before {content: ' ';position: absolute;left: 0;right: 0;height: 30px;line-height: 30px;z-index: -1;}.ez-toc-widget-container ul.ez-toc-list li.active::before {background-color: #EDEDED;}.ez-toc-widget-container li.active > a {font-weight: 900;}.ez-toc-btn {display: inline-block;padding: 6px 12px;margin-bottom: 0;font-size: 14px;font-weight: normal;line-height: 1.428571429;text-align: center;white-space: nowrap;vertical-align: middle;cursor: pointer;background-image: none;border: 1px solid transparent;border-radius: 4px;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none;user-select: none }.ez-toc-btn:focus {outline: thin dotted #333;outline: 5px auto -webkit-focus-ring-color;outline-offset: -2px }.ez-toc-btn:hover,.ez-toc-btn:focus {color: #333;text-decoration: none }.ez-toc-btn:active,.ez-toc-btn.active {background-image: none;outline: 0;-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) }.ez-toc-btn-default {color: #333;background-color: #fff;border-color: #ccc }.ez-toc-btn-default:hover,.ez-toc-btn-default:focus,.ez-toc-btn-default:active,.ez-toc-btn-default.active {color: #333;background-color: #ebebeb;border-color: #adadad }.ez-toc-btn-default:active,.ez-toc-btn-default.active {background-image: none }.ez-toc-btn-sm,.ez-toc-btn-xs {padding: 5px 10px;font-size: 12px;line-height: 1.5;border-radius: 3px }.ez-toc-btn-xs {padding: 1px 5px }.ez-toc-btn-default {text-shadow: 0 -1px 0 rgba(0,0,0,0.2);-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075);box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075) }.ez-toc-btn-default:active {-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) }.ez-toc-btn:active,.btn.active {background-image: none }.ez-toc-btn-default {text-shadow: 0 1px 0 #fff;background-image: -webkit-gradient(linear,left 0,left 100%,from(#fff),to(#e0e0e0));background-image: -webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image: -moz-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image: linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-repeat: repeat-x;border-color: #dbdbdb;border-color: #ccc;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe0e0e0',GradientType=0);filter: progid:DXImageTransform.Microsoft.gradient(enabled=false) }.ez-toc-btn-default:hover,.ez-toc-btn-default:focus {background-color: #e0e0e0;background-position: 0 -15px }.ez-toc-btn-default:active,.ez-toc-btn-default.active {background-color: #e0e0e0;border-color: #dbdbdb }.ez-toc-pull-right {float: right !important;margin-left: 10px;}.ez-toc-glyphicon {position: relative;top: 1px;display: inline-block;font-family: 'Glyphicons Halflings';-webkit-font-smoothing: antialiased;font-style: normal;font-weight: normal;line-height: 1;-moz-osx-font-smoothing: grayscale }.ez-toc-glyphicon:empty {width: 1em }.ez-toc-toggle i.ez-toc-glyphicon {font-size: 16px;margin-left: 2px;}[class*="ez-toc-icon-"] {font-family: 'ez-toc-icomoon' !important;speak: none;font-style: normal;font-weight: normal;font-variant: normal;text-transform: none;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}.ez-toc-icon-toggle:before {content: "\e87a";}#ez-toc-container input {position: absolute;left: -999em;}#ez-toc-container input[type="checkbox"]:checked + nav {opacity: 0;max-height: 0;border: none;}#ez-toc-container label {float: right;position: relative;left: 3px;font-size: 16px;/* background: #f9efef; */padding: 0px 4px 0px 5px;border: 1px solid #999191;border-radius: 5px;cursor: pointer;}div#ez-toc-container p.ez-toc-title {display: contents;}div#ez-toc-container {padding-right: 20px;}#ez-toc-container label {left: 10px;}.ez-toc-wrap-center {margin: 0 auto;}
|
2 |
+
#ez-toc-container.counter-hyphen ul.ez-toc-list li a::before,
|
3 |
+
|
4 |
+
#ez-toc-container.counter-disc li,
|
5 |
+
.ez-toc-widget-container.counter-disc li {
|
6 |
+
list-style-type: disc;
|
7 |
+
list-style-position: inside;
|
8 |
+
}
|
9 |
+
|
10 |
+
#ez-toc-container.counter-hyphen li,
|
11 |
+
.ez-toc-widget-container.counter-hyphen li {
|
12 |
+
list-style-type: '- ';
|
13 |
+
list-style-position: inside;
|
14 |
+
|
15 |
+
}
|
16 |
+
|
17 |
+
#ez-toc-container a.ez-toc-toggle {
|
18 |
+
color: #444444;
|
19 |
+
background: inherit;
|
20 |
+
border: inherit;
|
21 |
+
}
|
22 |
+
.ez-toc-toggle #item{position: absolute;left: -999em;}
|
23 |
+
|
easy-table-of-contents.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Easy Table of Contents
|
4 |
* Plugin URI: https://magazine3.company/
|
5 |
* Description: Adds a user friendly and fully automatic way to create and display a table of contents generated from the page content.
|
6 |
-
* Version: 2.0.
|
7 |
* Author: Magazine3
|
8 |
* Author URI: https://magazine3.company/
|
9 |
* Text Domain: easy-table-of-contents
|
@@ -26,7 +26,7 @@
|
|
26 |
* @package Easy Table of Contents
|
27 |
* @category Plugin
|
28 |
* @author Magazine3
|
29 |
-
* @version 2.0.
|
30 |
*/
|
31 |
|
32 |
use Easy_Plugins\Table_Of_Contents\Debug;
|
@@ -48,7 +48,7 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
48 |
* @since 1.0
|
49 |
* @var string
|
50 |
*/
|
51 |
-
const VERSION = '2.0.
|
52 |
|
53 |
/**
|
54 |
* Stores the instance of this class.
|
@@ -154,6 +154,7 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
154 |
// Run after shortcodes are interpreted (priority 10).
|
155 |
add_filter( 'the_content', array( __CLASS__, 'the_content' ), 100 );
|
156 |
add_shortcode( 'ez-toc', array( __CLASS__, 'shortcode' ) );
|
|
|
157 |
add_shortcode( apply_filters( 'ez_toc_shortcode', 'toc' ), array( __CLASS__, 'shortcode' ) );
|
158 |
}
|
159 |
|
@@ -229,8 +230,9 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
229 |
}
|
230 |
|
231 |
wp_register_style( 'ez-icomoon', EZ_TOC_URL . "vendor/icomoon/style$min.css", array(), ezTOC::VERSION );
|
232 |
-
|
233 |
-
|
|
|
234 |
wp_register_script( 'js-cookie', EZ_TOC_URL . "vendor/js-cookie/js.cookie$min.js", array(), '2.2.1', TRUE );
|
235 |
wp_register_script( 'jquery-smooth-scroll', EZ_TOC_URL . "vendor/smooth-scroll/jquery.smooth-scroll$min.js", array( 'jquery' ), '2.2.0', TRUE );
|
236 |
wp_register_script( 'jquery-sticky-kit', EZ_TOC_URL . "vendor/sticky-kit/jquery.sticky-kit$min.js", array( 'jquery' ), '1.9.2', TRUE );
|
@@ -266,7 +268,9 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
266 |
|
267 |
$js_vars['width'] = esc_js( $width );
|
268 |
}else{
|
269 |
-
|
|
|
|
|
270 |
}
|
271 |
|
272 |
$offset = wp_is_mobile() ? ezTOC_Option::get( 'mobile_smooth_scroll_offset', 0 ) : ezTOC_Option::get( 'smooth_scroll_offset', 30 );
|
@@ -300,6 +304,7 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
300 |
$css .= 'div#ez-toc-container p.ez-toc-title {font-size: ' . ezTOC_Option::get( 'title_font_size', 120 ) . ezTOC_Option::get( 'title_font_size_units', '%' ) . ';}';
|
301 |
$css .= 'div#ez-toc-container p.ez-toc-title {font-weight: ' . ezTOC_Option::get( 'title_font_weight', 500 ) . ';}';
|
302 |
$css .= 'div#ez-toc-container ul li {font-size: ' . ezTOC_Option::get( 'font_size' ) . ezTOC_Option::get( 'font_size_units' ) . ';}';
|
|
|
303 |
|
304 |
if ( ezTOC_Option::get( 'theme' ) === 'custom' || ezTOC_Option::get( 'width' ) != 'auto' ) {
|
305 |
|
@@ -538,6 +543,9 @@ if ( ! class_exists( 'ezTOC' ) ) {
|
|
538 |
$html = $post->getTOC();
|
539 |
$run = false;
|
540 |
}
|
|
|
|
|
|
|
541 |
|
542 |
return $html;
|
543 |
}
|
3 |
* Plugin Name: Easy Table of Contents
|
4 |
* Plugin URI: https://magazine3.company/
|
5 |
* Description: Adds a user friendly and fully automatic way to create and display a table of contents generated from the page content.
|
6 |
+
* Version: 2.0.25
|
7 |
* Author: Magazine3
|
8 |
* Author URI: https://magazine3.company/
|
9 |
* Text Domain: easy-table-of-contents
|
26 |
* @package Easy Table of Contents
|
27 |
* @category Plugin
|
28 |
* @author Magazine3
|
29 |
+
* @version 2.0.25
|
30 |
*/
|
31 |
|
32 |
use Easy_Plugins\Table_Of_Contents\Debug;
|
48 |
* @since 1.0
|
49 |
* @var string
|
50 |
*/
|
51 |
+
const VERSION = '2.0.25';
|
52 |
|
53 |
/**
|
54 |
* Stores the instance of this class.
|
154 |
// Run after shortcodes are interpreted (priority 10).
|
155 |
add_filter( 'the_content', array( __CLASS__, 'the_content' ), 100 );
|
156 |
add_shortcode( 'ez-toc', array( __CLASS__, 'shortcode' ) );
|
157 |
+
add_shortcode( 'lwptoc', array( __CLASS__, 'shortcode' ) );
|
158 |
add_shortcode( apply_filters( 'ez_toc_shortcode', 'toc' ), array( __CLASS__, 'shortcode' ) );
|
159 |
}
|
160 |
|
230 |
}
|
231 |
|
232 |
wp_register_style( 'ez-icomoon', EZ_TOC_URL . "vendor/icomoon/style$min.css", array(), ezTOC::VERSION );
|
233 |
+
if (!ezTOC_Option::get( 'inline_css' )) {
|
234 |
+
wp_register_style( 'ez-toc', EZ_TOC_URL . "assets/css/screen$min.css", array( 'ez-icomoon' ), ezTOC::VERSION );
|
235 |
+
}
|
236 |
wp_register_script( 'js-cookie', EZ_TOC_URL . "vendor/js-cookie/js.cookie$min.js", array(), '2.2.1', TRUE );
|
237 |
wp_register_script( 'jquery-smooth-scroll', EZ_TOC_URL . "vendor/smooth-scroll/jquery.smooth-scroll$min.js", array( 'jquery' ), '2.2.0', TRUE );
|
238 |
wp_register_script( 'jquery-sticky-kit', EZ_TOC_URL . "vendor/sticky-kit/jquery.sticky-kit$min.js", array( 'jquery' ), '1.9.2', TRUE );
|
268 |
|
269 |
$js_vars['width'] = esc_js( $width );
|
270 |
}else{
|
271 |
+
if(ezTOC_Option::get( 'visibility' )){
|
272 |
+
$js_vars['visibility_hide_by_default'] = ezTOC_Option::get( 'visibility_hide_by_default' ) ? true : false;
|
273 |
+
}
|
274 |
}
|
275 |
|
276 |
$offset = wp_is_mobile() ? ezTOC_Option::get( 'mobile_smooth_scroll_offset', 0 ) : ezTOC_Option::get( 'smooth_scroll_offset', 30 );
|
304 |
$css .= 'div#ez-toc-container p.ez-toc-title {font-size: ' . ezTOC_Option::get( 'title_font_size', 120 ) . ezTOC_Option::get( 'title_font_size_units', '%' ) . ';}';
|
305 |
$css .= 'div#ez-toc-container p.ez-toc-title {font-weight: ' . ezTOC_Option::get( 'title_font_weight', 500 ) . ';}';
|
306 |
$css .= 'div#ez-toc-container ul li {font-size: ' . ezTOC_Option::get( 'font_size' ) . ezTOC_Option::get( 'font_size_units' ) . ';}';
|
307 |
+
$css .= 'div#ez-toc-container nav ul ul li ul li {font-size: ' . ezTOC_Option::get( 'child_font_size' ) . ezTOC_Option::get( 'font_size_units' ) . '!important;}';
|
308 |
|
309 |
if ( ezTOC_Option::get( 'theme' ) === 'custom' || ezTOC_Option::get( 'width' ) != 'auto' ) {
|
310 |
|
543 |
$html = $post->getTOC();
|
544 |
$run = false;
|
545 |
}
|
546 |
+
if (isset($atts["initial_view"]) && !empty($atts["initial_view"]) && $atts["initial_view"] == 'hide') {
|
547 |
+
$html = preg_replace('/class="ez-toc-list ez-toc-list-level-1"/', 'class="ez-toc-list ez-toc-list-level-1" style="display:none"', $html);
|
548 |
+
}
|
549 |
|
550 |
return $html;
|
551 |
}
|
includes/class.options.php
CHANGED
@@ -253,6 +253,8 @@ if ( ! class_exists( 'ezTOC_Option' ) ) {
|
|
253 |
'type' => 'select',
|
254 |
'options' => array(
|
255 |
'decimal' => __( 'Decimal (default)', 'easy-table-of-contents' ),
|
|
|
|
|
256 |
'numeric' => __( 'Numeric', 'easy-table-of-contents' ),
|
257 |
'roman' => __( 'Roman', 'easy-table-of-contents' ),
|
258 |
'none' => __( 'None', 'easy-table-of-contents' ),
|
@@ -344,6 +346,12 @@ if ( ! class_exists( 'ezTOC_Option' ) ) {
|
|
344 |
),
|
345 |
'default' => 'none',
|
346 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
'title_font_size' => array(
|
348 |
'id' => 'title_font_size',
|
349 |
'name' => __( 'Title Font Size', 'easy-table-of-contents' ),
|
@@ -376,6 +384,19 @@ if ( ! class_exists( 'ezTOC_Option' ) ) {
|
|
376 |
'type' => 'font_size',
|
377 |
'default' => 95,
|
378 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
'theme' => array(
|
380 |
'id' => 'theme',
|
381 |
'name' => __( 'Theme', 'easy-table-of-contents' ),
|
@@ -472,6 +493,13 @@ if ( ! class_exists( 'ezTOC_Option' ) ) {
|
|
472 |
'type' => 'checkbox',
|
473 |
'default' => false,
|
474 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
475 |
//'bullet_spacing' => array(
|
476 |
// 'id' => 'bullet_spacing',
|
477 |
// 'name' => __( 'Theme Bullets', 'easy-table-of-contents' ),
|
@@ -619,6 +647,7 @@ if ( ! class_exists( 'ezTOC_Option' ) ) {
|
|
619 |
'title_font_size_units' => '%',
|
620 |
'title_font_weight' => 500,
|
621 |
'font_size' => 95,
|
|
|
622 |
'font_size_units' => '%',
|
623 |
'theme' => 'grey',
|
624 |
'custom_background_colour' => '#fff',
|
@@ -632,6 +661,7 @@ if ( ! class_exists( 'ezTOC_Option' ) ) {
|
|
632 |
//'bullet_spacing' => false,
|
633 |
'include_homepage' => false,
|
634 |
'exclude_css' => false,
|
|
|
635 |
'exclude' => '',
|
636 |
'heading_levels' => array( '1', '2', '3', '4', '5', '6' ),
|
637 |
'restrict_path' => '',
|
@@ -1304,6 +1334,47 @@ if ( ! class_exists( 'ezTOC_Option' ) ) {
|
|
1304 |
)
|
1305 |
);
|
1306 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1307 |
if ( 0 < strlen( $args['desc'] ) ) {
|
1308 |
|
1309 |
echo '<label for="ez-toc-settings[' . $args['id'] . ']"> ' . $args['desc'] . '</label>';
|
253 |
'type' => 'select',
|
254 |
'options' => array(
|
255 |
'decimal' => __( 'Decimal (default)', 'easy-table-of-contents' ),
|
256 |
+
'disc' => __( 'Disc', 'easy-table-of-contents' ),
|
257 |
+
'hyphen' => __( 'Hyphen', 'easy-table-of-contents' ),
|
258 |
'numeric' => __( 'Numeric', 'easy-table-of-contents' ),
|
259 |
'roman' => __( 'Roman', 'easy-table-of-contents' ),
|
260 |
'none' => __( 'None', 'easy-table-of-contents' ),
|
346 |
),
|
347 |
'default' => 'none',
|
348 |
),
|
349 |
+
'font_options_header' => array(
|
350 |
+
'id' => 'font_options',
|
351 |
+
'name' => '<strong>' . __( 'Font Option', 'easy-table-of-contents' ) . '</strong>',
|
352 |
+
//'desc' => __( 'For the following settings to apply, select the Custom Font option.', 'easy-table-of-contents' ),
|
353 |
+
'type' => 'header',
|
354 |
+
),
|
355 |
'title_font_size' => array(
|
356 |
'id' => 'title_font_size',
|
357 |
'name' => __( 'Title Font Size', 'easy-table-of-contents' ),
|
384 |
'type' => 'font_size',
|
385 |
'default' => 95,
|
386 |
),
|
387 |
+
'child_font_size' => array(
|
388 |
+
'id' => 'child_font_size',
|
389 |
+
'name' => __( 'Child Font Size', 'easy-table-of-contents' ),
|
390 |
+
'desc' => '',
|
391 |
+
'type' => 'child_font_size',
|
392 |
+
'default' => 90,
|
393 |
+
),
|
394 |
+
'theme_option_header' => array(
|
395 |
+
'id' => 'theme_option_header',
|
396 |
+
'name' => '<strong>' . __( 'Theme Options', 'easy-table-of-contents' ) . '</strong>',
|
397 |
+
//'desc' => __( 'For the following settings to apply, select the Custom Theme option.', 'easy-table-of-contents' ),
|
398 |
+
'type' => 'header',
|
399 |
+
),
|
400 |
'theme' => array(
|
401 |
'id' => 'theme',
|
402 |
'name' => __( 'Theme', 'easy-table-of-contents' ),
|
493 |
'type' => 'checkbox',
|
494 |
'default' => false,
|
495 |
),
|
496 |
+
'inline_css' => array(
|
497 |
+
'id' => 'inline_css',
|
498 |
+
'name' => __( 'Inline CSS', 'easy-table-of-contents' ),
|
499 |
+
'desc' => __( "Improve your website performance by inlining your CSS.", 'easy-table-of-contents' ),
|
500 |
+
'type' => 'checkbox',
|
501 |
+
'default' => false,
|
502 |
+
),
|
503 |
//'bullet_spacing' => array(
|
504 |
// 'id' => 'bullet_spacing',
|
505 |
// 'name' => __( 'Theme Bullets', 'easy-table-of-contents' ),
|
647 |
'title_font_size_units' => '%',
|
648 |
'title_font_weight' => 500,
|
649 |
'font_size' => 95,
|
650 |
+
'child_font_size' => 90,
|
651 |
'font_size_units' => '%',
|
652 |
'theme' => 'grey',
|
653 |
'custom_background_colour' => '#fff',
|
661 |
//'bullet_spacing' => false,
|
662 |
'include_homepage' => false,
|
663 |
'exclude_css' => false,
|
664 |
+
'inline_css' => false,
|
665 |
'exclude' => '',
|
666 |
'heading_levels' => array( '1', '2', '3', '4', '5', '6' ),
|
667 |
'restrict_path' => '',
|
1334 |
)
|
1335 |
);
|
1336 |
|
1337 |
+
if ( 0 < strlen( $args['desc'] ) ) {
|
1338 |
+
|
1339 |
+
echo '<label for="ez-toc-settings[' . $args['id'] . ']"> ' . $args['desc'] . '</label>';
|
1340 |
+
}
|
1341 |
+
}
|
1342 |
+
/**
|
1343 |
+
* Custom font size callback.
|
1344 |
+
*
|
1345 |
+
* @access public
|
1346 |
+
* @since 1.0
|
1347 |
+
* @static
|
1348 |
+
*
|
1349 |
+
* @param array $args
|
1350 |
+
*/
|
1351 |
+
public static function child_font_size( $args ) {
|
1352 |
+
|
1353 |
+
//$value = self::get( $args['id'], $args['default'] );
|
1354 |
+
|
1355 |
+
self::text(
|
1356 |
+
array(
|
1357 |
+
'id' => $args['id'],
|
1358 |
+
'desc' => '',
|
1359 |
+
'size' => 'small',
|
1360 |
+
'default' => $args['default'],
|
1361 |
+
)
|
1362 |
+
);
|
1363 |
+
|
1364 |
+
self::select(
|
1365 |
+
array(
|
1366 |
+
'id' => $args['id'] . '_units',
|
1367 |
+
'desc' => '',
|
1368 |
+
'options' => array(
|
1369 |
+
'pt' => 'pt',
|
1370 |
+
'px' => 'px',
|
1371 |
+
'%' => '%',
|
1372 |
+
'em' => 'em',
|
1373 |
+
),
|
1374 |
+
'default' => '%',
|
1375 |
+
)
|
1376 |
+
);
|
1377 |
+
|
1378 |
if ( 0 < strlen( $args['desc'] ) ) {
|
1379 |
|
1380 |
echo '<label for="ez-toc-settings[' . $args['id'] . ']"> ' . $args['desc'] . '</label>';
|
includes/class.post.php
CHANGED
@@ -135,6 +135,10 @@ class ezTOC_Post {
|
|
135 |
remove_filter( 'the_content', array( 'ezTOC', 'the_content' ), 100 );
|
136 |
|
137 |
$this->post->post_content = apply_filters( 'ez_toc_the_content', strip_shortcodes( $this->post->post_content ) );
|
|
|
|
|
|
|
|
|
138 |
|
139 |
add_filter( 'the_content', array( 'ezTOC', 'the_content' ), 100 );
|
140 |
|
@@ -1136,6 +1140,14 @@ class ezTOC_Post {
|
|
1136 |
case 'decimal':
|
1137 |
$class[] = 'counter-decimal';
|
1138 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1139 |
}
|
1140 |
|
1141 |
// colour themes
|
@@ -1207,7 +1219,7 @@ class ezTOC_Post {
|
|
1207 |
|
1208 |
if ( ezTOC_Option::get( 'visibility' ) ) {
|
1209 |
if (ezTOC_Option::get( 'toc_loading' ) != 'css') {
|
1210 |
-
$html .= '<a class="ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle" style="display: none;"><i class="ez-toc-glyphicon ez-toc-icon-toggle"></i></a>';
|
1211 |
}else{
|
1212 |
$toggle_view='';
|
1213 |
if(ezTOC_Option::get('visibility_hide_by_default')==true){
|
@@ -1375,7 +1387,7 @@ class ezTOC_Post {
|
|
1375 |
}
|
1376 |
}
|
1377 |
|
1378 |
-
return $html;
|
1379 |
}
|
1380 |
|
1381 |
/**
|
135 |
remove_filter( 'the_content', array( 'ezTOC', 'the_content' ), 100 );
|
136 |
|
137 |
$this->post->post_content = apply_filters( 'ez_toc_the_content', strip_shortcodes( $this->post->post_content ) );
|
138 |
+
|
139 |
+
if( class_exists( 'Salient_Core' ) ) {
|
140 |
+
$this->post->post_content = apply_filters( 'the_content', strip_shortcodes( $this->post->post_content ) );
|
141 |
+
}
|
142 |
|
143 |
add_filter( 'the_content', array( 'ezTOC', 'the_content' ), 100 );
|
144 |
|
1140 |
case 'decimal':
|
1141 |
$class[] = 'counter-decimal';
|
1142 |
break;
|
1143 |
+
|
1144 |
+
case 'hyphen':
|
1145 |
+
$class[] = 'counter-hyphen';
|
1146 |
+
break;
|
1147 |
+
|
1148 |
+
case 'disc':
|
1149 |
+
$class[] = 'counter-disc';
|
1150 |
+
break;
|
1151 |
}
|
1152 |
|
1153 |
// colour themes
|
1219 |
|
1220 |
if ( ezTOC_Option::get( 'visibility' ) ) {
|
1221 |
if (ezTOC_Option::get( 'toc_loading' ) != 'css') {
|
1222 |
+
$html .= '<a class="ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle" style="display: none;"><label for="item" aria-label="'.__( 'Table of Content', 'easy-table-of-contents' ).'"><i class="ez-toc-glyphicon ez-toc-icon-toggle"></i></label><input type="checkbox" id="item"></a>';
|
1223 |
}else{
|
1224 |
$toggle_view='';
|
1225 |
if(ezTOC_Option::get('visibility_hide_by_default')==true){
|
1387 |
}
|
1388 |
}
|
1389 |
|
1390 |
+
return do_shortcode($html);
|
1391 |
}
|
1392 |
|
1393 |
/**
|
includes/class.widget-toc.php
CHANGED
@@ -202,6 +202,15 @@ if ( ! class_exists( 'ezTOC_Widget' ) ) {
|
|
202 |
case 'decimal':
|
203 |
$class[] = 'counter-decimal';
|
204 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
}
|
206 |
|
207 |
if ( $instance['affix'] ) {
|
202 |
case 'decimal':
|
203 |
$class[] = 'counter-decimal';
|
204 |
break;
|
205 |
+
|
206 |
+
case 'hyphen':
|
207 |
+
$class[] = 'counter-hyphen';
|
208 |
+
break;
|
209 |
+
|
210 |
+
case 'disc':
|
211 |
+
$class[] = 'counter-disc';
|
212 |
+
break;
|
213 |
+
|
214 |
}
|
215 |
|
216 |
if ( $instance['affix'] ) {
|
includes/inc.admin-options-page.php
CHANGED
@@ -169,6 +169,9 @@
|
|
169 |
</li>
|
170 |
<li><button class="button button-primary eztoc-send-query"><?php echo esc_html__('Send Support Request','easy-table-of-contents'); ?></button></li>
|
171 |
</ul>
|
|
|
|
|
|
|
172 |
</div>
|
173 |
</div>
|
174 |
<div class="eztoc-right-side">
|
169 |
</li>
|
170 |
<li><button class="button button-primary eztoc-send-query"><?php echo esc_html__('Send Support Request','easy-table-of-contents'); ?></button></li>
|
171 |
</ul>
|
172 |
+
<div class="clear"> </div>
|
173 |
+
<span class="eztoc-query-success eztoc-result eztoc_hide"><?php echo esc_html__('Message sent successfully, Please wait we will get back to you shortly','easy-table-of-contents'); ?></span>
|
174 |
+
<span class="eztoc-query-error eztoc-result eztoc_hide"><?php echo esc_html__('Message not sent. please check your network connection','easy-table-of-contents'); ?></span>
|
175 |
</div>
|
176 |
</div>
|
177 |
<div class="eztoc-right-side">
|
includes/inc.functions.php
CHANGED
@@ -89,4 +89,11 @@ function get_ez_toc_block( $post = null, $apply_content_filter = true ) {
|
|
89 |
function ez_toc_block( $post = null, $apply_content_filter = true ) {
|
90 |
|
91 |
echo get_ez_toc_block( $post, $apply_content_filter );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
}
|
89 |
function ez_toc_block( $post = null, $apply_content_filter = true ) {
|
90 |
|
91 |
echo get_ez_toc_block( $post, $apply_content_filter );
|
92 |
+
}
|
93 |
+
|
94 |
+
function ez_toc_inline_styles(){
|
95 |
+
echo "<style>@font-face{font-display:swap;font-family:ez-toc-icomoon;src:url('".EZ_TOC_URL."vendor/icomoon/fonts/ez-toc-icomoon.eot');src:url('".EZ_TOC_URL."vendor/icomoon/fonts/ez-toc-icomoon.eot?#iefix') format('embedded-opentype'),url('".EZ_TOC_URL."vendor/icomoon/fonts/ez-toc-icomoon.woff2') format('woff2'),url('".EZ_TOC_URL."vendor/icomoon/fonts/ez-toc-icomoon.woff') format('woff'),url('".EZ_TOC_URL."vendor/icomoon/fonts/ez-toc-icomoon.ttf') format('truetype'),url('".EZ_TOC_URL."vendor/icomoon/fonts/ez-toc-icomoon.svg#ez-toc-icomoon') format('svg');font-weight:400;font-style:normal}#ez-toc-container {background: #F9F9F9;border: 1px solid #AAAAAA;border-radius: 4px;-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);display: table;margin-bottom: 1em;padding: 10px;position: relative;width: auto;}div.ez-toc-widget-container {padding: 0;position: relative;}#ez-toc-container.ez-toc-light-blue {background: #EDF6FF;}#ez-toc-container.ez-toc-white {background: #FFFFFF;}#ez-toc-container.ez-toc-black {background: #000000;}#ez-toc-container.ez-toc-transparent {background: none transparent;}div.ez-toc-widget-container ul {display: block;}div.ez-toc-widget-container li {border: none;padding: 0;}div.ez-toc-widget-container ul.ez-toc-list {padding: 10px;}#ez-toc-container ul ul, .ez-toc div.ez-toc-widget-container ul ul {margin-left: 1.5em;}#ez-toc-container ul, #ez-toc-container li {margin: 0;padding: 0;}#ez-toc-container ul, #ez-toc-container li, #ez-toc-container ul li, div.ez-toc-widget-container, div.ez-toc-widget-container li {background: none;list-style: none none;line-height: 1.6;margin: 0;overflow: hidden;z-index: 1;}#ez-toc-container p.ez-toc-title {text-align: left;line-height: 1.45;margin: 0;padding: 0;}.ez-toc-title-container {display: table;width: 100%;}.ez-toc-title, .ez-toc-title-toggle {display: table-cell;text-align: left;vertical-align: middle;}#ez-toc-container.ez-toc-black p.ez-toc-title {color: #FFF;}#ez-toc-container div.ez-toc-title-container + ul.ez-toc-list {margin-top: 1em;}.ez-toc-wrap-left {float: left;margin-right: 10px;}.ez-toc-wrap-right {float: right;margin-left: 10px;}#ez-toc-container a {color: #444444;box-shadow: none;text-decoration: none;text-shadow: none;}#ez-toc-container a:visited {color: #9f9f9f;}#ez-toc-container a:hover {text-decoration: underline;}#ez-toc-container.ez-toc-black a {color: #FFF;}#ez-toc-container.ez-toc-black a:visited {color: #FFF;}#ez-toc-container a.ez-toc-toggle {color: #444444;}#ez-toc-container.counter-hierarchy ul, .ez-toc-widget-container.counter-hierarchy ul, #ez-toc-container.counter-flat ul, .ez-toc-widget-container.counter-flat ul {counter-reset: item;}#ez-toc-container.counter-numeric li, .ez-toc-widget-container.counter-numeric li {list-style-type: decimal;list-style-position: inside;}#ez-toc-container.counter-decimal ul.ez-toc-list li a::before, .ez-toc-widget-container.counter-decimal ul.ez-toc-list li a::before {content: counters(item, ".") ". ";display: inline-block;counter-increment: item;margin-right: .2em;}#ez-toc-container.counter-roman li a::before, .ez-toc-widget-container.counter-roman ul.ez-toc-list li a::before {content: counters(item, ".", upper-roman) ". ";counter-increment: item;}.ez-toc-widget-container ul.ez-toc-list li::before {content: ' ';position: absolute;left: 0;right: 0;height: 30px;line-height: 30px;z-index: -1;}.ez-toc-widget-container ul.ez-toc-list li.active::before {background-color: #EDEDED;}.ez-toc-widget-container li.active > a {font-weight: 900;}.ez-toc-btn {display: inline-block;padding: 6px 12px;margin-bottom: 0;font-size: 14px;font-weight: normal;line-height: 1.428571429;text-align: center;white-space: nowrap;vertical-align: middle;cursor: pointer;background-image: none;border: 1px solid transparent;border-radius: 4px;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none;user-select: none }.ez-toc-btn:focus {outline: thin dotted #333;outline: 5px auto -webkit-focus-ring-color;outline-offset: -2px }.ez-toc-btn:hover,.ez-toc-btn:focus {color: #333;text-decoration: none }.ez-toc-btn:active,.ez-toc-btn.active {background-image: none;outline: 0;-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) }.ez-toc-btn-default {color: #333;background-color: #fff;border-color: #ccc }.ez-toc-btn-default:hover,.ez-toc-btn-default:focus,.ez-toc-btn-default:active,.ez-toc-btn-default.active {color: #333;background-color: #ebebeb;border-color: #adadad }.ez-toc-btn-default:active,.ez-toc-btn-default.active {background-image: none }.ez-toc-btn-sm,.ez-toc-btn-xs {padding: 5px 10px;font-size: 12px;line-height: 1.5;border-radius: 3px }.ez-toc-btn-xs {padding: 1px 5px }.ez-toc-btn-default {text-shadow: 0 -1px 0 rgba(0,0,0,0.2);-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075);box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),0 1px 1px rgba(0,0,0,0.075) }.ez-toc-btn-default:active {-webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) }.ez-toc-btn:active,.btn.active {background-image: none }.ez-toc-btn-default {text-shadow: 0 1px 0 #fff;background-image: -webkit-gradient(linear,left 0,left 100%,from(#fff),to(#e0e0e0));background-image: -webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image: -moz-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image: linear-gradient(to bottom,#fff 0,#e0e0e0 100%);background-repeat: repeat-x;border-color: #dbdbdb;border-color: #ccc;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe0e0e0',GradientType=0);filter: progid:DXImageTransform.Microsoft.gradient(enabled=false) }.ez-toc-btn-default:hover,.ez-toc-btn-default:focus {background-color: #e0e0e0;background-position: 0 -15px }.ez-toc-btn-default:active,.ez-toc-btn-default.active {background-color: #e0e0e0;border-color: #dbdbdb }.ez-toc-pull-right {float: right !important;margin-left: 10px;}.ez-toc-glyphicon {position: relative;top: 1px;display: inline-block;font-family: 'Glyphicons Halflings';-webkit-font-smoothing: antialiased;font-style: normal;font-weight: normal;line-height: 1;-moz-osx-font-smoothing: grayscale }.ez-toc-glyphicon:empty {width: 1em }.ez-toc-toggle i.ez-toc-glyphicon {font-size: 16px;margin-left: 2px;}[class*=\"ez-toc-icon-\"] {font-family: 'ez-toc-icomoon' !important;speak: none;font-style: normal;font-weight: normal;font-variant: normal;text-transform: none;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}.ez-toc-icon-toggle:before {content: \"\\e87a\";}#ez-toc-container input {position: absolute;left: -999em;}#ez-toc-container input[type=\"checkbox\"]:checked + nav {opacity: 0;max-height: 0;border: none;}#ez-toc-container label {float: right;position: relative;left: 3px;font-size: 16px;/* background: #f9efef; */padding: 0px 4px 0px 5px;border: 1px solid #999191;border-radius: 5px;cursor: pointer;}div#ez-toc-container p.ez-toc-title {display: contents;}div#ez-toc-container {padding-right: 20px;}#ez-toc-container label {left: 10px;}.ez-toc-wrap-center {margin: 0 auto;}#ez-toc-container.counter-hyphen ul.ez-toc-list li a::before,#ez-toc-container.counter-disc li,.ez-toc-widget-container.counter-disc li {list-style-type: disc;list-style-position: inside;}#ez-toc-container.counter-hyphen li,.ez-toc-widget-container.counter-hyphen li {list-style-type: '- ';list-style-position: inside;}#ez-toc-container a.ez-toc-toggle {color: #444444;background: inherit;border: inherit;}.ez-toc-toggle #item{position: absolute;left: -999em;}</style>";
|
96 |
+
}
|
97 |
+
if (ezTOC_Option::get( 'inline_css' )) {
|
98 |
+
add_action('wp_head', 'ez_toc_inline_styles');
|
99 |
}
|