Easy Table of Contents - Version 2.0.38

Version Description

11/21/2022 = * BUG: Deactivate Feedback Form need to be filtered #345 * NEW: BFCM internal offer #342 * BUG: Ajax call is missing security nonce #340 * BUG: On hover, the contents heads show in two lines. #337 * BUG: Easy table of content is visible in FAQ section #321 * BUG: TOC Container Toggle is working on widget TOC container. #316 * BUG: Problem with TOC on mobile #284 * NEW: Admin General Settings Section Tabs customization #270

Download this release

Release Info

Developer magazine3
Plugin Icon 128x128 Easy Table of Contents
Version 2.0.38
Comparing to
See all releases

Code changes from version 2.0.37 to 2.0.38

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: table of contents, toc
5
  Requires at least: 5.3
6
  Tested up to: 6.1
7
  Requires PHP: 5.6.20
8
- Stable tag: 2.0.37
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -105,11 +105,21 @@ Easy Table Contents is a fork of the excellent [Table of Contents Plus](https://
105
  4. Activate the plugin on the Plugins admin page.
106
 
107
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
108
  = 2.0.37 11/11/2022 =
109
  * BUG: Need to test compatibility with wp 6.1. #335
110
  * BUG: Warning: Trying to access array offset on value of type null #334
111
  * BUG: Numbers are wrong #330
112
- * BUG: Add a new functionality "reset to default settings" #293
113
  * BUG: Shortcode are not working with Salient theme #271
114
 
115
  = 2.0.36.1 11/07/2022 =
5
  Requires at least: 5.3
6
  Tested up to: 6.1
7
  Requires PHP: 5.6.20
8
+ Stable tag: 2.0.38
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
105
  4. Activate the plugin on the Plugins admin page.
106
 
107
  == Changelog ==
108
+ = 2.0.38 11/21/2022 =
109
+ * BUG: Deactivate Feedback Form need to be filtered #345
110
+ * NEW: BFCM internal offer #342
111
+ * BUG: Ajax call is missing security nonce #340
112
+ * BUG: On hover, the contents heads show in two lines. #337
113
+ * BUG: Easy table of content is visible in FAQ section #321
114
+ * BUG: TOC Container Toggle is working on widget TOC container. #316
115
+ * BUG: Problem with TOC on mobile #284
116
+ * NEW: Admin General Settings Section Tabs customization #270
117
+
118
  = 2.0.37 11/11/2022 =
119
  * BUG: Need to test compatibility with wp 6.1. #335
120
  * BUG: Warning: Trying to access array offset on value of type null #334
121
  * BUG: Numbers are wrong #330
122
+ * NEW: Add a new functionality "reset to default settings" #293
123
  * BUG: Shortcode are not working with Salient theme #271
124
 
125
  = 2.0.36.1 11/07/2022 =
assets/css/admin.css CHANGED
@@ -256,7 +256,7 @@ html {
256
  }
257
 
258
  /* #technical p{
259
- line-height: 0.5rem;
260
  } */
261
  #technical-form {
262
 
@@ -389,13 +389,13 @@ html {
389
  color: #fff;
390
  text-decoration: none;
391
  text-shadow: none;
392
- margin-left: 70px !important;;
393
  }
394
 
395
  @media screen and (min-width: 870px) and (max-width: 1300px ) {
396
  .eztoc-bio-box {
397
  padding-top: 20px;
398
- height: 29.1rem;;
399
  }
400
 
401
  .eztoc-bio-box h1 {
@@ -1406,3 +1406,39 @@ div#wp-pointer-0 {
1406
  #eztoc-technical-how-to-use li{
1407
  list-style: auto !important;
1408
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  }
257
 
258
  /* #technical p{
259
+ line-height: 0.5rem;
260
  } */
261
  #technical-form {
262
 
389
  color: #fff;
390
  text-decoration: none;
391
  text-shadow: none;
392
+ margin-left: 70px !important;
393
  }
394
 
395
  @media screen and (min-width: 870px) and (max-width: 1300px ) {
396
  .eztoc-bio-box {
397
  padding-top: 20px;
398
+ height: 29.1rem;
399
  }
400
 
401
  .eztoc-bio-box h1 {
1406
  #eztoc-technical-how-to-use li{
1407
  list-style: auto !important;
1408
  }
1409
+
1410
+ #general #eztoc-tabs {
1411
+ margin-top: 10px;
1412
+ z-index: 9999;
1413
+ width: 100%;
1414
+ background-color: #f1f1f1;
1415
+ }
1416
+ #general #eztoc-tabs.stay {
1417
+ transition: top -0.1s cubic-bezier(0.4, 0, 1, 1);
1418
+ top: 148px;
1419
+ }
1420
+ #general #eztoc-tabs.moving {
1421
+ position: fixed;
1422
+ transition: top -0.1s cubic-bezier(0.4, 0, 1, 1);
1423
+ top: 20px;
1424
+ line-height: 25px;
1425
+ }
1426
+ #general form.moving {
1427
+ margin-top: 18px;
1428
+ }
1429
+ div#eztoc-tabs a:first-child, div#eztoc-tabs a {
1430
+ color: #000000;
1431
+ }
1432
+ div#eztoc-tabs a:first-child.active, div#eztoc-tabs a.active {
1433
+ color: #ea4c89;
1434
+ }
1435
+ @media screen and (max-width: 782px){
1436
+ #general #eztoc-tabs.moving {
1437
+ top: 38px;
1438
+ }
1439
+ }
1440
+ @media screen and (max-width: 601px){
1441
+ #general #eztoc-tabs.moving {
1442
+ top: -12px;
1443
+ }
1444
+ }
assets/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- #tabbed-nav li,div.tab_container{border:1px solid #dfdfdf;overflow:hidden;float:left}.fe-t h4,.fe-t img{vertical-align:middle}.etoc-eztoc-cnt,.etoc-eztoc-img,.ezoc-bio-wrap,.eztoc-bio-box h1,.eztoc-p,.eztoc-right-side,.eztoc_boxdesk,.pr-btn,.pri-tb,.price-section .price-area .inner-area,.pvf-tlt,.upg-t{text-align:center}#tabbed-nav li a,.company-link a,.etoc-eztoc-cnt .buy,.eztoc-send-query,.f-cnt a,.pr-btn a,.pri-tb a,.toc-tab-panel a,.tru-us a,div#eztoc-tabs a{text-decoration:none}div.tab_content table{margin-bottom:1em}#tabbed-nav,table.more_toc_options_table td,table.more_toc_options_table th{margin:0;padding: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{float:left;list-style:none;height:32px;border-bottom:1px solid #dfdfdf;border-left:1px solid #dfdfdf;width:100%}#tabbed-nav li{margin:0 0 -1px;padding:0;height:31px;line-height:31px;border-left:none;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{color:#000;display:block;font-size:1.2em;padding:0 20px;border:1px solid #fff;outline:0}#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-top:none;clear:both;width:100%;background:#fff;margin-bottom:2em;padding-bottom:2em}div.tab_content{padding:10px 10px 0;font-size:1em}h3 span.show_hide{font-size:.85em;font-weight:400}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#child_font_size,input#font_size,input#smooth_scroll_offset,input#width_custom{width:50px;text-align:center}input.custom_colour_option{width:75px}div#farbtastic_colour_wheel,table#theme_custom{float:left}table#theme_custom{margin-top:30px}table#theme_custom img{vertical-align:middle;opacity:.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;float:left;border:none;outline:0;cursor:pointer;padding:14px 16px;transition:none;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:0}.eztoc-tabcontent{animation:1s fadeEffect;display:none;border-top:none}#technical .eztoc-form-page-ui{display:flex;width:auto;height:auto;background:#fff;margin-top:10px;padding:15px 28px 28px;min-width:255px;box-shadow:0 1px 1px rgb(0 0 0 / 4%)}#technical .eztoc-left-side,.lt,.rt{width:70%}.eztoc-right-side{width:31%;margin-top:0;margin-bottom:auto}#technical-form{width:60%}.support-label{margin-top:4px;float:left;width:70px;font-size:14px}.star-mark{color:red;margin-left:4px;font-family:bold}#technical li{margin:10px 0;list-style:none}.eztoc_support_div_form{margin-top:23px}.eztoc-customer-type,.eztoc_dev-bio{display:block}.support-input select{border-radius:4px;margin-top:-7px}.ezoc-bio-wrap{float:left;width:33.33%;text-transform:uppercase}.ezoc-bio-wrap p{width:auto;font-size:10px;color:#555;margin:0 0 20px}.ezoc-bio-wrap img{margin:25px 0 0;border-radius:50%}.eztoc-bio-box{background:#fff;border:1px solid #ccc;padding:0 20px;border-radius:4px;margin:15px 15px 15px 0}.eztoc-bio-box:hover{box-shadow:5px 5px 8px #888}.eztoc-p{margin:10px auto 0;line-height:1.5rem;padding:0 25px;font-size:16px}.eztoc-bio-box h1{margin:8px auto 0;font-weight:bolder}.eztoc_boxdesk{clear:left;font-size:15px;margin:20px 0 0}.company-link{font-weight:500;margin:20px 0 0}.company-link a{display:table;background:#e91e63;width:auto;margin:10px auto 15px;padding:7px 25px;color:#fff;border-radius:6px;border:0;font-size:16px}.eztoc-send-query{background:#2271b1;border-color:#2271b1;color:#fff;text-shadow:none;margin-left:70px!important}.fe-2,.fr-fe,.upg-t{color:#222}@media screen and (min-width:870px) and (max-width:1300px){.eztoc-bio-box{padding-top:20px;height:29.1rem}.eztoc-bio-box h1{font-size:20px}.eztoc-bio-box p{font-size:13px;margin:20px auto 0}.ezoc-bio-wrap img{width:30px;height:30px}.ezoc-bio-wrap p{width:55px;font-size:12px;margin-bottom:10px}}@keyframes fadeEffect{from{opacity:0}to{opacity:1}}.eztoc-wrapper{max-width:100%;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}.etoc-eztoc-img,.eztoc-wr,.table .package-name{width:100%;position:relative}.price-section .price-area .inner-area{height:100%;width:100%;border-radius:50%;border:3px solid #fff;color:#fff;line-height:117px;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{height:2px;background:#ffecb3;margin:35px 0}.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:0;border-radius:25px;cursor:pointer;transition:.3s}.basic .inner-area,.basic .price-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 .inner-area,.Premium .package-name,.Premium .price-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}.basic .package-name::before{content:"Free"}.Premium .package-name::before{content:"PRO"}.basic .inner-area,.basic .price-area,.basic ::selection{background:#ffd861}.Premium .inner-area,.Premium .price-area,.Premium ::selection{background:#a26bfa}div#eztoc-tabs a:first-child{color:#000}#the-list,.eztoc-img img{position:relative}.eztoc-wr{margin:0 auto}.etoc-eztoc-img{margin:0 auto;line-height:0;height:300px}.etoc-eztoc-cnt,.sp_ov{position:absolute;bottom:0}.sp_ov{background:#ea4c89;left:0;right:0;top:0}.etoc-eztoc-cnt{top:40px;left:40px;right:40px;margin:0 auto}.d-amt sup,.pri-tb,.pri-tb .amt sup,.pvf,.pvf-tlt span{position:relative}.etoc-eztoc-cnt h1{font-size:60px;color:#fff;font-weight:600}.etoc-eztoc-cnt p{margin-top:0;color:#371b24;font-size:18px;padding:0 100px;line-height:1.4;font-weight:500}.etoc-eztoc-cnt .buy{border-width:0!important;line-height:2;background:#fff!important;border-radius:8px!important;font-size:16px!important;padding:12px 18px;color:#ea4c89!important;font-weight:500}.etoc-eztoc-cnt .buy:hover{box-shadow:0 2px 2px #999;background:linear-gradient(to left,#fdfc35,#ffe258)!important}.pvf{top:-16px;border:1px solid #eee;padding-bottom:40px}.ext{display:grid;grid-template-columns:1fr 1fr 1fr;background:#f9f9f9;padding:45px 0 45px 25px}.pvf-cnt,.pvf-tlt span{display:inline-block}.ex-1{width:80%}.ampfaq,.etoc-pri-lst,.fet,.pr-btn,.pvf-cnt,.pvf-tlt{width:100%}.ex-1 h4{margin:15px 0 12px;font-weight:600;font-size:20px;color:#ea4c89}.ex-1 p,.pvf-tlt h2{margin:0;color:#000}.ex-1 p{font-size:14px;font-weight:400}.e-1 img{width:65px!important}.e-2 img{width:45px!important}.e-3 img{width:49px!important}.pvf-tlt{margin:70px 0 60px}.pvf-tlt h2{font-size:36px;line-height:1.4;font-weight:500}.pvf-tlt span{font-size:16px;color:#000;margin-top:15px;top:4px}.pvf-cmp{display:grid;grid-template-columns:1fr 2fr}.fr{border-right:1px solid #eee}.fr h1,.pr h1{font-size:36px;font-weight:700;line-height:1.5;border-bottom:1px solid #efefef;padding:0 0 20px 35px}.pr h1{padding-left:50px;color:#ea4c89}.fr-fe{padding-top:10px}.fe-1{padding:22px 35px 35px}.fe-1 h4{margin:0 0 10px;font-size:20px;line-height:1.4;font-weight:400;color:#000}.fe-1 p{font-size:15px;line-height:1.4;margin:0;color:#333}.pr-fe{padding:34px 35px 35px}.pr-fe span{font-family:georgia;font-size:16px;font-weight:700;color:#000;font-style:italic;line-height:1.3}.fet{display:grid;grid-template-columns:1fr 1fr;grid-gap:25px;margin-top:40px}.fe-t h4,.fe-t img,.pr-btn,.pr-btn a,.upg-t>span{display:inline-block}.fe-t img{width:22px!important}.fe-t h4{margin:-5px 0 0;font-size:19px;color:#000;font-weight:400;line-height:1.4;padding-left:8px}.fe-2 p{font-size:15px;line-height:1.4;margin:0;color:#555;padding-top:8px}.pr-btn{margin:50px 0 25px}.pr-btn a{color:#fff;padding:12px 35px 17px;border-radius:5px;font-size:28px;line-height:1.2;background:-webkit-linear-gradient(to right,#e35796,#fc789f);font-weight:600;background:linear-gradient(to right,#e35796,#ea4c89);margin-top:0;box-shadow:0 .15em .65em 0 rgba(0,0,0,.25)}.amp-upg{background:#f5f5f5;padding:60px 10px 0}.upg-t h2{margin:0;font-size:35px;color:#060606;line-height:1.3;font-weight:500}.pri-by,.pri-tb h5,.upg-t>span{line-height:1.2}.upg-t>span{font-size:14px;margin-top:15px;color:#666}.etoc-pri-lst{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;margin-top:70px;grid-gap:1px;box-shadow:0 10px 15px 1px #ddd}.pri-tb{background:#fff;border:1px solid #f9f9f9}.f-cnt a,.pri-by{background:#333;display:inline-block}.pri-tb:hover{border:1px solid #e04371}.etoc-pri-lst .rec .pri-by,.pri-tb a:hover .pri-by{background:#e04371}.pri-tb a:hover .amt{color:#7241a7}.pri-tb a{display:inline-block;color:#222;padding:20px 12px}.pri-tb h5{margin:0 0 20px;font-size:13px;letter-spacing:2px;font-weight:400;color:#000}.pri-by,.pri-tb .amt,.pri-tb .d-amt,.pri-tb .s-amt,.tru-us h2{font-weight:500}.pri-tb span{display:inline-block}.pri-tb .amt{font-size:40px;color:#e04371;margin-bottom:20px;display:block}.pri-tb .d-amt{font-size:24px;color:#666;margin-bottom:15px;display:none;text-decoration:line-through}.d-amt sup{line-height:0;top:7px}.pri-tb .s-amt{font-size:13px;color:#4caf50;margin-bottom:10px;display:none}.pri-tb .amt sup{font-size:22px;padding:0 4px 0 0;top:7px}.pri-tb .bil{color:#aaa;font-size:12px;margin-bottom:20px}.pri-tb .e,.pri-tb .f,.pri-tb .s{font-size:14px;margin-bottom:15px;color:#3b4750;display:block}.pri-tb .etoc-sv{display:none;font-size:12px;color:#fff;background:#4caf50;margin:0 auto;padding:1px 7px 2px;border-radius:45px}.pri-by{font-size:15px;border-radius:2px;padding:9px 18px 10px;color:#fff;margin-top:29px}.etoc-pri-lst .rec{box-shadow:0 1px 40px 0 #ccc;background:#fff;z-index:9;margin-top:-20px;position:relative}.etoc-pri-lst .rec:hover .etoc-rcm{background:#000;color:#fff}.etoc-rcm{background:linear-gradient(to right,#e35796,#fc789f);color:#fff;position:absolute;top:-20px;left:0;right:-1px;bottom:auto;padding:2px 0;font-size:11px;letter-spacing:2px}.button-toc,.tru-us{font-size:16px;text-align:center}.tru-us{padding:60px 0;margin:0 auto;color:#222}.tru-us h2{margin:20px 0 0;font-size:28px}.tru-us p{font-size:17px;margin:19px 15% 18px;color:#666;line-height:29px}.tru-us a{font-size:18px;color:#489bff;font-weight:400}.ampfaq h2,.ampfaq h4,.f-cnt a,.f-cnt span{font-weight:500}.ampfaq{margin:25px 0}.ampfaq h4{margin:0;text-align:center;font-size:20px;color:#333}.faq-lst{margin-top:50px;display:grid;grid-template-columns:1fr 1fr}.lt{padding-left:50px}.lt ul,.rt ul{margin:0}.lt ul li,.rt ul li{color:#222;margin-bottom:30px!important}.lt span,.rt span{font-size:17px;font-weight:500;margin-bottom:6px;display:inline-block}.lt p,.rt p{font-size:15px;margin:0}.f-cnt{text-align:center;margin-top:20px;color:#222}.f-cnt span{font-size:17px;margin:8px 0}.f-cnt p{font-size:15px;margin:6px 0}.f-cnt a{color:#fff;padding:15px 30px;font-size:18px;margin-top:15px}@media (max-width:1366px){.amp-upg{padding:60px 0 0}.etoc-eztoc-cnt p{line-height:35px;font-size:18px}}@media (max-width:1280px){.etoc-eztoc-cnt{top:1.3%}}@media (max-width:768px){.ext,.faq-lst,.pvf-cmp{grid-template-columns:1fr}.ext{grid-gap:30px 0;padding:30px}.pvf-tlt h2{font-size:26px}.pr-btn a{font-size:22px}.etoc-pri-lst{grid-template-columns:1fr 1fr 1fr}.etoc-eztoc-cnt p{line-height:1.5;font-size:16px;margin-top:15px;padding:0 20px}.etoc-eztoc-cnt .buy{font-size:16px;padding:8px 30px}.etoc-eztoc-cnt{top:15px}.etoc-eztoc-cnt h1{font-size:30px}.ex-1{width:100%}.rt{padding-left:50px}}div#freevspro{padding:0}.ampfaq h2{margin:40px 0 0;font-size:30px;text-align:center}a#eztoc-upgrade{color:#fff;background:#ea4c89;padding:16px}div#welcome{text-align:center}.eztoc_hide,a#eztoc-welcome{display:none}.button-toc span,.ez-toc-tooltip{position:relative;display:inline-block}.button-toc{cursor:pointer;margin:20px;color:#fff;border-radius:4px;background-color:#ec407a;border:none;padding:20px;transition:.5s;font-weight:600}.button-toc span{cursor:pointer;transition:.5s}.button-toc span:after{content:'»';position:absolute;opacity:0;top:0;right:-20px;transition:.5s}.button-toc:hover span{padding-right:25px}.button-toc:hover span:after{opacity:1;right:0}.eztoc-query-success{color:green}.eztoc-query-error{color:red}.eztoc-result{margin-left:70px}div#wp-pointer-0{position:absolute;width:320px;top:515px!important;left:146px!important;z-index:9999}.ez-toc-tooltip .ez-toc-tooltiptext{visibility:hidden;width:140px;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px;position:absolute;z-index:1;bottom:150%;left:50%;margin-left:-75px;opacity:0;transition:opacity .3s}.ez-toc-tooltip .ez-toc-tooltiptext::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent}.ez-toc-tooltip:hover .ez-toc-tooltiptext{visibility:visible;opacity:1}#eztoc-tabs-technical{margin-top:10px}#eztoc-tabs-technical a.eztoc-tablinks-technical,#eztoc-tabs-technical a:first-child.eztoc-tablinks-technical{color:#000;text-decoration:none}#eztoc-tabs-technical a.eztoc-tablinks-technical.active{color:#ea4c89}.ez-toc-pull-technical-img{float:left!important;margin-right:10px;width:100%}.eztoc-tabcontent-technical p.ez-toc-tabcontent-technical-title-content{margin-top:-5px}#eztoc-technical-how-to-use li{list-style:auto!important}
1
+ #tabbed-nav li,div.tab_container{border:1px solid #dfdfdf;overflow:hidden;float:left}.fe-t h4,.fe-t img{vertical-align:middle}.etoc-eztoc-cnt,.etoc-eztoc-img,.ezoc-bio-wrap,.eztoc-bio-box h1,.eztoc-p,.eztoc-right-side,.eztoc_boxdesk,.pr-btn,.pri-tb,.price-section .price-area .inner-area,.pvf-tlt,.upg-t{text-align:center}#tabbed-nav li a,.company-link a,.etoc-eztoc-cnt .buy,.eztoc-send-query,.f-cnt a,.pr-btn a,.pri-tb a,.toc-tab-panel a,.tru-us a,div#eztoc-tabs a{text-decoration:none}div.tab_content table{margin-bottom:1em}#tabbed-nav,table.more_toc_options_table td,table.more_toc_options_table th{margin:0;padding: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{float:left;list-style:none;height:32px;border-bottom:1px solid #dfdfdf;border-left:1px solid #dfdfdf;width:100%}#tabbed-nav li{margin:0 0 -1px;padding:0;height:31px;line-height:31px;border-left:none;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{color:#000;display:block;font-size:1.2em;padding:0 20px;border:1px solid #fff;outline:0}#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-top:none;clear:both;width:100%;background:#fff;margin-bottom:2em;padding-bottom:2em}div.tab_content{padding:10px 10px 0;font-size:1em}h3 span.show_hide{font-size:.85em;font-weight:400}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#child_font_size,input#font_size,input#smooth_scroll_offset,input#width_custom{width:50px;text-align:center}input.custom_colour_option{width:75px}div#farbtastic_colour_wheel,table#theme_custom{float:left}table#theme_custom{margin-top:30px}table#theme_custom img{vertical-align:middle;opacity:.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;float:left;border:none;outline:0;cursor:pointer;padding:14px 16px;transition:none;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:0}.eztoc-tabcontent{animation:1s fadeEffect;display:none;border-top:none}#technical .eztoc-form-page-ui{display:flex;width:auto;height:auto;background:#fff;margin-top:10px;padding:15px 28px 28px;min-width:255px;box-shadow:0 1px 1px rgb(0 0 0 / 4%)}#technical .eztoc-left-side,.lt,.rt{width:70%}.eztoc-right-side{width:31%;margin-top:0;margin-bottom:auto}#technical-form{width:60%}.support-label{margin-top:4px;float:left;width:70px;font-size:14px}.star-mark{color:red;margin-left:4px;font-family:bold}#technical li{margin:10px 0;list-style:none}.eztoc_support_div_form{margin-top:23px}.eztoc-customer-type,.eztoc_dev-bio{display:block}.support-input select{border-radius:4px;margin-top:-7px}.ezoc-bio-wrap{float:left;width:33.33%;text-transform:uppercase}.ezoc-bio-wrap p{width:auto;font-size:10px;color:#555;margin:0 0 20px}.ezoc-bio-wrap img{margin:25px 0 0;border-radius:50%}.eztoc-bio-box{background:#fff;border:1px solid #ccc;padding:0 20px;border-radius:4px;margin:15px 15px 15px 0}.eztoc-bio-box:hover{box-shadow:5px 5px 8px #888}.eztoc-p{margin:10px auto 0;line-height:1.5rem;padding:0 25px;font-size:16px}.eztoc-bio-box h1{margin:8px auto 0;font-weight:bolder}.eztoc_boxdesk{clear:left;font-size:15px;margin:20px 0 0}.company-link{font-weight:500;margin:20px 0 0}.company-link a{display:table;background:#e91e63;width:auto;margin:10px auto 15px;padding:7px 25px;color:#fff;border-radius:6px;border:0;font-size:16px}.eztoc-send-query{background:#2271b1;border-color:#2271b1;color:#fff;text-shadow:none;margin-left:70px!important}.fe-2,.fr-fe,.upg-t{color:#222}@media screen and (min-width:870px) and (max-width:1300px){.eztoc-bio-box{padding-top:20px;height:29.1rem}.eztoc-bio-box h1{font-size:20px}.eztoc-bio-box p{font-size:13px;margin:20px auto 0}.ezoc-bio-wrap img{width:30px;height:30px}.ezoc-bio-wrap p{width:55px;font-size:12px;margin-bottom:10px}}@keyframes fadeEffect{from{opacity:0}to{opacity:1}}.eztoc-wrapper{max-width:100%;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}.etoc-eztoc-img,.eztoc-wr,.table .package-name{width:100%;position:relative}.price-section .price-area .inner-area{height:100%;width:100%;border-radius:50%;border:3px solid #fff;color:#fff;line-height:117px;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{height:2px;background:#ffecb3;margin:35px 0}.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:0;border-radius:25px;cursor:pointer;transition:.3s}.basic .inner-area,.basic .price-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 .inner-area,.Premium .package-name,.Premium .price-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}.basic .package-name::before{content:"Free"}.Premium .package-name::before{content:"PRO"}.basic .inner-area,.basic .price-area,.basic ::selection{background:#ffd861}.Premium .inner-area,.Premium .price-area,.Premium ::selection{background:#a26bfa}#the-list,.eztoc-img img{position:relative}.eztoc-wr{margin:0 auto}.etoc-eztoc-img{margin:0 auto;line-height:0;height:300px}.etoc-eztoc-cnt,.sp_ov{position:absolute;bottom:0}.sp_ov{background:#ea4c89;left:0;right:0;top:0}.etoc-eztoc-cnt{top:40px;left:40px;right:40px;margin:0 auto}.d-amt sup,.pri-tb,.pri-tb .amt sup,.pvf,.pvf-tlt span{position:relative}.etoc-eztoc-cnt h1{font-size:60px;color:#fff;font-weight:600}.etoc-eztoc-cnt p{margin-top:0;color:#371b24;font-size:18px;padding:0 100px;line-height:1.4;font-weight:500}.etoc-eztoc-cnt .buy{border-width:0!important;line-height:2;background:#fff!important;border-radius:8px!important;font-size:16px!important;padding:12px 18px;color:#ea4c89!important;font-weight:500}.etoc-eztoc-cnt .buy:hover{box-shadow:0 2px 2px #999;background:linear-gradient(to left,#fdfc35,#ffe258)!important}.pvf{top:-16px;border:1px solid #eee;padding-bottom:40px}.ext{display:grid;grid-template-columns:1fr 1fr 1fr;background:#f9f9f9;padding:45px 0 45px 25px}.ex-1{width:80%}.ex-1 h4{margin:15px 0 12px;font-weight:600;font-size:20px;color:#ea4c89}.ex-1 p,.pvf-tlt h2{margin:0;color:#000}.ex-1 p{font-size:14px;font-weight:400}.e-1 img{width:65px!important}.e-2 img{width:45px!important}.e-3 img{width:49px!important}.pvf-cnt{width:100%;display:inline-block}.pvf-tlt{width:100%;margin:70px 0 60px}.pvf-tlt h2{font-size:36px;line-height:1.4;font-weight:500}.pvf-tlt span{font-size:16px;color:#000;margin-top:15px;display:inline-block;top:4px}.pvf-cmp{display:grid;grid-template-columns:1fr 2fr}.fr{border-right:1px solid #eee}.fr h1,.pr h1{font-size:36px;font-weight:700;line-height:1.5;border-bottom:1px solid #efefef;padding:0 0 20px 35px}.pr h1{padding-left:50px;color:#ea4c89}.fr-fe{padding-top:10px}.fe-1{padding:22px 35px 35px}.fe-1 h4{margin:0 0 10px;font-size:20px;line-height:1.4;font-weight:400;color:#000}.fe-1 p{font-size:15px;line-height:1.4;margin:0;color:#333}.pr-fe{padding:34px 35px 35px}.pr-fe span{font-family:georgia;font-size:16px;font-weight:700;color:#000;font-style:italic;line-height:1.3}.fet{width:100%;display:grid;grid-template-columns:1fr 1fr;grid-gap:25px;margin-top:40px}.fe-t h4,.fe-t img,.pr-btn,.pr-btn a,.upg-t>span{display:inline-block}.fe-t img{width:22px!important}.fe-t h4{margin:-5px 0 0;font-size:19px;color:#000;font-weight:400;line-height:1.4;padding-left:8px}.fe-2 p{font-size:15px;line-height:1.4;margin:0;color:#555;padding-top:8px}.pr-btn{width:100%;margin:50px 0 25px}.pr-btn a{color:#fff;padding:12px 35px 17px;border-radius:5px;font-size:28px;line-height:1.2;background:-webkit-linear-gradient(to right,#e35796,#fc789f);font-weight:600;background:linear-gradient(to right,#e35796,#ea4c89);margin-top:0;box-shadow:0 .15em .65em 0 rgba(0,0,0,.25)}.amp-upg{background:#f5f5f5;padding:60px 10px 0}.upg-t h2{margin:0;font-size:35px;color:#060606;line-height:1.3;font-weight:500}.pri-by,.pri-tb h5,.upg-t>span{line-height:1.2}.upg-t>span{font-size:14px;margin-top:15px;color:#666}.etoc-pri-lst{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;margin-top:70px;grid-gap:1px;box-shadow:0 10px 15px 1px #ddd}.pri-tb{background:#fff;border:1px solid #f9f9f9}.f-cnt a,.pri-by{background:#333;display:inline-block}.pri-tb:hover{border:1px solid #e04371}.etoc-pri-lst .rec .pri-by,.pri-tb a:hover .pri-by{background:#e04371}.pri-tb a:hover .amt{color:#7241a7}.pri-tb a{display:inline-block;color:#222;padding:20px 12px}.pri-tb h5,div#eztoc-tabs a,div#eztoc-tabs a:first-child{color:#000}.pri-tb h5{margin:0 0 20px;font-size:13px;letter-spacing:2px;font-weight:400}.pri-by,.pri-tb .amt,.pri-tb .d-amt,.pri-tb .s-amt,.tru-us h2{font-weight:500}.pri-tb span{display:inline-block}.pri-tb .amt{font-size:40px;color:#e04371;margin-bottom:20px;display:block}.pri-tb .d-amt{font-size:24px;color:#666;margin-bottom:15px;display:none;text-decoration:line-through}.d-amt sup{line-height:0;top:7px}.pri-tb .s-amt{font-size:13px;color:#4caf50;margin-bottom:10px;display:none}.pri-tb .amt sup{font-size:22px;padding:0 4px 0 0;top:7px}.pri-tb .bil{color:#aaa;font-size:12px;margin-bottom:20px}.pri-tb .e,.pri-tb .f,.pri-tb .s{font-size:14px;margin-bottom:15px;color:#3b4750;display:block}.pri-tb .etoc-sv{display:none;font-size:12px;color:#fff;background:#4caf50;margin:0 auto;padding:1px 7px 2px;border-radius:45px}.pri-by{font-size:15px;border-radius:2px;padding:9px 18px 10px;color:#fff;margin-top:29px}.etoc-pri-lst .rec{box-shadow:0 1px 40px 0 #ccc;background:#fff;z-index:9;margin-top:-20px;position:relative}.etoc-pri-lst .rec:hover .etoc-rcm{background:#000;color:#fff}.etoc-rcm{background:linear-gradient(to right,#e35796,#fc789f);color:#fff;position:absolute;top:-20px;left:0;right:-1px;bottom:auto;padding:2px 0;font-size:11px;letter-spacing:2px}.button-toc,.tru-us{font-size:16px;text-align:center}.tru-us{padding:60px 0;margin:0 auto;color:#222}.tru-us h2{margin:20px 0 0;font-size:28px}.tru-us p{font-size:17px;margin:19px 15% 18px;color:#666;line-height:29px}.tru-us a{font-size:18px;color:#489bff;font-weight:400}.ampfaq h2,.ampfaq h4,.f-cnt a,.f-cnt span{font-weight:500}.ampfaq{width:100%;margin:25px 0}.ampfaq h4{margin:0;text-align:center;font-size:20px;color:#333}.faq-lst{margin-top:50px;display:grid;grid-template-columns:1fr 1fr}.lt{padding-left:50px}.lt ul,.rt ul{margin:0}.lt ul li,.rt ul li{color:#222;margin-bottom:30px!important}.lt span,.rt span{font-size:17px;font-weight:500;margin-bottom:6px;display:inline-block}.lt p,.rt p{font-size:15px;margin:0}.f-cnt{text-align:center;margin-top:20px;color:#222}.f-cnt span{font-size:17px;margin:8px 0}.f-cnt p{font-size:15px;margin:6px 0}.f-cnt a{color:#fff;padding:15px 30px;font-size:18px;margin-top:15px}@media (max-width:1366px){.amp-upg{padding:60px 0 0}.etoc-eztoc-cnt p{line-height:35px;font-size:18px}}@media (max-width:1280px){.etoc-eztoc-cnt{top:1.3%}}@media (max-width:768px){.ext,.faq-lst,.pvf-cmp{grid-template-columns:1fr}.ext{grid-gap:30px 0;padding:30px}.pvf-tlt h2{font-size:26px}.pr-btn a{font-size:22px}.etoc-pri-lst{grid-template-columns:1fr 1fr 1fr}.etoc-eztoc-cnt p{line-height:1.5;font-size:16px;margin-top:15px;padding:0 20px}.etoc-eztoc-cnt .buy{font-size:16px;padding:8px 30px}.etoc-eztoc-cnt{top:15px}.etoc-eztoc-cnt h1{font-size:30px}.ex-1{width:100%}.rt{padding-left:50px}}div#freevspro{padding:0}.ampfaq h2{margin:40px 0 0;font-size:30px;text-align:center}a#eztoc-upgrade{color:#fff;background:#ea4c89;padding:16px}div#welcome{text-align:center}.eztoc_hide,a#eztoc-welcome{display:none}.button-toc span,.ez-toc-tooltip{position:relative;display:inline-block}.button-toc{cursor:pointer;margin:20px;color:#fff;border-radius:4px;background-color:#ec407a;border:none;padding:20px;transition:.5s;font-weight:600}.button-toc span{cursor:pointer;transition:.5s}.button-toc span:after{content:'»';position:absolute;opacity:0;top:0;right:-20px;transition:.5s}.button-toc:hover span{padding-right:25px}.button-toc:hover span:after{opacity:1;right:0}.eztoc-query-success{color:green}.eztoc-query-error{color:red}.eztoc-result{margin-left:70px}div#wp-pointer-0{position:absolute;width:320px;top:515px!important;left:146px!important;z-index:9999}.ez-toc-tooltip .ez-toc-tooltiptext{visibility:hidden;width:140px;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px;position:absolute;z-index:1;bottom:150%;left:50%;margin-left:-75px;opacity:0;transition:opacity .3s}.ez-toc-tooltip .ez-toc-tooltiptext::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent}.ez-toc-tooltip:hover .ez-toc-tooltiptext{visibility:visible;opacity:1}#eztoc-tabs-technical{margin-top:10px}#eztoc-tabs-technical a.eztoc-tablinks-technical,#eztoc-tabs-technical a:first-child.eztoc-tablinks-technical{color:#000;text-decoration:none}#eztoc-tabs-technical a.eztoc-tablinks-technical.active{color:#ea4c89}.ez-toc-pull-technical-img{float:left!important;margin-right:10px;width:100%}.eztoc-tabcontent-technical p.ez-toc-tabcontent-technical-title-content{margin-top:-5px}#eztoc-technical-how-to-use li{list-style:auto!important}#general #eztoc-tabs{margin-top:10px;z-index:9999;width:100%;background-color:#f1f1f1}#general #eztoc-tabs.stay{transition:top -.1s cubic-bezier(.4, 0, 1, 1);top:148px}#general #eztoc-tabs.moving{position:fixed;transition:top -.1s cubic-bezier(.4, 0, 1, 1);top:20px;line-height:25px}#general form.moving{margin-top:18px}div#eztoc-tabs a.active,div#eztoc-tabs a:first-child.active{color:#ea4c89}@media screen and (max-width:782px){#general #eztoc-tabs.moving{top:38px}}@media screen and (max-width:601px){#general #eztoc-tabs.moving{top:-12px}}
assets/css/screen.css CHANGED
@@ -276,7 +276,7 @@ div.ez-toc-widget-container li {
276
  margin-left: 10px;
277
  }
278
 
279
- #ez-toc-container label.cssicon {
280
  height: 30px;
281
  }
282
 
@@ -306,7 +306,7 @@ div.ez-toc-widget-container li {
306
  left: -999em;
307
  }
308
 
309
- #ez-toc-container input[type="checkbox"]:checked + nav {
310
  opacity: 0;
311
  max-height: 0;
312
  border: none;
@@ -326,7 +326,7 @@ div.ez-toc-widget-container li {
326
  width: 30px;
327
  }
328
 
329
- #ez-toc-container .ez-toc-toggle label, #ez-toc-container label.cssicon {
330
  float: right;
331
  position: relative;
332
  font-size: 16px;
276
  margin-left: 10px;
277
  }
278
 
279
+ #ez-toc-container label.cssicon, #ez-toc-widget-container label.cssicon {
280
  height: 30px;
281
  }
282
 
306
  left: -999em;
307
  }
308
 
309
+ #ez-toc-container input[type="checkbox"]:checked + nav, #ez-toc-widget-container input[type="checkbox"]:checked + nav {
310
  opacity: 0;
311
  max-height: 0;
312
  border: none;
326
  width: 30px;
327
  }
328
 
329
+ #ez-toc-container .ez-toc-toggle label, #ez-toc-container label.cssicon, #ez-toc-widget-container label.cssicon {
330
  float: right;
331
  position: relative;
332
  font-size: 16px;
assets/css/screen.min.css CHANGED
@@ -1 +1 @@
1
- #ez-toc-container{background:#f9f9f9;border:1px solid #aaa;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(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:#fff}#ez-toc-container.ez-toc-black{background:#000}#ez-toc-container.ez-toc-transparent{background:none}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 li,#ez-toc-container ul{padding:0}#ez-toc-container li,#ez-toc-container ul,#ez-toc-container ul li,div.ez-toc-widget-container,div.ez-toc-widget-container li{background:0 0;list-style: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:inline;text-align:left;vertical-align:middle}.ez-toc-btn,.ez-toc-glyphicon{display:inline-block;font-weight:400}#ez-toc-container.ez-toc-black a,#ez-toc-container.ez-toc-black a:visited,#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:#444;box-shadow:none;text-decoration:none;text-shadow:none;display:inline-flex;align-items:stretch;flex-wrap:nowrap}#ez-toc-container a:visited{color:#9f9f9f}#ez-toc-container a:hover{text-decoration:underline}.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{background-color:#ededed;height:auto!important}.ez-toc-widget-container li.active>a{font-weight:900}.ez-toc-btn{padding:6px 12px;margin-bottom:0;font-size:14px;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:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.ez-toc-btn:focus,.ez-toc-btn:hover{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,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.ez-toc-btn-default{color:#333;background-color:#fff;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);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:#ccc}.ez-toc-btn-default.active,.ez-toc-btn-default:active,.ez-toc-btn-default:focus,.ez-toc-btn-default:hover{color:#333;background-color:#ebebeb;border-color:#adadad}.ez-toc-btn-default.active,.ez-toc-btn-default:active{background-image:none;background-color:#e0e0e0;border-color:#dbdbdb}.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:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.active,.ez-toc-btn:active{background-image:none}.ez-toc-btn-default:focus,.ez-toc-btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.ez-toc-pull-right{float:right!important;margin-left:10px}#ez-toc-container label.cssicon{height:30px}.ez-toc-glyphicon{position:relative;top:1px;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;line-height:1;-moz-osx-font-smoothing:grayscale}.ez-toc-glyphicon:empty{width:1em}.ez-toc-toggle i.ez-toc-glyphicon,label.cssicon .ez-toc-glyphicon:empty{font-size:16px;margin-left:2px}#ez-toc-container input,.ez-toc-toggle #item{position:absolute;left:-999em}#ez-toc-container input[type=checkbox]:checked+nav{opacity:0;max-height:0;border:none;display:none}#ez-toc-container label{float:right;position:relative;font-size:16px;padding:0 4px 0 5px;border:1px solid #999191;border-radius:5px;cursor:pointer;width:30px;left:10px}#ez-toc-container .ez-toc-toggle label,#ez-toc-container label.cssicon{float:right;position:relative;font-size:16px;padding:0;border:1px solid #999191;border-radius:5px;cursor:pointer;left:10px;width:35px}div#ez-toc-container p.ez-toc-title{display:contents}div#ez-toc-container{padding-right:20px}.ez-toc-wrap-center{margin:0 auto}#ez-toc-container a.ez-toc-toggle{display:flex;align-items:center;color:#444;background:inherit;border:inherit}label.cssiconcheckbox{display:none}.ez-toc-widget-container ul li a{padding-left:10px;display:inline-flex;align-items:stretch;flex-wrap:nowrap}
1
+ #ez-toc-container{background:#f9f9f9;border:1px solid #aaa;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(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:#fff}#ez-toc-container.ez-toc-black{background:#000}#ez-toc-container.ez-toc-transparent{background:none}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 li,#ez-toc-container ul{padding:0}#ez-toc-container li,#ez-toc-container ul,#ez-toc-container ul li,div.ez-toc-widget-container,div.ez-toc-widget-container li{background:0 0;list-style: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:inline;text-align:left;vertical-align:middle}.ez-toc-btn,.ez-toc-glyphicon{display:inline-block;font-weight:400}#ez-toc-container.ez-toc-black a,#ez-toc-container.ez-toc-black a:visited,#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:#444;box-shadow:none;text-decoration:none;text-shadow:none;display:inline-flex;align-items:stretch;flex-wrap:nowrap}#ez-toc-container a:visited{color:#9f9f9f}#ez-toc-container a:hover{text-decoration:underline}.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{background-color:#ededed;height:auto!important}.ez-toc-widget-container li.active>a{font-weight:900}.ez-toc-btn{padding:6px 12px;margin-bottom:0;font-size:14px;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:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.ez-toc-btn:focus,.ez-toc-btn:hover{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,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.ez-toc-btn-default{color:#333;background-color:#fff;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);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:#ccc}.ez-toc-btn-default.active,.ez-toc-btn-default:active,.ez-toc-btn-default:focus,.ez-toc-btn-default:hover{color:#333;background-color:#ebebeb;border-color:#adadad}.ez-toc-btn-default.active,.ez-toc-btn-default:active{background-image:none;background-color:#e0e0e0;border-color:#dbdbdb}.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:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.active,.ez-toc-btn:active{background-image:none}.ez-toc-btn-default:focus,.ez-toc-btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.ez-toc-pull-right{float:right!important;margin-left:10px}#ez-toc-container label.cssicon,#ez-toc-widget-container label.cssicon{height:30px}.ez-toc-glyphicon{position:relative;top:1px;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;line-height:1;-moz-osx-font-smoothing:grayscale}.ez-toc-glyphicon:empty{width:1em}.ez-toc-toggle i.ez-toc-glyphicon,label.cssicon .ez-toc-glyphicon:empty{font-size:16px;margin-left:2px}#ez-toc-container input,.ez-toc-toggle #item{position:absolute;left:-999em}#ez-toc-container input[type=checkbox]:checked+nav,#ez-toc-widget-container input[type=checkbox]:checked+nav{opacity:0;max-height:0;border:none;display:none}#ez-toc-container label{float:right;position:relative;font-size:16px;padding:0 4px 0 5px;border:1px solid #999191;border-radius:5px;cursor:pointer;width:30px;left:10px}#ez-toc-container .ez-toc-toggle label,#ez-toc-container label.cssicon,#ez-toc-widget-container label.cssicon{float:right;position:relative;font-size:16px;padding:0;border:1px solid #999191;border-radius:5px;cursor:pointer;left:10px;width:35px}div#ez-toc-container p.ez-toc-title{display:contents}div#ez-toc-container{padding-right:20px}.ez-toc-wrap-center{margin:0 auto}#ez-toc-container a.ez-toc-toggle{display:flex;align-items:center;color:#444;background:inherit;border:inherit}label.cssiconcheckbox{display:none}.ez-toc-widget-container ul li a{padding-left:10px;display:inline-flex;align-items:stretch;flex-wrap:nowrap}
assets/js/admin.js CHANGED
@@ -26,10 +26,10 @@ jQuery(document).ready(function ($) {
26
  let text = "Do you want reset settings to default options?";
27
  if (confirm(text) == true) {
28
  $.post(ajaxurl, { action: 'eztoc_reset_options_to_default', eztoc_security_nonce: cn_toc_admin_data.eztoc_security_nonce },
29
- function (data) {
30
- alert('Default Options Reset Now!');
31
- window.location.reload();
32
- }
33
  );
34
  }
35
 
@@ -42,8 +42,8 @@ jQuery(document).ready(function ($) {
42
  var email = $form.find('input[name="email"]').val();
43
  var website = $form.find('input[name="company"]').val();
44
  $.post(ajaxurl, {action: 'eztoc_subscribe_newsletter', name: name, email: email, website: website, eztoc_security_nonce: cn_toc_admin_data.eztoc_security_nonce},
45
- function (data) {
46
- }
47
  );
48
  });
49
  });
@@ -62,7 +62,7 @@ function disableScrolling() {
62
  * @since 2.0.33
63
  */
64
  function enableScrolling(){
65
- window.onscroll=function(){};
66
  }
67
 
68
  /**
@@ -114,3 +114,114 @@ function ez_toc_outFunc(tooltipId, $this, event) {
114
  tooltip.innerHTML = "Copy to clipboard";
115
  enableScrolling();
116
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  let text = "Do you want reset settings to default options?";
27
  if (confirm(text) == true) {
28
  $.post(ajaxurl, { action: 'eztoc_reset_options_to_default', eztoc_security_nonce: cn_toc_admin_data.eztoc_security_nonce },
29
+ function (data) {
30
+ alert('Default Options Reset Now!');
31
+ window.location.reload();
32
+ }
33
  );
34
  }
35
 
42
  var email = $form.find('input[name="email"]').val();
43
  var website = $form.find('input[name="company"]').val();
44
  $.post(ajaxurl, {action: 'eztoc_subscribe_newsletter', name: name, email: email, website: website, eztoc_security_nonce: cn_toc_admin_data.eztoc_security_nonce},
45
+ function (data) {
46
+ }
47
  );
48
  });
49
  });
62
  * @since 2.0.33
63
  */
64
  function enableScrolling(){
65
+ ezTocSettingsTabsFixed();
66
  }
67
 
68
  /**
114
  tooltip.innerHTML = "Copy to clipboard";
115
  enableScrolling();
116
  }
117
+
118
+ /**
119
+ * ezTocSettingsTabsFixed Function
120
+ * Apply Fixed CSS & JS for General Settings Tabs
121
+ * @since 2.0.38
122
+ */
123
+ function ezTocSettingsTabsFixed() {
124
+ var ezTocProSettingsContainer = '<span class="general-pro-settings-container"> | <a href="#eztoc-prosettings" id="eztoc-link-prosettings">Pro Settings</a></span>';
125
+
126
+ var ezTocGeneralTabs = document.querySelector("#general #eztoc-tabs");
127
+ var ezTocGeneralForm = document.querySelector("#general form");
128
+
129
+ if(ezTocGeneralTabs !== null) {
130
+ window.onscroll = function () {
131
+ // var x = window.scrollX;
132
+ var y = window.scrollY;
133
+ // console.log("X:" + x);
134
+ // console.log("Y:" + y);
135
+
136
+ var ez_toc_pro_settings_link_paid = document.getElementsByClassName('ez-toc-pro-settings-link-paid');
137
+ var ezTocElementProSettingsContainer = document.getElementsByClassName("general-pro-settings-container");
138
+
139
+ var ezTocGeneralTabsLinkGeneral = document.querySelector("#general #eztoc-tabs #eztoc-link-general");
140
+ var ezTocGeneralTabsLinkAppearance = document.querySelector("#general #eztoc-tabs #eztoc-link-appearance");
141
+ var ezTocGeneralTabsLinkAdvanced = document.querySelector("#general #eztoc-tabs #eztoc-link-advanced");
142
+ var ezTocGeneralTabsLinkShortcode = document.querySelector("#general #eztoc-tabs #eztoc-link-shortcode");
143
+ var ezTocGeneralTabsLinkProSettings = document.querySelector("#general #eztoc-tabs #eztoc-link-prosettings");
144
+
145
+ var minusOffsetTop = 100;
146
+
147
+ var ezTocGeneralContainerGeneral = document.querySelector("#general div#eztoc-general").offsetTop - minusOffsetTop;
148
+ var ezTocGeneralContainerAppearance = document.querySelector("#general div#eztoc-appearance").offsetTop - minusOffsetTop;
149
+ var ezTocGeneralContainerAdvanced = document.querySelector("#general div#eztoc-advanced").offsetTop - minusOffsetTop;
150
+ var ezTocGeneralContainerShortcode = document.querySelector("#general div#eztoc-shortcode").offsetTop - minusOffsetTop;
151
+ if(ez_toc_pro_settings_link_paid !== null && ez_toc_pro_settings_link_paid.length > 0) {
152
+ var ezTocGeneralContainerProSettings = document.querySelector("#general div#eztoc-prosettings").offsetTop - minusOffsetTop - 150;
153
+ } else {
154
+ ezTocGeneralContainerShortcode -= 250;
155
+ }
156
+ ezTocGeneralTabsLinkGeneral.classList.add('active');
157
+ ezTocGeneralTabsLinkAppearance.classList.remove('active');
158
+ ezTocGeneralTabsLinkAdvanced.classList.remove('active');
159
+ ezTocGeneralTabsLinkShortcode.classList.remove('active');
160
+ if (ezTocElementProSettingsContainer.length > 0 && ezTocGeneralTabsLinkProSettings !== null)
161
+ ezTocGeneralTabsLinkProSettings.classList.remove('active');
162
+
163
+ if (y >= 100) {
164
+ ezTocGeneralTabs.classList.remove('stay');
165
+ ezTocGeneralTabs.classList.add('moving');
166
+ ezTocGeneralForm.classList.add('moving');
167
+ if(ez_toc_pro_settings_link_paid !== null && ez_toc_pro_settings_link_paid.length > 0 && ezTocElementProSettingsContainer.length == 0)
168
+ ezTocGeneralTabs.innerHTML += ezTocProSettingsContainer;
169
+ } else {
170
+ ezTocGeneralTabs.classList.remove('moving');
171
+ ezTocGeneralTabs.classList.add('stay');
172
+ ezTocGeneralForm.classList.remove('moving');
173
+ if(ez_toc_pro_settings_link_paid !== null && ez_toc_pro_settings_link_paid.length > 0 && ezTocElementProSettingsContainer.length > 0)
174
+ document.querySelector(".general-pro-settings-container").remove();
175
+ }
176
+
177
+ if (y >= ezTocGeneralContainerGeneral) {
178
+ // console.log("Hit-General");
179
+ ezTocGeneralTabsLinkGeneral.classList.add('active');
180
+ ezTocGeneralTabsLinkAppearance.classList.remove('active');
181
+ ezTocGeneralTabsLinkAdvanced.classList.remove('active');
182
+ ezTocGeneralTabsLinkShortcode.classList.remove('active');
183
+ if(ez_toc_pro_settings_link_paid !== null && ez_toc_pro_settings_link_paid.length > 0 && ezTocElementProSettingsContainer.length > 0 && ezTocGeneralTabsLinkProSettings !== null)
184
+ ezTocGeneralTabsLinkProSettings.classList.remove('active');
185
+ }
186
+ if (y >= ezTocGeneralContainerAppearance) {
187
+ // console.log("Hit-Appearance");
188
+ ezTocGeneralTabsLinkGeneral.classList.remove('active');
189
+ ezTocGeneralTabsLinkAppearance.classList.add('active');
190
+ ezTocGeneralTabsLinkAdvanced.classList.remove('active');
191
+ ezTocGeneralTabsLinkShortcode.classList.remove('active');
192
+ if(ez_toc_pro_settings_link_paid !== null && ez_toc_pro_settings_link_paid.length > 0 && ezTocElementProSettingsContainer.length > 0 && ezTocGeneralTabsLinkProSettings !== null)
193
+ ezTocGeneralTabsLinkProSettings.classList.remove('active');
194
+ }
195
+ if (y >= ezTocGeneralContainerAdvanced) {
196
+ // console.log("Hit-Advanced");
197
+ ezTocGeneralTabsLinkGeneral.classList.remove('active');
198
+ ezTocGeneralTabsLinkAppearance.classList.remove('active');
199
+ ezTocGeneralTabsLinkAdvanced.classList.add('active');
200
+ ezTocGeneralTabsLinkShortcode.classList.remove('active');
201
+ if(ez_toc_pro_settings_link_paid !== null && ez_toc_pro_settings_link_paid.length > 0 && ezTocElementProSettingsContainer.length > 0 && ezTocGeneralTabsLinkProSettings !== null)
202
+ ezTocGeneralTabsLinkProSettings.classList.remove('active');
203
+ }
204
+ if (y >= ezTocGeneralContainerShortcode) {
205
+ // console.log("Hit-Shortcode");
206
+ ezTocGeneralTabsLinkGeneral.classList.remove('active');
207
+ ezTocGeneralTabsLinkAppearance.classList.remove('active');
208
+ ezTocGeneralTabsLinkAdvanced.classList.remove('active');
209
+ ezTocGeneralTabsLinkShortcode.classList.add('active');
210
+ if(ez_toc_pro_settings_link_paid !== null && ez_toc_pro_settings_link_paid.length > 0 && ezTocElementProSettingsContainer.length > 0 && ezTocGeneralTabsLinkProSettings !== null)
211
+ ezTocGeneralTabsLinkProSettings.classList.remove('active');
212
+ }
213
+ if (ezTocElementProSettingsContainer.length > 0 && y >= ezTocGeneralContainerProSettings) {
214
+ // console.log("Hit-ProSettings");
215
+ ezTocGeneralTabsLinkGeneral.classList.remove('active');
216
+ ezTocGeneralTabsLinkAppearance.classList.remove('active');
217
+ ezTocGeneralTabsLinkAdvanced.classList.remove('active');
218
+ ezTocGeneralTabsLinkShortcode.classList.remove('active');
219
+ if(ez_toc_pro_settings_link_paid !== null && ez_toc_pro_settings_link_paid.length > 0 && ezTocElementProSettingsContainer.length > 0 && ezTocGeneralTabsLinkProSettings !== null)
220
+ ezTocGeneralTabsLinkProSettings.classList.add('active');
221
+ }
222
+ };
223
+ } else {
224
+ window.onscroll = function () {}
225
+ }
226
+ }
227
+ ezTocSettingsTabsFixed();
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- function disableScrolling(){var e=window.scrollX,t=window.scrollY;window.onscroll=function(){window.scrollTo(e,t)}}function enableScrolling(){window.onscroll=function(){}}jQuery(document).ready(function(e){var t=e(".ez-toc-color-picker");t.length&&t.wpColorPicker();var o=document.getElementById("ez-toc-settings[width]"),n=document.getElementById("ez-toc-settings[width_custom]");n&&("custom"!=o.value&&(n.parentNode.parentNode.style.display="none"),o.addEventListener("change",function(){"custom"==document.getElementById("ez-toc-settings[width]").value?n.parentNode.parentNode.style.display="revert":n.parentNode.parentNode.style.display="none"})),e("#reset-options-to-default-button").click(function(){!0==confirm("Do you want reset settings to default options?")&&e.post(ajaxurl,{action:"eztoc_reset_options_to_default",eztoc_security_nonce:cn_toc_admin_data.eztoc_security_nonce},function(e){window.location.reload()})}),e("#subscribe-newsletter-form").on("submit",function(t){t.preventDefault();var o=e("#subscribe-newsletter-form"),n=o.find('input[name="name"]').val(),l=o.find('input[name="email"]').val(),c=o.find('input[name="company"]').val();e.post(ajaxurl,{action:"eztoc_subscribe_newsletter",name:n,email:l,website:c,eztoc_security_nonce:cn_toc_admin_data.eztoc_security_nonce},function(e){})})});const unsecuredCopyToClipboard=e=>{let t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(o){console.error("Unable to copy to clipboard",o)}document.body.removeChild(t)};function ez_toc_clipboard(e,t,o,n){n.preventDefault(),disableScrolling();var l=o.parentNode.parentNode.querySelectorAll("#"+e)[0];l.select(),l.setSelectionRange(0,99999),unsecuredCopyToClipboard(l.value),o.querySelectorAll("span."+t)[0].innerHTML="Copied: "+l.value}function ez_toc_outFunc(e,t,o){o.preventDefault(),t.querySelectorAll("span."+e)[0].innerHTML="Copy to clipboard",enableScrolling()}
1
+ function disableScrolling(){var e=window.scrollX,t=window.scrollY;window.onscroll=function(){window.scrollTo(e,t)}}function enableScrolling(){ezTocSettingsTabsFixed()}jQuery(document).ready(function(e){var t=e(".ez-toc-color-picker");t.length&&t.wpColorPicker();var s=document.getElementById("ez-toc-settings[width]"),l=document.getElementById("ez-toc-settings[width_custom]");l&&("custom"!=s.value&&(l.parentNode.parentNode.style.display="none"),s.addEventListener("change",function(){"custom"==document.getElementById("ez-toc-settings[width]").value?l.parentNode.parentNode.style.display="revert":l.parentNode.parentNode.style.display="none"})),e("#reset-options-to-default-button").click(function(){!0==confirm("Do you want reset settings to default options?")&&e.post(ajaxurl,{action:"eztoc_reset_options_to_default",eztoc_security_nonce:cn_toc_admin_data.eztoc_security_nonce},function(e){alert("Default Options Reset Now!"),window.location.reload()})}),e("#subscribe-newsletter-form").on("submit",function(t){t.preventDefault();var s=e("#subscribe-newsletter-form"),l=s.find('input[name="name"]').val(),o=s.find('input[name="email"]').val(),n=s.find('input[name="company"]').val();e.post(ajaxurl,{action:"eztoc_subscribe_newsletter",name:l,email:o,website:n,eztoc_security_nonce:cn_toc_admin_data.eztoc_security_nonce},function(e){})})});const unsecuredCopyToClipboard=e=>{let t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(s){console.error("Unable to copy to clipboard",s)}document.body.removeChild(t)};function ez_toc_clipboard(e,t,s,l){l.preventDefault(),disableScrolling();var o=s.parentNode.parentNode.querySelectorAll("#"+e)[0];o.select(),o.setSelectionRange(0,99999),unsecuredCopyToClipboard(o.value),s.querySelectorAll("span."+t)[0].innerHTML="Copied: "+o.value}function ez_toc_outFunc(e,t,s){s.preventDefault(),t.querySelectorAll("span."+e)[0].innerHTML="Copy to clipboard",enableScrolling()}function ezTocSettingsTabsFixed(){var e=document.querySelector("#general #eztoc-tabs"),t=document.querySelector("#general form");null!==e?window.onscroll=function(){var s=window.scrollY,l=document.getElementsByClassName("ez-toc-pro-settings-link-paid"),o=document.getElementsByClassName("general-pro-settings-container"),n=document.querySelector("#general #eztoc-tabs #eztoc-link-general"),a=document.querySelector("#general #eztoc-tabs #eztoc-link-appearance"),c=document.querySelector("#general #eztoc-tabs #eztoc-link-advanced"),i=document.querySelector("#general #eztoc-tabs #eztoc-link-shortcode"),r=document.querySelector("#general #eztoc-tabs #eztoc-link-prosettings"),v=document.querySelector("#general div#eztoc-general").offsetTop-100,u=document.querySelector("#general div#eztoc-appearance").offsetTop-100,d=document.querySelector("#general div#eztoc-advanced").offsetTop-100,g=document.querySelector("#general div#eztoc-shortcode").offsetTop-100;if(null!==l&&l.length>0)var p=document.querySelector("#general div#eztoc-prosettings").offsetTop-100-150;else g-=250;n.classList.add("active"),a.classList.remove("active"),c.classList.remove("active"),i.classList.remove("active"),o.length>0&&null!==r&&r.classList.remove("active"),s>=100?(e.classList.remove("stay"),e.classList.add("moving"),t.classList.add("moving"),null!==l&&l.length>0&&0==o.length&&(e.innerHTML+='<span class="general-pro-settings-container"> | <a href="#eztoc-prosettings" id="eztoc-link-prosettings">Pro Settings</a></span>')):(e.classList.remove("moving"),e.classList.add("stay"),t.classList.remove("moving"),null!==l&&l.length>0&&o.length>0&&document.querySelector(".general-pro-settings-container").remove()),s>=v&&(n.classList.add("active"),a.classList.remove("active"),c.classList.remove("active"),i.classList.remove("active"),null!==l&&l.length>0&&o.length>0&&null!==r&&r.classList.remove("active")),s>=u&&(n.classList.remove("active"),a.classList.add("active"),c.classList.remove("active"),i.classList.remove("active"),null!==l&&l.length>0&&o.length>0&&null!==r&&r.classList.remove("active")),s>=d&&(n.classList.remove("active"),a.classList.remove("active"),c.classList.add("active"),i.classList.remove("active"),null!==l&&l.length>0&&o.length>0&&null!==r&&r.classList.remove("active")),s>=g&&(n.classList.remove("active"),a.classList.remove("active"),c.classList.remove("active"),i.classList.add("active"),null!==l&&l.length>0&&o.length>0&&null!==r&&r.classList.remove("active")),o.length>0&&s>=p&&(n.classList.remove("active"),a.classList.remove("active"),c.classList.remove("active"),i.classList.remove("active"),null!==l&&l.length>0&&o.length>0&&null!==r&&r.classList.add("active"))}:window.onscroll=function(){}}ezTocSettingsTabsFixed();
assets/js/front.js CHANGED
@@ -125,79 +125,84 @@ jQuery( function( $ ) {
125
 
126
  if ( typeof ezTOC.visibility_hide_by_default != 'undefined' ) {
127
 
128
- var toc = $( 'ul.ez-toc-list' );
129
- var toggle = $( 'a.ez-toc-toggle' );
130
  var invert = ezTOC.visibility_hide_by_default;
 
 
 
 
 
 
 
131
 
132
- toggle.css( 'display', 'flex' );
 
133
 
134
- if ( Cookies ) {
135
 
136
- Cookies.get( 'ezTOC_hidetoc' ) == 1 ? toggle.data( 'visible', false ) : toggle.data( 'visible', true );
137
- Cookies.remove('ezTOC_hidetoc')
 
 
138
 
139
- } else {
140
 
141
- toggle.data( 'visible', true );
142
- // Cookies.remove('ezTOC_hidetoc');
143
- delete_cookie('ezTOC_hidetoc');
144
- }
145
 
146
- if ( invert ) {
147
 
148
- toggle.data( 'visible', false )
149
- }
150
 
151
- if ( ! toggle.data( 'visible' ) ) {
152
 
153
- toc.hide();
154
- }
155
 
156
- toggle.on( 'click', function( event ) {
157
-
158
- event.preventDefault();
159
-
160
- const main = document.querySelector("#ez-toc-container");
161
- if(main){
162
- main.classList.toggle("toc_close");
163
- }
164
- else
165
- {
166
- const side = document.querySelector(".ez-toc-widget-container");
167
- side.classList.toggle("toc_close");
168
- }
169
 
170
- if ( $( this ).data( 'visible' ) ) {
171
 
172
- $( this ).data( 'visible', false );
173
 
174
- if ( Cookies ) {
175
 
176
- if ( invert )
177
- Cookies.set( 'ezTOC_hidetoc', null, { path: '/' } );
178
- else
179
- Cookies.set( 'ezTOC_hidetoc', '1', { expires: 30, path: '/' } );
180
- }
181
 
182
- toc.hide( 'fast' );
183
 
184
- } else {
185
 
186
- $( this ).data( 'visible', true );
187
 
188
- if ( Cookies ) {
189
 
190
- if ( invert )
191
- Cookies.set( 'ezTOC_hidetoc', '1', { expires: 30, path: '/' } );
192
- else
193
- Cookies.set( 'ezTOC_hidetoc', null, { path: '/' } );
194
- }
195
 
196
- toc.show( 'fast' );
197
 
198
- }
199
 
200
- } );
 
 
201
  }
202
 
203
 
@@ -340,4 +345,4 @@ jQuery( function( $ ) {
340
  function delete_cookie(name) {
341
  document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
342
  }
343
- } );
125
 
126
  if ( typeof ezTOC.visibility_hide_by_default != 'undefined' ) {
127
 
128
+ var toggles = $( 'a.ez-toc-toggle' );
129
+ // var toc = $( 'ul.ez-toc-list' );
130
  var invert = ezTOC.visibility_hide_by_default;
131
+ toggles.css( 'display', 'flex' );
132
+ $.each(toggles, function(i, obj) {
133
+
134
+ var toggle = $(this);
135
+ var toc = $( toggle ).parents('#ez-toc-container,#ez-toc-widget-container').find( 'ul.ez-toc-list' );
136
+
137
+ if ( Cookies ) {
138
 
139
+ Cookies.get( 'ezTOC_hidetoc-' + i ) == 1 ? $(toggle).data( 'visible', false ) : $(toggle).data( 'visible', true );
140
+ Cookies.remove('ezTOC_hidetoc-' + i)
141
 
142
+ } else {
143
 
144
+ $(toggle).data( 'visible', true );
145
+ // Cookies.remove('ezTOC_hidetoc');
146
+ delete_cookie('ezTOC_hidetoc-' + i);
147
+ }
148
 
149
+ if ( invert ) {
150
 
151
+ $(toggle).data( 'visible', false )
152
+ }
 
 
153
 
154
+ if ( ! $(toggle).data( 'visible' ) ) {
155
 
156
+ toc.hide();
157
+ }
158
 
159
+ $(toggle).on( 'click', function( event ) {
160
 
161
+ event.preventDefault();
 
162
 
163
+ const main = document.querySelector("#ez-toc-container");
164
+ if(main){
165
+ main.classList.toggle("toc_close");
166
+ }
167
+ else
168
+ {
169
+ const side = document.querySelector(".ez-toc-widget-container");
170
+ side.classList.toggle("toc_close");
171
+ }
 
 
 
 
172
 
173
+ if ( $( this ).data( 'visible' ) ) {
174
 
175
+ $( this ).data( 'visible', false );
176
 
177
+ if ( Cookies ) {
178
 
179
+ if ( invert )
180
+ Cookies.set( 'ezTOC_hidetoc-' + i, null, { path: '/' } );
181
+ else
182
+ Cookies.set( 'ezTOC_hidetoc-' + i, '1', { expires: 30, path: '/' } );
183
+ }
184
 
185
+ toc.hide( 'fast' );
186
 
187
+ } else {
188
 
189
+ $( this ).data( 'visible', true );
190
 
191
+ if ( Cookies ) {
192
 
193
+ if ( invert )
194
+ Cookies.set( 'ezTOC_hidetoc-' + i, '1', { expires: 30, path: '/' } );
195
+ else
196
+ Cookies.set( 'ezTOC_hidetoc-' + i, null, { path: '/' } );
197
+ }
198
 
199
+ toc.show( 'fast' );
200
 
201
+ }
202
 
203
+ } );
204
+
205
+ });
206
  }
207
 
208
 
345
  function delete_cookie(name) {
346
  document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
347
  }
348
+ } );
assets/js/front.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(t){if("undefined"!=typeof ezTOC){function e(){if(0!==t(".ez-toc-widget-container.ez-toc-affix").length){var e=30;void 0!==ezTOC.scroll_offset&&(e=parseInt(ezTOC.scroll_offset)),t(ezTOC.affixSelector).stick_in_parent({inner_scrolling:!1,offset_top:e})}if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1===parseInt(ezTOC.smooth_scroll)&&t("a.ez-toc-link").on("click",function(){var e=t(this),i="",o=e.prop("hostname"),a=e.prop("pathname"),s=e.prop("search"),l=e.prop("hash");if(a.length>0&&"/"!==a.charAt(0)&&(a="/"+a),window.location.hostname===o&&window.location.pathname===a&&window.location.search===s&&""!==l){if(0===t(i='[id="'+l.replace("#","")+'"]').length&&(console.log("ezTOC scrollTarget Not Found: "+i),i=""),void 0!==ezTOC.scroll_offset)var c=-1*ezTOC.scroll_offset;else{var n=t("#wpadminbar");c=n.length>0&&n.is(":visible")?-30:0}i&&t.smoothScroll({scrollTarget:i,offset:c,beforeScroll:u,afterScroll:function(){p(),v()}})}}),void 0!==ezTOC.visibility_hide_by_default){var i=t("ul.ez-toc-list"),o=t("a.ez-toc-toggle"),a=ezTOC.visibility_hide_by_default,s="ezTOC_hidetoc";o.css("display","flex"),Cookies?(1==Cookies.get("ezTOC_hidetoc")?o.data("visible",!1):o.data("visible",!0),Cookies.remove("ezTOC_hidetoc")):(o.data("visible",!0),document.cookie=s+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"),a&&o.data("visible",!1),o.data("visible")||i.hide(),o.on("click",function(e){e.preventDefault();let o=document.querySelector("#ez-toc-container");if(o)o.classList.toggle("toc_close");else{let s=document.querySelector(".ez-toc-widget-container");s.classList.toggle("toc_close")}t(this).data("visible")?(t(this).data("visible",!1),Cookies&&(a?Cookies.set("ezTOC_hidetoc",null,{path:"/"}):Cookies.set("ezTOC_hidetoc","1",{expires:30,path:"/"})),i.hide("fast")):(t(this).data("visible",!0),Cookies&&(a?Cookies.set("ezTOC_hidetoc","1",{expires:30,path:"/"}):Cookies.set("ezTOC_hidetoc",null,{path:"/"})),i.show("fast"))})}var l,c,n,r=t("span.ez-toc-section").toArray(),h=(l=r,l.reduce(function(e,i){var o;return e[i.id]=t('.ez-toc-widget-container .ez-toc-list a[href="#'+t(o=i).attr("id")+'"]'),e},{})),f=t.map(h,function(t,e){return t}),d=(c=5,void 0!==ezTOC.smooth_scroll&&1===parseInt(ezTOC.smooth_scroll)&&(c=void 0!==ezTOC.scroll_offset?parseInt(ezTOC.scroll_offset):30),n=t("#wpadminbar"),n.length&&(c+=n.height()),c);function p(){var e,i,o,a,s,l=(e=d,i=r,o=t(window).scrollTop()+e+1,a=i[0],s=o-t(a).offset().top,i.forEach(function(e){var i=o-t(e).offset().top;i>0&&i<s&&(s=i,a=e)}),a);if(l){var c,n,p,v,u,g,$,z,b,m=h[l.id];(function t(e,i){i.forEach(function(t){e!==t&&t.parent().hasClass("active")&&t.parent().removeClass("active")})})(m,f),(p=(c=m).parent()).hasClass("active")||p.addClass("active"),b=(v=n=p,u=t(v),g=u.html(),u.parent().append('<li id="ez-toc-height-test" class="active">'+g+"</li>"),$=t("#ez-toc-height-test"),z=$.height(),$.remove(),z-u.children("ul").first().height()),t("#ez-toc-active-height").remove(),t('<style id="ez-toc-active-height">.ez-toc-widget-container ul.ez-toc-list li.active {height:'+b+"px;} </style>").appendTo("head")}}function v(){r.length>0&&t(".ez-toc-widget-container").length&&t(window).on("load resize scroll",p)}function u(){t(window).off("load resize scroll",p)}v()}ezTOC.init=function(){e()},e()}function i(t,e){document.cookie=t+"="+e+"; Path=/;"}});
1
+ jQuery(function(t){if("undefined"!=typeof ezTOC){function e(){if(0!==t(".ez-toc-widget-container.ez-toc-affix").length){var e=30;void 0!==ezTOC.scroll_offset&&(e=parseInt(ezTOC.scroll_offset)),t(ezTOC.affixSelector).stick_in_parent({inner_scrolling:!1,offset_top:e})}if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1===parseInt(ezTOC.smooth_scroll)&&t("a.ez-toc-link").on("click",function(){var e=t(this),i="",o=e.prop("hostname"),a=e.prop("pathname"),c=e.prop("search"),s=e.prop("hash");if(a.length>0&&"/"!==a.charAt(0)&&(a="/"+a),window.location.hostname===o&&window.location.pathname===a&&window.location.search===c&&""!==s){if(0===t(i='[id="'+s.replace("#","")+'"]').length&&(console.log("ezTOC scrollTarget Not Found: "+i),i=""),void 0!==ezTOC.scroll_offset)var l=-1*ezTOC.scroll_offset;else{var n=t("#wpadminbar");l=n.length>0&&n.is(":visible")?-30:0}i&&t.smoothScroll({scrollTarget:i,offset:l,beforeScroll:p,afterScroll:function(){f(),d()}})}}),void 0!==ezTOC.visibility_hide_by_default){var i=t("a.ez-toc-toggle"),o=ezTOC.visibility_hide_by_default;i.css("display","flex"),t.each(i,function(e,i){var a,c=t(this),s=t(c).parents("#ez-toc-container,#ez-toc-widget-container").find("ul.ez-toc-list");Cookies?(1==Cookies.get("ezTOC_hidetoc-"+e)?t(c).data("visible",!1):t(c).data("visible",!0),Cookies.remove("ezTOC_hidetoc-"+e)):(t(c).data("visible",!0),a="ezTOC_hidetoc-"+e,document.cookie=a+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"),o&&t(c).data("visible",!1),t(c).data("visible")||s.hide(),t(c).on("click",function(i){i.preventDefault();let a=document.querySelector("#ez-toc-container");if(a)a.classList.toggle("toc_close");else{let c=document.querySelector(".ez-toc-widget-container");c.classList.toggle("toc_close")}t(this).data("visible")?(t(this).data("visible",!1),Cookies&&(o?Cookies.set("ezTOC_hidetoc-"+e,null,{path:"/"}):Cookies.set("ezTOC_hidetoc-"+e,"1",{expires:30,path:"/"})),s.hide("fast")):(t(this).data("visible",!0),Cookies&&(o?Cookies.set("ezTOC_hidetoc-"+e,"1",{expires:30,path:"/"}):Cookies.set("ezTOC_hidetoc-"+e,null,{path:"/"})),s.show("fast"))})})}var a,c,s,l=t("span.ez-toc-section").toArray(),n=(a=l,a.reduce(function(e,i){var o;return e[i.id]=t('.ez-toc-widget-container .ez-toc-list a[href="#'+t(o=i).attr("id")+'"]'),e},{})),r=t.map(n,function(t,e){return t}),h=(c=5,void 0!==ezTOC.smooth_scroll&&1===parseInt(ezTOC.smooth_scroll)&&(c=void 0!==ezTOC.scroll_offset?parseInt(ezTOC.scroll_offset):30),s=t("#wpadminbar"),s.length&&(c+=s.height()),c);function f(){var e,i,o,a,c,s=(e=h,i=l,o=t(window).scrollTop()+e+1,a=i[0],c=o-t(a).offset().top,i.forEach(function(e){var i=o-t(e).offset().top;i>0&&i<c&&(c=i,a=e)}),a);if(s){var f,d,p,v,u,g,z,$,b,m=n[s.id];(function t(e,i){i.forEach(function(t){e!==t&&t.parent().hasClass("active")&&t.parent().removeClass("active")})})(m,r),(p=(f=m).parent()).hasClass("active")||p.addClass("active"),b=(v=d=p,u=t(v),g=u.html(),u.parent().append('<li id="ez-toc-height-test" class="active">'+g+"</li>"),z=t("#ez-toc-height-test"),$=z.height(),z.remove(),$-u.children("ul").first().height()),t("#ez-toc-active-height").remove(),t('<style id="ez-toc-active-height">.ez-toc-widget-container ul.ez-toc-list li.active {height:'+b+"px;} </style>").appendTo("head")}}function d(){l.length>0&&t(".ez-toc-widget-container").length&&t(window).on("load resize scroll",f)}function p(){t(window).off("load resize scroll",f)}d()}ezTOC.init=function(){e()},e()}function i(t,e){document.cookie=t+"="+e+"; Path=/;"}});
easy-table-of-contents.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easy Table of Contents
4
  * Plugin URI: https://tocwp.com/
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.37
7
  * Author: Magazine3
8
  * Author URI: https://tocwp.com/
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.37
30
  */
31
 
32
  use Easy_Plugins\Table_Of_Contents\Debug;
@@ -49,7 +49,7 @@ if ( ! class_exists( 'ezTOC' ) ) {
49
  * @since 1.0
50
  * @var string
51
  */
52
- const VERSION = '2.0.37';
53
 
54
  /**
55
  * Stores the instance of this class.
@@ -267,8 +267,10 @@ if ( ! class_exists( 'ezTOC' ) ) {
267
  // array( 'ez-icomoon' ),
268
  ezTOC::VERSION );
269
  }
270
- wp_register_script( 'ez-toc-js-cookie', EZ_TOC_URL . "vendor/js-cookie/js.cookie$min.js", array(), '2.2.1', TRUE );
271
- wp_register_script( 'ez-toc-jquery-smooth-scroll', EZ_TOC_URL . "vendor/smooth-scroll/jquery.smooth-scroll$min.js", array( 'jquery' ), '2.2.0', TRUE );
 
 
272
  wp_register_script( 'ez-toc-jquery-sticky-kit', EZ_TOC_URL . "vendor/sticky-kit/jquery.sticky-kit$min.js", array( 'jquery' ), '1.9.2', TRUE );
273
 
274
  if (ezTOC_Option::get( 'toc_loading' ) != 'css') {
3
  * Plugin Name: Easy Table of Contents
4
  * Plugin URI: https://tocwp.com/
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.38
7
  * Author: Magazine3
8
  * Author URI: https://tocwp.com/
9
  * Text Domain: easy-table-of-contents
26
  * @package Easy Table of Contents
27
  * @category Plugin
28
  * @author Magazine3
29
+ * @version 2.0.38
30
  */
31
 
32
  use Easy_Plugins\Table_Of_Contents\Debug;
49
  * @since 1.0
50
  * @var string
51
  */
52
+ const VERSION = '2.0.38';
53
 
54
  /**
55
  * Stores the instance of this class.
267
  // array( 'ez-icomoon' ),
268
  ezTOC::VERSION );
269
  }
270
+ if ( 'css' != ezTOC_Option::get( 'toc_loading' ) ) {
271
+ wp_register_script( 'ez-toc-js-cookie', EZ_TOC_URL . "vendor/js-cookie/js.cookie$min.js", array(), '2.2.1', TRUE );
272
+ wp_register_script( 'ez-toc-jquery-smooth-scroll', EZ_TOC_URL . "vendor/smooth-scroll/jquery.smooth-scroll$min.js", array( 'jquery' ), '2.2.0', TRUE );
273
+ }
274
  wp_register_script( 'ez-toc-jquery-sticky-kit', EZ_TOC_URL . "vendor/sticky-kit/jquery.sticky-kit$min.js", array( 'jquery' ), '1.9.2', TRUE );
275
 
276
  if (ezTOC_Option::get( 'toc_loading' ) != 'css') {
includes/class.admin.php CHANGED
@@ -109,8 +109,32 @@ if ( ! class_exists( 'ezTOC_Admin' ) ) {
109
 
110
  wp_localize_script( 'cn_toc_admin_script', 'cn_toc_admin_data', $data );
111
  self::inlineAdminStickyToggleJS();
112
-
 
113
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
  /**
116
  * inlineAdminStickyToggleJS Method
109
 
110
  wp_localize_script( 'cn_toc_admin_script', 'cn_toc_admin_data', $data );
111
  self::inlineAdminStickyToggleJS();
112
+
113
+ self::inlineAdminOccasionalAdsPopUpCSS_JS();
114
  }
115
+
116
+ /**
117
+ * inlineAdminOccasionalAdsPopUpCSS_JS Method
118
+ * Prints out inline occasional ads PopUp JS.
119
+ *
120
+ * @access private
121
+ * @return void
122
+ * @since 2.0.38
123
+ * @static
124
+ */
125
+ private static function inlineAdminOccasionalAdsPopUpCSS_JS() {
126
+ $inlineAdminOccasionalAdsPopUpCCS = <<<INLINEOCCASIONALADSPOPUSCCS
127
+ details#eztoc-ocassional-pop-up-container{position:fixed;right:1rem;bottom:1rem;margin-top:2rem;color:#6b7280;display:flex;flex-direction:column;margin-right: 15px;z-index:99999}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents{background-color:#1e1e27;box-shadow:0 5px 10px rgba(0,0,0,.15);padding:25px 25px 10px;border-radius:8px;position:absolute;max-height:calc(100vh - 100px);width:325px;max-width:calc(100vw - 2rem);bottom:calc(100% + 1rem);right:0;overflow:auto;transform-origin:100% 100%;color:#95a3b9;margin-bottom:44px}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents::-webkit-scrollbar{width:15px;background-color:#1e1e27}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents::-webkit-scrollbar-thumb{width:5px;border-radius:99em;background-color:#95a3b9;border:5px solid #1e1e27}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents>*+*{margin-top:.75em}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents p>code{font-size:1rem;font-family:monospace}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents pre{white-space:pre-line;border:1px solid #95a3b9;border-radius:6px;font-family:monospace;padding:.75em;font-size:.875rem;color:#fff}details#eztoc-ocassional-pop-up-container[open] div.eztoc-ocassional-pop-up-contents{bottom:0;-webkit-animation:.25s ez_toc_ocassional_pop_up_scale;animation:.25s ez_toc_ocassional_pop_up_scale}details#eztoc-ocassional-pop-up-container span.eztoc-promotion-close-btn{font-weight:400;font-size:20px;background:#37474f;font-family:sans-serif;border-radius:30px;color:#fff;position:absolute;right:-10px;z-index:99999;padding:0 8px;top:-331px;cursor:pointer;line-height:28px}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents img.eztoc-promotion-surprise-icon{width:40px;float:left;margin-right:10px}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents p.eztoc-ocassional-pop-up-headline{font-size:22px;margin:0;line-height:47px;font-weight:500;color:#fff}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents p.eztoc-ocassional-pop-up-headline span{color:#ea4c89;font-weight:700}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents p.eztoc-ocassional-pop-up-second-headline{font-size:16px;color:#fff}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents a.eztoc-ocassional-pop-up-offer-btn{background:#ea4c89;padding:13px 38px 14px;color:#fff;text-align:center;border-radius:60px;font-size:18px;display:inline-flex;align-items:center;margin:0 auto 15px;text-decoration:none;line-height:1.2;transform:perspective(1px) translateZ(0);box-shadow:0 0 20px 5px rgb(0 0 0 / 6%);transition:.3s ease-in-out;box-shadow:3px 5px .65em 0 rgb(0 0 0 / 15%);display:inherit}details#eztoc-ocassional-pop-up-container div.eztoc-ocassional-pop-up-contents p.eztoc-ocassional-pop-up-last-line{font-size:12px;color:#a6a6a6}details#eztoc-ocassional-pop-up-container summary{display:inline-flex;margin-left:auto;margin-right:auto;justify-content:center;align-items:center;font-weight:600;padding:.5em 1.25em;border-radius:99em;color:#fff;background-color:#185adb;box-shadow:0 5px 15px rgba(0,0,0,.1);list-style:none;text-align:center;cursor:pointer;transition:.15s;position:relative;font-size:.9rem;z-index:99999}details#eztoc-ocassional-pop-up-container summary::-webkit-details-marker{display:none}details#eztoc-ocassional-pop-up-container summary:hover,summary:focus{background-color:#1348af}details#eztoc-ocassional-pop-up-container summary svg{width:25px;margin-left:5px;vertical-align:baseline}@-webkit-keyframes ez_toc_ocassional_pop_up_scale{0%{transform:ez_toc_ocassional_pop_up_scale(0)}100%{transform:ez_toc_ocassional_pop_up_scale(1)}}@keyframes ez_toc_ocassional_pop_up_scale{0%{transform:ez_toc_ocassional_pop_up_scale(0)}100%{transform:ez_toc_ocassional_pop_up_scale(1)}}
128
+ INLINEOCCASIONALADSPOPUSCCS;
129
+
130
+ wp_add_inline_style( 'cn_toc_admin_style', $inlineAdminOccasionalAdsPopUpCCS );
131
+
132
+ $inlineAdminOccasionalAdsPopUpJS = <<<INLINEOCCASIONALADSPOPUSJS
133
+ function eztoc_set_admin_occasional_ads_pop_up_cookie(){var o=new Date;o.setFullYear(o.getFullYear()+1),document.cookie="eztoc_hide_admin_occasional_ads_pop_up_cookie_feedback=1; expires="+o.toUTCString()+"; path=/"}function eztoc_delete_admin_occasional_ads_pop_up_cookie(){document.cookie="eztoc_hide_admin_occasional_ads_pop_up_cookie_feedback=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function eztoc_get_admin_occasional_ads_pop_up_cookie(){for(var o="eztoc_hide_admin_occasional_ads_pop_up_cookie_feedback=",a=decodeURIComponent(document.cookie).split(";"),e=0;e<a.length;e++){for(var c=a[e];" "==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(o))return c.substring(o.length,c.length)}return""}jQuery(function(o){var a=eztoc_get_admin_occasional_ads_pop_up_cookie();void 0!==a&&""!==a&&o("details#eztoc-ocassional-pop-up-container").attr("open",!1),o("details#eztoc-ocassional-pop-up-container span.eztoc-promotion-close-btn").click(function(a){o("details#eztoc-ocassional-pop-up-container summary").click()}),o("details#eztoc-ocassional-pop-up-container summary").click(function(a){var e=o(this).parents("details#eztoc-ocassional-pop-up-container"),c=o(e).attr("open");void 0!==c&&!1!==c?eztoc_set_admin_occasional_ads_pop_up_cookie():eztoc_delete_admin_occasional_ads_pop_up_cookie()})});
134
+ INLINEOCCASIONALADSPOPUSJS;
135
+
136
+ wp_add_inline_script( 'cn_toc_admin_script', $inlineAdminOccasionalAdsPopUpJS );
137
+ }
138
 
139
  /**
140
  * inlineAdminStickyToggleJS Method
includes/class.post.php CHANGED
@@ -1297,7 +1297,8 @@ class ezTOC_Post {
1297
  if(ezTOC_Option::get('visibility_hide_by_default')==true){
1298
  $toggle_view= "checked";
1299
  }
1300
- $html .= '<label for="item" class="cssicon">' . ezTOC::getTOCToggleIcon() . '</label><label for="item" class="cssiconcheckbox">1</label><input type="checkbox" id="item" '.$toggle_view.'>';
 
1301
  }
1302
  }
1303
 
1297
  if(ezTOC_Option::get('visibility_hide_by_default')==true){
1298
  $toggle_view= "checked";
1299
  }
1300
+ $cssIconID = uniqid();
1301
+ $html .= '<label for="ez-toc-cssicon-toggle-item-' . $cssIconID . '" class="cssicon">' . ezTOC::getTOCToggleIcon() . '</label><label for="ez-toc-cssicon-toggle-item-' . $cssIconID . '" class="cssiconcheckbox">1</label><input type="checkbox" id="ez-toc-cssicon-toggle-item-' . $cssIconID . '" '.$toggle_view.'>';
1302
  }
1303
  }
1304
 
includes/class.widget-toc.php CHANGED
@@ -241,33 +241,51 @@ if ( ! class_exists( 'ezTOC_Widget' ) ) {
241
  ?>
242
 
243
  <?php echo $before_title; ?>
 
244
 
245
- <span class="ez-toc-title-container">
 
 
 
 
246
 
247
- <style type="text/css">
248
- #<?php echo $this->id ?> .ez-toc-widget-container ul.ez-toc-list li.active{
249
- background-color: <?php echo esc_attr( $instance['highlight_color'] ); ?>;
250
- }
251
- </style>
252
 
253
- <span class="ez-toc-title"><?php echo $title; ?></span>
254
 
255
- <span class="ez-toc-title-toggle">
256
 
257
- <?php
258
- if ( ezTOC_Option::get( 'visibility' ) ) {
259
 
260
- echo '<a class="ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle">' . ezTOC::getTOCToggleIcon() . '</a>';
261
- }
262
- ?>
 
 
 
263
 
264
- </span>
265
 
266
- </span>
267
 
268
- <?php echo $after_title; ?>
269
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
  <?php
 
271
  }
272
  do_action( 'ez_toc_before' );
273
  echo '<nav>'. PHP_EOL . $post->getTOCList() . '</nav>' . PHP_EOL;
241
  ?>
242
 
243
  <?php echo $before_title; ?>
244
+ <span class="ez-toc-title-container">
245
 
246
+ <style type="text/css">
247
+ #<?php echo $this->id ?> .ez-toc-widget-container ul.ez-toc-list li.active{
248
+ background-color: <?php echo esc_attr( $instance['highlight_color'] ); ?>;
249
+ }
250
+ </style>
251
 
252
+ <span class="ez-toc-title"><?php echo $title; ?></span>
253
+ <span class="ez-toc-title-toggle">
254
+ <?php if ( 'css' != ezTOC_Option::get( 'toc_loading' ) ): ?>
 
 
255
 
 
256
 
 
257
 
 
 
258
 
259
+ <?php
260
+ if ( ezTOC_Option::get( 'visibility' ) ) {
261
+
262
+ echo '<a class="ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle">' . ezTOC::getTOCToggleIcon() . '</a>';
263
+ }
264
+ ?>
265
 
 
266
 
 
267
 
 
268
 
269
+ <?php else: ?>
270
+ <?php
271
+ $toggle_view='';
272
+ if(ezTOC_Option::get('visibility_hide_by_default')==true){
273
+ $toggle_view= "checked";
274
+ }
275
+ $cssIconID = uniqid();
276
+ $htmlCSSIcon = '<label for="ez-toc-cssicon-toggle-item-' . $cssIconID . '" class="ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle">' . ezTOC::getTOCToggleIcon() . '</label>';
277
+ echo $htmlCSSIcon;
278
+ ?>
279
+ <?php endif; ?>
280
+ </span>
281
+ </span>
282
+
283
+ <?php echo $after_title; ?>
284
+ <?php if ( 'css' == ezTOC_Option::get( 'toc_loading' ) ): ?>
285
+ <label for="ez-toc-cssicon-toggle-item-<?= $cssIconID ?>" class="cssiconcheckbox">1</label><input type="checkbox" id="ez-toc-cssicon-toggle-item-<?= $cssIconID ?>" <?= $toggle_view?> style="display:none" />
286
+ <?php endif; ?>
287
  <?php
288
+
289
  }
290
  do_action( 'ez_toc_before' );
291
  echo '<nav>'. PHP_EOL . $post->getTOCList() . '</nav>' . PHP_EOL;
includes/deactivate-feedback.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  $reasons = array(
3
- 1 => '<li><label><input type="radio" name="eztoc_disable_reason" value="temporary"/>' . __('It is only temporary', 'easy-table-of-contents') . '</label></li>',
4
- 2 => '<li><label><input type="radio" name="eztoc_disable_reason" value="stopped showing toc"/>' . __('I stopped showing TOC on my site', 'easy-table-of-contents') . '</label></li>',
5
- 3 => '<li><label><input type="radio" name="eztoc_disable_reason" value="missing feature"/>' . __('I miss a feature', 'easy-table-of-contents') . '</label></li>
6
  <li><input type="text" name="eztoc_disable_text[]" value="" placeholder="Please describe the feature"/></li>',
7
- 4 => '<li><label><input type="radio" name="eztoc_disable_reason" value="technical issue"/>' . __('Technical Issue', 'easy-table-of-contents') . '</label></li>
8
  <li><textarea name="eztoc_disable_text[]" placeholder="' . __('Can we help? Please describe your problem', 'easy-table-of-contents') . '"></textarea></li>',
9
- 5 => '<li><label><input type="radio" name="eztoc_disable_reason" value="other plugin"/>' . __('I switched to another plugin', 'easy-table-of-contents') . '</label></li>
10
  <li><input type="text" name="eztoc_disable_text[]" value="" placeholder="Name of the plugin"/></li>',
11
- 6 => '<li><label><input type="radio" name="eztoc_disable_reason" value="other"/>' . __('Other reason', 'easy-table-of-contents') . '</label></li>
12
  <li><textarea name="eztoc_disable_text[]" placeholder="' . __('Please specify, if possible', 'easy-table-of-contents') . '"></textarea></li>',
13
  );
14
  shuffle($reasons);
@@ -30,7 +30,7 @@ shuffle($reasons);
30
  <input type="hidden" name="eztoc_disable_from" value="<?php echo $email; ?>"/>
31
  <?php endif; ?>
32
  <input id="eztoc-reloaded-feedback-submit" class="button button-primary" type="submit" name="eztoc_disable_submit" value="<?php _e('Submit & Deactivate', 'easy-table-of-contents'); ?>"/>
33
- <a class="button"><?php _e('Only Deactivate', 'easy-table-of-contents'); ?></a>
34
  <a class="eztoc-feedback-not-deactivate" href="#"><?php _e('Don\'t deactivate', 'easy-table-of-contents'); ?></a>
35
  </form>
36
  </div>
1
  <?php
2
  $reasons = array(
3
+ 1 => '<li><label><input type="radio" name="eztoc_disable_reason" required value="temporary"/>' . __('It is only temporary', 'easy-table-of-contents') . '</label></li>',
4
+ 2 => '<li><label><input type="radio" name="eztoc_disable_reason" required value="stopped showing toc"/>' . __('I stopped showing TOC on my site', 'easy-table-of-contents') . '</label></li>',
5
+ 3 => '<li><label><input type="radio" name="eztoc_disable_reason" required value="missing feature"/>' . __('I miss a feature', 'easy-table-of-contents') . '</label></li>
6
  <li><input type="text" name="eztoc_disable_text[]" value="" placeholder="Please describe the feature"/></li>',
7
+ 4 => '<li><label><input type="radio" name="eztoc_disable_reason" required value="technical issue"/>' . __('Technical Issue', 'easy-table-of-contents') . '</label></li>
8
  <li><textarea name="eztoc_disable_text[]" placeholder="' . __('Can we help? Please describe your problem', 'easy-table-of-contents') . '"></textarea></li>',
9
+ 5 => '<li><label><input type="radio" name="eztoc_disable_reason" required value="other plugin"/>' . __('I switched to another plugin', 'easy-table-of-contents') . '</label></li>
10
  <li><input type="text" name="eztoc_disable_text[]" value="" placeholder="Name of the plugin"/></li>',
11
+ 6 => '<li><label><input type="radio" name="eztoc_disable_reason" required value="other"/>' . __('Other reason', 'easy-table-of-contents') . '</label></li>
12
  <li><textarea name="eztoc_disable_text[]" placeholder="' . __('Please specify, if possible', 'easy-table-of-contents') . '"></textarea></li>',
13
  );
14
  shuffle($reasons);
30
  <input type="hidden" name="eztoc_disable_from" value="<?php echo $email; ?>"/>
31
  <?php endif; ?>
32
  <input id="eztoc-reloaded-feedback-submit" class="button button-primary" type="submit" name="eztoc_disable_submit" value="<?php _e('Submit & Deactivate', 'easy-table-of-contents'); ?>"/>
33
+ <a class="button eztoc-feedback-only-deactivate"><?php _e('Only Deactivate', 'easy-table-of-contents'); ?></a>
34
  <a class="eztoc-feedback-not-deactivate" href="#"><?php _e('Don\'t deactivate', 'easy-table-of-contents'); ?></a>
35
  </form>
36
  </div>
includes/feedback.js CHANGED
@@ -24,56 +24,70 @@ jQuery(document).ready(function ($) {
24
  // show text fields
25
  $('#eztoc-reloaded-feedback-content input[type="radio"]').click(function () {
26
  // show text field if there is one
27
- $(this).parents('li').next('li').children('input[type="text"], textarea').show();
 
 
28
  });
29
  // send form or close it
30
- $('#eztoc-reloaded-feedback-content .button').click(function (e) {
31
  e.preventDefault();
32
- // set cookie for 30 days
33
- var exdate = new Date();
34
- exdate.setSeconds(exdate.getSeconds() + 2592000);
35
- document.cookie = "eztoc_hide_deactivate_feedback=1; expires=" + exdate.toUTCString() + "; path=/";
36
 
37
- $('#eztoc-reloaded-feedback-overlay').hide();
38
- if ('eztoc-reloaded-feedback-submit' === this.id) {
39
- // Send form data
40
- $.ajax({
41
- type: 'POST',
42
- url: ajaxurl,
43
- dataType: 'json',
44
- data: {
45
- action: 'eztoc_send_feedback',
46
- data: $('#eztoc-reloaded-feedback-content form').serialize()
47
- },
48
- complete: function (MLHttpRequest, textStatus, errorThrown) {
49
- // deactivate the plugin and close the popup
50
- $('#eztoc-reloaded-feedback-overlay').remove();
51
- window.location.href = eztoc_deactivate_link_url;
52
 
 
 
 
 
 
 
 
 
53
  }
54
- });
55
- } else {
56
- $('#eztoc-reloaded-feedback-overlay').remove();
57
- window.location.href = eztoc_deactivate_link_url;
58
- }
59
  });
 
 
 
 
 
 
 
 
 
 
60
  // close form without doing anything
61
  $('.eztoc-feedback-not-deactivate').click(function (e) {
 
 
 
62
  $('#eztoc-reloaded-feedback-overlay').hide();
63
  });
64
-
65
- function eztoc_admin_get_cookie (name) {
66
- var i, x, y, eztoc_cookies = document.cookie.split( ";" );
67
- for (i = 0; i < eztoc_cookies.length; i++)
68
- {
69
- x = eztoc_cookies[i].substr( 0, eztoc_cookies[i].indexOf( "=" ) );
70
- y = eztoc_cookies[i].substr( eztoc_cookies[i].indexOf( "=" ) + 1 );
71
- x = x.replace( /^\s+|\s+$/g, "" );
72
- if (x === name)
73
- {
74
- return unescape( y );
75
- }
76
- }
77
- }
78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  }); // document ready
24
  // show text fields
25
  $('#eztoc-reloaded-feedback-content input[type="radio"]').click(function () {
26
  // show text field if there is one
27
+ var elementText = $(this).parents('li').next('li').children('input[type="text"], textarea');
28
+ $(this).parents('ul').find('input[type="text"], textarea').not(elementText).hide().val('').attr('required', false);
29
+ elementText.attr('required', 'required').show();
30
  });
31
  // send form or close it
32
+ $('#eztoc-reloaded-feedback-content form').submit(function (e) {
33
  e.preventDefault();
 
 
 
 
34
 
35
+ eztoc_set_feedback_cookie();
36
+
37
+ // Send form data
38
+ $.post(ajaxurl, {
39
+ action: 'eztoc_send_feedback',
40
+ data: $('#eztoc-reloaded-feedback-content form').serialize() + "&eztoc_security_nonce=" + cn_toc_admin_data.eztoc_security_nonce
41
+ },
42
+ function (data) {
 
 
 
 
 
 
 
43
 
44
+ if (data == 'Sent') {
45
+ // deactivate the plugin and close the popup
46
+ $('#eztoc-reloaded-feedback-overlay').remove();
47
+ window.location.href = eztoc_deactivate_link_url;
48
+ } else {
49
+ console.log('Error: ' + data);
50
+ alert(data);
51
+ }
52
  }
53
+ );
 
 
 
 
54
  });
55
+
56
+ $("#eztoc-reloaded-feedback-content .eztoc-feedback-only-deactivate").click(function (e) {
57
+ e.preventDefault();
58
+
59
+ eztoc_set_feedback_cookie();
60
+
61
+ $('#eztoc-reloaded-feedback-overlay').remove();
62
+ window.location.href = eztoc_deactivate_link_url;
63
+ });
64
+
65
  // close form without doing anything
66
  $('.eztoc-feedback-not-deactivate').click(function (e) {
67
+ $('#eztoc-reloaded-feedback-content form')[0].reset();
68
+ var elementText = $('#eztoc-reloaded-feedback-content input[type="radio"]').parents('li').next('li').children('input[type="text"], textarea');
69
+ $(elementText).parents('ul').find('input[type="text"], textarea').hide().val('').attr('required', false);
70
  $('#eztoc-reloaded-feedback-overlay').hide();
71
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
+ function eztoc_admin_get_cookie(name) {
74
+ var i, x, y, eztoc_cookies = document.cookie.split(";");
75
+ for (i = 0; i < eztoc_cookies.length; i++)
76
+ {
77
+ x = eztoc_cookies[i].substr(0, eztoc_cookies[i].indexOf("="));
78
+ y = eztoc_cookies[i].substr(eztoc_cookies[i].indexOf("=") + 1);
79
+ x = x.replace(/^\s+|\s+$/g, "");
80
+ if (x === name)
81
+ {
82
+ return unescape(y);
83
+ }
84
+ }
85
+ }
86
+
87
+ function eztoc_set_feedback_cookie() {
88
+ // set cookie for 30 days
89
+ var exdate = new Date();
90
+ exdate.setSeconds(exdate.getSeconds() + 2592000);
91
+ document.cookie = "eztoc_hide_deactivate_feedback=1; expires=" + exdate.toUTCString() + "; path=/";
92
+ }
93
  }); // document ready
includes/helper-function.php CHANGED
@@ -54,7 +54,12 @@ function eztoc_send_feedback() {
54
  if( isset( $_POST['data'] ) ) {
55
  parse_str( $_POST['data'], $form );
56
  }
57
-
 
 
 
 
 
58
  $text = '';
59
  if( isset( $form['eztoc_disable_text'] ) ) {
60
  $text = implode( "\n\r", $form['eztoc_disable_text'] );
@@ -86,7 +91,8 @@ function eztoc_send_feedback() {
86
  }
87
 
88
  $success = wp_mail( 'team@magazine3.in', $subject, $text, $headers );
89
-
 
90
  die();
91
  }
92
  add_action( 'wp_ajax_eztoc_send_feedback', 'eztoc_send_feedback' );
54
  if( isset( $_POST['data'] ) ) {
55
  parse_str( $_POST['data'], $form );
56
  }
57
+
58
+ if( !isset( $form['eztoc_security_nonce'] ) || isset( $form['eztoc_security_nonce'] ) && !wp_verify_nonce( sanitize_text_field( $form['eztoc_security_nonce'] ), 'eztoc_ajax_check_nonce' ) ) {
59
+ echo _e( 'Security nonce not verified', 'easy-table-of-contents' );
60
+ die();
61
+ }
62
+
63
  $text = '';
64
  if( isset( $form['eztoc_disable_text'] ) ) {
65
  $text = implode( "\n\r", $form['eztoc_disable_text'] );
91
  }
92
 
93
  $success = wp_mail( 'team@magazine3.in', $subject, $text, $headers );
94
+
95
+ echo _e( 'Sent', 'easy-table-of-contents' );
96
  die();
97
  }
98
  add_action( 'wp_ajax_eztoc_send_feedback', 'eztoc_send_feedback' );
includes/inc.admin-options-page.php CHANGED
@@ -13,7 +13,7 @@
13
  $pro = '';
14
 
15
  if (function_exists('ez_toc_pro_activation_link')) {
16
- $pro = '<a id="eztoc-default" class="eztoc-tablinks" data-href="no" href="#eztoc-prosettings" onclick="ezTocTabToggle(event, \'general\')">PRO Settings</a>';
17
  } ?>
18
  <?php echo $pro; ?>
19
 
@@ -72,14 +72,14 @@
72
  </div>
73
  <div class="eztoc-tabcontent" id="general">
74
  <div id="eztoc-tabs" style="margin-top: 10px;">
75
- <a href="#eztoc-general"><?= esc_html_e( 'General', 'easy-table-of-contents' ) ?></a> | <a href="#eztoc-appearance"><?= esc_html_e( 'Appearance', 'easy-table-of-contents' ) ?></a> | <a
76
- href="#eztoc-advanced"><?= esc_html_e( 'Advanced', 'easy-table-of-contents' ) ?></a> | <a href="#eztoc-shortcode"><?= esc_html_e( 'Shortcode', 'easy-table-of-contents' ) ?></a>
77
  </div>
78
  <form method="post" action="<?php echo esc_url(self_admin_url('options.php')); ?>">
79
 
80
  <div class="metabox-holder">
81
 
82
  <div class="postbox" id="eztoc-general">
 
83
  <h3><span><?= esc_html_e('General', 'easy-table-of-contents'); ?></span></h3>
84
 
85
  <div class="inside">
@@ -89,7 +89,6 @@
89
  <?php do_settings_fields('ez_toc_settings_general', 'ez_toc_settings_general'); ?>
90
 
91
  </table>
92
-
93
  </div><!-- /.inside -->
94
  </div><!-- /.postbox -->
95
 
@@ -98,6 +97,7 @@
98
  <div class="metabox-holder">
99
 
100
  <div class="postbox" id="eztoc-appearance">
 
101
  <h3><span><?= esc_html_e('Appearance', 'easy-table-of-contents'); ?></span></h3>
102
 
103
  <div class="inside">
@@ -116,6 +116,7 @@
116
  <div class="metabox-holder">
117
 
118
  <div class="postbox" id="eztoc-advanced">
 
119
  <h3><span><?= esc_html_e('Advanced', 'easy-table-of-contents'); ?></span></h3>
120
 
121
  <div class="inside">
@@ -134,6 +135,7 @@
134
  <div class="metabox-holder">
135
 
136
  <div class="postbox" id="eztoc-shortcode">
 
137
  <h3><span><?= esc_html_e('Shortcode', 'easy-table-of-contents'); ?></span></h3>
138
  <div class="inside">
139
 
@@ -149,6 +151,7 @@
149
  <div class="metabox-holder">
150
 
151
  <div class="postbox" id="eztoc-prosettings">
 
152
  <h3><span><?= esc_html_e('PRO Settings', 'easy-table-of-contents'); ?></span></h3>
153
  <div class="inside">
154
 
@@ -660,4 +663,18 @@ function addCustomSpan()
660
  do_action("admin_upgrade_license_page");
661
  ?>
662
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
663
  </div>
13
  $pro = '';
14
 
15
  if (function_exists('ez_toc_pro_activation_link')) {
16
+ $pro = '<a id="eztoc-default" class="eztoc-tablinks ez-toc-pro-settings-link-paid" data-href="no" href="#eztoc-prosettings" onclick="ezTocTabToggle(event, \'general\')">PRO Settings</a>';
17
  } ?>
18
  <?php echo $pro; ?>
19
 
72
  </div>
73
  <div class="eztoc-tabcontent" id="general">
74
  <div id="eztoc-tabs" style="margin-top: 10px;">
75
+ <a href="#eztoc-general" id="eztoc-link-general" class="active"><?= esc_html_e( 'General', 'easy-table-of-contents' ) ?></a> | <a href="#eztoc-appearance" id="eztoc-link-appearance"><?= esc_html_e( 'Appearance', 'easy-table-of-contents' ) ?></a> | <a href="#eztoc-advanced" id="eztoc-link-advanced"><?= esc_html_e( 'Advanced', 'easy-table-of-contents' ) ?></a> | <a href="#eztoc-shortcode" id="eztoc-link-shortcode"><?= esc_html_e( 'Shortcode', 'easy-table-of-contents' ) ?></a>
 
76
  </div>
77
  <form method="post" action="<?php echo esc_url(self_admin_url('options.php')); ?>">
78
 
79
  <div class="metabox-holder">
80
 
81
  <div class="postbox" id="eztoc-general">
82
+ <br />
83
  <h3><span><?= esc_html_e('General', 'easy-table-of-contents'); ?></span></h3>
84
 
85
  <div class="inside">
89
  <?php do_settings_fields('ez_toc_settings_general', 'ez_toc_settings_general'); ?>
90
 
91
  </table>
 
92
  </div><!-- /.inside -->
93
  </div><!-- /.postbox -->
94
 
97
  <div class="metabox-holder">
98
 
99
  <div class="postbox" id="eztoc-appearance">
100
+ <br />
101
  <h3><span><?= esc_html_e('Appearance', 'easy-table-of-contents'); ?></span></h3>
102
 
103
  <div class="inside">
116
  <div class="metabox-holder">
117
 
118
  <div class="postbox" id="eztoc-advanced">
119
+ <br />
120
  <h3><span><?= esc_html_e('Advanced', 'easy-table-of-contents'); ?></span></h3>
121
 
122
  <div class="inside">
135
  <div class="metabox-holder">
136
 
137
  <div class="postbox" id="eztoc-shortcode">
138
+ <br />
139
  <h3><span><?= esc_html_e('Shortcode', 'easy-table-of-contents'); ?></span></h3>
140
  <div class="inside">
141
 
151
  <div class="metabox-holder">
152
 
153
  <div class="postbox" id="eztoc-prosettings">
154
+ <br />
155
  <h3><span><?= esc_html_e('PRO Settings', 'easy-table-of-contents'); ?></span></h3>
156
  <div class="inside">
157
 
663
  do_action("admin_upgrade_license_page");
664
  ?>
665
  </div>
666
+ <details id="eztoc-ocassional-pop-up-container" open>
667
+ <summary class="eztoc-ocassional-pop-up-open-close-button"><?= esc_html_e('40% OFF - Limited Time Only', 'easy-table-of-contents'); ?><svg fill="#fff" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 288.359 288.359" style="enable-background:new 0 0 288.359 288.359;" xml:space="preserve"><g><path d="M283.38,4.98c-3.311-3.311-7.842-5.109-12.522-4.972L163.754,3.166c-4.334,0.128-8.454,1.906-11.52,4.972L4.979,155.394 c-6.639,6.639-6.639,17.402,0,24.041L108.924,283.38c6.639,6.639,17.402,6.639,24.041,0l147.256-147.256 c3.065-3.065,4.844-7.186,4.972-11.52l3.159-107.103C288.49,12.821,286.691,8.291,283.38,4.98z M247.831,130.706L123.128,255.407 c-1.785,1.785-4.679,1.785-6.464,0l-83.712-83.712c-1.785-1.785-1.785-4.679,0-6.464L157.654,40.529 c1.785-1.785,4.679-1.785,6.464,0l83.713,83.713C249.616,126.027,249.616,128.921,247.831,130.706z M263.56,47.691 c-6.321,6.322-16.57,6.322-22.892,0c-6.322-6.321-6.322-16.57,0-22.892c6.321-6.322,16.569-6.322,22.892,0 C269.882,31.121,269.882,41.37,263.56,47.691z"/><path d="M99.697,181.278c-5.457,2.456-8.051,3.32-10.006,1.364c-1.592-1.591-1.5-4.411,1.501-7.412 c1.458-1.458,2.927-2.52,4.26-3.298c1.896-1.106,2.549-3.528,1.467-5.438l-0.018-0.029c-0.544-0.96-1.455-1.658-2.522-1.939 c-1.067-0.279-2.202-0.116-3.147,0.453c-1.751,1.054-3.64,2.48-5.587,4.428c-7.232,7.23-7.595,15.599-2.365,20.829 c4.457,4.457,10.597,3.956,17.463,0.637c5.004-2.364,7.55-2.729,9.46-0.819c2.002,2.002,1.638,5.004-1.545,8.186 c-1.694,1.694-3.672,3.044-5.582,4.06c-0.994,0.528-1.728,1.44-2.027,2.525c-0.3,1.085-0.139,2.245,0.443,3.208l0.036,0.06 c1.143,1.889,3.575,2.531,5.503,1.457c2.229-1.241,4.732-3.044,6.902-5.215c8.412-8.412,8.002-16.736,2.864-21.875 C112.475,178.141,107.109,177.868,99.697,181.278z"/><path d="M150.245,157.91l-31.508-16.594c-1.559-0.821-3.47-0.531-4.716,0.714l-4.897,4.898c-1.25,1.25-1.537,3.169-0.707,4.73 l16.834,31.654c0.717,1.347,2.029,2.274,3.538,2.5c1.509,0.225,3.035-0.278,4.114-1.357c1.528-1.528,1.851-3.89,0.786-5.771 l-3.884-6.866l8.777-8.777l6.944,3.734c1.952,1.05,4.361,0.696,5.928-0.871c1.129-1.129,1.654-2.726,1.415-4.303 C152.63,160.023,151.657,158.653,150.245,157.91z M125.621,165.632c0,0-7.822-13.37-9.187-15.644l0.091-0.092 c2.274,1.364,15.872,8.959,15.872,8.959L125.621,165.632z"/><path d="M173.694,133.727c-1.092,0-2.139,0.434-2.911,1.205l-9.278,9.278l-21.352-21.352c-0.923-0.923-2.175-1.441-3.479-1.441 s-2.557,0.519-3.479,1.441c-1.922,1.922-1.922,5.037,0,6.958l24.331,24.332c1.57,1.569,4.115,1.569,5.685,0l13.395-13.395 c1.607-1.607,1.607-4.213,0-5.821C175.833,134.16,174.786,133.727,173.694,133.727z"/><path d="M194.638,111.35l-9.755,9.755l-7.276-7.277l8.459-8.458c1.557-1.558,1.557-4.081-0.001-5.639 c-1.557-1.557-4.082-1.557-5.639,0l-8.458,8.458l-6.367-6.366l9.117-9.117c1.57-1.57,1.57-4.115,0-5.686 c-0.754-0.755-1.776-1.179-2.843-1.179c-1.066,0-2.089,0.424-2.843,1.178l-13.234,13.233c-0.753,0.754-1.177,1.776-1.177,2.843 c0,1.066,0.424,2.089,1.178,2.843l24.968,24.968c1.57,1.569,4.115,1.569,5.685,0l13.87-13.87c1.57-1.57,1.57-4.115,0-5.686 C198.752,109.78,196.208,109.78,194.638,111.35z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg></summary>
668
+ <span class="eztoc-promotion-close-btn"> &times; </span>
669
+ <div class="eztoc-ocassional-pop-up-contents">
670
+
671
+ <img src="https://cdn-icons-png.flaticon.com/512/2349/2349820.png" class="eztoc-promotion-surprise-icon" />
672
+ <p class="eztoc-ocassional-pop-up-headline"><?= esc_html_e('40% OFF on', 'easy-table-of-contents'); ?> <span><?= esc_html_e('Easy TOC PRO', 'easy-table-of-contents');?></span></p>
673
+ <p class="eztoc-ocassional-pop-up-second-headline"><?= esc_html_e('Upgrade the PRO version during this festive season and get our biggest discount of all time on New Purchases, Renewals &amp; Upgrades', 'easy-table-of-contents'); ?></p>
674
+ <a class="eztoc-ocassional-pop-up-offer-btn" href="<?= esc_url('https://tocwp.com/november-deal/') ?>" target="_blank"><?= esc_html_e('Get This Offer Now', 'easy-table-of-contents'); ?></a>
675
+ <p class="eztoc-ocassional-pop-up-last-line"><?= esc_html_e('Black Friday, Cyber Monday, Christmas &amp; New year are the only times we offer discounts this big.', 'easy-table-of-contents'); ?> </p>
676
+
677
+ </div>
678
+
679
+ </details>
680
  </div>
includes/inc.functions.php CHANGED
@@ -92,7 +92,8 @@ function ez_toc_block( $post = null, $apply_content_filter = true ) {
92
  }
93
 
94
  function ez_toc_inline_styles(){
95
- echo "<style>#ez-toc-container{background:#f9f9f9;border:1px solid #aaa;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(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:#fff}#ez-toc-container.ez-toc-black{background:#000}#ez-toc-container.ez-toc-transparent{background:none}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 li,#ez-toc-container ul{padding:0}#ez-toc-container li,#ez-toc-container ul,#ez-toc-container ul li,div.ez-toc-widget-container,div.ez-toc-widget-container li{background:0 0;list-style: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:inline;text-align:left;vertical-align:middle}.ez-toc-btn,.ez-toc-glyphicon{display:inline-block;font-weight:400}#ez-toc-container.ez-toc-black a,#ez-toc-container.ez-toc-black a:visited,#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:#444;box-shadow:none;text-decoration:none;text-shadow:none;display:inline-flex;align-items:stretch;flex-wrap:nowrap}#ez-toc-container a:visited{color:#9f9f9f}#ez-toc-container a:hover{text-decoration:underline}.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{background-color:#ededed;height:auto!important}.ez-toc-widget-container li.active>a{font-weight:900}.ez-toc-btn{padding:6px 12px;margin-bottom:0;font-size:14px;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:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.ez-toc-btn:focus,.ez-toc-btn:hover{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,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.ez-toc-btn-default{color:#333;background-color:#fff;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);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:#ccc}.ez-toc-btn-default.active,.ez-toc-btn-default:active,.ez-toc-btn-default:focus,.ez-toc-btn-default:hover{color:#333;background-color:#ebebeb;border-color:#adadad}.ez-toc-btn-default.active,.ez-toc-btn-default:active{background-image:none;background-color:#e0e0e0;border-color:#dbdbdb}.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:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.active,.ez-toc-btn:active{background-image:none}.ez-toc-btn-default:focus,.ez-toc-btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.ez-toc-pull-right{float:right!important;margin-left:10px}#ez-toc-container label.cssicon{height:30px}.ez-toc-glyphicon{position:relative;top:1px;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;line-height:1;-moz-osx-font-smoothing:grayscale}.ez-toc-glyphicon:empty{width:1em}.ez-toc-toggle i.ez-toc-glyphicon,label.cssicon .ez-toc-glyphicon:empty{font-size:16px;margin-left:2px}#ez-toc-container input,.ez-toc-toggle #item{position:absolute;left:-999em}#ez-toc-container input[type=checkbox]:checked+nav{opacity:0;max-height:0;border:none;display:none}#ez-toc-container label{float:right;position:relative;font-size:16px;padding:0 4px 0 5px;border:1px solid #999191;border-radius:5px;cursor:pointer;width:30px;left:10px}#ez-toc-container .ez-toc-toggle label,#ez-toc-container label.cssicon{float:right;position:relative;font-size:16px;padding:0;border:1px solid #999191;border-radius:5px;cursor:pointer;left:10px;width:35px}div#ez-toc-container p.ez-toc-title{display:contents}div#ez-toc-container{padding-right:20px}.ez-toc-wrap-center{margin:0 auto}#ez-toc-container a.ez-toc-toggle{display:flex;align-items:center;color:#444;background:inherit;border:inherit}label.cssiconcheckbox{display:none}.ez-toc-widget-container ul li a{padding-left:10px;display:inline-flex;align-items:stretch;flex-wrap:nowrap}</style>";
 
96
  }
97
  if (ezTOC_Option::get( 'inline_css' )) {
98
  add_action('wp_head', 'ez_toc_inline_styles');
92
  }
93
 
94
  function ez_toc_inline_styles(){
95
+ $screen_min_css = file_get_contents( EZ_TOC_PATH . '/assets/css/screen.min.css' );
96
+ echo "<style>$screen_min_css</style>";
97
  }
98
  if (ezTOC_Option::get( 'inline_css' )) {
99
  add_action('wp_head', 'ez_toc_inline_styles');
includes/inc.plugin-compatibility.php CHANGED
@@ -613,4 +613,89 @@ INLINECSSAVADA;
613
  wp_add_inline_style( 'ez-toc-avada', $inlineCSSAvada );
614
  }
615
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
616
  }
613
  wp_add_inline_style( 'ez-toc-avada', $inlineCSSAvada );
614
  }
615
  }
616
+ }
617
+
618
+ /**
619
+ * Thrive Theme Builder Compatibility
620
+ * add inline custom CSS to remove double line
621
+ * on links of our Easy TOC container
622
+ * @since 2.0.38
623
+ */
624
+ if ( 'Thrive Theme Builder' == apply_filters( 'current_theme', get_option( 'current_theme' ) ) ) {
625
+
626
+ add_action( 'wp_head', 'enqueueScriptsforThriveThemeBuilder' );
627
+
628
+ if( ! function_exists( 'enqueueScriptsforThriveThemeBuilder' ) ) {
629
+ function enqueueScriptsforThriveThemeBuilder() {
630
+ echo <<<INLINECSSAVADA
631
+ <style>#ez-toc-container a:hover{text-decoration: none;}</style>
632
+ INLINECSSAVADA;
633
+ }
634
+ }
635
+ }
636
+
637
+ /**
638
+ * Kalium - Medical Theme Compatibility
639
+ * remove duplicate eztoc containers
640
+ * in faq sections
641
+ * @since 2.0.38
642
+ */
643
+ if ( in_array( 'js_composer/js_composer.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) && ( 'Kalium - Medical Theme' == apply_filters( 'current_theme', get_option( 'current_theme' ) ) || 'Kalium' == apply_filters( 'current_theme', get_option( 'current_theme' ) ) ) ) {
644
+ add_shortcode( 'vc_toggle', 'eztoc_vc_toggle_modified' );
645
+ function eztoc_vc_toggle_modified( $atts, $content, $tag ) {
646
+ if ( 'vc_toggle' == $tag ) {
647
+
648
+ /**
649
+ * Shortcode attributes
650
+ * @var $atts
651
+ * @var $title
652
+ * @var $el_class
653
+ * @var $style
654
+ * @var $color
655
+ * @var $size
656
+ * @var $open
657
+ * @var $css_animation
658
+ * @var $el_id
659
+ * @var $content - shortcode content
660
+ * @var $css
661
+ * Shortcode class
662
+ * @var WPBakeryShortCode_Vc_Toggle $this_WPBakeryShortCode_Vc_Toggle
663
+ */
664
+ $title = $el_class = $style = $color = $size = $open = $css_animation = $css = $el_id = '';
665
+
666
+ $inverted = false;
667
+ $atts = vc_map_get_attributes('vc_toggle', $atts);
668
+ extract($atts);
669
+
670
+ // checking is color inverted
671
+ $style = str_replace('_outline', '', $style, $inverted);
672
+ /**
673
+ * @since 4.4
674
+ */
675
+ $elementClass = array(
676
+ 'base' => apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'vc_toggle', 'vc_toggle', $atts),
677
+ // TODO: check this code, don't know how to get base class names from params
678
+ 'style' => 'vc_toggle_' . $style,
679
+ 'color' => ( $color ) ? 'vc_toggle_color_' . $color : '',
680
+ 'inverted' => ( $inverted ) ? 'vc_toggle_color_inverted' : '',
681
+ 'size' => ( $size ) ? 'vc_toggle_size_' . $size : '',
682
+ 'open' => ( 'true' === $open ) ? 'vc_toggle_active' : '',
683
+ 'extra' => $atts['css'],
684
+ 'css_animation' => '',
685
+ // TODO: remove getCssAnimation as function in helpers
686
+ );
687
+
688
+ $class_to_filter = trim(implode(' ', $elementClass));
689
+ $class_to_filter .= vc_shortcode_custom_css_class($css, ' ');
690
+ $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, 'vc_toggle', $atts);
691
+
692
+ $heading_output = apply_filters('wpb_toggle_heading', $atts['title'], array(
693
+ 'title' => $title,
694
+ 'open' => $open,
695
+ ));
696
+ $output = '<div ' . ( isset( $el_id ) && ! empty( $el_id ) ? 'id="' . esc_attr( $el_id ) . '"' : '' ) . ' class="' . esc_attr( $css_class ) . '"><div class="vc_toggle_title">' . $heading_output . '<i class="vc_toggle_icon"></i></div><div class="vc_toggle_content">' . wpb_js_remove_wpautop( $content, true ) . '</div></div>';
697
+
698
+ return $output;
699
+ }
700
+ }
701
  }