myStickymenu - Version 2.5.3

Version Description

Support route changed

Download this release

Release Info

Developer galdub
Plugin Icon 128x128 myStickymenu
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2 to 2.5.3

Files changed (5) hide show
  1. css/admin-setting.css +1 -1
  2. js/iris-script.js +99 -73
  3. mystickymenu.php +58 -44
  4. readme.txt +4 -2
  5. upgrade-to-pro.php +19 -0
css/admin-setting.css CHANGED
@@ -1 +1 @@
1
- @import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap);*,:after,:before{box-sizing:border-box}#wpwrap{background:#6572db;background:-moz-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-webkit-gradient(left top,right bottom,color-stop(0,#6572db),color-stop(67%,#ee86c6),color-stop(100%,#ee86c6));background:-webkit-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-o-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-ms-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:linear-gradient(135deg,#6572db 0,#ee86c6 67%,#ee86c6 100%)}.pricing-table{margin:0 0 45px;color:#28375a;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-title{font-weight:700;font-size:24px;line-height:30px;color:#28375a;text-align:center}.price-table{background:#fff;box-sizing:border-box;border-radius:10px;position:relative}.price-table-top{padding:20px;position:relative;border-radius:10px}.price-table.basic-feature{box-shadow:0 12px 44px rgba(108,203,255,.2);border:2px solid #b9eafd}.price-table.basic-feature .price-table-top{background:url(../images/basic-price-bg.png) no-repeat left top}.price-table.plus-feature{border:2px solid #f9d9bd;box-shadow:0 12px 44px rgba(239,140,106,.2)}.price-table.plus-feature .price-table-top{background:url(../images/plus-price.png) no-repeat left top}.price-table.agency-feature{border:2px solid #cfd3fb;box-shadow:0 12px 44px rgba(96,93,236,.2)}.price-table.agency-feature .price-table-top{background:url(../images/agency-price.png) no-repeat left top}.price-tables{margin:30px 0 50px}.plan-name{font-size:30px;line-height:36px;font-weight:700;color:#28375a}.plan-price{position:absolute;right:18px;top:8px;font-weight:700;font-size:60px;line-height:72px;color:#42b9fa}.price-table.plus-feature .plan-price{color:#ef8c6a}.price-table.agency-feature .plan-price{color:#605dec}.price-table.agency-feature .plan-name{color:#fff}.price-head{line-height:72px;padding:5px 0 25px 0}.price-offer,.price-websites{line-height:18px;font-size:15px}.cus-tooltip{cursor:pointer;display:inline-block;position:relative}.cus-tooltip .tooltip__content{background-color:#1849ab;border-radius:4px;bottom:150%;color:#fff;left:0;margin-left:15px;opacity:0;padding:5px 10px;position:absolute;transition:opacity .25s;visibility:hidden;width:auto;z-index:1;text-align:left;margin-right:15px;font-size:14px;line-height:20px}.cus-tooltip .tooltip__content::after{border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;content:"";left:25px;margin-left:-5px;position:absolute;top:100%}.cus-tooltip:hover .tooltip__content{opacity:1;visibility:visible}.price-table-middle ul{list-style:none;margin:0;padding:0}.price-table-middle ul li{display:block;width:100%;border-bottom:solid 1px #e9e9e9;padding:15px 0;margin:0}.price-table-middle ul li a{padding:0 15px;color:#28375a;font-size:16px;line-height:19px;display:block;text-decoration:none}span.has-tooltip{color:#605dec}.price-table-bottom{padding:15px}.price-table.is-fixed{padding-bottom:140px;position:relative}.price-table.is-fixed .price-table-bottom{position:fixed;left:0;width:100%;border-top:solid 2px #e9e9e9;background:#fff}.bottom-position{position:absolute;left:0;bottom:0;height:1px;width:1px}.custom-dd-btn{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px}.custom-dd{margin-bottom:15px}.price-table-bottom a{background:#fff;border:1px solid #42b9fa;color:#42b9fa;border-radius:20px;height:40px;line-height:38px;padding:0 15px;display:block;text-align:center;transition:all .25s linear}.price-table-bottom a:hover{color:#fff;background:#42b9fa}.price-table.plus-feature .price-table-bottom a{background:#ef8c6a;border:1px solid #ef8c6a;color:#fff}.price-table.plus-feature .price-table-bottom a:hover{background:#fff;color:#ef8c6a}.price-table.agency-feature .price-table-bottom a{background:#fff;border:1px solid #605dec;color:#605dec}.price-table.agency-feature .price-table-bottom a:hover{background:#605dec;color:#fff}.container{max-width:1180px;width:100%;padding:30px;background:#fff;border-radius:15px;margin:50px auto}.row{margin-right:-15px;margin-left:-15px}.col-md-4{padding-right:15px;padding-left:15px;width:33.33333333%;float:left}.select2-container--default .select2-selection--single{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px;outline:0}span.select2.select2-container{width:100%!important}.website-package{padding:0 15px;line-height:18px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.website-package .select2-container--default .select2-results>.select2-results__options{margin-top:5px}.custom-dd .select2-container--default .select2-selection--single .select2-selection__arrow{height:20px;top:10px;right:1px;width:20px}@media (min-width:768px){.col-sm-4{width:100%;float:none}}a,a:focus,a:hover{text-decoration:none}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:38px}.select2-results__option{user-select:none;-webkit-user-select:none;font-size:14px;padding:8px 25px;margin:0}.select2-dropdown{border:1px solid #e9e9e9}.price-after{padding:0;text-align:center;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-after p,.price-after span{font-size:16px;line-height:25px;margin:0;padding:0}.clearfix{clear:both}.price-after span{display:inline-block;vertical-align:text-top;font-size:20px;color:#42b9fa}.payments{padding:20px 0 10px}.folder-testimonial-list{width:100%;margin:30px auto 0;font-family:Lato,sans-serif}.folder-testimonial{position:relative}.folder-testimonial .testimonial-image{position:absolute;height:60px;width:60px;top:50%;margin-top:-30px;z-index:1;overflow:hidden;border-radius:30px}.folder-testimonial .testimonial-image img{width:100%;height:auto}.folder-testimonial .testimonial-data{position:relative;margin-left:30px;font-size:16px;line-height:22px;padding:10px 10px 10px 40px;background:#f5f5f5;border-radius:4px}.testimonial-title{font-weight:700;font-size:18px;padding:0 0 5px}.testimonial-author{font-size:16px;font-style:italic;font-weight:500;padding:5px 0 0}.plan-price span{font-size:16px;color:#28375a}.price-table-middle{margin-top:21px}.agency-feature .price-table-middle{margin-top:0}.website-package .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.website-package .select2-container--default .select2-selection--single .select2-selection__rendered{color:#6156f6}.website-package .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.website-package .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #6156f6 transparent;border-width:0 4px 5px 4px}.folders-tabs{max-width:inherit}.basic-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #42b9fa;box-shadow:0 12px 44px rgba(66,182,250,.2)}.basic-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#42b9fa transparent transparent transparent}.plus-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #ef8c6a;box-shadow:0 12px 44px rgba(239,140,106,.2)}.plus-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#ef8c6a transparent transparent transparent}.agency-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.agency-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.basic-feature.price-table.is-fixed .price-table-bottom{border-color:#b9eafd}.plus-feature.price-table.is-fixed .price-table-bottom{border-color:#f9d9bd}.agency-feature.price-table.is-fixed .price-table-bottom{border-color:#cfd3fb}@media (max-width:1320px){.plan-price{font-size:50px;line-height:64px}}@media (max-width:1200px){.plan-price{font-size:40px;line-height:54px}}@media (max-width:1100px){.plan-name{font-size:24px;line-height:36px}}@media (max-width:1024px){.plan-price{font-size:30px;line-height:54px;top:15px}}@media (max-width:920px){.col-md-4{padding-left:5px;padding-right:5px}}@media (max-width:840px){.col-md-4{padding:0;width:auto;margin:0 auto 30px;float:none;padding-left:15px;padding-right:15px}.plan-price{font-size:50px;line-height:64px}.price-table.is-fixed{padding-bottom:15px;position:relative}.price-table.is-fixed .price-table-bottom{position:relative;left:0;width:100%;border-top:none;background:#fff;top:auto!important;left:auto!important;width:100%!important}}
1
+ @import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap);*,:after,:before{box-sizing:border-box}#wpwrap{background:#6572db;background:-moz-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-webkit-gradient(left top,right bottom,color-stop(0,#6572db),color-stop(67%,#ee86c6),color-stop(100%,#ee86c6));background:-webkit-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-o-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-ms-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:linear-gradient(135deg,#6572db 0,#ee86c6 67%,#ee86c6 100%)}.pricing-table{margin:0 0 45px;color:#28375a;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-title{font-weight:700;font-size:24px;line-height:30px;color:#28375a;text-align:center}.price-table{background:#fff;box-sizing:border-box;border-radius:10px;position:relative}.price-table-top{padding:20px;position:relative;border-radius:10px}.price-table.basic-feature{box-shadow:0 12px 44px rgba(108,203,255,.2);border:2px solid #b9eafd}.price-table.basic-feature .price-table-top{background:url(../images/basic-price-bg.png) no-repeat left top}.price-table.plus-feature{border:2px solid #f9d9bd;box-shadow:0 12px 44px rgba(239,140,106,.2)}.price-table.plus-feature .price-table-top{background:url(../images/plus-price.png) no-repeat left top}.price-table.agency-feature{border:2px solid #cfd3fb;box-shadow:0 12px 44px rgba(96,93,236,.2)}.price-table.agency-feature .price-table-top{background:url(../images/agency-price.png) no-repeat left top}.price-tables{margin:30px 0 50px}.plan-name{font-size:30px;line-height:36px;font-weight:700;color:#28375a}.plan-price{position:absolute;right:18px;top:8px;font-weight:700;font-size:60px;line-height:72px;color:#42b9fa}.price-table.plus-feature .plan-price{color:#ef8c6a}.price-table.agency-feature .plan-price{color:#605dec}.price-table.agency-feature .plan-name{color:#fff}.price-head{line-height:72px;padding:5px 0 25px 0}.price-offer,.price-websites{line-height:18px;font-size:15px}.cus-tooltip{cursor:pointer;display:inline-block;position:relative}.cus-tooltip .tooltip__content{background-color:#1849ab;border-radius:4px;bottom:150%;color:#fff;left:0;margin-left:15px;opacity:0;padding:5px 10px;position:absolute;transition:opacity .25s;visibility:hidden;width:auto;z-index:1;text-align:left;margin-right:15px;font-size:14px;line-height:20px}.cus-tooltip .tooltip__content::after{border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;content:"";left:25px;margin-left:-5px;position:absolute;top:100%}.cus-tooltip:hover .tooltip__content{opacity:1;visibility:visible}.price-table-middle ul{list-style:none;margin:0;padding:0}.price-table-middle ul li{display:block;width:100%;border-bottom:solid 1px #e9e9e9;padding:15px 0;margin:0}.price-table-middle ul li a{padding:0 15px;color:#28375a;font-size:16px;line-height:19px;display:block;text-decoration:none}span.has-tooltip{color:#605dec}.price-table-bottom{padding:15px}.price-table.is-fixed{padding-bottom:140px;position:relative}.price-table.is-fixed .price-table-bottom{position:fixed;left:0;width:100%;border-top:solid 2px #e9e9e9;background:#fff}.bottom-position{position:absolute;left:0;bottom:0;height:1px;width:1px}.custom-dd-btn{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px}.custom-dd{margin-bottom:15px}.price-table-bottom a{background:#fff;border:1px solid #42b9fa;color:#42b9fa;border-radius:20px;height:40px;line-height:38px;padding:0 15px;display:block;text-align:center;transition:all .25s linear}.price-table-bottom a:hover{color:#fff;background:#42b9fa}.price-table.plus-feature .price-table-bottom a{background:#ef8c6a;border:1px solid #ef8c6a;color:#fff}.price-table.plus-feature .price-table-bottom a:hover{background:#fff;color:#ef8c6a}.price-table.agency-feature .price-table-bottom a{background:#fff;border:1px solid #605dec;color:#605dec}.price-table.agency-feature .price-table-bottom a:hover{background:#605dec;color:#fff}.container{max-width:1180px;width:100%;padding:30px;background:#fff;border-radius:15px;margin:50px auto}.row{margin-right:-15px;margin-left:-15px}.col-md-4{padding-right:15px;padding-left:15px;width:33.33333333%;float:left}.select2-container--default .select2-selection--single{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px;outline:0}span.select2.select2-container{width:100%!important}.website-package{padding:0 15px;line-height:18px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.website-package .select2-container--default .select2-results>.select2-results__options{margin-top:5px}.custom-dd .select2-container--default .select2-selection--single .select2-selection__arrow{height:20px;top:10px;right:1px;width:20px}@media (min-width:768px){.col-sm-4{width:100%;float:none}}a,a:focus,a:hover{text-decoration:none}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:38px}.select2-results__option{user-select:none;-webkit-user-select:none;font-size:14px;padding:8px 25px;margin:0}.select2-dropdown{border:1px solid #e9e9e9}.price-after{padding:0;text-align:center;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-after p,.price-after span{font-size:16px;line-height:25px;margin:0;padding:0}.clearfix{clear:both}.price-after span{display:inline-block;vertical-align:text-top;font-size:20px;color:#42b9fa}.payments{padding:20px 0 10px}.folder-testimonial-list{width:100%;margin:30px auto 0;font-family:Lato,sans-serif}.folder-testimonial{position:relative}.folder-testimonial .testimonial-image{position:absolute;height:60px;width:60px;top:50%;margin-top:-30px;z-index:1;overflow:hidden;border-radius:30px}.folder-testimonial .testimonial-image img{width:100%;height:auto}.folder-testimonial .testimonial-data{position:relative;margin-left:30px;font-size:16px;line-height:22px;padding:10px 10px 10px 40px;background:#f5f5f5;border-radius:4px}.testimonial-title{font-weight:700;font-size:18px;padding:0 0 5px}.testimonial-author{font-size:16px;font-style:italic;font-weight:500;padding:5px 0 0}.plan-price span{font-size:16px;color:#28375a}.price-table-middle{margin-top:21px}.agency-feature .price-table-middle{margin-top:0}.website-package .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.website-package .select2-container--default .select2-selection--single .select2-selection__rendered{color:#6156f6}.website-package .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.website-package .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #6156f6 transparent;border-width:0 4px 5px 4px}.folders-tabs{max-width:inherit}.basic-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #42b9fa;box-shadow:0 12px 44px rgba(66,182,250,.2)}.basic-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#42b9fa transparent transparent transparent}.plus-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #ef8c6a;box-shadow:0 12px 44px rgba(239,140,106,.2)}.plus-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#ef8c6a transparent transparent transparent}.agency-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.agency-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.basic-feature.price-table.is-fixed .price-table-bottom{border-color:#b9eafd}.plus-feature.price-table.is-fixed .price-table-bottom{border-color:#f9d9bd}.agency-feature.price-table.is-fixed .price-table-bottom{border-color:#cfd3fb}.html-tooltip{position:relative;display:inline-block;margin:0;padding:0;line-height:1;width:auto;height:20px;vertical-align:middle}.html-tooltip .tooltip-text{visibility:hidden;width:300px;background-color:#1849ab;color:#fff;text-align:center;border-radius:6px;padding:10px;position:absolute;z-index:1201;bottom:125%;left:50%;margin-left:-150px;opacity:0;transition:opacity .3s;font-size:12px;line-height:18px;top:100%;height:354px}.html-tooltip.side .tooltip-text{bottom:125%;left:100%;margin-left:0;top:5px;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.html-tooltip.dynamic .tooltip-text{height:490px}.html-tooltip:hover .tooltip-text{visibility:visible;opacity:1}.html-tooltip .tooltip-text img{width:100%;height:auto;display:block;margin:10px 0 0 0}.html-tooltip.no-position .tooltip-text{height:auto}.html-tooltip .tooltip-text:after{content:"";position:absolute;top:-10px;left:50%;margin-left:-15px;border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.html-tooltip.top .tooltip-text{top:auto;bottom:100%;margin-bottom:5px}.html-tooltip.top .tooltip-text:after{top:100%;transform:rotate(0);-webkit-transform:rotate(0)}.html-tooltip.side .tooltip-text:after{display:none}.pricing-table-body{display:flex;align-items:center}.pricing-table-content{flex:1;text-align:center;background:#f8fafc;min-height:86px;line-height:20px;padding:10px 0;border-bottom:solid 2px #f8fafc;align-items:center;font-size:16px;cursor:pointer;position:relative;transition:all .25s linear}.pricing-table-content:before{left:auto;right:0}.pricing-table-header{width:720px;margin:40px auto 50px}.pricing-discount-col span{display:inline-block;padding:0 8px;background:#94a3b8;font-size:14px;line-height:20px;color:#fff;border-radius:20px;margin:4px 0 0;transition:all .2s linear}.pricing-table-content.active,.pricing-table-content:hover{border-bottom:2px solid #3c85f7;color:#3c85f7;background:#fff}.pricing-table-content.active{box-shadow:0 10px 15px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05)}.pricing-table-content.second{border-left:1px solid #cbd5e1;border-right:1px solid #cbd5e1}.pricing-table-content.second.active .pricing-discount-col span,.pricing-table-content.second:hover .pricing-discount-col span{color:#fff;background:#ef8c6a}.pricing-table-content.third.active .pricing-discount-col span,.pricing-table-content.third:hover .pricing-discount-col span{background:#605dec;color:#fff}.pricing-table-content.first{padding:23px 0 0}.year-col{font-weight:700}@media (max-width:1320px){.plan-price{font-size:50px;line-height:64px}}@media (max-width:1200px){.plan-price{font-size:40px;line-height:54px}}@media (max-width:1100px){.plan-name{font-size:24px;line-height:36px}}@media (max-width:1024px){.plan-price{font-size:30px;line-height:54px;top:15px}}@media (max-width:920px){.col-md-4{padding-left:5px;padding-right:5px}}@media (max-width:840px){.col-md-4{padding:0;width:auto;margin:0 auto 30px;float:none;padding-left:15px;padding-right:15px}.plan-price{font-size:50px;line-height:64px}.price-table.is-fixed{padding-bottom:15px;position:relative}.price-table.is-fixed .price-table-bottom{position:relative;left:0;width:100%;border-top:none;background:#fff;top:auto!important;left:auto!important;width:100%!important}}
js/iris-script.js CHANGED
@@ -1,81 +1,107 @@
1
- var priceOptions = {"50_websites":{"1_year":{"price":79,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=3"},"2_year":{"price":125,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=15"},"lifetime":{"price":199,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=9"}},"500_websites":{"1_year":{"price":139,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=16"},"2_year":{"price":225,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=17"},"lifetime":{"price":359,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=18"}},"1000_websites":{"1_year":{"price":199,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=19"},"2_year":{"price":315,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=20"},"lifetime":{"price":499,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=21"}}};
2
- jQuery(document).ready(function($){
3
- jQuery('.my-color-field').wpColorPicker();
4
- jQuery(document).on('click', '.sticky-header-upgrade-now', function(e){
5
- //e.preventDefault();
6
- //jQuery(".sticky-header-menu ul li a:last").trigger("click");
7
- });
8
-
9
- if(jQuery(".multiple-options").length) {
10
- jQuery(".multiple-options").select2({
11
- minimumResultsForSearch: -1
12
- });
13
  }
14
- if(jQuery(".multiple-web-options").length) {
15
- jQuery(".multiple-web-options").select2({
16
- minimumResultsForSearch: -1
17
- });
 
18
  }
19
- jQuery(document).on("change", ".multiple-options", function(){
20
- priceText = jQuery(this).find("option:selected").attr("data-header");
21
- thisValue = jQuery(this).val();
22
- thisPrice = jQuery(this).find("option:selected").attr("data-price");
23
- if(!jQuery(this).hasClass("has-multiple-websites")) {
24
- jQuery(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
25
- jQuery(this).closest(".price-table").find(".plan-price").text("$" + thisPrice);
26
- } else {
27
- var webOption = jQuery(".multiple-web-options").val();
28
- var priceSettings = priceOptions[webOption];
29
- var yearPlan = jQuery(".multiple-options.has-multiple-websites option:selected").attr("data-option");
30
- if(priceSettings[yearPlan] != undefined) {
31
- priceSettings = priceSettings[yearPlan];
32
- thisValue = priceSettings.link;
33
- thisPrice = priceSettings.price;
 
 
 
 
34
  }
 
 
 
 
 
 
35
  }
36
- thisOption = jQuery(this).find("option:selected").attr("data-option");
37
- if(thisOption == "1_year") {
38
- thisPrice = thisPrice+"<span>/year</span>";
39
- priceText = "Renewals for <b>25% off</b>";
40
- } else if(thisOption == "2_year") {
41
- thisPrice = thisPrice+"<span>/2 years</span>";
42
- priceText = "Renewals for <b>25% off</b>";
43
- } else {
44
- thisPrice = thisPrice+"<span>/lifetime</span>";
45
- priceText = "For lifetime";
46
  }
47
- jQuery(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
48
- jQuery(this).closest(".price-table").find(".plan-price").html("$" + thisPrice);
49
- jQuery(this).closest(".price-table").find(".price-offer").html(priceText);
50
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
- jQuery(document).on("change", ".multiple-web-options", function(){
53
- jQuery(".multiple-options.has-multiple-websites").trigger("change");
54
- });
55
 
56
- if(jQuery(".multiple-options.has-multiple-websites").length) {
57
- jQuery(".multiple-options.has-multiple-websites").trigger("change");
58
- }
59
- checkForPricingPos();
60
- jQuery(window).on("scroll", function(){
61
- checkForPricingPos();
62
- });
 
 
 
 
63
 
64
- jQuery(window).on("resize", function(){
65
- checkForPricingPos();
66
- });
67
- function checkForPricingPos() {
68
- jQuery(".bottom-position").each(function(){
69
- console.log(jQuery(this).offset().top - jQuery(window).scrollTop() - jQuery(window).height());
70
- if( jQuery(this).offset().top - jQuery(window).scrollTop() - jQuery(window).height() < -3) {
71
- jQuery(this).closest(".price-table").removeClass("is-fixed");
72
- jQuery(this).closest(".price-table").find(".price-table-bottom").prop("style", "");
73
- } else {
74
- jQuery(this).closest(".price-table").addClass("is-fixed");
75
- jQuery(this).closest(".price-table").find(".price-table-bottom").css("top", (jQuery(window).height() - 125 )+"px");
76
- jQuery(this).closest(".price-table").find(".price-table-bottom").css("left", jQuery(this).offset().left+"px");
77
- jQuery(this).closest(".price-table").find(".price-table-bottom").outerWidth(jQuery(this).closest(".price-table").width());
78
- }
79
- });
80
- }
81
- });
1
+ (function (factory) {
2
+ "use strict";
3
+ if (typeof define === 'function' && define.amd) {
4
+ define(['jquery'], factory);
 
 
 
 
 
 
 
 
5
  }
6
+ else if(typeof module !== 'undefined' && module.exports) {
7
+ module.exports = factory(require('jquery'));
8
+ }
9
+ else {
10
+ factory(jQuery);
11
  }
12
+ }(function ($, undefined) {
13
+ var priceOptions = {"50_websites":{"1_year":{"price":79,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=3"},"2_year":{"price":125,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=15"},"lifetime":{"price":199,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=9"}},"500_websites":{"1_year":{"price":139,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=16"},"2_year":{"price":225,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=17"},"lifetime":{"price":359,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=18"}},"1000_websites":{"1_year":{"price":199,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=19"},"2_year":{"price":315,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=20"},"lifetime":{"price":499,"link":"https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]=21"}}};
14
+ $(document).ready(function($){
15
+ $('.my-color-field').wpColorPicker();
16
+ $(document).on('click', '.sticky-header-upgrade-now', function(e){
17
+ //e.preventDefault();
18
+ //$(".sticky-header-menu ul li a:last").trigger("click");
19
+ });
20
+
21
+ $(document).on("click", ".pricing-table-content", function(){
22
+ if(!$(this).hasClass("active")) {
23
+ $(".pricing-table-content").removeClass("active");
24
+ $(this).addClass("active");
25
+ var datFor = $(this).data("option");
26
+ $(".multiple-options").each(function(){
27
+ $(this).find("option").prop("selected", false);
28
+ $(this).find("option[data-option='"+datFor+"']").prop("selected", true);
29
+ $(this).trigger("change");
30
+ })
31
  }
32
+ });
33
+
34
+ if($(".multiple-options").length) {
35
+ $(".multiple-options").select2({
36
+ minimumResultsForSearch: -1
37
+ });
38
  }
39
+ if($(".multiple-web-options").length) {
40
+ $(".multiple-web-options").select2({
41
+ minimumResultsForSearch: -1
42
+ });
 
 
 
 
 
 
43
  }
44
+ $(document).on("change", ".multiple-options", function(){
45
+ priceText = $(this).find("option:selected").attr("data-header");
46
+ thisValue = $(this).val();
47
+ thisPrice = $(this).find("option:selected").attr("data-price");
48
+ if(!$(this).hasClass("has-multiple-websites")) {
49
+ $(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
50
+ $(this).closest(".price-table").find(".plan-price").text("$" + thisPrice);
51
+ } else {
52
+ var webOption = $(".multiple-web-options").val();
53
+ var priceSettings = priceOptions[webOption];
54
+ var yearPlan = $(".multiple-options.has-multiple-websites option:selected").attr("data-option");
55
+ if(priceSettings[yearPlan] != undefined) {
56
+ priceSettings = priceSettings[yearPlan];
57
+ thisValue = priceSettings.link;
58
+ thisPrice = priceSettings.price;
59
+ }
60
+ }
61
+ thisOption = $(this).find("option:selected").attr("data-option");
62
+ if(thisOption == "1_year") {
63
+ thisPrice = thisPrice+"<span>/year</span>";
64
+ priceText = "Renewals for <b>25% off</b>";
65
+ } else if(thisOption == "2_year") {
66
+ thisPrice = thisPrice+"<span>/2 years</span>";
67
+ priceText = "Renewals for <b>25% off</b>";
68
+ } else {
69
+ thisPrice = thisPrice+"<span>/lifetime</span>";
70
+ priceText = "For lifetime";
71
+ }
72
+ $(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
73
+ $(this).closest(".price-table").find(".plan-price").html("$" + thisPrice);
74
+ $(this).closest(".price-table").find(".price-offer").html(priceText);
75
+ });
76
 
77
+ $(document).on("change", ".multiple-web-options", function(){
78
+ $(".multiple-options.has-multiple-websites").trigger("change");
79
+ });
80
 
81
+ if($(".multiple-options.has-multiple-websites").length) {
82
+ $(".multiple-options.has-multiple-websites").trigger("change");
83
+ }
84
+ checkForPricingPos();
85
+ $(window).on("scroll", function(){
86
+ checkForPricingPos();
87
+ });
88
+
89
+ $(window).on("resize", function(){
90
+ checkForPricingPos();
91
+ });
92
 
93
+ function checkForPricingPos() {
94
+ $(".bottom-position").each(function(){
95
+ if( $(this).offset().top - $(window).scrollTop() - $(window).height() < -3) {
96
+ $(this).closest(".price-table").removeClass("is-fixed");
97
+ $(this).closest(".price-table").find(".price-table-bottom").prop("style", "");
98
+ } else {
99
+ $(this).closest(".price-table").addClass("is-fixed");
100
+ $(this).closest(".price-table").find(".price-table-bottom").css("top", ($(window).height() - 125 )+"px");
101
+ $(this).closest(".price-table").find(".price-table-bottom").css("left", $(this).offset().left+"px");
102
+ $(this).closest(".price-table").find(".price-table-bottom").outerWidth($(this).closest(".price-table").width());
103
+ }
104
+ });
105
+ }
106
+ });
107
+ }));
 
 
 
mystickymenu.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: myStickymenu
4
  Plugin URI: https://premio.io/
5
  Description: Simple sticky (fixed on top) menu implementation for navigation menu and Welcome bar for announcements and promotion. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
- Version: 2.5.2
7
  Author: Premio
8
  Author URI: https://premio.io/downloads/mystickymenu/
9
  Text Domain: mystickymenu
@@ -12,7 +12,7 @@ License: GPLv2 or later
12
  */
13
 
14
  defined('ABSPATH') or die("Cannot access pages directly.");
15
- define( 'MYSTICKY_VERSION', '2.5.2' );
16
  define('MYSTICKYMENU_URL', plugins_url('/', __FILE__)); // Define Plugin URL
17
  define('MYSTICKYMENU_PATH', plugin_dir_path(__FILE__)); // Define Plugin Directory Path
18
 
@@ -1034,49 +1034,63 @@ class MyStickyMenuBackend
1034
  }
1035
  $domain = site_url();
1036
  $user_name = $current_user->first_name . " " . $current_user->last_name;
1037
- $subject = "My Sticky Menu was removed from {$domain}";
1038
- $headers = "MIME-Version: 1.0\r\n";
1039
- $headers .= "Content-Type: text/html; charset=UTF-8\r\n";
1040
- $headers .= 'From: ' . $user_name . ' <' . $email . '>' . PHP_EOL;
1041
- $headers .= 'Reply-To: ' . $user_name . ' <' . $email . '>' . PHP_EOL;
1042
- $headers .= 'X-Mailer: PHP/' . phpversion();
1043
- ob_start();
1044
- ?>
1045
- <table border="0" cellspacing="0" cellpadding="5">
1046
- <tr>
1047
- <th>Plugin</th>
1048
- <td>My Sticky Menu</td>
1049
- </tr>
1050
- <tr>
1051
- <th>Plugin Version</th>
1052
- <td><?php echo $plugin_info['Version']; ?></td>
1053
- </tr>
1054
- <tr>
1055
- <th>Domain</th>
1056
- <td><?php echo $domain ?></td>
1057
- </tr>
1058
- <tr>
1059
- <th>Email</th>
1060
- <td><?php echo $email ?></td>
1061
- </tr>
1062
- <tr>
1063
- <th>Reason</th>
1064
- <td><?php echo nl2br($postData['reason']) ?></td>
1065
- </tr>
1066
- <tr>
1067
- <th>WordPress Version</th>
1068
- <td><?php echo get_bloginfo('version') ?></td>
1069
- </tr>
1070
- <tr>
1071
- <th>PHP Version</th>
1072
- <td><?php echo PHP_VERSION ?></td>
1073
- </tr>
1074
- </table>
1075
- <?php
1076
- $content = ob_get_clean();
1077
- $to = "gal@premio.io,karina@premio.io";
1078
- wp_mail($to, $subject, $content, $headers);
1079
  $response['status'] = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1080
  }
1081
  echo json_encode($response);
1082
  wp_die();
3
  Plugin Name: myStickymenu
4
  Plugin URI: https://premio.io/
5
  Description: Simple sticky (fixed on top) menu implementation for navigation menu and Welcome bar for announcements and promotion. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
+ Version: 2.5.3
7
  Author: Premio
8
  Author URI: https://premio.io/downloads/mystickymenu/
9
  Text Domain: mystickymenu
12
  */
13
 
14
  defined('ABSPATH') or die("Cannot access pages directly.");
15
+ define( 'MYSTICKY_VERSION', '2.5.3' );
16
  define('MYSTICKYMENU_URL', plugins_url('/', __FILE__)); // Define Plugin URL
17
  define('MYSTICKYMENU_PATH', plugin_dir_path(__FILE__)); // Define Plugin Directory Path
18
 
1034
  }
1035
  $domain = site_url();
1036
  $user_name = $current_user->first_name . " " . $current_user->last_name;
1037
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1038
  $response['status'] = 1;
1039
+
1040
+ /* sending message to Crisp */
1041
+ $post_message = array();
1042
+
1043
+ $message_data = array();
1044
+ $message_data['key'] = "Plugin";
1045
+ $message_data['value'] = "My Sticky Menu";
1046
+ $post_message[] = $message_data;
1047
+
1048
+ $message_data = array();
1049
+ $message_data['key'] = "Plugin Version";
1050
+ $message_data['value'] = $plugin_info['Version'];
1051
+ $post_message[] = $message_data;
1052
+
1053
+ $message_data = array();
1054
+ $message_data['key'] = "Domain";
1055
+ $message_data['value'] = $domain;
1056
+ $post_message[] = $message_data;
1057
+
1058
+ $message_data = array();
1059
+ $message_data['key'] = "Email";
1060
+ $message_data['value'] = $email;
1061
+ $post_message[] = $message_data;
1062
+
1063
+ $message_data = array();
1064
+ $message_data['key'] = "WordPress Version";
1065
+ $message_data['value'] = esc_attr(get_bloginfo('version'));
1066
+ $post_message[] = $message_data;
1067
+
1068
+ $message_data = array();
1069
+ $message_data['key'] = "PHP Version";
1070
+ $message_data['value'] = PHP_VERSION;
1071
+ $post_message[] = $message_data;
1072
+
1073
+ $message_data = array();
1074
+ $message_data['key'] = "Message";
1075
+ $message_data['value'] = $postData['reason'];
1076
+ $post_message[] = $message_data;
1077
+
1078
+ $api_params = array(
1079
+ 'domain' => $domain,
1080
+ 'email' => $email,
1081
+ 'url' => site_url(),
1082
+ 'name' => $user_name,
1083
+ 'message' => $post_message,
1084
+ 'plugin' => "My Sticky Menu",
1085
+ 'type' => "Uninstall",
1086
+ );
1087
+
1088
+ /* Sending message to Crisp API */
1089
+ $crisp_response = wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => true));
1090
+
1091
+ if (is_wp_error($crisp_response)) {
1092
+ wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => false));
1093
+ }
1094
  }
1095
  echo json_encode($response);
1096
  wp_die();
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: tomeraharon, galdub, premio
3
  Tags:floating bar, notification bar, menu, header, sticky menu, sticky header, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu, welcome bar, hello bar, top bar, sticky bar
4
  Requires at least: 3.5.1
5
- Tested up to: 5.7
6
- Stable tag: 2.5.2
7
  License: GPLv2 or later
8
 
9
  Create a beautiful welcome notification bar. This sticky menu plugin will also make your menu or header stick to the top of page, when scrolled down and up.
@@ -267,6 +267,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
267
 
268
 
269
  == Changelog ==
 
 
270
  = 2.5.2 =
271
  Bugs fixed
272
  = 2.5.1 =
2
  Contributors: tomeraharon, galdub, premio
3
  Tags:floating bar, notification bar, menu, header, sticky menu, sticky header, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu, welcome bar, hello bar, top bar, sticky bar
4
  Requires at least: 3.5.1
5
+ Tested up to: 5.8
6
+ Stable tag: 2.5.3
7
  License: GPLv2 or later
8
 
9
  Create a beautiful welcome notification bar. This sticky menu plugin will also make your menu or header stick to the top of page, when scrolled down and up.
267
 
268
 
269
  == Changelog ==
270
+ = 2.5.3 =
271
+ Support route changed
272
  = 2.5.2 =
273
  Bugs fixed
274
  = 2.5.1 =
upgrade-to-pro.php CHANGED
@@ -7,6 +7,25 @@ $pro_url = "https://go.premio.io/checkount/?edd_action=add_to_cart&download_id=2
7
  <div class="container">
8
  <div class="pricing-table">
9
  <div class="price-title">Unlock All Features</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  <div class="price-tables">
11
  <div class="row">
12
  <div class="col-md-4 col-sm-12">
7
  <div class="container">
8
  <div class="pricing-table">
9
  <div class="price-title">Unlock All Features</div>
10
+ <div class="pricing-table-header">
11
+ <div class="pricing-table-body">
12
+ <div class="pricing-table-content first active" data-option="1_year">
13
+ <div class="year-col">1 Year</div>
14
+ <div class="update-col">Updates &amp; Support</div>
15
+ <div class="pricing-discount-col"></div>
16
+ </div>
17
+ <div class="pricing-table-content second" data-option="2_year">
18
+ <div class="year-col">2 Years</div>
19
+ <div class="update-col">Updates &amp; Support</div>
20
+ <div class="pricing-discount-col"><span>32% off &#128526;</span></div>
21
+ </div>
22
+ <div class="pricing-table-content third" data-option="lifetime">
23
+ <div class="year-col">Lifetime</div>
24
+ <div class="update-col">Updates &amp; Support</div>
25
+ <div class="pricing-discount-col"><span>63% off &#129395;</span></div>
26
+ </div>
27
+ </div>
28
+ </div>
29
  <div class="price-tables">
30
  <div class="row">
31
  <div class="col-md-4 col-sm-12">