Plugin Directory

Changeset 3083515


Ignore:
Timestamp:
05/08/2024 06:49:46 PM (20 months ago)
Author:
bbioon
Message:

Version 1.9.9

Location:
merchant
Files:
843 added
24 edited

Legend:

Unmodified
Added
Removed
  • merchant/trunk/assets/css/carousel.css

    r3003440 r3083515  
    4343  margin: 0 !important;
    4444  padding: 0 !important;
     45}
     46.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:hover {
     47  opacity: 0.7;
     48}
     49.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:focus, .merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:active {
     50  border: none;
     51  -webkit-box-shadow: none;
     52          box-shadow: none;
     53  outline: none;
    4554}
    4655.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav-next {
  • merchant/trunk/assets/css/carousel.min.css

    r3003440 r3083515  
    1 .merchant-carousel{--mrc-carousel-nav-icon-color: #FFF;--mrc-carousel-nav-color: #212121;--mrc-carousel-nav-color-hover: #757575}.merchant-carousel .merchant-carousel-wrapper{position:relative}.merchant-carousel .merchant-carousel-wrapper .products,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage{display:block !important;margin:0;opacity:0;visibility:hidden;-webkit-transition:ease opacity 300ms 300ms;transition:ease opacity 300ms 300ms}.merchant-carousel .merchant-carousel-wrapper .products.row:not(.products),.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage.row:not(.products){display:block}.merchant-carousel .merchant-carousel-wrapper .products.show,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage.show{opacity:1;visibility:visible}.merchant-carousel .merchant-carousel-wrapper .products>div,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage>div{display:-webkit-box;display:-ms-flexbox;display:flex}.merchant-carousel .merchant-carousel-wrapper .products>div>div>.product,.merchant-carousel .merchant-carousel-wrapper .products>div>div>div[class*=col-],.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage>div>div>.product,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage>div>div>div[class*=col-]{width:100% !important;max-width:none !important;margin:0 !important;padding:0 !important}.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav-next{position:absolute;top:-40px;right:0;width:21px;height:21px;border-radius:100%;z-index:1}.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav-prev{position:absolute;top:-40px;right:30px;width:21px;height:21px;border-radius:100%;z-index:1}.merchant-carousel.no-nav .merchant-carousel-stage{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(-1*var(--merchant-rvp-columns-gap, 15px)) 0 0 calc(-1*var(--merchant-rvp-columns-gap, 15px)) !important;width:calc(100% + var(--merchant-rvp-columns-gap, 15px)) !important;-webkit-column-gap:0 !important;-moz-column-gap:0 !important;column-gap:0 !important}.merchant-carousel.no-nav .merchant-carousel-stage>li.product{margin:var(--merchant-rvp-columns-gap, 15px) 0 0 var(--merchant-rvp-columns-gap, 15px) !important}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:50%;right:15px;background:var(--mrc-carousel-nav-color);width:35px;height:35px;opacity:0;visibility:hidden;-webkit-transform:translate3d(20px, -210%, 0);transform:translate3d(20px, -210%, 0);-webkit-transition:ease transform 300ms,ease opacity 300ms;transition:ease transform 300ms,ease opacity 300ms}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next svg,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev svg{width:14px;height:14px}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next svg path,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev svg path{stroke:var(--mrc-carousel-nav-icon-color)}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next:hover,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev:hover{background:var(--mrc-carousel-nav-color-hover)}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev{right:auto;left:15px;-webkit-transform:translate3d(-20px, -210%, 0);transform:translate3d(-20px, -210%, 0)}.merchant-carousel.merchant-carousel-nav2:hover .merchant-carousel-nav-next,.merchant-carousel.merchant-carousel-nav2:hover .merchant-carousel-nav-prev,.merchant-carousel.merchant-carousel-nav2.merchant-carousel-nav2-always-show .merchant-carousel-nav-next,.merchant-carousel.merchant-carousel-nav2.merchant-carousel-nav2-always-show .merchant-carousel-nav-prev{opacity:1;visibility:visible;-webkit-transform:translate3d(0, -210%, 0);transform:translate3d(0, -210%, 0)}@media(max-width: 991px){.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev{opacity:1;visibility:visible;-webkit-transform:translate3d(0, -210%, 0);transform:translate3d(0, -210%, 0)}}@media(max-width: 575px){.merchant-carousel{padding-left:15px;padding-right:15px}.merchant-carousel:not(.merchant-carousel-nav2) .merchant-carousel-wrapper .merchant-carousel-nav-next{top:auto;bottom:0;right:45%;-webkit-transform:translate3d(50%, 0, 0);transform:translate3d(50%, 0, 0)}.merchant-carousel:not(.merchant-carousel-nav2) .merchant-carousel-wrapper .merchant-carousel-nav-prev{top:auto;bottom:0;right:55%;-webkit-transform:translate3d(50%, 0, 0);transform:translate3d(50%, 0, 0)}}
     1.merchant-carousel{--mrc-carousel-nav-icon-color: #FFF;--mrc-carousel-nav-color: #212121;--mrc-carousel-nav-color-hover: #757575}.merchant-carousel .merchant-carousel-wrapper{position:relative}.merchant-carousel .merchant-carousel-wrapper .products,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage{display:block !important;margin:0;opacity:0;visibility:hidden;-webkit-transition:ease opacity 300ms 300ms;transition:ease opacity 300ms 300ms}.merchant-carousel .merchant-carousel-wrapper .products.row:not(.products),.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage.row:not(.products){display:block}.merchant-carousel .merchant-carousel-wrapper .products.show,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage.show{opacity:1;visibility:visible}.merchant-carousel .merchant-carousel-wrapper .products>div,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage>div{display:-webkit-box;display:-ms-flexbox;display:flex}.merchant-carousel .merchant-carousel-wrapper .products>div>div>.product,.merchant-carousel .merchant-carousel-wrapper .products>div>div>div[class*=col-],.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage>div>div>.product,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-stage>div>div>div[class*=col-]{width:100% !important;max-width:none !important;margin:0 !important;padding:0 !important}.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:hover{opacity:.7}.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:focus,.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav:active{border:none;-webkit-box-shadow:none;box-shadow:none;outline:none}.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav-next{position:absolute;top:-40px;right:0;width:21px;height:21px;border-radius:100%;z-index:1}.merchant-carousel .merchant-carousel-wrapper .merchant-carousel-nav-prev{position:absolute;top:-40px;right:30px;width:21px;height:21px;border-radius:100%;z-index:1}.merchant-carousel.no-nav .merchant-carousel-stage{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(-1*var(--merchant-rvp-columns-gap, 15px)) 0 0 calc(-1*var(--merchant-rvp-columns-gap, 15px)) !important;width:calc(100% + var(--merchant-rvp-columns-gap, 15px)) !important;-webkit-column-gap:0 !important;-moz-column-gap:0 !important;column-gap:0 !important}.merchant-carousel.no-nav .merchant-carousel-stage>li.product{margin:var(--merchant-rvp-columns-gap, 15px) 0 0 var(--merchant-rvp-columns-gap, 15px) !important}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:50%;right:15px;background:var(--mrc-carousel-nav-color);width:35px;height:35px;opacity:0;visibility:hidden;-webkit-transform:translate3d(20px, -210%, 0);transform:translate3d(20px, -210%, 0);-webkit-transition:ease transform 300ms,ease opacity 300ms;transition:ease transform 300ms,ease opacity 300ms}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next svg,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev svg{width:14px;height:14px}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next svg path,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev svg path{stroke:var(--mrc-carousel-nav-icon-color)}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next:hover,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev:hover{background:var(--mrc-carousel-nav-color-hover)}.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev{right:auto;left:15px;-webkit-transform:translate3d(-20px, -210%, 0);transform:translate3d(-20px, -210%, 0)}.merchant-carousel.merchant-carousel-nav2:hover .merchant-carousel-nav-next,.merchant-carousel.merchant-carousel-nav2:hover .merchant-carousel-nav-prev,.merchant-carousel.merchant-carousel-nav2.merchant-carousel-nav2-always-show .merchant-carousel-nav-next,.merchant-carousel.merchant-carousel-nav2.merchant-carousel-nav2-always-show .merchant-carousel-nav-prev{opacity:1;visibility:visible;-webkit-transform:translate3d(0, -210%, 0);transform:translate3d(0, -210%, 0)}@media(max-width: 991px){.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-next,.merchant-carousel.merchant-carousel-nav2 .merchant-carousel-nav-prev{opacity:1;visibility:visible;-webkit-transform:translate3d(0, -210%, 0);transform:translate3d(0, -210%, 0)}}@media(max-width: 575px){.merchant-carousel{padding-left:15px;padding-right:15px}.merchant-carousel:not(.merchant-carousel-nav2) .merchant-carousel-wrapper .merchant-carousel-nav-next{top:auto;bottom:0;right:45%;-webkit-transform:translate3d(50%, 0, 0);transform:translate3d(50%, 0, 0)}.merchant-carousel:not(.merchant-carousel-nav2) .merchant-carousel-wrapper .merchant-carousel-nav-prev{top:auto;bottom:0;right:55%;-webkit-transform:translate3d(50%, 0, 0);transform:translate3d(50%, 0, 0)}}
  • merchant/trunk/assets/css/modules/advanced-reviews/admin/preview.css

    r3036886 r3083515  
    7171}
    7272
     73.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-bar {
     74  width: auto;
     75}
     76
    7377@media (min-width: 1300px) {
    7478  .merchant-star-rating-bars .merchant-star-rating-bar-item {
    75     max-width: 300px;
     79    max-width: 200px;
    7680  }
    7781  .merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar {
  • merchant/trunk/assets/css/modules/advanced-reviews/admin/preview.min.css

    r3028445 r3083515  
    1 .merchant-module-page-preview-browser-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;max-width:600px;margin:auto;padding:25px}.merchant-adv-reviews .merchant-adv-reviews-title{margin-top:25px;margin-bottom:0 !important}.merchant-adv-reviews .merchant-adv-reviews-desc{margin-bottom:0 !important}.merchant-adv-reviews .merchant-adv-reviews-header{margin-top:20px !important}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-total{margin-bottom:15px !important}.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{margin-left:50px}.merchant-adv-reviews .merchant-adv-review-write-button{margin-bottom:auto}.merchant-adv-reviews .merchant-reviews-orderby{pointer-events:none}.merchant-adv-reviews .merchant-adv-reviews-body{margin-bottom:30px !important}.merchant-adv-reviews .merchant-adv-reviews-footer{display:none}.merchant-adv-reviews.hide-title .merchant-adv-reviews-title,.merchant-adv-reviews.hide-title .merchant-adv-reviews-desc{display:none}.merchant-reviews-list-wrapper{margin-top:25px}.merchant-reviews-list-wrapper .merchant-reviews-list-item{padding:15px 0}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-date{top:6px;position:relative;font-size:.8rem}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content{margin-top:5px}.merchant-star-rating-bars .merchant-star-rating-bar-item{max-width:230px}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar{min-width:130px}@media(min-width: 1300px){.merchant-star-rating-bars .merchant-star-rating-bar-item{max-width:300px}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar{min-width:200px}}.star-rating{overflow:hidden;position:relative;height:1.618em;line-height:1.618;width:5.3em;font-family:star;font-weight:400;margin-left:auto;margin-right:auto;letter-spacing:0;color:#ffa441}.star-rating::before{content:"SSSSS";opacity:.25;float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:"SSSSS";top:0;position:absolute;left:0;color:#ffa441}p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;margin-right:1px;font-weight:400}p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:star;content:"S";color:#212121;text-indent:0;opacity:.25}p.stars a:hover~a::before{content:"S";color:#212121;opacity:.25}p.stars:hover a::before{content:"S";color:#ffa441;opacity:1}p.stars.selected a.active::before{content:"S";color:#ffa441;opacity:1}p.stars.selected a.active~a::before{content:"S";color:#212121;opacity:.25}p.stars.selected a:not(.active)::before{content:"S";color:#ffa441;opacity:1}.rtl .merchant-adv-reviews .merchant-adv-reviews-header .mrc-row{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.rtl .merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{-webkit-box-align:self-start;-ms-flex-align:self-start;align-items:self-start}.rtl .merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .star-rating{margin-left:unset !important;margin-right:16px !important}.rtl .merchant-adv-reviews .merchant-star-rating-bars{text-align:right}.rtl .merchant-adv-reviews .merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar .item-bar-inner{left:unset;right:0}.rtl .merchant-adv-reviews .merchant-reviews-list-wrapper .merchant-reviews-list-item .star-rating+.merchant-review-author{margin-right:20px;margin-left:unset}
     1.merchant-module-page-preview-browser-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;max-width:600px;margin:auto;padding:25px}.merchant-adv-reviews .merchant-adv-reviews-title{margin-top:25px;margin-bottom:0 !important}.merchant-adv-reviews .merchant-adv-reviews-desc{margin-bottom:0 !important}.merchant-adv-reviews .merchant-adv-reviews-header{margin-top:20px !important}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-total{margin-bottom:15px !important}.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{margin-left:50px}.merchant-adv-reviews .merchant-adv-review-write-button{margin-bottom:auto}.merchant-adv-reviews .merchant-reviews-orderby{pointer-events:none}.merchant-adv-reviews .merchant-adv-reviews-body{margin-bottom:30px !important}.merchant-adv-reviews .merchant-adv-reviews-footer{display:none}.merchant-adv-reviews.hide-title .merchant-adv-reviews-title,.merchant-adv-reviews.hide-title .merchant-adv-reviews-desc{display:none}.merchant-reviews-list-wrapper{margin-top:25px}.merchant-reviews-list-wrapper .merchant-reviews-list-item{padding:15px 0}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-date{top:6px;position:relative;font-size:.8rem}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content{margin-top:5px}.merchant-star-rating-bars .merchant-star-rating-bar-item{max-width:230px}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar{min-width:130px}.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-bar{width:auto}@media(min-width: 1300px){.merchant-star-rating-bars .merchant-star-rating-bar-item{max-width:200px}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar{min-width:200px}}.star-rating{overflow:hidden;position:relative;height:1.618em;line-height:1.618;width:5.3em;font-family:star;font-weight:400;margin-left:auto;margin-right:auto;letter-spacing:0;color:#ffa441}.star-rating::before{content:"SSSSS";opacity:.25;float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:"SSSSS";top:0;position:absolute;left:0;color:#ffa441}p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;margin-right:1px;font-weight:400}p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:star;content:"S";color:#212121;text-indent:0;opacity:.25}p.stars a:hover~a::before{content:"S";color:#212121;opacity:.25}p.stars:hover a::before{content:"S";color:#ffa441;opacity:1}p.stars.selected a.active::before{content:"S";color:#ffa441;opacity:1}p.stars.selected a.active~a::before{content:"S";color:#212121;opacity:.25}p.stars.selected a:not(.active)::before{content:"S";color:#ffa441;opacity:1}.rtl .merchant-adv-reviews .merchant-adv-reviews-header .mrc-row{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.rtl .merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{-webkit-box-align:self-start;-ms-flex-align:self-start;align-items:self-start}.rtl .merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .star-rating{margin-left:unset !important;margin-right:16px !important}.rtl .merchant-adv-reviews .merchant-star-rating-bars{text-align:right}.rtl .merchant-adv-reviews .merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar .item-bar-inner{left:unset;right:0}.rtl .merchant-adv-reviews .merchant-reviews-list-wrapper .merchant-reviews-list-item .star-rating+.merchant-review-author{margin-right:20px;margin-left:unset}
  • merchant/trunk/assets/css/modules/advanced-reviews/advanced-reviews.css

    r3036886 r3083515  
    77}
    88
    9 .merchant-adv-reviews {
    10   display: block !important;
    11 }
    12 .merchant-adv-reviews:after {
    13   content: none !important;
    14 }
     9.merchant-adv-reviews-modal-photo-slider h2,
    1510.merchant-adv-reviews h2 {
    1611  margin-top: 0;
    1712}
     13@media (min-width: 1025px) {
     14  .merchant-adv-reviews-modal-photo-slider-media-carousel .no-carousel,
     15  .merchant-adv-reviews-media-carousel .no-carousel {
     16    margin-top: 30px;
     17  }
     18  .merchant-adv-reviews-modal-photo-slider-media-carousel .no-carousel .merchant-carousel-stage,
     19  .merchant-adv-reviews-media-carousel .no-carousel .merchant-carousel-stage {
     20    margin: 0 !important;
     21  }
     22  .merchant-adv-reviews-modal-photo-slider-media-carousel .no-carousel .merchant-carousel-stage > .item,
     23  .merchant-adv-reviews-media-carousel .no-carousel .merchant-carousel-stage > .item {
     24    -webkit-box-flex: 0;
     25        -ms-flex: 0 0 32%;
     26            flex: 0 0 32%;
     27    margin-right: 15px;
     28  }
     29  .merchant-adv-reviews-modal-photo-slider-media-carousel .no-carousel .merchant-carousel-stage > .item:last-child,
     30  .merchant-adv-reviews-media-carousel .no-carousel .merchant-carousel-stage > .item:last-child {
     31    margin-right: 0;
     32  }
     33}
     34.merchant-adv-reviews-modal-photo-slider-media-carousel .section-title,
     35.merchant-adv-reviews-media-carousel .section-title {
     36  margin-bottom: 20px;
     37}
     38.merchant-adv-reviews-modal-photo-slider-media-carousel .item,
     39.merchant-adv-reviews-media-carousel .item {
     40  cursor: pointer;
     41}
     42.merchant-adv-reviews-modal-photo-slider-media-carousel .item img,
     43.merchant-adv-reviews-media-carousel .item img {
     44  width: 100%;
     45}
     46.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-title,
     47.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-desc,
    1848.merchant-adv-reviews .merchant-adv-reviews-title,
    1949.merchant-adv-reviews .merchant-adv-reviews-desc {
    2050  text-align: var(--mrc-adv-reviews-title-desc-align, left);
    2151}
     52.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-title,
    2253.merchant-adv-reviews .merchant-adv-reviews-title {
    2354  margin-top: 100px;
     
    2556  color: var(--mrc-adv-reviews-title-color, #212121);
    2657}
    27 .merchant-adv-reviews .merchant-adv-reviews-desc {
    28   color: var(--mrc-adv-reviews-desc-color, #777);
    29 }
     58.merchant-adv-reviews-modal-photo-slider .star-rating,
    3059.merchant-adv-reviews .star-rating {
    3160  float: none !important;
     
    3564  top: 1px;
    3665}
     66.merchant-adv-reviews-modal-photo-slider .star-rating:before,
    3767.merchant-adv-reviews .star-rating:before {
    3868  color: var(--mrc-adv-reviews-stars-bg-color, #777) !important;
    3969}
     70.merchant-adv-reviews-modal-photo-slider .star-rating span:before,
    4071.merchant-adv-reviews .star-rating span:before {
    4172  color: var(--mrc-adv-reviews-stars-color, #FFA441) !important;
    4273}
     74.merchant-adv-reviews-modal-photo-slider .merchant-adv-review-write-button,
     75.merchant-adv-reviews-modal-photo-slider .merchant-pagination-button,
    4376.merchant-adv-reviews .merchant-adv-review-write-button,
    4477.merchant-adv-reviews .merchant-pagination-button {
     
    4881  text-decoration: none !important;
    4982}
     83.merchant-adv-reviews-modal-photo-slider .merchant-adv-review-write-button:hover,
     84.merchant-adv-reviews-modal-photo-slider .merchant-pagination-button:hover,
    5085.merchant-adv-reviews .merchant-adv-review-write-button:hover,
    5186.merchant-adv-reviews .merchant-pagination-button:hover {
     
    5388  color: var(--mrc-adv-reviews-button-color-hover, #FFF) !important;
    5489}
     90.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-desc,
     91.merchant-adv-reviews .merchant-adv-reviews-desc {
     92  color: var(--mrc-adv-reviews-desc-color, #777);
     93}
     94.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header,
    5595.merchant-adv-reviews .merchant-adv-reviews-header {
    5696  margin-top: 45px;
    5797}
     98.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .mrc-right-col,
    5899.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col {
    59100  display: -webkit-box;
     
    69110}
    70111@media screen and (min-width: 445px) and (max-width: 767px) {
     112  .merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .mrc-right-col,
    71113  .merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col {
    72114    -webkit-box-orient: horizontal;
     
    74116        -ms-flex-direction: row;
    75117            flex-direction: row;
    76     -webkit-box-align: center;
    77         -ms-flex-align: center;
    78             align-items: center;
    79118    gap: 30px;
    80119    -webkit-box-pack: justify;
     
    87126}
    88127@media screen and (max-width: 444px) {
     128  .merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .mrc-right-col,
    89129  .merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col {
    90130    -webkit-box-align: start;
     
    94134  }
    95135}
     136.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-reviews-orderby-form,
    96137.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form {
    97138  display: -webkit-box;
     
    106147  margin-bottom: 0 !important;
    107148}
     149.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-reviews-orderby-form label,
    108150.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form label {
    109151  white-space: nowrap;
     
    111153  font-size: 1rem;
    112154}
     155.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-reviews-orderby-form select,
    113156.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form select {
    114157  width: 100%;
     
    125168  font-size: 1rem !important;
    126169}
     170.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper,
    127171.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper {
    128172  display: -webkit-box;
     
    133177          align-items: center;
    134178}
     179.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating,
    135180.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating {
    136181  font-size: 2em;
     
    138183  color: var(--mrc-adv-reviews-title-color, #212121);
    139184}
     185.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating + .star-rating,
    140186.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating + .star-rating {
    141187  margin-left: 16px !important;
    142188}
     189.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-adv-reviews-total,
    143190.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-total {
    144191  font-size: 1.1em;
     
    147194  color: var(--mrc-adv-reviews-title-color, #212121);
    148195}
     196.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-body,
    149197.merchant-adv-reviews .merchant-adv-reviews-body {
    150198  margin-bottom: 50px;
    151199}
     200.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-body #comments,
    152201.merchant-adv-reviews .merchant-adv-reviews-body #comments {
    153202  float: none !important;
     
    158207  border: none !important;
    159208}
     209.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-body .woocommerce-noreviews,
    160210.merchant-adv-reviews .merchant-adv-reviews-body .woocommerce-noreviews {
    161211  margin: 50px 0 0;
    162212}
     213.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-footer,
    163214.merchant-adv-reviews .merchant-adv-reviews-footer {
    164215  text-align: center;
    165216  margin-bottom: 100px;
    166217}
     218.merchant-adv-reviews-modal-photo-slider .merchant-adv-review-write-button,
    167219.merchant-adv-reviews .merchant-adv-review-write-button {
    168220  margin-bottom: 20px;
    169221}
    170222@media screen and (max-width: 767px) {
     223  .merchant-adv-reviews-modal-photo-slider .merchant-adv-review-write-button,
    171224  .merchant-adv-reviews .merchant-adv-review-write-button {
    172225    margin-top: 40px;
     
    176229}
    177230
     231.merchant-adv-reviews {
     232  display: block !important;
     233  width: 100%;
     234}
     235.merchant-adv-reviews:after {
     236  content: none !important;
     237}
     238
    178239.star-rating.merchant-star-rating-style2 {
    179240  font-size: 1.75em;
     
    189250}
    190251
     252.merchant-star-rating-bars {
     253  display: -webkit-box;
     254  display: -ms-flexbox;
     255  display: flex;
     256  -webkit-box-orient: vertical;
     257  -webkit-box-direction: normal;
     258      -ms-flex-direction: column;
     259          flex-direction: column;
     260  gap: 10px;
     261}
    191262.merchant-star-rating-bars .merchant-star-rating-bar-item {
    192263  display: -webkit-box;
     
    196267      -ms-flex-align: center;
    197268          align-items: center;
    198   -webkit-box-pack: justify;
    199       -ms-flex-pack: justify;
    200           justify-content: space-between;
    201   max-width: 410px;
    202 }
    203 .merchant-star-rating-bars .merchant-star-rating-bar-item .item-rating {
    204   min-width: 55px;
     269  cursor: pointer;
     270}
     271.merchant-star-rating-bars .merchant-star-rating-bar-item:hover > div {
     272  opacity: 0.7;
     273}
     274.merchant-star-rating-bars .merchant-star-rating-bar-item.rating-active > div {
     275  opacity: 0.6;
     276}
     277.merchant-star-rating-bars .merchant-star-rating-bar-item svg {
     278  cursor: pointer;
     279  margin-left: 5px;
     280}
     281.merchant-star-rating-bars .merchant-star-rating-bar-item-inner {
     282  display: -webkit-box;
     283  display: -ms-flexbox;
     284  display: flex;
     285  -webkit-box-align: center;
     286      -ms-flex-align: center;
     287          align-items: center;
     288  width: 410px;
     289  position: relative;
     290}
     291@media (max-width: 768px) {
     292  .merchant-star-rating-bars .merchant-star-rating-bar-item-inner {
     293    width: 300px;
     294  }
     295}
     296.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-rating {
     297  width: 60px;
    205298  margin: 0 !important;
    206299  padding: 0 !important;
    207300  color: var(--mrc-adv-reviews-title-color, #212121);
    208301}
    209 .merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar {
     302.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-bar {
    210303  position: relative;
    211   margin-left: 24px;
     304  margin-left: 20px;
    212305  background-color: var(--mrc-adv-reviews-bar-bg-color, #f5f5f5);
    213306  height: 10px;
    214   min-width: 300px;
     307  width: 300px;
    215308  border-radius: 10px;
    216309  overflow: hidden;
    217310}
    218 .merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar .item-bar-inner {
     311.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-bar .item-bar-inner {
    219312  position: absolute;
    220313  top: 0;
     
    225318  border-radius: 10px;
    226319}
    227 .merchant-star-rating-bars .merchant-star-rating-bar-item .item-qty {
     320.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-qty {
    228321  font-size: 0.8rem;
    229322  margin: 0 0 0 10px !important;
    230323  color: var(--mrc-adv-reviews-title-color, #212121);
    231324}
    232 .merchant-star-rating-bars .merchant-star-rating-bar-item + .merchant-star-rating-bar-item {
    233   margin-top: 10px;
    234 }
    235325@media screen and (max-width: 767px) {
    236   .merchant-star-rating-bars .merchant-star-rating-bar-item .item-rating {
     326  .merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-rating {
    237327    white-space: nowrap;
    238328  }
    239   .merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar {
     329  .merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-bar {
    240330    min-width: calc(100% - 125px);
    241331  }
    242   .merchant-star-rating-bars .merchant-star-rating-bar-item .item-qty {
     332  .merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-qty {
    243333    margin-left: auto;
    244334  }
     335}
     336
     337.merchant-review-author {
     338  text-transform: capitalize;
    245339}
    246340
     
    315409  color: var(--mrc-adv-reviews-desc-color, #777);
    316410}
     411.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images {
     412  margin-top: 20px;
     413  display: -webkit-box;
     414  display: -ms-flexbox;
     415  display: flex;
     416  -ms-flex-wrap: wrap;
     417      flex-wrap: wrap;
     418  gap: 10px;
     419}
     420.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image {
     421  position: relative;
     422  width: 100%;
     423  max-width: 100px;
     424  overflow: hidden;
     425  border-radius: 5px;
     426}
     427.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image-overlay {
     428  position: absolute;
     429  top: 0;
     430  left: 0;
     431  width: 100%;
     432  height: 100%;
     433  background-color: rgba(0, 0, 0, 0.5);
     434  opacity: 0;
     435  -webkit-transition: ease opacity 300ms;
     436  transition: ease opacity 300ms;
     437}
     438.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image img {
     439  width: 100%;
     440  display: block;
     441  -o-object-fit: cover;
     442     object-fit: cover;
     443}
     444.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image:hover {
     445  cursor: pointer;
     446}
     447.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image:hover .merchant-review-image-overlay {
     448  opacity: 1;
     449  -webkit-transition: ease opacity 300ms;
     450  transition: ease opacity 300ms;
     451}
    317452.merchant-reviews-list-wrapper .merchant-reviews-list-item + .merchant-reviews-list-item {
    318453  border-top: 1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9);
     
    337472 */
    338473.merchant-adv-reviews-modal {
     474  max-width: none !important;
    339475  position: fixed;
    340476  top: 0;
     
    472608.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form {
    473609  display: block !important;
     610  margin-left: 2px;
     611}
     612.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form > p {
     613  min-width: 100%;
     614  float: none !important;
    474615}
    475616.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p {
     
    489630}
    490631.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) textarea {
     632  max-height: none !important;
     633  height: 110px;
     634}
     635.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) textarea,
     636.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) input {
     637  max-height: 50px;
     638}
     639.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) textarea,
     640.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) input {
    491641  display: block;
    492642  width: 100%;
     
    496646          box-sizing: border-box;
    497647  padding: 13px !important;
     648  border-width: 1px;
     649  border-radius: 2px;
    498650}
    499651.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) #submit {
     
    509661  background-color: var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important;
    510662}
    511 
     663.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p.comment-form-cookies-consent input {
     664  border-width: 1px;
     665  border-radius: 2px;
     666  background-color: var(--mrc-adv-reviews-modal-textarea-bg-color, #FFF) !important;
     667}
     668.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media {
     669  margin-top: 15px;
     670}
     671.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media input[type=file] {
     672  display: none;
     673}
     674.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area {
     675  display: -webkit-box;
     676  display: -ms-flexbox;
     677  display: flex;
     678  -webkit-box-orient: vertical;
     679  -webkit-box-direction: normal;
     680      -ms-flex-direction: column;
     681          flex-direction: column;
     682  -webkit-box-align: center;
     683      -ms-flex-align: center;
     684          align-items: center;
     685  -webkit-box-pack: center;
     686      -ms-flex-pack: center;
     687          justify-content: center;
     688  width: 100%;
     689  height: 100px;
     690  margin: 10px 0 20px;
     691  border-width: 1px;
     692  border-style: dashed;
     693  border-radius: 2px;
     694  cursor: pointer;
     695  -webkit-transition: ease border-color 300ms;
     696  transition: ease border-color 300ms;
     697}
     698.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area:hover {
     699  border-color: var(--mrc-adv-reviews-modal-textarea-color-hover, #212121);
     700}
     701.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area:hover p {
     702  color: var(--mrc-adv-reviews-modal-textarea-color-hover, #212121);
     703}
     704.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area p {
     705  font-size: 0.9rem;
     706}
     707.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area p.hide,
     708.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area .merchant-adv-reviews-upload-icon.hide {
     709  display: none;
     710}
     711.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area .merchant-adv-reviews-loader {
     712  display: none;
     713}
     714.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area .merchant-adv-reviews-loader.show {
     715  display: -webkit-box;
     716  display: -ms-flexbox;
     717  display: flex;
     718  -webkit-animation: rotate 1s linear infinite;
     719          animation: rotate 1s linear infinite;
     720}
     721.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview {
     722  display: -webkit-box;
     723  display: -ms-flexbox;
     724  display: flex;
     725  -ms-flex-wrap: wrap;
     726      flex-wrap: wrap;
     727  gap: 18px;
     728  margin-bottom: 15px;
     729}
     730.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview > div {
     731  -webkit-box-flex: 0;
     732      -ms-flex: 0 0 100px;
     733          flex: 0 0 100px;
     734  height: 90px;
     735  position: relative;
     736}
     737.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview > div:after {
     738  content: none;
     739  background: rgba(0, 0, 0, 0.5);
     740  position: absolute;
     741  inset: 0;
     742}
     743.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview > div:hover:after {
     744  content: "";
     745}
     746.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview > div:hover button {
     747  display: block;
     748}
     749.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview img {
     750  width: 100%;
     751  height: 100%;
     752  -o-object-fit: cover;
     753     object-fit: cover;
     754  border-radius: 3px;
     755}
     756.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview button {
     757  display: none;
     758  position: absolute;
     759  z-index: 2;
     760  top: 3px;
     761  right: 3px;
     762  background: none;
     763  padding: 0;
     764  cursor: pointer;
     765}
     766
     767@-webkit-keyframes rotate {
     768  0% {
     769    -webkit-transform: rotate(0deg);
     770            transform: rotate(0deg);
     771  }
     772  100% {
     773    -webkit-transform: rotate(360deg);
     774            transform: rotate(360deg);
     775  }
     776}
     777
     778@keyframes rotate {
     779  0% {
     780    -webkit-transform: rotate(0deg);
     781            transform: rotate(0deg);
     782  }
     783  100% {
     784    -webkit-transform: rotate(360deg);
     785            transform: rotate(360deg);
     786  }
     787}
    512788.rtl .merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .modal-product-info {
    513789  margin-left: 0;
     
    518794  right: unset;
    519795}
     796
     797.merchant-carousel {
     798  padding: 0 !important;
     799}
     800
     801.merchant-adv-reviews-modal-photo-slider .merchant-carousel {
     802  display: -webkit-box;
     803  display: -ms-flexbox;
     804  display: flex;
     805  -webkit-box-orient: vertical;
     806  -webkit-box-direction: normal;
     807      -ms-flex-direction: column;
     808          flex-direction: column;
     809  -webkit-box-pack: center;
     810      -ms-flex-pack: center;
     811          justify-content: center;
     812  height: 100%;
     813}
     814.merchant-adv-reviews-modal-photo-slider.show {
     815  background: rgba(0, 0, 0, 0.9);
     816}
     817.merchant-adv-reviews-modal-photo-slider.loading:after {
     818  content: "";
     819  position: absolute;
     820  width: 32px;
     821  height: 32px;
     822  border-radius: 50px;
     823  border: 3px solid transparent;
     824  border-top: 3px solid #FFF;
     825  -webkit-animation: spin 1s ease-in-out infinite;
     826          animation: spin 1s ease-in-out infinite;
     827}
     828.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-body {
     829  z-index: 99;
     830}
     831@media (max-width: 768px) {
     832  .merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-body {
     833    max-width: calc(100vw - 100px);
     834  }
     835}
     836.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content {
     837  width: 960px;
     838  max-width: 100%;
     839  margin-right: 0;
     840  padding-right: 0;
     841  overflow: hidden;
     842}
     843.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-close {
     844  z-index: 999;
     845}
     846.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .item {
     847  cursor: pointer;
     848  height: 100%;
     849  display: -webkit-box;
     850  display: -ms-flexbox;
     851  display: flex;
     852  -webkit-box-align: center;
     853      -ms-flex-align: center;
     854          align-items: center;
     855}
     856.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .item img {
     857  width: 100%;
     858  -ms-flex-item-align: center;
     859      align-self: center;
     860}
     861.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .merchant-carousel-nav {
     862  top: 50% !important;
     863  width: 28px;
     864  height: 34px;
     865  line-height: 40px;
     866  -webkit-transform: translateY(-50%) !important;
     867          transform: translateY(-50%) !important;
     868  background: rgba(255, 255, 255, 0.7);
     869  text-align: center;
     870}
     871.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .merchant-carousel-nav:hover {
     872  background: rgb(255, 255, 255);
     873}
     874.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .merchant-carousel-nav-prev {
     875  left: 0 !important;
     876  right: auto !important;
     877  border-radius: 0 5px 5px 0;
     878}
     879.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .merchant-carousel-nav-next {
     880  border-radius: 5px 0 0 5px;
     881  right: 0 !important;
     882  left: auto !important;
     883}
     884.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-content {
     885  display: -webkit-box;
     886  display: -ms-flexbox;
     887  display: flex;
     888  grid-gap: 30px;
     889}
     890.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-body {
     891  padding: 0;
     892}
     893.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column {
     894  -webkit-box-flex: 1;
     895      -ms-flex: 1;
     896          flex: 1;
     897  width: 50%;
     898  overflow: hidden;
     899  position: relative;
     900}
     901.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column:first-child {
     902  background: #000;
     903  padding: 0 20px;
     904}
     905.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column:last-child {
     906  padding: 30px 0;
     907}
     908.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column-review {
     909  padding: 40px 50px 40px 0;
     910  height: 100%;
     911  display: -webkit-box;
     912  display: -ms-flexbox;
     913  display: flex;
     914  -webkit-box-orient: vertical;
     915  -webkit-box-direction: normal;
     916      -ms-flex-direction: column;
     917          flex-direction: column;
     918  gap: 15px;
     919}
     920.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column-review-title {
     921  margin-block: 0;
     922  font-size: 24px;
     923  line-height: 1.4;
     924}
     925.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column .merchant-review-content {
     926  overflow-y: auto;
     927}
     928
     929@-webkit-keyframes spin {
     930  0% {
     931    -webkit-transform: rotate(0deg);
     932            transform: rotate(0deg);
     933  }
     934  100% {
     935    -webkit-transform: rotate(360deg);
     936            transform: rotate(360deg);
     937  }
     938}
     939
     940@keyframes spin {
     941  0% {
     942    -webkit-transform: rotate(0deg);
     943            transform: rotate(0deg);
     944  }
     945  100% {
     946    -webkit-transform: rotate(360deg);
     947            transform: rotate(360deg);
     948  }
     949}
     950.merchant-adv-reviews-modal-next-prev {
     951  position: absolute;
     952  top: 50%;
     953  -webkit-transform: translateY(-50%);
     954          transform: translateY(-50%);
     955  background: none !important;
     956  z-index: 999;
     957  border: none;
     958  -webkit-box-shadow: none;
     959          box-shadow: none;
     960  outline: none;
     961  padding: 15px;
     962  margin: 0;
     963}
     964.merchant-adv-reviews-modal-next-prev:focus, .merchant-adv-reviews-modal-next-prev:active {
     965  outline: none;
     966}
     967
     968.merchant-adv-reviews-modal-photo-slider-single-review .merchant-adv-reviews-modal-next-prev {
     969  display: none;
     970}
     971
     972.merchant-adv-reviews-modal-next {
     973  right: 10px;
     974}
     975
     976.merchant-adv-reviews-modal-prev {
     977  left: 10px;
     978}
  • merchant/trunk/assets/css/modules/advanced-reviews/advanced-reviews.min.css

    r3028445 r3083515  
    1 body:not(.merchant-pagination-load-more) .merchant-pagination-wrapper{display:none}.merchant-adv-reviews{display:block !important}.merchant-adv-reviews:after{content:none !important}.merchant-adv-reviews h2{margin-top:0}.merchant-adv-reviews .merchant-adv-reviews-title,.merchant-adv-reviews .merchant-adv-reviews-desc{text-align:var(--mrc-adv-reviews-title-desc-align, left)}.merchant-adv-reviews .merchant-adv-reviews-title{margin-top:100px;margin-bottom:20px !important;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-adv-reviews .merchant-adv-reviews-desc{color:var(--mrc-adv-reviews-desc-color, #777)}.merchant-adv-reviews .star-rating{float:none !important;margin:0 !important;font-size:var(--mrc-adv-reviews-start-font-size, 20px) !important;color:var(--mrc-adv-reviews-stars-color, #FFA441) !important;top:1px}.merchant-adv-reviews .star-rating:before{color:var(--mrc-adv-reviews-stars-bg-color, #777) !important}.merchant-adv-reviews .star-rating span:before{color:var(--mrc-adv-reviews-stars-color, #FFA441) !important}.merchant-adv-reviews .merchant-adv-review-write-button,.merchant-adv-reviews .merchant-pagination-button{background-color:var(--mrc-adv-reviews-button-bg-color, #212121) !important;color:var(--mrc-adv-reviews-button-color, #FFF) !important;padding:8px 23px;text-decoration:none !important}.merchant-adv-reviews .merchant-adv-review-write-button:hover,.merchant-adv-reviews .merchant-pagination-button:hover{background-color:var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important;color:var(--mrc-adv-reviews-button-color-hover, #FFF) !important}.merchant-adv-reviews .merchant-adv-reviews-header{margin-top:45px}.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:self-end;-ms-flex-align:self-end;align-items:self-end}@media screen and (min-width: 445px)and (max-width: 767px){.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:30px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:self-start;-ms-flex-align:self-start;align-items:self-start}}@media screen and (max-width: 444px){.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;gap:20px}}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin-top:auto;margin-bottom:0 !important}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form label{white-space:nowrap;margin:0 7px 0 0;font-size:1rem}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form select{width:100%;border:1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23212121' viewBox='0 0 448 512'%3E%3Cpath d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:calc(100% - 18px) center;background-size:10px;padding:10px 40px 10px 18px !important;height:auto !important;font-size:1rem !important}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating{font-size:2em;line-height:1.4;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating+.star-rating{margin-left:16px !important}.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-total{font-size:1.1em;margin-top:10px;margin-bottom:30px;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-adv-reviews .merchant-adv-reviews-body{margin-bottom:50px}.merchant-adv-reviews .merchant-adv-reviews-body #comments{float:none !important;width:100% !important;max-width:100% !important;padding:0 !important;margin:0 !important;border:none !important}.merchant-adv-reviews .merchant-adv-reviews-body .woocommerce-noreviews{margin:50px 0 0}.merchant-adv-reviews .merchant-adv-reviews-footer{text-align:center;margin-bottom:100px}.merchant-adv-reviews .merchant-adv-review-write-button{margin-bottom:20px}@media screen and (max-width: 767px){.merchant-adv-reviews .merchant-adv-review-write-button{margin-top:40px;margin-bottom:0;text-align:center}}.star-rating.merchant-star-rating-style2{font-size:1.75em;margin:0}.star-rating.merchant-star-rating-style2:before{opacity:1}@media screen and (max-width: 767px){.star-rating.merchant-star-rating-style2{font-size:1em}}.merchant-star-rating-bars .merchant-star-rating-bar-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-width:410px}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-rating{min-width:55px;margin:0 !important;padding:0 !important;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar{position:relative;margin-left:24px;background-color:var(--mrc-adv-reviews-bar-bg-color, #f5f5f5);height:10px;min-width:300px;border-radius:10px;overflow:hidden}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar .item-bar-inner{position:absolute;top:0;left:0;background-color:var(--mrc-adv-reviews-bar-color, #212121);width:0%;height:100%;border-radius:10px}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-qty{font-size:.8rem;margin:0 0 0 10px !important;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-star-rating-bars .merchant-star-rating-bar-item+.merchant-star-rating-bar-item{margin-top:10px}@media screen and (max-width: 767px){.merchant-star-rating-bars .merchant-star-rating-bar-item .item-rating{white-space:nowrap}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-bar{min-width:calc(100% - 125px)}.merchant-star-rating-bars .merchant-star-rating-bar-item .item-qty{margin-left:auto}}.merchant-reviews-list-wrapper{border-top:1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9);border-bottom:1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9);margin-top:40px}.merchant-reviews-list-wrapper .merchant-reviews-list-item{padding:40px 0}.merchant-reviews-list-wrapper .merchant-reviews-list-item p{margin-bottom:20px}.merchant-reviews-list-wrapper .merchant-reviews-list-item p:last-of-type{margin-bottom:0}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-reviews-author-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.merchant-reviews-list-wrapper .merchant-reviews-list-item .star-rating+.merchant-review-author{margin-left:20px}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-author{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:1.05em;color:var(--mrc-adv-reviews-title-color, #212121)}@media screen and (max-width: 767px){.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-author{font-size:.8em}}.merchant-reviews-list-wrapper .merchant-reviews-list-item .verified{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:6px;font-size:.7rem;font-weight:100}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-date{font-size:.8rem;color:var(--mrc-adv-reviews-desc-color, #777)}@media(min-width: 768px){.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-date-wrapper{text-align:right}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-date{font-size:1rem}}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content{margin-top:25px;color:var(--mrc-adv-reviews-desc-color, #777)}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content p{color:var(--mrc-adv-reviews-desc-color, #777)}.merchant-reviews-list-wrapper .merchant-reviews-list-item+.merchant-reviews-list-item{border-top:1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9)}.merchant-adv-reviews-pagination.woocommerce-pagination ul li span.current{color:var(--mrc-adv-reviews-button-color, #FFF) !important;border-color:var(--mrc-adv-reviews-button-bg-color, #212121) !important;background-color:var(--mrc-adv-reviews-button-bg-color, #212121) !important}.merchant-adv-reviews-pagination.woocommerce-pagination ul li a:hover,.merchant-adv-reviews-pagination.woocommerce-pagination ul li a:focus{color:var(--mrc-adv-reviews-button-color-hover, #FFF) !important;border-color:var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important;background-color:var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important}.merchant-adv-reviews-modal{position:fixed;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:rgba(33,33,33,.8);visibility:hidden;opacity:0;-webkit-transition:ease opacity 300ms;transition:ease opacity 300ms;z-index:99999}.merchant-adv-reviews-modal.show{opacity:1;visibility:visible}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body{position:relative;padding:50px 33px 50px 50px;background-color:var(--mrc-adv-reviews-modal-bg-color, #f5f5f5);max-width:calc(100vw - 40px)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close{position:absolute;top:25px;right:30px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close .icon-cancel{cursor:pointer}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close .icon-cancel path{fill:var(--mrc-adv-reviews-modal-close-icon-color, #212121);-webkit-transform:scale(0.75);transform:scale(0.75)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close:hover .icon-cancel path{fill:var(--mrc-adv-reviews-modal-close-icon-color-hover, #757575)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content{width:100%;padding-right:17px;max-width:500px;max-height:85vh;overflow-y:auto}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content::-webkit-scrollbar{width:7px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content::-webkit-scrollbar-track{background:#e2e2e2}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content::-webkit-scrollbar-thumb{background-color:#ccc}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content h4{margin:0 0 20px 0 !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content h5{margin:0 0 10px 0 !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content p{margin:0 !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content p+p{margin-top:10px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .modal-title{font-size:1rem;font-weight:600;margin-top:0;color:var(--mrc-adv-reviews-modal-title-color, #212121)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .modal-title+.stars{margin-top:10px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin-bottom:20px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product img{max-width:100px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product .modal-product-info{margin-left:25px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product .modal-product-info h5{margin-top:5px;margin-bottom:10px;font-size:1rem;font-weight:600;color:var(--mrc-adv-reviews-modal-title-color, #212121)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product .modal-product-info p{font-size:.9rem;color:var(--mrc-adv-reviews-modal-desc-color, #777)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product .modal-product-info p:last-of-type{margin-bottom:0}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form-rating{display:block !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form-rating .modal-title{display:block !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .stars{font-size:1.5rem;margin-top:10px;margin-bottom:15px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .stars a:before{color:var(--mrc-adv-reviews-stars-bg-color, #757575) !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .stars:hover a:before,.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .stars.selected a:before{color:var(--mrc-adv-reviews-stars-color, #FFA441) !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form-comment{margin-top:15px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form{display:block !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p{margin-bottom:20px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:last-of-type{margin-bottom:0}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p.form-submit{display:block !important;float:none !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) label{display:block;margin-bottom:10px;color:var(--mrc-adv-reviews-modal-title-color, #212121) !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) textarea{display:block;width:100%;color:var(--mrc-adv-reviews-modal-textarea-color, #777) !important;background-color:var(--mrc-adv-reviews-modal-textarea-bg-color, #FFF) !important;-webkit-box-sizing:border-box;box-sizing:border-box;padding:13px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) #submit{display:block !important;color:var(--mrc-adv-reviews-button-color, #FFF) !important;background-color:var(--mrc-adv-reviews-button-bg-color, #212121) !important;width:100% !important;padding:13px !important;font-weight:400 !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) #submit:hover,.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) #submit:focus{color:var(--mrc-adv-reviews-button-color-hover, #FFF) !important;background-color:var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important}.rtl .merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .modal-product-info{margin-left:0;margin-right:25px}.rtl .merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close{left:30px;right:unset}
     1body:not(.merchant-pagination-load-more) .merchant-pagination-wrapper{display:none}.merchant-adv-reviews-modal-photo-slider h2,.merchant-adv-reviews h2{margin-top:0}@media(min-width: 1025px){.merchant-adv-reviews-modal-photo-slider-media-carousel .no-carousel,.merchant-adv-reviews-media-carousel .no-carousel{margin-top:30px}.merchant-adv-reviews-modal-photo-slider-media-carousel .no-carousel .merchant-carousel-stage,.merchant-adv-reviews-media-carousel .no-carousel .merchant-carousel-stage{margin:0 !important}.merchant-adv-reviews-modal-photo-slider-media-carousel .no-carousel .merchant-carousel-stage>.item,.merchant-adv-reviews-media-carousel .no-carousel .merchant-carousel-stage>.item{-webkit-box-flex:0;-ms-flex:0 0 32%;flex:0 0 32%;margin-right:15px}.merchant-adv-reviews-modal-photo-slider-media-carousel .no-carousel .merchant-carousel-stage>.item:last-child,.merchant-adv-reviews-media-carousel .no-carousel .merchant-carousel-stage>.item:last-child{margin-right:0}}.merchant-adv-reviews-modal-photo-slider-media-carousel .section-title,.merchant-adv-reviews-media-carousel .section-title{margin-bottom:20px}.merchant-adv-reviews-modal-photo-slider-media-carousel .item,.merchant-adv-reviews-media-carousel .item{cursor:pointer}.merchant-adv-reviews-modal-photo-slider-media-carousel .item img,.merchant-adv-reviews-media-carousel .item img{width:100%}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-title,.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-desc,.merchant-adv-reviews .merchant-adv-reviews-title,.merchant-adv-reviews .merchant-adv-reviews-desc{text-align:var(--mrc-adv-reviews-title-desc-align, left)}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-title,.merchant-adv-reviews .merchant-adv-reviews-title{margin-top:100px;margin-bottom:20px !important;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-adv-reviews-modal-photo-slider .star-rating,.merchant-adv-reviews .star-rating{float:none !important;margin:0 !important;font-size:var(--mrc-adv-reviews-start-font-size, 20px) !important;color:var(--mrc-adv-reviews-stars-color, #FFA441) !important;top:1px}.merchant-adv-reviews-modal-photo-slider .star-rating:before,.merchant-adv-reviews .star-rating:before{color:var(--mrc-adv-reviews-stars-bg-color, #777) !important}.merchant-adv-reviews-modal-photo-slider .star-rating span:before,.merchant-adv-reviews .star-rating span:before{color:var(--mrc-adv-reviews-stars-color, #FFA441) !important}.merchant-adv-reviews-modal-photo-slider .merchant-adv-review-write-button,.merchant-adv-reviews-modal-photo-slider .merchant-pagination-button,.merchant-adv-reviews .merchant-adv-review-write-button,.merchant-adv-reviews .merchant-pagination-button{background-color:var(--mrc-adv-reviews-button-bg-color, #212121) !important;color:var(--mrc-adv-reviews-button-color, #FFF) !important;padding:8px 23px;text-decoration:none !important}.merchant-adv-reviews-modal-photo-slider .merchant-adv-review-write-button:hover,.merchant-adv-reviews-modal-photo-slider .merchant-pagination-button:hover,.merchant-adv-reviews .merchant-adv-review-write-button:hover,.merchant-adv-reviews .merchant-pagination-button:hover{background-color:var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important;color:var(--mrc-adv-reviews-button-color-hover, #FFF) !important}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-desc,.merchant-adv-reviews .merchant-adv-reviews-desc{color:var(--mrc-adv-reviews-desc-color, #777)}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header,.merchant-adv-reviews .merchant-adv-reviews-header{margin-top:45px}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .mrc-right-col,.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:self-end;-ms-flex-align:self-end;align-items:self-end}@media screen and (min-width: 445px)and (max-width: 767px){.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .mrc-right-col,.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:30px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:self-start;-ms-flex-align:self-start;align-items:self-start}}@media screen and (max-width: 444px){.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .mrc-right-col,.merchant-adv-reviews .merchant-adv-reviews-header .mrc-right-col{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;gap:20px}}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-reviews-orderby-form,.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin-top:auto;margin-bottom:0 !important}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-reviews-orderby-form label,.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form label{white-space:nowrap;margin:0 7px 0 0;font-size:1rem}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-reviews-orderby-form select,.merchant-adv-reviews .merchant-adv-reviews-header .merchant-reviews-orderby-form select{width:100%;border:1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23212121' viewBox='0 0 448 512'%3E%3Cpath d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z' /%3E%3C/svg%3E");background-repeat:no-repeat;background-position:calc(100% - 18px) center;background-size:10px;padding:10px 40px 10px 18px !important;height:auto !important;font-size:1rem !important}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper,.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating,.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating{font-size:2em;line-height:1.4;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating+.star-rating,.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-rating-wrapper .merchant-adv-reviews-rating+.star-rating{margin-left:16px !important}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-header .merchant-adv-reviews-total,.merchant-adv-reviews .merchant-adv-reviews-header .merchant-adv-reviews-total{font-size:1.1em;margin-top:10px;margin-bottom:30px;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-body,.merchant-adv-reviews .merchant-adv-reviews-body{margin-bottom:50px}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-body #comments,.merchant-adv-reviews .merchant-adv-reviews-body #comments{float:none !important;width:100% !important;max-width:100% !important;padding:0 !important;margin:0 !important;border:none !important}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-body .woocommerce-noreviews,.merchant-adv-reviews .merchant-adv-reviews-body .woocommerce-noreviews{margin:50px 0 0}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-footer,.merchant-adv-reviews .merchant-adv-reviews-footer{text-align:center;margin-bottom:100px}.merchant-adv-reviews-modal-photo-slider .merchant-adv-review-write-button,.merchant-adv-reviews .merchant-adv-review-write-button{margin-bottom:20px}@media screen and (max-width: 767px){.merchant-adv-reviews-modal-photo-slider .merchant-adv-review-write-button,.merchant-adv-reviews .merchant-adv-review-write-button{margin-top:40px;margin-bottom:0;text-align:center}}.merchant-adv-reviews{display:block !important;width:100%}.merchant-adv-reviews:after{content:none !important}.star-rating.merchant-star-rating-style2{font-size:1.75em;margin:0}.star-rating.merchant-star-rating-style2:before{opacity:1}@media screen and (max-width: 767px){.star-rating.merchant-star-rating-style2{font-size:1em}}.merchant-star-rating-bars{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:10px}.merchant-star-rating-bars .merchant-star-rating-bar-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.merchant-star-rating-bars .merchant-star-rating-bar-item:hover>div{opacity:.7}.merchant-star-rating-bars .merchant-star-rating-bar-item.rating-active>div{opacity:.6}.merchant-star-rating-bars .merchant-star-rating-bar-item svg{cursor:pointer;margin-left:5px}.merchant-star-rating-bars .merchant-star-rating-bar-item-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:410px;position:relative}@media(max-width: 768px){.merchant-star-rating-bars .merchant-star-rating-bar-item-inner{width:300px}}.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-rating{width:60px;margin:0 !important;padding:0 !important;color:var(--mrc-adv-reviews-title-color, #212121)}.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-bar{position:relative;margin-left:20px;background-color:var(--mrc-adv-reviews-bar-bg-color, #f5f5f5);height:10px;width:300px;border-radius:10px;overflow:hidden}.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-bar .item-bar-inner{position:absolute;top:0;left:0;background-color:var(--mrc-adv-reviews-bar-color, #212121);width:0%;height:100%;border-radius:10px}.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-qty{font-size:.8rem;margin:0 0 0 10px !important;color:var(--mrc-adv-reviews-title-color, #212121)}@media screen and (max-width: 767px){.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-rating{white-space:nowrap}.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-bar{min-width:calc(100% - 125px)}.merchant-star-rating-bars .merchant-star-rating-bar-item-inner .item-qty{margin-left:auto}}.merchant-review-author{text-transform:capitalize}.merchant-reviews-list-wrapper{border-top:1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9);border-bottom:1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9);margin-top:40px}.merchant-reviews-list-wrapper .merchant-reviews-list-item{padding:40px 0}.merchant-reviews-list-wrapper .merchant-reviews-list-item p{margin-bottom:20px}.merchant-reviews-list-wrapper .merchant-reviews-list-item p:last-of-type{margin-bottom:0}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-reviews-author-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.merchant-reviews-list-wrapper .merchant-reviews-list-item .star-rating+.merchant-review-author{margin-left:20px}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-author{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:1.05em;color:var(--mrc-adv-reviews-title-color, #212121)}@media screen and (max-width: 767px){.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-author{font-size:.8em}}.merchant-reviews-list-wrapper .merchant-reviews-list-item .verified{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:6px;font-size:.7rem;font-weight:100}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-date{font-size:.8rem;color:var(--mrc-adv-reviews-desc-color, #777)}@media(min-width: 768px){.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-date-wrapper{text-align:right}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-date{font-size:1rem}}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content{margin-top:25px;color:var(--mrc-adv-reviews-desc-color, #777)}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content p{color:var(--mrc-adv-reviews-desc-color, #777)}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images{margin-top:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image{position:relative;width:100%;max-width:100px;overflow:hidden;border-radius:5px}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);opacity:0;-webkit-transition:ease opacity 300ms;transition:ease opacity 300ms}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image img{width:100%;display:block;-o-object-fit:cover;object-fit:cover}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image:hover{cursor:pointer}.merchant-reviews-list-wrapper .merchant-reviews-list-item .merchant-review-content .merchant-review-images .merchant-review-image:hover .merchant-review-image-overlay{opacity:1;-webkit-transition:ease opacity 300ms;transition:ease opacity 300ms}.merchant-reviews-list-wrapper .merchant-reviews-list-item+.merchant-reviews-list-item{border-top:1px solid var(--mrc-adv-reviews-dividers-color, #e9e9e9)}.merchant-adv-reviews-pagination.woocommerce-pagination ul li span.current{color:var(--mrc-adv-reviews-button-color, #FFF) !important;border-color:var(--mrc-adv-reviews-button-bg-color, #212121) !important;background-color:var(--mrc-adv-reviews-button-bg-color, #212121) !important}.merchant-adv-reviews-pagination.woocommerce-pagination ul li a:hover,.merchant-adv-reviews-pagination.woocommerce-pagination ul li a:focus{color:var(--mrc-adv-reviews-button-color-hover, #FFF) !important;border-color:var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important;background-color:var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important}.merchant-adv-reviews-modal{max-width:none !important;position:fixed;top:0;right:0;bottom:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:rgba(33,33,33,.8);visibility:hidden;opacity:0;-webkit-transition:ease opacity 300ms;transition:ease opacity 300ms;z-index:99999}.merchant-adv-reviews-modal.show{opacity:1;visibility:visible}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body{position:relative;padding:50px 33px 50px 50px;background-color:var(--mrc-adv-reviews-modal-bg-color, #f5f5f5);max-width:calc(100vw - 40px)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close{position:absolute;top:25px;right:30px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close .icon-cancel{cursor:pointer}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close .icon-cancel path{fill:var(--mrc-adv-reviews-modal-close-icon-color, #212121);-webkit-transform:scale(0.75);transform:scale(0.75)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close:hover .icon-cancel path{fill:var(--mrc-adv-reviews-modal-close-icon-color-hover, #757575)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content{width:100%;padding-right:17px;max-width:500px;max-height:85vh;overflow-y:auto}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content::-webkit-scrollbar{width:7px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content::-webkit-scrollbar-track{background:#e2e2e2}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content::-webkit-scrollbar-thumb{background-color:#ccc}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content h4{margin:0 0 20px 0 !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content h5{margin:0 0 10px 0 !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content p{margin:0 !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content p+p{margin-top:10px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .modal-title{font-size:1rem;font-weight:600;margin-top:0;color:var(--mrc-adv-reviews-modal-title-color, #212121)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .modal-title+.stars{margin-top:10px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin-bottom:20px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product img{max-width:100px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product .modal-product-info{margin-left:25px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product .modal-product-info h5{margin-top:5px;margin-bottom:10px;font-size:1rem;font-weight:600;color:var(--mrc-adv-reviews-modal-title-color, #212121)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product .modal-product-info p{font-size:.9rem;color:var(--mrc-adv-reviews-modal-desc-color, #777)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .merchant-adv-reviews-modal-product .modal-product-info p:last-of-type{margin-bottom:0}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form-rating{display:block !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form-rating .modal-title{display:block !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .stars{font-size:1.5rem;margin-top:10px;margin-bottom:15px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .stars a:before{color:var(--mrc-adv-reviews-stars-bg-color, #757575) !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .stars:hover a:before,.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .stars.selected a:before{color:var(--mrc-adv-reviews-stars-color, #FFA441) !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form-comment{margin-top:15px !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form{display:block !important;margin-left:2px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form>p{min-width:100%;float:none !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p{margin-bottom:20px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:last-of-type{margin-bottom:0}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p.form-submit{display:block !important;float:none !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) label{display:block;margin-bottom:10px;color:var(--mrc-adv-reviews-modal-title-color, #212121) !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) textarea{max-height:none !important;height:110px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) textarea,.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) input{max-height:50px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) textarea,.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) input{display:block;width:100%;color:var(--mrc-adv-reviews-modal-textarea-color, #777) !important;background-color:var(--mrc-adv-reviews-modal-textarea-bg-color, #FFF) !important;-webkit-box-sizing:border-box;box-sizing:border-box;padding:13px !important;border-width:1px;border-radius:2px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) #submit{display:block !important;color:var(--mrc-adv-reviews-button-color, #FFF) !important;background-color:var(--mrc-adv-reviews-button-bg-color, #212121) !important;width:100% !important;padding:13px !important;font-weight:400 !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) #submit:hover,.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p:not(.comment-form-cookies-consent) #submit:focus{color:var(--mrc-adv-reviews-button-color-hover, #FFF) !important;background-color:var(--mrc-adv-reviews-button-bg-color-hover, #757575) !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form p.comment-form-cookies-consent input{border-width:1px;border-radius:2px;background-color:var(--mrc-adv-reviews-modal-textarea-bg-color, #FFF) !important}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media{margin-top:15px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media input[type=file]{display:none}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100px;margin:10px 0 20px;border-width:1px;border-style:dashed;border-radius:2px;cursor:pointer;-webkit-transition:ease border-color 300ms;transition:ease border-color 300ms}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area:hover{border-color:var(--mrc-adv-reviews-modal-textarea-color-hover, #212121)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area:hover p{color:var(--mrc-adv-reviews-modal-textarea-color-hover, #212121)}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area p{font-size:.9rem}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area p.hide,.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area .merchant-adv-reviews-upload-icon.hide{display:none}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area .merchant-adv-reviews-loader{display:none}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media #merchant-adv-reviews-drop-area .merchant-adv-reviews-loader.show{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-animation:rotate 1s linear infinite;animation:rotate 1s linear infinite}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:18px;margin-bottom:15px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview>div{-webkit-box-flex:0;-ms-flex:0 0 100px;flex:0 0 100px;height:90px;position:relative}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview>div:after{content:none;background:rgba(0,0,0,.5);position:absolute;inset:0}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview>div:hover:after{content:""}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview>div:hover button{display:block}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:3px}.merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .comment-form .merchant-adv-reviews-media .merchant-adv-reviews-upload-preview button{display:none;position:absolute;z-index:2;top:3px;right:3px;background:none;padding:0;cursor:pointer}@-webkit-keyframes rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.rtl .merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content .modal-product-info{margin-left:0;margin-right:25px}.rtl .merchant-adv-reviews-modal .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-close{left:30px;right:unset}.merchant-carousel{padding:0 !important}.merchant-adv-reviews-modal-photo-slider .merchant-carousel{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100%}.merchant-adv-reviews-modal-photo-slider.show{background:rgba(0,0,0,.9)}.merchant-adv-reviews-modal-photo-slider.loading:after{content:"";position:absolute;width:32px;height:32px;border-radius:50px;border:3px solid rgba(0,0,0,0);border-top:3px solid #fff;-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-body{z-index:99}@media(max-width: 768px){.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-body{max-width:calc(100vw - 100px)}}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-body .merchant-adv-reviews-modal-content{width:960px;max-width:100%;margin-right:0;padding-right:0;overflow:hidden}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-close{z-index:999}.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .item{cursor:pointer;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .item img{width:100%;-ms-flex-item-align:center;align-self:center}.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .merchant-carousel-nav{top:50% !important;width:28px;height:34px;line-height:40px;-webkit-transform:translateY(-50%) !important;transform:translateY(-50%) !important;background:rgba(255,255,255,.7);text-align:center}.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .merchant-carousel-nav:hover{background:#fff}.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .merchant-carousel-nav-prev{left:0 !important;right:auto !important;border-radius:0 5px 5px 0}.merchant-adv-reviews-modal-photo-slider .merchant-carousel-wrapper .merchant-carousel-nav-next{border-radius:5px 0 0 5px;right:0 !important;left:auto !important}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-content{display:-webkit-box;display:-ms-flexbox;display:flex;grid-gap:30px}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-body{padding:0}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column{-webkit-box-flex:1;-ms-flex:1;flex:1;width:50%;overflow:hidden;position:relative}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column:first-child{background:#000;padding:0 20px}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column:last-child{padding:30px 0}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column-review{padding:40px 50px 40px 0;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:15px}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column-review-title{margin-block:0;font-size:24px;line-height:1.4}.merchant-adv-reviews-modal-photo-slider .merchant-adv-reviews-modal-column .merchant-review-content{overflow-y:auto}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.merchant-adv-reviews-modal-next-prev{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none !important;z-index:999;border:none;-webkit-box-shadow:none;box-shadow:none;outline:none;padding:15px;margin:0}.merchant-adv-reviews-modal-next-prev:focus,.merchant-adv-reviews-modal-next-prev:active{outline:none}.merchant-adv-reviews-modal-photo-slider-single-review .merchant-adv-reviews-modal-next-prev{display:none}.merchant-adv-reviews-modal-next{right:10px}.merchant-adv-reviews-modal-prev{left:10px}
  • merchant/trunk/assets/css/modules/free-gifts/admin/preview.css

    r3046468 r3083515  
    3838  display: -ms-flexbox;
    3939  display: flex;
    40   gap: 25px;
     40  -webkit-box-align: center;
     41      -ms-flex-align: center;
     42          align-items: center;
     43  gap: 30px;
     44  /**
     45   * Star rating
     46   */
    4147}
    4248.mrc-preview-single-product-elements .mrc-preview-left-column {
    43   width: 30%;
    44   min-width: 30%;
     49  width: 38%;
     50  min-width: 38%;
     51  height: 350px;
     52}
     53.mrc-preview-single-product-elements .mrc-preview-left-column > div {
     54  height: 100%;
    4555}
    4656.mrc-preview-single-product-elements .mrc-preview-right-column {
    47   width: 70%;
    48   padding-top: 25px;
     57  width: 55%;
    4958}
    5059.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image {
    5160  background-color: #f5f5f5;
    52   height: 12vw;
     61  height: 100%;
    5362}
    5463.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image-thumbs {
     
    6675  background-color: #f5f5f5;
    6776  margin-top: 10px;
     77}
     78.mrc-preview-single-product-elements .merchant-preview-add-to-cart-inner {
     79  display: -webkit-box;
     80  display: -ms-flexbox;
     81  display: flex;
     82  gap: 15px;
     83  pointer-events: none;
     84}
     85.mrc-preview-single-product-elements .merchant-preview-add-to-cart {
     86  -webkit-box-flex: 1;
     87      -ms-flex: 1;
     88          flex: 1;
     89  background-color: #E5E5E5;
     90  color: #fff;
     91  border: none;
     92  padding: 10px;
     93  text-transform: uppercase;
     94  text-decoration: none;
     95  font-size: 10px;
     96  text-align: center;
     97}
     98.mrc-preview-single-product-elements .merchant-preview-qty {
     99  border: 1px solid #E5E5E5;
     100  display: -webkit-box;
     101  display: -ms-flexbox;
     102  display: flex;
     103  gap: 0;
     104  width: auto;
     105}
     106.mrc-preview-single-product-elements .merchant-preview-qty button,
     107.mrc-preview-single-product-elements .merchant-preview-qty input {
     108  border: none;
     109  background: none;
     110  outline: none;
     111  width: 20px;
     112  -webkit-box-flex: 1;
     113      -ms-flex: 1;
     114          flex: 1;
     115  color: #E5E5E5;
     116  text-align: center;
     117}
     118.mrc-preview-single-product-elements .merchant-preview-qty input {
     119  padding: 0;
     120  margin: 0;
     121}
     122.mrc-preview-single-product-elements .merchant-preview-qty button {
     123  width: 30px;
     124  padding: 5px;
     125}
     126.mrc-preview-single-product-elements .mrc-preview-rating {
     127  display: -webkit-box;
     128  display: -ms-flexbox;
     129  display: flex;
     130  gap: 5px;
     131  -webkit-box-align: center;
     132      -ms-flex-align: center;
     133          align-items: center;
     134}
     135.mrc-preview-single-product-elements .star-rating {
     136  overflow: hidden;
     137  position: relative;
     138  height: 1.618em;
     139  line-height: 1.618;
     140  width: 5.3em;
     141  font-family: star;
     142  font-weight: 400;
     143  letter-spacing: 0;
     144  color: #969696;
     145}
     146.mrc-preview-single-product-elements .star-rating::before {
     147  content: "SSSSS";
     148  opacity: 0.25;
     149  float: left;
     150  top: 0;
     151  left: 0;
     152  position: absolute;
     153}
     154.mrc-preview-single-product-elements .star-rating span {
     155  overflow: hidden;
     156  float: left;
     157  top: 0;
     158  left: 0;
     159  position: absolute;
     160  padding-top: 1.5em;
     161}
     162.mrc-preview-single-product-elements .star-rating span::before {
     163  content: "SSSSS";
     164  top: 0;
     165  position: absolute;
     166  left: 0;
     167  color: #FFA441;
    68168}
    69169
     
    109209#merchant-free-gifts-widget {
    110210  position: absolute;
    111   top: 50px;
    112 }
     211}
  • merchant/trunk/assets/css/modules/free-gifts/admin/preview.min.css

    r3046468 r3083515  
    1 .merchant-flexible-content-control.free-gifts-style .layout:not(.active){border-color:#5c5f62}.merchant-flexible-content-control.free-gifts-style .layout .layout-body{padding:15px;grid-gap:unset}.merchant-flexible-content-control.free-gifts-style .layout .layout-body .merchant-module-page-setting-field-title{margin:unset}.merchant-flexible-content-control.free-gifts-style .layout .layout-body .merchant-module-page-setting-field{margin-bottom:24px}.merchant-flexible-content-control.free-gifts-style .layout .layout-body .merchant-module-page-setting-field-text input{padding:12px 8px}.merchant-module-page-preview-browser-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;width:100%;margin:auto;padding:50px 25px}.mrc-preview-single-product-elements{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;gap:25px}.mrc-preview-single-product-elements .mrc-preview-left-column{width:30%;min-width:30%}.mrc-preview-single-product-elements .mrc-preview-right-column{width:70%;padding-top:25px}.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image{background-color:#f5f5f5;height:12vw}.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image-thumbs{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image-thumbs .mrc-preview-product-image-thumb{width:100%;height:3vw;background-color:#f5f5f5;margin-top:10px}.mrc-mw-70{max-width:70%}.mrc-mw-30{max-width:30%}.mrc-mw-40{max-width:40%}@media(max-width: 1281px){.mrc-hide-on-smaller-screens{display:none}}.mrc-preview-text-placeholder{background-color:#f5f5f5;height:13px}.mrc-preview-text-placeholder+.mrc-preview-text-placeholder,.mrc-preview-text-placeholder+.mrc-preview-addtocart-placeholder{margin-top:15px}.mrc-preview-addtocart-placeholder{background-color:#e5e5e5;width:140px;height:30px}@media(max-width: 991px){.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image{height:33vw}.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image-thumbs .mrc-preview-product-image-thumb{height:7vw}}#merchant-free-gifts-widget{position:absolute;top:50px}
     1.merchant-flexible-content-control.free-gifts-style .layout:not(.active){border-color:#5c5f62}.merchant-flexible-content-control.free-gifts-style .layout .layout-body{padding:15px;grid-gap:unset}.merchant-flexible-content-control.free-gifts-style .layout .layout-body .merchant-module-page-setting-field-title{margin:unset}.merchant-flexible-content-control.free-gifts-style .layout .layout-body .merchant-module-page-setting-field{margin-bottom:24px}.merchant-flexible-content-control.free-gifts-style .layout .layout-body .merchant-module-page-setting-field-text input{padding:12px 8px}.merchant-module-page-preview-browser-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;width:100%;margin:auto;padding:50px 25px}.mrc-preview-single-product-elements{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:30px}.mrc-preview-single-product-elements .mrc-preview-left-column{width:38%;min-width:38%;height:350px}.mrc-preview-single-product-elements .mrc-preview-left-column>div{height:100%}.mrc-preview-single-product-elements .mrc-preview-right-column{width:55%}.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image{background-color:#f5f5f5;height:100%}.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image-thumbs{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image-thumbs .mrc-preview-product-image-thumb{width:100%;height:3vw;background-color:#f5f5f5;margin-top:10px}.mrc-preview-single-product-elements .merchant-preview-add-to-cart-inner{display:-webkit-box;display:-ms-flexbox;display:flex;gap:15px;pointer-events:none}.mrc-preview-single-product-elements .merchant-preview-add-to-cart{-webkit-box-flex:1;-ms-flex:1;flex:1;background-color:#e5e5e5;color:#fff;border:none;padding:10px;text-transform:uppercase;text-decoration:none;font-size:10px;text-align:center}.mrc-preview-single-product-elements .merchant-preview-qty{border:1px solid #e5e5e5;display:-webkit-box;display:-ms-flexbox;display:flex;gap:0;width:auto}.mrc-preview-single-product-elements .merchant-preview-qty button,.mrc-preview-single-product-elements .merchant-preview-qty input{border:none;background:none;outline:none;width:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;color:#e5e5e5;text-align:center}.mrc-preview-single-product-elements .merchant-preview-qty input{padding:0;margin:0}.mrc-preview-single-product-elements .merchant-preview-qty button{width:30px;padding:5px}.mrc-preview-single-product-elements .mrc-preview-rating{display:-webkit-box;display:-ms-flexbox;display:flex;gap:5px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mrc-preview-single-product-elements .star-rating{overflow:hidden;position:relative;height:1.618em;line-height:1.618;width:5.3em;font-family:star;font-weight:400;letter-spacing:0;color:#969696}.mrc-preview-single-product-elements .star-rating::before{content:"SSSSS";opacity:.25;float:left;top:0;left:0;position:absolute}.mrc-preview-single-product-elements .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.mrc-preview-single-product-elements .star-rating span::before{content:"SSSSS";top:0;position:absolute;left:0;color:#ffa441}.mrc-mw-70{max-width:70%}.mrc-mw-30{max-width:30%}.mrc-mw-40{max-width:40%}@media(max-width: 1281px){.mrc-hide-on-smaller-screens{display:none}}.mrc-preview-text-placeholder{background-color:#f5f5f5;height:13px}.mrc-preview-text-placeholder+.mrc-preview-text-placeholder,.mrc-preview-text-placeholder+.mrc-preview-addtocart-placeholder{margin-top:15px}.mrc-preview-addtocart-placeholder{background-color:#e5e5e5;width:140px;height:30px}@media(max-width: 991px){.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image{height:33vw}.mrc-preview-single-product-elements .mrc-preview-product-image-wrapper .mrc-preview-product-image-thumbs .mrc-preview-product-image-thumb{height:7vw}}#merchant-free-gifts-widget{position:absolute}
  • merchant/trunk/assets/css/modules/free-gifts/free-gifts.css

    r3059289 r3083515  
    33 *
    44 */
     5body.merchant-gift-was-claimed {
     6  overflow: auto;
     7}
     8
    59.merchant-free-gifts-widget {
    6   right: calc(var(--merchant-content-width) * -1);
    710  -webkit-transition: all 1s;
    811  transition: all 1s;
    912  position: fixed;
    10   top: 200px;
    1113  z-index: 19999;
    1214}
    13 .merchant-free-gifts-widget.active {
     15.merchant-free-gifts-widget-inner {
     16  position: relative;
     17}
     18.merchant-free-gifts-widget.merchant-free-gifts-widget--top_right, .merchant-free-gifts-widget.merchant-free-gifts-widget--top_left {
     19  top: var(--merchant-free-gifts-distance);
     20}
     21.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_right, .merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_left {
     22  bottom: var(--merchant-free-gifts-distance);
     23}
     24.merchant-free-gifts-widget.merchant-free-gifts-widget--top_right, .merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_right {
     25  right: calc(var(--merchant-content-width) * -1);
     26}
     27.merchant-free-gifts-widget.merchant-free-gifts-widget--top_right .merchant-free-gifts-widget-button, .merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_right .merchant-free-gifts-widget-button {
     28  border-radius: 5px 0 0 5px;
     29  left: -45px;
     30}
     31.merchant-free-gifts-widget.merchant-free-gifts-widget--top_right .merchant-free-gifts-widget-count, .merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_right .merchant-free-gifts-widget-count {
     32  left: -3px;
     33}
     34.merchant-free-gifts-widget.merchant-free-gifts-widget--top_left, .merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_left {
     35  left: calc(var(--merchant-content-width) * -1);
     36}
     37.merchant-free-gifts-widget.merchant-free-gifts-widget--top_left .merchant-free-gifts-widget-button, .merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_left .merchant-free-gifts-widget-button {
     38  border-radius: 0 5px 5px 0;
     39  right: -45px;
     40}
     41.merchant-free-gifts-widget.merchant-free-gifts-widget--top_left .merchant-free-gifts-widget-count, .merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_left .merchant-free-gifts-widget-count {
     42  right: -3px;
     43}
     44.merchant-free-gifts-widget.active.merchant-free-gifts-widget--top_right, .merchant-free-gifts-widget.active.merchant-free-gifts-widget--bottom_right {
    1445  right: 0;
     46}
     47.merchant-free-gifts-widget.active.merchant-free-gifts-widget--top_left, .merchant-free-gifts-widget.active.merchant-free-gifts-widget--bottom_left {
     48  left: 0;
    1549}
    1650.merchant-free-gifts-widget.hide {
     
    4579}
    4680.merchant-free-gifts-widget-offer-product img {
    47   width: 45px;
    48   height: 45px;
     81  width: 45px !important;
     82  height: 45px !important;
    4983  margin-right: 10px;
    5084}
     
    80114  color: var(--merchant-text-color);
    81115  background-color: var(--merchant-bg-color);
    82   border-radius: 5px 0 0 5px;
    83116  display: -webkit-box;
    84117  display: -ms-flexbox;
     
    92125          justify-content: center;
    93126  position: absolute;
    94   left: -45px;
    95127  top: 0;
    96128  cursor: pointer;
     
    108140  background-color: var(--merchant-bg-color);
    109141  border-radius: 50%;
    110   left: -3px;
    111142  width: 15px;
    112143  height: 15px;
     
    123154}
    124155
     156.merchant-free-gifts-widget-offer-product-contents {
     157  -webkit-box-flex: 1;
     158      -ms-flex: 1;
     159          flex: 1;
     160}
     161
    125162.merchant-free-gifts-widget-offer-product-title {
    126163  color: var(--merchant-text-color);
     
    133170}
    134171
     172body .merchant-free-gifts-claim-form {
     173  margin-bottom: 0;
     174}
     175body .merchant-free-gifts-claim-form-variations-wrapper {
     176  display: -webkit-box;
     177  display: -ms-flexbox;
     178  display: flex;
     179  gap: 10px;
     180  -ms-flex-wrap: wrap;
     181      flex-wrap: wrap;
     182  margin-block: 5px;
     183}
     184body .merchant-free-gifts-claim-form-variations-wrapper > div {
     185  -webkit-box-flex: 0;
     186      -ms-flex: 0 0 45%;
     187          flex: 0 0 45%;
     188}
     189body .merchant-free-gifts-claim-form-variations-wrapper div[class*=botiga-variation-type],
     190body .merchant-free-gifts-claim-form-variations-wrapper div[class*=merchant-variation-type] {
     191  display: none !important;
     192}
     193body .merchant-free-gifts-claim-form select {
     194  display: block !important;
     195  width: 100%;
     196  height: 35px;
     197  min-height: auto;
     198  line-height: 1;
     199  border: 1px solid #eeeeee;
     200  padding: 5px 8px;
     201  border-radius: 5px;
     202}
     203body .merchant-free-gifts-claim-form .merchant-free-gifts-claim-button {
     204  cursor: pointer;
     205  height: 35px;
     206  min-height: auto;
     207  line-height: 1;
     208  padding: 5px 20px;
     209  border-radius: 5px;
     210  border: none;
     211  font-size: 12px;
     212  margin-left: auto;
     213  margin-block: 5px;
     214}
     215body .merchant-free-gifts-claim-form .merchant-free-gifts-claim-button:hover {
     216  opacity: 0.8;
     217}
     218body .merchant-free-gifts-claim-form-error {
     219  color: #f00;
     220  font-size: 14px;
     221  font-style: italic;
     222  font-weight: 600;
     223  margin-left: 10px;
     224}
     225
    135226.merchant-free-gifts-widget-offer-product-price del {
    136227  color: var(--merchant-text-color);
     
    139230.merchant-free-gifts-widget-offer-product-free {
    140231  color: var(--merchant-text-color);
     232}
     233
     234.merchant-free-gifts-disabled-proceed-checkout + .merchant-free-gifts-disabled-proceed-checkout {
     235  display: none !important;
    141236}
    142237
  • merchant/trunk/assets/css/modules/free-gifts/free-gifts.min.css

    r3059289 r3083515  
    1 .merchant-free-gifts-widget{right:calc(var(--merchant-content-width)*-1);-webkit-transition:all 1s;transition:all 1s;position:fixed;top:200px;z-index:19999}.merchant-free-gifts-widget.active{right:0}.merchant-free-gifts-widget.hide{display:none}.merchant-free-gifts-widget-offers{width:var(--merchant-content-width);max-height:325px;background-color:var(--merchant-bg-color);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:12px;-webkit-box-shadow:2px 2px 20px rgba(0,0,0,.05);box-shadow:2px 2px 20px rgba(0,0,0,.05);overflow-y:auto;border-bottom-left-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box}.merchant-free-gifts-widget-offer-product{display:-webkit-box;display:-ms-flexbox;display:flex;padding:10px 0}.merchant-free-gifts-widget-offer-product img{width:45px;height:45px;margin-right:10px}.merchant-free-gifts-widget-offer-product p{margin:0}.merchant-free-gifts-widget-offer-product del,.merchant-free-gifts-widget-offer-product strong,.merchant-free-gifts-widget-offer-product p{font-size:13px}.merchant-free-gifts-widget-offer-label{font-size:12px;background-color:var(--merchant-bg-color);color:var(--merchant-text-color);padding:6px}.merchant-free-gifts-widget-icon{width:25px;height:25px;margin:0 auto}.merchant-free-gifts-widget-icon svg{width:25px;height:25px}.merchant-free-gifts-widget-button{width:45px;height:45px;color:var(--merchant-text-color);background-color:var(--merchant-bg-color);border-radius:5px 0 0 5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;left:-45px;top:0;cursor:pointer;-webkit-transition:background-color .3s ease;transition:background-color .3s ease}.merchant-free-gifts-widget-button:hover{background:var(--merchant-hover-bg-color)}.merchant-free-gifts-widget-count{position:absolute;top:-3px;color:var(--merchant-text-color);background-color:var(--merchant-bg-color);border-radius:50%;left:-3px;width:15px;height:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:10px}.merchant-free-gifts-widget-offer-product-title{color:var(--merchant-text-color)}.merchant-free-gifts-widget-offer-product-title:visited{color:var(--merchant-text-color)}.merchant-free-gifts-widget-offer-product-title:hover{color:var(--merchant-text-hover-color)}.merchant-free-gifts-widget-offer-product-price del{color:var(--merchant-text-color)}.merchant-free-gifts-widget-offer-product-free{color:var(--merchant-text-color)}.rtl .merchant-free-gifts-widget-offer-product img{margin-right:0;margin-left:10px}
     1body.merchant-gift-was-claimed{overflow:auto}.merchant-free-gifts-widget{-webkit-transition:all 1s;transition:all 1s;position:fixed;z-index:19999}.merchant-free-gifts-widget-inner{position:relative}.merchant-free-gifts-widget.merchant-free-gifts-widget--top_right,.merchant-free-gifts-widget.merchant-free-gifts-widget--top_left{top:var(--merchant-free-gifts-distance)}.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_right,.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_left{bottom:var(--merchant-free-gifts-distance)}.merchant-free-gifts-widget.merchant-free-gifts-widget--top_right,.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_right{right:calc(var(--merchant-content-width)*-1)}.merchant-free-gifts-widget.merchant-free-gifts-widget--top_right .merchant-free-gifts-widget-button,.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_right .merchant-free-gifts-widget-button{border-radius:5px 0 0 5px;left:-45px}.merchant-free-gifts-widget.merchant-free-gifts-widget--top_right .merchant-free-gifts-widget-count,.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_right .merchant-free-gifts-widget-count{left:-3px}.merchant-free-gifts-widget.merchant-free-gifts-widget--top_left,.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_left{left:calc(var(--merchant-content-width)*-1)}.merchant-free-gifts-widget.merchant-free-gifts-widget--top_left .merchant-free-gifts-widget-button,.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_left .merchant-free-gifts-widget-button{border-radius:0 5px 5px 0;right:-45px}.merchant-free-gifts-widget.merchant-free-gifts-widget--top_left .merchant-free-gifts-widget-count,.merchant-free-gifts-widget.merchant-free-gifts-widget--bottom_left .merchant-free-gifts-widget-count{right:-3px}.merchant-free-gifts-widget.active.merchant-free-gifts-widget--top_right,.merchant-free-gifts-widget.active.merchant-free-gifts-widget--bottom_right{right:0}.merchant-free-gifts-widget.active.merchant-free-gifts-widget--top_left,.merchant-free-gifts-widget.active.merchant-free-gifts-widget--bottom_left{left:0}.merchant-free-gifts-widget.hide{display:none}.merchant-free-gifts-widget-offers{width:var(--merchant-content-width);max-height:325px;background-color:var(--merchant-bg-color);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:12px;-webkit-box-shadow:2px 2px 20px rgba(0,0,0,.05);box-shadow:2px 2px 20px rgba(0,0,0,.05);overflow-y:auto;border-bottom-left-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box}.merchant-free-gifts-widget-offer-product{display:-webkit-box;display:-ms-flexbox;display:flex;padding:10px 0}.merchant-free-gifts-widget-offer-product img{width:45px !important;height:45px !important;margin-right:10px}.merchant-free-gifts-widget-offer-product p{margin:0}.merchant-free-gifts-widget-offer-product del,.merchant-free-gifts-widget-offer-product strong,.merchant-free-gifts-widget-offer-product p{font-size:13px}.merchant-free-gifts-widget-offer-label{font-size:12px;background-color:var(--merchant-bg-color);color:var(--merchant-text-color);padding:6px}.merchant-free-gifts-widget-icon{width:25px;height:25px;margin:0 auto}.merchant-free-gifts-widget-icon svg{width:25px;height:25px}.merchant-free-gifts-widget-button{width:45px;height:45px;color:var(--merchant-text-color);background-color:var(--merchant-bg-color);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:0;cursor:pointer;-webkit-transition:background-color .3s ease;transition:background-color .3s ease}.merchant-free-gifts-widget-button:hover{background:var(--merchant-hover-bg-color)}.merchant-free-gifts-widget-count{position:absolute;top:-3px;color:var(--merchant-text-color);background-color:var(--merchant-bg-color);border-radius:50%;width:15px;height:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:10px}.merchant-free-gifts-widget-offer-product-contents{-webkit-box-flex:1;-ms-flex:1;flex:1}.merchant-free-gifts-widget-offer-product-title{color:var(--merchant-text-color)}.merchant-free-gifts-widget-offer-product-title:visited{color:var(--merchant-text-color)}.merchant-free-gifts-widget-offer-product-title:hover{color:var(--merchant-text-hover-color)}body .merchant-free-gifts-claim-form{margin-bottom:0}body .merchant-free-gifts-claim-form-variations-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-block:5px}body .merchant-free-gifts-claim-form-variations-wrapper>div{-webkit-box-flex:0;-ms-flex:0 0 45%;flex:0 0 45%}body .merchant-free-gifts-claim-form-variations-wrapper div[class*=botiga-variation-type],body .merchant-free-gifts-claim-form-variations-wrapper div[class*=merchant-variation-type]{display:none !important}body .merchant-free-gifts-claim-form select{display:block !important;width:100%;height:35px;min-height:auto;line-height:1;border:1px solid #eee;padding:5px 8px;border-radius:5px}body .merchant-free-gifts-claim-form .merchant-free-gifts-claim-button{cursor:pointer;height:35px;min-height:auto;line-height:1;padding:5px 20px;border-radius:5px;border:none;font-size:12px;margin-left:auto;margin-block:5px}body .merchant-free-gifts-claim-form .merchant-free-gifts-claim-button:hover{opacity:.8}body .merchant-free-gifts-claim-form-error{color:red;font-size:14px;font-style:italic;font-weight:600;margin-left:10px}.merchant-free-gifts-widget-offer-product-price del{color:var(--merchant-text-color)}.merchant-free-gifts-widget-offer-product-free{color:var(--merchant-text-color)}.merchant-free-gifts-disabled-proceed-checkout+.merchant-free-gifts-disabled-proceed-checkout{display:none !important}.rtl .merchant-free-gifts-widget-offer-product img{margin-right:0;margin-left:10px}
  • merchant/trunk/assets/js/carousel.js

    r3079548 r3083515  
    204204    value: function buildSliderFrame() {
    205205      if (this.innerElements.length <= this.perPage) {
     206        var _this$parentSelector$, _this$parentSelector$2;
    206207        this.parentSelector.classList.add('no-nav');
    207         this.parentSelector.querySelector('.merchant-carousel-nav-next').remove();
    208         this.parentSelector.querySelector('.merchant-carousel-nav-prev').remove();
     208        (_this$parentSelector$ = this.parentSelector.querySelector('.merchant-carousel-nav-next')) === null || _this$parentSelector$ === void 0 || _this$parentSelector$.remove();
     209        (_this$parentSelector$2 = this.parentSelector.querySelector('.merchant-carousel-nav-prev')) === null || _this$parentSelector$2 === void 0 || _this$parentSelector$2.remove();
    209210        return false;
    210211      }
     
    808809      return fn();
    809810    }
    810     document.addEventListener('DOMContentLoaded', fn, false);
     811    var that = this;
     812    document.addEventListener('DOMContentLoaded', function () {
     813      that.init(); // Required for some themes
     814    });
     815    jQuery(document).on('photoSliderTriggered', function () {
     816      that.init();
     817    });
    811818  },
    812819  init: function init() {
     
    837844            });
    838845          }
     846          var loop = carouselEl.getAttribute('data-loop') !== '0';
    839847
    840848          // Mount carousel wrapper
     
    869877            multipleDrag: false,
    870878            threshold: 20,
    871             loop: true,
     879            loop: loop,
    872880            rtl: false,
    873881            // autoplay: true, TO DO
    874882            margin: margin,
    875883            onInit: function onInit() {
     884              var _this$innerElements;
    876885              window.dispatchEvent(new Event('merchant.carousel.initialized'));
     886
     887              // Fix for theme that has lazy-load but not working
     888              this === null || this === void 0 || (_this$innerElements = this.innerElements) === null || _this$innerElements === void 0 || _this$innerElements.forEach(function (item) {
     889                var img = item.querySelector('img');
     890                var src = img === null || img === void 0 ? void 0 : img.getAttribute('src');
     891                if (src !== null && src !== void 0 && src.startsWith('data')) {
     892                  img.src = img === null || img === void 0 ? void 0 : img.getAttribute('data-src');
     893                }
     894              });
    877895            }
    878896          });
     
    912930// Initialize.
    913931merchant.carousel.domReady(function () {
    914   merchant.carousel.init();
     932  var _merchant$carousel;
     933  merchant === null || merchant === void 0 || (_merchant$carousel = merchant.carousel) === null || _merchant$carousel === void 0 || _merchant$carousel.init();
    915934});
     935jQuery(document).on('photoSliderTriggered', function () {
     936  var _merchant$carousel2;
     937  merchant === null || merchant === void 0 || (_merchant$carousel2 = merchant.carousel) === null || _merchant$carousel2 === void 0 || _merchant$carousel2.init();
     938});
  • merchant/trunk/assets/js/carousel.min.js

    r3079548 r3083515  
    1 "use strict";function _createForOfIteratorHelper(e,t){var r,i,n,s,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){i=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(i)throw n}}};if(Array.isArray(e)||(a=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),s=0,{s:t=function(){},n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}var Siema=function(){function r(e){var t=this;if(_classCallCheck(this,r),this.config=r.mergeSettings(e),this.parentSelector="string"==typeof this.config.parentSelector?document.querySelector(this.config.parentSelector):this.config.parentSelector,this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,this.parentSelector&&(this.selector=this.parentSelector.querySelector(".merchant-carousel-stage")),null===this.selector)throw new Error("Something wrong with your selector 😭");if("true"===this.parentSelector.getAttribute("data-initialized"))return!1;this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=r.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler","navNextHandler","navPrevHandler"].forEach(function(e){t[e]=t[e].bind(t)}),this.init()}return _createClass(r,[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler),this.parentSelector.querySelector(".merchant-carousel-nav-next").addEventListener("click",this.navNextHandler),this.parentSelector.querySelector(".merchant-carousel-nav-prev").addEventListener("click",this.navPrevHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler),this.parentSelector.querySelector(".merchant-carousel-nav-next").removeEventListener("click",this.navNextHandler),this.parentSelector.querySelector(".merchant-carousel-nav-prev").removeEventListener("click",this.navPrevHandler)}},{key:"init",value:function(){this.buildNavigation(),this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this),this.parentSelector.querySelector(".merchant-carousel-stage").classList.add("show"),null!==this.parentSelector&&this.parentSelector.setAttribute("data-initialized",!0)}},{key:"buildNavigation",value:function(){var e=document.createElement("a"),t=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=document.createElement("a"),i=document.createElementNS("http://www.w3.org/2000/svg","svg");e.role="button",e.href="#",e.className="merchant-carousel-nav merchant-carousel-nav-next",t.setAttribute("width",18),t.setAttribute("height",18),t.setAttribute("viewBox","0 0 10 16"),t.setAttribute("fill","none"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("class","stroke-based"),t.innerHTML='<path d="M1.5 14.667L8.16667 8.00033L1.5 1.33366" stroke="#242021" stroke-width="1.5"></path>',e.append(t),this.parentSelector.querySelector(".merchant-carousel-wrapper").append(e),r.role="button",r.href="#",r.className="merchant-carousel-nav merchant-carousel-nav-prev",i.setAttribute("width",18),i.setAttribute("height",18),i.setAttribute("viewBox","0 0 10 16"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("class","stroke-based"),i.innerHTML='<path d="M8.5 1.33301L1.83333 7.99967L8.5 14.6663" stroke="#242021" stroke-width="1.5"></path>',r.append(i),this.parentSelector.querySelector(".merchant-carousel-wrapper").append(r)}},{key:"buildSliderFrame",value:function(){if(this.innerElements.length<=this.perPage)return this.parentSelector.classList.add("no-nav"),this.parentSelector.querySelector(".merchant-carousel-nav-next").remove(),this.parentSelector.querySelector(".merchant-carousel-nav-prev").remove(),!1;var e=(this.selectorWidth+this.config.margin)/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length,r=(this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=e*t+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab"),document.createDocumentFragment());if(this.config.loop)for(var i=this.innerElements.length-this.perPage;i<this.innerElements.length;i++){var n=this.buildSliderFrameItem(this.innerElements[i].cloneNode(!0));r.appendChild(n)}for(var s=0;s<this.innerElements.length;s++){n=this.buildSliderFrameItem(this.innerElements[s]);r.appendChild(n)}if(this.config.loop)for(var a=0;a<this.perPage;a++){n=this.buildSliderFrameItem(this.innerElements[a].cloneNode(!0));r.appendChild(n)}this.sliderFrame.appendChild(r),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(e){var t=document.createElement("div");return t.style.cssFloat=this.config.rtl?"right":"left",t.style.float=this.config.rtl?"right":"left",t.style.width=(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length)+"%",t.style.marginRight=this.config.margin+"px",t.appendChild(e),t}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===_typeof(this.config.perPage))for(var e in this.perPage=1,this.config.perPage)window.innerWidth>=e&&(this.perPage=this.config.perPage[e])}},{key:"prev",value:function(){var e,t,r,i,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,s=1<arguments.length?arguments[1]:void 0;this.innerElements.length<=this.perPage||(e=this.currentSlide,this.config.loop?this.currentSlide-n<0?(this.disableTransition(),t=this.currentSlide+this.innerElements.length,r=this.perPage,r=(this.config.rtl?1:-1)*(t+r)*(this.selectorWidth/this.perPage),i=this.config.draggable?this.drag.endX-this.drag.startX:0,this.sliderFrame.style[this.transformProperty]="translate3d(".concat(r+i,"px, 0, 0)"),this.currentSlide=t-n):this.currentSlide=this.currentSlide-n:this.currentSlide=Math.max(this.currentSlide-n,0),e!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),s)&&s.call(this))}},{key:"next",value:function(){var e,t,r,i,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,s=1<arguments.length?arguments[1]:void 0;this.innerElements.length<=this.perPage||(e=this.currentSlide,this.config.loop?this.currentSlide+n>this.innerElements.length-this.perPage?(this.disableTransition(),t=this.currentSlide-this.innerElements.length,r=this.perPage,r=(this.config.rtl?1:-1)*(t+r)*(this.selectorWidth/this.perPage),i=this.config.draggable?this.drag.endX-this.drag.startX:0,this.sliderFrame.style[this.transformProperty]="translate3d(".concat(r+i,"px, 0, 0)"),this.currentSlide=t+n):this.currentSlide=this.currentSlide+n:this.currentSlide=Math.min(this.currentSlide+n,this.innerElements.length-this.perPage),e!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),s)&&s.call(this))}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing)}},{key:"enableTransition",value:function(){if(void 0===this.sliderFrame)return!1;this.sliderFrame.style.webkitTransition="all ".concat(this.config.duration,"ms ").concat(this.config.easing),this.sliderFrame.style.transition="all ".concat(this.config.duration,"ms ").concat(this.config.easing)}},{key:"goTo",value:function(e,t){var r;this.innerElements.length<=this.perPage||(r=this.currentSlide,this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),r!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t)&&t.call(this))}},{key:"slideToCurrent",value:function(e){var t=this,r=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*r*((this.selectorWidth+this.config.margin)/this.perPage);if(void 0===this.sliderFrame)return!1;e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+i+"px, 0, 0)"})}):(this.enableTransition(),this.sliderFrame.style[this.transformProperty]="translate3d("+i+"px, 0, 0)")}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),r=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,i=0<e&&this.currentSlide-r<0,n=e<0&&this.currentSlide+r>this.innerElements.length-this.perPage;0<e&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(r):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(r),this.slideToCurrent(i||n)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1===["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)&&(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){var t;e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)<Math.abs(this.drag.startX-e.touches[0].pageX)),this.pointerDown&&this.drag.letItGo&&(e.preventDefault(),this.drag.endX=e.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing),e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*((this.selectorWidth+this.config.margin)/this.perPage),t=this.drag.endX-this.drag.startX,e=this.config.rtl?e+t:e-t,this.sliderFrame.style[this.transformProperty]="translate3d(".concat((this.config.rtl?1:-1)*e,"px, 0, 0)"))}},{key:"mousedownHandler",value:function(e){-1===["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)&&(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)}},{key:"mouseupHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(e){if(e.preventDefault(),this.pointerDown){if("null"!=typeof e.target.closest("a")&&(this.drag.preventClick=!0),void 0===this.sliderFrame)return!1;this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing);var e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*((this.selectorWidth+this.config.margin)/this.perPage),t=this.drag.endX-this.drag.startX,e=this.config.rtl?e+t:e-t;this.sliderFrame.style[this.transformProperty]="translate3d(".concat((this.config.rtl?1:-1)*e,"px, 0, 0)")}}},{key:"mouseleaveHandler",value:function(e){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(e){this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1}},{key:"navNextHandler",value:function(e){e.preventDefault(),this.next(1)}},{key:"navPrevHandler",value:function(e){e.preventDefault(),this.prev(1)}},{key:"remove",value:function(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var r=e<this.currentSlide,i=this.currentSlide+this.perPage-1===e;(r||i)&&this.currentSlide--,this.innerElements.splice(e,1),this.buildSliderFrame(),t&&t.call(this)}},{key:"insert",value:function(e,t,r){if(t<0||t>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var i=0<(t<=this.currentSlide)&&this.innerElements.length;this.currentSlide=i?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),r&&r.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=1<arguments.length?arguments[1]:void 0;if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var r=document.createDocumentFragment(),i=0;i<this.innerElements.length;i++)r.appendChild(this.innerElements[i]);this.selector.innerHTML="",this.selector.appendChild(r),this.selector.removeAttribute("style")}t&&t.call(this)}}],[{key:"mergeSettings",value:function(e){var t,r={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},i=e;for(t in i)r[t]=i[t];return r}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}])}(),merchant=merchant||{};merchant.carousel={domReady:function(e){if("function"==typeof e)return"interactive"===document.readyState||"complete"===document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)},init:function(){this.build(),this.events()},build:function(){if(null===document.querySelector(".merchant-carousel")&&null===document.querySelector(".has-cross-sells-carousel")&&null===document.querySelector(".merchant-woocommerce-mini-cart__cross-sell"))return!1;var e,t=_createForOfIteratorHelper(document.querySelectorAll(".merchant-carousel, #masthead .cross-sells, .merchant-side-mini-cart .cross-sells, .cart-collaterals .cross-sells"));try{for(t.s();!(e=t.n()).done;){var r,i,n,s,a,o=e.value;null===o.querySelector(".merchant-carousel-stage")&&o.querySelector(".products").classList.add("merchant-carousel-stage"),"true"!==o.getAttribute("data-initialized")&&(null===(r=o.getAttribute("data-per-page"))&&(i=o.querySelector(".products").classList.value,[1,2,3,4,5].forEach(function(e){0<i.indexOf("columns-"+e)&&(r=e)})),n=document.createElement("div"),s=o.querySelector(".merchant-carousel-stage"),n.className="merchant-carousel-wrapper",n.innerHTML=s.outerHTML,s.remove(),o.append(n),a=30,"undefined"!=typeof merchant_carousel?a=parseInt(merchant_carousel.margin_desktop):null!==o.closest(".merchant-woocommerce-mini-cart__cross-sell")&&(a=15),new Siema({parentSelector:o,selector:".merchant-carousel-stage",duration:200,easing:"ease-out",perPage:null!==r?{0:1,768:2,1025:parseInt(r)}:2,startIndex:0,draggable:!0,multipleDrag:!1,threshold:20,loop:!0,rtl:!1,margin:a,onInit:function(){window.dispatchEvent(new Event("merchant.carousel.initialized"))}}))}}catch(e){t.e(e)}finally{t.f()}},events:function(){var r,i=this;"undefined"!=typeof jQuery&&(r=!0,jQuery(document.body).on("wc_fragment_refresh added_to_cart removed_from_cart",function(){setTimeout(function(){var e=document.getElementById("site-header-cart"),t=e.querySelector(".cart_list");null!==t&&(2<t.children.length?(e.classList.remove("mini-cart-has-no-scroll"),e.classList.add("mini-cart-has-scroll")):(e.classList.remove("mini-cart-has-scroll"),e.classList.add("mini-cart-has-no-scroll"))),i.build(),r=!1},r?1e3:0)}))}},merchant.carousel.domReady(function(){merchant.carousel.init()});
     1"use strict";function _createForOfIteratorHelper(e,t){var r,i,n,s,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return i=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){i=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(i)throw n}}};if(Array.isArray(e)||(a=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),s=0,{s:t=function(){},n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}var Siema=function(){function r(e){var t=this;if(_classCallCheck(this,r),this.config=r.mergeSettings(e),this.parentSelector="string"==typeof this.config.parentSelector?document.querySelector(this.config.parentSelector):this.config.parentSelector,this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,this.parentSelector&&(this.selector=this.parentSelector.querySelector(".merchant-carousel-stage")),null===this.selector)throw new Error("Something wrong with your selector 😭");if("true"===this.parentSelector.getAttribute("data-initialized"))return!1;this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=r.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler","navNextHandler","navPrevHandler"].forEach(function(e){t[e]=t[e].bind(t)}),this.init()}return _createClass(r,[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler),this.parentSelector.querySelector(".merchant-carousel-nav-next").addEventListener("click",this.navNextHandler),this.parentSelector.querySelector(".merchant-carousel-nav-prev").addEventListener("click",this.navPrevHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler),this.parentSelector.querySelector(".merchant-carousel-nav-next").removeEventListener("click",this.navNextHandler),this.parentSelector.querySelector(".merchant-carousel-nav-prev").removeEventListener("click",this.navPrevHandler)}},{key:"init",value:function(){this.buildNavigation(),this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this),this.parentSelector.querySelector(".merchant-carousel-stage").classList.add("show"),null!==this.parentSelector&&this.parentSelector.setAttribute("data-initialized",!0)}},{key:"buildNavigation",value:function(){var e=document.createElement("a"),t=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=document.createElement("a"),i=document.createElementNS("http://www.w3.org/2000/svg","svg");e.role="button",e.href="#",e.className="merchant-carousel-nav merchant-carousel-nav-next",t.setAttribute("width",18),t.setAttribute("height",18),t.setAttribute("viewBox","0 0 10 16"),t.setAttribute("fill","none"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("class","stroke-based"),t.innerHTML='<path d="M1.5 14.667L8.16667 8.00033L1.5 1.33366" stroke="#242021" stroke-width="1.5"></path>',e.append(t),this.parentSelector.querySelector(".merchant-carousel-wrapper").append(e),r.role="button",r.href="#",r.className="merchant-carousel-nav merchant-carousel-nav-prev",i.setAttribute("width",18),i.setAttribute("height",18),i.setAttribute("viewBox","0 0 10 16"),i.setAttribute("fill","none"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("class","stroke-based"),i.innerHTML='<path d="M8.5 1.33301L1.83333 7.99967L8.5 14.6663" stroke="#242021" stroke-width="1.5"></path>',r.append(i),this.parentSelector.querySelector(".merchant-carousel-wrapper").append(r)}},{key:"buildSliderFrame",value:function(){if(this.innerElements.length<=this.perPage)return this.parentSelector.classList.add("no-nav"),null!=(e=this.parentSelector.querySelector(".merchant-carousel-nav-next"))&&e.remove(),null!=(e=this.parentSelector.querySelector(".merchant-carousel-nav-prev"))&&e.remove(),!1;var e=(this.selectorWidth+this.config.margin)/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length,r=(this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=e*t+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab"),document.createDocumentFragment());if(this.config.loop)for(var i=this.innerElements.length-this.perPage;i<this.innerElements.length;i++){var n=this.buildSliderFrameItem(this.innerElements[i].cloneNode(!0));r.appendChild(n)}for(var s=0;s<this.innerElements.length;s++){n=this.buildSliderFrameItem(this.innerElements[s]);r.appendChild(n)}if(this.config.loop)for(var a=0;a<this.perPage;a++){n=this.buildSliderFrameItem(this.innerElements[a].cloneNode(!0));r.appendChild(n)}this.sliderFrame.appendChild(r),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(e){var t=document.createElement("div");return t.style.cssFloat=this.config.rtl?"right":"left",t.style.float=this.config.rtl?"right":"left",t.style.width=(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length)+"%",t.style.marginRight=this.config.margin+"px",t.appendChild(e),t}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===_typeof(this.config.perPage))for(var e in this.perPage=1,this.config.perPage)window.innerWidth>=e&&(this.perPage=this.config.perPage[e])}},{key:"prev",value:function(){var e,t,r,i,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,s=1<arguments.length?arguments[1]:void 0;this.innerElements.length<=this.perPage||(e=this.currentSlide,this.config.loop?this.currentSlide-n<0?(this.disableTransition(),t=this.currentSlide+this.innerElements.length,r=this.perPage,r=(this.config.rtl?1:-1)*(t+r)*(this.selectorWidth/this.perPage),i=this.config.draggable?this.drag.endX-this.drag.startX:0,this.sliderFrame.style[this.transformProperty]="translate3d(".concat(r+i,"px, 0, 0)"),this.currentSlide=t-n):this.currentSlide=this.currentSlide-n:this.currentSlide=Math.max(this.currentSlide-n,0),e!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),s)&&s.call(this))}},{key:"next",value:function(){var e,t,r,i,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,s=1<arguments.length?arguments[1]:void 0;this.innerElements.length<=this.perPage||(e=this.currentSlide,this.config.loop?this.currentSlide+n>this.innerElements.length-this.perPage?(this.disableTransition(),t=this.currentSlide-this.innerElements.length,r=this.perPage,r=(this.config.rtl?1:-1)*(t+r)*(this.selectorWidth/this.perPage),i=this.config.draggable?this.drag.endX-this.drag.startX:0,this.sliderFrame.style[this.transformProperty]="translate3d(".concat(r+i,"px, 0, 0)"),this.currentSlide=t+n):this.currentSlide=this.currentSlide+n:this.currentSlide=Math.min(this.currentSlide+n,this.innerElements.length-this.perPage),e!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),s)&&s.call(this))}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing)}},{key:"enableTransition",value:function(){if(void 0===this.sliderFrame)return!1;this.sliderFrame.style.webkitTransition="all ".concat(this.config.duration,"ms ").concat(this.config.easing),this.sliderFrame.style.transition="all ".concat(this.config.duration,"ms ").concat(this.config.easing)}},{key:"goTo",value:function(e,t){var r;this.innerElements.length<=this.perPage||(r=this.currentSlide,this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),r!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t)&&t.call(this))}},{key:"slideToCurrent",value:function(e){var t=this,r=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=(this.config.rtl?1:-1)*r*((this.selectorWidth+this.config.margin)/this.perPage);if(void 0===this.sliderFrame)return!1;e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+i+"px, 0, 0)"})}):(this.enableTransition(),this.sliderFrame.style[this.transformProperty]="translate3d("+i+"px, 0, 0)")}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),r=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,i=0<e&&this.currentSlide-r<0,n=e<0&&this.currentSlide+r>this.innerElements.length-this.perPage;0<e&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(r):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(r),this.slideToCurrent(i||n)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1===["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)&&(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){var t;e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)<Math.abs(this.drag.startX-e.touches[0].pageX)),this.pointerDown&&this.drag.letItGo&&(e.preventDefault(),this.drag.endX=e.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing),e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*((this.selectorWidth+this.config.margin)/this.perPage),t=this.drag.endX-this.drag.startX,e=this.config.rtl?e+t:e-t,this.sliderFrame.style[this.transformProperty]="translate3d(".concat((this.config.rtl?1:-1)*e,"px, 0, 0)"))}},{key:"mousedownHandler",value:function(e){-1===["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)&&(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)}},{key:"mouseupHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(e){if(e.preventDefault(),this.pointerDown){if("null"!=typeof e.target.closest("a")&&(this.drag.preventClick=!0),void 0===this.sliderFrame)return!1;this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms ".concat(this.config.easing),this.sliderFrame.style.transition="all 0ms ".concat(this.config.easing);var e=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*((this.selectorWidth+this.config.margin)/this.perPage),t=this.drag.endX-this.drag.startX,e=this.config.rtl?e+t:e-t;this.sliderFrame.style[this.transformProperty]="translate3d(".concat((this.config.rtl?1:-1)*e,"px, 0, 0)")}}},{key:"mouseleaveHandler",value:function(e){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(e){this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1}},{key:"navNextHandler",value:function(e){e.preventDefault(),this.next(1)}},{key:"navPrevHandler",value:function(e){e.preventDefault(),this.prev(1)}},{key:"remove",value:function(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var r=e<this.currentSlide,i=this.currentSlide+this.perPage-1===e;(r||i)&&this.currentSlide--,this.innerElements.splice(e,1),this.buildSliderFrame(),t&&t.call(this)}},{key:"insert",value:function(e,t,r){if(t<0||t>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var i=0<(t<=this.currentSlide)&&this.innerElements.length;this.currentSlide=i?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),r&&r.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=1<arguments.length?arguments[1]:void 0;if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var r=document.createDocumentFragment(),i=0;i<this.innerElements.length;i++)r.appendChild(this.innerElements[i]);this.selector.innerHTML="",this.selector.appendChild(r),this.selector.removeAttribute("style")}t&&t.call(this)}}],[{key:"mergeSettings",value:function(e){var t,r={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},i=e;for(t in i)r[t]=i[t];return r}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}])}(),merchant=merchant||{};merchant.carousel={domReady:function(e){if("function"==typeof e){if("interactive"===document.readyState||"complete"===document.readyState)return e();var t=this;document.addEventListener("DOMContentLoaded",function(){t.init()}),jQuery(document).on("photoSliderTriggered",function(){t.init()})}},init:function(){this.build(),this.events()},build:function(){if(null===document.querySelector(".merchant-carousel")&&null===document.querySelector(".has-cross-sells-carousel")&&null===document.querySelector(".merchant-woocommerce-mini-cart__cross-sell"))return!1;var e,t=_createForOfIteratorHelper(document.querySelectorAll(".merchant-carousel, #masthead .cross-sells, .merchant-side-mini-cart .cross-sells, .cart-collaterals .cross-sells"));try{for(t.s();!(e=t.n()).done;){var r,i,n,s,a,o,l=e.value;null===l.querySelector(".merchant-carousel-stage")&&l.querySelector(".products").classList.add("merchant-carousel-stage"),"true"!==l.getAttribute("data-initialized")&&(null===(r=l.getAttribute("data-per-page"))&&(i=l.querySelector(".products").classList.value,[1,2,3,4,5].forEach(function(e){0<i.indexOf("columns-"+e)&&(r=e)})),n="0"!==l.getAttribute("data-loop"),s=document.createElement("div"),a=l.querySelector(".merchant-carousel-stage"),s.className="merchant-carousel-wrapper",s.innerHTML=a.outerHTML,a.remove(),l.append(s),o=30,"undefined"!=typeof merchant_carousel?o=parseInt(merchant_carousel.margin_desktop):null!==l.closest(".merchant-woocommerce-mini-cart__cross-sell")&&(o=15),new Siema({parentSelector:l,selector:".merchant-carousel-stage",duration:200,easing:"ease-out",perPage:null!==r?{0:1,768:2,1025:parseInt(r)}:2,startIndex:0,draggable:!0,multipleDrag:!1,threshold:20,loop:n,rtl:!1,margin:o,onInit:function(){var e;window.dispatchEvent(new Event("merchant.carousel.initialized")),null!=this&&null!=(e=this.innerElements)&&e.forEach(function(e){var e=e.querySelector("img"),t=null==e?void 0:e.getAttribute("src");null!=t&&t.startsWith("data")&&(e.src=null==e?void 0:e.getAttribute("data-src"))})}}))}}catch(e){t.e(e)}finally{t.f()}},events:function(){var r,i=this;"undefined"!=typeof jQuery&&(r=!0,jQuery(document.body).on("wc_fragment_refresh added_to_cart removed_from_cart",function(){setTimeout(function(){var e=document.getElementById("site-header-cart"),t=e.querySelector(".cart_list");null!==t&&(2<t.children.length?(e.classList.remove("mini-cart-has-no-scroll"),e.classList.add("mini-cart-has-scroll")):(e.classList.remove("mini-cart-has-scroll"),e.classList.add("mini-cart-has-no-scroll"))),i.build(),r=!1},r?1e3:0)}))}},merchant.carousel.domReady(function(){var e;null!=merchant&&null!=(e=merchant.carousel)&&e.init()}),jQuery(document).on("photoSliderTriggered",function(){var e;null!=merchant&&null!=(e=merchant.carousel)&&e.init()});
  • merchant/trunk/assets/js/modules/side-cart/side-cart.js

    r3036886 r3083515  
    3737
    3838  // Update Product quantity in Side Cart
    39   if (merchant.setting.hasOwnProperty('add_to_cart_slide_out')) {
     39  if (merchant.setting.hasOwnProperty('add_to_cart_slide_out') || merchant.setting.hasOwnProperty('floating_mini_cart_count')) {
    4040    var merchant_update_side_cart_quantity = function merchant_update_side_cart_quantity($input) {
    4141      var _ref = merchant.setting || {},
  • merchant/trunk/assets/js/modules/side-cart/side-cart.min.js

    r3036886 r3083515  
    1 "use strict";jQuery(document).ready(function(c){var t,e,n,o,s;merchant.setting.hasOwnProperty("show_after_add_to_cart_single_product")&&(t=c("body.single-product").length,e=c(".woocommerce-notices-wrapper").is(":visible")&&!c(".woocommerce-notices-wrapper").is(":empty"),n=c(".wc-block-components-notice-banner").is(":visible")&&!c(".wc-block-components-notice-banner").is(":empty"),t)&&(e||n)&&(c("body").toggleClass("merchant-floating-side-mini-cart-show"),c(window).trigger("merchant.floating-mini-cart-resize")),merchant.setting.hasOwnProperty("add_to_cart_slide_out")&&c(document.body).on("added_to_cart",function(t,e,n,a,r){"side-cart"!==r&&c("body").toggleClass("merchant-floating-side-mini-cart-show"),c(window).trigger("merchant.floating-mini-cart-resize")}),merchant.setting.hasOwnProperty("cart_url")&&c('[href="'+merchant.setting.cart_url+'"]').on("click",function(t){t.preventDefault(),c(window).trigger("merchant.floating-mini-cart-resize"),c("body").toggleClass("merchant-floating-side-mini-cart-show")}),merchant.setting.hasOwnProperty("add_to_cart_slide_out")&&(o=function(e){var t,n,a,r=merchant.setting||{},i=r.ajax_url,o=r.side_cart_nonce;e.length&&i&&o&&(t=e.attr("name"),n=Math.round(parseFloat(e.val()||1)),a=e.closest(".js-side-cart-item"),clearTimeout(s),s=setTimeout(function(){c.ajax({type:"POST",url:i,data:{action:"update_side_cart_quantity",cart_item_key:t,quantity:n,nonce:o},beforeSend:function(){a.length&&a.block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},success:function(t){t&&t.fragments&&(c(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,e,"side-cart"]),a.length)&&a.unblock()},error:function(t){console.log("Error:",t)}})},350))},c(document).on("click",".js-merchant-quantity-btn",function(t){t.preventDefault();var e,n,a,r,t=c(this),i=t.closest(".merchant-quantity-wrap").find(".js-update-quantity");i.length&&(e=+(i.val()||1),n=+i.attr("min"),a=+i.attr("max"),r=Math.round(parseFloat(i.attr("step"))),t.hasClass("merchant-quantity-plus")?(e+=r,e=a&&-1!=a?Math.min(e,a):e):t.hasClass("merchant-quantity-minus")&&(e-=r,e=n?Math.max(e,n):e),i.val(e),o(i))}),c(document).on("input change",".js-update-quantity",function(t){t.preventDefault(),o(c(this))}))});
     1"use strict";jQuery(document).ready(function(c){var t,e,n,o,s;merchant.setting.hasOwnProperty("show_after_add_to_cart_single_product")&&(t=c("body.single-product").length,e=c(".woocommerce-notices-wrapper").is(":visible")&&!c(".woocommerce-notices-wrapper").is(":empty"),n=c(".wc-block-components-notice-banner").is(":visible")&&!c(".wc-block-components-notice-banner").is(":empty"),t)&&(e||n)&&(c("body").toggleClass("merchant-floating-side-mini-cart-show"),c(window).trigger("merchant.floating-mini-cart-resize")),merchant.setting.hasOwnProperty("add_to_cart_slide_out")&&c(document.body).on("added_to_cart",function(t,e,n,a,r){"side-cart"!==r&&c("body").toggleClass("merchant-floating-side-mini-cart-show"),c(window).trigger("merchant.floating-mini-cart-resize")}),merchant.setting.hasOwnProperty("cart_url")&&c('[href="'+merchant.setting.cart_url+'"]').on("click",function(t){t.preventDefault(),c(window).trigger("merchant.floating-mini-cart-resize"),c("body").toggleClass("merchant-floating-side-mini-cart-show")}),(merchant.setting.hasOwnProperty("add_to_cart_slide_out")||merchant.setting.hasOwnProperty("floating_mini_cart_count"))&&(o=function(e){var t,n,a,r=merchant.setting||{},i=r.ajax_url,o=r.side_cart_nonce;e.length&&i&&o&&(t=e.attr("name"),n=Math.round(parseFloat(e.val()||1)),a=e.closest(".js-side-cart-item"),clearTimeout(s),s=setTimeout(function(){c.ajax({type:"POST",url:i,data:{action:"update_side_cart_quantity",cart_item_key:t,quantity:n,nonce:o},beforeSend:function(){a.length&&a.block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},success:function(t){t&&t.fragments&&(c(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,e,"side-cart"]),a.length)&&a.unblock()},error:function(t){console.log("Error:",t)}})},350))},c(document).on("click",".js-merchant-quantity-btn",function(t){t.preventDefault();var e,n,a,r,t=c(this),i=t.closest(".merchant-quantity-wrap").find(".js-update-quantity");i.length&&(e=+(i.val()||1),n=+i.attr("min"),a=+i.attr("max"),r=Math.round(parseFloat(i.attr("step"))),t.hasClass("merchant-quantity-plus")?(e+=r,e=a&&-1!=a?Math.min(e,a):e):t.hasClass("merchant-quantity-minus")&&(e-=r,e=n?Math.max(e,n):e),i.val(e),o(i))}),c(document).on("input change",".js-update-quantity",function(t){t.preventDefault(),o(c(this))}))});
  • merchant/trunk/inc/classes/class-merchant-svg-icons.php

    r3079548 r3083515  
    419419            'icon-tiktok'       => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z" /></svg>',
    420420            'icon-twitter'      => '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve"><path d="M14.095479,10.316482L22.286354,1h-1.940718l-7.115352,8.087682L7.551414,1H1l8.589488,12.231093L1,23h1.940717  l7.509372-8.542861L16.448587,23H23L14.095479,10.316482z M11.436522,13.338465l-0.871624-1.218704l-6.924311-9.68815h2.981339  l5.58978,7.82155l0.867949,1.218704l7.26506,10.166271h-2.981339L11.436522,13.338465z"/></svg>',
    421             'icon-discord'      => '<svg viewBox="0 0 22 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.575 12.375C14.575 13.1375 14.0125 13.7625 13.3 13.7625C12.6 13.7625 12.025 13.1375 12.025 12.375C12.025 11.6125 12.5875 10.9875 13.3 10.9875C14.0125 10.9875 14.575 11.6125 14.575 12.375ZM8.7375 10.9875C8.025 10.9875 7.4625 11.6125 7.4625 12.375C7.4625 13.1375 8.0375 13.7625 8.7375 13.7625C9.45 13.7625 10.0125 13.1375 10.0125 12.375C10.025 11.6125 9.45 10.9875 8.7375 10.9875ZM21.9375 3.075V25.5C18.7884 22.7171 19.7955 23.6383 16.1375 20.2375L16.8 22.55H2.625C1.2125 22.55 0.0625 21.4 0.0625 19.975V3.075C0.0625 1.65 1.2125 0.5 2.625 0.5H19.375C20.7875 0.5 21.9375 1.65 21.9375 3.075ZM18.375 14.925C18.375 10.9 16.575 7.6375 16.575 7.6375C14.775 6.2875 13.0625 6.325 13.0625 6.325L12.8875 6.525C15.0125 7.175 16 8.1125 16 8.1125C13.0307 6.48511 9.54277 6.48481 6.6625 7.75C6.2 7.9625 5.925 8.1125 5.925 8.1125C5.925 8.1125 6.9625 7.125 9.2125 6.475L9.0875 6.325C9.0875 6.325 7.375 6.2875 5.575 7.6375C5.575 7.6375 3.775 10.9 3.775 14.925C3.775 14.925 4.825 16.7375 7.5875 16.825C7.5875 16.825 8.05 16.2625 8.425 15.7875C6.8375 15.3125 6.2375 14.3125 6.2375 14.3125C6.42139 14.4412 6.72461 14.6081 6.75 14.625C8.85986 15.8065 11.8568 16.1937 14.55 15.0625C14.9875 14.9 15.475 14.6625 15.9875 14.325C15.9875 14.325 15.3625 15.35 13.725 15.8125C14.1 16.2875 14.55 16.825 14.55 16.825C17.3125 16.7375 18.375 14.925 18.375 14.925Z" fill="black"/>
    422             </svg>',
     421            'icon-discord'      => '<svg viewBox="0 0 22 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.575 12.375C14.575 13.1375 14.0125 13.7625 13.3 13.7625C12.6 13.7625 12.025 13.1375 12.025 12.375C12.025 11.6125 12.5875 10.9875 13.3 10.9875C14.0125 10.9875 14.575 11.6125 14.575 12.375ZM8.7375 10.9875C8.025 10.9875 7.4625 11.6125 7.4625 12.375C7.4625 13.1375 8.0375 13.7625 8.7375 13.7625C9.45 13.7625 10.0125 13.1375 10.0125 12.375C10.025 11.6125 9.45 10.9875 8.7375 10.9875ZM21.9375 3.075V25.5C18.7884 22.7171 19.7955 23.6383 16.1375 20.2375L16.8 22.55H2.625C1.2125 22.55 0.0625 21.4 0.0625 19.975V3.075C0.0625 1.65 1.2125 0.5 2.625 0.5H19.375C20.7875 0.5 21.9375 1.65 21.9375 3.075ZM18.375 14.925C18.375 10.9 16.575 7.6375 16.575 7.6375C14.775 6.2875 13.0625 6.325 13.0625 6.325L12.8875 6.525C15.0125 7.175 16 8.1125 16 8.1125C13.0307 6.48511 9.54277 6.48481 6.6625 7.75C6.2 7.9625 5.925 8.1125 5.925 8.1125C5.925 8.1125 6.9625 7.125 9.2125 6.475L9.0875 6.325C9.0875 6.325 7.375 6.2875 5.575 7.6375C5.575 7.6375 3.775 10.9 3.775 14.925C3.775 14.925 4.825 16.7375 7.5875 16.825C7.5875 16.825 8.05 16.2625 8.425 15.7875C6.8375 15.3125 6.2375 14.3125 6.2375 14.3125C6.42139 14.4412 6.72461 14.6081 6.75 14.625C8.85986 15.8065 11.8568 16.1937 14.55 15.0625C14.9875 14.9 15.475 14.6625 15.9875 14.325C15.9875 14.325 15.3625 15.35 13.725 15.8125C14.1 16.2875 14.55 16.825 14.55 16.825C17.3125 16.7375 18.375 14.925 18.375 14.925Z" fill="black"/></svg>',
    423422            'icon-github'       => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>',
    424423            'icon-linkedin'     => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/></svg>',
     
    448447            'icon-copy-to-clipboard' => '<svg height="48" viewBox="0 0 48 48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h48v48h-48z" fill="none"/><path d="M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"/></svg>',
    449448
     449            // Free-Gifts Icons.
     450            'gifts-icon-1' => '<svg viewBox="14.55 10 30.91 40" fill="currentColor" xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M43.948 19.0908H37.3935C39.3687 17.1648 40.5974 14.4767 40.5974 11.5066C40.5974 10.6745 39.9229 10 39.0908 10C35.2352 10 31.8543 12.07 30 15.1568C28.1457 12.07 24.7649 10 20.9093 10C20.0772 10 19.4027 10.6745 19.4027 11.5066C19.4027 14.4767 20.6315 17.1648 22.6067 19.0908H16.052C15.2199 19.0908 14.5454 19.7653 14.5454 20.5974V48.4935C14.5454 49.3256 15.2199 50.0001 16.052 50.0001H43.948C44.7801 50.0001 45.4546 49.3256 45.4546 48.4935V20.5974C45.4546 19.7653 44.7801 19.0908 43.948 19.0908ZM42.4414 33.0388H31.5066V22.104H42.4414V33.0388ZM37.3926 13.2049C36.7448 16.0256 34.5191 18.2513 31.6982 18.8992C32.3461 16.0783 34.5718 13.8526 37.3926 13.2049ZM28.3018 18.8991C25.481 18.2512 23.2553 16.0256 22.6075 13.2048C25.4283 13.8526 27.654 16.0783 28.3018 18.8991ZM28.4934 22.104V33.0388H17.5586V22.104H28.4934ZM17.5586 36.052H28.4934V46.9869H17.5586V36.052ZM31.5066 46.9868V36.052H42.4414V46.9869H31.5066V46.9868Z"></path></svg>',
     451            'gifts-icon-2' => '<svg viewBox="6 7 48 46" fill="currentColor" xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M50.3077 19.8823H42.2123C42.3023 19.8064 42.3946 19.7328 42.4823 19.6523C43.1832 19.0318 43.748 18.2738 44.1415 17.4257C44.535 16.5777 44.7487 15.6579 44.7692 14.7238C44.7995 13.7019 44.62 12.6846 44.2415 11.7344C43.8631 10.7842 43.2938 9.9211 42.5685 9.1981C41.8432 8.4751 40.9774 7.90745 40.024 7.53001C39.0707 7.15257 38.05 6.9733 37.0246 7.00321C36.0869 7.02334 35.1635 7.23615 34.3122 7.62832C33.4608 8.0205 32.6999 8.58359 32.0769 9.28235C31.215 10.2779 30.5142 11.4015 30 12.6125C29.4858 11.4015 28.785 10.2779 27.9231 9.28235C27.3001 8.58359 26.5392 8.0205 25.6878 7.62832C24.8365 7.23615 23.9131 7.02334 22.9754 7.00321C21.95 6.9733 20.9293 7.15257 19.976 7.53001C19.0226 7.90745 18.1568 8.4751 17.4315 9.1981C16.7062 9.9211 16.1369 10.7842 15.7585 11.7344C15.38 12.6846 15.2005 13.7019 15.2308 14.7238C15.2513 15.6579 15.465 16.5777 15.8585 17.4257C16.252 18.2738 16.8168 19.0318 17.5177 19.6523C17.6054 19.7282 17.6977 19.8018 17.7877 19.8823H9.69231C8.71305 19.8823 7.77389 20.27 7.08145 20.9601C6.38901 21.6502 6 22.5861 6 23.5621V30.9215C6 31.8975 6.38901 32.8334 7.08145 33.5235C7.77389 34.2136 8.71305 34.6013 9.69231 34.6013V49.3203C9.69231 50.2962 10.0813 51.2321 10.7738 51.9222C11.4662 52.6123 12.4054 53 13.3846 53H27.2308C27.4756 53 27.7104 52.9031 27.8835 52.7306C28.0566 52.558 28.1538 52.324 28.1538 52.0801V30.9215H9.69231V23.5621H28.1538V30.9215H31.8462V23.5621H50.3077V30.9215H31.8462V52.0801C31.8462 52.324 31.9434 52.558 32.1165 52.7306C32.2896 52.9031 32.5244 53 32.7692 53H46.6154C47.5946 53 48.5338 52.6123 49.2262 51.9222C49.9187 51.2321 50.3077 50.2962 50.3077 49.3203V34.6013C51.287 34.6013 52.2261 34.2136 52.9185 33.5235C53.611 32.8334 54 31.8975 54 30.9215V23.5621C54 22.5861 53.611 21.6502 52.9185 20.9601C52.2261 20.27 51.287 19.8823 50.3077 19.8823ZM19.9638 16.8925C19.641 16.6012 19.3822 16.2465 19.2035 15.8508C19.0248 15.455 18.9301 15.0267 18.9254 14.5927C18.9137 14.0842 19.004 13.5785 19.1909 13.1052C19.3779 12.6319 19.6577 12.2006 20.014 11.8365C20.3704 11.4724 20.796 11.1828 21.2661 10.9847C21.7362 10.7866 22.2412 10.684 22.7515 10.683H22.8646C23.3001 10.6876 23.7299 10.782 24.127 10.9601C24.5241 11.1382 24.88 11.3962 25.1723 11.7179C27.1085 13.8981 27.7915 17.5135 28.0315 19.7489C25.7792 19.512 22.1538 18.8313 19.9638 16.8925ZM40.0408 16.8925C37.8508 18.8244 34.2162 19.5051 31.9638 19.7443C32.2385 17.3272 33 13.7877 34.8462 11.7202C35.1385 11.3985 35.4944 11.1405 35.8915 10.9624C36.2886 10.7843 36.7184 10.6899 37.1538 10.6853H37.2669C37.7773 10.6884 38.2819 10.7931 38.7512 10.9931C39.2205 11.1932 39.645 11.4845 39.9998 11.8502C40.3547 12.2158 40.6327 12.6483 40.8177 13.1224C41.0026 13.5965 41.0908 14.1026 41.0769 14.6111C41.0694 15.0421 40.9732 15.467 40.7941 15.8594C40.6151 16.2519 40.3571 16.6035 40.0362 16.8925H40.0408Z"></path></svg>',
     452            'gifts-icon-3' => '<svg viewBox="9 9 43 42" fill="currentColor" xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M48.6923 20.7621H41.4402C41.5208 20.6928 41.6035 20.6256 41.6821 20.5521C42.3099 19.9855 42.8159 19.2935 43.1685 18.5192C43.521 17.7449 43.7124 16.905 43.7308 16.0521C43.7579 15.1191 43.5971 14.1903 43.258 13.3227C42.919 12.4551 42.409 11.6671 41.7593 11.007C41.1096 10.3468 40.3339 9.82854 39.4799 9.48392C38.6258 9.13931 37.7115 8.97563 36.7929 9.00293C35.9529 9.02131 35.1257 9.21562 34.363 9.57369C33.6003 9.93176 32.9186 10.4459 32.3606 11.0839C31.5884 11.9929 30.9606 13.0188 30.5 14.1245C30.0394 13.0188 29.4116 11.9929 28.6394 11.0839C28.0814 10.4459 27.3997 9.93176 26.637 9.57369C25.8743 9.21562 25.0471 9.02131 24.2071 9.00293C23.2885 8.97563 22.3742 9.13931 21.5201 9.48392C20.6661 9.82854 19.8904 10.3468 19.2407 11.007C18.591 11.6671 18.081 12.4551 17.742 13.3227C17.4029 14.1903 17.2421 15.1191 17.2692 16.0521C17.2876 16.905 17.479 17.7449 17.8315 18.5192C18.1841 19.2935 18.6901 19.9855 19.3179 20.5521C19.3965 20.6214 19.4792 20.6886 19.5598 20.7621H12.3077C11.4304 20.7621 10.5891 21.1161 9.9688 21.7462C9.34849 22.3762 9 23.2308 9 24.1219V30.8414C9 31.7325 9.34849 32.587 9.9688 33.2171C10.5891 33.8472 11.4304 34.2012 12.3077 34.2012V47.6402C12.3077 48.5313 12.6562 49.3859 13.2765 50.0159C13.8968 50.646 14.7381 51 15.6154 51H45.3846C46.2619 51 47.1032 50.646 47.7235 50.0159C48.3438 49.3859 48.6923 48.5313 48.6923 47.6402V34.2012C49.5696 34.2012 50.4109 33.8472 51.0312 33.2171C51.6515 32.587 52 31.7325 52 30.8414V24.1219C52 23.2308 51.6515 22.3762 51.0312 21.7462C50.4109 21.1161 49.5696 20.7621 48.6923 20.7621ZM34.8413 13.3097C35.1032 13.016 35.422 12.7804 35.7778 12.6178C36.1335 12.4552 36.5186 12.3691 36.9087 12.3648H37.01C37.4672 12.3677 37.9192 12.4633 38.3396 12.6459C38.76 12.8285 39.1403 13.0946 39.4582 13.4284C39.776 13.7622 40.0251 14.1572 40.1908 14.59C40.3565 15.0229 40.4355 15.485 40.4231 15.9492C40.4189 16.3455 40.3341 16.7366 40.174 17.0979C40.0139 17.4593 39.782 17.7831 39.4928 18.0491C37.5309 19.813 34.2749 20.4345 32.2572 20.6529C32.5053 18.4292 33.1875 15.1975 34.8413 13.3097ZM21.592 13.3853C22.2327 12.7346 23.1005 12.367 24.0066 12.3627H24.1079C24.498 12.367 24.883 12.4531 25.2388 12.6157C25.5945 12.7783 25.9133 13.0139 26.1752 13.3076C27.9097 15.2983 28.5216 18.5993 28.7366 20.6403C26.7272 20.4303 23.4774 19.8004 21.5175 18.0386C21.2284 17.7726 20.9965 17.4488 20.8364 17.0874C20.6763 16.7261 20.5915 16.335 20.5873 15.9387C20.5744 15.4668 20.6562 14.9971 20.8274 14.5581C20.9987 14.1192 21.256 13.7202 21.5837 13.3853H21.592ZM12.3077 24.1219H28.8462V30.8414H12.3077V24.1219ZM15.6154 34.2012H28.8462V47.6402H15.6154V34.2012ZM45.3846 47.6402H32.1538V34.2012H45.3846V47.6402ZM48.6923 30.8414H32.1538V24.1219H48.6923V30.8414Z"></path></svg>',
     453            'gifts-icon-4' => '<svg viewBox="9 15 42 31" fill="currentColor" xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M45.3883 15C47.2586 15 48.6613 15.4723 49.5973 16.4154C50.4835 17.3104 50.9494 18.6163 50.9959 20.3359L51 20.6259V40.3915C51 42.2552 50.5324 43.6557 49.5965 44.5929C48.7111 45.4821 47.4055 45.9494 45.6796 45.9959L45.3883 46H14.6117C12.7414 46 11.3387 45.531 10.4027 44.5937C9.51653 43.7046 9.05059 42.4011 9.00408 40.6824L9 40.3923V20.6267C9 18.7506 9.46757 17.3443 10.4035 16.4063C11.2889 15.5179 12.5945 15.0505 14.3204 15.0041L14.6117 15H45.3883ZM11.8772 40.2283C11.8772 41.1721 12.1155 41.8831 12.5921 42.3613C13.0327 42.8021 13.6496 43.04 14.4444 43.0739L14.6484 43.0781L28.9098 43.0773V33.4588H28.785C28.4871 34.3902 28.0195 35.2794 27.3814 36.1271C26.7449 36.973 26.0131 37.7403 25.201 38.4135C24.4353 39.0575 23.6023 39.6144 22.7171 40.0741C21.8766 40.5034 21.1177 40.7727 20.438 40.8821C19.9264 40.9542 19.5241 40.839 19.2319 40.5365C18.9398 40.2341 18.7937 39.8835 18.7937 39.4841C18.7937 39.0482 18.9194 38.6944 19.1691 38.4226C19.3886 38.1839 19.6848 38.0314 20.0586 37.9651L20.2242 37.9411C20.8436 37.869 21.5053 37.6362 22.2071 37.2425C22.9366 36.8309 23.6226 36.3444 24.2545 35.7907C24.8941 35.2381 25.486 34.631 26.0236 33.9759C26.4773 33.4198 26.8323 32.8945 27.0901 32.3981L27.1937 32.1876H11.8772V40.2283ZM48.1219 32.1876H32.8054C33.0682 32.7445 33.4582 33.3403 33.9764 33.9759C34.5143 34.631 35.1064 35.2382 35.7463 35.7907C36.4073 36.3658 37.0862 36.8497 37.7831 37.2425C38.4033 37.5922 38.9924 37.8143 39.5506 37.9113L39.7587 37.9411C40.2238 37.99 40.5804 38.1499 40.8309 38.4217C41.0806 38.6952 41.2063 39.0482 41.2063 39.4841C41.2063 39.8835 41.0594 40.2341 40.7681 40.5365C40.4759 40.839 40.0744 40.9542 39.562 40.8821C38.8708 40.7727 38.1079 40.5034 37.2739 40.0741C36.3924 39.6128 35.5626 39.056 34.799 38.4135C33.9829 37.7356 33.2559 36.9732 32.6186 36.1263C32.0722 35.4103 31.6348 34.615 31.3211 33.7671L31.215 33.4588H31.0722V43.0773H45.3524C46.2337 43.0773 46.9159 42.8386 47.3989 42.3613C47.8445 41.9196 48.0844 41.2799 48.1187 40.4421L48.1227 40.2283L48.1219 32.1876ZM45.5523 17.9261L45.3524 17.9219H31.0722V24.1478C31.4426 23.4052 31.9284 22.7281 32.5109 22.1424C33.0508 21.5979 33.684 21.1581 34.3795 20.8447C35.0491 20.5442 35.7732 20.3895 36.5052 20.3905C37.7921 20.3905 38.8619 20.8231 39.7138 21.6883C40.5657 22.5534 40.9916 23.6522 40.9916 24.9823C40.9916 25.7446 40.8309 26.4556 40.5094 27.1153C40.177 27.7885 39.7186 28.3894 39.1597 28.8845C38.6372 29.3514 38.0557 29.7455 37.4306 30.0562L37.1491 30.1913H48.1219V20.79C48.1219 19.8453 47.8812 19.1326 47.3989 18.6478C46.9534 18.2012 46.3381 17.9592 45.5523 17.9261ZM28.9106 17.9219H14.6476C13.7541 17.9219 13.0686 18.1639 12.5921 18.6478C12.1522 19.0953 11.9148 19.7375 11.8821 20.5762L11.8772 20.79V30.1913H22.833C22.1089 29.8579 21.4374 29.4175 20.8403 28.8845C20.2808 28.388 19.8199 27.7875 19.4825 27.1153C19.1541 26.454 18.9854 25.7228 18.9904 24.9823C18.9904 23.6514 19.4196 22.5534 20.2772 21.6883C21.1357 20.8231 22.2014 20.3905 23.476 20.3905C24.2267 20.3905 24.9424 20.5414 25.6213 20.8447C26.3165 21.1582 26.9495 21.598 27.4891 22.1424C27.9946 22.6487 28.4236 23.2281 28.7621 23.8619L28.9098 24.1478L28.9106 17.9219ZM23.6204 22.9677C22.9774 22.9677 22.465 23.1641 22.0831 23.5578C21.702 23.9505 21.5119 24.4925 21.5119 25.182C21.5119 25.7504 21.684 26.3164 22.03 26.8791C22.3752 27.4418 22.8518 27.9497 23.4597 28.4039C24.098 28.8739 24.8022 29.244 25.5487 29.5019C26.2492 29.7476 26.9818 29.8861 27.7225 29.9129L28.0514 29.9195H28.5875V29.4107C28.5925 28.5716 28.4596 27.7376 28.1942 26.9429C27.948 26.1986 27.5794 25.502 27.104 24.8828C26.6389 24.2837 26.1084 23.8146 25.5128 23.4757C24.9357 23.142 24.2829 22.967 23.6188 22.9677M36.3616 22.9677C35.7031 22.9685 35.0563 23.1435 34.4848 23.4757C33.8891 23.8155 33.3587 24.2837 32.8944 24.8828C32.4183 25.503 32.0469 26.1992 31.7952 26.9429C31.5583 27.6333 31.4249 28.356 31.3995 29.0867L31.3929 29.4107V29.9195H31.9299C32.787 29.9255 33.6389 29.7843 34.4497 29.5019C35.1945 29.2455 35.8965 28.8752 36.5313 28.4039C37.1336 27.9497 37.6068 27.4418 37.9528 26.8791C38.298 26.3164 38.471 25.7504 38.471 25.182C38.471 24.4925 38.2833 23.9505 37.9079 23.5578C37.5326 23.1641 37.0169 22.9677 36.3616 22.9677Z"></path></svg>',
     454            'gifts-icon-5' => '<svg viewBox="5 10 50 40" fill="currentColor" xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M20.6719 12.503C21.0156 11.5266 20.5078 10.4563 19.5312 10.1126C18.5547 9.76889 17.4844 10.2767 17.1406 11.2531L16.3047 13.6123L15.5312 11.2844C15.2031 10.3001 14.1406 9.76889 13.1562 10.097C12.1719 10.4251 11.6406 11.4875 11.9688 12.4718L12.6172 14.4248L10.4766 12.8624C9.64062 12.2531 8.46875 12.4406 7.85938 13.2764C7.25 14.1123 7.4375 15.2841 8.27344 15.8934L10.4844 17.5026H8.75C6.67969 17.5026 5 19.1822 5 21.2523V46.2503C5 48.3204 6.67969 50 8.75 50H20.6719C20.25 49.2657 20 48.4142 20 47.5002V30.0016C20 27.6659 21.6016 25.7051 23.7656 25.1583C23.9062 22.7366 25.1016 20.6118 26.8984 19.2134C26.2266 18.1823 25.0703 17.5026 23.75 17.5026H22.0156L24.2266 15.8934C25.0625 15.2841 25.25 14.1123 24.6406 13.2764C24.0312 12.4406 22.8594 12.2531 22.0234 12.8624L20.0391 14.3076L20.6719 12.503ZM33.3984 24.4943L35.7109 27.5018H31.875C30.8359 27.5018 30 26.666 30 25.627C30 24.6036 30.8438 23.7521 31.8906 23.7521C32.4844 23.7521 33.0391 24.0255 33.3984 24.4943ZM26.25 25.627C26.25 26.2832 26.3594 26.9159 26.5703 27.5018H26.25C24.1797 27.5018 22.5 29.1814 22.5 31.2515V37.501H37.5V30.0016H40V37.501H55V31.2515C55 29.1814 53.3203 27.5018 51.25 27.5018H50.9297C51.1406 26.9159 51.25 26.2832 51.25 25.627C51.25 22.51 48.7109 20.0024 45.6094 20.0024C43.8594 20.0024 42.2031 20.8149 41.1328 22.2054L38.75 25.2989L36.3672 22.2054C35.2969 20.8149 33.6328 20.0024 31.8906 20.0024C28.7891 20.0024 26.25 22.51 26.25 25.627ZM22.5 46.2503C22.5 48.3204 24.1797 50 26.25 50H37.5V40.0008H22.5V46.2503ZM40 50H51.25C53.3203 50 55 48.3204 55 46.2503V40.0008H40V50ZM47.5 25.627C47.5 26.666 46.6641 27.5018 45.625 27.5018H41.7891L44.1016 24.4943C44.4609 24.0334 45.0156 23.7521 45.6094 23.7521C46.6562 23.7521 47.5 24.6036 47.5 25.627Z"></path></svg>',
    450455        );
    451456    }
  • merchant/trunk/inc/modules/advanced-reviews/admin/options.php

    r3079548 r3083515  
    33/**
    44 * Advanced Reviews Options.
    5  * 
     5 *
    66 * @package Merchant
    77 */
     
    1212
    1313// Settings
    14 Merchant_Admin_Options::create( array(
    15     'title'  => __( 'Settings', 'merchant' ),
    16     'module' => Merchant_Advanced_Reviews::MODULE_ID,
    17     'fields' => array(
    18 
    19         // Title.
    20         array(
    21             'id'        => 'title',
    22             'type'    => 'text',
    23             'title'  => __( 'Title', 'merchant' ),
    24             'default'   => __( 'What our customers are saying', 'merchant' ),
     14Merchant_Admin_Options::create(
     15    array(
     16        'title'  => __( 'Settings', 'merchant' ),
     17        'module' => Merchant_Advanced_Reviews::MODULE_ID,
     18        'fields' => array(
     19
     20            // Title.
     21            array(
     22                'id'      => 'title',
     23                'type'    => 'text',
     24                'title'   => __( 'Title', 'merchant' ),
     25                'default' => __( 'What our customers are saying', 'merchant' ),
     26            ),
     27
     28            // Title HTML Tag.
     29            array(
     30                'id'      => 'title_tag',
     31                'type'    => 'select',
     32                'title'   => __( 'Title HTML tag', 'merchant' ),
     33                'options' => array(
     34                    'h1'  => __( 'H1', 'merchant' ),
     35                    'h2'  => __( 'H2', 'merchant' ),
     36                    'h3'  => __( 'H3', 'merchant' ),
     37                    'h4'  => __( 'H4', 'merchant' ),
     38                    'h5'  => __( 'H5', 'merchant' ),
     39                    'h6'  => __( 'H6', 'merchant' ),
     40                    'div' => __( 'div', 'merchant' ),
     41                ),
     42                'default' => 'h2',
     43            ),
     44
     45            // Hide Title.
     46            array(
     47                'id'      => 'hide_title',
     48                'type'    => 'switcher',
     49                'title'   => __( 'Hide title', 'merchant' ),
     50                'default' => 0,
     51            ),
     52
     53            // Description.
     54            array(
     55                'id'      => 'description',
     56                'type'    => 'textarea',
     57                'title'   => __( 'Description', 'merchant' ),
     58                'default' => '',
     59            ),
     60
     61            // Title and Description Alignment.
     62            array(
     63                'id'      => 'title_desc_align',
     64                'type'    => 'radio',
     65                'title'   => __( 'Title and description alignment', 'merchant' ),
     66                'options' => array(
     67                    'left'   => __( 'Left', 'merchant' ),
     68                    'center' => __( 'Center', 'merchant' ),
     69                    'right'  => __( 'Right', 'merchant' ),
     70                ),
     71                'default' => 'left',
     72            ),
     73
     74            // Default Reviews Sorting.
     75            array(
     76                'id'      => 'default_sorting',
     77                'type'    => 'select',
     78                'title'   => __( 'Default reviews sorting', 'merchant' ),
     79                'options' => array(
     80                    'newest'    => __( 'Newest', 'merchant' ),
     81                    'oldest'    => __( 'Oldest', 'merchant' ),
     82                    'top-rated' => __( 'Top rated', 'merchant' ),
     83                    'low-rated' => __( 'Low rated', 'merchant' ),
     84                    'photo-first' => __( 'Photo first', 'merchant' ),
     85                ),
     86                'default' => 'newest',
     87            ),
     88
     89            // Pagination Type.
     90            array(
     91                'id'      => 'pagination_type',
     92                'type'    => 'select',
     93                'title'   => __( 'Pagination type', 'merchant' ),
     94                'desc'    => sprintf(
     95                    /* Translators: 1. Defualt WordPress discussion settings page. */
     96                    __( 'This option works only if you have pagination for comments enabled. By default, WordPress doesn\'t have pagination enabled for comments/reviews. You can change it from: <a href="%1$s" target="_blank">Settings > Discusson</a>', 'merchant' ),
     97                    admin_url( 'options-discussion.php' )
     98                ),
     99                'options' => array(
     100                    'default'   => __( 'Default', 'merchant' ),
     101                    'load-more' => __( 'Load more button', 'merchant' ),
     102                ),
     103                'default' => 'load-more',
     104            ),
     105
     106            // Review options.
     107            array(
     108                'id'      => 'review_options',
     109                'type'    => 'radio',
     110                'title'   => __( 'Review options', 'merchant' ),
     111                'options' => array(
     112                    'image_and_text' => __( 'Image and text', 'merchant' ),
     113                    'image'          => __( 'Image only', 'merchant' ),
     114                    'text'           => __( 'Text only', 'merchant' ),
     115                ),
     116                'default' => 'image_and_text',
     117            ),
     118
     119            // Photos Upload limit.
     120            array(
     121                'id'      => 'photos_limit',
     122                'type'    => 'range',
     123                'title'   => __( 'Photos upload limit', 'merchant' ),
     124                'desc'    => __( 'Controls the photos upload limit for a review.', 'merchant' ),
     125                'min'     => 1,
     126                'max'     => '',
     127                'step'    => 1,
     128                'unit'    => '',
     129                'default' => 6,
     130            ),
     131
     132            // Review images carousel.
     133            array(
     134                'id'      => 'review_images_carousel',
     135                'type'    => 'switcher',
     136                'title'   => __( 'Review images carousel', 'merchant' ),
     137                'desc'    => __( 'Display first image from each review as carousel to captivate and assist shoppers in their decision-making process.', 'merchant' ),
     138                'default' => 0,
     139            ),
     140
     141            // Number of Images per page.
     142            array(
     143                'id'        => 'review_images_carousel_total',
     144                'type'      => 'range',
     145                'title'     => __( 'Total images', 'merchant' ),
     146                'desc'      => __( 'Controls the number of images to be displayed in the slider.', 'merchant' ),
     147                'min'       => 1,
     148                'step'      => 1,
     149                'unit'      => '',
     150                'default'   => 12,
     151                'condition' => array( 'review_images_carousel', '==', '1' ),
     152            ),
     153
     154            // Number of Columns.
     155            array(
     156                'id'        => 'review_images_carousel_per_page',
     157                'type'      => 'range',
     158                'title'     => __( 'Columns', 'merchant' ),
     159                'desc'      => __( 'Controls the number of images to be displayed per slide.', 'merchant' ),
     160                'min'       => 1,
     161                'max'       => 6,
     162                'step'      => 1,
     163                'unit'      => '',
     164                'default'   => 3,
     165                'condition' => array( 'review_images_carousel', '==', '1' ),
     166            ),
     167
     168            // Carousel Title.
     169            array(
     170                'id'      => 'carousel_title',
     171                'type'    => 'text',
     172                'title'   => __( 'Carousel Title', 'merchant' ),
     173                'default' => __( 'Customer Images', 'merchant' ),
     174            ),
     175
     176            // Hook Order.
     177            array(
     178                'id'      => 'hook_order',
     179                'type'    => 'range',
     180                'title'   => __( 'Hook order', 'merchant' ),
     181                'desc'    => __( 'Controls the display order from the entire advanced reviews section. Low values will move the section to top. High values will move the section to bottom.', 'merchant' ),
     182                'min'     => 1,
     183                'max'     => 100,
     184                'step'    => 1,
     185                'unit'    => '',
     186                'default' => 10,
     187            ),
     188
     189            /**
     190             * Styles
     191             *
     192             */
     193
     194            // Title color.
     195            array(
     196                'id'      => 'title_color',
     197                'type'    => 'color',
     198                'title'   => __( 'Title color', 'merchant' ),
     199                'default' => '#212121',
     200            ),
     201
     202            // Description color.
     203            array(
     204                'id'      => 'description_color',
     205                'type'    => 'color',
     206                'title'   => __( 'Description color', 'merchant' ),
     207                'default' => '#777',
     208            ),
     209
     210            // Stars color.
     211            array(
     212                'id'      => 'stars_color',
     213                'type'    => 'color',
     214                'title'   => __( 'Stars color', 'merchant' ),
     215                'default' => '#FFA441',
     216            ),
     217
     218            // Stars background color.
     219            array(
     220                'id'      => 'stars_background_color',
     221                'type'    => 'color',
     222                'title'   => __( 'Stars background color', 'merchant' ),
     223                'default' => '#757575',
     224            ),
     225
     226            // Progress bar color.
     227            array(
     228                'id'      => 'progress_bar_color',
     229                'type'    => 'color',
     230                'title'   => __( 'Progress bar color', 'merchant' ),
     231                'default' => '#212121',
     232            ),
     233
     234            // Progress bar background color.
     235            array(
     236                'id'      => 'progress_bar_bg_color',
     237                'type'    => 'color',
     238                'title'   => __( 'Progress bar background color', 'merchant' ),
     239                'default' => '#F5F5F5',
     240            ),
     241
     242            // Dividers color.
     243            array(
     244                'id'      => 'dividers_color',
     245                'type'    => 'color',
     246                'title'   => __( 'Dividers color', 'merchant' ),
     247                'default' => '#e9e9e9',
     248            ),
     249
     250            // Button color.
     251            array(
     252                'id'      => 'button_color',
     253                'type'    => 'color',
     254                'title'   => __( 'Button color', 'merchant' ),
     255                'default' => '#FFF',
     256            ),
     257
     258            // Button color (hover).
     259            array(
     260                'id'      => 'button_color_hover',
     261                'type'    => 'color',
     262                'title'   => __( 'Button color (hover)', 'merchant' ),
     263                'default' => '#FFF',
     264            ),
     265
     266            // Button background color.
     267            array(
     268                'id'      => 'button_bg_color',
     269                'type'    => 'color',
     270                'title'   => __( 'Button background color', 'merchant' ),
     271                'default' => '#212121',
     272            ),
     273
     274            // Button background color (hover).
     275            array(
     276                'id'      => 'button_bg_color_hover',
     277                'type'    => 'color',
     278                'title'   => __( 'Button background color (hover)', 'merchant' ),
     279                'default' => '#757575',
     280            ),
     281
    25282        ),
    26 
    27         // Title HTML Tag.
    28         array(
    29             'id'        => 'title_tag',
    30             'type'      => 'select',
    31             'title'     => __( 'Title HTML tag', 'merchant' ),
    32             'options'   => array(
    33                 'h1'  => __( 'H1', 'merchant' ),
    34                 'h2'  => __( 'H2', 'merchant' ),
    35                 'h3'  => __( 'H3', 'merchant' ),
    36                 'h4'  => __( 'H4', 'merchant' ),
    37                 'h5'  => __( 'H5', 'merchant' ),
    38                 'h6'  => __( 'H6', 'merchant' ),
    39                 'div' => __( 'div', 'merchant' ),
    40             ),
    41             'default'   => 'h2',
     283    )
     284);
     285
     286// Modal Settings
     287Merchant_Admin_Options::create(
     288    array(
     289        'title'  => __( 'Modal Settings', 'merchant' ),
     290        'module' => Merchant_Advanced_Reviews::MODULE_ID,
     291        'fields' => array(
     292
     293            /**
     294            * Styles
     295            *
     296            */
     297
     298            // Modal Close icon color.
     299            array(
     300                'id'      => 'modal_close_icon_color',
     301                'type'    => 'color',
     302                'title'   => __( 'Close icon color', 'merchant' ),
     303                'default' => '#757575',
     304            ),
     305
     306            // Modal Close icon color (hover).
     307            array(
     308                'id'      => 'modal_close_icon_color_hover',
     309                'type'    => 'color',
     310                'title'   => __( 'Close icon color (hover)', 'merchant' ),
     311                'default' => '#212121',
     312            ),
     313
     314            // Modal Title color.
     315            array(
     316                'id'      => 'modal_title_color',
     317                'type'    => 'color',
     318                'title'   => __( 'Title color', 'merchant' ),
     319                'default' => '#212121',
     320            ),
     321
     322            // Modal Description color.
     323            array(
     324                'id'      => 'modal_description_color',
     325                'type'    => 'color',
     326                'title'   => __( 'Description color', 'merchant' ),
     327                'default' => '#777',
     328            ),
     329
     330            // Modal Textarea color.
     331            array(
     332                'id'      => 'modal_textarea_color',
     333                'type'    => 'color',
     334                'title'   => __( 'Textarea color', 'merchant' ),
     335                'default' => '#777',
     336            ),
     337
     338            // Modal Textarea background color.
     339            array(
     340                'id'      => 'modal_textarea_background_color',
     341                'type'    => 'color',
     342                'title'   => __( 'Textarea background color', 'merchant' ),
     343                'default' => '#FFF',
     344            ),
     345
     346            // Modal background color.
     347            array(
     348                'id'      => 'modal_background_color',
     349                'type'    => 'color',
     350                'title'   => __( 'Modal background color', 'merchant' ),
     351                'default' => '#F5F5F5',
     352            ),
     353
    42354        ),
    43 
    44         // Hide Title.
    45         array(
    46             'id'      => 'hide_title',
    47             'type'    => 'switcher',
    48             'title'   => __( 'Hide title', 'merchant' ),
    49             'default' => 0,
    50         ),
    51 
    52         // Description.
    53         array(
    54             'id'        => 'description',
    55             'type'      => 'textarea',
    56             'title'     => __( 'Description', 'merchant' ),
    57             'default'   => '',
    58         ),
    59 
    60         // Title and Description Alignment.
    61         array(
    62             'id'      => 'title_desc_align',
    63             'type'    => 'radio',
    64             'title'   => __( 'Title and description alignment', 'merchant' ),
    65             'options' => array(
    66                 'left'   => __( 'Left', 'merchant' ),
    67                 'center' => __( 'Center', 'merchant' ),
    68                 'right'  => __( 'Right', 'merchant' ),
    69             ),
    70             'default' => 'left',
    71         ),
    72        
    73         // Default Reviews Sorting.
    74         array(
    75             'id'        => 'default_sorting',
    76             'type'      => 'select',
    77             'title'     => __( 'Default reviews sorting', 'merchant' ),
    78             'options'   => array(
    79                 'newest'     => __( 'Newest', 'merchant' ),
    80                 'oldest'     => __( 'Oldest', 'merchant' ),
    81                 'top-rated'  => __( 'Top rated', 'merchant' ),
    82                 'low-rated'  => __( 'Low rated', 'merchant' ),
    83             ),
    84             'default'   => 'newest',
    85         ),
    86 
    87         // Pagination Type.
    88         array(
    89             'id'        => 'pagination_type',
    90             'type'      => 'select',
    91             'title'     => __( 'Pagination type', 'merchant' ),
    92             'desc'      => sprintf(
    93 
    94                 /* Translators: 1. Defualt WordPress discussion settings page. */
    95                 __( 'This option works only if you have pagination for comments enabled. By default, WordPress doesn\'t have pagination enabled for comments/reviews. You can change it from: <a href="%1$s" target="_blank">Settings > Discusson</a>', 'merchant' ),
    96                 admin_url( 'options-discussion.php' )
    97             ),
    98             'options'   => array(
    99                 'default'    => __( 'Default', 'merchant' ),
    100                 'load-more'  => __( 'Load more button', 'merchant' ),
    101             ),
    102             'default'   => 'default',
    103         ),
    104 
    105         // Hook Order.
    106         array(
    107             'id'        => 'hook_order',
    108             'type'      => 'range',
    109             'title'     => __( 'Hook order', 'merchant' ),
    110             'desc'      => __( 'Controls the display order from the entire advanced reviews section. Low values will move the section to top. High values will move the section to bottom.', 'merchant' ),
    111             'min'       => 1,
    112             'max'       => 100,
    113             'step'      => 1,
    114             'unit'      => '',
    115             'default'   => 10,
    116         ),
    117 
    118 
    119         /**
    120          * Styles
    121          *
    122          */
    123 
    124         // Title color.
    125         array(
    126             'id'      => 'title_color',
    127             'type'    => 'color',
    128             'title'   => __( 'Title color', 'merchant' ),
    129             'default' => '#212121',
    130         ),
    131 
    132         // Description color.
    133         array(
    134             'id'      => 'description_color',
    135             'type'    => 'color',
    136             'title'   => __( 'Description color', 'merchant' ),
    137             'default' => '#777',
    138         ),
    139 
    140         // Stars color.
    141         array(
    142             'id'      => 'stars_color',
    143             'type'    => 'color',
    144             'title'   => __( 'Stars color', 'merchant' ),
    145             'default' => '#FFA441',
    146         ),
    147 
    148         // Stars background color.
    149         array(
    150             'id'      => 'stars_background_color',
    151             'type'    => 'color',
    152             'title'   => __( 'Stars background color', 'merchant' ),
    153             'default' => '#757575',
    154         ),
    155 
    156         // Progress bar color.
    157         array(
    158             'id'      => 'progress_bar_color',
    159             'type'    => 'color',
    160             'title'   => __( 'Progress bar color', 'merchant' ),
    161             'default' => '#212121',
    162         ),
    163 
    164         // Progress bar background color.
    165         array(
    166             'id'      => 'progress_bar_bg_color',
    167             'type'    => 'color',
    168             'title'   => __( 'Progress bar background color', 'merchant' ),
    169             'default' => '#F5F5F5',
    170         ),
    171 
    172         // Dividers color.
    173         array(
    174             'id'      => 'dividers_color',
    175             'type'    => 'color',
    176             'title'   => __( 'Dividers color', 'merchant' ),
    177             'default' => '#e9e9e9',
    178         ),
    179 
    180         // Button color.
    181         array(
    182             'id'      => 'button_color',
    183             'type'    => 'color',
    184             'title'   => __( 'Button color', 'merchant' ),
    185             'default' => '#FFF',
    186         ),
    187 
    188         // Button color (hover).
    189         array(
    190             'id'      => 'button_color_hover',
    191             'type'    => 'color',
    192             'title'   => __( 'Button color (hover)', 'merchant' ),
    193             'default' => '#FFF',
    194         ),
    195 
    196         // Button background color.
    197         array(
    198             'id'      => 'button_bg_color',
    199             'type'    => 'color',
    200             'title'   => __( 'Button background color', 'merchant' ),
    201             'default' => '#212121',
    202         ),
    203 
    204         // Button background color (hover).
    205         array(
    206             'id'      => 'button_bg_color_hover',
    207             'type'    => 'color',
    208             'title'   => __( 'Button background color (hover)', 'merchant' ),
    209             'default' => '#757575',
    210         ),
    211 
    212     ),
    213 ) );
    214 
    215 // Modal Settings
    216 Merchant_Admin_Options::create( array(
    217     'title'  => __( 'Modal Settings', 'merchant' ),
    218     'module' => Merchant_Advanced_Reviews::MODULE_ID,
    219     'fields' => array(
    220 
    221         /**
    222          * Styles
    223          *
    224          */
    225 
    226         // Modal Close icon color.
    227         array(
    228             'id'      => 'modal_close_icon_color',
    229             'type'    => 'color',
    230             'title'   => __( 'Close icon color', 'merchant' ),
    231             'default' => '#757575',
    232         ),
    233 
    234         // Modal Close icon color (hover).
    235         array(
    236             'id'      => 'modal_close_icon_color_hover',
    237             'type'    => 'color',
    238             'title'   => __( 'Close icon color (hover)', 'merchant' ),
    239             'default' => '#212121',
    240         ),
    241 
    242         // Modal Title color.
    243         array(
    244             'id'      => 'modal_title_color',
    245             'type'    => 'color',
    246             'title'   => __( 'Title color', 'merchant' ),
    247             'default' => '#212121',
    248         ),
    249 
    250         // Modal Description color.
    251         array(
    252             'id'      => 'modal_description_color',
    253             'type'    => 'color',
    254             'title'   => __( 'Description color', 'merchant' ),
    255             'default' => '#777',
    256         ),
    257 
    258         // Modal Textarea color.
    259         array(
    260             'id'      => 'modal_textarea_color',
    261             'type'    => 'color',
    262             'title'   => __( 'Textarea color', 'merchant' ),
    263             'default' => '#777',
    264         ),
    265 
    266         // Modal Textarea background color.
    267         array(
    268             'id'      => 'modal_textarea_background_color',
    269             'type'    => 'color',
    270             'title'   => __( 'Textarea background color', 'merchant' ),
    271             'default' => '#FFF',
    272         ),
    273 
    274         // Modal background color.
    275         array(
    276             'id'      => 'modal_background_color',
    277             'type'    => 'color',
    278             'title'   => __( 'Modal background color', 'merchant' ),
    279             'default' => '#F5F5F5',
    280         ),
    281 
    282     ),
    283 ) );
     355    )
     356);
    284357
    285358// Shortcode
    286359$merchant_module_id = Merchant_Advanced_Reviews::MODULE_ID;
    287 Merchant_Admin_Options::create( array(
    288     'module' => $merchant_module_id,
    289     'title'  => esc_html__( 'Use shortcode', 'merchant' ),
    290     'fields' => array(
    291         array(
    292             'id'      => 'use_shortcode',
    293             'type'    => 'switcher',
    294             'title'   => __( 'Use shortcode', 'merchant' ),
    295             'default' => 0,
     360Merchant_Admin_Options::create(
     361    array(
     362        'module' => $merchant_module_id,
     363        'title'  => esc_html__( 'Use shortcode', 'merchant' ),
     364        'fields' => array(
     365            array(
     366                'id'      => 'use_shortcode',
     367                'type'    => 'switcher',
     368                'title'   => __( 'Use shortcode', 'merchant' ),
     369                'default' => 0,
     370            ),
     371            array(
     372                'type'    => 'info',
     373                'id'      => 'shortcode_info',
     374                'content' => esc_html__( 'If you are using a page builder or a theme that supports shortcodes, then you can output the module using the shortcode above. This might be useful if, for example, you find that you want to control the position of the module output more precisely than with the module settings. Note that the shortcodes can only be used on single product pages.', 'merchant' ),
     375            ),
     376            array(
     377                'id'        => 'shortcode_text',
     378                'type'      => 'text_readonly',
     379                'title'     => esc_html__( 'Shortcode text', 'merchant' ),
     380                'default'   => '[merchant_module_' . str_replace( '-', '_', $merchant_module_id ) . ']',
     381                'condition' => array( 'use_shortcode', '==', '1' ),
     382            ),
    296383        ),
    297         array(
    298             'type'    => 'info',
    299             'id'      => 'shortcode_info',
    300             'content' => esc_html__( 'If you are using a page builder or a theme that supports shortcodes, then you can output the module using the shortcode above. This might be useful if, for example, you find that you want to control the position of the module output more precisely than with the module settings. Note that the shortcodes can only be used on single product pages.', 'merchant' ),
    301         ),
    302         array(
    303             'id'        => 'shortcode_text',
    304             'type'      => 'text_readonly',
    305             'title'     => esc_html__( 'Shortcode text', 'merchant' ),
    306             'default'   => '[merchant_module_' . str_replace( '-', '_', $merchant_module_id ) . ']',
    307             'condition' => array( 'use_shortcode', '==', '1' ),
    308         ),
    309     ),
    310 ) );
     384    )
     385);
  • merchant/trunk/inc/modules/advanced-reviews/class-advanced-reviews.php

    r3079548 r3083515  
    2525
    2626        /**
     27         * Module template path.
     28         */
     29        const MODULE_TEMPLATES_PATH = 'modules/' . self::MODULE_ID;
     30
     31        /**
    2732         * Is module preview.
    2833         *
     
    5863            // Module default settings.
    5964            $this->module_default_settings = array(
    60                 'title'            => __( 'What our customers are saying', 'merchant' ),
    61                 'title_tag'        => 'h2',
    62                 'hide_title'       => 0,
    63                 'description'      => '',
    64                 'title_desc_align' => 'left',
    65                 'default_sorting'  => 'newest',
    66                 'pagination_type'  => 'default',
    67                 'hook_order'       => 10,
     65                'title'                           => esc_html__( 'What our customers are saying', 'merchant' ),
     66                'title_tag'                       => 'h2',
     67                'hide_title'                      => 0,
     68                'description'                     => '',
     69                'title_desc_align'                => 'left',
     70                'default_sorting'                 => 'newest',
     71                'pagination_type'                 => 'load-more',
     72                'photos_limit'                    => 6,
     73                'review_options'                  => 'image_and_text',
     74                'review_images_carousel'          => 0,
     75                'carousel_title'                  => esc_html__( 'Customer Images', 'merchant' ),
     76                'hook_order'                      => 10,
     77                'review_images_carousel_total'    => 12,
     78                'review_images_carousel_per_page' => 3,
    6879            );
    6980
     
    186197                );
    187198
    188                 // Don't allow 'h2' value fro tag_title because it conflicts with WordPress notifications.
     199                // Don't allow 'h2' value for tag_title because it conflicts with WordPress notifications.
    189200                if ( 'h2' === $settings['title_tag'] ) {
    190201                    $settings['title_tag'] = 'h3';
     
    205216
    206217            // Template arguments
    207             $args = array_merge( $settings, array(
    208                 'bars_data'       => array(
    209                     '1-stars'         => 1,
    210                     '2-stars'         => 2,
    211                     '3-stars'         => 3,
    212                     '4-stars'         => 4,
    213                     '5-stars'         => 5,
    214                     'total'           => 15,
    215                     '1-stars-percent' => 10,
    216                     '2-stars-percent' => 20,
    217                     '3-stars-percent' => 30,
    218                     '4-stars-percent' => 40,
    219                     '5-stars-percent' => 50,
    220                 ),
    221                 'ratings_enabled' => true,
    222                 'comments_open'   => true,
    223                 'comments'        => array(
    224                     (object) array(
    225                         'comment_approved'     => '1',
    226                         'comment_ID'           => 1,
    227                         'comment_post_ID'      => 1,
    228                         'comment_author'       => 'Kendall Grey',
    229                         'comment_author_email' => '[email protected]',
    230                         'comment_author_url'   => 'https://athemes.com',
    231                         'comment_date'         => gmdate( 'Y-m-d H:i:s', strtotime( '-1 day' ) ),
     218            $args = array_merge(
     219                $settings,
     220                array(
     221                    'bars_data'       => array(
     222                        'ratings' => array(
     223                            '5-star' => array(
     224                                'label'   => esc_html__( '5 Stars', 'merchant' ),
     225                                'value'   => 5,
     226                                'percent' => 50,
     227                            ),
     228                            '4-star' => array(
     229                                'label'   => esc_html__( '4 Stars', 'merchant' ),
     230                                'value'   => 4,
     231                                'percent' => 40,
     232                            ),
     233                            '3-star' => array(
     234                                'label'   => esc_html__( '3 Stars', 'merchant' ),
     235                                'value'   => 3,
     236                                'percent' => 30,
     237                            ),
     238                            '2-star' => array(
     239                                'label'   => esc_html__( '2 Stars', 'merchant' ),
     240                                'value'   => 2,
     241                                'percent' => 20,
     242                            ),
     243                            '1-star' => array(
     244                                'label'   => esc_html__( '1 Star', 'merchant' ),
     245                                'value'   => 1,
     246                                'percent' => 10,
     247                            ),
     248                        ),
     249                        'total'   => 15,
    232250                    ),
    233                 ),
    234                 'comment_rating'  => 3,
    235                 'comment_text'    => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, elit quis sagittis commodo, nisl elit ultricies diam, at',
    236             ) );
     251                    'ratings_enabled' => true,
     252                    'comments_open'   => true,
     253                    'comments'        => array(
     254                        (object) array(
     255                            'comment_approved'     => '1',
     256                            'comment_ID'           => 1,
     257                            'comment_post_ID'      => 1,
     258                            'comment_author'       => 'Kendall Grey',
     259                            'comment_author_email' => '[email protected]',
     260                            'comment_author_url'   => 'https://athemes.com',
     261                            'comment_date'         => gmdate( 'Y-m-d H:i:s', strtotime( '-1 day' ) ),
     262                        ),
     263                    ),
     264                    'comment_rating'  => 3,
     265                    'comment_text'    => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, elit quis sagittis commodo, nisl elit ultricies diam, at',
     266                )
     267            );
    237268
    238269            return merchant_get_template_part( 'modules/' . self::MODULE_ID, 'reviews', $args, true );
     
    260291
    261292            // Stars Background Color.
    262             $css .= Merchant_Custom_CSS::get_variable_css( self::MODULE_ID,
     293            $css .= Merchant_Custom_CSS::get_variable_css(
     294                self::MODULE_ID,
    263295                'stars_background_color',
    264296                '#757575',
    265297                '.merchant-adv-reviews, .merchant-adv-reviews-modal',
    266                 '--mrc-adv-reviews-stars-bg-color' );
     298                '--mrc-adv-reviews-stars-bg-color'
     299            );
    267300
    268301            // Progress Bar Color.
     
    279312
    280313            // Button Color (hover).
    281             $css .= Merchant_Custom_CSS::get_variable_css( self::MODULE_ID,
     314            $css .= Merchant_Custom_CSS::get_variable_css(
     315                self::MODULE_ID,
    282316                'button_color_hover',
    283317                '#FFF',
    284318                '.merchant-adv-reviews, .merchant-adv-reviews-modal',
    285                 '--mrc-adv-reviews-button-color-hover' );
     319                '--mrc-adv-reviews-button-color-hover'
     320            );
    286321
    287322            // Button Background Color.
     
    289324
    290325            // Button Background Color (hover).
    291             $css .= Merchant_Custom_CSS::get_variable_css( self::MODULE_ID,
     326            $css .= Merchant_Custom_CSS::get_variable_css(
     327                self::MODULE_ID,
    292328                'button_bg_color_hover',
    293329                '#757575',
    294330                '.merchant-adv-reviews, .merchant-adv-reviews-modal',
    295                 '--mrc-adv-reviews-button-bg-color-hover' );
     331                '--mrc-adv-reviews-button-bg-color-hover'
     332            );
    296333
    297334            // Modal Close Icon Color.
     
    299336
    300337            // Modal Close Icon Color (hover).
    301             $css .= Merchant_Custom_CSS::get_variable_css( self::MODULE_ID,
     338            $css .= Merchant_Custom_CSS::get_variable_css(
     339                self::MODULE_ID,
    302340                'modal_close_icon_color_hover',
    303341                '#757575',
    304342                '.merchant-adv-reviews-modal',
    305                 '--mrc-adv-reviews-modal-close-icon-color-hover' );
     343                '--mrc-adv-reviews-modal-close-icon-color-hover'
     344            );
    306345
    307346            // Modal Title Color.
     
    337376    }
    338377
    339 // Dummy content.
     378    // Dummy content.
    340379    require MERCHANT_DIR . 'inc/modules/advanced-reviews/class-product-dummy-data.php';
    341380
    342 // Initialize the module.
    343     add_action( 'init', function () {
    344         Merchant_Modules::create_module( new Merchant_Advanced_Reviews( new Merchant_Product_Dummy() ) );
    345     } );
     381    // Reviews List Table
     382    // require_once MERCHANT_DIR . 'inc/modules/advanced-reviews/admin/class-reviews-table.php';
     383
     384    // Initialize the module.
     385    add_action(
     386        'init',
     387        function () {
     388            Merchant_Modules::create_module( new Merchant_Advanced_Reviews( new Merchant_Product_Dummy() ) );
     389        }
     390    );
    346391}
  • merchant/trunk/inc/modules/free-gifts/admin/options.php

    r3079548 r3083515  
    1010    exit; // Exit if accessed directly
    1111}
    12 
    1312
    1413Merchant_Admin_Options::create( array(
     
    7574                            'title'         => esc_html__( 'Product rewarded as a gift', 'merchant' ),
    7675                            'multiple'      => false,
    77                             'allowed_types' => array( 'simple', 'variation' ),
     76                            'allowed_types' => array( 'simple', 'variable', 'variation' ),
     77                        ),
     78
     79                        array(
     80                            'id'        => 'spending_goal_target',
     81                            'type'      => 'content',
     82                            'title'     => esc_html__( 'Spending goal target', 'merchant' ),
     83                            'content'   => '',
     84                            'desc'      => esc_html__( 'Configure the 3 states of the Gift offer. Personalize the text to maximize the conversion.', 'merchant' ),
     85                        ),
     86
     87                        array(
     88                            'id'      => 'spending_text_0',
     89                            'type'    => 'text',
     90                            'title'   => esc_html__( 'At 0%', 'merchant' ),
     91                            'default' => sprintf(
     92                                /* Translators: 1. goal amount */
     93                                esc_html__( 'Spend %1$s on any product to receive this gift!', 'merchant' ),
     94                                '{goalAmount}' // existing one is {amount}
     95                            ),
     96                        ),
     97
     98                        array(
     99                            'id'      => 'spending_text_1_to_99',
     100                            'type'    => 'text',
     101                            'title'   => esc_html__( 'Between 1 - 99%', 'merchant' ),
     102                            'default' => sprintf(
     103                                /* Translators: 1. more amount */
     104                                esc_html__( 'Spend %1$s on any product to receive this gift!', 'merchant' ),
     105                                '{amountMore}'
     106                            ),
     107                        ),
     108
     109                        array(
     110                            'id'      => 'spending_text_100',
     111                            'type'    => 'text',
     112                            'title'   => esc_html__( 'At 100%', 'merchant' ),
     113                            'default' => esc_html__( 'Congratulations! You are eligible to receive a free gift.', 'merchant' ),
    78114                        ),
    79115                    ),
     
    134170            'default' => 'subtotal',
    135171        ),
    136         array(
    137             'id'      => 'display_homepage',
    138             'type'    => 'checkbox',
    139             'title'   => __( 'Show on pages', 'merchant' ),
    140             'label'   => __( 'Homepage', 'merchant' ),
    141             'default' => 1,
    142         ),
    143         array(
    144             'id'      => 'display_shop',
    145             'type'    => 'checkbox',
    146             'label'   => __( 'Shop page', 'merchant' ),
    147             'default' => 1,
    148         ),
    149         array(
    150             'id'      => 'display_product',
    151             'type'    => 'checkbox',
    152             'label'   => __( 'Product page', 'merchant' ),
    153             'default' => 1,
    154         ),
    155         array(
    156             'id'      => 'display_cart',
    157             'type'    => 'checkbox',
    158             'label'   => __( 'Cart page', 'merchant' ),
    159             'default' => 1,
    160         ),
    161     ),
    162 ) );
    163 
    164 // Text Formatting Settings
    165 Merchant_Admin_Options::create( array(
    166     'title'  => esc_html__( 'Text Formatting', 'merchant' ),
    167     'module' => Merchant_Free_Gifts::MODULE_ID,
    168     'fields' => array(
    169 
    170         array(
    171             'id'      => 'spending_text',
    172             'type'    => 'text',
    173             'title'   => esc_html__( 'Spending text', 'merchant' ),
    174             'default' => esc_html__( 'Spend {amount} more to receive this gift!', 'merchant' ),
    175         ),
    176172
    177173        array(
     
    200196) );
    201197
     198// Gift Widget Settings
     199Merchant_Admin_Options::create( array(
     200    'title'  => esc_html__( 'Gift Widget', 'merchant' ),
     201    'module' => Merchant_Free_Gifts::MODULE_ID,
     202    'fields' => array(
     203        array(
     204            'id'      => 'icon',
     205            'type'    => 'choices',
     206            'title'   => esc_html__( 'Widget icon', 'merchant' ),
     207            'options' => array(
     208                'gifts-icon-1' => MERCHANT_URI . 'assets/images/icons/free-gifts/icon-1.svg',
     209                'gifts-icon-2' => MERCHANT_URI . 'assets/images/icons/free-gifts/icon-2.svg',
     210                'gifts-icon-3' => MERCHANT_URI . 'assets/images/icons/free-gifts/icon-3.svg',
     211                'gifts-icon-4' => MERCHANT_URI . 'assets/images/icons/free-gifts/icon-4.svg',
     212                'gifts-icon-5' => MERCHANT_URI . 'assets/images/icons/free-gifts/icon-5.svg',
     213            ),
     214            'default' => 'gifts-icon-1',
     215        ),
     216
     217        array(
     218            'id'      => 'position',
     219            'type'    => 'select',
     220            'title'   => esc_html__( 'Position', 'merchant' ),
     221            'options' => array(
     222                'top_right'    => esc_html__( 'Top Right', 'merchant' ),
     223                'top_left'     => esc_html__( 'Top Left', 'merchant' ),
     224                'bottom_right' => esc_html__( 'Bottom Right', 'merchant' ),
     225                'bottom_left'  => esc_html__( 'Bottom Left', 'merchant' ),
     226            ),
     227            'default' => 'top_right',
     228        ),
     229
     230        array(
     231            'id'      => 'distance',
     232            'type'    => 'range',
     233            'title'   => esc_html__( 'Distance', 'merchant' ),
     234            'min'     => 0,
     235            'max'     => 999,
     236            'step'    => 1,
     237            'unit'    => 'px',
     238            'default' => 250,
     239        ),
     240
     241        array(
     242            'id'      => 'display_homepage',
     243            'type'    => 'checkbox',
     244            'title'   => esc_html__( 'Show on pages', 'merchant' ),
     245            'label'   => esc_html__( 'Homepage', 'merchant' ),
     246            'default' => 1,
     247        ),
     248
     249        array(
     250            'id'      => 'display_shop',
     251            'type'    => 'checkbox',
     252            'label'   => esc_html__( 'Shop page', 'merchant' ),
     253            'default' => 1,
     254        ),
     255
     256        array(
     257            'id'      => 'display_product',
     258            'type'    => 'checkbox',
     259            'label'   => esc_html__( 'Product page', 'merchant' ),
     260            'default' => 1,
     261        ),
     262
     263        array(
     264            'id'      => 'display_cart',
     265            'type'    => 'checkbox',
     266            'label'   => esc_html__( 'Cart page', 'merchant' ),
     267            'default' => 1,
     268        ),
     269    ),
     270) );
    202271
    203272// Style Settings
  • merchant/trunk/inc/modules/free-gifts/class-free-gifts.php

    r3079548 r3083515  
    5757            'display_product'       => 1,
    5858            'display_cart'          => 1,
    59             'spending_text'         => esc_html__( 'Spend {amount} more to receive this gift!', 'merchant' ),
     59            'position'              => 'top_right',
     60            'distance'              => 250,
    6061            'free_text'             => esc_html__( 'Free', 'merchant' ),
    6162            'cart_title_text'       => esc_html__( 'Free Gift', 'merchant' ),
     
    8485            add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_css' ) );
    8586
     87            // Enqueue admin scripts.
     88            add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_js' ) );
     89
     90            // Localize Script.
     91            add_filter( 'merchant_admin_localize_script', array( $this, 'localize_script' ) );
     92
    8693            // Admin preview box.
    8794            add_filter( 'merchant_module_preview', array( $this, 'render_admin_preview' ), 10, 2 );
     
    129136            wp_enqueue_style( 'merchant-admin-' . self::MODULE_ID, MERCHANT_URI . 'assets/css/modules/' . self::MODULE_ID . '/admin/preview.min.css', array(), MERCHANT_VERSION );
    130137        }
     138    }
     139
     140    /**
     141     * Admin enqueue scripts.
     142     *
     143     * @return void
     144     */
     145    public function admin_enqueue_js() {
     146        if ( parent::is_module_settings_page() ) {
     147            wp_enqueue_script( "merchant-{$this->module_id}", MERCHANT_URI . "assets/js/modules/{$this->module_id}/admin/preview.min.js", array( 'jquery' ), MERCHANT_VERSION, true );
     148        }
     149    }
     150
     151    /**
     152     * Localize Script.
     153     */
     154    public function localize_script( $data ) {
     155        $data['spending_texts'] = array(
     156            'all'        => array(
     157                'spending_text_0'       => esc_html__( 'Spend {goalAmount} on any product to receive this gift!', 'merchant' ),
     158                'spending_text_1_to_99' => esc_html__( 'Spend {amountMore} on any product to receive this gift!', 'merchant' ),
     159                'spending_text_100'     => esc_html__( 'Congratulations! You are eligible to receive a free gift.', 'merchant' ),
     160            ),
     161            'product'    => array(
     162                'spending_text_0'       => esc_html__( 'Spend {goalAmount} on {productName} to receive this free gift!', 'merchant' ),
     163                'spending_text_1_to_99' => esc_html__( 'Spend {amountMore} more on {productName} to receive this free gift!', 'merchant' ),
     164                'spending_text_100'     => esc_html__( 'Congratulations! You are eligible to receive a free gift.', 'merchant' ),
     165            ),
     166            'categories' => array(
     167                'spending_text_0'       => esc_html__( 'Spend {goalAmount} in the {categories} to receive this free gift!', 'merchant' ),
     168                'spending_text_1_to_99' => esc_html__( 'Spend {amountMore} more in the {categories} to receive this free gift!', 'merchant' ),
     169                'spending_text_100'     => esc_html__( 'Congratulations! You are eligible to receive a free gift.', 'merchant' ),
     170            ),
     171        );
     172
     173        $data['gifts_icons'] = array(
     174            'gifts-icon-1' => Merchant_SVG_Icons::get_svg_icon( 'gifts-icon-1' ),
     175            'gifts-icon-2' => Merchant_SVG_Icons::get_svg_icon( 'gifts-icon-2' ),
     176            'gifts-icon-3' => Merchant_SVG_Icons::get_svg_icon( 'gifts-icon-3' ),
     177            'gifts-icon-4' => Merchant_SVG_Icons::get_svg_icon( 'gifts-icon-4' ),
     178            'gifts-icon-5' => Merchant_SVG_Icons::get_svg_icon( 'gifts-icon-5' ),
     179        );
     180
     181        return $data;
    131182    }
    132183
     
    182233    public function admin_preview_content() {
    183234        $settings = $this->get_module_settings();
    184 
    185235        ?>
    186236
     
    189239                <div class="mrc-preview-product-image-wrapper">
    190240                    <div class="mrc-preview-product-image"></div>
    191                     <div class="mrc-preview-product-image-thumbs">
    192                         <div class="mrc-preview-product-image-thumb"></div>
    193                         <div class="mrc-preview-product-image-thumb"></div>
    194                         <div class="mrc-preview-product-image-thumb"></div>
    195                     </div>
    196241                </div>
    197242            </div>
    198243            <div class="mrc-preview-right-column">
    199                 <div class="mrc-preview-text-placeholder"></div>
    200                 <div class="mrc-preview-text-placeholder mrc-mw-70"></div>
    201                 <div class="mrc-preview-text-placeholder mrc-mw-30"></div>
    202                 <div class="mrc-preview-text-placeholder mrc-mw-40"></div>
    203                 <div class="mrc-preview-text-placeholder mrc-mw-30"></div>
    204                 <div class="mrc-preview-addtocart-placeholder"></div>
    205 
    206                 <?php
     244                <h3 style="margin-top: 0;"><?php echo esc_html__( 'Your Product Name', 'merchant' ); ?></h3>
     245                <div class="mrc-preview-rating">
     246                    <div class="star-rating merchant-star-rating-style2" role="img" aria-label="Rated 3.00 out of 5">
     247                        <span style="width: 80%"></span>
     248                    </div>
     249                    <span style="color: #969696;"><?php echo esc_html__( 'reviews', 'merchant' ); ?></span>
     250                </div>
     251                <h3><?php echo esc_html__( '$49', 'merchant' ); ?></h3>
     252                <p><?php echo esc_html__( "An amazing product people can't refuse. What’s the next moment of value-realization when using your product? Tell the biggest use case. Briefly expand your product benefits on how this will help customers.", 'merchant' ); ?></p>
     253
     254                <div class="merchant-preview-add-to-cart-inner">
     255                    <div class="merchant-preview-qty">
     256                        <button><?php echo esc_html( '+' ); ?></button>
     257                        <input type="text" value="<?php echo esc_attr( '1' ); ?>">
     258                        <button><?php echo esc_html( '-' ); ?></button>
     259                    </div>
     260                    <div class="merchant-preview-add-to-cart"><?php echo esc_html__( 'Add to cart', 'merchant' ); ?></div>
     261                </div>
     262                <?php
    207263                echo wp_kses( merchant_get_template_part(
    208264                    Merchant_Free_Gifts::MODULE_TEMPLATES_PATH,
     
    274330        $css .= Merchant_Custom_CSS::get_variable_css( $this->module_id, 'product_price_text_color', '#999999', '.merchant-free-gifts-widget-offer-product-price del', '--merchant-text-color' );
    275331        $css .= Merchant_Custom_CSS::get_variable_css( $this->module_id, 'free_text_color', '#212121', '.merchant-free-gifts-widget-offer-product-free', '--merchant-text-color' );
     332        $css .= Merchant_Custom_CSS::get_variable_css( $this->module_id, 'distance', 250, '.merchant-free-gifts-widget', '--merchant-free-gifts-distance', 'px' );
    276333
    277334        return $css;
  • merchant/trunk/languages/merchant.pot

    r3079548 r3083515  
    99"Language-Team: aThemes <[email protected]>\n"
    1010"Last-Translator: aThemes <[email protected]>\n"
    11 "POT-Creation-Date: 2024-04-30 16:30+0000\n"
     11"POT-Creation-Date: 2024-05-08 18:30+0000\n"
    1212"Report-Msgid-Bugs-To: https://athemes.com/contact/\n"
    1313"X-Poedit-Basepath: ..\n"
     
    1818"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1919
    20 #: admin/class-merchant-admin-loader.php:126, admin/classes/class-merchant-admin-menu.php:89, admin/classes/class-merchant-admin-menu.php:90, inc/modules/address-autocomplete/admin/options.php:27, inc/modules/advanced-reviews/admin/options.php:15, inc/modules/agree-to-terms-checkbox/admin/options.php:28, inc/modules/auto-external-links/admin/options.php:16, inc/modules/buy-now/admin/options.php:14, inc/modules/cart-count-favicon/admin/options.php:16, inc/modules/cart-reserved-timer/admin/options.php:30, inc/modules/checkout/admin/options.php:27, inc/modules/cookie-banner/admin/options.php:14, inc/modules/countdown-timer/admin/options.php:14, inc/modules/free-gifts/admin/options.php:122, inc/modules/inactive-tab-message/admin/options.php:16, inc/modules/login-popup/admin/options.php:15, inc/modules/payment-logos/admin/options.php:33, inc/modules/pre-orders/admin/options.php:16, inc/modules/product-audio/admin/options.php:15, inc/modules/product-brand-image/admin/options.php:15, inc/modules/product-labels/admin/options.php:14, inc/modules/product-navigation-links/admin/options.php:16, inc/modules/product-swatches/admin/options.php:17, inc/modules/product-video/admin/options.php:15, inc/modules/quick-social-links/admin/options.php:16, inc/modules/quick-view/admin/options.php:17, inc/modules/real-time-search/admin/options.php:14, inc/modules/reasons-to-buy/admin/options.php:16, inc/modules/recently-viewed-products/admin/options.php:15, inc/modules/side-cart/admin/options.php:15, inc/modules/size-chart/admin/options.php:15, inc/modules/spending-goal/admin/options.php:15, inc/modules/sticky-add-to-cart/admin/options.php:15, inc/modules/stock-scarcity/admin/options.php:16, inc/modules/trust-badges/admin/options.php:33
     20#: admin/class-merchant-admin-loader.php:126, admin/classes/class-merchant-admin-menu.php:89, admin/classes/class-merchant-admin-menu.php:90, inc/modules/address-autocomplete/admin/options.php:27, inc/modules/advanced-reviews/admin/options.php:16, inc/modules/agree-to-terms-checkbox/admin/options.php:28, inc/modules/auto-external-links/admin/options.php:16, inc/modules/buy-now/admin/options.php:14, inc/modules/cart-count-favicon/admin/options.php:16, inc/modules/cart-reserved-timer/admin/options.php:30, inc/modules/checkout/admin/options.php:27, inc/modules/cookie-banner/admin/options.php:14, inc/modules/countdown-timer/admin/options.php:14, inc/modules/free-gifts/admin/options.php:158, inc/modules/inactive-tab-message/admin/options.php:16, inc/modules/login-popup/admin/options.php:15, inc/modules/payment-logos/admin/options.php:33, inc/modules/pre-orders/admin/options.php:16, inc/modules/product-audio/admin/options.php:15, inc/modules/product-brand-image/admin/options.php:15, inc/modules/product-labels/admin/options.php:14, inc/modules/product-navigation-links/admin/options.php:16, inc/modules/product-swatches/admin/options.php:17, inc/modules/product-video/admin/options.php:15, inc/modules/quick-social-links/admin/options.php:16, inc/modules/quick-view/admin/options.php:17, inc/modules/real-time-search/admin/options.php:14, inc/modules/reasons-to-buy/admin/options.php:16, inc/modules/recently-viewed-products/admin/options.php:15, inc/modules/side-cart/admin/options.php:15, inc/modules/size-chart/admin/options.php:15, inc/modules/spending-goal/admin/options.php:15, inc/modules/sticky-add-to-cart/admin/options.php:15, inc/modules/stock-scarcity/admin/options.php:16, inc/modules/trust-badges/admin/options.php:33
    2121msgid "Settings"
    2222msgstr ""
     
    703703msgstr ""
    704704
    705 #: admin/classes/class-merchant-admin-options.php:1443, inc/classes/class-merchant-metabox.php:924, inc/modules/advanced-reviews/admin/options.php:99
     705#: admin/classes/class-merchant-admin-options.php:1443, inc/classes/class-merchant-metabox.php:924, inc/modules/advanced-reviews/admin/options.php:100
    706706msgid "Default"
    707707msgstr ""
     
    987987msgstr ""
    988988
    989 #: admin/pages/page-module.php:162
     989#: admin/pages/page-module.php:162, templates/modules/advanced-reviews/modal.php:43
    990990msgid "Submit"
    991991msgstr ""
     
    11481148msgstr ""
    11491149
    1150 #: inc/modules/add-to-cart-text/class-add-to-cart-text.php:46, inc/modules/add-to-cart-text/class-add-to-cart-text.php:47, inc/modules/add-to-cart-text/class-add-to-cart-text.php:49, inc/modules/countdown-timer/class-countdown-timer.php:237, templates/modules/frequently-bought-together/single-product.php:121, inc/modules/add-to-cart-text/admin/options.php:22, inc/modules/add-to-cart-text/admin/options.php:46, inc/modules/add-to-cart-text/admin/options.php:86, inc/modules/frequently-bought-together/admin/options.php:163
     1150#: inc/modules/add-to-cart-text/class-add-to-cart-text.php:46, inc/modules/add-to-cart-text/class-add-to-cart-text.php:47, inc/modules/add-to-cart-text/class-add-to-cart-text.php:49, inc/modules/countdown-timer/class-countdown-timer.php:237, inc/modules/free-gifts/class-free-gifts.php:260, templates/modules/frequently-bought-together/single-product.php:121, inc/modules/add-to-cart-text/admin/options.php:22, inc/modules/add-to-cart-text/admin/options.php:46, inc/modules/add-to-cart-text/admin/options.php:86, inc/modules/frequently-bought-together/admin/options.php:163
    11511151msgid "Add to cart"
    11521152msgstr ""
     
    12241224msgstr ""
    12251225
    1226 #: inc/modules/advanced-reviews/class-advanced-reviews.php:60, inc/modules/advanced-reviews/admin/options.php:24
     1226#: inc/modules/advanced-reviews/class-advanced-reviews.php:65, inc/modules/advanced-reviews/admin/options.php:25
    12271227msgid "What our customers are saying"
    12281228msgstr ""
    12291229
    1230 #: inc/modules/advanced-reviews/class-advanced-reviews.php:117
     1230#: inc/modules/advanced-reviews/class-advanced-reviews.php:75, inc/modules/advanced-reviews/admin/options.php:173
     1231msgid "Customer Images"
     1232msgstr ""
     1233
     1234#: inc/modules/advanced-reviews/class-advanced-reviews.php:128
    12311235msgid "Advanced reviews title"
    12321236msgstr ""
    12331237
    1234 #: inc/modules/advanced-reviews/class-advanced-reviews.php:121
     1238#: inc/modules/advanced-reviews/class-advanced-reviews.php:132
    12351239msgid "Advanced reviews description"
     1240msgstr ""
     1241
     1242#: inc/modules/advanced-reviews/class-advanced-reviews.php:224
     1243msgid "5 Stars"
     1244msgstr ""
     1245
     1246#: inc/modules/advanced-reviews/class-advanced-reviews.php:229
     1247msgid "4 Stars"
     1248msgstr ""
     1249
     1250#: inc/modules/advanced-reviews/class-advanced-reviews.php:234
     1251msgid "3 Stars"
     1252msgstr ""
     1253
     1254#: inc/modules/advanced-reviews/class-advanced-reviews.php:239
     1255msgid "2 Stars"
     1256msgstr ""
     1257
     1258#: inc/modules/advanced-reviews/class-advanced-reviews.php:244
     1259msgid "1 Star"
    12361260msgstr ""
    12371261
     
    13561380msgstr ""
    13571381
    1358 #: inc/modules/countdown-timer/class-countdown-timer.php:220
     1382#: inc/modules/countdown-timer/class-countdown-timer.php:220, inc/modules/free-gifts/class-free-gifts.php:244
    13591383msgid "Your Product Name"
    13601384msgstr ""
    13611385
    1362 #: inc/modules/countdown-timer/class-countdown-timer.php:225
     1386#: inc/modules/countdown-timer/class-countdown-timer.php:225, inc/modules/free-gifts/class-free-gifts.php:249
    13631387msgid "reviews"
    13641388msgstr ""
    13651389
    1366 #: inc/modules/countdown-timer/class-countdown-timer.php:227
     1390#: inc/modules/countdown-timer/class-countdown-timer.php:227, inc/modules/free-gifts/class-free-gifts.php:251
    13671391msgid "$49"
    13681392msgstr ""
    13691393
    1370 #: inc/modules/countdown-timer/class-countdown-timer.php:228
     1394#: inc/modules/countdown-timer/class-countdown-timer.php:228, inc/modules/free-gifts/class-free-gifts.php:252
    13711395msgid "An amazing product people can't refuse. What’s the next moment of value-realization when using your product? Tell the biggest use case. Briefly expand your product benefits on how this will help customers."
    13721396msgstr ""
     
    13961420msgstr ""
    13971421
    1398 #: inc/modules/free-gifts/class-free-gifts.php:59, inc/modules/free-gifts/admin/options.php:174
    1399 msgid "Spend {amount} more to receive this gift!"
    1400 msgstr ""
    1401 
    1402 #: inc/modules/free-gifts/class-free-gifts.php:60, templates/modules/free-gifts/widget-contents.php:172, templates/modules/free-gifts/widget-contents.php:133, templates/modules/free-gifts/widget-contents.php:97, templates/modules/free-gifts/widget-contents.php:63, inc/modules/free-gifts/admin/options.php:181
     1422#: inc/modules/free-gifts/class-free-gifts.php:61, templates/modules/free-gifts/widget-contents.php:291, templates/modules/free-gifts/widget-contents.php:241, templates/modules/free-gifts/widget-contents.php:178, templates/modules/free-gifts/widget-contents.php:111, inc/modules/free-gifts/admin/options.php:177
    14031423msgid "Free"
    14041424msgstr ""
    14051425
    1406 #: inc/modules/free-gifts/class-free-gifts.php:61, inc/modules/free-gifts/admin/options.php:188
     1426#: inc/modules/free-gifts/class-free-gifts.php:62, inc/modules/free-gifts/admin/options.php:184
    14071427msgid "Free Gift"
    14081428msgstr ""
    14091429
    1410 #: inc/modules/free-gifts/class-free-gifts.php:62, inc/modules/free-gifts/admin/options.php:196
     1430#: inc/modules/free-gifts/class-free-gifts.php:63, inc/modules/free-gifts/admin/options.php:192
    14111431msgid "This item was added as a free gift"
    14121432msgstr ""
    14131433
    1414 #: inc/modules/free-gifts/class-free-gifts.php:108
     1434#: inc/modules/free-gifts/class-free-gifts.php:115
    14151435msgid "Free Gifts: Spending text"
    14161436msgstr ""
    14171437
    1418 #: inc/modules/free-gifts/class-free-gifts.php:111
     1438#: inc/modules/free-gifts/class-free-gifts.php:118
    14191439msgid "Free Gifts: Free text"
    14201440msgstr ""
    14211441
    1422 #: inc/modules/free-gifts/class-free-gifts.php:114
     1442#: inc/modules/free-gifts/class-free-gifts.php:121
    14231443msgid "Free Gifts: Cart item title text"
    14241444msgstr ""
    14251445
    1426 #: inc/modules/free-gifts/class-free-gifts.php:117
     1446#: inc/modules/free-gifts/class-free-gifts.php:124
    14271447msgid "Free Gifts: Cart item description text"
     1448msgstr ""
     1449
     1450#: inc/modules/free-gifts/class-free-gifts.php:157
     1451msgid "Spend {goalAmount} on any product to receive this gift!"
     1452msgstr ""
     1453
     1454#: inc/modules/free-gifts/class-free-gifts.php:158
     1455msgid "Spend {amountMore} on any product to receive this gift!"
     1456msgstr ""
     1457
     1458#: inc/modules/free-gifts/class-free-gifts.php:159, inc/modules/free-gifts/class-free-gifts.php:164, inc/modules/free-gifts/class-free-gifts.php:169, inc/modules/free-gifts/admin/options.php:113
     1459msgid "Congratulations! You are eligible to receive a free gift."
     1460msgstr ""
     1461
     1462#: inc/modules/free-gifts/class-free-gifts.php:162
     1463msgid "Spend {goalAmount} on {productName} to receive this free gift!"
     1464msgstr ""
     1465
     1466#: inc/modules/free-gifts/class-free-gifts.php:163
     1467msgid "Spend {amountMore} more on {productName} to receive this free gift!"
     1468msgstr ""
     1469
     1470#: inc/modules/free-gifts/class-free-gifts.php:167
     1471msgid "Spend {goalAmount} in the {categories} to receive this free gift!"
     1472msgstr ""
     1473
     1474#: inc/modules/free-gifts/class-free-gifts.php:168
     1475msgid "Spend {amountMore} more in the {categories} to receive this free gift!"
    14281476msgstr ""
    14291477
     
    18601908msgstr ""
    18611909
    1862 #: inc/modules/spending-goal/class-spending-goal.php:59, inc/modules/free-gifts/admin/options.php:67, inc/modules/spending-goal/admin/options.php:22, inc/modules/spending-goal/admin/options.php:60
     1910#: inc/modules/spending-goal/class-spending-goal.php:59, inc/modules/free-gifts/admin/options.php:66, inc/modules/spending-goal/admin/options.php:22, inc/modules/spending-goal/admin/options.php:60
    18631911msgid "Spending goal"
    18641912msgstr ""
     
    20442092msgstr ""
    20452093
     2094#: templates/modules/advanced-reviews/load-more-button.php:29
     2095msgid "Load More"
     2096msgstr ""
     2097
     2098#: templates/modules/advanced-reviews/modal.php:15, templates/modules/advanced-reviews/photo-slider.php:28
     2099msgid "Close popup"
     2100msgstr ""
     2101
     2102#: templates/modules/advanced-reviews/modal.php:21
     2103msgid "You are reviewing"
     2104msgstr ""
     2105
     2106#: templates/modules/advanced-reviews/modal.php:142
     2107msgid "Only logged in customers who have purchased this product may leave a review."
     2108msgstr ""
     2109
     2110#: templates/modules/advanced-reviews/modal.php:39
     2111msgid "Leave a Reply to %s"
     2112msgstr ""
     2113
     2114#: templates/modules/advanced-reviews/modal.php:52
     2115msgid "Name"
     2116msgstr ""
     2117
     2118#: templates/modules/advanced-reviews/modal.php:58
     2119msgid "Email"
     2120msgstr ""
     2121
     2122#: templates/modules/advanced-reviews/modal.php:83
     2123msgid "You must be %1$slogged in%2$s to post a review."
     2124msgstr ""
     2125
     2126#: templates/modules/advanced-reviews/modal.php:89
     2127msgid "Rating"
     2128msgstr ""
     2129
     2130#: templates/modules/advanced-reviews/modal.php:91
     2131msgid "Rate&hellip;"
     2132msgstr ""
     2133
     2134#: templates/modules/advanced-reviews/modal.php:92
     2135msgid "Perfect"
     2136msgstr ""
     2137
     2138#: templates/modules/advanced-reviews/modal.php:93
     2139msgid "Good"
     2140msgstr ""
     2141
     2142#: templates/modules/advanced-reviews/modal.php:94
     2143msgid "Average"
     2144msgstr ""
     2145
     2146#: templates/modules/advanced-reviews/modal.php:95
     2147msgid "Not that bad"
     2148msgstr ""
     2149
     2150#: templates/modules/advanced-reviews/modal.php:96
     2151msgid "Very poor"
     2152msgstr ""
     2153
     2154#: templates/modules/advanced-reviews/modal.php:104
     2155msgid "Your review"
     2156msgstr ""
     2157
     2158#: templates/modules/advanced-reviews/modal.php:111
     2159msgid "Upload Images (Up to %s)"
     2160msgstr ""
     2161
     2162#: templates/modules/advanced-reviews/modal.php:115
     2163msgid "Drag and Drop images here or click to upload"
     2164msgstr ""
     2165
    20462166#. translators: %s is average rating value
    2047 #: templates/modules/advanced-reviews/reviews.php:65, templates/modules/advanced-reviews/reviews.php:325, templates/modules/advanced-reviews/reviews.php:256
     2167#: templates/modules/advanced-reviews/photo-slider.php:53, templates/modules/advanced-reviews/reviews-list.php:113, templates/modules/advanced-reviews/reviews-list.php:30, templates/modules/advanced-reviews/reviews.php:176
    20482168msgid "Rated %s out of 5 based on customer ratings."
    20492169msgstr ""
    20502170
    2051 #: templates/modules/advanced-reviews/reviews.php:80
     2171#: templates/modules/advanced-reviews/photo-slider.php:67, templates/modules/advanced-reviews/reviews-list.php:128, templates/modules/advanced-reviews/reviews-list.php:45
     2172msgid " — verified owner"
     2173msgstr ""
     2174
     2175#: templates/modules/advanced-reviews/reviews-list.php:141
     2176msgid "There are no reviews yet."
     2177msgstr ""
     2178
     2179#: templates/modules/advanced-reviews/reviews-list.php:133
     2180msgid "Your review is awaiting approval."
     2181msgstr ""
     2182
     2183#: templates/modules/advanced-reviews/reviews.php:191
    20522184msgid "Be the first to leave a review."
    20532185msgstr ""
    20542186
    2055 #: templates/modules/advanced-reviews/reviews.php:77
     2187#: templates/modules/advanced-reviews/reviews.php:188
    20562188msgctxt "review count"
    20572189msgid "%s Review"
     
    20602192msgstr[1] ""
    20612193
    2062 #: templates/modules/advanced-reviews/reviews.php:88
    2063 msgid "5 Stars"
    2064 msgstr ""
    2065 
    2066 #. translators: %s is stars quantity
    2067 #: templates/modules/advanced-reviews/reviews.php:95, templates/modules/advanced-reviews/reviews.php:108, templates/modules/advanced-reviews/reviews.php:121, templates/modules/advanced-reviews/reviews.php:134, templates/modules/advanced-reviews/reviews.php:147
    2068 msgid "(%s)"
    2069 msgstr ""
    2070 
    2071 #: templates/modules/advanced-reviews/reviews.php:101
    2072 msgid "4 Stars"
    2073 msgstr ""
    2074 
    2075 #: templates/modules/advanced-reviews/reviews.php:114
    2076 msgid "3 Stars"
    2077 msgstr ""
    2078 
    2079 #: templates/modules/advanced-reviews/reviews.php:127
    2080 msgid "2 Stars"
    2081 msgstr ""
    2082 
    2083 #: templates/modules/advanced-reviews/reviews.php:140
    2084 msgid "1 Star"
    2085 msgstr ""
    2086 
    2087 #: templates/modules/advanced-reviews/reviews.php:157
     2194#: templates/modules/advanced-reviews/reviews.php:216
    20882195msgid "Write a Review"
    20892196msgstr ""
    20902197
    2091 #: templates/modules/advanced-reviews/reviews.php:161
     2198#: templates/modules/advanced-reviews/reviews.php:220
    20922199msgid "Sort by:"
    20932200msgstr ""
    20942201
    2095 #: templates/modules/advanced-reviews/reviews.php:163, inc/modules/advanced-reviews/admin/options.php:79
     2202#: templates/modules/advanced-reviews/reviews.php:222, inc/modules/advanced-reviews/admin/options.php:80
    20962203msgid "Newest"
    20972204msgstr ""
    20982205
    2099 #: templates/modules/advanced-reviews/reviews.php:164, inc/modules/advanced-reviews/admin/options.php:80
     2206#: templates/modules/advanced-reviews/reviews.php:223, inc/modules/advanced-reviews/admin/options.php:81
    21002207msgid "Oldest"
    21012208msgstr ""
    21022209
    2103 #: templates/modules/advanced-reviews/reviews.php:165, inc/modules/advanced-reviews/admin/options.php:81
     2210#: templates/modules/advanced-reviews/reviews.php:224, inc/modules/advanced-reviews/admin/options.php:82
    21042211msgid "Top rated"
    21052212msgstr ""
    21062213
    2107 #: templates/modules/advanced-reviews/reviews.php:166, inc/modules/advanced-reviews/admin/options.php:82
     2214#: templates/modules/advanced-reviews/reviews.php:225, inc/modules/advanced-reviews/admin/options.php:83
    21082215msgid "Low rated"
    21092216msgstr ""
    21102217
    2111 #: templates/modules/advanced-reviews/reviews.php:356
    2112 msgid "There are no reviews yet."
    2113 msgstr ""
    2114 
    2115 #: templates/modules/advanced-reviews/reviews.php:340, templates/modules/advanced-reviews/reviews.php:271
    2116 msgid " — verified owner"
    2117 msgstr ""
    2118 
    2119 #: templates/modules/advanced-reviews/reviews.php:345
    2120 msgid "Your review is awaiting approval."
     2218#: templates/modules/advanced-reviews/reviews.php:226, inc/modules/advanced-reviews/admin/options.php:84
     2219msgid "Photo first"
    21212220msgstr ""
    21222221
     
    21452244
    21462245#. translators: 1. Amount
    2147 #: templates/modules/free-gifts/widget-contents.php:155
     2246#: templates/modules/free-gifts/widget-contents.php:264
    21482247msgid "Use %s coupon to get this product"
    21492248msgstr ""
    21502249
    2151 #: templates/modules/free-gifts/widget-contents.php:116
    2152 msgid "Spend %s more to receive this free gift!"
    2153 msgstr ""
    2154 
    2155 #: templates/modules/free-gifts/widget-contents.php:80
    2156 msgid "Buy %s to receive this free gift!"
    2157 msgstr ""
    2158 
    2159 #: templates/modules/free-gifts/widget-contents.php:43
    2160 msgid "Buy a product from the category %s to receive this free gift!"
    2161 msgid_plural "Buy a product from the categories %s to receive this free gift!"
     2250#: templates/modules/free-gifts/widget-contents.php:64
     2251msgid "%s category"
     2252msgid_plural "%s categories"
    21622253msgstr[0] ""
    21632254msgstr[1] ""
     
    22922383msgstr ""
    22932384
    2294 #: inc/modules/added-to-cart-popup/admin/options.php:91, inc/modules/free-gifts/admin/options.php:132, inc/modules/spending-goal/admin/options.php:33
     2385#: inc/modules/added-to-cart-popup/admin/options.php:91, inc/modules/free-gifts/admin/options.php:168, inc/modules/spending-goal/admin/options.php:33
    22952386msgid "Cart total"
    22962387msgstr ""
     
    23722463msgstr ""
    23732464
    2374 #: inc/modules/added-to-cart-popup/admin/options.php:293, inc/modules/buy-x-get-y/admin/options.php:61, inc/modules/free-gifts/admin/options.php:53, inc/modules/frequently-bought-together/admin/options.php:61, inc/modules/size-chart/admin/options.php:34, inc/modules/storewide-sale/admin/options.php:62, inc/modules/volume-discounts/admin/options.php:64
     2465#: inc/modules/added-to-cart-popup/admin/options.php:293, inc/modules/buy-x-get-y/admin/options.php:61, inc/modules/free-gifts/admin/options.php:52, inc/modules/frequently-bought-together/admin/options.php:61, inc/modules/size-chart/admin/options.php:34, inc/modules/storewide-sale/admin/options.php:62, inc/modules/volume-discounts/admin/options.php:64
    23752466msgid "Select categories"
    23762467msgstr ""
     
    23802471msgstr ""
    23812472
    2382 #: inc/modules/added-to-cart-popup/admin/options.php:314, inc/modules/free-gifts/admin/options.php:139, inc/modules/stock-scarcity/admin/options.php:28
     2473#: inc/modules/added-to-cart-popup/admin/options.php:314, inc/modules/free-gifts/admin/options.php:244, inc/modules/stock-scarcity/admin/options.php:28
    23832474msgid "Show on pages"
    23842475msgstr ""
    23852476
    2386 #: inc/modules/added-to-cart-popup/admin/options.php:316, inc/modules/free-gifts/admin/options.php:140
     2477#: inc/modules/added-to-cart-popup/admin/options.php:316, inc/modules/free-gifts/admin/options.php:245
    23872478msgid "Homepage"
    23882479msgstr ""
     
    24082499msgstr ""
    24092500
    2410 #: inc/modules/added-to-cart-popup/admin/options.php:338, inc/modules/countdown-timer/admin/options.php:225, inc/modules/free-gifts/admin/options.php:206
     2501#: inc/modules/added-to-cart-popup/admin/options.php:338, inc/modules/countdown-timer/admin/options.php:225, inc/modules/free-gifts/admin/options.php:275
    24112502msgid "Look and Feel"
    24122503msgstr ""
     
    25012592msgstr ""
    25022593
    2503 #: inc/modules/advanced-reviews/admin/options.php:23, inc/modules/reasons-to-buy/admin/options.php:38, inc/modules/recently-viewed-products/admin/options.php:23, inc/modules/recently-viewed-products/admin/options.php:123
     2594#: inc/modules/advanced-reviews/admin/class-reviews-table.php:30
     2595msgid "Photos"
     2596msgstr ""
     2597
     2598#: inc/modules/advanced-reviews/admin/options.php:24, inc/modules/reasons-to-buy/admin/options.php:38, inc/modules/recently-viewed-products/admin/options.php:23, inc/modules/recently-viewed-products/admin/options.php:123
    25042599msgid "Title"
    25052600msgstr ""
    25062601
    2507 #: inc/modules/advanced-reviews/admin/options.php:31, inc/modules/recently-viewed-products/admin/options.php:31
     2602#: inc/modules/advanced-reviews/admin/options.php:32, inc/modules/recently-viewed-products/admin/options.php:31
    25082603msgid "Title HTML tag"
    25092604msgstr ""
    25102605
    2511 #: inc/modules/advanced-reviews/admin/options.php:33, inc/modules/recently-viewed-products/admin/options.php:33
     2606#: inc/modules/advanced-reviews/admin/options.php:34, inc/modules/recently-viewed-products/admin/options.php:33
    25122607msgid "H1"
    25132608msgstr ""
    25142609
    2515 #: inc/modules/advanced-reviews/admin/options.php:34, inc/modules/recently-viewed-products/admin/options.php:34
     2610#: inc/modules/advanced-reviews/admin/options.php:35, inc/modules/recently-viewed-products/admin/options.php:34
    25162611msgid "H2"
    25172612msgstr ""
    25182613
    2519 #: inc/modules/advanced-reviews/admin/options.php:35, inc/modules/recently-viewed-products/admin/options.php:35
     2614#: inc/modules/advanced-reviews/admin/options.php:36, inc/modules/recently-viewed-products/admin/options.php:35
    25202615msgid "H3"
    25212616msgstr ""
    25222617
    2523 #: inc/modules/advanced-reviews/admin/options.php:36, inc/modules/recently-viewed-products/admin/options.php:36
     2618#: inc/modules/advanced-reviews/admin/options.php:37, inc/modules/recently-viewed-products/admin/options.php:36
    25242619msgid "H4"
    25252620msgstr ""
    25262621
    2527 #: inc/modules/advanced-reviews/admin/options.php:37, inc/modules/recently-viewed-products/admin/options.php:37
     2622#: inc/modules/advanced-reviews/admin/options.php:38, inc/modules/recently-viewed-products/admin/options.php:37
    25282623msgid "H5"
    25292624msgstr ""
    25302625
    2531 #: inc/modules/advanced-reviews/admin/options.php:38, inc/modules/recently-viewed-products/admin/options.php:38
     2626#: inc/modules/advanced-reviews/admin/options.php:39, inc/modules/recently-viewed-products/admin/options.php:38
    25322627msgid "H6"
    25332628msgstr ""
    25342629
    2535 #: inc/modules/advanced-reviews/admin/options.php:39, inc/modules/recently-viewed-products/admin/options.php:39
     2630#: inc/modules/advanced-reviews/admin/options.php:40, inc/modules/recently-viewed-products/admin/options.php:39
    25362631msgid "div"
    25372632msgstr ""
    25382633
    2539 #: inc/modules/advanced-reviews/admin/options.php:48, inc/modules/recently-viewed-products/admin/options.php:48
     2634#: inc/modules/advanced-reviews/admin/options.php:49, inc/modules/recently-viewed-products/admin/options.php:48
    25402635msgid "Hide title"
    25412636msgstr ""
    25422637
    2543 #: inc/modules/advanced-reviews/admin/options.php:56
     2638#: inc/modules/advanced-reviews/admin/options.php:57
    25442639msgid "Description"
    25452640msgstr ""
    25462641
    2547 #: inc/modules/advanced-reviews/admin/options.php:64
     2642#: inc/modules/advanced-reviews/admin/options.php:65
    25482643msgid "Title and description alignment"
    25492644msgstr ""
    25502645
    2551 #: inc/modules/advanced-reviews/admin/options.php:66, inc/modules/countdown-timer/admin/options.php:215, inc/modules/floating-mini-cart/admin/options.php:49, inc/modules/payment-logos/admin/options.php:42, inc/modules/quick-social-links/admin/options.php:29, inc/modules/trust-badges/admin/options.php:42
     2646#: inc/modules/advanced-reviews/admin/options.php:67, inc/modules/countdown-timer/admin/options.php:215, inc/modules/floating-mini-cart/admin/options.php:49, inc/modules/payment-logos/admin/options.php:42, inc/modules/quick-social-links/admin/options.php:29, inc/modules/trust-badges/admin/options.php:42
    25522647msgid "Left"
    25532648msgstr ""
    25542649
    2555 #: inc/modules/advanced-reviews/admin/options.php:67, inc/modules/countdown-timer/admin/options.php:216, inc/modules/payment-logos/admin/options.php:43, inc/modules/trust-badges/admin/options.php:43
     2650#: inc/modules/advanced-reviews/admin/options.php:68, inc/modules/countdown-timer/admin/options.php:216, inc/modules/payment-logos/admin/options.php:43, inc/modules/trust-badges/admin/options.php:43
    25562651msgid "Center"
    25572652msgstr ""
    25582653
    2559 #: inc/modules/advanced-reviews/admin/options.php:68, inc/modules/countdown-timer/admin/options.php:217, inc/modules/floating-mini-cart/admin/options.php:50, inc/modules/payment-logos/admin/options.php:44, inc/modules/quick-social-links/admin/options.php:33, inc/modules/trust-badges/admin/options.php:44
     2654#: inc/modules/advanced-reviews/admin/options.php:69, inc/modules/countdown-timer/admin/options.php:217, inc/modules/floating-mini-cart/admin/options.php:50, inc/modules/payment-logos/admin/options.php:44, inc/modules/quick-social-links/admin/options.php:33, inc/modules/trust-badges/admin/options.php:44
    25602655msgid "Right"
    25612656msgstr ""
    25622657
    2563 #: inc/modules/advanced-reviews/admin/options.php:77
     2658#: inc/modules/advanced-reviews/admin/options.php:78
    25642659msgid "Default reviews sorting"
    25652660msgstr ""
    25662661
    2567 #: inc/modules/advanced-reviews/admin/options.php:91
     2662#: inc/modules/advanced-reviews/admin/options.php:93
    25682663msgid "Pagination type"
    25692664msgstr ""
    25702665
    25712666#. translators: 1. Defualt WordPress discussion settings page.
    2572 #: inc/modules/advanced-reviews/admin/options.php:95
     2667#: inc/modules/advanced-reviews/admin/options.php:96
    25732668msgid "This option works only if you have pagination for comments enabled. By default, WordPress doesn't have pagination enabled for comments/reviews. You can change it from: <a href=\"%1$s\" target=\"_blank\">Settings > Discusson</a>"
    25742669msgstr ""
    25752670
    2576 #: inc/modules/advanced-reviews/admin/options.php:100
     2671#: inc/modules/advanced-reviews/admin/options.php:101
    25772672msgid "Load more button"
    25782673msgstr ""
    25792674
    2580 #: inc/modules/advanced-reviews/admin/options.php:109
     2675#: inc/modules/advanced-reviews/admin/options.php:110
     2676msgid "Review options"
     2677msgstr ""
     2678
     2679#: inc/modules/advanced-reviews/admin/options.php:112
     2680msgid "Image and text"
     2681msgstr ""
     2682
     2683#: inc/modules/advanced-reviews/admin/options.php:113
     2684msgid "Image only"
     2685msgstr ""
     2686
     2687#: inc/modules/advanced-reviews/admin/options.php:114
     2688msgid "Text only"
     2689msgstr ""
     2690
     2691#: inc/modules/advanced-reviews/admin/options.php:123
     2692msgid "Photos upload limit"
     2693msgstr ""
     2694
     2695#: inc/modules/advanced-reviews/admin/options.php:124
     2696msgid "Controls the photos upload limit for a review."
     2697msgstr ""
     2698
     2699#: inc/modules/advanced-reviews/admin/options.php:136
     2700msgid "Review images carousel"
     2701msgstr ""
     2702
     2703#: inc/modules/advanced-reviews/admin/options.php:137
     2704msgid "Display first image from each review as carousel to captivate and assist shoppers in their decision-making process."
     2705msgstr ""
     2706
     2707#: inc/modules/advanced-reviews/admin/options.php:145
     2708msgid "Total images"
     2709msgstr ""
     2710
     2711#: inc/modules/advanced-reviews/admin/options.php:146
     2712msgid "Controls the number of images to be displayed in the slider."
     2713msgstr ""
     2714
     2715#: inc/modules/advanced-reviews/admin/options.php:158, inc/modules/recently-viewed-products/admin/options.php:92
     2716msgid "Columns"
     2717msgstr ""
     2718
     2719#: inc/modules/advanced-reviews/admin/options.php:159
     2720msgid "Controls the number of images to be displayed per slide."
     2721msgstr ""
     2722
     2723#: inc/modules/advanced-reviews/admin/options.php:172
     2724msgid "Carousel Title"
     2725msgstr ""
     2726
     2727#: inc/modules/advanced-reviews/admin/options.php:180
    25812728msgid "Hook order"
    25822729msgstr ""
    25832730
    2584 #: inc/modules/advanced-reviews/admin/options.php:110
     2731#: inc/modules/advanced-reviews/admin/options.php:181
    25852732msgid "Controls the display order from the entire advanced reviews section. Low values will move the section to top. High values will move the section to bottom."
    25862733msgstr ""
    25872734
    2588 #: inc/modules/advanced-reviews/admin/options.php:128, inc/modules/advanced-reviews/admin/options.php:246, inc/modules/floating-mini-cart/admin/options.php:139, inc/modules/login-popup/admin/options.php:111, inc/modules/reasons-to-buy/admin/options.php:107, inc/modules/recently-viewed-products/admin/options.php:166, inc/modules/side-cart/admin/options.php:59, inc/modules/size-chart/admin/options.php:141, inc/modules/sticky-add-to-cart/admin/options.php:147
     2735#: inc/modules/advanced-reviews/admin/options.php:198, inc/modules/advanced-reviews/admin/options.php:318, inc/modules/floating-mini-cart/admin/options.php:139, inc/modules/login-popup/admin/options.php:111, inc/modules/reasons-to-buy/admin/options.php:107, inc/modules/recently-viewed-products/admin/options.php:166, inc/modules/side-cart/admin/options.php:59, inc/modules/size-chart/admin/options.php:141, inc/modules/sticky-add-to-cart/admin/options.php:147
    25892736msgid "Title color"
    25902737msgstr ""
    25912738
    2592 #: inc/modules/advanced-reviews/admin/options.php:136, inc/modules/advanced-reviews/admin/options.php:254
     2739#: inc/modules/advanced-reviews/admin/options.php:206, inc/modules/advanced-reviews/admin/options.php:326
    25932740msgid "Description color"
    25942741msgstr ""
    25952742
    2596 #: inc/modules/advanced-reviews/admin/options.php:144
     2743#: inc/modules/advanced-reviews/admin/options.php:214
    25972744msgid "Stars color"
    25982745msgstr ""
    25992746
    2600 #: inc/modules/advanced-reviews/admin/options.php:152
     2747#: inc/modules/advanced-reviews/admin/options.php:222
    26012748msgid "Stars background color"
    26022749msgstr ""
    26032750
    2604 #: inc/modules/advanced-reviews/admin/options.php:160, inc/modules/spending-goal/admin/options.php:129
     2751#: inc/modules/advanced-reviews/admin/options.php:230, inc/modules/spending-goal/admin/options.php:129
    26052752msgid "Progress bar color"
    26062753msgstr ""
    26072754
    2608 #: inc/modules/advanced-reviews/admin/options.php:168, inc/modules/stock-scarcity/admin/options.php:147
     2755#: inc/modules/advanced-reviews/admin/options.php:238, inc/modules/stock-scarcity/admin/options.php:147
    26092756msgid "Progress bar background color"
    26102757msgstr ""
    26112758
    2612 #: inc/modules/advanced-reviews/admin/options.php:176
     2759#: inc/modules/advanced-reviews/admin/options.php:246
    26132760msgid "Dividers color"
    26142761msgstr ""
    26152762
    2616 #: inc/modules/advanced-reviews/admin/options.php:184, inc/modules/floating-mini-cart/admin/options.php:202, inc/modules/login-popup/admin/options.php:139, inc/modules/side-cart/admin/options.php:122, inc/modules/sticky-add-to-cart/admin/options.php:171
     2763#: inc/modules/advanced-reviews/admin/options.php:254, inc/modules/floating-mini-cart/admin/options.php:202, inc/modules/login-popup/admin/options.php:139, inc/modules/side-cart/admin/options.php:122, inc/modules/sticky-add-to-cart/admin/options.php:171
    26172764msgid "Button color"
    26182765msgstr ""
    26192766
    2620 #: inc/modules/advanced-reviews/admin/options.php:192, inc/modules/sticky-add-to-cart/admin/options.php:179
     2767#: inc/modules/advanced-reviews/admin/options.php:262, inc/modules/sticky-add-to-cart/admin/options.php:179
    26212768msgid "Button color (hover)"
    26222769msgstr ""
    26232770
    2624 #: inc/modules/advanced-reviews/admin/options.php:200, inc/modules/buy-now/admin/options.php:68, inc/modules/cookie-banner/admin/options.php:130, inc/modules/floating-mini-cart/admin/options.php:230, inc/modules/login-popup/admin/options.php:167, inc/modules/pre-orders/admin/options.php:72, inc/modules/quick-view/admin/options.php:138, inc/modules/side-cart/admin/options.php:150, inc/modules/sticky-add-to-cart/admin/options.php:155
     2771#: inc/modules/advanced-reviews/admin/options.php:270, inc/modules/buy-now/admin/options.php:68, inc/modules/cookie-banner/admin/options.php:130, inc/modules/floating-mini-cart/admin/options.php:230, inc/modules/login-popup/admin/options.php:167, inc/modules/pre-orders/admin/options.php:72, inc/modules/quick-view/admin/options.php:138, inc/modules/side-cart/admin/options.php:150, inc/modules/sticky-add-to-cart/admin/options.php:155
    26252772msgid "Button background color"
    26262773msgstr ""
    26272774
    2628 #: inc/modules/advanced-reviews/admin/options.php:208, inc/modules/sticky-add-to-cart/admin/options.php:163
     2775#: inc/modules/advanced-reviews/admin/options.php:278, inc/modules/sticky-add-to-cart/admin/options.php:163
    26292776msgid "Button background color (hover)"
    26302777msgstr ""
    26312778
    2632 #: inc/modules/advanced-reviews/admin/options.php:217
     2779#: inc/modules/advanced-reviews/admin/options.php:289
    26332780msgid "Modal Settings"
    26342781msgstr ""
    26352782
    2636 #: inc/modules/advanced-reviews/admin/options.php:230, inc/modules/size-chart/admin/options.php:127
     2783#: inc/modules/advanced-reviews/admin/options.php:302, inc/modules/size-chart/admin/options.php:127
    26372784msgid "Close icon color"
    26382785msgstr ""
    26392786
    2640 #: inc/modules/advanced-reviews/admin/options.php:238
     2787#: inc/modules/advanced-reviews/admin/options.php:310
    26412788msgid "Close icon color (hover)"
    26422789msgstr ""
    26432790
    2644 #: inc/modules/advanced-reviews/admin/options.php:262
     2791#: inc/modules/advanced-reviews/admin/options.php:334
    26452792msgid "Textarea color"
    26462793msgstr ""
    26472794
    2648 #: inc/modules/advanced-reviews/admin/options.php:270
     2795#: inc/modules/advanced-reviews/admin/options.php:342
    26492796msgid "Textarea background color"
    26502797msgstr ""
    26512798
    2652 #: inc/modules/advanced-reviews/admin/options.php:278, inc/modules/cookie-banner/admin/options.php:109
     2799#: inc/modules/advanced-reviews/admin/options.php:350, inc/modules/cookie-banner/admin/options.php:109
    26532800msgid "Modal background color"
    26542801msgstr ""
    26552802
    2656 #: inc/modules/advanced-reviews/admin/options.php:289, inc/modules/advanced-reviews/admin/options.php:294, inc/modules/buy-x-get-y/admin/options.php:250, inc/modules/buy-x-get-y/admin/options.php:255, inc/modules/cart-reserved-timer/admin/options.php:103, inc/modules/cart-reserved-timer/admin/options.php:108, inc/modules/frequently-bought-together/admin/options.php:217, inc/modules/frequently-bought-together/admin/options.php:222, inc/modules/payment-logos/admin/options.php:125, inc/modules/payment-logos/admin/options.php:130, inc/modules/product-brand-image/admin/options.php:82, inc/modules/product-brand-image/admin/options.php:87, inc/modules/product-bundles/admin/options.php:137, inc/modules/product-bundles/admin/options.php:142, inc/modules/reasons-to-buy/admin/options.php:134, inc/modules/reasons-to-buy/admin/options.php:139, inc/modules/recently-viewed-products/admin/options.php:204, inc/modules/recently-viewed-products/admin/options.php:209, inc/modules/size-chart/admin/options.php:215, inc/modules/size-chart/admin/options.php:220, inc/modules/stock-scarcity/admin/options.php:188, inc/modules/stock-scarcity/admin/options.php:193, inc/modules/trust-badges/admin/options.php:132, inc/modules/trust-badges/admin/options.php:137, inc/modules/volume-discounts/admin/options.php:322, inc/modules/volume-discounts/admin/options.php:327, inc/modules/wait-list/admin/options.php:134, inc/modules/wait-list/admin/options.php:139
     2803#: inc/modules/advanced-reviews/admin/options.php:363, inc/modules/advanced-reviews/admin/options.php:368, inc/modules/buy-x-get-y/admin/options.php:250, inc/modules/buy-x-get-y/admin/options.php:255, inc/modules/cart-reserved-timer/admin/options.php:103, inc/modules/cart-reserved-timer/admin/options.php:108, inc/modules/frequently-bought-together/admin/options.php:217, inc/modules/frequently-bought-together/admin/options.php:222, inc/modules/payment-logos/admin/options.php:125, inc/modules/payment-logos/admin/options.php:130, inc/modules/product-brand-image/admin/options.php:82, inc/modules/product-brand-image/admin/options.php:87, inc/modules/product-bundles/admin/options.php:137, inc/modules/product-bundles/admin/options.php:142, inc/modules/reasons-to-buy/admin/options.php:134, inc/modules/reasons-to-buy/admin/options.php:139, inc/modules/recently-viewed-products/admin/options.php:204, inc/modules/recently-viewed-products/admin/options.php:209, inc/modules/size-chart/admin/options.php:215, inc/modules/size-chart/admin/options.php:220, inc/modules/stock-scarcity/admin/options.php:188, inc/modules/stock-scarcity/admin/options.php:193, inc/modules/trust-badges/admin/options.php:132, inc/modules/trust-badges/admin/options.php:137, inc/modules/volume-discounts/admin/options.php:322, inc/modules/volume-discounts/admin/options.php:327, inc/modules/wait-list/admin/options.php:134, inc/modules/wait-list/admin/options.php:139
    26572804msgid "Use shortcode"
    26582805msgstr ""
    26592806
    2660 #: inc/modules/advanced-reviews/admin/options.php:300, inc/modules/buy-x-get-y/admin/options.php:261, inc/modules/cart-reserved-timer/admin/options.php:114, inc/modules/frequently-bought-together/admin/options.php:228, inc/modules/payment-logos/admin/options.php:136, inc/modules/product-brand-image/admin/options.php:93, inc/modules/product-bundles/admin/options.php:148, inc/modules/reasons-to-buy/admin/options.php:145, inc/modules/recently-viewed-products/admin/options.php:215, inc/modules/size-chart/admin/options.php:226, inc/modules/stock-scarcity/admin/options.php:199, inc/modules/trust-badges/admin/options.php:143, inc/modules/volume-discounts/admin/options.php:333, inc/modules/wait-list/admin/options.php:145
     2807#: inc/modules/advanced-reviews/admin/options.php:374, inc/modules/buy-x-get-y/admin/options.php:261, inc/modules/cart-reserved-timer/admin/options.php:114, inc/modules/frequently-bought-together/admin/options.php:228, inc/modules/payment-logos/admin/options.php:136, inc/modules/product-brand-image/admin/options.php:93, inc/modules/product-bundles/admin/options.php:148, inc/modules/reasons-to-buy/admin/options.php:145, inc/modules/recently-viewed-products/admin/options.php:215, inc/modules/size-chart/admin/options.php:226, inc/modules/stock-scarcity/admin/options.php:199, inc/modules/trust-badges/admin/options.php:143, inc/modules/volume-discounts/admin/options.php:333, inc/modules/wait-list/admin/options.php:145
    26612808msgid "If you are using a page builder or a theme that supports shortcodes, then you can output the module using the shortcode above. This might be useful if, for example, you find that you want to control the position of the module output more precisely than with the module settings. Note that the shortcodes can only be used on single product pages."
    26622809msgstr ""
    26632810
    2664 #: inc/modules/advanced-reviews/admin/options.php:305, inc/modules/buy-x-get-y/admin/options.php:266, inc/modules/cart-reserved-timer/admin/options.php:119, inc/modules/frequently-bought-together/admin/options.php:233, inc/modules/payment-logos/admin/options.php:141, inc/modules/product-brand-image/admin/options.php:98, inc/modules/product-bundles/admin/options.php:153, inc/modules/reasons-to-buy/admin/options.php:150, inc/modules/recently-viewed-products/admin/options.php:220, inc/modules/size-chart/admin/options.php:231, inc/modules/stock-scarcity/admin/options.php:207, inc/modules/trust-badges/admin/options.php:148, inc/modules/volume-discounts/admin/options.php:338, inc/modules/wait-list/admin/options.php:150
     2811#: inc/modules/advanced-reviews/admin/options.php:379, inc/modules/buy-x-get-y/admin/options.php:266, inc/modules/cart-reserved-timer/admin/options.php:119, inc/modules/frequently-bought-together/admin/options.php:233, inc/modules/payment-logos/admin/options.php:141, inc/modules/product-brand-image/admin/options.php:98, inc/modules/product-bundles/admin/options.php:153, inc/modules/reasons-to-buy/admin/options.php:150, inc/modules/recently-viewed-products/admin/options.php:220, inc/modules/size-chart/admin/options.php:231, inc/modules/stock-scarcity/admin/options.php:207, inc/modules/trust-badges/admin/options.php:148, inc/modules/volume-discounts/admin/options.php:338, inc/modules/wait-list/admin/options.php:150
    26652812msgid "Shortcode text"
    26662813msgstr ""
     
    28142961msgstr ""
    28152962
    2816 #: inc/modules/buy-x-get-y/admin/options.php:23, inc/modules/free-gifts/admin/options.php:21, inc/modules/volume-discounts/admin/options.php:20
     2963#: inc/modules/buy-x-get-y/admin/options.php:23, inc/modules/free-gifts/admin/options.php:20, inc/modules/volume-discounts/admin/options.php:20
    28172964msgid "Add New Offer"
    28182965msgstr ""
    28192966
    2820 #: inc/modules/buy-x-get-y/admin/options.php:26, inc/modules/buy-x-get-y/admin/options.php:33, inc/modules/free-gifts/admin/options.php:89, inc/modules/frequently-bought-together/admin/options.php:33, inc/modules/volume-discounts/admin/options.php:34
     2967#: inc/modules/buy-x-get-y/admin/options.php:26, inc/modules/buy-x-get-y/admin/options.php:33, inc/modules/free-gifts/admin/options.php:125, inc/modules/frequently-bought-together/admin/options.php:33, inc/modules/volume-discounts/admin/options.php:34
    28212968msgid "Campaign"
    28222969msgstr ""
    28232970
    2824 #: inc/modules/buy-x-get-y/admin/options.php:32, inc/modules/free-gifts/admin/options.php:33, inc/modules/free-gifts/admin/options.php:88, inc/modules/frequently-bought-together/admin/options.php:32, inc/modules/storewide-sale/admin/options.php:32, inc/modules/volume-discounts/admin/options.php:33
     2971#: inc/modules/buy-x-get-y/admin/options.php:32, inc/modules/free-gifts/admin/options.php:32, inc/modules/free-gifts/admin/options.php:124, inc/modules/frequently-bought-together/admin/options.php:32, inc/modules/storewide-sale/admin/options.php:32, inc/modules/volume-discounts/admin/options.php:33
    28252972msgid "Offer name"
    28262973msgstr ""
     
    29383085msgstr ""
    29393086
    2940 #: inc/modules/buy-x-get-y/admin/options.php:190, inc/modules/free-gifts/admin/options.php:265
     3087#: inc/modules/buy-x-get-y/admin/options.php:190, inc/modules/free-gifts/admin/options.php:334
    29413088msgid "Label background color"
    29423089msgstr ""
    29433090
    2944 #: inc/modules/buy-x-get-y/admin/options.php:197, inc/modules/free-gifts/admin/options.php:272
     3091#: inc/modules/buy-x-get-y/admin/options.php:197, inc/modules/free-gifts/admin/options.php:341
    29453092msgid "Label text color"
    29463093msgstr ""
     
    33803527msgstr ""
    33813528
    3382 #: inc/modules/floating-mini-cart/admin/options.php:47, inc/modules/product-labels/admin/options.php:121, inc/modules/scroll-to-top-button/admin/options.php:64, inc/modules/sticky-add-to-cart/admin/options.php:23
     3529#: inc/modules/floating-mini-cart/admin/options.php:47, inc/modules/free-gifts/admin/options.php:220, inc/modules/product-labels/admin/options.php:121, inc/modules/scroll-to-top-button/admin/options.php:64, inc/modules/sticky-add-to-cart/admin/options.php:23
    33833530msgid "Position"
    33843531msgstr ""
     
    34203567msgstr ""
    34213568
    3422 #: inc/modules/floating-mini-cart/admin/options.php:167, inc/modules/free-gifts/admin/options.php:258, inc/modules/side-cart/admin/options.php:87, inc/modules/spending-goal/admin/options.php:147
     3569#: inc/modules/floating-mini-cart/admin/options.php:167, inc/modules/free-gifts/admin/options.php:327, inc/modules/side-cart/admin/options.php:87, inc/modules/spending-goal/admin/options.php:147
    34233570msgid "Content background color"
    34243571msgstr ""
     
    34443591msgstr ""
    34453592
    3446 #: inc/modules/free-gifts/admin/options.php:15
     3593#: inc/modules/free-gifts/admin/options.php:14
    34473594msgid "Floating Gift Widget"
    34483595msgstr ""
    34493596
    3450 #: inc/modules/free-gifts/admin/options.php:27
     3597#: inc/modules/free-gifts/admin/options.php:26
    34513598msgid "Spending Based"
    34523599msgstr ""
    34533600
    3454 #: inc/modules/free-gifts/admin/options.php:34
     3601#: inc/modules/free-gifts/admin/options.php:33
    34553602msgid "Free Gift Campaign"
    34563603msgstr ""
    34573604
    3458 #: inc/modules/free-gifts/admin/options.php:39
     3605#: inc/modules/free-gifts/admin/options.php:38
    34593606msgid "Products that can be purchased to claim the gift"
    34603607msgstr ""
    34613608
    3462 #: inc/modules/free-gifts/admin/options.php:41
     3609#: inc/modules/free-gifts/admin/options.php:40
    34633610msgid "Any product"
    34643611msgstr ""
    34653612
    3466 #: inc/modules/free-gifts/admin/options.php:42, inc/modules/frequently-bought-together/admin/options.php:41
     3613#: inc/modules/free-gifts/admin/options.php:41, inc/modules/frequently-bought-together/admin/options.php:41
    34673614msgid "Specific product"
    34683615msgstr ""
    34693616
    3470 #: inc/modules/free-gifts/admin/options.php:43
     3617#: inc/modules/free-gifts/admin/options.php:42
    34713618msgid "Product categories"
    34723619msgstr ""
    34733620
    3474 #: inc/modules/free-gifts/admin/options.php:54
     3621#: inc/modules/free-gifts/admin/options.php:53
    34753622msgid "Select the product categories that the spending goal will apply to."
    34763623msgstr ""
    34773624
    3478 #: inc/modules/free-gifts/admin/options.php:61, inc/modules/free-gifts/admin/options.php:96
     3625#: inc/modules/free-gifts/admin/options.php:60, inc/modules/free-gifts/admin/options.php:132
    34793626msgid "Select the product that the spending goal will apply to."
    34803627msgstr ""
    34813628
    3482 #: inc/modules/free-gifts/admin/options.php:69
     3629#: inc/modules/free-gifts/admin/options.php:68
    34833630msgid "USD"
    34843631msgstr ""
    34853632
    3486 #: inc/modules/free-gifts/admin/options.php:75
     3633#: inc/modules/free-gifts/admin/options.php:74
    34873634msgid "Product rewarded as a gift"
    34883635msgstr ""
    34893636
    34903637#: inc/modules/free-gifts/admin/options.php:82
     3638msgid "Spending goal target"
     3639msgstr ""
     3640
     3641#: inc/modules/free-gifts/admin/options.php:84
     3642msgid "Configure the 3 states of the Gift offer. Personalize the text to maximize the conversion."
     3643msgstr ""
     3644
     3645#: inc/modules/free-gifts/admin/options.php:90
     3646msgid "At 0%"
     3647msgstr ""
     3648
     3649#. translators: 1. goal amount
     3650#. translators: 1. more amount
     3651#: inc/modules/free-gifts/admin/options.php:93, inc/modules/free-gifts/admin/options.php:104
     3652msgid "Spend %1$s on any product to receive this gift!"
     3653msgstr ""
     3654
     3655#: inc/modules/free-gifts/admin/options.php:101
     3656msgid "Between 1 - 99%"
     3657msgstr ""
     3658
     3659#: inc/modules/free-gifts/admin/options.php:112
     3660msgid "At 100%"
     3661msgstr ""
     3662
     3663#: inc/modules/free-gifts/admin/options.php:118
    34913664msgid "Coupon Based"
    34923665msgstr ""
    34933666
    3494 #: inc/modules/free-gifts/admin/options.php:94
     3667#: inc/modules/free-gifts/admin/options.php:130
    34953668msgid "Product"
    34963669msgstr ""
    34973670
    3498 #: inc/modules/free-gifts/admin/options.php:101
     3671#: inc/modules/free-gifts/admin/options.php:137
    34993672msgid "Use coupon to receive this product for free"
    35003673msgstr ""
    35013674
    3502 #: inc/modules/free-gifts/admin/options.php:127
     3675#: inc/modules/free-gifts/admin/options.php:163
    35033676msgid "Gift based on spending type"
    35043677msgstr ""
    35053678
    3506 #: inc/modules/free-gifts/admin/options.php:128
     3679#: inc/modules/free-gifts/admin/options.php:164
    35073680msgid "To which the spending goal should be based on to receive gifts. \"Cart Subtotal\" does not include additional calculated discounts, whereas the \"Cart Total\" does."
    35083681msgstr ""
    35093682
    3510 #: inc/modules/free-gifts/admin/options.php:131, inc/modules/spending-goal/admin/options.php:32
     3683#: inc/modules/free-gifts/admin/options.php:167, inc/modules/spending-goal/admin/options.php:32
    35113684msgid "Cart subtotal"
    35123685msgstr ""
    35133686
    3514 #: inc/modules/free-gifts/admin/options.php:146
     3687#: inc/modules/free-gifts/admin/options.php:176
     3688msgid "Free text"
     3689msgstr ""
     3690
     3691#: inc/modules/free-gifts/admin/options.php:183
     3692msgid "Cart item title text"
     3693msgstr ""
     3694
     3695#: inc/modules/free-gifts/admin/options.php:185, inc/modules/free-gifts/admin/options.php:193, inc/modules/volume-discounts/admin/options.php:221
     3696msgid "This is displayed on the cart page."
     3697msgstr ""
     3698
     3699#: inc/modules/free-gifts/admin/options.php:191
     3700msgid "Cart item description text"
     3701msgstr ""
     3702
     3703#: inc/modules/free-gifts/admin/options.php:200
     3704msgid "Gift Widget"
     3705msgstr ""
     3706
     3707#: inc/modules/free-gifts/admin/options.php:206
     3708msgid "Widget icon"
     3709msgstr ""
     3710
     3711#: inc/modules/free-gifts/admin/options.php:222
     3712msgid "Top Right"
     3713msgstr ""
     3714
     3715#: inc/modules/free-gifts/admin/options.php:223
     3716msgid "Top Left"
     3717msgstr ""
     3718
     3719#: inc/modules/free-gifts/admin/options.php:224
     3720msgid "Bottom Right"
     3721msgstr ""
     3722
     3723#: inc/modules/free-gifts/admin/options.php:225
     3724msgid "Bottom Left"
     3725msgstr ""
     3726
     3727#: inc/modules/free-gifts/admin/options.php:233
     3728msgid "Distance"
     3729msgstr ""
     3730
     3731#: inc/modules/free-gifts/admin/options.php:252
    35153732msgid "Shop page"
    35163733msgstr ""
    35173734
    3518 #: inc/modules/free-gifts/admin/options.php:152
     3735#: inc/modules/free-gifts/admin/options.php:259
    35193736msgid "Product page"
    35203737msgstr ""
    35213738
    3522 #: inc/modules/free-gifts/admin/options.php:158
     3739#: inc/modules/free-gifts/admin/options.php:266
    35233740msgid "Cart page"
    35243741msgstr ""
    35253742
    3526 #: inc/modules/free-gifts/admin/options.php:166
    3527 msgid "Text Formatting"
    3528 msgstr ""
    3529 
    3530 #: inc/modules/free-gifts/admin/options.php:173
    3531 msgid "Spending text"
    3532 msgstr ""
    3533 
    3534 #: inc/modules/free-gifts/admin/options.php:180
    3535 msgid "Free text"
    3536 msgstr ""
    3537 
    3538 #: inc/modules/free-gifts/admin/options.php:187
    3539 msgid "Cart item title text"
    3540 msgstr ""
    3541 
    3542 #: inc/modules/free-gifts/admin/options.php:189, inc/modules/free-gifts/admin/options.php:197, inc/modules/volume-discounts/admin/options.php:221
    3543 msgid "This is displayed on the cart page."
    3544 msgstr ""
    3545 
    3546 #: inc/modules/free-gifts/admin/options.php:195
    3547 msgid "Cart item description text"
    3548 msgstr ""
    3549 
    3550 #: inc/modules/free-gifts/admin/options.php:212
     3743#: inc/modules/free-gifts/admin/options.php:281
    35513744msgid "Count background color"
    35523745msgstr ""
    35533746
    3554 #: inc/modules/free-gifts/admin/options.php:219
     3747#: inc/modules/free-gifts/admin/options.php:288
    35553748msgid "Count text color"
    35563749msgstr ""
    35573750
    3558 #: inc/modules/free-gifts/admin/options.php:226
     3751#: inc/modules/free-gifts/admin/options.php:295
    35593752msgid "Gift button background color"
    35603753msgstr ""
    35613754
    3562 #: inc/modules/free-gifts/admin/options.php:233
     3755#: inc/modules/free-gifts/admin/options.php:302
    35633756msgid "Gift button Hover background color"
    35643757msgstr ""
    35653758
    3566 #: inc/modules/free-gifts/admin/options.php:240
     3759#: inc/modules/free-gifts/admin/options.php:309
    35673760msgid "Gift button Icon color"
    35683761msgstr ""
    35693762
    3570 #: inc/modules/free-gifts/admin/options.php:247, inc/modules/spending-goal/admin/options.php:136
     3763#: inc/modules/free-gifts/admin/options.php:316, inc/modules/spending-goal/admin/options.php:136
    35713764msgid "Content width"
    35723765msgstr ""
    35733766
    3574 #: inc/modules/free-gifts/admin/options.php:279
     3767#: inc/modules/free-gifts/admin/options.php:348
    35753768msgid "Product text color"
    35763769msgstr ""
    35773770
    3578 #: inc/modules/free-gifts/admin/options.php:286
     3771#: inc/modules/free-gifts/admin/options.php:355
    35793772msgid "Product hover text color"
    35803773msgstr ""
    35813774
    3582 #: inc/modules/free-gifts/admin/options.php:293
     3775#: inc/modules/free-gifts/admin/options.php:362
    35833776msgid "Product price text color"
    35843777msgstr ""
    35853778
    3586 #: inc/modules/free-gifts/admin/options.php:300
     3779#: inc/modules/free-gifts/admin/options.php:369
    35873780msgid "Free text color"
    35883781msgstr ""
     
    46344827msgstr ""
    46354828
    4636 #: inc/modules/recently-viewed-products/admin/options.php:92
    4637 msgid "Columns"
    4638 msgstr ""
    4639 
    46404829#: inc/modules/recently-viewed-products/admin/options.php:93
    46414830msgid "Controls the number of columns to display in the products grid."
  • merchant/trunk/templates/modules/advanced-reviews/pagination-links.php

    r3079548 r3083515  
    2525}
    2626
     27
    2728$max_page = ceil( $args[ 'cpages' ] );
    2829$defaults = array(
    29     'base'       => add_query_arg( 'cpage', '%#%' ),
     30    'base'         => add_query_arg( 'cpage', '%#%' ),
    3031    'format'       => '',
    31     'total'     => $max_page,
    32     'current'     => $_page,
    33     'echo'       => true,
    34     'type'       => 'plain',
     32    'total'        => $max_page,
     33    'current'      => $_page,
     34    'echo'         => true,
     35    'type'         => 'plain',
    3536    'add_fragment' => '#comments',
    3637);
  • merchant/trunk/templates/modules/advanced-reviews/reviews.php

    r3079548 r3083515  
    1717}
    1818
    19 $product        = $args[ 'product' ];
    20 $product_id     = $product->get_id();
    21 $review_count   = $product->get_review_count();
    22 $average        = $product->get_average_rating();
     19if ( ! isset( $args['comments_open'] ) || ! $args['comments_open'] ) {
     20    return;
     21}
     22
     23$product      = $args[ 'product' ];
     24$product_id   = $product->get_id();
     25$review_count = $product->get_review_count();
     26$average      = $product->get_average_rating();
    2327
    2428// Title tag
    25 $title_tag = $args[ 'title_tag' ];
     29$title_tag = $args[ 'title_tag' ] ?? 'h2';
    2630
    2731// Dropdown sort
    28 $default_sorting    = $args[ 'default_sorting' ];
    29 $sort_orderby       = isset( $_GET['orderby'] ) ? sanitize_text_field( wp_unslash( $_GET['orderby'] ) ) : $default_sorting;  // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     32$default_sorting = $args[ 'default_sorting' ] ?? 'newest';
     33$sort_orderby    = isset( $_GET['orderby'] ) ? sanitize_text_field( wp_unslash( $_GET['orderby'] ) ) : $default_sorting;  // phpcs:ignore WordPress.Security.NonceVerification.Recommended
     34
     35// Get Comments args
     36$comments_args = array(
     37    'post_id' => $product_id,
     38    'number'  => get_option( 'page_comments' ) ? get_option( 'comments_per_page' ) : '',
     39);
     40
     41// Pagination
     42$comment_pages = 0;
     43if ( get_option( 'page_comments' ) ) {
     44    $cpaged = get_query_var( 'cpage' );
     45
     46    $comment_pages = count( get_comments( array(
     47        'post_id' => $product_id,
     48        'fields' => 'ids',
     49    ) ) );
     50
     51    $comment_pages = $comment_pages / get_option( 'comments_per_page' );
     52
     53    $comments_args[ 'paged' ] = empty( $cpaged ) ? 1 : $cpaged;
     54}
     55
     56// Orderby
     57switch ( $sort_orderby ) {
     58    case 'newest':
     59        $comments_args[ 'order' ]   = 'DESC';
     60        $comments_args[ 'orderby' ] = 'comment_date_gmt';
     61        break;
     62
     63    case 'oldest':
     64        $comments_args[ 'order' ]   = 'ASC';
     65        $comments_args[ 'orderby' ] = 'comment_date_gmt';
     66        break;
     67
     68    case 'top-rated':
     69        $comments_args[ 'order' ]   = 'DESC';
     70        $comments_args[ 'orderby' ] = 'meta_value_num';
     71        // phpcs:disable
     72        $comments_args[ 'meta_key' ] = 'rating';
     73        // phpcs:enable
     74        break;
     75
     76    case 'low-rated':
     77        $comments_args[ 'order' ]   = 'ASC';
     78        $comments_args[ 'orderby' ] = 'meta_value_num';
     79        // phpcs:disable
     80        $comments_args[ 'meta_key' ] = 'rating';
     81        // phpcs:enable
     82        break;
     83
     84    case 'photo-first':
     85        // phpcs:disable
     86        $comments_args[ 'meta_query' ] = array(
     87            'relation' => 'OR',
     88            array(
     89                'key'     => 'review_images',
     90                'compare' => 'EXISTS',
     91            ),
     92            array(
     93                'key'     => 'review_images',
     94                'compare' => 'NOT EXISTS',
     95            ),
     96        );
     97        $comments_args[ 'orderby' ] = array(
     98            'meta_value' => 'DESC',
     99            'comment_date'   => 'DESC',
     100        );
     101        // phpcs:enable
     102        break;
     103}
     104
     105/**
     106 * Hook 'merchant_wc_reviews_advanced_sorting_args'
     107 *
     108 * @since 1.0
     109 */
     110$_comments = isset( $args['comments'] ) ? $args['comments'] : get_comments( apply_filters( 'merchant_wc_reviews_advanced_sorting_args', $comments_args ) );
     111
     112$args['comments'] = ! isset( $args['comments'] ) ? $_comments : $args['comments'];
    30113
    31114// Reviews bars rating
    32 $bars_data = $args['bars_data']; ?>
     115$bars_data     = $args['bars_data'] ?? array();
     116$ratings       = $bars_data['ratings'] ?? array();
     117$total_ratings = $bars_data['total'] ?? 0;
     118
     119// Carousel images
     120$is_carousel_on       = (bool) ( $args['review_images_carousel'] ?? false );
     121$carousel_images_data = $args['carousel_images_data'] ?? array();
     122
     123if ( $is_carousel_on && is_array( $carousel_images_data ) && ! empty( $carousel_images_data ) ) : ?>
     124    <?php
     125    $images_per_page = $args['review_images_carousel_per_page'] ?? 3;
     126
     127    wp_enqueue_style( 'merchant-carousel' );
     128    wp_enqueue_script( 'merchant-carousel' );
     129    ?>
     130    <section class="merchant-adv-reviews-media-carousel">
     131        <?php if ( ! empty( $args['carousel_title'] ) ) : ?>
     132            <h3 class="section-title"><?php echo esc_html( Merchant_Translator::translate( $args['carousel_title'] ) ); ?></h3>
     133        <?php endif; ?>
     134
     135        <div class="merchant-carousel <?php echo esc_attr( $images_per_page >= count( $carousel_images_data ) ? ' no-carousel' : '' ); ?>" data-per-page="<?php echo esc_attr( $images_per_page ); ?>">
     136            <div class="merchant-carousel-stage">
     137                <?php foreach( $carousel_images_data as $data ) :
     138                    ?>
     139                    <?php if ( ! empty( $data['image_id'] ) ) : ?>
     140                    <div class="item js-photo-slider-item" role="button" data-comment-id="<?php echo esc_attr( $data['comment_id'] ?? '' ); ?>">
     141                        <?php echo wp_get_attachment_image( $data['image_id'], 'full' ); ?>
     142                    </div>
     143                    <?php endif; ?>
     144                <?php endforeach; ?>
     145            </div>
     146        </div>
     147    </section>
     148<?php endif; ?>
    33149
    34150<section id="reviews" class="merchant-adv-reviews products<?php echo ( $args[ 'hide_title' ] ) ? ' hide-title' : ''; ?>">
    35151    <?php
    36152    if ( ! $args[ 'hide_title' ] ) :
    37    
    38153        echo wp_kses_post(
    39154            sprintf(
     
    43158            )
    44159        );
    45 
    46160        ?>
    47 
    48161        <p class="merchant-adv-reviews-desc">
    49162            <?php echo esc_html( Merchant_Translator::translate( $args[ 'description' ] ) ); ?>
    50163        </p>
    51 
    52164    <?php endif; ?>
    53    
     165
    54166    <div class="merchant-adv-reviews-header">
    55167        <div class="mrc-row mrc-columns-no-gutter">
    56168            <div class="mrc-col mrc-left-col">
    57 
    58                 <?php if ( $args['ratings_enabled'] && $bars_data['total'] > 0 ) : ?>
    59                 <div class="merchant-adv-reviews-rating-wrapper">
    60                     <strong class="merchant-adv-reviews-rating"><?php echo esc_html( $average ); ?></strong>
    61                     <div class="star-rating merchant-star-rating-style2" role="img" aria-label="Rated <?php echo esc_attr( $average ); ?> out of 5">
    62                         <span style="width: <?php echo esc_attr( ( ( $average / 5 ) * 100 ) ); ?>%;">
    63                             <?php
    64                             /* translators: %s is average rating value */
    65                             $rating_text = sprintf( __( 'Rated %s out of 5 based on customer ratings.', 'merchant' ), $average );
    66                             echo esc_html( $rating_text );
    67                             ?>
    68                         </span>
    69                     </div>
    70                 </div>
     169                <?php if ( $args['ratings_enabled'] && $total_ratings > 0 ) : ?>
     170                    <div class="merchant-adv-reviews-rating-wrapper">
     171                        <strong class="merchant-adv-reviews-rating"><?php echo esc_html( $average ); ?></strong>
     172                        <div class="star-rating merchant-star-rating-style2" role="img" aria-label="Rated <?php echo esc_attr( $average ); ?> out of 5">
     173                            <span style="width: <?php echo esc_attr( ( ( $average / 5 ) * 100 ) ); ?>%;">
     174                                <?php
     175                                /* translators: %s is average rating value */
     176                                $rating_text = sprintf( __( 'Rated %s out of 5 based on customer ratings.', 'merchant' ), $average );
     177                                echo esc_html( $rating_text );
     178                                ?>
     179                            </span>
     180                        </div>
     181                    </div>
    71182                <?php endif; ?>
    72183               
     
    83194                </p>
    84195
    85                 <?php if ( $args['ratings_enabled'] && $bars_data[ 'total' ] > 0 ) : ?>
    86                 <div class="merchant-star-rating-bars">
    87                     <div class="merchant-star-rating-bar-item">
    88                         <p class="item-rating"><?php echo esc_html__( '5 Stars', 'merchant' ); ?></p>
    89                         <div class="item-bar">
    90                             <div class="item-bar-inner" style="width: <?php echo esc_attr( $bars_data[ '5-stars-percent' ] ); ?>%;"></div>
    91                         </div>
    92                         <p class="item-qty">
    93                             <?php
    94                             /* translators: %s is stars quantity */
    95                             $five_star_text = sprintf( esc_html__( '(%s)', 'merchant' ), $bars_data[ '5-stars' ] );
    96                             echo esc_html( $five_star_text );
    97                             ?>
    98                         </p>
    99                     </div>
    100                     <div class="merchant-star-rating-bar-item">
    101                         <p class="item-rating"><?php echo esc_html__( '4 Stars', 'merchant' ); ?></p>
    102                         <div class="item-bar">
    103                             <div class="item-bar-inner" style="width: <?php echo esc_attr( $bars_data[ '4-stars-percent' ] ); ?>%;"></div>
    104                         </div>
    105                         <p class="item-qty">
    106                             <?php
    107                             /* translators: %s is stars quantity */
    108                             $four_star_text = sprintf( esc_html__( '(%s)', 'merchant' ), $bars_data[ '4-stars' ] );
    109                             echo esc_html( $four_star_text );
    110                             ?>
    111                         </p> 
    112                     </div>
    113                     <div class="merchant-star-rating-bar-item">
    114                         <p class="item-rating"><?php echo esc_html__( '3 Stars', 'merchant' ); ?></p>
    115                         <div class="item-bar">
    116                             <div class="item-bar-inner" style="width: <?php echo esc_attr( $bars_data[ '3-stars-percent' ] ); ?>%;"></div>
    117                         </div>
    118                         <p class="item-qty">
    119                             <?php
    120                             /* translators: %s is stars quantity */
    121                             $three_star_text = sprintf( esc_html__( '(%s)', 'merchant' ), $bars_data[ '3-stars' ] );
    122                             echo esc_html( $three_star_text );
    123                             ?>
    124                         </p> 
    125                     </div>
    126                     <div class="merchant-star-rating-bar-item">
    127                         <p class="item-rating"><?php echo esc_html__( '2 Stars', 'merchant' ); ?></p>
    128                         <div class="item-bar">
    129                             <div class="item-bar-inner" style="width: <?php echo esc_attr( $bars_data[ '2-stars-percent' ] ); ?>%;"></div>
    130                         </div>
    131                         <p class="item-qty">
    132                             <?php
    133                             /* translators: %s is stars quantity */
    134                             $two_star_text = sprintf( esc_html__( '(%s)', 'merchant' ), $bars_data[ '2-stars' ] );
    135                             echo esc_html( $two_star_text );
    136                             ?>
    137                         </p> 
    138                     </div>
    139                     <div class="merchant-star-rating-bar-item">
    140                         <p class="item-rating"><?php echo esc_html__( '1 Star', 'merchant' ); ?></p>
    141                         <div class="item-bar">
    142                             <div class="item-bar-inner" style="width: <?php echo esc_attr( $bars_data[ '1-stars-percent' ] ); ?>%;"></div>
    143                         </div>
    144                         <p class="item-qty">
    145                             <?php
    146                             /* translators: %s is stars quantity */
    147                             $one_star_text = sprintf( esc_html__( '(%s)', 'merchant' ), $bars_data[ '1-stars' ] );
    148                             echo esc_html( $one_star_text );
    149                             ?>
    150                         </p> 
    151                     </div>
    152                 </div>
     196                <?php if ( $args['ratings_enabled'] && $total_ratings > 0 ) : ?>
     197                    <div class="merchant-star-rating-bars">
     198                        <?php if ( is_array( $ratings ) && ! empty( $ratings ) ) : ?>
     199                            <?php foreach ( $ratings as $key => $rating ) : ?>
     200                                <div class="merchant-star-rating-bar-item" tabindex="0" role="button" data-rating="<?php echo esc_attr( substr( $key, 0, strpos( $key, '-' ) ) ); ?>">
     201                                    <div class="merchant-star-rating-bar-item-inner">
     202                                        <p class="item-rating"><?php echo esc_html( $rating['label'] ?? '' ); ?></p>
     203                                        <div class="item-bar">
     204                                            <div class="item-bar-inner" style="width: <?php echo esc_attr( $rating[ 'percent' ] ); ?>%;"></div>
     205                                        </div>
     206                                        <p class="item-qty">(<?php echo esc_html( $rating['value'] ?? '0' ); ?>)</p>
     207                                    </div>
     208                                </div>
     209                            <?php endforeach; ?>
     210                        <?php endif; ?>
     211                    </div>
    153212                <?php endif; ?>
    154 
    155213            </div>
     214
    156215            <div class="mrc-col mrc-right-col">
    157216                <a href="#" class="merchant-adv-review-write-button"><?php echo esc_html__( 'Write a Review', 'merchant' ); ?></a>
    158217
    159218                <?php if ( $review_count > 0 ) : ?>
    160                 <form class="merchant-reviews-orderby-form" method="get" action="<?php echo esc_url( get_the_permalink( $product_id ) ); ?>#reviews-stars">
    161                     <label for="orderby"><?php echo esc_html__( 'Sort by:', 'merchant' ); ?></label>
    162                     <select class="merchant-reviews-orderby" name="orderby" onChange="this.parentNode.submit();">
    163                         <option value="newest"<?php echo selected( $sort_orderby, 'newest' ); ?>><?php echo esc_html__( 'Newest', 'merchant' ); ?></option>
    164                         <option value="oldest"<?php echo selected( $sort_orderby, 'oldest' ); ?>><?php echo esc_html__( 'Oldest', 'merchant' ); ?></option>
    165                         <option value="top-rated"<?php echo selected( $sort_orderby, 'top-rated' ); ?>><?php echo esc_html__( 'Top rated', 'merchant' ); ?></option>
    166                         <option value="low-rated"<?php echo selected( $sort_orderby, 'low-rated' ); ?>><?php echo esc_html__( 'Low rated', 'merchant' ); ?></option>
    167                     </select>
    168                 </form>
     219                    <form class="merchant-reviews-orderby-form" method="get" action="<?php echo esc_url( get_the_permalink( $product_id ) ); ?>#reviews-stars">
     220                        <label for="orderby"><?php echo esc_html__( 'Sort by:', 'merchant' ); ?></label>
     221                        <select class="merchant-reviews-orderby" name="orderby" onChange="this.parentNode.submit();">
     222                            <option value="newest"<?php echo selected( $sort_orderby, 'newest' ); ?>><?php echo esc_html__( 'Newest', 'merchant' ); ?></option>
     223                            <option value="oldest"<?php echo selected( $sort_orderby, 'oldest' ); ?>><?php echo esc_html__( 'Oldest', 'merchant' ); ?></option>
     224                            <option value="top-rated"<?php echo selected( $sort_orderby, 'top-rated' ); ?>><?php echo esc_html__( 'Top rated', 'merchant' ); ?></option>
     225                            <option value="low-rated"<?php echo selected( $sort_orderby, 'low-rated' ); ?>><?php echo esc_html__( 'Low rated', 'merchant' ); ?></option>
     226                            <option value="photo-first"<?php echo selected( $sort_orderby, 'photo-first' ); ?>><?php echo esc_html__( 'Photo first', 'merchant' ); ?></option>
     227                        </select>
     228                    </form>
    169229                <?php endif; ?>
    170230            </div>
    171231        </div>
    172232    </div>
    173     <div class="merchant-adv-reviews-body">
    174 
    175         <?php
    176         if ( $args['comments_open'] ) :
    177             // Get comments args
    178             $comments_args = array(
    179                 'post_id'  => $product_id,
    180                 'number'   => get_option( 'page_comments' ) ? get_option( 'comments_per_page' ) : '',
    181             );
    182 
    183             // Pagination?
    184             $cpages = 0;
    185             if ( get_option( 'page_comments' ) ) {
    186                 $cpaged = get_query_var( 'cpage' );
    187 
    188                 $cpages = count( get_comments( array(
    189                     'post_id' => $product_id,
    190                     'fields' => 'ids',
    191                 ) ) );
    192 
    193                 $cpages = $cpages / get_option( 'comments_per_page' );
    194 
    195                 $comments_args[ 'paged' ] = empty( $cpaged ) ? 1 : $cpaged;
    196             }
    197 
    198             // Orderby
    199             switch ( $sort_orderby ) {
    200                 case 'newest':
    201                     $comments_args[ 'order' ]   = 'DESC';
    202                     $comments_args[ 'orderby' ] = 'comment_date_gmt';
    203                     break;
    204 
    205                 case 'oldest':
    206                     $comments_args[ 'order' ]   = 'ASC';
    207                     $comments_args[ 'orderby' ] = 'comment_date_gmt';
    208                     break;
    209 
    210                 case 'top-rated':
    211                     $comments_args[ 'order' ]   = 'DESC';
    212                     $comments_args[ 'orderby' ]  = 'meta_value_num';
    213                     // phpcs:disable
    214                     $comments_args[ 'meta_key' ] = 'rating';
    215                     // phpcs:enable
    216                     break;
    217                
    218                 case 'low-rated':
    219                     $comments_args[ 'order' ]   = 'ASC';
    220                     $comments_args[ 'orderby' ]  = 'meta_value_num';
    221                     // phpcs:disable
    222                     $comments_args[ 'meta_key' ] = 'rating';
    223                     // phpcs:enable
    224                     break;
    225             }
    226 
    227             /**
    228              * Hook 'merchant_wc_reviews_advanced_sorting_args'
    229              *
    230              * @since 1.0
    231              */
    232             $_comments = isset($args['comments']) ? $args['comments'] : get_comments( apply_filters( 'merchant_wc_reviews_advanced_sorting_args',$comments_args ) ); ?>
    233 
    234             <div id="comments">
    235                 <?php if ( count( $_comments ) > 0 ) : ?>
    236                     <div class="merchant-reviews-list-wrapper">
    237                        
    238                         <?php
    239                         foreach ( $_comments as $_comment ) :
    240                             if ( '1' === $_comment->comment_approved ) :
    241                             ?>
    242 
    243                                 <div id="comment-<?php echo esc_attr( $_comment->comment_ID ); ?>" class="merchant-reviews-list-item">
    244                                     <div class="mrc-row mrc-columns-no-gutter">
    245                                         <div class="mrc-col">
    246                                             <div class="merchant-reviews-author-wrapper">
    247 
    248                                                 <?php
    249                                                 $comment_rating_value = isset( $args['comment_rating'] ) ? $args['comment_rating'] : get_comment_meta( $_comment->comment_ID, 'rating', true ); ?>
    250 
    251                                                 <?php if( wc_review_ratings_enabled() ) : ?>
    252                                                     <div class="star-rating merchant-star-rating-style2" role="img" aria-label="Rated <?php echo esc_attr( $comment_rating_value ); ?>.00 out of 5">
    253                                                         <span style="width: <?php echo esc_attr( ( ( $comment_rating_value / 5 ) * 100 ) ); ?>%;">
    254                                                             <?php
    255                                                             /* translators: %s is average rating value */
    256                                                             $comment_rating_text = sprintf( __( 'Rated %s out of 5 based on customer ratings.', 'merchant' ), $comment_rating_value );
    257                                                             echo esc_html( $comment_rating_text ); ?>
    258                                                         </span>
    259                                                     </div>
    260                                                 <?php endif; ?>
    261                                                
    262                                                 <strong class="merchant-review-author">
    263                                                     <?php echo esc_html( get_comment_author( $_comment ) ); ?>
    264 
    265                                                     <?php
    266                                                     /**
    267                                                      * Verified owner
    268                                                     */
    269                                                     $verified = wc_review_is_from_verified_owner( $_comment->comment_ID );
    270                                                     if ( 'yes' === get_option( 'woocommerce_review_rating_verification_label' ) && $verified ) {
    271                                                         echo '<em class="woocommerce-review__verified verified">'. esc_attr__( ' — verified owner', 'merchant' ) . '</em> ';
    272                                                     } ?>
    273                                                 </strong>
    274                                             </div>
    275                                         </div>
    276                                         <div class="mrc-col-3 merchant-review-date-wrapper">
    277                                             <time class="merchant-review-date" datetime="<?php echo esc_attr( get_comment_date( 'c', $_comment ) ); ?>"><?php echo esc_html( get_comment_date( 'F j, Y', $_comment ) ); ?></time>
    278                                         </div>
    279                                     </div>
    280                                     <div class="mrc-row mrc-columns-no-gutter">
    281                                         <div class="mrc-col">
    282                                             <div class="merchant-review-content">
    283                                                 <?php
    284                                                
    285                                                 /**
    286                                                  * Hook 'woocommerce_review_before_comment_text'
    287                                                  *
    288                                                  * @since 1.0
    289                                                  */
    290                                                 do_action( 'woocommerce_review_before_comment_text', $_comment ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Ensure compatibility with WooCommerce plugins
    291 
    292                                                 if ( isset( $args['comment_text'] ) ) {
    293                                                     echo wp_kses_post( $args['comment_text'] );
    294                                                 } else {
    295                                                     comment_text( $_comment );
    296                                                 }
    297 
    298                                                 /**
    299                                                  * Hook 'woocommerce_review_after_comment_text'
    300                                                  *
    301                                                  * @since 1.0
    302                                                  */
    303                                                 do_action( 'woocommerce_review_after_comment_text', $_comment ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Ensure compatibility with WooCommerce plugins
    304                                                 ?>
    305                                             </div>
    306                                         </div>
    307                                     </div>
    308                                 </div>
    309 
    310                             <?php elseif( isset( $_GET['unapproved'] ) && $_comment->comment_ID === $_GET['unapproved'] ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?>
    311 
    312                                 <div id="comment-<?php echo esc_attr( $_comment->comment_ID ); ?>" class="merchant-reviews-list-item">
    313                                     <div class="row">
    314                                         <div class="col-12">
    315                                             <div class="d-flex align-items-center">
    316 
    317                                                 <?php
    318                                                 $comment_rating_value = get_comment_meta( $_comment->comment_ID, 'rating', true ); ?>
    319 
    320                                                 <?php if( wc_review_ratings_enabled() ) : ?>
    321                                                     <div class="star-rating merchant-star-rating-style2" role="img" aria-label="Rated <?php echo esc_attr( $comment_rating_value ); ?>.00 out of 5">
    322                                                         <span style="width: <?php echo esc_attr( ( ( $comment_rating_value / 5 ) * 100 ) ); ?>%;">
    323                                                             <?php
    324                                                             /* translators: %s is average rating value */
    325                                                             $comment_rating_text = sprintf( __( 'Rated %s out of 5 based on customer ratings.', 'merchant' ), $comment_rating_value );
    326                                                             echo esc_html( $comment_rating_text ); ?>
    327                                                         </span>
    328                                                     </div>
    329                                                 <?php endif; ?>
    330 
    331                                                 <strong class="merchant-review-author">
    332                                                     <?php echo esc_html( get_comment_author( $_comment ) ); ?>
    333 
    334                                                     <?php
    335                                                     /**
    336                                                      * Verified owner
    337                                                     */
    338                                                     $verified = wc_review_is_from_verified_owner( $_comment->comment_ID );
    339                                                     if ( 'yes' === get_option( 'woocommerce_review_rating_verification_label' ) && $verified ) {
    340                                                         echo '<em class="woocommerce-review__verified verified">'. esc_attr__( ' — verified owner', 'merchant' ) . '</em> ';
    341                                                     } ?>
    342                                                 </strong>
    343                                             </div>
    344                                             <br>
    345                                             <em><?php echo esc_html__( 'Your review is awaiting approval.', 'merchant' ); ?></em>
    346                                         </div>
    347                                     </div>
    348                                 </div>
    349 
    350                             <?php endif;
    351                         endforeach; ?>
    352 
    353                     </div>
    354 
    355                 <?php else : ?>
    356                     <p class="woocommerce-noreviews"><?php esc_html_e( 'There are no reviews yet.', 'merchant' ); ?></p>
    357                 <?php endif; ?>
    358             </div>
    359 
    360         <?php endif; ?>
    361 
    362     </div>
    363     <?php if ( isset( $comments ) && count( $comments ) > 0 ) {
     233
     234    <div class="merchant-adv-reviews-body">
     235        <?php merchant_get_template_part( Merchant_Advanced_Reviews::MODULE_TEMPLATES_PATH, 'reviews-list', $args ); ?>
     236    </div>
     237
     238    <?php
     239    if ( count( $_comments ) > 0 ) :
    364240        echo '<div class="merchant-adv-reviews-footer">';
    365 
    366             if ( $cpages > 1 && get_option( 'page_comments' ) ) {
    367                 echo '<nav class="woocommerce-pagination merchant-pagination merchant-adv-reviews-pagination">';
    368 
     241            if ( $comment_pages > 1 && get_option( 'page_comments' ) ) {
     242                if ( $args['pagination_type'] === 'default' ) {
     243                    echo '<nav class="woocommerce-pagination merchant-pagination merchant-adv-reviews-pagination">';
    369244                    merchant_get_template_part( 'modules/advanced-reviews', 'pagination-links', array_merge(
    370245                        $args,
     
    375250                                'type'      => 'list',
    376251                            ),
    377                             'cpages'     => $cpages,
     252                            'cpages'     => $comment_pages,
    378253                            'product_id' => $product_id,
    379254                        )
    380255                    ) );
    381 
    382                 echo '</nav>';
    383                
     256                    echo '</nav>';
     257                }
     258
    384259                /**
    385260                 * Hook 'merchant_after_shop_reviews_adv_pagination'
     
    389264                do_action( 'merchant_after_shop_reviews_adv_pagination' );
    390265            }
    391 
    392266        echo '</div>';
    393     } ?>
     267    endif;
     268    ?>
    394269</section>
    395270
    396 <?php 
     271<?php
    397272/**
    398273 * Hook 'merchant_after_adv_reviews_section'
     
    400275 * @since 1.0
    401276 */
    402 do_action( 'merchant_after_adv_reviews_section' ); ?>
     277do_action( 'merchant_after_adv_reviews_section' );
  • merchant/trunk/templates/modules/free-gifts/widget-contents.php

    r3079548 r3083515  
    1313
    1414$settings = isset( $args['settings'] ) ? $args['settings'] : array();
     15
     16$cart_total = $args['cart_total'] ?? WC()->cart->get_subtotal();
    1517?>
    1618
    1719<?php foreach ( $args['offers'] as $offer ): ?>
    1820    <?php
    19     if ( ! isset( $offer['product'] ) ) {
    20         continue;
    21     }
    22     if ( isset( $offer['rules_to_apply'], $offer['category_slugs'] )
    23         && 'categories' === $offer['rules_to_apply']
    24         && ! merchant_is_already_in_cart( $offer['product']['id'] )
    25     ) :
     21    if ( ! isset( $offer['product'] ) ) {
     22        continue;
     23    }
     24
     25    $spending_text_0       = $offer['spending_text_0'] ?? '';
     26    $spending_text_1_to_99 = $offer['spending_text_1_to_99'] ?? '';
     27    $spending_text_100     = $offer['spending_text_100'] ?? '';
     28
     29    $goal_amount = $offer['amount'] ?? 0;
     30    $amount_more = $offer['amount_more'] ?? $goal_amount;
     31    $price_html  = wc_price( $amount_more );
     32
     33    $merchant_hash = $offer['merchant_hash'] ?? '';
     34
     35    // Offer for Categories
     36    if ( isset( $offer['rules_to_apply'], $offer['category_slugs'] ) && 'categories' === $offer['rules_to_apply'] ) :
    2637        $categories = array();
    2738        foreach ( $offer['category_slugs'] as $category_slug ) {
    2839            $category_data = get_term_by( 'slug', $category_slug, 'product_cat' );
    29             if ( $category_data ) {
    30                 $categories[] = $category_data->name;
    31             }
    32         }
    33         if( empty( $categories ) ) {
    34             continue;
    35         }
     40            if ( $category_data ) {
     41                $categories[] = $category_data->name;
     42            }
     43        }
     44
     45        if ( empty( $categories ) ) {
     46            continue;
     47        }
     48
     49        $cart_total_category = $offer['cart_total_category'] ?? 0;
     50
     51        if ( $cart_total_category >= $goal_amount ) {
     52            $spending_text = $spending_text_100;
     53        } elseif ( $cart_total_category > 0 ) {
     54            $spending_text = $spending_text_1_to_99;
     55        } else {
     56            $spending_text = $spending_text_0;
     57        }
    3658        ?>
    37         <div class="merchant-free-gifts-widget-offer">
    38             <div class="merchant-free-gifts-widget-offer-label">
    39                 <?php
    40                 echo wp_kses(
    41                     sprintf(
    42                     /* Translators: 1. Amount */
    43                         _n( 'Buy a product from the category %s to receive this free gift!', 'Buy a product from the categories %s to receive this free gift!',
    44                             count( $categories ), 'merchant' ),
    45                         implode( ', ', $categories )
    46                     ),
    47                     merchant_kses_allowed_tags( array( 'bdi' ) )
    48                 ); ?>
    49             </div>
    50             <div class="merchant-free-gifts-widget-offer-product">
    51                 <?php echo wp_kses_post( $offer['product']['image'] ); ?>
    52                 <div class="merchant-free-gifts-widget-offer-product-contents">
    53                     <p class="woocommerce-loop-product__title">
    54                         <a class="merchant-free-gifts-widget-offer-product-title" href="<?php echo esc_url( $offer['product']['permalink'] ); ?>" target="_blank">
    55                             <?php echo esc_html( $offer['product']['title'] ); ?>
    56                         </a>
    57                     </p>
    58                     <div class="merchant-free-gifts-widget-offer-product-price price">
    59                         <del>
    60                             <?php echo wp_kses( wc_price( $offer['product']['price'] ), merchant_kses_allowed_tags( array( 'bdi' ) ) ); ?>
    61                         </del>
    62                         <strong class="merchant-free-gifts-widget-offer-product-free">
    63                             <?php echo isset( $settings['free_text'] ) ? esc_html( Merchant_Translator::translate( $settings['free_text'] ) ) : esc_html__( 'Free', 'merchant' ) ?>
    64                         </strong>
    65                     </div>
    66                 </div>
    67             </div>
    68         </div>
    69             <?php
    70     elseif ( isset( $offer['rules_to_apply'], $offer['product_to_purchase'] )
    71         && 'product' === $offer['rules_to_apply']
    72         && ! merchant_is_already_in_cart( $offer['product_to_purchase'] )
    73     ) :
    74         $product = wc_get_product( $offer['product_to_purchase'] );
     59        <div class="merchant-free-gifts-widget-offer">
     60            <div class="merchant-free-gifts-widget-offer-label">
     61                <?php
     62                $category_text = sprintf(
     63                    /* Translators: 1. Term Name */
     64                    _n( '%s category', '%s categories', count( $categories ), 'merchant' ),
     65                    implode( ', ', $categories )
     66                );
     67
     68                echo wp_kses(
     69                    str_replace(
     70                        array(
     71                            '{amount}',
     72                            '{goalAmount}',
     73                            '{amountMore}',
     74                            '{categories}',
     75                        ),
     76                        array(
     77                            $price_html,
     78                            $price_html,
     79                            $price_html,
     80                            $category_text,
     81                        ),
     82                        sanitize_text_field( Merchant_Translator::translate( $spending_text ) )
     83                    ),
     84                    merchant_kses_allowed_tags( array( 'bdi' ) )
     85                );
     86                ?>
     87            </div>
     88            <div class="merchant-free-gifts-widget-offer-product">
     89                <?php echo wp_kses_post( $offer['product']['image'] ); ?>
     90                <div class="merchant-free-gifts-widget-offer-product-contents">
     91                    <p class="woocommerce-loop-product__title">
     92                        <a class="merchant-free-gifts-widget-offer-product-title" href="<?php echo esc_url( $offer['product']['permalink'] ); ?>" target="_blank">
     93                            <?php echo esc_html( $offer['product']['title'] ); ?>
     94                        </a>
     95                    </p>
     96                    <div class="merchant-free-gifts-widget-offer-product-attributes">
     97                        <?php
     98                        if ( ( $cart_total_category >= $goal_amount ) && empty( $offer['is_gift_claimed'] ) ) {
     99                            echo wp_kses(
     100                                Merchant_Pro_Free_Gifts::get_variations_select_html( $offer['product']['id'] ?? 0, $merchant_hash ),
     101                                merchant_kses_allowed_tags( array( 'forms' ) )
     102                            );
     103                        }
     104                        ?>
     105                    </div>
     106                    <div class="merchant-free-gifts-widget-offer-product-price price">
     107                        <del>
     108                            <?php echo wp_kses( wc_price( $offer['product']['price'] ), merchant_kses_allowed_tags( array( 'bdi' ) ) ); ?>
     109                        </del>
     110                        <strong class="merchant-free-gifts-widget-offer-product-free">
     111                            <?php echo isset( $settings['free_text'] ) ? esc_html( Merchant_Translator::translate( $settings['free_text'] ) ) : esc_html__( 'Free', 'merchant' ) ?>
     112                        </strong>
     113                    </div>
     114                </div>
     115            </div>
     116        </div>
     117
     118    <?php
     119    // Offer for Specific Product
     120    elseif ( isset( $offer['rules_to_apply'], $offer['product_to_purchase'] ) && 'product' === $offer['rules_to_apply'] ) :
     121        $product            = wc_get_product( $offer['product_to_purchase'] );
     122        $cart_total_product = $offer['cart_total_product'] ?? 0;
     123
     124        if ( $cart_total_product >= $goal_amount ) {
     125            $spending_text = $spending_text_100;
     126        } elseif ( $cart_total_product > 0 ) {
     127            $spending_text = $spending_text_1_to_99;
     128        } else {
     129            $spending_text = $spending_text_0;
     130        }
    75131        ?>
    76         <div class="merchant-free-gifts-widget-offer">
    77             <div class="merchant-free-gifts-widget-offer-label">
    78                 <?php echo wp_kses(
    79                 /* Translators: 1. Amount */
    80                     sprintf( __( 'Buy %s to receive this free gift!', 'merchant' ), $product->get_title() ),
     132        <div class="merchant-free-gifts-widget-offer">
     133            <div class="merchant-free-gifts-widget-offer-label">
     134                <?php
     135                echo wp_kses(
     136                    str_replace(
     137                        array(
     138                            '{amount}',
     139                            '{goalAmount}',
     140                            '{amountMore}',
     141                            '{productName}',
     142                        ),
     143                        array(
     144                            $price_html,
     145                            $price_html,
     146                            $price_html,
     147                            $product->get_title(),
     148                        ),
     149                        sanitize_text_field( Merchant_Translator::translate( $spending_text ) )
     150                    ),
    81151                    merchant_kses_allowed_tags( array( 'bdi' ) )
    82                 ); ?>
    83             </div>
    84             <div class="merchant-free-gifts-widget-offer-product">
    85                 <?php echo wp_kses_post( $offer['product']['image'] ); ?>
    86                 <div class="merchant-free-gifts-widget-offer-product-contents">
    87                     <p class="woocommerce-loop-product__title">
    88                         <a class="merchant-free-gifts-widget-offer-product-title" href="<?php echo esc_url( $offer['product']['permalink'] ); ?>" target="_blank">
    89                             <?php echo esc_html( $offer['product']['title'] ); ?>
    90                         </a>
    91                     </p>
    92                     <div class="merchant-free-gifts-widget-offer-product-price price">
    93                         <del>
    94                             <?php echo wp_kses( wc_price( $offer['product']['price'] ), merchant_kses_allowed_tags( array( 'bdi' ) ) ); ?>
    95                         </del>
    96                         <strong class="merchant-free-gifts-widget-offer-product-free">
    97                             <?php echo isset( $settings['free_text'] ) ? esc_html( Merchant_Translator::translate( $settings['free_text'] ) ) : esc_html__( 'Free', 'merchant' ) ?>
    98                         </strong>
    99                     </div>
    100                 </div>
    101             </div>
    102         </div>
    103     <?php elseif ( isset( $offer['amount'], $args['cart_total'] ) && $args['cart_total'] < $offer['amount'] ) : ?>
    104         <div class="merchant-free-gifts-widget-offer">
    105             <div class="merchant-free-gifts-widget-offer-label">
    106                 <?php
    107                 $amount = wc_price( $offer['amount'] - $args['cart_total'] );
    108                 echo isset( $settings['spending_text'] )
    109                     ? wp_kses( str_replace(
    110                         '{amount}',
    111                         $amount,
    112                         sanitize_text_field( Merchant_Translator::translate( $settings['spending_text'] ) )
    113                     ), merchant_kses_allowed_tags( array( 'bdi' ) ) )
    114                     : wp_kses(
    115                         /* Translators: 1. Amount */
    116                         sprintf( __( 'Spend %s more to receive this free gift!', 'merchant' ), $amount ),
    117                         merchant_kses_allowed_tags( array( 'bdi' ) )
    118                     ); ?>
    119             </div>
    120             <div class="merchant-free-gifts-widget-offer-product">
    121                 <?php echo wp_kses_post( $offer['product']['image'] ); ?>
    122                 <div class="merchant-free-gifts-widget-offer-product-contents">
    123                     <p class="woocommerce-loop-product__title">
    124                         <a class="merchant-free-gifts-widget-offer-product-title" href="<?php echo esc_url( $offer['product']['permalink'] ); ?>" target="_blank">
    125                             <?php echo esc_html( $offer['product']['title'] ); ?>
    126                         </a>
    127                     </p>
    128                     <div class="merchant-free-gifts-widget-offer-product-price price">
    129                         <del>
    130                             <?php echo wp_kses( wc_price( $offer['product']['price'] ), merchant_kses_allowed_tags( array( 'bdi' ) ) ); ?>
    131                         </del>
    132                         <strong class="merchant-free-gifts-widget-offer-product-free">
    133                             <?php echo isset( $settings['free_text'] ) ? esc_html( Merchant_Translator::translate( $settings['free_text'] ) ) : esc_html__( 'Free', 'merchant' ) ?>
    134                         </strong>
    135                     </div>
    136                 </div>
    137             </div>
    138         </div>
     152                );
     153                ?>
     154            </div>
     155            <div class="merchant-free-gifts-widget-offer-product">
     156                <?php echo wp_kses_post( $offer['product']['image'] ); ?>
     157                <div class="merchant-free-gifts-widget-offer-product-contents">
     158                    <p class="woocommerce-loop-product__title">
     159                        <a class="merchant-free-gifts-widget-offer-product-title" href="<?php echo esc_url( $offer['product']['permalink'] ); ?>" target="_blank">
     160                            <?php echo esc_html( $offer['product']['title'] ); ?>
     161                        </a>
     162                    </p>
     163                    <div class="merchant-free-gifts-widget-offer-product-attributes">
     164                        <?php
     165                        if ( ( $cart_total_product >= $goal_amount ) && empty( $offer['is_gift_claimed'] ) ) {
     166                            echo wp_kses(
     167                                Merchant_Pro_Free_Gifts::get_variations_select_html( $offer['product']['id'] ?? 0, $merchant_hash ),
     168                                merchant_kses_allowed_tags( array( 'forms' ) )
     169                            );
     170                        }
     171                        ?>
     172                    </div>
     173                    <div class="merchant-free-gifts-widget-offer-product-price price">
     174                        <del>
     175                            <?php echo wp_kses( wc_price( $offer['product']['price'] ), merchant_kses_allowed_tags( array( 'bdi' ) ) ); ?>
     176                        </del>
     177                        <strong class="merchant-free-gifts-widget-offer-product-free">
     178                            <?php echo isset( $settings['free_text'] ) ? esc_html( Merchant_Translator::translate( $settings['free_text'] ) ) : esc_html__( 'Free', 'merchant' ) ?>
     179                        </strong>
     180                    </div>
     181                </div>
     182            </div>
     183        </div>
     184
     185    <?php
     186    // Offer for Any product
     187    elseif ( isset( $offer['amount'] ) ) :
     188        if ( $cart_total >= $goal_amount ) {
     189            $spending_text = $spending_text_100;
     190        } elseif ( $cart_total > 0 ) {
     191            $spending_text = $spending_text_1_to_99;
     192        } else {
     193            $spending_text = $spending_text_0;
     194        }
     195    ?>
     196        <div class="merchant-free-gifts-widget-offer">
     197            <div class="merchant-free-gifts-widget-offer-label">
     198                <?php
     199                echo wp_kses(
     200                    str_replace(
     201                        array(
     202                            '{amount}',
     203                            '{goalAmount}',
     204                            '{amountMore}',
     205                        ),
     206                        array(
     207                            $price_html,
     208                            $price_html,
     209                            $price_html,
     210                        ),
     211                        sanitize_text_field( Merchant_Translator::translate( $spending_text ) )
     212                    ),
     213                    merchant_kses_allowed_tags( array( 'bdi' ) )
     214                );
     215                ?>
     216            </div>
     217
     218            <div class="merchant-free-gifts-widget-offer-product">
     219                <?php echo wp_kses_post( $offer['product']['image'] ); ?>
     220                <div class="merchant-free-gifts-widget-offer-product-contents">
     221                    <p class="woocommerce-loop-product__title">
     222                        <a class="merchant-free-gifts-widget-offer-product-title" href="<?php echo esc_url( $offer['product']['permalink'] ); ?>" target="_blank">
     223                            <?php echo esc_html( $offer['product']['title'] ); ?>
     224                        </a>
     225                    </p>
     226                    <div class="merchant-free-gifts-widget-offer-product-attributes">
     227                        <?php
     228                        if ( ( $cart_total >= $goal_amount ) && empty( $offer['is_gift_claimed'] ) ) {
     229                            echo wp_kses(
     230                                Merchant_Pro_Free_Gifts::get_variations_select_html( $offer['product']['id'] ?? 0, $merchant_hash ),
     231                                merchant_kses_allowed_tags( array( 'forms' ) )
     232                            );
     233                        }
     234                        ?>
     235                    </div>
     236                    <div class="merchant-free-gifts-widget-offer-product-price price">
     237                        <del>
     238                            <?php echo wp_kses( wc_price( $offer['product']['price'] ), merchant_kses_allowed_tags( array( 'bdi' ) ) ); ?>
     239                        </del>
     240                        <strong class="merchant-free-gifts-widget-offer-product-free">
     241                            <?php echo isset( $settings['free_text'] ) ? esc_html( Merchant_Translator::translate( $settings['free_text'] ) ) : esc_html__( 'Free', 'merchant' ) ?>
     242                        </strong>
     243                    </div>
     244                </div>
     245            </div>
     246        </div>
     247
    139248    <?php else:
    140249        if ( isset( $offer['coupon'] ) && ! empty( $offer['coupon'] ) ) {
    141250            $coupon = $offer['coupon'];
    142251        } else {
    143             continue;
    144         }
     252            continue;
     253        }
    145254        $applied_coupons = WC()->cart->get_applied_coupons();
    146255        if ( in_array( $coupon, $applied_coupons, true ) ) {
     
    148257        }
    149258        ?>
    150         <div class="merchant-free-gifts-widget-offer">
    151             <div class="merchant-free-gifts-widget-offer-label">
     259        <div class="merchant-free-gifts-widget-offer">
     260            <div class="merchant-free-gifts-widget-offer-label">
    152261                <?php
    153262                echo wp_kses(
     
    155264                        sprintf( __( 'Use %s coupon to get this product', 'merchant' ), $coupon ),
    156265                        merchant_kses_allowed_tags( array( 'bdi' ) )
    157                     ); ?>
    158             </div>
    159             <div class="merchant-free-gifts-widget-offer-product">
    160                 <?php echo wp_kses_post( $offer['product']['image'] ); ?>
    161                 <div class="merchant-free-gifts-widget-offer-product-contents">
    162                     <p class="woocommerce-loop-product__title">
    163                         <a class="merchant-free-gifts-widget-offer-product-title" href="<?php echo esc_url( $offer['product']['permalink'] ); ?>" target="_blank">
    164                             <?php echo esc_html( $offer['product']['title'] ); ?>
    165                         </a>
    166                     </p>
    167                     <div class="merchant-free-gifts-widget-offer-product-price price">
    168                         <del>
    169                             <?php echo wp_kses( wc_price( $offer['product']['price'] ), merchant_kses_allowed_tags( array( 'bdi' ) ) ); ?>
    170                         </del>
    171                         <strong class="merchant-free-gifts-widget-offer-product-free">
    172                             <?php echo isset( $settings['free_text'] ) ? esc_html( Merchant_Translator::translate( $settings['free_text'] ) ) : esc_html__( 'Free', 'merchant' ) ?>
    173                         </strong>
    174                     </div>
    175                 </div>
    176             </div>
    177         </div>
     266                    );
     267                ?>
     268            </div>
     269
     270            <div class="merchant-free-gifts-widget-offer-product">
     271                <?php echo wp_kses_post( $offer['product']['image'] ); ?>
     272                <div class="merchant-free-gifts-widget-offer-product-contents">
     273                    <p class="woocommerce-loop-product__title">
     274                        <a class="merchant-free-gifts-widget-offer-product-title" href="<?php echo esc_url( $offer['product']['permalink'] ); ?>" target="_blank">
     275                            <?php echo esc_html( $offer['product']['title'] ); ?>
     276                        </a>
     277                    </p>
     278                    <div class="merchant-free-gifts-widget-offer-product-attributes">
     279                        <?php
     280                        echo wp_kses(
     281                            Merchant_Pro_Free_Gifts::get_variations_select_html( $offer['product']['id'] ?? 0, $merchant_hash ),
     282                            merchant_kses_allowed_tags( array( 'forms' ) )
     283                        );
     284                        ?>
     285                    </div>
     286                    <div class="merchant-free-gifts-widget-offer-product-price price">
     287                        <del>
     288                            <?php echo wp_kses( wc_price( $offer['product']['price'] ), merchant_kses_allowed_tags( array( 'bdi' ) ) ); ?>
     289                        </del>
     290                        <strong class="merchant-free-gifts-widget-offer-product-free">
     291                            <?php echo isset( $settings['free_text'] ) ? esc_html( Merchant_Translator::translate( $settings['free_text'] ) ) : esc_html__( 'Free', 'merchant' ) ?>
     292                        </strong>
     293                    </div>
     294                </div>
     295            </div>
     296        </div>
    178297    <?php endif; ?>
    179 <?php endforeach; ?>
     298<?php endforeach;
  • merchant/trunk/templates/modules/free-gifts/widget.php

    r3079548 r3083515  
    1313
    1414$settings = isset( $args['settings'] ) ? $args['settings'] : array();
     15
     16$fg_classes  = 'merchant-free-gifts-widget';
     17$fg_classes .= ' merchant-free-gifts-widget--' . ( $settings['position'] ?? 'top_right' );
    1518?>
    16 
    17 <div id="merchant-free-gifts-widget" class="merchant-free-gifts-widget <?php if (isset($args['hide']) && $args['hide'] === true) echo 'hide' ?>">
    18     <div class="merchant-free-gifts-widget-button" onclick="document.getElementById('merchant-free-gifts-widget').classList.toggle('active');">
    19         <span class="merchant-free-gifts-widget-count"><?php echo absint( $args['count'] ) ?></span>
    20         <div class="merchant-free-gifts-widget-icon">
    21             <svg fill="currentColor" height="800px" width="800px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 464.628 464.628" xmlns:xlink="http://www.w3.org/1999/xlink">
    22                 <path d="m394.33,105.596h-76.136c22.944-22.372 37.216-53.596 37.216-88.096 0-9.665-7.835-17.5-17.5-17.5-44.786,0-84.057,24.045-105.596,59.9-21.539-35.855-60.81-59.9-105.595-59.9-9.665,0-17.5,7.835-17.5,17.5 0,34.5 14.273,65.724 37.216,88.096h-76.137c-9.665,0-17.5,7.835-17.5,17.5v324.033c0,9.665 7.835,17.5 17.5,17.5h324.032c9.665,0 17.5-7.835 17.5-17.5v-324.033c0-9.665-7.835-17.5-17.5-17.5zm-17.5,162.016h-127.016v-127.016h127.016v127.016zm-58.646-230.385c-7.525,32.765-33.378,58.618-66.144,66.143 7.526-32.766 33.379-58.619 66.144-66.143zm-105.596,66.142c-32.765-7.525-58.618-33.378-66.143-66.143 32.765,7.525 58.618,33.378 66.143,66.143zm2.226,37.227v127.016h-127.016v-127.016h127.016zm-127.016,162.016h127.016v127.017h-127.016v-127.017zm162.016,127.016v-127.016h127.016v127.017h-127.016z"/>
    23             </svg>
     19<div id="merchant-free-gifts-widget" class="<?php echo esc_attr( $fg_classes ); ?>">
     20    <div class="merchant-free-gifts-widget-inner">
     21        <div class="merchant-free-gifts-widget-button" onclick="document.getElementById('merchant-free-gifts-widget').classList.toggle('active');">
     22            <span class="merchant-free-gifts-widget-count"><?php echo absint( $args['count'] ?? 0 ); ?></span>
     23            <div class="merchant-free-gifts-widget-icon">
     24                <?php echo wp_kses( Merchant_SVG_Icons::get_svg_icon( $settings['icon'] ?? 'gifts-icon-1' ), merchant_kses_allowed_tags( array(), false ) ); ?>
     25            </div>
    2426        </div>
    25     </div>
    26     <div class="merchant-free-gifts-widget-offers">
    27         <?php merchant_get_template_part( Merchant_Free_Gifts::MODULE_TEMPLATES_PATH, 'widget-contents', $args ); ?>
     27        <div class="merchant-free-gifts-widget-offers">
     28            <?php merchant_get_template_part( Merchant_Free_Gifts::MODULE_TEMPLATES_PATH, 'widget-contents', $args ); ?>
     29        </div>
    2830    </div>
    2931</div>
Note: See TracChangeset for help on using the changeset viewer.