Version Description
- Slider layout: bug and style fixes
Download this release
Release Info
Developer | richplugins |
Plugin | Google Reviews Widget |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.0.7
- assets/css/public-main.css +1 -1
- assets/js/public-main.js +23 -22
- assets/src/css/public-main.css +9 -6
- assets/src/js/public-main.js +85 -70
- grw.php +2 -2
- includes/class-view.php +3 -1
- readme.txt +4 -1
assets/css/public-main.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wpac,.wpac h1,.wpac h2,.wpac h3,.wpac h4,.wpac h5,.wpac h6,.wpac p,.wpac td,.wpac dl,.wpac tr,.wpac dt,.wpac ol,.wpac form,.wpac select,.wpac option,.wpac pre,.wpac div,.wpac table,.wpac th,.wpac tbody,.wpac tfoot,.wpac caption,.wpac thead,.wpac ul,.wpac li,.wpac address,.wpac blockquote,.wpac dd,.wpac fieldset,.wpac li,.wpac strong,.wpac legend,.wpac em,.wpac s,.wpac cite,.wpac span,.wpac input,.wpac sup,.wpac label,.wpac dfn,.wpac object,.wpac big,.wpac q,.wpac font,.wpac samp,.wpac acronym,.wpac small,.wpac img,.wpac strike,.wpac code,.wpac sub,.wpac ins,.wpac textarea,.wpac var,.wpac a,.wpac abbr,.wpac applet,.wpac del,.wpac kbd,.wpac tt,.wpac b,.wpac i,.wpac hr{background-attachment:scroll!important;background-color:transparent!important;background-image:none!important;background-position:0 0!important;background-repeat:repeat!important;border-color:black!important;border-color:currentColor!important;border-radius:0!important;border-style:none!important;border-width:medium!important;bottom:auto!important;clear:none!important;clip:auto!important;color:inherit!important;counter-increment:none!important;counter-reset:none!important;cursor:auto!important;direction:inherit!important;display:inline;float:none!important;font-family:inherit!important;font-size:inherit!important;font-style:inherit!important;font-variant:normal!important;font-weight:inherit!important;height:auto;left:auto!important;letter-spacing:normal!important;line-height:inherit!important;list-style-type:inherit!important;list-style-position:outside!important;list-style-image:none!important;margin:0!important;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:1;outline:invert none medium!important;overflow:visible!important;padding:0!important;position:static!important;quotes:"" ""!important;right:auto!important;table-layout:auto!important;text-align:inherit!important;text-decoration:inherit!important;text-indent:0!important;text-transform:none!important;top:auto!important;unicode-bidi:normal!important;vertical-align:baseline!important;visibility:inherit!important;white-space:normal!important;width:auto!important;word-spacing:normal!important;z-index:auto!important;-moz-border-radius:0!important;-webkit-border-radius:0!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;text-shadow:none!important;-webkit-transition:none!important;transition:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.wpac,.wpac h3,.wpac h5,.wpac p,.wpac h1,.wpac dl,.wpac dt,.wpac h6,.wpac ol,.wpac form,.wpac select,.wpac option,.wpac pre,.wpac div,.wpac h2,.wpac caption,.wpac h4,.wpac ul,.wpac address,.wpac blockquote,.wpac dd,.wpac fieldset,.wpac textarea,.wpac hr{display:block}.wpac table{display:table}.wpac tbody{display:table-row-group}.wpac tr{display:table-row}.wpac td{display:table-cell}.wpac ul{list-style-type:none!important}.wpac li{display:list-item;min-height:auto!important;min-width:auto!important}.wpac a,.wpac a *,.wpac input[type=submit],.wpac input[type=radio],.wpac input[type=checkbox],.wpac select{cursor:pointer!important}.wpac a:hover{text-decoration:none!important}.wpac button,.wpac input[type=submit]{height:auto!important;text-align:center!important}.wpac input[type=hidden]{display:none}.wpac select{-webkit-appearance:menulist!important;-moz-appearance:menulist!important;appearance:menulist!important}.wpac input[type=checkbox]{-webkit-appearance:checkbox!important;-moz-appearance:checkbox!important;appearance:checkbox!important}.wpac input[type="checkbox"]:before,.wpac input[type="checkbox"]:after{content:none!important;border:0!important}.wpac input[type=radio]{-webkit-appearance:radio!important;-moz-appearance:radio!important;appearance:radio!important}.wpac input[type="radio"]:before,.wpac input[type="radio"]:after{content:none!important;border:0!important}.wpac li:before,.wpac li:after{content:""!important}.wpac input,.wpac select{vertical-align:middle!important}.wpac select,.wpac textarea,.wpac input{border:1px solid #ccc!important}.wpac table{border-collapse:collapse!important;border-spacing:0!important}.wpac *[dir=rtl]{direction:rtl!important}.wpac img{border:0!important}.wpac svg{vertical-align:middle!important;-moz-box-sizing:content-box!important;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.wpac{font-size:14px!important;line-height:20px!important;direction:inherit!important;text-align:inherit!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;color:#333!important;font-style:normal!important;font-weight:normal!important;text-decoration:none!important;list-style-type:disc!important}.wp-gr .wp-google-badge{display:inline-block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important;box-shadow:0 2px 5px 0 rgba(0,0,0,.26)!important}.wp-gr .wp-google-badge-fixed{position:fixed!important;right:30px!important;bottom:30px!important;max-width:none!important;z-index:2147482999!important;box-shadow:0 2px 5px 0 rgba(0,0,0,.26)!important}.wp-gr .wp-google-badge_left-fixed{position:fixed!important;left:30px!important;bottom:30px!important;max-width:none!important;z-index:2147482999!important}.wp-gr .wp-google-badge *{cursor:pointer!important}.wp-gr .wp-google-border{width:100%!important;height:6px!important;background:#4fce6a!important;border-radius:2px 2px 0 0!important}.wp-gr .wp-google-badge-btn{position:relative!important;padding:10px!important;background:#fff!important;transition:all .2s ease-in-out!important;border-radius:2px!important}.wp-gr .wp-google-badge-btn:hover{background:#f3f3f5!important}.wp-gr .wp-google-badge-score{display:inline-block;margin:0 0 0 4px!important;vertical-align:middle!important}.wp-gr .wp-google-rating{color:#e7711b!important;font-size:20px!important;margin:0 6px 0 0!important;vertical-align:middle!important}.wp-gr .wp-google-stars .wp-star{padding:0 4px 0 0!important;line-height:22px!important}.wp-gr .wp-google-powered{color:#777!important;margin:6px 0 0!important}.wp-gr .wp-google-powered img{max-width:144px!important}.wp-gr .wp-google-form .wp-google-reviews{padding:16px 16px 0!important}.wp-gr .wp-google-review{margin-top:15px!important}.wp-gr .wp-google-left{display:table-cell!important;vertical-align:top!important}[dir="ltr"] .wp-google-left{padding-right:10px!important}[dir="rtl"] .wp-google-left{padding-left:10px!important}.wp-gr .wp-google-left img{border:none!important;float:left!important;height:50px!important;width:50px!important;margin-right:5px!important;border-radius:50%!important;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24)!important}.wp-gr .wp-google-reviews img{border-radius:50%!important}.wp-gr .wp-google-right{display:table-cell!important;vertical-align:top!important;width:10000px!important}.wp-gr .wp-google-place .wp-star svg{width:18px!important;height:18px!important;vertical-align:middle!important}.wp-gr .wp-star svg{display:inline-block!important}.wp-gr .wp-google-review .wp-star svg{width:16px!important;height:16px!important;vertical-align:middle!important}.wp-gr .wp-google-name{color:black!important;font-size:100%!important;font-weight:bold!important;margin:0 0 2px!important;padding-right:6px!important;text-decoration:none!important}.wp-gr a.wp-google-name{color:#427fed!important;text-decoration:none!important}.wp-gr .wp-google-time{color:#999!important;font-size:13px!important}.wp-gr .wp-google-text{color:#222!important;font-size:13px!important;line-height:18px!important;max-width:100%!important;overflow:hidden!important;white-space:pre-wrap!important;word-break:break-word!important}.wp-gr .wp-google-text .wp-google-stars{padding-right:7px!important}.wp-gr .wp-more{display:none}.wp-gr .wp-more-toggle{color:#136aaf!important;cursor:pointer!important;text-decoration:none!important}.wp-gr .wp-google-url{display:block;margin:10px 0!important;color:#2c7cff!important;text-align:center!important}.wp-gr .wp-google-form{position:fixed!important;bottom:0!important;right:0!important;height:100%!important;width:368px!important;z-index:2147483000!important}.wp-gr .wp-google-form.wp-google-form-left{left:0!important}@media(max-width:460px){.wp-gr .wp-google-form{width:100%!important}}.wp-gr .wp-google-head{position:absolute!important;top:0!important;right:0!important;width:100%!important;height:80px!important;background:#fff!important;padding:10px 16px!important;overflow:hidden!important;box-shadow:0 1px 2px 0 rgba(0,0,0,.12)!important;z-index:2147483002!important}.wp-gr .wp-google-head-inner{z-index:2147483000!important;position:absolute!important;left:20px!important;top:20px!important;width:100%!important;height:100%!important;pointer-events:none!important}.wp-gr .wp-google-close{padding:0!important;cursor:pointer!important;outline:0!important;border:0!important;background:0 0!important;min-height:0!important;width:auto!important;float:right!important;font-size:32px!important;font-weight:500!important;line-height:.6!important;color:#999!important;-webkit-appearance:none!important}.wp-gr .wp-google-close:hover{color:#555!important}.wp-gr .wp-google-body{position:absolute!important;top:0!important;right:0!important;bottom:0!important;width:100%!important;background:rgba(250,250,251,.98)!important;border-left:1px solid #dadee2!important;box-shadow:0 0 4px 1px rgba(0,0,0,.08)!important;z-index:2147483000!important}.wp-gr .wp-google-content{position:absolute!important;top:0!important;right:0!important;bottom:0!important;width:100%!important;overflow-y:auto!important;z-index:2147483001!important;-webkit-transform:translateZ(0)!important}.wp-gr .wp-google-content{top:80px!important;bottom:48px!important}.wp-gr .wp-google-content-inner{position:relative!important;min-height:100%!important;margin:0 auto!important}.wp-gr .wp-google-footer{position:absolute!important;bottom:0!important;right:0!important;width:100%!important;height:48px!important;text-align:center!important;z-index:2147483002!important;background:#fff!important;box-shadow:0 -1px 2px 0 rgba(0,0,0,.06)!important;-moz-text-align-last:center!important;text-align-last:center!important}.wp-gr .wp-google-footer img{float:right!important;padding:16px!important}.wp-gr .wp-dark .wp-google-name{color:#eee!important}.wp-gr .wp-dark .wp-google-time{color:#bbb!important}.wp-gr .wp-dark .wp-google-text{color:#ececec!important}.wp-gr.wpac .wp-google-name{font-size:100%!important}.wp-gr.wpac .wp-google-hide{display:none}.wp-gr.wpac .wp-google-name a{color:#333!important;font-size:100%!important;text-decoration:none!important}.wp-gr.wpac .wp-google-left img{width:50px!important;height:50px!important;border-radius:50%!important}.wp-gr.wpac a.wp-google-name{color:#427fed!important;text-decoration:none!important}.wp-gr.wpac .wp-google-place .wp-star svg{width:18px;height:18px}.wp-gr.wpac .wp-google-review .wp-google-stars{display:inline-block;margin-right:4px!important}.wp-gr.wpac .wp-google-review .wp-star svg{width:16px;height:16px}.wp-gr.wpac .wp-dark .wp-google-name a{color:#eee!important}@media(max-width:480px){.wp-google-badge.wp-google-badge-fixed.wp-google-badge-hide{display:none!important}}@media(max-width:480px){.wp-google-badge.wp-google-badge_left-fixed.wp-google-badge-hide{display:none!important}}.wp-gr .grw-slider{display:block!important;overflow:hidden!important;width:100%!important;padding-bottom:20px!important;text-align:left!important;direction:ltr!important;box-sizing:border-box!important}.wp-gr .grw-slider .grw-row{display:-ms-flexbox!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;-ms-flex-wrap:nowrap!important;-ms-flex-align:center!important}.wp-gr .grw-slider .grw-row-xs{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.wp-gr .grw-row-xs .grw-slider-header,.wp-gr .grw-row-xs .grw-slider-content,.wp-gr .grw-row-xs .grw-slider-review{-ms-flex:0 0 100%!important;flex:0 0 100%!important;max-width:100%!important}.wp-gr .grw-row-x .grw-slider-header,.wp-gr .grw-row-x .grw-slider-header+.grw-slider-content{-ms-flex:0 0 50%!important;flex:0 0 50%!important;max-width:50%!important}.wp-gr .grw-row-x .grw-slider-review{-ms-flex:0 0 100%!important;flex:0 0 100%!important;max-width:100%!important}.wp-gr .grw-row-s .grw-slider-header{-ms-flex:0 0 33.333333%!important;flex:0 0 33.333333%!important;max-width:33.333333%!important}.wp-gr .grw-row-s .grw-slider-header+.grw-slider-content{-ms-flex:0 0 66.666666%!important;flex:0 0 66.666666%!important;max-width:66.666666%!important}.wp-gr .grw-row-s .grw-slider-review{-ms-flex:0 0 50%!important;flex:0 0 50%!important;max-width:50%!important}.wp-gr .grw-row-m .grw-slider-header{-ms-flex:0 0 25%!important;flex:0 0 25%!important;max-width:25%!important}.wp-gr .grw-row-m .grw-slider-header+.grw-slider-content{-ms-flex:0 0 75%!important;flex:0 0 75%!important;max-width:75%!important}.wp-gr .grw-row-m .grw-slider-review{-ms-flex:0 0 33.333333%!important;flex:0 0 33.333333%!important;max-width:33.333333%!important}.wp-gr .grw-row-l .grw-slider-header{-ms-flex:0 0 20%!important;flex:0 0 20%!important;max-width:20%!important}.wp-gr .grw-row-l .grw-slider-header+.grw-slider-content{-ms-flex:0 0 80%!important;flex:0 0 80%!important;max-width:80%!important}.wp-gr .grw-row-l .grw-slider-review{-ms-flex:0 0 25%!important;flex:0 0 25%!important;max-width:25%!important}.wp-gr .grw-row-xl .grw-slider-header{-ms-flex:0 0 16.666666%!important;flex:0 0 16.666666%!important;max-width:16.666666%!important}.wp-gr .grw-row-xl .grw-slider-header+.grw-slider-content{-ms-flex:0 0 83.333333%!important;flex:0 0 83.333333%!important;max-width:83.333333%!important}.wp-gr .grw-row-xl .grw-slider-review{-ms-flex:0 0 20%!important;flex:0 0 20%!important;max-width:20%!important}.wp-gr .grw-slider .grw-slider-content{position:relative!important}.wp-gr .grw-slider .grw-slider-content-inner{position:relative!important}.wp-gr .grw-slider .grw-slider-header-inner,.wp-gr .grw-slider .grw-slider-review-inner{position:relative!important;margin:0 10px!important;padding:15px!important}.wp-gr .grw-slider:not(.wp-dark) .grw-slider-review-inner.grw-slider-review-border{background:#fafafa!important;border-radius:4px!important;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24)!important}.wp-gr .grw-slider .grw-slider-review-inner>svg{position:absolute!important;top:10px!important;right:10px!important}.wp-gr .grw-slider .grw-slider-reviews{display:flex!important;display:-ms-flexbox!important;overflow:hidden!important;margin:0 20px!important;padding:10px 0!important;flex-wrap:nowrap!important;-ms-flex-wrap:nowrap!important;scroll-snap-type:x mandatory!important;scroll-behavior:smooth!important;-webkit-overflow-scrolling:touch!important}.wp-gr .grw-slider .grw-slider-review{display:flex!important;position:relative!important;justify-content:center!important;align-items:center!important;scroll-snap-type:x mandatory!important;scroll-snap-align:start!important;flex-shrink:0!important;transform-origin:center center!important;transform:scale(1)!important;transition:transform .5s!important}.wp-gr .grw-slider .grw-slider-controls{position:absolute!important;top:50%!important;width:100%!important}.wp-gr .grw-slider .grw-slider-btns{position:absolute!important;color:#ccc!important;font-size:36px!important;line-height:22px!important;text-align:center!important;cursor:pointer!important;border-radius:50%!important;user-select:none!important;transition:all .2s ease-in-out!important}.wp-gr .grw-slider .grw-slider-btns:hover{color:#999!important}.wp-gr .grw-slider .grw-slider-btns.grw-slider-prev{left:0!important;margin-left:3px!important}.wp-gr .grw-slider .grw-slider-btns.grw-slider-next{right:0!important;margin-right:3px!important}.wp-gr .grw-slider .grw-slider-dots{position:absolute!important;bottom:-28px!important;left:50%!important;transform:translate(-50%,0)!important}.wp-gr .grw-slider .grw-slider-dot.active,.wp-gr .grw-slider .grw-slider-dot:hover{opacity:1!important}.wp-gr .grw-slider .grw-slider-dot{display:inline-block!important;width:10px!important;height:10px!important;margin:3px!important;background:#ccc!important;border-radius:20px!important;cursor:pointer!important;opacity:.4!important;transition:all .2s ease-in-out!important}.wp-gr .grw-slider-review .wp-google-left{display:block!important;overflow:hidden!important}.wp-gr .grw-slider .wp-google-review{margin:0!important}.wp-gr .grw-slider .wp-google-stars{margin:15px 0 5px!important}.wp-gr .grw-slider .wp-google-feedback{height:80px!important;overflow-y:auto!important;padding-right:10px!important}.wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar{width:4px!important}.wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3)!important;-webkit-border-radius:4px!important;border-radius:4px!important}.wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-thumb{-webkit-border-radius:10px!important;border-radius:10px!important;background:#ccc!important;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.5)!important}.wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-thumb:window-inactive{background:#ccc!important}.wp-gr .wp-google-wr{margin:15px auto 0!important;text-align:center!important}.wp-gr .wp-google-wr a{color:#fff!important;padding:8px 20px!important;border-radius:27px!important;background:#427fed!important;white-space:nowrap!important;text-shadow:1px 1px 0 #888!important;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24)!important;user-select:none!important;transition:all .2s ease-in-out!important}.wp-gr .wp-google-wr a:hover{background:#1f67e7!important}
|
1 |
+
.wpac,.wpac h1,.wpac h2,.wpac h3,.wpac h4,.wpac h5,.wpac h6,.wpac p,.wpac td,.wpac dl,.wpac tr,.wpac dt,.wpac ol,.wpac form,.wpac select,.wpac option,.wpac pre,.wpac div,.wpac table,.wpac th,.wpac tbody,.wpac tfoot,.wpac caption,.wpac thead,.wpac ul,.wpac li,.wpac address,.wpac blockquote,.wpac dd,.wpac fieldset,.wpac li,.wpac strong,.wpac legend,.wpac em,.wpac s,.wpac cite,.wpac span,.wpac input,.wpac sup,.wpac label,.wpac dfn,.wpac object,.wpac big,.wpac q,.wpac font,.wpac samp,.wpac acronym,.wpac small,.wpac img,.wpac strike,.wpac code,.wpac sub,.wpac ins,.wpac textarea,.wpac var,.wpac a,.wpac abbr,.wpac applet,.wpac del,.wpac kbd,.wpac tt,.wpac b,.wpac i,.wpac hr{background-attachment:scroll!important;background-color:transparent!important;background-image:none!important;background-position:0 0!important;background-repeat:repeat!important;border-color:black!important;border-color:currentColor!important;border-radius:0!important;border-style:none!important;border-width:medium!important;bottom:auto!important;clear:none!important;clip:auto!important;color:inherit!important;counter-increment:none!important;counter-reset:none!important;cursor:auto!important;direction:inherit!important;display:inline;float:none!important;font-family:inherit!important;font-size:inherit!important;font-style:inherit!important;font-variant:normal!important;font-weight:inherit!important;height:auto;left:auto!important;letter-spacing:normal!important;line-height:inherit!important;list-style-type:inherit!important;list-style-position:outside!important;list-style-image:none!important;margin:0!important;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:1;outline:invert none medium!important;overflow:visible!important;padding:0!important;position:static!important;quotes:"" ""!important;right:auto!important;table-layout:auto!important;text-align:inherit!important;text-decoration:inherit!important;text-indent:0!important;text-transform:none!important;top:auto!important;unicode-bidi:normal!important;vertical-align:baseline!important;visibility:inherit!important;white-space:normal!important;width:auto!important;word-spacing:normal!important;z-index:auto!important;-moz-border-radius:0!important;-webkit-border-radius:0!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;text-shadow:none!important;-webkit-transition:none!important;transition:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.wpac,.wpac h3,.wpac h5,.wpac p,.wpac h1,.wpac dl,.wpac dt,.wpac h6,.wpac ol,.wpac form,.wpac select,.wpac option,.wpac pre,.wpac div,.wpac h2,.wpac caption,.wpac h4,.wpac ul,.wpac address,.wpac blockquote,.wpac dd,.wpac fieldset,.wpac textarea,.wpac hr{display:block}.wpac table{display:table}.wpac tbody{display:table-row-group}.wpac tr{display:table-row}.wpac td{display:table-cell}.wpac ul{list-style-type:none!important}.wpac li{display:list-item;min-height:auto!important;min-width:auto!important}.wpac a,.wpac a *,.wpac input[type=submit],.wpac input[type=radio],.wpac input[type=checkbox],.wpac select{cursor:pointer!important}.wpac a:hover{text-decoration:none!important}.wpac button,.wpac input[type=submit]{height:auto!important;text-align:center!important}.wpac input[type=hidden]{display:none}.wpac select{-webkit-appearance:menulist!important;-moz-appearance:menulist!important;appearance:menulist!important}.wpac input[type=checkbox]{-webkit-appearance:checkbox!important;-moz-appearance:checkbox!important;appearance:checkbox!important}.wpac input[type="checkbox"]:before,.wpac input[type="checkbox"]:after{content:none!important;border:0!important}.wpac input[type=radio]{-webkit-appearance:radio!important;-moz-appearance:radio!important;appearance:radio!important}.wpac input[type="radio"]:before,.wpac input[type="radio"]:after{content:none!important;border:0!important}.wpac li:before,.wpac li:after{content:""!important}.wpac input,.wpac select{vertical-align:middle!important}.wpac select,.wpac textarea,.wpac input{border:1px solid #ccc!important}.wpac table{border-collapse:collapse!important;border-spacing:0!important}.wpac *[dir=rtl]{direction:rtl!important}.wpac img{border:0!important}.wpac svg{vertical-align:middle!important;-moz-box-sizing:content-box!important;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.wpac{font-size:14px!important;line-height:20px!important;direction:inherit!important;text-align:inherit!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;color:#333!important;font-style:normal!important;font-weight:normal!important;text-decoration:none!important;list-style-type:disc!important}.wp-gr .wp-google-badge{display:inline-block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important;box-shadow:0 2px 5px 0 rgba(0,0,0,.26)!important}.wp-gr .wp-google-badge-fixed{position:fixed!important;right:30px!important;bottom:30px!important;max-width:none!important;z-index:2147482999!important;box-shadow:0 2px 5px 0 rgba(0,0,0,.26)!important}.wp-gr .wp-google-badge_left-fixed{position:fixed!important;left:30px!important;bottom:30px!important;max-width:none!important;z-index:2147482999!important}.wp-gr .wp-google-badge *{cursor:pointer!important}.wp-gr .wp-google-border{width:100%!important;height:6px!important;background:#4fce6a!important;border-radius:2px 2px 0 0!important}.wp-gr .wp-google-badge-btn{position:relative!important;padding:10px!important;background:#fff!important;transition:all .2s ease-in-out!important;border-radius:2px!important}.wp-gr .wp-google-badge-btn:hover{background:#f3f3f5!important}.wp-gr .wp-google-badge-score{display:inline-block;margin:0 0 0 4px!important;vertical-align:middle!important}.wp-gr .wp-google-rating{color:#e7711b!important;font-size:20px!important;margin:0 6px 0 0!important;vertical-align:middle!important}.wp-gr .wp-google-stars .wp-star{padding:0 4px 0 0!important;line-height:22px!important}.wp-gr .wp-google-powered{color:#777!important;margin:6px 0 0!important}.wp-gr .wp-google-powered img{max-width:144px!important}.wp-gr .wp-google-form .wp-google-reviews{padding:16px 16px 0!important}.wp-gr .wp-google-review{margin-top:15px!important}.wp-gr .wp-google-left{display:table-cell!important;vertical-align:top!important}[dir="ltr"] .wp-google-left{padding-right:10px!important}[dir="rtl"] .wp-google-left{padding-left:10px!important}.wp-gr .wp-google-left img{border:none!important;float:left!important;height:50px!important;width:50px!important;margin-right:5px!important;border-radius:50%!important;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24)!important}.wp-gr .wp-google-reviews img{border-radius:50%!important}.wp-gr .wp-google-right{display:table-cell!important;vertical-align:top!important;width:10000px!important}.wp-gr .wp-google-place .wp-star svg{width:18px!important;height:18px!important;vertical-align:middle!important}.wp-gr .wp-star svg{display:inline-block!important}.wp-gr .wp-google-review .wp-star svg{width:16px!important;height:16px!important;vertical-align:middle!important}.wp-gr .wp-google-name{color:black!important;font-size:100%!important;font-weight:bold!important;margin:0 0 2px!important;padding-right:6px!important;text-decoration:none!important}.wp-gr a.wp-google-name{color:#427fed!important;text-decoration:none!important}.wp-gr .wp-google-time{color:#999!important;font-size:13px!important}.wp-gr .wp-google-text{color:#222!important;font-size:13px!important;line-height:18px!important;max-width:100%!important;overflow:hidden!important;white-space:pre-wrap!important;word-break:break-word!important}.wp-gr .wp-google-text .wp-google-stars{padding-right:7px!important}.wp-gr .wp-more{display:none}.wp-gr .wp-more-toggle{color:#136aaf!important;cursor:pointer!important;text-decoration:none!important}.wp-gr .wp-google-url{display:block;margin:10px 0!important;color:#2c7cff!important;text-align:center!important}.wp-gr .wp-google-form{position:fixed!important;bottom:0!important;right:0!important;height:100%!important;width:368px!important;z-index:2147483000!important}.wp-gr .wp-google-form.wp-google-form-left{left:0!important}@media(max-width:460px){.wp-gr .wp-google-form{width:100%!important}}.wp-gr .wp-google-head{position:absolute!important;top:0!important;right:0!important;width:100%!important;height:80px!important;background:#fff!important;padding:10px 16px!important;overflow:hidden!important;box-shadow:0 1px 2px 0 rgba(0,0,0,.12)!important;z-index:2147483002!important}.wp-gr .wp-google-head-inner{z-index:2147483000!important;position:absolute!important;left:20px!important;top:20px!important;width:100%!important;height:100%!important;pointer-events:none!important}.wp-gr .wp-google-close{padding:0!important;cursor:pointer!important;outline:0!important;border:0!important;background:0 0!important;min-height:0!important;width:auto!important;float:right!important;font-size:32px!important;font-weight:500!important;line-height:.6!important;color:#999!important;-webkit-appearance:none!important}.wp-gr .wp-google-close:hover{color:#555!important}.wp-gr .wp-google-body{position:absolute!important;top:0!important;right:0!important;bottom:0!important;width:100%!important;background:rgba(250,250,251,.98)!important;border-left:1px solid #dadee2!important;box-shadow:0 0 4px 1px rgba(0,0,0,.08)!important;z-index:2147483000!important}.wp-gr .wp-google-content{position:absolute!important;top:0!important;right:0!important;bottom:0!important;width:100%!important;overflow-y:auto!important;z-index:2147483001!important;-webkit-transform:translateZ(0)!important}.wp-gr .wp-google-content{top:80px!important;bottom:48px!important}.wp-gr .wp-google-content-inner{position:relative!important;min-height:100%!important;margin:0 auto!important}.wp-gr .wp-google-footer{position:absolute!important;bottom:0!important;right:0!important;width:100%!important;height:48px!important;text-align:center!important;z-index:2147483002!important;background:#fff!important;box-shadow:0 -1px 2px 0 rgba(0,0,0,.06)!important;-moz-text-align-last:center!important;text-align-last:center!important}.wp-gr .wp-google-footer img{float:right!important;padding:16px!important}.wp-gr .wp-dark .wp-google-name{color:#eee!important}.wp-gr .wp-dark .wp-google-time{color:#bbb!important}.wp-gr .wp-dark .wp-google-text{color:#ececec!important}.wp-gr.wpac .wp-google-name{font-size:100%!important}.wp-gr.wpac .wp-google-hide{display:none}.wp-gr.wpac .wp-google-name a{color:#333!important;font-size:100%!important;text-decoration:none!important}.wp-gr.wpac .wp-google-left img{width:50px!important;height:50px!important;border-radius:50%!important}.wp-gr.wpac a.wp-google-name{color:#427fed!important;text-decoration:none!important;white-space:nowrap!important;text-overflow:ellipsis!important}.wp-gr.wpac .wp-google-place .wp-star svg{width:18px;height:18px}.wp-gr.wpac .wp-google-review .wp-google-stars{display:inline-block;margin-right:4px!important}.wp-gr.wpac .wp-google-review .wp-star svg{width:16px;height:16px}.wp-gr.wpac .wp-dark .wp-google-name a{color:#eee!important}@media(max-width:480px){.wp-google-badge.wp-google-badge-fixed.wp-google-badge-hide{display:none!important}}@media(max-width:480px){.wp-google-badge.wp-google-badge_left-fixed.wp-google-badge-hide{display:none!important}}.wp-gr .grw-slider{display:block!important;width:100%!important;padding-bottom:20px!important;text-align:left!important;direction:ltr!important;box-sizing:border-box!important}.wp-gr .grw-slider .grw-row{display:-ms-flexbox!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;-ms-flex-wrap:nowrap!important;-ms-flex-align:center!important}.wp-gr .grw-slider .grw-row-xs{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.wp-gr .grw-row-xs .grw-slider-header,.wp-gr .grw-row-xs .grw-slider-content,.wp-gr .grw-row-xs .grw-slider-review{-ms-flex:0 0 100%!important;flex:0 0 100%!important;max-width:100%!important}.wp-gr .grw-row-x .grw-slider-header,.wp-gr .grw-row-x .grw-slider-header+.grw-slider-content{-ms-flex:0 0 50%!important;flex:0 0 50%!important;max-width:50%!important}.wp-gr .grw-row-x .grw-slider-review{-ms-flex:0 0 100%!important;flex:0 0 100%!important;max-width:100%!important}.wp-gr .grw-row-s .grw-slider-header{-ms-flex:0 0 33.333333%!important;flex:0 0 33.333333%!important;max-width:33.333333%!important}.wp-gr .grw-row-s .grw-slider-header+.grw-slider-content{-ms-flex:0 0 66.666666%!important;flex:0 0 66.666666%!important;max-width:66.666666%!important}.wp-gr .grw-row-s .grw-slider-review{-ms-flex:0 0 50%!important;flex:0 0 50%!important;max-width:50%!important}.wp-gr .grw-row-m .grw-slider-header{-ms-flex:0 0 25%!important;flex:0 0 25%!important;max-width:25%!important}.wp-gr .grw-row-m .grw-slider-header+.grw-slider-content{-ms-flex:0 0 75%!important;flex:0 0 75%!important;max-width:75%!important}.wp-gr .grw-row-m .grw-slider-review{-ms-flex:0 0 33.333333%!important;flex:0 0 33.333333%!important;max-width:33.333333%!important}.wp-gr .grw-row-l .grw-slider-header{-ms-flex:0 0 20%!important;flex:0 0 20%!important;max-width:20%!important}.wp-gr .grw-row-l .grw-slider-header+.grw-slider-content{-ms-flex:0 0 80%!important;flex:0 0 80%!important;max-width:80%!important}.wp-gr .grw-row-l .grw-slider-review{-ms-flex:0 0 25%!important;flex:0 0 25%!important;max-width:25%!important}.wp-gr .grw-row-xl .grw-slider-header{-ms-flex:0 0 16.666666%!important;flex:0 0 16.666666%!important;max-width:16.666666%!important}.wp-gr .grw-row-xl .grw-slider-header+.grw-slider-content{-ms-flex:0 0 83.333333%!important;flex:0 0 83.333333%!important;max-width:83.333333%!important}.wp-gr .grw-row-xl .grw-slider-review{-ms-flex:0 0 20%!important;flex:0 0 20%!important;max-width:20%!important}.wp-gr .grw-slider .grw-slider-content{position:relative!important}.wp-gr .grw-slider .grw-slider-content-inner{position:relative!important}.wp-gr .grw-slider .grw-slider-header-inner,.wp-gr .grw-slider .grw-slider-review-inner{position:relative!important;margin:0 10px!important;padding:15px!important;width:100%!important}.wp-gr .grw-slider:not(.wp-dark) .grw-slider-review-inner.grw-slider-review-border{background:#fafafa!important;border-radius:4px!important;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24)!important}.wp-gr .grw-slider .grw-slider-review-inner>svg{position:absolute!important;top:10px!important;right:10px!important}.wp-gr .grw-slider .grw-slider-reviews{display:flex!important;display:-ms-flexbox!important;overflow:hidden!important;margin:0 20px!important;padding:10px 0 15px!important;flex-wrap:nowrap!important;-ms-flex-wrap:nowrap!important;scroll-snap-type:x mandatory!important;scroll-behavior:smooth!important;-webkit-overflow-scrolling:touch!important}.wp-gr .grw-slider .grw-slider-review{display:flex!important;position:relative!important;justify-content:center!important;align-items:center!important;scroll-snap-type:x mandatory!important;scroll-snap-align:start!important;flex-shrink:0!important;transform-origin:center center!important;transform:scale(1)!important;transition:transform .5s!important}.wp-gr .grw-slider .grw-slider-controls{position:absolute!important;top:50%!important;width:100%!important}.wp-gr .grw-slider .grw-slider-btns{position:absolute!important;color:#ccc!important;font-size:36px!important;line-height:22px!important;text-align:center!important;cursor:pointer!important;border-radius:50%!important;user-select:none!important;transition:all .2s ease-in-out!important}.wp-gr .grw-slider .grw-slider-btns:hover{color:#999!important}.wp-gr .grw-slider .grw-slider-btns.grw-slider-prev{left:0!important;margin-left:3px!important}.wp-gr .grw-slider .grw-slider-btns.grw-slider-next{right:0!important;margin-right:3px!important}.wp-gr .grw-slider .grw-slider-dots{position:absolute!important;left:50%!important;transform:translate(-50%,0)!important}.wp-gr .grw-slider .grw-slider-dot.active,.wp-gr .grw-slider .grw-slider-dot:hover{opacity:1!important}.wp-gr .grw-slider .grw-slider-dot{display:inline-block!important;width:10px!important;height:10px!important;margin:3px!important;background:#ccc!important;border-radius:20px!important;cursor:pointer!important;opacity:.4!important;transition:all .2s ease-in-out!important}.wp-gr .grw-slider-review .wp-google-left{display:block!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}.wp-gr .grw-slider .wp-google-review{margin:0!important}.wp-gr .grw-slider .wp-google-stars{margin:15px 0 5px!important}.wp-gr .grw-slider .wp-google-feedback{height:80px!important;overflow-y:auto!important;padding-right:10px!important}.wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar{width:4px!important}.wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3)!important;-webkit-border-radius:4px!important;border-radius:4px!important}.wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-thumb{-webkit-border-radius:10px!important;border-radius:10px!important;background:#ccc!important;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.5)!important}.wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-thumb:window-inactive{background:#ccc!important}.wp-gr .wp-google-wr{margin:15px auto 0!important;text-align:center!important}.wp-gr .wp-google-wr a{color:#fff!important;padding:8px 20px!important;border-radius:27px!important;background:#427fed!important;white-space:nowrap!important;text-shadow:1px 1px 0 #888!important;box-shadow:0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24)!important;user-select:none!important;transition:all .2s ease-in-out!important}.wp-gr .wp-google-wr a:hover{background:#1f67e7!important}
|
assets/js/public-main.js
CHANGED
@@ -3,20 +3,20 @@
|
|
3 |
A fast, small and dependency free lazy load script (https://github.com/dinbror/blazy)
|
4 |
(c) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy
|
5 |
*/
|
6 |
-
(function(a,b){"function"===typeof define&&define.amd?define(b):"object"===typeof exports?module.exports=b():a.Blazy=b()})(this,function(){function a(a){var h=a._util;h.elements=
|
7 |
-
var e=b;var
|
8 |
-
0<a.offsetWidth&&0<a.offsetHeight))if(b=a.getAttribute(
|
9 |
-
function(a){var b=c.srcset,h=a.getAttribute(b);h&&(a.setAttribute("srcset",h),a.removeAttribute(b))}));
|
10 |
-
|
11 |
-
c){a.attachEvent?a.attachEvent&&a.attachEvent("on"+b,c):a.addEventListener(b,c,{capture:!1,passive:!0})}function
|
12 |
-
function(a,b,c,d,e){e=document.all;b=[];a=a.replace(/\[for\b/gi,"[htmlFor").split(",");for(c=a.length;c--;){
|
13 |
c.options.separator||"|";c.options.containerClass=c.options.container;c.options.container=c.options.containerClass?document.querySelectorAll(c.options.containerClass):!1;c.options.errorClass=c.options.errorClass||"b-error";c.options.breakpoints=c.options.breakpoints||!1;c.options.loadInvisible=c.options.loadInvisible||!1;c.options.successClass=c.options.successClass||"b-loaded";c.options.validateDelay=c.options.validateDelay||25;c.options.saveViewportOffsetDelay=c.options.saveViewportOffsetDelay||
|
14 |
-
50;c.options.srcset=c.options.srcset||"data-srcset";c.options.src=
|
15 |
-
a.validateT);
|
16 |
-
var WPacTime=WPacTime||{getTime:function(a,b,d){return"chat"==d?this.getChatTime(a,b||"en"):d?this.getFormatTime(a,d,b||"en"):this.getDefaultTime(a,b||"en")},getChatTime:function(a,b){var d=((new Date).getTime()-a)/1E3/60/60,e=d/24;return 24>d?this.getFormatTime(a,"HH:mm",b):365>e?this.getFormatTime(a,"dd.MM HH:mm",b):this.getFormatTime(a,"yyyy.MM.dd HH:mm",b)},getDefaultTime:function(a,b){return this.getTimeAgo(a,b)},getTimeAgo:function(a,b){a=((new Date).getTime()-a)/1E3;var d=a/60,e=d/60,
|
17 |
-
g
|
18 |
-
(12<=a.getHours()?" PM":" AM")},getFormatTime:function(a,b,d){var e=new Date(a),
|
19 |
-
b,d,e){return a+" "+this.declineMsg(a,b,d,e)},declineMsg:function(a,b,d,e,
|
20 |
WPacTime.Messages={ru:{second:"\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e",minute:"\u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",minutes:function(a){return WPacTime.declineNum(Math.round(a),"\u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434")},hour:"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434",hours:function(a){return WPacTime.declineNum(Math.round(a),
|
21 |
"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u0430 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u043e\u0432 \u043d\u0430\u0437\u0430\u0434")},day:"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434",days:function(a){return WPacTime.declineNum(Math.round(a),"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u044f \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434")},month:"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434",
|
22 |
months:function(a){return WPacTime.declineNum(Math.round(a/30),"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u043d\u0430\u0437\u0430\u0434")},year:"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434",years:function(a){return WPacTime.declineNum(Math.round(a),"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434","\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434",
|
@@ -62,15 +62,16 @@ month:"pred mesiacom",months:function(a){return"pred "+Math.round(a/30)+" mesiac
|
|
62 |
hours:function(a){return Math.round(a)+" \u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87\u0e81\u0ec8\u0ead\u0e99"},day:"\u0edc\u0eb6\u0ec8\u0e87\u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99",days:function(a){return Math.round(a)+" \u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99"},month:"\u0edc\u0eb6\u0ec8\u0e87\u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99",months:function(a){return Math.round(a/30)+" \u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99"},year:"\u0edc\u0eb6\u0ec8\u0e87\u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99",
|
63 |
years:function(a){return Math.round(a)+" \u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99"}},sl:{second:"pravkar",minute:"pred eno minuto",minutes:function(a){return"pred "+Math.round(a)+" minutami"},hour:"pred eno uro",hours:function(a){return"pred "+Math.round(a)+" urami"},day:"pred enim dnem",days:function(a){return"pred "+Math.round(a)+" dnevi"},month:"pred enim mesecem",months:function(a){return"pred "+Math.round(a/30)+" meseci"},year:"pred enim letom",years:function(a){return"pred "+Math.round(a)+" leti"}},
|
64 |
et:{second:"just n\u00fc\u00fcd",minute:"minut tagasi",minutes:function(a){return Math.round(a)+" minutit tagasi"},hour:"tund tagasi",hours:function(a){return Math.round(a)+" tundi tagasi"},day:"p\u00e4ev tagasi",days:function(a){return Math.round(a)+" p\u00e4eva tagasi"},month:"kuu aega tagasi",months:function(a){return Math.round(a/30)+" kuud tagasi"},year:"aasta tagasi",years:function(a){return Math.round(a)+" aastat tagasi"}}};
|
65 |
-
function rplg_badge_init(a,b,d){var e=a.querySelector(".wp-"+b+"-badge"),
|
66 |
function rplg_load_imgs(a){a=a.querySelectorAll("img.rplg-blazy[data-src]");for(var b=0;b<a.length;b++)a[b].setAttribute("src",a[b].getAttribute("data-src")),a[b].removeAttribute("data-src")}
|
67 |
-
function rplg_next_reviews(a,b){var d=this.parentNode,e=".wp-"+a+"-review.wp-"+a+"-hide";reviews=d.querySelectorAll(e);for(var
|
68 |
-
function _rplg_lang(){var a=navigator;return(a.language||a.systemLanguage||a.userLanguage||"en").substr(0,2).toLowerCase()}function _rplg_popup(a,b,d,e,f
|
69 |
function _rplg_timeago(a){for(var b=0;b<a.length;b++){var d=a[b].className;-1<d.indexOf("google")?(d=parseInt(a[b].getAttribute("data-time")),d*=1E3):d=-1<d.indexOf("facebook")?(new Date(a[b].getAttribute("data-time").replace(/\+\d+$/,""))).getTime():(new Date(a[b].getAttribute("data-time").replace(/ /,"T"))).getTime();a[b].innerHTML=WPacTime.getTime(d,_rplg_lang(),"ago")}}
|
70 |
function _rplg_init_blazy(a){window.Blazy?window.rplg_blazy=new Blazy({selector:"img.rplg-blazy"}):0<a&&setTimeout(function(){_rplg_init_blazy(a-1)},200)}function _rplg_read_more(){for(var a=document.querySelectorAll(".wp-more-toggle"),b=0;b<a.length;b++)(function(a){a.onclick=function(){a.parentNode.removeChild(a.previousSibling.previousSibling);a.previousSibling.className="";a.textContent=""}})(a[b])}
|
71 |
-
function
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
3 |
A fast, small and dependency free lazy load script (https://github.com/dinbror/blazy)
|
4 |
(c) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy
|
5 |
*/
|
6 |
+
(function(a,b){"function"===typeof define&&define.amd?define(b):"object"===typeof exports?module.exports=b():a.Blazy=b()})(this,function(){function a(a){var h=a._util;h.elements=w(a.options);h.count=h.elements.length;h.destroyed&&(h.destroyed=!1,a.options.container&&u(a.options.container,function(a){n(a,"scroll",h.validateT)}),n(window,"resize",h.saveViewportOffsetT),n(window,"resize",h.validateT),n(window,"scroll",h.validateT));b(a)}function b(a){for(var h=a._util,c=0;c<h.count;c++){var b=h.elements[c];
|
7 |
+
var e=b;var g=a.options;var f=e.getBoundingClientRect();g.container&&v&&(e=e.closest(g.containerClass))?(e=e.getBoundingClientRect(),g=d(e,k)?d(f,{top:e.top-g.offset,right:e.right+g.offset,bottom:e.bottom+g.offset,left:e.left-g.offset}):!1):g=d(f,k);if(g||l(b,a.options.successClass))a.load(b),h.elements.splice(c,1),h.count--,c--}0===h.count&&a.destroy()}function d(a,b){return a.right>=b.left&&a.bottom>=b.top&&a.left<=b.right&&a.top<=b.bottom}function e(a,b,c){if(!l(a,c.successClass)&&(b||c.loadInvisible||
|
8 |
+
0<a.offsetWidth&&0<a.offsetHeight))if(b=a.getAttribute(y)||a.getAttribute(c.src)){b=b.split(c.separator);var h=b[A&&1<b.length?1:0],d=a.getAttribute(c.srcset),e="img"===a.nodeName.toLowerCase(),z=(b=a.parentNode)&&"picture"===b.nodeName.toLowerCase();if(e||void 0===a.src){var r=new Image,k=function(){c.error&&c.error(a,"invalid");p(a,c.errorClass);t(r,"error",k);t(r,"load",m)},m=function(){e?z||f(a,h,d):a.style.backgroundImage='url("'+h+'")';g(a,c);t(r,"load",m);t(r,"error",k)};z&&(r=a,u(b.getElementsByTagName("source"),
|
9 |
+
function(a){var b=c.srcset,h=a.getAttribute(b);h&&(a.setAttribute("srcset",h),a.removeAttribute(b))}));n(r,"error",k);n(r,"load",m);f(r,h,d)}else a.src=h,g(a,c)}else"video"===a.nodeName.toLowerCase()?(u(a.getElementsByTagName("source"),function(a){var b=c.src,h=a.getAttribute(b);h&&(a.setAttribute("src",h),a.removeAttribute(b))}),a.load(),g(a,c)):(c.error&&c.error(a,"missing"),p(a,c.errorClass))}function g(a,b){p(a,b.successClass);b.success&&b.success(a);a.removeAttribute(b.src);a.removeAttribute(b.srcset);
|
10 |
+
u(b.breakpoints,function(b){a.removeAttribute(b.src)})}function f(a,b,c){c&&a.setAttribute("srcset",c);a.src=b}function l(a,b){return-1!==(" "+a.className+" ").indexOf(" "+b+" ")}function p(a,b){l(a,b)||(a.className+=" "+b)}function w(a){var b=[];a=a.root.querySelectorAll(a.selector);for(var c=a.length;c--;b.unshift(a[c]));return b}function q(a){k.bottom=(window.innerHeight||document.documentElement.clientHeight)+a;k.right=(window.innerWidth||document.documentElement.clientWidth)+a}function n(a,b,
|
11 |
+
c){a.attachEvent?a.attachEvent&&a.attachEvent("on"+b,c):a.addEventListener(b,c,{capture:!1,passive:!0})}function t(a,b,c){a.detachEvent?a.detachEvent&&a.detachEvent("on"+b,c):a.removeEventListener(b,c,{capture:!1,passive:!0})}function u(a,b){if(a&&b)for(var c=a.length,d=0;d<c&&!1!==b(a[d],d);d++);}function m(a,b,c){var d=0;return function(){var e=+new Date;e-d<b||(d=e,a.apply(c,arguments))}}var y,k,A,v;return function(d){if(!document.querySelectorAll){var g=document.createStyleSheet();document.querySelectorAll=
|
12 |
+
function(a,b,c,d,e){e=document.all;b=[];a=a.replace(/\[for\b/gi,"[htmlFor").split(",");for(c=a.length;c--;){g.addRule(a[c],"k:v");for(d=e.length;d--;)e[d].currentStyle.k&&b.push(e[d]);g.removeRule(0)}return b}}var c=this,f=c._util={};f.elements=[];f.destroyed=!0;c.options=d||{};c.options.error=c.options.error||!1;c.options.offset=c.options.offset||100;c.options.root=c.options.root||document;c.options.success=c.options.success||!1;c.options.selector=c.options.selector||".b-lazy";c.options.separator=
|
13 |
c.options.separator||"|";c.options.containerClass=c.options.container;c.options.container=c.options.containerClass?document.querySelectorAll(c.options.containerClass):!1;c.options.errorClass=c.options.errorClass||"b-error";c.options.breakpoints=c.options.breakpoints||!1;c.options.loadInvisible=c.options.loadInvisible||!1;c.options.successClass=c.options.successClass||"b-loaded";c.options.validateDelay=c.options.validateDelay||25;c.options.saveViewportOffsetDelay=c.options.saveViewportOffsetDelay||
|
14 |
+
50;c.options.srcset=c.options.srcset||"data-srcset";c.options.src=y=c.options.src||"data-src";v=Element.prototype.closest;A=1<window.devicePixelRatio;k={};k.top=0-c.options.offset;k.left=0-c.options.offset;c.revalidate=function(){a(c)};c.load=function(a,b){var c=this.options;void 0===a.length?e(a,b,c):u(a,function(a){e(a,b,c)})};c.destroy=function(){var a=this._util;this.options.container&&u(this.options.container,function(b){t(b,"scroll",a.validateT)});t(window,"scroll",a.validateT);t(window,"resize",
|
15 |
+
a.validateT);t(window,"resize",a.saveViewportOffsetT);a.count=0;a.elements.length=0;a.destroyed=!0};f.validateT=m(function(){b(c)},c.options.validateDelay,c);f.saveViewportOffsetT=m(function(){q(c.options.offset)},c.options.saveViewportOffsetDelay,c);q(c.options.offset);u(c.options.breakpoints,function(a){if(a.width>=window.screen.width)return y=a.src,!1});setTimeout(function(){a(c)})}});
|
16 |
+
var WPacTime=WPacTime||{getTime:function(a,b,d){return"chat"==d?this.getChatTime(a,b||"en"):d?this.getFormatTime(a,d,b||"en"):this.getDefaultTime(a,b||"en")},getChatTime:function(a,b){var d=((new Date).getTime()-a)/1E3/60/60,e=d/24;return 24>d?this.getFormatTime(a,"HH:mm",b):365>e?this.getFormatTime(a,"dd.MM HH:mm",b):this.getFormatTime(a,"yyyy.MM.dd HH:mm",b)},getDefaultTime:function(a,b){return this.getTimeAgo(a,b)},getTimeAgo:function(a,b){a=((new Date).getTime()-a)/1E3;var d=a/60,e=d/60,g=e/24,
|
17 |
+
f=g/365;b=WPacTime.Messages[b]?b:"en";return 45>a?WPacTime.Messages[b].second:90>a?WPacTime.Messages[b].minute:45>d?WPacTime.Messages[b].minutes(d):90>d?WPacTime.Messages[b].hour:24>e?WPacTime.Messages[b].hours(e):48>e?WPacTime.Messages[b].day:30>g?WPacTime.Messages[b].days(g):60>g?WPacTime.Messages[b].month:365>g?WPacTime.Messages[b].months(g):2>f?WPacTime.Messages[b].year:WPacTime.Messages[b].years(f)},getTime12:function(a,b){a=new Date(a);return(a.getHours()%12?a.getHours()%12:12)+":"+a.getMinutes()+
|
18 |
+
(12<=a.getHours()?" PM":" AM")},getFormatTime:function(a,b,d){var e=new Date(a),g={SS:e.getMilliseconds(),ss:e.getSeconds(),mm:e.getMinutes(),HH:e.getHours(),hh:(e.getHours()%12?e.getHours()%12:12)+(12<=e.getHours()?"PM":"AM"),dd:e.getDate(),MM:e.getMonth()+1,yyyy:e.getFullYear(),yy:String(e.getFullYear()).toString().substr(2,2),ago:this.getTimeAgo(a,d),12:this.getTime12(a,d)};return b.replace(/(SS|ss|mm|HH|hh|DD|dd|MM|yyyy|yy|ago|12)/g,function(a,b){a=g[b];return 10>a?"0"+a:a})},declineNum:function(a,
|
19 |
+
b,d,e){return a+" "+this.declineMsg(a,b,d,e)},declineMsg:function(a,b,d,e,g){var f=a%10;return 1==f&&(1==a||20<a)?b:1<f&&5>f&&(20<a||10>a)?d:a?e:g}};
|
20 |
WPacTime.Messages={ru:{second:"\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e",minute:"\u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",minutes:function(a){return WPacTime.declineNum(Math.round(a),"\u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434","\u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434")},hour:"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434",hours:function(a){return WPacTime.declineNum(Math.round(a),
|
21 |
"\u0447\u0430\u0441 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u0430 \u043d\u0430\u0437\u0430\u0434","\u0447\u0430\u0441\u043e\u0432 \u043d\u0430\u0437\u0430\u0434")},day:"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434",days:function(a){return WPacTime.declineNum(Math.round(a),"\u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u044f \u043d\u0430\u0437\u0430\u0434","\u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434")},month:"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434",
|
22 |
months:function(a){return WPacTime.declineNum(Math.round(a/30),"\u043c\u0435\u0441\u044f\u0446 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434","\u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u043d\u0430\u0437\u0430\u0434")},year:"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434",years:function(a){return WPacTime.declineNum(Math.round(a),"\u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434","\u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434",
|
62 |
hours:function(a){return Math.round(a)+" \u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87\u0e81\u0ec8\u0ead\u0e99"},day:"\u0edc\u0eb6\u0ec8\u0e87\u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99",days:function(a){return Math.round(a)+" \u0ea1\u0eb7\u0ec9\u0e81\u0ec8\u0ead\u0e99"},month:"\u0edc\u0eb6\u0ec8\u0e87\u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99",months:function(a){return Math.round(a/30)+" \u0ec0\u0e94\u0eb7\u0ead\u0e99\u0e81\u0ec8\u0ead\u0e99"},year:"\u0edc\u0eb6\u0ec8\u0e87\u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99",
|
63 |
years:function(a){return Math.round(a)+" \u0e9b\u0eb5\u0e81\u0ec8\u0ead\u0e99"}},sl:{second:"pravkar",minute:"pred eno minuto",minutes:function(a){return"pred "+Math.round(a)+" minutami"},hour:"pred eno uro",hours:function(a){return"pred "+Math.round(a)+" urami"},day:"pred enim dnem",days:function(a){return"pred "+Math.round(a)+" dnevi"},month:"pred enim mesecem",months:function(a){return"pred "+Math.round(a/30)+" meseci"},year:"pred enim letom",years:function(a){return"pred "+Math.round(a)+" leti"}},
|
64 |
et:{second:"just n\u00fc\u00fcd",minute:"minut tagasi",minutes:function(a){return Math.round(a)+" minutit tagasi"},hour:"tund tagasi",hours:function(a){return Math.round(a)+" tundi tagasi"},day:"p\u00e4ev tagasi",days:function(a){return Math.round(a)+" p\u00e4eva tagasi"},month:"kuu aega tagasi",months:function(a){return Math.round(a/30)+" kuud tagasi"},year:"aasta tagasi",years:function(a){return Math.round(a)+" aastat tagasi"}}};
|
65 |
+
function rplg_badge_init(a,b,d){var e=a.querySelector(".wp-"+b+"-badge"),g=a.querySelector(".wp-"+b+"-form");if(e&&g){var f=document.createElement("div");f.className=d+" wpac";-1<e.className.indexOf("-fixed")&&f.appendChild(e);f.appendChild(g);document.body.appendChild(f);e.onclick=function(){rplg_load_imgs(f);g.style.display="block"}}}
|
66 |
function rplg_load_imgs(a){a=a.querySelectorAll("img.rplg-blazy[data-src]");for(var b=0;b<a.length;b++)a[b].setAttribute("src",a[b].getAttribute("data-src")),a[b].removeAttribute("data-src")}
|
67 |
+
function rplg_next_reviews(a,b){var d=this.parentNode,e=".wp-"+a+"-review.wp-"+a+"-hide";reviews=d.querySelectorAll(e);for(var g=0;g<b&&g<reviews.length;g++)reviews[g]&&(reviews[g].className=reviews[g].className.replace("wp-"+a+"-hide"," "),rplg_load_imgs(reviews[g]));reviews=d.querySelectorAll(e);1>reviews.length&&d.removeChild(this);window.rplg_blazy&&window.rplg_blazy.revalidate();return!1}function rplg_leave_review_window(){_rplg_popup(this.getAttribute("href"),620,500);return!1}
|
68 |
+
function _rplg_lang(){var a=navigator;return(a.language||a.systemLanguage||a.userLanguage||"en").substr(0,2).toLowerCase()}function _rplg_popup(a,b,d,e,g,f){g=g||screen.height/2-d/2;f=f||screen.width/2-b/2;return window.open(a,"","location=1,status=1,resizable=yes,width="+b+",height="+d+",top="+g+",left="+f)}
|
69 |
function _rplg_timeago(a){for(var b=0;b<a.length;b++){var d=a[b].className;-1<d.indexOf("google")?(d=parseInt(a[b].getAttribute("data-time")),d*=1E3):d=-1<d.indexOf("facebook")?(new Date(a[b].getAttribute("data-time").replace(/\+\d+$/,""))).getTime():(new Date(a[b].getAttribute("data-time").replace(/ /,"T"))).getTime();a[b].innerHTML=WPacTime.getTime(d,_rplg_lang(),"ago")}}
|
70 |
function _rplg_init_blazy(a){window.Blazy?window.rplg_blazy=new Blazy({selector:"img.rplg-blazy"}):0<a&&setTimeout(function(){_rplg_init_blazy(a-1)},200)}function _rplg_read_more(){for(var a=document.querySelectorAll(".wp-more-toggle"),b=0;b<a.length;b++)(function(a){a.onclick=function(){a.parentNode.removeChild(a.previousSibling.previousSibling);a.previousSibling.className="";a.textContent=""}})(a[b])}
|
71 |
+
function _rplg_get_parent(a,b){b=b||"wp-gr";if(0>a.className.split(" ").indexOf(b))for(;(a=a.parentElement)&&0>a.className.split(" ").indexOf(b););return a}
|
72 |
+
function _rplg_init_slider(a){function b(){f.className=510>f.offsetWidth?"grw-row grw-row-xs":750>f.offsetWidth?"grw-row grw-row-x":1100>f.offsetWidth?"grw-row grw-row-s":1450>f.offsetWidth?"grw-row grw-row-m":1800>f.offsetWidth?"grw-row grw-row-l":"grw-row grw-row-xl";setTimeout(d,200)}function d(){var b=p.length,d=l.offsetWidth/p[0].offsetWidth;console.log("DOTs v",d);b=Math.ceil(b/d);var g=a.querySelector(".grw-slider-dots");console.log("DOTs dots",b);g.innerHTML="";for(var f=0;f<b;f++){var k=
|
73 |
+
document.createElement("div");k.className="grw-slider-dot";var n=p[0].offsetWidth,v=(l.scrollLeft+(l.scrollLeft+n*d))/2;console.log("CENTER",l.scrollLeft,n,v);x=Math.ceil(v*b/l.scrollWidth);x==f+1&&(k.className="grw-slider-dot active");k.setAttribute("data-index",f+1);k.setAttribute("data-visible",d);g.appendChild(k);k.onclick=function(){var b=a.querySelector(".grw-slider-dot.active");b=parseInt(b.getAttribute("data-index"));var d=parseInt(this.getAttribute("data-index")),c=parseInt(this.getAttribute("data-visible"));
|
74 |
+
b<d?e(c*Math.abs(d-b)):l.scrollBy(-p[0].offsetWidth*c*Math.abs(d-b),0);a.querySelector(".grw-slider-dot.active").className="grw-slider-dot";this.className="grw-slider-dot active";q&&clearInterval(q)}}}function e(a){l.scrollBy(p[0].offsetWidth*a,0)}function g(){var b=400,f=a.querySelector(".grw-slider-review:last-child"),m=f.getBoundingClientRect();f=f.parentNode.getBoundingClientRect();(2>Math.abs(f.left-m.left)||f.left<=m.left)&&m.left<f.right&&(2>Math.abs(f.right-m.right)||f.right>=m.right)&&m.right>
|
75 |
+
f.left?(l.scrollBy(-l.scrollWidth,0),b=700):e(1);setTimeout(d,b);q=setTimeout(g,5E3)}a=_rplg_get_parent(a);var f=a.querySelector(".grw-slider .grw-row"),l=a.querySelector(".grw-slider-reviews"),p=a.querySelectorAll(".grw-slider-review"),w=null,q=null;window.addEventListener("resize",function(){clearTimeout(w);w=setTimeout(function(){b()},150)});var n=function(){var d=a.querySelector(".grw-slider");(d.offsetWidth||d.offsetHeight||d.getClientRects().length)&&"hidden"!==window.getComputedStyle(d).visibility?
|
76 |
+
(b(),_rplg_init_blazy(10),setTimeout(g,300)):setTimeout(n,300);console.log("grw slider init...")};n();a.querySelector(".grw-slider-prev").onclick=function(){l.scrollBy(-p[0].offsetWidth,0);setTimeout(d,200);q&&clearInterval(q)};a.querySelector(".grw-slider-next").onclick=function(){e(1);setTimeout(d,200);q&&clearInterval(q)}}function rplg_init(a,b){_rplg_timeago(document.querySelectorAll(".wpac [data-time]"));_rplg_read_more();_rplg_init_blazy(10);a&&"slider"==b&&_rplg_init_slider(a)}
|
77 |
+
document.addEventListener("DOMContentLoaded",function(){rplg_init()});
|
assets/src/css/public-main.css
CHANGED
@@ -327,7 +327,9 @@
|
|
327 |
|
328 |
.wp-gr.wpac a.wp-google-name {
|
329 |
color: #427fed!important;
|
330 |
-
text-decoration: none!important
|
|
|
|
|
331 |
}
|
332 |
|
333 |
.wp-gr.wpac .wp-google-place .wp-star svg {
|
@@ -364,7 +366,6 @@
|
|
364 |
/*-------------------------------- slider --------------------------------*/
|
365 |
.wp-gr .grw-slider {
|
366 |
display: block!important;
|
367 |
-
overflow: hidden!important;
|
368 |
width: 100%!important;
|
369 |
padding-bottom: 20px!important;
|
370 |
text-align: left!important;
|
@@ -482,6 +483,7 @@
|
|
482 |
position: relative!important;
|
483 |
margin: 0 10px!important;
|
484 |
padding: 15px!important;
|
|
|
485 |
}
|
486 |
|
487 |
.wp-gr .grw-slider:not(.wp-dark) .grw-slider-review-inner.grw-slider-review-border {
|
@@ -501,7 +503,7 @@
|
|
501 |
display: -ms-flexbox!important;
|
502 |
overflow: hidden!important;
|
503 |
margin: 0 20px!important;
|
504 |
-
padding: 10px 0!important;
|
505 |
flex-wrap: nowrap!important;
|
506 |
-ms-flex-wrap: nowrap!important;
|
507 |
scroll-snap-type: x mandatory!important;
|
@@ -553,7 +555,6 @@
|
|
553 |
|
554 |
.wp-gr .grw-slider .grw-slider-dots {
|
555 |
position: absolute!important;
|
556 |
-
bottom: -28px!important;
|
557 |
left: 50%!important;
|
558 |
transform: translate(-50%, 0)!important;
|
559 |
}
|
@@ -575,8 +576,10 @@
|
|
575 |
|
576 |
/*-------------------------------- slider overrides --------------------------------*/
|
577 |
.wp-gr .grw-slider-review .wp-google-left {
|
578 |
-
display: block
|
579 |
-
overflow: hidden
|
|
|
|
|
580 |
}
|
581 |
|
582 |
.wp-gr .grw-slider .wp-google-review {
|
327 |
|
328 |
.wp-gr.wpac a.wp-google-name {
|
329 |
color: #427fed!important;
|
330 |
+
text-decoration: none!important;
|
331 |
+
white-space: nowrap!important;
|
332 |
+
text-overflow: ellipsis!important;
|
333 |
}
|
334 |
|
335 |
.wp-gr.wpac .wp-google-place .wp-star svg {
|
366 |
/*-------------------------------- slider --------------------------------*/
|
367 |
.wp-gr .grw-slider {
|
368 |
display: block!important;
|
|
|
369 |
width: 100%!important;
|
370 |
padding-bottom: 20px!important;
|
371 |
text-align: left!important;
|
483 |
position: relative!important;
|
484 |
margin: 0 10px!important;
|
485 |
padding: 15px!important;
|
486 |
+
width: 100%!important;
|
487 |
}
|
488 |
|
489 |
.wp-gr .grw-slider:not(.wp-dark) .grw-slider-review-inner.grw-slider-review-border {
|
503 |
display: -ms-flexbox!important;
|
504 |
overflow: hidden!important;
|
505 |
margin: 0 20px!important;
|
506 |
+
padding: 10px 0 15px!important;
|
507 |
flex-wrap: nowrap!important;
|
508 |
-ms-flex-wrap: nowrap!important;
|
509 |
scroll-snap-type: x mandatory!important;
|
555 |
|
556 |
.wp-gr .grw-slider .grw-slider-dots {
|
557 |
position: absolute!important;
|
|
|
558 |
left: 50%!important;
|
559 |
transform: translate(-50%, 0)!important;
|
560 |
}
|
576 |
|
577 |
/*-------------------------------- slider overrides --------------------------------*/
|
578 |
.wp-gr .grw-slider-review .wp-google-left {
|
579 |
+
display: block!important;
|
580 |
+
overflow: hidden!important;
|
581 |
+
white-space: nowrap!important;
|
582 |
+
text-overflow: ellipsis!important;
|
583 |
}
|
584 |
|
585 |
.wp-gr .grw-slider .wp-google-review {
|
assets/src/js/public-main.js
CHANGED
@@ -99,68 +99,84 @@ function _rplg_read_more() {
|
|
99 |
}
|
100 |
}
|
101 |
|
102 |
-
function
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
-
window.GRW = window.GRW || {};
|
106 |
window.addEventListener('resize', function() {
|
107 |
-
clearTimeout(
|
108 |
-
|
109 |
});
|
110 |
|
111 |
var init = function() {
|
112 |
-
if (isVisible(
|
113 |
resize();
|
|
|
|
|
114 |
} else {
|
115 |
setTimeout(init, 300);
|
116 |
}
|
|
|
117 |
}
|
118 |
-
|
119 |
|
120 |
function resize() {
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
container.className = 'grw-row grw-row-l';
|
132 |
} else {
|
133 |
-
|
134 |
}
|
135 |
-
|
136 |
-
dotsinit();
|
137 |
}
|
138 |
|
139 |
function dotsinit() {
|
140 |
-
var t =
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
for (; t < revels.length; t++) {
|
145 |
-
if (isVisible(revels[t])) {
|
146 |
-
v++;
|
147 |
-
}
|
148 |
-
}
|
149 |
|
150 |
var dots = Math.ceil(t/v),
|
151 |
-
dotscnt =
|
|
|
|
|
152 |
|
153 |
dotscnt.innerHTML = '';
|
154 |
for (var i = 0; i < dots; i++) {
|
155 |
var dot = document.createElement('div');
|
156 |
dot.className = 'grw-slider-dot';
|
157 |
|
158 |
-
var revWidth =
|
159 |
-
var center = (
|
160 |
|
161 |
-
|
|
|
|
|
162 |
if (x == i + 1) dot.className = 'dot active';*/
|
163 |
-
x = Math.ceil((center * dots) /
|
164 |
if (x == i + 1) dot.className = 'grw-slider-dot active';
|
165 |
|
166 |
dot.setAttribute('data-index', i + 1);
|
@@ -168,7 +184,7 @@ function _rplg_init_slider() {
|
|
168 |
dotscnt.appendChild(dot);
|
169 |
|
170 |
dot.onclick = function() {
|
171 |
-
var curdot =
|
172 |
ii = parseInt(curdot.getAttribute('data-index')),
|
173 |
i = parseInt(this.getAttribute('data-index')),
|
174 |
v = parseInt(this.getAttribute('data-visible'));
|
@@ -179,76 +195,75 @@ function _rplg_init_slider() {
|
|
179 |
scrollPrev(v * Math.abs(i - ii));
|
180 |
}
|
181 |
|
182 |
-
|
183 |
this.className = 'grw-slider-dot active';
|
184 |
|
185 |
-
if (
|
186 |
-
clearInterval(
|
187 |
}
|
188 |
};
|
189 |
}
|
190 |
}
|
191 |
|
192 |
function isVisible(elem) {
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
do {
|
203 |
-
if (pointContainer === elem) return true;
|
204 |
-
} while (pointContainer = pointContainer.parentNode);
|
205 |
-
return false;
|
206 |
}
|
207 |
|
208 |
function scrollPrev(offset) {
|
209 |
-
|
210 |
-
-
|
211 |
);
|
212 |
}
|
213 |
|
214 |
function scrollNext(offset) {
|
215 |
-
|
216 |
-
|
217 |
);
|
218 |
}
|
219 |
|
220 |
-
|
221 |
scrollPrev(1);
|
222 |
setTimeout(dotsinit, 200);
|
223 |
-
if (
|
224 |
-
clearInterval(
|
225 |
}
|
226 |
};
|
227 |
|
228 |
-
|
229 |
scrollNext(1);
|
230 |
setTimeout(dotsinit, 200);
|
231 |
-
if (
|
232 |
-
clearInterval(
|
233 |
}
|
234 |
};
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
|
|
|
|
|
239 |
} else {
|
240 |
scrollNext(1);
|
241 |
}
|
242 |
-
setTimeout(dotsinit,
|
243 |
-
|
|
|
244 |
}
|
245 |
|
246 |
-
function rplg_init(layout) {
|
247 |
_rplg_timeago(document.querySelectorAll('.wpac [data-time]'));
|
248 |
_rplg_read_more();
|
249 |
_rplg_init_blazy(10);
|
250 |
-
if (layout == 'slider') {
|
251 |
-
_rplg_init_slider();
|
252 |
}
|
253 |
}
|
254 |
|
99 |
}
|
100 |
}
|
101 |
|
102 |
+
function _rplg_get_parent(el, cl) {
|
103 |
+
cl = cl || 'wp-gr';
|
104 |
+
if (el.className.split(' ').indexOf(cl) < 0) {
|
105 |
+
// the last semicolon (;) without braces ({}) in empty loop makes error in WP Faster Cache
|
106 |
+
//while ((el = el.parentElement) && el.className.split(' ').indexOf(cl) < 0);
|
107 |
+
while ((el = el.parentElement) && el.className.split(' ').indexOf(cl) < 0){}
|
108 |
+
}
|
109 |
+
return el;
|
110 |
+
}
|
111 |
+
|
112 |
+
function _rplg_init_slider(el) {
|
113 |
+
el = _rplg_get_parent(el);
|
114 |
+
|
115 |
+
const ROW_ELEM = el.querySelector('.grw-slider .grw-row'),
|
116 |
+
REVIEWS_ELEM = el.querySelector('.grw-slider-reviews'),
|
117 |
+
REVIEW_ELEMS = el.querySelectorAll('.grw-slider-review');
|
118 |
+
|
119 |
+
var resizeTimout = null,
|
120 |
+
swipeTimout = null;
|
121 |
|
|
|
122 |
window.addEventListener('resize', function() {
|
123 |
+
clearTimeout(resizeTimout);
|
124 |
+
resizeTimout = setTimeout(function() { resize(); }, 150);
|
125 |
});
|
126 |
|
127 |
var init = function() {
|
128 |
+
if (isVisible(el.querySelector('.grw-slider'))) {
|
129 |
resize();
|
130 |
+
_rplg_init_blazy(10);
|
131 |
+
setTimeout(swipe, 300);
|
132 |
} else {
|
133 |
setTimeout(init, 300);
|
134 |
}
|
135 |
+
console.log('grw slider init...');
|
136 |
}
|
137 |
+
init();
|
138 |
|
139 |
function resize() {
|
140 |
+
if (ROW_ELEM.offsetWidth < 510) {
|
141 |
+
ROW_ELEM.className = 'grw-row grw-row-xs';
|
142 |
+
} else if (ROW_ELEM.offsetWidth < 750) {
|
143 |
+
ROW_ELEM.className = 'grw-row grw-row-x';
|
144 |
+
} else if (ROW_ELEM.offsetWidth < 1100) {
|
145 |
+
ROW_ELEM.className = 'grw-row grw-row-s';
|
146 |
+
} else if (ROW_ELEM.offsetWidth < 1450) {
|
147 |
+
ROW_ELEM.className = 'grw-row grw-row-m';
|
148 |
+
} else if (ROW_ELEM.offsetWidth < 1800) {
|
149 |
+
ROW_ELEM.className = 'grw-row grw-row-l';
|
|
|
150 |
} else {
|
151 |
+
ROW_ELEM.className = 'grw-row grw-row-xl';
|
152 |
}
|
153 |
+
setTimeout(dotsinit, 200);
|
|
|
154 |
}
|
155 |
|
156 |
function dotsinit() {
|
157 |
+
var t = REVIEW_ELEMS.length,
|
158 |
+
v = REVIEWS_ELEM.offsetWidth / REVIEW_ELEMS[0].offsetWidth;
|
159 |
+
|
160 |
+
console.log('DOTs v', v);
|
|
|
|
|
|
|
|
|
|
|
161 |
|
162 |
var dots = Math.ceil(t/v),
|
163 |
+
dotscnt = el.querySelector('.grw-slider-dots');
|
164 |
+
|
165 |
+
console.log('DOTs dots', dots);
|
166 |
|
167 |
dotscnt.innerHTML = '';
|
168 |
for (var i = 0; i < dots; i++) {
|
169 |
var dot = document.createElement('div');
|
170 |
dot.className = 'grw-slider-dot';
|
171 |
|
172 |
+
var revWidth = REVIEW_ELEMS[0].offsetWidth;
|
173 |
+
var center = (REVIEWS_ELEM.scrollLeft + (REVIEWS_ELEM.scrollLeft + revWidth * v)) / 2;
|
174 |
|
175 |
+
console.log('CENTER', REVIEWS_ELEM.scrollLeft, revWidth, center);
|
176 |
+
|
177 |
+
/*var x = Math.ceil( ((center * 100 / REVIEWS_ELEM.scrollWidth) * dots) / 100 );
|
178 |
if (x == i + 1) dot.className = 'dot active';*/
|
179 |
+
x = Math.ceil((center * dots) / REVIEWS_ELEM.scrollWidth);
|
180 |
if (x == i + 1) dot.className = 'grw-slider-dot active';
|
181 |
|
182 |
dot.setAttribute('data-index', i + 1);
|
184 |
dotscnt.appendChild(dot);
|
185 |
|
186 |
dot.onclick = function() {
|
187 |
+
var curdot = el.querySelector('.grw-slider-dot.active'),
|
188 |
ii = parseInt(curdot.getAttribute('data-index')),
|
189 |
i = parseInt(this.getAttribute('data-index')),
|
190 |
v = parseInt(this.getAttribute('data-visible'));
|
195 |
scrollPrev(v * Math.abs(i - ii));
|
196 |
}
|
197 |
|
198 |
+
el.querySelector('.grw-slider-dot.active').className = 'grw-slider-dot';
|
199 |
this.className = 'grw-slider-dot active';
|
200 |
|
201 |
+
if (swipeTimout) {
|
202 |
+
clearInterval(swipeTimout);
|
203 |
}
|
204 |
};
|
205 |
}
|
206 |
}
|
207 |
|
208 |
function isVisible(elem) {
|
209 |
+
return !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length) && window.getComputedStyle(elem).visibility !== 'hidden';
|
210 |
+
}
|
211 |
+
|
212 |
+
function isVisibleInParent(elem) {
|
213 |
+
var elemRect = elem.getBoundingClientRect(),
|
214 |
+
parentRect = elem.parentNode.getBoundingClientRect();
|
215 |
+
|
216 |
+
return (Math.abs(parentRect.left - elemRect.left) < 2 || parentRect.left <= elemRect.left) && elemRect.left < parentRect.right &&
|
217 |
+
(Math.abs(parentRect.right - elemRect.right) < 2 || parentRect.right >= elemRect.right) && elemRect.right > parentRect.left;
|
|
|
|
|
|
|
|
|
218 |
}
|
219 |
|
220 |
function scrollPrev(offset) {
|
221 |
+
REVIEWS_ELEM.scrollBy(
|
222 |
+
-REVIEW_ELEMS[0].offsetWidth * offset, 0
|
223 |
);
|
224 |
}
|
225 |
|
226 |
function scrollNext(offset) {
|
227 |
+
REVIEWS_ELEM.scrollBy(
|
228 |
+
REVIEW_ELEMS[0].offsetWidth * offset, 0
|
229 |
);
|
230 |
}
|
231 |
|
232 |
+
el.querySelector('.grw-slider-prev').onclick = function() {
|
233 |
scrollPrev(1);
|
234 |
setTimeout(dotsinit, 200);
|
235 |
+
if (swipeTimout) {
|
236 |
+
clearInterval(swipeTimout);
|
237 |
}
|
238 |
};
|
239 |
|
240 |
+
el.querySelector('.grw-slider-next').onclick = function() {
|
241 |
scrollNext(1);
|
242 |
setTimeout(dotsinit, 200);
|
243 |
+
if (swipeTimout) {
|
244 |
+
clearInterval(swipeTimout);
|
245 |
}
|
246 |
};
|
247 |
|
248 |
+
function swipe() {
|
249 |
+
var dt = 400;
|
250 |
+
if (isVisibleInParent(el.querySelector('.grw-slider-review:last-child'))) {
|
251 |
+
REVIEWS_ELEM.scrollBy(-REVIEWS_ELEM.scrollWidth, 0);
|
252 |
+
dt = 700;
|
253 |
} else {
|
254 |
scrollNext(1);
|
255 |
}
|
256 |
+
setTimeout(dotsinit, dt);
|
257 |
+
swipeTimout = setTimeout(swipe, 5000);
|
258 |
+
}
|
259 |
}
|
260 |
|
261 |
+
function rplg_init(el, layout) {
|
262 |
_rplg_timeago(document.querySelectorAll('.wpac [data-time]'));
|
263 |
_rplg_read_more();
|
264 |
_rplg_init_blazy(10);
|
265 |
+
if (el && layout == 'slider') {
|
266 |
+
_rplg_init_slider(el);
|
267 |
}
|
268 |
}
|
269 |
|
grw.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Widget for Google Reviews
|
4 |
Plugin URI: https://richplugins.com/business-reviews-bundle-wordpress-plugin
|
5 |
Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
|
6 |
-
Version: 2.0.
|
7 |
Author: RichPlugins <support@richplugins.com>
|
8 |
Author URI: https://richplugins.com
|
9 |
Text Domain: widget-google-reviews
|
@@ -18,7 +18,7 @@ if (!defined('ABSPATH')) {
|
|
18 |
|
19 |
require(ABSPATH . 'wp-includes/version.php');
|
20 |
|
21 |
-
define('GRW_VERSION' , '2.0.
|
22 |
define('GRW_PLUGIN_FILE' , __FILE__);
|
23 |
define('GRW_PLUGIN_URL' , plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
24 |
define('GRW_ASSETS_URL' , GRW_PLUGIN_URL . '/assets/');
|
3 |
Plugin Name: Widget for Google Reviews
|
4 |
Plugin URI: https://richplugins.com/business-reviews-bundle-wordpress-plugin
|
5 |
Description: Instantly Google Places Reviews on your website to increase user confidence and SEO.
|
6 |
+
Version: 2.0.7
|
7 |
Author: RichPlugins <support@richplugins.com>
|
8 |
Author URI: https://richplugins.com
|
9 |
Text Domain: widget-google-reviews
|
18 |
|
19 |
require(ABSPATH . 'wp-includes/version.php');
|
20 |
|
21 |
+
define('GRW_VERSION' , '2.0.7');
|
22 |
define('GRW_PLUGIN_FILE' , __FILE__);
|
23 |
define('GRW_PLUGIN_URL' , plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
|
24 |
define('GRW_ASSETS_URL' , GRW_PLUGIN_URL . '/assets/');
|
includes/class-view.php
CHANGED
@@ -98,8 +98,8 @@ class View {
|
|
98 |
</div>
|
99 |
<?php } ?>
|
100 |
</div>
|
|
|
101 |
</div>
|
102 |
-
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="js_loader" onload="rplg_init('slider')" style="display:none">
|
103 |
<?php
|
104 |
}
|
105 |
|
@@ -347,6 +347,7 @@ class View {
|
|
347 |
<div class="wp-google-time" data-time="<?php echo $review->time; ?>"><?php echo gmdate("H:i d M y", $review->time); ?></div>
|
348 |
</div>
|
349 |
<div class="wp-google-stars"><?php echo $this->grw_stars($review->rating); ?></div>
|
|
|
350 |
<div>
|
351 |
<div class="wp-google-feedback">
|
352 |
<span class="wp-google-text"><?php echo $this->grw_trim_text($review->text, $options->text_size); ?></span>
|
@@ -355,6 +356,7 @@ class View {
|
|
355 |
echo '<a href="#" class="wp-review-hide" data-id=' . $review->id . '>' . ($review->hide == '' ? 'Hide' : 'Show') . ' review</a>';
|
356 |
} ?>
|
357 |
</div>
|
|
|
358 |
</div>
|
359 |
<?php
|
360 |
}
|
98 |
</div>
|
99 |
<?php } ?>
|
100 |
</div>
|
101 |
+
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="js_loader" onload="rplg_init(this, 'slider')" width="1px" height="1px" style="display:none">
|
102 |
</div>
|
|
|
103 |
<?php
|
104 |
}
|
105 |
|
347 |
<div class="wp-google-time" data-time="<?php echo $review->time; ?>"><?php echo gmdate("H:i d M y", $review->time); ?></div>
|
348 |
</div>
|
349 |
<div class="wp-google-stars"><?php echo $this->grw_stars($review->rating); ?></div>
|
350 |
+
<?php if (strlen($review->text) > 0) { ?>
|
351 |
<div>
|
352 |
<div class="wp-google-feedback">
|
353 |
<span class="wp-google-text"><?php echo $this->grw_trim_text($review->text, $options->text_size); ?></span>
|
356 |
echo '<a href="#" class="wp-review-hide" data-id=' . $review->id . '>' . ($review->hide == '' ? 'Hide' : 'Show') . ' review</a>';
|
357 |
} ?>
|
358 |
</div>
|
359 |
+
<?php } ?>
|
360 |
</div>
|
361 |
<?php
|
362 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://richplugins.com/business-reviews-bundle-wordpress-plugin
|
|
4 |
Tags: google, google reviews, reviews, rating, widget, google business, testimonial, testimonials, google places reviews, map reviews, google my business
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -86,6 +86,9 @@ Why limit your reviews to just Google Reviews? Check out our other free reviews
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
89 |
= 2.0.6 =
|
90 |
* Great features - slider layout and 'Write a Review' button!
|
91 |
|
4 |
Tags: google, google reviews, reviews, rating, widget, google business, testimonial, testimonials, google places reviews, map reviews, google my business
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 2.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 2.0.7 =
|
90 |
+
* Slider layout: bug and style fixes
|
91 |
+
|
92 |
= 2.0.6 =
|
93 |
* Great features - slider layout and 'Write a Review' button!
|
94 |
|