Google Reviews Widget - Version 2.0.6

Version Description

  • Great features - slider layout and 'Write a Review' button!
Download this release

Release Info

Developer richplugins
Plugin Icon 128x128 Google Reviews Widget
Version 2.0.6
Comparing to
See all releases

Code changes from version 2.0.5 to 2.0.6

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}}
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}
assets/js/admin-main.js CHANGED
@@ -1,6 +1,6 @@
1
  jQuery(document).ready(function(a){a(".grw-admin-page a.nav-tab").on("click",function(c){var b=a(this),d=b.attr("href");a(d).show().siblings(".tab-content").hide();b.addClass("nav-tab-active").siblings().removeClass("nav-tab-active");c.preventDefault()})});
2
  var HTML_CONTENT='<div class="grw-builder-platforms grw-builder-inside"><div class="grw-toggle grw-builder-connect grw-connect-google">Connect Google</div><div class="grw-connect-google-inside" style="display:none"><div class="grw-builder-option"><input type="text" class="grw-connect-id" value="" placeholder="Place ID" /><span class="grw-quest grw-toggle" title="Click to help">?</span><div class="grw-quest-help">The standard way to find your Google Place ID is to go to <a href="https://developers.google.com/places/place-id" target="_blank">https://developers.google.com/places/place-id</a> and search for your company name.<br><br>But sometimes it may not work, in this case please see <a href="'+GRW_VARS.supportUrl+
3
- '&grw_tab=fig#place_id" target="_blank">how to find any Google Place ID</a>.</div></div><div class="grw-builder-option"><select class="grw-connect-lang"><option value="" selected="selected">Choose language if required</option><option value="ar">Arabic</option><option value="bg">Bulgarian</option><option value="bn">Bengali</option><option value="ca">Catalan</option><option value="cs">Czech</option><option value="da">Danish</option><option value="de">German</option><option value="el">Greek</option><option value="en">English</option><option value="es">Spanish</option><option value="eu">Basque</option><option value="eu">Basque</option><option value="fa">Farsi</option><option value="fi">Finnish</option><option value="fil">Filipino</option><option value="fr">French</option><option value="gl">Galician</option><option value="gu">Gujarati</option><option value="hi">Hindi</option><option value="hr">Croatian</option><option value="hu">Hungarian</option><option value="id">Indonesian</option><option value="it">Italian</option><option value="iw">Hebrew</option><option value="ja">Japanese</option><option value="kn">Kannada</option><option value="ko">Korean</option><option value="lt">Lithuanian</option><option value="lv">Latvian</option><option value="ml">Malayalam</option><option value="mr">Marathi</option><option value="nl">Dutch</option><option value="no">Norwegian</option><option value="pl">Polish</option><option value="pt">Portuguese</option><option value="pt-BR">Portuguese (Brazil)</option><option value="pt-PT">Portuguese (Portugal)</option><option value="ro">Romanian</option><option value="ru">Russian</option><option value="sk">Slovak</option><option value="sl">Slovenian</option><option value="sr">Serbian</option><option value="sv">Swedish</option><option value="ta">Tamil</option><option value="te">Telugu</option><option value="th">Thai</option><option value="tl">Tagalog</option><option value="tr">Turkish</option><option value="uk">Ukrainian</option><option value="vi">Vietnamese</option><option value="zh-CN">Chinese (Simplified)</option><option value="zh-TW">Chinese (Traditional)</option></select></div><div class="grw-builder-option"><button class="grw-connect-btn">Connect Google</button><small class="grw-connect-error"></small></div></div><div class="grw-connections"></div></div><div class="grw-connect-options"><div class="grw-builder-inside"><div class="grw-builder-option">Pagination<input type="text" name="pagination" value=""></div><div class="grw-builder-option">Maximum characters before \'read more\' link<input type="text" name="text_size" value=""></div><div class="grw-builder-option">Maximum width<input type="text" name="max_width" value="" placeholder="for instance: 300px"></div><div class="grw-builder-option">Maximum height<input type="text" name="max_height" value="" placeholder="for instance: 500px"></div><div class="grw-builder-option"><label><input type="checkbox" name="hide_based_on" value="">Hide \'Based on ... reviews\'</label></div><div class="grw-builder-option"><label><input type="checkbox" name="hide_reviews" value="">Hide reviews, leave only rating header</label></div><div class="grw-builder-option"><label><input type="checkbox" name="centered" value="">Place by center (only if Width is set)</label></div><div class="grw-builder-option"><label><input type="checkbox" name="dark_theme">Dark background</label></div></div><div class="grw-builder-top grw-toggle">Advance Options</div><div class="grw-builder-inside" style="display:none"><div class="grw-builder-option"><label><input type="checkbox" name="lazy_load_img" checked>Lazy load images</label></div><div class="grw-builder-option"><label><input type="checkbox" name="google_def_rev_link">Use default Google reviews link</label><span class="grw-quest grw-quest-top grw-toggle" title="Click to help">?</span><div class="grw-quest-help" style="display:none;">If the direct link to all reviews <b>https://search.google.com/local/reviews?placeid=&lt;PLACE_ID&gt;</b> does not work with your Google place (leads to 404), please use this option to use the default reviews link to Google map.</div></div><div class="grw-builder-option"><label><input type="checkbox" name="open_link" checked>Open links in new Window</label></div><div class="grw-builder-option"><label><input type="checkbox" name="nofollow_link" checked>Use no follow links</label></div><div class="grw-builder-option">Reviewer avatar size<select name="reviewer_avatar_size"><option value="56" selected="selected">Small: 56px</option><option value="128">Medium: 128px</option><option value="256">Large: 256px</option></select></div><div class="grw-builder-option">Cache data<select name="cache"><option value="1">1 Hour</option><option value="3">3 Hours</option><option value="6">6 Hours</option><option value="12" selected="selected">12 Hours</option><option value="24">1 Day</option><option value="48">2 Days</option><option value="168">1 Week</option><option value="">Disable (NOT recommended)</option></select></div><div class="grw-builder-option">Reviews limit<input type="text" name="reviews_limit" value=""></div></div></div>';
4
  function grw_builder_init(a,c){var b=document.querySelector(c.el);if(b){b.innerHTML=HTML_CONTENT;c.conns&&grw_deserialize_connections(a,b,c.conns,c.opts);var d=b.querySelector(".grw-connect-google-inside");grw_connection(a,d,"google",c.authcode);a('.grw-connect-options input[type="text"],.grw-connect-options textarea').keyup(function(){grw_serialize_connections()});a('.grw-connect-options input[type="checkbox"],.grw-connect-options select').change(function(){grw_serialize_connections()});a(".grw-toggle",
5
  b).unbind("click").click(function(){a(this).toggleClass("toggled");a(this).next().slideToggle()});a(".grw-connections").sortable&&(a(".grw-connections").sortable({stop:function(a,b){grw_serialize_connections()}}),a(".grw-connections").disableSelection());a(".wp-review-hide").click(function(){grw_review_hide(a(this));return!1});a("#grw_save").click(function(){grw_feed_save_ajax();return!1})}}
6
  function grw_feed_save_ajax(a){if(!window.grw_title.value)return window.grw_title.focus(),!1;window.grw_save.innerText="Auto save, wait";window.grw_save.disabled=!0;jQuery.post(ajaxurl,{post_id:window.grw_post_id.value,title:window.grw_title.value,content:document.getElementById("grw-builder-connection").value,action:"grw_feed_save_ajax"},function(a){for(var b=document.querySelectorAll(".wp-gr"),c=0;c<b.length;c++)b[c].parentNode.removeChild(b[c]);window.grw_collection_preview.innerHTML=a;jQuery(".wp-review-hide").unbind("click").click(function(){grw_review_hide(jQuery(this));
1
  jQuery(document).ready(function(a){a(".grw-admin-page a.nav-tab").on("click",function(c){var b=a(this),d=b.attr("href");a(d).show().siblings(".tab-content").hide();b.addClass("nav-tab-active").siblings().removeClass("nav-tab-active");c.preventDefault()})});
2
  var HTML_CONTENT='<div class="grw-builder-platforms grw-builder-inside"><div class="grw-toggle grw-builder-connect grw-connect-google">Connect Google</div><div class="grw-connect-google-inside" style="display:none"><div class="grw-builder-option"><input type="text" class="grw-connect-id" value="" placeholder="Place ID" /><span class="grw-quest grw-toggle" title="Click to help">?</span><div class="grw-quest-help">The standard way to find your Google Place ID is to go to <a href="https://developers.google.com/places/place-id" target="_blank">https://developers.google.com/places/place-id</a> and search for your company name.<br><br>But sometimes it may not work, in this case please see <a href="'+GRW_VARS.supportUrl+
3
+ '&grw_tab=fig#place_id" target="_blank">how to find any Google Place ID</a>.</div></div><div class="grw-builder-option"><select class="grw-connect-lang"><option value="" selected="selected">Choose language if required</option><option value="ar">Arabic</option><option value="bg">Bulgarian</option><option value="bn">Bengali</option><option value="ca">Catalan</option><option value="cs">Czech</option><option value="da">Danish</option><option value="de">German</option><option value="el">Greek</option><option value="en">English</option><option value="es">Spanish</option><option value="eu">Basque</option><option value="eu">Basque</option><option value="fa">Farsi</option><option value="fi">Finnish</option><option value="fil">Filipino</option><option value="fr">French</option><option value="gl">Galician</option><option value="gu">Gujarati</option><option value="hi">Hindi</option><option value="hr">Croatian</option><option value="hu">Hungarian</option><option value="id">Indonesian</option><option value="it">Italian</option><option value="iw">Hebrew</option><option value="ja">Japanese</option><option value="kn">Kannada</option><option value="ko">Korean</option><option value="lt">Lithuanian</option><option value="lv">Latvian</option><option value="ml">Malayalam</option><option value="mr">Marathi</option><option value="nl">Dutch</option><option value="no">Norwegian</option><option value="pl">Polish</option><option value="pt">Portuguese</option><option value="pt-BR">Portuguese (Brazil)</option><option value="pt-PT">Portuguese (Portugal)</option><option value="ro">Romanian</option><option value="ru">Russian</option><option value="sk">Slovak</option><option value="sl">Slovenian</option><option value="sr">Serbian</option><option value="sv">Swedish</option><option value="ta">Tamil</option><option value="te">Telugu</option><option value="th">Thai</option><option value="tl">Tagalog</option><option value="tr">Turkish</option><option value="uk">Ukrainian</option><option value="vi">Vietnamese</option><option value="zh-CN">Chinese (Simplified)</option><option value="zh-TW">Chinese (Traditional)</option></select></div><div class="grw-builder-option"><button class="grw-connect-btn">Connect Google</button><small class="grw-connect-error"></small></div></div><div class="grw-connections"></div></div><div class="grw-connect-options"><div class="grw-builder-inside"><div class="grw-builder-option">Layout<select id="view_mode" name="view_mode"><option value="slider" selected="selected">Slider</option><option value="list">List</option></select></div><div class="grw-builder-option">Pagination<input type="text" name="pagination" value=""></div><div class="grw-builder-option">Maximum characters before \'read more\' link<input type="text" name="text_size" value=""></div><div class="grw-builder-option">Maximum width<input type="text" name="max_width" value="" placeholder="for instance: 300px"></div><div class="grw-builder-option">Maximum height<input type="text" name="max_height" value="" placeholder="for instance: 500px"></div><div class="grw-builder-option"><label><input type="checkbox" name="header_hide_social" value="">Hide headers</label></div><div class="grw-builder-option"><label><input type="checkbox" name="hide_based_on" value="">Hide \'Based on ... reviews\'</label></div><div class="grw-builder-option"><label><input type="checkbox" name="hide_reviews" value="">Hide reviews, leave only rating header</label></div><div class="grw-builder-option"><label><input type="checkbox" name="centered" value="">Place by center (only if Width is set)</label></div><div class="grw-builder-option"><label><input type="checkbox" name="dark_theme">Dark background</label></div></div><div class="grw-builder-top grw-toggle">Advance Options</div><div class="grw-builder-inside" style="display:none"><div class="grw-builder-option"><label><input type="checkbox" name="lazy_load_img" checked>Lazy load images</label></div><div class="grw-builder-option"><label><input type="checkbox" name="google_def_rev_link">Use default Google reviews link</label><span class="grw-quest grw-quest-top grw-toggle" title="Click to help">?</span><div class="grw-quest-help" style="display:none;">If the direct link to all reviews <b>https://search.google.com/local/reviews?placeid=&lt;PLACE_ID&gt;</b> does not work with your Google place (leads to 404), please use this option to use the default reviews link to Google map.</div></div><div class="grw-builder-option"><label><input type="checkbox" name="open_link" checked>Open links in new Window</label></div><div class="grw-builder-option"><label><input type="checkbox" name="nofollow_link" checked>Use no follow links</label></div><div class="grw-builder-option">Reviewer avatar size<select name="reviewer_avatar_size"><option value="56" selected="selected">Small: 56px</option><option value="128">Medium: 128px</option><option value="256">Large: 256px</option></select></div><div class="grw-builder-option">Cache data<select name="cache"><option value="1">1 Hour</option><option value="3">3 Hours</option><option value="6">6 Hours</option><option value="12" selected="selected">12 Hours</option><option value="24">1 Day</option><option value="48">2 Days</option><option value="168">1 Week</option><option value="">Disable (NOT recommended)</option></select></div><div class="grw-builder-option">Reviews limit<input type="text" name="reviews_limit" value=""></div></div></div>';
4
  function grw_builder_init(a,c){var b=document.querySelector(c.el);if(b){b.innerHTML=HTML_CONTENT;c.conns&&grw_deserialize_connections(a,b,c.conns,c.opts);var d=b.querySelector(".grw-connect-google-inside");grw_connection(a,d,"google",c.authcode);a('.grw-connect-options input[type="text"],.grw-connect-options textarea').keyup(function(){grw_serialize_connections()});a('.grw-connect-options input[type="checkbox"],.grw-connect-options select').change(function(){grw_serialize_connections()});a(".grw-toggle",
5
  b).unbind("click").click(function(){a(this).toggleClass("toggled");a(this).next().slideToggle()});a(".grw-connections").sortable&&(a(".grw-connections").sortable({stop:function(a,b){grw_serialize_connections()}}),a(".grw-connections").disableSelection());a(".wp-review-hide").click(function(){grw_review_hide(a(this));return!1});a("#grw_save").click(function(){grw_feed_save_ajax();return!1})}}
6
  function grw_feed_save_ajax(a){if(!window.grw_title.value)return window.grw_title.focus(),!1;window.grw_save.innerText="Auto save, wait";window.grw_save.disabled=!0;jQuery.post(ajaxurl,{post_id:window.grw_post_id.value,title:window.grw_title.value,content:document.getElementById("grw-builder-connection").value,action:"grw_feed_save_ajax"},function(a){for(var b=document.querySelectorAll(".wp-gr"),c=0;c<b.length;c++)b[c].parentNode.removeChild(b[c]);window.grw_collection_preview.innerHTML=a;jQuery(".wp-review-hide").unbind("click").click(function(){grw_review_hide(jQuery(this));
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 g=a._util;g.elements=B(a.options);g.count=g.elements.length;g.destroyed&&(g.destroyed=!1,a.options.container&&p(a.options.container,function(a){q(a,"scroll",g.validateT)}),q(window,"resize",g.saveViewportOffsetT),q(window,"resize",g.validateT),q(window,"scroll",g.validateT));b(a)}function b(a){for(var g=a._util,c=0;c<g.count;c++){var b=g.elements[c];
7
- var l=b;var e=a.options;var f=l.getBoundingClientRect();e.container&&x&&(l=l.closest(e.containerClass))?(l=l.getBoundingClientRect(),e=d(l,k)?d(f,{top:l.top-e.offset,right:l.right+e.offset,bottom:l.bottom+e.offset,left:l.left-e.offset}):!1):e=d(f,k);if(e||r(b,a.options.successClass))a.load(b),g.elements.splice(c,1),g.count--,c--}0===g.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(!r(a,c.successClass)&&(b||c.loadInvisible||
8
- 0<a.offsetWidth&&0<a.offsetHeight))if(b=a.getAttribute(t)||a.getAttribute(c.src)){b=b.split(c.separator);var g=b[y&&1<b.length?1:0],d=a.getAttribute(c.srcset),e="img"===a.nodeName.toLowerCase(),w=(b=a.parentNode)&&"picture"===b.nodeName.toLowerCase();if(e||void 0===a.src){var m=new Image,v=function(){c.error&&c.error(a,"invalid");u(a,c.errorClass);n(m,"error",v);n(m,"load",k)},k=function(){e?w||h(a,g,d):a.style.backgroundImage='url("'+g+'")';f(a,c);n(m,"load",k);n(m,"error",v)};w&&(m=a,p(b.getElementsByTagName("source"),
9
- function(a){var b=c.srcset,g=a.getAttribute(b);g&&(a.setAttribute("srcset",g),a.removeAttribute(b))}));q(m,"error",v);q(m,"load",k);h(m,g,d)}else a.src=g,f(a,c)}else"video"===a.nodeName.toLowerCase()?(p(a.getElementsByTagName("source"),function(a){var b=c.src,g=a.getAttribute(b);g&&(a.setAttribute("src",g),a.removeAttribute(b))}),a.load(),f(a,c)):(c.error&&c.error(a,"missing"),u(a,c.errorClass))}function f(a,b){u(a,b.successClass);b.success&&b.success(a);a.removeAttribute(b.src);a.removeAttribute(b.srcset);
10
- p(b.breakpoints,function(b){a.removeAttribute(b.src)})}function h(a,b,c){c&&a.setAttribute("srcset",c);a.src=b}function r(a,b){return-1!==(" "+a.className+" ").indexOf(" "+b+" ")}function u(a,b){r(a,b)||(a.className+=" "+b)}function B(a){var b=[];a=a.root.querySelectorAll(a.selector);for(var c=a.length;c--;b.unshift(a[c]));return b}function z(a){k.bottom=(window.innerHeight||document.documentElement.clientHeight)+a;k.right=(window.innerWidth||document.documentElement.clientWidth)+a}function q(a,b,
11
- c){a.attachEvent?a.attachEvent&&a.attachEvent("on"+b,c):a.addEventListener(b,c,{capture:!1,passive:!0})}function n(a,b,c){a.detachEvent?a.detachEvent&&a.detachEvent("on"+b,c):a.removeEventListener(b,c,{capture:!1,passive:!0})}function p(a,b){if(a&&b)for(var c=a.length,d=0;d<c&&!1!==b(a[d],d);d++);}function A(a,b,c){var d=0;return function(){var e=+new Date;e-d<b||(d=e,a.apply(c,arguments))}}var t,k,y,x;return function(d){if(!document.querySelectorAll){var f=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--;){f.addRule(a[c],"k:v");for(d=e.length;d--;)e[d].currentStyle.k&&b.push(e[d]);f.removeRule(0)}return b}}var c=this,g=c._util={};g.elements=[];g.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=t=c.options.src||"data-src";x=Element.prototype.closest;y=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):p(a,function(a){e(a,b,c)})};c.destroy=function(){var a=this._util;this.options.container&&p(this.options.container,function(b){n(b,"scroll",a.validateT)});n(window,"scroll",a.validateT);n(window,"resize",
15
- a.validateT);n(window,"resize",a.saveViewportOffsetT);a.count=0;a.elements.length=0;a.destroyed=!0};g.validateT=A(function(){b(c)},c.options.validateDelay,c);g.saveViewportOffsetT=A(function(){z(c.options.offset)},c.options.saveViewportOffsetDelay,c);z(c.options.offset);p(c.options.breakpoints,function(a){if(a.width>=window.screen.width)return t=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,f=e/24,
17
- h=f/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>f?WPacTime.Messages[b].days(f):60>f?WPacTime.Messages[b].month:365>f?WPacTime.Messages[b].months(f):2>h?WPacTime.Messages[b].year:WPacTime.Messages[b].years(h)},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),f={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=f[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,f){var h=a%10;return 1==h&&(1==a||20<a)?b:1<h&&5>h&&(20<a||10>a)?d:a?e:f}};
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,10 +62,15 @@ 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"),f=a.querySelector(".wp-"+b+"-form");if(e&&f){var h=document.createElement("div");h.className=d+" wpac";-1<e.className.indexOf("-fixed")&&h.appendChild(e);h.appendChild(f);document.body.appendChild(h);e.onclick=function(){rplg_load_imgs(h);f.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 f=0;f<b&&f<reviews.length;f++)reviews[f]&&(reviews[f].className=reviews[f].className.replace("wp-"+a+"-hide"," "),rplg_load_imgs(reviews[f]));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,f,h){f=f||screen.height/2-d/2;h=h||screen.width/2-b/2;return window.open(a,"","location=1,status=1,resizable=yes,width="+b+",height="+d+",top="+f+",left="+h)}
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
- document.addEventListener("DOMContentLoaded",function(){_rplg_timeago(document.querySelectorAll(".wpac [data-time]"));_rplg_read_more();_rplg_init_blazy(10)});
 
 
 
 
 
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=r(a.options);h.count=h.elements.length;h.destroyed&&(h.destroyed=!1,a.options.container&&n(a.options.container,function(a){l(a,"scroll",h.validateT)}),l(window,"resize",h.saveViewportOffsetT),l(window,"resize",h.validateT),l(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 f=a.options;var g=e.getBoundingClientRect();f.container&&y&&(e=e.closest(f.containerClass))?(e=e.getBoundingClientRect(),f=d(e,m)?d(g,{top:e.top-f.offset,right:e.right+f.offset,bottom:e.bottom+f.offset,left:e.left-f.offset}):!1):f=d(g,m);if(f||q(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(!q(a,c.successClass)&&(b||c.loadInvisible||
8
+ 0<a.offsetWidth&&0<a.offsetHeight))if(b=a.getAttribute(u)||a.getAttribute(c.src)){b=b.split(c.separator);var h=b[z&&1<b.length?1:0],d=a.getAttribute(c.srcset),e="img"===a.nodeName.toLowerCase(),w=(b=a.parentNode)&&"picture"===b.nodeName.toLowerCase();if(e||void 0===a.src){var p=new Image,r=function(){c.error&&c.error(a,"invalid");v(a,c.errorClass);k(p,"error",r);k(p,"load",m)},m=function(){e?w||g(a,h,d):a.style.backgroundImage='url("'+h+'")';f(a,c);k(p,"load",m);k(p,"error",r)};w&&(p=a,n(b.getElementsByTagName("source"),
9
+ function(a){var b=c.srcset,h=a.getAttribute(b);h&&(a.setAttribute("srcset",h),a.removeAttribute(b))}));l(p,"error",r);l(p,"load",m);g(p,h,d)}else a.src=h,f(a,c)}else"video"===a.nodeName.toLowerCase()?(n(a.getElementsByTagName("source"),function(a){var b=c.src,h=a.getAttribute(b);h&&(a.setAttribute("src",h),a.removeAttribute(b))}),a.load(),f(a,c)):(c.error&&c.error(a,"missing"),v(a,c.errorClass))}function f(a,b){v(a,b.successClass);b.success&&b.success(a);a.removeAttribute(b.src);a.removeAttribute(b.srcset);
10
+ n(b.breakpoints,function(b){a.removeAttribute(b.src)})}function g(a,b,c){c&&a.setAttribute("srcset",c);a.src=b}function q(a,b){return-1!==(" "+a.className+" ").indexOf(" "+b+" ")}function v(a,b){q(a,b)||(a.className+=" "+b)}function r(a){var b=[];a=a.root.querySelectorAll(a.selector);for(var c=a.length;c--;b.unshift(a[c]));return b}function t(a){m.bottom=(window.innerHeight||document.documentElement.clientHeight)+a;m.right=(window.innerWidth||document.documentElement.clientWidth)+a}function l(a,b,
11
+ c){a.attachEvent?a.attachEvent&&a.attachEvent("on"+b,c):a.addEventListener(b,c,{capture:!1,passive:!0})}function k(a,b,c){a.detachEvent?a.detachEvent&&a.detachEvent("on"+b,c):a.removeEventListener(b,c,{capture:!1,passive:!0})}function n(a,b){if(a&&b)for(var c=a.length,d=0;d<c&&!1!==b(a[d],d);d++);}function A(a,b,c){var d=0;return function(){var e=+new Date;e-d<b||(d=e,a.apply(c,arguments))}}var u,m,z,y;return function(d){if(!document.querySelectorAll){var f=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--;){f.addRule(a[c],"k:v");for(d=e.length;d--;)e[d].currentStyle.k&&b.push(e[d]);f.removeRule(0)}return b}}var c=this,g=c._util={};g.elements=[];g.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=u=c.options.src||"data-src";y=Element.prototype.closest;z=1<window.devicePixelRatio;m={};m.top=0-c.options.offset;m.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):n(a,function(a){e(a,b,c)})};c.destroy=function(){var a=this._util;this.options.container&&n(this.options.container,function(b){k(b,"scroll",a.validateT)});k(window,"scroll",a.validateT);k(window,"resize",
15
+ a.validateT);k(window,"resize",a.saveViewportOffsetT);a.count=0;a.elements.length=0;a.destroyed=!0};g.validateT=A(function(){b(c)},c.options.validateDelay,c);g.saveViewportOffsetT=A(function(){t(c.options.offset)},c.options.saveViewportOffsetDelay,c);t(c.options.offset);n(c.options.breakpoints,function(a){if(a.width>=window.screen.width)return u=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,f=e/24,
17
+ g=f/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>f?WPacTime.Messages[b].days(f):60>f?WPacTime.Messages[b].month:365>f?WPacTime.Messages[b].months(f):2>g?WPacTime.Messages[b].year:WPacTime.Messages[b].years(g)},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),f={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=f[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,f){var g=a%10;return 1==g&&(1==a||20<a)?b:1<g&&5>g&&(20<a||10>a)?d:a?e:f}};
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"),f=a.querySelector(".wp-"+b+"-form");if(e&&f){var g=document.createElement("div");g.className=d+" wpac";-1<e.className.indexOf("-fixed")&&g.appendChild(e);g.appendChild(f);document.body.appendChild(g);e.onclick=function(){rplg_load_imgs(g);f.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 f=0;f<b&&f<reviews.length;f++)reviews[f]&&(reviews[f].className=reviews[f].className.replace("wp-"+a+"-hide"," "),rplg_load_imgs(reviews[f]));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,f,g){f=f||screen.height/2-d/2;g=g||screen.width/2-b/2;return window.open(a,"","location=1,status=1,resizable=yes,width="+b+",height="+d+",top="+f+",left="+g)}
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_init_slider(){function a(){var a=document.body.querySelector(".grw-slider .grw-row");a.className=510>a.offsetWidth?"grw-row grw-row-xs":750>a.offsetWidth?"grw-row grw-row-x":1100>a.offsetWidth?"grw-row grw-row-s":1450>a.offsetWidth?"grw-row grw-row-m":1800>a.offsetWidth?"grw-row grw-row-l":"grw-row grw-row-xl";b()}function b(){var a=0,b=0;revsel=g;for(revels=document.body.querySelectorAll(".grw-slider-review");a<revels.length;a++)d(revels[a])&&b++;a=Math.ceil(a/b);var t=document.body.querySelector(".grw-slider-dots");
72
+ t.innerHTML="";for(var l=0;l<a;l++){var k=document.createElement("div");k.className="grw-slider-dot";var n=document.body.querySelector(".grw-slider-review").offsetWidth;x=Math.ceil((revsel.scrollLeft+(revsel.scrollLeft+n*b))/2*a/revsel.scrollWidth);x==l+1&&(k.className="grw-slider-dot active");k.setAttribute("data-index",l+1);k.setAttribute("data-visible",b);t.appendChild(k);k.onclick=function(){var a=document.body.querySelector(".grw-slider-dot.active");a=parseInt(a.getAttribute("data-index"));var b=
73
+ parseInt(this.getAttribute("data-index")),d=parseInt(this.getAttribute("data-visible"));a<b?f(d*Math.abs(b-a)):e(d*Math.abs(b-a));document.body.querySelector(".grw-slider-dot.active").className="grw-slider-dot";this.className="grw-slider-dot active";GRW.swipeTimout&&clearInterval(GRW.swipeTimout)}}}function d(a){var b=a.getBoundingClientRect().left+a.offsetWidth/2,d=a.getBoundingClientRect().top+a.offsetHeight/2;if(0>b||b>(document.documentElement.clientWidth||window.innerWidth)||0>d||d>(document.documentElement.clientHeight||
74
+ window.innerHeight))return!1;b=document.elementFromPoint(b,d);do if(b===a)return!0;while(b=b.parentNode);return!1}function e(a){g.scrollBy(-document.body.querySelector(".grw-slider-review").offsetWidth*a,0)}function f(a){g.scrollBy(document.body.querySelector(".grw-slider-review").offsetWidth*a,0)}var g=document.body.querySelector(".grw-slider-reviews");window.GRW=window.GRW||{};window.addEventListener("resize",function(){clearTimeout(GRW.resizetimout);GRW.resizetimout=setTimeout(function(){a()},
75
+ 150)});var q=function(){d(document.body.querySelector(".grw-slider"))?a():setTimeout(q,300)};setTimeout(q,150);document.body.querySelector(".grw-slider-prev").onclick=function(){e(1);setTimeout(b,200);GRW.swipeTimout&&clearInterval(GRW.swipeTimout)};document.body.querySelector(".grw-slider-next").onclick=function(){f(1);setTimeout(b,200);GRW.swipeTimout&&clearInterval(GRW.swipeTimout)};GRW.swipeTimout=setInterval(function(){d(document.body.querySelector(".grw-slider-review:last-child"))?g.scrollBy(-g.scrollWidth,
76
+ 0):f(1);setTimeout(b,500)},5E3)}function rplg_init(a){_rplg_timeago(document.querySelectorAll(".wpac [data-time]"));_rplg_read_more();_rplg_init_blazy(10);"slider"==a&&_rplg_init_slider()}document.addEventListener("DOMContentLoaded",function(){rplg_init()});
assets/src/css/public-main.css CHANGED
@@ -1,362 +1,636 @@
1
- .wp-gr .wp-google-badge {
2
- display: inline-block;
3
- font-family: Helvetica Neue, Helvetica, Arial, sans-serif!important;
4
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .26)!important;
5
- }
6
-
7
- .wp-gr .wp-google-badge-fixed {
8
- position: fixed!important;
9
- right: 30px!important;
10
- bottom: 30px!important;
11
- max-width: none!important;
12
- z-index: 2147482999!important;
13
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .26)!important;
14
- }
15
-
16
- .wp-gr .wp-google-badge_left-fixed {
17
- position: fixed!important;
18
- left: 30px!important;
19
- bottom: 30px!important;
20
- max-width: none!important;
21
- z-index: 2147482999!important
22
- }
23
-
24
- .wp-gr .wp-google-badge * {
25
- cursor: pointer!important
26
- }
27
-
28
- .wp-gr .wp-google-border {
29
- width: 100%!important;
30
- height: 6px!important;
31
- background: #4fce6a!important;
32
- border-radius: 2px 2px 0 0!important;
33
- }
34
-
35
- .wp-gr .wp-google-badge-btn {
36
- position: relative!important;
37
- padding: 10px!important;
38
- background: #fff!important;
39
- transition: all .2s ease-in-out!important;
40
- border-radius: 2px!important;
41
- }
42
-
43
- .wp-gr .wp-google-badge-btn:hover {
44
- background: #f3f3f5!important
45
- }
46
-
47
- .wp-gr .wp-google-badge-score {
48
- display: inline-block;
49
- margin: 0 0 0 4px!important;
50
- vertical-align: middle!important;
51
- }
52
-
53
- .wp-gr .wp-google-rating {
54
- color: #e7711b!important;
55
- font-size: 20px!important;
56
- margin: 0 6px 0 0!important;
57
- vertical-align: middle!important
58
- }
59
-
60
- .wp-gr .wp-google-stars .wp-star {
61
- padding: 0 4px 0 0!important;
62
- line-height: 22px!important
63
- }
64
-
65
- .wp-gr .wp-google-powered {
66
- color: #777!important;
67
- margin: 6px 0 0!important
68
- }
69
-
70
- .wp-gr .wp-google-powered img {
71
- max-width: 144px!important
72
- }
73
-
74
- .wp-gr .wp-google-form .wp-google-reviews {
75
- padding: 16px 16px 0!important
76
- }
77
-
78
- .wp-gr .wp-google-review {
79
- margin-top: 15px!important
80
- }
81
-
82
- .wp-gr .wp-google-left {
83
- display: table-cell!important;
84
- vertical-align: top!important
85
- }
86
-
87
- [dir="ltr"] .wp-google-left {
88
- padding-right: 10px!important
89
- }
90
-
91
- [dir="rtl"] .wp-google-left {
92
- padding-left: 10px!important
93
- }
94
-
95
- .wp-gr .wp-google-left img {
96
- border: none!important;
97
- float: left!important;
98
- height: 50px!important;
99
- width: 50px!important;
100
- margin-right: 5px!important;
101
- border-radius: 50%!important;
102
- box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24)!important
103
- }
104
-
105
- .wp-gr .wp-google-reviews img {
106
- border-radius: 50%!important
107
- }
108
-
109
- .wp-gr .wp-google-right {
110
- display: table-cell!important;
111
- vertical-align: top!important;
112
- width: 10000px!important
113
- }
114
-
115
- .wp-gr .wp-google-place .wp-star svg {
116
- width: 18px!important;
117
- height: 18px!important;
118
- vertical-align: middle!important
119
- }
120
-
121
- .wp-gr .wp-star svg {
122
- display: inline-block!important
123
- }
124
-
125
- .wp-gr .wp-google-review .wp-star svg {
126
- width: 16px!important;
127
- height: 16px!important;
128
- vertical-align: middle!important
129
- }
130
-
131
- .wp-gr .wp-google-name {
132
- color: black!important;
133
- font-size: 100%!important;
134
- font-weight: bold!important;
135
- margin: 0 0 2px!important;
136
- padding-right: 6px!important;
137
- text-decoration: none!important
138
- }
139
-
140
- .wp-gr a.wp-google-name {
141
- color: #427fed!important;
142
- text-decoration: none!important
143
- }
144
-
145
- .wp-gr .wp-google-time {
146
- color: #999!important;
147
- font-size: 13px!important
148
- }
149
-
150
- .wp-gr .wp-google-text {
151
- color: #222!important;
152
- font-size: 13px!important;
153
- line-height: 18px!important;
154
- max-width: 100%!important;
155
- overflow: hidden!important;
156
- white-space: pre-wrap!important;
157
- word-break: break-word!important
158
- }
159
-
160
- .wp-gr .wp-google-text .wp-google-stars {
161
- padding-right: 7px!important
162
- }
163
-
164
- .wp-gr .wp-more {
165
- display: none
166
- }
167
-
168
- .wp-gr .wp-more-toggle {
169
- color: #136aaf!important;
170
- cursor: pointer!important;
171
- text-decoration: none!important
172
- }
173
-
174
- .wp-gr .wp-google-url {
175
- display: block;
176
- margin: 10px 0!important;
177
- color: #2c7cff!important;
178
- text-align: center!important
179
- }
180
-
181
- .wp-gr .wp-google-form {
182
- position: fixed!important;
183
- bottom: 0!important;
184
- right: 0!important;
185
- height: 100%!important;
186
- width: 368px!important;
187
- z-index: 2147483000!important
188
- }
189
-
190
- .wp-gr .wp-google-form.wp-google-form-left {
191
- left: 0!important;
192
- }
193
-
194
- @media(max-width:460px) {
195
- .wp-gr .wp-google-form {
196
- width: 100%!important
197
- }
198
- }
199
-
200
- .wp-gr .wp-google-head {
201
- position: absolute!important;
202
- top: 0!important;
203
- right: 0!important;
204
- width: 100%!important;
205
- height: 80px!important;
206
- background: #fff!important;
207
- padding: 10px 16px!important;
208
- overflow: hidden!important;
209
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .12)!important;
210
- z-index: 2147483002!important
211
- }
212
-
213
- .wp-gr .wp-google-head-inner {
214
- z-index: 2147483000!important;
215
- position: absolute!important;
216
- left: 20px!important;
217
- top: 20px!important;
218
- width: 100%!important;
219
- height: 100%!important;
220
- pointer-events: none!important
221
- }
222
-
223
- .wp-gr .wp-google-close {
224
- padding: 0!important;
225
- cursor: pointer!important;
226
- outline: 0!important;
227
- border: 0!important;
228
- background: 0 0!important;
229
- min-height: 0!important;
230
- width: auto!important;
231
- float: right!important;
232
- font-size: 32px!important;
233
- font-weight: 500!important;
234
- line-height: .6!important;
235
- color: #999!important;
236
- -webkit-appearance: none!important
237
- }
238
-
239
- .wp-gr .wp-google-close:hover {
240
- color: #555!important
241
- }
242
-
243
- .wp-gr .wp-google-body {
244
- position: absolute!important;
245
- top: 0!important;
246
- right: 0!important;
247
- bottom: 0!important;
248
- width: 100%!important;
249
- background: rgba(250, 250, 251, .98)!important;
250
- border-left: 1px solid #dadee2!important;
251
- box-shadow: 0 0 4px 1px rgba(0, 0, 0, .08)!important;
252
- z-index: 2147483000!important
253
- }
254
-
255
- .wp-gr .wp-google-content {
256
- position: absolute!important;
257
- top: 0!important;
258
- right: 0!important;
259
- bottom: 0!important;
260
- width: 100%!important;
261
- overflow-y: auto!important;
262
- z-index: 2147483001!important;
263
- -webkit-transform: translateZ(0)!important
264
- }
265
-
266
- .wp-gr .wp-google-content {
267
- top: 80px!important;
268
- bottom: 48px!important
269
- }
270
-
271
- .wp-gr .wp-google-content-inner {
272
- position: relative!important;
273
- min-height: 100%!important;
274
- margin: 0 auto!important
275
- }
276
-
277
- .wp-gr .wp-google-footer {
278
- position: absolute!important;
279
- bottom: 0!important;
280
- right: 0!important;
281
- width: 100%!important;
282
- height: 48px!important;
283
- text-align: center!important;
284
- z-index: 2147483002!important;
285
- background: #fff!important;
286
- box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, .06)!important;
287
- -moz-text-align-last: center!important;
288
- text-align-last: center!important
289
- }
290
-
291
- .wp-gr .wp-google-footer img {
292
- float: right!important;
293
- padding: 16px!important
294
- }
295
-
296
- .wp-gr .wp-dark .wp-google-name {
297
- color: #eee!important
298
- }
299
-
300
- .wp-gr .wp-dark .wp-google-time {
301
- color: #bbb!important
302
- }
303
-
304
- .wp-gr .wp-dark .wp-google-text {
305
- color: #ececec!important
306
- }
307
-
308
- .wp-gr.wpac .wp-google-name {
309
- font-size: 100%!important
310
- }
311
-
312
- .wp-gr.wpac .wp-google-hide {
313
- display: none
314
- }
315
-
316
- .wp-gr.wpac .wp-google-name a {
317
- color: #333!important;
318
- font-size: 100%!important;
319
- text-decoration: none!important
320
- }
321
-
322
- .wp-gr.wpac .wp-google-left img {
323
- width: 50px!important;
324
- height: 50px!important;
325
- border-radius: 50%!important
326
- }
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 {
334
- width: 18px;
335
- height: 18px
336
- }
337
-
338
- .wp-gr.wpac .wp-google-review .wp-google-stars {
339
- display: inline-block;
340
- margin-right: 4px!important
341
- }
342
-
343
- .wp-gr.wpac .wp-google-review .wp-star svg {
344
- width: 16px;
345
- height: 16px
346
- }
347
-
348
- .wp-gr.wpac .wp-dark .wp-google-name a {
349
- color: #eee!important
350
- }
351
-
352
- @media(max-width: 480px) {
353
- .wp-google-badge.wp-google-badge-fixed.wp-google-badge-hide {
354
- display: none!important;
355
- }
356
- }
357
-
358
- @media(max-width: 480px) {
359
- .wp-google-badge.wp-google-badge_left-fixed.wp-google-badge-hide {
360
- display: none!important;
361
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  }
1
+ .wp-gr .wp-google-badge {
2
+ display: inline-block;
3
+ font-family: Helvetica Neue, Helvetica, Arial, sans-serif!important;
4
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .26)!important;
5
+ }
6
+
7
+ .wp-gr .wp-google-badge-fixed {
8
+ position: fixed!important;
9
+ right: 30px!important;
10
+ bottom: 30px!important;
11
+ max-width: none!important;
12
+ z-index: 2147482999!important;
13
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .26)!important;
14
+ }
15
+
16
+ .wp-gr .wp-google-badge_left-fixed {
17
+ position: fixed!important;
18
+ left: 30px!important;
19
+ bottom: 30px!important;
20
+ max-width: none!important;
21
+ z-index: 2147482999!important
22
+ }
23
+
24
+ .wp-gr .wp-google-badge * {
25
+ cursor: pointer!important
26
+ }
27
+
28
+ .wp-gr .wp-google-border {
29
+ width: 100%!important;
30
+ height: 6px!important;
31
+ background: #4fce6a!important;
32
+ border-radius: 2px 2px 0 0!important;
33
+ }
34
+
35
+ .wp-gr .wp-google-badge-btn {
36
+ position: relative!important;
37
+ padding: 10px!important;
38
+ background: #fff!important;
39
+ transition: all .2s ease-in-out!important;
40
+ border-radius: 2px!important;
41
+ }
42
+
43
+ .wp-gr .wp-google-badge-btn:hover {
44
+ background: #f3f3f5!important
45
+ }
46
+
47
+ .wp-gr .wp-google-badge-score {
48
+ display: inline-block;
49
+ margin: 0 0 0 4px!important;
50
+ vertical-align: middle!important;
51
+ }
52
+
53
+ .wp-gr .wp-google-rating {
54
+ color: #e7711b!important;
55
+ font-size: 20px!important;
56
+ margin: 0 6px 0 0!important;
57
+ vertical-align: middle!important
58
+ }
59
+
60
+ .wp-gr .wp-google-stars .wp-star {
61
+ padding: 0 4px 0 0!important;
62
+ line-height: 22px!important
63
+ }
64
+
65
+ .wp-gr .wp-google-powered {
66
+ color: #777!important;
67
+ margin: 6px 0 0!important
68
+ }
69
+
70
+ .wp-gr .wp-google-powered img {
71
+ max-width: 144px!important
72
+ }
73
+
74
+ .wp-gr .wp-google-form .wp-google-reviews {
75
+ padding: 16px 16px 0!important
76
+ }
77
+
78
+ .wp-gr .wp-google-review {
79
+ margin-top: 15px!important
80
+ }
81
+
82
+ .wp-gr .wp-google-left {
83
+ display: table-cell!important;
84
+ vertical-align: top!important
85
+ }
86
+
87
+ [dir="ltr"] .wp-google-left {
88
+ padding-right: 10px!important
89
+ }
90
+
91
+ [dir="rtl"] .wp-google-left {
92
+ padding-left: 10px!important
93
+ }
94
+
95
+ .wp-gr .wp-google-left img {
96
+ border: none!important;
97
+ float: left!important;
98
+ height: 50px!important;
99
+ width: 50px!important;
100
+ margin-right: 5px!important;
101
+ border-radius: 50%!important;
102
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24)!important
103
+ }
104
+
105
+ .wp-gr .wp-google-reviews img {
106
+ border-radius: 50%!important
107
+ }
108
+
109
+ .wp-gr .wp-google-right {
110
+ display: table-cell!important;
111
+ vertical-align: top!important;
112
+ width: 10000px!important
113
+ }
114
+
115
+ .wp-gr .wp-google-place .wp-star svg {
116
+ width: 18px!important;
117
+ height: 18px!important;
118
+ vertical-align: middle!important
119
+ }
120
+
121
+ .wp-gr .wp-star svg {
122
+ display: inline-block!important
123
+ }
124
+
125
+ .wp-gr .wp-google-review .wp-star svg {
126
+ width: 16px!important;
127
+ height: 16px!important;
128
+ vertical-align: middle!important
129
+ }
130
+
131
+ .wp-gr .wp-google-name {
132
+ color: black!important;
133
+ font-size: 100%!important;
134
+ font-weight: bold!important;
135
+ margin: 0 0 2px!important;
136
+ padding-right: 6px!important;
137
+ text-decoration: none!important
138
+ }
139
+
140
+ .wp-gr a.wp-google-name {
141
+ color: #427fed!important;
142
+ text-decoration: none!important
143
+ }
144
+
145
+ .wp-gr .wp-google-time {
146
+ color: #999!important;
147
+ font-size: 13px!important
148
+ }
149
+
150
+ .wp-gr .wp-google-text {
151
+ color: #222!important;
152
+ font-size: 13px!important;
153
+ line-height: 18px!important;
154
+ max-width: 100%!important;
155
+ overflow: hidden!important;
156
+ white-space: pre-wrap!important;
157
+ word-break: break-word!important
158
+ }
159
+
160
+ .wp-gr .wp-google-text .wp-google-stars {
161
+ padding-right: 7px!important
162
+ }
163
+
164
+ .wp-gr .wp-more {
165
+ display: none
166
+ }
167
+
168
+ .wp-gr .wp-more-toggle {
169
+ color: #136aaf!important;
170
+ cursor: pointer!important;
171
+ text-decoration: none!important
172
+ }
173
+
174
+ .wp-gr .wp-google-url {
175
+ display: block;
176
+ margin: 10px 0!important;
177
+ color: #2c7cff!important;
178
+ text-align: center!important
179
+ }
180
+
181
+ .wp-gr .wp-google-form {
182
+ position: fixed!important;
183
+ bottom: 0!important;
184
+ right: 0!important;
185
+ height: 100%!important;
186
+ width: 368px!important;
187
+ z-index: 2147483000!important
188
+ }
189
+
190
+ .wp-gr .wp-google-form.wp-google-form-left {
191
+ left: 0!important;
192
+ }
193
+
194
+ @media(max-width:460px) {
195
+ .wp-gr .wp-google-form {
196
+ width: 100%!important
197
+ }
198
+ }
199
+
200
+ .wp-gr .wp-google-head {
201
+ position: absolute!important;
202
+ top: 0!important;
203
+ right: 0!important;
204
+ width: 100%!important;
205
+ height: 80px!important;
206
+ background: #fff!important;
207
+ padding: 10px 16px!important;
208
+ overflow: hidden!important;
209
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .12)!important;
210
+ z-index: 2147483002!important
211
+ }
212
+
213
+ .wp-gr .wp-google-head-inner {
214
+ z-index: 2147483000!important;
215
+ position: absolute!important;
216
+ left: 20px!important;
217
+ top: 20px!important;
218
+ width: 100%!important;
219
+ height: 100%!important;
220
+ pointer-events: none!important
221
+ }
222
+
223
+ .wp-gr .wp-google-close {
224
+ padding: 0!important;
225
+ cursor: pointer!important;
226
+ outline: 0!important;
227
+ border: 0!important;
228
+ background: 0 0!important;
229
+ min-height: 0!important;
230
+ width: auto!important;
231
+ float: right!important;
232
+ font-size: 32px!important;
233
+ font-weight: 500!important;
234
+ line-height: .6!important;
235
+ color: #999!important;
236
+ -webkit-appearance: none!important
237
+ }
238
+
239
+ .wp-gr .wp-google-close:hover {
240
+ color: #555!important
241
+ }
242
+
243
+ .wp-gr .wp-google-body {
244
+ position: absolute!important;
245
+ top: 0!important;
246
+ right: 0!important;
247
+ bottom: 0!important;
248
+ width: 100%!important;
249
+ background: rgba(250, 250, 251, .98)!important;
250
+ border-left: 1px solid #dadee2!important;
251
+ box-shadow: 0 0 4px 1px rgba(0, 0, 0, .08)!important;
252
+ z-index: 2147483000!important
253
+ }
254
+
255
+ .wp-gr .wp-google-content {
256
+ position: absolute!important;
257
+ top: 0!important;
258
+ right: 0!important;
259
+ bottom: 0!important;
260
+ width: 100%!important;
261
+ overflow-y: auto!important;
262
+ z-index: 2147483001!important;
263
+ -webkit-transform: translateZ(0)!important
264
+ }
265
+
266
+ .wp-gr .wp-google-content {
267
+ top: 80px!important;
268
+ bottom: 48px!important
269
+ }
270
+
271
+ .wp-gr .wp-google-content-inner {
272
+ position: relative!important;
273
+ min-height: 100%!important;
274
+ margin: 0 auto!important
275
+ }
276
+
277
+ .wp-gr .wp-google-footer {
278
+ position: absolute!important;
279
+ bottom: 0!important;
280
+ right: 0!important;
281
+ width: 100%!important;
282
+ height: 48px!important;
283
+ text-align: center!important;
284
+ z-index: 2147483002!important;
285
+ background: #fff!important;
286
+ box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, .06)!important;
287
+ -moz-text-align-last: center!important;
288
+ text-align-last: center!important
289
+ }
290
+
291
+ .wp-gr .wp-google-footer img {
292
+ float: right!important;
293
+ padding: 16px!important
294
+ }
295
+
296
+ .wp-gr .wp-dark .wp-google-name {
297
+ color: #eee!important
298
+ }
299
+
300
+ .wp-gr .wp-dark .wp-google-time {
301
+ color: #bbb!important
302
+ }
303
+
304
+ .wp-gr .wp-dark .wp-google-text {
305
+ color: #ececec!important
306
+ }
307
+
308
+ .wp-gr.wpac .wp-google-name {
309
+ font-size: 100%!important
310
+ }
311
+
312
+ .wp-gr.wpac .wp-google-hide {
313
+ display: none
314
+ }
315
+
316
+ .wp-gr.wpac .wp-google-name a {
317
+ color: #333!important;
318
+ font-size: 100%!important;
319
+ text-decoration: none!important
320
+ }
321
+
322
+ .wp-gr.wpac .wp-google-left img {
323
+ width: 50px!important;
324
+ height: 50px!important;
325
+ border-radius: 50%!important
326
+ }
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 {
334
+ width: 18px;
335
+ height: 18px
336
+ }
337
+
338
+ .wp-gr.wpac .wp-google-review .wp-google-stars {
339
+ display: inline-block;
340
+ margin-right: 4px!important
341
+ }
342
+
343
+ .wp-gr.wpac .wp-google-review .wp-star svg {
344
+ width: 16px;
345
+ height: 16px
346
+ }
347
+
348
+ .wp-gr.wpac .wp-dark .wp-google-name a {
349
+ color: #eee!important
350
+ }
351
+
352
+ @media(max-width: 480px) {
353
+ .wp-google-badge.wp-google-badge-fixed.wp-google-badge-hide {
354
+ display: none!important;
355
+ }
356
+ }
357
+
358
+ @media(max-width: 480px) {
359
+ .wp-google-badge.wp-google-badge_left-fixed.wp-google-badge-hide {
360
+ display: none!important;
361
+ }
362
+ }
363
+
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;
371
+ direction: ltr!important;
372
+ box-sizing: border-box!important;
373
+ }
374
+
375
+ .wp-gr .grw-slider .grw-row {
376
+ display: -ms-flexbox!important;
377
+ display: flex!important;
378
+ flex-wrap: nowrap!important;
379
+ align-items: center!important;
380
+ -ms-flex-wrap: nowrap!important;
381
+ -ms-flex-align: center!important;
382
+ }
383
+
384
+ .wp-gr .grw-slider .grw-row-xs {
385
+ -ms-flex-wrap: wrap!important;
386
+ flex-wrap: wrap!important;
387
+ }
388
+ .wp-gr .grw-row-xs .grw-slider-header,
389
+ .wp-gr .grw-row-xs .grw-slider-content,
390
+ .wp-gr .grw-row-xs .grw-slider-review {
391
+ -ms-flex: 0 0 100%!important;
392
+ flex: 0 0 100%!important;
393
+ max-width: 100%!important;
394
+ }
395
+
396
+ .wp-gr .grw-row-x .grw-slider-header,
397
+ .wp-gr .grw-row-x .grw-slider-header + .grw-slider-content {
398
+ -ms-flex: 0 0 50%!important;
399
+ flex: 0 0 50%!important;
400
+ max-width: 50%!important;
401
+ }
402
+ .wp-gr .grw-row-x .grw-slider-review {
403
+ -ms-flex: 0 0 100%!important;
404
+ flex: 0 0 100%!important;
405
+ max-width: 100%!important;
406
+ }
407
+
408
+ .wp-gr .grw-row-s .grw-slider-header {
409
+ -ms-flex: 0 0 33.333333%!important;
410
+ flex: 0 0 33.333333%!important;
411
+ max-width: 33.333333%!important;
412
+ }
413
+ .wp-gr .grw-row-s .grw-slider-header + .grw-slider-content {
414
+ -ms-flex: 0 0 66.666666%!important;
415
+ flex: 0 0 66.666666%!important;
416
+ max-width: 66.666666%!important;
417
+ }
418
+ .wp-gr .grw-row-s .grw-slider-review {
419
+ -ms-flex: 0 0 50%!important;
420
+ flex: 0 0 50%!important;
421
+ max-width: 50%!important;
422
+ }
423
+
424
+ .wp-gr .grw-row-m .grw-slider-header {
425
+ -ms-flex: 0 0 25%!important;
426
+ flex: 0 0 25%!important;
427
+ max-width: 25%!important;
428
+ }
429
+ .wp-gr .grw-row-m .grw-slider-header + .grw-slider-content {
430
+ -ms-flex: 0 0 75%!important;
431
+ flex: 0 0 75%!important;
432
+ max-width: 75%!important;
433
+ }
434
+ .wp-gr .grw-row-m .grw-slider-review {
435
+ -ms-flex: 0 0 33.333333%!important;
436
+ flex: 0 0 33.333333%!important;
437
+ max-width: 33.333333%!important;
438
+ }
439
+
440
+ .wp-gr .grw-row-l .grw-slider-header {
441
+ -ms-flex: 0 0 20%!important;
442
+ flex: 0 0 20%!important;
443
+ max-width: 20%!important;
444
+ }
445
+ .wp-gr .grw-row-l .grw-slider-header + .grw-slider-content {
446
+ -ms-flex: 0 0 80%!important;
447
+ flex: 0 0 80%!important;
448
+ max-width: 80%!important;
449
+ }
450
+ .wp-gr .grw-row-l .grw-slider-review {
451
+ -ms-flex: 0 0 25%!important;
452
+ flex: 0 0 25%!important;
453
+ max-width: 25%!important;
454
+ }
455
+
456
+ .wp-gr .grw-row-xl .grw-slider-header {
457
+ -ms-flex: 0 0 16.666666%!important;
458
+ flex: 0 0 16.666666%!important;
459
+ max-width: 16.666666%!important;
460
+ }
461
+ .wp-gr .grw-row-xl .grw-slider-header + .grw-slider-content {
462
+ -ms-flex: 0 0 83.333333%!important;
463
+ flex: 0 0 83.333333%!important;
464
+ max-width: 83.333333%!important;
465
+ }
466
+ .wp-gr .grw-row-xl .grw-slider-review {
467
+ -ms-flex: 0 0 20%!important;
468
+ flex: 0 0 20%!important;
469
+ max-width: 20%!important;
470
+ }
471
+
472
+ .wp-gr .grw-slider .grw-slider-content {
473
+ position: relative!important;
474
+ }
475
+
476
+ .wp-gr .grw-slider .grw-slider-content-inner {
477
+ position: relative!important;
478
+ }
479
+
480
+ .wp-gr .grw-slider .grw-slider-header-inner,
481
+ .wp-gr .grw-slider .grw-slider-review-inner {
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 {
488
+ background: #fafafa!important;
489
+ border-radius: 4px!important;
490
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24)!important;
491
+ }
492
+
493
+ .wp-gr .grw-slider .grw-slider-review-inner > svg {
494
+ position: absolute!important;
495
+ top: 10px!important;
496
+ right: 10px!important;
497
+ }
498
+
499
+ .wp-gr .grw-slider .grw-slider-reviews {
500
+ display: flex!important;
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;
508
+ scroll-behavior: smooth!important;
509
+ -webkit-overflow-scrolling: touch!important;
510
+ }
511
+
512
+ .wp-gr .grw-slider .grw-slider-review {
513
+ display: flex!important;
514
+ position: relative!important;
515
+ justify-content: center!important;
516
+ align-items: center!important;
517
+ scroll-snap-type: x mandatory!important;
518
+ scroll-snap-align: start!important;
519
+ flex-shrink: 0!important;
520
+ transform-origin: center center!important;
521
+ transform: scale(1)!important;
522
+ transition: transform 0.5s!important;
523
+ }
524
+
525
+ .wp-gr .grw-slider .grw-slider-controls {
526
+ position: absolute!important;
527
+ top: 50%!important;
528
+ width: 100%!important;
529
+ }
530
+
531
+ .wp-gr .grw-slider .grw-slider-btns {
532
+ position: absolute!important;
533
+ color: #ccc!important;
534
+ font-size: 36px!important;
535
+ line-height: 22px!important;
536
+ text-align: center!important;
537
+ cursor: pointer!important;
538
+ border-radius: 50%!important;
539
+ user-select: none!important;
540
+ transition: all .2s ease-in-out!important;
541
+ }
542
+ .wp-gr .grw-slider .grw-slider-btns:hover {
543
+ color: #999!important;
544
+ }
545
+ .wp-gr .grw-slider .grw-slider-btns.grw-slider-prev {
546
+ left: 0px!important;
547
+ margin-left: 3px!important;
548
+ }
549
+ .wp-gr .grw-slider .grw-slider-btns.grw-slider-next {
550
+ right: 0px!important;
551
+ margin-right: 3px!important;
552
+ }
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
+ }
560
+ .wp-gr .grw-slider .grw-slider-dot.active,
561
+ .wp-gr .grw-slider .grw-slider-dot:hover {
562
+ opacity: 1!important;
563
+ }
564
+ .wp-gr .grw-slider .grw-slider-dot {
565
+ display: inline-block!important;
566
+ width: 10px!important;
567
+ height: 10px!important;
568
+ margin: 3px!important;
569
+ background: #cccccc!important;
570
+ border-radius: 20px!important;
571
+ cursor: pointer!important;
572
+ opacity: 0.4!important;
573
+ transition: all .2s ease-in-out!important;
574
+ }
575
+
576
+ /*-------------------------------- slider overrides --------------------------------*/
577
+ .wp-gr .grw-slider-review .wp-google-left {
578
+ display: block !important;
579
+ overflow: hidden !important;
580
+ }
581
+
582
+ .wp-gr .grw-slider .wp-google-review {
583
+ margin: 0!important;
584
+ }
585
+
586
+ .wp-gr .grw-slider .wp-google-stars {
587
+ margin: 15px 0 5px!important;
588
+ }
589
+
590
+ .wp-gr .grw-slider .wp-google-feedback {
591
+ height: 80px!important;
592
+ overflow-y: auto!important;
593
+ padding-right: 10px!important;
594
+ }
595
+
596
+ .wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar {
597
+ width: 4px!important;
598
+ }
599
+
600
+ .wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-track {
601
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3)!important;
602
+ -webkit-border-radius: 4px!important;
603
+ border-radius: 4px!important;
604
+ }
605
+
606
+ .wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-thumb {
607
+ -webkit-border-radius: 10px!important;
608
+ border-radius: 10px!important;
609
+ background: #ccc!important;
610
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5)!important;
611
+ }
612
+
613
+ .wp-gr .grw-slider .wp-google-feedback::-webkit-scrollbar-thumb:window-inactive {
614
+ background: #ccc!important;
615
+ }
616
+
617
+ .wp-gr .wp-google-wr {
618
+ margin: 15px auto 0!important;
619
+ text-align: center!important;
620
+ }
621
+
622
+ .wp-gr .wp-google-wr a {
623
+ color: #fff!important;
624
+ padding: 8px 20px!important;
625
+ border-radius: 27px!important;
626
+ background: #427fed!important;
627
+ white-space: nowrap!important;
628
+ text-shadow: 1px 1px 0 #888!important;
629
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .24)!important;
630
+ user-select: none!important;
631
+ transition: all .2s ease-in-out!important;
632
+ }
633
+
634
+ .wp-gr .wp-google-wr a:hover {
635
+ background: #1f67e7!important;
636
  }
assets/src/js/admin-builder.js CHANGED
@@ -92,6 +92,14 @@ var HTML_CONTENT = '' +
92
 
93
  '<div class="grw-builder-inside">' +
94
 
 
 
 
 
 
 
 
 
95
  '<div class="grw-builder-option">' +
96
  'Pagination' +
97
  '<input type="text" name="pagination" value="">' +
@@ -112,6 +120,13 @@ var HTML_CONTENT = '' +
112
  '<input type="text" name="max_height" value="" placeholder="for instance: 500px">' +
113
  '</div>' +
114
 
 
 
 
 
 
 
 
115
  '<div class="grw-builder-option">' +
116
  '<label>' +
117
  '<input type="checkbox" name="hide_based_on" value="">' +
92
 
93
  '<div class="grw-builder-inside">' +
94
 
95
+ '<div class="grw-builder-option">' +
96
+ 'Layout' +
97
+ '<select id="view_mode" name="view_mode">' +
98
+ '<option value="slider" selected="selected">Slider</option>' +
99
+ '<option value="list">List</option>' +
100
+ '</select>' +
101
+ '</div>' +
102
+
103
  '<div class="grw-builder-option">' +
104
  'Pagination' +
105
  '<input type="text" name="pagination" value="">' +
120
  '<input type="text" name="max_height" value="" placeholder="for instance: 500px">' +
121
  '</div>' +
122
 
123
+ '<div class="grw-builder-option">' +
124
+ '<label>' +
125
+ '<input type="checkbox" name="header_hide_social" value="">' +
126
+ 'Hide headers' +
127
+ '</label>' +
128
+ '</div>' +
129
+
130
  '<div class="grw-builder-option">' +
131
  '<label>' +
132
  '<input type="checkbox" name="hide_based_on" value="">' +
assets/src/js/public-main.js CHANGED
@@ -99,8 +99,159 @@ function _rplg_read_more() {
99
  }
100
  }
101
 
102
- document.addEventListener('DOMContentLoaded', function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  _rplg_timeago(document.querySelectorAll('.wpac [data-time]'));
104
  _rplg_read_more();
105
  _rplg_init_blazy(10);
 
 
 
 
 
 
 
106
  });
99
  }
100
  }
101
 
102
+ function _rplg_init_slider() {
103
+ const REVIEWS_EL = document.body.querySelector('.grw-slider-reviews');
104
+
105
+ window.GRW = window.GRW || {};
106
+ window.addEventListener('resize', function() {
107
+ clearTimeout(GRW.resizetimout);
108
+ GRW.resizetimout = setTimeout(function() { resize(); }, 150);
109
+ });
110
+
111
+ var init = function() {
112
+ if (isVisible(document.body.querySelector('.grw-slider'))) {
113
+ resize();
114
+ } else {
115
+ setTimeout(init, 300);
116
+ }
117
+ }
118
+ setTimeout(init, 150);
119
+
120
+ function resize() {
121
+ var container = document.body.querySelector('.grw-slider .grw-row');
122
+ if (container.offsetWidth < 510) {
123
+ container.className = 'grw-row grw-row-xs';
124
+ } else if (container.offsetWidth < 750) {
125
+ container.className = 'grw-row grw-row-x';
126
+ } else if (container.offsetWidth < 1100) {
127
+ container.className = 'grw-row grw-row-s';
128
+ } else if (container.offsetWidth < 1450) {
129
+ container.className = 'grw-row grw-row-m';
130
+ } else if (container.offsetWidth < 1800) {
131
+ container.className = 'grw-row grw-row-l';
132
+ } else {
133
+ container.className = 'grw-row grw-row-xl';
134
+ }
135
+
136
+ dotsinit();
137
+ }
138
+
139
+ function dotsinit() {
140
+ var t = 0, v = 0, zzz = 0;
141
+ revsel = REVIEWS_EL,
142
+ revels = document.body.querySelectorAll('.grw-slider-review');
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 = document.body.querySelector('.grw-slider-dots');
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 = document.body.querySelector('.grw-slider-review').offsetWidth;
159
+ var center = (revsel.scrollLeft + (revsel.scrollLeft + revWidth * v)) / 2;
160
+
161
+ /*var x = Math.ceil( ((center * 100 / revsel.scrollWidth) * dots) / 100 );
162
+ if (x == i + 1) dot.className = 'dot active';*/
163
+ x = Math.ceil((center * dots) / revsel.scrollWidth);
164
+ if (x == i + 1) dot.className = 'grw-slider-dot active';
165
+
166
+ dot.setAttribute('data-index', i + 1);
167
+ dot.setAttribute('data-visible', v);
168
+ dotscnt.appendChild(dot);
169
+
170
+ dot.onclick = function() {
171
+ var curdot = document.body.querySelector('.grw-slider-dot.active'),
172
+ ii = parseInt(curdot.getAttribute('data-index')),
173
+ i = parseInt(this.getAttribute('data-index')),
174
+ v = parseInt(this.getAttribute('data-visible'));
175
+
176
+ if (ii < i) {
177
+ scrollNext(v * Math.abs(i - ii));
178
+ } else {
179
+ scrollPrev(v * Math.abs(i - ii));
180
+ }
181
+
182
+ document.body.querySelector('.grw-slider-dot.active').className = 'grw-slider-dot';
183
+ this.className = 'grw-slider-dot active';
184
+
185
+ if (GRW.swipeTimout) {
186
+ clearInterval(GRW.swipeTimout);
187
+ }
188
+ };
189
+ }
190
+ }
191
+
192
+ function isVisible(elem) {
193
+ const elemCenter = {
194
+ x: elem.getBoundingClientRect().left + elem.offsetWidth / 2,
195
+ y: elem.getBoundingClientRect().top + elem.offsetHeight / 2
196
+ };
197
+ if (elemCenter.x < 0) return false;
198
+ if (elemCenter.x > (document.documentElement.clientWidth || window.innerWidth)) return false;
199
+ if (elemCenter.y < 0) return false;
200
+ if (elemCenter.y > (document.documentElement.clientHeight || window.innerHeight)) return false;
201
+ let pointContainer = document.elementFromPoint(elemCenter.x, elemCenter.y);
202
+ do {
203
+ if (pointContainer === elem) return true;
204
+ } while (pointContainer = pointContainer.parentNode);
205
+ return false;
206
+ }
207
+
208
+ function scrollPrev(offset) {
209
+ REVIEWS_EL.scrollBy(
210
+ -document.body.querySelector('.grw-slider-review').offsetWidth * offset, 0
211
+ );
212
+ }
213
+
214
+ function scrollNext(offset) {
215
+ REVIEWS_EL.scrollBy(
216
+ document.body.querySelector('.grw-slider-review').offsetWidth * offset, 0
217
+ );
218
+ }
219
+
220
+ document.body.querySelector('.grw-slider-prev').onclick = function() {
221
+ scrollPrev(1);
222
+ setTimeout(dotsinit, 200);
223
+ if (GRW.swipeTimout) {
224
+ clearInterval(GRW.swipeTimout);
225
+ }
226
+ };
227
+
228
+ document.body.querySelector('.grw-slider-next').onclick = function() {
229
+ scrollNext(1);
230
+ setTimeout(dotsinit, 200);
231
+ if (GRW.swipeTimout) {
232
+ clearInterval(GRW.swipeTimout);
233
+ }
234
+ };
235
+
236
+ GRW.swipeTimout = setInterval(function() {
237
+ if (isVisible(document.body.querySelector('.grw-slider-review:last-child'))) {
238
+ REVIEWS_EL.scrollBy(-REVIEWS_EL.scrollWidth, 0);
239
+ } else {
240
+ scrollNext(1);
241
+ }
242
+ setTimeout(dotsinit, 500);
243
+ }, 5000);
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
+
255
+ document.addEventListener('DOMContentLoaded', function() {
256
+ rplg_init();
257
  });
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.5
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.5');
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.6
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.6');
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
@@ -35,6 +35,9 @@ class View {
35
  <div class="wp-gr wpac"<?php if ($style) { ?> style="<?php echo $style;?>"<?php } ?> data-id="<?php echo $feed_id; ?>">
36
  <?php
37
  switch ($options->view_mode) {
 
 
 
38
  case 'badge':
39
  $this->render_badge($businesses, $reviews, $options);
40
  break;
@@ -50,6 +53,56 @@ class View {
50
  return preg_replace('/[\n\r]|(>)\s+(<)/', '$1$2', ob_get_clean());
51
  }
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  private function render_list($businesses, $reviews, $options, $is_admin = false) {
54
  ?>
55
  <div class="wp-google-list<?php if ($options->dark_theme) { ?> wp-dark<?php } ?>">
@@ -85,6 +138,7 @@ class View {
85
  </div>
86
  <?php } ?>
87
  </div>
 
88
  <?php
89
  }
90
 
@@ -179,6 +233,7 @@ class View {
179
  <?php if (!$hide_based_on && isset($place->review_count)) { ?>
180
  <div class="wp-google-powered"><?php echo vsprintf(__('Based on %s reviews', 'grw'), $this->grw_array($place->review_count)); ?></div>
181
  <?php } ?>
 
182
  <?php if ($show_powered) { ?>
183
  <div class="wp-google-powered">
184
  <img src="<?php echo GRW_ASSETS_URL; ?>img/powered_by_google_on_<?php if ($dark_theme) { ?>non_<?php } ?>white.png" alt="powered by Google" width="144" height="18" title="powered by Google">
@@ -199,47 +254,7 @@ class View {
199
  if ($pagination > 0 && $pagination <= $i++) {
200
  $hr = true;
201
  }
202
- ?>
203
- <div class="wp-google-review<?php if ($hr) { echo ' wp-google-hide'; } if ($is_admin && $review->hide != '') { echo ' wp-review-hidden'; } ?>">
204
- <div class="wp-google-left">
205
- <?php
206
- $default_avatar = GRW_GOOGLE_AVATAR;
207
- if (strlen($review->author_avatar) > 0) {
208
- $author_avatar = $review->author_avatar;
209
- } else {
210
- $author_avatar = $default_avatar;
211
- }
212
- if (isset($reviewer_avatar_size)) {
213
- $author_avatar = str_replace('s128', 's' . $reviewer_avatar_size, $author_avatar);
214
- $default_avatar = str_replace('s128', 's' . $reviewer_avatar_size, $default_avatar);
215
- }
216
- $this->grw_image($author_avatar, $review->author_name, $lazy_load_img, $default_avatar);
217
- ?>
218
- </div>
219
- <div class="wp-google-right">
220
- <?php
221
- if (strlen($review->author_url) > 0) {
222
- $this->grw_anchor($review->author_url, 'wp-google-name', $review->author_name, $open_link, $nofollow_link);
223
- } else {
224
- if (strlen($review->author_name) > 0) {
225
- $author_name = $review->author_name;
226
- } else {
227
- $author_name = __('Google User', 'grw');
228
- }
229
- ?><div class="wp-google-name"><?php echo $author_name; ?></div><?php
230
- }
231
- ?>
232
- <div class="wp-google-time" data-time="<?php echo $review->time; ?>"><?php echo gmdate("H:i d M y", $review->time); ?></div>
233
- <div class="wp-google-feedback">
234
- <span class="wp-google-stars"><?php echo $this->grw_stars($review->rating); ?></span>
235
- <span class="wp-google-text"><?php echo $this->grw_trim_text($review->text, $text_size); ?></span>
236
- </div>
237
- <?php if ($is_admin) {
238
- echo '<a href="#" class="wp-review-hide" data-id=' . $review->id . '>' . ($review->hide == '' ? 'Hide' : 'Show') . ' review</a>';
239
- } ?>
240
- </div>
241
- </div>
242
- <?php
243
  }
244
  }
245
  ?>
@@ -255,6 +270,95 @@ class View {
255
  }
256
  }
257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  function grw_stars($rating) {
259
  ?><span class="wp-stars"><?php
260
  foreach (array(1,2,3,4,5) as $val) {
35
  <div class="wp-gr wpac"<?php if ($style) { ?> style="<?php echo $style;?>"<?php } ?> data-id="<?php echo $feed_id; ?>">
36
  <?php
37
  switch ($options->view_mode) {
38
+ case 'slider':
39
+ $this->render_slider($businesses, $reviews, $options, $is_admin);
40
+ break;
41
  case 'badge':
42
  $this->render_badge($businesses, $reviews, $options);
43
  break;
53
  return preg_replace('/[\n\r]|(>)\s+(<)/', '$1$2', ob_get_clean());
54
  }
55
 
56
+ private function render_slider($businesses, $reviews, $options, $is_admin = false) {
57
+ ?>
58
+ <div class="grw-slider<?php if ($options->dark_theme) { ?> wp-dark<?php } ?>">
59
+ <div class="grw-row grw-row-m">
60
+ <?php if (count($businesses) > 0) { ?>
61
+ <div class="grw-slider-header">
62
+ <div class="grw-slider-header-inner">
63
+ <div class="wp-google-place">
64
+ <?php $this->grw_place(
65
+ $businesses[0]->rating,
66
+ $businesses[0],
67
+ $businesses[0]->photo,
68
+ $reviews,
69
+ $options->dark_theme,
70
+ $options->hide_based_on
71
+ ); ?>
72
+ </div>
73
+ <div class="wp-google-wr">
74
+ <a href="https://search.google.com/local/writereview?placeid=<?php echo $businesses[0]->id; ?>" onclick="return rplg_leave_review_window.call(this)">Ready to review?</a>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ <?php }
79
+ if (count($reviews) > 0) { ?>
80
+ <div class="grw-slider-content">
81
+ <div class="grw-slider-content-inner">
82
+ <div class="grw-slider-reviews">
83
+ <?php foreach ($reviews as $review) { ?>
84
+ <div class="grw-slider-review">
85
+ <div class="grw-slider-review-inner grw-slider-review-border">
86
+ <?php $this->grw_slider_review($review, $options, $is_admin); ?>
87
+ <svg viewBox="0 0 512 512" height="18" width="18"><g fill="none" fill-rule="evenodd"><path d="M482.56 261.36c0-16.73-1.5-32.83-4.29-48.27H256v91.29h127.01c-5.47 29.5-22.1 54.49-47.09 71.23v59.21h76.27c44.63-41.09 70.37-101.59 70.37-173.46z" fill="#4285f4"/><path d="M256 492c63.72 0 117.14-21.13 156.19-57.18l-76.27-59.21c-21.13 14.16-48.17 22.53-79.92 22.53-61.47 0-113.49-41.51-132.05-97.3H45.1v61.15c38.83 77.13 118.64 130.01 210.9 130.01z" fill="#34a853"/><path d="M123.95 300.84c-4.72-14.16-7.4-29.29-7.4-44.84s2.68-30.68 7.4-44.84V150.01H45.1C29.12 181.87 20 217.92 20 256c0 38.08 9.12 74.13 25.1 105.99l78.85-61.15z" fill="#fbbc05"/><path d="M256 113.86c34.65 0 65.76 11.91 90.22 35.29l67.69-67.69C373.03 43.39 319.61 20 256 20c-92.25 0-172.07 52.89-210.9 130.01l78.85 61.15c18.56-55.78 70.59-97.3 132.05-97.3z" fill="#ea4335"/><path d="M20 20h472v472H20V20z"/></g></svg>
88
+ </div>
89
+ </div>
90
+ <?php } ?>
91
+ </div>
92
+ <div class="grw-slider-controls">
93
+ <div class="grw-slider-btns grw-slider-prev">‹</div>
94
+ <div class="grw-slider-btns grw-slider-next">›</div>
95
+ </div>
96
+ </div>
97
+ <div class="grw-slider-dots"></div>
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
+
106
  private function render_list($businesses, $reviews, $options, $is_admin = false) {
107
  ?>
108
  <div class="wp-google-list<?php if ($options->dark_theme) { ?> wp-dark<?php } ?>">
138
  </div>
139
  <?php } ?>
140
  </div>
141
+ <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="js_loader" onload="rplg_init()" style="display:none">
142
  <?php
143
  }
144
 
233
  <?php if (!$hide_based_on && isset($place->review_count)) { ?>
234
  <div class="wp-google-powered"><?php echo vsprintf(__('Based on %s reviews', 'grw'), $this->grw_array($place->review_count)); ?></div>
235
  <?php } ?>
236
+
237
  <?php if ($show_powered) { ?>
238
  <div class="wp-google-powered">
239
  <img src="<?php echo GRW_ASSETS_URL; ?>img/powered_by_google_on_<?php if ($dark_theme) { ?>non_<?php } ?>white.png" alt="powered by Google" width="144" height="18" title="powered by Google">
254
  if ($pagination > 0 && $pagination <= $i++) {
255
  $hr = true;
256
  }
257
+ $this->grw_place_review($review, $hr, $text_size, $reviewer_avatar_size, $open_link, $nofollow_link, $lazy_load_img, $is_admin);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  }
259
  }
260
  ?>
270
  }
271
  }
272
 
273
+ function grw_place_review($review, $hr, $text_size, $reviewer_avatar_size, $open_link, $nofollow_link, $lazy_load_img, $is_admin = false) {
274
+ ?>
275
+ <div class="wp-google-review<?php if ($hr) { echo ' wp-google-hide'; } if ($is_admin && $review->hide != '') { echo ' wp-review-hidden'; } ?>">
276
+ <div class="wp-google-left">
277
+ <?php
278
+ $default_avatar = GRW_GOOGLE_AVATAR;
279
+ if (strlen($review->author_avatar) > 0) {
280
+ $author_avatar = $review->author_avatar;
281
+ } else {
282
+ $author_avatar = $default_avatar;
283
+ }
284
+ if (isset($reviewer_avatar_size)) {
285
+ $author_avatar = str_replace('s128', 's' . $reviewer_avatar_size, $author_avatar);
286
+ $default_avatar = str_replace('s128', 's' . $reviewer_avatar_size, $default_avatar);
287
+ }
288
+ $this->grw_image($author_avatar, $review->author_name, $lazy_load_img, $default_avatar);
289
+ ?>
290
+ </div>
291
+ <div class="wp-google-right">
292
+ <?php
293
+ if (strlen($review->author_url) > 0) {
294
+ $this->grw_anchor($review->author_url, 'wp-google-name', $review->author_name, $open_link, $nofollow_link);
295
+ } else {
296
+ if (strlen($review->author_name) > 0) {
297
+ $author_name = $review->author_name;
298
+ } else {
299
+ $author_name = __('Google User', 'grw');
300
+ }
301
+ ?><div class="wp-google-name"><?php echo $author_name; ?></div><?php
302
+ }
303
+ ?>
304
+ <div class="wp-google-time" data-time="<?php echo $review->time; ?>"><?php echo gmdate("H:i d M y", $review->time); ?></div>
305
+ <div class="wp-google-feedback">
306
+ <span class="wp-google-stars"><?php echo $this->grw_stars($review->rating); ?></span>
307
+ <span class="wp-google-text"><?php echo $this->grw_trim_text($review->text, $text_size); ?></span>
308
+ </div>
309
+ <?php if ($is_admin) {
310
+ echo '<a href="#" class="wp-review-hide" data-id=' . $review->id . '>' . ($review->hide == '' ? 'Hide' : 'Show') . ' review</a>';
311
+ } ?>
312
+ </div>
313
+ </div>
314
+ <?php
315
+ }
316
+
317
+ function grw_slider_review($review, $options, $is_admin = false) {
318
+ ?>
319
+ <div class="wp-google-review<?php if ($is_admin && $review->hide != '') { echo ' wp-review-hidden'; } ?>">
320
+ <div class="wp-google-left">
321
+ <?php
322
+ // Google reviewer avatar
323
+ $default_avatar = GRW_GOOGLE_AVATAR;
324
+ if (strlen($review->author_avatar) > 0) {
325
+ $author_avatar = $review->author_avatar;
326
+ } else {
327
+ $author_avatar = $default_avatar;
328
+ }
329
+ if (isset($options->reviewer_avatar_size)) {
330
+ $author_avatar = str_replace('s128', 's' . $options->reviewer_avatar_size, $author_avatar);
331
+ $default_avatar = str_replace('s128', 's' . $options->reviewer_avatar_size, $default_avatar);
332
+ }
333
+ $this->grw_image($author_avatar, $review->author_name, $options->lazy_load_img, $default_avatar);
334
+
335
+ // Google reviewer name
336
+ if (strlen($review->author_url) > 0) {
337
+ $this->grw_anchor($review->author_url, 'wp-google-name', $review->author_name, $options->open_link, $options->nofollow_link);
338
+ } else {
339
+ if (strlen($review->author_name) > 0) {
340
+ $author_name = $review->author_name;
341
+ } else {
342
+ $author_name = __('Google User', 'grw');
343
+ }
344
+ ?><div class="wp-google-name"><?php echo $author_name; ?></div><?php
345
+ }
346
+ ?>
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>
353
+ </div>
354
+ <?php if ($is_admin) {
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
+ }
361
+
362
  function grw_stars($rating) {
363
  ?><span class="wp-stars"><?php
364
  foreach (array(1,2,3,4,5) as $val) {
readme.txt CHANGED
@@ -4,17 +4,17 @@ 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.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Official way to show Google Reviews on your WordPress site without Google crawling and other unofficial methods. Show Google Rating to boost user trust and sales.
12
 
13
  == Description ==
14
 
15
  `To get more features we have <a href="https://richplugins.com/business-reviews-bundle-wordpress-plugin">Business version</a> of the plugin`
16
 
17
- This plugin display Google Business Reviews on your websites in sidebar widget. A unique feature of the plugin is that it saves reviews in WordPress database and have no depend on any services like Google to show reviews in the widget.
18
 
19
  [youtube https://www.youtube.com/watch?v=Wbst-UBgXXk]
20
 
@@ -23,6 +23,8 @@ This plugin display Google Business Reviews on your websites in sidebar widget.
23
  = Plugin Features =
24
 
25
  * Free!
 
 
26
  * SEO
27
  * Multiple Google places connection
28
  * Reviews auto-updating
@@ -76,13 +78,17 @@ Why limit your reviews to just Google Reviews? Check out our other free reviews
76
 
77
  == Screenshots ==
78
 
79
- 1. Google Reviews shortcode
80
- 2. Google Reviews widget
81
- 3. Google Reviews shortcode builder
82
- 4. Google Reviews sidebar widget
 
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 2.0.5 =
87
  * Reassembled production assets (js, css)
88
 
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.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Official way to show Google Reviews on your WordPress site without Google crawling and other unofficial methods. Google Rating boosts user trust and sales!
12
 
13
  == Description ==
14
 
15
  `To get more features we have <a href="https://richplugins.com/business-reviews-bundle-wordpress-plugin">Business version</a> of the plugin`
16
 
17
+ This plugin display Google Business Reviews on your websites in sidebar widget or shortcode. A unique feature of the plugin is that it saves reviews in WordPress database and have no depend on any services like Google to show reviews in the widget.
18
 
19
  [youtube https://www.youtube.com/watch?v=Wbst-UBgXXk]
20
 
23
  = Plugin Features =
24
 
25
  * Free!
26
+ * Awesome & responsive slider
27
+ * Engaging 'Write a review' button
28
  * SEO
29
  * Multiple Google places connection
30
  * Reviews auto-updating
78
 
79
  == Screenshots ==
80
 
81
+ 1. Google Reviews slider
82
+ 2. Google Reviews list
83
+ 3. Google Reviews widget
84
+ 4. Google Reviews shortcode builder
85
+ 5. Google Reviews sidebar widget
86
 
87
  == Changelog ==
88
 
89
+ = 2.0.6 =
90
+ * Great features - slider layout and 'Write a Review' button!
91
+
92
  = 2.0.5 =
93
  * Reassembled production assets (js, css)
94