Mega Addons For WPBakery Page Builder (formerly Visual Composer) - Version 4.2.7

Version Description

02/06/2021 = * Bug Fixed: PHP Warning Undefined array key 1 & PHP Warning: Undefined array key 2 error show in different elements. * Fixed: Error show using Google Fonts option. * Accordion: Added the option of custom "Class" & "ID". * Accordion: In the Backend Editor you can see the Title of each accordion tab. * Fixed: Undefined line show in "Timeline" element. * Social Icon: Option to link url in new tab, fixed effect "Icon & Text". * Fixed: In InfoList "show" "hide" class conflict with other templates so removed It.

Download this release

Release Info

Developer nasir179125
Plugin Icon 128x128 Mega Addons For WPBakery Page Builder (formerly Visual Composer)
Version 4.2.7
Comparing to
See all releases

Code changes from version 4.2.6 to 4.2.7

Files changed (60) hide show
  1. css/flipbox.css +1 -1
  2. css/infobanner.css +2 -2
  3. css/infolist.css +2 -2
  4. css/jquery.fancybox.min.css +2 -1
  5. css/slick-carousal.css +22 -15
  6. css/style.css +7 -0
  7. index.php +1 -1
  8. js/jquery.fancybox.min.js +2 -13
  9. js/mixitup.min.js +6 -10
  10. js/mixitup.min.old.v3.js +18 -0
  11. main.php +6 -2
  12. readme.txt +11 -2
  13. render/accordion_father.php +27 -18
  14. render/accordion_son.php +15 -3
  15. render/advanced_btn.php +154 -160
  16. render/advanceprice.php +12 -10
  17. render/countdown.php +21 -21
  18. render/creativelink.php +42 -42
  19. render/filterablegallery_wrap.php +26 -26
  20. render/filtergallery.php +9 -7
  21. render/flipbox.php +49 -47
  22. render/googletrends.php +3 -1
  23. render/headings.php +135 -92
  24. render/highlight_box.php +15 -15
  25. render/hover.php +8 -6
  26. render/hoverbutton.php +17 -17
  27. render/image_swap.php +18 -18
  28. render/info_circle.php +59 -59
  29. render/info_list_father.php +1 -1
  30. render/info_list_son.php +18 -16
  31. render/infobanners.php +70 -48
  32. render/infobox.php +15 -13
  33. render/interactivebanner.php +16 -16
  34. render/modalPopup.php +16 -14
  35. render/new.php +0 -319
  36. render/new2.php +0 -149
  37. render/photobook.php +0 -229
  38. render/price-table/price1.php +14 -14
  39. render/price-table/price2.php +8 -8
  40. render/price-table/price4.php +6 -6
  41. render/price-table/price5.php +8 -8
  42. render/price.php +4 -2
  43. render/slider_father.php +0 -5
  44. render/slider_son.php +0 -6
  45. render/social_father.php +1 -1
  46. render/social_son.php +25 -24
  47. render/statcounter.php +37 -37
  48. render/team-profile/style1.php +34 -34
  49. render/team-profile/style2.php +36 -36
  50. render/team-profile/style3.php +36 -36
  51. render/team-profile/style4.php +22 -22
  52. render/team-profile/style8.php +19 -19
  53. render/testimonial.php +36 -34
  54. render/texttyper.php +18 -16
  55. render/timeline_father.php +5 -3
  56. render/timeline_son.php +13 -13
  57. render/tm_carousel_father.php +16 -14
  58. render/tm_carousel_son.php +7 -7
  59. render/tooltip_icons.php +3 -3
  60. render/woo_grid.php +9 -9
css/flipbox.css CHANGED
@@ -178,7 +178,7 @@
178
  }
179
  .default-state {
180
  background-color: #03a9f4;
181
- transform: perspective(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
182
  /*padding: 0 10px;*/
183
  }
184
  .active-state {
178
  }
179
  .default-state {
180
  background-color: #03a9f4;
181
+ /*transform: perspective(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);*/
182
  /*padding: 0 10px;*/
183
  }
184
  .active-state {
css/infobanner.css CHANGED
@@ -15,7 +15,7 @@
15
  margin: 0 auto;
16
  }
17
  .mega_info_bar a {
18
- text-shadow: none;
19
  }
20
 
21
  .mega_info_bar .mega_content {
@@ -23,7 +23,7 @@
23
  overflow: hidden;
24
  }
25
  .mega_info_bar .mega_content .mega_hvr_btn:hover {
26
- text-decoration: none;
27
  }
28
  .mega_info_bar .mega_content h2,
29
  .mega_info_bar .mega_content h1,
15
  margin: 0 auto;
16
  }
17
  .mega_info_bar a {
18
+ text-shadow: none;
19
  }
20
 
21
  .mega_info_bar .mega_content {
23
  overflow: hidden;
24
  }
25
  .mega_info_bar .mega_content .mega_hvr_btn:hover {
26
+ text-decoration: none;
27
  }
28
  .mega_info_bar .mega_content h2,
29
  .mega_info_bar .mega_content h1,
css/infolist.css CHANGED
@@ -91,10 +91,10 @@
91
  float: left !important;
92
  }
93
  .hide {
94
- display: none !important;
95
  }
96
  .show {
97
- display: block !important;
98
  }
99
  .invisible {
100
  visibility: hidden;
91
  float: left !important;
92
  }
93
  .hide {
94
+ /*display: none !important;*/
95
  }
96
  .show {
97
+ /*display: block !important;*/
98
  }
99
  .invisible {
100
  visibility: hidden;
css/jquery.fancybox.min.css CHANGED
@@ -1 +1,2 @@
1
- body.compensate-for-scrollbar{overflow:hidden}.fancybox-active{height:auto}.fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}.fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:none;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}.fancybox-container *{box-sizing:border-box}.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}.fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}.fancybox-bg{background:#50485b;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}.fancybox-is-open .fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}.fancybox-caption,.fancybox-infobar,.fancybox-navigation .fancybox-button,.fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}.fancybox-show-caption .fancybox-caption,.fancybox-show-infobar .fancybox-infobar,.fancybox-show-nav .fancybox-navigation .fancybox-button,.fancybox-show-toolbar .fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}.fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fancybox-toolbar{right:0;top:0}.fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}.fancybox-is-open .fancybox-stage{overflow:hidden}.fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:none;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}.fancybox-slide:before{content:"";display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}.fancybox-is-sliding .fancybox-slide,.fancybox-slide--current,.fancybox-slide--next,.fancybox-slide--previous{display:block}.fancybox-slide--image{overflow:hidden;padding:44px 0}.fancybox-slide--image:before{display:none}.fancybox-slide--html{padding:6px}.fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}.fancybox-slide--image .fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:transparent;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}.fancybox-can-zoomOut .fancybox-content{cursor:zoom-out}.fancybox-can-zoomIn .fancybox-content{cursor:zoom-in}.fancybox-can-pan .fancybox-content,.fancybox-can-swipe .fancybox-content{cursor:grab}.fancybox-is-grabbing .fancybox-content{cursor:grabbing}.fancybox-container [data-selectable=true]{cursor:text}.fancybox-image,.fancybox-spaceball{background:transparent;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.fancybox-spaceball{z-index:1}.fancybox-slide--iframe .fancybox-content,.fancybox-slide--map .fancybox-content,.fancybox-slide--pdf .fancybox-content,.fancybox-slide--video .fancybox-content{height:100%;overflow:visible;padding:0;width:100%}.fancybox-slide--video .fancybox-content{background:#000}.fancybox-slide--map .fancybox-content{background:#e5e3df}.fancybox-slide--iframe .fancybox-content{background:#fff}.fancybox-iframe,.fancybox-video{background:transparent;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}.fancybox-iframe{left:0;position:absolute;top:0}.fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}.fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}.fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}.fancybox-button,.fancybox-button:link,.fancybox-button:visited{color:#ccc}.fancybox-button:hover{color:#fff}.fancybox-button:focus{outline:none}.fancybox-button.fancybox-focus{outline:1px dotted}.fancybox-button[disabled],.fancybox-button[disabled]:hover{color:#888;cursor:default;outline:none}.fancybox-button div{height:100%}.fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}.fancybox-button svg path{fill:currentColor;stroke-width:0}.fancybox-button--fsenter svg:nth-child(2),.fancybox-button--fsexit svg:first-child,.fancybox-button--pause svg:first-child,.fancybox-button--play svg:nth-child(2){display:none}.fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;transform:scaleX(0);transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}.fancybox-close-small{background:transparent;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}.fancybox-close-small:hover{color:#fff;opacity:1}.fancybox-slide--html .fancybox-close-small{color:currentColor;padding:10px;right:0;top:0}.fancybox-slide--image.fancybox-is-scaling .fancybox-content{overflow:hidden}.fancybox-is-scaling .fancybox-close-small,.fancybox-is-zoomable.fancybox-can-pan .fancybox-close-small{display:none}.fancybox-navigation .fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}.fancybox-navigation .fancybox-button div{padding:7px}.fancybox-navigation .fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}.fancybox-navigation .fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}.fancybox-caption{background:linear-gradient(0deg,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,transparent);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){.fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}.fancybox-caption--separate{margin-top:-50px}.fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}.fancybox-caption a,.fancybox-caption a:link,.fancybox-caption a:visited{color:#ccc;text-decoration:none}.fancybox-caption a:hover{color:#fff;text-decoration:underline}.fancybox-loading{animation:a 1s linear infinite;background:transparent;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes a{to{transform:rotate(1turn)}}.fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}.fancybox-fx-slide.fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}.fancybox-fx-slide.fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}.fancybox-fx-slide.fancybox-slide--current{opacity:1;transform:translateZ(0)}.fancybox-fx-fade.fancybox-slide--next,.fancybox-fx-fade.fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}.fancybox-fx-fade.fancybox-slide--current{opacity:1}.fancybox-fx-zoom-in-out.fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}.fancybox-fx-zoom-in-out.fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}.fancybox-fx-zoom-in-out.fancybox-slide--current{opacity:1;transform:scaleX(1)}.fancybox-fx-rotate.fancybox-slide--previous{opacity:0;transform:rotate(-1turn)}.fancybox-fx-rotate.fancybox-slide--next{opacity:0;transform:rotate(1turn)}.fancybox-fx-rotate.fancybox-slide--current{opacity:1;transform:rotate(0deg)}.fancybox-fx-circular.fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}.fancybox-fx-circular.fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}.fancybox-fx-circular.fancybox-slide--current{opacity:1;transform:scaleX(1) translateZ(0)}.fancybox-fx-tube.fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}.fancybox-fx-tube.fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}.fancybox-fx-tube.fancybox-slide--current{transform:translateZ(0) scale(1)}@media (max-height:576px){.fancybox-slide{padding-left:6px;padding-right:6px}.fancybox-slide--image{padding:6px 0}.fancybox-close-small{right:-6px}.fancybox-slide--image .fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}.fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){.fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}.fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}.fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px}.fancybox-share p{margin:0;padding:0}.fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.fancybox-share__button:link,.fancybox-share__button:visited{color:#fff}.fancybox-share__button:hover{text-decoration:none}.fancybox-share__button--fb{background:#3b5998}.fancybox-share__button--fb:hover{background:#344e86}.fancybox-share__button--pt{background:#bd081d}.fancybox-share__button--pt:hover{background:#aa0719}.fancybox-share__button--tw{background:#1da1f2}.fancybox-share__button--tw:hover{background:#0d95e8}.fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px}.fancybox-share__button svg path{fill:#fff}.fancybox-share__input{background:transparent;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0;outline:none;padding:10px 15px;width:100%}.fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px;position:absolute;right:0;-webkit-tap-highlight-color:rgba(0,0,0,0);top:0;width:212px;z-index:99995}.fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}.fancybox-show-thumbs .fancybox-thumbs{display:block}.fancybox-show-thumbs .fancybox-inner{right:212px}.fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}.fancybox-thumbs-x .fancybox-thumbs__list{overflow:hidden}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar{width:7px}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}.fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:50%;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:none;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}.fancybox-thumbs__list a:before{border:6px solid #ff5268;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}.fancybox-thumbs__list a:focus:before{opacity:.5}.fancybox-thumbs__list a.fancybox-thumbs-active:before{opacity:1}@media (max-width:576px){.fancybox-thumbs{width:110px}.fancybox-show-thumbs .fancybox-inner{right:110px}.fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
 
1
+ /*.carousel{position:relative;box-sizing:border-box}.carousel *,.carousel *:before,.carousel *:after{box-sizing:inherit}*/
2
+ .carousel.is-draggable{cursor:move;cursor:grab}.carousel.is-dragging{cursor:move;cursor:grabbing}.carousel__viewport{position:relative;overflow:hidden;max-width:100%;max-height:100%}.carousel__track{display:flex}.carousel__slide{flex:0 0 auto;width:var(--carousel-slide-width, 60%);max-width:100%;padding:1rem;position:relative;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.has-dots{margin-bottom:calc(0.5rem + 22px)}.carousel__dots{margin:0 auto;padding:0;position:absolute;top:calc(100% + 0.5rem);left:0;right:0;display:flex;justify-content:center;list-style:none;user-select:none}.carousel__dots .carousel__dot{margin:0;padding:0;display:block;position:relative;width:22px;height:22px;cursor:pointer}.carousel__dots .carousel__dot:after{content:"";width:8px;height:8px;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background-color:currentColor;opacity:.25;transition:opacity .15s ease-in-out}.carousel__dots .carousel__dot.is-selected:after{opacity:1}.carousel__button{width:var(--carousel-button-width, 48px);height:var(--carousel-button-height, 48px);padding:0;border:0;display:flex;justify-content:center;align-items:center;pointer-events:all;cursor:pointer;color:var(--carousel-button-color, currentColor);background:var(--carousel-button-bg, transparent);border-radius:var(--carousel-button-border-radius, 50%);box-shadow:var(--carousel-button-shadow, none);transition:opacity .15s ease}.carousel__button.is-prev,.carousel__button.is-next{position:absolute;top:50%;transform:translateY(-50%)}.carousel__button.is-prev{left:10px}.carousel__button.is-next{right:10px}.carousel__button[disabled]{cursor:default;opacity:.3}.carousel__button svg{width:var(--carousel-button-svg-width, 50%);height:var(--carousel-button-svg-height, 50%);fill:none;stroke:currentColor;stroke-width:var(--carousel-button-svg-stroke-width, 1.5);stroke-linejoin:bevel;stroke-linecap:round;filter:var(--carousel-button-svg-filter, none);pointer-events:none}html.with-fancybox{scroll-behavior:auto}body.compensate-for-scrollbar{overflow:hidden !important;touch-action:none}.fancybox__container{position:fixed;top:0;left:0;bottom:0;right:0;direction:ltr;margin:0;padding:env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);box-sizing:border-box;display:flex;flex-direction:column;color:var(--fancybox-color, #fff);-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden;z-index:1050;outline:none;transform-origin:top left;--carousel-button-width: 48px;--carousel-button-height: 48px;--carousel-button-svg-width: 24px;--carousel-button-svg-height: 24px;--carousel-button-svg-stroke-width: 2.5;--carousel-button-svg-filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.4))}.fancybox__container *,.fancybox__container *::before,.fancybox__container *::after{box-sizing:inherit}.fancybox__container :focus{outline:none}body:not(.is-using-mouse) .fancybox__container :focus{box-shadow:0 0 0 1px #fff,0 0 0 2px var(--fancybox-accent-color, rgba(1, 210, 232, 0.94))}@media all and (min-width: 1024px){.fancybox__container{--carousel-button-width:48px;--carousel-button-height:48px;--carousel-button-svg-width:27px;--carousel-button-svg-height:27px}}.fancybox__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:var(--fancybox-bg, rgba(24, 24, 27, 0.92))}.fancybox__carousel{position:relative;flex:1 1 auto;min-height:0;height:100%;z-index:10}.fancybox__carousel.has-dots{margin-bottom:calc(0.5rem + 22px)}.fancybox__viewport{position:relative;width:100%;height:100%;overflow:visible;cursor:default}.fancybox__track{display:flex;height:100%}.fancybox__slide{flex:0 0 auto;width:100%;max-width:100%;margin:0;padding:48px 8px 8px 8px;position:relative;overscroll-behavior:contain;display:flex;flex-direction:column;outline:0;overflow:auto;--carousel-button-width: 36px;--carousel-button-height: 36px;--carousel-button-svg-width: 22px;--carousel-button-svg-height: 22px}.fancybox__slide::before,.fancybox__slide::after{content:"";flex:0 0 0;margin:auto}@media all and (min-width: 1024px){.fancybox__slide{padding:64px 100px}}.fancybox__content{margin:0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);padding:36px;color:var(--fancybox-content-color, #374151);background:var(--fancybox-content-bg, #fff);position:relative;align-self:center;display:flex;flex-direction:column;z-index:20}.fancybox__content :focus:not(.carousel__button.is-close){outline:thin dotted;box-shadow:none}.fancybox__caption{align-self:center;max-width:100%;margin:0;padding:1rem 0 0 0;line-height:1.375;color:var(--fancybox-color, currentColor);visibility:visible;cursor:auto;flex-shrink:0;overflow-wrap:anywhere}.is-loading .fancybox__caption{visibility:hidden}.fancybox__container>.carousel__dots{top:100%;color:var(--fancybox-color, #fff)}.fancybox__nav .carousel__button{z-index:40}.fancybox__nav .carousel__button.is-next{right:8px}@media all and (min-width: 1024px){.fancybox__nav .carousel__button.is-next{right:40px}}.fancybox__nav .carousel__button.is-prev{left:8px}@media all and (min-width: 1024px){.fancybox__nav .carousel__button.is-prev{left:40px}}.carousel__button.is-close{position:absolute;top:8px;right:8px;top:calc(env(safe-area-inset-top, 0px) + 8px);right:calc(env(safe-area-inset-right, 0px) + 8px);z-index:40}@media all and (min-width: 1024px){.carousel__button.is-close{right:40px}}.fancybox__content>.carousel__button.is-close{position:absolute;top:-40px;right:0;color:var(--fancybox-color, #fff)}.fancybox__no-click,.fancybox__no-click button{pointer-events:none}.fancybox__spinner{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:50px;height:50px;color:var(--fancybox-color, currentColor)}.fancybox__slide .fancybox__spinner{cursor:pointer;z-index:1053}.fancybox__spinner svg{animation:fancybox-rotate 2s linear infinite;transform-origin:center center;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:100%;height:100%}.fancybox__spinner svg circle{fill:none;stroke-width:2.75;stroke-miterlimit:10;stroke-dasharray:1,200;stroke-dashoffset:0;animation:fancybox-dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:currentColor}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}@keyframes fancybox-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.fancybox__backdrop,.fancybox__caption,.fancybox__nav,.carousel__dots,.carousel__button.is-close{opacity:var(--fancybox-opacity, 1)}.fancybox__container.is-animated[aria-hidden=false] .fancybox__backdrop,.fancybox__container.is-animated[aria-hidden=false] .fancybox__caption,.fancybox__container.is-animated[aria-hidden=false] .fancybox__nav,.fancybox__container.is-animated[aria-hidden=false] .carousel__dots,.fancybox__container.is-animated[aria-hidden=false] .carousel__button.is-close{animation:.15s ease backwards fancybox-fadeIn}.fancybox__container.is-animated.is-closing .fancybox__backdrop,.fancybox__container.is-animated.is-closing .fancybox__caption,.fancybox__container.is-animated.is-closing .fancybox__nav,.fancybox__container.is-animated.is-closing .carousel__dots,.fancybox__container.is-animated.is-closing .carousel__button.is-close{animation:.15s ease both fancybox-fadeOut}.fancybox-fadeIn{animation:.15s ease both fancybox-fadeIn}.fancybox-fadeOut{animation:.1s ease both fancybox-fadeOut}.fancybox-zoomInUp{animation:.2s ease both fancybox-zoomInUp}.fancybox-zoomOutDown{animation:.15s ease both fancybox-zoomOutDown}.fancybox-throwOutUp{animation:.15s ease both fancybox-throwOutUp}.fancybox-throwOutDown{animation:.15s ease both fancybox-throwOutDown}@keyframes fancybox-fadeIn{from{opacity:0}to{opacity:1}}@keyframes fancybox-fadeOut{to{opacity:0}}@keyframes fancybox-zoomInUp{from{transform:scale(0.97) translate3d(0, 16px, 0);opacity:0}to{transform:scale(1) translate3d(0, 0, 0);opacity:1}}@keyframes fancybox-zoomOutDown{to{transform:scale(0.97) translate3d(0, 16px, 0);opacity:0}}@keyframes fancybox-throwOutUp{to{transform:translate3d(0, -30%, 0);opacity:0}}@keyframes fancybox-throwOutDown{to{transform:translate3d(0, 30%, 0);opacity:0}}.fancybox__carousel .carousel__slide{scrollbar-width:thin;scrollbar-color:#ccc rgba(255,255,255,.1)}.fancybox__carousel .carousel__slide::-webkit-scrollbar{width:8px;height:8px}.fancybox__carousel .carousel__slide::-webkit-scrollbar-track{background-color:rgba(255,255,255,.1)}.fancybox__carousel .carousel__slide::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:2px;box-shadow:inset 0 0 4px rgba(0,0,0,.2)}.fancybox__carousel.is-draggable .fancybox__slide,.fancybox__carousel.is-draggable .fancybox__slide .fancybox__content{cursor:move;cursor:grab}.fancybox__carousel.is-dragging .fancybox__slide,.fancybox__carousel.is-dragging .fancybox__slide .fancybox__content{cursor:move;cursor:grabbing}.fancybox__carousel .fancybox__slide .fancybox__content{cursor:auto}.fancybox__carousel .fancybox__slide.can-zoom_in .fancybox__content{cursor:zoom-in}.fancybox__carousel .fancybox__slide.can-zoom_out .fancybox__content{cursor:zoom-out}.fancybox__carousel .fancybox__slide.is-draggable .fancybox__content{cursor:move;cursor:grab}.fancybox__carousel .fancybox__slide.is-dragging .fancybox__content{cursor:move;cursor:grabbing}.fancybox__image{transform-origin:0 0;user-select:none;transition:none}.has-image .fancybox__content{padding:0;background:rgba(0,0,0,0);min-height:1px}.is-closing .has-image .fancybox__content{overflow:visible}.has-image[data-image-fit=contain]{overflow:visible;touch-action:none}.has-image[data-image-fit=contain] .fancybox__content{flex-direction:row;flex-wrap:wrap}.has-image[data-image-fit=contain] .fancybox__image{max-width:100%;max-height:100%;object-fit:contain}.has-image[data-image-fit=contain-w]{overflow-x:hidden;overflow-y:auto}.has-image[data-image-fit=contain-w] .fancybox__content{min-height:auto}.has-image[data-image-fit=contain-w] .fancybox__image{max-width:100%;height:auto}.has-image[data-image-fit=cover]{overflow:visible;touch-action:none}.has-image[data-image-fit=cover] .fancybox__content{width:100%;height:100%}.has-image[data-image-fit=cover] .fancybox__image{width:100%;height:100%;object-fit:cover}.fancybox__carousel .fancybox__slide.has-iframe .fancybox__content,.fancybox__carousel .fancybox__slide.has-map .fancybox__content,.fancybox__carousel .fancybox__slide.has-pdf .fancybox__content,.fancybox__carousel .fancybox__slide.has-video .fancybox__content,.fancybox__carousel .fancybox__slide.has-html5video .fancybox__content{max-width:100%;flex-shrink:1;min-height:1px;overflow:visible}.fancybox__carousel .fancybox__slide.has-iframe .fancybox__content,.fancybox__carousel .fancybox__slide.has-map .fancybox__content,.fancybox__carousel .fancybox__slide.has-pdf .fancybox__content{width:100%;height:80%}.fancybox__carousel .fancybox__slide.has-video .fancybox__content,.fancybox__carousel .fancybox__slide.has-html5video .fancybox__content{width:960px;height:540px;max-width:100%;max-height:100%}.fancybox__carousel .fancybox__slide.has-map .fancybox__content,.fancybox__carousel .fancybox__slide.has-pdf .fancybox__content,.fancybox__carousel .fancybox__slide.has-video .fancybox__content,.fancybox__carousel .fancybox__slide.has-html5video .fancybox__content{padding:0;background:rgba(24,24,27,.9);color:#fff}.fancybox__carousel .fancybox__slide.has-map .fancybox__content{background:#e5e3df}.fancybox__html5video,.fancybox__iframe{border:0;display:block;height:100%;width:100%;background:rgba(0,0,0,0)}.fancybox-placeholder{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.fancybox__thumbs{flex:0 0 auto;position:relative;padding:0px 3px;opacity:var(--fancybox-opacity, 1)}.fancybox__container.is-animated[aria-hidden=false] .fancybox__thumbs{animation:.15s ease-in backwards fancybox-fadeIn}.fancybox__container.is-animated.is-closing .fancybox__thumbs{opacity:0}.fancybox__thumbs .carousel__slide{flex:0 0 auto;width:var(--fancybox-thumbs-width, 96px);margin:0;padding:8px 3px;box-sizing:content-box;display:flex;align-items:center;justify-content:center;overflow:visible;cursor:pointer}.fancybox__thumbs .carousel__slide .fancybox__thumb::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-width:5px;border-style:solid;border-color:var(--fancybox-accent-color, rgba(34, 213, 233, 0.96));opacity:0;transition:opacity .15s ease;border-radius:var(--fancybox-thumbs-border-radius, 4px)}.fancybox__thumbs .carousel__slide.is-nav-selected .fancybox__thumb::after{opacity:.92}.fancybox__thumbs .carousel__slide>*{pointer-events:none;user-select:none}.fancybox__thumb{position:relative;width:100%;padding-top:calc(100%/(var(--fancybox-thumbs-ratio, 1.5)));background-size:cover;background-position:center center;background-color:rgba(255,255,255,.1);background-repeat:no-repeat;border-radius:var(--fancybox-thumbs-border-radius, 4px)}.fancybox__toolbar{position:absolute;top:0;right:0;left:0;z-index:20;background:linear-gradient(to top, hsla(0deg, 0%, 0%, 0) 0%, hsla(0deg, 0%, 0%, 0.006) 8.1%, hsla(0deg, 0%, 0%, 0.021) 15.5%, hsla(0deg, 0%, 0%, 0.046) 22.5%, hsla(0deg, 0%, 0%, 0.077) 29%, hsla(0deg, 0%, 0%, 0.114) 35.3%, hsla(0deg, 0%, 0%, 0.155) 41.2%, hsla(0deg, 0%, 0%, 0.198) 47.1%, hsla(0deg, 0%, 0%, 0.242) 52.9%, hsla(0deg, 0%, 0%, 0.285) 58.8%, hsla(0deg, 0%, 0%, 0.326) 64.7%, hsla(0deg, 0%, 0%, 0.363) 71%, hsla(0deg, 0%, 0%, 0.394) 77.5%, hsla(0deg, 0%, 0%, 0.419) 84.5%, hsla(0deg, 0%, 0%, 0.434) 91.9%, hsla(0deg, 0%, 0%, 0.44) 100%);padding:0;touch-action:none;display:flex;justify-content:space-between;--carousel-button-svg-width: 20px;--carousel-button-svg-height: 20px;opacity:var(--fancybox-opacity, 1);text-shadow:var(--fancybox-toolbar-text-shadow, 1px 1px 1px rgba(0, 0, 0, 0.4))}@media all and (min-width: 1024px){.fancybox__toolbar{padding:8px}}.fancybox__container.is-animated[aria-hidden=false] .fancybox__toolbar{animation:.15s ease-in backwards fancybox-fadeIn}.fancybox__container.is-animated.is-closing .fancybox__toolbar{opacity:0}.fancybox__toolbar__items{display:flex}.fancybox__toolbar__items--left{margin-right:auto}.fancybox__toolbar__items--center{position:absolute;left:50%;transform:translateX(-50%)}.fancybox__toolbar__items--right{margin-left:auto}@media(max-width: 640px){.fancybox__toolbar__items--center:not(:last-child){display:none}}.fancybox__counter{min-width:72px;padding:0 10px;line-height:var(--carousel-button-height, 48px);text-align:center;font-size:17px;font-variant-numeric:tabular-nums;-webkit-font-smoothing:subpixel-antialiased}.fancybox__progress{background:var(--fancybox-accent-color, rgba(34, 213, 233, 0.96));height:3px;left:0;position:absolute;right:0;top:0;transform:scaleX(0);transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:30;user-select:none}.fancybox__container:fullscreen::backdrop{opacity:0}.fancybox__button--fullscreen g:nth-child(2){display:none}.fancybox__container:fullscreen .fancybox__button--fullscreen g:nth-child(1){display:none}.fancybox__container:fullscreen .fancybox__button--fullscreen g:nth-child(2){display:block}.fancybox__button--slideshow g:nth-child(2){display:none}.fancybox__container.has-slideshow .fancybox__button--slideshow g:nth-child(1){display:none}.fancybox__container.has-slideshow .fancybox__button--slideshow g:nth-child(2){display:block}
css/slick-carousal.css CHANGED
@@ -1,18 +1,18 @@
1
  /* Slider */
2
  .slider {
3
- margin: 0px auto;
4
- }
5
-
6
 
7
- .slick-slide img {
8
- display: block;
9
- margin: auto;
10
- }
 
 
 
 
 
11
 
12
- .slick-prev:before,
13
- .slick-next:before {
14
- color: black;
15
- }
16
  .slider ul {
17
  margin: 0 !important;
18
  }
@@ -28,12 +28,10 @@
28
  padding: 8px 20px;
29
  margin-top: 20px;
30
  }
31
-
32
  .content-over-slider .slick-slide .content-section *{
33
  padding: 0 140px;
34
  }
35
 
36
-
37
  .slick-slider
38
  {
39
  position: relative;
@@ -246,7 +244,7 @@
246
  }
247
  [dir='rtl'] .slick-prev
248
  {
249
- right: 40px;
250
  left: auto;
251
  }
252
  .slick-prev:before
@@ -267,7 +265,7 @@
267
  [dir='rtl'] .slick-next
268
  {
269
  right: auto;
270
- left: 40px;
271
  }
272
  .slick-next:before
273
  {
@@ -403,6 +401,15 @@
403
  padding: 4px 10px !important;
404
  }
405
 
 
 
 
 
 
 
 
 
 
406
  /* Media Query
407
  ==========================================*/
408
 
1
  /* Slider */
2
  .slider {
3
+ margin: 0px auto;
4
+ }
 
5
 
6
+ .slick-slide img {
7
+ display: block;
8
+ margin: auto;
9
+ }
10
+
11
+ .slick-prev:before,
12
+ .slick-next:before {
13
+ color: black;
14
+ }
15
 
 
 
 
 
16
  .slider ul {
17
  margin: 0 !important;
18
  }
28
  padding: 8px 20px;
29
  margin-top: 20px;
30
  }
 
31
  .content-over-slider .slick-slide .content-section *{
32
  padding: 0 140px;
33
  }
34
 
 
35
  .slick-slider
36
  {
37
  position: relative;
244
  }
245
  [dir='rtl'] .slick-prev
246
  {
247
+ /*right: 40px;*/
248
  left: auto;
249
  }
250
  .slick-prev:before
265
  [dir='rtl'] .slick-next
266
  {
267
  right: auto;
268
+ /*left: 40px;*/
269
  }
270
  .slick-next:before
271
  {
401
  padding: 4px 10px !important;
402
  }
403
 
404
+ [dir='rtl'] .slick-slide
405
+ {
406
+ float: left;
407
+ }
408
+
409
+ .slick-slider .slick-track, .slick-slider .slick-list {
410
+ direction: ltr;
411
+ }
412
+
413
  /* Media Query
414
  ==========================================*/
415
 
css/style.css CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  .blink_me {
2
  animation: blinker 0.5s linear infinite;
3
  font-size: 15px;
1
+ /*Plugin Info
2
+ Mega Addons For WPBakery Page Builder
3
+ Free Version
4
+ Author: topdigitaltrends
5
+ Version: 4.2.7
6
+ */
7
+
8
  .blink_me {
9
  animation: blinker 0.5s linear infinite;
10
  font-size: 15px;
index.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin URI: https://addons.topdigitaltrends.net/
6
  Author: Topdigitaltrends
7
  Author URI: https://www.topdigitaltrends.net/
8
- Version: 4.2.6
9
  License: GPL2
10
  */
11
 
5
  Plugin URI: https://addons.topdigitaltrends.net/
6
  Author: Topdigitaltrends
7
  Author URI: https://www.topdigitaltrends.net/
8
+ Version: 4.2.7
9
  License: GPL2
10
  */
11
 
js/jquery.fancybox.min.js CHANGED
@@ -1,13 +1,2 @@
1
- // ==================================================
2
- // fancyBox v3.5.6
3
- //
4
- // Licensed GPLv3 for open source use
5
- // or fancyBox Commercial License for commercial use
6
- //
7
- // http://fancyapps.com/fancybox/
8
- // Copyright 2018 fancyApps
9
- //
10
- // ==================================================
11
- !function(t,e,n,o){"use strict";function i(t,e){var o,i,a,s=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),(a=n.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(e.selector?s=n(e.selector):(i=o.attr("data-fancybox")||"",i?(s=t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]')):s=[o]),r=n(s).index(o),r<0&&(r=0),a=n.fancybox.open(s,e,r),a.$trigger=o))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(void 0!==n.style[t])return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),i)},b=function(t,e,o){var i=this;i.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=h(i.opts,e)),n.fancybox.isMobile&&(i.opts=h(i.opts,i.opts.mobile)),i.id=i.opts.id||++c,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(b.prototype,{init:function(){var o,i,a=this,s=a.group[a.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==r.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),i="",n.each(r.buttons,function(t,e){i+=r.btnTpl[e]||""}),o=n(a.translate(a,r.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(r.baseClass).data("FancyBox",a).appendTo(r.parentEl),a.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){a.$refs[t]=o.find(".fancybox-"+t)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===n[e]?t:n[e]})},addContent:function(t){var e,o=this,i=n.makeArray(t);n.each(i,function(t,e){var i,a,s,r,c,l={},d={};n.isPlainObject(e)?(l=e,d=e.opts||e):"object"===n.type(e)&&n(e).length?(i=n(e),d=i.data()||{},d=n.extend(!0,{},d,d.options),d.$orig=i,l.src=o.opts.src||d.src||i.attr("href"),l.type||l.src||(l.type="inline",l.src=e)):l={type:"html",src:e+""},l.opts=n.extend(!0,{},o.opts,d),n.isArray(d.buttons)&&(l.opts.buttons=d.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=h(l.opts,l.opts.mobile)),a=l.type||l.opts.type,r=l.src||"",!a&&r&&((s=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(a="inline")),a?l.type=a:o.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=o.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===o.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(e,[o,l])),"function"===n.type(o.opts.caption)&&(l.opts.caption=o.opts.caption.apply(e,[o,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),o.group.push(l)}),Object.keys(o.slides).length&&(o.updateControls(),(e=o.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=d(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}),r.on("keydown.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null,i=o.current,a=t.keyCode||t.which;if(9==a)return void(i.opts.trapFocus&&e.focus(t));if(!(!i.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio")))return 8===a||27===a?(t.preventDefault(),void e.close(t)):37===a||38===a?(t.preventDefault(),void e.previous()):39===a||40===a?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,a)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var o,i,a,s,r,c,l,d,u,f=this,h=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=h))return!1;if(o=f.firstRun=!Object.keys(f.slides).length,r=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),h>1&&((a||s.index<h-1)&&f.createSlide(t+1),(a||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",o),f.updateControls(),s.forcedDuration=void 0,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[o?"animationDuration":"transitionDuration"],e=parseInt(e,10),i=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),o)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");c=n.fancybox.getTranslate(r.$slide),l=n.fancybox.getTranslate(f.$refs.stage),n.each(f.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),r.pos!==s.pos&&(r.isComplete=!1),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(u=c.left-(r.pos*c.width+r.pos*r.opts.gutter),n.each(f.slides,function(t,o){o.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var i=o.pos*c.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:i-l.left+u}),o.pos!==s.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>s.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-s.pos)*c.width+(o.pos-s.pos)*o.opts.gutter},e,function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===f.currPos&&f.complete()})})):e&&s.opts.transitionEffect&&(d="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,r.$slide.addClass("fancybox-slide--"+(r.pos>s.pos?"next":"previous")),n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,o){var i,a,s,r,c,l=this,d=l.current,u=d.$content,f=n.fancybox.getTranslate(d.$slide).width,p=n.fancybox.getTranslate(d.$slide).height,h=d.width,g=d.height;l.isAnimating||l.isMoved()||!u||"image"!=d.type||!d.isLoaded||d.hasError||(l.isAnimating=!0,n.fancybox.stop(u),t=void 0===t?.5*f:t,e=void 0===e?.5*p:e,i=n.fancybox.getTranslate(u),i.top-=n.fancybox.getTranslate(d.$slide).top,i.left-=n.fancybox.getTranslate(d.$slide).left,r=h/i.width,c=g/i.height,a=.5*f-.5*h,s=.5*p-.5*g,h>f&&(a=i.left*r-(t*r-t),a>0&&(a=0),a<f-h&&(a=f-h)),g>p&&(s=i.top*c-(e*c-e),s>0&&(s=0),s<p-g&&(s=p-g)),l.updateCursor(h,g),n.fancybox.animate(u,{top:s,left:a,scaleX:r,scaleY:c},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;o.isAnimating||o.isMoved()||!a||"image"!=i.type||!i.isLoaded||i.hasError||(o.isAnimating=!0,n.fancybox.stop(a),e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,i,a,s=this,r=t.$content,c=t.$slide,l=t.width||t.opts.width,d=t.height||t.opts.height,u={};return!!(t.isLoaded&&r&&r.length)&&(e=n.fancybox.getTranslate(s.$refs.stage).width,o=n.fancybox.getTranslate(s.$refs.stage).height,e-=parseFloat(c.css("paddingLeft"))+parseFloat(c.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),o-=parseFloat(c.css("paddingTop"))+parseFloat(c.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),l&&d||(l=e,d=o),i=Math.min(1,e/l,o/d),l*=i,d*=i,l>e-.5&&(l=e),d>o-.5&&(d=o),"image"===t.type?(u.top=Math.floor(.5*(o-d))+parseFloat(c.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(c.css("paddingLeft"))):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?l/d:t.opts.ratio||16/9,d>l/a?d=l/a:l>d*a&&(l=d*a)),u.width=l,u.height=d,u)},update:function(t){var e=this;n.each(e.slides,function(n,o){e.updateSlide(o,t)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;o.adjustCaption(t),i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),r.length&&(r.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,i=o.$slide;!e.isClosing&&o&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(i,{top:0,left:0,opacity:1},void 0===t?0:t,function(){i.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,i=t||this.current;return!!i&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,i,a=this,s=a.current,r=a.$refs.container;s&&!a.isClosing&&a.Guestures&&(r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=a.canPan(t,e),i=!!o||a.isZoomable(),r.toggleClass("fancybox-is-zoomable",i),n("[data-fancybox-zoom]").prop("disabled",!i),o?r.addClass("fancybox-can-pan"):i&&("zoom"===s.opts.clickContent||n.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?r.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||a.group.length>1)&&"video"!==s.contentType&&r.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=this,i=!1,a=o.current,s=a.$content;return void 0!==t&&void 0!==e?i=t<a.width&&e<a.height:s&&(i=n.fancybox.getTranslate(s),i=i.width<a.width&&i.height<a.height),i},canPan:function(t,e){var o=this,i=o.current,a=null,s=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(s=o.getFitPos(i),void 0!==t&&void 0!==e?a={width:t,height:e}:i.isComplete&&(a=n.fancybox.getTranslate(i.$content)),a&&s&&(s=Math.abs(a.width-s.width)>1.5||Math.abs(a.height-s.height)>1.5)),s},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(t){var o,i=this;setTimeout(function(){var e=t.$image;i.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||i.showLoading(t)},50),i.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,o=e.createElement("img"),o.onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){i.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),i.setBigImage(t)},checkSrcset:function(e){var n,o,i,a,s=e.opts.srcset||e.opts.image.srcset;if(s){i=t.devicePixelRatio||1,a=t.innerWidth*i,o=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);if(0===n)return e.url=t;o&&(e.value=o,e.postfix=t[t.length-1])}),e}),o.sort(function(t,e){return t.value-e.value});for(var r=0;r<o.length;r++){var c=o[r];if("w"===c.postfix&&c.value>=a||"x"===c.postfix&&c.value>=i){n=c;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,i=e.createElement("img"),a=n(i);t.$image=a.one("error",function(){o.setError(t)}).one("load",function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&(e=t.opts.sizes,e&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(i.complete||"complete"==i.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):i.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,o=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content'+(i.preload?" fancybox-is-hidden":"")+'"></div>').css(i.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(i.attr).appendTo(t.$content),i.preload?(o.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),a.on("refresh.fb",function(){var n,o,s=t.$content,r=i.css.width,c=i.css.height;if(1===e[0].isReady){try{n=e.contents(),o=n.find("body")}catch(t){}o&&o.length&&o.children().length&&(a.css("overflow","visible"),s.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=Math.ceil(Math.max(o[0].clientWidth,o.outerWidth(!0)))),s.css("width",r||"").css("max-width",""),void 0===c&&(c=Math.ceil(Math.max(o[0].clientHeight,o.outerHeight(!0)))),s.css("height",c||""),a.css("overflow","auto")),s.removeClass("fancybox-is-hidden")}})):o.afterLoad(t),e.attr("src",t.src),a.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){var e=this;(t=t||e.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,a=o.opts.preventCaptionOverlap,s=n.$refs.caption,r=!1;s.toggleClass("fancybox-caption--separate",a),a&&i&&i.length&&(o.pos!==n.currPos?(e=s.clone().appendTo(s.parent()),e.children().eq(0).empty().html(i),r=e.outerHeight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,n,o,i,a=this,s=t||a.current;s.isLoaded&&!0!==s.opts.disableLayoutFix&&(s.$content.css("margin-bottom",""),s.$content.outerHeight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],i=s.$slide.css("padding-bottom"),parseFloat(i)>0&&(e=s.$slide[0].scrollHeight,s.$slide.css("padding-bottom",0),Math.abs(e-s.$slide[0].scrollHeight)<1&&(n=i),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealContent:function(t){var e,o,i,a,s=this,r=t.$slide,c=!1,l=!1,d=s.isMoved(t),u=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],i=t.opts[s.firstRun?"animationDuration":"transitionDuration"],i=parseInt(void 0===t.forcedDuration?i:t.forcedDuration,10),!d&&t.pos===s.currPos&&i||(e=!1),"zoom"===e&&(t.pos===s.currPos&&i&&"image"===t.type&&!t.hasError&&(l=s.getThumbPos(t))?c=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,c.scaleX=c.width/l.width,c.scaleY=c.height/l.height,a=t.opts.zoomOpacity,"auto"==a&&(a=Math.abs(t.width/t.height-l.width/l.height)>.1),a&&(l.opacity=.1,c.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),l),p(t.$content),void n.fancybox.animate(t.$content,c,i,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(t),e?(n.fancybox.stop(r),o="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addClass(o).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(r,"fancybox-slide--current",i,function(){r.removeClass(o).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,o,i,a,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.getTranslate(c),o=parseFloat(c.css("border-top-width")||0),i=parseFloat(c.css("border-right-width")||0),a=parseFloat(c.css("border-bottom-width")||0),s=parseFloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-a,scaleX:1,scaleY:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,i={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=i),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),o.opts.autoFocus&&"html"===o.contentType&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],e=o.slides[o.currPos-1],e&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var i,a,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||(i=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),i=i.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}),i.length?(a=i.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(a<0||a==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,u=this,f=u.current,h=function(){u.cleanUp(t)};return!u.isClosing&&(u.isClosing=!0,!1===u.trigger("beforeClose",t)?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),a=f.$content,o=f.opts.animationEffect,i=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),i&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||a&&i&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(l=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=f.opts.zoomOpacity,"auto"==r&&(r=Math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),
12
- n.fancybox.setTranslate(a,c),p(a),n.fancybox.animate(a,l,i,h),!0):(o&&i?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?setTimeout(h,i):h(),!0)))},cleanUp:function(e){var o,i,a,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(i=t.scrollX,a=t.scrollY,r.trigger("focus"),n("html, body").scrollTop(a).scrollLeft(i))),s.current=null,o=n.fancybox.getInstance(),o?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;if(s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i)},updateControls:function(){var t=this,o=t.current,i=o.index,a=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),r&&r.length?(t.$caption=s,s.children().eq(0).html(r)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(i+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventCaptionOverlap||n.push("caption"),this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.6",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof b&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new b(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",o={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scaleX&&void 0!==e.scaleY?n+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(n+=" scaleX("+e.scaleX+")"),n.length&&(o.transform=n),void 0!==e.opacity&&(o.opacity=e.opacity),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),t.css(o)},animate:function(t,e,o,i,a){var s,r=this;n.isFunction(o)&&(i=o,o=null),r.stop(t),s=r.getTranslate(t),t.on(f,function(c){(!c||!c.originalEvent||t.is(c.originalEvent.target)&&"z-index"!=c.originalEvent.propertyName)&&(r.stop(t),n.isNumeric(o)&&t.css("transition-duration",""),n.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&r.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),n.isFunction(i)&&i(c))}),n.isNumeric(o)&&t.css("transition-duration",o+"ms"),n.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(f)},o+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;r.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[e],u),p="function"===t.type(o.url)?o.url.call(this,c,l,a):n(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,a):n(o.thumb,c),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;if(this[t].loaded)return void setTimeout(function(){n.done(t)});this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(e){var n,o,i;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?i=new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&(i=new Vimeo.Player(o),i.on("ended",function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(i(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();i.realPoints=i.startPoints=a(o),i.startPoints.length&&(u.touch&&o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=p,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.canPan=d.canPan(),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(f[0].clientWidth),i.canvasHeight=Math.round(f[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=n.fancybox.getTranslate(f),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),((i.opts||i.canPan)&&(c.is(i.$stage)||i.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&c.parents(".fancybox-caption").length))&&(i.isScrollable=l(c)||l(c.parent()),n.fancybox.isMobile&&i.isScrollable||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.canPan?(n.fancybox.stop(i.$content),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-is-grabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))))}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.instance,c=s.isSwiping,l=s.sliderStartPos.left||0;if(!0!==c)"x"==c&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?l-=Math.pow(-s.distanceX,.8):l+=s.distanceX),s.sliderLastPos={top:"x"==c?0:s.sliderStartPos.top+s.distanceY,left:l},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,r.group.length<2&&s.opts.vertical?s.isSwiping="y":r.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);r.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(r.slides,function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),i=n.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderStartPos.top=o.top-i.top,s.sliderStartPos.left=o.left-i.left),n.fancybox.setTranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;if(s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5))return void(t.startPoints=t.newPoints);t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&i(t.requestId),t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,x=v-e.centerPointStartY,w=l+(g+y),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&i(e.requestId),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,r=o.isPanning,c=o.isZooming,l=o.isScrolling;if(o.endPoints=a(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap)return o.onTap(t);o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,r?o.endPanning():c?o.endZooming():o.endSwiping(s,l)},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length,s=Math.abs(o.distanceX),r="x"==t&&a>1&&(o.dMs>130&&s>10||s>50);o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,250)):r&&o.distanceX>0?i=o.instance.previous(300):r&&o.distanceX<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(!1===i.opts.momentum||i.dMs>350?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+500*i.velocityX,e=i.contentLastPos.top+500*i.velocityY),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,366))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,r.isAnimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==i.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},i.opts.slideShow.speed),n.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},i.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){var i;if(!n)return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();e&&e.group[e.currIndex].opts.fullScreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,a=n.length;i<a&&(n[i].thumb&&o++,!(o>1));i++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,a=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)),o.$grid.on("click","a",function(){i.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(i.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,o=this,i=o.$list,a=o.$grid;o.instance.current&&(e=i.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addClass("fancybox-thumbs-active"),n=e.position(),"y"===o.opts.axis&&(n.top<0||n.top>i.height()-e.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},t):"x"===o.opts.axis&&(n.left<a.scrollLeft()||n.left>a.scrollLeft()+(a.width()-e.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new o(e),n.isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";function n(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},
13
- tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeURIComponent(a.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300)))},"beforeClose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var i=n(o).data("FancyBox");if(i&&i.currentHash)return e=i,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&i(t)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
1
+ // @fancyapps/ui/Fancybox v4.0.31
2
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).window=t.window||{})}(this,(function(t){"use strict";function e(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function i(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?e(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=c(t);if(e){var o=c(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return u(this,i)}}function v(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=v(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:i):o.value}},p.apply(this,arguments)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,o,a=[],s=!0,r=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(a.push(n.value),!e||a.length!==e);s=!0);}catch(t){r=!0,o=t}finally{try{s||null==i.return||i.return()}finally{if(r)throw o}}return a}(t,e)||y(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){if(t){if("string"==typeof t)return b(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?b(t,e):void 0}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function x(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=y(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){r=!0,a=t},f:function(){try{s||null==i.return||i.return()}finally{if(r)throw a}}}}var w=function(t){return"object"===n(t)&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t)},k=function t(){for(var e=!1,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];"boolean"==typeof o[0]&&(e=o.shift());var s=o[0];if(!s||"object"!==n(s))throw new Error("extendee must be an object");for(var r=o.slice(1),l=r.length,c=0;c<l;c++){var h=r[c];for(var d in h)if(h.hasOwnProperty(d)){var u=h[d];if(e&&(Array.isArray(u)||w(u))){var f=Array.isArray(u)?[]:{};s[d]=t(!0,s.hasOwnProperty(d)?s[d]:f,u)}else s[d]=u}}return s},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;return t=parseFloat(t)||0,Math.round((t+Number.EPSILON)*e)/e},C=function t(e){return!!(e&&"object"===n(e)&&e instanceof Element&&e!==document.body)&&(!e.__Panzoom&&(function(t){var e=getComputedStyle(t)["overflow-y"],i=getComputedStyle(t)["overflow-x"],n=("scroll"===e||"auto"===e)&&Math.abs(t.scrollHeight-t.clientHeight)>1,o=("scroll"===i||"auto"===i)&&Math.abs(t.scrollWidth-t.clientWidth)>1;return n||o}(e)?e:t(e.parentNode)))},$="undefined"!=typeof window&&window.ResizeObserver||function(){function t(e){o(this,t),this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=e}return s(t,[{key:"observe",value:function(t){if(!this.observables.some((function(e){return e.el===t}))){var e={el:t,size:{height:t.clientHeight,width:t.clientWidth}};this.observables.push(e)}}},{key:"unobserve",value:function(t){this.observables=this.observables.filter((function(e){return e.el!==t}))}},{key:"disconnect",value:function(){this.observables=[]}},{key:"check",value:function(){var t=this.observables.filter((function(t){var e=t.el.clientHeight,i=t.el.clientWidth;if(t.size.height!==e||t.size.width!==i)return t.size.height=e,t.size.width=i,!0})).map((function(t){return t.el}));t.length>0&&this.callback(t),window.requestAnimationFrame(this.boundCheck)}}]),t}(),E=s((function t(e){o(this,t),this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY})),P=function(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0},T=function(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t},L=function(t){return"changedTouches"in t},_=function(){function t(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.start,s=void 0===a?function(){return!0}:a,r=n.move,l=void 0===r?function(){}:r,c=n.end,h=void 0===c?function(){}:c;o(this,t),this._element=e,this.startPointers=[],this.currentPointers=[],this._pointerStart=function(t){if(!(t.buttons>0&&0!==t.button)){var e=new E(t);i.currentPointers.some((function(t){return t.id===e.id}))||i._triggerPointerStart(e,t)&&(window.addEventListener("mousemove",i._move),window.addEventListener("mouseup",i._pointerEnd))}},this._touchStart=function(t){for(var e=0,n=Array.from(t.changedTouches||[]);e<n.length;e++){var o=n[e];i._triggerPointerStart(new E(o),t)}},this._move=function(t){var e,n=i.currentPointers.slice(),o=L(t)?Array.from(t.changedTouches).map((function(t){return new E(t)})):[new E(t)],a=[],s=x(o);try{var r=function(){var t=e.value,n=i.currentPointers.findIndex((function(e){return e.id===t.id}));if(n<0)return"continue";a.push(t),i.currentPointers[n]=t};for(s.s();!(e=s.n()).done;)r()}catch(t){s.e(t)}finally{s.f()}i._moveCallback(n,i.currentPointers.slice(),t)},this._triggerPointerEnd=function(t,e){var n=i.currentPointers.findIndex((function(e){return e.id===t.id}));return!(n<0)&&(i.currentPointers.splice(n,1),i.startPointers.splice(n,1),i._endCallback(t,e),!0)},this._pointerEnd=function(t){t.buttons>0&&0!==t.button||i._triggerPointerEnd(new E(t),t)&&(window.removeEventListener("mousemove",i._move,{passive:!1}),window.removeEventListener("mouseup",i._pointerEnd,{passive:!1}))},this._touchEnd=function(t){for(var e=0,n=Array.from(t.changedTouches||[]);e<n.length;e++){var o=n[e];i._triggerPointerEnd(new E(o),t)}},this._startCallback=s,this._moveCallback=l,this._endCallback=h,this._element.addEventListener("mousedown",this._pointerStart,{passive:!1}),this._element.addEventListener("touchstart",this._touchStart,{passive:!1}),this._element.addEventListener("touchmove",this._move,{passive:!1}),this._element.addEventListener("touchend",this._touchEnd),this._element.addEventListener("touchcancel",this._touchEnd)}return s(t,[{key:"stop",value:function(){this._element.removeEventListener("mousedown",this._pointerStart,{passive:!1}),this._element.removeEventListener("touchstart",this._touchStart,{passive:!1}),this._element.removeEventListener("touchmove",this._move,{passive:!1}),this._element.removeEventListener("touchend",this._touchEnd),this._element.removeEventListener("touchcancel",this._touchEnd),window.removeEventListener("mousemove",this._move),window.removeEventListener("mouseup",this._pointerEnd)}},{key:"_triggerPointerStart",value:function(t,e){return!!this._startCallback(t,e)&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}}]),t}(),A=function(t,e){return t.split(".").reduce((function(t,e){return t&&t[e]}),e)},O=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this.options=k(!0,{},e),this.plugins=[],this.events={};for(var i=0,n=["on","once"];i<n.length;i++)for(var a=n[i],s=0,r=Object.entries(this.options[a]||{});s<r.length;s++){var l=r[s];this[a].apply(this,m(l))}}return s(t,[{key:"option",value:function(t,e){t=String(t);var i=A(t,this.options);if("function"==typeof i){for(var n,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];i=(n=i).call.apply(n,[this,this].concat(a))}return void 0===i?e:i}},{key:"localize",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t=(t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,(function(t,n,o){var a="";o?a=e.option("".concat(n[0]+n.toLowerCase().substring(1),".l10n.").concat(o)):n&&(a=e.option("l10n.".concat(n))),a||(a=t);for(var s=0;s<i.length;s++)a=a.split(i[s][0]).join(i[s][1]);return a}))).replace(/\{\{(.*)\}\}/,(function(t,e){return e}))}},{key:"on",value:function(t,e){var i=this;if(w(t)){for(var n=0,o=Object.entries(t);n<o.length;n++){var a=o[n];this.on.apply(this,m(a))}return this}return String(t).split(" ").forEach((function(t){var n=i.events[t]=i.events[t]||[];-1==n.indexOf(e)&&n.push(e)})),this}},{key:"once",value:function(t,e){var i=this;if(w(t)){for(var n=0,o=Object.entries(t);n<o.length;n++){var a=o[n];this.once.apply(this,m(a))}return this}return String(t).split(" ").forEach((function(t){var n=function n(){i.off(t,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];e.call.apply(e,[i,i].concat(a))};n._=e,i.on(t,n)})),this}},{key:"off",value:function(t,e){var i=this;if(!w(t))return t.split(" ").forEach((function(t){var n=i.events[t];if(!n||!n.length)return i;for(var o=-1,a=0,s=n.length;a<s;a++){var r=n[a];if(r&&(r===e||r._===e)){o=a;break}}-1!=o&&n.splice(o,1)})),this;for(var n=0,o=Object.entries(t);n<o.length;n++){var a=o[n];this.off.apply(this,m(a))}}},{key:"trigger",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var o,a=x(m(this.events[t]||[]).slice());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s&&!1===s.call.apply(s,[this,this].concat(i)))return!1}}catch(t){a.e(t)}finally{a.f()}var r,l=x(m(this.events["*"]||[]).slice());try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c&&!1===c.call.apply(c,[this,t,this].concat(i)))return!1}}catch(t){l.e(t)}finally{l.f()}return!0}},{key:"attachPlugins",value:function(t){for(var e={},i=0,n=Object.entries(t||{});i<n.length;i++){var o=g(n[i],2),a=o[0],s=o[1];!1===this.options[a]||this.plugins[a]||(this.options[a]=k({},s.defaults||{},this.options[a]),e[a]=new s(this))}for(var r=0,l=Object.entries(e);r<l.length;r++){var c=g(l[r],2);c[0],c[1].attach(this)}return this.plugins=Object.assign({},this.plugins,e),this}},{key:"detachPlugins",value:function(){for(var t in this.plugins){var e=void 0;(e=this.plugins[t])&&"function"==typeof e.detach&&e.detach(this)}return this.plugins={},this}}]),t}(),z={touch:!0,zoom:!0,pinchToZoom:!0,panOnlyZoomed:!1,lockAxis:!1,friction:.64,decelFriction:.88,zoomFriction:.74,bounceForce:.2,baseScale:1,minScale:1,maxScale:2,step:.5,textSelection:!1,click:"toggleZoom",wheel:"zoom",wheelFactor:42,wheelLimit:5,draggableClass:"is-draggable",draggingClass:"is-dragging",ratio:1},M=function(t){l(n,t);var e=f(n);function n(t){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,n),(i=e.call(this,k(!0,{},z,a))).state="init",i.$container=t;for(var s=0,r=["onLoad","onWheel","onClick"];s<r.length;s++){var l=r[s];i[l]=i[l].bind(d(i))}return i.initLayout(),i.resetValues(),i.attachPlugins(n.Plugins),i.trigger("init"),i.updateMetrics(),i.attachEvents(),i.trigger("ready"),!1===i.option("centerOnStart")?i.state="ready":i.panTo({friction:0}),t.__Panzoom=d(i),i}return s(n,[{key:"initLayout",value:function(){var t=this.$container;if(!(t instanceof HTMLElement))throw new Error("Panzoom: Container not found");var e=this.option("content")||t.querySelector(".panzoom__content");if(!e)throw new Error("Panzoom: Content not found");this.$content=e;var i,n=this.option("viewport")||t.querySelector(".panzoom__viewport");n||!1===this.option("wrapInner")||((n=document.createElement("div")).classList.add("panzoom__viewport"),(i=n).append.apply(i,m(t.childNodes)),t.appendChild(n));this.$viewport=n||e.parentNode}},{key:"resetValues",value:function(){this.updateRate=this.option("updateRate",/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?250:24),this.container={width:0,height:0},this.viewport={width:0,height:0},this.content={origWidth:0,origHeight:0,width:0,height:0,x:this.option("x",0),y:this.option("y",0),scale:this.option("baseScale")},this.transform={x:0,y:0,scale:1},this.resetDragPosition()}},{key:"onLoad",value:function(t){this.updateMetrics(),this.panTo({scale:this.option("baseScale"),friction:0}),this.trigger("load",t)}},{key:"onClick",value:function(t){if(!(t.defaultPrevented||document.activeElement&&document.activeElement.closest("[contenteditable]")))if(!this.option("textSelection")||!window.getSelection().toString().length||t.target&&t.target.hasAttribute("data-fancybox-close")){var e=this.$content.getClientRects()[0];if("ready"!==this.state&&(this.dragPosition.midPoint||Math.abs(e.top-this.dragStart.rect.top)>1||Math.abs(e.left-this.dragStart.rect.left)>1))return t.preventDefault(),void t.stopPropagation();!1!==this.trigger("click",t)&&this.option("zoom")&&"toggleZoom"===this.option("click")&&(t.preventDefault(),t.stopPropagation(),this.zoomWithClick(t))}else t.stopPropagation()}},{key:"onWheel",value:function(t){!1!==this.trigger("wheel",t)&&this.option("zoom")&&this.option("wheel")&&this.zoomWithWheel(t)}},{key:"zoomWithWheel",value:function(t){void 0===this.changedDelta&&(this.changedDelta=0);var e=Math.max(-1,Math.min(1,-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)),i=this.content.scale,n=i*(100+e*this.option("wheelFactor"))/100;if(e<0&&Math.abs(i-this.option("minScale"))<.01||e>0&&Math.abs(i-this.option("maxScale"))<.01?(this.changedDelta+=Math.abs(e),n=i):(this.changedDelta=0,n=Math.max(Math.min(n,this.option("maxScale")),this.option("minScale"))),!(this.changedDelta>this.option("wheelLimit"))&&(t.preventDefault(),n!==i)){var o=this.$content.getBoundingClientRect(),a=t.clientX-o.left,s=t.clientY-o.top;this.zoomTo(n,{x:a,y:s})}}},{key:"zoomWithClick",value:function(t){var e=this.$content.getClientRects()[0],i=t.clientX-e.left,n=t.clientY-e.top;this.toggleZoom({x:i,y:n})}},{key:"attachEvents",value:function(){var t=this;this.$content.addEventListener("load",this.onLoad),this.$container.addEventListener("wheel",this.onWheel,{passive:!1}),this.$container.addEventListener("click",this.onClick,{passive:!1}),this.initObserver();var e=new _(this.$container,{start:function(i,n){if(!t.option("touch"))return!1;if(t.velocity.scale<0)return!1;var o=n.composedPath()[0];if(!e.currentPointers.length){if(-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(o.nodeName))return!1;if(t.option("textSelection")&&function(t,e,i){for(var n=t.childNodes,o=document.createRange(),a=0;a<n.length;a++){var s=n[a];if(s.nodeType===Node.TEXT_NODE){o.selectNodeContents(s);var r=o.getBoundingClientRect();if(e>=r.left&&i>=r.top&&e<=r.right&&i<=r.bottom)return s}}return!1}(o,i.clientX,i.clientY))return!1}return!C(o)&&(!1!==t.trigger("touchStart",n)&&("mousedown"===n.type&&n.preventDefault(),t.state="pointerdown",t.resetDragPosition(),t.dragPosition.midPoint=null,t.dragPosition.time=Date.now(),!0))},move:function(i,n,o){if("pointerdown"===t.state)if(!1!==t.trigger("touchMove",o)){if(!(n.length<2&&!0===t.option("panOnlyZoomed")&&t.content.width<=t.viewport.width&&t.content.height<=t.viewport.height&&t.transform.scale<=t.option("baseScale"))&&(!(n.length>1)||t.option("zoom")&&!1!==t.option("pinchToZoom"))){var a=T(i[0],i[1]),s=T(n[0],n[1]),r=s.clientX-a.clientX,l=s.clientY-a.clientY,c=P(i[0],i[1]),h=P(n[0],n[1]),d=c&&h?h/c:1;t.dragOffset.x+=r,t.dragOffset.y+=l,t.dragOffset.scale*=d,t.dragOffset.time=Date.now()-t.dragPosition.time;var u=1===t.dragStart.scale&&t.option("lockAxis");if(u&&!t.lockAxis){if(Math.abs(t.dragOffset.x)<6&&Math.abs(t.dragOffset.y)<6)return void o.preventDefault();var f=Math.abs(180*Math.atan2(t.dragOffset.y,t.dragOffset.x)/Math.PI);t.lockAxis=f>45&&f<135?"y":"x"}if("xy"===u||"y"!==t.lockAxis){if(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation(),t.lockAxis&&(t.dragOffset["x"===t.lockAxis?"y":"x"]=0),t.$container.classList.add(t.option("draggingClass")),t.transform.scale===t.option("baseScale")&&"y"===t.lockAxis||(t.dragPosition.x=t.dragStart.x+t.dragOffset.x),t.transform.scale===t.option("baseScale")&&"x"===t.lockAxis||(t.dragPosition.y=t.dragStart.y+t.dragOffset.y),t.dragPosition.scale=t.dragStart.scale*t.dragOffset.scale,n.length>1){var v=T(e.startPointers[0],e.startPointers[1]),p=v.clientX-t.dragStart.rect.x,g=v.clientY-t.dragStart.rect.y,m=t.getZoomDelta(t.content.scale*t.dragOffset.scale,p,g),y=m.deltaX,b=m.deltaY;t.dragPosition.x-=y,t.dragPosition.y-=b,t.dragPosition.midPoint=s}else t.setDragResistance();t.transform={x:t.dragPosition.x,y:t.dragPosition.y,scale:t.dragPosition.scale},t.startAnimation()}}}else o.preventDefault()},end:function(n,o){if("pointerdown"===t.state)if(t._dragOffset=i({},t.dragOffset),e.currentPointers.length)t.resetDragPosition();else if(t.state="decel",t.friction=t.option("decelFriction"),t.recalculateTransform(),t.$container.classList.remove(t.option("draggingClass")),!1!==t.trigger("touchEnd",o)&&"decel"===t.state){var a=t.option("minScale");if(t.transform.scale<a)t.zoomTo(a,{friction:.64});else{var s=t.option("maxScale");if(t.transform.scale-s>.01){var r=t.dragPosition.midPoint||n,l=t.$content.getClientRects()[0];t.zoomTo(s,{friction:.64,x:r.clientX-l.left,y:r.clientY-l.top})}else;}}}});this.pointerTracker=e}},{key:"initObserver",value:function(){var t=this;this.resizeObserver||(this.resizeObserver=new $((function(){t.updateTimer||(t.updateTimer=setTimeout((function(){var e=t.$container.getBoundingClientRect();e.width&&e.height?((Math.abs(e.width-t.container.width)>1||Math.abs(e.height-t.container.height)>1)&&(t.isAnimating()&&t.endAnimation(!0),t.updateMetrics(),t.panTo({x:t.content.x,y:t.content.y,scale:t.option("baseScale"),friction:0})),t.updateTimer=null):t.updateTimer=null}),t.updateRate))})),this.resizeObserver.observe(this.$container))}},{key:"resetDragPosition",value:function(){this.lockAxis=null,this.friction=this.option("friction"),this.velocity={x:0,y:0,scale:0};var t=this.content,e=t.x,n=t.y,o=t.scale;this.dragStart={rect:this.$content.getBoundingClientRect(),x:e,y:n,scale:o},this.dragPosition=i(i({},this.dragPosition),{},{x:e,y:n,scale:o}),this.dragOffset={x:0,y:0,scale:1,time:0}}},{key:"updateMetrics",value:function(t){!0!==t&&this.trigger("beforeUpdate");var e,n=this.$container,o=this.$content,a=this.$viewport,s=o instanceof HTMLImageElement,r=this.option("zoom"),l=this.option("resizeParent",r),c=this.option("width"),h=this.option("height"),d=c||(e=o,Math.max(parseFloat(e.naturalWidth||0),parseFloat(e.width&&e.width.baseVal&&e.width.baseVal.value||0),parseFloat(e.offsetWidth||0),parseFloat(e.scrollWidth||0))),u=h||function(t){return Math.max(parseFloat(t.naturalHeight||0),parseFloat(t.height&&t.height.baseVal&&t.height.baseVal.value||0),parseFloat(t.offsetHeight||0),parseFloat(t.scrollHeight||0))}(o);Object.assign(o.style,{width:c?"".concat(c,"px"):"",height:h?"".concat(h,"px"):"",maxWidth:"",maxHeight:""}),l&&Object.assign(a.style,{width:"",height:""});var f=this.option("ratio");c=d=S(d*f),h=u=S(u*f);var v=o.getBoundingClientRect(),p=a.getBoundingClientRect(),g=a==n?p:n.getBoundingClientRect(),m=Math.max(a.offsetWidth,S(p.width)),y=Math.max(a.offsetHeight,S(p.height)),b=window.getComputedStyle(a);if(m-=parseFloat(b.paddingLeft)+parseFloat(b.paddingRight),y-=parseFloat(b.paddingTop)+parseFloat(b.paddingBottom),this.viewport.width=m,this.viewport.height=y,r){if(Math.abs(d-v.width)>.1||Math.abs(u-v.height)>.1){var x=function(t,e,i,n){var o=Math.min(i/t||0,n/e);return{width:t*o||0,height:e*o||0}}(d,u,Math.min(d,v.width),Math.min(u,v.height));c=S(x.width),h=S(x.height)}Object.assign(o.style,{width:"".concat(c,"px"),height:"".concat(h,"px"),transform:""})}if(l&&(Object.assign(a.style,{width:"".concat(c,"px"),height:"".concat(h,"px")}),this.viewport=i(i({},this.viewport),{},{width:c,height:h})),s&&r&&"function"!=typeof this.options.maxScale){var w=this.option("maxScale");this.options.maxScale=function(){return this.content.origWidth>0&&this.content.fitWidth>0?this.content.origWidth/this.content.fitWidth:w}}this.content=i(i({},this.content),{},{origWidth:d,origHeight:u,fitWidth:c,fitHeight:h,width:c,height:h,scale:1,isZoomable:r}),this.container={width:g.width,height:g.height},!0!==t&&this.trigger("afterUpdate")}},{key:"zoomIn",value:function(t){this.zoomTo(this.content.scale+(t||this.option("step")))}},{key:"zoomOut",value:function(t){this.zoomTo(this.content.scale-(t||this.option("step")))}},{key:"toggleZoom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.option("maxScale"),i=this.option("baseScale"),n=this.content.scale>i+.5*(e-i)?i:e;this.zoomTo(n,t)}},{key:"zoomTo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("baseScale"),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.x,n=void 0===i?null:i,o=e.y,a=void 0===o?null:o;t=Math.max(Math.min(t,this.option("maxScale")),this.option("minScale"));var s=S(this.content.scale/(this.content.width/this.content.fitWidth),1e7);null===n&&(n=this.content.width*s*.5),null===a&&(a=this.content.height*s*.5);var r=this.getZoomDelta(t,n,a),l=r.deltaX,c=r.deltaY;n=this.content.x-l,a=this.content.y-c,this.panTo({x:n,y:a,scale:t,friction:this.option("zoomFriction")})}},{key:"getZoomDelta",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.content.fitWidth*this.content.scale,o=this.content.fitHeight*this.content.scale,a=e>0&&n?e/n:0,s=i>0&&o?i/o:0,r=this.content.fitWidth*t,l=this.content.fitHeight*t,c=(r-n)*a,h=(l-o)*s;return{deltaX:c,deltaY:h}}},{key:"panTo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.x,n=void 0===e?this.content.x:e,o=t.y,a=void 0===o?this.content.y:o,s=t.scale,r=t.friction,l=void 0===r?this.option("friction"):r,c=t.ignoreBounds,h=void 0!==c&&c;if(s=s||this.content.scale||1,!h){var d=this.getBounds(s),u=d.boundX,f=d.boundY;u&&(n=Math.max(Math.min(n,u.to),u.from)),f&&(a=Math.max(Math.min(a,f.to),f.from))}this.friction=l,this.transform=i(i({},this.transform),{},{x:n,y:a,scale:s}),l?(this.state="panning",this.velocity={x:(1/this.friction-1)*(n-this.content.x),y:(1/this.friction-1)*(a-this.content.y),scale:(1/this.friction-1)*(s-this.content.scale)},this.startAnimation()):this.endAnimation()}},{key:"startAnimation",value:function(){var t=this;this.rAF?cancelAnimationFrame(this.rAF):this.trigger("startAnimation"),this.rAF=requestAnimationFrame((function(){return t.animate()}))}},{key:"animate",value:function(){var t=this;if(this.setEdgeForce(),this.setDragForce(),this.velocity.x*=this.friction,this.velocity.y*=this.friction,this.velocity.scale*=this.friction,this.content.x+=this.velocity.x,this.content.y+=this.velocity.y,this.content.scale+=this.velocity.scale,this.isAnimating())this.setTransform();else if("pointerdown"!==this.state)return void this.endAnimation();this.rAF=requestAnimationFrame((function(){return t.animate()}))}},{key:"getBounds",value:function(t){var e=this.boundX,i=this.boundY;if(void 0!==e&&void 0!==i)return{boundX:e,boundY:i};e={from:0,to:0},i={from:0,to:0},t=t||this.transform.scale;var n=this.content.fitWidth*t,o=this.content.fitHeight*t,a=this.viewport.width,s=this.viewport.height;if(n<a){var r=S(.5*(a-n));e.from=r,e.to=r}else e.from=S(a-n);if(o<s){var l=.5*(s-o);i.from=l,i.to=l}else i.from=S(s-o);return{boundX:e,boundY:i}}},{key:"setEdgeForce",value:function(){if("decel"===this.state){var t,e,i,n,o=this.option("bounceForce"),a=this.getBounds(Math.max(this.transform.scale,this.content.scale)),s=a.boundX,r=a.boundY;if(s&&(t=this.content.x<s.from,e=this.content.x>s.to),r&&(i=this.content.y<r.from,n=this.content.y>r.to),t||e){var l=((t?s.from:s.to)-this.content.x)*o,c=this.content.x+(this.velocity.x+l)/this.friction;c>=s.from&&c<=s.to&&(l+=this.velocity.x),this.velocity.x=l,this.recalculateTransform()}if(i||n){var h=((i?r.from:r.to)-this.content.y)*o,d=this.content.y+(h+this.velocity.y)/this.friction;d>=r.from&&d<=r.to&&(h+=this.velocity.y),this.velocity.y=h,this.recalculateTransform()}}}},{key:"setDragResistance",value:function(){if("pointerdown"===this.state){var t,e,i,n,o=this.getBounds(this.dragPosition.scale),a=o.boundX,s=o.boundY;if(a&&(t=this.dragPosition.x<a.from,e=this.dragPosition.x>a.to),s&&(i=this.dragPosition.y<s.from,n=this.dragPosition.y>s.to),(t||e)&&(!t||!e)){var r=t?a.from:a.to,l=r-this.dragPosition.x;this.dragPosition.x=r-.3*l}if((i||n)&&(!i||!n)){var c=i?s.from:s.to,h=c-this.dragPosition.y;this.dragPosition.y=c-.3*h}}}},{key:"setDragForce",value:function(){"pointerdown"===this.state&&(this.velocity.x=this.dragPosition.x-this.content.x,this.velocity.y=this.dragPosition.y-this.content.y,this.velocity.scale=this.dragPosition.scale-this.content.scale)}},{key:"recalculateTransform",value:function(){this.transform.x=this.content.x+this.velocity.x/(1/this.friction-1),this.transform.y=this.content.y+this.velocity.y/(1/this.friction-1),this.transform.scale=this.content.scale+this.velocity.scale/(1/this.friction-1)}},{key:"isAnimating",value:function(){return!(!this.friction||!(Math.abs(this.velocity.x)>.05||Math.abs(this.velocity.y)>.05||Math.abs(this.velocity.scale)>.05))}},{key:"setTransform",value:function(t){var e,n,o,a,s;(t?(e=S(this.transform.x),n=S(this.transform.y),o=this.transform.scale,this.content=i(i({},this.content),{},{x:e,y:n,scale:o})):(e=S(this.content.x),n=S(this.content.y),o=this.content.scale/(this.content.width/this.content.fitWidth),this.content=i(i({},this.content),{},{x:e,y:n})),this.trigger("beforeTransform"),e=S(this.content.x),n=S(this.content.y),t&&this.option("zoom"))?(a=S(this.content.fitWidth*o),s=S(this.content.fitHeight*o),this.content.width=a,this.content.height=s,this.transform=i(i({},this.transform),{},{width:a,height:s,scale:o}),Object.assign(this.$content.style,{width:"".concat(a,"px"),height:"".concat(s,"px"),maxWidth:"none",maxHeight:"none",transform:"translate3d(".concat(e,"px, ").concat(n,"px, 0) scale(1)")})):this.$content.style.transform="translate3d(".concat(e,"px, ").concat(n,"px, 0) scale(").concat(o,")");this.trigger("afterTransform")}},{key:"endAnimation",value:function(t){cancelAnimationFrame(this.rAF),this.rAF=null,this.velocity={x:0,y:0,scale:0},this.setTransform(!0),this.state="ready",this.handleCursor(),!0!==t&&this.trigger("endAnimation")}},{key:"handleCursor",value:function(){var t=this.option("draggableClass");t&&this.option("touch")&&(1==this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale")?this.$container.classList.remove(t):this.$container.classList.add(t))}},{key:"detachEvents",value:function(){this.$content.removeEventListener("load",this.onLoad),this.$container.removeEventListener("wheel",this.onWheel,{passive:!1}),this.$container.removeEventListener("click",this.onClick,{passive:!1}),this.pointerTracker&&(this.pointerTracker.stop(),this.pointerTracker=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"destroy",value:function(){"destroy"!==this.state&&(this.state="destroy",clearTimeout(this.updateTimer),this.updateTimer=null,cancelAnimationFrame(this.rAF),this.rAF=null,this.detachEvents(),this.detachPlugins(),this.resetDragPosition())}}]),n}(O);M.version="4.0.31",M.Plugins={};var I=function(t,e){var i=0;return function(){var n=(new Date).getTime();if(!(n-i<e))return i=n,t.apply(void 0,arguments)}},R=function(){function t(e){o(this,t),this.$container=null,this.$prev=null,this.$next=null,this.carousel=e,this.onRefresh=this.onRefresh.bind(this)}return s(t,[{key:"option",value:function(t){return this.carousel.option("Navigation.".concat(t))}},{key:"createButton",value:function(t){var e,i=this,n=document.createElement("button");n.setAttribute("title",this.carousel.localize("{{".concat(t.toUpperCase(),"}}")));var o=this.option("classNames.button")+" "+this.option("classNames.".concat(t));return(e=n.classList).add.apply(e,m(o.split(" "))),n.setAttribute("tabindex","0"),n.innerHTML=this.carousel.localize(this.option("".concat(t,"Tpl"))),n.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),i.carousel["slide".concat("next"===t?"Next":"Prev")]()})),n}},{key:"build",value:function(){var t;this.$container||(this.$container=document.createElement("div"),(t=this.$container.classList).add.apply(t,m(this.option("classNames.main").split(" "))),this.carousel.$container.appendChild(this.$container));this.$next||(this.$next=this.createButton("next"),this.$container.appendChild(this.$next)),this.$prev||(this.$prev=this.createButton("prev"),this.$container.appendChild(this.$prev))}},{key:"onRefresh",value:function(){var t=this.carousel.pages.length;t<=1||t>1&&this.carousel.elemDimWidth<this.carousel.wrapDimWidth&&!Number.isInteger(this.carousel.option("slidesPerPage"))?this.cleanup():(this.build(),this.$prev.removeAttribute("disabled"),this.$next.removeAttribute("disabled"),this.carousel.option("infiniteX",this.carousel.option("infinite"))||(this.carousel.page<=0&&this.$prev.setAttribute("disabled",""),this.carousel.page>=t-1&&this.$next.setAttribute("disabled","")))}},{key:"cleanup",value:function(){this.$prev&&this.$prev.remove(),this.$prev=null,this.$next&&this.$next.remove(),this.$next=null,this.$container&&this.$container.remove(),this.$container=null}},{key:"attach",value:function(){this.carousel.on("refresh change",this.onRefresh)}},{key:"detach",value:function(){this.carousel.off("refresh change",this.onRefresh),this.cleanup()}}]),t}();R.defaults={prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',classNames:{main:"carousel__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}};var F=function(){function t(e){o(this,t),this.carousel=e,this.$list=null,this.events={change:this.onChange.bind(this),refresh:this.onRefresh.bind(this)}}return s(t,[{key:"buildList",value:function(){var t=this;if(!(this.carousel.pages.length<this.carousel.option("Dots.minSlideCount"))){var e=document.createElement("ol");return e.classList.add("carousel__dots"),e.addEventListener("click",(function(e){if("page"in e.target.dataset){e.preventDefault(),e.stopPropagation();var i=parseInt(e.target.dataset.page,10),n=t.carousel;i!==n.page&&(n.pages.length<3&&n.option("infinite")?n[0==i?"slidePrev":"slideNext"]():n.slideTo(i))}})),this.$list=e,this.carousel.$container.appendChild(e),this.carousel.$container.classList.add("has-dots"),e}}},{key:"removeList",value:function(){this.$list&&(this.$list.parentNode.removeChild(this.$list),this.$list=null),this.carousel.$container.classList.remove("has-dots")}},{key:"rebuildDots",value:function(){var t=this,e=this.$list,i=!!e,n=this.carousel.pages.length;if(n<2)i&&this.removeList();else{i||(e=this.buildList());var o=this.$list.children.length;if(o>n)for(var a=n;a<o;a++)this.$list.removeChild(this.$list.lastChild);else{for(var s=function(e){var i=document.createElement("li");i.classList.add("carousel__dot"),i.dataset.page=e,i.setAttribute("role","button"),i.setAttribute("tabindex","0"),i.setAttribute("title",t.carousel.localize("{{GOTO}}",[["%d",e+1]])),i.addEventListener("keydown",(function(t){var e,n=t.code;"Enter"===n||"NumpadEnter"===n?e=i:"ArrowRight"===n?e=i.nextSibling:"ArrowLeft"===n&&(e=i.previousSibling),e&&e.click()})),t.$list.appendChild(i)},r=o;r<n;r++)s(r);this.setActiveDot()}}}},{key:"setActiveDot",value:function(){if(this.$list){this.$list.childNodes.forEach((function(t){t.classList.remove("is-selected")}));var t=this.$list.childNodes[this.carousel.page];t&&t.classList.add("is-selected")}}},{key:"onChange",value:function(){this.setActiveDot()}},{key:"onRefresh",value:function(){this.rebuildDots()}},{key:"attach",value:function(){this.carousel.on(this.events)}},{key:"detach",value:function(){this.removeList(),this.carousel.off(this.events),this.carousel=null}}]),t}(),N=function(){function t(e){o(this,t),this.carousel=e,this.selectedIndex=null,this.friction=0,this.onNavReady=this.onNavReady.bind(this),this.onNavClick=this.onNavClick.bind(this),this.onNavCreateSlide=this.onNavCreateSlide.bind(this),this.onTargetChange=this.onTargetChange.bind(this)}return s(t,[{key:"addAsTargetFor",value:function(t){this.target=this.carousel,this.nav=t,this.attachEvents()}},{key:"addAsNavFor",value:function(t){this.target=t,this.nav=this.carousel,this.attachEvents()}},{key:"attachEvents",value:function(){this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.on("createSlide",this.onNavCreateSlide),this.nav.on("Panzoom.click",this.onNavClick),this.target.on("change",this.onTargetChange),this.target.on("Panzoom.afterUpdate",this.onTargetChange)}},{key:"onNavReady",value:function(){this.onTargetChange(!0)}},{key:"onNavClick",value:function(t,e,i){var n=i.target.closest(".carousel__slide");if(n){i.stopPropagation();var o=parseInt(n.dataset.index,10),a=this.target.findPageForSlide(o);this.target.page!==a&&this.target.slideTo(a,{friction:this.friction}),this.markSelectedSlide(o)}}},{key:"onNavCreateSlide",value:function(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}},{key:"onTargetChange",value:function(){var t=this.target.pages[this.target.page].indexes[0],e=this.nav.findPageForSlide(t);this.nav.slideTo(e),this.markSelectedSlide(t)}},{key:"markSelectedSlide",value:function(t){this.selectedIndex=t,m(this.nav.slides).filter((function(t){return t.$el&&t.$el.classList.remove("is-nav-selected")}));var e=this.nav.slides[t];e&&e.$el&&e.$el.classList.add("is-nav-selected")}},{key:"attach",value:function(t){var e=t.options.Sync;(e.target||e.nav)&&(e.target?this.addAsNavFor(e.target):e.nav&&this.addAsTargetFor(e.nav),this.friction=e.friction)}},{key:"detach",value:function(){this.nav&&(this.nav.off("ready",this.onNavReady),this.nav.off("Panzoom.click",this.onNavClick),this.nav.off("createSlide",this.onNavCreateSlide)),this.target&&(this.target.off("Panzoom.afterUpdate",this.onTargetChange),this.target.off("change",this.onTargetChange))}}]),t}();N.defaults={friction:.92};var D={Navigation:R,Dots:F,Sync:N},B={slides:[],preload:0,slidesPerPage:"auto",initialPage:null,initialSlide:null,friction:.92,center:!0,infinite:!0,fill:!0,dragFree:!1,prefix:"",classNames:{viewport:"carousel__viewport",track:"carousel__track",slide:"carousel__slide",slideSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}},H=function(t){l(n,t);var e=f(n);function n(t){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,n),a=k(!0,{},B,a),(i=e.call(this,a)).state="init",i.$container=t,!(i.$container instanceof HTMLElement))throw new Error("No root element provided");return i.slideNext=I(i.slideNext.bind(d(i)),250),i.slidePrev=I(i.slidePrev.bind(d(i)),250),i.init(),t.__Carousel=d(i),i}return s(n,[{key:"init",value:function(){this.pages=[],this.page=this.pageIndex=null,this.prevPage=this.prevPageIndex=null,this.attachPlugins(n.Plugins),this.trigger("init"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.$track&&this.pages.length&&(this.$track.style.transform="translate3d(".concat(-1*this.pages[this.page].left,"px, 0px, 0) scale(1)")),this.manageSlideVisiblity(),this.initPanzoom(),this.state="ready",this.trigger("ready")}},{key:"initLayout",value:function(){var t,e,i,n,o=this.option("prefix"),a=this.option("classNames");(this.$viewport=this.option("viewport")||this.$container.querySelector(".".concat(o).concat(a.viewport)),this.$viewport)||(this.$viewport=document.createElement("div"),(t=this.$viewport.classList).add.apply(t,m((o+a.viewport).split(" "))),(e=this.$viewport).append.apply(e,m(this.$container.childNodes)),this.$container.appendChild(this.$viewport));(this.$track=this.option("track")||this.$container.querySelector(".".concat(o).concat(a.track)),this.$track)||(this.$track=document.createElement("div"),(i=this.$track.classList).add.apply(i,m((o+a.track).split(" "))),(n=this.$track).append.apply(n,m(this.$viewport.childNodes)),this.$viewport.appendChild(this.$track))}},{key:"initSlides",value:function(){var t=this;this.slides=[],this.$viewport.querySelectorAll(".".concat(this.option("prefix")).concat(this.option("classNames.slide"))).forEach((function(e){var i={$el:e,isDom:!0};t.slides.push(i),t.trigger("createSlide",i,t.slides.length)})),Array.isArray(this.options.slides)&&(this.slides=k(!0,m(this.slides),this.options.slides))}},{key:"updateMetrics",value:function(){var t,e=this,n=0,o=[];this.slides.forEach((function(i,a){var s=i.$el,r=i.isDom||!t?e.getSlideMetrics(s):t;i.index=a,i.width=r,i.left=n,t=r,n+=r,o.push(a)}));var a=Math.max(this.$track.offsetWidth,S(this.$track.getBoundingClientRect().width)),s=getComputedStyle(this.$track);a-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),this.contentWidth=n,this.viewportWidth=a;var r=[],l=this.option("slidesPerPage");if(Number.isInteger(l)&&n>a)for(var c=0;c<this.slides.length;c+=l)r.push({indexes:o.slice(c,c+l),slides:this.slides.slice(c,c+l)});else for(var h=0,d=0,u=0;u<this.slides.length;u+=1){var f=this.slides[u];(!r.length||d+f.width>a)&&(r.push({indexes:[],slides:[]}),h=r.length-1,d=0),d+=f.width,r[h].indexes.push(u),r[h].slides.push(f)}var v=this.option("center"),p=this.option("fill");r.forEach((function(t,i){t.index=i,t.width=t.slides.reduce((function(t,e){return t+e.width}),0),t.left=t.slides[0].left,v&&(t.left+=.5*(a-t.width)*-1),p&&!e.option("infiniteX",e.option("infinite"))&&n>a&&(t.left=Math.max(t.left,0),t.left=Math.min(t.left,n-a))}));var g,y=[];r.forEach((function(t){var e=i({},t);g&&e.left===g.left?(g.width+=e.width,g.slides=[].concat(m(g.slides),m(e.slides)),g.indexes=[].concat(m(g.indexes),m(e.indexes))):(e.index=y.length,g=e,y.push(e))})),this.pages=y;var b=this.page;if(null===b){var x=this.option("initialSlide");b=null!==x?this.findPageForSlide(x):parseInt(this.option("initialPage",0),10)||0,y[b]||(b=y.length&&b>y.length?y[y.length-1].index:0),this.page=b,this.pageIndex=b}this.updatePanzoom(),this.trigger("refresh")}},{key:"getSlideMetrics",value:function(t){if(!t){var e,i,n=this.slides[0];if((t=document.createElement("div")).dataset.isTestEl=1,t.style.visibility="hidden",(e=t.classList).add.apply(e,m((this.option("prefix")+this.option("classNames.slide")).split(" "))),n.customClass)(i=t.classList).add.apply(i,m(n.customClass.split(" ")));this.$track.prepend(t)}var o=Math.max(t.offsetWidth,S(t.getBoundingClientRect().width)),a=t.currentStyle||window.getComputedStyle(t);return o=o+(parseFloat(a.marginLeft)||0)+(parseFloat(a.marginRight)||0),t.dataset.isTestEl&&t.remove(),o}},{key:"findPageForSlide",value:function(t){t=parseInt(t,10)||0;var e=this.pages.find((function(e){return e.indexes.indexOf(t)>-1}));return e?e.index:null}},{key:"slideNext",value:function(){this.slideTo(this.pageIndex+1)}},{key:"slidePrev",value:function(){this.slideTo(this.pageIndex-1)}},{key:"slideTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.x,n=void 0===i?-1*this.setPage(t,!0):i,o=e.y,a=void 0===o?0:o,s=e.friction,r=void 0===s?this.option("friction"):s;this.Panzoom.content.x===n&&!this.Panzoom.velocity.x&&r||(this.Panzoom.panTo({x:n,y:a,friction:r,ignoreBounds:!0}),"ready"===this.state&&"ready"===this.Panzoom.state&&this.trigger("settle"))}},{key:"initPanzoom",value:function(){var t=this;this.Panzoom&&this.Panzoom.destroy();var e=k(!0,{},{content:this.$track,wrapInner:!1,resizeParent:!1,zoom:!1,click:!1,lockAxis:"x",x:this.pages.length?-1*this.pages[this.page].left:0,centerOnStart:!1,textSelection:function(){return t.option("textSelection",!1)},panOnlyZoomed:function(){return this.content.width<=this.viewport.width}},this.option("Panzoom"));this.Panzoom=new M(this.$container,e),this.Panzoom.on({"*":function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return t.trigger.apply(t,["Panzoom.".concat(e)].concat(n))},afterUpdate:function(){t.updatePage()},beforeTransform:this.onBeforeTransform.bind(this),touchEnd:this.onTouchEnd.bind(this),endAnimation:function(){t.trigger("settle")}}),this.updateMetrics(),this.manageSlideVisiblity()}},{key:"updatePanzoom",value:function(){this.Panzoom&&(this.Panzoom.content=i(i({},this.Panzoom.content),{},{fitWidth:this.contentWidth,origWidth:this.contentWidth,width:this.contentWidth}),this.pages.length>1&&this.option("infiniteX",this.option("infinite"))?this.Panzoom.boundX=null:this.pages.length&&(this.Panzoom.boundX={from:-1*this.pages[this.pages.length-1].left,to:-1*this.pages[0].left}),this.option("infiniteY",this.option("infinite"))?this.Panzoom.boundY=null:this.Panzoom.boundY={from:0,to:0},this.Panzoom.handleCursor())}},{key:"manageSlideVisiblity",value:function(){var t=this,e=this.contentWidth,i=this.viewportWidth,n=this.Panzoom?-1*this.Panzoom.content.x:this.pages.length?this.pages[this.page].left:0,o=this.option("preload"),a=this.option("infiniteX",this.option("infinite")),s=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-left")),r=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-right"));this.slides.forEach((function(l){var c,h,d=0;c=n-s,h=n+i+r,c-=o*(i+s+r),h+=o*(i+s+r);var u=l.left+l.width>c&&l.left<h;c=n+e-s,h=n+e+i+r,c-=o*(i+s+r);var f=a&&l.left+l.width>c&&l.left<h;c=n-e-s,h=n-e+i+r,c-=o*(i+s+r);var v=a&&l.left+l.width>c&&l.left<h;f||u||v?(t.createSlideEl(l),u&&(d=0),f&&(d=-1),v&&(d=1),l.left+l.width>n&&l.left<=n+i+r&&(d=0)):t.removeSlideEl(l),l.hasDiff=d}));var l=0,c=0;this.slides.forEach((function(t,i){var n=0;t.$el?(i!==l||t.hasDiff?n=c+t.hasDiff*e:c=0,t.$el.style.left=Math.abs(n)>.1?"".concat(c+t.hasDiff*e,"px"):"",l++):c+=t.width})),this.markSelectedSlides()}},{key:"createSlideEl",value:function(t){var e;if(t){if(!t.$el){var i,n=document.createElement("div");if(n.dataset.index=t.index,(e=n.classList).add.apply(e,m((this.option("prefix")+this.option("classNames.slide")).split(" "))),t.customClass)(i=n.classList).add.apply(i,m(t.customClass.split(" ")));t.html&&(n.innerHTML=t.html);var o=[];this.slides.forEach((function(t,e){t.$el&&o.push(e)}));var a=t.index,s=null;if(o.length){var r=o.reduce((function(t,e){return Math.abs(e-a)<Math.abs(t-a)?e:t}));s=this.slides[r]}return this.$track.insertBefore(n,s&&s.$el?s.index<t.index?s.$el.nextSibling:s.$el:null),t.$el=n,this.trigger("createSlide",t,a),t}var l,c=t.$el.dataset.index;c&&parseInt(c,10)===t.index||(t.$el.dataset.index=t.index,t.$el.querySelectorAll("[data-lazy-srcset]").forEach((function(t){t.srcset=t.dataset.lazySrcset})),t.$el.querySelectorAll("[data-lazy-src]").forEach((function(t){var e=t.dataset.lazySrc;t instanceof HTMLImageElement?t.src=e:t.style.backgroundImage="url('".concat(e,"')")})),(l=t.$el.dataset.lazySrc)&&(t.$el.style.backgroundImage="url('".concat(l,"')")),t.state="ready")}}},{key:"removeSlideEl",value:function(t){t.$el&&!t.isDom&&(this.trigger("removeSlide",t),t.$el.remove(),t.$el=null)}},{key:"markSelectedSlides",value:function(){var t=this,e=this.option("classNames.slideSelected"),i="aria-hidden";this.slides.forEach((function(n,o){var a=n.$el;if(a){var s=t.pages[t.page];s&&s.indexes&&s.indexes.indexOf(o)>-1?(e&&!a.classList.contains(e)&&(a.classList.add(e),t.trigger("selectSlide",n)),a.removeAttribute(i)):(e&&a.classList.contains(e)&&(a.classList.remove(e),t.trigger("unselectSlide",n)),a.setAttribute(i,!0))}}))}},{key:"updatePage",value:function(){this.updateMetrics(),this.slideTo(this.page,{friction:0})}},{key:"onBeforeTransform",value:function(){this.option("infiniteX",this.option("infinite"))&&this.manageInfiniteTrack(),this.manageSlideVisiblity()}},{key:"manageInfiniteTrack",value:function(){var t=this.contentWidth,e=this.viewportWidth;if(!(!this.option("infiniteX",this.option("infinite"))||this.pages.length<2||t<e)){var i=this.Panzoom,n=!1;return i.content.x<-1*(t-e)&&(i.content.x+=t,this.pageIndex=this.pageIndex-this.pages.length,n=!0),i.content.x>e&&(i.content.x-=t,this.pageIndex=this.pageIndex+this.pages.length,n=!0),n&&"pointerdown"===i.state&&i.resetDragPosition(),n}}},{key:"onTouchEnd",value:function(t,e){var i=this.option("dragFree");if(!i&&this.pages.length>1&&t.dragOffset.time<350&&Math.abs(t.dragOffset.y)<1&&Math.abs(t.dragOffset.x)>5)this[t.dragOffset.x<0?"slideNext":"slidePrev"]();else if(i){var n=g(this.getPageFromPosition(-1*t.transform.x),2)[1];this.setPage(n)}else this.slideToClosest()}},{key:"slideToClosest",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getPageFromPosition(-1*this.Panzoom.content.x),i=g(e,2),n=i[1];this.slideTo(n,t)}},{key:"getPageFromPosition",value:function(t){var e=this.pages.length;this.option("center")&&(t+=.5*this.viewportWidth);var i=Math.floor(t/this.contentWidth);t-=i*this.contentWidth;var n=this.slides.find((function(e){return e.left<=t&&e.left+e.width>t}));if(n){var o=this.findPageForSlide(n.index);return[o,o+i*e]}return[0,0]}},{key:"setPage",value:function(t,e){var i=0,n=parseInt(t,10)||0,o=this.page,a=this.pageIndex,s=this.pages.length,r=this.contentWidth,l=this.viewportWidth;if(t=(n%s+s)%s,this.option("infiniteX",this.option("infinite"))&&r>l){var c=Math.floor(n/s)||0,h=r;if(i=this.pages[t].left+c*h,!0===e&&s>2){var d=-1*this.Panzoom.content.x,u=i-h,f=i+h,v=Math.abs(d-i),p=Math.abs(d-u),g=Math.abs(d-f);g<v&&g<=p?(i=f,n+=s):p<v&&p<g&&(i=u,n-=s)}}else t=n=Math.max(0,Math.min(n,s-1)),i=this.pages.length?this.pages[t].left:0;return this.page=t,this.pageIndex=n,null!==o&&t!==o&&(this.prevPage=o,this.prevPageIndex=a,this.trigger("change",t,o)),i}},{key:"destroy",value:function(){var t=this;this.state="destroy",this.slides.forEach((function(e){t.removeSlideEl(e)})),this.slides=[],this.Panzoom.destroy(),this.detachPlugins()}}]),n}(O);H.version="4.0.31",H.Plugins=D;var W=!("undefined"==typeof window||!window.document||!window.document.createElement),j=null,X=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'],q=function(t){if(t&&W){null===j&&document.createElement("div").focus({get preventScroll(){return j=!0,!1}});try{if(t.setActive)t.setActive();else if(j)t.focus({preventScroll:!0});else{var e=window.pageXOffset||document.body.scrollTop,i=window.pageYOffset||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:i,behavior:"auto"})}}catch(t){}}},U=function(){function t(e){o(this,t),this.fancybox=e,this.viewport=null,this.pendingUpdate=null;for(var i=0,n=["onReady","onResize","onTouchstart","onTouchmove"];i<n.length;i++){var a=n[i];this[a]=this[a].bind(this)}}return s(t,[{key:"onReady",value:function(){var t=window.visualViewport;t&&(this.viewport=t,this.startY=0,t.addEventListener("resize",this.onResize),this.updateViewport()),window.addEventListener("touchstart",this.onTouchstart,{passive:!1}),window.addEventListener("touchmove",this.onTouchmove,{passive:!1}),window.addEventListener("wheel",this.onWheel,{passive:!1})}},{key:"onResize",value:function(){this.updateViewport()}},{key:"updateViewport",value:function(){var t=this.fancybox,e=this.viewport,i=e.scale||1,n=t.$container;if(n){var o="",a="",s="";i-1>.1&&(o="".concat(e.width*i,"px"),a="".concat(e.height*i,"px"),s="translate3d(".concat(e.offsetLeft,"px, ").concat(e.offsetTop,"px, 0) scale(").concat(1/i,")")),n.style.width=o,n.style.height=a,n.style.transform=s}}},{key:"onTouchstart",value:function(t){this.startY=t.touches?t.touches[0].screenY:t.screenY}},{key:"onTouchmove",value:function(t){var e=this.startY,i=window.innerWidth/window.document.documentElement.clientWidth;if(t.cancelable&&!(t.touches.length>1||1!==i)){var n=C(t.composedPath()[0]);if(n){var o=window.getComputedStyle(n),a=parseInt(o.getPropertyValue("height"),10),s=t.touches?t.touches[0].screenY:t.screenY,r=e<=s&&0===n.scrollTop,l=e>=s&&n.scrollHeight-n.scrollTop===a;(r||l)&&t.preventDefault()}else t.preventDefault()}}},{key:"onWheel",value:function(t){C(t.composedPath()[0])||t.preventDefault()}},{key:"cleanup",value:function(){this.pendingUpdate&&(cancelAnimationFrame(this.pendingUpdate),this.pendingUpdate=null);var t=this.viewport;t&&(t.removeEventListener("resize",this.onResize),this.viewport=null),window.removeEventListener("touchstart",this.onTouchstart,!1),window.removeEventListener("touchmove",this.onTouchmove,!1),window.removeEventListener("wheel",this.onWheel,{passive:!1})}},{key:"attach",value:function(){this.fancybox.on("initLayout",this.onReady)}},{key:"detach",value:function(){this.fancybox.off("initLayout",this.onReady),this.cleanup()}}]),t}(),Y=function(){function t(e){o(this,t),this.fancybox=e,this.$container=null,this.state="init";for(var i=0,n=["onPrepare","onClosing","onKeydown"];i<n.length;i++){var a=n[i];this[a]=this[a].bind(this)}this.events={prepare:this.onPrepare,closing:this.onClosing,keydown:this.onKeydown}}return s(t,[{key:"onPrepare",value:function(){this.getSlides().length<this.fancybox.option("Thumbs.minSlideCount")?this.state="disabled":!0===this.fancybox.option("Thumbs.autoStart")&&this.fancybox.Carousel.Panzoom.content.height>=this.fancybox.option("Thumbs.minScreenHeight")&&this.build()}},{key:"onClosing",value:function(){this.Carousel&&this.Carousel.Panzoom.detachEvents()}},{key:"onKeydown",value:function(t,e){e===t.option("Thumbs.key")&&this.toggle()}},{key:"build",value:function(){var t=this;if(!this.$container){var e=document.createElement("div");e.classList.add("fancybox__thumbs"),this.fancybox.$carousel.parentNode.insertBefore(e,this.fancybox.$carousel.nextSibling),this.Carousel=new H(e,k(!0,{Dots:!1,Navigation:!1,Sync:{friction:0},infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,preload:1},this.fancybox.option("Thumbs.Carousel"),{Sync:{target:this.fancybox.Carousel},slides:this.getSlides()})),this.Carousel.Panzoom.on("wheel",(function(e,i){i.preventDefault(),t.fancybox[i.deltaY<0?"prev":"next"]()})),this.$container=e,this.state="visible"}}},{key:"getSlides",value:function(){var t,e=[],i=x(this.fancybox.items);try{for(i.s();!(t=i.n()).done;){var n=t.value,o=n.thumb;o&&e.push({html:this.fancybox.option("Thumbs.tpl").replace(/\{\{src\}\}/gi,o),customClass:"has-thumb has-".concat(n.type||"image")})}}catch(t){i.e(t)}finally{i.f()}return e}},{key:"toggle",value:function(){"visible"===this.state?this.hide():"hidden"===this.state?this.show():this.build()}},{key:"show",value:function(){"hidden"===this.state&&(this.$container.style.display="",this.Carousel.Panzoom.attachEvents(),this.state="visible")}},{key:"hide",value:function(){"visible"===this.state&&(this.Carousel.Panzoom.detachEvents(),this.$container.style.display="none",this.state="hidden")}},{key:"cleanup",value:function(){this.Carousel&&(this.Carousel.destroy(),this.Carousel=null),this.$container&&(this.$container.remove(),this.$container=null),this.state="init"}},{key:"attach",value:function(){this.fancybox.on(this.events)}},{key:"detach",value:function(){this.fancybox.off(this.events),this.cleanup()}}]),t}();Y.defaults={minSlideCount:2,minScreenHeight:500,autoStart:!0,key:"t",Carousel:{},tpl:'<div class="fancybox__thumb" style="background-image:url(\'{{src}}\')"></div>'};var V=function(t,e){for(var i=new URL(t),n=new URLSearchParams(i.search),o=new URLSearchParams,a=0,s=[].concat(m(n),m(Object.entries(e)));a<s.length;a++){var r=g(s[a],2),l=r[0],c=r[1];"t"===l?o.set("start",parseInt(c)):o.set(l,c)}o=o.toString();var h=t.match(/#t=((.*)?\d+s)/);return h&&(o+="#t=".concat(h[1])),o},Z={video:{autoplay:!0,ratio:16/9},youtube:{autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},vimeo:{hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},html5video:{tpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',format:""}},G=function(){function t(e){o(this,t),this.fancybox=e;for(var i=0,n=["onInit","onReady","onCreateSlide","onRemoveSlide","onSelectSlide","onUnselectSlide","onRefresh","onMessage"];i<n.length;i++){var a=n[i];this[a]=this[a].bind(this)}this.events={init:this.onInit,ready:this.onReady,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide,"Carousel.selectSlide":this.onSelectSlide,"Carousel.unselectSlide":this.onUnselectSlide,"Carousel.refresh":this.onRefresh}}return s(t,[{key:"onInit",value:function(){var t,e=x(this.fancybox.items);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.processType(i)}}catch(t){e.e(t)}finally{e.f()}}},{key:"processType",value:function(t){if(t.html)return t.src=t.html,t.type="html",void delete t.html;var e=t.src||"",i=t.type||this.fancybox.options.type,n=null;if(!e||"string"==typeof e){if(n=e.match(/(?:youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){var o=V(e,this.fancybox.option("Html.youtube")),a=encodeURIComponent(n[1]);t.videoId=a,t.src="https://www.youtube-nocookie.com/embed/".concat(a,"?").concat(o),t.thumb=t.thumb||"https://i.ytimg.com/vi/".concat(a,"/mqdefault.jpg"),t.vendor="youtube",i="video"}else if(n=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)){var s=V(e,this.fancybox.option("Html.vimeo")),r=encodeURIComponent(n[1]);t.videoId=r,t.src="https://player.vimeo.com/video/".concat(r,"?").concat(s),t.vendor="vimeo",i="video"}else(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src="//maps.google.".concat(n[1],"/?ll=").concat((n[2]?n[2]+"&z="+Math.floor(n[3])+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&"),"&output=").concat(n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"),i="map"):(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src="//maps.google.".concat(n[1],"/maps?q=").concat(n[2].replace("query=","q=").replace("api=1",""),"&output=embed"),i="map");i||("#"===e.charAt(0)?i="inline":(n=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="html5video",t.format=t.format||"video/"+("ogv"===n[1]?"ogg":n[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":e.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),t.type=i||this.fancybox.option("defaultType","image"),"html5video"!==i&&"video"!==i||(t.video=k({},this.fancybox.option("Html.video"),t.video),t._width&&t._height?t.ratio=parseFloat(t._width)/parseFloat(t._height):t.ratio=t.ratio||t.video.ratio||Z.video.ratio)}}},{key:"onReady",value:function(){var t=this;this.fancybox.Carousel.slides.forEach((function(e){e.$el&&(t.setContent(e),e.index===t.fancybox.getSlide().index&&t.playVideo(e))}))}},{key:"onCreateSlide",value:function(t,e,i){"ready"===this.fancybox.state&&this.setContent(i)}},{key:"loadInlineContent",value:function(t){var e;if(t.src instanceof HTMLElement)e=t.src;else if("string"==typeof t.src){var i=t.src.split("#",2),n=2===i.length&&""===i[0]?i[1]:i[0];e=document.getElementById(n)}if(e){if("clone"===t.type||e.$placeHolder){var o=(e=e.cloneNode(!0)).getAttribute("id");o=o?"".concat(o,"--clone"):"clone-".concat(this.fancybox.id,"-").concat(t.index),e.setAttribute("id",o)}else{var a=document.createElement("div");a.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(a,e),e.$placeHolder=a}this.fancybox.setContent(t,e)}else this.fancybox.setError(t,"{{ELEMENT_NOT_FOUND}}")}},{key:"loadAjaxContent",value:function(t){var e=this.fancybox,i=new XMLHttpRequest;e.showLoading(t),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&"ready"===e.state&&(e.hideLoading(t),200===i.status?e.setContent(t,i.responseText):e.setError(t,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};var n=t.ajax||null;i.open(n?"POST":"GET",t.src),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(n),t.xhr=i}},{key:"loadIframeContent",value:function(t){var e=this,i=this.fancybox,n=document.createElement("iframe");if(n.className="fancybox__iframe",n.setAttribute("id","fancybox__iframe_".concat(i.id,"_").concat(t.index)),n.setAttribute("allow","autoplay; fullscreen"),n.setAttribute("scrolling","auto"),t.$iframe=n,"iframe"!==t.type||!1===t.preload)return n.setAttribute("src",t.src),this.fancybox.setContent(t,n),void this.resizeIframe(t);i.showLoading(t);var o=document.createElement("div");o.style.visibility="hidden",this.fancybox.setContent(t,o),o.appendChild(n),n.onerror=function(){i.setError(t,"{{IFRAME_ERROR}}")},n.onload=function(){i.hideLoading(t);var o=!1;n.isReady||(n.isReady=!0,o=!0),n.src.length&&(n.parentNode.style.visibility="",e.resizeIframe(t),o&&i.revealContent(t))},n.setAttribute("src",t.src)}},{key:"setAspectRatio",value:function(t){var e=t.$content,i=t.ratio;if(e){var n=t._width,o=t._height;if(i||n&&o){Object.assign(e.style,{width:n&&o?"100%":"",height:n&&o?"100%":"",maxWidth:"",maxHeight:""});var a=e.offsetWidth,s=e.offsetHeight;if(o=o||s,(n=n||a)>a||o>s){var r=Math.min(a/n,s/o);n*=r,o*=r}Math.abs(n/o-i)>.01&&(i<n/o?n=o*i:o=n/i),Object.assign(e.style,{width:"".concat(n,"px"),height:"".concat(o,"px")})}}}},{key:"resizeIframe",value:function(t){var e=t.$iframe;if(e){var i=t._width||0,n=t._height||0;i&&n&&(t.autoSize=!1);var o=e.parentNode,a=o&&o.style;if(!1!==t.preload&&!1!==t.autoSize&&a)try{var s=window.getComputedStyle(o),r=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),l=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),c=e.contentWindow.document,h=c.getElementsByTagName("html")[0],d=c.body;a.width="",d.style.overflow="hidden",i=i||h.scrollWidth+r,a.width="".concat(i,"px"),d.style.overflow="",a.flex="0 0 auto",a.height="".concat(d.scrollHeight,"px"),n=h.scrollHeight+l}catch(t){}if(i||n){var u={flex:"0 1 auto"};i&&(u.width="".concat(i,"px")),n&&(u.height="".concat(n,"px")),Object.assign(a,u)}}}},{key:"onRefresh",value:function(t,e){var i=this;e.slides.forEach((function(t){t.$el&&(t.$iframe&&i.resizeIframe(t),t.ratio&&i.setAspectRatio(t))}))}},{key:"setContent",value:function(t){if(t&&!t.isDom){switch(t.type){case"html":this.fancybox.setContent(t,t.src);break;case"html5video":this.fancybox.setContent(t,this.fancybox.option("Html.html5video.tpl").replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.format||t.html5video&&t.html5video.format||"").replace("{{poster}}",t.poster||t.thumb||""));break;case"inline":case"clone":this.loadInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"pdf":case"video":case"map":t.preload=!1;case"iframe":this.loadIframeContent(t)}t.ratio&&this.setAspectRatio(t)}}},{key:"onSelectSlide",value:function(t,e,i){"ready"===t.state&&this.playVideo(i)}},{key:"playVideo",value:function(t){if("html5video"===t.type&&t.video.autoplay)try{var e=t.$el.querySelector("video");if(e){var i=e.play();void 0!==i&&i.then((function(){})).catch((function(t){e.muted=!0,e.play()}))}}catch(t){}if("video"===t.type&&t.$iframe&&t.$iframe.contentWindow){!function e(){if("done"===t.state&&t.$iframe&&t.$iframe.contentWindow){var i;if(t.$iframe.isReady)return t.video&&t.video.autoplay&&(i="youtube"==t.vendor?{event:"command",func:"playVideo"}:{method:"play",value:"true"}),void(i&&t.$iframe.contentWindow.postMessage(JSON.stringify(i),"*"));"youtube"===t.vendor&&(i={event:"listening",id:t.$iframe.getAttribute("id")},t.$iframe.contentWindow.postMessage(JSON.stringify(i),"*"))}t.poller=setTimeout(e,250)}()}}},{key:"onUnselectSlide",value:function(t,e,i){if("html5video"!==i.type){var n=!1;"vimeo"==i.vendor?n={method:"pause",value:"true"}:"youtube"===i.vendor&&(n={event:"command",func:"pauseVideo"}),n&&i.$iframe&&i.$iframe.contentWindow&&i.$iframe.contentWindow.postMessage(JSON.stringify(n),"*"),clearTimeout(i.poller)}else try{i.$el.querySelector("video").pause()}catch(t){}}},{key:"onRemoveSlide",value:function(t,e,i){i.xhr&&(i.xhr.abort(),i.xhr=null),i.$iframe&&(i.$iframe.onload=i.$iframe.onerror=null,i.$iframe.src="//about:blank",i.$iframe=null);var n=i.$content;"inline"===i.type&&n&&(n.classList.remove("fancybox__content"),"none"!==n.style.display&&(n.style.display="none")),i.$closeButton&&(i.$closeButton.remove(),i.$closeButton=null);var o=n&&n.$placeHolder;o&&(o.parentNode.insertBefore(n,o),o.remove(),n.$placeHolder=null)}},{key:"onMessage",value:function(t){try{var e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event){var i,n=x(document.getElementsByClassName("fancybox__iframe"));try{for(n.s();!(i=n.n()).done;){var o=i.value;o.contentWindow===t.source&&(o.isReady=1)}}catch(t){n.e(t)}finally{n.f()}}}else"https://www.youtube-nocookie.com"===t.origin&&"onReady"===e.event&&(document.getElementById(e.id).isReady=1)}catch(t){}}},{key:"attach",value:function(){this.fancybox.on(this.events),window.addEventListener("message",this.onMessage,!1)}},{key:"detach",value:function(){this.fancybox.off(this.events),window.removeEventListener("message",this.onMessage,!1)}}]),t}();G.defaults=Z;var K=function(){function t(e){o(this,t),this.fancybox=e;for(var i=0,n=["onReady","onClosing","onDone","onPageChange","onCreateSlide","onRemoveSlide","onImageStatusChange"];i<n.length;i++){var a=n[i];this[a]=this[a].bind(this)}this.events={ready:this.onReady,closing:this.onClosing,done:this.onDone,"Carousel.change":this.onPageChange,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide}}return s(t,[{key:"onReady",value:function(){var t=this;this.fancybox.Carousel.slides.forEach((function(e){e.$el&&t.setContent(e)}))}},{key:"onDone",value:function(t,e){this.handleCursor(e)}},{key:"onClosing",value:function(t){clearTimeout(this.clickTimer),this.clickTimer=null,t.Carousel.slides.forEach((function(t){t.$image&&(t.state="destroy"),t.Panzoom&&t.Panzoom.detachEvents()})),"closing"===this.fancybox.state&&this.canZoom(t.getSlide())&&this.zoomOut()}},{key:"onCreateSlide",value:function(t,e,i){"ready"===this.fancybox.state&&this.setContent(i)}},{key:"onRemoveSlide",value:function(t,e,i){i.$image&&(i.$el.classList.remove(t.option("Image.canZoomInClass")),i.$image.remove(),i.$image=null),i.Panzoom&&(i.Panzoom.destroy(),i.Panzoom=null),i.$el&&i.$el.dataset&&delete i.$el.dataset.imageFit}},{key:"setContent",value:function(t){var e=this;if(!(t.isDom||t.html||t.type&&"image"!==t.type||t.$image)){t.type="image",t.state="loading";var i=document.createElement("div");i.style.visibility="hidden";var n=document.createElement("img");n.addEventListener("load",(function(i){i.stopImmediatePropagation(),e.onImageStatusChange(t)})),n.addEventListener("error",(function(){e.onImageStatusChange(t)})),n.src=t.src,n.alt="",n.draggable=!1,n.classList.add("fancybox__image"),t.srcset&&n.setAttribute("srcset",t.srcset),t.sizes&&n.setAttribute("sizes",t.sizes),t.$image=n;var o=this.fancybox.option("Image.wrap");if(o){var a=document.createElement("div");a.classList.add("string"==typeof o?o:"fancybox__image-wrap"),a.appendChild(n),i.appendChild(a),t.$wrap=a}else i.appendChild(n);t.$el.dataset.imageFit=this.fancybox.option("Image.fit"),this.fancybox.setContent(t,i),n.complete||n.error?this.onImageStatusChange(t):this.fancybox.showLoading(t)}}},{key:"onImageStatusChange",value:function(t){var e=this,i=t.$image;i&&"loading"===t.state&&(i.complete&&i.naturalWidth&&i.naturalHeight?(this.fancybox.hideLoading(t),"contain"===this.fancybox.option("Image.fit")&&this.initSlidePanzoom(t),t.$el.addEventListener("wheel",(function(i){return e.onWheel(t,i)}),{passive:!1}),t.$content.addEventListener("click",(function(i){return e.onClick(t,i)}),{passive:!1}),this.revealContent(t)):this.fancybox.setError(t,"{{IMAGE_ERROR}}"))}},{key:"initSlidePanzoom",value:function(t){var e=this;t.Panzoom||(t.Panzoom=new M(t.$el,k(!0,this.fancybox.option("Image.Panzoom",{}),{viewport:t.$wrap,content:t.$image,width:t._width,height:t._height,wrapInner:!1,textSelection:!0,touch:this.fancybox.option("Image.touch"),panOnlyZoomed:!0,click:!1,wheel:!1})),t.Panzoom.on("startAnimation",(function(){e.fancybox.trigger("Image.startAnimation",t)})),t.Panzoom.on("endAnimation",(function(){"zoomIn"===t.state&&e.fancybox.done(t),e.handleCursor(t),e.fancybox.trigger("Image.endAnimation",t)})),t.Panzoom.on("afterUpdate",(function(){e.handleCursor(t),e.fancybox.trigger("Image.afterUpdate",t)})))}},{key:"revealContent",value:function(t){null===this.fancybox.Carousel.prevPage&&t.index===this.fancybox.options.startIndex&&this.canZoom(t)?this.zoomIn():this.fancybox.revealContent(t)}},{key:"getZoomInfo",value:function(t){var e=t.$thumb.getBoundingClientRect(),i=e.width,n=e.height,o=t.$content.getBoundingClientRect(),a=o.width,s=o.height,r=o.top-e.top,l=o.left-e.left,c=this.fancybox.option("Image.zoomOpacity");return"auto"===c&&(c=Math.abs(i/n-a/s)>.1),{top:r,left:l,scale:a&&i?i/a:1,opacity:c}}},{key:"canZoom",value:function(t){var e=this.fancybox,i=e.$container;if(window.visualViewport&&1!==window.visualViewport.scale)return!1;if(t.Panzoom&&!t.Panzoom.content.width)return!1;if(!e.option("Image.zoom")||"contain"!==e.option("Image.fit"))return!1;var n=t.$thumb;if(!n||"loading"===t.state)return!1;i.classList.add("fancybox__no-click");var o,a=n.getBoundingClientRect();if(this.fancybox.option("Image.ignoreCoveredThumbnail")){var s=document.elementFromPoint(a.left+1,a.top+1)===n,r=document.elementFromPoint(a.right-1,a.bottom-1)===n;o=s&&r}else o=document.elementFromPoint(a.left+.5*a.width,a.top+.5*a.height)===n;return i.classList.remove("fancybox__no-click"),o}},{key:"zoomIn",value:function(){var t=this.fancybox,e=t.getSlide(),i=e.Panzoom,n=this.getZoomInfo(e),o=n.top,a=n.left,s=n.scale,r=n.opacity;t.trigger("reveal",e),i.panTo({x:-1*a,y:-1*o,scale:s,friction:0,ignoreBounds:!0}),e.$content.style.visibility="",e.state="zoomIn",!0===r&&i.on("afterTransform",(function(t){"zoomIn"!==e.state&&"zoomOut"!==e.state||(t.$content.style.opacity=Math.min(1,1-(1-t.content.scale)/(1-s)))})),i.panTo({x:0,y:0,scale:1,friction:this.fancybox.option("Image.zoomFriction")})}},{key:"zoomOut",value:function(){var t=this,e=this.fancybox,i=e.getSlide(),n=i.Panzoom;if(n){i.state="zoomOut",e.state="customClosing",i.$caption&&(i.$caption.style.visibility="hidden");var o=this.fancybox.option("Image.zoomFriction"),a=function(e){var a=t.getZoomInfo(i),s=a.top,r=a.left,l=a.scale,c=a.opacity;e||c||(o*=.82),n.panTo({x:-1*r,y:-1*s,scale:l,friction:o,ignoreBounds:!0}),o*=.98};window.addEventListener("scroll",a),n.once("endAnimation",(function(){window.removeEventListener("scroll",a),e.destroy()})),a()}}},{key:"handleCursor",value:function(t){if("image"===t.type&&t.$el){var e=t.Panzoom,i=this.fancybox.option("Image.click",!1,t),n=this.fancybox.option("Image.touch"),o=t.$el.classList,a=this.fancybox.option("Image.canZoomInClass"),s=this.fancybox.option("Image.canZoomOutClass");if(o.remove(s),o.remove(a),e&&"toggleZoom"===i)e&&1===e.content.scale&&e.option("maxScale")-e.content.scale>.01?o.add(a):e.content.scale>1&&!n&&o.add(s);else"close"===i&&o.add(s)}}},{key:"onWheel",value:function(t,e){if("ready"===this.fancybox.state&&!1!==this.fancybox.trigger("Image.wheel",e))switch(this.fancybox.option("Image.wheel")){case"zoom":"done"===t.state&&t.Panzoom&&t.Panzoom.zoomWithWheel(e);break;case"close":this.fancybox.close();break;case"slide":this.fancybox[e.deltaY<0?"prev":"next"]()}}},{key:"onClick",value:function(t,e){var i=this;if("ready"===this.fancybox.state){var n=t.Panzoom;if(!n||!n.dragPosition.midPoint&&0===n.dragOffset.x&&0===n.dragOffset.y&&1===n.dragOffset.scale){if(this.fancybox.Carousel.Panzoom.lockAxis)return!1;var o=function(n){switch(n){case"toggleZoom":e.stopPropagation(),t.Panzoom&&t.Panzoom.zoomWithClick(e);break;case"close":i.fancybox.close();break;case"next":e.stopPropagation(),i.fancybox.next()}},a=this.fancybox.option("Image.click"),s=this.fancybox.option("Image.doubleClick");s?this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null,o(s)):this.clickTimer=setTimeout((function(){i.clickTimer=null,o(a)}),300):o(a)}}}},{key:"onPageChange",value:function(t,e){var i=t.getSlide();e.slides.forEach((function(t){t.Panzoom&&"done"===t.state&&t.index!==i.index&&t.Panzoom.panTo({x:0,y:0,scale:1,friction:.8})}))}},{key:"attach",value:function(){this.fancybox.on(this.events)}},{key:"detach",value:function(){this.fancybox.off(this.events)}}]),t}();K.defaults={canZoomInClass:"can-zoom_in",canZoomOutClass:"can-zoom_out",zoom:!0,zoomOpacity:"auto",zoomFriction:.82,ignoreCoveredThumbnail:!1,touch:!0,click:"toggleZoom",doubleClick:null,wheel:"zoom",fit:"contain",wrap:!1,Panzoom:{ratio:1}};var J=function(){function t(e){o(this,t),this.fancybox=e;for(var i=0,n=["onChange","onClosing"];i<n.length;i++){var a=n[i];this[a]=this[a].bind(this)}this.events={initCarousel:this.onChange,"Carousel.change":this.onChange,closing:this.onClosing},this.hasCreatedHistory=!1,this.origHash="",this.timer=null}return s(t,[{key:"onChange",value:function(t){var e=this,i=t.Carousel;this.timer&&clearTimeout(this.timer);var n=null===i.prevPage,o=t.getSlide(),a=new URL(document.URL).hash,s=!1;if(o.slug)s="#"+o.slug;else{var r=o.$trigger&&o.$trigger.dataset,l=t.option("slug")||r&&r.fancybox;l&&l.length&&"true"!==l&&(s="#"+l+(i.slides.length>1?"-"+(o.index+1):""))}n&&(this.origHash=a!==s?a:""),s&&a!==s&&(this.timer=setTimeout((function(){try{window.history[n?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+s),n&&(e.hasCreatedHistory=!0)}catch(t){}}),300))}},{key:"onClosing",value:function(){if(this.timer&&clearTimeout(this.timer),!0!==this.hasSilentClose)try{return void window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(t){}}},{key:"attach",value:function(t){t.on(this.events)}},{key:"detach",value:function(t){t.off(this.events)}}],[{key:"startFromUrl",value:function(){var e=t.Fancybox;if(e&&!e.getInstance()&&!1!==e.defaults.Hash){var i=t.getParsedURL(),n=i.hash,o=i.slug,a=i.index;if(o){var s=document.querySelector('[data-slug="'.concat(n,'"]'));if(s&&s.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!e.getInstance()){var r=document.querySelectorAll('[data-fancybox="'.concat(o,'"]'));r.length&&(null===a&&1===r.length?s=r[0]:a&&(s=r[a-1]),s&&s.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}}}}},{key:"onHashChange",value:function(){var e=t.getParsedURL(),i=e.slug,n=e.index,o=t.Fancybox,a=o&&o.getInstance();if(a&&a.plugins.Hash){if(i){var s=a.Carousel;if(i===a.option("slug"))return s.slideTo(n-1);var r,l=x(s.slides);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.slug&&c.slug===i)return s.slideTo(c.index)}}catch(t){l.e(t)}finally{l.f()}var h=a.getSlide(),d=h.$trigger&&h.$trigger.dataset;if(d&&d.fancybox===i)return s.slideTo(n-1)}a.plugins.Hash.hasSilentClose=!0,a.close()}t.startFromUrl()}},{key:"create",value:function(e){function i(){window.addEventListener("hashchange",t.onHashChange,!1),t.startFromUrl()}t.Fancybox=e,W&&window.requestAnimationFrame((function(){/complete|interactive|loaded/.test(document.readyState)?i():document.addEventListener("DOMContentLoaded",i)}))}},{key:"destroy",value:function(){window.removeEventListener("hashchange",t.onHashChange,!1)}},{key:"getParsedURL",value:function(){var t=window.location.hash.substr(1),e=t.split("-"),i=e.length>1&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||null;return{hash:t,slug:e.join("-"),index:i}}}]),t}(),Q={pageXOffset:0,pageYOffset:0,element:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement},activate:function(t){Q.pageXOffset=window.pageXOffset,Q.pageYOffset=window.pageYOffset,t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},deactivate:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}},tt=function(){function t(e){o(this,t),this.fancybox=e,this.active=!1,this.handleVisibilityChange=this.handleVisibilityChange.bind(this)}return s(t,[{key:"isActive",value:function(){return this.active}},{key:"setTimer",value:function(){var t=this;if(this.active&&!this.timer){var e=this.fancybox.option("slideshow.delay",3e3);this.timer=setTimeout((function(){t.timer=null,t.fancybox.option("infinite")||t.fancybox.getSlide().index!==t.fancybox.Carousel.slides.length-1?t.fancybox.next():t.fancybox.jumpTo(0,{friction:0})}),e);var i=this.$progress;i||((i=document.createElement("div")).classList.add("fancybox__progress"),this.fancybox.$carousel.parentNode.insertBefore(i,this.fancybox.$carousel),this.$progress=i,i.offsetHeight),i.style.transitionDuration="".concat(e,"ms"),i.style.transform="scaleX(1)"}}},{key:"clearTimer",value:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&(this.$progress.style.transitionDuration="",this.$progress.style.transform="",this.$progress.offsetHeight)}},{key:"activate",value:function(){this.active||(this.active=!0,this.fancybox.$container.classList.add("has-slideshow"),"done"===this.fancybox.getSlide().state&&this.setTimer(),document.addEventListener("visibilitychange",this.handleVisibilityChange,!1))}},{key:"handleVisibilityChange",value:function(){this.deactivate()}},{key:"deactivate",value:function(){this.active=!1,this.clearTimer(),this.fancybox.$container.classList.remove("has-slideshow"),document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1)}},{key:"toggle",value:function(){this.active?this.deactivate():this.fancybox.Carousel.slides.length>1&&this.activate()}}]),t}(),et={display:["counter","zoom","slideshow","fullscreen","thumbs","close"],autoEnable:!0,items:{counter:{position:"left",type:"div",class:"fancybox__counter",html:'<span data-fancybox-index=""></span>&nbsp;/&nbsp;<span data-fancybox-count=""></span>',attr:{tabindex:-1}},prev:{type:"button",class:"fancybox__button--prev",label:"PREV",html:'<svg viewBox="0 0 24 24"><path d="M15 4l-8 8 8 8"/></svg>',attr:{"data-fancybox-prev":""}},next:{type:"button",class:"fancybox__button--next",label:"NEXT",html:'<svg viewBox="0 0 24 24"><path d="M8 4l8 8-8 8"/></svg>',attr:{"data-fancybox-next":""}},fullscreen:{type:"button",class:"fancybox__button--fullscreen",label:"TOGGLE_FULLSCREEN",html:'<svg viewBox="0 0 24 24">\n <g><path d="M3 8 V3h5"></path><path d="M21 8V3h-5"></path><path d="M8 21H3v-5"></path><path d="M16 21h5v-5"></path></g>\n <g><path d="M7 2v5H2M17 2v5h5M2 17h5v5M22 17h-5v5"/></g>\n </svg>',click:function(t){t.preventDefault(),Q.element()?Q.deactivate():Q.activate(this.fancybox.$container)}},slideshow:{type:"button",class:"fancybox__button--slideshow",label:"TOGGLE_SLIDESHOW",html:'<svg viewBox="0 0 24 24">\n <g><path d="M6 4v16"/><path d="M20 12L6 20"/><path d="M20 12L6 4"/></g>\n <g><path d="M7 4v15M17 4v15"/></g>\n </svg>',click:function(t){t.preventDefault(),this.Slideshow.toggle()}},zoom:{type:"button",class:"fancybox__button--zoom",label:"TOGGLE_ZOOM",html:'<svg viewBox="0 0 24 24"><circle cx="10" cy="10" r="7"></circle><path d="M16 16 L21 21"></svg>',click:function(t){t.preventDefault();var e=this.fancybox.getSlide().Panzoom;e&&e.toggleZoom()}},download:{type:"link",label:"DOWNLOAD",class:"fancybox__button--download",html:'<svg viewBox="0 0 24 24"><path d="M12 15V3m0 12l-4-4m4 4l4-4M2 17l.62 2.48A2 2 0 004.56 21h14.88a2 2 0 001.94-1.51L22 17"/></svg>',click:function(t){t.stopPropagation()}},thumbs:{type:"button",label:"TOGGLE_THUMBS",class:"fancybox__button--thumbs",html:'<svg viewBox="0 0 24 24"><circle cx="4" cy="4" r="1" /><circle cx="12" cy="4" r="1" transform="rotate(90 12 4)"/><circle cx="20" cy="4" r="1" transform="rotate(90 20 4)"/><circle cx="4" cy="12" r="1" transform="rotate(90 4 12)"/><circle cx="12" cy="12" r="1" transform="rotate(90 12 12)"/><circle cx="20" cy="12" r="1" transform="rotate(90 20 12)"/><circle cx="4" cy="20" r="1" transform="rotate(90 4 20)"/><circle cx="12" cy="20" r="1" transform="rotate(90 12 20)"/><circle cx="20" cy="20" r="1" transform="rotate(90 20 20)"/></svg>',click:function(t){t.stopPropagation();var e=this.fancybox.plugins.Thumbs;e&&e.toggle()}},close:{type:"button",label:"CLOSE",class:"fancybox__button--close",html:'<svg viewBox="0 0 24 24"><path d="M20 20L4 4m16 0L4 20"></path></svg>',attr:{"data-fancybox-close":"",tabindex:0}}}},it=function(){function t(e){var i=this;o(this,t),this.fancybox=e,this.$container=null,this.state="init";for(var n=0,a=["onInit","onPrepare","onDone","onKeydown","onClosing","onChange","onSettle","onRefresh"];n<a.length;n++){var s=a[n];this[s]=this[s].bind(this)}this.events={init:this.onInit,prepare:this.onPrepare,done:this.onDone,keydown:this.onKeydown,closing:this.onClosing,"Carousel.change":this.onChange,"Carousel.settle":this.onSettle,"Carousel.Panzoom.touchStart":function(){return i.onRefresh()},"Image.startAnimation":function(t,e){return i.onRefresh(e)},"Image.afterUpdate":function(t,e){return i.onRefresh(e)}}}return s(t,[{key:"onInit",value:function(){if(this.fancybox.option("Toolbar.autoEnable")){var t,e=!1,i=x(this.fancybox.items);try{for(i.s();!(t=i.n()).done;){if("image"===t.value.type){e=!0;break}}}catch(t){i.e(t)}finally{i.f()}if(!e)return void(this.state="disabled")}var n,o=x(this.fancybox.option("Toolbar.display"));try{for(o.s();!(n=o.n()).done;){var a=n.value;if("close"===(w(a)?a.id:a)){this.fancybox.options.closeButton=!1;break}}}catch(t){o.e(t)}finally{o.f()}}},{key:"onPrepare",value:function(){var t=this.fancybox;if("init"===this.state&&(this.build(),this.update(),this.Slideshow=new tt(t),!t.Carousel.prevPage&&(t.option("slideshow.autoStart")&&this.Slideshow.activate(),t.option("fullscreen.autoStart")&&!Q.element())))try{Q.activate(t.$container)}catch(t){}}},{key:"onFsChange",value:function(){window.scrollTo(Q.pageXOffset,Q.pageYOffset)}},{key:"onSettle",value:function(){var t=this.fancybox,e=this.Slideshow;e&&e.isActive()&&(t.getSlide().index!==t.Carousel.slides.length-1||t.option("infinite")?"done"===t.getSlide().state&&e.setTimer():e.deactivate())}},{key:"onChange",value:function(){this.update(),this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer()}},{key:"onDone",value:function(t,e){var i=this.Slideshow;e.index===t.getSlide().index&&(this.update(),i&&i.isActive()&&(t.option("infinite")||e.index!==t.Carousel.slides.length-1?i.setTimer():i.deactivate()))}},{key:"onRefresh",value:function(t){t&&t.index!==this.fancybox.getSlide().index||(this.update(),!this.Slideshow||!this.Slideshow.isActive()||t&&"done"!==t.state||this.Slideshow.deactivate())}},{key:"onKeydown",value:function(t,e,i){" "===e&&this.Slideshow&&(this.Slideshow.toggle(),i.preventDefault())}},{key:"onClosing",value:function(){this.Slideshow&&this.Slideshow.deactivate(),document.removeEventListener("fullscreenchange",this.onFsChange)}},{key:"createElement",value:function(t){var e,i;("div"===t.type?e=document.createElement("div"):(e=document.createElement("link"===t.type?"a":"button")).classList.add("carousel__button"),e.innerHTML=t.html,e.setAttribute("tabindex",t.tabindex||0),t.class)&&(i=e.classList).add.apply(i,m(t.class.split(" ")));for(var n in t.attr)e.setAttribute(n,t.attr[n]);t.label&&e.setAttribute("title",this.fancybox.localize("{{".concat(t.label,"}}"))),t.click&&e.addEventListener("click",t.click.bind(this)),"prev"===t.id&&e.setAttribute("data-fancybox-prev",""),"next"===t.id&&e.setAttribute("data-fancybox-next","");var o=e.querySelector("svg");return o&&(o.setAttribute("role","img"),o.setAttribute("tabindex","-1"),o.setAttribute("xmlns","http://www.w3.org/2000/svg")),e}},{key:"build",value:function(){var t=this;this.cleanup();var e,i=this.fancybox.option("Toolbar.items"),n=[{position:"left",items:[]},{position:"center",items:[]},{position:"right",items:[]}],o=this.fancybox.plugins.Thumbs,a=x(this.fancybox.option("Toolbar.display"));try{var s=function(){var a=e.value,s=void 0,r=void 0;if(w(a)?(s=a.id,r=k({},i[s],a)):r=i[s=a],["counter","next","prev","slideshow"].includes(s)&&t.fancybox.items.length<2)return"continue";if("fullscreen"===s){if(!document.fullscreenEnabled||window.fullScreen)return"continue";document.addEventListener("fullscreenchange",t.onFsChange)}if("thumbs"===s&&(!o||"disabled"===o.state))return"continue";if(!r)return"continue";var l=r.position||"right",c=n.find((function(t){return t.position===l}));c&&c.items.push(r)};for(a.s();!(e=a.n()).done;)s()}catch(t){a.e(t)}finally{a.f()}var r=document.createElement("div");r.classList.add("fancybox__toolbar");for(var l=0,c=n;l<c.length;l++){var h=c[l];if(h.items.length){var d=document.createElement("div");d.classList.add("fancybox__toolbar__items"),d.classList.add("fancybox__toolbar__items--".concat(h.position));var u,f=x(h.items);try{for(f.s();!(u=f.n()).done;){var v=u.value;d.appendChild(this.createElement(v))}}catch(t){f.e(t)}finally{f.f()}r.appendChild(d)}}this.fancybox.$carousel.parentNode.insertBefore(r,this.fancybox.$carousel),this.$container=r}},{key:"update",value:function(){var t,e=this.fancybox.getSlide(),i=e.index,n=this.fancybox.items.length,o=e.downloadSrc||("image"!==e.type||e.error?null:e.src),a=x(this.fancybox.$container.querySelectorAll("a.fancybox__button--download"));try{for(a.s();!(t=a.n()).done;){var s=t.value;o?(s.removeAttribute("disabled"),s.removeAttribute("tabindex"),s.setAttribute("href",o),s.setAttribute("download",o),s.setAttribute("target","_blank")):(s.setAttribute("disabled",""),s.setAttribute("tabindex",-1),s.removeAttribute("href"),s.removeAttribute("download"))}}catch(t){a.e(t)}finally{a.f()}var r,l=e.Panzoom,c=l&&l.option("maxScale")>l.option("baseScale"),h=x(this.fancybox.$container.querySelectorAll(".fancybox__button--zoom"));try{for(h.s();!(r=h.n()).done;){var d=r.value;c?d.removeAttribute("disabled"):d.setAttribute("disabled","")}}catch(t){h.e(t)}finally{h.f()}var u,f=x(this.fancybox.$container.querySelectorAll("[data-fancybox-index]"));try{for(f.s();!(u=f.n()).done;){u.value.innerHTML=e.index+1}}catch(t){f.e(t)}finally{f.f()}var v,p=x(this.fancybox.$container.querySelectorAll("[data-fancybox-count]"));try{for(p.s();!(v=p.n()).done;){v.value.innerHTML=n}}catch(t){p.e(t)}finally{p.f()}if(!this.fancybox.option("infinite")){var g,m=x(this.fancybox.$container.querySelectorAll("[data-fancybox-prev]"));try{for(m.s();!(g=m.n()).done;){var y=g.value;0===i?y.setAttribute("disabled",""):y.removeAttribute("disabled")}}catch(t){m.e(t)}finally{m.f()}var b,w=x(this.fancybox.$container.querySelectorAll("[data-fancybox-next]"));try{for(w.s();!(b=w.n()).done;){var k=b.value;i===n-1?k.setAttribute("disabled",""):k.removeAttribute("disabled")}}catch(t){w.e(t)}finally{w.f()}}}},{key:"cleanup",value:function(){this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer(),this.$container&&this.$container.remove(),this.$container=null}},{key:"attach",value:function(){this.fancybox.on(this.events)}},{key:"detach",value:function(){this.fancybox.off(this.events),this.cleanup()}}]),t}();it.defaults=et;var nt={ScrollLock:U,Thumbs:Y,Html:G,Toolbar:it,Image:K,Hash:J},ot={startIndex:0,preload:1,infinite:!0,showClass:"fancybox-zoomInUp",hideClass:"fancybox-fadeOut",animated:!0,hideScrollbar:!0,parentEl:null,mainClass:null,autoFocus:!0,trapFocus:!0,placeFocusBack:!0,click:"close",closeButton:"inside",dragToClose:!0,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"next",ArrowDown:"prev",ArrowRight:"next",ArrowLeft:"prev"},template:{closeButton:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg>',spinner:'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="25 25 50 50" tabindex="-1"><circle cx="50" cy="50" r="20"/></svg>',main:null},l10n:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}},at=new Map,st=0,rt=function(t){l(i,t);var e=f(i);function i(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,i),t=t.map((function(t){return t.width&&(t._width=t.width),t.height&&(t._height=t.height),t})),(n=e.call(this,k(!0,{},ot,a))).bindHandlers(),n.state="init",n.setItems(t),n.attachPlugins(i.Plugins),n.trigger("init"),!0===n.option("hideScrollbar")&&n.hideScrollbar(),n.initLayout(),n.initCarousel(),n.attachEvents(),at.set(n.id,d(n)),n.trigger("prepare"),n.state="ready",n.trigger("ready"),n.$container.setAttribute("aria-hidden","false"),n.option("trapFocus")&&n.focus(),n}return s(i,[{key:"option",value:function(t){for(var e,n=this.getSlide(),o=n?n[t]:void 0,a=arguments.length,s=new Array(a>1?a-1:0),r=1;r<a;r++)s[r-1]=arguments[r];if(void 0!==o){var l;if("function"==typeof o)o=(l=o).call.apply(l,[this,this].concat(s));return o}return(e=p(c(i.prototype),"option",this)).call.apply(e,[this,t].concat(s))}},{key:"bindHandlers",value:function(){for(var t=0,e=["onMousedown","onKeydown","onClick","onFocus","onCreateSlide","onSettle","onTouchMove","onTouchEnd","onTransform"];t<e.length;t++){var i=e[t];this[i]=this[i].bind(this)}}},{key:"attachEvents",value:function(){document.addEventListener("mousedown",this.onMousedown),document.addEventListener("keydown",this.onKeydown,!0),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),this.$container.addEventListener("click",this.onClick)}},{key:"detachEvents",value:function(){document.removeEventListener("mousedown",this.onMousedown),document.removeEventListener("keydown",this.onKeydown,!0),document.removeEventListener("focus",this.onFocus,!0),this.$container.removeEventListener("click",this.onClick)}},{key:"initLayout",value:function(){var t=this;this.$root=this.option("parentEl")||document.body;var e=this.option("template.main");e&&(this.$root.insertAdjacentHTML("beforeend",this.localize(e)),this.$container=this.$root.querySelector(".fancybox__container")),this.$container||(this.$container=document.createElement("div"),this.$root.appendChild(this.$container)),this.$container.onscroll=function(){return t.$container.scrollLeft=0,!1},Object.entries({class:"fancybox__container",role:"dialog",tabIndex:"-1","aria-modal":"true","aria-hidden":"true","aria-label":this.localize("{{MODAL}}")}).forEach((function(e){var i;return(i=t.$container).setAttribute.apply(i,m(e))})),this.option("animated")&&this.$container.classList.add("is-animated"),this.$backdrop=this.$container.querySelector(".fancybox__backdrop"),this.$backdrop||(this.$backdrop=document.createElement("div"),this.$backdrop.classList.add("fancybox__backdrop"),this.$container.appendChild(this.$backdrop)),this.$carousel=this.$container.querySelector(".fancybox__carousel"),this.$carousel||(this.$carousel=document.createElement("div"),this.$carousel.classList.add("fancybox__carousel"),this.$container.appendChild(this.$carousel)),this.$container.Fancybox=this,this.id=this.$container.getAttribute("id"),this.id||(this.id=this.options.id||++st,this.$container.setAttribute("id","fancybox-"+this.id));var i,n=this.option("mainClass");n&&(i=this.$container.classList).add.apply(i,m(n.split(" ")));return document.documentElement.classList.add("with-fancybox"),this.trigger("initLayout"),this}},{key:"setItems",value:function(t){var e,i=[],n=x(t);try{for(n.s();!(e=n.n()).done;){var o=e.value,a=o.$trigger;if(a){var s=a.dataset||{};o.src=s.src||a.getAttribute("href")||o.src,o.type=s.type||o.type,!o.src&&a instanceof HTMLImageElement&&(o.src=a.currentSrc||o.$trigger.src)}var r=o.$thumb;if(!r){var l=o.$trigger&&o.$trigger.origTarget;l&&(r=l instanceof HTMLImageElement?l:l.querySelector("img:not([aria-hidden])")),!r&&o.$trigger&&(r=o.$trigger instanceof HTMLImageElement?o.$trigger:o.$trigger.querySelector("img:not([aria-hidden])"))}o.$thumb=r||null;var c=o.thumb;!c&&r&&!(c=r.currentSrc||r.src)&&r.dataset&&(c=r.dataset.lazySrc||r.dataset.src),c||"image"!==o.type||(c=o.src),o.thumb=c||null,o.caption=o.caption||"",i.push(o)}}catch(t){n.e(t)}finally{n.f()}this.items=i}},{key:"initCarousel",value:function(){var t=this;return this.Carousel=new H(this.$carousel,k(!0,{},{prefix:"",classNames:{viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"},textSelection:!0,preload:this.option("preload"),friction:.88,slides:this.items,initialPage:this.options.startIndex,slidesPerPage:1,infiniteX:this.option("infinite"),infiniteY:!0,l10n:this.option("l10n"),Dots:!1,Navigation:{classNames:{main:"fancybox__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}},Panzoom:{textSelection:!0,panOnlyZoomed:function(){return t.Carousel&&t.Carousel.pages&&t.Carousel.pages.length<2&&!t.option("dragToClose")},lockAxis:function(){if(t.Carousel){var e="x";return t.option("dragToClose")&&(e+="y"),e}}},on:{"*":function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return t.trigger.apply(t,["Carousel.".concat(e)].concat(n))},init:function(e){return t.Carousel=e},createSlide:this.onCreateSlide,settle:this.onSettle}},this.option("Carousel"))),this.option("dragToClose")&&this.Carousel.Panzoom.on({touchMove:this.onTouchMove,afterTransform:this.onTransform,touchEnd:this.onTouchEnd}),this.trigger("initCarousel"),this}},{key:"onCreateSlide",value:function(t,e){var i=e.caption||"";if("function"==typeof this.options.caption&&(i=this.options.caption.call(this,this,this.Carousel,e)),"string"==typeof i&&i.length){var n=document.createElement("div"),o="fancybox__caption_".concat(this.id,"_").concat(e.index);n.className="fancybox__caption",n.innerHTML=i,n.setAttribute("id",o),e.$caption=e.$el.appendChild(n),e.$el.classList.add("has-caption"),e.$el.setAttribute("aria-labelledby",o)}}},{key:"onSettle",value:function(){this.option("autoFocus")&&this.focus()}},{key:"onFocus",value:function(t){this.isTopmost()&&this.focus(t)}},{key:"onClick",value:function(t){if(!t.defaultPrevented){var e=t.composedPath()[0];if(e.matches("[data-fancybox-close]"))return t.preventDefault(),void i.close(!1,t);if(e.matches("[data-fancybox-next]"))return t.preventDefault(),void i.next();if(e.matches("[data-fancybox-prev]"))return t.preventDefault(),void i.prev();var n=document.activeElement;if(n){if(n.closest("[contenteditable]"))return;e.matches(X)||n.blur()}if(!e.closest(".fancybox__content"))if(!getSelection().toString().length)if(!1!==this.trigger("click",t))switch(this.option("click")){case"close":this.close();break;case"next":this.next()}}}},{key:"onTouchMove",value:function(){var t=this.getSlide().Panzoom;return!t||1===t.content.scale}},{key:"onTouchEnd",value:function(t){var e=t.dragOffset.y;Math.abs(e)>=150||Math.abs(e)>=35&&t.dragOffset.time<350?(this.option("hideClass")&&(this.getSlide().hideClass="fancybox-throwOut".concat(t.content.y<0?"Up":"Down")),this.close()):"y"===t.lockAxis&&t.panTo({y:0})}},{key:"onTransform",value:function(t){if(this.$backdrop){var e=Math.abs(t.content.y),i=e<1?"":Math.max(.33,Math.min(1,1-e/t.content.fitHeight*1.5));this.$container.style.setProperty("--fancybox-ts",i?"0s":""),this.$container.style.setProperty("--fancybox-opacity",i)}}},{key:"onMousedown",value:function(){"ready"===this.state&&document.body.classList.add("is-using-mouse")}},{key:"onKeydown",value:function(t){if(this.isTopmost()){document.body.classList.remove("is-using-mouse");var e=t.key,i=this.option("keyboard");if(i&&!t.ctrlKey&&!t.altKey&&!t.shiftKey){var n=t.composedPath()[0],o=document.activeElement&&document.activeElement.classList,a=o&&o.contains("carousel__button");if("Escape"!==e&&!a)if(t.target.isContentEditable||-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName))return;if(!1!==this.trigger("keydown",e,t)){var s=i[e];"function"==typeof this[s]&&this[s]()}}}}},{key:"getSlide",value:function(){var t=this.Carousel;if(!t)return null;var e=null===t.page?t.option("initialPage"):t.page,i=t.pages||[];return i.length&&i[e]?i[e].slides[0]:null}},{key:"focus",value:function(t){if(!(i.ignoreFocusChange||["init","closing","customClosing","destroy"].indexOf(this.state)>-1)){var e=this.$container,n=this.getSlide(),o="done"===n.state?n.$el:null;if(!o||!o.contains(document.activeElement)){t&&t.preventDefault(),i.ignoreFocusChange=!0;for(var a,s=[],r=0,l=Array.from(e.querySelectorAll(X));r<l.length;r++){var c=l[r],h=c.offsetParent,d=o&&o.contains(c),u=!this.Carousel.$viewport.contains(c);h&&(d||u)?(s.push(c),void 0!==c.dataset.origTabindex&&(c.tabIndex=c.dataset.origTabindex,c.removeAttribute("data-orig-tabindex")),(c.hasAttribute("autoFocus")||!a&&d&&!c.classList.contains("carousel__button"))&&(a=c)):(c.dataset.origTabindex=void 0===c.dataset.origTabindex?c.getAttribute("tabindex"):c.dataset.origTabindex,c.tabIndex=-1)}t?s.indexOf(t.target)>-1?this.lastFocus=t.target:this.lastFocus===e?q(s[s.length-1]):q(e):this.option("autoFocus")&&a?q(a):s.indexOf(document.activeElement)<0&&q(e),this.lastFocus=document.activeElement,i.ignoreFocusChange=!1}}}},{key:"hideScrollbar",value:function(){if(W){var t=window.innerWidth-document.documentElement.getBoundingClientRect().width,e="fancybox-style-noscroll",i=document.getElementById(e);i||t>0&&((i=document.createElement("style")).id=e,i.type="text/css",i.innerHTML=".compensate-for-scrollbar {padding-right: ".concat(t,"px;}"),document.getElementsByTagName("head")[0].appendChild(i),document.body.classList.add("compensate-for-scrollbar"))}}},{key:"revealScrollbar",value:function(){document.body.classList.remove("compensate-for-scrollbar");var t=document.getElementById("fancybox-style-noscroll");t&&t.remove()}},{key:"clearContent",value:function(t){this.Carousel.trigger("removeSlide",t),t.$content&&(t.$content.remove(),t.$content=null),t.$closeButton&&(t.$closeButton.remove(),t.$closeButton=null),t._className&&t.$el.classList.remove(t._className)}},{key:"setContent",value:function(t,e){var i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.$el;if(e instanceof HTMLElement)["img","iframe","video","audio"].indexOf(e.nodeName.toLowerCase())>-1?(i=document.createElement("div")).appendChild(e):i=e;else{var a=document.createRange().createContextualFragment(e);(i=document.createElement("div")).appendChild(a)}if(t.filter&&!t.error&&(i=i.querySelector(t.filter)),i instanceof Element)return t._className="has-".concat(n.suffix||t.type||"unknown"),o.classList.add(t._className),i.classList.add("fancybox__content"),"none"!==i.style.display&&"none"!==getComputedStyle(i).getPropertyValue("display")||(i.style.display=t.display||this.option("defaultDisplay")||"flex"),t.id&&i.setAttribute("id",t.id),t.$content=i,o.prepend(i),this.manageCloseButton(t),"loading"!==t.state&&this.revealContent(t),i;this.setError(t,"{{ELEMENT_NOT_FOUND}}")}},{key:"manageCloseButton",value:function(t){var e=this,i=void 0===t.closeButton?this.option("closeButton"):t.closeButton;if(i&&("top"!==i||!this.$closeButton)){var n=document.createElement("button");n.classList.add("carousel__button","is-close"),n.setAttribute("title",this.options.l10n.CLOSE),n.innerHTML=this.option("template.closeButton"),n.addEventListener("click",(function(t){return e.close(t)})),"inside"===i?(t.$closeButton&&t.$closeButton.remove(),t.$closeButton=t.$content.appendChild(n)):this.$closeButton=this.$container.insertBefore(n,this.$container.firstChild)}}},{key:"revealContent",value:function(t){var e=this;this.trigger("reveal",t),t.$content.style.visibility="";var i=!1;t.error||"loading"===t.state||null!==this.Carousel.prevPage||t.index!==this.options.startIndex||(i=void 0===t.showClass?this.option("showClass"):t.showClass),i?(t.state="animating",this.animateCSS(t.$content,i,(function(){e.done(t)}))):this.done(t)}},{key:"animateCSS",value:function(t,e,i){if(t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!0,cancelable:!0})),t&&e){t.addEventListener("animationend",(function n(o){o.currentTarget===this&&(t.removeEventListener("animationend",n),i&&i(),t.classList.remove(e))})),t.classList.add(e)}else"function"==typeof i&&i()}},{key:"done",value:function(t){t.state="done",this.trigger("done",t);var e=this.getSlide();e&&t.index===e.index&&this.option("autoFocus")&&this.focus()}},{key:"setError",value:function(t,e){t.error=e,this.hideLoading(t),this.clearContent(t);var i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,i,{suffix:"error"})}},{key:"showLoading",value:function(t){var e=this;t.state="loading",t.$el.classList.add("is-loading");var i=t.$el.querySelector(".fancybox__spinner");i||((i=document.createElement("div")).classList.add("fancybox__spinner"),i.innerHTML=this.option("template.spinner"),i.addEventListener("click",(function(){e.Carousel.Panzoom.velocity||e.close()})),t.$el.prepend(i))}},{key:"hideLoading",value:function(t){var e=t.$el&&t.$el.querySelector(".fancybox__spinner");e&&(e.remove(),t.$el.classList.remove("is-loading")),"loading"===t.state&&(this.trigger("load",t),t.state="ready")}},{key:"next",value:function(){var t=this.Carousel;t&&t.pages.length>1&&t.slideNext()}},{key:"prev",value:function(){var t=this.Carousel;t&&t.pages.length>1&&t.slidePrev()}},{key:"jumpTo",value:function(){var t;this.Carousel&&(t=this.Carousel).slideTo.apply(t,arguments)}},{key:"isClosing",value:function(){return["closing","customClosing","destroy"].includes(this.state)}},{key:"isTopmost",value:function(){return i.getInstance().id==this.id}},{key:"close",value:function(t){var e=this;if(t&&t.preventDefault(),!this.isClosing()&&!1!==this.trigger("shouldClose",t)&&(this.state="closing",this.Carousel.Panzoom.destroy(),this.detachEvents(),this.trigger("closing",t),"destroy"!==this.state)){this.$container.setAttribute("aria-hidden","true"),this.$container.classList.add("is-closing");var i=this.getSlide();if(this.Carousel.slides.forEach((function(t){t.$content&&t.index!==i.index&&e.Carousel.trigger("removeSlide",t)})),"closing"===this.state){var n=void 0===i.hideClass?this.option("hideClass"):i.hideClass;this.animateCSS(i.$content,n,(function(){e.destroy()}),!0)}}}},{key:"destroy",value:function(){if("destroy"!==this.state){this.state="destroy",this.trigger("destroy");var t=this.option("placeFocusBack")?this.option("triggerTarget",this.getSlide().$trigger):null;this.Carousel.destroy(),this.detachPlugins(),this.Carousel=null,this.options={},this.events={},this.$container.remove(),this.$container=this.$backdrop=this.$carousel=null,t&&q(t),at.delete(this.id);var e=i.getInstance();e?e.focus():(document.documentElement.classList.remove("with-fancybox"),document.body.classList.remove("is-using-mouse"),this.revealScrollbar())}}}],[{key:"show",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new i(t,e)}},{key:"fromEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t.defaultPrevented&&!(t.button&&0!==t.button||t.ctrlKey||t.metaKey||t.shiftKey)){var n,o,a,s=t.composedPath()[0],r=s;if((r.matches("[data-fancybox-trigger]")||(r=r.closest("[data-fancybox-trigger]")))&&(e.triggerTarget=r,n=r&&r.dataset&&r.dataset.fancyboxTrigger),n){var l=document.querySelectorAll('[data-fancybox="'.concat(n,'"]')),c=parseInt(r.dataset.fancyboxIndex,10)||0;r=l.length?l[c]:r}Array.from(i.openers.keys()).reverse().some((function(e){a=r||s;var i=!1;try{a instanceof Element&&("string"==typeof e||e instanceof String)&&(i=a.matches(e)||(a=a.closest(e)))}catch(t){}return!!i&&(t.preventDefault(),o=e,!0)}));var h=!1;if(o){e.event=t,e.target=a,a.origTarget=s,h=i.fromOpener(o,e);var d=i.getInstance();d&&"ready"===d.state&&t.detail&&document.body.classList.add("is-using-mouse")}return h}}},{key:"fromOpener",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){for(var e=["false","0","no","null","undefined"],i=["true","1","yes"],n=Object.assign({},t.dataset),o={},a=0,s=Object.entries(n);a<s.length;a++){var r=g(s[a],2),l=r[0],c=r[1];if("fancybox"!==l)if("width"===l||"height"===l)o["_".concat(l)]=c;else if("string"==typeof c||c instanceof String)if(e.indexOf(c)>-1)o[l]=!1;else if(i.indexOf(o[l])>-1)o[l]=!0;else try{o[l]=JSON.parse(c)}catch(t){o[l]=c}else o[l]=c}return t instanceof Element&&(o.$trigger=t),o},o=[],a=e.startIndex||0,s=e.target||null,r=void 0!==(e=k({},e,i.openers.get(t))).groupAll&&e.groupAll,l=void 0===e.groupAttr?"data-fancybox":e.groupAttr,c=l&&s?s.getAttribute("".concat(l)):"";if(!s||c||r){var h=e.root||(s?s.getRootNode():document.body);o=[].slice.call(h.querySelectorAll(t))}if(s&&!r&&(o=c?o.filter((function(t){return t.getAttribute("".concat(l))===c})):[s]),!o.length)return!1;var d=i.getInstance();return!(d&&o.indexOf(d.options.$trigger)>-1)&&(a=s?o.indexOf(s):a,new i(o=o.map(n),k({},e,{startIndex:a,$trigger:s})))}},{key:"bind",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function n(){document.body.addEventListener("click",i.fromEvent,!1)}W&&(i.openers.size||(/complete|interactive|loaded/.test(document.readyState)?n():document.addEventListener("DOMContentLoaded",n)),i.openers.set(t,e))}},{key:"unbind",value:function(t){i.openers.delete(t),i.openers.size||i.destroy()}},{key:"destroy",value:function(){for(var t;t=i.getInstance();)t.destroy();i.openers=new Map,document.body.removeEventListener("click",i.fromEvent,!1)}},{key:"getInstance",value:function(t){return t?at.get(t):Array.from(at.values()).reverse().find((function(t){return!t.isClosing()&&t}))||null}},{key:"close",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1?arguments[1]:void 0;if(t){var n,o=x(at.values());try{for(o.s();!(n=o.n()).done;){var a=n.value;a.close(e)}}catch(t){o.e(t)}finally{o.f()}}else{var s=i.getInstance();s&&s.close(e)}}},{key:"next",value:function(){var t=i.getInstance();t&&t.next()}},{key:"prev",value:function(){var t=i.getInstance();t&&t.prev()}}]),i}(O);rt.version="4.0.31",rt.defaults=ot,rt.openers=new Map,rt.Plugins=nt,rt.bind("[data-fancybox]");for(var lt=0,ct=Object.entries(rt.Plugins||{});lt<ct.length;lt++){var ht=g(ct[lt],2);ht[0];var dt=ht[1];"function"==typeof dt.create&&dt.create(rt)}t.Carousel=H,t.Fancybox=rt,t.Panzoom=M}));
 
 
 
 
 
 
 
 
 
 
 
js/mixitup.min.js CHANGED
@@ -1,18 +1,14 @@
1
  /**!
2
- * MixItUp v3.3.1
3
- * A high-performance, dependency-free library for animated filtering, sorting and more
4
- * Build 94e0fbf6-cd0b-4987-b3c0-14b59b67b8a0
5
  *
6
- * @copyright Copyright 2014-2018 KunkaLabs Limited.
7
  * @author KunkaLabs Limited.
8
- * @link https://www.kunkalabs.com/mixitup/
9
  *
10
  * @license Commercial use requires a commercial license.
11
- * https://www.kunkalabs.com/mixitup/licenses/
12
  *
13
- * Non-commercial use permitted under same terms as CC BY-NC 3.0 license.
14
  * http://creativecommons.org/licenses/by-nc/3.0/
15
  */
16
- !function(t){"use strict";var e=null,n=null;!function(){var e=["webkit","moz","o","ms"],n=t.document.createElement("div"),a=-1;for(a=0;a<e.length&&!t.requestAnimationFrame;a++)t.requestAnimationFrame=t[e[a]+"RequestAnimationFrame"];"undefined"==typeof n.nextElementSibling&&Object.defineProperty(t.Element.prototype,"nextElementSibling",{get:function(){for(var t=this.nextSibling;t;){if(1===t.nodeType)return t;t=t.nextSibling}return null}}),function(t){t.matches=t.matches||t.machesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){return Array.prototype.indexOf.call(this.parentElement.querySelectorAll(t),this)>-1}}(t.Element.prototype),Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!1,n=[],a=-1;return e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=n.length,function(i){var o=[],r="",s=-1;if("object"!=typeof i&&("function"!=typeof i||null===i))throw new TypeError("Object.keys called on non-object");for(r in i)t.call(i,r)&&o.push(r);if(e)for(s=0;s<a;s++)t.call(i,n[s])&&o.push(n[s]);return o}}()),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),"function"!=typeof Object.create&&(Object.create=function(t){var e=function(){};return function(n,a){if(n!==Object(n)&&null!==n)throw TypeError("Argument must be an object, or null");e.prototype=n||{};var i=new e;return e.prototype=null,a!==t&&Object.defineProperties(i,a),null===n&&(i.__proto__=null),i}}()),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e,n,a,i;if(null===this)throw new TypeError;if(a=Object(this),i=a.length>>>0,0===i)return-1;if(e=0,arguments.length>1&&(e=Number(arguments[1]),e!==e?e=0:0!==e&&e!==1/0&&e!==-(1/0)&&(e=(e>0||-1)*Math.floor(Math.abs(e)))),e>=i)return-1;for(n=e>=0?e:Math.max(i-Math.abs(e),0);n<i;n++)if(n in a&&a[n]===t)return n;return-1}),Function.prototype.bind||(Function.prototype.bind=function(t){var e,n,a,i;if("function"!=typeof this)throw new TypeError;return e=Array.prototype.slice.call(arguments,1),n=this,a=function(){},i=function(){return n.apply(this instanceof a?this:t,e.concat(Array.prototype.slice.call(arguments)))},this.prototype&&(a.prototype=this.prototype),i.prototype=new a,i}),t.Element.prototype.dispatchEvent||(t.Element.prototype.dispatchEvent=function(t){try{return this.fireEvent("on"+t.type,t)}catch(e){}})}(),e=function(a,i,o){var r=null,s=!1,l=null,c=null,u=null,f=null,h=[],d="",m=[],g=-1;if(u=o||t.document,(s=arguments[3])&&(s="boolean"==typeof s),"string"==typeof a)m=u.querySelectorAll(a);else if(a&&"object"==typeof a&&n.isElement(a,u))m=[a];else{if(!a||"object"!=typeof a||!a.length)throw new Error(e.messages.errorFactoryInvalidContainer());m=a}if(m.length<1)throw new Error(e.messages.errorFactoryContainerNotFound());for(g=0;(r=m[g])&&(!(g>0)||s);g++)r.id?d=r.id:(d="MixItUp"+n.randomHex(),r.id=d),e.instances[d]instanceof e.Mixer?(l=e.instances[d],(!i||i&&i.debug&&i.debug.showWarnings!==!1)&&console.warn(e.messages.warningFactoryPreexistingInstance())):(l=new e.Mixer,l.attach(r,u,d,i),e.instances[d]=l),c=new e.Facade(l),i&&i.debug&&i.debug.enable?h.push(l):h.push(c);return f=s?new e.Collection(h):h[0]},e.use=function(t){e.Base.prototype.callActions.call(e,"beforeUse",arguments),"function"==typeof t&&"mixitup-extension"===t.TYPE?"undefined"==typeof e.extensions[t.NAME]&&(t(e),e.extensions[t.NAME]=t):t.fn&&t.fn.jquery&&(e.libraries.$=t),e.Base.prototype.callActions.call(e,"afterUse",arguments)},e.instances={},e.extensions={},e.libraries={},n={hasClass:function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){this.hasClass(t,e)||(t.className+=t.className?" "+e:e)},removeClass:function(t,e){if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").trim()}},extend:function(t,e,n,a){var i=[],o="",r=-1;n=n||!1,a=a||!1;try{if(Array.isArray(e))for(r=0;r<e.length;r++)i.push(r);else e&&(i=Object.keys(e));for(r=0;r<i.length;r++)o=i[r],!n||"object"!=typeof e[o]||this.isElement(e[o])?t[o]=e[o]:Array.isArray(e[o])?(t[o]||(t[o]=[]),this.extend(t[o],e[o],n,a)):(t[o]||(t[o]={}),this.extend(t[o],e[o],n,a))}catch(s){if(!a)throw s;this.handleExtendError(s,t)}return t},handleExtendError:function(t,n){var a=/property "?(\w*)"?[,:] object/i,i=null,o="",r="",s="",l="",c="",u=-1,f=-1;if(t instanceof TypeError&&(i=a.exec(t.message))){o=i[1];for(c in n){for(f=0;f<o.length&&o.charAt(f)===c.charAt(f);)f++;f>u&&(u=f,l=c)}throw u>1&&(s=e.messages.errorConfigInvalidPropertySuggestion({probableMatch:l})),r=e.messages.errorConfigInvalidProperty({erroneous:o,suggestion:s}),new TypeError(r)}throw t},template:function(t){for(var e=/\${([\w]*)}/g,n={},a=null;a=e.exec(t);)n[a[1]]=new RegExp("\\${"+a[1]+"}","g");return function(e){var a="",i=t;e=e||{};for(a in n)i=i.replace(n[a],"undefined"!=typeof e[a]?e[a]:"");return i}},on:function(e,n,a,i){e&&(e.addEventListener?e.addEventListener(n,a,i):e.attachEvent&&(e["e"+n+a]=a,e[n+a]=function(){e["e"+n+a](t.event)},e.attachEvent("on"+n,e[n+a])))},off:function(t,e,n){t&&(t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&(t.detachEvent("on"+e,t[e+n]),t[e+n]=null))},getCustomEvent:function(e,n,a){var i=null;return a=a||t.document,"function"==typeof t.CustomEvent?i=new t.CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):"function"==typeof a.createEvent?(i=a.createEvent("CustomEvent"),i.initCustomEvent(e,!0,!0,n)):(i=a.createEventObject(),i.type=e,i.returnValue=!1,i.cancelBubble=!1,i.detail=n),i},getOriginalEvent:function(t){return t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t},index:function(t,e){for(var n=0;null!==(t=t.previousElementSibling);)e&&!t.matches(e)||++n;return n},camelCase:function(t){return t.toLowerCase().replace(/([_-][a-z])/g,function(t){return t.toUpperCase().replace(/[_-]/,"")})},pascalCase:function(t){return(t=this.camelCase(t)).charAt(0).toUpperCase()+t.slice(1)},dashCase:function(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()},isElement:function(e,n){return n=n||t.document,!!(t.HTMLElement&&e instanceof t.HTMLElement)||(!!(n.defaultView&&n.defaultView.HTMLElement&&e instanceof n.defaultView.HTMLElement)||null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)},createElement:function(e,n){var a=null,i=null;for(n=n||t.document,a=n.createDocumentFragment(),i=n.createElement("div"),i.innerHTML=e.trim();i.firstChild;)a.appendChild(i.firstChild);return a},removeWhitespace:function(t){for(var e;t&&"#text"===t.nodeName;)e=t,t=t.previousSibling,e.parentElement&&e.parentElement.removeChild(e)},isEqualArray:function(t,e){var n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0},deepEquals:function(t,e){var n;if("object"==typeof t&&t&&"object"==typeof e&&e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(n in t)if(!e.hasOwnProperty(n)||!this.deepEquals(t[n],e[n]))return!1}else if(t!==e)return!1;return!0},arrayShuffle:function(t){for(var e=t.slice(),n=e.length,a=n,i=-1,o=[];a--;)i=~~(Math.random()*n),o=e[a],e[a]=e[i],e[i]=o;return e},arrayFromList:function(t){var e,n;try{return Array.prototype.slice.call(t)}catch(a){for(e=[],n=0;n<t.length;n++)e.push(t[n]);return e}},debounce:function(t,e,n){var a;return function(){var i=this,o=arguments,r=n&&!a,s=null;s=function(){a=null,n||t.apply(i,o)},clearTimeout(a),a=setTimeout(s,e),r&&t.apply(i,o)}},position:function(t){for(var e=0,n=0,a=t;t;)e-=t.scrollLeft,n-=t.scrollTop,t===a&&(e+=t.offsetLeft,n+=t.offsetTop,a=t.offsetParent),t=t.parentElement;return{x:e,y:n}},getHypotenuse:function(t,e){var n=t.x-e.x,a=t.y-e.y;return n=n<0?n*-1:n,a=a<0?a*-1:a,Math.sqrt(Math.pow(n,2)+Math.pow(a,2))},getIntersectionRatio:function(t,e){var n=t.width*t.height,a=-1,i=-1,o=-1,r=-1;return a=Math.max(0,Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left)),i=Math.max(0,Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top)),o=i*a,r=o/n},closestParent:function(e,n,a,i){var o=e.parentNode;if(i=i||t.document,a&&e.matches(n))return e;for(;o&&o!=i.body;){if(o.matches&&o.matches(n))return o;if(!o.parentNode)return null;o=o.parentNode}return null},children:function(e,n,a){var i=[],o="";return a=a||t.doc,e&&(e.id||(o="Temp"+this.randomHexKey(),e.id=o),i=a.querySelectorAll("#"+e.id+" > "+n),o&&e.removeAttribute("id")),i},clean:function(t){var e=[],n=-1;for(n=0;n<t.length;n++)""!==t[n]&&e.push(t[n]);return e},defer:function(n){var a=null,i=null,o=null;return i=new this.Deferred,e.features.has.promises?i.promise=new Promise(function(t,e){i.resolve=t,i.reject=e}):(o=t.jQuery||n.$)&&"function"==typeof o.Deferred?(a=o.Deferred(),i.promise=a.promise(),i.resolve=a.resolve,i.reject=a.reject):t.console&&console.warn(e.messages.warningNoPromiseImplementation()),i},all:function(n,a){var i=null;return e.features.has.promises?Promise.all(n):(i=t.jQuery||a.$)&&"function"==typeof i.when?i.when.apply(i,n).done(function(){return arguments}):(t.console&&console.warn(e.messages.warningNoPromiseImplementation()),[])},getPrefix:function(t,e,a){var i=-1,o="";if(n.dashCase(e)in t.style)return"";for(i=0;o=a[i];i++)if(o+e in t.style)return o.toLowerCase();return"unsupported"},randomHex:function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()},getDocumentState:function(e){return e="object"==typeof e.body?e:t.document,{scrollTop:t.pageYOffset,scrollLeft:t.pageXOffset,docHeight:e.documentElement.scrollHeight,docWidth:e.documentElement.scrollWidth,viewportHeight:e.documentElement.clientHeight,viewportWidth:e.documentElement.clientWidth}},bind:function(t,e){return function(){return e.apply(t,arguments)}},isVisible:function(e){var n=null;return!!e.offsetParent||(n=t.getComputedStyle(e),"fixed"===n.position&&"hidden"!==n.visibility&&"0"!==n.opacity)},seal:function(t){"function"==typeof Object.seal&&Object.seal(t)},freeze:function(t){"function"==typeof Object.freeze&&Object.freeze(t)},compareVersions:function(t,e){var n=t.split("."),a=e.split("."),i=-1,o=-1,r=-1;for(r=0;r<n.length;r++){if(i=parseInt(n[r].replace(/[^\d.]/g,"")),o=parseInt(a[r].replace(/[^\d.]/g,"")||0),o<i)return!1;if(o>i)return!0}return!0},Deferred:function(){this.promise=null,this.resolve=null,this.reject=null,this.id=n.randomHex()},isEmptyObject:function(t){var e="";if("function"==typeof Object.keys)return 0===Object.keys(t).length;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},getClassname:function(t,e,n){var a="";return a+=t.block,a.length&&(a+=t.delineatorElement),a+=t["element"+this.pascalCase(e)],n?(a.length&&(a+=t.delineatorModifier),a+=n):a},getProperty:function(t,e){var n=e.split("."),a=null,i="",o=0;if(!e)return t;for(a=function(t){return t?t[i]:null};o<n.length;)i=n[o],t=a(t),o++;return"undefined"!=typeof t?t:null}},e.h=n,e.Base=function(){},e.Base.prototype={constructor:e.Base,callActions:function(t,e){var a=this,i=a.constructor.actions[t],o="";if(i&&!n.isEmptyObject(i))for(o in i)i[o].apply(a,e)},callFilters:function(t,e,a){var i=this,o=i.constructor.filters[t],r=e,s="";if(!o||n.isEmptyObject(o))return r;a=a||[];for(s in o)a=n.arrayFromList(a),a.unshift(r),r=o[s].apply(i,a);return r}},e.BaseStatic=function(){this.actions={},this.filters={},this.extend=function(t){n.extend(this.prototype,t)},this.registerAction=function(t,e,n){(this.actions[t]=this.actions[t]||{})[e]=n},this.registerFilter=function(t,e,n){(this.filters[t]=this.filters[t]||{})[e]=n}},e.Features=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.boxSizingPrefix="",this.transformPrefix="",this.transitionPrefix="",this.boxSizingPrefix="",this.transformProp="",this.transformRule="",this.transitionProp="",this.perspectiveProp="",this.perspectiveOriginProp="",this.has=new e.Has,this.canary=null,this.BOX_SIZING_PROP="boxSizing",this.TRANSITION_PROP="transition",this.TRANSFORM_PROP="transform",this.PERSPECTIVE_PROP="perspective",this.PERSPECTIVE_ORIGIN_PROP="perspectiveOrigin",this.VENDORS=["Webkit","moz","O","ms"],this.TWEENABLE=["opacity","width","height","marginRight","marginBottom","x","y","scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],this.callActions("afterConstruct")},e.BaseStatic.call(e.Features),e.Features.prototype=Object.create(e.Base.prototype),n.extend(e.Features.prototype,{constructor:e.Features,init:function(){var t=this;t.callActions("beforeInit",arguments),t.canary=document.createElement("div"),t.setPrefixes(),t.runTests(),t.callActions("beforeInit",arguments)},runTests:function(){var e=this;e.callActions("beforeRunTests",arguments),e.has.promises="function"==typeof t.Promise,e.has.transitions="unsupported"!==e.transitionPrefix,e.callActions("afterRunTests",arguments),n.freeze(e.has)},setPrefixes:function(){var t=this;t.callActions("beforeSetPrefixes",arguments),t.transitionPrefix=n.getPrefix(t.canary,"Transition",t.VENDORS),t.transformPrefix=n.getPrefix(t.canary,"Transform",t.VENDORS),t.boxSizingPrefix=n.getPrefix(t.canary,"BoxSizing",t.VENDORS),t.boxSizingProp=t.boxSizingPrefix?t.boxSizingPrefix+n.pascalCase(t.BOX_SIZING_PROP):t.BOX_SIZING_PROP,t.transitionProp=t.transitionPrefix?t.transitionPrefix+n.pascalCase(t.TRANSITION_PROP):t.TRANSITION_PROP,t.transformProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.TRANSFORM_PROP):t.TRANSFORM_PROP,t.transformRule=t.transformPrefix?"-"+t.transformPrefix+"-"+t.TRANSFORM_PROP:t.TRANSFORM_PROP,t.perspectiveProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.PERSPECTIVE_PROP):t.PERSPECTIVE_PROP,t.perspectiveOriginProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.PERSPECTIVE_ORIGIN_PROP):t.PERSPECTIVE_ORIGIN_PROP,t.callActions("afterSetPrefixes",arguments)}}),e.Has=function(){this.transitions=!1,this.promises=!1,n.seal(this)},e.features=new e.Features,e.features.init(),e.ConfigAnimation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.effects="fade scale",this.effectsIn="",this.effectsOut="",this.duration=600,this.easing="ease",this.applyPerspective=!0,this.perspectiveDistance="3000px",this.perspectiveOrigin="50% 50%",this.queue=!0,this.queueLimit=3,this.animateResizeContainer=!0,this.animateResizeTargets=!1,this.staggerSequence=null,this.reverseOut=!1,this.nudge=!0,this.clampHeight=!0,this.clampWidth=!0,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigAnimation),e.ConfigAnimation.prototype=Object.create(e.Base.prototype),e.ConfigAnimation.prototype.constructor=e.ConfigAnimation,e.ConfigBehavior=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.liveSort=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigBehavior),e.ConfigBehavior.prototype=Object.create(e.Base.prototype),e.ConfigBehavior.prototype.constructor=e.ConfigBehavior,e.ConfigCallbacks=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.onMixStart=null,this.onMixBusy=null,this.onMixEnd=null,this.onMixFail=null,this.onMixClick=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigCallbacks),e.ConfigCallbacks.prototype=Object.create(e.Base.prototype),e.ConfigCallbacks.prototype.constructor=e.ConfigCallbacks,e.ConfigControls=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.live=!1,this.scope="global",this.toggleLogic="or",this.toggleDefault="all",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigControls),e.ConfigControls.prototype=Object.create(e.Base.prototype),e.ConfigControls.prototype.constructor=e.ConfigControls,e.ConfigClassNames=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.block="mixitup",this.elementContainer="container",this.elementFilter="control",this.elementSort="control",this.elementMultimix="control",this.elementToggle="control",this.modifierActive="active",this.modifierDisabled="disabled",this.modifierFailed="failed",this.delineatorElement="-",this.delineatorModifier="-",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigClassNames),e.ConfigClassNames.prototype=Object.create(e.Base.prototype),e.ConfigClassNames.prototype.constructor=e.ConfigClassNames,e.ConfigData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.uidKey="",this.dirtyCheck=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigData),e.ConfigData.prototype=Object.create(e.Base.prototype),e.ConfigData.prototype.constructor=e.ConfigData,e.ConfigDebug=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!1,this.showWarnings=!0,this.fauxAsync=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigDebug),e.ConfigDebug.prototype=Object.create(e.Base.prototype),e.ConfigDebug.prototype.constructor=e.ConfigDebug,e.ConfigLayout=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.allowNestedTargets=!0,this.containerClassName="",this.siblingBefore=null,this.siblingAfter=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigLayout),e.ConfigLayout.prototype=Object.create(e.Base.prototype),e.ConfigLayout.prototype.constructor=e.ConfigLayout,e.ConfigLoad=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.filter="all",this.sort="default:asc",this.dataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigLoad),e.ConfigLoad.prototype=Object.create(e.Base.prototype),e.ConfigLoad.prototype.constructor=e.ConfigLoad,e.ConfigSelectors=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.target=".mix",this.control="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigSelectors),e.ConfigSelectors.prototype=Object.create(e.Base.prototype),e.ConfigSelectors.prototype.constructor=e.ConfigSelectors,e.ConfigRender=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.target=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigRender),e.ConfigRender.prototype=Object.create(e.Base.prototype),e.ConfigRender.prototype.constructor=e.ConfigRender,e.ConfigTemplates=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigTemplates),e.ConfigTemplates.prototype=Object.create(e.Base.prototype),e.ConfigTemplates.prototype.constructor=e.ConfigTemplates,e.Config=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.animation=new e.ConfigAnimation,this.behavior=new e.ConfigBehavior,this.callbacks=new e.ConfigCallbacks,this.controls=new e.ConfigControls,this.classNames=new e.ConfigClassNames,this.data=new e.ConfigData,this.debug=new e.ConfigDebug,this.layout=new e.ConfigLayout,this.load=new e.ConfigLoad,this.selectors=new e.ConfigSelectors,this.render=new e.ConfigRender,this.templates=new e.ConfigTemplates,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Config),e.Config.prototype=Object.create(e.Base.prototype),e.Config.prototype.constructor=e.Config,e.MixerDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.document=null,this.body=null,this.container=null,this.parent=null,this.targets=[],this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.MixerDom),e.MixerDom.prototype=Object.create(e.Base.prototype),e.MixerDom.prototype.constructor=e.MixerDom,e.UiClassNames=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.base="",this.active="",this.disabled="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.UiClassNames),e.UiClassNames.prototype=Object.create(e.Base.prototype),e.UiClassNames.prototype.constructor=e.UiClassNames,e.CommandDataset=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.dataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandDataset),e.CommandDataset.prototype=Object.create(e.Base.prototype),e.CommandDataset.prototype.constructor=e.CommandDataset,e.CommandMultimix=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.filter=null,this.sort=null,this.insert=null,this.remove=null,this.changeLayout=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandMultimix),e.CommandMultimix.prototype=Object.create(e.Base.prototype),e.CommandMultimix.prototype.constructor=e.CommandMultimix,e.CommandFilter=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.selector="",this.collection=null,this.action="show",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandFilter),e.CommandFilter.prototype=Object.create(e.Base.prototype),e.CommandFilter.prototype.constructor=e.CommandFilter,e.CommandSort=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.sortString="",this.attribute="",this.order="asc",this.collection=null,this.next=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandSort),e.CommandSort.prototype=Object.create(e.Base.prototype),e.CommandSort.prototype.constructor=e.CommandSort,e.CommandInsert=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.index=0,this.collection=[],this.position="before",this.sibling=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandInsert),e.CommandInsert.prototype=Object.create(e.Base.prototype),e.CommandInsert.prototype.constructor=e.CommandInsert,e.CommandRemove=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.targets=[],this.collection=[],this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandRemove),e.CommandRemove.prototype=Object.create(e.Base.prototype),e.CommandRemove.prototype.constructor=e.CommandRemove,e.CommandChangeLayout=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.containerClassName="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandChangeLayout),e.CommandChangeLayout.prototype=Object.create(e.Base.prototype),e.CommandChangeLayout.prototype.constructor=e.CommandChangeLayout,e.ControlDefinition=function(t,a,i,o){e.Base.call(this),this.callActions("beforeConstruct"),this.type=t,this.selector=a,this.live=i||!1,this.parent=o||"",this.callActions("afterConstruct"),n.freeze(this),n.seal(this)},e.BaseStatic.call(e.ControlDefinition),e.ControlDefinition.prototype=Object.create(e.Base.prototype),e.ControlDefinition.prototype.constructor=e.ControlDefinition,e.controlDefinitions=[],e.controlDefinitions.push(new e.ControlDefinition("multimix","[data-filter][data-sort]")),e.controlDefinitions.push(new e.ControlDefinition("filter","[data-filter]")),e.controlDefinitions.push(new e.ControlDefinition("sort","[data-sort]")),e.controlDefinitions.push(new e.ControlDefinition("toggle","[data-toggle]")),e.Control=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.selector="",this.bound=[],this.pending=-1,this.type="",this.status="inactive",this.filter="",this.sort="",this.canDisable=!1,this.handler=null,this.classNames=new e.UiClassNames,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Control),e.Control.prototype=Object.create(e.Base.prototype),n.extend(e.Control.prototype,{constructor:e.Control,init:function(t,n,a){var i=this;if(this.callActions("beforeInit",arguments),i.el=t,i.type=n,i.selector=a,i.selector)i.status="live";else switch(i.canDisable="boolean"==typeof i.el.disable,i.type){case"filter":i.filter=i.el.getAttribute("data-filter");break;case"toggle":i.filter=i.el.getAttribute("data-toggle");break;case"sort":i.sort=i.el.getAttribute("data-sort");break;case"multimix":i.filter=i.el.getAttribute("data-filter"),i.sort=i.el.getAttribute("data-sort")}i.bindClick(),e.controls.push(i),this.callActions("afterInit",arguments)},isBound:function(t){var e=this,n=!1;return this.callActions("beforeIsBound",arguments),n=e.bound.indexOf(t)>-1,e.callFilters("afterIsBound",n,arguments)},addBinding:function(t){var e=this;this.callActions("beforeAddBinding",arguments),e.isBound()||e.bound.push(t),this.callActions("afterAddBinding",arguments)},removeBinding:function(t){var n=this,a=-1;this.callActions("beforeRemoveBinding",arguments),(a=n.bound.indexOf(t))>-1&&n.bound.splice(a,1),n.bound.length<1&&(n.unbindClick(),a=e.controls.indexOf(n),e.controls.splice(a,1),"active"===n.status&&n.renderStatus(n.el,"inactive")),this.callActions("afterRemoveBinding",arguments)},bindClick:function(){var t=this;this.callActions("beforeBindClick",arguments),t.handler=function(e){t.handleClick(e)},n.on(t.el,"click",t.handler),this.callActions("afterBindClick",arguments)},unbindClick:function(){var t=this;this.callActions("beforeUnbindClick",arguments),n.off(t.el,"click",t.handler),t.handler=null,this.callActions("afterUnbindClick",arguments)},handleClick:function(t){var a=this,i=null,o=null,r=!1,s=void 0,l={},c=null,u=[],f=-1;if(this.callActions("beforeHandleClick",arguments),this.pending=0,o=a.bound[0],i=a.selector?n.closestParent(t.target,o.config.selectors.control+a.selector,!0,o.dom.document):a.el,!i)return void a.callActions("afterHandleClick",arguments);switch(a.type){case"filter":l.filter=a.filter||i.getAttribute("data-filter");break;case"sort":l.sort=a.sort||i.getAttribute("data-sort");break;case"multimix":l.filter=a.filter||i.getAttribute("data-filter"),l.sort=a.sort||i.getAttribute("data-sort");break;case"toggle":l.filter=a.filter||i.getAttribute("data-toggle"),r="live"===a.status?n.hasClass(i,a.classNames.active):"active"===a.status}for(f=0;f<a.bound.length;f++)c=new e.CommandMultimix,n.extend(c,l),u.push(c);for(u=a.callFilters("commandsHandleClick",u,arguments),a.pending=a.bound.length,f=0;o=a.bound[f];f++)l=u[f],l&&(o.lastClicked||(o.lastClicked=i),e.events.fire("mixClick",o.dom.container,{state:o.state,instance:o,originalEvent:t,control:o.lastClicked},o.dom.document),"function"==typeof o.config.callbacks.onMixClick&&(s=o.config.callbacks.onMixClick.call(o.lastClicked,o.state,t,o),s===!1)||("toggle"===a.type?r?o.toggleOff(l.filter):o.toggleOn(l.filter):o.multimix(l)));this.callActions("afterHandleClick",arguments)},update:function(t,n){var a=this,i=new e.CommandMultimix;a.callActions("beforeUpdate",arguments),a.pending--,a.pending=Math.max(0,a.pending),a.pending>0||("live"===a.status?a.updateLive(t,n):(i.sort=a.sort,i.filter=a.filter,a.callFilters("actionsUpdate",i,arguments),a.parseStatusChange(a.el,t,i,n)),a.callActions("afterUpdate",arguments))},updateLive:function(t,n){var a=this,i=null,o=null,r=null,s=-1;if(a.callActions("beforeUpdateLive",arguments),a.el){for(i=a.el.querySelectorAll(a.selector),s=0;r=i[s];s++){switch(o=new e.CommandMultimix,a.type){case"filter":o.filter=r.getAttribute("data-filter");break;case"sort":o.sort=r.getAttribute("data-sort");break;case"multimix":o.filter=r.getAttribute("data-filter"),o.sort=r.getAttribute("data-sort");break;case"toggle":o.filter=r.getAttribute("data-toggle")}o=a.callFilters("actionsUpdateLive",o,arguments),a.parseStatusChange(r,t,o,n)}a.callActions("afterUpdateLive",arguments)}},parseStatusChange:function(t,e,n,a){var i=this,o="",r="",s=-1;switch(i.callActions("beforeParseStatusChange",arguments),i.type){case"filter":e.filter===n.filter?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"multimix":e.sort===n.sort&&e.filter===n.filter?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"sort":e.sort.match(/:asc/g)&&(o=e.sort.replace(/:asc/g,"")),e.sort===n.sort||o===n.sort?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"toggle":for(a.length<1&&i.renderStatus(t,"inactive"),e.filter===n.filter&&i.renderStatus(t,"active"),s=0;s<a.length;s++){if(r=a[s],r===n.filter){i.renderStatus(t,"active");break}i.renderStatus(t,"inactive")}}i.callActions("afterParseStatusChange",arguments)},renderStatus:function(t,e){var a=this;switch(a.callActions("beforeRenderStatus",arguments),e){case"active":n.addClass(t,a.classNames.active),n.removeClass(t,a.classNames.disabled),a.canDisable&&(a.el.disabled=!1);break;case"inactive":n.removeClass(t,a.classNames.active),n.removeClass(t,a.classNames.disabled),a.canDisable&&(a.el.disabled=!1);break;case"disabled":a.canDisable&&(a.el.disabled=!0),n.addClass(t,a.classNames.disabled),n.removeClass(t,a.classNames.active)}"live"!==a.status&&(a.status=e),a.callActions("afterRenderStatus",arguments)}}),e.controls=[],e.StyleData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.x=0,this.y=0,this.top=0,this.right=0,this.bottom=0,this.left=0,this.width=0,this.height=0,this.marginRight=0,this.marginBottom=0,this.opacity=0,this.scale=new e.TransformData,this.translateX=new e.TransformData,this.translateY=new e.TransformData,this.translateZ=new e.TransformData,this.rotateX=new e.TransformData,this.rotateY=new e.TransformData,this.rotateZ=new e.TransformData,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.StyleData),e.StyleData.prototype=Object.create(e.Base.prototype),e.StyleData.prototype.constructor=e.StyleData,e.TransformData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.value=0,this.unit="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TransformData),e.TransformData.prototype=Object.create(e.Base.prototype),e.TransformData.prototype.constructor=e.TransformData,e.TransformDefaults=function(){e.StyleData.apply(this),this.callActions("beforeConstruct"),this.scale.value=.01,this.scale.unit="",this.translateX.value=20,this.translateX.unit="px",this.translateY.value=20,this.translateY.unit="px",this.translateZ.value=20,this.translateZ.unit="px",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateY.value=90,this.rotateY.unit="deg",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateZ.value=180,this.rotateZ.unit="deg",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TransformDefaults),e.TransformDefaults.prototype=Object.create(e.StyleData.prototype),e.TransformDefaults.prototype.constructor=e.TransformDefaults,e.transformDefaults=new e.TransformDefaults,e.EventDetail=function(){this.state=null,this.futureState=null,this.instance=null,this.originalEvent=null},e.Events=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.mixStart=null,this.mixBusy=null,this.mixEnd=null,this.mixFail=null,this.mixClick=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Events),e.Events.prototype=Object.create(e.Base.prototype),e.Events.prototype.constructor=e.Events,e.Events.prototype.fire=function(t,a,i,o){var r=this,s=null,l=new e.EventDetail;if(r.callActions("beforeFire",arguments),"undefined"==typeof r[t])throw new Error('Event type "'+t+'" not found.');l.state=new e.State,n.extend(l.state,i.state),i.futureState&&(l.futureState=new e.State,n.extend(l.futureState,i.futureState)),l.instance=i.instance,i.originalEvent&&(l.originalEvent=i.originalEvent),s=n.getCustomEvent(t,l,o),r.callFilters("eventFire",s,arguments),a.dispatchEvent(s)},e.events=new e.Events,e.QueueItem=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.args=[],this.instruction=null,this.triggerElement=null,this.deferred=null,this.isToggling=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.QueueItem),e.QueueItem.prototype=Object.create(e.Base.prototype),e.QueueItem.prototype.constructor=e.QueueItem,e.Mixer=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.config=new e.Config,this.id="",this.isBusy=!1,this.isToggling=!1,this.incPadding=!0,this.controls=[],this.targets=[],this.origOrder=[],this.cache={},this.toggleArray=[],this.targetsMoved=0,this.targetsImmovable=0,this.targetsBound=0,this.targetsDone=0,this.staggerDuration=0,this.effectsIn=null,this.effectsOut=null,this.transformIn=[],this.transformOut=[],this.queue=[],this.state=null,this.lastOperation=null,
17
- this.lastClicked=null,this.userCallback=null,this.userDeferred=null,this.dom=new e.MixerDom,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Mixer),e.Mixer.prototype=Object.create(e.Base.prototype),n.extend(e.Mixer.prototype,{constructor:e.Mixer,attach:function(a,i,o,r){var s=this,l=null,c=-1;for(s.callActions("beforeAttach",arguments),s.id=o,r&&n.extend(s.config,r,!0,!0),s.sanitizeConfig(),s.cacheDom(a,i),s.config.layout.containerClassName&&n.addClass(s.dom.container,s.config.layout.containerClassName),e.features.has.transitions||(s.config.animation.enable=!1),"undefined"==typeof t.console&&(s.config.debug.showWarnings=!1),s.config.data.uidKey&&(s.config.controls.enable=!1),s.indexTargets(),s.state=s.getInitialState(),c=0;l=s.lastOperation.toHide[c];c++)l.hide();s.config.controls.enable&&(s.initControls(),s.buildToggleArray(null,s.state),s.updateControls({filter:s.state.activeFilter,sort:s.state.activeSort})),s.parseEffects(),s.callActions("afterAttach",arguments)},sanitizeConfig:function(){var t=this;t.callActions("beforeSanitizeConfig",arguments),t.config.controls.scope=t.config.controls.scope.toLowerCase().trim(),t.config.controls.toggleLogic=t.config.controls.toggleLogic.toLowerCase().trim(),t.config.controls.toggleDefault=t.config.controls.toggleDefault.toLowerCase().trim(),t.config.animation.effects=t.config.animation.effects.trim(),t.callActions("afterSanitizeConfig",arguments)},getInitialState:function(){var t=this,n=new e.State,a=new e.Operation;if(t.callActions("beforeGetInitialState",arguments),n.activeContainerClassName=t.config.layout.containerClassName,t.config.load.dataset){if(!t.config.data.uidKey||"string"!=typeof t.config.data.uidKey)throw new TypeError(e.messages.errorConfigDataUidKeyNotSet());a.startDataset=a.newDataset=n.activeDataset=t.config.load.dataset.slice(),a.startContainerClassName=a.newContainerClassName=n.activeContainerClassName,a.show=t.targets.slice(),n=t.callFilters("stateGetInitialState",n,arguments)}else n.activeFilter=t.parseFilterArgs([t.config.load.filter]).command,n.activeSort=t.parseSortArgs([t.config.load.sort]).command,n.totalTargets=t.targets.length,n=t.callFilters("stateGetInitialState",n,arguments),n.activeSort.collection||n.activeSort.attribute||"random"===n.activeSort.order||"desc"===n.activeSort.order?(a.newSort=n.activeSort,t.sortOperation(a),t.printSort(!1,a),t.targets=a.newOrder):a.startOrder=a.newOrder=t.targets,a.startFilter=a.newFilter=n.activeFilter,a.startSort=a.newSort=n.activeSort,a.startContainerClassName=a.newContainerClassName=n.activeContainerClassName,"all"===a.newFilter.selector?a.newFilter.selector=t.config.selectors.target:"none"===a.newFilter.selector&&(a.newFilter.selector="");return a=t.callFilters("operationGetInitialState",a,[n]),t.lastOperation=a,a.newFilter&&t.filterOperation(a),n=t.buildState(a)},cacheDom:function(t,e){var n=this;n.callActions("beforeCacheDom",arguments),n.dom.document=e,n.dom.body=n.dom.document.querySelector("body"),n.dom.container=t,n.dom.parent=t,n.callActions("afterCacheDom",arguments)},indexTargets:function(){var t=this,a=null,i=null,o=null,r=-1;if(t.callActions("beforeIndexTargets",arguments),t.dom.targets=t.config.layout.allowNestedTargets?t.dom.container.querySelectorAll(t.config.selectors.target):n.children(t.dom.container,t.config.selectors.target,t.dom.document),t.dom.targets=n.arrayFromList(t.dom.targets),t.targets=[],(o=t.config.load.dataset)&&o.length!==t.dom.targets.length)throw new Error(e.messages.errorDatasetPrerenderedMismatch());if(t.dom.targets.length){for(r=0;i=t.dom.targets[r];r++)a=new e.Target,a.init(i,t,o?o[r]:void 0),a.isInDom=!0,t.targets.push(a);t.dom.parent=t.dom.targets[0].parentElement===t.dom.container?t.dom.container:t.dom.targets[0].parentElement}t.origOrder=t.targets,t.callActions("afterIndexTargets",arguments)},initControls:function(){var t=this,n="",a=null,i=null,o=null,r=null,s=null,l=-1,c=-1;switch(t.callActions("beforeInitControls",arguments),t.config.controls.scope){case"local":o=t.dom.container;break;case"global":o=t.dom.document;break;default:throw new Error(e.messages.errorConfigInvalidControlsScope())}for(l=0;n=e.controlDefinitions[l];l++)if(t.config.controls.live||n.live){if(n.parent){if(r=t.dom[n.parent],!r||r.length<0)continue;"number"!=typeof r.length&&(r=[r])}else r=[o];for(c=0;i=r[c];c++)s=t.getControl(i,n.type,n.selector),t.controls.push(s)}else for(a=o.querySelectorAll(t.config.selectors.control+n.selector),c=0;i=a[c];c++)s=t.getControl(i,n.type,""),s&&t.controls.push(s);t.callActions("afterInitControls",arguments)},getControl:function(t,a,i){var o=this,r=null,s=-1;if(o.callActions("beforeGetControl",arguments),!i)for(s=0;r=e.controls[s];s++){if(r.el===t&&r.isBound(o))return o.callFilters("controlGetControl",null,arguments);if(r.el===t&&r.type===a&&r.selector===i)return r.addBinding(o),o.callFilters("controlGetControl",r,arguments)}return r=new e.Control,r.init(t,a,i),r.classNames.base=n.getClassname(o.config.classNames,a),r.classNames.active=n.getClassname(o.config.classNames,a,o.config.classNames.modifierActive),r.classNames.disabled=n.getClassname(o.config.classNames,a,o.config.classNames.modifierDisabled),r.addBinding(o),o.callFilters("controlGetControl",r,arguments)},getToggleSelector:function(){var t=this,e="or"===t.config.controls.toggleLogic?", ":"",a="";return t.callActions("beforeGetToggleSelector",arguments),t.toggleArray=n.clean(t.toggleArray),a=t.toggleArray.join(e),""===a&&(a=t.config.controls.toggleDefault),t.callFilters("selectorGetToggleSelector",a,arguments)},buildToggleArray:function(t,e){var a=this,i="";if(a.callActions("beforeBuildToggleArray",arguments),t&&t.filter)i=t.filter.selector.replace(/\s/g,"");else{if(!e)return;i=e.activeFilter.selector.replace(/\s/g,"")}i!==a.config.selectors.target&&"all"!==i||(i=""),"or"===a.config.controls.toggleLogic?a.toggleArray=i.split(","):a.toggleArray=a.splitCompoundSelector(i),a.toggleArray=n.clean(a.toggleArray),a.callActions("afterBuildToggleArray",arguments)},splitCompoundSelector:function(t){var e=t.split(/([\.\[])/g),n=[],a="",i=-1;for(""===e[0]&&e.shift(),i=0;i<e.length;i++)i%2===0&&(a=""),a+=e[i],i%2!==0&&n.push(a);return n},updateControls:function(t){var a=this,i=null,o=new e.CommandMultimix,r=-1;for(a.callActions("beforeUpdateControls",arguments),t.filter?o.filter=t.filter.selector:o.filter=a.state.activeFilter.selector,t.sort?o.sort=a.buildSortString(t.sort):o.sort=a.buildSortString(a.state.activeSort),o.filter===a.config.selectors.target&&(o.filter="all"),""===o.filter&&(o.filter="none"),n.freeze(o),r=0;i=a.controls[r];r++)i.update(o,a.toggleArray);a.callActions("afterUpdateControls",arguments)},buildSortString:function(t){var e=this,n="";return n+=t.sortString,t.next&&(n+=" "+e.buildSortString(t.next)),n},insertTargets:function(t,a){var i=this,o=null,r=-1,s=null,l=null,c=null,u=-1;if(i.callActions("beforeInsertTargets",arguments),"undefined"==typeof t.index&&(t.index=0),o=i.getNextSibling(t.index,t.sibling,t.position),s=i.dom.document.createDocumentFragment(),r=o?n.index(o,i.config.selectors.target):i.targets.length,t.collection){for(u=0;c=t.collection[u];u++){if(i.dom.targets.indexOf(c)>-1)throw new Error(e.messages.errorInsertPreexistingElement());c.style.display="none",s.appendChild(c),s.appendChild(i.dom.document.createTextNode(" ")),n.isElement(c,i.dom.document)&&c.matches(i.config.selectors.target)&&(l=new e.Target,l.init(c,i),l.isInDom=!0,i.targets.splice(r,0,l),r++)}i.dom.parent.insertBefore(s,o)}a.startOrder=i.origOrder=i.targets,i.callActions("afterInsertTargets",arguments)},getNextSibling:function(t,e,n){var a=this,i=null;return t=Math.max(t,0),e&&"before"===n?i=e:e&&"after"===n?i=e.nextElementSibling||null:a.targets.length>0&&"undefined"!=typeof t?i=t<a.targets.length||!a.targets.length?a.targets[t].dom.el:a.targets[a.targets.length-1].dom.el.nextElementSibling:0===a.targets.length&&a.dom.parent.children.length>0&&(a.config.layout.siblingAfter?i=a.config.layout.siblingAfter:a.config.layout.siblingBefore?i=a.config.layout.siblingBefore.nextElementSibling:a.dom.parent.children[0]),a.callFilters("elementGetNextSibling",i,arguments)},filterOperation:function(t){var e=this,n=!1,a=-1,i="",o=null,r=-1;for(e.callActions("beforeFilterOperation",arguments),i=t.newFilter.action,r=0;o=t.newOrder[r];r++)n=t.newFilter.collection?t.newFilter.collection.indexOf(o.dom.el)>-1:""!==t.newFilter.selector&&o.dom.el.matches(t.newFilter.selector),e.evaluateHideShow(n,o,i,t);if(t.toRemove.length)for(r=0;o=t.show[r];r++)t.toRemove.indexOf(o)>-1&&(t.show.splice(r,1),(a=t.toShow.indexOf(o))>-1&&t.toShow.splice(a,1),t.toHide.push(o),t.hide.push(o),r--);t.matching=t.show.slice(),0===t.show.length&&""!==t.newFilter.selector&&0!==e.targets.length&&(t.hasFailed=!0),e.callActions("afterFilterOperation",arguments)},evaluateHideShow:function(t,e,n,a){var i=this,o=!1,r=Array.prototype.slice.call(arguments,1);o=i.callFilters("testResultEvaluateHideShow",t,r),i.callActions("beforeEvaluateHideShow",arguments),o===!0&&"show"===n||o===!1&&"hide"===n?(a.show.push(e),!e.isShown&&a.toShow.push(e)):(a.hide.push(e),e.isShown&&a.toHide.push(e)),i.callActions("afterEvaluateHideShow",arguments)},sortOperation:function(t){var a=this,i=[],o=null,r=null,s=-1;if(a.callActions("beforeSortOperation",arguments),t.startOrder=a.targets,t.newSort.collection){for(i=[],s=0;r=t.newSort.collection[s];s++){if(a.dom.targets.indexOf(r)<0)throw new Error(e.messages.errorSortNonExistentElement());o=new e.Target,o.init(r,a),o.isInDom=!0,i.push(o)}t.newOrder=i}else"random"===t.newSort.order?t.newOrder=n.arrayShuffle(t.startOrder):""===t.newSort.attribute?(t.newOrder=a.origOrder.slice(),"desc"===t.newSort.order&&t.newOrder.reverse()):(t.newOrder=t.startOrder.slice(),t.newOrder.sort(function(e,n){return a.compare(e,n,t.newSort)}));n.isEqualArray(t.newOrder,t.startOrder)&&(t.willSort=!1),a.callActions("afterSortOperation",arguments)},compare:function(t,e,n){var a=this,i=n.order,o=a.getAttributeValue(t,n.attribute),r=a.getAttributeValue(e,n.attribute);return isNaN(1*o)||isNaN(1*r)?(o=o.toLowerCase(),r=r.toLowerCase()):(o=1*o,r=1*r),o<r?"asc"===i?-1:1:o>r?"asc"===i?1:-1:o===r&&n.next?a.compare(t,e,n.next):0},getAttributeValue:function(t,n){var a=this,i="";return i=t.dom.el.getAttribute("data-"+n),null===i&&a.config.debug.showWarnings&&console.warn(e.messages.warningInconsistentSortingAttributes({attribute:"data-"+n})),a.callFilters("valueGetAttributeValue",i||0,arguments)},printSort:function(e,a){var i=this,o=e?a.newOrder:a.startOrder,r=e?a.startOrder:a.newOrder,s=o.length?o[o.length-1].dom.el.nextElementSibling:null,l=t.document.createDocumentFragment(),c=null,u=null,f=null,h=-1;for(i.callActions("beforePrintSort",arguments),h=0;u=o[h];h++)f=u.dom.el,"absolute"!==f.style.position&&(n.removeWhitespace(f.previousSibling),f.parentElement.removeChild(f));for(c=s?s.previousSibling:i.dom.parent.lastChild,c&&"#text"===c.nodeName&&n.removeWhitespace(c),h=0;u=r[h];h++)f=u.dom.el,n.isElement(l.lastChild)&&l.appendChild(t.document.createTextNode(" ")),l.appendChild(f);i.dom.parent.firstChild&&i.dom.parent.firstChild!==s&&l.insertBefore(t.document.createTextNode(" "),l.childNodes[0]),s?(l.appendChild(t.document.createTextNode(" ")),i.dom.parent.insertBefore(l,s)):i.dom.parent.appendChild(l),i.callActions("afterPrintSort",arguments)},parseSortString:function(t,a){var i=this,o=t.split(" "),r=a,s=[],l=-1;for(l=0;l<o.length;l++){switch(s=o[l].split(":"),r.sortString=o[l],r.attribute=n.dashCase(s[0]),r.order=s[1]||"asc",r.attribute){case"default":r.attribute="";break;case"random":r.attribute="",r.order="random"}if(!r.attribute||"random"===r.order)break;l<o.length-1&&(r.next=new e.CommandSort,n.freeze(r),r=r.next)}return i.callFilters("commandsParseSort",a,arguments)},parseEffects:function(){var t=this,n="",a=t.config.animation.effectsIn||t.config.animation.effects,i=t.config.animation.effectsOut||t.config.animation.effects;t.callActions("beforeParseEffects",arguments),t.effectsIn=new e.StyleData,t.effectsOut=new e.StyleData,t.transformIn=[],t.transformOut=[],t.effectsIn.opacity=t.effectsOut.opacity=1,t.parseEffect("fade",a,t.effectsIn,t.transformIn),t.parseEffect("fade",i,t.effectsOut,t.transformOut,!0);for(n in e.transformDefaults)e.transformDefaults[n]instanceof e.TransformData&&(t.parseEffect(n,a,t.effectsIn,t.transformIn),t.parseEffect(n,i,t.effectsOut,t.transformOut,!0));t.parseEffect("stagger",a,t.effectsIn,t.transformIn),t.parseEffect("stagger",i,t.effectsOut,t.transformOut,!0),t.callActions("afterParseEffects",arguments)},parseEffect:function(t,n,a,i,o){var r=this,s=/\(([^)]+)\)/,l=-1,c="",u=[],f="",h=["%","px","em","rem","vh","vw","deg"],d="",m=-1;if(r.callActions("beforeParseEffect",arguments),"string"!=typeof n)throw new TypeError(e.messages.errorConfigInvalidAnimationEffects());if(n.indexOf(t)<0)return void("stagger"===t&&(r.staggerDuration=0));switch(l=n.indexOf(t+"("),l>-1&&(c=n.substring(l),u=s.exec(c),f=u[1]),t){case"fade":a.opacity=f?parseFloat(f):0;break;case"stagger":r.staggerDuration=f?parseFloat(f):100;break;default:if(o&&r.config.animation.reverseOut&&"scale"!==t?a[t].value=(f?parseFloat(f):e.transformDefaults[t].value)*-1:a[t].value=f?parseFloat(f):e.transformDefaults[t].value,f){for(m=0;d=h[m];m++)if(f.indexOf(d)>-1){a[t].unit=d;break}}else a[t].unit=e.transformDefaults[t].unit;i.push(t+"("+a[t].value+a[t].unit+")")}r.callActions("afterParseEffect",arguments)},buildState:function(t){var n=this,a=new e.State,i=null,o=-1;for(n.callActions("beforeBuildState",arguments),o=0;i=n.targets[o];o++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&a.targets.push(i.dom.el);for(o=0;i=t.matching[o];o++)a.matching.push(i.dom.el);for(o=0;i=t.show[o];o++)a.show.push(i.dom.el);for(o=0;i=t.hide[o];o++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&a.hide.push(i.dom.el);return a.id=n.id,a.container=n.dom.container,a.activeFilter=t.newFilter,a.activeSort=t.newSort,a.activeDataset=t.newDataset,a.activeContainerClassName=t.newContainerClassName,a.hasFailed=t.hasFailed,a.totalTargets=n.targets.length,a.totalShow=t.show.length,a.totalHide=t.hide.length,a.totalMatching=t.matching.length,a.triggerElement=t.triggerElement,n.callFilters("stateBuildState",a,arguments)},goMix:function(a,i){var o=this,r=null;return o.callActions("beforeGoMix",arguments),o.config.animation.duration&&o.config.animation.effects&&n.isVisible(o.dom.container)||(a=!1),i.toShow.length||i.toHide.length||i.willSort||i.willChangeLayout||(a=!1),i.startState.show.length||i.show.length||(a=!1),e.events.fire("mixStart",o.dom.container,{state:i.startState,futureState:i.newState,instance:o},o.dom.document),"function"==typeof o.config.callbacks.onMixStart&&o.config.callbacks.onMixStart.call(o.dom.container,i.startState,i.newState,o),n.removeClass(o.dom.container,n.getClassname(o.config.classNames,"container",o.config.classNames.modifierFailed)),r=o.userDeferred?o.userDeferred:o.userDeferred=n.defer(e.libraries),o.isBusy=!0,a&&e.features.has.transitions?(t.pageYOffset!==i.docState.scrollTop&&t.scrollTo(i.docState.scrollLeft,i.docState.scrollTop),o.config.animation.applyPerspective&&(o.dom.parent.style[e.features.perspectiveProp]=o.config.animation.perspectiveDistance,o.dom.parent.style[e.features.perspectiveOriginProp]=o.config.animation.perspectiveOrigin),o.config.animation.animateResizeContainer&&i.startHeight!==i.newHeight&&i.viewportDeltaY!==i.startHeight-i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),o.config.animation.animateResizeContainer&&i.startWidth!==i.newWidth&&i.viewportDeltaX!==i.startWidth-i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),i.startWidth===i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&i.startWidth===i.newWidth&&(o.dom.parent.style.overflow="hidden"),requestAnimationFrame(function(){o.moveTargets(i)}),o.callFilters("promiseGoMix",r.promise,arguments)):(o.config.debug.fauxAsync?setTimeout(function(){o.cleanUp(i)},o.config.animation.duration):o.cleanUp(i),o.callFilters("promiseGoMix",r.promise,arguments))},getStartMixData:function(n){var a=this,i=t.getComputedStyle(a.dom.parent),o=a.dom.parent.getBoundingClientRect(),r=null,s={},l=-1,c=i[e.features.boxSizingProp];for(a.incPadding="border-box"===c,a.callActions("beforeGetStartMixData",arguments),l=0;r=n.show[l];l++)s=r.getPosData(),n.showPosData[l]={startPosData:s};for(l=0;r=n.toHide[l];l++)s=r.getPosData(),n.toHidePosData[l]={startPosData:s};n.startX=o.left,n.startY=o.top,n.startHeight=a.incPadding?o.height:o.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),n.startWidth=a.incPadding?o.width:o.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),a.callActions("afterGetStartMixData",arguments)},setInter:function(t){var e=this,a=null,i=-1;for(e.callActions("beforeSetInter",arguments),e.config.animation.clampHeight&&(e.dom.parent.style.height=t.startHeight+"px",e.dom.parent.style.overflow="hidden"),e.config.animation.clampWidth&&(e.dom.parent.style.width=t.startWidth+"px",e.dom.parent.style.overflow="hidden"),i=0;a=t.toShow[i];i++)a.show();t.willChangeLayout&&(n.removeClass(e.dom.container,t.startContainerClassName),n.addClass(e.dom.container,t.newContainerClassName)),e.callActions("afterSetInter",arguments)},getInterMixData:function(t){var e=this,n=null,a=-1;for(e.callActions("beforeGetInterMixData",arguments),a=0;n=t.show[a];a++)t.showPosData[a].interPosData=n.getPosData();for(a=0;n=t.toHide[a];a++)t.toHidePosData[a].interPosData=n.getPosData();e.callActions("afterGetInterMixData",arguments)},setFinal:function(t){var e=this,n=null,a=-1;for(e.callActions("beforeSetFinal",arguments),t.willSort&&e.printSort(!1,t),a=0;n=t.toHide[a];a++)n.hide();e.callActions("afterSetFinal",arguments)},getFinalMixData:function(e){var a=this,i=null,o=null,r=null,s=-1;for(a.callActions("beforeGetFinalMixData",arguments),s=0;r=e.show[s];s++)e.showPosData[s].finalPosData=r.getPosData();for(s=0;r=e.toHide[s];s++)e.toHidePosData[s].finalPosData=r.getPosData();for((a.config.animation.clampHeight||a.config.animation.clampWidth)&&(a.dom.parent.style.height=a.dom.parent.style.width=a.dom.parent.style.overflow=""),a.incPadding||(i=t.getComputedStyle(a.dom.parent)),o=a.dom.parent.getBoundingClientRect(),e.newX=o.left,e.newY=o.top,e.newHeight=a.incPadding?o.height:o.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),e.newWidth=a.incPadding?o.width:o.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),e.viewportDeltaX=e.docState.viewportWidth-this.dom.document.documentElement.clientWidth,e.viewportDeltaY=e.docState.viewportHeight-this.dom.document.documentElement.clientHeight,e.willSort&&a.printSort(!0,e),s=0;r=e.toShow[s];s++)r.hide();for(s=0;r=e.toHide[s];s++)r.show();e.willChangeLayout&&(n.removeClass(a.dom.container,e.newContainerClassName),n.addClass(a.dom.container,a.config.layout.containerClassName)),a.callActions("afterGetFinalMixData",arguments)},getTweenData:function(t){var n=this,a=null,i=null,o=Object.getOwnPropertyNames(n.effectsIn),r="",s=null,l=-1,c=-1,u=-1,f=-1;for(n.callActions("beforeGetTweenData",arguments),u=0;a=t.show[u];u++)for(i=t.showPosData[u],i.posIn=new e.StyleData,i.posOut=new e.StyleData,i.tweenData=new e.StyleData,a.isShown?(i.posIn.x=i.startPosData.x-i.interPosData.x,i.posIn.y=i.startPosData.y-i.interPosData.y):i.posIn.x=i.posIn.y=0,i.posOut.x=i.finalPosData.x-i.interPosData.x,i.posOut.y=i.finalPosData.y-i.interPosData.y,i.posIn.opacity=a.isShown?1:n.effectsIn.opacity,i.posOut.opacity=1,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,a.isShown||n.config.animation.nudge||(i.posIn.x=i.posOut.x,i.posIn.y=i.posOut.y),i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,n.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,l=(i.startPosData.width||i.finalPosData.width)-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-l,c=(i.startPosData.height||i.finalPosData.height)-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-c,i.posOut.width=i.finalPosData.width,i.posOut.height=i.finalPosData.height,l=(i.finalPosData.width||i.startPosData.width)-i.interPosData.width,i.posOut.marginRight=i.finalPosData.marginRight-l,c=(i.finalPosData.height||i.startPosData.height)-i.interPosData.height,i.posOut.marginBottom=i.finalPosData.marginBottom-c,i.tweenData.width=i.posOut.width-i.posIn.width,i.tweenData.height=i.posOut.height-i.posIn.height,i.tweenData.marginRight=i.posOut.marginRight-i.posIn.marginRight,i.tweenData.marginBottom=i.posOut.marginBottom-i.posIn.marginBottom),f=0;r=o[f];f++)s=n.effectsIn[r],s instanceof e.TransformData&&s.value&&(i.posIn[r].value=s.value,i.posOut[r].value=0,i.tweenData[r].value=i.posOut[r].value-i.posIn[r].value,i.posIn[r].unit=i.posOut[r].unit=i.tweenData[r].unit=s.unit);for(u=0;a=t.toHide[u];u++)for(i=t.toHidePosData[u],i.posIn=new e.StyleData,i.posOut=new e.StyleData,i.tweenData=new e.StyleData,i.posIn.x=a.isShown?i.startPosData.x-i.interPosData.x:0,i.posIn.y=a.isShown?i.startPosData.y-i.interPosData.y:0,i.posOut.x=n.config.animation.nudge?0:i.posIn.x,i.posOut.y=n.config.animation.nudge?0:i.posIn.y,i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,n.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,l=i.startPosData.width-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-l,c=i.startPosData.height-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-c),i.posIn.opacity=1,i.posOut.opacity=n.effectsOut.opacity,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,f=0;r=o[f];f++)s=n.effectsOut[r],s instanceof e.TransformData&&s.value&&(i.posIn[r].value=0,i.posOut[r].value=s.value,i.tweenData[r].value=i.posOut[r].value-i.posIn[r].value,i.posIn[r].unit=i.posOut[r].unit=i.tweenData[r].unit=s.unit);n.callActions("afterGetTweenData",arguments)},moveTargets:function(t){var a=this,i=null,o=null,r=null,s="",l=!1,c=-1,u=-1,f=a.checkProgress.bind(a);for(a.callActions("beforeMoveTargets",arguments),u=0;i=t.show[u];u++)o=new e.IMoveData,r=t.showPosData[u],s=i.isShown?"none":"show",l=a.willTransition(s,t.hasEffect,r.posIn,r.posOut),l&&c++,i.show(),o.posIn=r.posIn,o.posOut=r.posOut,o.statusChange=s,o.staggerIndex=c,o.operation=t,o.callback=l?f:null,i.move(o);for(u=0;i=t.toHide[u];u++)r=t.toHidePosData[u],o=new e.IMoveData,s="hide",l=a.willTransition(s,r.posIn,r.posOut),o.posIn=r.posIn,o.posOut=r.posOut,o.statusChange=s,o.staggerIndex=u,o.operation=t,o.callback=l?f:null,i.move(o);a.config.animation.animateResizeContainer&&(a.dom.parent.style[e.features.transitionProp]="height "+a.config.animation.duration+"ms ease, width "+a.config.animation.duration+"ms ease ",requestAnimationFrame(function(){t.startHeight!==t.newHeight&&t.viewportDeltaY!==t.startHeight-t.newHeight&&(a.dom.parent.style.height=t.newHeight+"px"),t.startWidth!==t.newWidth&&t.viewportDeltaX!==t.startWidth-t.newWidth&&(a.dom.parent.style.width=t.newWidth+"px")})),t.willChangeLayout&&(n.removeClass(a.dom.container,a.config.layout.ContainerClassName),n.addClass(a.dom.container,t.newContainerClassName)),a.callActions("afterMoveTargets",arguments)},hasEffect:function(){var t=this,e=["scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],n="",a=null,i=!1,o=-1,r=-1;if(1!==t.effectsIn.opacity)return t.callFilters("resultHasEffect",!0,arguments);for(r=0;n=e[r];r++)if(a=t.effectsIn[n],o="undefined"!==a.value?a.value:a,0!==o){i=!0;break}return t.callFilters("resultHasEffect",i,arguments)},willTransition:function(t,e,a,i){var o=this,r=!1;return r=!!n.isVisible(o.dom.container)&&(!!("none"!==t&&e||a.x!==i.x||a.y!==i.y)||!!o.config.animation.animateResizeTargets&&(a.width!==i.width||a.height!==i.height||a.marginRight!==i.marginRight||a.marginTop!==i.marginTop)),o.callFilters("resultWillTransition",r,arguments)},checkProgress:function(t){var e=this;e.targetsDone++,e.targetsBound===e.targetsDone&&e.cleanUp(t)},cleanUp:function(t){var a=this,i=null,o=null,r=null,s=null,l=-1;for(a.callActions("beforeCleanUp",arguments),a.targetsMoved=a.targetsImmovable=a.targetsBound=a.targetsDone=0,l=0;i=t.show[l];l++)i.cleanUp(),i.show();for(l=0;i=t.toHide[l];l++)i.cleanUp(),i.hide();if(t.willSort&&a.printSort(!1,t),a.dom.parent.style[e.features.transitionProp]=a.dom.parent.style.height=a.dom.parent.style.width=a.dom.parent.style.overflow=a.dom.parent.style[e.features.perspectiveProp]=a.dom.parent.style[e.features.perspectiveOriginProp]="",t.willChangeLayout&&(n.removeClass(a.dom.container,t.startContainerClassName),n.addClass(a.dom.container,t.newContainerClassName)),t.toRemove.length){for(l=0;i=a.targets[l];l++)t.toRemove.indexOf(i)>-1&&((o=i.dom.el.previousSibling)&&"#text"===o.nodeName&&(r=i.dom.el.nextSibling)&&"#text"===r.nodeName&&n.removeWhitespace(o),t.willSort||a.dom.parent.removeChild(i.dom.el),a.targets.splice(l,1),i.isInDom=!1,l--);a.origOrder=a.targets}t.willSort&&(a.targets=t.newOrder),a.state=t.newState,a.lastOperation=t,a.dom.targets=a.state.targets,e.events.fire("mixEnd",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixEnd&&a.config.callbacks.onMixEnd.call(a.dom.container,a.state,a),t.hasFailed&&(e.events.fire("mixFail",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixFail&&a.config.callbacks.onMixFail.call(a.dom.container,a.state,a),n.addClass(a.dom.container,n.getClassname(a.config.classNames,"container",a.config.classNames.modifierFailed))),"function"==typeof a.userCallback&&a.userCallback.call(a.dom.container,a.state,a),"function"==typeof a.userDeferred.resolve&&a.userDeferred.resolve(a.state),a.userCallback=null,a.userDeferred=null,a.lastClicked=null,a.isToggling=!1,a.isBusy=!1,a.queue.length&&(a.callActions("beforeReadQueueCleanUp",arguments),s=a.queue.shift(),a.userDeferred=s.deferred,a.isToggling=s.isToggling,a.lastClicked=s.triggerElement,s.instruction.command instanceof e.CommandMultimix?a.multimix.apply(a,s.args):a.dataset.apply(a,s.args)),a.callActions("afterCleanUp",arguments)},parseMultimixArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandMultimix,r=0;r<t.length;r++)o=t[r],null!==o&&("object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o));return!i.command.insert||i.command.insert instanceof e.CommandInsert||(i.command.insert=a.parseInsertArgs([i.command.insert]).command),!i.command.remove||i.command.remove instanceof e.CommandRemove||(i.command.remove=a.parseRemoveArgs([i.command.remove]).command),!i.command.filter||i.command.filter instanceof e.CommandFilter||(i.command.filter=a.parseFilterArgs([i.command.filter]).command),!i.command.sort||i.command.sort instanceof e.CommandSort||(i.command.sort=a.parseSortArgs([i.command.sort]).command),!i.command.changeLayout||i.command.changeLayout instanceof e.CommandChangeLayout||(i.command.changeLayout=a.parseChangeLayoutArgs([i.command.changeLayout]).command),i=a.callFilters("instructionParseMultimixArgs",i,arguments),n.freeze(i),i},parseFilterArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandFilter,r=0;r<t.length;r++)o=t[r],"string"==typeof o?i.command.selector=o:null===o?i.command.collection=[]:"object"==typeof o&&n.isElement(o,a.dom.document)?i.command.collection=[o]:"object"==typeof o&&"undefined"!=typeof o.length?i.command.collection=n.arrayFromList(o):"object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o);if(i.command.selector&&i.command.collection)throw new Error(e.messages.errorFilterInvalidArguments());return i=a.callFilters("instructionParseFilterArgs",i,arguments),n.freeze(i),i},parseSortArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r="",s=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandSort,s=0;s<t.length;s++)if(o=t[s],null!==o)switch(typeof o){case"string":r=o;break;case"object":o.length&&(i.command.collection=n.arrayFromList(o));break;case"boolean":i.animate=o;break;case"function":i.callback=o}return r&&(i.command=a.parseSortString(r,i.command)),i=a.callFilters("instructionParseSortArgs",i,arguments),n.freeze(i),i},parseInsertArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandInsert,r=0;r<t.length;r++)o=t[r],null!==o&&("number"==typeof o?i.command.index=o:"string"==typeof o&&["before","after"].indexOf(o)>-1?i.command.position=o:"string"==typeof o?i.command.collection=n.arrayFromList(n.createElement(o).childNodes):"object"==typeof o&&n.isElement(o,a.dom.document)?i.command.collection.length?i.command.sibling=o:i.command.collection=[o]:"object"==typeof o&&o.length?i.command.collection.length?i.command.sibling=o[0]:i.command.collection=o:"object"==typeof o&&o.childNodes&&o.childNodes.length?i.command.collection.length?i.command.sibling=o.childNodes[0]:i.command.collection=n.arrayFromList(o.childNodes):"object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o));if(i.command.index&&i.command.sibling)throw new Error(e.messages.errorInsertInvalidArguments());return!i.command.collection.length&&a.config.debug.showWarnings&&console.warn(e.messages.warningInsertNoElements()),i=a.callFilters("instructionParseInsertArgs",i,arguments),n.freeze(i),i},parseRemoveArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=null,s=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandRemove,s=0;s<t.length;s++)if(r=t[s],null!==r)switch(typeof r){case"number":a.targets[r]&&(i.command.targets[0]=a.targets[r]);break;case"string":i.command.collection=n.arrayFromList(a.dom.parent.querySelectorAll(r));break;case"object":r&&r.length?i.command.collection=r:n.isElement(r,a.dom.document)?i.command.collection=[r]:n.extend(i.command,r);break;case"boolean":i.animate=r;break;case"function":i.callback=r}if(i.command.collection.length)for(s=0;o=a.targets[s];s++)i.command.collection.indexOf(o.dom.el)>-1&&i.command.targets.push(o);return!i.command.targets.length&&a.config.debug.showWarnings&&console.warn(e.messages.warningRemoveNoElements()),n.freeze(i),i},parseDatasetArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandDataset,r=0;r<t.length;r++)if(o=t[r],null!==o)switch(typeof o){case"object":Array.isArray(o)||"number"==typeof o.length?i.command.dataset=o:n.extend(i.command,o);break;case"boolean":i.animate=o;break;case"function":i.callback=o}return n.freeze(i),i},parseChangeLayoutArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandChangeLayout,r=0;r<t.length;r++)if(o=t[r],null!==o)switch(typeof o){case"string":i.command.containerClassName=o;break;case"object":n.extend(i.command,o);break;case"boolean":i.animate=o;break;case"function":i.callback=o}return n.freeze(i),i},queueMix:function(t){var a=this,i=null,o="";return a.callActions("beforeQueueMix",arguments),i=n.defer(e.libraries),a.config.animation.queue&&a.queue.length<a.config.animation.queueLimit?(t.deferred=i,a.queue.push(t),a.config.controls.enable&&(a.isToggling?(a.buildToggleArray(t.instruction.command),o=a.getToggleSelector(),a.updateControls({filter:{selector:o}})):a.updateControls(t.instruction.command))):(a.config.debug.showWarnings&&console.warn(e.messages.warningMultimixInstanceQueueFull()),i.resolve(a.state),e.events.fire("mixBusy",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixBusy&&a.config.callbacks.onMixBusy.call(a.dom.container,a.state,a)),
18
- a.callFilters("promiseQueueMix",i.promise,arguments)},getDataOperation:function(t){var a=this,i=new e.Operation,o=[];if(i=a.callFilters("operationUnmappedGetDataOperation",i,arguments),a.dom.targets.length&&!(o=a.state.activeDataset||[]).length)throw new Error(e.messages.errorDatasetNotSet());return i.id=n.randomHex(),i.startState=a.state,i.startDataset=o,i.newDataset=t.slice(),a.diffDatasets(i),i.startOrder=a.targets,i.newOrder=i.show,a.config.animation.enable&&(a.getStartMixData(i),a.setInter(i),i.docState=n.getDocumentState(a.dom.document),a.getInterMixData(i),a.setFinal(i),a.getFinalMixData(i),a.parseEffects(),i.hasEffect=a.hasEffect(),a.getTweenData(i)),a.targets=i.show.slice(),i.newState=a.buildState(i),Array.prototype.push.apply(a.targets,i.toRemove),i=a.callFilters("operationMappedGetDataOperation",i,arguments)},diffDatasets:function(t){var a=this,i=[],o=[],r=[],s=null,l=null,c=null,u=null,f=null,h={},d="",m=-1;for(a.callActions("beforeDiffDatasets",arguments),m=0;s=t.newDataset[m];m++){if("undefined"==typeof(d=s[a.config.data.uidKey])||d.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:a.config.data.uidKey}));if(h[d])throw new Error(e.messages.errorDatasetDuplicateUid({uid:d}));h[d]=!0,(l=a.cache[d])instanceof e.Target?(a.config.data.dirtyCheck&&!n.deepEquals(s,l.data)&&(c=l.render(s),l.data=s,c!==l.dom.el&&(l.isInDom&&(l.unbindEvents(),a.dom.parent.replaceChild(c,l.dom.el)),l.isShown||(c.style.display="none"),l.dom.el=c,l.isInDom&&l.bindEvents())),c=l.dom.el):(l=new e.Target,l.init(null,a,s),l.hide()),l.isInDom?(f=l.dom.el.nextElementSibling,o.push(d),u&&(u.lastElementChild&&u.appendChild(a.dom.document.createTextNode(" ")),a.insertDatasetFrag(u,l.dom.el,r),u=null)):(u||(u=a.dom.document.createDocumentFragment()),u.lastElementChild&&u.appendChild(a.dom.document.createTextNode(" ")),u.appendChild(l.dom.el),l.isInDom=!0,l.unbindEvents(),l.bindEvents(),l.hide(),t.toShow.push(l),r.push(l)),t.show.push(l)}for(u&&(f=f||a.config.layout.siblingAfter,f&&u.appendChild(a.dom.document.createTextNode(" ")),a.insertDatasetFrag(u,f,r)),m=0;s=t.startDataset[m];m++)d=s[a.config.data.uidKey],l=a.cache[d],t.show.indexOf(l)<0?(t.hide.push(l),t.toHide.push(l),t.toRemove.push(l)):i.push(d);n.isEqualArray(i,o)||(t.willSort=!0),a.callActions("afterDiffDatasets",arguments)},insertDatasetFrag:function(t,e,a){var i=this,o=e?n.arrayFromList(i.dom.parent.children).indexOf(e):i.targets.length;for(i.dom.parent.insertBefore(t,e);a.length;)i.targets.splice(o,0,a.shift()),o++},willSort:function(t,e){var n=this,a=!1;return a=!!(n.config.behavior.liveSort||"random"===t.order||t.attribute!==e.attribute||t.order!==e.order||t.collection!==e.collection||null===t.next&&e.next||t.next&&null===e.next)||!(!t.next||!e.next)&&n.willSort(t.next,e.next),n.callFilters("resultWillSort",a,arguments)},show:function(){var t=this;return t.filter("all")},hide:function(){var t=this;return t.filter("none")},isMixing:function(){var t=this;return t.isBusy},filter:function(){var t=this,e=t.parseFilterArgs(arguments);return t.multimix({filter:e.command},e.animate,e.callback)},toggleOn:function(){var t=this,e=t.parseFilterArgs(arguments),n=e.command.selector,a="";return t.isToggling=!0,t.toggleArray.indexOf(n)<0&&t.toggleArray.push(n),a=t.getToggleSelector(),t.multimix({filter:a},e.animate,e.callback)},toggleOff:function(){var t=this,e=t.parseFilterArgs(arguments),n=e.command.selector,a=t.toggleArray.indexOf(n),i="";return t.isToggling=!0,a>-1&&t.toggleArray.splice(a,1),i=t.getToggleSelector(),t.multimix({filter:i},e.animate,e.callback)},sort:function(){var t=this,e=t.parseSortArgs(arguments);return t.multimix({sort:e.command},e.animate,e.callback)},changeLayout:function(){var t=this,e=t.parseChangeLayoutArgs(arguments);return t.multimix({changeLayout:e.command},e.animate,e.callback)},dataset:function(){var t=this,n=t.parseDatasetArgs(arguments),a=null,i=null,o=!1;return t.callActions("beforeDataset",arguments),t.isBusy?(i=new e.QueueItem,i.args=arguments,i.instruction=n,t.queueMix(i)):(n.callback&&(t.userCallback=n.callback),o=n.animate^t.config.animation.enable?n.animate:t.config.animation.enable,a=t.getDataOperation(n.command.dataset),t.goMix(o,a))},multimix:function(){var t=this,n=null,a=!1,i=null,o=t.parseMultimixArgs(arguments);return t.callActions("beforeMultimix",arguments),t.isBusy?(i=new e.QueueItem,i.args=arguments,i.instruction=o,i.triggerElement=t.lastClicked,i.isToggling=t.isToggling,t.queueMix(i)):(n=t.getOperation(o.command),t.config.controls.enable&&(o.command.filter&&!t.isToggling&&(t.toggleArray.length=0,t.buildToggleArray(n.command)),t.queue.length<1&&t.updateControls(n.command)),o.callback&&(t.userCallback=o.callback),a=o.animate^t.config.animation.enable?o.animate:t.config.animation.enable,t.callFilters("operationMultimix",n,arguments),t.goMix(a,n))},getOperation:function(t){var a=this,i=t.sort,o=t.filter,r=t.changeLayout,s=t.remove,l=t.insert,c=new e.Operation;return c=a.callFilters("operationUnmappedGetOperation",c,arguments),c.id=n.randomHex(),c.command=t,c.startState=a.state,c.triggerElement=a.lastClicked,a.isBusy?(a.config.debug.showWarnings&&console.warn(e.messages.warningGetOperationInstanceBusy()),null):(l&&a.insertTargets(l,c),s&&(c.toRemove=s.targets),c.startSort=c.newSort=c.startState.activeSort,c.startOrder=c.newOrder=a.targets,i&&(c.startSort=c.startState.activeSort,c.newSort=i,c.willSort=a.willSort(i,c.startState.activeSort),c.willSort&&a.sortOperation(c)),c.startFilter=c.startState.activeFilter,o?c.newFilter=o:c.newFilter=n.extend(new e.CommandFilter,c.startFilter),"all"===c.newFilter.selector?c.newFilter.selector=a.config.selectors.target:"none"===c.newFilter.selector&&(c.newFilter.selector=""),a.filterOperation(c),c.startContainerClassName=c.startState.activeContainerClassName,r?(c.newContainerClassName=r.containerClassName,c.newContainerClassName!==c.startContainerClassName&&(c.willChangeLayout=!0)):c.newContainerClassName=c.startContainerClassName,a.config.animation.enable&&(a.getStartMixData(c),a.setInter(c),c.docState=n.getDocumentState(a.dom.document),a.getInterMixData(c),a.setFinal(c),a.getFinalMixData(c),a.parseEffects(),c.hasEffect=a.hasEffect(),a.getTweenData(c)),c.willSort&&(a.targets=c.newOrder),c.newState=a.buildState(c),a.callFilters("operationMappedGetOperation",c,arguments))},tween:function(t,e){var n=null,a=null,i=-1,o=-1;for(e=Math.min(e,1),e=Math.max(e,0),o=0;n=t.show[o];o++)a=t.showPosData[o],n.applyTween(a,e);for(o=0;n=t.hide[o];o++)n.isShown&&n.hide(),(i=t.toHide.indexOf(n))>-1&&(a=t.toHidePosData[i],n.isShown||n.show(),n.applyTween(a,e))},insert:function(){var t=this,e=t.parseInsertArgs(arguments);return t.multimix({insert:e.command},e.animate,e.callback)},insertBefore:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"before",e.command.sibling,e.animate,e.callback)},insertAfter:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"after",e.command.sibling,e.animate,e.callback)},prepend:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(0,e.command.collection,e.animate,e.callback)},append:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(t.state.totalTargets,e.command.collection,e.animate,e.callback)},remove:function(){var t=this,e=t.parseRemoveArgs(arguments);return t.multimix({remove:e.command},e.animate,e.callback)},getConfig:function(t){var e=this,a=null;return a=t?n.getProperty(e.config,t):e.config,e.callFilters("valueGetConfig",a,arguments)},configure:function(t){var e=this;e.callActions("beforeConfigure",arguments),n.extend(e.config,t,!0,!0),e.callActions("afterConfigure",arguments)},getState:function(){var t=this,a=null;return a=new e.State,n.extend(a,t.state),n.freeze(a),t.callFilters("stateGetState",a,arguments)},forceRefresh:function(){var t=this;t.indexTargets()},forceRender:function(){var t=this,e=null,n=null,a="";for(a in t.cache)e=t.cache[a],n=e.render(e.data),n!==e.dom.el&&(e.isInDom&&(e.unbindEvents(),t.dom.parent.replaceChild(n,e.dom.el)),e.isShown||(n.style.display="none"),e.dom.el=n,e.isInDom&&e.bindEvents());t.state=t.buildState(t.lastOperation)},destroy:function(t){var n=this,a=null,i=null,o=0;for(n.callActions("beforeDestroy",arguments),o=0;a=n.controls[o];o++)a.removeBinding(n);for(o=0;i=n.targets[o];o++)t&&i.show(),i.unbindEvents();n.dom.container.id.match(/^MixItUp/)&&n.dom.container.removeAttribute("id"),delete e.instances[n.id],n.callActions("afterDestroy",arguments)}}),e.IMoveData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.posIn=null,this.posOut=null,this.operation=null,this.callback=null,this.statusChange="",this.duration=-1,this.staggerIndex=-1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.IMoveData),e.IMoveData.prototype=Object.create(e.Base.prototype),e.IMoveData.prototype.constructor=e.IMoveData,e.TargetDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TargetDom),e.TargetDom.prototype=Object.create(e.Base.prototype),e.TargetDom.prototype.constructor=e.TargetDom,e.Target=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.sortString="",this.mixer=null,this.callback=null,this.isShown=!1,this.isBound=!1,this.isExcluded=!1,this.isInDom=!1,this.handler=null,this.operation=null,this.data=null,this.dom=new e.TargetDom,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Target),e.Target.prototype=Object.create(e.Base.prototype),n.extend(e.Target.prototype,{constructor:e.Target,init:function(t,n,a){var i=this,o="";if(i.callActions("beforeInit",arguments),i.mixer=n,t||(t=i.render(a)),i.cacheDom(t),i.bindEvents(),"none"!==i.dom.el.style.display&&(i.isShown=!0),a&&n.config.data.uidKey){if("undefined"==typeof(o=a[n.config.data.uidKey])||o.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:n.config.data.uidKey}));i.id=o,i.data=a,n.cache[o]=i}i.callActions("afterInit",arguments)},render:function(t){var a=this,i=null,o=null,r=null,s="";if(a.callActions("beforeRender",arguments),i=a.callFilters("renderRender",a.mixer.config.render.target,arguments),"function"!=typeof i)throw new TypeError(e.messages.errorDatasetRendererNotSet());return s=i(t),s&&"object"==typeof s&&n.isElement(s)?o=s:"string"==typeof s&&(r=document.createElement("div"),r.innerHTML=s,o=r.firstElementChild),a.callFilters("elRender",o,arguments)},cacheDom:function(t){var e=this;e.callActions("beforeCacheDom",arguments),e.dom.el=t,e.callActions("afterCacheDom",arguments)},getSortString:function(t){var e=this,n=e.dom.el.getAttribute("data-"+t)||"";e.callActions("beforeGetSortString",arguments),n=isNaN(1*n)?n.toLowerCase():1*n,e.sortString=n,e.callActions("afterGetSortString",arguments)},show:function(){var t=this;t.callActions("beforeShow",arguments),t.isShown||(t.dom.el.style.display="",t.isShown=!0),t.callActions("afterShow",arguments)},hide:function(){var t=this;t.callActions("beforeHide",arguments),t.isShown&&(t.dom.el.style.display="none",t.isShown=!1),t.callActions("afterHide",arguments)},move:function(t){var e=this;e.callActions("beforeMove",arguments),e.isExcluded||e.mixer.targetsMoved++,e.applyStylesIn(t),requestAnimationFrame(function(){e.applyStylesOut(t)}),e.callActions("afterMove",arguments)},applyTween:function(t,n){var a=this,i="",o=null,r=t.posIn,s=[],l=new e.StyleData,c=-1;for(a.callActions("beforeApplyTween",arguments),l.x=r.x,l.y=r.y,0===n?a.hide():a.isShown||a.show(),c=0;i=e.features.TWEENABLE[c];c++)if(o=t.tweenData[i],"x"===i){if(!o)continue;l.x=r.x+o*n}else if("y"===i){if(!o)continue;l.y=r.y+o*n}else if(o instanceof e.TransformData){if(!o.value)continue;l[i].value=r[i].value+o.value*n,l[i].unit=o.unit,s.push(i+"("+l[i].value+o.unit+")")}else{if(!o)continue;l[i]=r[i]+o*n,a.dom.el.style[i]=l[i]}(l.x||l.y)&&s.unshift("translate("+l.x+"px, "+l.y+"px)"),s.length&&(a.dom.el.style[e.features.transformProp]=s.join(" ")),a.callActions("afterApplyTween",arguments)},applyStylesIn:function(t){var n=this,a=t.posIn,i=1!==n.mixer.effectsIn.opacity,o=[];n.callActions("beforeApplyStylesIn",arguments),o.push("translate("+a.x+"px, "+a.y+"px)"),n.mixer.config.animation.animateResizeTargets&&("show"!==t.statusChange&&(n.dom.el.style.width=a.width+"px",n.dom.el.style.height=a.height+"px"),n.dom.el.style.marginRight=a.marginRight+"px",n.dom.el.style.marginBottom=a.marginBottom+"px"),i&&(n.dom.el.style.opacity=a.opacity),"show"===t.statusChange&&(o=o.concat(n.mixer.transformIn)),n.dom.el.style[e.features.transformProp]=o.join(" "),n.callActions("afterApplyStylesIn",arguments)},applyStylesOut:function(t){var n=this,a=[],i=[],o=n.mixer.config.animation.animateResizeTargets,r="undefined"!=typeof n.mixer.effectsIn.opacity;if(n.callActions("beforeApplyStylesOut",arguments),a.push(n.writeTransitionRule(e.features.transformRule,t.staggerIndex)),"none"!==t.statusChange&&a.push(n.writeTransitionRule("opacity",t.staggerIndex,t.duration)),o&&(a.push(n.writeTransitionRule("width",t.staggerIndex,t.duration)),a.push(n.writeTransitionRule("height",t.staggerIndex,t.duration)),a.push(n.writeTransitionRule("margin",t.staggerIndex,t.duration))),!t.callback)return n.mixer.targetsImmovable++,void(n.mixer.targetsMoved===n.mixer.targetsImmovable&&n.mixer.cleanUp(t.operation));switch(n.operation=t.operation,n.callback=t.callback,!n.isExcluded&&n.mixer.targetsBound++,n.isBound=!0,n.applyTransition(a),o&&t.posOut.width>0&&t.posOut.height>0&&(n.dom.el.style.width=t.posOut.width+"px",n.dom.el.style.height=t.posOut.height+"px",n.dom.el.style.marginRight=t.posOut.marginRight+"px",n.dom.el.style.marginBottom=t.posOut.marginBottom+"px"),n.mixer.config.animation.nudge||"hide"!==t.statusChange||i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),t.statusChange){case"hide":r&&(n.dom.el.style.opacity=n.mixer.effectsOut.opacity),i=i.concat(n.mixer.transformOut);break;case"show":r&&(n.dom.el.style.opacity=1)}(n.mixer.config.animation.nudge||!n.mixer.config.animation.nudge&&"hide"!==t.statusChange)&&i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),n.dom.el.style[e.features.transformProp]=i.join(" "),n.callActions("afterApplyStylesOut",arguments)},writeTransitionRule:function(t,e,n){var a=this,i=a.getDelay(e),o="";return o=t+" "+(n>0?n:a.mixer.config.animation.duration)+"ms "+i+"ms "+("opacity"===t?"linear":a.mixer.config.animation.easing),a.callFilters("ruleWriteTransitionRule",o,arguments)},getDelay:function(t){var e=this,n=-1;return"function"==typeof e.mixer.config.animation.staggerSequence&&(t=e.mixer.config.animation.staggerSequence.call(e,t,e.state)),n=e.mixer.staggerDuration?t*e.mixer.staggerDuration:0,e.callFilters("delayGetDelay",n,arguments)},applyTransition:function(t){var n=this,a=t.join(", ");n.callActions("beforeApplyTransition",arguments),n.dom.el.style[e.features.transitionProp]=a,n.callActions("afterApplyTransition",arguments)},handleTransitionEnd:function(t){var e=this,n=t.propertyName,a=e.mixer.config.animation.animateResizeTargets;e.callActions("beforeHandleTransitionEnd",arguments),e.isBound&&t.target.matches(e.mixer.config.selectors.target)&&(n.indexOf("transform")>-1||n.indexOf("opacity")>-1||a&&n.indexOf("height")>-1||a&&n.indexOf("width")>-1||a&&n.indexOf("margin")>-1)&&(e.callback.call(e,e.operation),e.isBound=!1,e.callback=null,e.operation=null),e.callActions("afterHandleTransitionEnd",arguments)},eventBus:function(t){var e=this;switch(e.callActions("beforeEventBus",arguments),t.type){case"webkitTransitionEnd":case"transitionend":e.handleTransitionEnd(t)}e.callActions("afterEventBus",arguments)},unbindEvents:function(){var t=this;t.callActions("beforeUnbindEvents",arguments),n.off(t.dom.el,"webkitTransitionEnd",t.handler),n.off(t.dom.el,"transitionend",t.handler),t.callActions("afterUnbindEvents",arguments)},bindEvents:function(){var t=this,a="";t.callActions("beforeBindEvents",arguments),a="webkit"===e.features.transitionPrefix?"webkitTransitionEnd":"transitionend",t.handler=function(e){return t.eventBus(e)},n.on(t.dom.el,a,t.handler),t.callActions("afterBindEvents",arguments)},getPosData:function(n){var a=this,i={},o=null,r=new e.StyleData;return a.callActions("beforeGetPosData",arguments),r.x=a.dom.el.offsetLeft,r.y=a.dom.el.offsetTop,(a.mixer.config.animation.animateResizeTargets||n)&&(o=a.dom.el.getBoundingClientRect(),r.top=o.top,r.right=o.right,r.bottom=o.bottom,r.left=o.left,r.width=o.width,r.height=o.height),a.mixer.config.animation.animateResizeTargets&&(i=t.getComputedStyle(a.dom.el),r.marginBottom=parseFloat(i.marginBottom),r.marginRight=parseFloat(i.marginRight)),a.callFilters("posDataGetPosData",r,arguments)},cleanUp:function(){var t=this;t.callActions("beforeCleanUp",arguments),t.dom.el.style[e.features.transformProp]="",t.dom.el.style[e.features.transitionProp]="",t.dom.el.style.opacity="",t.mixer.config.animation.animateResizeTargets&&(t.dom.el.style.width="",t.dom.el.style.height="",t.dom.el.style.marginRight="",t.dom.el.style.marginBottom=""),t.callActions("afterCleanUp",arguments)}}),e.Collection=function(t){var e=null,a=-1;for(this.callActions("beforeConstruct"),a=0;e=t[a];a++)this[a]=e;this.length=t.length,this.callActions("afterConstruct"),n.freeze(this)},e.BaseStatic.call(e.Collection),e.Collection.prototype=Object.create(e.Base.prototype),n.extend(e.Collection.prototype,{constructor:e.Collection,mixitup:function(t){var a=this,i=null,o=Array.prototype.slice.call(arguments),r=[],s=-1;for(this.callActions("beforeMixitup"),o.shift(),s=0;i=a[s];s++)r.push(i[t].apply(i,o));return a.callFilters("promiseMixitup",n.all(r,e.libraries),arguments)}}),e.Operation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.args=[],this.command=null,this.showPosData=[],this.toHidePosData=[],this.startState=null,this.newState=null,this.docState=null,this.willSort=!1,this.willChangeLayout=!1,this.hasEffect=!1,this.hasFailed=!1,this.triggerElement=null,this.show=[],this.hide=[],this.matching=[],this.toShow=[],this.toHide=[],this.toMove=[],this.toRemove=[],this.startOrder=[],this.newOrder=[],this.startSort=null,this.newSort=null,this.startFilter=null,this.newFilter=null,this.startDataset=null,this.newDataset=null,this.viewportDeltaX=0,this.viewportDeltaY=0,this.startX=0,this.startY=0,this.startHeight=0,this.startWidth=0,this.newX=0,this.newY=0,this.newHeight=0,this.newWidth=0,this.startContainerClassName="",this.startDisplay="",this.newContainerClassName="",this.newDisplay="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Operation),e.Operation.prototype=Object.create(e.Base.prototype),e.Operation.prototype.constructor=e.Operation,e.State=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.activeFilter=null,this.activeSort=null,this.activeContainerClassName="",this.container=null,this.targets=[],this.hide=[],this.show=[],this.matching=[],this.totalTargets=-1,this.totalShow=-1,this.totalHide=-1,this.totalMatching=-1,this.hasFailed=!1,this.triggerElement=null,this.activeDataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.State),e.State.prototype=Object.create(e.Base.prototype),e.State.prototype.constructor=e.State,e.UserInstruction=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.command={},this.animate=!1,this.callback=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.UserInstruction),e.UserInstruction.prototype=Object.create(e.Base.prototype),e.UserInstruction.prototype.constructor=e.UserInstruction,e.Messages=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.ERROR_FACTORY_INVALID_CONTAINER="[MixItUp] An invalid selector or element reference was passed to the mixitup factory function",this.ERROR_FACTORY_CONTAINER_NOT_FOUND="[MixItUp] The provided selector yielded no container element",this.ERROR_CONFIG_INVALID_ANIMATION_EFFECTS="[MixItUp] Invalid value for `animation.effects`",this.ERROR_CONFIG_INVALID_CONTROLS_SCOPE="[MixItUp] Invalid value for `controls.scope`",this.ERROR_CONFIG_INVALID_PROPERTY='[MixitUp] Invalid configuration object property "${erroneous}"${suggestion}',this.ERROR_CONFIG_INVALID_PROPERTY_SUGGESTION='. Did you mean "${probableMatch}"?',this.ERROR_CONFIG_DATA_UID_KEY_NOT_SET="[MixItUp] To use the dataset API, a UID key must be specified using `data.uidKey`",this.ERROR_DATASET_INVALID_UID_KEY='[MixItUp] The specified UID key "${uidKey}" is not present on one or more dataset items',this.ERROR_DATASET_DUPLICATE_UID='[MixItUp] The UID "${uid}" was found on two or more dataset items. UIDs must be unique.',this.ERROR_INSERT_INVALID_ARGUMENTS="[MixItUp] Please provider either an index or a sibling and position to insert, not both",this.ERROR_INSERT_PREEXISTING_ELEMENT="[MixItUp] An element to be inserted already exists in the container",this.ERROR_FILTER_INVALID_ARGUMENTS="[MixItUp] Please provide either a selector or collection `.filter()`, not both",this.ERROR_DATASET_NOT_SET="[MixItUp] To use the dataset API with pre-rendered targets, a starting dataset must be set using `load.dataset`",this.ERROR_DATASET_PRERENDERED_MISMATCH="[MixItUp] `load.dataset` does not match pre-rendered targets",this.ERROR_DATASET_RENDERER_NOT_SET="[MixItUp] To insert an element via the dataset API, a target renderer function must be provided to `render.target`",this.ERROR_SORT_NON_EXISTENT_ELEMENT="[MixItUp] An element to be sorted does not already exist in the container",this.WARNING_FACTORY_PREEXISTING_INSTANCE="[MixItUp] WARNING: This element already has an active MixItUp instance. The provided configuration object will be ignored. If you wish to perform additional methods on this instance, please create a reference.",this.WARNING_INSERT_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.insert()`",this.WARNING_REMOVE_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.remove()`",this.WARNING_MULTIMIX_INSTANCE_QUEUE_FULL="[MixItUp] WARNING: An operation was requested but the MixItUp instance was busy. The operation was rejected because the queue is full or queuing is disabled.",this.WARNING_GET_OPERATION_INSTANCE_BUSY="[MixItUp] WARNING: Operations can be be created while the MixItUp instance is busy.",this.WARNING_NO_PROMISE_IMPLEMENTATION="[MixItUp] WARNING: No Promise implementations could be found. If you wish to use promises with MixItUp please install an ES6 Promise polyfill.",this.WARNING_INCONSISTENT_SORTING_ATTRIBUTES='[MixItUp] WARNING: The requested sorting data attribute "${attribute}" was not present on one or more target elements which may product unexpected sort output',this.callActions("afterConstruct"),this.compileTemplates(),n.seal(this)},e.BaseStatic.call(e.Messages),e.Messages.prototype=Object.create(e.Base.prototype),e.Messages.prototype.constructor=e.Messages,e.Messages.prototype.compileTemplates=function(){var t="",e="";for(t in this)"string"==typeof(e=this[t])&&(this[n.camelCase(t)]=n.template(e))},e.messages=new e.Messages,e.Facade=function(t){e.Base.call(this),this.callActions("beforeConstruct",arguments),this.configure=t.configure.bind(t),this.show=t.show.bind(t),this.hide=t.hide.bind(t),this.filter=t.filter.bind(t),this.toggleOn=t.toggleOn.bind(t),this.toggleOff=t.toggleOff.bind(t),this.sort=t.sort.bind(t),this.changeLayout=t.changeLayout.bind(t),this.multimix=t.multimix.bind(t),this.dataset=t.dataset.bind(t),this.tween=t.tween.bind(t),this.insert=t.insert.bind(t),this.insertBefore=t.insertBefore.bind(t),this.insertAfter=t.insertAfter.bind(t),this.prepend=t.prepend.bind(t),this.append=t.append.bind(t),this.remove=t.remove.bind(t),this.destroy=t.destroy.bind(t),this.forceRefresh=t.forceRefresh.bind(t),this.forceRender=t.forceRender.bind(t),this.isMixing=t.isMixing.bind(t),this.getOperation=t.getOperation.bind(t),this.getConfig=t.getConfig.bind(t),this.getState=t.getState.bind(t),this.callActions("afterConstruct",arguments),n.freeze(this),n.seal(this)},e.BaseStatic.call(e.Facade),e.Facade.prototype=Object.create(e.Base.prototype),e.Facade.prototype.constructor=e.Facade,"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):"undefined"!=typeof t.mixitup&&"function"==typeof t.mixitup||(t.mixitup=e),e.BaseStatic.call(e.constructor),e.NAME="mixitup",e.CORE_VERSION="3.3.1"}(window);
1
  /**!
2
+ * MixItUp v2.1.11
 
 
3
  *
4
+ * @copyright Copyright 2015 KunkaLabs Limited.
5
  * @author KunkaLabs Limited.
6
+ * @link https://mixitup.kunkalabs.com
7
  *
8
  * @license Commercial use requires a commercial license.
9
+ * https://mixitup.kunkalabs.com/licenses/
10
  *
11
+ * Non-commercial use permitted under terms of CC-BY-NC license.
12
  * http://creativecommons.org/licenses/by-nc/3.0/
13
  */
14
+ !function(a,b){"use strict";a.MixItUp=function(){var b=this;b._execAction("_constructor",0),a.extend(b,{selectors:{target:".mix",filter:".filter",sort:".sort"},animation:{enable:!0,effects:"fade scale",duration:600,easing:"ease",perspectiveDistance:"3000",perspectiveOrigin:"50% 50%",queue:!0,queueLimit:1,animateChangeLayout:!1,animateResizeContainer:!0,animateResizeTargets:!1,staggerSequence:!1,reverseOut:!1},callbacks:{onMixLoad:!1,onMixStart:!1,onMixBusy:!1,onMixEnd:!1,onMixFail:!1,_user:!1},controls:{enable:!0,live:!1,toggleFilterButtons:!1,toggleLogic:"or",activeClass:"active"},layout:{display:"inline-block",containerClass:"",containerClassFail:"fail"},load:{filter:"all",sort:!1},_$body:null,_$container:null,_$targets:null,_$parent:null,_$sortButtons:null,_$filterButtons:null,_suckMode:!1,_mixing:!1,_sorting:!1,_clicking:!1,_loading:!0,_changingLayout:!1,_changingClass:!1,_changingDisplay:!1,_origOrder:[],_startOrder:[],_newOrder:[],_activeFilter:null,_toggleArray:[],_toggleString:"",_activeSort:"default:asc",_newSort:null,_startHeight:null,_newHeight:null,_incPadding:!0,_newDisplay:null,_newClass:null,_targetsBound:0,_targetsDone:0,_queue:[],_$show:a(),_$hide:a()}),b._execAction("_constructor",1)},a.MixItUp.prototype={constructor:a.MixItUp,_instances:{},_handled:{_filter:{},_sort:{}},_bound:{_filter:{},_sort:{}},_actions:{},_filters:{},extend:function(b){for(var c in b)a.MixItUp.prototype[c]=b[c]},addAction:function(b,c,d,e){a.MixItUp.prototype._addHook("_actions",b,c,d,e)},addFilter:function(b,c,d,e){a.MixItUp.prototype._addHook("_filters",b,c,d,e)},_addHook:function(b,c,d,e,f){var g=a.MixItUp.prototype[b],h={};f=1===f||"post"===f?"post":"pre",h[c]={},h[c][f]={},h[c][f][d]=e,a.extend(!0,g,h)},_init:function(b,c){var d=this;if(d._execAction("_init",0,arguments),c&&a.extend(!0,d,c),d._$body=a("body"),d._domNode=b,d._$container=a(b),d._$container.addClass(d.layout.containerClass),d._id=b.id,d._platformDetect(),d._brake=d._getPrefixedCSS("transition","none"),d._refresh(!0),d._$parent=d._$targets.parent().length?d._$targets.parent():d._$container,d.load.sort&&(d._newSort=d._parseSort(d.load.sort),d._newSortString=d.load.sort,d._activeSort=d.load.sort,d._sort(),d._printSort()),d._activeFilter="all"===d.load.filter?d.selectors.target:"none"===d.load.filter?"":d.load.filter,d.controls.enable&&d._bindHandlers(),d.controls.toggleFilterButtons){d._buildToggleArray();for(var e=0;e<d._toggleArray.length;e++)d._updateControls({filter:d._toggleArray[e],sort:d._activeSort},!0)}else d.controls.enable&&d._updateControls({filter:d._activeFilter,sort:d._activeSort});d._filter(),d._init=!0,d._$container.data("mixItUp",d),d._execAction("_init",1,arguments),d._buildState(),d._$targets.css(d._brake),d._goMix(d.animation.enable)},_platformDetect:function(){var a=this,c=["Webkit","Moz","O","ms"],d=["webkit","moz"],e=window.navigator.appVersion.match(/Chrome\/(\d+)\./)||!1,f="undefined"!=typeof InstallTrigger,g=function(a){for(var b=0;b<c.length;b++)if(c[b]+"Transition"in a.style)return{prefix:"-"+c[b].toLowerCase()+"-",vendor:c[b]};return"transition"in a.style?"":!1},h=g(a._domNode);a._execAction("_platformDetect",0),a._chrome=e?parseInt(e[1],10):!1,a._ff=f?parseInt(window.navigator.userAgent.match(/rv:([^)]+)\)/)[1]):!1,a._prefix=h.prefix,a._vendor=h.vendor,a._suckMode=window.atob&&a._prefix?!1:!0,a._suckMode&&(a.animation.enable=!1),a._ff&&a._ff<=4&&(a.animation.enable=!1);for(var i=0;i<d.length&&!window.requestAnimationFrame;i++)window.requestAnimationFrame=window[d[i]+"RequestAnimationFrame"];"function"!=typeof Object.getPrototypeOf&&("object"==typeof"test".__proto__?Object.getPrototypeOf=function(a){return a.__proto__}:Object.getPrototypeOf=function(a){return a.constructor.prototype}),a._domNode.nextElementSibling===b&&Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var a=this.nextSibling;a;){if(1===a.nodeType)return a;a=a.nextSibling}return null}}),a._execAction("_platformDetect",1)},_refresh:function(a,c){var d=this;d._execAction("_refresh",0,arguments),d._$targets=d._$container.find(d.selectors.target);for(var e=0;e<d._$targets.length;e++){var f=d._$targets[e];if(f.dataset===b||c){f.dataset={};for(var g=0;g<f.attributes.length;g++){var h=f.attributes[g],i=h.name,j=h.value;if(i.indexOf("data-")>-1){var k=d._helpers._camelCase(i.substring(5,i.length));f.dataset[k]=j}}}f.mixParent===b&&(f.mixParent=d._id)}if(d._$targets.length&&a||!d._origOrder.length&&d._$targets.length){d._origOrder=[];for(var e=0;e<d._$targets.length;e++){var f=d._$targets[e];d._origOrder.push(f)}}d._execAction("_refresh",1,arguments)},_bindHandlers:function(){var c=this,d=a.MixItUp.prototype._bound._filter,e=a.MixItUp.prototype._bound._sort;c._execAction("_bindHandlers",0),c.controls.live?c._$body.on("click.mixItUp."+c._id,c.selectors.sort,function(){c._processClick(a(this),"sort")}).on("click.mixItUp."+c._id,c.selectors.filter,function(){c._processClick(a(this),"filter")}):(c._$sortButtons=a(c.selectors.sort),c._$filterButtons=a(c.selectors.filter),c._$sortButtons.on("click.mixItUp."+c._id,function(){c._processClick(a(this),"sort")}),c._$filterButtons.on("click.mixItUp."+c._id,function(){c._processClick(a(this),"filter")})),d[c.selectors.filter]=d[c.selectors.filter]===b?1:d[c.selectors.filter]+1,e[c.selectors.sort]=e[c.selectors.sort]===b?1:e[c.selectors.sort]+1,c._execAction("_bindHandlers",1)},_processClick:function(c,d){var e=this,f=function(c,d,f){var g=a.MixItUp.prototype;g._handled["_"+d][e.selectors[d]]=g._handled["_"+d][e.selectors[d]]===b?1:g._handled["_"+d][e.selectors[d]]+1,g._handled["_"+d][e.selectors[d]]===g._bound["_"+d][e.selectors[d]]&&(c[(f?"remove":"add")+"Class"](e.controls.activeClass),delete g._handled["_"+d][e.selectors[d]])};if(e._execAction("_processClick",0,arguments),!e._mixing||e.animation.queue&&e._queue.length<e.animation.queueLimit){if(e._clicking=!0,"sort"===d){var g=c.attr("data-sort");(!c.hasClass(e.controls.activeClass)||g.indexOf("random")>-1)&&(a(e.selectors.sort).removeClass(e.controls.activeClass),f(c,d),e.sort(g))}if("filter"===d){var h,i=c.attr("data-filter"),j="or"===e.controls.toggleLogic?",":"";e.controls.toggleFilterButtons?(e._buildToggleArray(),c.hasClass(e.controls.activeClass)?(f(c,d,!0),h=e._toggleArray.indexOf(i),e._toggleArray.splice(h,1)):(f(c,d),e._toggleArray.push(i)),e._toggleArray=a.grep(e._toggleArray,function(a){return a}),e._toggleString=e._toggleArray.join(j),e.filter(e._toggleString)):c.hasClass(e.controls.activeClass)||(a(e.selectors.filter).removeClass(e.controls.activeClass),f(c,d),e.filter(i))}e._execAction("_processClick",1,arguments)}else"function"==typeof e.callbacks.onMixBusy&&e.callbacks.onMixBusy.call(e._domNode,e._state,e),e._execAction("_processClickBusy",1,arguments)},_buildToggleArray:function(){var a=this,b=a._activeFilter.replace(/\s/g,"");if(a._execAction("_buildToggleArray",0,arguments),"or"===a.controls.toggleLogic)a._toggleArray=b.split(",");else{a._toggleArray=b.split("."),!a._toggleArray[0]&&a._toggleArray.shift();for(var c,d=0;c=a._toggleArray[d];d++)a._toggleArray[d]="."+c}a._execAction("_buildToggleArray",1,arguments)},_updateControls:function(c,d){var e=this,f={filter:c.filter,sort:c.sort},g=function(a,b){try{d&&"filter"===h&&"none"!==f.filter&&""!==f.filter?a.filter(b).addClass(e.controls.activeClass):a.removeClass(e.controls.activeClass).filter(b).addClass(e.controls.activeClass)}catch(c){}},h="filter",i=null;e._execAction("_updateControls",0,arguments),c.filter===b&&(f.filter=e._activeFilter),c.sort===b&&(f.sort=e._activeSort),f.filter===e.selectors.target&&(f.filter="all");for(var j=0;2>j;j++)i=e.controls.live?a(e.selectors[h]):e["_$"+h+"Buttons"],i&&g(i,"[data-"+h+'="'+f[h]+'"]'),h="sort";e._execAction("_updateControls",1,arguments)},_filter:function(){var b=this;b._execAction("_filter",0);for(var c=0;c<b._$targets.length;c++){var d=a(b._$targets[c]);d.is(b._activeFilter)?b._$show=b._$show.add(d):b._$hide=b._$hide.add(d)}b._execAction("_filter",1)},_sort:function(){var a=this,b=function(a){for(var b=a.slice(),c=b.length,d=c;d--;){var e=parseInt(Math.random()*c),f=b[d];b[d]=b[e],b[e]=f}return b};a._execAction("_sort",0),a._startOrder=[];for(var c=0;c<a._$targets.length;c++){var d=a._$targets[c];a._startOrder.push(d)}switch(a._newSort[0].sortBy){case"default":a._newOrder=a._origOrder;break;case"random":a._newOrder=b(a._startOrder);break;case"custom":a._newOrder=a._newSort[0].order;break;default:a._newOrder=a._startOrder.concat().sort(function(b,c){return a._compare(b,c)})}a._execAction("_sort",1)},_compare:function(a,b,c){c=c?c:0;var d=this,e=d._newSort[c].order,f=function(a){return a.dataset[d._newSort[c].sortBy]||0},g=isNaN(1*f(a))?f(a).toLowerCase():1*f(a),h=isNaN(1*f(b))?f(b).toLowerCase():1*f(b);return h>g?"asc"===e?-1:1:g>h?"asc"===e?1:-1:g===h&&d._newSort.length>c+1?d._compare(a,b,c+1):0},_printSort:function(a){var b=this,c=a?b._startOrder:b._newOrder,d=b._$parent[0].querySelectorAll(b.selectors.target),e=d.length?d[d.length-1].nextElementSibling:null,f=document.createDocumentFragment();b._execAction("_printSort",0,arguments);for(var g=0;g<d.length;g++){var h=d[g],i=h.nextSibling;"absolute"!==h.style.position&&(i&&"#text"===i.nodeName&&b._$parent[0].removeChild(i),b._$parent[0].removeChild(h))}for(var g=0;g<c.length;g++){var j=c[g];if("default"!==b._newSort[0].sortBy||"desc"!==b._newSort[0].order||a)f.appendChild(j),f.appendChild(document.createTextNode(" "));else{var k=f.firstChild;f.insertBefore(j,k),f.insertBefore(document.createTextNode(" "),j)}}e?b._$parent[0].insertBefore(f,e):b._$parent[0].appendChild(f),b._execAction("_printSort",1,arguments)},_parseSort:function(a){for(var b=this,c="string"==typeof a?a.split(" "):[a],d=[],e=0;e<c.length;e++){var f="string"==typeof a?c[e].split(":"):["custom",c[e]],g={sortBy:b._helpers._camelCase(f[0]),order:f[1]||"asc"};if(d.push(g),"default"===g.sortBy||"random"===g.sortBy)break}return b._execFilter("_parseSort",d,arguments)},_parseEffects:function(){var a=this,b={opacity:"",transformIn:"",transformOut:"",filter:""},c=function(b,c,d){if(a.animation.effects.indexOf(b)>-1){if(c){var e=a.animation.effects.indexOf(b+"(");if(e>-1){var f=a.animation.effects.substring(e),g=/\(([^)]+)\)/.exec(f),h=g[1];return{val:h}}}return!0}return!1},d=function(a,b){return b?"-"===a.charAt(0)?a.substr(1,a.length):"-"+a:a},e=function(a,e){for(var f=[["scale",".01"],["translateX","20px"],["translateY","20px"],["translateZ","20px"],["rotateX","90deg"],["rotateY","90deg"],["rotateZ","180deg"]],g=0;g<f.length;g++){var h=f[g][0],i=f[g][1],j=e&&"scale"!==h;b[a]+=c(h)?h+"("+d(c(h,!0).val||i,j)+") ":""}};return b.opacity=c("fade")?c("fade",!0).val||"0":"1",e("transformIn"),a.animation.reverseOut?e("transformOut",!0):b.transformOut=b.transformIn,b.transition={},b.transition=a._getPrefixedCSS("transition","all "+a.animation.duration+"ms "+a.animation.easing+", opacity "+a.animation.duration+"ms linear"),a.animation.stagger=c("stagger")?!0:!1,a.animation.staggerDuration=parseInt(c("stagger")&&c("stagger",!0).val?c("stagger",!0).val:100),a._execFilter("_parseEffects",b)},_buildState:function(a){var b=this,c={};return b._execAction("_buildState",0),c={activeFilter:""===b._activeFilter?"none":b._activeFilter,activeSort:a&&b._newSortString?b._newSortString:b._activeSort,fail:!b._$show.length&&""!==b._activeFilter,$targets:b._$targets,$show:b._$show,$hide:b._$hide,totalTargets:b._$targets.length,totalShow:b._$show.length,totalHide:b._$hide.length,display:a&&b._newDisplay?b._newDisplay:b.layout.display},a?b._execFilter("_buildState",c):(b._state=c,void b._execAction("_buildState",1))},_goMix:function(a){var b=this,c=function(){b._chrome&&31===b._chrome&&f(b._$parent[0]),b._setInter(),d()},d=function(){var a=window.pageYOffset,c=window.pageXOffset;document.documentElement.scrollHeight;b._getInterMixData(),b._setFinal(),b._getFinalMixData(),window.pageYOffset!==a&&window.scrollTo(c,a),b._prepTargets(),window.requestAnimationFrame?requestAnimationFrame(e):setTimeout(function(){e()},20)},e=function(){b._animateTargets(),0===b._targetsBound&&b._cleanUp()},f=function(a){var b=a.parentElement,c=document.createElement("div"),d=document.createDocumentFragment();b.insertBefore(c,a),d.appendChild(a),b.replaceChild(a,c)},g=b._buildState(!0);b._execAction("_goMix",0,arguments),!b.animation.duration&&(a=!1),b._mixing=!0,b._$container.removeClass(b.layout.containerClassFail),"function"==typeof b.callbacks.onMixStart&&b.callbacks.onMixStart.call(b._domNode,b._state,g,b),b._$container.trigger("mixStart",[b._state,g,b]),b._getOrigMixData(),a&&!b._suckMode?window.requestAnimationFrame?requestAnimationFrame(c):c():b._cleanUp(),b._execAction("_goMix",1,arguments)},_getTargetData:function(a,b){var c,d=this;a.dataset[b+"PosX"]=a.offsetLeft,a.dataset[b+"PosY"]=a.offsetTop,d.animation.animateResizeTargets&&(c=d._suckMode?{marginBottom:"",marginRight:""}:window.getComputedStyle(a),a.dataset[b+"MarginBottom"]=parseInt(c.marginBottom),a.dataset[b+"MarginRight"]=parseInt(c.marginRight),a.dataset[b+"Width"]=a.offsetWidth,a.dataset[b+"Height"]=a.offsetHeight)},_getOrigMixData:function(){var a=this,b=a._suckMode?{boxSizing:""}:window.getComputedStyle(a._$parent[0]),c=b.boxSizing||b[a._vendor+"BoxSizing"];a._incPadding="border-box"===c,a._execAction("_getOrigMixData",0),!a._suckMode&&(a.effects=a._parseEffects()),a._$toHide=a._$hide.filter(":visible"),a._$toShow=a._$show.filter(":hidden"),a._$pre=a._$targets.filter(":visible"),a._startHeight=a._incPadding?a._$parent.outerHeight():a._$parent.height();for(var d=0;d<a._$pre.length;d++){var e=a._$pre[d];a._getTargetData(e,"orig")}a._execAction("_getOrigMixData",1)},_setInter:function(){var a=this;a._execAction("_setInter",0),a._changingLayout&&a.animation.animateChangeLayout?(a._$toShow.css("display",a._newDisplay),a._changingClass&&a._$container.removeClass(a.layout.containerClass).addClass(a._newClass)):a._$toShow.css("display",a.layout.display),a._execAction("_setInter",1)},_getInterMixData:function(){var a=this;a._execAction("_getInterMixData",0);for(var b=0;b<a._$toShow.length;b++){var c=a._$toShow[b];a._getTargetData(c,"inter")}for(var b=0;b<a._$pre.length;b++){var c=a._$pre[b];a._getTargetData(c,"inter")}a._execAction("_getInterMixData",1)},_setFinal:function(){var a=this;a._execAction("_setFinal",0),a._sorting&&a._printSort(),a._$toHide.removeStyle("display"),a._changingLayout&&a.animation.animateChangeLayout&&a._$pre.css("display",a._newDisplay),a._execAction("_setFinal",1)},_getFinalMixData:function(){var a=this;a._execAction("_getFinalMixData",0);for(var b=0;b<a._$toShow.length;b++){var c=a._$toShow[b];a._getTargetData(c,"final")}for(var b=0;b<a._$pre.length;b++){var c=a._$pre[b];a._getTargetData(c,"final")}a._newHeight=a._incPadding?a._$parent.outerHeight():a._$parent.height(),a._sorting&&a._printSort(!0),a._$toShow.removeStyle("display"),a._$pre.css("display",a.layout.display),a._changingClass&&a.animation.animateChangeLayout&&a._$container.removeClass(a._newClass).addClass(a.layout.containerClass),a._execAction("_getFinalMixData",1)},_prepTargets:function(){var b=this,c={_in:b._getPrefixedCSS("transform",b.effects.transformIn),_out:b._getPrefixedCSS("transform",b.effects.transformOut)};b._execAction("_prepTargets",0),b.animation.animateResizeContainer&&b._$parent.css("height",b._startHeight+"px");for(var d=0;d<b._$toShow.length;d++){var e=b._$toShow[d],f=a(e);e.style.opacity=b.effects.opacity,e.style.display=b._changingLayout&&b.animation.animateChangeLayout?b._newDisplay:b.layout.display,f.css(c._in),b.animation.animateResizeTargets&&(e.style.width=e.dataset.finalWidth+"px",e.style.height=e.dataset.finalHeight+"px",e.style.marginRight=-(e.dataset.finalWidth-e.dataset.interWidth)+1*e.dataset.finalMarginRight+"px",e.style.marginBottom=-(e.dataset.finalHeight-e.dataset.interHeight)+1*e.dataset.finalMarginBottom+"px")}for(var d=0;d<b._$pre.length;d++){var e=b._$pre[d],f=a(e),g={x:e.dataset.origPosX-e.dataset.interPosX,y:e.dataset.origPosY-e.dataset.interPosY},c=b._getPrefixedCSS("transform","translate("+g.x+"px,"+g.y+"px)");f.css(c),b.animation.animateResizeTargets&&(e.style.width=e.dataset.origWidth+"px",e.style.height=e.dataset.origHeight+"px",e.dataset.origWidth-e.dataset.finalWidth&&(e.style.marginRight=-(e.dataset.origWidth-e.dataset.interWidth)+1*e.dataset.origMarginRight+"px"),e.dataset.origHeight-e.dataset.finalHeight&&(e.style.marginBottom=-(e.dataset.origHeight-e.dataset.interHeight)+1*e.dataset.origMarginBottom+"px"))}b._execAction("_prepTargets",1)},_animateTargets:function(){var b=this;b._execAction("_animateTargets",0),b._targetsDone=0,b._targetsBound=0,b._$parent.css(b._getPrefixedCSS("perspective",b.animation.perspectiveDistance+"px")).css(b._getPrefixedCSS("perspective-origin",b.animation.perspectiveOrigin)),b.animation.animateResizeContainer&&b._$parent.css(b._getPrefixedCSS("transition","height "+b.animation.duration+"ms ease")).css("height",b._newHeight+"px");for(var c=0;c<b._$toShow.length;c++){var d=b._$toShow[c],e=a(d),f={x:d.dataset.finalPosX-d.dataset.interPosX,y:d.dataset.finalPosY-d.dataset.interPosY},g=b._getDelay(c),h={};d.style.opacity="";for(var i=0;2>i;i++){var j=0===i?j=b._prefix:"";b._ff&&b._ff<=20&&(h[j+"transition-property"]="all",h[j+"transition-timing-function"]=b.animation.easing+"ms",h[j+"transition-duration"]=b.animation.duration+"ms"),h[j+"transition-delay"]=g+"ms",h[j+"transform"]="translate("+f.x+"px,"+f.y+"px)"}(b.effects.transform||b.effects.opacity)&&b._bindTargetDone(e),b._ff&&b._ff<=20?e.css(h):e.css(b.effects.transition).css(h)}for(var c=0;c<b._$pre.length;c++){var d=b._$pre[c],e=a(d),f={x:d.dataset.finalPosX-d.dataset.interPosX,y:d.dataset.finalPosY-d.dataset.interPosY},g=b._getDelay(c);(d.dataset.finalPosX!==d.dataset.origPosX||d.dataset.finalPosY!==d.dataset.origPosY)&&b._bindTargetDone(e),e.css(b._getPrefixedCSS("transition","all "+b.animation.duration+"ms "+b.animation.easing+" "+g+"ms")),e.css(b._getPrefixedCSS("transform","translate("+f.x+"px,"+f.y+"px)")),b.animation.animateResizeTargets&&(d.dataset.origWidth-d.dataset.finalWidth&&1*d.dataset.finalWidth&&(d.style.width=d.dataset.finalWidth+"px",d.style.marginRight=-(d.dataset.finalWidth-d.dataset.interWidth)+1*d.dataset.finalMarginRight+"px"),d.dataset.origHeight-d.dataset.finalHeight&&1*d.dataset.finalHeight&&(d.style.height=d.dataset.finalHeight+"px",d.style.marginBottom=-(d.dataset.finalHeight-d.dataset.interHeight)+1*d.dataset.finalMarginBottom+"px"))}b._changingClass&&b._$container.removeClass(b.layout.containerClass).addClass(b._newClass);for(var c=0;c<b._$toHide.length;c++){for(var d=b._$toHide[c],e=a(d),g=b._getDelay(c),k={},i=0;2>i;i++){var j=0===i?j=b._prefix:"";k[j+"transition-delay"]=g+"ms",k[j+"transform"]=b.effects.transformOut,k.opacity=b.effects.opacity}e.css(b.effects.transition).css(k),(b.effects.transform||b.effects.opacity)&&b._bindTargetDone(e)}b._execAction("_animateTargets",1)},_bindTargetDone:function(b){var c=this,d=b[0];c._execAction("_bindTargetDone",0,arguments),d.dataset.bound||(d.dataset.bound=!0,c._targetsBound++,b.on("webkitTransitionEnd.mixItUp transitionend.mixItUp",function(e){(e.originalEvent.propertyName.indexOf("transform")>-1||e.originalEvent.propertyName.indexOf("opacity")>-1)&&a(e.originalEvent.target).is(c.selectors.target)&&(b.off(".mixItUp"),d.dataset.bound="",c._targetDone())})),c._execAction("_bindTargetDone",1,arguments)},_targetDone:function(){var a=this;a._execAction("_targetDone",0),a._targetsDone++,a._targetsDone===a._targetsBound&&a._cleanUp(),a._execAction("_targetDone",1)},_cleanUp:function(){var b=this,c=b.animation.animateResizeTargets?"transform opacity width height margin-bottom margin-right":"transform opacity",d=function(){b._$targets.removeStyle("transition",b._prefix)};b._execAction("_cleanUp",0),b._changingLayout?b._$show.css("display",b._newDisplay):b._$show.css("display",b.layout.display),b._$targets.css(b._brake),b._$targets.removeStyle(c,b._prefix).removeAttr("data-inter-pos-x data-inter-pos-y data-final-pos-x data-final-pos-y data-orig-pos-x data-orig-pos-y data-orig-height data-orig-width data-final-height data-final-width data-inter-width data-inter-height data-orig-margin-right data-orig-margin-bottom data-inter-margin-right data-inter-margin-bottom data-final-margin-right data-final-margin-bottom"),b._$hide.removeStyle("display"),b._$parent.removeStyle("height transition perspective-distance perspective perspective-origin-x perspective-origin-y perspective-origin perspectiveOrigin",b._prefix),b._sorting&&(b._printSort(),b._activeSort=b._newSortString,b._sorting=!1),b._changingLayout&&(b._changingDisplay&&(b.layout.display=b._newDisplay,b._changingDisplay=!1),b._changingClass&&(b._$parent.removeClass(b.layout.containerClass).addClass(b._newClass),b.layout.containerClass=b._newClass,b._changingClass=!1),b._changingLayout=!1),b._refresh(),b._buildState(),b._state.fail&&b._$container.addClass(b.layout.containerClassFail),b._$show=a(),b._$hide=a(),window.requestAnimationFrame&&requestAnimationFrame(d),b._mixing=!1,"function"==typeof b.callbacks._user&&b.callbacks._user.call(b._domNode,b._state,b),"function"==typeof b.callbacks.onMixEnd&&b.callbacks.onMixEnd.call(b._domNode,b._state,b),b._$container.trigger("mixEnd",[b._state,b]),b._state.fail&&("function"==typeof b.callbacks.onMixFail&&b.callbacks.onMixFail.call(b._domNode,b._state,b),b._$container.trigger("mixFail",[b._state,b])),b._loading&&("function"==typeof b.callbacks.onMixLoad&&b.callbacks.onMixLoad.call(b._domNode,b._state,b),b._$container.trigger("mixLoad",[b._state,b])),b._queue.length&&(b._execAction("_queue",0),b.multiMix(b._queue[0][0],b._queue[0][1],b._queue[0][2]),b._queue.splice(0,1)),b._execAction("_cleanUp",1),b._loading=!1},_getPrefixedCSS:function(a,b,c){var d=this,e={},f="",g=-1;for(g=0;2>g;g++)f=0===g?d._prefix:"",c?e[f+a]=f+b:e[f+a]=b;return d._execFilter("_getPrefixedCSS",e,arguments)},_getDelay:function(a){var b=this,c="function"==typeof b.animation.staggerSequence?b.animation.staggerSequence.call(b._domNode,a,b._state):a,d=b.animation.stagger?c*b.animation.staggerDuration:0;return b._execFilter("_getDelay",d,arguments)},_parseMultiMixArgs:function(a){for(var b=this,c={command:null,animate:b.animation.enable,callback:null},d=0;d<a.length;d++){var e=a[d];null!==e&&("object"==typeof e||"string"==typeof e?c.command=e:"boolean"==typeof e?c.animate=e:"function"==typeof e&&(c.callback=e))}return b._execFilter("_parseMultiMixArgs",c,arguments)},_parseInsertArgs:function(b){for(var c=this,d={index:0,$object:a(),multiMix:{filter:c._state.activeFilter},callback:null},e=0;e<b.length;e++){var f=b[e];"number"==typeof f?d.index=f:"object"==typeof f&&f instanceof a?d.$object=f:"object"==typeof f&&c._helpers._isElement(f)?d.$object=a(f):"object"==typeof f&&null!==f?d.multiMix=f:"boolean"!=typeof f||f?"function"==typeof f&&(d.callback=f):d.multiMix=!1}return c._execFilter("_parseInsertArgs",d,arguments)},_execAction:function(a,b,c){var d=this,e=b?"post":"pre";if(!d._actions.isEmptyObject&&d._actions.hasOwnProperty(a))for(var f in d._actions[a][e])d._actions[a][e][f].call(d,c)},_execFilter:function(a,b,c){var d=this;if(d._filters.isEmptyObject||!d._filters.hasOwnProperty(a))return b;for(var e in d._filters[a])return d._filters[a][e].call(d,c)},_helpers:{_camelCase:function(a){return a.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})},_isElement:function(a){return window.HTMLElement?a instanceof HTMLElement:null!==a&&1===a.nodeType&&"string"===a.nodeName}},isMixing:function(){var a=this;return a._execFilter("isMixing",a._mixing)},filter:function(){var a=this,b=a._parseMultiMixArgs(arguments);a._clicking&&(a._toggleString=""),a.multiMix({filter:b.command},b.animate,b.callback)},sort:function(){var a=this,b=a._parseMultiMixArgs(arguments);a.multiMix({sort:b.command},b.animate,b.callback)},changeLayout:function(){var a=this,b=a._parseMultiMixArgs(arguments);a.multiMix({changeLayout:b.command},b.animate,b.callback)},multiMix:function(){var a=this,c=a._parseMultiMixArgs(arguments);if(a._execAction("multiMix",0,arguments),a._mixing)a.animation.queue&&a._queue.length<a.animation.queueLimit?(a._queue.push(arguments),a.controls.enable&&!a._clicking&&a._updateControls(c.command),a._execAction("multiMixQueue",1,arguments)):("function"==typeof a.callbacks.onMixBusy&&a.callbacks.onMixBusy.call(a._domNode,a._state,a),a._$container.trigger("mixBusy",[a._state,a]),a._execAction("multiMixBusy",1,arguments));else{a.controls.enable&&!a._clicking&&(a.controls.toggleFilterButtons&&a._buildToggleArray(),a._updateControls(c.command,a.controls.toggleFilterButtons)),a._queue.length<2&&(a._clicking=!1),delete a.callbacks._user,c.callback&&(a.callbacks._user=c.callback);var d=c.command.sort,e=c.command.filter,f=c.command.changeLayout;a._refresh(),d&&(a._newSort=a._parseSort(d),a._newSortString=d,a._sorting=!0,a._sort()),e!==b&&(e="all"===e?a.selectors.target:e,a._activeFilter=e),a._filter(),f&&(a._newDisplay="string"==typeof f?f:f.display||a.layout.display,a._newClass=f.containerClass||"",(a._newDisplay!==a.layout.display||a._newClass!==a.layout.containerClass)&&(a._changingLayout=!0,a._changingClass=a._newClass!==a.layout.containerClass,a._changingDisplay=a._newDisplay!==a.layout.display)),a._$targets.css(a._brake),a._goMix(c.animate^a.animation.enable?c.animate:a.animation.enable),a._execAction("multiMix",1,arguments)}},insert:function(){var a=this,b=a._parseInsertArgs(arguments),c="function"==typeof b.callback?b.callback:null,d=document.createDocumentFragment(),e=function(){return a._refresh(),a._$targets.length?b.index<a._$targets.length||!a._$targets.length?a._$targets[b.index]:a._$targets[a._$targets.length-1].nextElementSibling:a._$parent[0].children[0]}();if(a._execAction("insert",0,arguments),b.$object){for(var f=0;f<b.$object.length;f++){var g=b.$object[f];d.appendChild(g),d.appendChild(document.createTextNode(" "))}a._$parent[0].insertBefore(d,e)}a._execAction("insert",1,arguments),"object"==typeof b.multiMix&&a.multiMix(b.multiMix,c)},prepend:function(){var a=this,b=a._parseInsertArgs(arguments);a.insert(0,b.$object,b.multiMix,b.callback)},append:function(){var a=this,b=a._parseInsertArgs(arguments);a.insert(a._state.totalTargets,b.$object,b.multiMix,b.callback)},getOption:function(a){var c=this,d=function(a,c){for(var d=c.split("."),e=d.pop(),f=d.length,g=1,h=d[0]||c;(a=a[h])&&f>g;)h=d[g],g++;return a!==b?a[e]!==b?a[e]:a:void 0};return a?c._execFilter("getOption",d(c,a),arguments):c},setOptions:function(b){var c=this;c._execAction("setOptions",0,arguments),"object"==typeof b&&a.extend(!0,c,b),c._execAction("setOptions",1,arguments)},getState:function(){var a=this;return a._execFilter("getState",a._state,a)},forceRefresh:function(){var a=this;a._refresh(!1,!0)},destroy:function(b){var c=this,d=a.MixItUp.prototype._bound._filter,e=a.MixItUp.prototype._bound._sort;c._execAction("destroy",0,arguments),c._$body.add(a(c.selectors.sort)).add(a(c.selectors.filter)).off(".mixItUp");for(var f=0;f<c._$targets.length;f++){var g=c._$targets[f];b&&(g.style.display=""),delete g.mixParent}c._execAction("destroy",1,arguments),d[c.selectors.filter]&&d[c.selectors.filter]>1?d[c.selectors.filter]--:1===d[c.selectors.filter]&&delete d[c.selectors.filter],e[c.selectors.sort]&&e[c.selectors.sort]>1?e[c.selectors.sort]--:1===e[c.selectors.sort]&&delete e[c.selectors.sort],delete a.MixItUp.prototype._instances[c._id]}},a.fn.mixItUp=function(){var c,d=arguments,e=[],f=function(b,c){var d=new a.MixItUp,e=function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()};d._execAction("_instantiate",0,arguments),b.id=b.id?b.id:"MixItUp"+e(),d._instances[b.id]||(d._instances[b.id]=d,d._init(b,c)),d._execAction("_instantiate",1,arguments)};return c=this.each(function(){if(d&&"string"==typeof d[0]){var c=a.MixItUp.prototype._instances[this.id];if("isLoaded"===d[0])e.push(c?!0:!1);else{var g=c[d[0]](d[1],d[2],d[3]);g!==b&&e.push(g)}}else f(this,d[0])}),e.length?e.length>1?e:e[0]:c},a.fn.removeStyle=function(c,d){return d=d?d:"",this.each(function(){for(var e=this,f=c.split(" "),g=0;g<f.length;g++)for(var h=0;4>h;h++){switch(h){case 0:var i=f[g];break;case 1:var i=a.MixItUp.prototype._helpers._camelCase(i);break;case 2:var i=d+f[g];break;case 3:var i=a.MixItUp.prototype._helpers._camelCase(d+f[g])}if(e.style[i]!==b&&"unknown"!=typeof e.style[i]&&e.style[i].length>0&&(e.style[i]=""),!d&&1===h)break}e.attributes&&e.attributes.style&&e.attributes.style!==b&&""===e.attributes.style.value&&e.attributes.removeNamedItem("style")})}}(jQuery);
 
 
js/mixitup.min.old.v3.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**!
2
+ * MixItUp v3.3.1
3
+ * A high-performance, dependency-free library for animated filtering, sorting and more
4
+ * Build 94e0fbf6-cd0b-4987-b3c0-14b59b67b8a0
5
+ *
6
+ * @copyright Copyright 2014-2018 KunkaLabs Limited.
7
+ * @author KunkaLabs Limited.
8
+ * @link https://www.kunkalabs.com/mixitup/
9
+ *
10
+ * @license Commercial use requires a commercial license.
11
+ * https://www.kunkalabs.com/mixitup/licenses/
12
+ *
13
+ * Non-commercial use permitted under same terms as CC BY-NC 3.0 license.
14
+ * http://creativecommons.org/licenses/by-nc/3.0/
15
+ */
16
+ !function(t){"use strict";var e=null,n=null;!function(){var e=["webkit","moz","o","ms"],n=t.document.createElement("div"),a=-1;for(a=0;a<e.length&&!t.requestAnimationFrame;a++)t.requestAnimationFrame=t[e[a]+"RequestAnimationFrame"];"undefined"==typeof n.nextElementSibling&&Object.defineProperty(t.Element.prototype,"nextElementSibling",{get:function(){for(var t=this.nextSibling;t;){if(1===t.nodeType)return t;t=t.nextSibling}return null}}),function(t){t.matches=t.matches||t.machesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){return Array.prototype.indexOf.call(this.parentElement.querySelectorAll(t),this)>-1}}(t.Element.prototype),Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!1,n=[],a=-1;return e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=n.length,function(i){var o=[],r="",s=-1;if("object"!=typeof i&&("function"!=typeof i||null===i))throw new TypeError("Object.keys called on non-object");for(r in i)t.call(i,r)&&o.push(r);if(e)for(s=0;s<a;s++)t.call(i,n[s])&&o.push(n[s]);return o}}()),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),"function"!=typeof Object.create&&(Object.create=function(t){var e=function(){};return function(n,a){if(n!==Object(n)&&null!==n)throw TypeError("Argument must be an object, or null");e.prototype=n||{};var i=new e;return e.prototype=null,a!==t&&Object.defineProperties(i,a),null===n&&(i.__proto__=null),i}}()),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e,n,a,i;if(null===this)throw new TypeError;if(a=Object(this),i=a.length>>>0,0===i)return-1;if(e=0,arguments.length>1&&(e=Number(arguments[1]),e!==e?e=0:0!==e&&e!==1/0&&e!==-(1/0)&&(e=(e>0||-1)*Math.floor(Math.abs(e)))),e>=i)return-1;for(n=e>=0?e:Math.max(i-Math.abs(e),0);n<i;n++)if(n in a&&a[n]===t)return n;return-1}),Function.prototype.bind||(Function.prototype.bind=function(t){var e,n,a,i;if("function"!=typeof this)throw new TypeError;return e=Array.prototype.slice.call(arguments,1),n=this,a=function(){},i=function(){return n.apply(this instanceof a?this:t,e.concat(Array.prototype.slice.call(arguments)))},this.prototype&&(a.prototype=this.prototype),i.prototype=new a,i}),t.Element.prototype.dispatchEvent||(t.Element.prototype.dispatchEvent=function(t){try{return this.fireEvent("on"+t.type,t)}catch(e){}})}(),e=function(a,i,o){var r=null,s=!1,l=null,c=null,u=null,f=null,h=[],d="",m=[],g=-1;if(u=o||t.document,(s=arguments[3])&&(s="boolean"==typeof s),"string"==typeof a)m=u.querySelectorAll(a);else if(a&&"object"==typeof a&&n.isElement(a,u))m=[a];else{if(!a||"object"!=typeof a||!a.length)throw new Error(e.messages.errorFactoryInvalidContainer());m=a}if(m.length<1)throw new Error(e.messages.errorFactoryContainerNotFound());for(g=0;(r=m[g])&&(!(g>0)||s);g++)r.id?d=r.id:(d="MixItUp"+n.randomHex(),r.id=d),e.instances[d]instanceof e.Mixer?(l=e.instances[d],(!i||i&&i.debug&&i.debug.showWarnings!==!1)&&console.warn(e.messages.warningFactoryPreexistingInstance())):(l=new e.Mixer,l.attach(r,u,d,i),e.instances[d]=l),c=new e.Facade(l),i&&i.debug&&i.debug.enable?h.push(l):h.push(c);return f=s?new e.Collection(h):h[0]},e.use=function(t){e.Base.prototype.callActions.call(e,"beforeUse",arguments),"function"==typeof t&&"mixitup-extension"===t.TYPE?"undefined"==typeof e.extensions[t.NAME]&&(t(e),e.extensions[t.NAME]=t):t.fn&&t.fn.jquery&&(e.libraries.$=t),e.Base.prototype.callActions.call(e,"afterUse",arguments)},e.instances={},e.extensions={},e.libraries={},n={hasClass:function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){this.hasClass(t,e)||(t.className+=t.className?" "+e:e)},removeClass:function(t,e){if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").trim()}},extend:function(t,e,n,a){var i=[],o="",r=-1;n=n||!1,a=a||!1;try{if(Array.isArray(e))for(r=0;r<e.length;r++)i.push(r);else e&&(i=Object.keys(e));for(r=0;r<i.length;r++)o=i[r],!n||"object"!=typeof e[o]||this.isElement(e[o])?t[o]=e[o]:Array.isArray(e[o])?(t[o]||(t[o]=[]),this.extend(t[o],e[o],n,a)):(t[o]||(t[o]={}),this.extend(t[o],e[o],n,a))}catch(s){if(!a)throw s;this.handleExtendError(s,t)}return t},handleExtendError:function(t,n){var a=/property "?(\w*)"?[,:] object/i,i=null,o="",r="",s="",l="",c="",u=-1,f=-1;if(t instanceof TypeError&&(i=a.exec(t.message))){o=i[1];for(c in n){for(f=0;f<o.length&&o.charAt(f)===c.charAt(f);)f++;f>u&&(u=f,l=c)}throw u>1&&(s=e.messages.errorConfigInvalidPropertySuggestion({probableMatch:l})),r=e.messages.errorConfigInvalidProperty({erroneous:o,suggestion:s}),new TypeError(r)}throw t},template:function(t){for(var e=/\${([\w]*)}/g,n={},a=null;a=e.exec(t);)n[a[1]]=new RegExp("\\${"+a[1]+"}","g");return function(e){var a="",i=t;e=e||{};for(a in n)i=i.replace(n[a],"undefined"!=typeof e[a]?e[a]:"");return i}},on:function(e,n,a,i){e&&(e.addEventListener?e.addEventListener(n,a,i):e.attachEvent&&(e["e"+n+a]=a,e[n+a]=function(){e["e"+n+a](t.event)},e.attachEvent("on"+n,e[n+a])))},off:function(t,e,n){t&&(t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&(t.detachEvent("on"+e,t[e+n]),t[e+n]=null))},getCustomEvent:function(e,n,a){var i=null;return a=a||t.document,"function"==typeof t.CustomEvent?i=new t.CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):"function"==typeof a.createEvent?(i=a.createEvent("CustomEvent"),i.initCustomEvent(e,!0,!0,n)):(i=a.createEventObject(),i.type=e,i.returnValue=!1,i.cancelBubble=!1,i.detail=n),i},getOriginalEvent:function(t){return t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t},index:function(t,e){for(var n=0;null!==(t=t.previousElementSibling);)e&&!t.matches(e)||++n;return n},camelCase:function(t){return t.toLowerCase().replace(/([_-][a-z])/g,function(t){return t.toUpperCase().replace(/[_-]/,"")})},pascalCase:function(t){return(t=this.camelCase(t)).charAt(0).toUpperCase()+t.slice(1)},dashCase:function(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()},isElement:function(e,n){return n=n||t.document,!!(t.HTMLElement&&e instanceof t.HTMLElement)||(!!(n.defaultView&&n.defaultView.HTMLElement&&e instanceof n.defaultView.HTMLElement)||null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)},createElement:function(e,n){var a=null,i=null;for(n=n||t.document,a=n.createDocumentFragment(),i=n.createElement("div"),i.innerHTML=e.trim();i.firstChild;)a.appendChild(i.firstChild);return a},removeWhitespace:function(t){for(var e;t&&"#text"===t.nodeName;)e=t,t=t.previousSibling,e.parentElement&&e.parentElement.removeChild(e)},isEqualArray:function(t,e){var n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0},deepEquals:function(t,e){var n;if("object"==typeof t&&t&&"object"==typeof e&&e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(n in t)if(!e.hasOwnProperty(n)||!this.deepEquals(t[n],e[n]))return!1}else if(t!==e)return!1;return!0},arrayShuffle:function(t){for(var e=t.slice(),n=e.length,a=n,i=-1,o=[];a--;)i=~~(Math.random()*n),o=e[a],e[a]=e[i],e[i]=o;return e},arrayFromList:function(t){var e,n;try{return Array.prototype.slice.call(t)}catch(a){for(e=[],n=0;n<t.length;n++)e.push(t[n]);return e}},debounce:function(t,e,n){var a;return function(){var i=this,o=arguments,r=n&&!a,s=null;s=function(){a=null,n||t.apply(i,o)},clearTimeout(a),a=setTimeout(s,e),r&&t.apply(i,o)}},position:function(t){for(var e=0,n=0,a=t;t;)e-=t.scrollLeft,n-=t.scrollTop,t===a&&(e+=t.offsetLeft,n+=t.offsetTop,a=t.offsetParent),t=t.parentElement;return{x:e,y:n}},getHypotenuse:function(t,e){var n=t.x-e.x,a=t.y-e.y;return n=n<0?n*-1:n,a=a<0?a*-1:a,Math.sqrt(Math.pow(n,2)+Math.pow(a,2))},getIntersectionRatio:function(t,e){var n=t.width*t.height,a=-1,i=-1,o=-1,r=-1;return a=Math.max(0,Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left)),i=Math.max(0,Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top)),o=i*a,r=o/n},closestParent:function(e,n,a,i){var o=e.parentNode;if(i=i||t.document,a&&e.matches(n))return e;for(;o&&o!=i.body;){if(o.matches&&o.matches(n))return o;if(!o.parentNode)return null;o=o.parentNode}return null},children:function(e,n,a){var i=[],o="";return a=a||t.doc,e&&(e.id||(o="Temp"+this.randomHexKey(),e.id=o),i=a.querySelectorAll("#"+e.id+" > "+n),o&&e.removeAttribute("id")),i},clean:function(t){var e=[],n=-1;for(n=0;n<t.length;n++)""!==t[n]&&e.push(t[n]);return e},defer:function(n){var a=null,i=null,o=null;return i=new this.Deferred,e.features.has.promises?i.promise=new Promise(function(t,e){i.resolve=t,i.reject=e}):(o=t.jQuery||n.$)&&"function"==typeof o.Deferred?(a=o.Deferred(),i.promise=a.promise(),i.resolve=a.resolve,i.reject=a.reject):t.console&&console.warn(e.messages.warningNoPromiseImplementation()),i},all:function(n,a){var i=null;return e.features.has.promises?Promise.all(n):(i=t.jQuery||a.$)&&"function"==typeof i.when?i.when.apply(i,n).done(function(){return arguments}):(t.console&&console.warn(e.messages.warningNoPromiseImplementation()),[])},getPrefix:function(t,e,a){var i=-1,o="";if(n.dashCase(e)in t.style)return"";for(i=0;o=a[i];i++)if(o+e in t.style)return o.toLowerCase();return"unsupported"},randomHex:function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()},getDocumentState:function(e){return e="object"==typeof e.body?e:t.document,{scrollTop:t.pageYOffset,scrollLeft:t.pageXOffset,docHeight:e.documentElement.scrollHeight,docWidth:e.documentElement.scrollWidth,viewportHeight:e.documentElement.clientHeight,viewportWidth:e.documentElement.clientWidth}},bind:function(t,e){return function(){return e.apply(t,arguments)}},isVisible:function(e){var n=null;return!!e.offsetParent||(n=t.getComputedStyle(e),"fixed"===n.position&&"hidden"!==n.visibility&&"0"!==n.opacity)},seal:function(t){"function"==typeof Object.seal&&Object.seal(t)},freeze:function(t){"function"==typeof Object.freeze&&Object.freeze(t)},compareVersions:function(t,e){var n=t.split("."),a=e.split("."),i=-1,o=-1,r=-1;for(r=0;r<n.length;r++){if(i=parseInt(n[r].replace(/[^\d.]/g,"")),o=parseInt(a[r].replace(/[^\d.]/g,"")||0),o<i)return!1;if(o>i)return!0}return!0},Deferred:function(){this.promise=null,this.resolve=null,this.reject=null,this.id=n.randomHex()},isEmptyObject:function(t){var e="";if("function"==typeof Object.keys)return 0===Object.keys(t).length;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},getClassname:function(t,e,n){var a="";return a+=t.block,a.length&&(a+=t.delineatorElement),a+=t["element"+this.pascalCase(e)],n?(a.length&&(a+=t.delineatorModifier),a+=n):a},getProperty:function(t,e){var n=e.split("."),a=null,i="",o=0;if(!e)return t;for(a=function(t){return t?t[i]:null};o<n.length;)i=n[o],t=a(t),o++;return"undefined"!=typeof t?t:null}},e.h=n,e.Base=function(){},e.Base.prototype={constructor:e.Base,callActions:function(t,e){var a=this,i=a.constructor.actions[t],o="";if(i&&!n.isEmptyObject(i))for(o in i)i[o].apply(a,e)},callFilters:function(t,e,a){var i=this,o=i.constructor.filters[t],r=e,s="";if(!o||n.isEmptyObject(o))return r;a=a||[];for(s in o)a=n.arrayFromList(a),a.unshift(r),r=o[s].apply(i,a);return r}},e.BaseStatic=function(){this.actions={},this.filters={},this.extend=function(t){n.extend(this.prototype,t)},this.registerAction=function(t,e,n){(this.actions[t]=this.actions[t]||{})[e]=n},this.registerFilter=function(t,e,n){(this.filters[t]=this.filters[t]||{})[e]=n}},e.Features=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.boxSizingPrefix="",this.transformPrefix="",this.transitionPrefix="",this.boxSizingPrefix="",this.transformProp="",this.transformRule="",this.transitionProp="",this.perspectiveProp="",this.perspectiveOriginProp="",this.has=new e.Has,this.canary=null,this.BOX_SIZING_PROP="boxSizing",this.TRANSITION_PROP="transition",this.TRANSFORM_PROP="transform",this.PERSPECTIVE_PROP="perspective",this.PERSPECTIVE_ORIGIN_PROP="perspectiveOrigin",this.VENDORS=["Webkit","moz","O","ms"],this.TWEENABLE=["opacity","width","height","marginRight","marginBottom","x","y","scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],this.callActions("afterConstruct")},e.BaseStatic.call(e.Features),e.Features.prototype=Object.create(e.Base.prototype),n.extend(e.Features.prototype,{constructor:e.Features,init:function(){var t=this;t.callActions("beforeInit",arguments),t.canary=document.createElement("div"),t.setPrefixes(),t.runTests(),t.callActions("beforeInit",arguments)},runTests:function(){var e=this;e.callActions("beforeRunTests",arguments),e.has.promises="function"==typeof t.Promise,e.has.transitions="unsupported"!==e.transitionPrefix,e.callActions("afterRunTests",arguments),n.freeze(e.has)},setPrefixes:function(){var t=this;t.callActions("beforeSetPrefixes",arguments),t.transitionPrefix=n.getPrefix(t.canary,"Transition",t.VENDORS),t.transformPrefix=n.getPrefix(t.canary,"Transform",t.VENDORS),t.boxSizingPrefix=n.getPrefix(t.canary,"BoxSizing",t.VENDORS),t.boxSizingProp=t.boxSizingPrefix?t.boxSizingPrefix+n.pascalCase(t.BOX_SIZING_PROP):t.BOX_SIZING_PROP,t.transitionProp=t.transitionPrefix?t.transitionPrefix+n.pascalCase(t.TRANSITION_PROP):t.TRANSITION_PROP,t.transformProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.TRANSFORM_PROP):t.TRANSFORM_PROP,t.transformRule=t.transformPrefix?"-"+t.transformPrefix+"-"+t.TRANSFORM_PROP:t.TRANSFORM_PROP,t.perspectiveProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.PERSPECTIVE_PROP):t.PERSPECTIVE_PROP,t.perspectiveOriginProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.PERSPECTIVE_ORIGIN_PROP):t.PERSPECTIVE_ORIGIN_PROP,t.callActions("afterSetPrefixes",arguments)}}),e.Has=function(){this.transitions=!1,this.promises=!1,n.seal(this)},e.features=new e.Features,e.features.init(),e.ConfigAnimation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.effects="fade scale",this.effectsIn="",this.effectsOut="",this.duration=600,this.easing="ease",this.applyPerspective=!0,this.perspectiveDistance="3000px",this.perspectiveOrigin="50% 50%",this.queue=!0,this.queueLimit=3,this.animateResizeContainer=!0,this.animateResizeTargets=!1,this.staggerSequence=null,this.reverseOut=!1,this.nudge=!0,this.clampHeight=!0,this.clampWidth=!0,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigAnimation),e.ConfigAnimation.prototype=Object.create(e.Base.prototype),e.ConfigAnimation.prototype.constructor=e.ConfigAnimation,e.ConfigBehavior=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.liveSort=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigBehavior),e.ConfigBehavior.prototype=Object.create(e.Base.prototype),e.ConfigBehavior.prototype.constructor=e.ConfigBehavior,e.ConfigCallbacks=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.onMixStart=null,this.onMixBusy=null,this.onMixEnd=null,this.onMixFail=null,this.onMixClick=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigCallbacks),e.ConfigCallbacks.prototype=Object.create(e.Base.prototype),e.ConfigCallbacks.prototype.constructor=e.ConfigCallbacks,e.ConfigControls=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.live=!1,this.scope="global",this.toggleLogic="or",this.toggleDefault="all",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigControls),e.ConfigControls.prototype=Object.create(e.Base.prototype),e.ConfigControls.prototype.constructor=e.ConfigControls,e.ConfigClassNames=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.block="mixitup",this.elementContainer="container",this.elementFilter="control",this.elementSort="control",this.elementMultimix="control",this.elementToggle="control",this.modifierActive="active",this.modifierDisabled="disabled",this.modifierFailed="failed",this.delineatorElement="-",this.delineatorModifier="-",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigClassNames),e.ConfigClassNames.prototype=Object.create(e.Base.prototype),e.ConfigClassNames.prototype.constructor=e.ConfigClassNames,e.ConfigData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.uidKey="",this.dirtyCheck=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigData),e.ConfigData.prototype=Object.create(e.Base.prototype),e.ConfigData.prototype.constructor=e.ConfigData,e.ConfigDebug=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!1,this.showWarnings=!0,this.fauxAsync=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigDebug),e.ConfigDebug.prototype=Object.create(e.Base.prototype),e.ConfigDebug.prototype.constructor=e.ConfigDebug,e.ConfigLayout=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.allowNestedTargets=!0,this.containerClassName="",this.siblingBefore=null,this.siblingAfter=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigLayout),e.ConfigLayout.prototype=Object.create(e.Base.prototype),e.ConfigLayout.prototype.constructor=e.ConfigLayout,e.ConfigLoad=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.filter="all",this.sort="default:asc",this.dataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigLoad),e.ConfigLoad.prototype=Object.create(e.Base.prototype),e.ConfigLoad.prototype.constructor=e.ConfigLoad,e.ConfigSelectors=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.target=".mix",this.control="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigSelectors),e.ConfigSelectors.prototype=Object.create(e.Base.prototype),e.ConfigSelectors.prototype.constructor=e.ConfigSelectors,e.ConfigRender=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.target=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigRender),e.ConfigRender.prototype=Object.create(e.Base.prototype),e.ConfigRender.prototype.constructor=e.ConfigRender,e.ConfigTemplates=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigTemplates),e.ConfigTemplates.prototype=Object.create(e.Base.prototype),e.ConfigTemplates.prototype.constructor=e.ConfigTemplates,e.Config=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.animation=new e.ConfigAnimation,this.behavior=new e.ConfigBehavior,this.callbacks=new e.ConfigCallbacks,this.controls=new e.ConfigControls,this.classNames=new e.ConfigClassNames,this.data=new e.ConfigData,this.debug=new e.ConfigDebug,this.layout=new e.ConfigLayout,this.load=new e.ConfigLoad,this.selectors=new e.ConfigSelectors,this.render=new e.ConfigRender,this.templates=new e.ConfigTemplates,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Config),e.Config.prototype=Object.create(e.Base.prototype),e.Config.prototype.constructor=e.Config,e.MixerDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.document=null,this.body=null,this.container=null,this.parent=null,this.targets=[],this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.MixerDom),e.MixerDom.prototype=Object.create(e.Base.prototype),e.MixerDom.prototype.constructor=e.MixerDom,e.UiClassNames=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.base="",this.active="",this.disabled="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.UiClassNames),e.UiClassNames.prototype=Object.create(e.Base.prototype),e.UiClassNames.prototype.constructor=e.UiClassNames,e.CommandDataset=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.dataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandDataset),e.CommandDataset.prototype=Object.create(e.Base.prototype),e.CommandDataset.prototype.constructor=e.CommandDataset,e.CommandMultimix=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.filter=null,this.sort=null,this.insert=null,this.remove=null,this.changeLayout=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandMultimix),e.CommandMultimix.prototype=Object.create(e.Base.prototype),e.CommandMultimix.prototype.constructor=e.CommandMultimix,e.CommandFilter=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.selector="",this.collection=null,this.action="show",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandFilter),e.CommandFilter.prototype=Object.create(e.Base.prototype),e.CommandFilter.prototype.constructor=e.CommandFilter,e.CommandSort=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.sortString="",this.attribute="",this.order="asc",this.collection=null,this.next=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandSort),e.CommandSort.prototype=Object.create(e.Base.prototype),e.CommandSort.prototype.constructor=e.CommandSort,e.CommandInsert=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.index=0,this.collection=[],this.position="before",this.sibling=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandInsert),e.CommandInsert.prototype=Object.create(e.Base.prototype),e.CommandInsert.prototype.constructor=e.CommandInsert,e.CommandRemove=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.targets=[],this.collection=[],this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandRemove),e.CommandRemove.prototype=Object.create(e.Base.prototype),e.CommandRemove.prototype.constructor=e.CommandRemove,e.CommandChangeLayout=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.containerClassName="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandChangeLayout),e.CommandChangeLayout.prototype=Object.create(e.Base.prototype),e.CommandChangeLayout.prototype.constructor=e.CommandChangeLayout,e.ControlDefinition=function(t,a,i,o){e.Base.call(this),this.callActions("beforeConstruct"),this.type=t,this.selector=a,this.live=i||!1,this.parent=o||"",this.callActions("afterConstruct"),n.freeze(this),n.seal(this)},e.BaseStatic.call(e.ControlDefinition),e.ControlDefinition.prototype=Object.create(e.Base.prototype),e.ControlDefinition.prototype.constructor=e.ControlDefinition,e.controlDefinitions=[],e.controlDefinitions.push(new e.ControlDefinition("multimix","[data-filter][data-sort]")),e.controlDefinitions.push(new e.ControlDefinition("filter","[data-filter]")),e.controlDefinitions.push(new e.ControlDefinition("sort","[data-sort]")),e.controlDefinitions.push(new e.ControlDefinition("toggle","[data-toggle]")),e.Control=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.selector="",this.bound=[],this.pending=-1,this.type="",this.status="inactive",this.filter="",this.sort="",this.canDisable=!1,this.handler=null,this.classNames=new e.UiClassNames,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Control),e.Control.prototype=Object.create(e.Base.prototype),n.extend(e.Control.prototype,{constructor:e.Control,init:function(t,n,a){var i=this;if(this.callActions("beforeInit",arguments),i.el=t,i.type=n,i.selector=a,i.selector)i.status="live";else switch(i.canDisable="boolean"==typeof i.el.disable,i.type){case"filter":i.filter=i.el.getAttribute("data-filter");break;case"toggle":i.filter=i.el.getAttribute("data-toggle");break;case"sort":i.sort=i.el.getAttribute("data-sort");break;case"multimix":i.filter=i.el.getAttribute("data-filter"),i.sort=i.el.getAttribute("data-sort")}i.bindClick(),e.controls.push(i),this.callActions("afterInit",arguments)},isBound:function(t){var e=this,n=!1;return this.callActions("beforeIsBound",arguments),n=e.bound.indexOf(t)>-1,e.callFilters("afterIsBound",n,arguments)},addBinding:function(t){var e=this;this.callActions("beforeAddBinding",arguments),e.isBound()||e.bound.push(t),this.callActions("afterAddBinding",arguments)},removeBinding:function(t){var n=this,a=-1;this.callActions("beforeRemoveBinding",arguments),(a=n.bound.indexOf(t))>-1&&n.bound.splice(a,1),n.bound.length<1&&(n.unbindClick(),a=e.controls.indexOf(n),e.controls.splice(a,1),"active"===n.status&&n.renderStatus(n.el,"inactive")),this.callActions("afterRemoveBinding",arguments)},bindClick:function(){var t=this;this.callActions("beforeBindClick",arguments),t.handler=function(e){t.handleClick(e)},n.on(t.el,"click",t.handler),this.callActions("afterBindClick",arguments)},unbindClick:function(){var t=this;this.callActions("beforeUnbindClick",arguments),n.off(t.el,"click",t.handler),t.handler=null,this.callActions("afterUnbindClick",arguments)},handleClick:function(t){var a=this,i=null,o=null,r=!1,s=void 0,l={},c=null,u=[],f=-1;if(this.callActions("beforeHandleClick",arguments),this.pending=0,o=a.bound[0],i=a.selector?n.closestParent(t.target,o.config.selectors.control+a.selector,!0,o.dom.document):a.el,!i)return void a.callActions("afterHandleClick",arguments);switch(a.type){case"filter":l.filter=a.filter||i.getAttribute("data-filter");break;case"sort":l.sort=a.sort||i.getAttribute("data-sort");break;case"multimix":l.filter=a.filter||i.getAttribute("data-filter"),l.sort=a.sort||i.getAttribute("data-sort");break;case"toggle":l.filter=a.filter||i.getAttribute("data-toggle"),r="live"===a.status?n.hasClass(i,a.classNames.active):"active"===a.status}for(f=0;f<a.bound.length;f++)c=new e.CommandMultimix,n.extend(c,l),u.push(c);for(u=a.callFilters("commandsHandleClick",u,arguments),a.pending=a.bound.length,f=0;o=a.bound[f];f++)l=u[f],l&&(o.lastClicked||(o.lastClicked=i),e.events.fire("mixClick",o.dom.container,{state:o.state,instance:o,originalEvent:t,control:o.lastClicked},o.dom.document),"function"==typeof o.config.callbacks.onMixClick&&(s=o.config.callbacks.onMixClick.call(o.lastClicked,o.state,t,o),s===!1)||("toggle"===a.type?r?o.toggleOff(l.filter):o.toggleOn(l.filter):o.multimix(l)));this.callActions("afterHandleClick",arguments)},update:function(t,n){var a=this,i=new e.CommandMultimix;a.callActions("beforeUpdate",arguments),a.pending--,a.pending=Math.max(0,a.pending),a.pending>0||("live"===a.status?a.updateLive(t,n):(i.sort=a.sort,i.filter=a.filter,a.callFilters("actionsUpdate",i,arguments),a.parseStatusChange(a.el,t,i,n)),a.callActions("afterUpdate",arguments))},updateLive:function(t,n){var a=this,i=null,o=null,r=null,s=-1;if(a.callActions("beforeUpdateLive",arguments),a.el){for(i=a.el.querySelectorAll(a.selector),s=0;r=i[s];s++){switch(o=new e.CommandMultimix,a.type){case"filter":o.filter=r.getAttribute("data-filter");break;case"sort":o.sort=r.getAttribute("data-sort");break;case"multimix":o.filter=r.getAttribute("data-filter"),o.sort=r.getAttribute("data-sort");break;case"toggle":o.filter=r.getAttribute("data-toggle")}o=a.callFilters("actionsUpdateLive",o,arguments),a.parseStatusChange(r,t,o,n)}a.callActions("afterUpdateLive",arguments)}},parseStatusChange:function(t,e,n,a){var i=this,o="",r="",s=-1;switch(i.callActions("beforeParseStatusChange",arguments),i.type){case"filter":e.filter===n.filter?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"multimix":e.sort===n.sort&&e.filter===n.filter?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"sort":e.sort.match(/:asc/g)&&(o=e.sort.replace(/:asc/g,"")),e.sort===n.sort||o===n.sort?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"toggle":for(a.length<1&&i.renderStatus(t,"inactive"),e.filter===n.filter&&i.renderStatus(t,"active"),s=0;s<a.length;s++){if(r=a[s],r===n.filter){i.renderStatus(t,"active");break}i.renderStatus(t,"inactive")}}i.callActions("afterParseStatusChange",arguments)},renderStatus:function(t,e){var a=this;switch(a.callActions("beforeRenderStatus",arguments),e){case"active":n.addClass(t,a.classNames.active),n.removeClass(t,a.classNames.disabled),a.canDisable&&(a.el.disabled=!1);break;case"inactive":n.removeClass(t,a.classNames.active),n.removeClass(t,a.classNames.disabled),a.canDisable&&(a.el.disabled=!1);break;case"disabled":a.canDisable&&(a.el.disabled=!0),n.addClass(t,a.classNames.disabled),n.removeClass(t,a.classNames.active)}"live"!==a.status&&(a.status=e),a.callActions("afterRenderStatus",arguments)}}),e.controls=[],e.StyleData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.x=0,this.y=0,this.top=0,this.right=0,this.bottom=0,this.left=0,this.width=0,this.height=0,this.marginRight=0,this.marginBottom=0,this.opacity=0,this.scale=new e.TransformData,this.translateX=new e.TransformData,this.translateY=new e.TransformData,this.translateZ=new e.TransformData,this.rotateX=new e.TransformData,this.rotateY=new e.TransformData,this.rotateZ=new e.TransformData,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.StyleData),e.StyleData.prototype=Object.create(e.Base.prototype),e.StyleData.prototype.constructor=e.StyleData,e.TransformData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.value=0,this.unit="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TransformData),e.TransformData.prototype=Object.create(e.Base.prototype),e.TransformData.prototype.constructor=e.TransformData,e.TransformDefaults=function(){e.StyleData.apply(this),this.callActions("beforeConstruct"),this.scale.value=.01,this.scale.unit="",this.translateX.value=20,this.translateX.unit="px",this.translateY.value=20,this.translateY.unit="px",this.translateZ.value=20,this.translateZ.unit="px",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateY.value=90,this.rotateY.unit="deg",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateZ.value=180,this.rotateZ.unit="deg",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TransformDefaults),e.TransformDefaults.prototype=Object.create(e.StyleData.prototype),e.TransformDefaults.prototype.constructor=e.TransformDefaults,e.transformDefaults=new e.TransformDefaults,e.EventDetail=function(){this.state=null,this.futureState=null,this.instance=null,this.originalEvent=null},e.Events=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.mixStart=null,this.mixBusy=null,this.mixEnd=null,this.mixFail=null,this.mixClick=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Events),e.Events.prototype=Object.create(e.Base.prototype),e.Events.prototype.constructor=e.Events,e.Events.prototype.fire=function(t,a,i,o){var r=this,s=null,l=new e.EventDetail;if(r.callActions("beforeFire",arguments),"undefined"==typeof r[t])throw new Error('Event type "'+t+'" not found.');l.state=new e.State,n.extend(l.state,i.state),i.futureState&&(l.futureState=new e.State,n.extend(l.futureState,i.futureState)),l.instance=i.instance,i.originalEvent&&(l.originalEvent=i.originalEvent),s=n.getCustomEvent(t,l,o),r.callFilters("eventFire",s,arguments),a.dispatchEvent(s)},e.events=new e.Events,e.QueueItem=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.args=[],this.instruction=null,this.triggerElement=null,this.deferred=null,this.isToggling=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.QueueItem),e.QueueItem.prototype=Object.create(e.Base.prototype),e.QueueItem.prototype.constructor=e.QueueItem,e.Mixer=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.config=new e.Config,this.id="",this.isBusy=!1,this.isToggling=!1,this.incPadding=!0,this.controls=[],this.targets=[],this.origOrder=[],this.cache={},this.toggleArray=[],this.targetsMoved=0,this.targetsImmovable=0,this.targetsBound=0,this.targetsDone=0,this.staggerDuration=0,this.effectsIn=null,this.effectsOut=null,this.transformIn=[],this.transformOut=[],this.queue=[],this.state=null,this.lastOperation=null,
17
+ this.lastClicked=null,this.userCallback=null,this.userDeferred=null,this.dom=new e.MixerDom,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Mixer),e.Mixer.prototype=Object.create(e.Base.prototype),n.extend(e.Mixer.prototype,{constructor:e.Mixer,attach:function(a,i,o,r){var s=this,l=null,c=-1;for(s.callActions("beforeAttach",arguments),s.id=o,r&&n.extend(s.config,r,!0,!0),s.sanitizeConfig(),s.cacheDom(a,i),s.config.layout.containerClassName&&n.addClass(s.dom.container,s.config.layout.containerClassName),e.features.has.transitions||(s.config.animation.enable=!1),"undefined"==typeof t.console&&(s.config.debug.showWarnings=!1),s.config.data.uidKey&&(s.config.controls.enable=!1),s.indexTargets(),s.state=s.getInitialState(),c=0;l=s.lastOperation.toHide[c];c++)l.hide();s.config.controls.enable&&(s.initControls(),s.buildToggleArray(null,s.state),s.updateControls({filter:s.state.activeFilter,sort:s.state.activeSort})),s.parseEffects(),s.callActions("afterAttach",arguments)},sanitizeConfig:function(){var t=this;t.callActions("beforeSanitizeConfig",arguments),t.config.controls.scope=t.config.controls.scope.toLowerCase().trim(),t.config.controls.toggleLogic=t.config.controls.toggleLogic.toLowerCase().trim(),t.config.controls.toggleDefault=t.config.controls.toggleDefault.toLowerCase().trim(),t.config.animation.effects=t.config.animation.effects.trim(),t.callActions("afterSanitizeConfig",arguments)},getInitialState:function(){var t=this,n=new e.State,a=new e.Operation;if(t.callActions("beforeGetInitialState",arguments),n.activeContainerClassName=t.config.layout.containerClassName,t.config.load.dataset){if(!t.config.data.uidKey||"string"!=typeof t.config.data.uidKey)throw new TypeError(e.messages.errorConfigDataUidKeyNotSet());a.startDataset=a.newDataset=n.activeDataset=t.config.load.dataset.slice(),a.startContainerClassName=a.newContainerClassName=n.activeContainerClassName,a.show=t.targets.slice(),n=t.callFilters("stateGetInitialState",n,arguments)}else n.activeFilter=t.parseFilterArgs([t.config.load.filter]).command,n.activeSort=t.parseSortArgs([t.config.load.sort]).command,n.totalTargets=t.targets.length,n=t.callFilters("stateGetInitialState",n,arguments),n.activeSort.collection||n.activeSort.attribute||"random"===n.activeSort.order||"desc"===n.activeSort.order?(a.newSort=n.activeSort,t.sortOperation(a),t.printSort(!1,a),t.targets=a.newOrder):a.startOrder=a.newOrder=t.targets,a.startFilter=a.newFilter=n.activeFilter,a.startSort=a.newSort=n.activeSort,a.startContainerClassName=a.newContainerClassName=n.activeContainerClassName,"all"===a.newFilter.selector?a.newFilter.selector=t.config.selectors.target:"none"===a.newFilter.selector&&(a.newFilter.selector="");return a=t.callFilters("operationGetInitialState",a,[n]),t.lastOperation=a,a.newFilter&&t.filterOperation(a),n=t.buildState(a)},cacheDom:function(t,e){var n=this;n.callActions("beforeCacheDom",arguments),n.dom.document=e,n.dom.body=n.dom.document.querySelector("body"),n.dom.container=t,n.dom.parent=t,n.callActions("afterCacheDom",arguments)},indexTargets:function(){var t=this,a=null,i=null,o=null,r=-1;if(t.callActions("beforeIndexTargets",arguments),t.dom.targets=t.config.layout.allowNestedTargets?t.dom.container.querySelectorAll(t.config.selectors.target):n.children(t.dom.container,t.config.selectors.target,t.dom.document),t.dom.targets=n.arrayFromList(t.dom.targets),t.targets=[],(o=t.config.load.dataset)&&o.length!==t.dom.targets.length)throw new Error(e.messages.errorDatasetPrerenderedMismatch());if(t.dom.targets.length){for(r=0;i=t.dom.targets[r];r++)a=new e.Target,a.init(i,t,o?o[r]:void 0),a.isInDom=!0,t.targets.push(a);t.dom.parent=t.dom.targets[0].parentElement===t.dom.container?t.dom.container:t.dom.targets[0].parentElement}t.origOrder=t.targets,t.callActions("afterIndexTargets",arguments)},initControls:function(){var t=this,n="",a=null,i=null,o=null,r=null,s=null,l=-1,c=-1;switch(t.callActions("beforeInitControls",arguments),t.config.controls.scope){case"local":o=t.dom.container;break;case"global":o=t.dom.document;break;default:throw new Error(e.messages.errorConfigInvalidControlsScope())}for(l=0;n=e.controlDefinitions[l];l++)if(t.config.controls.live||n.live){if(n.parent){if(r=t.dom[n.parent],!r||r.length<0)continue;"number"!=typeof r.length&&(r=[r])}else r=[o];for(c=0;i=r[c];c++)s=t.getControl(i,n.type,n.selector),t.controls.push(s)}else for(a=o.querySelectorAll(t.config.selectors.control+n.selector),c=0;i=a[c];c++)s=t.getControl(i,n.type,""),s&&t.controls.push(s);t.callActions("afterInitControls",arguments)},getControl:function(t,a,i){var o=this,r=null,s=-1;if(o.callActions("beforeGetControl",arguments),!i)for(s=0;r=e.controls[s];s++){if(r.el===t&&r.isBound(o))return o.callFilters("controlGetControl",null,arguments);if(r.el===t&&r.type===a&&r.selector===i)return r.addBinding(o),o.callFilters("controlGetControl",r,arguments)}return r=new e.Control,r.init(t,a,i),r.classNames.base=n.getClassname(o.config.classNames,a),r.classNames.active=n.getClassname(o.config.classNames,a,o.config.classNames.modifierActive),r.classNames.disabled=n.getClassname(o.config.classNames,a,o.config.classNames.modifierDisabled),r.addBinding(o),o.callFilters("controlGetControl",r,arguments)},getToggleSelector:function(){var t=this,e="or"===t.config.controls.toggleLogic?", ":"",a="";return t.callActions("beforeGetToggleSelector",arguments),t.toggleArray=n.clean(t.toggleArray),a=t.toggleArray.join(e),""===a&&(a=t.config.controls.toggleDefault),t.callFilters("selectorGetToggleSelector",a,arguments)},buildToggleArray:function(t,e){var a=this,i="";if(a.callActions("beforeBuildToggleArray",arguments),t&&t.filter)i=t.filter.selector.replace(/\s/g,"");else{if(!e)return;i=e.activeFilter.selector.replace(/\s/g,"")}i!==a.config.selectors.target&&"all"!==i||(i=""),"or"===a.config.controls.toggleLogic?a.toggleArray=i.split(","):a.toggleArray=a.splitCompoundSelector(i),a.toggleArray=n.clean(a.toggleArray),a.callActions("afterBuildToggleArray",arguments)},splitCompoundSelector:function(t){var e=t.split(/([\.\[])/g),n=[],a="",i=-1;for(""===e[0]&&e.shift(),i=0;i<e.length;i++)i%2===0&&(a=""),a+=e[i],i%2!==0&&n.push(a);return n},updateControls:function(t){var a=this,i=null,o=new e.CommandMultimix,r=-1;for(a.callActions("beforeUpdateControls",arguments),t.filter?o.filter=t.filter.selector:o.filter=a.state.activeFilter.selector,t.sort?o.sort=a.buildSortString(t.sort):o.sort=a.buildSortString(a.state.activeSort),o.filter===a.config.selectors.target&&(o.filter="all"),""===o.filter&&(o.filter="none"),n.freeze(o),r=0;i=a.controls[r];r++)i.update(o,a.toggleArray);a.callActions("afterUpdateControls",arguments)},buildSortString:function(t){var e=this,n="";return n+=t.sortString,t.next&&(n+=" "+e.buildSortString(t.next)),n},insertTargets:function(t,a){var i=this,o=null,r=-1,s=null,l=null,c=null,u=-1;if(i.callActions("beforeInsertTargets",arguments),"undefined"==typeof t.index&&(t.index=0),o=i.getNextSibling(t.index,t.sibling,t.position),s=i.dom.document.createDocumentFragment(),r=o?n.index(o,i.config.selectors.target):i.targets.length,t.collection){for(u=0;c=t.collection[u];u++){if(i.dom.targets.indexOf(c)>-1)throw new Error(e.messages.errorInsertPreexistingElement());c.style.display="none",s.appendChild(c),s.appendChild(i.dom.document.createTextNode(" ")),n.isElement(c,i.dom.document)&&c.matches(i.config.selectors.target)&&(l=new e.Target,l.init(c,i),l.isInDom=!0,i.targets.splice(r,0,l),r++)}i.dom.parent.insertBefore(s,o)}a.startOrder=i.origOrder=i.targets,i.callActions("afterInsertTargets",arguments)},getNextSibling:function(t,e,n){var a=this,i=null;return t=Math.max(t,0),e&&"before"===n?i=e:e&&"after"===n?i=e.nextElementSibling||null:a.targets.length>0&&"undefined"!=typeof t?i=t<a.targets.length||!a.targets.length?a.targets[t].dom.el:a.targets[a.targets.length-1].dom.el.nextElementSibling:0===a.targets.length&&a.dom.parent.children.length>0&&(a.config.layout.siblingAfter?i=a.config.layout.siblingAfter:a.config.layout.siblingBefore?i=a.config.layout.siblingBefore.nextElementSibling:a.dom.parent.children[0]),a.callFilters("elementGetNextSibling",i,arguments)},filterOperation:function(t){var e=this,n=!1,a=-1,i="",o=null,r=-1;for(e.callActions("beforeFilterOperation",arguments),i=t.newFilter.action,r=0;o=t.newOrder[r];r++)n=t.newFilter.collection?t.newFilter.collection.indexOf(o.dom.el)>-1:""!==t.newFilter.selector&&o.dom.el.matches(t.newFilter.selector),e.evaluateHideShow(n,o,i,t);if(t.toRemove.length)for(r=0;o=t.show[r];r++)t.toRemove.indexOf(o)>-1&&(t.show.splice(r,1),(a=t.toShow.indexOf(o))>-1&&t.toShow.splice(a,1),t.toHide.push(o),t.hide.push(o),r--);t.matching=t.show.slice(),0===t.show.length&&""!==t.newFilter.selector&&0!==e.targets.length&&(t.hasFailed=!0),e.callActions("afterFilterOperation",arguments)},evaluateHideShow:function(t,e,n,a){var i=this,o=!1,r=Array.prototype.slice.call(arguments,1);o=i.callFilters("testResultEvaluateHideShow",t,r),i.callActions("beforeEvaluateHideShow",arguments),o===!0&&"show"===n||o===!1&&"hide"===n?(a.show.push(e),!e.isShown&&a.toShow.push(e)):(a.hide.push(e),e.isShown&&a.toHide.push(e)),i.callActions("afterEvaluateHideShow",arguments)},sortOperation:function(t){var a=this,i=[],o=null,r=null,s=-1;if(a.callActions("beforeSortOperation",arguments),t.startOrder=a.targets,t.newSort.collection){for(i=[],s=0;r=t.newSort.collection[s];s++){if(a.dom.targets.indexOf(r)<0)throw new Error(e.messages.errorSortNonExistentElement());o=new e.Target,o.init(r,a),o.isInDom=!0,i.push(o)}t.newOrder=i}else"random"===t.newSort.order?t.newOrder=n.arrayShuffle(t.startOrder):""===t.newSort.attribute?(t.newOrder=a.origOrder.slice(),"desc"===t.newSort.order&&t.newOrder.reverse()):(t.newOrder=t.startOrder.slice(),t.newOrder.sort(function(e,n){return a.compare(e,n,t.newSort)}));n.isEqualArray(t.newOrder,t.startOrder)&&(t.willSort=!1),a.callActions("afterSortOperation",arguments)},compare:function(t,e,n){var a=this,i=n.order,o=a.getAttributeValue(t,n.attribute),r=a.getAttributeValue(e,n.attribute);return isNaN(1*o)||isNaN(1*r)?(o=o.toLowerCase(),r=r.toLowerCase()):(o=1*o,r=1*r),o<r?"asc"===i?-1:1:o>r?"asc"===i?1:-1:o===r&&n.next?a.compare(t,e,n.next):0},getAttributeValue:function(t,n){var a=this,i="";return i=t.dom.el.getAttribute("data-"+n),null===i&&a.config.debug.showWarnings&&console.warn(e.messages.warningInconsistentSortingAttributes({attribute:"data-"+n})),a.callFilters("valueGetAttributeValue",i||0,arguments)},printSort:function(e,a){var i=this,o=e?a.newOrder:a.startOrder,r=e?a.startOrder:a.newOrder,s=o.length?o[o.length-1].dom.el.nextElementSibling:null,l=t.document.createDocumentFragment(),c=null,u=null,f=null,h=-1;for(i.callActions("beforePrintSort",arguments),h=0;u=o[h];h++)f=u.dom.el,"absolute"!==f.style.position&&(n.removeWhitespace(f.previousSibling),f.parentElement.removeChild(f));for(c=s?s.previousSibling:i.dom.parent.lastChild,c&&"#text"===c.nodeName&&n.removeWhitespace(c),h=0;u=r[h];h++)f=u.dom.el,n.isElement(l.lastChild)&&l.appendChild(t.document.createTextNode(" ")),l.appendChild(f);i.dom.parent.firstChild&&i.dom.parent.firstChild!==s&&l.insertBefore(t.document.createTextNode(" "),l.childNodes[0]),s?(l.appendChild(t.document.createTextNode(" ")),i.dom.parent.insertBefore(l,s)):i.dom.parent.appendChild(l),i.callActions("afterPrintSort",arguments)},parseSortString:function(t,a){var i=this,o=t.split(" "),r=a,s=[],l=-1;for(l=0;l<o.length;l++){switch(s=o[l].split(":"),r.sortString=o[l],r.attribute=n.dashCase(s[0]),r.order=s[1]||"asc",r.attribute){case"default":r.attribute="";break;case"random":r.attribute="",r.order="random"}if(!r.attribute||"random"===r.order)break;l<o.length-1&&(r.next=new e.CommandSort,n.freeze(r),r=r.next)}return i.callFilters("commandsParseSort",a,arguments)},parseEffects:function(){var t=this,n="",a=t.config.animation.effectsIn||t.config.animation.effects,i=t.config.animation.effectsOut||t.config.animation.effects;t.callActions("beforeParseEffects",arguments),t.effectsIn=new e.StyleData,t.effectsOut=new e.StyleData,t.transformIn=[],t.transformOut=[],t.effectsIn.opacity=t.effectsOut.opacity=1,t.parseEffect("fade",a,t.effectsIn,t.transformIn),t.parseEffect("fade",i,t.effectsOut,t.transformOut,!0);for(n in e.transformDefaults)e.transformDefaults[n]instanceof e.TransformData&&(t.parseEffect(n,a,t.effectsIn,t.transformIn),t.parseEffect(n,i,t.effectsOut,t.transformOut,!0));t.parseEffect("stagger",a,t.effectsIn,t.transformIn),t.parseEffect("stagger",i,t.effectsOut,t.transformOut,!0),t.callActions("afterParseEffects",arguments)},parseEffect:function(t,n,a,i,o){var r=this,s=/\(([^)]+)\)/,l=-1,c="",u=[],f="",h=["%","px","em","rem","vh","vw","deg"],d="",m=-1;if(r.callActions("beforeParseEffect",arguments),"string"!=typeof n)throw new TypeError(e.messages.errorConfigInvalidAnimationEffects());if(n.indexOf(t)<0)return void("stagger"===t&&(r.staggerDuration=0));switch(l=n.indexOf(t+"("),l>-1&&(c=n.substring(l),u=s.exec(c),f=u[1]),t){case"fade":a.opacity=f?parseFloat(f):0;break;case"stagger":r.staggerDuration=f?parseFloat(f):100;break;default:if(o&&r.config.animation.reverseOut&&"scale"!==t?a[t].value=(f?parseFloat(f):e.transformDefaults[t].value)*-1:a[t].value=f?parseFloat(f):e.transformDefaults[t].value,f){for(m=0;d=h[m];m++)if(f.indexOf(d)>-1){a[t].unit=d;break}}else a[t].unit=e.transformDefaults[t].unit;i.push(t+"("+a[t].value+a[t].unit+")")}r.callActions("afterParseEffect",arguments)},buildState:function(t){var n=this,a=new e.State,i=null,o=-1;for(n.callActions("beforeBuildState",arguments),o=0;i=n.targets[o];o++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&a.targets.push(i.dom.el);for(o=0;i=t.matching[o];o++)a.matching.push(i.dom.el);for(o=0;i=t.show[o];o++)a.show.push(i.dom.el);for(o=0;i=t.hide[o];o++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&a.hide.push(i.dom.el);return a.id=n.id,a.container=n.dom.container,a.activeFilter=t.newFilter,a.activeSort=t.newSort,a.activeDataset=t.newDataset,a.activeContainerClassName=t.newContainerClassName,a.hasFailed=t.hasFailed,a.totalTargets=n.targets.length,a.totalShow=t.show.length,a.totalHide=t.hide.length,a.totalMatching=t.matching.length,a.triggerElement=t.triggerElement,n.callFilters("stateBuildState",a,arguments)},goMix:function(a,i){var o=this,r=null;return o.callActions("beforeGoMix",arguments),o.config.animation.duration&&o.config.animation.effects&&n.isVisible(o.dom.container)||(a=!1),i.toShow.length||i.toHide.length||i.willSort||i.willChangeLayout||(a=!1),i.startState.show.length||i.show.length||(a=!1),e.events.fire("mixStart",o.dom.container,{state:i.startState,futureState:i.newState,instance:o},o.dom.document),"function"==typeof o.config.callbacks.onMixStart&&o.config.callbacks.onMixStart.call(o.dom.container,i.startState,i.newState,o),n.removeClass(o.dom.container,n.getClassname(o.config.classNames,"container",o.config.classNames.modifierFailed)),r=o.userDeferred?o.userDeferred:o.userDeferred=n.defer(e.libraries),o.isBusy=!0,a&&e.features.has.transitions?(t.pageYOffset!==i.docState.scrollTop&&t.scrollTo(i.docState.scrollLeft,i.docState.scrollTop),o.config.animation.applyPerspective&&(o.dom.parent.style[e.features.perspectiveProp]=o.config.animation.perspectiveDistance,o.dom.parent.style[e.features.perspectiveOriginProp]=o.config.animation.perspectiveOrigin),o.config.animation.animateResizeContainer&&i.startHeight!==i.newHeight&&i.viewportDeltaY!==i.startHeight-i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),o.config.animation.animateResizeContainer&&i.startWidth!==i.newWidth&&i.viewportDeltaX!==i.startWidth-i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),i.startWidth===i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&i.startWidth===i.newWidth&&(o.dom.parent.style.overflow="hidden"),requestAnimationFrame(function(){o.moveTargets(i)}),o.callFilters("promiseGoMix",r.promise,arguments)):(o.config.debug.fauxAsync?setTimeout(function(){o.cleanUp(i)},o.config.animation.duration):o.cleanUp(i),o.callFilters("promiseGoMix",r.promise,arguments))},getStartMixData:function(n){var a=this,i=t.getComputedStyle(a.dom.parent),o=a.dom.parent.getBoundingClientRect(),r=null,s={},l=-1,c=i[e.features.boxSizingProp];for(a.incPadding="border-box"===c,a.callActions("beforeGetStartMixData",arguments),l=0;r=n.show[l];l++)s=r.getPosData(),n.showPosData[l]={startPosData:s};for(l=0;r=n.toHide[l];l++)s=r.getPosData(),n.toHidePosData[l]={startPosData:s};n.startX=o.left,n.startY=o.top,n.startHeight=a.incPadding?o.height:o.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),n.startWidth=a.incPadding?o.width:o.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),a.callActions("afterGetStartMixData",arguments)},setInter:function(t){var e=this,a=null,i=-1;for(e.callActions("beforeSetInter",arguments),e.config.animation.clampHeight&&(e.dom.parent.style.height=t.startHeight+"px",e.dom.parent.style.overflow="hidden"),e.config.animation.clampWidth&&(e.dom.parent.style.width=t.startWidth+"px",e.dom.parent.style.overflow="hidden"),i=0;a=t.toShow[i];i++)a.show();t.willChangeLayout&&(n.removeClass(e.dom.container,t.startContainerClassName),n.addClass(e.dom.container,t.newContainerClassName)),e.callActions("afterSetInter",arguments)},getInterMixData:function(t){var e=this,n=null,a=-1;for(e.callActions("beforeGetInterMixData",arguments),a=0;n=t.show[a];a++)t.showPosData[a].interPosData=n.getPosData();for(a=0;n=t.toHide[a];a++)t.toHidePosData[a].interPosData=n.getPosData();e.callActions("afterGetInterMixData",arguments)},setFinal:function(t){var e=this,n=null,a=-1;for(e.callActions("beforeSetFinal",arguments),t.willSort&&e.printSort(!1,t),a=0;n=t.toHide[a];a++)n.hide();e.callActions("afterSetFinal",arguments)},getFinalMixData:function(e){var a=this,i=null,o=null,r=null,s=-1;for(a.callActions("beforeGetFinalMixData",arguments),s=0;r=e.show[s];s++)e.showPosData[s].finalPosData=r.getPosData();for(s=0;r=e.toHide[s];s++)e.toHidePosData[s].finalPosData=r.getPosData();for((a.config.animation.clampHeight||a.config.animation.clampWidth)&&(a.dom.parent.style.height=a.dom.parent.style.width=a.dom.parent.style.overflow=""),a.incPadding||(i=t.getComputedStyle(a.dom.parent)),o=a.dom.parent.getBoundingClientRect(),e.newX=o.left,e.newY=o.top,e.newHeight=a.incPadding?o.height:o.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),e.newWidth=a.incPadding?o.width:o.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),e.viewportDeltaX=e.docState.viewportWidth-this.dom.document.documentElement.clientWidth,e.viewportDeltaY=e.docState.viewportHeight-this.dom.document.documentElement.clientHeight,e.willSort&&a.printSort(!0,e),s=0;r=e.toShow[s];s++)r.hide();for(s=0;r=e.toHide[s];s++)r.show();e.willChangeLayout&&(n.removeClass(a.dom.container,e.newContainerClassName),n.addClass(a.dom.container,a.config.layout.containerClassName)),a.callActions("afterGetFinalMixData",arguments)},getTweenData:function(t){var n=this,a=null,i=null,o=Object.getOwnPropertyNames(n.effectsIn),r="",s=null,l=-1,c=-1,u=-1,f=-1;for(n.callActions("beforeGetTweenData",arguments),u=0;a=t.show[u];u++)for(i=t.showPosData[u],i.posIn=new e.StyleData,i.posOut=new e.StyleData,i.tweenData=new e.StyleData,a.isShown?(i.posIn.x=i.startPosData.x-i.interPosData.x,i.posIn.y=i.startPosData.y-i.interPosData.y):i.posIn.x=i.posIn.y=0,i.posOut.x=i.finalPosData.x-i.interPosData.x,i.posOut.y=i.finalPosData.y-i.interPosData.y,i.posIn.opacity=a.isShown?1:n.effectsIn.opacity,i.posOut.opacity=1,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,a.isShown||n.config.animation.nudge||(i.posIn.x=i.posOut.x,i.posIn.y=i.posOut.y),i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,n.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,l=(i.startPosData.width||i.finalPosData.width)-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-l,c=(i.startPosData.height||i.finalPosData.height)-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-c,i.posOut.width=i.finalPosData.width,i.posOut.height=i.finalPosData.height,l=(i.finalPosData.width||i.startPosData.width)-i.interPosData.width,i.posOut.marginRight=i.finalPosData.marginRight-l,c=(i.finalPosData.height||i.startPosData.height)-i.interPosData.height,i.posOut.marginBottom=i.finalPosData.marginBottom-c,i.tweenData.width=i.posOut.width-i.posIn.width,i.tweenData.height=i.posOut.height-i.posIn.height,i.tweenData.marginRight=i.posOut.marginRight-i.posIn.marginRight,i.tweenData.marginBottom=i.posOut.marginBottom-i.posIn.marginBottom),f=0;r=o[f];f++)s=n.effectsIn[r],s instanceof e.TransformData&&s.value&&(i.posIn[r].value=s.value,i.posOut[r].value=0,i.tweenData[r].value=i.posOut[r].value-i.posIn[r].value,i.posIn[r].unit=i.posOut[r].unit=i.tweenData[r].unit=s.unit);for(u=0;a=t.toHide[u];u++)for(i=t.toHidePosData[u],i.posIn=new e.StyleData,i.posOut=new e.StyleData,i.tweenData=new e.StyleData,i.posIn.x=a.isShown?i.startPosData.x-i.interPosData.x:0,i.posIn.y=a.isShown?i.startPosData.y-i.interPosData.y:0,i.posOut.x=n.config.animation.nudge?0:i.posIn.x,i.posOut.y=n.config.animation.nudge?0:i.posIn.y,i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,n.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,l=i.startPosData.width-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-l,c=i.startPosData.height-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-c),i.posIn.opacity=1,i.posOut.opacity=n.effectsOut.opacity,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,f=0;r=o[f];f++)s=n.effectsOut[r],s instanceof e.TransformData&&s.value&&(i.posIn[r].value=0,i.posOut[r].value=s.value,i.tweenData[r].value=i.posOut[r].value-i.posIn[r].value,i.posIn[r].unit=i.posOut[r].unit=i.tweenData[r].unit=s.unit);n.callActions("afterGetTweenData",arguments)},moveTargets:function(t){var a=this,i=null,o=null,r=null,s="",l=!1,c=-1,u=-1,f=a.checkProgress.bind(a);for(a.callActions("beforeMoveTargets",arguments),u=0;i=t.show[u];u++)o=new e.IMoveData,r=t.showPosData[u],s=i.isShown?"none":"show",l=a.willTransition(s,t.hasEffect,r.posIn,r.posOut),l&&c++,i.show(),o.posIn=r.posIn,o.posOut=r.posOut,o.statusChange=s,o.staggerIndex=c,o.operation=t,o.callback=l?f:null,i.move(o);for(u=0;i=t.toHide[u];u++)r=t.toHidePosData[u],o=new e.IMoveData,s="hide",l=a.willTransition(s,r.posIn,r.posOut),o.posIn=r.posIn,o.posOut=r.posOut,o.statusChange=s,o.staggerIndex=u,o.operation=t,o.callback=l?f:null,i.move(o);a.config.animation.animateResizeContainer&&(a.dom.parent.style[e.features.transitionProp]="height "+a.config.animation.duration+"ms ease, width "+a.config.animation.duration+"ms ease ",requestAnimationFrame(function(){t.startHeight!==t.newHeight&&t.viewportDeltaY!==t.startHeight-t.newHeight&&(a.dom.parent.style.height=t.newHeight+"px"),t.startWidth!==t.newWidth&&t.viewportDeltaX!==t.startWidth-t.newWidth&&(a.dom.parent.style.width=t.newWidth+"px")})),t.willChangeLayout&&(n.removeClass(a.dom.container,a.config.layout.ContainerClassName),n.addClass(a.dom.container,t.newContainerClassName)),a.callActions("afterMoveTargets",arguments)},hasEffect:function(){var t=this,e=["scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],n="",a=null,i=!1,o=-1,r=-1;if(1!==t.effectsIn.opacity)return t.callFilters("resultHasEffect",!0,arguments);for(r=0;n=e[r];r++)if(a=t.effectsIn[n],o="undefined"!==a.value?a.value:a,0!==o){i=!0;break}return t.callFilters("resultHasEffect",i,arguments)},willTransition:function(t,e,a,i){var o=this,r=!1;return r=!!n.isVisible(o.dom.container)&&(!!("none"!==t&&e||a.x!==i.x||a.y!==i.y)||!!o.config.animation.animateResizeTargets&&(a.width!==i.width||a.height!==i.height||a.marginRight!==i.marginRight||a.marginTop!==i.marginTop)),o.callFilters("resultWillTransition",r,arguments)},checkProgress:function(t){var e=this;e.targetsDone++,e.targetsBound===e.targetsDone&&e.cleanUp(t)},cleanUp:function(t){var a=this,i=null,o=null,r=null,s=null,l=-1;for(a.callActions("beforeCleanUp",arguments),a.targetsMoved=a.targetsImmovable=a.targetsBound=a.targetsDone=0,l=0;i=t.show[l];l++)i.cleanUp(),i.show();for(l=0;i=t.toHide[l];l++)i.cleanUp(),i.hide();if(t.willSort&&a.printSort(!1,t),a.dom.parent.style[e.features.transitionProp]=a.dom.parent.style.height=a.dom.parent.style.width=a.dom.parent.style.overflow=a.dom.parent.style[e.features.perspectiveProp]=a.dom.parent.style[e.features.perspectiveOriginProp]="",t.willChangeLayout&&(n.removeClass(a.dom.container,t.startContainerClassName),n.addClass(a.dom.container,t.newContainerClassName)),t.toRemove.length){for(l=0;i=a.targets[l];l++)t.toRemove.indexOf(i)>-1&&((o=i.dom.el.previousSibling)&&"#text"===o.nodeName&&(r=i.dom.el.nextSibling)&&"#text"===r.nodeName&&n.removeWhitespace(o),t.willSort||a.dom.parent.removeChild(i.dom.el),a.targets.splice(l,1),i.isInDom=!1,l--);a.origOrder=a.targets}t.willSort&&(a.targets=t.newOrder),a.state=t.newState,a.lastOperation=t,a.dom.targets=a.state.targets,e.events.fire("mixEnd",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixEnd&&a.config.callbacks.onMixEnd.call(a.dom.container,a.state,a),t.hasFailed&&(e.events.fire("mixFail",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixFail&&a.config.callbacks.onMixFail.call(a.dom.container,a.state,a),n.addClass(a.dom.container,n.getClassname(a.config.classNames,"container",a.config.classNames.modifierFailed))),"function"==typeof a.userCallback&&a.userCallback.call(a.dom.container,a.state,a),"function"==typeof a.userDeferred.resolve&&a.userDeferred.resolve(a.state),a.userCallback=null,a.userDeferred=null,a.lastClicked=null,a.isToggling=!1,a.isBusy=!1,a.queue.length&&(a.callActions("beforeReadQueueCleanUp",arguments),s=a.queue.shift(),a.userDeferred=s.deferred,a.isToggling=s.isToggling,a.lastClicked=s.triggerElement,s.instruction.command instanceof e.CommandMultimix?a.multimix.apply(a,s.args):a.dataset.apply(a,s.args)),a.callActions("afterCleanUp",arguments)},parseMultimixArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandMultimix,r=0;r<t.length;r++)o=t[r],null!==o&&("object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o));return!i.command.insert||i.command.insert instanceof e.CommandInsert||(i.command.insert=a.parseInsertArgs([i.command.insert]).command),!i.command.remove||i.command.remove instanceof e.CommandRemove||(i.command.remove=a.parseRemoveArgs([i.command.remove]).command),!i.command.filter||i.command.filter instanceof e.CommandFilter||(i.command.filter=a.parseFilterArgs([i.command.filter]).command),!i.command.sort||i.command.sort instanceof e.CommandSort||(i.command.sort=a.parseSortArgs([i.command.sort]).command),!i.command.changeLayout||i.command.changeLayout instanceof e.CommandChangeLayout||(i.command.changeLayout=a.parseChangeLayoutArgs([i.command.changeLayout]).command),i=a.callFilters("instructionParseMultimixArgs",i,arguments),n.freeze(i),i},parseFilterArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandFilter,r=0;r<t.length;r++)o=t[r],"string"==typeof o?i.command.selector=o:null===o?i.command.collection=[]:"object"==typeof o&&n.isElement(o,a.dom.document)?i.command.collection=[o]:"object"==typeof o&&"undefined"!=typeof o.length?i.command.collection=n.arrayFromList(o):"object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o);if(i.command.selector&&i.command.collection)throw new Error(e.messages.errorFilterInvalidArguments());return i=a.callFilters("instructionParseFilterArgs",i,arguments),n.freeze(i),i},parseSortArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r="",s=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandSort,s=0;s<t.length;s++)if(o=t[s],null!==o)switch(typeof o){case"string":r=o;break;case"object":o.length&&(i.command.collection=n.arrayFromList(o));break;case"boolean":i.animate=o;break;case"function":i.callback=o}return r&&(i.command=a.parseSortString(r,i.command)),i=a.callFilters("instructionParseSortArgs",i,arguments),n.freeze(i),i},parseInsertArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandInsert,r=0;r<t.length;r++)o=t[r],null!==o&&("number"==typeof o?i.command.index=o:"string"==typeof o&&["before","after"].indexOf(o)>-1?i.command.position=o:"string"==typeof o?i.command.collection=n.arrayFromList(n.createElement(o).childNodes):"object"==typeof o&&n.isElement(o,a.dom.document)?i.command.collection.length?i.command.sibling=o:i.command.collection=[o]:"object"==typeof o&&o.length?i.command.collection.length?i.command.sibling=o[0]:i.command.collection=o:"object"==typeof o&&o.childNodes&&o.childNodes.length?i.command.collection.length?i.command.sibling=o.childNodes[0]:i.command.collection=n.arrayFromList(o.childNodes):"object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o));if(i.command.index&&i.command.sibling)throw new Error(e.messages.errorInsertInvalidArguments());return!i.command.collection.length&&a.config.debug.showWarnings&&console.warn(e.messages.warningInsertNoElements()),i=a.callFilters("instructionParseInsertArgs",i,arguments),n.freeze(i),i},parseRemoveArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=null,s=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandRemove,s=0;s<t.length;s++)if(r=t[s],null!==r)switch(typeof r){case"number":a.targets[r]&&(i.command.targets[0]=a.targets[r]);break;case"string":i.command.collection=n.arrayFromList(a.dom.parent.querySelectorAll(r));break;case"object":r&&r.length?i.command.collection=r:n.isElement(r,a.dom.document)?i.command.collection=[r]:n.extend(i.command,r);break;case"boolean":i.animate=r;break;case"function":i.callback=r}if(i.command.collection.length)for(s=0;o=a.targets[s];s++)i.command.collection.indexOf(o.dom.el)>-1&&i.command.targets.push(o);return!i.command.targets.length&&a.config.debug.showWarnings&&console.warn(e.messages.warningRemoveNoElements()),n.freeze(i),i},parseDatasetArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandDataset,r=0;r<t.length;r++)if(o=t[r],null!==o)switch(typeof o){case"object":Array.isArray(o)||"number"==typeof o.length?i.command.dataset=o:n.extend(i.command,o);break;case"boolean":i.animate=o;break;case"function":i.callback=o}return n.freeze(i),i},parseChangeLayoutArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandChangeLayout,r=0;r<t.length;r++)if(o=t[r],null!==o)switch(typeof o){case"string":i.command.containerClassName=o;break;case"object":n.extend(i.command,o);break;case"boolean":i.animate=o;break;case"function":i.callback=o}return n.freeze(i),i},queueMix:function(t){var a=this,i=null,o="";return a.callActions("beforeQueueMix",arguments),i=n.defer(e.libraries),a.config.animation.queue&&a.queue.length<a.config.animation.queueLimit?(t.deferred=i,a.queue.push(t),a.config.controls.enable&&(a.isToggling?(a.buildToggleArray(t.instruction.command),o=a.getToggleSelector(),a.updateControls({filter:{selector:o}})):a.updateControls(t.instruction.command))):(a.config.debug.showWarnings&&console.warn(e.messages.warningMultimixInstanceQueueFull()),i.resolve(a.state),e.events.fire("mixBusy",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixBusy&&a.config.callbacks.onMixBusy.call(a.dom.container,a.state,a)),
18
+ a.callFilters("promiseQueueMix",i.promise,arguments)},getDataOperation:function(t){var a=this,i=new e.Operation,o=[];if(i=a.callFilters("operationUnmappedGetDataOperation",i,arguments),a.dom.targets.length&&!(o=a.state.activeDataset||[]).length)throw new Error(e.messages.errorDatasetNotSet());return i.id=n.randomHex(),i.startState=a.state,i.startDataset=o,i.newDataset=t.slice(),a.diffDatasets(i),i.startOrder=a.targets,i.newOrder=i.show,a.config.animation.enable&&(a.getStartMixData(i),a.setInter(i),i.docState=n.getDocumentState(a.dom.document),a.getInterMixData(i),a.setFinal(i),a.getFinalMixData(i),a.parseEffects(),i.hasEffect=a.hasEffect(),a.getTweenData(i)),a.targets=i.show.slice(),i.newState=a.buildState(i),Array.prototype.push.apply(a.targets,i.toRemove),i=a.callFilters("operationMappedGetDataOperation",i,arguments)},diffDatasets:function(t){var a=this,i=[],o=[],r=[],s=null,l=null,c=null,u=null,f=null,h={},d="",m=-1;for(a.callActions("beforeDiffDatasets",arguments),m=0;s=t.newDataset[m];m++){if("undefined"==typeof(d=s[a.config.data.uidKey])||d.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:a.config.data.uidKey}));if(h[d])throw new Error(e.messages.errorDatasetDuplicateUid({uid:d}));h[d]=!0,(l=a.cache[d])instanceof e.Target?(a.config.data.dirtyCheck&&!n.deepEquals(s,l.data)&&(c=l.render(s),l.data=s,c!==l.dom.el&&(l.isInDom&&(l.unbindEvents(),a.dom.parent.replaceChild(c,l.dom.el)),l.isShown||(c.style.display="none"),l.dom.el=c,l.isInDom&&l.bindEvents())),c=l.dom.el):(l=new e.Target,l.init(null,a,s),l.hide()),l.isInDom?(f=l.dom.el.nextElementSibling,o.push(d),u&&(u.lastElementChild&&u.appendChild(a.dom.document.createTextNode(" ")),a.insertDatasetFrag(u,l.dom.el,r),u=null)):(u||(u=a.dom.document.createDocumentFragment()),u.lastElementChild&&u.appendChild(a.dom.document.createTextNode(" ")),u.appendChild(l.dom.el),l.isInDom=!0,l.unbindEvents(),l.bindEvents(),l.hide(),t.toShow.push(l),r.push(l)),t.show.push(l)}for(u&&(f=f||a.config.layout.siblingAfter,f&&u.appendChild(a.dom.document.createTextNode(" ")),a.insertDatasetFrag(u,f,r)),m=0;s=t.startDataset[m];m++)d=s[a.config.data.uidKey],l=a.cache[d],t.show.indexOf(l)<0?(t.hide.push(l),t.toHide.push(l),t.toRemove.push(l)):i.push(d);n.isEqualArray(i,o)||(t.willSort=!0),a.callActions("afterDiffDatasets",arguments)},insertDatasetFrag:function(t,e,a){var i=this,o=e?n.arrayFromList(i.dom.parent.children).indexOf(e):i.targets.length;for(i.dom.parent.insertBefore(t,e);a.length;)i.targets.splice(o,0,a.shift()),o++},willSort:function(t,e){var n=this,a=!1;return a=!!(n.config.behavior.liveSort||"random"===t.order||t.attribute!==e.attribute||t.order!==e.order||t.collection!==e.collection||null===t.next&&e.next||t.next&&null===e.next)||!(!t.next||!e.next)&&n.willSort(t.next,e.next),n.callFilters("resultWillSort",a,arguments)},show:function(){var t=this;return t.filter("all")},hide:function(){var t=this;return t.filter("none")},isMixing:function(){var t=this;return t.isBusy},filter:function(){var t=this,e=t.parseFilterArgs(arguments);return t.multimix({filter:e.command},e.animate,e.callback)},toggleOn:function(){var t=this,e=t.parseFilterArgs(arguments),n=e.command.selector,a="";return t.isToggling=!0,t.toggleArray.indexOf(n)<0&&t.toggleArray.push(n),a=t.getToggleSelector(),t.multimix({filter:a},e.animate,e.callback)},toggleOff:function(){var t=this,e=t.parseFilterArgs(arguments),n=e.command.selector,a=t.toggleArray.indexOf(n),i="";return t.isToggling=!0,a>-1&&t.toggleArray.splice(a,1),i=t.getToggleSelector(),t.multimix({filter:i},e.animate,e.callback)},sort:function(){var t=this,e=t.parseSortArgs(arguments);return t.multimix({sort:e.command},e.animate,e.callback)},changeLayout:function(){var t=this,e=t.parseChangeLayoutArgs(arguments);return t.multimix({changeLayout:e.command},e.animate,e.callback)},dataset:function(){var t=this,n=t.parseDatasetArgs(arguments),a=null,i=null,o=!1;return t.callActions("beforeDataset",arguments),t.isBusy?(i=new e.QueueItem,i.args=arguments,i.instruction=n,t.queueMix(i)):(n.callback&&(t.userCallback=n.callback),o=n.animate^t.config.animation.enable?n.animate:t.config.animation.enable,a=t.getDataOperation(n.command.dataset),t.goMix(o,a))},multimix:function(){var t=this,n=null,a=!1,i=null,o=t.parseMultimixArgs(arguments);return t.callActions("beforeMultimix",arguments),t.isBusy?(i=new e.QueueItem,i.args=arguments,i.instruction=o,i.triggerElement=t.lastClicked,i.isToggling=t.isToggling,t.queueMix(i)):(n=t.getOperation(o.command),t.config.controls.enable&&(o.command.filter&&!t.isToggling&&(t.toggleArray.length=0,t.buildToggleArray(n.command)),t.queue.length<1&&t.updateControls(n.command)),o.callback&&(t.userCallback=o.callback),a=o.animate^t.config.animation.enable?o.animate:t.config.animation.enable,t.callFilters("operationMultimix",n,arguments),t.goMix(a,n))},getOperation:function(t){var a=this,i=t.sort,o=t.filter,r=t.changeLayout,s=t.remove,l=t.insert,c=new e.Operation;return c=a.callFilters("operationUnmappedGetOperation",c,arguments),c.id=n.randomHex(),c.command=t,c.startState=a.state,c.triggerElement=a.lastClicked,a.isBusy?(a.config.debug.showWarnings&&console.warn(e.messages.warningGetOperationInstanceBusy()),null):(l&&a.insertTargets(l,c),s&&(c.toRemove=s.targets),c.startSort=c.newSort=c.startState.activeSort,c.startOrder=c.newOrder=a.targets,i&&(c.startSort=c.startState.activeSort,c.newSort=i,c.willSort=a.willSort(i,c.startState.activeSort),c.willSort&&a.sortOperation(c)),c.startFilter=c.startState.activeFilter,o?c.newFilter=o:c.newFilter=n.extend(new e.CommandFilter,c.startFilter),"all"===c.newFilter.selector?c.newFilter.selector=a.config.selectors.target:"none"===c.newFilter.selector&&(c.newFilter.selector=""),a.filterOperation(c),c.startContainerClassName=c.startState.activeContainerClassName,r?(c.newContainerClassName=r.containerClassName,c.newContainerClassName!==c.startContainerClassName&&(c.willChangeLayout=!0)):c.newContainerClassName=c.startContainerClassName,a.config.animation.enable&&(a.getStartMixData(c),a.setInter(c),c.docState=n.getDocumentState(a.dom.document),a.getInterMixData(c),a.setFinal(c),a.getFinalMixData(c),a.parseEffects(),c.hasEffect=a.hasEffect(),a.getTweenData(c)),c.willSort&&(a.targets=c.newOrder),c.newState=a.buildState(c),a.callFilters("operationMappedGetOperation",c,arguments))},tween:function(t,e){var n=null,a=null,i=-1,o=-1;for(e=Math.min(e,1),e=Math.max(e,0),o=0;n=t.show[o];o++)a=t.showPosData[o],n.applyTween(a,e);for(o=0;n=t.hide[o];o++)n.isShown&&n.hide(),(i=t.toHide.indexOf(n))>-1&&(a=t.toHidePosData[i],n.isShown||n.show(),n.applyTween(a,e))},insert:function(){var t=this,e=t.parseInsertArgs(arguments);return t.multimix({insert:e.command},e.animate,e.callback)},insertBefore:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"before",e.command.sibling,e.animate,e.callback)},insertAfter:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"after",e.command.sibling,e.animate,e.callback)},prepend:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(0,e.command.collection,e.animate,e.callback)},append:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(t.state.totalTargets,e.command.collection,e.animate,e.callback)},remove:function(){var t=this,e=t.parseRemoveArgs(arguments);return t.multimix({remove:e.command},e.animate,e.callback)},getConfig:function(t){var e=this,a=null;return a=t?n.getProperty(e.config,t):e.config,e.callFilters("valueGetConfig",a,arguments)},configure:function(t){var e=this;e.callActions("beforeConfigure",arguments),n.extend(e.config,t,!0,!0),e.callActions("afterConfigure",arguments)},getState:function(){var t=this,a=null;return a=new e.State,n.extend(a,t.state),n.freeze(a),t.callFilters("stateGetState",a,arguments)},forceRefresh:function(){var t=this;t.indexTargets()},forceRender:function(){var t=this,e=null,n=null,a="";for(a in t.cache)e=t.cache[a],n=e.render(e.data),n!==e.dom.el&&(e.isInDom&&(e.unbindEvents(),t.dom.parent.replaceChild(n,e.dom.el)),e.isShown||(n.style.display="none"),e.dom.el=n,e.isInDom&&e.bindEvents());t.state=t.buildState(t.lastOperation)},destroy:function(t){var n=this,a=null,i=null,o=0;for(n.callActions("beforeDestroy",arguments),o=0;a=n.controls[o];o++)a.removeBinding(n);for(o=0;i=n.targets[o];o++)t&&i.show(),i.unbindEvents();n.dom.container.id.match(/^MixItUp/)&&n.dom.container.removeAttribute("id"),delete e.instances[n.id],n.callActions("afterDestroy",arguments)}}),e.IMoveData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.posIn=null,this.posOut=null,this.operation=null,this.callback=null,this.statusChange="",this.duration=-1,this.staggerIndex=-1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.IMoveData),e.IMoveData.prototype=Object.create(e.Base.prototype),e.IMoveData.prototype.constructor=e.IMoveData,e.TargetDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TargetDom),e.TargetDom.prototype=Object.create(e.Base.prototype),e.TargetDom.prototype.constructor=e.TargetDom,e.Target=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.sortString="",this.mixer=null,this.callback=null,this.isShown=!1,this.isBound=!1,this.isExcluded=!1,this.isInDom=!1,this.handler=null,this.operation=null,this.data=null,this.dom=new e.TargetDom,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Target),e.Target.prototype=Object.create(e.Base.prototype),n.extend(e.Target.prototype,{constructor:e.Target,init:function(t,n,a){var i=this,o="";if(i.callActions("beforeInit",arguments),i.mixer=n,t||(t=i.render(a)),i.cacheDom(t),i.bindEvents(),"none"!==i.dom.el.style.display&&(i.isShown=!0),a&&n.config.data.uidKey){if("undefined"==typeof(o=a[n.config.data.uidKey])||o.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:n.config.data.uidKey}));i.id=o,i.data=a,n.cache[o]=i}i.callActions("afterInit",arguments)},render:function(t){var a=this,i=null,o=null,r=null,s="";if(a.callActions("beforeRender",arguments),i=a.callFilters("renderRender",a.mixer.config.render.target,arguments),"function"!=typeof i)throw new TypeError(e.messages.errorDatasetRendererNotSet());return s=i(t),s&&"object"==typeof s&&n.isElement(s)?o=s:"string"==typeof s&&(r=document.createElement("div"),r.innerHTML=s,o=r.firstElementChild),a.callFilters("elRender",o,arguments)},cacheDom:function(t){var e=this;e.callActions("beforeCacheDom",arguments),e.dom.el=t,e.callActions("afterCacheDom",arguments)},getSortString:function(t){var e=this,n=e.dom.el.getAttribute("data-"+t)||"";e.callActions("beforeGetSortString",arguments),n=isNaN(1*n)?n.toLowerCase():1*n,e.sortString=n,e.callActions("afterGetSortString",arguments)},show:function(){var t=this;t.callActions("beforeShow",arguments),t.isShown||(t.dom.el.style.display="",t.isShown=!0),t.callActions("afterShow",arguments)},hide:function(){var t=this;t.callActions("beforeHide",arguments),t.isShown&&(t.dom.el.style.display="none",t.isShown=!1),t.callActions("afterHide",arguments)},move:function(t){var e=this;e.callActions("beforeMove",arguments),e.isExcluded||e.mixer.targetsMoved++,e.applyStylesIn(t),requestAnimationFrame(function(){e.applyStylesOut(t)}),e.callActions("afterMove",arguments)},applyTween:function(t,n){var a=this,i="",o=null,r=t.posIn,s=[],l=new e.StyleData,c=-1;for(a.callActions("beforeApplyTween",arguments),l.x=r.x,l.y=r.y,0===n?a.hide():a.isShown||a.show(),c=0;i=e.features.TWEENABLE[c];c++)if(o=t.tweenData[i],"x"===i){if(!o)continue;l.x=r.x+o*n}else if("y"===i){if(!o)continue;l.y=r.y+o*n}else if(o instanceof e.TransformData){if(!o.value)continue;l[i].value=r[i].value+o.value*n,l[i].unit=o.unit,s.push(i+"("+l[i].value+o.unit+")")}else{if(!o)continue;l[i]=r[i]+o*n,a.dom.el.style[i]=l[i]}(l.x||l.y)&&s.unshift("translate("+l.x+"px, "+l.y+"px)"),s.length&&(a.dom.el.style[e.features.transformProp]=s.join(" ")),a.callActions("afterApplyTween",arguments)},applyStylesIn:function(t){var n=this,a=t.posIn,i=1!==n.mixer.effectsIn.opacity,o=[];n.callActions("beforeApplyStylesIn",arguments),o.push("translate("+a.x+"px, "+a.y+"px)"),n.mixer.config.animation.animateResizeTargets&&("show"!==t.statusChange&&(n.dom.el.style.width=a.width+"px",n.dom.el.style.height=a.height+"px"),n.dom.el.style.marginRight=a.marginRight+"px",n.dom.el.style.marginBottom=a.marginBottom+"px"),i&&(n.dom.el.style.opacity=a.opacity),"show"===t.statusChange&&(o=o.concat(n.mixer.transformIn)),n.dom.el.style[e.features.transformProp]=o.join(" "),n.callActions("afterApplyStylesIn",arguments)},applyStylesOut:function(t){var n=this,a=[],i=[],o=n.mixer.config.animation.animateResizeTargets,r="undefined"!=typeof n.mixer.effectsIn.opacity;if(n.callActions("beforeApplyStylesOut",arguments),a.push(n.writeTransitionRule(e.features.transformRule,t.staggerIndex)),"none"!==t.statusChange&&a.push(n.writeTransitionRule("opacity",t.staggerIndex,t.duration)),o&&(a.push(n.writeTransitionRule("width",t.staggerIndex,t.duration)),a.push(n.writeTransitionRule("height",t.staggerIndex,t.duration)),a.push(n.writeTransitionRule("margin",t.staggerIndex,t.duration))),!t.callback)return n.mixer.targetsImmovable++,void(n.mixer.targetsMoved===n.mixer.targetsImmovable&&n.mixer.cleanUp(t.operation));switch(n.operation=t.operation,n.callback=t.callback,!n.isExcluded&&n.mixer.targetsBound++,n.isBound=!0,n.applyTransition(a),o&&t.posOut.width>0&&t.posOut.height>0&&(n.dom.el.style.width=t.posOut.width+"px",n.dom.el.style.height=t.posOut.height+"px",n.dom.el.style.marginRight=t.posOut.marginRight+"px",n.dom.el.style.marginBottom=t.posOut.marginBottom+"px"),n.mixer.config.animation.nudge||"hide"!==t.statusChange||i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),t.statusChange){case"hide":r&&(n.dom.el.style.opacity=n.mixer.effectsOut.opacity),i=i.concat(n.mixer.transformOut);break;case"show":r&&(n.dom.el.style.opacity=1)}(n.mixer.config.animation.nudge||!n.mixer.config.animation.nudge&&"hide"!==t.statusChange)&&i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),n.dom.el.style[e.features.transformProp]=i.join(" "),n.callActions("afterApplyStylesOut",arguments)},writeTransitionRule:function(t,e,n){var a=this,i=a.getDelay(e),o="";return o=t+" "+(n>0?n:a.mixer.config.animation.duration)+"ms "+i+"ms "+("opacity"===t?"linear":a.mixer.config.animation.easing),a.callFilters("ruleWriteTransitionRule",o,arguments)},getDelay:function(t){var e=this,n=-1;return"function"==typeof e.mixer.config.animation.staggerSequence&&(t=e.mixer.config.animation.staggerSequence.call(e,t,e.state)),n=e.mixer.staggerDuration?t*e.mixer.staggerDuration:0,e.callFilters("delayGetDelay",n,arguments)},applyTransition:function(t){var n=this,a=t.join(", ");n.callActions("beforeApplyTransition",arguments),n.dom.el.style[e.features.transitionProp]=a,n.callActions("afterApplyTransition",arguments)},handleTransitionEnd:function(t){var e=this,n=t.propertyName,a=e.mixer.config.animation.animateResizeTargets;e.callActions("beforeHandleTransitionEnd",arguments),e.isBound&&t.target.matches(e.mixer.config.selectors.target)&&(n.indexOf("transform")>-1||n.indexOf("opacity")>-1||a&&n.indexOf("height")>-1||a&&n.indexOf("width")>-1||a&&n.indexOf("margin")>-1)&&(e.callback.call(e,e.operation),e.isBound=!1,e.callback=null,e.operation=null),e.callActions("afterHandleTransitionEnd",arguments)},eventBus:function(t){var e=this;switch(e.callActions("beforeEventBus",arguments),t.type){case"webkitTransitionEnd":case"transitionend":e.handleTransitionEnd(t)}e.callActions("afterEventBus",arguments)},unbindEvents:function(){var t=this;t.callActions("beforeUnbindEvents",arguments),n.off(t.dom.el,"webkitTransitionEnd",t.handler),n.off(t.dom.el,"transitionend",t.handler),t.callActions("afterUnbindEvents",arguments)},bindEvents:function(){var t=this,a="";t.callActions("beforeBindEvents",arguments),a="webkit"===e.features.transitionPrefix?"webkitTransitionEnd":"transitionend",t.handler=function(e){return t.eventBus(e)},n.on(t.dom.el,a,t.handler),t.callActions("afterBindEvents",arguments)},getPosData:function(n){var a=this,i={},o=null,r=new e.StyleData;return a.callActions("beforeGetPosData",arguments),r.x=a.dom.el.offsetLeft,r.y=a.dom.el.offsetTop,(a.mixer.config.animation.animateResizeTargets||n)&&(o=a.dom.el.getBoundingClientRect(),r.top=o.top,r.right=o.right,r.bottom=o.bottom,r.left=o.left,r.width=o.width,r.height=o.height),a.mixer.config.animation.animateResizeTargets&&(i=t.getComputedStyle(a.dom.el),r.marginBottom=parseFloat(i.marginBottom),r.marginRight=parseFloat(i.marginRight)),a.callFilters("posDataGetPosData",r,arguments)},cleanUp:function(){var t=this;t.callActions("beforeCleanUp",arguments),t.dom.el.style[e.features.transformProp]="",t.dom.el.style[e.features.transitionProp]="",t.dom.el.style.opacity="",t.mixer.config.animation.animateResizeTargets&&(t.dom.el.style.width="",t.dom.el.style.height="",t.dom.el.style.marginRight="",t.dom.el.style.marginBottom=""),t.callActions("afterCleanUp",arguments)}}),e.Collection=function(t){var e=null,a=-1;for(this.callActions("beforeConstruct"),a=0;e=t[a];a++)this[a]=e;this.length=t.length,this.callActions("afterConstruct"),n.freeze(this)},e.BaseStatic.call(e.Collection),e.Collection.prototype=Object.create(e.Base.prototype),n.extend(e.Collection.prototype,{constructor:e.Collection,mixitup:function(t){var a=this,i=null,o=Array.prototype.slice.call(arguments),r=[],s=-1;for(this.callActions("beforeMixitup"),o.shift(),s=0;i=a[s];s++)r.push(i[t].apply(i,o));return a.callFilters("promiseMixitup",n.all(r,e.libraries),arguments)}}),e.Operation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.args=[],this.command=null,this.showPosData=[],this.toHidePosData=[],this.startState=null,this.newState=null,this.docState=null,this.willSort=!1,this.willChangeLayout=!1,this.hasEffect=!1,this.hasFailed=!1,this.triggerElement=null,this.show=[],this.hide=[],this.matching=[],this.toShow=[],this.toHide=[],this.toMove=[],this.toRemove=[],this.startOrder=[],this.newOrder=[],this.startSort=null,this.newSort=null,this.startFilter=null,this.newFilter=null,this.startDataset=null,this.newDataset=null,this.viewportDeltaX=0,this.viewportDeltaY=0,this.startX=0,this.startY=0,this.startHeight=0,this.startWidth=0,this.newX=0,this.newY=0,this.newHeight=0,this.newWidth=0,this.startContainerClassName="",this.startDisplay="",this.newContainerClassName="",this.newDisplay="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Operation),e.Operation.prototype=Object.create(e.Base.prototype),e.Operation.prototype.constructor=e.Operation,e.State=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.activeFilter=null,this.activeSort=null,this.activeContainerClassName="",this.container=null,this.targets=[],this.hide=[],this.show=[],this.matching=[],this.totalTargets=-1,this.totalShow=-1,this.totalHide=-1,this.totalMatching=-1,this.hasFailed=!1,this.triggerElement=null,this.activeDataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.State),e.State.prototype=Object.create(e.Base.prototype),e.State.prototype.constructor=e.State,e.UserInstruction=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.command={},this.animate=!1,this.callback=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.UserInstruction),e.UserInstruction.prototype=Object.create(e.Base.prototype),e.UserInstruction.prototype.constructor=e.UserInstruction,e.Messages=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.ERROR_FACTORY_INVALID_CONTAINER="[MixItUp] An invalid selector or element reference was passed to the mixitup factory function",this.ERROR_FACTORY_CONTAINER_NOT_FOUND="[MixItUp] The provided selector yielded no container element",this.ERROR_CONFIG_INVALID_ANIMATION_EFFECTS="[MixItUp] Invalid value for `animation.effects`",this.ERROR_CONFIG_INVALID_CONTROLS_SCOPE="[MixItUp] Invalid value for `controls.scope`",this.ERROR_CONFIG_INVALID_PROPERTY='[MixitUp] Invalid configuration object property "${erroneous}"${suggestion}',this.ERROR_CONFIG_INVALID_PROPERTY_SUGGESTION='. Did you mean "${probableMatch}"?',this.ERROR_CONFIG_DATA_UID_KEY_NOT_SET="[MixItUp] To use the dataset API, a UID key must be specified using `data.uidKey`",this.ERROR_DATASET_INVALID_UID_KEY='[MixItUp] The specified UID key "${uidKey}" is not present on one or more dataset items',this.ERROR_DATASET_DUPLICATE_UID='[MixItUp] The UID "${uid}" was found on two or more dataset items. UIDs must be unique.',this.ERROR_INSERT_INVALID_ARGUMENTS="[MixItUp] Please provider either an index or a sibling and position to insert, not both",this.ERROR_INSERT_PREEXISTING_ELEMENT="[MixItUp] An element to be inserted already exists in the container",this.ERROR_FILTER_INVALID_ARGUMENTS="[MixItUp] Please provide either a selector or collection `.filter()`, not both",this.ERROR_DATASET_NOT_SET="[MixItUp] To use the dataset API with pre-rendered targets, a starting dataset must be set using `load.dataset`",this.ERROR_DATASET_PRERENDERED_MISMATCH="[MixItUp] `load.dataset` does not match pre-rendered targets",this.ERROR_DATASET_RENDERER_NOT_SET="[MixItUp] To insert an element via the dataset API, a target renderer function must be provided to `render.target`",this.ERROR_SORT_NON_EXISTENT_ELEMENT="[MixItUp] An element to be sorted does not already exist in the container",this.WARNING_FACTORY_PREEXISTING_INSTANCE="[MixItUp] WARNING: This element already has an active MixItUp instance. The provided configuration object will be ignored. If you wish to perform additional methods on this instance, please create a reference.",this.WARNING_INSERT_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.insert()`",this.WARNING_REMOVE_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.remove()`",this.WARNING_MULTIMIX_INSTANCE_QUEUE_FULL="[MixItUp] WARNING: An operation was requested but the MixItUp instance was busy. The operation was rejected because the queue is full or queuing is disabled.",this.WARNING_GET_OPERATION_INSTANCE_BUSY="[MixItUp] WARNING: Operations can be be created while the MixItUp instance is busy.",this.WARNING_NO_PROMISE_IMPLEMENTATION="[MixItUp] WARNING: No Promise implementations could be found. If you wish to use promises with MixItUp please install an ES6 Promise polyfill.",this.WARNING_INCONSISTENT_SORTING_ATTRIBUTES='[MixItUp] WARNING: The requested sorting data attribute "${attribute}" was not present on one or more target elements which may product unexpected sort output',this.callActions("afterConstruct"),this.compileTemplates(),n.seal(this)},e.BaseStatic.call(e.Messages),e.Messages.prototype=Object.create(e.Base.prototype),e.Messages.prototype.constructor=e.Messages,e.Messages.prototype.compileTemplates=function(){var t="",e="";for(t in this)"string"==typeof(e=this[t])&&(this[n.camelCase(t)]=n.template(e))},e.messages=new e.Messages,e.Facade=function(t){e.Base.call(this),this.callActions("beforeConstruct",arguments),this.configure=t.configure.bind(t),this.show=t.show.bind(t),this.hide=t.hide.bind(t),this.filter=t.filter.bind(t),this.toggleOn=t.toggleOn.bind(t),this.toggleOff=t.toggleOff.bind(t),this.sort=t.sort.bind(t),this.changeLayout=t.changeLayout.bind(t),this.multimix=t.multimix.bind(t),this.dataset=t.dataset.bind(t),this.tween=t.tween.bind(t),this.insert=t.insert.bind(t),this.insertBefore=t.insertBefore.bind(t),this.insertAfter=t.insertAfter.bind(t),this.prepend=t.prepend.bind(t),this.append=t.append.bind(t),this.remove=t.remove.bind(t),this.destroy=t.destroy.bind(t),this.forceRefresh=t.forceRefresh.bind(t),this.forceRender=t.forceRender.bind(t),this.isMixing=t.isMixing.bind(t),this.getOperation=t.getOperation.bind(t),this.getConfig=t.getConfig.bind(t),this.getState=t.getState.bind(t),this.callActions("afterConstruct",arguments),n.freeze(this),n.seal(this)},e.BaseStatic.call(e.Facade),e.Facade.prototype=Object.create(e.Base.prototype),e.Facade.prototype.constructor=e.Facade,"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):"undefined"!=typeof t.mixitup&&"function"==typeof t.mixitup||(t.mixitup=e),e.BaseStatic.call(e.constructor),e.NAME="mixitup",e.CORE_VERSION="3.3.1"}(window);
main.php CHANGED
@@ -86,7 +86,11 @@ class VC_MEGA
86
 
87
  function vc_saving_data() {
88
  if (isset($_REQUEST)) {
89
- update_option( 'vc_save_data', $_REQUEST );
 
 
 
 
90
  }
91
  }
92
 
@@ -106,7 +110,7 @@ class VC_MEGA
106
  <h3 style="font-weight: 100;">Enable/Disable Element</h3>
107
  <div class="mega-addons-version">
108
  <div class="dashicons-before dashicons-shield"></div>
109
- <p>Version 4.2.6</p>
110
  </div>
111
  <?php include 'includes/settings.php'; ?>
112
  </div>
86
 
87
  function vc_saving_data() {
88
  if (isset($_REQUEST)) {
89
+
90
+ // Sanitizing $_REQUEST before saving
91
+ $vc_save_data = array_map( 'sanitize_text_field', $_REQUEST );
92
+ update_option( 'vc_save_data', $vc_save_data );
93
+
94
  }
95
  }
96
 
110
  <h3 style="font-weight: 100;">Enable/Disable Element</h3>
111
  <div class="mega-addons-version">
112
  <div class="dashicons-before dashicons-shield"></div>
113
+ <p>Version 4.2.7</p>
114
  </div>
115
  <?php include 'includes/settings.php'; ?>
116
  </div>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: nasir179125, smokehunt
3
  Donate link: https://www.paypal.com/donate/?token=IEJu3QF5rsSIXSKPvPFBAyFldUM4WbkVRzGfUQ4ZSTSZcI3_hiYjVvr5fcz8_MFFwzeW5W&country.x=GB&locale.x=GB
4
  Tags: mega addons for wpbakery page builder, mega addons for visual composer, visual composer, all in one plugin, visual composer extension, whatsapp chat, imag hover effects, portfolio, carousel for wpbakery, post, shortcodes, tabs, member profile, info banner, price table, stats counter, flip book, testimonial, filterable gallery, floating menu,
5
  Requires at least: 3.5
6
- Tested up to: 5.5.3
7
- Stable tag: 4.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -161,6 +161,15 @@ https://www.youtube.com/watch?time_continue=387&v=Qj4tfvMlcJs
161
 
162
  == Changelog ==
163
 
 
 
 
 
 
 
 
 
 
164
  = 4.2.6 – 18/11/2020 =
165
  * Advanced Carousel: Bug Fixed
166
 
3
  Donate link: https://www.paypal.com/donate/?token=IEJu3QF5rsSIXSKPvPFBAyFldUM4WbkVRzGfUQ4ZSTSZcI3_hiYjVvr5fcz8_MFFwzeW5W&country.x=GB&locale.x=GB
4
  Tags: mega addons for wpbakery page builder, mega addons for visual composer, visual composer, all in one plugin, visual composer extension, whatsapp chat, imag hover effects, portfolio, carousel for wpbakery, post, shortcodes, tabs, member profile, info banner, price table, stats counter, flip book, testimonial, filterable gallery, floating menu,
5
  Requires at least: 3.5
6
+ Tested up to: 5.9.3
7
+ Stable tag: 4.2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
161
 
162
  == Changelog ==
163
 
164
+ = 4.2.7 – 02/06/2021 =
165
+ * Bug Fixed: PHP Warning Undefined array key 1 & PHP Warning: Undefined array key 2 error show in different elements.
166
+ * Fixed: Error show using Google Fonts option.
167
+ * Accordion: Added the option of custom "Class" & "ID".
168
+ * Accordion: In the Backend Editor you can see the Title of each accordion tab.
169
+ * Fixed: Undefined line show in "Timeline" element.
170
+ * Social Icon: Option to link url in new tab, fixed effect "Icon & Text".
171
+ * Fixed: In InfoList "show" "hide" class conflict with other templates so removed It.
172
+
173
  = 4.2.6 – 18/11/2020 =
174
  * Advanced Carousel: Bug Fixed
175
 
render/accordion_father.php CHANGED
@@ -14,6 +14,7 @@ class WPBakeryShortCode_accordion_father extends WPBakeryShortCodesContainer {
14
  'titlemargin' => '0',
15
  'activetabbg' => '',
16
  'activetabclr' => '',
 
17
  'iconsize' => '15',
18
  'icon' => 'fa fa-plus',
19
  'activeicon' => 'fa fa-minus',
@@ -27,37 +28,37 @@ class WPBakeryShortCode_accordion_father extends WPBakeryShortCodesContainer {
27
  wp_enqueue_style( 'accordion-css', plugins_url( '../css/accordion.css' , __FILE__ ));
28
  wp_enqueue_script( 'accordion-js', plugins_url( '../js/accordion.js' , __FILE__ ), array('jquery', 'jquery-ui-accordion'));
29
  ob_start(); ?>
30
- <div class="mega-accordion maw_accordion_<?php echo $some_id; ?>" data-active="<?php echo $active; ?>" data-anim="<?php echo $animation; ?>" data-event="<?php echo $event; ?>" data-closeicons="<?php echo $icon; ?>" data-activeicons="<?php echo $activeicon; ?>">
31
  <?php echo $content; ?>
32
  </div>
33
 
34
  <style>
35
- .maw_accordion_<?php echo $some_id; ?> .ac-style .ui-accordion-header-icon {
36
- font-size: <?php echo $iconsize; ?>px;
37
  }
38
  <?php if ($activetabbg != '' || $activetabclr != '') { ?>
39
- .maw_accordion_<?php echo $some_id; ?> .ui-state-active,
40
- .maw_accordion_<?php echo $some_id; ?> .ui-widget-content .ui-state-active,
41
- .maw_accordion_<?php echo $some_id; ?> .ui-widget-header .ui-state-active {
42
- background: <?php echo $activetabbg; ?> !important;
43
- color: <?php echo $activetabclr; ?> !important;
44
  }
45
- .maw_accordion_<?php echo $some_id; ?> .ui-accordion-header:hover {
46
- background: <?php echo $activetabbg; ?> !important;
47
- color: <?php echo $activetabclr; ?> !important;
48
  }
49
  <?php } ?>
50
 
51
  @media only screen and (max-width: 767px) {
52
- .maw_accordion_<?php echo $some_id; ?> .ac-style {
53
- font-size: <?php echo $title_mblsize ?>px !important;
54
  }
55
- .maw_accordion_<?php echo $some_id; ?> .ac-style .ui-accordion-header-icon {
56
- font-size: <?php echo $icon_mblsize; ?>px !important;
57
  }
58
- .maw_accordion_<?php echo $some_id; ?> .mega-panel,
59
- .maw_accordion_<?php echo $some_id; ?> .mega-panel * {
60
- font-size: <?php echo $title_mblsize ?>px !important;
61
  }
62
  }
63
  </style>
@@ -135,6 +136,14 @@ vc_map( array(
135
  "group" => 'General',
136
  ),
137
 
 
 
 
 
 
 
 
 
138
  array(
139
  "type" => "vc_links",
140
  "param_name" => "caption_url",
14
  'titlemargin' => '0',
15
  'activetabbg' => '',
16
  'activetabclr' => '',
17
+ 'class' => '',
18
  'iconsize' => '15',
19
  'icon' => 'fa fa-plus',
20
  'activeicon' => 'fa fa-minus',
28
  wp_enqueue_style( 'accordion-css', plugins_url( '../css/accordion.css' , __FILE__ ));
29
  wp_enqueue_script( 'accordion-js', plugins_url( '../js/accordion.js' , __FILE__ ), array('jquery', 'jquery-ui-accordion'));
30
  ob_start(); ?>
31
+ <div class="mega-accordion maw_accordion_<?php echo esc_attr($some_id); ?> <?php echo esc_attr($class); ?>" data-active="<?php echo esc_attr($active); ?>" data-anim="<?php echo esc_attr($animation); ?>" data-event="<?php echo esc_attr($event); ?>" data-closeicons="<?php echo esc_attr($icon); ?>" data-activeicons="<?php echo esc_attr($activeicon); ?>">
32
  <?php echo $content; ?>
33
  </div>
34
 
35
  <style>
36
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .ac-style .ui-accordion-header-icon {
37
+ font-size: <?php echo esc_attr($iconsize); ?>px;
38
  }
39
  <?php if ($activetabbg != '' || $activetabclr != '') { ?>
40
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .ui-state-active,
41
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .ui-widget-content .ui-state-active,
42
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .ui-widget-header .ui-state-active {
43
+ background: <?php echo esc_attr($activetabbg); ?> !important;
44
+ color: <?php echo esc_attr($activetabclr); ?> !important;
45
  }
46
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .ui-accordion-header:hover {
47
+ background: <?php echo esc_attr($activetabbg); ?> !important;
48
+ color: <?php echo esc_attr($activetabclr); ?> !important;
49
  }
50
  <?php } ?>
51
 
52
  @media only screen and (max-width: 767px) {
53
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .ac-style {
54
+ font-size: <?php echo esc_attr($title_mblsize) ?>px !important;
55
  }
56
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .ac-style .ui-accordion-header-icon {
57
+ font-size: <?php echo esc_attr($icon_mblsize); ?>px !important;
58
  }
59
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .mega-panel,
60
+ .maw_accordion_<?php echo esc_attr($some_id); ?> .mega-panel * {
61
+ font-size: <?php echo esc_attr($title_mblsize) ?>px !important;
62
  }
63
  }
64
  </style>
136
  "group" => 'General',
137
  ),
138
 
139
+ array(
140
+ "type" => "textfield",
141
+ "heading" => __( 'Extra Class', 'int_banner' ),
142
+ "param_name" => "class",
143
+ "description" => __( 'Add extra class name that will be applied to the accordion, and you can use this class for your customizations.', 'int_banner' ),
144
+ "group" => "General",
145
+ ),
146
+
147
  array(
148
  "type" => "vc_links",
149
  "param_name" => "caption_url",
render/accordion_son.php CHANGED
@@ -14,6 +14,7 @@ class WPBakeryShortCode_accordion_son extends WPBakeryShortCode {
14
  'title_padding' => '10',
15
  'size' => '16',
16
  'clr' => '',
 
17
  'borderwidth' => '0px 0px 0px 0px',
18
  'borderwidth2' => '0px 0px 0px 0px',
19
  'borderclr' => '',
@@ -23,13 +24,15 @@ class WPBakeryShortCode_accordion_son extends WPBakeryShortCode {
23
  'bodybg' => '',
24
  ), $atts ) );
25
  $content = wpb_js_remove_wpautop($content);
 
 
26
  ob_start();
27
  global $maw_accordion_margin;
28
  ?>
29
- <h3 class="ac-style" style="text-align: <?php echo $title_align; ?>; margin-top: <?php echo $maw_accordion_margin; ?>px; border-width: <?php echo $borderwidth; ?>; border-style: solid; border-color: <?php echo $borderclr; ?>; border-radius: <?php echo $titleradius; ?>px; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?> <?php echo $gradientbg; ?>; font-size: <?php echo $size; ?>px; padding-top: <?php echo $title_padding; ?>px; padding-bottom: <?php echo $title_padding; ?>px;">
30
- <?php echo $title; ?>
31
  </h3>
32
- <div class="mega-panel" style="margin-bottom: <?php echo $maw_accordion_margin; ?>px;background: <?php echo $bodybg; ?>; border-width: <?php echo $borderwidth2; ?>; border-style: solid; border-color: <?php echo $borderclr2; ?>;">
33
  <?php echo $content; ?>
34
  </div>
35
 
@@ -54,6 +57,7 @@ vc_map( array(
54
  "type" => "textfield",
55
  "heading" => __( 'Title', 'accordion' ),
56
  "param_name" => "title",
 
57
  "description" => __( 'display title', 'accordion' ),
58
  "group" => 'Title',
59
  ),
@@ -110,6 +114,14 @@ vc_map( array(
110
  "group" => 'Title',
111
  ),
112
 
 
 
 
 
 
 
 
 
113
  // Detail Section
114
 
115
  array(
14
  'title_padding' => '10',
15
  'size' => '16',
16
  'clr' => '',
17
+ 'acc_id' => '',
18
  'borderwidth' => '0px 0px 0px 0px',
19
  'borderwidth2' => '0px 0px 0px 0px',
20
  'borderclr' => '',
24
  'bodybg' => '',
25
  ), $atts ) );
26
  $content = wpb_js_remove_wpautop($content);
27
+ $content = str_replace("<script>","&#60;script&#62;",$content);
28
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
29
  ob_start();
30
  global $maw_accordion_margin;
31
  ?>
32
+ <h3 class="ac-style" id="<?php echo esc_attr($acc_id); ?>" style="text-align: <?php echo esc_attr($title_align); ?>; margin-top: <?php echo esc_attr($maw_accordion_margin); ?>px; border-width: <?php echo esc_attr($borderwidth); ?>; border-style: solid; border-color: <?php echo esc_attr($borderclr); ?>; border-radius: <?php echo esc_attr($titleradius); ?>px; color: <?php echo esc_attr($clr); ?>; background: <?php echo esc_attr($bgclr); ?> <?php echo esc_attr($gradientbg); ?>; font-size: <?php echo esc_attr($size); ?>px; padding-top: <?php echo esc_attr($title_padding); ?>px; padding-bottom: <?php echo esc_attr($title_padding); ?>px;">
33
+ <?php echo esc_attr($title); ?>
34
  </h3>
35
+ <div class="mega-panel" style="margin-bottom: <?php echo esc_attr($maw_accordion_margin); ?>px; background: <?php echo esc_attr($bodybg); ?>; border-width: <?php echo esc_attr($borderwidth2); ?>; border-style: solid; border-color: <?php echo esc_attr($borderclr2); ?>;">
36
  <?php echo $content; ?>
37
  </div>
38
 
57
  "type" => "textfield",
58
  "heading" => __( 'Title', 'accordion' ),
59
  "param_name" => "title",
60
+ 'admin_label' => true,
61
  "description" => __( 'display title', 'accordion' ),
62
  "group" => 'Title',
63
  ),
114
  "group" => 'Title',
115
  ),
116
 
117
+ array(
118
+ "type" => "textfield",
119
+ "heading" => __( 'Extra ID', 'int_banner' ),
120
+ "param_name" => "acc_id",
121
+ "description" => __( 'Add extra ID name that will be applied to the accordion tabs, and you can use this ID for your customizations.', 'int_banner' ),
122
+ "group" => "Title",
123
+ ),
124
+
125
  // Detail Section
126
 
127
  array(
render/advanced_btn.php CHANGED
@@ -39,56 +39,65 @@ class WPBakeryShortCode_mvc_advanced_button extends WPBakeryShortCode {
39
  'classname' => '',
40
  ), $atts ) );
41
  $some_id = rand(5, 500);
 
 
42
  $btn_url = vc_build_link($btn_url);
43
  wp_enqueue_style( 'advanced-button-css', plugins_url( '../css/advanced-buttons.css' , __FILE__ ));
44
  $content = wpb_js_remove_wpautop($content, true);
45
  $atts = vc_map_get_attributes( $this->getShortcode(), $atts );
46
- $fontsData = $this->getFontsData( $atts, 'google_fonts' );
47
- $googleFontsStyles = $this->googleFontsStyles( $fontsData );
48
- $this->enqueueGoogleFonts( $fontsData );
49
- $googleallfonts = esc_attr( implode( ';', $googleFontsStyles ) );
 
 
 
 
 
 
 
50
  ob_start(); ?>
51
 
52
- <div class="mega_uae_btn_<?php echo $some_id; ?> <?php echo $classname; ?>" style="justify-content: <?php echo $align; ?>; display: flex;">
53
  <?php if ($btn_animation == 'hvr-fade' || $btn_animation == 'button--saqui' || $btn_animation == 'button--sacnite') { ?>
54
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo $btn_animation; ?> <?php echo $btn_block; ?>" style="color: <?php echo $btn_clr; ?>;background: <?php echo $btn_bg; ?> ; border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $btn_border; ?>; border-radius: <?php echo $btn_radius; ?>px; font-size: <?php echo $btn_size; ?>px; padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; <?php echo $googleallfonts; ?>;" data-text="<?php echo esc_attr($btn_text); ?>">
55
  <?php if ($icon_position == 'left') { ?>
56
- <i class="<?php echo $btn_icon; ?> icon__left"></i>
57
  <?php } ?>
58
- <?php echo $btn_text; ?>
59
  <?php if ($icon_position == 'right') { ?>
60
- <i class="<?php echo $btn_icon; ?> icon__right"></i>
61
  <?php } ?>
62
  </a>
63
  <div style="clear: both;"></div>
64
  <?php } ?>
65
 
66
  <?php if ($btn_animation == 'button--winona') { ?>
67
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo $btn_animation; ?> <?php echo $btn_block; ?>" style="color: <?php echo $btn_clr; ?>;background: <?php echo $btn_bg; ?> ; border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $btn_border; ?>; border-radius: <?php echo $btn_radius; ?>px; font-size: <?php echo $btn_size; ?>px; padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; <?php echo $googleallfonts; ?>;" data-text="">
68
  <span>
69
  <?php if ($icon_position == 'left') { ?>
70
- <i class="<?php echo $btn_icon; ?> icon__left"> </i>
71
  <?php } ?>
72
- <?php echo $btn_text; ?>
73
  <?php if ($icon_position == 'right') { ?>
74
- <i class="<?php echo $btn_icon; ?> icon__right"> </i>
75
  <?php } ?>
76
  </span>
77
- <span style="padding: <?php echo $padding_top; ?>px 0;" class="advanced-btn-after"><?php echo $btn_text2; ?></span>
78
  </a>
79
  <div style="clear: both;"></div>
80
  <?php } ?>
81
 
82
  <?php if ($btn_animation == 'button--rayen') { ?>
83
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo $btn_animation; ?> <?php echo $btn_block; ?>" style="color: <?php echo $btn_clr; ?>;background: <?php echo $btn_bg; ?> ; border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $btn_border; ?>; border-radius: <?php echo $btn_radius; ?>px; font-size: <?php echo $btn_size; ?>px; padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; <?php echo $googleallfonts; ?>;" data-text="">
84
- <span style="background: <?php echo $btn_hvrbg; ?>; padding: <?php echo $padding_top; ?>px 0; color: <?php echo $btn_hvrclr; ?>;" class="advanced-btn-before"><?php echo $btn_text2; ?></span>
85
  <span>
86
  <?php if ($icon_position == 'left') { ?>
87
- <i class="<?php echo $btn_icon; ?> icon__left"> </i>
88
  <?php } ?>
89
- <?php echo $btn_text; ?>
90
  <?php if ($icon_position == 'right') { ?>
91
- <i class="<?php echo $btn_icon; ?> icon__right"> </i>
92
  <?php } ?>
93
  </span>
94
  </a>
@@ -96,231 +105,231 @@ class WPBakeryShortCode_mvc_advanced_button extends WPBakeryShortCode {
96
  <?php } ?>
97
 
98
  <?php if ($btn_animation == 'button--wapasha' || $btn_animation == 'button--isi' || $btn_animation == 'button--moema' || $btn_animation == 'button--wayra' || $btn_animation == 'button--ujarak' || $btn_animation == 'button--aylen' || $btn_animation == 'button--nuka' || $btn_animation == 'button--shikoba' || $btn_animation == 'button--quidel') { ?>
99
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo $btn_animation; ?> <?php echo $btn_block; ?>" style="color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $btn_border; ?>; border-radius: <?php echo $btn_radius; ?>px; font-size: <?php echo $btn_size; ?>px; padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; <?php echo $googleallfonts; ?>;" data-text="">
100
  <?php if ($icon_position == 'left') { ?>
101
- <i class="<?php echo $btn_icon; ?> button__icon icon__left"> </i>
102
  <?php } ?>
103
- <span><?php echo $btn_text; ?></span>
104
  <?php if ($icon_position == 'right') { ?>
105
- <i class="<?php echo $btn_icon; ?> button__icon icon__right"> </i>
106
  <?php } ?>
107
  </a>
108
  <div style="clear: both;"></div>
109
  <?php } ?>
110
 
111
  <?php if ($btn_animation == 'button--antiman' || $btn_animation == 'button--pipaluk') { ?>
112
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo $btn_animation; ?> <?php echo $btn_block; ?>" style="color: <?php echo $btn_clr; ?>; border-radius: <?php echo $btn_radius; ?>px; font-size: <?php echo $btn_size; ?>px; padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; <?php echo $googleallfonts; ?>;" data-text="">
113
  <?php if ($icon_position == 'left') { ?>
114
- <i class="<?php echo $btn_icon; ?> button__icon icon__left"> </i>
115
  <?php } ?>
116
- <span><?php echo $btn_text; ?></span>
117
  <?php if ($icon_position == 'right') { ?>
118
- <i class="<?php echo $btn_icon; ?> button__icon icon__right"> </i>
119
  <?php } ?>
120
  </a>
121
  <div style="clear: both;"></div>
122
  <?php } ?>
123
 
124
  <?php if ($btn_animation == 'button--float') { ?>
125
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo $btn_animation; ?> <?php echo $btn_block; ?>" style="color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $btn_border; ?>; border-radius: <?php echo $btn_radius; ?>px; font-size: <?php echo $btn_size; ?>px; padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; <?php echo $googleallfonts; ?>;">
126
- <?php echo $btn_text; ?>
127
- <i class="<?php echo $btn_icon; ?>" style="font-size: <?php echo $icon_size ?>px;"></i>
128
  </a>
129
  <?php } ?>
130
  </div>
131
  <style>
132
- .mega_uae_btn_<?php echo $some_id; ?> .maw_advanced_btn{
133
- text-transform: <?php echo $transform ?> !important;
134
- font-style: <?php echo $text_style ?> !important;
135
- text-decoration: <?php echo $text_decoration ?> !important;
136
- box-<?php echo $btn_shadow ?>: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
137
  }
138
  <?php if ($icon_position == 'left') { ?>
139
- .mega_uae_btn_<?php echo $some_id; ?> .maw_advanced_btn .icon__left {
140
- font-size: <?php echo $icon_size ?>px !important;
141
- padding-right: <?php echo $icon_space ?>px !important;
142
  }
143
  <?php }
144
  if ($icon_position == 'right') { ?>
145
- .mega_uae_btn_<?php echo $some_id; ?> .maw_advanced_btn .icon__right {
146
- font-size: <?php echo $icon_size ?>px !important;
147
- padding-left: <?php echo $icon_space ?>px !important;
148
  }
149
  <?php } ?>
150
 
151
- .mega_uae_btn_<?php echo $some_id; ?> .button--antiman:hover,
152
- .mega_uae_btn_<?php echo $some_id; ?> .button--nuka:hover,
153
- .mega_uae_btn_<?php echo $some_id; ?> .button--aylen:hover,
154
- .mega_uae_btn_<?php echo $some_id; ?> .button--pipaluk:hover {
155
- color: <?php echo $btn_hvrclr; ?> !important;
156
  }
157
 
158
  <?php if ($btn_animation == 'hvr-fade') { ?>
159
- .mega_uae_btn_<?php echo $some_id; ?> .hvr-fade:hover{
160
- background: <?php echo $btn_hvrbg; ?> !important;
161
- color: <?php echo $btn_hvrclr; ?> !important;
162
  }
163
  <?php } ?>
164
 
165
  <?php if ($btn_animation == 'button--moema') { ?>
166
- .mega_uae_btn_<?php echo $some_id; ?> .button--moema:hover {
167
- background: <?php echo $btn_hvrbg; ?> !important;
168
- color: <?php echo $btn_hvrclr; ?> !important;
169
  }
170
  <?php } ?>
171
 
172
  <?php if ($btn_animation == 'button--winona') { ?>
173
- .mega_uae_btn_<?php echo $some_id; ?> .button--winona:hover {
174
- background: <?php echo $btn_hvrbg; ?> !important;
175
- color: <?php echo $btn_hvrclr; ?> !important;
176
  }
177
  <?php } ?>
178
 
179
  <?php if ($btn_animation == 'button--rayen') { ?>
180
- /*.mega_uae_btn_<?php echo $some_id; ?> .button--rayen {
181
- background: <?php echo $btn_bg; ?> ;
182
- border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $btn_border; ?>;
183
  }*/
184
  <?php } ?>
185
  <?php if ($btn_animation == 'button--wayra') { ?>
186
- .mega_uae_btn_<?php echo $some_id; ?> .button--wayra:hover {
187
- color: <?php echo $btn_hvrclr; ?> !important;
188
  }
189
- .mega_uae_btn_<?php echo $some_id; ?> .button--wayra:hover::before {
190
- background: <?php echo $btn_hvrbg; ?> !important;
191
  }
192
  <?php } ?>
193
 
194
  <?php if ($btn_animation == 'button--ujarak') { ?>
195
- .mega_uae_btn_<?php echo $some_id; ?> .button--ujarak:hover {
196
- color: <?php echo $btn_hvrclr; ?> !important;
197
  }
198
- .mega_uae_btn_<?php echo $some_id; ?> .button--ujarak::before {
199
- background: <?php echo $btn_hvrbg; ?> !important;
200
  }
201
  <?php } ?>
202
 
203
  <?php if ($btn_animation == 'button--isi') { ?>
204
- .mega_uae_btn_<?php echo $some_id; ?> .button--isi::before{
205
- background: <?php echo $btn_hvrbg; ?> !important;
206
  }
207
- .mega_uae_btn_<?php echo $some_id; ?> .button--isi:hover {
208
- color: <?php echo $btn_hvrclr; ?> !important;
209
  }
210
  <?php } ?>
211
 
212
  <?php if ($btn_animation == 'button--saqui') { ?>
213
- .mega_uae_btn_<?php echo $some_id; ?> .button--saqui::after {
214
- padding: <?php echo $padding_top; ?>px 0;
215
- color: <?php echo $btn_hvrclr; ?> !important;
216
  }
217
  <?php } ?>
218
 
219
  <?php if ($btn_animation == 'button--float') { ?>
220
- .mega_uae_btn_<?php echo $some_id; ?> .button--float:hover {
221
- padding-right: <?php echo $icon_space+45; ?>px !important;
222
- background: <?php echo $btn_hvrbg; ?> !important;
223
- color: <?php echo $btn_hvrclr; ?> !important;
224
  }
225
  <?php } ?>
226
 
227
  <?php if ($btn_animation == 'button--sacnite') { ?>
228
- .mega_uae_btn_<?php echo $some_id; ?> .button--sacnite {
229
  background: none !important;
230
  }
231
- .mega_uae_btn_<?php echo $some_id; ?> .button--sacnite::before {
232
- box-shadow: inset 0 0 0 35px <?php echo $btn_bg; ?>;
233
  }
234
- .mega_uae_btn_<?php echo $some_id; ?> .button--sacnite:hover::before {
235
- box-shadow: inset 0 0 0 2px <?php echo $btn_hvrbg; ?>;
236
  }
237
- .mega_uae_btn_<?php echo $some_id; ?> .button--sacnite:hover {
238
  background: none !important;
239
- color: <?php echo $btn_hvrclr; ?> !important;
240
  }
241
  <?php } ?>
242
 
243
  <?php if ($btn_animation == 'button--quidel') { ?>
244
- .mega_uae_btn_<?php echo $some_id; ?> .button--quidel {
245
- background: <?php echo $btn_border; ?>;
246
  }
247
- .mega_uae_btn_<?php echo $some_id; ?> .button--quidel::after {
248
- background: <?php echo $btn_bg; ?>;
249
- top: <?php echo $border_width; ?>px; left: <?php echo $border_width; ?>px;
250
- right: <?php echo $border_width; ?>px; bottom: <?php echo $border_width; ?>px;
251
  }
252
- .mega_uae_btn_<?php echo $some_id; ?> .button--quidel::before {
253
- background: <?php echo $btn_hvrbg; ?>;
254
  }
255
  <?php } ?>
256
 
257
  <?php if ($btn_animation == 'button--wapasha'): ?>
258
- .mega_uae_btn_<?php echo $some_id; ?> .button--wapasha:hover {
259
- background: <?php echo $btn_hvrbg; ?> !important;
260
- color: <?php echo $btn_hvrclr; ?> !important;
261
  }
262
- .mega_uae_btn_<?php echo $some_id; ?> .button--wapasha::before{
263
- border-color: <?php echo $btn_border; ?> !important;
264
  }
265
  <?php endif ?>
266
 
267
  <?php if ($btn_animation == 'button--pipaluk'): ?>
268
- .mega_uae_btn_<?php echo $some_id; ?> .button--pipaluk::before{
269
- border-color: <?php echo $btn_border; ?> !important;
270
  }
271
- .mega_uae_btn_<?php echo $some_id; ?> .button--pipaluk::after{
272
- background: <?php echo $btn_bg; ?> !important;
273
- color: <?php echo $btn_clr; ?> !important;
274
  }
275
- .mega_uae_btn_<?php echo $some_id; ?> .button--pipaluk:hover::after {
276
- background: <?php echo $btn_hvrbg; ?> !important;
277
  }
278
  <?php endif ?>
279
 
280
  <?php if ($btn_animation == 'button--aylen'): ?>
281
- .mega_uae_btn_<?php echo $some_id; ?> .button--aylen{
282
- background: <?php echo $btn_bg; ?> !important;
283
- color: <?php echo $btn_clr; ?> !important;
284
  }
285
- .mega_uae_btn_<?php echo $some_id; ?> .button--aylen::before,
286
- .mega_uae_btn_<?php echo $some_id; ?> .button--aylen::after{
287
- background: <?php echo $btn_hvrbg; ?> !important;
288
  }
289
  <?php endif ?>
290
 
291
  <?php if ($btn_animation == 'button--nuka'): ?>
292
- .mega_uae_btn_<?php echo $some_id; ?> .button--nuka::before{
293
- background: <?php echo $btn_border;; ?> !important;
294
  }
295
- .mega_uae_btn_<?php echo $some_id; ?> .button--nuka::after{
296
- background: <?php echo $btn_bg; ?> !important;
297
- color: <?php echo $btn_clr; ?> !important;
298
  }
299
- .mega_uae_btn_<?php echo $some_id; ?> .button--nuka:hover::after{
300
- background: <?php echo $btn_hvrbg; ?> !important;
301
  }
302
  <?php endif ?>
303
 
304
  <?php if ($btn_animation == 'button--antiman'): ?>
305
- .mega_uae_btn_<?php echo $some_id; ?> .button--antiman::after {
306
- background: <?php echo $btn_bg; ?> !important;
307
  }
308
- .mega_uae_btn_<?php echo $some_id; ?> .button--antiman::before {
309
- background: <?php echo $btn_hvrbg; ?> !important;
310
- border: <?php echo $border_width ?>px <?php echo $border_style; ?> <?php echo $btn_border; ?> !important;
311
  }
312
  <?php endif ?>
313
 
314
  <?php if ($btn_animation == 'button--shikoba'): ?>
315
- .mega_uae_btn_<?php echo $some_id; ?> .button--shikoba {
316
- background: <?php echo $btn_bg; ?> !important;
317
- border: <?php echo $border_width ?>px <?php echo $border_style; ?> <?php echo $btn_border; ?> !important;
318
  }
319
- .mega_uae_btn_<?php echo $some_id; ?> .button--shikoba:hover {
320
- background: <?php echo $btn_hvrbg; ?> !important;
321
  }
322
- .mega_uae_btn_<?php echo $some_id; ?> .button--shikoba i {
323
- padding-top: <?php echo $padding_top; ?>px !important;
324
  }
325
  <?php endif ?>
326
  </style>
@@ -343,10 +352,14 @@ class WPBakeryShortCode_mvc_advanced_button extends WPBakeryShortCode {
343
  $fontFamily = explode( ':', $fontsData['values']['font_family'] );
344
  $styles[] = 'font-family:' . $fontFamily[0];
345
  $fontStyles = explode( ':', $fontsData['values']['font_style'] );
346
- $styles[] = 'font-weight:' . $fontStyles[1];
347
- $styles[] = 'font-style:' . $fontStyles[2];
 
 
 
 
 
348
 
349
- return $styles;
350
  }
351
 
352
  protected function enqueueGoogleFonts( $fontsData ) {
@@ -440,6 +453,7 @@ vc_map( array(
440
  "heading" => __( 'Button text', 'button' ),
441
  "param_name" => "btn_text",
442
  "value" => "Start a Conversation",
 
443
  "description" => __( 'Write button text', 'button' ),
444
  "group" => 'General',
445
  ),
@@ -631,34 +645,6 @@ vc_map( array(
631
  "group" => 'Settings',
632
  ),
633
 
634
- array(
635
- "type" => "textfield",
636
- "heading" => __( 'Font Family Name', 'button' ),
637
- "param_name" => "font_family",
638
- "group" => 'Settings',
639
- ),
640
-
641
- array(
642
- "type" => "dropdown",
643
- "heading" => __( 'Font Weight', 'button' ),
644
- "param_name" => "font_weight",
645
- "group" => 'Settings',
646
- "value" => array(
647
- "100" => "100",
648
- "200" => "200",
649
- "300" => "300",
650
- "400" => "400",
651
- "500" => "500",
652
- "600" => "600",
653
- "700" => "700",
654
- "800" => "800",
655
- "900" => "900",
656
- "Default" => "default",
657
- "Normal" => "normal",
658
- "Bold" => "bold",
659
- )
660
- ),
661
-
662
  array(
663
  "type" => "dropdown",
664
  "heading" => __( 'Transform', 'button' ),
@@ -711,6 +697,14 @@ vc_map( array(
711
  )
712
  ),
713
 
 
 
 
 
 
 
 
 
714
  array(
715
  "type" => "checkbox",
716
  "heading" => __( 'Use theme default font family?', 'creativelink' ),
39
  'classname' => '',
40
  ), $atts ) );
41
  $some_id = rand(5, 500);
42
+ $content = str_replace("<script>","&#60;script&#62;",$content);
43
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
44
  $btn_url = vc_build_link($btn_url);
45
  wp_enqueue_style( 'advanced-button-css', plugins_url( '../css/advanced-buttons.css' , __FILE__ ));
46
  $content = wpb_js_remove_wpautop($content, true);
47
  $atts = vc_map_get_attributes( $this->getShortcode(), $atts );
48
+ $googleallfonts = "";
49
+ if($google_fonts != "default"){
50
+ $fontsData = $this->getFontsData( $atts, 'google_fonts' );
51
+ $googleFontsStyles = $this->googleFontsStyles( $fontsData );
52
+ $this->enqueueGoogleFonts( $fontsData );
53
+ if (empty($googleFontsStyles) == false){
54
+ $googleallfonts = esc_attr( implode( ';', $googleFontsStyles ) );
55
+ } else {
56
+ $googleallfonts = $googleFontsStyles;
57
+ }
58
+ }
59
  ob_start(); ?>
60
 
61
+ <div class="mega_uae_btn_<?php echo esc_attr($some_id); ?> <?php echo esc_attr($classname); ?>" style="justify-content: <?php echo esc_attr($align); ?>; display: flex;">
62
  <?php if ($btn_animation == 'hvr-fade' || $btn_animation == 'button--saqui' || $btn_animation == 'button--sacnite') { ?>
63
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo esc_attr($btn_animation); ?> <?php echo esc_attr($btn_block); ?>" style="color: <?php echo esc_attr($btn_clr); ?>;background: <?php echo esc_attr($btn_bg); ?> ; border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($btn_border); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px; font-size: <?php echo esc_attr($btn_size); ?>px; padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; <?php echo esc_attr($googleallfonts); ?>;" data-text="<?php echo esc_attr($btn_text); ?>">
64
  <?php if ($icon_position == 'left') { ?>
65
+ <i class="<?php echo esc_attr($btn_icon); ?> icon__left"></i>
66
  <?php } ?>
67
+ <?php echo esc_attr($btn_text); ?>
68
  <?php if ($icon_position == 'right') { ?>
69
+ <i class="<?php echo esc_attr($btn_icon); ?> icon__right"></i>
70
  <?php } ?>
71
  </a>
72
  <div style="clear: both;"></div>
73
  <?php } ?>
74
 
75
  <?php if ($btn_animation == 'button--winona') { ?>
76
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo esc_attr($btn_animation); ?> <?php echo esc_attr($btn_block); ?>" style="color: <?php echo esc_attr($btn_clr); ?>;background: <?php echo esc_attr($btn_bg); ?> ; border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($btn_border); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px; font-size: <?php echo esc_attr($btn_size); ?>px; padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; <?php echo esc_attr($googleallfonts); ?>;" data-text="">
77
  <span>
78
  <?php if ($icon_position == 'left') { ?>
79
+ <i class="<?php echo esc_attr($btn_icon); ?> icon__left"> </i>
80
  <?php } ?>
81
+ <?php echo esc_attr($btn_text); ?>
82
  <?php if ($icon_position == 'right') { ?>
83
+ <i class="<?php echo esc_attr($btn_icon); ?> icon__right"> </i>
84
  <?php } ?>
85
  </span>
86
+ <span style="padding: <?php echo esc_attr($padding_top); ?>px 0;" class="advanced-btn-after"><?php echo esc_attr($btn_text2); ?></span>
87
  </a>
88
  <div style="clear: both;"></div>
89
  <?php } ?>
90
 
91
  <?php if ($btn_animation == 'button--rayen') { ?>
92
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo esc_attr($btn_animation); ?> <?php echo esc_attr($btn_block); ?>" style="color: <?php echo esc_attr($btn_clr); ?>;background: <?php echo esc_attr($btn_bg); ?> ; border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($btn_border); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px; font-size: <?php echo esc_attr($btn_size); ?>px; padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; <?php echo esc_attr($googleallfonts); ?>;" data-text="">
93
+ <span style="background: <?php echo esc_attr($btn_hvrbg); ?>; padding: <?php echo esc_attr($padding_top); ?>px 0; color: <?php echo esc_attr($btn_hvrclr); ?>;" class="advanced-btn-before"><?php echo esc_attr($btn_text2); ?></span>
94
  <span>
95
  <?php if ($icon_position == 'left') { ?>
96
+ <i class="<?php echo esc_attr($btn_icon); ?> icon__left"> </i>
97
  <?php } ?>
98
+ <?php echo esc_attr($btn_text); ?>
99
  <?php if ($icon_position == 'right') { ?>
100
+ <i class="<?php echo esc_attr($btn_icon); ?> icon__right"> </i>
101
  <?php } ?>
102
  </span>
103
  </a>
105
  <?php } ?>
106
 
107
  <?php if ($btn_animation == 'button--wapasha' || $btn_animation == 'button--isi' || $btn_animation == 'button--moema' || $btn_animation == 'button--wayra' || $btn_animation == 'button--ujarak' || $btn_animation == 'button--aylen' || $btn_animation == 'button--nuka' || $btn_animation == 'button--shikoba' || $btn_animation == 'button--quidel') { ?>
108
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo esc_attr($btn_animation); ?> <?php echo esc_attr($btn_block); ?>" style="color: <?php echo esc_attr($btn_clr); ?>; background: <?php echo esc_attr($btn_bg); ?>; border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($btn_border); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px; font-size: <?php echo esc_attr($btn_size); ?>px; padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; <?php echo esc_attr($googleallfonts); ?>;" data-text="">
109
  <?php if ($icon_position == 'left') { ?>
110
+ <i class="<?php echo esc_attr($btn_icon); ?> button__icon icon__left"> </i>
111
  <?php } ?>
112
+ <span><?php echo esc_attr($btn_text); ?></span>
113
  <?php if ($icon_position == 'right') { ?>
114
+ <i class="<?php echo esc_attr($btn_icon); ?> button__icon icon__right"> </i>
115
  <?php } ?>
116
  </a>
117
  <div style="clear: both;"></div>
118
  <?php } ?>
119
 
120
  <?php if ($btn_animation == 'button--antiman' || $btn_animation == 'button--pipaluk') { ?>
121
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo esc_attr($btn_animation); ?> <?php echo esc_attr($btn_block); ?>" style="color: <?php echo esc_attr($btn_clr); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px; font-size: <?php echo esc_attr($btn_size); ?>px; padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; <?php echo esc_attr($googleallfonts); ?>;" data-text="">
122
  <?php if ($icon_position == 'left') { ?>
123
+ <i class="<?php echo esc_attr($btn_icon); ?> button__icon icon__left"> </i>
124
  <?php } ?>
125
+ <span><?php echo esc_attr($btn_text); ?></span>
126
  <?php if ($icon_position == 'right') { ?>
127
+ <i class="<?php echo esc_attr($btn_icon); ?> button__icon icon__right"> </i>
128
  <?php } ?>
129
  </a>
130
  <div style="clear: both;"></div>
131
  <?php } ?>
132
 
133
  <?php if ($btn_animation == 'button--float') { ?>
134
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="maw_advanced_btn <?php echo esc_attr($btn_animation); ?> <?php echo esc_attr($btn_block); ?>" style="color: <?php echo esc_attr($btn_clr); ?>; background: <?php echo esc_attr($btn_bg); ?>; border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($btn_border); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px; font-size: <?php echo esc_attr($btn_size); ?>px; padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; <?php echo esc_attr($googleallfonts); ?>;">
135
+ <?php echo esc_attr($btn_text); ?>
136
+ <i class="<?php echo esc_attr($btn_icon); ?>" style="font-size: <?php echo esc_attr($icon_size) ?>px;"></i>
137
  </a>
138
  <?php } ?>
139
  </div>
140
  <style>
141
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .maw_advanced_btn{
142
+ text-transform: <?php echo esc_attr($transform); ?> !important;
143
+ font-style: <?php echo esc_attr($text_style); ?> !important;
144
+ text-decoration: <?php echo esc_attr($text_decoration); ?> !important;
145
+ box-<?php echo esc_attr($btn_shadow) ?>: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
146
  }
147
  <?php if ($icon_position == 'left') { ?>
148
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .maw_advanced_btn .icon__left {
149
+ font-size: <?php echo esc_attr($icon_size) ?>px !important;
150
+ padding-right: <?php echo esc_attr($icon_space) ?>px !important;
151
  }
152
  <?php }
153
  if ($icon_position == 'right') { ?>
154
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .maw_advanced_btn .icon__right {
155
+ font-size: <?php echo esc_attr($icon_size) ?>px !important;
156
+ padding-left: <?php echo esc_attr($icon_space) ?>px !important;
157
  }
158
  <?php } ?>
159
 
160
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--antiman:hover,
161
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--nuka:hover,
162
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--aylen:hover,
163
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--pipaluk:hover {
164
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
165
  }
166
 
167
  <?php if ($btn_animation == 'hvr-fade') { ?>
168
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .hvr-fade:hover{
169
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
170
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
171
  }
172
  <?php } ?>
173
 
174
  <?php if ($btn_animation == 'button--moema') { ?>
175
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--moema:hover {
176
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
177
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
178
  }
179
  <?php } ?>
180
 
181
  <?php if ($btn_animation == 'button--winona') { ?>
182
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--winona:hover {
183
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
184
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
185
  }
186
  <?php } ?>
187
 
188
  <?php if ($btn_animation == 'button--rayen') { ?>
189
+ /*.mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--rayen {
190
+ background: <?php echo esc_attr($btn_bg); ?> ;
191
+ border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($btn_border); ?>;
192
  }*/
193
  <?php } ?>
194
  <?php if ($btn_animation == 'button--wayra') { ?>
195
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--wayra:hover {
196
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
197
  }
198
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--wayra:hover::before {
199
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
200
  }
201
  <?php } ?>
202
 
203
  <?php if ($btn_animation == 'button--ujarak') { ?>
204
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--ujarak:hover {
205
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
206
  }
207
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--ujarak::before {
208
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
209
  }
210
  <?php } ?>
211
 
212
  <?php if ($btn_animation == 'button--isi') { ?>
213
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--isi::before{
214
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
215
  }
216
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--isi:hover {
217
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
218
  }
219
  <?php } ?>
220
 
221
  <?php if ($btn_animation == 'button--saqui') { ?>
222
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--saqui::after {
223
+ padding: <?php echo esc_attr($padding_top); ?>px 0;
224
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
225
  }
226
  <?php } ?>
227
 
228
  <?php if ($btn_animation == 'button--float') { ?>
229
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--float:hover {
230
+ padding-right: <?php echo esc_attr($icon_space)+45; ?>px !important;
231
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
232
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
233
  }
234
  <?php } ?>
235
 
236
  <?php if ($btn_animation == 'button--sacnite') { ?>
237
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--sacnite {
238
  background: none !important;
239
  }
240
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--sacnite::before {
241
+ box-shadow: inset 0 0 0 35px <?php echo esc_attr($btn_bg); ?>;
242
  }
243
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--sacnite:hover::before {
244
+ box-shadow: inset 0 0 0 2px <?php echo esc_attr($btn_hvrbg); ?>;
245
  }
246
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--sacnite:hover {
247
  background: none !important;
248
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
249
  }
250
  <?php } ?>
251
 
252
  <?php if ($btn_animation == 'button--quidel') { ?>
253
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--quidel {
254
+ background: <?php echo esc_attr($btn_border); ?>;
255
  }
256
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--quidel::after {
257
+ background: <?php echo esc_attr($btn_bg); ?>;
258
+ top: <?php echo esc_attr($border_width); ?>px; left: <?php echo esc_attr($border_width); ?>px;
259
+ right: <?php echo esc_attr($border_width); ?>px; bottom: <?php echo esc_attr($border_width); ?>px;
260
  }
261
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--quidel::before {
262
+ background: <?php echo esc_attr($btn_hvrbg); ?>;
263
  }
264
  <?php } ?>
265
 
266
  <?php if ($btn_animation == 'button--wapasha'): ?>
267
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--wapasha:hover {
268
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
269
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
270
  }
271
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--wapasha::before{
272
+ border-color: <?php echo esc_attr($btn_border); ?> !important;
273
  }
274
  <?php endif ?>
275
 
276
  <?php if ($btn_animation == 'button--pipaluk'): ?>
277
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--pipaluk::before{
278
+ border-color: <?php echo esc_attr($btn_border); ?> !important;
279
  }
280
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--pipaluk::after{
281
+ background: <?php echo esc_attr($btn_bg); ?> !important;
282
+ color: <?php echo esc_attr($btn_clr); ?> !important;
283
  }
284
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--pipaluk:hover::after {
285
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
286
  }
287
  <?php endif ?>
288
 
289
  <?php if ($btn_animation == 'button--aylen'): ?>
290
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--aylen{
291
+ background: <?php echo esc_attr($btn_bg); ?> !important;
292
+ color: <?php echo esc_attr($btn_clr); ?> !important;
293
  }
294
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--aylen::before,
295
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--aylen::after{
296
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
297
  }
298
  <?php endif ?>
299
 
300
  <?php if ($btn_animation == 'button--nuka'): ?>
301
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--nuka::before{
302
+ background: <?php echo esc_attr($btn_border);; ?> !important;
303
  }
304
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--nuka::after{
305
+ background: <?php echo esc_attr($btn_bg); ?> !important;
306
+ color: <?php echo esc_attr($btn_clr); ?> !important;
307
  }
308
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--nuka:hover::after{
309
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
310
  }
311
  <?php endif ?>
312
 
313
  <?php if ($btn_animation == 'button--antiman'): ?>
314
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--antiman::after {
315
+ background: <?php echo esc_attr($btn_bg); ?> !important;
316
  }
317
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--antiman::before {
318
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
319
+ border: <?php echo esc_attr($border_width) ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($btn_border); ?> !important;
320
  }
321
  <?php endif ?>
322
 
323
  <?php if ($btn_animation == 'button--shikoba'): ?>
324
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--shikoba {
325
+ background: <?php echo esc_attr($btn_bg); ?> !important;
326
+ border: <?php echo esc_attr($border_width) ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($btn_border); ?> !important;
327
  }
328
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--shikoba:hover {
329
+ background: <?php echo esc_attr($btn_hvrbg); ?> !important;
330
  }
331
+ .mega_uae_btn_<?php echo esc_attr($some_id); ?> .button--shikoba i {
332
+ padding-top: <?php echo esc_attr($padding_top); ?>px !important;
333
  }
334
  <?php endif ?>
335
  </style>
352
  $fontFamily = explode( ':', $fontsData['values']['font_family'] );
353
  $styles[] = 'font-family:' . $fontFamily[0];
354
  $fontStyles = explode( ':', $fontsData['values']['font_style'] );
355
+ if(count($fontStyles)>1){
356
+ $styles[] = 'font-weight:' . $fontStyles[1];
357
+ $styles[] = 'font-style:' . $fontStyles[2];
358
+ return $styles;
359
+ } else {
360
+ return "";
361
+ }
362
 
 
363
  }
364
 
365
  protected function enqueueGoogleFonts( $fontsData ) {
453
  "heading" => __( 'Button text', 'button' ),
454
  "param_name" => "btn_text",
455
  "value" => "Start a Conversation",
456
+ 'admin_label' => true,
457
  "description" => __( 'Write button text', 'button' ),
458
  "group" => 'General',
459
  ),
645
  "group" => 'Settings',
646
  ),
647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
648
  array(
649
  "type" => "dropdown",
650
  "heading" => __( 'Transform', 'button' ),
697
  )
698
  ),
699
 
700
+ array(
701
+ "type" => "vc_links",
702
+ "param_name" => "caption_urlss",
703
+ "class" => "ult_param_heading",
704
+ "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Google Fonts Option</span>', 'ihover' ),
705
+ "group" => 'Settings',
706
+ ),
707
+
708
  array(
709
  "type" => "checkbox",
710
  "heading" => __( 'Use theme default font family?', 'creativelink' ),
render/advanceprice.php CHANGED
@@ -30,28 +30,30 @@ class WPBakeryShortCode_mvc_advance_listing extends WPBakeryShortCode {
30
  $btn_url = vc_build_link($btn_url);
31
  wp_enqueue_style( 'advanced-listing-css', plugins_url( '../css/ad_listing.css' , __FILE__ ));
32
  $content = wpb_js_remove_wpautop($content, true);
 
 
33
  ob_start(); ?>
34
 
35
- <div class="price_table_2" style="background-color: <?php echo $price_bg; ?>; margin-top: <?php echo $price_margin; ?>px;">
36
- <div class="type" style="background-color: <?php echo $top_bg; ?>;">
37
- <div class="ribbon-right-side" style="display: <?php echo $offer_visibility; ?>;">
38
- <span style="background: <?php echo $offer_bg; ?>;"><?php echo $offer_text; ?></span>
39
  </div>
40
- <p><?php echo $price_title; ?></p>
41
  </div>
42
 
43
  <div class="plan">
44
- <div class="header" style="display: <?php echo $price_visibility; ?>;">
45
- <span class="amount" style="color: <?php echo $amount_clr; ?>; font-size: <?php echo $price_fontsize; ?>px">
46
- <?php echo $price_amount; ?> <span class="month">/<?php echo $price_plan; ?></span>
47
  </span>
48
  </div>
49
  <div class="content">
50
  <?php echo $content; ?>
51
  </div>
52
  <div class="price" style="">
53
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="price-btn" style="display: <?php echo $btn_visibility; ?>; background-color: <?php echo $top_bg; ?>; box-shadow: inset 0 -2px <?php echo $top_bg; ?>;-webkit-box-shadow: inset 0 -2px <?php echo $top_bg; ?>;">
54
- <?php echo $btn_text; ?>
55
  </a>
56
  </div>
57
  </div>
30
  $btn_url = vc_build_link($btn_url);
31
  wp_enqueue_style( 'advanced-listing-css', plugins_url( '../css/ad_listing.css' , __FILE__ ));
32
  $content = wpb_js_remove_wpautop($content, true);
33
+ $content = str_replace("<script>","&#60;script&#62;",$content);
34
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
35
  ob_start(); ?>
36
 
37
+ <div class="price_table_2" style="background-color: <?php echo esc_attr($price_bg); ?>; margin-top: <?php echo esc_attr($price_margin); ?>px;">
38
+ <div class="type" style="background-color: <?php echo esc_attr($top_bg); ?>;">
39
+ <div class="ribbon-right-side" style="display: <?php echo esc_attr($offer_visibility); ?>;">
40
+ <span style="background: <?php echo esc_attr($offer_bg); ?>;"><?php echo esc_attr($offer_text); ?></span>
41
  </div>
42
+ <p><?php echo esc_attr($price_title); ?></p>
43
  </div>
44
 
45
  <div class="plan">
46
+ <div class="header" style="display: <?php echo esc_attr($price_visibility); ?>;">
47
+ <span class="amount" style="color: <?php echo esc_attr($amount_clr); ?>; font-size: <?php echo esc_attr($price_fontsize); ?>px">
48
+ <?php echo esc_attr($price_amount); ?> <span class="month">/<?php echo esc_attr($price_plan); ?></span>
49
  </span>
50
  </div>
51
  <div class="content">
52
  <?php echo $content; ?>
53
  </div>
54
  <div class="price" style="">
55
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="price-btn" style="display: <?php echo esc_attr($btn_visibility); ?>; background-color: <?php echo esc_attr($top_bg); ?>; box-shadow: inset 0 -2px <?php echo esc_attr($top_bg); ?>;-webkit-box-shadow: inset 0 -2px <?php echo esc_attr($top_bg); ?>;">
56
+ <?php echo esc_attr($btn_text); ?>
57
  </a>
58
  </div>
59
  </div>
render/countdown.php CHANGED
@@ -35,40 +35,40 @@ class WPBakeryShortCode_mvc_countdown extends WPBakeryShortCode {
35
  wp_enqueue_script( 'custom-countdown-js', plugins_url( '../js/front-js/countdown.js' , __FILE__ ), array('jquery') );
36
  ob_start(); ?>
37
  <div
38
- id="defaultCountdown<?php echo $id; ?>"
39
  style="width: 100%;"
40
  class="countdownapply"
41
- data-style="<?php echo $style; ?>"
42
- data-year="<?php echo $year; ?>"
43
- data-month="<?php echo $month; ?>"
44
- data-date="<?php echo $date; ?>"
45
  >
46
 
47
  </div>
48
  <style>
49
- #defaultCountdown<?php echo $id; ?> .countdown-section {
50
- background-color: <?php echo $bgcolor; ?>;
51
- width: <?php echo $width; ?>px;
52
- height: <?php echo $height; ?>px;
53
- margin: 0 <?php echo $margin; ?>px;
54
- border: <?php echo $borderwidth; ?>px <?php echo $borderstyle; ?> <?php echo $borderclr; ?>;
55
- border-radius: <?php echo $radius; ?>;
56
- line-height: <?php echo $lineheight; ?>;
57
  display: inline-block;
58
  float: none !important;
59
  }
60
- #defaultCountdown<?php echo $id; ?> {
61
  text-align: center;
62
  }
63
- #defaultCountdown<?php echo $id; ?> .countdown-section .countdown-amount {
64
- font-size: <?php echo $size; ?>px;
65
- color: <?php echo $textcolor; ?>;
66
- padding-top: <?php echo $padding; ?>px;
67
  display: block;
68
  }
69
- #defaultCountdown<?php echo $id; ?> .countdown-section .countdown-period {
70
- font-size: <?php echo $periodsize; ?>px;
71
- color: <?php echo $periodcolor; ?>;
72
  }
73
  </style>
74
  <?php
35
  wp_enqueue_script( 'custom-countdown-js', plugins_url( '../js/front-js/countdown.js' , __FILE__ ), array('jquery') );
36
  ob_start(); ?>
37
  <div
38
+ id="defaultCountdown<?php echo esc_attr($id); ?>"
39
  style="width: 100%;"
40
  class="countdownapply"
41
+ data-style="<?php echo esc_attr($style); ?>"
42
+ data-year="<?php echo esc_attr($year); ?>"
43
+ data-month="<?php echo esc_attr($month); ?>"
44
+ data-date="<?php echo esc_attr($date); ?>"
45
  >
46
 
47
  </div>
48
  <style>
49
+ #defaultCountdown<?php echo esc_attr($id); ?> .countdown-section {
50
+ background-color: <?php echo esc_attr($bgcolor); ?>;
51
+ width: <?php echo esc_attr($width); ?>px;
52
+ height: <?php echo esc_attr($height); ?>px;
53
+ margin: 0 <?php echo esc_attr($margin); ?>px;
54
+ border: <?php echo esc_attr($borderwidth); ?>px <?php echo esc_attr($borderstyle); ?> <?php echo esc_attr($borderclr); ?>;
55
+ border-radius: <?php echo esc_attr($radius); ?>;
56
+ line-height: <?php echo esc_attr($lineheight); ?>;
57
  display: inline-block;
58
  float: none !important;
59
  }
60
+ #defaultCountdown<?php echo esc_attr($id); ?> {
61
  text-align: center;
62
  }
63
+ #defaultCountdown<?php echo esc_attr($id); ?> .countdown-section .countdown-amount {
64
+ font-size: <?php echo esc_attr($size); ?>px;
65
+ color: <?php echo esc_attr($textcolor); ?>;
66
+ padding-top: <?php echo esc_attr($padding); ?>px;
67
  display: block;
68
  }
69
+ #defaultCountdown<?php echo esc_attr($id); ?> .countdown-section .countdown-period {
70
+ font-size: <?php echo esc_attr($periodsize); ?>px;
71
+ color: <?php echo esc_attr($periodcolor); ?>;
72
  }
73
  </style>
74
  <?php
render/creativelink.php CHANGED
@@ -28,100 +28,100 @@ class WPBakeryShortCode_vc_creativelink extends WPBakeryShortCode {
28
  wp_enqueue_script( 'creative-js', plugins_url( '../js/creativelink.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
29
  $content = wpb_js_remove_wpautop($content, true);
30
  ob_start(); ?>
31
- <div class="<?php echo $style; ?> creative_link_wrapper creative_link_<?php echo $some_id; ?> <?php echo $classname; ?>" style="text-align: <?php echo $align; ?>;">
32
  <?php if ($style == 'cl-effect-1' || $style == 'cl-effect-13') { ?>
33
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
34
- <?php echo $text; ?>
35
  </a>
36
  <?php } ?>
37
 
38
  <?php if ($style == 'cl-effect-2') { ?>
39
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
40
- <span class="creativelink" data-hover="<?php echo $text; ?>" style="background: <?php echo $bgclr; ?>;">
41
- <span class="creativelink-" style="background: <?php echo $hoverbg; ?>;"><?php echo $text; ?></span>
42
- <?php echo $text; ?>
43
  </span>
44
  </a>
45
  <?php } ?>
46
 
47
  <?php if ($style == 'cl-effect-5') { ?>
48
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
49
  <span class="creativelink">
50
- <span class="creativelink-"><?php echo $text; ?></span>
51
- <?php echo $text; ?>
52
  </span>
53
  </a>
54
  <?php } ?>
55
 
56
  <?php if ($style == 'cl-effect-3' || $style == 'cl-effect-4') { ?>
57
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
58
- <?php echo $text; ?>
59
- <span class="creativelink" style="background: <?php echo $hoverbg; ?>;"></span>
60
  </a>
61
  <?php } ?>
62
 
63
  <?php if ($style == 'cl-effect-6' || $style == 'cl-effect-7' || $style == 'cl-effect-14' || $style == 'cl-effect-18' || $style == 'cl-effect-21') { ?>
64
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="Umbrella" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
65
- <span class="creativelink" style="background: <?php echo $bgclr; ?>;"></span>
66
- <?php echo $text; ?>
67
- <span class="creativelink-" style="background: <?php echo $bgclr; ?>;"></span>
68
  </a>
69
  <?php } ?>
70
 
71
  <?php if ($style == 'cl-effect-8') { ?>
72
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
73
- <span class="creativelink" style="border: 3px solid <?php echo $bgclr; ?>;"></span>
74
- <?php echo $text; ?>
75
- <span class="creativelink-" style="border-color: <?php echo $hoverbg; ?>;"></span>
76
  </a>
77
  <?php } ?>
78
 
79
  <?php if ($style == 'cl-effect-10') { ?>
80
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="<?php echo $text; ?>" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
81
- <span class="creativelink" style="background: <?php echo $hoverbg; ?>;color: <?php echo $hoverclr; ?>;"><?php echo $text; ?></span>
82
- <span class="creativelink-" style="background: <?php echo $bgclr; ?>;"><?php echo $text; ?></span>
83
  </a>
84
  <?php } ?>
85
 
86
  <?php if ($style == 'cl-effect-11') { ?>
87
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="<?php echo $text; ?>" style="color: <?php echo $clr; ?>; border-top: 2px solid transparent; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
88
- <span class="creativelink" style="border-bottom: 2px solid <?php echo $hoverclr; ?>;color: <?php echo $hoverclr; ?>;"><?php echo $text; ?></span>
89
- <?php echo $text; ?>
90
  </a>
91
  <?php } ?>
92
 
93
  <?php if ($style == 'cl-effect-15') { ?>
94
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="<?php echo $text; ?>" style="color: <?php echo $hoverclr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
95
- <span class="creativelink" style="color: <?php echo $clr; ?>;"><?php echo $text; ?></span>
96
- <?php echo $text; ?>
97
  </a>
98
  <?php } ?>
99
 
100
  <?php if ($style == 'cl-effect-16') { ?>
101
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="<?php echo $text; ?>" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
102
- <span class="creativelink" style="color: <?php echo $hoverclr; ?>;"><?php echo $text; ?></span>
103
- <?php echo $text; ?>
104
  </a>
105
  <?php } ?>
106
 
107
  <?php if ($style == 'cl-effect-19' || $style == 'cl-effect-20') { ?>
108
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px; text-transform: <?php echo $transform ?>;">
109
- <span data-hover="<?php echo $text; ?>" class="creativelink" style="background: <?php echo $bgclr; ?>;">
110
- <span class="creativelink-" style="background: <?php echo $hoverbg; ?>;color: <?php echo $hoverclr; ?>;"><?php echo $text; ?></span>
111
- <?php echo $text; ?>
112
  </span>
113
  </a>
114
  <?php } ?>
115
  </div>
116
 
117
  <style>
118
- .creative_link_<?php echo $some_id; ?>.cl-effect-13 a:hover::before, .creative_link_<?php echo $some_id; ?>.cl-effect-13 a:focus::before {
119
- color: <?php echo $clr; ?> !important;
120
- text-shadow: 10px 0 <?php echo $clr; ?>, -10px 0 <?php echo $clr; ?> !important;
121
  }
122
  @media only screen and (max-width: 480px) {
123
- .creative_link_<?php echo $some_id; ?> a {
124
- font-size: <?php echo $text_mblsize; ?>px !important;
125
  }
126
  }
127
  </style>
28
  wp_enqueue_script( 'creative-js', plugins_url( '../js/creativelink.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
29
  $content = wpb_js_remove_wpautop($content, true);
30
  ob_start(); ?>
31
+ <div class="<?php echo esc_attr($style); ?> creative_link_wrapper creative_link_<?php echo esc_attr($some_id); ?> <?php echo esc_attr($classname); ?>" style="text-align: <?php echo esc_attr($align); ?>;">
32
  <?php if ($style == 'cl-effect-1' || $style == 'cl-effect-13') { ?>
33
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
34
+ <?php echo esc_attr($text); ?>
35
  </a>
36
  <?php } ?>
37
 
38
  <?php if ($style == 'cl-effect-2') { ?>
39
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
40
+ <span class="creativelink" data-hover="<?php echo esc_attr($text); ?>" style="background: <?php echo esc_attr($bgclr); ?>;">
41
+ <span class="creativelink-" style="background: <?php echo esc_attr($hoverbg); ?>;"><?php echo esc_attr($text); ?></span>
42
+ <?php echo esc_attr($text); ?>
43
  </span>
44
  </a>
45
  <?php } ?>
46
 
47
  <?php if ($style == 'cl-effect-5') { ?>
48
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
49
  <span class="creativelink">
50
+ <span class="creativelink-"><?php echo esc_attr($text); ?></span>
51
+ <?php echo esc_attr($text); ?>
52
  </span>
53
  </a>
54
  <?php } ?>
55
 
56
  <?php if ($style == 'cl-effect-3' || $style == 'cl-effect-4') { ?>
57
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
58
+ <?php echo esc_attr($text); ?>
59
+ <span class="creativelink" style="background: <?php echo esc_attr($hoverbg); ?>;"></span>
60
  </a>
61
  <?php } ?>
62
 
63
  <?php if ($style == 'cl-effect-6' || $style == 'cl-effect-7' || $style == 'cl-effect-14' || $style == 'cl-effect-18' || $style == 'cl-effect-21') { ?>
64
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="Umbrella" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
65
+ <span class="creativelink" style="background: <?php echo esc_attr($bgclr); ?>;"></span>
66
+ <?php echo esc_attr($text); ?>
67
+ <span class="creativelink-" style="background: <?php echo esc_attr($bgclr); ?>;"></span>
68
  </a>
69
  <?php } ?>
70
 
71
  <?php if ($style == 'cl-effect-8') { ?>
72
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
73
+ <span class="creativelink" style="border: 3px solid <?php echo esc_attr($bgclr); ?>;"></span>
74
+ <?php echo esc_attr($text); ?>
75
+ <span class="creativelink-" style="border-color: <?php echo esc_attr($hoverbg); ?>;"></span>
76
  </a>
77
  <?php } ?>
78
 
79
  <?php if ($style == 'cl-effect-10') { ?>
80
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="<?php echo esc_attr($text); ?>" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
81
+ <span class="creativelink" style="background: <?php echo esc_attr($hoverbg); ?>;color: <?php echo esc_attr($hoverclr); ?>;"><?php echo esc_attr($text); ?></span>
82
+ <span class="creativelink-" style="background: <?php echo esc_attr($bgclr); ?>;"><?php echo esc_attr($text); ?></span>
83
  </a>
84
  <?php } ?>
85
 
86
  <?php if ($style == 'cl-effect-11') { ?>
87
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="<?php echo esc_attr($text); ?>" style="color: <?php echo esc_attr($clr); ?>; border-top: 2px solid transparent; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
88
+ <span class="creativelink" style="border-bottom: 2px solid <?php echo esc_attr($hoverclr); ?>;color: <?php echo esc_attr($hoverclr); ?>;"><?php echo esc_attr($text); ?></span>
89
+ <?php echo esc_attr($text); ?>
90
  </a>
91
  <?php } ?>
92
 
93
  <?php if ($style == 'cl-effect-15') { ?>
94
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="<?php echo esc_attr($text); ?>" style="color: <?php echo esc_attr($hoverclr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
95
+ <span class="creativelink" style="color: <?php echo esc_attr($clr); ?>;"><?php echo esc_attr($text); ?></span>
96
+ <?php echo esc_attr($text); ?>
97
  </a>
98
  <?php } ?>
99
 
100
  <?php if ($style == 'cl-effect-16') { ?>
101
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" data-hover="<?php echo esc_attr($text); ?>" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
102
+ <span class="creativelink" style="color: <?php echo esc_attr($hoverclr); ?>;"><?php echo esc_attr($text); ?></span>
103
+ <?php echo esc_attr($text); ?>
104
  </a>
105
  <?php } ?>
106
 
107
  <?php if ($style == 'cl-effect-19' || $style == 'cl-effect-20') { ?>
108
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px; text-transform: <?php echo esc_attr($transform) ?>;">
109
+ <span data-hover="<?php echo esc_attr($text); ?>" class="creativelink" style="background: <?php echo esc_attr($bgclr); ?>;">
110
+ <span class="creativelink-" style="background: <?php echo esc_attr($hoverbg); ?>;color: <?php echo esc_attr($hoverclr); ?>;"><?php echo esc_attr($text); ?></span>
111
+ <?php echo esc_attr($text); ?>
112
  </span>
113
  </a>
114
  <?php } ?>
115
  </div>
116
 
117
  <style>
118
+ .creative_link_<?php echo esc_attr($some_id); ?>.cl-effect-13 a:hover::before, .creative_link_<?php echo esc_attr($some_id); ?>.cl-effect-13 a:focus::before {
119
+ color: <?php echo esc_attr($clr); ?> !important;
120
+ text-shadow: 10px 0 <?php echo esc_attr($clr); ?>, -10px 0 <?php echo esc_attr($clr); ?> !important;
121
  }
122
  @media only screen and (max-width: 480px) {
123
+ .creative_link_<?php echo esc_attr($some_id); ?> a {
124
+ font-size: <?php echo esc_attr($text_mblsize); ?>px !important;
125
  }
126
  }
127
  </style>
render/filterablegallery_wrap.php CHANGED
@@ -45,17 +45,17 @@ class WPBakeryShortCode_filter_gallery_wrap extends WPBakeryShortCodesContainer
45
  wp_enqueue_script( 'fancybox-js', plugins_url( '../js/jquery.fancybox.min.js' , __FILE__ ), array('jquery'));
46
  ob_start(); ?>
47
  <div class="maw_portfolioGallery_container">
48
- <div class="controls FilterGalleryUL_<?php echo $randomPort_id; ?>">
49
- <ul class="maw_portfolioGallery_ul" style="margin-bottom: <?php echo $categ_bmargin ?>px;">
50
  <?php if ($all_label != "") { ?>
51
  <li class="control" data-filter="all"
52
- style="padding: <?php echo $categ_tbpadding ?>px <?php echo $categ_rlpadding ?>px;
53
- margin: 0 <?php echo $categ_rlmargin ?>px;
54
- font-size: <?php echo $categ_textsize ?>px; color: <?php echo $categ_textclr ?>; background: <?php echo $categ_textbg ?>;
55
- border: <?php echo $categ_borderwidth ?>px <?php echo $categ_borderstyle ?> <?php echo $categ_borderclr ?>;
56
- border-radius: <?php echo $categ_radius ?>px;
57
  ">
58
- <?php echo $all_label ?>
59
  </li>
60
  <?php } ?>
61
  <?php
@@ -63,44 +63,44 @@ class WPBakeryShortCode_filter_gallery_wrap extends WPBakeryShortCodesContainer
63
  $filterCategory = array_map('trim', explode(',', $filter_cat));
64
  foreach ($filterCategory as $categ) {
65
  $categremovespace = str_replace(' ', '', $categ); ?>
66
- <li class="control" data-filter=".maw-fg-<?php echo $categremovespace ?>"
67
- style="padding: <?php echo $categ_tbpadding ?>px <?php echo $categ_rlpadding ?>px;
68
- margin: 0 <?php echo $categ_rlmargin ?>px;
69
- font-size: <?php echo $categ_textsize ?>px; color: <?php echo $categ_textclr ?>; background: <?php echo $categ_textbg ?>;
70
- border: <?php echo $categ_borderwidth ?>px <?php echo $categ_borderstyle ?> <?php echo $categ_borderclr ?>;
71
- border-radius: <?php echo $categ_radius ?>px;
72
  ">
73
- <?php echo $categ ?>
74
  </li>
75
  <?php }
76
  } ?>
77
  </ul>
78
  </div>
79
 
80
- <div class="maw_portfolioGallery_wrapper maw_portfolioGallery_wrap<?php echo $randomPort_id; ?>">
81
  <?php echo $content; ?>
82
  </div>
83
  </div>
84
  <style>
85
- .FilterGalleryUL_<?php echo $randomPort_id; ?> .mixitup-control-active{
86
- color: <?php echo $categ_activeclr; ?> !important;
87
- background: <?php echo $categ_activebg; ?> !important;
88
  }
89
- .maw_portfolioGallery_wrapper .mix-<?php echo $randomPort_id ?>{
90
  display: inline-block;
91
  vertical-align: top;
92
  }
93
- .maw_portfolioGallery_wrapper .mix-<?php echo $randomPort_id ?> {
94
- width: calc(100%/<?php echo $columns; ?> - (((<?php echo $columns; ?> - 1) * 1rem) / <?php echo $columns; ?>)) !important;
95
  }
96
  @media screen and (max-width: 961px) {
97
- .maw_portfolioGallery_wrapper .mix-<?php echo $randomPort_id ?> {
98
- width: calc(100%/<?php echo $columnstab; ?> - (((<?php echo $columnstab; ?> - 1) * 1rem) / <?php echo $columnstab; ?>)) !important;
99
  }
100
  }
101
  @media screen and (max-width: 480px) {
102
- .maw_portfolioGallery_wrapper .mix-<?php echo $randomPort_id ?> {
103
- width: calc(100%/<?php echo $columnsmbl; ?> - (((<?php echo $columnsmbl; ?> - 1) * 1rem) / <?php echo $columnsmbl; ?>)) !important;
104
  }
105
  }
106
  <?php if ($gridstyle == 'masonry') { ?>
45
  wp_enqueue_script( 'fancybox-js', plugins_url( '../js/jquery.fancybox.min.js' , __FILE__ ), array('jquery'));
46
  ob_start(); ?>
47
  <div class="maw_portfolioGallery_container">
48
+ <div class="controls FilterGalleryUL_<?php echo esc_attr($randomPort_id); ?>">
49
+ <ul class="maw_portfolioGallery_ul" style="margin-bottom: <?php echo esc_attr($categ_bmargin) ?>px;">
50
  <?php if ($all_label != "") { ?>
51
  <li class="control" data-filter="all"
52
+ style="padding: <?php echo esc_attr($categ_tbpadding) ?>px <?php echo esc_attr($categ_rlpadding) ?>px;
53
+ margin: 0 <?php echo esc_attr($categ_rlmargin) ?>px;
54
+ font-size: <?php echo esc_attr($categ_textsize) ?>px; color: <?php echo esc_attr($categ_textclr) ?>; background: <?php echo esc_attr($categ_textbg) ?>;
55
+ border: <?php echo esc_attr($categ_borderwidth) ?>px <?php echo esc_attr($categ_borderstyle) ?> <?php echo esc_attr($categ_borderclr) ?>;
56
+ border-radius: <?php echo esc_attr($categ_radius) ?>px;
57
  ">
58
+ <?php echo esc_attr($all_label) ?>
59
  </li>
60
  <?php } ?>
61
  <?php
63
  $filterCategory = array_map('trim', explode(',', $filter_cat));
64
  foreach ($filterCategory as $categ) {
65
  $categremovespace = str_replace(' ', '', $categ); ?>
66
+ <li class="control" data-filter=".maw-fg-<?php echo esc_attr($categremovespace) ?>"
67
+ style="padding: <?php echo esc_attr($categ_tbpadding) ?>px <?php echo esc_attr($categ_rlpadding) ?>px;
68
+ margin: 0 <?php echo esc_attr($categ_rlmargin) ?>px;
69
+ font-size: <?php echo esc_attr($categ_textsize) ?>px; color: <?php echo esc_attr($categ_textclr) ?>; background: <?php echo esc_attr($categ_textbg) ?>;
70
+ border: <?php echo esc_attr($categ_borderwidth) ?>px <?php echo esc_attr($categ_borderstyle) ?> <?php echo esc_attr($categ_borderclr) ?>;
71
+ border-radius: <?php echo esc_attr($categ_radius) ?>px;
72
  ">
73
+ <?php echo esc_attr($categ) ?>
74
  </li>
75
  <?php }
76
  } ?>
77
  </ul>
78
  </div>
79
 
80
+ <div class="maw_portfolioGallery_wrapper maw_portfolioGallery_wrap<?php echo esc_attr($randomPort_id); ?>">
81
  <?php echo $content; ?>
82
  </div>
83
  </div>
84
  <style>
85
+ .FilterGalleryUL_<?php echo esc_attr($randomPort_id); ?> .mixitup-control-active{
86
+ color: <?php echo esc_attr($categ_activeclr); ?> !important;
87
+ background: <?php echo esc_attr($categ_activebg); ?> !important;
88
  }
89
+ .maw_portfolioGallery_wrapper .mix-<?php echo esc_attr($randomPort_id) ?>{
90
  display: inline-block;
91
  vertical-align: top;
92
  }
93
+ .maw_portfolioGallery_wrapper .mix-<?php echo esc_attr($randomPort_id) ?> {
94
+ width: calc(100%/<?php echo esc_attr($columns); ?> - (((<?php echo esc_attr($columns); ?> - 1) * 1rem) / <?php echo esc_attr($columns); ?>)) !important;
95
  }
96
  @media screen and (max-width: 961px) {
97
+ .maw_portfolioGallery_wrapper .mix-<?php echo esc_attr($randomPort_id) ?> {
98
+ width: calc(100%/<?php echo esc_attr($columnstab); ?> - (((<?php echo esc_attr($columnstab); ?> - 1) * 1rem) / <?php echo esc_attr($columnstab); ?>)) !important;
99
  }
100
  }
101
  @media screen and (max-width: 480px) {
102
+ .maw_portfolioGallery_wrapper .mix-<?php echo esc_attr($randomPort_id) ?> {
103
+ width: calc(100%/<?php echo esc_attr($columnsmbl); ?> - (((<?php echo esc_attr($columnsmbl); ?> - 1) * 1rem) / <?php echo esc_attr($columnsmbl); ?>)) !important;
104
  }
105
  }
106
  <?php if ($gridstyle == 'masonry') { ?>
render/filtergallery.php CHANGED
@@ -28,31 +28,33 @@ class WPBakeryShortCode_filter_gallery_son extends WPBakeryShortCode {
28
  $image_url = wp_get_attachment_url( $image_id );
29
  }
30
  $content = wpb_js_remove_wpautop($content, true);
 
 
31
  ob_start();
32
  global $maw_filtergal_effect; global $maw_filtergal_linkicon; global $maw_filtergal_popupicon; global $maw_filtergal_imgheight; global $maw_filtergal_Gid;
33
  ?>
34
 
35
  <?php $controlremovespace = str_replace(' ', '', $controlname); ?>
36
- <div class="mix maw-fg-<?php echo $controlremovespace; ?> mix-<?php echo $maw_filtergal_Gid ?>">
37
  <div class="maw_portfolioGallery_ihe">
38
- <div class="<?php echo $maw_filtergal_effect ?> <?php echo $css_class; ?>" style="height: <?php echo $maw_filtergal_imgheight; ?>px;">
39
  <div class="a-tag">
40
  <div class="img" style="display: flex;">
41
- <img src="<?php echo $image_url; ?>" alt="<?php echo $image_url; ?>" style="height: <?php echo $maw_filtergal_imgheight; ?>px; max-width: 100%;">
42
  </div>
43
- <div class="info" style="background-color: <?php echo $caption_bg ?>;">
44
  <div style="display:table;width:100%;height:100%;">
45
  <div style="display: table-cell !important;vertical-align: middle !important;">
46
  <?php echo $content; ?>
47
  <?php if ($popup == 'image') { ?>
48
- <a href="<?php echo $image_url; ?>" class="ihe-fancybox" data-fancybox="images" data-<?php echo $caption_in_popup; ?>="<?php echo wp_strip_all_tags ($content); ?>" style="margin-right: <?php echo $icon_margin ?>px;">
49
- <i class="<?php echo $maw_filtergal_popupicon; ?> portfolio_icon" style="width: <?php echo $icon_width ?>px; height: <?php echo $icon_width ?>px; line-height: <?php echo $icon_width ?>px; border-radius: <?php echo $icon_border ?>px; color: <?php echo $iconclr ?>; background: <?php echo $iconbg ?>; font-size: <?php echo $icon_size; ?>px;"></i>
50
  </a>
51
  <?php } ?>
52
 
53
  <?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
54
  <a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>">
55
- <i class="<?php echo $maw_filtergal_linkicon; ?> portfolio_icon" style="width: <?php echo $icon_width ?>px; height: <?php echo $icon_width ?>px; line-height: <?php echo $icon_width ?>px; border-radius: <?php echo $icon_border ?>px; color: <?php echo $iconclr ?>; background: <?php echo $iconbg ?>; font-size: <?php echo $icon_size; ?>px;"></i>
56
  </a>
57
  <?php } ?>
58
  </div>
28
  $image_url = wp_get_attachment_url( $image_id );
29
  }
30
  $content = wpb_js_remove_wpautop($content, true);
31
+ $content = str_replace("<script>","&#60;script&#62;",$content);
32
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
33
  ob_start();
34
  global $maw_filtergal_effect; global $maw_filtergal_linkicon; global $maw_filtergal_popupicon; global $maw_filtergal_imgheight; global $maw_filtergal_Gid;
35
  ?>
36
 
37
  <?php $controlremovespace = str_replace(' ', '', $controlname); ?>
38
+ <div class="mix maw-fg-<?php echo esc_attr($controlremovespace); ?> mix-<?php echo esc_attr($maw_filtergal_Gid) ?>">
39
  <div class="maw_portfolioGallery_ihe">
40
+ <div class="<?php echo esc_attr($maw_filtergal_effect) ?> <?php echo esc_attr($css_class); ?>" style="height: <?php echo esc_attr($maw_filtergal_imgheight); ?>px;">
41
  <div class="a-tag">
42
  <div class="img" style="display: flex;">
43
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_url); ?>" style="height: <?php echo esc_attr($maw_filtergal_imgheight); ?>px; max-width: 100%;">
44
  </div>
45
+ <div class="info" style="background-color: <?php echo esc_attr($caption_bg) ?>;">
46
  <div style="display:table;width:100%;height:100%;">
47
  <div style="display: table-cell !important;vertical-align: middle !important;">
48
  <?php echo $content; ?>
49
  <?php if ($popup == 'image') { ?>
50
+ <a href="<?php echo esc_attr($image_url); ?>" class="ihe-fancybox" data-fancybox="images" data-<?php echo esc_attr($caption_in_popup); ?>="<?php echo wp_strip_all_tags ($content); ?>" style="margin-right: <?php echo esc_attr($icon_margin) ?>px;">
51
+ <i class="<?php echo esc_attr($maw_filtergal_popupicon); ?> portfolio_icon" style="width: <?php echo esc_attr($icon_width) ?>px; height: <?php echo esc_attr($icon_width) ?>px; line-height: <?php echo esc_attr($icon_width) ?>px; border-radius: <?php echo esc_attr($icon_border) ?>px; color: <?php echo esc_attr($iconclr) ?>; background: <?php echo esc_attr($iconbg) ?>; font-size: <?php echo esc_attr($icon_size); ?>px;"></i>
52
  </a>
53
  <?php } ?>
54
 
55
  <?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
56
  <a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>">
57
+ <i class="<?php echo esc_attr($maw_filtergal_linkicon); ?> portfolio_icon" style="width: <?php echo esc_attr($icon_width) ?>px; height: <?php echo esc_attr($icon_width) ?>px; line-height: <?php echo esc_attr($icon_width) ?>px; border-radius: <?php echo esc_attr($icon_border) ?>px; color: <?php echo esc_attr($iconclr) ?>; background: <?php echo esc_attr($iconbg) ?>; font-size: <?php echo esc_attr($icon_size); ?>px;"></i>
58
  </a>
59
  <?php } ?>
60
  </div>
render/flipbox.php CHANGED
@@ -47,36 +47,38 @@ class WPBakeryShortCode_mvc_flip_box extends WPBakeryShortCode {
47
  $some_id = rand(5, 500);
48
  wp_enqueue_style( 'flip-box-css', plugins_url( '../css/flipbox.css' , __FILE__ ));
49
  $content = wpb_js_remove_wpautop($content, true);
 
 
50
  ob_start(); ?>
51
 
52
  <?php if ($style == 'vertical') { ?>
53
- <div class="hover vc-ihe-panel <?php echo $class; ?>" id="vc-flip-box-<?php echo $some_id; ?>" style="height: <?php echo $height; ?>px;">
54
- <div class="front" style="background: <?php echo $front_bg; ?>;">
55
  <div style="display:table;width:100%;height:100%;">
56
- <div class="pad" style="display: table-cell !important;vertical-align: middle !important; border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $border_clr; ?>;">
57
  <?php if ($info_opt == 'show_image') { ?>
58
- <img class="" src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="border-radius: <?php echo $radius; ?>; width: <?php echo $image_size; ?>px;">
59
  <?php } ?>
60
  <?php if ($info_opt == 'show_icon') { ?>
61
- <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_color; ?>;"></i>
62
  <?php } ?>
63
- <h4 class="flip-box-title" style="color: <?php echo $color; ?>; font-size: <?php echo $size; ?>px; line-height: <?php echo $lineheight; ?>;">
64
- <?php echo $title; ?>
65
  </h4>
66
- <p class="flip-box-desc" style="color: <?php echo $descrcolor; ?>; font-size: <?php echo $descrsize; ?>px;">
67
- <?php echo $desc; ?>
68
  </p>
69
  </div>
70
  </div>
71
  </div>
72
- <div class="back" style="background: <?php echo $bgcolor; ?>">
73
  <div style="display:table;width:100%;height:100%;">
74
  <div class="pad" style="display: table-cell !important;vertical-align: middle !important; padding: 10px;">
75
  <?php echo $content; ?>
76
  <p style="text-align: center;">
77
  <?php if (!empty($url_txt)) { ?>
78
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn" style="color: <?php echo $url_clr; ?>; background: <?php echo $url_bg; ?>;">
79
- <?php echo $url_txt; ?>
80
  </a>
81
  <?php } ?>
82
  </p>
@@ -87,34 +89,34 @@ class WPBakeryShortCode_mvc_flip_box extends WPBakeryShortCode {
87
  <?php } ?>
88
 
89
  <?php if ($style == 'horizental') { ?>
90
- <div class="hover vc-ihe-panel <?php echo $class; ?>" id="vc-flip-box-<?php echo $some_id; ?>" style="height: <?php echo $height; ?>px;">
91
- <div class="front1" style="background: <?php echo $front_bg; ?>;">
92
  <div style="display:table;width:100%;height:100%;">
93
- <div class="pad" style="display: table-cell !important;vertical-align: middle !important; border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $border_clr; ?>;">
94
  <?php if ($info_opt == 'show_image') { ?>
95
- <img class="" src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="border-radius: <?php echo $radius; ?>; width: <?php echo $image_size; ?>px;">
96
  <?php } ?>
97
  <?php if ($info_opt == 'show_icon') { ?>
98
- <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_color; ?>;"></i>
99
  <?php } ?>
100
- <h4 class="flip-box-title" style="color: <?php echo $color; ?>; font-size: <?php echo $size; ?>px; line-height: <?php echo $lineheight; ?>;">
101
- <?php echo $title; ?>
102
  </h4>
103
- <p class="flip-box-desc" style="color: <?php echo $descrcolor; ?>; font-size: <?php echo $descrsize; ?>px;">
104
- <?php echo $desc; ?>
105
  </p>
106
  </div>
107
  </div>
108
 
109
  </div>
110
- <div class="back1" style="background: <?php echo $bgcolor; ?>">
111
  <div style="display:table;width:100%;height:100%;">
112
  <div class="pad" style="display: table-cell !important;vertical-align: middle !important; padding: 10px;">
113
  <?php echo $content; ?>
114
  <p style="text-align: center;">
115
  <?php if (!empty($url_txt)) { ?>
116
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn" style="color: <?php echo $url_clr; ?>; background: <?php echo $url_bg; ?>;">
117
- <?php echo $url_txt; ?>
118
  </a>
119
  <?php } ?>
120
  </p>
@@ -125,37 +127,37 @@ class WPBakeryShortCode_mvc_flip_box extends WPBakeryShortCode {
125
  <?php } ?>
126
 
127
  <?php if ($style == '3d') { ?>
128
- <div id="vc-flip-box-<?php echo $some_id; ?>">
129
- <div class="flip-box-3d" style="height: <?php echo $height; ?>px;">
130
- <div class="cube <?php echo $class; ?>">
131
- <div class="active-state" style="background: <?php echo $bgcolor; ?>; height: <?php echo $height; ?>px;transform-origin: center center -<?php echo $height/2; ?>px;">
132
  <div style="display:table;width:100%;height:100%;">
133
- <div style="display: table-cell !important;vertical-align: middle !important; padding: 0 10px;">
134
  <?php echo $content; ?>
135
  <p style="text-align: center; padding-top: 4px;">
136
  <?php if (!empty($url_txt)) { ?>
137
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn" style="color: <?php echo $url_clr; ?>; background: <?php echo $url_bg; ?>;">
138
- <?php echo $url_txt; ?>
139
  </a>
140
  <?php } ?>
141
  </p>
142
  </div>
143
  </div>
144
  </div>
145
- <div class="default-state <?php echo $css_class; ?>" style="height: <?php echo $height; ?>px; transform-origin: center center -<?php echo $height/2; ?>px; background: <?php echo $front_bg; ?>;">
146
  <div style="display:table;width:100%;height:100%;">
147
- <div style="display: table-cell !important;vertical-align: middle !important; border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $border_clr; ?>; padding: 0 10px;">
148
  <?php if ($info_opt == 'show_image') { ?>
149
- <img class="" src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" width="<?php echo $image_size; ?>px" style="border-radius: <?php echo $radius; ?>;">
150
  <?php } ?>
151
  <?php if ($info_opt == 'show_icon') { ?>
152
- <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_color; ?>;"></i>
153
  <?php } ?>
154
- <h4 class="flip-box-title" style="color: <?php echo $color; ?>; font-size: <?php echo $size; ?>px; line-height: <?php echo $lineheight; ?>;">
155
- <?php echo $title; ?>
156
  </h4>
157
- <p class="flip-box-desc" style="color: <?php echo $descrcolor; ?>; font-size: <?php echo $descrsize; ?>px;">
158
- <?php echo $desc; ?>
159
  </p>
160
  </div>
161
  </div>
@@ -167,17 +169,17 @@ class WPBakeryShortCode_mvc_flip_box extends WPBakeryShortCode {
167
 
168
  <style>
169
  @media only screen and (max-width: 480px) {
170
- #vc-flip-box-<?php echo $some_id; ?> .flip-box-title {
171
- font-size: <?php echo $titlesizembl; ?>px !important;
172
  }
173
- #vc-flip-box-<?php echo $some_id; ?> .flip-box-desc {
174
- font-size: <?php echo $descsizmbl; ?>px !important;
175
  }
176
- #vc-flip-box-<?php echo $some_id; ?>.vc-ihe-panel, #vc-flip-box-<?php echo $some_id; ?> .flip-box-3d{
177
- height: <?php echo $heightmbl; ?>px !important;
178
  }
179
- #vc-flip-box-<?php echo $some_id; ?> .flip-box-3d .active-state, #vc-flip-box-<?php echo $some_id; ?> .flip-box-3d .default-state{
180
- height: <?php echo $heightmbl; ?>px !important;
181
  }
182
  }
183
  </style>
47
  $some_id = rand(5, 500);
48
  wp_enqueue_style( 'flip-box-css', plugins_url( '../css/flipbox.css' , __FILE__ ));
49
  $content = wpb_js_remove_wpautop($content, true);
50
+ $content = str_replace("<script>","&#60;script&#62;",$content);
51
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
52
  ob_start(); ?>
53
 
54
  <?php if ($style == 'vertical') { ?>
55
+ <div class="hover vc-ihe-panel <?php echo esc_attr($class); ?>" id="vc-flip-box-<?php echo esc_attr($some_id); ?>" style="height: <?php echo esc_attr($height); ?>px;">
56
+ <div class="front" style="background: <?php echo esc_attr($front_bg); ?>;">
57
  <div style="display:table;width:100%;height:100%;">
58
+ <div class="pad" style="display: table-cell !important;vertical-align: middle !important; border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($border_clr); ?>;">
59
  <?php if ($info_opt == 'show_image') { ?>
60
+ <img class="" src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="border-radius: <?php echo esc_attr($radius); ?>; width: <?php echo esc_attr($image_size); ?>px;">
61
  <?php } ?>
62
  <?php if ($info_opt == 'show_icon') { ?>
63
+ <i class="<?php echo esc_attr($font_icon); ?>" aria-hidden="true" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_color); ?>;"></i>
64
  <?php } ?>
65
+ <h4 class="flip-box-title" style="color: <?php echo esc_attr($color); ?>; font-size: <?php echo esc_attr($size); ?>px; line-height: <?php echo esc_attr($lineheight); ?>;">
66
+ <?php echo esc_attr($title); ?>
67
  </h4>
68
+ <p class="flip-box-desc" style="color: <?php echo esc_attr($descrcolor); ?>; font-size: <?php echo esc_attr($descrsize); ?>px;">
69
+ <?php echo esc_attr($desc); ?>
70
  </p>
71
  </div>
72
  </div>
73
  </div>
74
+ <div class="back" style="background: <?php echo esc_attr($bgcolor); ?>">
75
  <div style="display:table;width:100%;height:100%;">
76
  <div class="pad" style="display: table-cell !important;vertical-align: middle !important; padding: 10px;">
77
  <?php echo $content; ?>
78
  <p style="text-align: center;">
79
  <?php if (!empty($url_txt)) { ?>
80
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn" style="color: <?php echo esc_attr($url_clr); ?>; background: <?php echo esc_attr($url_bg); ?>;">
81
+ <?php echo esc_attr($url_txt); ?>
82
  </a>
83
  <?php } ?>
84
  </p>
89
  <?php } ?>
90
 
91
  <?php if ($style == 'horizental') { ?>
92
+ <div class="hover vc-ihe-panel <?php echo esc_attr($class); ?>" id="vc-flip-box-<?php echo esc_attr($some_id); ?>" style="height: <?php echo esc_attr($height); ?>px;">
93
+ <div class="front1" style="background: <?php echo esc_attr($front_bg); ?>;">
94
  <div style="display:table;width:100%;height:100%;">
95
+ <div class="pad" style="display: table-cell !important;vertical-align: middle !important; border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($border_clr); ?>;">
96
  <?php if ($info_opt == 'show_image') { ?>
97
+ <img class="" src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="border-radius: <?php echo esc_attr($radius); ?>; width: <?php echo esc_attr($image_size); ?>px;">
98
  <?php } ?>
99
  <?php if ($info_opt == 'show_icon') { ?>
100
+ <i class="<?php echo esc_attr($font_icon); ?>" aria-hidden="true" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_color); ?>;"></i>
101
  <?php } ?>
102
+ <h4 class="flip-box-title" style="color: <?php echo esc_attr($color); ?>; font-size: <?php echo esc_attr($size); ?>px; line-height: <?php echo esc_attr($lineheight); ?>;">
103
+ <?php echo esc_attr($title); ?>
104
  </h4>
105
+ <p class="flip-box-desc" style="color: <?php echo esc_attr($descrcolor); ?>; font-size: <?php echo esc_attr($descrsize); ?>px;">
106
+ <?php echo esc_attr($desc); ?>
107
  </p>
108
  </div>
109
  </div>
110
 
111
  </div>
112
+ <div class="back1" style="background: <?php echo esc_attr($bgcolor); ?>">
113
  <div style="display:table;width:100%;height:100%;">
114
  <div class="pad" style="display: table-cell !important;vertical-align: middle !important; padding: 10px;">
115
  <?php echo $content; ?>
116
  <p style="text-align: center;">
117
  <?php if (!empty($url_txt)) { ?>
118
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn" style="color: <?php echo esc_attr($url_clr); ?>; background: <?php echo esc_attr($url_bg); ?>;">
119
+ <?php echo esc_attr($url_txt); ?>
120
  </a>
121
  <?php } ?>
122
  </p>
127
  <?php } ?>
128
 
129
  <?php if ($style == '3d') { ?>
130
+ <div id="vc-flip-box-<?php echo esc_attr($some_id); ?>">
131
+ <div class="flip-box-3d" style="height: <?php echo esc_attr($height); ?>px;">
132
+ <div class="cube <?php echo esc_attr($class); ?>">
133
+ <div class="active-state" style="background: <?php echo esc_attr($bgcolor); ?>; height: <?php echo esc_attr($height); ?>px;transform-origin: center center -<?php echo esc_attr($height)/2; ?>px;">
134
  <div style="display:table;width:100%;height:100%;">
135
+ <div style="display: table-cell !important; vertical-align: middle !important; padding: 0 10px;">
136
  <?php echo $content; ?>
137
  <p style="text-align: center; padding-top: 4px;">
138
  <?php if (!empty($url_txt)) { ?>
139
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn" style="color: <?php echo esc_attr($url_clr); ?>; background: <?php echo esc_attr($url_bg); ?>;">
140
+ <?php echo esc_attr($url_txt); ?>
141
  </a>
142
  <?php } ?>
143
  </p>
144
  </div>
145
  </div>
146
  </div>
147
+ <div class="default-state <?php echo esc_attr($css_class); ?>" style="height: <?php echo esc_attr($height); ?>px; transform-origin: center center -<?php echo esc_attr($height)/2; ?>px; background: <?php echo esc_attr($front_bg); ?>;">
148
  <div style="display:table;width:100%;height:100%;">
149
+ <div style="display: table-cell !important;vertical-align: middle !important; border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($border_clr); ?>; padding: 0 10px;">
150
  <?php if ($info_opt == 'show_image') { ?>
151
+ <img class="" src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" width="<?php echo esc_attr($image_size); ?>px" style="border-radius: <?php echo esc_attr($radius); ?>;">
152
  <?php } ?>
153
  <?php if ($info_opt == 'show_icon') { ?>
154
+ <i class="<?php echo esc_attr($font_icon); ?>" aria-hidden="true" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_color); ?>;"></i>
155
  <?php } ?>
156
+ <h4 class="flip-box-title" style="color: <?php echo esc_attr($color); ?>; font-size: <?php echo esc_attr($size); ?>px; line-height: <?php echo esc_attr($lineheight); ?>;">
157
+ <?php echo esc_attr($title); ?>
158
  </h4>
159
+ <p class="flip-box-desc" style="color: <?php echo esc_attr($descrcolor); ?>; font-size: <?php echo esc_attr($descrsize); ?>px;">
160
+ <?php echo esc_attr($desc); ?>
161
  </p>
162
  </div>
163
  </div>
169
 
170
  <style>
171
  @media only screen and (max-width: 480px) {
172
+ #vc-flip-box-<?php echo esc_attr($some_id); ?> .flip-box-title {
173
+ font-size: <?php echo esc_attr($titlesizembl); ?>px !important;
174
  }
175
+ #vc-flip-box-<?php echo esc_attr($some_id); ?> .flip-box-desc {
176
+ font-size: <?php echo esc_attr($descsizmbl); ?>px !important;
177
  }
178
+ #vc-flip-box-<?php echo esc_attr($some_id); ?>.vc-ihe-panel, #vc-flip-box-<?php echo esc_attr($some_id); ?> .flip-box-3d{
179
+ height: <?php echo esc_attr($heightmbl); ?>px !important;
180
  }
181
+ #vc-flip-box-<?php echo esc_attr($some_id); ?> .flip-box-3d .active-state, #vc-flip-box-<?php echo esc_attr($some_id); ?> .flip-box-3d .default-state{
182
+ height: <?php echo esc_attr($heightmbl); ?>px !important;
183
  }
184
  }
185
  </style>
render/googletrends.php CHANGED
@@ -12,8 +12,10 @@ class WPBakeryShortCode_google_trends extends WPBakeryShortCode {
12
  ), $atts ) );
13
  $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
14
  $content = wpb_js_remove_wpautop($content, true);
 
 
15
  ob_start(); ?>
16
- <div class="mega-google-trends <?php echo $css_class; ?>">
17
  <div class="googletrend-code">
18
  <?php echo $content; ?>
19
  </div>
12
  ), $atts ) );
13
  $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
14
  $content = wpb_js_remove_wpautop($content, true);
15
+ $content = str_replace("<script>","&#60;script&#62;",$content);
16
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
17
  ob_start(); ?>
18
+ <div class="mega-google-trends <?php echo esc_attr($css_class); ?>">
19
  <div class="googletrend-code">
20
  <?php echo $content; ?>
21
  </div>
render/headings.php CHANGED
@@ -10,8 +10,8 @@ class WPBakeryShortCode_vc_headings extends WPBakeryShortCode {
10
  extract( shortcode_atts( array(
11
  'style' => 'theme1',
12
  'style2' => 'icon',
13
- 'linewidth' => '170',
14
- 'borderwidth' => '4',
15
  'borderclr' => '#000',
16
  'lineheight' => '1',
17
  'icon' => '',
@@ -22,121 +22,140 @@ class WPBakeryShortCode_vc_headings extends WPBakeryShortCode {
22
  'title' => '',
23
  'titlesize' => '22',
24
  'titleclr' => '#000',
 
25
  'use_theme_fonts' => '',
26
  'google_fonts' => 'default',
27
  'transform' => 'default',
28
  'classname' => '',
29
  ), $atts ) );
 
30
  if ($image_id != '') {
31
  $image_url = wp_get_attachment_url( $image_id );
32
  }
33
  $content = wpb_js_remove_wpautop($content, true);
 
 
34
  wp_enqueue_style( 'vc-heading-css', plugins_url( '../css/heading.css' , __FILE__ ));
35
  $atts = vc_map_get_attributes( $this->getShortcode(), $atts );
36
- $fontsData = $this->getFontsData( $atts, 'google_fonts' );
37
- $googleFontsStyles = $this->googleFontsStyles( $fontsData );
38
- $this->enqueueGoogleFonts( $fontsData );
39
- $googleallfonts = esc_attr( implode( ';', $googleFontsStyles ) );
 
 
 
 
 
 
 
40
  ob_start(); ?>
41
- <div class="mega-line-container <?php echo $classname; ?>">
42
  <?php if ($style == 'theme1') { ?>
43
- <div class="mega-line-top" style="text-align: <?php echo $align; ?>;">
44
- <span style="width: <?php echo $linewidth; ?>px; border-top: <?php echo $borderwidth; ?>px solid <?php echo $borderclr; ?>;"></span>
45
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; line-height: <?php echo $lineheight; ?>; text-transform: <?php echo $transform ?>; <?php echo $googleallfonts; ?>;">
46
- <?php echo $title; ?>
 
47
  </h2>
48
- <div>
49
  <?php echo $content ?>
50
  </div>
51
- </div>
52
  <?php } ?>
53
 
54
  <?php if ($style == 'theme2') { ?>
55
- <div class="mega-line-center" style="text-align: <?php echo $align; ?>;">
56
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; text-transform: <?php echo $transform ?>; <?php echo $googleallfonts; ?>;">
57
- <?php echo $title; ?>
58
  </h2>
59
- <div style="line-height: <?php echo $lineheight; ?>;">
60
- <span style="width: <?php echo $linewidth; ?>px; border-top: <?php echo $borderwidth; ?>px solid <?php echo $borderclr; ?>;"></span>
61
  </div>
62
- <div>
63
  <?php echo $content ?>
64
  </div>
65
  </div>
66
  <?php } ?>
67
 
68
  <?php if ($style == 'theme3') { ?>
69
- <div class="mega-line-bottom" style="text-align: <?php echo $align; ?>;">
70
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; text-transform: <?php echo $transform ?>; <?php echo $googleallfonts; ?>;">
71
- <?php echo $title; ?>
72
  </h2>
73
- <div style="line-height: <?php echo $lineheight; ?>;">
74
  <?php echo $content ?>
75
  </div>
76
- <span style="width: <?php echo $linewidth; ?>px; border-top: <?php echo $borderwidth; ?>px solid <?php echo $borderclr; ?>;"></span>
77
  </div>
78
  <?php } ?>
79
 
80
  <?php if ($style == 'theme4') { ?>
81
 
82
- <div class="mega-line-icon" style="text-align: <?php echo $align; ?>;">
83
- <div class="line-icon" style="text-align: <?php echo $iconalign; ?>; width: <?php echo $linewidth; ?>px; border-top: <?php echo $borderwidth; ?>px solid <?php echo $borderclr; ?>;">
84
  <?php if ($style2 == 'icon') { ?>
85
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="color: <?php echo $iconclr; ?>"></i>
86
  <?php } ?>
87
  <?php if ($style2 == 'image') { ?>
88
- <img src="<?php echo $image_url; ?>">
89
  <?php } ?>
90
  </div>
91
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; line-height: <?php echo $lineheight; ?>; margin-bottom: -15px; text-transform: <?php echo $transform ?>; <?php echo $googleallfonts; ?>;">
92
- <?php echo $title; ?>
93
  </h2>
94
- <div>
95
  <?php echo $content ?>
96
  </div>
97
  </div>
98
  <?php } ?>
99
 
100
  <?php if ($style == 'theme5') { ?>
101
- <div class="mega-line-icon" style="text-align: <?php echo $align; ?>;">
102
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; text-transform: <?php echo $transform ?>; <?php echo $googleallfonts; ?>;">
103
- <?php echo $title; ?>
104
  </h2>
105
- <div style="line-height: <?php echo $lineheight; ?>;">
106
- <div class="line-icon" style="text-align: <?php echo $iconalign; ?>; width: <?php echo $linewidth; ?>px; border-top: <?php echo $borderwidth; ?>px solid <?php echo $borderclr; ?>;">
107
  <?php if ($style2 == 'icon') { ?>
108
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="color: <?php echo $iconclr; ?>"></i>
109
  <?php } ?>
110
  <?php if ($style2 == 'image') { ?>
111
- <img src="<?php echo $image_url; ?>">
112
  <?php } ?>
113
  </div>
114
  </div>
115
- <div>
116
  <?php echo $content ?>
117
  </div>
118
  </div>
119
  <?php } ?>
120
 
121
  <?php if ($style == 'theme6') { ?>
122
- <div class="mega-line-icon" style="text-align: <?php echo $align; ?>;">
123
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; text-transform: <?php echo $transform ?>; <?php echo $googleallfonts; ?>;">
124
- <?php echo $title; ?>
125
  </h2>
126
- <div style="line-height: <?php echo $lineheight; ?>;">
127
  <?php echo $content ?>
128
  </div>
129
- <div class="line-icon" style="text-align: <?php echo $iconalign; ?>; width: <?php echo $linewidth; ?>px; border-top: <?php echo $borderwidth; ?>px solid <?php echo $borderclr; ?>;">
130
  <?php if ($style2 == 'icon') { ?>
131
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="color: <?php echo $iconclr; ?>"></i>
132
  <?php } ?>
133
  <?php if ($style2 == 'image') { ?>
134
- <img src="<?php echo $image_url; ?>">
135
  <?php } ?>
136
  </div>
137
  </div>
138
  <?php } ?>
139
  </div>
 
 
 
 
 
 
 
140
  <?php
141
  return ob_get_clean();
142
  }
@@ -155,10 +174,13 @@ class WPBakeryShortCode_vc_headings extends WPBakeryShortCode {
155
  $fontFamily = explode( ':', $fontsData['values']['font_family'] );
156
  $styles[] = 'font-family:' . $fontFamily[0];
157
  $fontStyles = explode( ':', $fontsData['values']['font_style'] );
158
- $styles[] = 'font-weight:' . $fontStyles[1];
159
- $styles[] = 'font-style:' . $fontStyles[2];
160
-
161
- return $styles;
 
 
 
162
  }
163
 
164
  protected function enqueueGoogleFonts( $fontsData ) {
@@ -189,7 +211,7 @@ vc_map( array(
189
  "type" => "dropdown",
190
  "heading" => __( 'Select Style', 'heading' ),
191
  "param_name" => "style",
192
- "description" => __('<a href="https://addons.topdigitaltrends.net/headings/" target="_blank">See Demo</a>', 'heading'),
193
  "group" => "General",
194
  "value" => array(
195
  "Simple Top Line" => "theme1",
@@ -207,7 +229,7 @@ vc_map( array(
207
  "param_name" => "linewidth",
208
  "edit_field_class" => "vc_col-sm-4",
209
  "suffix" => 'px',
210
- "value" => "170",
211
  'max' => "",
212
  "group" => "General",
213
  ),
@@ -217,7 +239,7 @@ vc_map( array(
217
  "heading" => __( 'Border Width', 'heading' ),
218
  "param_name" => "borderwidth",
219
  "edit_field_class" => "vc_col-sm-4",
220
- "value" => "4",
221
  "suffix" => 'px',
222
  "group" => "General",
223
  ),
@@ -281,7 +303,7 @@ vc_map( array(
281
  "dependency" => array('element' => "style2", 'value' => 'image'),
282
  "group" => "General",
283
  ),
284
-
285
  array(
286
  "type" => "textfield",
287
  "heading" => __( 'Extra class name', 'megaaddons' ),
@@ -290,7 +312,7 @@ vc_map( array(
290
  "group" => 'General',
291
  ),
292
 
293
- array(
294
  "type" => "vc_links",
295
  "param_name" => "caption_url",
296
  "class" => "ult_param_heading",
@@ -321,31 +343,10 @@ vc_map( array(
321
  ),
322
 
323
  array(
324
- "type" => "vc_number",
325
- "heading" => __( 'Line Height', 'heading' ),
326
- "param_name" => "lineheight",
327
- "edit_field_class" => "vc_col-sm-6",
328
- "description" => __('margin between line and headings', 'heading'),
329
- "value" => "1",
330
- "group" => "Heading",
331
- ),
332
-
333
-
334
- array(
335
- "type" => "vc_number",
336
- "heading" => __( 'Title [Font Size]', 'heading' ),
337
- "param_name" => "titlesize",
338
- "edit_field_class" => "vc_col-sm-6",
339
- "value" => "22",
340
- "suffix" => 'px',
341
- "group" => "Heading",
342
- ),
343
-
344
- array(
345
- "type" => "colorpicker",
346
- "heading" => __( 'Title Color', 'heading' ),
347
- "param_name" => "titleclr",
348
- "value" => "#000",
349
  "group" => "Heading",
350
  ),
351
 
@@ -353,8 +354,8 @@ vc_map( array(
353
  "type" => "vc_links",
354
  "param_name" => "caption_urls",
355
  "class" => "ult_param_heading",
356
- "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Typography</span>', 'ihover' ),
357
- "group" => 'Heading',
358
  ),
359
 
360
  array(
@@ -362,7 +363,7 @@ vc_map( array(
362
  "heading" => __( 'Use theme default font family?', 'creativelink' ),
363
  "param_name" => "use_theme_fonts",
364
  "description" => __( 'Use font family from the theme.', 'creativelink' ),
365
- "group" => 'Heading',
366
  "value" => array(
367
  "Yes" => "yes",
368
  )
@@ -378,7 +379,7 @@ vc_map( array(
378
  'font_style_description' => __( 'Select font styling.', 'js_composer' ),
379
  ),
380
  ),
381
- "group" => 'Heading',
382
  'weight' => 0,
383
  'dependency' => array(
384
  'element' => 'use_theme_fonts',
@@ -386,11 +387,19 @@ vc_map( array(
386
  ),
387
  ),
388
 
 
 
 
 
 
 
 
 
389
  array(
390
  "type" => "dropdown",
391
  "heading" => __( 'Transform', 'button' ),
392
  "param_name" => "transform",
393
- "group" => 'Heading',
394
  "value" => array(
395
  "Default" => "default",
396
  "Uppercase" => "uppercase",
@@ -400,14 +409,48 @@ vc_map( array(
400
  )
401
  ),
402
 
403
- // Description section
404
-
405
  array(
406
- "type" => "textarea_html",
407
- "heading" => __( 'Description', 'heading' ),
408
- "param_name" => "content",
409
- "value" => "write your detail or leave blank",
410
- "group" => "Description",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
  ),
412
  ),
413
  ) );
10
  extract( shortcode_atts( array(
11
  'style' => 'theme1',
12
  'style2' => 'icon',
13
+ 'linewidth' => '230',
14
+ 'borderwidth' => '2',
15
  'borderclr' => '#000',
16
  'lineheight' => '1',
17
  'icon' => '',
22
  'title' => '',
23
  'titlesize' => '22',
24
  'titleclr' => '#000',
25
+ 'desc_size' => '',
26
  'use_theme_fonts' => '',
27
  'google_fonts' => 'default',
28
  'transform' => 'default',
29
  'classname' => '',
30
  ), $atts ) );
31
+ $some_id = rand(5, 500);
32
  if ($image_id != '') {
33
  $image_url = wp_get_attachment_url( $image_id );
34
  }
35
  $content = wpb_js_remove_wpautop($content, true);
36
+ $content = str_replace("<script>","&#60;script&#62;",$content);
37
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
38
  wp_enqueue_style( 'vc-heading-css', plugins_url( '../css/heading.css' , __FILE__ ));
39
  $atts = vc_map_get_attributes( $this->getShortcode(), $atts );
40
+ $googleallfonts = "";
41
+ if($google_fonts != "default"){
42
+ $fontsData = $this->getFontsData( $atts, 'google_fonts' );
43
+ $googleFontsStyles = $this->googleFontsStyles( $fontsData );
44
+ $this->enqueueGoogleFonts( $fontsData );
45
+ if (empty($googleFontsStyles) == false){
46
+ $googleallfonts = esc_attr( implode( ';', $googleFontsStyles ) );
47
+ } else {
48
+ $googleallfonts = $googleFontsStyles;
49
+ }
50
+ }
51
  ob_start(); ?>
52
+ <div class="mega-line-container ma_heading_wrap<?php echo esc_attr($some_id) ?> <?php echo esc_attr($classname); ?>">
53
  <?php if ($style == 'theme1') { ?>
54
+ <div class="mega-line-top" style="text-align: <?php echo esc_attr($align); ?>;">
55
+ <span style="width: <?php echo esc_attr($linewidth); ?>px; border-top: <?php echo esc_attr($borderwidth); ?>px solid <?php echo esc_attr($borderclr); ?>;"></span>
56
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; line-height: <?php echo esc_attr($lineheight); ?>;
57
+ text-transform: <?php echo esc_attr($transform) ?>; <?php echo esc_attr($googleallfonts); ?>;">
58
+ <?php echo esc_attr($title); ?>
59
  </h2>
60
+ <div class="heading_desc">
61
  <?php echo $content ?>
62
  </div>
63
+ </div>
64
  <?php } ?>
65
 
66
  <?php if ($style == 'theme2') { ?>
67
+ <div class="mega-line-center" style="text-align: <?php echo esc_attr($align); ?>;">
68
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; text-transform: <?php echo esc_attr($transform) ?>; <?php echo esc_attr($googleallfonts); ?>;">
69
+ <?php echo esc_attr($title); ?>
70
  </h2>
71
+ <div style="line-height: <?php echo esc_attr($lineheight); ?>;">
72
+ <span style="width: <?php echo esc_attr($linewidth); ?>px; border-top: <?php echo esc_attr($borderwidth); ?>px solid <?php echo esc_attr($borderclr); ?>;"></span>
73
  </div>
74
+ <div class="heading_desc">
75
  <?php echo $content ?>
76
  </div>
77
  </div>
78
  <?php } ?>
79
 
80
  <?php if ($style == 'theme3') { ?>
81
+ <div class="mega-line-bottom" style="text-align: <?php echo esc_attr($align); ?>;">
82
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; text-transform: <?php echo esc_attr($transform) ?>; <?php echo esc_attr($googleallfonts); ?>;">
83
+ <?php echo esc_attr($title); ?>
84
  </h2>
85
+ <div class="heading_desc" style="line-height: <?php echo esc_attr($lineheight); ?>;">
86
  <?php echo $content ?>
87
  </div>
88
+ <span style="width: <?php echo esc_attr($linewidth); ?>px; border-top: <?php echo esc_attr($borderwidth); ?>px solid <?php echo esc_attr($borderclr); ?>;"></span>
89
  </div>
90
  <?php } ?>
91
 
92
  <?php if ($style == 'theme4') { ?>
93
 
94
+ <div class="mega-line-icon" style="text-align: <?php echo esc_attr($align); ?>;">
95
+ <div class="line-icon" style="text-align: <?php echo esc_attr($iconalign); ?>; width: <?php echo esc_attr($linewidth); ?>px; border-top: <?php echo esc_attr($borderwidth); ?>px solid <?php echo esc_attr($borderclr); ?>;">
96
  <?php if ($style2 == 'icon') { ?>
97
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true" style="color: <?php echo esc_attr($iconclr); ?>"></i>
98
  <?php } ?>
99
  <?php if ($style2 == 'image') { ?>
100
+ <img src="<?php echo esc_attr($image_url); ?>">
101
  <?php } ?>
102
  </div>
103
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; line-height: <?php echo esc_attr($lineheight); ?>; margin-bottom: -15px; text-transform: <?php echo esc_attr($transform) ?>; <?php echo esc_attr($googleallfonts); ?>;">
104
+ <?php echo esc_attr($title); ?>
105
  </h2>
106
+ <div class="heading_desc">
107
  <?php echo $content ?>
108
  </div>
109
  </div>
110
  <?php } ?>
111
 
112
  <?php if ($style == 'theme5') { ?>
113
+ <div class="mega-line-icon" style="text-align: <?php echo esc_attr($align); ?>;">
114
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; text-transform: <?php echo esc_attr($transform) ?>; <?php echo esc_attr($googleallfonts); ?>;">
115
+ <?php echo esc_attr($title); ?>
116
  </h2>
117
+ <div style="line-height: <?php echo esc_attr($lineheight); ?>;">
118
+ <div class="line-icon" style="text-align: <?php echo esc_attr($iconalign); ?>; width: <?php echo esc_attr($linewidth); ?>px; border-top: <?php echo esc_attr($borderwidth); ?>px solid <?php echo esc_attr($borderclr); ?>;">
119
  <?php if ($style2 == 'icon') { ?>
120
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true" style="color: <?php echo esc_attr($iconclr); ?>"></i>
121
  <?php } ?>
122
  <?php if ($style2 == 'image') { ?>
123
+ <img src="<?php echo esc_attr($image_url); ?>">
124
  <?php } ?>
125
  </div>
126
  </div>
127
+ <div class="heading_desc">
128
  <?php echo $content ?>
129
  </div>
130
  </div>
131
  <?php } ?>
132
 
133
  <?php if ($style == 'theme6') { ?>
134
+ <div class="mega-line-icon" style="text-align: <?php echo esc_attr($align); ?>;">
135
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; text-transform: <?php echo esc_attr($transform) ?>; <?php echo esc_attr($googleallfonts); ?>;">
136
+ <?php echo esc_attr($title); ?>
137
  </h2>
138
+ <div class="heading_desc" style="line-height: <?php echo esc_attr($lineheight); ?>;">
139
  <?php echo $content ?>
140
  </div>
141
+ <div class="line-icon" style="text-align: <?php echo esc_attr($iconalign); ?>; width: <?php echo esc_attr($linewidth); ?>px; border-top: <?php echo esc_attr($borderwidth); ?>px solid <?php echo esc_attr($borderclr); ?>;">
142
  <?php if ($style2 == 'icon') { ?>
143
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true" style="color: <?php echo esc_attr($iconclr); ?>"></i>
144
  <?php } ?>
145
  <?php if ($style2 == 'image') { ?>
146
+ <img src="<?php echo esc_attr($image_url); ?>">
147
  <?php } ?>
148
  </div>
149
  </div>
150
  <?php } ?>
151
  </div>
152
+
153
+ <style>
154
+ .ma_heading_wrap<?php echo esc_attr($some_id) ?> .heading_desc *{
155
+ font-size: <?php echo esc_attr($desc_size); ?>px;
156
+ <?php echo esc_attr($googleallfonts); ?>;
157
+ }
158
+ </style>
159
  <?php
160
  return ob_get_clean();
161
  }
174
  $fontFamily = explode( ':', $fontsData['values']['font_family'] );
175
  $styles[] = 'font-family:' . $fontFamily[0];
176
  $fontStyles = explode( ':', $fontsData['values']['font_style'] );
177
+ if(count($fontStyles)>1){
178
+ $styles[] = 'font-weight:' . $fontStyles[1];
179
+ $styles[] = 'font-style:' . $fontStyles[2];
180
+ return $styles;
181
+ } else {
182
+ return "";
183
+ }
184
  }
185
 
186
  protected function enqueueGoogleFonts( $fontsData ) {
211
  "type" => "dropdown",
212
  "heading" => __( 'Select Style', 'heading' ),
213
  "param_name" => "style",
214
+ "description" => 'click to <a href="https://addons.topdigitaltrends.net/headings/" target="_blank">See Demo</a>',
215
  "group" => "General",
216
  "value" => array(
217
  "Simple Top Line" => "theme1",
229
  "param_name" => "linewidth",
230
  "edit_field_class" => "vc_col-sm-4",
231
  "suffix" => 'px',
232
+ "value" => "230",
233
  'max' => "",
234
  "group" => "General",
235
  ),
239
  "heading" => __( 'Border Width', 'heading' ),
240
  "param_name" => "borderwidth",
241
  "edit_field_class" => "vc_col-sm-4",
242
+ "value" => "2",
243
  "suffix" => 'px',
244
  "group" => "General",
245
  ),
303
  "dependency" => array('element' => "style2", 'value' => 'image'),
304
  "group" => "General",
305
  ),
306
+
307
  array(
308
  "type" => "textfield",
309
  "heading" => __( 'Extra class name', 'megaaddons' ),
312
  "group" => 'General',
313
  ),
314
 
315
+ array(
316
  "type" => "vc_links",
317
  "param_name" => "caption_url",
318
  "class" => "ult_param_heading",
343
  ),
344
 
345
  array(
346
+ "type" => "textarea_html",
347
+ "heading" => __( 'Description', 'heading' ),
348
+ "param_name" => "content",
349
+ "value" => "write your detail or leave blank",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
350
  "group" => "Heading",
351
  ),
352
 
354
  "type" => "vc_links",
355
  "param_name" => "caption_urls",
356
  "class" => "ult_param_heading",
357
+ "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Google Fonts Option</span>', 'ihover' ),
358
+ "group" => 'Typography',
359
  ),
360
 
361
  array(
363
  "heading" => __( 'Use theme default font family?', 'creativelink' ),
364
  "param_name" => "use_theme_fonts",
365
  "description" => __( 'Use font family from the theme.', 'creativelink' ),
366
+ "group" => 'Typography',
367
  "value" => array(
368
  "Yes" => "yes",
369
  )
379
  'font_style_description' => __( 'Select font styling.', 'js_composer' ),
380
  ),
381
  ),
382
+ "group" => 'Typography',
383
  'weight' => 0,
384
  'dependency' => array(
385
  'element' => 'use_theme_fonts',
387
  ),
388
  ),
389
 
390
+ array(
391
+ "type" => "vc_links",
392
+ "param_name" => "caption_urlss",
393
+ "class" => "ult_param_heading",
394
+ "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Title Settings</span>', 'ihover' ),
395
+ "group" => 'Typography',
396
+ ),
397
+
398
  array(
399
  "type" => "dropdown",
400
  "heading" => __( 'Transform', 'button' ),
401
  "param_name" => "transform",
402
+ "group" => 'Typography',
403
  "value" => array(
404
  "Default" => "default",
405
  "Uppercase" => "uppercase",
409
  )
410
  ),
411
 
 
 
412
  array(
413
+ "type" => "vc_number",
414
+ "heading" => __( 'Line Height', 'heading' ),
415
+ "param_name" => "lineheight",
416
+ "edit_field_class" => "vc_col-sm-6",
417
+ "description" => __('margin between line and headings', 'heading'),
418
+ "value" => "1",
419
+ "group" => "Typography",
420
+ ),
421
+
422
+ array(
423
+ "type" => "vc_number",
424
+ "heading" => __( 'Title [Font Size]', 'heading' ),
425
+ "param_name" => "titlesize",
426
+ "edit_field_class" => "vc_col-sm-6",
427
+ "value" => "22",
428
+ "suffix" => 'px',
429
+ "group" => "Typography",
430
+ ),
431
+
432
+ array(
433
+ "type" => "colorpicker",
434
+ "heading" => __( 'Title Color', 'heading' ),
435
+ "param_name" => "titleclr",
436
+ "value" => "#000",
437
+ "group" => "Typography",
438
+ ),
439
+
440
+ array(
441
+ "type" => "vc_links",
442
+ "param_name" => "caption_urldesc",
443
+ "class" => "ult_param_heading",
444
+ "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Description Settings</span>', 'ihover' ),
445
+ "group" => 'Typography',
446
+ ),
447
+
448
+ array(
449
+ "type" => "vc_number",
450
+ "heading" => __( 'Description [Font Size]', 'ihover' ),
451
+ "param_name" => "desc_size",
452
+ "suffix" => 'px',
453
+ "group" => 'Typography',
454
  ),
455
  ),
456
  ) );
render/highlight_box.php CHANGED
@@ -30,39 +30,39 @@ class WPBakeryShortCode_highlight_box extends WPBakeryShortCode {
30
  wp_enqueue_style( 'highlight-box', plugins_url( '../css/highlight-box.css' , __FILE__ ));
31
  $content = wpb_js_remove_wpautop($content, true);
32
  ob_start(); ?>
33
- <div class="highlight_box_<?php echo $some_id; ?>" style="display: table; width: 100%;height: 100%;">
34
  <?php if ($style != 'fade2') { ?>
35
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_highlight_box btn-5 <?php echo $style; ?>" style="height: <?php echo $height; ?>px; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>; border-radius: <?php echo $btn_radius; ?>px;">
36
- <i class="<?php echo $icon; ?> span-before" aria-hidden="true" style="font-size: <?php echo $iconsize; ?>px; line-height: <?php echo $height; ?>px; color: <?php echo $clr; ?>;"></i>
37
  <div>
38
- <span class="text" style="font-size: <?php echo $textsize; ?>px;"><?php echo $text; ?> <br> <?php echo $text2; ?></span>
39
  </div>
40
  <span class="span-after"></span>
41
  </a>
42
  <?php } ?>
43
 
44
  <?php if ($style == 'fade2') { ?>
45
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_highlight_box btn-5 <?php echo $style; ?>" style="height: <?php echo $height; ?>px; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>; text-align: center; border-radius: <?php echo $btn_radius; ?>px;">
46
  <div>
47
- <span class="text" style="font-size: <?php echo $textsize; ?>px; line-height: <?php echo $lineheight-.5; ?>;">
48
- <?php echo $text; ?>
49
  </span>
50
  </div>
51
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="line-height: <?php echo $lineheight-1; ?>; font-size: <?php echo $iconsize; ?>px; color: <?php echo $clr; ?>;"></i>
52
  </a>
53
  <?php } ?>
54
  </div>
55
 
56
  <style>
57
- .highlight_box_<?php echo $some_id; ?> a{
58
- text-transform: <?php echo $transform ?> !important;
59
- text-decoration: <?php echo $text_decoration ?> !important;
60
- box-<?php echo $btn_shadow ?>: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
61
  }
62
- .highlight_box_<?php echo $some_id; ?> a:hover{
63
- background: <?php echo $hoverbg; ?> !important;
64
  }
65
- .highlight_box_<?php echo $some_id; ?> .fade i{
66
  display: none;
67
  }
68
  </style>
30
  wp_enqueue_style( 'highlight-box', plugins_url( '../css/highlight-box.css' , __FILE__ ));
31
  $content = wpb_js_remove_wpautop($content, true);
32
  ob_start(); ?>
33
+ <div class="highlight_box_<?php echo esc_attr($some_id); ?>" style="display: table; width: 100%;height: 100%;">
34
  <?php if ($style != 'fade2') { ?>
35
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_highlight_box btn-5 <?php echo esc_attr($style); ?>" style="height: <?php echo esc_attr($height); ?>px; color: <?php echo esc_attr($clr); ?>; background: <?php echo esc_attr($bgclr); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px;">
36
+ <i class="<?php echo esc_attr($icon); ?> span-before" aria-hidden="true" style="font-size: <?php echo esc_attr($iconsize); ?>px; line-height: <?php echo esc_attr($height); ?>px; color: <?php echo esc_attr($clr); ?>;"></i>
37
  <div>
38
+ <span class="text" style="font-size: <?php echo esc_attr($textsize); ?>px;"><?php echo esc_attr($text); ?> <br> <?php echo esc_attr($text2); ?></span>
39
  </div>
40
  <span class="span-after"></span>
41
  </a>
42
  <?php } ?>
43
 
44
  <?php if ($style == 'fade2') { ?>
45
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_highlight_box btn-5 <?php echo esc_attr($style); ?>" style="height: <?php echo esc_attr($height); ?>px; color: <?php echo esc_attr($clr); ?>; background: <?php echo esc_attr($bgclr); ?>; text-align: center; border-radius: <?php echo esc_attr($btn_radius); ?>px;">
46
  <div>
47
+ <span class="text" style="font-size: <?php echo esc_attr($textsize); ?>px; line-height: <?php echo esc_attr($lineheight)-.5; ?>;">
48
+ <?php echo esc_attr($text); ?>
49
  </span>
50
  </div>
51
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true" style="line-height: <?php echo esc_attr($lineheight)-1; ?>; font-size: <?php echo esc_attr($iconsize); ?>px; color: <?php echo esc_attr($clr); ?>;"></i>
52
  </a>
53
  <?php } ?>
54
  </div>
55
 
56
  <style>
57
+ .highlight_box_<?php echo esc_attr($some_id); ?> a{
58
+ text-transform: <?php echo esc_attr($transform) ?> !important;
59
+ text-decoration: <?php echo esc_attr($text_decoration) ?> !important;
60
+ box-<?php echo esc_attr($btn_shadow) ?>: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
61
  }
62
+ .highlight_box_<?php echo esc_attr($some_id); ?> a:hover{
63
+ background: <?php echo esc_attr($hoverbg); ?> !important;
64
  }
65
+ .highlight_box_<?php echo esc_attr($some_id); ?> .fade i{
66
  display: none;
67
  }
68
  </style>
render/hover.php CHANGED
@@ -27,20 +27,22 @@ class WPBakeryShortCode_mvc_ihe extends WPBakeryShortCode {
27
  }
28
  // wp_enqueue_style( 'pretty-photo-css', plugins_url( '../css/ihover.css' , __FILE__ ));
29
  $content = wpb_js_remove_wpautop($content);
 
 
30
  ob_start(); ?>
31
- <div class="ih-item <?php echo $hover_effect; ?>"
32
- style="border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $border_color; ?>; height: <?php echo $height; ?>px; width: <?php echo $width; ?>px;">
33
  <?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
34
- <a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>" rel="<?php echo $popup ?><?php if ($popup == 'pretty') { echo "Photo[pp_gal]"; } ?>">
35
  <?php } ?>
36
  <?php if (isset($caption_url['url']) && $caption_url['url'] == NULL) { ?>
37
  <a>
38
  <?php } ?>
39
  <div class="img">
40
- <span style="box-shadow: inset 0 0 0 <?php echo $border_width; ?>px <?php echo $border_color; ?>, 0 1px 2px rgba(0, 0, 0, .3); opacity: 0.6;"></span>
41
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="height: <?php echo $height; ?>px; width: <?php echo $width; ?>px; max-width: 100%;">
42
  </div>
43
- <div class="info" style="background-color: <?php echo $caption_bg; ?>;">
44
  <div style="display:table;width:100%;height:100%;">
45
  <div style="display: table-cell !important;vertical-align: middle !important;">
46
  <?php echo $content; ?>
27
  }
28
  // wp_enqueue_style( 'pretty-photo-css', plugins_url( '../css/ihover.css' , __FILE__ ));
29
  $content = wpb_js_remove_wpautop($content);
30
+ $content = str_replace("<script>","&#60;script&#62;",$content);
31
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
32
  ob_start(); ?>
33
+ <div class="ih-item <?php echo esc_attr($hover_effect); ?>"
34
+ style="border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($border_color); ?>; height: <?php echo esc_attr($height); ?>px; width: <?php echo esc_attr($width); ?>px;">
35
  <?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
36
+ <a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>" rel="<?php echo esc_attr($popup) ?><?php if ($popup == 'pretty') { echo "Photo[pp_gal]"; } ?>">
37
  <?php } ?>
38
  <?php if (isset($caption_url['url']) && $caption_url['url'] == NULL) { ?>
39
  <a>
40
  <?php } ?>
41
  <div class="img">
42
+ <span style="box-shadow: inset 0 0 0 <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_color); ?>, 0 1px 2px rgba(0, 0, 0, .3); opacity: 0.6;"></span>
43
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="height: <?php echo esc_attr($height); ?>px; width: <?php echo esc_attr($width); ?>px; max-width: 100%;">
44
  </div>
45
+ <div class="info" style="background-color: <?php echo esc_attr($caption_bg); ?>;">
46
  <div style="display:table;width:100%;height:100%;">
47
  <div style="display: table-cell !important;vertical-align: middle !important;">
48
  <?php echo $content; ?>
render/hoverbutton.php CHANGED
@@ -37,51 +37,51 @@ class WPBakeryShortCode_mvc_button extends WPBakeryShortCode {
37
  $content = wpb_js_remove_wpautop($content, true);
38
  ob_start(); ?>
39
 
40
- <div style="text-align: <?php echo $align; ?>;">
41
  <?php if ($btn_style == 'animated' && $anim_style == 'transition') { ?>
42
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onhoverbg="<?php echo $btn_hvrbg; ?>" data-onleavebg="<?php echo $btn_bg; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="mega_hvr_btn <?php echo $anim_trans; ?>" style="padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; border:<?php echo $border_width; ?>px solid <?php echo $btn_border; ?>; font-size: <?php echo $btn_size; ?>px; color: <?php echo $btn_clr; ?>; background-color: <?php echo $btn_bg; ?>; border-radius: <?php echo $btn_radius; ?>px">
43
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
44
  </a>
45
  <?php } ?>
46
 
47
  <!-- Background Transition -->
48
  <?php if ($btn_style == 'animated' && $anim_style == 'bg_transition') { ?>
49
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; border:<?php echo $border_width; ?>px solid <?php echo $btn_border; ?>; font-size: <?php echo $btn_size; ?>px; color: <?php echo $btn_clr; ?>; background-color: <?php echo $btn_bg; ?>; border-radius: <?php echo $btn_radius; ?>px" class="mega_hvr_btn <?php echo $bg_trans; ?>">
50
- <span style="background: <?php echo $btn_hvrbg; ?>;"></span><i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
51
  </a>
52
  <?php } ?>
53
 
54
  <!-- Border Transition -->
55
  <?php if ($btn_style == 'animated' && $anim_style == 'brdr_transition') { ?>
56
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; border:<?php echo $border_width; ?>px solid <?php echo $btn_border; ?>; font-size: <?php echo $btn_size; ?>px; color: <?php echo $btn_clr; ?>; background-color: <?php echo $btn_bg; ?>; border-radius: <?php echo $btn_radius; ?>px" class="mega_hvr_btn <?php echo $brdr_trans; ?>">
57
- <span style="background: <?php echo $btn_hvrbg; ?>;"></span><i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
58
  </a>
59
  <?php } ?>
60
 
61
  <!-- Shadow Transition -->
62
  <?php if ($btn_style == 'animated' && $anim_style == 'shadow') { ?>
63
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onhoverbg="<?php echo $btn_hvrbg; ?>" data-onleavebg="<?php echo $btn_bg; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="mega_hvr_btn <?php echo $shadow_trans; ?>" style="padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; border:<?php echo $border_width; ?>px solid <?php echo $btn_border; ?>; font-size: <?php echo $btn_size; ?>px; color: <?php echo $btn_clr; ?>; background-color: <?php echo $btn_bg; ?>; border-radius: <?php echo $btn_radius; ?>px">
64
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
65
  </a>
66
  <?php } ?>
67
 
68
  <!-- Speech Bubbles -->
69
  <?php if ($btn_style == 'animated' && $anim_style == 'speech_bubbles') { ?>
70
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="mega_hvr_btn <?php echo $bubble_trans; ?>" style="padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; border:<?php echo $border_width; ?>px solid <?php echo $btn_border; ?>; font-size: <?php echo $btn_size; ?>px; color: <?php echo $btn_clr; ?>; background-color: <?php echo $btn_bg; ?>; border-radius: <?php echo $btn_radius; ?>px">
71
  <span style="
72
- <?php echo ($bubble_trans == 'hvr-bubble-bottom' || $bubble_trans == 'hvr-bubble-float-top' || $bubble_trans == 'hvr-bubble-float-bottom') ? 'border-color: '.$btn_bg.' transparent transparent transparent;' : '' ; ?>
73
- <?php echo ($bubble_trans == 'hvr-bubble-float-right' || $bubble_trans == 'hvr-bubble-right') ? 'border-color: transparent transparent transparent '.$btn_bg.' ;' : '' ; ?>
74
- <?php echo ($bubble_trans == 'hvr-bubble-top' || $bubble_trans == 'hvr-bubble-float-top') ? 'border-color: transparent transparent '.$btn_bg.' transparent;' : '' ; ?>
75
- <?php echo ($bubble_trans == 'hvr-bubble-left' || $bubble_trans == 'hvr-bubble-float-left') ? 'border-color: transparent '.$btn_bg.' transparent transparent;' : '' ; ?>
76
- "></span><i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
77
  </a>
78
  <?php } ?>
79
 
80
 
81
  <!-- 3D button -->
82
  <?php if ($btn_style == '3D') { ?>
83
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="push_button" style="font-size: <?php echo $btn_size; ?>px; padding: <?php echo $padding_top; ?>px <?php echo $padding_left; ?>px; background: <?php echo $btn_bg; ?>; color: <?php echo $btn_clr; ?>; box-shadow: 0 0 0 1px <?php echo $btn_shadow; ?> inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 4px 0 0 <?php echo $btn_shadow; ?>, 0 8px 8px 1px rgba(0,0,0,0.5);">
84
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
85
  </a>
86
  <?php } ?>
87
  </div>
37
  $content = wpb_js_remove_wpautop($content, true);
38
  ob_start(); ?>
39
 
40
+ <div style="text-align: <?php echo esc_attr($align); ?>;">
41
  <?php if ($btn_style == 'animated' && $anim_style == 'transition') { ?>
42
+ <a data-onhovercolor="<?php echo esc_attr($btn_hvrclr); ?>" data-onhoverbg="<?php echo esc_attr($btn_hvrbg); ?>" data-onleavebg="<?php echo esc_attr($btn_bg); ?>" data-onleavecolor="<?php echo esc_attr($btn_clr); ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="mega_hvr_btn <?php echo esc_attr($anim_trans); ?>" style="padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; border:<?php echo esc_attr($border_width); ?>px solid <?php echo esc_attr($btn_border); ?>; font-size: <?php echo esc_attr($btn_size); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background-color: <?php echo esc_attr($btn_bg); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px">
43
+ <i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
44
  </a>
45
  <?php } ?>
46
 
47
  <!-- Background Transition -->
48
  <?php if ($btn_style == 'animated' && $anim_style == 'bg_transition') { ?>
49
+ <a data-onhovercolor="<?php echo esc_attr($btn_hvrclr); ?>" data-onleavecolor="<?php echo esc_attr($btn_clr); ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; border:<?php echo esc_attr($border_width); ?>px solid <?php echo esc_attr($btn_border); ?>; font-size: <?php echo esc_attr($btn_size); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background-color: <?php echo esc_attr($btn_bg); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px" class="mega_hvr_btn <?php echo esc_attr($bg_trans); ?>">
50
+ <span style="background: <?php echo esc_attr($btn_hvrbg); ?>;"></span><i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
51
  </a>
52
  <?php } ?>
53
 
54
  <!-- Border Transition -->
55
  <?php if ($btn_style == 'animated' && $anim_style == 'brdr_transition') { ?>
56
+ <a data-onhovercolor="<?php echo esc_attr($btn_hvrclr); ?>" data-onleavecolor="<?php echo esc_attr($btn_clr); ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; border:<?php echo esc_attr($border_width); ?>px solid <?php echo esc_attr($btn_border); ?>; font-size: <?php echo esc_attr($btn_size); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background-color: <?php echo esc_attr($btn_bg); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px" class="mega_hvr_btn <?php echo esc_attr($brdr_trans); ?>">
57
+ <span style="background: <?php echo esc_attr($btn_hvrbg); ?>;"></span><i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
58
  </a>
59
  <?php } ?>
60
 
61
  <!-- Shadow Transition -->
62
  <?php if ($btn_style == 'animated' && $anim_style == 'shadow') { ?>
63
+ <a data-onhovercolor="<?php echo esc_attr($btn_hvrclr); ?>" data-onhoverbg="<?php echo esc_attr($btn_hvrbg); ?>" data-onleavebg="<?php echo esc_attr($btn_bg); ?>" data-onleavecolor="<?php echo esc_attr($btn_clr); ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="mega_hvr_btn <?php echo esc_attr($shadow_trans); ?>" style="padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; border:<?php echo esc_attr($border_width); ?>px solid <?php echo esc_attr($btn_border); ?>; font-size: <?php echo esc_attr($btn_size); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background-color: <?php echo esc_attr($btn_bg); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px">
64
+ <i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
65
  </a>
66
  <?php } ?>
67
 
68
  <!-- Speech Bubbles -->
69
  <?php if ($btn_style == 'animated' && $anim_style == 'speech_bubbles') { ?>
70
+ <a data-onhovercolor="<?php echo esc_attr($btn_hvrclr); ?>" data-onleavecolor="<?php echo esc_attr($btn_clr); ?>" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="mega_hvr_btn <?php echo esc_attr($bubble_trans); ?>" style="padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; border:<?php echo esc_attr($border_width); ?>px solid <?php echo esc_attr($btn_border); ?>; font-size: <?php echo esc_attr($btn_size); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background-color: <?php echo esc_attr($btn_bg); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px">
71
  <span style="
72
+ <?php echo esc_attr(($bubble_trans) == 'hvr-bubble-bottom' || $bubble_trans == 'hvr-bubble-float-top' || $bubble_trans == 'hvr-bubble-float-bottom') ? 'border-color: '.$btn_bg.' transparent transparent transparent;' : '' ; ?>
73
+ <?php echo esc_attr(($bubble_trans) == 'hvr-bubble-float-right' || $bubble_trans == 'hvr-bubble-right') ? 'border-color: transparent transparent transparent '.$btn_bg.' ;' : '' ; ?>
74
+ <?php echo esc_attr(($bubble_trans) == 'hvr-bubble-top' || $bubble_trans == 'hvr-bubble-float-top') ? 'border-color: transparent transparent '.$btn_bg.' transparent;' : '' ; ?>
75
+ <?php echo esc_attr(($bubble_trans) == 'hvr-bubble-left' || $bubble_trans == 'hvr-bubble-float-left') ? 'border-color: transparent '.$btn_bg.' transparent transparent;' : '' ; ?>
76
+ "></span><i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
77
  </a>
78
  <?php } ?>
79
 
80
 
81
  <!-- 3D button -->
82
  <?php if ($btn_style == '3D') { ?>
83
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="push_button" style="font-size: <?php echo esc_attr($btn_size); ?>px; padding: <?php echo esc_attr($padding_top); ?>px <?php echo esc_attr($padding_left); ?>px; background: <?php echo esc_attr($btn_bg); ?>; color: <?php echo esc_attr($btn_clr); ?>; box-shadow: 0 0 0 1px <?php echo esc_attr($btn_shadow); ?> inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 4px 0 0 <?php echo esc_attr($btn_shadow); ?>, 0 8px 8px 1px rgba(0,0,0,0.5);">
84
+ <i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
85
  </a>
86
  <?php } ?>
87
  </div>
render/image_swap.php CHANGED
@@ -37,10 +37,10 @@ class WPBakeryShortCode_image_swap extends WPBakeryShortCode {
37
  ob_start(); ?>
38
 
39
 
40
- <div style="text-align: <?php echo $img_align ?>;">
41
  <div style="display: inline-block;">
42
- <div class="maw_image_swap maw_image_swap_<?php echo $img_swap_rand_id; ?> ih-item <?php echo $hover_effect; ?>"
43
- style="border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $border_color; ?>; height: <?php echo $height; ?>px; max-width: <?php echo $width; ?>px; box-shadow: none;">
44
  <?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
45
  <a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>">
46
  <?php }
@@ -48,16 +48,16 @@ class WPBakeryShortCode_image_swap extends WPBakeryShortCode {
48
  <a>
49
  <?php } ?>
50
  <div class="img">
51
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="height: <?php echo $height; ?>px; width: <?php echo $width; ?>px; max-width: 100%;">
52
  </div>
53
  <?php if ($hover_effect != 'maw_img_swap_fade') { ?>
54
  <div class="info" style="opacity: 1 !important;">
55
- <img src="<?php echo $image_url2; ?>" alt="<?php echo $alt2; ?>" style="height: <?php echo $height; ?>px; width: <?php echo $width; ?>px; max-width: 100%;">
56
  </div>
57
  <?php } ?>
58
  <?php if ($hover_effect == 'maw_img_swap_fade') { ?>
59
  <div class="info">
60
- <img src="<?php echo $image_url2; ?>" alt="<?php echo $alt2; ?>" style="height: <?php echo $height; ?>px; width: <?php echo $width; ?>px; max-width: 100%;">
61
  </div>
62
  <?php } ?>
63
  </a>
@@ -67,29 +67,29 @@ class WPBakeryShortCode_image_swap extends WPBakeryShortCode {
67
 
68
  <style>
69
  <?php if ($hover_effect != 'square effect2' && $hover_effect != 'maw_img_swap_fade') { ?>
70
- .maw_image_swap_<?php echo $img_swap_rand_id; ?>.square .info,
71
- .maw_image_swap_<?php echo $img_swap_rand_id; ?>.square .img {
72
- -webkit-transition: all <?php echo $front_anim_speed; ?>ms ease-in-out !important;
73
- -moz-transition: all <?php echo $front_anim_speed; ?>ms ease-in-out !important;
74
- transition: all <?php echo $front_anim_speed; ?>ms ease-in-out !important;
75
  }
76
  <?php } ?>
77
  <?php if ($hover_effect == 'maw_img_swap_fade' && $front_anim_speed != '') { ?>
78
  .maw_img_swap_fade .info {
79
- transition: <?php echo $front_anim_speed; ?>ms ease !important;
80
  }
81
  <?php } ?>
82
  <?php if ($img_width != '' || $img_height != '') { ?>
83
  @media only screen and (max-width: 767px) {
84
- .maw_image_swap_<?php echo $img_swap_rand_id; ?>.ih-item {
85
- max-width: <?php echo $img_width; ?>px !important;
86
  height: auto !important;
87
- height: <?php echo $img_height; ?>px !important;
88
  }
89
- .maw_image_swap_<?php echo $img_swap_rand_id; ?>.ih-item img{
90
- width: <?php echo $img_width; ?>px !important;
91
  height: auto !important;
92
- height: <?php echo $img_height; ?>px !important;
93
  }
94
  }
95
  <?php } ?>
37
  ob_start(); ?>
38
 
39
 
40
+ <div style="text-align: <?php echo esc_attr($img_align) ?>;">
41
  <div style="display: inline-block;">
42
+ <div class="maw_image_swap maw_image_swap_<?php echo esc_attr($img_swap_rand_id); ?> ih-item <?php echo esc_attr($hover_effect); ?>"
43
+ style="border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($border_color); ?>; height: <?php echo esc_attr($height); ?>px; max-width: <?php echo esc_attr($width); ?>px; box-shadow: none;">
44
  <?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
45
  <a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>">
46
  <?php }
48
  <a>
49
  <?php } ?>
50
  <div class="img">
51
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="height: <?php echo esc_attr($height); ?>px; width: <?php echo esc_attr($width); ?>px; max-width: 100%;">
52
  </div>
53
  <?php if ($hover_effect != 'maw_img_swap_fade') { ?>
54
  <div class="info" style="opacity: 1 !important;">
55
+ <img src="<?php echo esc_attr($image_url2); ?>" alt="<?php echo esc_attr($alt2); ?>" style="height: <?php echo esc_attr($height); ?>px; width: <?php echo esc_attr($width); ?>px; max-width: 100%;">
56
  </div>
57
  <?php } ?>
58
  <?php if ($hover_effect == 'maw_img_swap_fade') { ?>
59
  <div class="info">
60
+ <img src="<?php echo esc_attr($image_url2); ?>" alt="<?php echo esc_attr($alt2); ?>" style="height: <?php echo esc_attr($height); ?>px; width: <?php echo esc_attr($width); ?>px; max-width: 100%;">
61
  </div>
62
  <?php } ?>
63
  </a>
67
 
68
  <style>
69
  <?php if ($hover_effect != 'square effect2' && $hover_effect != 'maw_img_swap_fade') { ?>
70
+ .maw_image_swap_<?php echo esc_attr($img_swap_rand_id); ?>.square .info,
71
+ .maw_image_swap_<?php echo esc_attr($img_swap_rand_id); ?>.square .img {
72
+ -webkit-transition: all <?php echo esc_attr($front_anim_speed); ?>ms ease-in-out !important;
73
+ -moz-transition: all <?php echo esc_attr($front_anim_speed); ?>ms ease-in-out !important;
74
+ transition: all <?php echo esc_attr($front_anim_speed); ?>ms ease-in-out !important;
75
  }
76
  <?php } ?>
77
  <?php if ($hover_effect == 'maw_img_swap_fade' && $front_anim_speed != '') { ?>
78
  .maw_img_swap_fade .info {
79
+ transition: <?php echo esc_attr($front_anim_speed); ?>ms ease !important;
80
  }
81
  <?php } ?>
82
  <?php if ($img_width != '' || $img_height != '') { ?>
83
  @media only screen and (max-width: 767px) {
84
+ .maw_image_swap_<?php echo esc_attr($img_swap_rand_id); ?>.ih-item {
85
+ max-width: <?php echo esc_attr($img_width); ?>px !important;
86
  height: auto !important;
87
+ height: <?php echo esc_attr($img_height); ?>px !important;
88
  }
89
+ .maw_image_swap_<?php echo esc_attr($img_swap_rand_id); ?>.ih-item img{
90
+ width: <?php echo esc_attr($img_width); ?>px !important;
91
  height: auto !important;
92
+ height: <?php echo esc_attr($img_height); ?>px !important;
93
  }
94
  }
95
  <?php } ?>
render/info_circle.php CHANGED
@@ -51,111 +51,111 @@ class WPBakeryShortCode_vc_info_circle extends WPBakeryShortCode {
51
  wp_enqueue_script( 'info-circle-js', plugins_url( '../js/info-circle.js' , __FILE__ ), array('jquery'));
52
  ob_start(); ?>
53
  <div id="mega-info-circle" class="mega-info-circle" style="margin-top: 40px;">
54
- <div class="mega-outer-section" style="border: <?php echo $outer_border; ?>;">
55
- <div class="mega-inner-section" style="background: <?php echo $bgclr; ?>; width: <?php echo $width; ?>%; height: <?php echo $width; ?>%;">
56
  <div style="display: table; width: 100%; height: 100%;">
57
- <div style="display: table-cell !important; vertical-align: middle !important;" class="mega-inner-section-div <?php echo $hide_icon; ?>">
58
 
59
 
60
  </div>
61
  </div>
62
  </div>
63
 
64
- <div class="info-circle-icon icon-wrapper" style="background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;">
65
  <div>
66
  <?php if ($style == 'icon') { ?>
67
- <i class="<?php echo $icon; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
68
  <?php } ?>
69
  <?php if ($style == 'image') { ?>
70
- <img src="<?php echo $image_url; ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
71
  <?php } ?>
72
 
73
  <span class="info-circle-detail">
74
- <h3 style="font-size: <?php echo $heading_size; ?>px; color: <?php echo $captionclr; ?>;">
75
- <?php echo $heading; ?>
76
  </h3>
77
- <p style="font-size: <?php echo $desc_size; ?>px; color: <?php echo $captionclr; ?>;">
78
- <?php echo $desc; ?>
79
  </p>
80
  </span>
81
  </div>
82
  </div>
83
 
84
- <div class="info-circle-icon2 icon-wrapper" style="background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;">
85
  <div>
86
  <?php if ($style == 'icon') { ?>
87
- <i class="<?php echo $icon2; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
88
  <?php } ?>
89
  <?php if ($style == 'image') { ?>
90
- <img src="<?php echo $image_url2; ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
91
  <?php } ?>
92
 
93
  <span class="info-circle-detail">
94
- <h3 style="font-size: <?php echo $heading_size; ?>px; color: <?php echo $captionclr; ?>;">
95
- <?php echo $heading2; ?>
96
  </h3>
97
- <p style="font-size: <?php echo $desc_size; ?>px; color: <?php echo $captionclr; ?>;">
98
- <?php echo $desc2; ?>
99
  </p>
100
  </span>
101
  </div>
102
  </div>
103
 
104
- <div class="info-circle-icon3 icon-wrapper" style="background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;">
105
  <div>
106
  <?php if ($style == 'icon') { ?>
107
- <i class="<?php echo $icon3; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
108
  <?php } ?>
109
  <?php if ($style == 'image') { ?>
110
- <img src="<?php echo $image_url3; ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
111
  <?php } ?>
112
 
113
  <span class="info-circle-detail">
114
- <h3 style="font-size: <?php echo $heading_size; ?>px; color: <?php echo $captionclr; ?>;">
115
- <?php echo $heading3; ?>
116
  </h3>
117
- <p style="font-size: <?php echo $desc_size; ?>px; color: <?php echo $captionclr; ?>;">
118
- <?php echo $desc3; ?>
119
  </p>
120
  </span>
121
  </div>
122
  </div>
123
 
124
- <div class="info-circle-icon4 icon-wrapper" style="background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;">
125
  <div>
126
  <?php if ($style == 'icon') { ?>
127
- <i class="<?php echo $icon4; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
128
  <?php } ?>
129
  <?php if ($style == 'image') { ?>
130
- <img src="<?php echo $image_url4; ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
131
  <?php } ?>
132
 
133
  <span class="info-circle-detail">
134
- <h3 style="font-size: <?php echo $heading_size; ?>px; color: <?php echo $captionclr; ?>;">
135
- <?php echo $heading4; ?>
136
  </h3>
137
- <p style="font-size: <?php echo $desc_size; ?>px; color: <?php echo $captionclr; ?>;">
138
- <?php echo $desc4; ?>
139
  </p>
140
  </span>
141
  </div>
142
  </div>
143
 
144
- <div class="info-circle-icon5 icon-wrapper" style="background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;">
145
  <div>
146
  <?php if ($style == 'icon') { ?>
147
- <i class="<?php echo $icon5; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
148
  <?php } ?>
149
  <?php if ($style == 'image') { ?>
150
- <img src="<?php echo $image_url5; ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
151
  <?php } ?>
152
 
153
  <span class="info-circle-detail">
154
- <h3 style="font-size: <?php echo $heading_size; ?>px; color: <?php echo $captionclr; ?>;">
155
- <?php echo $heading5; ?>
156
  </h3>
157
- <p style="font-size: <?php echo $desc_size; ?>px; color: <?php echo $captionclr; ?>;">
158
- <?php echo $desc5; ?>
159
  </p>
160
  </span>
161
  </div>
@@ -163,89 +163,89 @@ class WPBakeryShortCode_vc_info_circle extends WPBakeryShortCode {
163
  </div>
164
 
165
  <!== Mobile View ==>
166
- <ul class="info-circle-mobile" style="border-left: <?php echo $outer_border; ?>;">
167
  <li class="info-circle-icon">
168
  <?php if ($style == 'icon') { ?>
169
- <i class="<?php echo $icon; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>; background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;"></i>
170
  <?php } ?>
171
  <?php if ($style == 'image') { ?>
172
- <img src="<?php echo $image_url; ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
173
  <?php } ?>
174
 
175
  <span class="mobile-info-detail" style="">
176
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
177
- <?php echo $heading; ?>
178
  </h3>
179
  <p style="font-size: 14px; color: #000;">
180
- <?php echo $desc; ?>
181
  </p>
182
  </span>
183
  </li>
184
 
185
  <li class="info-circle-icon">
186
  <?php if ($style == 'icon') { ?>
187
- <i class="<?php echo $icon2; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>; background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;"></i>
188
  <?php } ?>
189
  <?php if ($style == 'image') { ?>
190
- <img src="<?php echo $image_url2; ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
191
  <?php } ?>
192
  <span class="mobile-info-detail" style="">
193
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
194
- <?php echo $heading2; ?>
195
  </h3>
196
  <p style="font-size: 14px; color: #000;">
197
- <?php echo $desc2; ?>
198
  </p>
199
  </span>
200
  </li>
201
 
202
  <li class="info-circle-icon">
203
  <?php if ($style == 'icon') { ?>
204
- <i class="<?php echo $icon3; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>; background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;"></i>
205
  <?php } ?>
206
  <?php if ($style == 'image') { ?>
207
- <img src="<?php echo $image_url3; ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
208
  <?php } ?>
209
  <span class="mobile-info-detail" style="">
210
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
211
- <?php echo $heading3; ?>
212
  </h3>
213
  <p style="font-size: 14px; color: #000;">
214
- <?php echo $desc3; ?>
215
  </p>
216
  </span>
217
  </li>
218
 
219
  <li class="info-circle-icon">
220
  <?php if ($style == 'icon') { ?>
221
- <i class="<?php echo $icon4; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>; background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;"></i>
222
  <?php } ?>
223
  <?php if ($style == 'image') { ?>
224
- <img src="<?php echo $image_url4; ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
225
  <?php } ?>
226
  <span class="mobile-info-detail" style="">
227
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
228
- <?php echo $heading4; ?>
229
  </h3>
230
  <p style="font-size: 14px; color: #000;">
231
- <?php echo $desc4; ?>
232
  </p>
233
  </span>
234
  </li>
235
 
236
  <li class="info-circle-icon" style="padding-bottom: 0;">
237
  <?php if ($style == 'icon') { ?>
238
- <i class="<?php echo $icon5; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>; background: <?php echo $icon_bg; ?>; border: <?php echo $border_clr; ?>;"></i>
239
  <?php } ?>
240
  <?php if ($style == 'image') { ?>
241
- <img src="<?php echo $image_url5; ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
242
  <?php } ?>
243
  <span class="mobile-info-detail" style="">
244
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
245
- <?php echo $heading5; ?>
246
  </h3>
247
  <p style="font-size: 14px; color: #000;">
248
- <?php echo $desc5; ?>
249
  </p>
250
  </span>
251
  </li>
51
  wp_enqueue_script( 'info-circle-js', plugins_url( '../js/info-circle.js' , __FILE__ ), array('jquery'));
52
  ob_start(); ?>
53
  <div id="mega-info-circle" class="mega-info-circle" style="margin-top: 40px;">
54
+ <div class="mega-outer-section" style="border: <?php echo esc_attr($outer_border); ?>;">
55
+ <div class="mega-inner-section" style="background: <?php echo esc_attr($bgclr); ?>; width: <?php echo esc_attr($width); ?>%; height: <?php echo esc_attr($width); ?>%;">
56
  <div style="display: table; width: 100%; height: 100%;">
57
+ <div style="display: table-cell !important; vertical-align: middle !important;" class="mega-inner-section-div <?php echo esc_attr($hide_icon); ?>">
58
 
59
 
60
  </div>
61
  </div>
62
  </div>
63
 
64
+ <div class="info-circle-icon icon-wrapper" style="background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;">
65
  <div>
66
  <?php if ($style == 'icon') { ?>
67
+ <i class="<?php echo esc_attr($icon); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
68
  <?php } ?>
69
  <?php if ($style == 'image') { ?>
70
+ <img src="<?php echo esc_attr($image_url); ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
71
  <?php } ?>
72
 
73
  <span class="info-circle-detail">
74
+ <h3 style="font-size: <?php echo esc_attr($heading_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
75
+ <?php echo esc_attr($heading); ?>
76
  </h3>
77
+ <p style="font-size: <?php echo esc_attr($desc_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
78
+ <?php echo esc_attr($desc); ?>
79
  </p>
80
  </span>
81
  </div>
82
  </div>
83
 
84
+ <div class="info-circle-icon2 icon-wrapper" style="background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;">
85
  <div>
86
  <?php if ($style == 'icon') { ?>
87
+ <i class="<?php echo esc_attr($icon2); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
88
  <?php } ?>
89
  <?php if ($style == 'image') { ?>
90
+ <img src="<?php echo esc_attr($image_url2); ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
91
  <?php } ?>
92
 
93
  <span class="info-circle-detail">
94
+ <h3 style="font-size: <?php echo esc_attr($heading_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
95
+ <?php echo esc_attr($heading2); ?>
96
  </h3>
97
+ <p style="font-size: <?php echo esc_attr($desc_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
98
+ <?php echo esc_attr($desc2); ?>
99
  </p>
100
  </span>
101
  </div>
102
  </div>
103
 
104
+ <div class="info-circle-icon3 icon-wrapper" style="background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;">
105
  <div>
106
  <?php if ($style == 'icon') { ?>
107
+ <i class="<?php echo esc_attr($icon3); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
108
  <?php } ?>
109
  <?php if ($style == 'image') { ?>
110
+ <img src="<?php echo esc_attr($image_url3); ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
111
  <?php } ?>
112
 
113
  <span class="info-circle-detail">
114
+ <h3 style="font-size: <?php echo esc_attr($heading_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
115
+ <?php echo esc_attr($heading3); ?>
116
  </h3>
117
+ <p style="font-size: <?php echo esc_attr($desc_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
118
+ <?php echo esc_attr($desc3); ?>
119
  </p>
120
  </span>
121
  </div>
122
  </div>
123
 
124
+ <div class="info-circle-icon4 icon-wrapper" style="background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;">
125
  <div>
126
  <?php if ($style == 'icon') { ?>
127
+ <i class="<?php echo esc_attr($icon4); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
128
  <?php } ?>
129
  <?php if ($style == 'image') { ?>
130
+ <img src="<?php echo esc_attr($image_url4); ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
131
  <?php } ?>
132
 
133
  <span class="info-circle-detail">
134
+ <h3 style="font-size: <?php echo esc_attr($heading_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
135
+ <?php echo esc_attr($heading4); ?>
136
  </h3>
137
+ <p style="font-size: <?php echo esc_attr($desc_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
138
+ <?php echo esc_attr($desc4); ?>
139
  </p>
140
  </span>
141
  </div>
142
  </div>
143
 
144
+ <div class="info-circle-icon5 icon-wrapper" style="background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;">
145
  <div>
146
  <?php if ($style == 'icon') { ?>
147
+ <i class="<?php echo esc_attr($icon5); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
148
  <?php } ?>
149
  <?php if ($style == 'image') { ?>
150
+ <img src="<?php echo esc_attr($image_url5); ?>" style="width: 56px; height: 56px; border-radius: 50%;" />
151
  <?php } ?>
152
 
153
  <span class="info-circle-detail">
154
+ <h3 style="font-size: <?php echo esc_attr($heading_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
155
+ <?php echo esc_attr($heading5); ?>
156
  </h3>
157
+ <p style="font-size: <?php echo esc_attr($desc_size); ?>px; color: <?php echo esc_attr($captionclr); ?>;">
158
+ <?php echo esc_attr($desc5); ?>
159
  </p>
160
  </span>
161
  </div>
163
  </div>
164
 
165
  <!== Mobile View ==>
166
+ <ul class="info-circle-mobile" style="border-left: <?php echo esc_attr($outer_border); ?>;">
167
  <li class="info-circle-icon">
168
  <?php if ($style == 'icon') { ?>
169
+ <i class="<?php echo esc_attr($icon); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>; background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;"></i>
170
  <?php } ?>
171
  <?php if ($style == 'image') { ?>
172
+ <img src="<?php echo esc_attr($image_url); ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
173
  <?php } ?>
174
 
175
  <span class="mobile-info-detail" style="">
176
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
177
+ <?php echo esc_attr($heading); ?>
178
  </h3>
179
  <p style="font-size: 14px; color: #000;">
180
+ <?php echo esc_attr($desc); ?>
181
  </p>
182
  </span>
183
  </li>
184
 
185
  <li class="info-circle-icon">
186
  <?php if ($style == 'icon') { ?>
187
+ <i class="<?php echo esc_attr($icon2); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>; background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;"></i>
188
  <?php } ?>
189
  <?php if ($style == 'image') { ?>
190
+ <img src="<?php echo esc_attr($image_url2); ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
191
  <?php } ?>
192
  <span class="mobile-info-detail" style="">
193
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
194
+ <?php echo esc_attr($heading2); ?>
195
  </h3>
196
  <p style="font-size: 14px; color: #000;">
197
+ <?php echo esc_attr($desc2); ?>
198
  </p>
199
  </span>
200
  </li>
201
 
202
  <li class="info-circle-icon">
203
  <?php if ($style == 'icon') { ?>
204
+ <i class="<?php echo esc_attr($icon3); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>; background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;"></i>
205
  <?php } ?>
206
  <?php if ($style == 'image') { ?>
207
+ <img src="<?php echo esc_attr($image_url3); ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
208
  <?php } ?>
209
  <span class="mobile-info-detail" style="">
210
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
211
+ <?php echo esc_attr($heading3); ?>
212
  </h3>
213
  <p style="font-size: 14px; color: #000;">
214
+ <?php echo esc_attr($desc3); ?>
215
  </p>
216
  </span>
217
  </li>
218
 
219
  <li class="info-circle-icon">
220
  <?php if ($style == 'icon') { ?>
221
+ <i class="<?php echo esc_attr($icon4); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>; background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;"></i>
222
  <?php } ?>
223
  <?php if ($style == 'image') { ?>
224
+ <img src="<?php echo esc_attr($image_url4); ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
225
  <?php } ?>
226
  <span class="mobile-info-detail" style="">
227
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
228
+ <?php echo esc_attr($heading4); ?>
229
  </h3>
230
  <p style="font-size: 14px; color: #000;">
231
+ <?php echo esc_attr($desc4); ?>
232
  </p>
233
  </span>
234
  </li>
235
 
236
  <li class="info-circle-icon" style="padding-bottom: 0;">
237
  <?php if ($style == 'icon') { ?>
238
+ <i class="<?php echo esc_attr($icon5); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>; background: <?php echo esc_attr($icon_bg); ?>; border: <?php echo esc_attr($border_clr); ?>;"></i>
239
  <?php } ?>
240
  <?php if ($style == 'image') { ?>
241
+ <img src="<?php echo esc_attr($image_url5); ?>" style="width: 65px; height: 65px; border-radius: 50%; float: left;" />
242
  <?php } ?>
243
  <span class="mobile-info-detail" style="">
244
  <h3 style="font-size: 18px; color: #000; margin: 5px 0;">
245
+ <?php echo esc_attr($heading5); ?>
246
  </h3>
247
  <p style="font-size: 14px; color: #000;">
248
+ <?php echo esc_attr($desc5); ?>
249
  </p>
250
  </span>
251
  </li>
render/info_list_father.php CHANGED
@@ -21,7 +21,7 @@ class WPBakeryShortCode_info_list_father extends WPBakeryShortCodesContainer {
21
  $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
22
  wp_enqueue_style( 'info-list-css', plugins_url( '../css/infolist.css' , __FILE__ ));
23
  ob_start(); ?>
24
- <ul class="mega-info-list <?php echo $css_class; ?>" style="list-style-type: none; height: 100%;">
25
  <?php echo $content; ?>
26
  </ul>
27
 
21
  $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
22
  wp_enqueue_style( 'info-list-css', plugins_url( '../css/infolist.css' , __FILE__ ));
23
  ob_start(); ?>
24
+ <ul class="mega-info-list <?php echo esc_attr($css_class); ?>" style="list-style-type: none; height: 100%;">
25
  <?php echo $content; ?>
26
  </ul>
27
 
render/info_list_son.php CHANGED
@@ -35,24 +35,26 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
35
  $image_url = wp_get_attachment_url( $image_id );
36
  }
37
  $content = wpb_js_remove_wpautop($content, true);
 
 
38
  ob_start();
39
 
40
  global $maw_infolist_theme; global $maw_infolist_connector_h; global $maw_infolist_listwidth; global $maw_infolist_liststyle; global $maw_infolist_listclr;
41
  ?>
42
  <div class="vc_info_list_outer">
43
  <?php if ($maw_infolist_theme == 'left') { ?>
44
- <li class="vc_info_list" style="padding-bottom: <?php echo $maw_infolist_connector_h; ?>px; border-left: <?php echo $maw_infolist_listwidth; ?>px <?php echo $maw_infolist_liststyle; ?> <?php echo $maw_infolist_listclr; ?>; display: table;margin-left: <?php echo $width/2+$borderwidth; ?>px; float: none; margin-bottom: 2px;">
45
  <div class="media">
46
- <div class="media-left info-list-img" style="margin-left: -<?php echo $width/2+$borderwidth; ?>px; padding-right: 20px; float: left;">
47
  <?php if ($style == 'image') { ?>
48
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; height: <?php echo $height; ?>px;" class="<?php echo $imgstyle; ?>">
49
  <?php } ?>
50
  <?php if ($style == 'icon') { ?>
51
- <div style="border: <?php echo $borderwidth; ?>px <?php echo $borderstyle; ?> <?php echo $borderclr; ?>; border-radius: <?php echo $radius; ?>; background: <?php echo $iconbg; ?>;">
52
- <span style="display:table; width: <?php echo $width; ?>px; height: <?php echo $height; ?>px; border-radius: <?php echo $radius; ?>; text-align: center;">
53
  <span style="display: table-cell !important;vertical-align: middle !important;">
54
 
55
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="font-size: <?php echo $size; ?>px; color: <?php echo $iconclr; ?>;"></i>
56
 
57
  </span>
58
  </span>
@@ -60,8 +62,8 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
60
  <?php } ?>
61
  </div>
62
  <div class="media-body">
63
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-style: <?php echo $title_weight; ?>; line-height: <?php echo $lineheight; ?>;">
64
- <?php echo $title; ?>
65
  </h2>
66
  <?php echo $content; ?>
67
  </div>
@@ -70,24 +72,24 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
70
  <?php } ?>
71
 
72
  <?php if ($maw_infolist_theme == 'right') { ?>
73
- <li class="vc_info_list" style="padding-bottom: <?php echo $maw_infolist_connector_h; ?>px; border-right: <?php echo $maw_infolist_listwidth; ?>px <?php echo $maw_infolist_liststyle; ?> <?php echo $maw_infolist_listclr; ?>; display: table;margin-right: <?php echo $width/2+$borderwidth; ?>px; float: none; margin-bottom: 2px;">
74
- <div class="media" style="margin-right: -<?php echo $width/2+$borderwidth; ?>px;">
75
  <div class="media-body text-right">
76
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-style: <?php echo $title_weight; ?>; line-height: <?php echo $lineheight; ?>;">
77
- <?php echo $title; ?>
78
  </h2>
79
  <?php echo $content; ?>
80
  </div>
81
  <div class="media-right" style="padding-left: 20px;">
82
  <?php if ($style == 'image') { ?>
83
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; height: <?php echo $height; ?>px;" class="<?php echo $imgstyle; ?>">
84
  <?php } ?>
85
  <?php if ($style == 'icon') { ?>
86
- <div style="background: <?php echo $iconbg; ?>; border: <?php echo $borderwidth; ?>px <?php echo $borderstyle; ?> <?php echo $borderclr; ?>; border-radius: <?php echo $radius; ?>;">
87
- <span style="display:table; width: <?php echo $width; ?>px; height: <?php echo $height; ?>px; border-radius: <?php echo $radius; ?>;text-align: center;">
88
  <span style="display: table-cell !important;vertical-align: middle !important;">
89
 
90
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="font-size: <?php echo $size; ?>px; color: <?php echo $iconclr; ?>;"></i>
91
 
92
  </span>
93
  </span>
35
  $image_url = wp_get_attachment_url( $image_id );
36
  }
37
  $content = wpb_js_remove_wpautop($content, true);
38
+ $content = str_replace("<script>","&#60;script&#62;",$content);
39
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
40
  ob_start();
41
 
42
  global $maw_infolist_theme; global $maw_infolist_connector_h; global $maw_infolist_listwidth; global $maw_infolist_liststyle; global $maw_infolist_listclr;
43
  ?>
44
  <div class="vc_info_list_outer">
45
  <?php if ($maw_infolist_theme == 'left') { ?>
46
+ <li class="vc_info_list" style="padding-bottom: <?php echo esc_attr($maw_infolist_connector_h); ?>px; border-left: <?php echo esc_attr($maw_infolist_listwidth); ?>px <?php echo esc_attr($maw_infolist_liststyle); ?> <?php echo esc_attr($maw_infolist_listclr); ?>; display: table;margin-left: <?php echo esc_attr($width)/2+$borderwidth; ?>px; float: none; margin-bottom: 2px;">
47
  <div class="media">
48
+ <div class="media-left info-list-img" style="margin-left: -<?php echo esc_attr($width)/2+$borderwidth; ?>px; padding-right: 20px; float: left;">
49
  <?php if ($style == 'image') { ?>
50
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; height: <?php echo esc_attr($height); ?>px;" class="<?php echo esc_attr($imgstyle); ?>">
51
  <?php } ?>
52
  <?php if ($style == 'icon') { ?>
53
+ <div style="border: <?php echo esc_attr($borderwidth); ?>px <?php echo esc_attr($borderstyle); ?> <?php echo esc_attr($borderclr); ?>; border-radius: <?php echo esc_attr($radius); ?>; background: <?php echo esc_attr($iconbg); ?>;">
54
+ <span style="display:table; width: <?php echo esc_attr($width); ?>px; height: <?php echo esc_attr($height); ?>px; border-radius: <?php echo esc_attr($radius); ?>; text-align: center;">
55
  <span style="display: table-cell !important;vertical-align: middle !important;">
56
 
57
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true" style="font-size: <?php echo esc_attr($size); ?>px; color: <?php echo esc_attr($iconclr); ?>;"></i>
58
 
59
  </span>
60
  </span>
62
  <?php } ?>
63
  </div>
64
  <div class="media-body">
65
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; font-style: <?php echo esc_attr($title_weight); ?>; line-height: <?php echo esc_attr($lineheight); ?>;">
66
+ <?php echo esc_attr($title); ?>
67
  </h2>
68
  <?php echo $content; ?>
69
  </div>
72
  <?php } ?>
73
 
74
  <?php if ($maw_infolist_theme == 'right') { ?>
75
+ <li class="vc_info_list" style="padding-bottom: <?php echo esc_attr($maw_infolist_connector_h); ?>px; border-right: <?php echo esc_attr($maw_infolist_listwidth); ?>px <?php echo esc_attr($maw_infolist_liststyle); ?> <?php echo esc_attr($maw_infolist_listclr); ?>; display: table;margin-right: <?php echo esc_attr($width)/2+$borderwidth; ?>px; float: none; margin-bottom: 2px;">
76
+ <div class="media" style="margin-right: -<?php echo esc_attr($width)/2+$borderwidth; ?>px;">
77
  <div class="media-body text-right">
78
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; font-style: <?php echo esc_attr($title_weight); ?>; line-height: <?php echo esc_attr($lineheight); ?>;">
79
+ <?php echo esc_attr($title); ?>
80
  </h2>
81
  <?php echo $content; ?>
82
  </div>
83
  <div class="media-right" style="padding-left: 20px;">
84
  <?php if ($style == 'image') { ?>
85
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; height: <?php echo esc_attr($height); ?>px;" class="<?php echo esc_attr($imgstyle); ?>">
86
  <?php } ?>
87
  <?php if ($style == 'icon') { ?>
88
+ <div style="background: <?php echo esc_attr($iconbg); ?>; border: <?php echo esc_attr($borderwidth); ?>px <?php echo esc_attr($borderstyle); ?> <?php echo esc_attr($borderclr); ?>; border-radius: <?php echo esc_attr($radius); ?>;">
89
+ <span style="display:table; width: <?php echo esc_attr($width); ?>px; height: <?php echo esc_attr($height); ?>px; border-radius: <?php echo esc_attr($radius); ?>;text-align: center;">
90
  <span style="display: table-cell !important;vertical-align: middle !important;">
91
 
92
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true" style="font-size: <?php echo esc_attr($size); ?>px; color: <?php echo esc_attr($iconclr); ?>;"></i>
93
 
94
  </span>
95
  </span>
render/infobanners.php CHANGED
@@ -44,6 +44,7 @@ class WPBakeryShortCode_info_banner_vc extends WPBakeryShortCode {
44
  'descsize' => '',
45
  'use_theme_fonts' => '',
46
  'google_fonts' => 'default',
 
47
  'classname' => '',
48
  ), $atts ) );
49
  $url = vc_build_link($url);
@@ -54,30 +55,39 @@ class WPBakeryShortCode_info_banner_vc extends WPBakeryShortCode {
54
  $some_id = rand(5, 500);
55
  wp_enqueue_style( 'infobanner-css', plugins_url( '../css/infobanner.css' , __FILE__ ));
56
  $content = wpb_js_remove_wpautop($content, true);
 
 
57
  $atts = vc_map_get_attributes( $this->getShortcode(), $atts );
58
- $fontsData = $this->getFontsData( $atts, 'google_fonts' );
59
- $googleFontsStyles = $this->googleFontsStyles( $fontsData );
60
- $this->enqueueGoogleFonts( $fontsData );
61
- $googleallfonts = esc_attr( implode( ';', $googleFontsStyles ) );
 
 
 
 
 
 
 
62
  ob_start(); ?>
63
- <div class="maw_infobanner_wrap<?php echo $some_id; ?>">
64
  <!-- Style1 & 2 info banner -->
65
  <?php if ($style_visibility == 'left' || $style_visibility == 'right') { ?>
66
- <div class="mega_info_bar info_bn_box <?php echo $css_class; ?> <?php echo $classname; ?>">
67
  <div class="ribbon">
68
- <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
69
- <?php echo $ribbon_text; ?>
70
  </span>
71
  </div>
72
- <div class="mega_wrap" style="width: <?php echo $pic_width-2; ?>%; float: <?php echo $style_visibility; ?>; padding: <?php echo $img_padding; ?>;">
73
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="display: block; max-width: 100%; width: <?php echo $pic_size; ?>; height: <?php echo $pic_height; ?>px; border-radius: <?php echo $img_radius; ?>px;">
74
  </div>
75
 
76
- <div class="mega_content" style="width: <?php echo $content_width-3; ?>%;">
77
- <div style="padding: <?php echo $text_padding; ?>;">
78
  <?php echo $content; ?>
79
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn maw_banner_btn" style="font-size: <?php echo $btn_size; ?>px; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_style; ?>; border-radius: <?php echo $btn_radius; ?>px; padding: <?php echo $btn_ptop/2; ?>px <?php echo $btn_pleft/2; ?>px;">
80
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
81
  </a>
82
  </div>
83
 
@@ -89,22 +99,22 @@ class WPBakeryShortCode_info_banner_vc extends WPBakeryShortCode {
89
 
90
  <!-- Style3 info banner -->
91
  <?php if ($style_visibility == 'top_to_bottom') { ?>
92
- <div class="mega_info_bar_2 info_bn_box <?php echo $css_class; ?> <?php echo $classname; ?>">
93
  <div class="ribbon">
94
- <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
95
- <?php echo $ribbon_text; ?>
96
  </span>
97
  </div>
98
- <div class="mega_wrap" style="padding: <?php echo $img_padding; ?>;">
99
  <?php if (!empty($image_url)) { ?>
100
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="display: block; max-width: 100%; width: <?php echo $pic_size; ?>; height: <?php echo $pic_height; ?>px; border-radius: <?php echo $img_radius; ?>px;">
101
  <?php } ?>
102
  </div>
103
 
104
- <div class="mega_content" style="padding: <?php echo $text_padding; ?>;">
105
  <?php echo $content; ?>
106
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn maw_banner_btn" style="font-size: <?php echo $btn_size; ?>px; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_style; ?>; padding: <?php echo $btn_ptop/2; ?>px <?php echo $btn_pleft/2; ?>px; border-radius: <?php echo $btn_radius; ?>px;">
107
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
108
  </a>
109
  <br>
110
  </div>
@@ -114,21 +124,21 @@ class WPBakeryShortCode_info_banner_vc extends WPBakeryShortCode {
114
 
115
  <!-- Style 4 info banner -->
116
  <?php if ($style_visibility == 'button') { ?>
117
- <div class="mega_info_bar_3 info_bn_box <?php echo $css_class; ?> <?php echo $classname; ?>" style="display: table; width: 100%;">
118
  <div class="ribbon">
119
- <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
120
- <?php echo $ribbon_text; ?>
121
  </span>
122
  </div>
123
  <div class="mega_wrap" style="width: 100%; float: left; display: table-cell;">
124
- <div style="padding: <?php echo $text_padding; ?>;">
125
  <?php echo $content; ?>
126
  </div>
127
  </div>
128
 
129
- <div class="mega_content" style="width: <?php echo $content_width-3; ?>%; display: table-cell; vertical-align: middle;">
130
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn maw_banner_btn" style="font-size: <?php echo $btn_size; ?>px; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_style; ?>; border-radius: <?php echo $btn_radius; ?>px; padding: <?php echo $btn_ptop/2; ?>px <?php echo $btn_pleft/2; ?>px;">
131
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
132
  </a>
133
  </div>
134
  <div class="clearfix"></div>
@@ -138,35 +148,35 @@ class WPBakeryShortCode_info_banner_vc extends WPBakeryShortCode {
138
 
139
  <style>
140
  <?php if ($gradient_bg == 'show') { ?>
141
- .maw_infobanner_wrap<?php echo $some_id; ?> .info_bn_box {
142
- background-image: linear-gradient(<?php echo $gr_angle; ?>deg,<?php echo $gr_primclr; ?> 0%,<?php echo $gr_secndclr; ?> 100%);
143
  }
144
  <?php }
145
  if ($box_shadow == 'shadow') { ?>
146
- .maw_infobanner_wrap<?php echo $some_id; ?> .info_bn_box {
147
- box-<?php echo $box_shadow ?>: 0 25px 35px 0 rgba(0,9,78,.18) !important;
148
  }
149
  <?php }
150
  if ($btn_shadow == 'shadow') { ?>
151
- .maw_infobanner_wrap<?php echo $some_id; ?> .info_bn_box .maw_banner_btn{
152
- box-<?php echo $btn_shadow ?>: 0 10px 20px 0 rgba(0,9,78,.12) !important;
153
  }
154
  <?php }
155
  if ($img_shadow == 'shadow') { ?>
156
- .maw_infobanner_wrap<?php echo $some_id; ?> .info_bn_box img{
157
- box-<?php echo $img_shadow ?>: 0 10px 20px 0 rgba(0,9,78,.12) !important;
158
  }
159
  <?php } ?>
160
- .maw_infobanner_wrap<?php echo $some_id; ?> .info_bn_box .maw_banner_btn:hover {
161
- color: <?php echo $btn_hvrclr; ?> !important;
162
- background: <?php echo $btn_hvrbg ?> !important;
163
  }
164
- .maw_infobanner_wrap<?php echo $some_id; ?> .info_bn_box *{
165
- <?php echo $googleallfonts; ?>;
166
  }
167
  @media only screen and (max-width: 480px) {
168
- .maw_infobanner_wrap<?php echo $some_id; ?> .info_bn_box .mega_content *{
169
- font-size: <?php echo $descsize; ?>px !important;
170
  }
171
  }
172
  </style>
@@ -188,10 +198,14 @@ class WPBakeryShortCode_info_banner_vc extends WPBakeryShortCode {
188
  $fontFamily = explode( ':', $fontsData['values']['font_family'] );
189
  $styles[] = 'font-family:' . $fontFamily[0];
190
  $fontStyles = explode( ':', $fontsData['values']['font_style'] );
191
- $styles[] = 'font-weight:' . $fontStyles[1];
192
- $styles[] = 'font-style:' . $fontStyles[2];
 
 
 
 
 
193
 
194
- return $styles;
195
  }
196
 
197
  protected function enqueueGoogleFonts( $fontsData ) {
@@ -320,7 +334,7 @@ vc_map( array(
320
  "type" => "vc_links",
321
  "param_name" => "caption_urls",
322
  "class" => "ult_param_heading",
323
- "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;"><a href="https://1.envato.market/02aNL" target="_blank" style="text-decoration: none;">Design Options</a></span>', 'ihover' ),
324
  "group" => 'General',
325
  ),
326
 
@@ -435,6 +449,14 @@ vc_map( array(
435
  "group" => 'Content',
436
  ),
437
 
 
 
 
 
 
 
 
 
438
  array(
439
  "type" => "checkbox",
440
  "heading" => __( 'Use theme default font family?', 'creativelink' ),
44
  'descsize' => '',
45
  'use_theme_fonts' => '',
46
  'google_fonts' => 'default',
47
+ 'styles' => '',
48
  'classname' => '',
49
  ), $atts ) );
50
  $url = vc_build_link($url);
55
  $some_id = rand(5, 500);
56
  wp_enqueue_style( 'infobanner-css', plugins_url( '../css/infobanner.css' , __FILE__ ));
57
  $content = wpb_js_remove_wpautop($content, true);
58
+ $content = str_replace("<script>","&#60;script&#62;",$content);
59
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
60
  $atts = vc_map_get_attributes( $this->getShortcode(), $atts );
61
+ $googleallfonts = "";
62
+ if($google_fonts != "default"){
63
+ $fontsData = $this->getFontsData( $atts, 'google_fonts' );
64
+ $googleFontsStyles = $this->googleFontsStyles( $fontsData );
65
+ $this->enqueueGoogleFonts( $fontsData );
66
+ if (empty($googleFontsStyles) == false){
67
+ $googleallfonts = esc_attr( implode( ';', $googleFontsStyles ) );
68
+ } else {
69
+ $googleallfonts = $googleFontsStyles;
70
+ }
71
+ }
72
  ob_start(); ?>
73
+ <div class="maw_infobanner_wrap<?php echo esc_attr($some_id); ?>">
74
  <!-- Style1 & 2 info banner -->
75
  <?php if ($style_visibility == 'left' || $style_visibility == 'right') { ?>
76
+ <div class="mega_info_bar info_bn_box <?php echo esc_attr($css_class); ?> <?php echo esc_attr($classname); ?>">
77
  <div class="ribbon">
78
+ <span style="color: <?php echo esc_attr($ribbon_clr); ?>; background-color: <?php echo esc_attr($ribbon_bg); ?>">
79
+ <?php echo esc_attr($ribbon_text); ?>
80
  </span>
81
  </div>
82
+ <div class="mega_wrap" style="width: <?php echo esc_attr($pic_width)-2; ?>%; float: <?php echo esc_attr($style_visibility); ?>; padding: <?php echo esc_attr($img_padding); ?>;">
83
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="display: block; max-width: 100%; width: <?php echo esc_attr($pic_size); ?>; height: <?php echo esc_attr($pic_height); ?>px; border-radius: <?php echo esc_attr($img_radius); ?>px;">
84
  </div>
85
 
86
+ <div class="mega_content" style="width: <?php echo esc_attr($content_width)-3; ?>%;">
87
+ <div style="padding: <?php echo esc_attr($text_padding); ?>;">
88
  <?php echo $content; ?>
89
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn maw_banner_btn" style="font-size: <?php echo esc_attr($btn_size); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background: <?php echo esc_attr($btn_bg); ?>; border: <?php echo esc_attr($border_style); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px; padding: <?php echo esc_attr($btn_ptop)/2; ?>px <?php echo esc_attr($btn_pleft)/2; ?>px;">
90
+ <i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
91
  </a>
92
  </div>
93
 
99
 
100
  <!-- Style3 info banner -->
101
  <?php if ($style_visibility == 'top_to_bottom') { ?>
102
+ <div class="mega_info_bar_2 info_bn_box <?php echo esc_attr($css_class); ?> <?php echo esc_attr($classname); ?>">
103
  <div class="ribbon">
104
+ <span style="color: <?php echo esc_attr($ribbon_clr); ?>; background-color: <?php echo esc_attr($ribbon_bg); ?>">
105
+ <?php echo esc_attr($ribbon_text); ?>
106
  </span>
107
  </div>
108
+ <div class="mega_wrap" style="padding: <?php echo esc_attr($img_padding); ?>;">
109
  <?php if (!empty($image_url)) { ?>
110
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="display: block; max-width: 100%; width: <?php echo esc_attr($pic_size); ?>; height: <?php echo esc_attr($pic_height); ?>px; border-radius: <?php echo esc_attr($img_radius); ?>px;">
111
  <?php } ?>
112
  </div>
113
 
114
+ <div class="mega_content" style="padding: <?php echo esc_attr($text_padding); ?>;">
115
  <?php echo $content; ?>
116
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn maw_banner_btn" style="font-size: <?php echo esc_attr($btn_size); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background: <?php echo esc_attr($btn_bg); ?>; border: <?php echo esc_attr($border_style); ?>; padding: <?php echo esc_attr($btn_ptop)/2; ?>px <?php echo esc_attr($btn_pleft)/2; ?>px; border-radius: <?php echo esc_attr($btn_radius); ?>px;">
117
+ <i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
118
  </a>
119
  <br>
120
  </div>
124
 
125
  <!-- Style 4 info banner -->
126
  <?php if ($style_visibility == 'button') { ?>
127
+ <div class="mega_info_bar_3 info_bn_box <?php echo esc_attr($css_class); ?> <?php echo esc_attr($classname); ?>" style="display: table; width: 100%;">
128
  <div class="ribbon">
129
+ <span style="color: <?php echo esc_attr($ribbon_clr); ?>; background-color: <?php echo esc_attr($ribbon_bg); ?>">
130
+ <?php echo esc_attr($ribbon_text); ?>
131
  </span>
132
  </div>
133
  <div class="mega_wrap" style="width: 100%; float: left; display: table-cell;">
134
+ <div style="padding: <?php echo esc_attr($text_padding); ?>;">
135
  <?php echo $content; ?>
136
  </div>
137
  </div>
138
 
139
+ <div class="mega_content" style="width: <?php echo esc_attr($content_width)-3; ?>%; display: table-cell; vertical-align: middle;">
140
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="mega_hvr_btn maw_banner_btn" style="font-size: <?php echo esc_attr($btn_size); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background: <?php echo esc_attr($btn_bg); ?>; border: <?php echo esc_attr($border_style); ?>; border-radius: <?php echo esc_attr($btn_radius); ?>px; padding: <?php echo esc_attr($btn_ptop)/2; ?>px <?php echo esc_attr($btn_pleft)/2; ?>px;">
141
+ <i class="<?php echo esc_attr($btn_icon); ?>"></i> <?php echo esc_attr($btn_text); ?>
142
  </a>
143
  </div>
144
  <div class="clearfix"></div>
148
 
149
  <style>
150
  <?php if ($gradient_bg == 'show') { ?>
151
+ .maw_infobanner_wrap<?php echo esc_attr($some_id); ?> .info_bn_box {
152
+ background-image: linear-gradient(<?php echo esc_attr($gr_angle); ?>deg,<?php echo esc_attr($gr_primclr); ?> 0%,<?php echo esc_attr($gr_secndclr); ?> 100%);
153
  }
154
  <?php }
155
  if ($box_shadow == 'shadow') { ?>
156
+ .maw_infobanner_wrap<?php echo esc_attr($some_id); ?> .info_bn_box {
157
+ box-<?php echo esc_attr($box_shadow) ?>: 0 25px 35px 0 rgba(0,9,78,.18) !important;
158
  }
159
  <?php }
160
  if ($btn_shadow == 'shadow') { ?>
161
+ .maw_infobanner_wrap<?php echo esc_attr($some_id); ?> .info_bn_box .maw_banner_btn{
162
+ box-<?php echo esc_attr($btn_shadow) ?>: 0 10px 20px 0 rgba(0,9,78,.12) !important;
163
  }
164
  <?php }
165
  if ($img_shadow == 'shadow') { ?>
166
+ .maw_infobanner_wrap<?php echo esc_attr($some_id); ?> .info_bn_box img{
167
+ box-<?php echo esc_attr($img_shadow) ?>: 0 10px 20px 0 rgba(0,9,78,.12) !important;
168
  }
169
  <?php } ?>
170
+ .maw_infobanner_wrap<?php echo esc_attr($some_id); ?> .info_bn_box .maw_banner_btn:hover {
171
+ color: <?php echo esc_attr($btn_hvrclr); ?> !important;
172
+ background: <?php echo esc_attr($btn_hvrbg) ?> !important;
173
  }
174
+ .maw_infobanner_wrap<?php echo esc_attr($some_id); ?> .info_bn_box *{
175
+ <?php echo esc_attr($googleallfonts); ?>;
176
  }
177
  @media only screen and (max-width: 480px) {
178
+ .maw_infobanner_wrap<?php echo esc_attr($some_id); ?> .info_bn_box .mega_content *{
179
+ font-size: <?php echo esc_attr($descsize); ?>px !important;
180
  }
181
  }
182
  </style>
198
  $fontFamily = explode( ':', $fontsData['values']['font_family'] );
199
  $styles[] = 'font-family:' . $fontFamily[0];
200
  $fontStyles = explode( ':', $fontsData['values']['font_style'] );
201
+ if(count($fontStyles)>1){
202
+ $styles[] = 'font-weight:' . $fontStyles[1];
203
+ $styles[] = 'font-style:' . $fontStyles[2];
204
+ return $styles;
205
+ } else {
206
+ return "";
207
+ }
208
 
 
209
  }
210
 
211
  protected function enqueueGoogleFonts( $fontsData ) {
334
  "type" => "vc_links",
335
  "param_name" => "caption_urls",
336
  "class" => "ult_param_heading",
337
+ "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;">Background Options</span>', 'ihover' ),
338
  "group" => 'General',
339
  ),
340
 
449
  "group" => 'Content',
450
  ),
451
 
452
+ array(
453
+ "type" => "vc_links",
454
+ "param_name" => "caption_urlss",
455
+ "class" => "ult_param_heading",
456
+ "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Google Fonts Option</span>', 'ihover' ),
457
+ "group" => 'Content',
458
+ ),
459
+
460
  array(
461
  "type" => "checkbox",
462
  "heading" => __( 'Use theme default font family?', 'creativelink' ),
render/infobox.php CHANGED
@@ -49,34 +49,36 @@ class WPBakeryShortCode_mvc_infobox extends WPBakeryShortCode {
49
  $image_url = wp_get_attachment_url( $image_id );
50
  }
51
  wp_enqueue_style( 'info-box-css', plugins_url( '../css/infobox.css' , __FILE__ ));
52
- $content = wpb_js_remove_wpautop($content, true);
 
 
53
  ob_start(); ?>
54
 
55
  <?php if ($link == 'link_box') { ?>
56
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" style="text-decoration: none;color: #000;">
57
  <?php } ?>
58
  <?php if ($link != 'link_box') { ?>
59
  <a style="text-decoration: none;color: #000;">
60
  <?php } ?>
61
- <div class="<?php echo $info_style; ?> mega-info-box-<?php echo $some_id; ?> <?php echo $shadow; ?> <?php echo $hovershadow; ?> <?php echo $css_class; ?>">
62
  <div class="mega-info-header">
63
  <?php if ($info_opt == 'show_image') { ?>
64
- <img class="mega-info-img" src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $image_size; ?>px; border-radius: <?php echo $image_radius; ?>;">
65
  <?php } ?>
66
  <?php if ($info_opt == 'show_icon') { ?>
67
- <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $border_clr; ?>; border-radius: <?php echo $icon_radius; ?>; background: <?php echo $icon_bg; ?>; width: <?php echo $icon_height; ?>px; height: <?php echo $icon_height; ?>px; line-height: <?php echo $icon_height-$border_width; ?>px; font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_color; ?>;"></i>
68
  <?php } ?>
69
  </div>
70
  <div class="mega-info-footer">
71
- <h3 class="mega-info-title" style="color: <?php echo $title_color ?>; font-size: <?php echo $title_size; ?>px; line-height: <?php echo $line_height; ?>;">
72
- <?php echo $info_title; ?>
73
  </h3>
74
- <div class="mega-info-desc" style="">
75
  <?php echo $content; ?>
76
  </div>
77
  <?php if ($link == 'link_btn') { ?>
78
- <a class="mega-info-btn" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="color: <?php echo $btn_clr; ?>">
79
- <?php echo $btn_text; ?>
80
  </a>
81
  <?php } ?>
82
  </div>
@@ -85,9 +87,9 @@ class WPBakeryShortCode_mvc_infobox extends WPBakeryShortCode {
85
  </a>
86
 
87
  <style>
88
- .mega-info-box-<?php echo $some_id; ?>:hover .mega-info-header i {
89
- color: <?php echo $hoverclr; ?> !important;
90
- background: <?php echo $hoverbg; ?> !important;
91
  }
92
  </style>
93
 
49
  $image_url = wp_get_attachment_url( $image_id );
50
  }
51
  wp_enqueue_style( 'info-box-css', plugins_url( '../css/infobox.css' , __FILE__ ));
52
+ $content = wpb_js_remove_wpautop($content, true);
53
+ $content = str_replace("<script>","&#60;script&#62;",$content);
54
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
55
  ob_start(); ?>
56
 
57
  <?php if ($link == 'link_box') { ?>
58
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo esc_attr($btn_url['target']); ?>" style="text-decoration: none;color: #000;">
59
  <?php } ?>
60
  <?php if ($link != 'link_box') { ?>
61
  <a style="text-decoration: none;color: #000;">
62
  <?php } ?>
63
+ <div class="<?php echo esc_attr($info_style); ?> mega-info-box-<?php echo esc_attr($some_id); ?> <?php echo esc_attr($shadow); ?> <?php echo esc_attr($hovershadow); ?> <?php echo esc_attr($css_class); ?>">
64
  <div class="mega-info-header">
65
  <?php if ($info_opt == 'show_image') { ?>
66
+ <img class="mega-info-img" src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($image_size); ?>px; border-radius: <?php echo esc_attr($image_radius); ?>;">
67
  <?php } ?>
68
  <?php if ($info_opt == 'show_icon') { ?>
69
+ <i class="<?php echo esc_attr($font_icon); ?>" aria-hidden="true" style="border: <?php echo esc_attr($border_width); ?>px <?php echo esc_attr($border_style); ?> <?php echo esc_attr($border_clr); ?>; border-radius: <?php echo esc_attr($icon_radius); ?>; background: <?php echo esc_attr($icon_bg); ?>; width: <?php echo esc_attr($icon_height); ?>px; height: <?php echo esc_attr($icon_height); ?>px; line-height: <?php echo esc_attr($icon_height-$border_width); ?>px; font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_color); ?>;"></i>
70
  <?php } ?>
71
  </div>
72
  <div class="mega-info-footer">
73
+ <h3 class="mega-info-title" style="color: <?php echo esc_attr($title_color); ?>; font-size: <?php echo esc_attr($title_size); ?>px; line-height: <?php echo esc_attr($line_height); ?>;">
74
+ <?php echo esc_attr($info_title); ?>
75
  </h3>
76
+ <div class="mega-info-desc">
77
  <?php echo $content; ?>
78
  </div>
79
  <?php if ($link == 'link_btn') { ?>
80
+ <a class="mega-info-btn" href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo esc_html($btn_url['target']); ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="color: <?php echo esc_attr($btn_clr); ?>">
81
+ <?php echo esc_attr($btn_text); ?>
82
  </a>
83
  <?php } ?>
84
  </div>
87
  </a>
88
 
89
  <style>
90
+ .mega-info-box-<?php echo esc_attr($some_id); ?>:hover .mega-info-header i {
91
+ color: <?php echo esc_attr($hoverclr); ?> !important;
92
+ background: <?php echo esc_attr($hoverbg); ?> !important;
93
  }
94
  </style>
95
 
render/interactivebanner.php CHANGED
@@ -41,25 +41,25 @@ class WPBakeryShortCode_interective_banner extends WPBakeryShortCode {
41
  $content = wpb_js_remove_wpautop($content, true);
42
  ob_start(); ?>
43
  <!-- HTML DESIGN HERE -->
44
- <div class="grid vc-interactive-banner <?php echo $class; ?>" id="vc-interactive-banner-<?php echo $some_id; ?>">
45
- <figure class="<?php echo $effects; ?>" style="background: <?php echo $bgclr; ?>; width: 100%; max-width: <?php echo $img_width; ?>px; width: 100%;">
46
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="height: <?php echo $height; ?>px; max-width: <?php echo $img_width; ?>px; width: 100%;" />
47
  <figcaption>
48
  <div>
49
- <h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $clr; ?>; font-weight: 500;">
50
- <?php echo $title; ?>
51
  </h2>
52
- <p style="font-size: <?php echo $descsize; ?>px; color: <?php echo $clr; ?>;">
53
- <?php echo $desc; ?>
54
 
55
  <?php if (!empty($icon)) { ?>
56
- <a href="<?php echo $icon_url; ?>" style="font-size: <?php echo $descsize; ?>px; color: <?php echo $clr; ?>;"><i class="fa <?php echo $icon; ?>"></i></a>
57
  <?php } ?>
58
  <?php if (!empty($icon2)) { ?>
59
- <a href="<?php echo $icon_url2; ?>" style="font-size: <?php echo $descsize; ?>px; color: <?php echo $clr; ?>;"><i class="fa <?php echo $icon2; ?>"></i></a>
60
  <?php } ?>
61
  <?php if (!empty($icon3)) { ?>
62
- <a href="<?php echo $icon_url3; ?>" style="font-size: <?php echo $descsize; ?>px; color: <?php echo $clr; ?>;"><i class="fa <?php echo $icon3; ?>"></i></a>
63
  <?php } ?>
64
 
65
  </p>
@@ -72,14 +72,14 @@ class WPBakeryShortCode_interective_banner extends WPBakeryShortCode {
72
  </div>
73
  <style>
74
  @media only screen and (max-width: 480px) {
75
- #vc-interactive-banner-<?php echo $some_id; ?> h2 {
76
- font-size: <?php echo $titlesizembl; ?>px !important;
77
  }
78
- #vc-interactive-banner-<?php echo $some_id; ?> p {
79
- font-size: <?php echo $descsizmbl; ?>px !important;
80
  }
81
- #vc-interactive-banner-<?php echo $some_id; ?> img {
82
- height: <?php echo $imgsizmbl; ?>px !important;
83
  }
84
  }
85
  </style>
41
  $content = wpb_js_remove_wpautop($content, true);
42
  ob_start(); ?>
43
  <!-- HTML DESIGN HERE -->
44
+ <div class="grid vc-interactive-banner <?php echo esc_attr($class); ?>" id="vc-interactive-banner-<?php echo esc_attr($some_id); ?>">
45
+ <figure class="<?php echo esc_attr($effects); ?>" style="background: <?php echo esc_attr($bgclr); ?>; width: 100%; max-width: <?php echo esc_attr($img_width); ?>px; width: 100%;">
46
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="height: <?php echo esc_attr($height); ?>px; max-width: <?php echo esc_attr($img_width); ?>px; width: 100%;" />
47
  <figcaption>
48
  <div>
49
+ <h2 style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($clr); ?>; font-weight: 500;">
50
+ <?php echo esc_attr($title); ?>
51
  </h2>
52
+ <p style="font-size: <?php echo esc_attr($descsize); ?>px; color: <?php echo esc_attr($clr); ?>;">
53
+ <?php echo esc_attr($desc); ?>
54
 
55
  <?php if (!empty($icon)) { ?>
56
+ <a href="<?php echo esc_attr($icon_url); ?>" style="font-size: <?php echo esc_attr($descsize); ?>px; color: <?php echo esc_attr($clr); ?>;"><i class="fa <?php echo esc_attr($icon); ?>"></i></a>
57
  <?php } ?>
58
  <?php if (!empty($icon2)) { ?>
59
+ <a href="<?php echo esc_attr($icon_url2); ?>" style="font-size: <?php echo esc_attr($descsize); ?>px; color: <?php echo esc_attr($clr); ?>;"><i class="fa <?php echo esc_attr($icon2); ?>"></i></a>
60
  <?php } ?>
61
  <?php if (!empty($icon3)) { ?>
62
+ <a href="<?php echo esc_attr($icon_url3); ?>" style="font-size: <?php echo esc_attr($descsize); ?>px; color: <?php echo esc_attr($clr); ?>;"><i class="fa <?php echo esc_attr($icon3); ?>"></i></a>
63
  <?php } ?>
64
 
65
  </p>
72
  </div>
73
  <style>
74
  @media only screen and (max-width: 480px) {
75
+ #vc-interactive-banner-<?php echo esc_attr($some_id); ?> h2 {
76
+ font-size: <?php echo esc_attr($titlesizembl); ?>px !important;
77
  }
78
+ #vc-interactive-banner-<?php echo esc_attr($some_id); ?> p {
79
+ font-size: <?php echo esc_attr($descsizmbl); ?>px !important;
80
  }
81
+ #vc-interactive-banner-<?php echo esc_attr($some_id); ?> img {
82
+ height: <?php echo esc_attr($imgsizmbl); ?>px !important;
83
  }
84
  }
85
  </style>
render/modalPopup.php CHANGED
@@ -43,41 +43,43 @@ class WPBakeryShortCode_modal_popup_box extends WPBakeryShortCode {
43
  wp_enqueue_style( 'modal-popup-btn', plugins_url( '../css/modal-popup-btn.css' , __FILE__ ));
44
  wp_enqueue_script( 'bpopup-js', plugins_url( '../js/bpopup.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
45
  $content = wpb_js_remove_wpautop($content, true);
 
 
46
  ob_start(); ?>
47
  <!-- HTML DESIGN HERE -->
48
- <div class="maw__modal_popup_box" data-bodybg="<?php echo $bodybg; ?>" style="justify-content: <?php echo $btnalign; ?>; display: flex;">
49
  <?php if ($btn_animation == 'button--winona' || $btn_animation == 'hvr-fade') { ?>
50
- <button class="mega-uae-btn model-popup-btn popup-<?php echo $some_id; ?> <?php echo $btn_animation; ?>" data-id="popup-<?php echo $some_id; ?>" style="color: <?php echo $btnclr; ?>;background: <?php echo $btnbg; ?> ; border: <?php echo $border_width; ?>px solid <?php echo $btn_border ?>; border-radius: <?php echo $btnradius; ?>px; font-size: <?php echo $btnsize; ?>px; padding: <?php echo $toppadding; ?>px <?php echo $leftpadding; ?>px;" data-text="">
51
- <span><i style="padding-right: 5px;" class="fa <?php echo $btn_icon; ?>"> </i> <?php echo $btntext; ?></span>
52
- <span style="background: <?php echo $hoverbg; ?>; padding: <?php echo $toppadding; ?>px 0; color: <?php echo $hoverclr; ?>;" class="modal-popup-after"><?php echo $btntext2; ?></span>
53
  </button>
54
  <div style="clear: both;"></div>
55
  <?php } ?>
56
 
57
  <?php if ($btn_animation == 'button--rayen' || $btn_animation == 'button--moema' || $btn_animation == 'button--ujarak') { ?>
58
- <button class="mega-uae-btn model-popup-btn popup-<?php echo $some_id; ?> <?php echo $btn_animation; ?>" data-id="popup-<?php echo $some_id; ?>" style="color: <?php echo $btnclr; ?>;background: <?php echo $btnbg; ?> ; border: <?php echo $border_width; ?>px solid <?php echo $btn_border ?>; border-radius: <?php echo $btnradius; ?>px; font-size: <?php echo $btnsize; ?>px; padding: <?php echo $toppadding; ?>px <?php echo $leftpadding; ?>px;" data-text="">
59
- <span style="background: <?php echo $hoverbg; ?>; padding: <?php echo $toppadding; ?>px 0; color: <?php echo $hoverclr; ?>;" class="modal-popup-before"><?php echo $btntext2; ?></span>
60
- <span><i style="padding-right: 5px;" class="fa <?php echo $btn_icon; ?>"> </i> <?php echo $btntext; ?></span>
61
  </button>
62
  <div style="clear: both;"></div>
63
  <?php } ?>
64
 
65
- <div class="mega-model-popup <?php echo $animation; ?> animated" id="popup-<?php echo $some_id; ?>" style="position:fixed;display: none; margin-top: <?php echo $top; ?>px; width: 95%;max-width: <?php echo $width; ?>px; background: <?php echo $bgclr; ?>;">
66
  <span class="b-close"><span><img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/cross.png"></span></span>
67
  <div class="model-popup-container">
68
- <h2 style="border-bottom: 1px solid <?php echo $titleborder; ?>; text-align: <?php echo $titlealign; ?>; font-size: <?php echo $titlesize; ?>px; line-height: <?php echo $titleline; ?>; color: <?php echo $titleclr; ?>; background: <?php echo $titlebg; ?>; margin: 0px; padding: 0px 20px;">
69
- <?php echo $titletext; ?>
70
  </h2>
71
- <span style="padding: <?php echo $contentpad ?>px <?php echo $contentpad2; ?>px; display: block;">
72
  <?php echo $content; ?>
73
  </span>
74
  </div>
75
  </div>
76
  </div>
77
  <style>
78
- .maw__modal_popup_box .popup-<?php echo $some_id; ?>:hover {
79
- background: <?php echo $hoverbg; ?> !important;
80
- color: <?php echo $hoverclr; ?> !important;
81
  }
82
 
83
  </style>
43
  wp_enqueue_style( 'modal-popup-btn', plugins_url( '../css/modal-popup-btn.css' , __FILE__ ));
44
  wp_enqueue_script( 'bpopup-js', plugins_url( '../js/bpopup.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
45
  $content = wpb_js_remove_wpautop($content, true);
46
+ $content = str_replace("<script>","&#60;script&#62;",$content);
47
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
48
  ob_start(); ?>
49
  <!-- HTML DESIGN HERE -->
50
+ <div class="maw__modal_popup_box" data-bodybg="<?php echo esc_attr($bodybg); ?>" style="justify-content: <?php echo esc_attr($btnalign); ?>; display: flex;">
51
  <?php if ($btn_animation == 'button--winona' || $btn_animation == 'hvr-fade') { ?>
52
+ <button class="mega-uae-btn model-popup-btn popup-<?php echo esc_attr($some_id); ?> <?php echo esc_attr($btn_animation); ?>" data-id="popup-<?php echo esc_attr($some_id); ?>" style="color: <?php echo esc_attr($btnclr); ?>;background: <?php echo esc_attr($btnbg); ?> ; border: <?php echo esc_attr($border_width); ?>px solid <?php echo esc_attr($btn_border) ?>; border-radius: <?php echo esc_attr($btnradius); ?>px; font-size: <?php echo esc_attr($btnsize); ?>px; padding: <?php echo esc_attr($toppadding); ?>px <?php echo esc_attr($leftpadding); ?>px;" data-text="">
53
+ <span><i style="padding-right: 5px;" class="fa <?php echo esc_attr($btn_icon); ?>"> </i> <?php echo esc_attr($btntext); ?></span>
54
+ <span style="background: <?php echo esc_attr($hoverbg); ?>; padding: <?php echo esc_attr($toppadding); ?>px 0; color: <?php echo esc_attr($hoverclr); ?>;" class="modal-popup-after"><?php echo esc_attr($btntext2); ?></span>
55
  </button>
56
  <div style="clear: both;"></div>
57
  <?php } ?>
58
 
59
  <?php if ($btn_animation == 'button--rayen' || $btn_animation == 'button--moema' || $btn_animation == 'button--ujarak') { ?>
60
+ <button class="mega-uae-btn model-popup-btn popup-<?php echo esc_attr($some_id); ?> <?php echo esc_attr($btn_animation); ?>" data-id="popup-<?php echo esc_attr($some_id); ?>" style="color: <?php echo esc_attr($btnclr); ?>;background: <?php echo esc_attr($btnbg); ?> ; border: <?php echo esc_attr($border_width); ?>px solid <?php echo esc_attr($btn_border) ?>; border-radius: <?php echo esc_attr($btnradius); ?>px; font-size: <?php echo esc_attr($btnsize); ?>px; padding: <?php echo esc_attr($toppadding); ?>px <?php echo esc_attr($leftpadding); ?>px;" data-text="">
61
+ <span style="background: <?php echo esc_attr($hoverbg); ?>; padding: <?php echo esc_attr($toppadding); ?>px 0; color: <?php echo esc_attr($hoverclr); ?>;" class="modal-popup-before"><?php echo esc_attr($btntext2); ?></span>
62
+ <span><i style="padding-right: 5px;" class="fa <?php echo esc_attr($btn_icon); ?>"> </i> <?php echo esc_attr($btntext); ?></span>
63
  </button>
64
  <div style="clear: both;"></div>
65
  <?php } ?>
66
 
67
+ <div class="mega-model-popup <?php echo esc_attr($animation); ?> animated" id="popup-<?php echo esc_attr($some_id); ?>" style="position:fixed;display: none; margin-top: <?php echo esc_attr($top); ?>px; width: 95%;max-width: <?php echo esc_attr($width); ?>px; background: <?php echo esc_attr($bgclr); ?>;">
68
  <span class="b-close"><span><img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/cross.png"></span></span>
69
  <div class="model-popup-container">
70
+ <h2 style="border-bottom: 1px solid <?php echo esc_attr($titleborder); ?>; text-align: <?php echo esc_attr($titlealign); ?>; font-size: <?php echo esc_attr($titlesize); ?>px; line-height: <?php echo esc_attr($titleline); ?>; color: <?php echo esc_attr($titleclr); ?>; background: <?php echo esc_attr($titlebg); ?>; margin: 0px; padding: 0px 20px;">
71
+ <?php echo esc_attr($titletext); ?>
72
  </h2>
73
+ <span style="padding: <?php echo esc_attr($contentpad) ?>px <?php echo esc_attr($contentpad2); ?>px; display: block;">
74
  <?php echo $content; ?>
75
  </span>
76
  </div>
77
  </div>
78
  </div>
79
  <style>
80
+ .maw__modal_popup_box .popup-<?php echo esc_attr($some_id); ?>:hover {
81
+ background: <?php echo esc_attr($hoverbg); ?> !important;
82
+ color: <?php echo esc_attr($hoverclr); ?> !important;
83
  }
84
 
85
  </style>
render/new.php DELETED
@@ -1,319 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- die( '-1' );
4
- }
5
-
6
- class WPBakeryShortCode_info_banners_vc extends WPBakeryShortCode {
7
-
8
- protected function content( $atts, $content = null ) {
9
-
10
- extract( shortcode_atts( array(
11
- 'style_visibility' => 'top_to_bottom',
12
- 'pic_width' => '50%',
13
- 'content_width' => '50%',
14
- 'image_id' => '',
15
- 'pic_size' => '',
16
- 'pic_height' => '',
17
- 'img_padding' => '',
18
- 'text_padding' => '',
19
- 'ribbon_text' => '',
20
- 'ribbon_clr' => '',
21
- 'ribbon_bg' => '',
22
- 'btn_icon' => '',
23
- 'btn_text' => '',
24
- 'btn_ptop' => '20px',
25
- 'btn_pleft' => '60px',
26
- 'btn_size' => '18px',
27
- 'btn_url' => '',
28
- 'border_style' => '',
29
- 'btn_radius' => '',
30
- 'btn_clr' => '',
31
- 'btn_bg' => '',
32
- 'btn_hvrclr' => '',
33
- 'btn_hvrbg' => '',
34
- 'css' => '',
35
- ), $atts ) );
36
- $content = wpb_js_remove_wpautop($content);
37
- $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
38
- if ($image_id != '') {
39
- $image_url = wp_get_attachment_url( $image_id );
40
- }
41
- wp_enqueue_style( 'infobanner-css', plugins_url( '../css/infobanner.css' , __FILE__ ));
42
- ob_start(); ?>
43
- <!-- Style1 & 2 info banner -->
44
- <?php if ($style_visibility == 'left' || $style_visibility == 'right') { ?>
45
- <div id="mega_info_bar" class="<?php echo $css_class; ?>">
46
- <div class="ribbon">
47
- <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
48
- <?php echo $ribbon_text; ?>
49
- </span>
50
- </div>
51
- <div class="mega_wrap" style="width: <?php echo $pic_width-1; ?>%; float: <?php echo $style_visibility; ?>; padding: <?php echo $img_padding; ?>;">
52
- <img src="<?php echo $image_url; ?>" style="width: <?php echo $pic_size; ?>; height: <?php echo $pic_height; ?>;">
53
- </div>
54
-
55
- <div class="mega_content" style="width: <?php echo $content_width-1; ?>%; padding: <?php echo $text_padding; ?>;">
56
- <?php echo $content; ?><br>
57
-
58
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onhoverbg="<?php echo $btn_hvrbg; ?>" data-onleavebg="<?php echo $btn_bg; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo $btn_url; ?>" class="mega_hvr_btn <?php echo $anim_style; ?>" style="font-size: <?php echo $btn_size; ?>; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_style; ?>; padding: <?php echo $btn_ptop/2; ?>px <?php echo $btn_pleft/2; ?>px; border-radius: <?php echo $btn_radius; ?>;">
59
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
60
- </a>
61
- </div>
62
- <div class="clearfix"></div>
63
- </div>
64
- <?php } ?>
65
-
66
-
67
- <!-- Style3 info banner -->
68
- <?php if ($style_visibility == 'top_to_bottom') { ?>
69
- <div id="mega_info_bar_2" class="<?php echo $css_class; ?>">
70
- <div class="ribbon">
71
- <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
72
- <?php echo $ribbon_text; ?>
73
- </span>
74
- </div>
75
- <div class="mega_wrap" style="padding: <?php echo $img_padding; ?>;">
76
- <img src="<?php echo $image_url; ?>" style="width: <?php echo $pic_size; ?>; height: <?php echo $pic_height; ?>;">
77
- </div>
78
-
79
- <div class="mega_content" style="padding: <?php echo $text_padding; ?>;">
80
- <?php echo $content; ?><br>
81
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onhoverbg="<?php echo $btn_hvrbg; ?>" data-onleavebg="<?php echo $btn_bg; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo $btn_url; ?>" class="mega_hvr_btn <?php echo $anim_style; ?>" style="font-size: <?php echo $btn_size; ?>; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_style; ?>; padding: <?php echo $btn_ptop/2; ?>px <?php echo $btn_pleft/2; ?>px; border-radius: <?php echo $btn_radius; ?>;">
82
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
83
- </a>
84
- <br>
85
- </div>
86
- <div class="clearfix"></div>
87
- </div>
88
- <?php } ?>
89
-
90
- <?php return ob_get_clean();
91
- }
92
- }
93
-
94
-
95
- vc_map( array(
96
- "name" => __( 'Info Banner', 'info-banner-vc' ),
97
- "base" => "info_banners_vc",
98
- "category" => __('Mega Addons'),
99
- "description" => __('Info banners for poducts and sales', 'info-banner-vc'),
100
- "icon" => plugin_dir_url( __FILE__ ).'../icons/infobanner.png',
101
- 'params' => array(
102
- array(
103
- "type" => "dropdown",
104
- "heading" => __( 'Style', 'info-banner-vc' ),
105
- "param_name" => "style_visibility",
106
- "description" => __( 'select styles for info banner', 'info-banner-vc' ),
107
- "group" => 'General',
108
- "value" => array(
109
- 'Top image bottom content' => 'top_to_bottom',
110
- 'Left image right content' => 'left',
111
- 'Left content right image' => 'right',
112
- )
113
- ),
114
-
115
- array(
116
- "type" => "textfield",
117
- "heading" => __( 'Picture box width', 'info-banner-vc' ),
118
- "param_name" => "pic_width",
119
- "description" => __( 'Set the width of picture box in percentage e.g 50%', 'info-banner-vc' ),
120
- "dependency" => array('element' => "style_visibility", 'value' => array('left', 'right',)),
121
- "value" => "50%",
122
- "group" => 'General',
123
- ),
124
-
125
- array(
126
- "type" => "textfield",
127
- "heading" => __( 'Content box width', 'info-banner-vc' ),
128
- "param_name" => "content_width",
129
- "description" => __( 'Set the width of content box in percentage e.g 50%', 'info-banner-vc' ),
130
- "dependency" => array('element' => "style_visibility", 'value' => array('left', 'right',)),
131
- "value" => "50%",
132
- "group" => 'General',
133
- ),
134
-
135
- // Content Area
136
-
137
- array(
138
- "type" => "attach_image",
139
- "heading" => __( 'Banner image', 'info-banner-vc' ),
140
- "param_name" => "image_id",
141
- "description" => __( 'Select image for banner logo', 'info-banner-vc' ),
142
- "group" => 'Image',
143
- ),
144
-
145
- array(
146
- "type" => "textfield",
147
- "heading" => __( 'Image width', 'info-banner-vc' ),
148
- "param_name" => "pic_size",
149
- "description" => __( 'set image width e.g 100px or leave blank for default', 'info-banner-vc' ),
150
- "group" => 'Image',
151
- ),
152
- array(
153
- "type" => "textfield",
154
- "heading" => __( 'Image height', 'info-banner-vc' ),
155
- "param_name" => "pic_height",
156
- "description" => __( 'set image height e.g 100px or leave blank for default', 'info-banner-vc' ),
157
- "group" => 'Image',
158
- ),
159
-
160
- array(
161
- "type" => "textfield",
162
- "heading" => __( 'Padding ', 'info-banner-vc' ),
163
- "param_name" => "img_padding",
164
- "description" => __( 'top right bottom left', 'info-banner-vc' ),
165
- "value" => "0px 0px 0px 0px",
166
- "group" => 'Image',
167
- ),
168
-
169
- array(
170
- "type" => "textfield",
171
- "heading" => __( 'Padding ', 'info-banner-vc' ),
172
- "param_name" => "text_padding",
173
- "description" => __( 'top right bottom left', 'info-banner-vc' ),
174
- "value" => "0px 0px 0px 0px",
175
- "group" => 'Content',
176
- ),
177
- array(
178
- "type" => "textarea_html",
179
- "heading" => __( 'Description', 'info-banner-vc' ),
180
- "param_name" => "content",
181
- "description" => __( 'write detail about info banner', 'info-banner-vc' ),
182
- "group" => 'Content',
183
- "value" => '<h2>Caption Title</h2><p>caption detail here</p>'
184
- ),
185
-
186
-
187
- /** Ribbon Setting **/
188
-
189
- array(
190
- "type" => "textfield",
191
- "heading" => __( 'Ribbon text', 'info-banner-vc' ),
192
- "param_name" => "ribbon_text",
193
- "description" => __( 'write ribbon text for special offer or leave blank', 'info-banner-vc' ),
194
- "group" => 'Ribbon',
195
- ),
196
-
197
- array(
198
- "type" => "colorpicker",
199
- "heading" => __( 'Text color', 'info-banner-vc' ),
200
- "param_name" => "ribbon_clr",
201
- "description" => __( 'Ribbon text color', 'info-banner-vc' ),
202
- "group" => 'Ribbon',
203
- ),
204
-
205
- array(
206
- "type" => "colorpicker",
207
- "heading" => __( 'Background color', 'info-banner-vc' ),
208
- "param_name" => "ribbon_bg",
209
- "description" => __( 'Ribbon background color', 'info-banner-vc' ),
210
- "group" => 'Ribbon',
211
- ),
212
-
213
-
214
- /** Button Setting **/
215
-
216
- array(
217
- "type" => "iconpicker",
218
- "heading" => __( 'Select Icon', 'info-banner-vc' ),
219
- "param_name" => "btn_icon",
220
- "description" => __( 'it will be show within text', 'info-banner-vc' ),
221
- "group" => 'Button',
222
- ),
223
- array(
224
- "type" => "textfield",
225
- "heading" => __( 'Button text', 'info-banner-vc' ),
226
- "param_name" => "btn_text",
227
- "description" => __( 'Write button text', 'info-banner-vc' ),
228
- "group" => 'Button',
229
- ),
230
- array(
231
- "type" => "textfield",
232
- "heading" => __( 'Button Height', 'info-banner-vc' ),
233
- "param_name" => "btn_ptop",
234
- "description" => __( 'button height. set in pixel e.g 20px', 'info-banner-vc' ),
235
- "value" => "20px",
236
- "group" => 'Button',
237
- ),
238
-
239
- array(
240
- "type" => "textfield",
241
- "heading" => __( 'Button Width', 'info-banner-vc' ),
242
- "param_name" => "btn_pleft",
243
- "description" => __( 'button width. set in pixel e.g 60px', 'info-banner-vc' ),
244
- "value" => "60px",
245
- "group" => 'Button',
246
- ),
247
- array(
248
- "type" => "textfield",
249
- "heading" => __( 'Text font size', 'info-banner-vc' ),
250
- "param_name" => "btn_size",
251
- "description" => __( 'Set font size in pixel e.g 18px', 'info-banner-vc' ),
252
- "value" => "18px",
253
- "group" => 'Button',
254
- ),
255
- array(
256
- "type" => "textfield",
257
- "heading" => __( 'Button URL', 'info-banner-vc' ),
258
- "param_name" => "btn_url",
259
- "description" => __( 'Write button url as link', 'info-banner-vc' ),
260
- "group" => 'Button',
261
- ),
262
-
263
- array(
264
- "type" => "textfield",
265
- "heading" => __( 'Border Style', 'info-banner-vc' ),
266
- "param_name" => "border_style",
267
- "description" => __( 'height style color', 'info-banner-vc' ),
268
- "value" => "0px solid #fff",
269
- "group" => 'Button',
270
- ),
271
- array(
272
- "type" => "textfield",
273
- "heading" => __( 'Border Radius', 'info-banner-vc' ),
274
- "param_name" => "btn_radius",
275
- "description" => __( 'set in pixel eg 5px or leave blank', 'info-banner-vc' ),
276
- "value" => "5px",
277
- "group" => 'Button',
278
- ),
279
-
280
- array(
281
- "type" => "colorpicker",
282
- "heading" => __( 'Text color', 'info-banner-vc' ),
283
- "param_name" => "btn_clr",
284
- "description" => __( 'Set color of text e.g #ffff', 'info-banner-vc' ),
285
- "group" => 'Button',
286
- ),
287
-
288
- array(
289
- "type" => "colorpicker",
290
- "heading" => __( 'Background color', 'info-banner-vc' ),
291
- "param_name" => "btn_bg",
292
- "description" => __( 'Set background color of text e.g #000', 'info-banner-vc' ),
293
- "group" => 'Button',
294
- ),
295
-
296
- array(
297
- "type" => "colorpicker",
298
- "heading" => __( 'Hover Text color', 'info-banner-vc' ),
299
- "param_name" => "btn_hvrclr",
300
- "description" => __( 'Set color of text on hover e.g #ffff', 'info-banner-vc' ),
301
- "group" => 'Button',
302
- ),
303
-
304
- array(
305
- "type" => "colorpicker",
306
- "heading" => __( 'Background color', 'info-banner-vc' ),
307
- "param_name" => "btn_hvrbg",
308
- "description" => __( 'Set color of background on hover e.g #269CE9', 'info-banner-vc' ),
309
- "group" => 'Button',
310
- ),
311
- array(
312
- "type" => "css_editor",
313
- "heading" => __( 'Styling Info Banner', 'info-banner-vc' ),
314
- "param_name" => "css",
315
- "group" => 'Design Options',
316
- ),
317
- ),
318
- ) );
319
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
render/new2.php DELETED
@@ -1,149 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- die( '-1' );
4
- }
5
-
6
- class WPBakeryShortCode_mvc_timeline_son extends WPBakeryShortCode {
7
-
8
- protected function content( $atts, $content = null ) {
9
-
10
- extract( shortcode_atts( array(
11
- 'date' => '',
12
- 'clr' => '',
13
- 'size' => '',
14
- 'centerstyle' => 'fonticon',
15
- 'bgclr' => '',
16
- 'arrowclr' => '',
17
- 'icon' => '',
18
- 'icon_size' => '',
19
- 'css' => '',
20
- ), $atts ) );
21
- $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
22
- $content = wpb_js_remove_wpautop($content, true);
23
- ob_start(); ?>
24
-
25
- <div class="cd-timeline-block">
26
- <?php if ($centerstyle == 'fonticon') { ?>
27
- <div class="cd-timeline-img cd-picture" style="background: <?php echo $bgclr; ?>; border-radius: 50%; text-align:center;">
28
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>; color: #fff;vertical-align: middle;"></i>
29
- </div>
30
- <?php } ?>
31
-
32
- <?php if ($centerstyle == 'dot') { ?>
33
- <div class="cd-timeline-img cd-timeline-dot cd-picture" style="background: <?php echo $bgclr; ?>; border-radius: 50%;">
34
- </div>
35
- <?php } ?>
36
-
37
- <div class="cd-timeline-content <?php echo $css_class; ?>">
38
- <span class="timeline-arrow" style="border-right-color: <?php echo $arrowclr; ?>"></span>
39
- <span class="timeline-arrow" style="border-left-color: <?php echo $arrowclr; ?>"></span>
40
- <span class="timeline-arrow" style="border-right: 7px solid <?php echo $arrowclr; ?>;"></span>
41
-
42
- <?php echo $content; ?>
43
- <span class="cd-date" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>;">
44
- <?php echo $date ?>
45
- </span>
46
- </div>
47
- </div>
48
-
49
- <?php return ob_get_clean();
50
- }
51
- }
52
-
53
-
54
- vc_map( array(
55
- "name" => __( 'Timeline', 'timeline' ),
56
- "base" => "mvc_timeline_son",
57
- "as_child" => array('only' => 'mvc_timeline_father'),
58
- "content_element" => true,
59
- "category" => __('Mega Addons'),
60
- "description" => __('Add multiple images and text', ''),
61
- "icon" => plugin_dir_url( __FILE__ ).'../icons/timeline.png',
62
- 'params' => array(
63
- array(
64
- "type" => "textfield",
65
- "heading" => __( 'Date', 'timeline' ),
66
- "param_name" => "date",
67
- "description" => __( 'Write timeline date e.g Jan 15', 'timeline' ),
68
- "group" => 'General',
69
- ),
70
-
71
- array(
72
- "type" => "colorpicker",
73
- "heading" => __( 'Color', 'timeline' ),
74
- "param_name" => "clr",
75
- "description" => __( 'color of the date', 'timeline' ),
76
- "group" => 'General',
77
- ),
78
-
79
- array(
80
- "type" => "textfield",
81
- "heading" => __( 'Font size', 'timeline' ),
82
- "param_name" => "size",
83
- "description" => __( 'fone size of date in pixel e.g 17px', 'timeline' ),
84
- "group" => 'General',
85
- ),
86
-
87
- array(
88
- "type" => "textarea_html",
89
- "heading" => __( 'Content Details', 'timeline' ),
90
- "param_name" => "content",
91
- "description" => __( 'Add heading, details, pictures or video url', 'timeline' ),
92
- "value" => '<h3><b>Title of section</b></h3><p>Details here</p> <a href="#0" class="cd-read-more" >Read more</a>',
93
- "group" => 'Content',
94
- ),
95
-
96
- array(
97
- "type" => "dropdown",
98
- "heading" => __( 'Select style', 'timeline' ),
99
- "param_name" => "centerstyle",
100
- "description" => __( 'style for center', 'timeline' ),
101
- "group" => 'Timeline Center',
102
- "value" => array(
103
- 'Center With Font Icon' => 'fonticon',
104
- 'Only Dot' => 'dot',
105
- )
106
- ),
107
-
108
- array(
109
- "type" => "colorpicker",
110
- "heading" => __( 'Background', 'timeline' ),
111
- "param_name" => "bgclr",
112
- "description" => __( 'Center dot background color', 'timeline' ),
113
- "group" => 'Timeline Center',
114
- ),
115
-
116
- array(
117
- "type" => "iconpicker",
118
- "heading" => __( 'Font Icon', 'timeline' ),
119
- "param_name" => "icon",
120
- "description" => __( 'choose font awesome or leave blank', 'timeline' ),
121
- "dependency" => array('element' => "centerstyle", 'value' => 'fonticon'),
122
- "group" => 'Timeline Center',
123
- ),
124
-
125
- array(
126
- "type" => "textfield",
127
- "heading" => __( 'Font size', 'timeline' ),
128
- "param_name" => "icon_size",
129
- "description" => __( 'Icon font size e.g 17px', 'timeline' ),
130
- "dependency" => array('element' => "centerstyle", 'value' => 'fonticon'),
131
- "group" => 'Timeline Center',
132
- ),
133
-
134
- array(
135
- "type" => "colorpicker",
136
- "heading" => __( 'Arrow Color', 'timeline' ),
137
- "param_name" => "arrowclr",
138
- "description" => __( 'set timeline arrow color', 'timeline' ),
139
- "group" => 'Design Option',
140
- ),
141
-
142
- array(
143
- "type" => "css_editor",
144
- "heading" => __( 'Styles', 'timeline' ),
145
- "param_name" => "css",
146
- "group" => 'Design Option',
147
- ),
148
- )
149
- ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
render/photobook.php DELETED
@@ -1,229 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- die( '-1' );
4
- }
5
-
6
- class WPBakeryShortCode_mvc_photobook extends WPBakeryShortCode {
7
-
8
- protected function content( $atts, $content = null ) {
9
-
10
- extract( shortcode_atts( array(
11
- 'image_ids' => '',
12
- 'speed' => '1000',
13
- 'direction' => 'RTL',
14
- 'padding' => '0',
15
- 'zoom_depth' => '1',
16
- 'auto_delay' => '1000',
17
- 'page_numbers' => '',
18
- 'closed_book' => '',
19
- 'zoom' => '',
20
- 'autoplay' => '',
21
- 'turn_by_click' => '',
22
- 'keyboard' => '',
23
- 'tabs' => '',
24
- 'arrows' => '',
25
- ), $atts ) );
26
- wp_enqueue_style( 'photobook-css', plugins_url( '../css/photobook.css' , __FILE__ ));
27
- wp_enqueue_script( 'easing-js', plugins_url( '../js/jquery.easing.1.3.js' , __FILE__ ), array('jquery') );
28
- wp_enqueue_script( 'photobook-js', plugins_url( '../js/jquery.booklet.latest.min.js' , __FILE__ ), array('jquery', 'jquery-ui-core', 'jquery-ui-draggable') );
29
- wp_enqueue_script( 'zoom-js', plugins_url( '../js/jquery.zoom.min.js' , __FILE__ ), array('jquery') );
30
- $content = wpb_js_remove_wpautop($content, true);
31
- ob_start(); ?>
32
-
33
- <div class="wcp-loader">
34
-
35
- </div>
36
- <div class="flipbook"
37
- data-speed="<?php echo $speed; ?>"
38
- data-direction="<?php echo $direction; ?>"
39
- data-padding="<?php echo $padding; ?>"
40
- data-zoomdepth="<?php echo $zoom_depth; ?>"
41
- data-autodelay="<?php echo $auto_delay; ?>"
42
- data-pagenumbers="<?php echo $page_numbers; ?>"
43
- data-closedbook="<?php echo $closed_book; ?>"
44
- data-zoom="<?php echo $zoom; ?>"
45
- data-autoplay="<?php echo $autoplay; ?>"
46
- data-turnbyclick="<?php echo $turn_by_click; ?>"
47
- data-keyboard="<?php echo $keyboard; ?>"
48
- data-tabs="<?php echo $tabs; ?>"
49
- data-arrows="<?php echo $arrows; ?>"
50
- >
51
- <?php
52
- if ($image_ids != '') {
53
- $all_images = explode(',', $image_ids);
54
- foreach ($all_images as $image) {
55
- $image_url = wp_get_attachment_url( $image );
56
- echo '<div><img src="'.$image_url.'"/></div>';
57
- }
58
- }
59
- ?>
60
- </div>
61
-
62
-
63
- <?php
64
- return ob_get_clean();
65
- }
66
- }
67
-
68
-
69
- vc_map( array(
70
- "name" => __( 'Flip Book', 'photobook' ),
71
- "base" => "mvc_photobook",
72
- "category" => __('Mega Addons'),
73
- "description" => __('3D Page Flip Book', 'photobook'),
74
- "icon" => plugin_dir_url( __FILE__ ).'../icons/photobook.png',
75
- 'params' => array(
76
- array(
77
- "type" => "attach_images",
78
- "heading" => __( 'Images', 'photobook' ),
79
- "param_name" => "image_ids",
80
- "description" => __( 'Select the images that will be used as book pages', 'photobook' ),
81
- "group" => 'Pages',
82
- ),
83
-
84
- array(
85
- "type" => "vc_number",
86
- "heading" => __( 'Speed', 'photobook' ),
87
- "param_name" => "speed",
88
- "description" => __( 'Speed of the transition between pages in milliseconds eg 1000', 'photobook' ),
89
- "value" => "1000",
90
- "group" => 'Settings',
91
- ),
92
-
93
- array(
94
- "type" => "dropdown",
95
- "heading" => __( 'Reading Direction', 'photobook' ),
96
- "param_name" => "direction",
97
- "description" => __( 'Direction of the overall page organization', 'photobook' ),
98
- "group" => 'Settings',
99
- "value" => array(
100
- "Right to Left" => "RTL",
101
- "Left to Right" => "LTR",
102
- )
103
- ),
104
-
105
- array(
106
- "type" => "vc_number",
107
- "heading" => __( 'Page Padding', 'photobook' ),
108
- "param_name" => "padding",
109
- "description" => __( 'Padding added to each page wrapper', 'photobook' ),
110
- "group" => 'Settings',
111
- ),
112
-
113
- array(
114
- "type" => "vc_number",
115
- "heading" => __( 'Zoom Depth', 'photobook' ),
116
- "param_name" => "zoom_depth",
117
- "description" => __( 'The default value is 1, meaning the zoomed image should be at 100% of its natural width and height', 'photobook' ),
118
- "value" => "1",
119
- "group" => 'Settings',
120
- ),
121
-
122
- array(
123
- "type" => "vc_number",
124
- "heading" => __( 'AutoPlay delay', 'photobook' ),
125
- "param_name" => "auto_delay",
126
- "description" => __( 'The time in milliseconds between each automatic page flip transition', 'photobook' ),
127
- "group" => 'Settings',
128
- ),
129
-
130
- // options
131
-
132
- array(
133
- "type" => "checkbox",
134
- "heading" => __( 'Page Numbers', 'photobook' ),
135
- "param_name" => "page_numbers",
136
- "description" => __( 'Display page numbers on each page', 'photobook' ),
137
- "group" => 'Options',
138
- "value" => array(
139
- "Show" => "show",
140
- )
141
- ),
142
-
143
- array(
144
- "type" => "checkbox",
145
- "heading" => __( 'Closed Book', 'photobook' ),
146
- "param_name" => "closed_book",
147
- "description" => __( 'Gives the book the appearance of being closed', 'photobook' ),
148
- "group" => 'Options',
149
- "value" => array(
150
- "Enable" => "enable",
151
- )
152
- ),
153
-
154
- array(
155
- "type" => "checkbox",
156
- "heading" => __( 'Zoom on Hover', 'photobook' ),
157
- "param_name" => "zoom",
158
- "description" => __( 'Zoom in the page when hover the cursor', 'photobook' ),
159
- "group" => 'Options',
160
- "value" => array(
161
- "Enable" => "enable",
162
- )
163
- ),
164
-
165
- array(
166
- "type" => "checkbox",
167
- "heading" => __( 'AutoPlay', 'photobook' ),
168
- "param_name" => "autoplay",
169
- "description" => __( 'Enables automatic navigation. Depends on AutoPlay delay in Settings', 'photobook' ),
170
- "group" => 'Options',
171
- "value" => array(
172
- "Enable" => "enable",
173
- )
174
- ),
175
-
176
- array(
177
- "type" => "checkbox",
178
- "heading" => __( 'Turn Page by clicking Image', 'photobook' ),
179
- "param_name" => "turn_by_click",
180
- "description" => __( 'Enables manual page turning by click on page. Zooming will not work when its enabled', 'photobook' ),
181
- "group" => 'Options',
182
- "value" => array(
183
- "Enable" => "enable",
184
- )
185
- ),
186
-
187
- array(
188
- "type" => "checkbox",
189
- "heading" => __( 'Keyboard Controls', 'photobook' ),
190
- "param_name" => "keyboard",
191
- "description" => __( 'Enables page navigation using arrows of Keyboard', 'photobook' ),
192
- "group" => 'Options',
193
- "value" => array(
194
- "Enable" => "enable",
195
- )
196
- ),
197
-
198
- array(
199
- "type" => "checkbox",
200
- "heading" => __( 'Navigation Tabs', 'photobook' ),
201
- "param_name" => "tabs",
202
- "description" => __( 'Adds tabs along the top of the booklet', 'photobook' ),
203
- "group" => 'Options',
204
- "value" => array(
205
- "Show" => "show",
206
- )
207
- ),
208
-
209
- array(
210
- "type" => "checkbox",
211
- "heading" => __( 'Arrows', 'photobook' ),
212
- "param_name" => "arrows",
213
- "description" => __( 'Adds arrows on both sides of the booklet', 'photobook' ),
214
- "group" => 'Options',
215
- "value" => array(
216
- "Show" => "show",
217
- )
218
- ),
219
-
220
- array(
221
- "type" => "vc_links",
222
- "param_name" => "caption_url",
223
- "class" => "ult_param_heading",
224
- "description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;"><a href="https://1.envato.market/02aNL" target="_blank" style="text-decoration: none;">Get the Pro version for more stunning elements and customization options.</a></span>', 'ihover' ),
225
- "group" => 'Options',
226
- ),
227
- ),
228
- ) );
229
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
render/price-table/price1.php CHANGED
@@ -1,29 +1,29 @@
1
- <div class="price_table_1" style="background-color: <?php echo $price_bg; ?>; box-shadow: 0 0 9px rgba(0,0,0,0.5), 0 -3px 0px <?php echo $top_bg; ?> inset;">
2
- <div class="type" style="background-color: <?php echo $top_bg; ?>;">
3
- <div class="ribbon-right" style="display: <?php echo $offer_visibility; ?>;">
4
- <span style="background: <?php echo $offer_bg; ?>;"><?php echo $offer_text; ?></span>
5
  </div>
6
- <p style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $title_clr; ?>;">
7
- <?php echo $price_title; ?>
8
  </p>
9
  </div>
10
 
11
  <div class="plan">
12
- <div class="header" style="display: <?php echo $price_visibility; ?>;">
13
- <span class="price_curr" style="color: <?php echo $top_bg; ?>">
14
- <?php echo $price_currency; ?>
15
  </span>
16
- <span class="amount" style="color: <?php echo $top_bg; ?>; font-size: <?php echo $amountsize; ?>px;">
17
- <?php echo $price_amount; ?>
18
  </span>
19
- <p class="month" style="font-size: <?php echo $planesize; ?>px;"><?php echo $price_plan; ?></p>
20
  </div>
21
  <div class="content">
22
  <?php echo $content; ?>
23
  </div>
24
  <div class="price">
25
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="price-btn" style="font-size: <?php echo $btnsize; ?>px; background-color: <?php echo $top_bg; ?>; box-shadow: inset 0 -2px <?php echo $top_bg; ?>;-webkit-box-shadow: inset 0 -2px <?php echo $top_bg; ?>;">
26
- <?php echo $btn_text; ?>
27
  </a>
28
  </div>
29
  </div>
1
+ <div class="price_table_1" style="background-color: <?php echo esc_attr($price_bg); ?>; box-shadow: 0 0 9px rgba(0,0,0,0.5), 0 -3px 0px <?php echo esc_attr($top_bg); ?> inset;">
2
+ <div class="type" style="background-color: <?php echo esc_attr($top_bg); ?>;">
3
+ <div class="ribbon-right" style="display: <?php echo esc_attr($offer_visibility); ?>;">
4
+ <span style="background: <?php echo esc_attr($offer_bg); ?>;"><?php echo esc_attr($offer_text); ?></span>
5
  </div>
6
+ <p style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($title_clr); ?>;">
7
+ <?php echo esc_attr($price_title); ?>
8
  </p>
9
  </div>
10
 
11
  <div class="plan">
12
+ <div class="header" style="display: <?php echo esc_attr($price_visibility); ?>;">
13
+ <span class="price_curr" style="color: <?php echo esc_attr($top_bg); ?>">
14
+ <?php echo esc_attr($price_currency); ?>
15
  </span>
16
+ <span class="amount" style="color: <?php echo esc_attr($top_bg); ?>; font-size: <?php echo esc_attr($amountsize); ?>px;">
17
+ <?php echo esc_attr($price_amount); ?>
18
  </span>
19
+ <p class="month" style="font-size: <?php echo esc_attr($planesize); ?>px;"><?php echo esc_attr($price_plan); ?></p>
20
  </div>
21
  <div class="content">
22
  <?php echo $content; ?>
23
  </div>
24
  <div class="price">
25
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="price-btn" style="font-size: <?php echo esc_attr($btnsize); ?>px; background-color: <?php echo esc_attr($top_bg); ?>; box-shadow: inset 0 -2px <?php echo esc_attr($top_bg); ?>;-webkit-box-shadow: inset 0 -2px <?php echo esc_attr($top_bg); ?>;">
26
+ <?php echo esc_attr($btn_text); ?>
27
  </a>
28
  </div>
29
  </div>
render/price-table/price2.php CHANGED
@@ -1,18 +1,18 @@
1
- <div class="<?php echo $style; ?> wow bounce" data-wow-duration="1's" style="visibility: visible; animation-name: bounce;">
2
  <div class="pricing-table">
3
- <div class="plan featured" style="background: <?php echo $price_bg; ?>; border: 2px solid <?php echo $top_bg; ?>; transform: scale(1.0<?php echo $zoom; ?>);">
4
- <div class="header" style="<?php if ($style == 'mega-price-table-2') { ?> background: <?php echo $top_bg;} ?>">
5
- <h4 class="plan-title" style="font-size: <?php echo $titlesize; ?>px;color: <?php echo $title_clr; ?>; <?php if ($style == 'mega-price-table-3') { ?> background-color: <?php echo $top_bg ;} ?>">
6
- <?php echo $price_title; ?>
7
- <span class="price-title-span" style="<?php if ($style == 'mega-price-table-3') { ?> border-color: <?php echo $top_bg;} ?> transparent transparent;"></span>
8
  </h4>
9
- <div class="plan-cost"><span class="plan-price" style="color: <?php echo $amount_clr; ?>; font-size: <?php echo $amountsize; ?>px;"><?php echo $price_currency; ?><?php echo $price_amount; ?></span><span class="plan-type" style="color: <?php echo $amount_clr; ?>; font-size: <?php echo $planesize; ?>px;"><?php echo $price_plan; ?></span></div>
10
  </div>
11
  <div class="price-content">
12
  <?php echo $content; ?>
13
  </div>
14
  <div class="plan-select">
15
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="font-size: <?php echo $btnsize; ?>;background: <?php echo $top_bg; ?>;"><?php echo $btn_text; ?></a>
16
  </div>
17
  </div>
18
  </div>
1
+ <div class="<?php echo esc_attr($style); ?> wow bounce" data-wow-duration="1's" style="visibility: visible; animation-name: bounce;">
2
  <div class="pricing-table">
3
+ <div class="plan featured" style="background: <?php echo esc_attr($price_bg); ?>; border: 2px solid <?php echo esc_attr($top_bg); ?>; transform: scale(1.0<?php echo esc_attr($zoom); ?>);">
4
+ <div class="header" style="<?php if ($style == 'mega-price-table-2') { ?> background: <?php echo esc_attr($top_bg);} ?>">
5
+ <h4 class="plan-title" style="font-size: <?php echo esc_attr($titlesize); ?>px;color: <?php echo esc_attr($title_clr); ?>; <?php if ($style == 'mega-price-table-3') { ?> background-color: <?php echo esc_attr($top_bg) ;} ?>">
6
+ <?php echo esc_attr($price_title); ?>
7
+ <span class="price-title-span" style="<?php if ($style == 'mega-price-table-3') { ?> border-color: <?php echo esc_attr($top_bg);} ?> transparent transparent;"></span>
8
  </h4>
9
+ <div class="plan-cost"><span class="plan-price" style="color: <?php echo esc_attr($amount_clr); ?>; font-size: <?php echo esc_attr($amountsize); ?>px;"><?php echo esc_attr($price_currency); ?><?php echo esc_attr($price_amount); ?></span><span class="plan-type" style="color: <?php echo esc_attr($amount_clr); ?>; font-size: <?php echo esc_attr($planesize); ?>px;"><?php echo esc_attr($price_plan); ?></span></div>
10
  </div>
11
  <div class="price-content">
12
  <?php echo $content; ?>
13
  </div>
14
  <div class="plan-select">
15
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="font-size: <?php echo esc_attr($btnsize); ?>;background: <?php echo esc_attr($top_bg); ?>;"><?php echo esc_attr($btn_text); ?></a>
16
  </div>
17
  </div>
18
  </div>
render/price-table/price4.php CHANGED
@@ -1,17 +1,17 @@
1
- <div class="<?php echo $style; ?> wow bounce" data-wow-duration="1's" style="visibility: visible; animation-name: bounce;">
2
  <div class="pricing-table">
3
- <div class="plan featured" style="background: <?php echo $price_bg; ?>; border: 2px solid <?php echo $top_bg; ?>; transform: scale(1.0<?php echo $zoom; ?>);">
4
  <div class="header">
5
- <h4 class="plan-title" style="color: <?php echo $title_clr; ?>; font-size: <?php echo $titlesize; ?>px;">
6
- <?php echo $price_title; ?>
7
  </h4>
8
- <div class="plan-cost"><span class="plan-price" style="color: <?php echo $amount_clr; ?>;font-size: <?php echo $amountsize; ?>px;"><?php echo $price_currency; ?><?php echo $price_amount; ?></span><span class="plan-type" style="color: <?php echo $amount_clr; ?>;font-size: <?php echo $planesize; ?>px;"><?php echo $price_plan; ?></span></div>
9
  </div>
10
  <div class="price-content">
11
  <?php echo $content; ?>
12
  </div>
13
  <div class="plan-select">
14
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="font-size: <?php echo $btnsize; ?>px; background: <?php echo $top_bg; ?>;"><?php echo $btn_text; ?></a>
15
  </div>
16
  </div>
17
  </div>
1
+ <div class="<?php echo esc_attr($style); ?> wow bounce" data-wow-duration="1's" style="visibility: visible; animation-name: bounce;">
2
  <div class="pricing-table">
3
+ <div class="plan featured" style="background: <?php echo esc_attr($price_bg); ?>; border: 2px solid <?php echo esc_attr($top_bg); ?>; transform: scale(1.0<?php echo esc_attr($zoom); ?>);">
4
  <div class="header">
5
+ <h4 class="plan-title" style="color: <?php echo esc_attr($title_clr); ?>; font-size: <?php echo esc_attr($titlesize); ?>px;">
6
+ <?php echo esc_attr($price_title); ?>
7
  </h4>
8
+ <div class="plan-cost"><span class="plan-price" style="color: <?php echo esc_attr($amount_clr); ?>;font-size: <?php echo esc_attr($amountsize); ?>px;"><?php echo esc_attr($price_currency); ?><?php echo esc_attr($price_amount); ?></span><span class="plan-type" style="color: <?php echo esc_attr($amount_clr); ?>;font-size: <?php echo esc_attr($planesize); ?>px;"><?php echo esc_attr($price_plan); ?></span></div>
9
  </div>
10
  <div class="price-content">
11
  <?php echo $content; ?>
12
  </div>
13
  <div class="plan-select">
14
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="font-size: <?php echo esc_attr($btnsize); ?>px; background: <?php echo esc_attr($top_bg); ?>;"><?php echo esc_attr($btn_text); ?></a>
15
  </div>
16
  </div>
17
  </div>
render/price-table/price5.php CHANGED
@@ -1,18 +1,18 @@
1
- <div class="<?php echo $style; ?> wow bounce" data-wow-duration="1's" style="visibility: visible; animation-name: bounce;">
2
  <div class="pricing-table">
3
- <div class="plan featured" style="background: <?php echo $price_bg; ?>; border: 2px solid <?php echo $top_bg; ?>; transform: scale(1.0<?php echo $zoom; ?>);">
4
- <div class="header" style="background-color: <?php echo $top_bg ?>">
5
- <h4 class="plan-title" style="color: <?php echo $title_clr; ?>; font-size: <?php echo $titlesize; ?>px;">
6
- <?php echo $price_title; ?>
7
  </h4>
8
- <div class="plan-cost"><span class="plan-price" style="color: <?php echo $amount_clr; ?>;font-size: <?php echo $amountsize; ?>px;"><?php echo $price_currency; ?><?php echo $price_amount; ?></span><span class="plan-type" style="color: <?php echo $amount_clr; ?>;font-size: <?php echo $planesize; ?>px;"><?php echo $price_plan; ?></span></div>
9
- <span class="price-title5-span" style="border-color: <?php echo $top_bg ?> transparent transparent transparent;"></span>
10
  </div>
11
  <div class="price-content">
12
  <?php echo $content; ?>
13
  </div>
14
  <div class="plan-select">
15
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="font-size: <?php echo $btnsize; ?>px; background: <?php echo $top_bg; ?>;"><?php echo $btn_text; ?></a>
16
  </div>
17
  </div>
18
  </div>
1
+ <div class="<?php echo esc_attr($style); ?> wow bounce" data-wow-duration="1's" style="visibility: visible; animation-name: bounce;">
2
  <div class="pricing-table">
3
+ <div class="plan featured" style="background: <?php echo esc_attr($price_bg); ?>; border: 2px solid <?php echo esc_attr($top_bg); ?>; transform: scale(1.0<?php echo esc_attr($zoom); ?>);">
4
+ <div class="header" style="background-color: <?php echo esc_attr($top_bg) ?>">
5
+ <h4 class="plan-title" style="color: <?php echo esc_attr($title_clr); ?>; font-size: <?php echo esc_attr($titlesize); ?>px;">
6
+ <?php echo esc_attr($price_title); ?>
7
  </h4>
8
+ <div class="plan-cost"><span class="plan-price" style="color: <?php echo esc_attr($amount_clr); ?>;font-size: <?php echo esc_attr($amountsize); ?>px;"><?php echo esc_attr($price_currency); ?><?php echo esc_attr($price_amount); ?></span><span class="plan-type" style="color: <?php echo esc_attr($amount_clr); ?>;font-size: <?php echo esc_attr($planesize); ?>px;"><?php echo esc_attr($price_plan); ?></span></div>
9
+ <span class="price-title5-span" style="border-color: <?php echo esc_attr($top_bg) ?> transparent transparent transparent;"></span>
10
  </div>
11
  <div class="price-content">
12
  <?php echo $content; ?>
13
  </div>
14
  <div class="plan-select">
15
+ <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" style="font-size: <?php echo esc_attr($btnsize); ?>px; background: <?php echo esc_attr($top_bg); ?>;"><?php echo esc_attr($btn_text); ?></a>
16
  </div>
17
  </div>
18
  </div>
render/price.php CHANGED
@@ -22,8 +22,8 @@ class WPBakeryShortCode_mvc_price_listing extends WPBakeryShortCode {
22
  'btn_url' => '',
23
  'price_bg' => '',
24
  'top_bg' => '',
25
- 'title_clr' => '',
26
- 'amount_clr' => '',
27
  'featured' => 'disable',
28
  'zoom' => '0',
29
  'titlesize' => '',
@@ -34,6 +34,8 @@ class WPBakeryShortCode_mvc_price_listing extends WPBakeryShortCode {
34
  $btn_url = vc_build_link($btn_url);
35
  wp_enqueue_style( 'price-listing-css', plugins_url( '../css/price_listing.css' , __FILE__ ));
36
  $content = wpb_js_remove_wpautop($content, true);
 
 
37
  ob_start(); ?>
38
 
39
 
22
  'btn_url' => '',
23
  'price_bg' => '',
24
  'top_bg' => '',
25
+ 'title_clr' => '',
26
+ 'amount_clr' => '',
27
  'featured' => 'disable',
28
  'zoom' => '0',
29
  'titlesize' => '',
34
  $btn_url = vc_build_link($btn_url);
35
  wp_enqueue_style( 'price-listing-css', plugins_url( '../css/price_listing.css' , __FILE__ ));
36
  $content = wpb_js_remove_wpautop($content, true);
37
+ $content = str_replace("<script>","&#60;script&#62;",$content);
38
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
39
  ob_start(); ?>
40
 
41
 
render/slider_father.php DELETED
@@ -1,5 +0,0 @@
1
- <div class="bx-wrapper" style="max-width: <?php echo $width; ?>; width: 100%; margin: auto;">
2
- <ul class="bxslider">
3
- <?php echo $content; ?>
4
- </ul>
5
- </div>
 
 
 
 
 
render/slider_son.php DELETED
@@ -1,6 +0,0 @@
1
- <li>
2
- <img style="height: <?php echo $height; ?>; width: 100%;" src="<?php echo $image_url; ?>" />
3
- <div class="slider-content <?php echo $css_class; ?>" style="top: 0;">
4
- <?php echo $content; ?>
5
- </div>
6
- </li>
 
 
 
 
 
 
render/social_father.php CHANGED
@@ -13,7 +13,7 @@ class WPBakeryShortCode_social_vc_father extends WPBakeryShortCodesContainer {
13
  $content = wpb_js_remove_wpautop($content, true);
14
  wp_enqueue_style( 'social-icons-css', plugins_url( 'css/socialicons.css' , __FILE__ ));
15
  ob_start(); ?>
16
- <div style="text-align: <?php echo $align; ?>;">
17
  <div id="mega_social_icons" style="display: inline-flex;">
18
  <?php echo $content; ?>
19
  </div>
13
  $content = wpb_js_remove_wpautop($content, true);
14
  wp_enqueue_style( 'social-icons-css', plugins_url( 'css/socialicons.css' , __FILE__ ));
15
  ob_start(); ?>
16
+ <div style="text-align: <?php echo esc_attr($align); ?>;">
17
  <div id="mega_social_icons" style="display: inline-flex;">
18
  <?php echo $content; ?>
19
  </div>
render/social_son.php CHANGED
@@ -23,54 +23,55 @@ class WPBakeryShortCode_social_vc_son extends WPBakeryShortCode {
23
  'hoverclr' => '',
24
  'hoverbg' => '',
25
  ), $atts ) );
 
26
  $content = wpb_js_remove_wpautop($content, true);
27
  wp_enqueue_style( 'social-icons-css', plugins_url( '../css/socialicons.css' , __FILE__ ));
28
  ob_start(); ?>
29
  <?php if ($style == 'default') { ?>
30
- <div id="mega-social-btn" style="margin: 0 <?php echo $margin; ?>px;">
31
- <a href="<?php echo $url; ?>" target="<?php echo $target; ?>" style="font-size: <?php echo $size; ?>px; border-radius: <?php echo $radius; ?>; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>; width: <?php echo $width; ?>px; height: <?php echo $height; ?>px; line-height: <?php echo $height; ?>px;" data-onhovercolor="<?php echo $hoverclr; ?>" data-onhoverbg="<?php echo $hoverbg; ?>" data-onleavebg="<?php echo $bgclr; ?>" data-onleavecolor="<?php echo $clr; ?>">
32
- <i class="<?php echo $icon; ?>" aria-hidden="true"></i>
33
  </a>
34
  </div>
35
  <?php }
36
 
37
  if ($style == 'effect1') { ?>
38
  <!-- Mega Social Icons Style 1 -->
39
- <div class="mega-social-icons" style="margin: 0 <?php echo $margin; ?>px;">
40
- <a href="<?php echo $url ?>" target="<?php echo $target; ?>" class="icon-button" style="font-size: <?php echo $size; ?>px; width: <?php echo $width ?>px; height: <?php echo $width; ?>px; line-height: <?php echo $width; ?>px; border-radius: <?php echo $radius; ?>; background-color: <?php echo $bgclr; ?>;">
41
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="color: <?php echo $clr ?>; width: <?php echo $width ?>px; height: <?php echo $height; ?>px; line-height: <?php echo $height; ?>px;" data-onhovercolor="<?php echo $hoverclr; ?>" data-onleavecolor="<?php echo $clr; ?>"></i>
42
- <span style="border-radius: <?php echo $radius; ?>; background-color: <?php echo $hoverbg; ?>; width: <?php echo $width ?>px; height: <?php echo $height; ?>px;"></span>
43
  </a>
44
  </div>
45
  <?php }
46
 
47
  if ($style == 'effect2') { ?>
48
- <div class="mega-social-icons2" style="margin: 0 <?php echo $margin; ?>px;">
49
- <a href="<?php echo $url ?>" target="<?php echo $target; ?>" class="icoRss" style="font-size: <?php echo $size; ?>px; border-radius: <?php echo $radius; ?>; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>; width: <?php echo $width; ?>px; height: <?php echo $height; ?>px; line-height: <?php echo $height; ?>px;" data-onhovercolor="<?php echo $hoverclr; ?>" data-onhoverbg="<?php echo $hoverbg; ?>" data-onleavebg="<?php echo $bgclr; ?>" data-onleavecolor="<?php echo $clr; ?>">
50
- <i class="<?php echo $icon; ?>" aria-hidden="true"></i>
51
  </a>
52
  </div>
53
  <?php }
54
 
55
  if ($style == 'effect3') { ?>
56
- <div id="mega-social-icons3" style="margin: 0 <?php echo $margin; ?>px;">
57
  <div class="social-buttons">
58
- <a class="social-button" href="<?php echo $url ?>" target="<?php echo $target; ?>" style="font-size: <?php echo $size; ?>px; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>; width: <?php echo $width ?>px; height: <?php echo $height; ?>px; line-height: <?php echo $height-4; ?>px;" data-onhovercolor="<?php echo $hoverclr; ?>" data-onleavecolor="<?php echo $clr; ?>">
59
- <span style="background: <?php echo $hoverbg; ?>"></span>
60
- <i class="<?php echo $icon; ?>"></i>
61
  </a>
62
  </div>
63
  </div>
64
  <?php }
65
 
66
  if ($style == 'effect4') { ?>
67
- <a class="social-button" href="<?php echo $url ?>" target="<?php echo $target; ?>">
68
- <div id="dualbtn" style="border-radius: <?php echo $radius; ?>; width: <?php echo $width ?>; font-size: <?php echo $size ?>; background: <?php echo $bgclr; ?>; margin: 0 <?php echo $margin; ?>px;">
69
- <div class="btnicon" style="height: <?php echo $height-12; ?>px; line-height: <?php echo $height-12; ?>px;">
70
- <i class="<?php echo $icon; ?>" style="color: <?php echo $clr; ?>;"></i>
71
  </div>
72
- <div class="btntext" style="height: <?php echo $height-12; ?>px; line-height: <?php echo $height-12; ?>px;">
73
- <span style="color: <?php echo $clr; ?>;"><?php echo $text; ?></span>
74
  </div>
75
  <div class="clearfix"></div>
76
  </div>
@@ -78,9 +79,9 @@ class WPBakeryShortCode_social_vc_son extends WPBakeryShortCode {
78
  <?php }
79
 
80
  if ($style == 'effect5') { ?>
81
- <div id="mega-social-btn" class="text-shadow" style="margin: 0 <?php echo $margin; ?>px;">
82
- <a href="<?php echo $url; ?>" target="<?php echo $target; ?>" style="font-size: <?php echo $size; ?>px; border-radius: <?php echo $radius; ?>; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>; width: <?php echo $width; ?>px; height: <?php echo $height; ?>px; line-height: <?php echo $height; ?>px;" data-onhovercolor="<?php echo $hoverclr; ?>" data-onhoverbg="<?php echo $hoverbg; ?>" data-onleavebg="<?php echo $bgclr; ?>" data-onleavecolor="<?php echo $clr; ?>">
83
- <i class="<?php echo $icon; ?>" aria-hidden="true"></i>
84
  </a>
85
  </div>
86
  <?php }
@@ -144,7 +145,7 @@ vc_map( array(
144
  ),
145
 
146
  array(
147
- "type" => "textfield",
148
  "heading" => __( 'Social URL', 'socialicon' ),
149
  "param_name" => "url",
150
  "description" => __( 'write social url', 'socialicon' ),
23
  'hoverclr' => '',
24
  'hoverbg' => '',
25
  ), $atts ) );
26
+ $url = vc_build_link($url);
27
  $content = wpb_js_remove_wpautop($content, true);
28
  wp_enqueue_style( 'social-icons-css', plugins_url( '../css/socialicons.css' , __FILE__ ));
29
  ob_start(); ?>
30
  <?php if ($style == 'default') { ?>
31
+ <div id="mega-social-btn" style="margin: 0 <?php echo esc_attr($margin); ?>px;">
32
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="font-size: <?php echo esc_attr($size); ?>px; border-radius: <?php echo esc_attr($radius); ?>; color: <?php echo esc_attr($clr); ?>; background: <?php echo esc_attr($bgclr); ?>; width: <?php echo esc_attr($width); ?>px; height: <?php echo esc_attr($height); ?>px; line-height: <?php echo esc_attr($height); ?>px;" data-onhovercolor="<?php echo esc_attr($hoverclr); ?>" data-onhoverbg="<?php echo esc_attr($hoverbg); ?>" data-onleavebg="<?php echo esc_attr($bgclr); ?>" data-onleavecolor="<?php echo esc_attr($clr); ?>">
33
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true"></i>
34
  </a>
35
  </div>
36
  <?php }
37
 
38
  if ($style == 'effect1') { ?>
39
  <!-- Mega Social Icons Style 1 -->
40
+ <div class="mega-social-icons" style="margin: 0 <?php echo esc_attr($margin); ?>px;">
41
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="icon-button" style="font-size: <?php echo esc_attr($size); ?>px; width: <?php echo esc_attr($width) ?>px; height: <?php echo esc_attr($width); ?>px; line-height: <?php echo esc_attr($width); ?>px; border-radius: <?php echo esc_attr($radius); ?>; background-color: <?php echo esc_attr($bgclr); ?>;">
42
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true" style="color: <?php echo esc_attr($clr) ?>; width: <?php echo esc_attr($width) ?>px; height: <?php echo esc_attr($height); ?>px; line-height: <?php echo esc_attr($height); ?>px;" data-onhovercolor="<?php echo esc_attr($hoverclr); ?>" data-onleavecolor="<?php echo esc_attr($clr); ?>"></i>
43
+ <span style="border-radius: <?php echo esc_attr($radius); ?>; background-color: <?php echo esc_attr($hoverbg); ?>; width: <?php echo esc_attr($width) ?>px; height: <?php echo esc_attr($height); ?>px;"></span>
44
  </a>
45
  </div>
46
  <?php }
47
 
48
  if ($style == 'effect2') { ?>
49
+ <div class="mega-social-icons2" style="margin: 0 <?php echo esc_attr($margin); ?>px;">
50
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" class="icoRss" style="font-size: <?php echo esc_attr($size); ?>px; border-radius: <?php echo esc_attr($radius); ?>; color: <?php echo esc_attr($clr); ?>; background: <?php echo esc_attr($bgclr); ?>; width: <?php echo esc_attr($width); ?>px; height: <?php echo esc_attr($height); ?>px; line-height: <?php echo esc_attr($height); ?>px;" data-onhovercolor="<?php echo esc_attr($hoverclr); ?>" data-onhoverbg="<?php echo esc_attr($hoverbg); ?>" data-onleavebg="<?php echo esc_attr($bgclr); ?>" data-onleavecolor="<?php echo esc_attr($clr); ?>">
51
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true"></i>
52
  </a>
53
  </div>
54
  <?php }
55
 
56
  if ($style == 'effect3') { ?>
57
+ <div id="mega-social-icons3" style="margin: 0 <?php echo esc_attr($margin); ?>px;">
58
  <div class="social-buttons">
59
+ <a class="social-button" href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="font-size: <?php echo esc_attr($size); ?>px; color: <?php echo esc_attr($clr); ?>; background: <?php echo esc_attr($bgclr); ?>; width: <?php echo esc_attr($width) ?>px; height: <?php echo esc_attr($height); ?>px; line-height: <?php echo esc_attr($height)-4; ?>px;" data-onhovercolor="<?php echo esc_attr($hoverclr); ?>" data-onleavecolor="<?php echo esc_attr($clr); ?>">
60
+ <span style="background: <?php echo esc_attr($hoverbg); ?>"></span>
61
+ <i class="<?php echo esc_attr($icon); ?>"></i>
62
  </a>
63
  </div>
64
  </div>
65
  <?php }
66
 
67
  if ($style == 'effect4') { ?>
68
+ <a class="social-button" href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>">
69
+ <div id="dualbtn" style="border-radius: <?php echo esc_attr($radius); ?>; width: <?php echo esc_attr($width) ?>px; font-size: <?php echo esc_attr($size) ?>px; background: <?php echo esc_attr($bgclr); ?>; margin: 0 <?php echo esc_attr($margin); ?>px;">
70
+ <div class="btnicon" style="height: <?php echo esc_attr($height)-12; ?>px; line-height: <?php echo esc_attr($height)-12; ?>px;">
71
+ <i class="<?php echo esc_attr($icon); ?>" style="color: <?php echo esc_attr($clr); ?>;"></i>
72
  </div>
73
+ <div class="btntext" style="height: <?php echo esc_attr($height)-12; ?>px; line-height: <?php echo esc_attr($height)-12; ?>px;">
74
+ <span style="color: <?php echo esc_attr($clr); ?>;"><?php echo esc_attr($text); ?></span>
75
  </div>
76
  <div class="clearfix"></div>
77
  </div>
79
  <?php }
80
 
81
  if ($style == 'effect5') { ?>
82
+ <div id="mega-social-btn" class="text-shadow" style="margin: 0 <?php echo esc_attr($margin); ?>px;">
83
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>" style="font-size: <?php echo esc_attr($size); ?>px; border-radius: <?php echo esc_attr($radius); ?>; color: <?php echo esc_attr($clr); ?>; background: <?php echo esc_attr($bgclr); ?>; width: <?php echo esc_attr($width); ?>px; height: <?php echo esc_attr($height); ?>px; line-height: <?php echo esc_attr($height); ?>px;" data-onhovercolor="<?php echo esc_attr($hoverclr); ?>" data-onhoverbg="<?php echo esc_attr($hoverbg); ?>" data-onleavebg="<?php echo esc_attr($bgclr); ?>" data-onleavecolor="<?php echo esc_attr($clr); ?>">
84
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true"></i>
85
  </a>
86
  </div>
87
  <?php }
145
  ),
146
 
147
  array(
148
+ "type" => "vc_link",
149
  "heading" => __( 'Social URL', 'socialicon' ),
150
  "param_name" => "url",
151
  "description" => __( 'write social url', 'socialicon' ),
render/statcounter.php CHANGED
@@ -45,21 +45,21 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
45
 
46
  <!-- Counter style one -->
47
  <?php if ($counter_style == 'style') { ?>
48
- <div id="mega_count_bar" class="<?php echo $css_class; ?> messive-wrapper-counter" data-delay="<?php echo $count_interv; ?>" data-time="<?php echo $count_speed; ?>">
49
  <div class="mega_count_img">
50
  <?php if ($sec_style == 'image') { ?>
51
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" width="<?php echo $image_width; ?>px" height="<?php echo $image_height; ?>px">
52
  <?php } ?>
53
  <?php if ($sec_style == 'icon') { ?>
54
- <i class="<?php echo $count_icon; ?>" style="width: <?php echo $image_width; ?>px; height: <?php echo $image_height; ?>px; line-height: <?php echo $image_height-4; ?>px; background: <?php echo $icon_bg; ?>; border-radius: <?php echo $icon_radius; ?>; border: <?php echo $icon_style; ?>; font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
55
  <?php } ?>
56
  </div>
57
  <div class="mega_count_content" style="text-align: center;">
58
- <span class="main-counter" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>; line-height: <?php echo $lineheight; ?>;"><?php echo $stat_numb; ?></span>
59
- <span class="counter-after" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;"></span>
60
 
61
- <h3 style="font-size: <?php echo $title_size; ?>px; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
62
- <?php echo $count_title; ?>
63
  </h3>
64
  </div>
65
  </div>
@@ -67,63 +67,63 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
67
 
68
  <!-- Counter style two -->
69
  <?php if ($counter_style == 'style2') { ?>
70
- <div id="mega_count_bar" class="<?php echo $css_class; ?> messive-wrapper-counter" data-delay="<?php echo $count_interv; ?>" data-time="<?php echo $count_speed; ?>">
71
  <div class="mega_count_img">
72
  <?php if ($sec_style == 'image') { ?>
73
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" width="<?php echo $image_width; ?>px" height="<?php echo $image_height; ?>px" alt="">
74
  <?php } ?>
75
  <?php if ($sec_style == 'icon') { ?>
76
- <i class="<?php echo $count_icon; ?>" style="width: <?php echo $image_width; ?>px; height: <?php echo $image_height; ?>px; line-height: <?php echo $image_height-4; ?>px; background: <?php echo $icon_bg; ?>; border-radius: <?php echo $icon_radius; ?>; border: <?php echo $icon_style; ?>; font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
77
  <?php } ?>
78
  </div>
79
  <div class="mega_count_content" style="text-align: center;">
80
- <h3 style="font-size: <?php echo $title_size; ?>px; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>; margin-bottom: 0px;">
81
- <?php echo $count_title; ?>
82
  </h3>
83
- <hr style="margin:<?php echo $lineheight; ?>px auto;">
84
- <span class="main-counter" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;"><?php echo $stat_numb; ?></span>
85
- <span class="counter-after" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;"></span>
86
  </div>
87
  </div>
88
  <?php } ?>
89
 
90
  <!-- Counter style three -->
91
  <?php if ($counter_style == 'style3') { ?>
92
- <div id="mega_count_bar_2" class="<?php echo $css_class; ?> messive-wrapper-counter" data-delay="<?php echo $count_interv; ?>" data-time="<?php echo $count_speed; ?>">
93
  <div class="mega_count_img">
94
  <?php if ($sec_style == 'image') { ?>
95
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" width="<?php echo $image_width; ?>px" height="<?php echo $image_height; ?>px" alt="">
96
  <?php } ?>
97
  <?php if ($sec_style == 'icon') { ?>
98
- <i class="<?php echo $count_icon; ?>" style="width: <?php echo $image_width; ?>px; height: <?php echo $image_height; ?>px; line-height: <?php echo $image_height-2; ?>px; background: <?php echo $icon_bg; ?>; border-radius: <?php echo $icon_radius; ?>; border: <?php echo $icon_style; ?>; font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
99
  <?php } ?>
100
  </div>
101
  <div class="mega_count_content" style="text-align: center;">
102
- <h3 style="line-height: <?php echo $lineheight; ?>; font-size: <?php echo $title_size; ?>px; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
103
- <?php echo $count_title; ?>
104
  </h3>
105
- <span class="main-counter" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;"><?php echo $stat_numb; ?></span>
106
- <span class="counter-after" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;"></span>
107
  </div>
108
  </div>
109
  <?php } ?>
110
 
111
  <!-- Counter style four -->
112
  <?php if ($counter_style == 'style4') { ?>
113
- <div id="mega_count_bar_3" class="<?php echo $css_class; ?> messive-wrapper-counter" data-delay="<?php echo $count_interv; ?>" data-time="<?php echo $count_speed; ?>">
114
  <div class="mega_count_content">
115
- <h3 style="font-size: <?php echo $title_size; ?>px; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
116
- <?php echo $count_title; ?>
117
  </h3>
118
- <span class="main-counter" style="font-size: <?php echo $stat_size; ?>px; text-align: right; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>; line-height: <?php echo $lineheight; ?>;"><?php echo $stat_numb; ?></span>
119
- <span class="counter-after" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;"></span>
120
  </div>
121
  <div class="mega_count_img">
122
  <?php if ($sec_style == 'image') { ?>
123
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" width="<?php echo $image_width; ?>px" height="<?php echo $image_height; ?>px" alt="">
124
  <?php } ?>
125
  <?php if ($sec_style == 'icon') { ?>
126
- <i class="<?php echo $count_icon; ?>" style="width: <?php echo $image_width; ?>px; height: <?php echo $image_height; ?>px; line-height: <?php echo $image_height-2; ?>px; background: <?php echo $icon_bg; ?>; border-radius: <?php echo $icon_radius; ?>; border: <?php echo $icon_style; ?>; font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
127
  <?php } ?>
128
  </div>
129
  </div>
@@ -131,23 +131,23 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
131
 
132
  <!-- Counter style five -->
133
  <?php if ($counter_style == 'style5') { ?>
134
- <div id="mega_count_bar_4" class="<?php echo $css_class; ?> messive-wrapper-counter" data-delay="<?php echo $count_interv; ?>" data-time="<?php echo $count_speed; ?>">
135
  <div class="mega_count_content">
136
- <h3 style="font-size: <?php echo $title_size; ?>px; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
137
- <?php echo $count_title; ?>
138
  </h3>
139
  </div>
140
- <div class="mega_count_img" style="line-height: <?php echo $lineheight; ?>;">
141
  <?php if ($sec_style == 'image') { ?>
142
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" width="<?php echo $image_width; ?>px" height="<?php echo $image_height; ?>px" alt="">
143
  <?php } ?>
144
  <?php if ($sec_style == 'icon') { ?>
145
- <i class="<?php echo $count_icon; ?>" style="font-size: <?php echo $icon_size; ?>px; color: <?php echo $icon_clr; ?>;"></i>
146
  <?php } ?>
147
  </div>
148
  <div class="mega_count_content" style="text-align: center;">
149
- <span class="main-counter" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;"><?php echo $stat_numb; ?></span>
150
- <span class="counter-after" style="font-size: <?php echo $stat_size; ?>px; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;"></span>
151
  </div>
152
  </div>
153
  <?php } ?>
45
 
46
  <!-- Counter style one -->
47
  <?php if ($counter_style == 'style') { ?>
48
+ <div id="mega_count_bar" class="<?php echo esc_attr($css_class); ?> messive-wrapper-counter" data-delay="<?php echo esc_attr($count_interv); ?>" data-time="<?php echo esc_attr($count_speed); ?>">
49
  <div class="mega_count_img">
50
  <?php if ($sec_style == 'image') { ?>
51
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" width="<?php echo esc_attr($image_width); ?>px" height="<?php echo esc_attr($image_height); ?>px">
52
  <?php } ?>
53
  <?php if ($sec_style == 'icon') { ?>
54
+ <i class="<?php echo esc_attr($count_icon); ?>" style="width: <?php echo esc_attr($image_width); ?>px; height: <?php echo esc_attr($image_height); ?>px; line-height: <?php echo esc_attr($image_height)-4; ?>px; background: <?php echo esc_attr($icon_bg); ?>; border-radius: <?php echo esc_attr($icon_radius); ?>; border: <?php echo esc_attr($icon_style); ?>; font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
55
  <?php } ?>
56
  </div>
57
  <div class="mega_count_content" style="text-align: center;">
58
+ <span class="main-counter" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>; line-height: <?php echo esc_attr($lineheight); ?>;"><?php echo esc_attr($stat_numb); ?></span>
59
+ <span class="counter-after" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>;"></span>
60
 
61
+ <h3 style="font-size: <?php echo esc_attr($title_size); ?>px; font-weight: <?php echo esc_attr($title_font); ?>; color: <?php echo esc_attr($title_clr); ?>;">
62
+ <?php echo esc_attr($count_title); ?>
63
  </h3>
64
  </div>
65
  </div>
67
 
68
  <!-- Counter style two -->
69
  <?php if ($counter_style == 'style2') { ?>
70
+ <div id="mega_count_bar" class="<?php echo esc_attr($css_class); ?> messive-wrapper-counter" data-delay="<?php echo esc_attr($count_interv); ?>" data-time="<?php echo esc_attr($count_speed); ?>">
71
  <div class="mega_count_img">
72
  <?php if ($sec_style == 'image') { ?>
73
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" width="<?php echo esc_attr($image_width); ?>px" height="<?php echo esc_attr($image_height); ?>px" alt="">
74
  <?php } ?>
75
  <?php if ($sec_style == 'icon') { ?>
76
+ <i class="<?php echo esc_attr($count_icon); ?>" style="width: <?php echo esc_attr($image_width); ?>px; height: <?php echo esc_attr($image_height); ?>px; line-height: <?php echo esc_attr($image_height)-4; ?>px; background: <?php echo esc_attr($icon_bg); ?>; border-radius: <?php echo esc_attr($icon_radius); ?>; border: <?php echo esc_attr($icon_style); ?>; font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
77
  <?php } ?>
78
  </div>
79
  <div class="mega_count_content" style="text-align: center;">
80
+ <h3 style="font-size: <?php echo esc_attr($title_size); ?>px; font-weight: <?php echo esc_attr($title_font); ?>; color: <?php echo esc_attr($title_clr); ?>; margin-bottom: 0px;">
81
+ <?php echo esc_attr($count_title); ?>
82
  </h3>
83
+ <hr style="margin:<?php echo esc_attr($lineheight); ?>px auto;">
84
+ <span class="main-counter" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>;"><?php echo esc_attr($stat_numb); ?></span>
85
+ <span class="counter-after" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>;"></span>
86
  </div>
87
  </div>
88
  <?php } ?>
89
 
90
  <!-- Counter style three -->
91
  <?php if ($counter_style == 'style3') { ?>
92
+ <div id="mega_count_bar_2" class="<?php echo esc_attr($css_class); ?> messive-wrapper-counter" data-delay="<?php echo esc_attr($count_interv); ?>" data-time="<?php echo esc_attr($count_speed); ?>">
93
  <div class="mega_count_img">
94
  <?php if ($sec_style == 'image') { ?>
95
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" width="<?php echo esc_attr($image_width); ?>px" height="<?php echo esc_attr($image_height); ?>px" alt="">
96
  <?php } ?>
97
  <?php if ($sec_style == 'icon') { ?>
98
+ <i class="<?php echo esc_attr($count_icon); ?>" style="width: <?php echo esc_attr($image_width); ?>px; height: <?php echo esc_attr($image_height); ?>px; line-height: <?php echo esc_attr($image_height)-2; ?>px; background: <?php echo esc_attr($icon_bg); ?>; border-radius: <?php echo esc_attr($icon_radius); ?>; border: <?php echo esc_attr($icon_style); ?>; font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
99
  <?php } ?>
100
  </div>
101
  <div class="mega_count_content" style="text-align: center;">
102
+ <h3 style="line-height: <?php echo esc_attr($lineheight); ?>; font-size: <?php echo esc_attr($title_size); ?>px; font-weight: <?php echo esc_attr($title_font); ?>; color: <?php echo esc_attr($title_clr); ?>;">
103
+ <?php echo esc_attr($count_title); ?>
104
  </h3>
105
+ <span class="main-counter" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>;"><?php echo esc_attr($stat_numb); ?></span>
106
+ <span class="counter-after" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>;"></span>
107
  </div>
108
  </div>
109
  <?php } ?>
110
 
111
  <!-- Counter style four -->
112
  <?php if ($counter_style == 'style4') { ?>
113
+ <div id="mega_count_bar_3" class="<?php echo esc_attr($css_class); ?> messive-wrapper-counter" data-delay="<?php echo esc_attr($count_interv); ?>" data-time="<?php echo esc_attr($count_speed); ?>">
114
  <div class="mega_count_content">
115
+ <h3 style="font-size: <?php echo esc_attr($title_size); ?>px; font-weight: <?php echo esc_attr($title_font); ?>; color: <?php echo esc_attr($title_clr); ?>;">
116
+ <?php echo esc_attr($count_title); ?>
117
  </h3>
118
+ <span class="main-counter" style="font-size: <?php echo esc_attr($stat_size); ?>px; text-align: right; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>; line-height: <?php echo esc_attr($lineheight); ?>;"><?php echo esc_attr($stat_numb); ?></span>
119
+ <span class="counter-after" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>;"></span>
120
  </div>
121
  <div class="mega_count_img">
122
  <?php if ($sec_style == 'image') { ?>
123
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" width="<?php echo esc_attr($image_width); ?>px" height="<?php echo esc_attr($image_height); ?>px" alt="">
124
  <?php } ?>
125
  <?php if ($sec_style == 'icon') { ?>
126
+ <i class="<?php echo esc_attr($count_icon); ?>" style="width: <?php echo esc_attr($image_width); ?>px; height: <?php echo esc_attr($image_height); ?>px; line-height: <?php echo esc_attr($image_height)-2; ?>px; background: <?php echo esc_attr($icon_bg); ?>; border-radius: <?php echo esc_attr($icon_radius); ?>; border: <?php echo esc_attr($icon_style); ?>; font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
127
  <?php } ?>
128
  </div>
129
  </div>
131
 
132
  <!-- Counter style five -->
133
  <?php if ($counter_style == 'style5') { ?>
134
+ <div id="mega_count_bar_4" class="<?php echo esc_attr($css_class); ?> messive-wrapper-counter" data-delay="<?php echo esc_attr($count_interv); ?>" data-time="<?php echo esc_attr($count_speed); ?>">
135
  <div class="mega_count_content">
136
+ <h3 style="font-size: <?php echo esc_attr($title_size); ?>px; font-weight: <?php echo esc_attr($title_font); ?>; color: <?php echo esc_attr($title_clr); ?>;">
137
+ <?php echo esc_attr($count_title); ?>
138
  </h3>
139
  </div>
140
+ <div class="mega_count_img" style="line-height: <?php echo esc_attr($lineheight); ?>;">
141
  <?php if ($sec_style == 'image') { ?>
142
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" width="<?php echo esc_attr($image_width); ?>px" height="<?php echo esc_attr($image_height); ?>px" alt="">
143
  <?php } ?>
144
  <?php if ($sec_style == 'icon') { ?>
145
+ <i class="<?php echo esc_attr($count_icon); ?>" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: <?php echo esc_attr($icon_clr); ?>;"></i>
146
  <?php } ?>
147
  </div>
148
  <div class="mega_count_content" style="text-align: center;">
149
+ <span class="main-counter" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>;"><?php echo esc_attr($stat_numb); ?></span>
150
+ <span class="counter-after" style="font-size: <?php echo esc_attr($stat_size); ?>px; font-weight: <?php echo esc_attr($stat_font); ?>; color: <?php echo esc_attr($stat_clr); ?>;"></span>
151
  </div>
152
  </div>
153
  <?php } ?>
render/team-profile/style1.php CHANGED
@@ -1,94 +1,94 @@
1
  <?php if ($member_visibility == 'grow') { ?>
2
- <div class="mega_team_case <?php echo $classname; ?>" style="width: <?php echo $pro_size; ?>px;">
3
  <div class="mega_team_wrap">
4
  <div class="member-image">
5
  <?php if (isset($url) && $url != '') { ?>
6
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>"><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
7
  <?php } ?>
8
  <?php if (isset($url) && $url == NULL) { ?>
9
- <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
10
  <?php } ?>
11
  </div>
12
- <div class="member-name" style="color: <?php echo $memberproclr; ?>; font-size: <?php echo $member_txt_size; ?>px;">
13
- <?php echo $memb_name; ?>
14
- <span style="background-color: <?php echo $member_clr; ?>; color: <?php echo $memberproclr; ?>; font-size: <?php echo $pro_txt_size; ?>px;">
15
- <?php echo $memb_prof; ?>
16
  </span>
17
  </div>
18
  </div>
19
- <div class="member-desc" style="color: <?php echo $about_clr; ?>; font-size: <?php echo $about_txt_size; ?>px;">
20
- <?php echo $memb_about; ?>
21
  </div>
22
- <div class="member-info" style="font-size: <?php echo $info_size; ?>px; color: <?php echo $info_clr; ?>">
23
  <?php if (!empty($memb_email)) { ?>
24
- <p><i class="fa fa-envelope" aria-hidden="true"></i> <?php echo $memb_email; ?></p>
25
  <?php } ?>
26
  <?php if (!empty($memb_url)) { ?>
27
- <p><i class="fa fa-globe" aria-hidden="true"></i> <?php echo $memb_url; ?></p>
28
  <?php } ?>
29
  <?php if (!empty($memb_addr)) { ?>
30
- <p><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo $memb_addr; ?></p>
31
  <?php } ?>
32
  <?php if (!empty($memb_numb)) { ?>
33
- <p><i class="fa fa-phone-square" aria-hidden="true"></i> <?php echo $memb_numb; ?></p>
34
  <?php } ?>
35
  </div>
36
  <div class="member-skills">
37
  <?php if (!empty($memb_skill)) { ?>
38
- <div class="skill-label"><?php echo $memb_skill; ?></div>
39
  <div class="skill-prog">
40
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_perl; ?>%; background-color: <?php echo $member_clr; ?>;">
41
  </div>
42
  </div>
43
  <?php } ?>
44
 
45
  <?php if (!empty($memb_skill2)) { ?>
46
- <div class="skill-label"><?php echo $memb_skill2; ?></div>
47
  <div class="skill-prog">
48
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per2; ?>%; background-color: <?php echo $member_clr; ?>;">
49
  </div>
50
  </div>
51
  <?php } ?>
52
 
53
  <?php if (!empty($memb_skill3)) { ?>
54
- <div class="skill-label"><?php echo $memb_skill3; ?></div>
55
  <div class="skill-prog">
56
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per3; ?>%; background-color: <?php echo $member_clr; ?>;">
57
  </div>
58
  </div>
59
  <?php } ?>
60
 
61
  <?php if (!empty($memb_skill4)) { ?>
62
- <div class="skill-label"><?php echo $memb_skill4; ?></div>
63
  <div class="skill-prog">
64
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per4; ?>%; background-color: <?php echo $member_clr; ?>;">
65
  </div>
66
  </div>
67
  <?php } ?>
68
 
69
  <?php if (!empty($memb_skill5)) { ?>
70
- <div class="skill-label"><?php echo $memb_skill5; ?></div>
71
  <div class="skill-prog">
72
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per5; ?>%; background-color: <?php echo $member_clr; ?>;">
73
  </div>
74
  </div>
75
  <?php } ?>
76
  </div>
77
  <div class="member-social">
78
- <a href="<?php echo $social_url; ?>" style="background-color: <?php echo $social_clr; ?>" target="_blank">
79
- <i class="<?php echo $social_icon; ?>"></i>
80
  </a>
81
- <a href="<?php echo $social_url2; ?>" style="background-color: <?php echo $social_clr2; ?>" target="_blank">
82
- <i class="<?php echo $social_icon2; ?>"></i>
83
  </a>
84
- <a href="<?php echo $social_url3; ?>" style="background-color: <?php echo $social_clr3; ?>" target="_blank">
85
- <i class="<?php echo $social_icon3; ?>"></i>
86
  </a>
87
- <a href="<?php echo $social_url4; ?>" style="background-color: <?php echo $social_clr4; ?>" target="_blank">
88
- <i class="<?php echo $social_icon4; ?>"></i>
89
  </a>
90
- <a href="<?php echo $social_url5; ?>" style="background-color: <?php echo $social_clr5; ?>" target="_blank">
91
- <i class="<?php echo $social_icon5; ?>"></i>
92
  </a>
93
  <?php if (!empty($social_icon6)) { ?>
94
 
1
  <?php if ($member_visibility == 'grow') { ?>
2
+ <div class="mega_team_case <?php echo esc_attr($classname); ?>" style="width: <?php echo esc_attr($pro_size); ?>px;">
3
  <div class="mega_team_wrap">
4
  <div class="member-image">
5
  <?php if (isset($url) && $url != '') { ?>
6
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>"><img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>"></a>
7
  <?php } ?>
8
  <?php if (isset($url) && $url == NULL) { ?>
9
+ <a><img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>"></a>
10
  <?php } ?>
11
  </div>
12
+ <div class="member-name" style="color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($member_txt_size); ?>px;">
13
+ <?php echo esc_attr($memb_name); ?>
14
+ <span style="background-color: <?php echo esc_attr($member_clr); ?>; color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($pro_txt_size); ?>px;">
15
+ <?php echo esc_attr($memb_prof); ?>
16
  </span>
17
  </div>
18
  </div>
19
+ <div class="member-desc" style="color: <?php echo esc_attr($about_clr); ?>; font-size: <?php echo esc_attr($about_txt_size); ?>px;">
20
+ <?php echo esc_attr($memb_about); ?>
21
  </div>
22
+ <div class="member-info" style="font-size: <?php echo esc_attr($info_size); ?>px; color: <?php echo esc_attr($info_clr); ?>">
23
  <?php if (!empty($memb_email)) { ?>
24
+ <p><i class="fa fa-envelope" aria-hidden="true"></i> <?php echo esc_attr($memb_email); ?></p>
25
  <?php } ?>
26
  <?php if (!empty($memb_url)) { ?>
27
+ <p><i class="fa fa-globe" aria-hidden="true"></i> <?php echo esc_attr($memb_url); ?></p>
28
  <?php } ?>
29
  <?php if (!empty($memb_addr)) { ?>
30
+ <p><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo esc_attr($memb_addr); ?></p>
31
  <?php } ?>
32
  <?php if (!empty($memb_numb)) { ?>
33
+ <p><i class="fa fa-phone-square" aria-hidden="true"></i> <?php echo esc_attr($memb_numb); ?></p>
34
  <?php } ?>
35
  </div>
36
  <div class="member-skills">
37
  <?php if (!empty($memb_skill)) { ?>
38
+ <div class="skill-label"><?php echo esc_attr($memb_skill); ?></div>
39
  <div class="skill-prog">
40
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_perl); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
41
  </div>
42
  </div>
43
  <?php } ?>
44
 
45
  <?php if (!empty($memb_skill2)) { ?>
46
+ <div class="skill-label"><?php echo esc_attr($memb_skill2); ?></div>
47
  <div class="skill-prog">
48
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per2); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
49
  </div>
50
  </div>
51
  <?php } ?>
52
 
53
  <?php if (!empty($memb_skill3)) { ?>
54
+ <div class="skill-label"><?php echo esc_attr($memb_skill3); ?></div>
55
  <div class="skill-prog">
56
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per3); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
57
  </div>
58
  </div>
59
  <?php } ?>
60
 
61
  <?php if (!empty($memb_skill4)) { ?>
62
+ <div class="skill-label"><?php echo esc_attr($memb_skill4); ?></div>
63
  <div class="skill-prog">
64
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per4); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
65
  </div>
66
  </div>
67
  <?php } ?>
68
 
69
  <?php if (!empty($memb_skill5)) { ?>
70
+ <div class="skill-label"><?php echo esc_attr($memb_skill5); ?></div>
71
  <div class="skill-prog">
72
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per5); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
73
  </div>
74
  </div>
75
  <?php } ?>
76
  </div>
77
  <div class="member-social">
78
+ <a href="<?php echo esc_attr($social_url); ?>" style="background-color: <?php echo esc_attr($social_clr); ?>" target="_blank">
79
+ <i class="<?php echo esc_attr($social_icon); ?>"></i>
80
  </a>
81
+ <a href="<?php echo esc_attr($social_url2); ?>" style="background-color: <?php echo esc_attr($social_clr2); ?>" target="_blank">
82
+ <i class="<?php echo esc_attr($social_icon2); ?>"></i>
83
  </a>
84
+ <a href="<?php echo esc_attr($social_url3); ?>" style="background-color: <?php echo esc_attr($social_clr3); ?>" target="_blank">
85
+ <i class="<?php echo esc_attr($social_icon3); ?>"></i>
86
  </a>
87
+ <a href="<?php echo esc_attr($social_url4); ?>" style="background-color: <?php echo esc_attr($social_clr4); ?>" target="_blank">
88
+ <i class="<?php echo esc_attr($social_icon4); ?>"></i>
89
  </a>
90
+ <a href="<?php echo esc_attr($social_url5); ?>" style="background-color: <?php echo esc_attr($social_clr5); ?>" target="_blank">
91
+ <i class="<?php echo esc_attr($social_icon5); ?>"></i>
92
  </a>
93
  <?php if (!empty($social_icon6)) { ?>
94
 
render/team-profile/style2.php CHANGED
@@ -1,20 +1,20 @@
1
  <!-- /**** Float Style****/ -->
2
  <?php if ($member_visibility == 'float') { ?>
3
- <div class="mega_team_case_2 <?php echo $classname; ?>" style="width: <?php echo $pro_size; ?>px;">
4
  <div class="mega_team_head">
5
  <div class="mega_team_wrap">
6
  <div class="member-image">
7
  <?php if (isset($url) && $url != '') { ?>
8
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>"><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
9
  <?php } ?>
10
  <?php if (isset($url) && $url == NULL) { ?>
11
- <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
12
  <?php } ?>
13
  </div>
14
- <div class="member-name" style="color: <?php echo $memberproclr; ?>; font-size: <?php echo $member_txt_size; ?>px;">
15
- <?php echo $memb_name; ?>
16
- <span style="background-color: <?php echo $member_clr; ?>; color: <?php echo $memberproclr; ?>; font-size: <?php echo $pro_txt_size; ?>px;">
17
- <?php echo $memb_prof; ?>
18
  </span>
19
  </div>
20
  </div>
@@ -22,85 +22,85 @@
22
  <div class="mega_team_footer">
23
  <div class="member-skills">
24
  <?php if (!empty($memb_skill)) { ?>
25
- <div class="skill-label"><?php echo $memb_skill; ?></div>
26
  <div class="skill-prog">
27
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_perl; ?>%; background-color: <?php echo $member_clr; ?>;">
28
  </div>
29
  </div>
30
  <?php } ?>
31
 
32
  <?php if (!empty($memb_skill2)) { ?>
33
- <div class="skill-label"><?php echo $memb_skill2; ?></div>
34
  <div class="skill-prog">
35
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per2; ?>%; background-color: <?php echo $member_clr; ?>;">
36
  </div>
37
  </div>
38
  <?php } ?>
39
 
40
  <?php if (!empty($memb_skill3)) { ?>
41
- <div class="skill-label"><?php echo $memb_skill3; ?></div>
42
  <div class="skill-prog">
43
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per3; ?>%; background-color: <?php echo $member_clr; ?>;">
44
  </div>
45
  </div>
46
  <?php } ?>
47
 
48
  <?php if (!empty($memb_skill4)) { ?>
49
- <div class="skill-label"><?php echo $memb_skill4; ?></div>
50
  <div class="skill-prog">
51
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per4; ?>%; background-color: <?php echo $member_clr; ?>;">
52
  </div>
53
  </div>
54
  <?php } ?>
55
 
56
  <?php if (!empty($memb_skill5)) { ?>
57
- <div class="skill-label"><?php echo $memb_skill5; ?></div>
58
  <div class="skill-prog">
59
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per5; ?>%; background-color: <?php echo $member_clr; ?>;">
60
  </div>
61
  </div>
62
  <?php } ?>
63
  </div>
64
- <div class="member-info" style="font-size: <?php echo $info_size; ?>px; color: <?php echo $info_clr; ?>">
65
  <?php if (!empty($memb_email)) { ?>
66
- <p><i class="fa fa-envelope" aria-hidden="true"></i> <?php echo $memb_email; ?></p>
67
  <?php } ?>
68
  <?php if (!empty($memb_url)) { ?>
69
- <p><i class="fa fa-globe" aria-hidden="true"></i> <?php echo $memb_url; ?></p>
70
  <?php } ?>
71
  <?php if (!empty($memb_addr)) { ?>
72
- <p><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo $memb_addr; ?></p>
73
  <?php } ?>
74
  <?php if (!empty($memb_numb)) { ?>
75
- <p><i class="fa fa-phone-square" aria-hidden="true"></i> <?php echo $memb_numb; ?></p>
76
  <?php } ?>
77
  </div>
78
  <div class="member-social">
79
- <a href="<?php echo $social_url; ?>" style="background-color: <?php echo $social_clr; ?>" target="_blank">
80
- <i class="<?php echo $social_icon; ?>"></i>
81
  </a>
82
- <a href="<?php echo $social_url2; ?>" style="background-color: <?php echo $social_clr2; ?>" target="_blank">
83
- <i class="<?php echo $social_icon2; ?>"></i>
84
  </a>
85
- <a href="<?php echo $social_url3; ?>" style="background-color: <?php echo $social_clr3; ?>" target="_blank">
86
- <i class="<?php echo $social_icon3; ?>"></i>
87
  </a>
88
- <a href="<?php echo $social_url4; ?>" style="background-color: <?php echo $social_clr4; ?>" target="_blank">
89
- <i class="<?php echo $social_icon4; ?>"></i>
90
  </a>
91
- <a href="<?php echo $social_url5; ?>" style="background-color: <?php echo $social_clr5; ?>" target="_blank">
92
- <i class="<?php echo $social_icon5; ?>"></i>
93
  </a>
94
  <?php if (!empty($social_icon6)) { ?>
95
- <a href="<?php echo $social_url6; ?>" style="background-color: <?php echo $social_clr6; ?>" target="_blank">
96
- <i class="<?php echo $social_icon6; ?>"></i>
97
  </a>
98
  <?php } ?>
99
  </div>
100
  </div>
101
  <div class="Clearfix"></div>
102
- <div class="member-desc" style="color: <?php echo $about_clr; ?>; font-size: <?php echo $about_txt_size; ?>px;">
103
- <?php echo $memb_about; ?>
104
  </div>
105
  </div>
106
  <?php } ?>
1
  <!-- /**** Float Style****/ -->
2
  <?php if ($member_visibility == 'float') { ?>
3
+ <div class="mega_team_case_2 <?php echo esc_attr($classname); ?>" style="width: <?php echo esc_attr($pro_size); ?>px;">
4
  <div class="mega_team_head">
5
  <div class="mega_team_wrap">
6
  <div class="member-image">
7
  <?php if (isset($url) && $url != '') { ?>
8
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>"><img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>"></a>
9
  <?php } ?>
10
  <?php if (isset($url) && $url == NULL) { ?>
11
+ <a><img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>"></a>
12
  <?php } ?>
13
  </div>
14
+ <div class="member-name" style="color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($member_txt_size); ?>px;">
15
+ <?php echo esc_attr($memb_name); ?>
16
+ <span style="background-color: <?php echo esc_attr($member_clr); ?>; color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($pro_txt_size); ?>px;">
17
+ <?php echo esc_attr($memb_prof); ?>
18
  </span>
19
  </div>
20
  </div>
22
  <div class="mega_team_footer">
23
  <div class="member-skills">
24
  <?php if (!empty($memb_skill)) { ?>
25
+ <div class="skill-label"><?php echo esc_attr($memb_skill); ?></div>
26
  <div class="skill-prog">
27
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_perl); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
28
  </div>
29
  </div>
30
  <?php } ?>
31
 
32
  <?php if (!empty($memb_skill2)) { ?>
33
+ <div class="skill-label"><?php echo esc_attr($memb_skill2); ?></div>
34
  <div class="skill-prog">
35
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per2); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
36
  </div>
37
  </div>
38
  <?php } ?>
39
 
40
  <?php if (!empty($memb_skill3)) { ?>
41
+ <div class="skill-label"><?php echo esc_attr($memb_skill3); ?></div>
42
  <div class="skill-prog">
43
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per3); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
44
  </div>
45
  </div>
46
  <?php } ?>
47
 
48
  <?php if (!empty($memb_skill4)) { ?>
49
+ <div class="skill-label"><?php echo esc_attr($memb_skill4); ?></div>
50
  <div class="skill-prog">
51
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per4); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
52
  </div>
53
  </div>
54
  <?php } ?>
55
 
56
  <?php if (!empty($memb_skill5)) { ?>
57
+ <div class="skill-label"><?php echo esc_attr($memb_skill5); ?></div>
58
  <div class="skill-prog">
59
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per5); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
60
  </div>
61
  </div>
62
  <?php } ?>
63
  </div>
64
+ <div class="member-info" style="font-size: <?php echo esc_attr($info_size); ?>px; color: <?php echo esc_attr($info_clr); ?>">
65
  <?php if (!empty($memb_email)) { ?>
66
+ <p><i class="fa fa-envelope" aria-hidden="true"></i> <?php echo esc_attr($memb_email); ?></p>
67
  <?php } ?>
68
  <?php if (!empty($memb_url)) { ?>
69
+ <p><i class="fa fa-globe" aria-hidden="true"></i> <?php echo esc_attr($memb_url); ?></p>
70
  <?php } ?>
71
  <?php if (!empty($memb_addr)) { ?>
72
+ <p><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo esc_attr($memb_addr); ?></p>
73
  <?php } ?>
74
  <?php if (!empty($memb_numb)) { ?>
75
+ <p><i class="fa fa-phone-square" aria-hidden="true"></i> <?php echo esc_attr($memb_numb); ?></p>
76
  <?php } ?>
77
  </div>
78
  <div class="member-social">
79
+ <a href="<?php echo esc_attr($social_url); ?>" style="background-color: <?php echo esc_attr($social_clr); ?>" target="_blank">
80
+ <i class="<?php echo esc_attr($social_icon); ?>"></i>
81
  </a>
82
+ <a href="<?php echo esc_attr($social_url2); ?>" style="background-color: <?php echo esc_attr($social_clr2); ?>" target="_blank">
83
+ <i class="<?php echo esc_attr($social_icon2); ?>"></i>
84
  </a>
85
+ <a href="<?php echo esc_attr($social_url3); ?>" style="background-color: <?php echo esc_attr($social_clr3); ?>" target="_blank">
86
+ <i class="<?php echo esc_attr($social_icon3); ?>"></i>
87
  </a>
88
+ <a href="<?php echo esc_attr($social_url4); ?>" style="background-color: <?php echo esc_attr($social_clr4); ?>" target="_blank">
89
+ <i class="<?php echo esc_attr($social_icon4); ?>"></i>
90
  </a>
91
+ <a href="<?php echo esc_attr($social_url5); ?>" style="background-color: <?php echo esc_attr($social_clr5); ?>" target="_blank">
92
+ <i class="<?php echo esc_attr($social_icon5); ?>"></i>
93
  </a>
94
  <?php if (!empty($social_icon6)) { ?>
95
+ <a href="<?php echo esc_attr($social_url6); ?>" style="background-color: <?php echo esc_attr($social_clr6); ?>" target="_blank">
96
+ <i class="<?php echo esc_attr($social_icon6); ?>"></i>
97
  </a>
98
  <?php } ?>
99
  </div>
100
  </div>
101
  <div class="Clearfix"></div>
102
+ <div class="member-desc" style="color: <?php echo esc_attr($about_clr); ?>; font-size: <?php echo esc_attr($about_txt_size); ?>px;">
103
+ <?php echo esc_attr($memb_about); ?>
104
  </div>
105
  </div>
106
  <?php } ?>
render/team-profile/style3.php CHANGED
@@ -1,99 +1,99 @@
1
  <!-- Outset Style -->
2
  <?php if ($member_visibility == 'outset') { ?>
3
- <div class="mega_team_case_3 <?php echo $classname; ?>" style="width: <?php echo $pro_size; ?>px;">
4
  <div class="mega_team_wrap">
5
  <div class="member-image">
6
  <?php if (isset($url) && $url != '') { ?>
7
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>"><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
8
  <?php } ?>
9
  <?php if (isset($url) && $url == NULL) { ?>
10
- <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
11
  <?php } ?>
12
  </div>
13
- <div class="member-name" style="color: <?php echo $memberproclr; ?>; font-size: <?php echo $member_txt_size; ?>px;">
14
- <?php echo $memb_name; ?>
15
- <span style="color: <?php echo $memberproclr; ?>; font-size: <?php echo $pro_txt_size; ?>px;">
16
- <?php echo $memb_prof; ?>
17
  </span>
18
  </div>
19
  </div>
20
- <div class="member-desc" style="color: <?php echo $about_clr; ?>; font-size: <?php echo $about_txt_size; ?>px;">
21
- <?php echo $memb_about; ?>
22
  </div>
23
- <div class="member-info" style="font-size: <?php echo $info_size; ?>px; color: <?php echo $info_clr; ?>">
24
  <?php if (!empty($memb_email)) { ?>
25
- <p><i class="fa fa-envelope" aria-hidden="true"></i> <?php echo $memb_email; ?></p>
26
  <?php } ?>
27
  <?php if (!empty($memb_url)) { ?>
28
- <p><i class="fa fa-globe" aria-hidden="true"></i> <?php echo $memb_url; ?></p>
29
  <?php } ?>
30
  <?php if (!empty($memb_addr)) { ?>
31
- <p><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo $memb_addr; ?></p>
32
  <?php } ?>
33
  <?php if (!empty($memb_numb)) { ?>
34
- <p><i class="fa fa-phone-square" aria-hidden="true"></i> <?php echo $memb_numb; ?></p>
35
  <?php } ?>
36
  </div>
37
  <div class="member-skills">
38
  <?php if (!empty($memb_skill)) { ?>
39
- <div class="skill-label"><?php echo $memb_skill; ?></div>
40
  <div class="skill-prog">
41
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_perl; ?>%; background-color: <?php echo $member_clr; ?>;">
42
  </div>
43
  </div>
44
  <?php } ?>
45
 
46
  <?php if (!empty($memb_skill2)) { ?>
47
- <div class="skill-label"><?php echo $memb_skill2; ?></div>
48
  <div class="skill-prog">
49
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per2; ?>%; background-color: <?php echo $member_clr; ?>;">
50
  </div>
51
  </div>
52
  <?php } ?>
53
 
54
  <?php if (!empty($memb_skill3)) { ?>
55
- <div class="skill-label"><?php echo $memb_skill3; ?></div>
56
  <div class="skill-prog">
57
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per3; ?>%; background-color: <?php echo $member_clr; ?>;">
58
  </div>
59
  </div>
60
  <?php } ?>
61
 
62
  <?php if (!empty($memb_skill4)) { ?>
63
- <div class="skill-label"><?php echo $memb_skill4; ?></div>
64
  <div class="skill-prog">
65
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per4; ?>%; background-color: <?php echo $member_clr; ?>;">
66
  </div>
67
  </div>
68
  <?php } ?>
69
 
70
  <?php if (!empty($memb_skill5)) { ?>
71
- <div class="skill-label"><?php echo $memb_skill5; ?></div>
72
  <div class="skill-prog">
73
- <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo $memb_per5; ?>%; background-color: <?php echo $member_clr; ?>;">
74
  </div>
75
  </div>
76
  <?php } ?>
77
  </div>
78
  <div class="member-social">
79
- <a href="<?php echo $social_url; ?>" style="background-color: <?php echo $social_clr; ?>" target="_blank">
80
- <i class="<?php echo $social_icon; ?>"></i>
81
  </a>
82
- <a href="<?php echo $social_url2; ?>" style="background-color: <?php echo $social_clr2; ?>" target="_blank">
83
- <i class="<?php echo $social_icon2; ?>"></i>
84
  </a>
85
- <a href="<?php echo $social_url3; ?>" style="background-color: <?php echo $social_clr3; ?>" target="_blank">
86
- <i class="<?php echo $social_icon3; ?>"></i>
87
  </a>
88
- <a href="<?php echo $social_url4; ?>" style="background-color: <?php echo $social_clr4; ?>" target="_blank">
89
- <i class="<?php echo $social_icon4; ?>"></i>
90
  </a>
91
- <a href="<?php echo $social_url5; ?>" style="background-color: <?php echo $social_clr5; ?>" target="_blank">
92
- <i class="<?php echo $social_icon5; ?>"></i>
93
  </a>
94
  <?php if (!empty($social_icon6)) { ?>
95
- <a href="<?php echo $social_url6; ?>" style="background-color: <?php echo $social_clr6; ?>" target="_blank">
96
- <i class="<?php echo $social_icon6; ?>"></i>
97
  </a>
98
  <?php } ?>
99
  </div>
1
  <!-- Outset Style -->
2
  <?php if ($member_visibility == 'outset') { ?>
3
+ <div class="mega_team_case_3 <?php echo esc_attr($classname); ?>" style="width: <?php echo esc_attr($pro_size); ?>px;">
4
  <div class="mega_team_wrap">
5
  <div class="member-image">
6
  <?php if (isset($url) && $url != '') { ?>
7
+ <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>"><img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>"></a>
8
  <?php } ?>
9
  <?php if (isset($url) && $url == NULL) { ?>
10
+ <a><img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>"></a>
11
  <?php } ?>
12
  </div>
13
+ <div class="member-name" style="color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($member_txt_size); ?>px;">
14
+ <?php echo esc_attr($memb_name); ?>
15
+ <span style="color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($pro_txt_size); ?>px;">
16
+ <?php echo esc_attr($memb_prof); ?>
17
  </span>
18
  </div>
19
  </div>
20
+ <div class="member-desc" style="color: <?php echo esc_attr($about_clr); ?>; font-size: <?php echo esc_attr($about_txt_size); ?>px;">
21
+ <?php echo esc_attr($memb_about); ?>
22
  </div>
23
+ <div class="member-info" style="font-size: <?php echo esc_attr($info_size); ?>px; color: <?php echo esc_attr($info_clr); ?>">
24
  <?php if (!empty($memb_email)) { ?>
25
+ <p><i class="fa fa-envelope" aria-hidden="true"></i> <?php echo esc_attr($memb_email); ?></p>
26
  <?php } ?>
27
  <?php if (!empty($memb_url)) { ?>
28
+ <p><i class="fa fa-globe" aria-hidden="true"></i> <?php echo esc_attr($memb_url); ?></p>
29
  <?php } ?>
30
  <?php if (!empty($memb_addr)) { ?>
31
+ <p><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo esc_attr($memb_addr); ?></p>
32
  <?php } ?>
33
  <?php if (!empty($memb_numb)) { ?>
34
+ <p><i class="fa fa-phone-square" aria-hidden="true"></i> <?php echo esc_attr($memb_numb); ?></p>
35
  <?php } ?>
36
  </div>
37
  <div class="member-skills">
38
  <?php if (!empty($memb_skill)) { ?>
39
+ <div class="skill-label"><?php echo esc_attr($memb_skill); ?></div>
40
  <div class="skill-prog">
41
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_perl); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
42
  </div>
43
  </div>
44
  <?php } ?>
45
 
46
  <?php if (!empty($memb_skill2)) { ?>
47
+ <div class="skill-label"><?php echo esc_attr($memb_skill2); ?></div>
48
  <div class="skill-prog">
49
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per2); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
50
  </div>
51
  </div>
52
  <?php } ?>
53
 
54
  <?php if (!empty($memb_skill3)) { ?>
55
+ <div class="skill-label"><?php echo esc_attr($memb_skill3); ?></div>
56
  <div class="skill-prog">
57
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per3); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
58
  </div>
59
  </div>
60
  <?php } ?>
61
 
62
  <?php if (!empty($memb_skill4)) { ?>
63
+ <div class="skill-label"><?php echo esc_attr($memb_skill4); ?></div>
64
  <div class="skill-prog">
65
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per4); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
66
  </div>
67
  </div>
68
  <?php } ?>
69
 
70
  <?php if (!empty($memb_skill5)) { ?>
71
+ <div class="skill-label"><?php echo esc_attr($memb_skill5); ?></div>
72
  <div class="skill-prog">
73
+ <div class="fill" data-progress-animation="90%" data-appear-animation-delay="400" style="width: <?php echo esc_attr($memb_per5); ?>%; background-color: <?php echo esc_attr($member_clr); ?>;">
74
  </div>
75
  </div>
76
  <?php } ?>
77
  </div>
78
  <div class="member-social">
79
+ <a href="<?php echo esc_attr($social_url); ?>" style="background-color: <?php echo esc_attr($social_clr); ?>" target="_blank">
80
+ <i class="<?php echo esc_attr($social_icon); ?>"></i>
81
  </a>
82
+ <a href="<?php echo esc_attr($social_url2); ?>" style="background-color: <?php echo esc_attr($social_clr2); ?>" target="_blank">
83
+ <i class="<?php echo esc_attr($social_icon2); ?>"></i>
84
  </a>
85
+ <a href="<?php echo esc_attr($social_url3); ?>" style="background-color: <?php echo esc_attr($social_clr3); ?>" target="_blank">
86
+ <i class="<?php echo esc_attr($social_icon3); ?>"></i>
87
  </a>
88
+ <a href="<?php echo esc_attr($social_url4); ?>" style="background-color: <?php echo esc_attr($social_clr4); ?>" target="_blank">
89
+ <i class="<?php echo esc_attr($social_icon4); ?>"></i>
90
  </a>
91
+ <a href="<?php echo esc_attr($social_url5); ?>" style="background-color: <?php echo esc_attr($social_clr5); ?>" target="_blank">
92
+ <i class="<?php echo esc_attr($social_icon5); ?>"></i>
93
  </a>
94
  <?php if (!empty($social_icon6)) { ?>
95
+ <a href="<?php echo esc_attr($social_url6); ?>" style="background-color: <?php echo esc_attr($social_clr6); ?>" target="_blank">
96
+ <i class="<?php echo esc_attr($social_icon6); ?>"></i>
97
  </a>
98
  <?php } ?>
99
  </div>
render/team-profile/style4.php CHANGED
@@ -3,44 +3,44 @@
3
  list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x"); ?>
4
 
5
  <?php if ($member_visibility == 'smart') { ?>
6
- <div class="mega_team_case_4 mega_team_case_4<?php echo $some_id; ?> <?php echo $classname; ?>" style="width: <?php echo $pro_size; ?>px;">
7
  <div class="member-image">
8
  <?php if (isset($url) && $url != '') { ?>
9
- <a href="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>"><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
10
  <?php } ?>
11
  <?php if (isset($url) && $url == NULL) { ?>
12
- <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
13
  <?php } ?>
14
  </div>
15
  <div class="mega_wrap">
16
- <div class="member-name" style="color: <?php echo $memberproclr; ?>; font-size: <?php echo $member_txt_size; ?>px;">
17
- <?php echo $memb_name; ?>
18
- <span style="color: <?php echo $memberproclr; ?>; font-size: <?php echo $pro_txt_size; ?>px;">
19
- <?php echo $memb_prof; ?>
20
  </span>
21
  </div>
22
- <div class="member-desc" style="color: <?php echo $about_clr; ?>; font-size: <?php echo $about_txt_size; ?>px;">
23
- <?php echo $memb_about; ?>
24
  </div>
25
  <div class="member-social">
26
- <a href="<?php echo $social_url; ?>" target="_blank">
27
- <i class="<?php echo $social_icon; ?>"></i>
28
  </a>
29
- <a href="<?php echo $social_url2; ?>" target="_blank">
30
- <i class="<?php echo $social_icon2; ?>"></i>
31
  </a>
32
- <a href="<?php echo $social_url3; ?>" target="_blank">
33
- <i class="<?php echo $social_icon3; ?>"></i>
34
  </a>
35
- <a href="<?php echo $social_url4; ?>" target="_blank">
36
- <i class="<?php echo $social_icon4; ?>"></i>
37
  </a>
38
- <a href="<?php echo $social_url5; ?>" target="_blank">
39
- <i class="<?php echo $social_icon5; ?>"></i>
40
  </a>
41
  <?php if (!empty($social_icon6)) { ?>
42
- <a href="<?php echo $social_url6; ?>" target="_blank">
43
- <i class="<?php echo $social_icon6; ?>"></i>
44
  </a>
45
  <?php } ?>
46
  </div>
@@ -49,7 +49,7 @@ list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x"); ?>
49
  <?php } ?>
50
 
51
  <style>
52
- .mega_team_case_4<?php echo $some_id; ?>:hover .mega_wrap {
53
  <?php echo "background-color: rgba($r, $g, $b, 0.5) !important;" ?>
54
  }
55
  </style>
3
  list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x"); ?>
4
 
5
  <?php if ($member_visibility == 'smart') { ?>
6
+ <div class="mega_team_case_4 mega_team_case_4<?php echo esc_attr($some_id); ?> <?php echo esc_attr($classname); ?>" style="width: <?php echo esc_attr($pro_size); ?>px;">
7
  <div class="member-image">
8
  <?php if (isset($url) && $url != '') { ?>
9
+ <a ref="<?php echo esc_url($url['url']); ?>" target="<?php echo $url['target']; ?>" title="<?php echo esc_html($url['title']); ?>"><img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>"></a>
10
  <?php } ?>
11
  <?php if (isset($url) && $url == NULL) { ?>
12
+ <a><img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>"></a>
13
  <?php } ?>
14
  </div>
15
  <div class="mega_wrap">
16
+ <div class="member-name" style="color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($member_txt_size); ?>px;">
17
+ <?php echo esc_attr($memb_name); ?>
18
+ <span style="color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($pro_txt_size); ?>px;">
19
+ <?php echo esc_attr($memb_prof); ?>
20
  </span>
21
  </div>
22
+ <div class="member-desc" style="color: <?php echo esc_attr($about_clr); ?>; font-size: <?php echo esc_attr($about_txt_size); ?>px;">
23
+ <?php echo esc_attr($memb_about); ?>
24
  </div>
25
  <div class="member-social">
26
+ <a href="<?php echo esc_attr($social_url); ?>" target="_blank">
27
+ <i class="<?php echo esc_attr($social_icon); ?>"></i>
28
  </a>
29
+ <a href="<?php echo esc_attr($social_url2); ?>" target="_blank">
30
+ <i class="<?php echo esc_attr($social_icon2); ?>"></i>
31
  </a>
32
+ <a href="<?php echo esc_attr($social_url3); ?>" target="_blank">
33
+ <i class="<?php echo esc_attr($social_icon3); ?>"></i>
34
  </a>
35
+ <a href="<?php echo esc_attr($social_url4); ?>" target="_blank">
36
+ <i class="<?php echo esc_attr($social_icon4); ?>"></i>
37
  </a>
38
+ <a href="<?php echo esc_attr($social_url5); ?>" target="_blank">
39
+ <i class="<?php echo esc_attr($social_icon5); ?>"></i>
40
  </a>
41
  <?php if (!empty($social_icon6)) { ?>
42
+ <a href="<?php echo esc_attr($social_url6); ?>" target="_blank">
43
+ <i class="<?php echo esc_attr($social_icon6); ?>"></i>
44
  </a>
45
  <?php } ?>
46
  </div>
49
  <?php } ?>
50
 
51
  <style>
52
+ .mega_team_case_4<?php echo esc_attr($some_id); ?>:hover .mega_wrap {
53
  <?php echo "background-color: rgba($r, $g, $b, 0.5) !important;" ?>
54
  }
55
  </style>
render/team-profile/style8.php CHANGED
@@ -1,49 +1,49 @@
1
- <div class="mega_team_case_8 <?php echo $classname; ?>">
2
- <div class="maw_team_wrap" style="background: <?php echo $member_clr; ?>; max-width: <?php echo $pro_size; ?>px; width: 100%;">
3
  <div class="maw_team_photo_wrapper">
4
  <div class="maw_team_photo">
5
  <div class="">
6
- <img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>">
7
  </div>
8
  </div>
9
  </div>
10
 
11
  <div class="maw_team_description">
12
- <span class="maw_team_name" style="color: <?php echo $memberproclr; ?>; font-size: <?php echo $member_txt_size; ?>px;">
13
- <?php echo $memb_name; ?>
14
  </span>
15
- <span class="maw_team_role" style="color: <?php echo $memberproclr; ?>; font-size: <?php echo $pro_txt_size; ?>px;">
16
- <?php echo $memb_prof; ?>
17
  </span>
18
- <div class="maw_team_text" style="color: <?php echo $about_clr; ?>; font-size: <?php echo $about_txt_size; ?>px;">
19
- <?php echo $memb_about; ?>
20
  </div>
21
  </div>
22
 
23
  <div class="maw_team_icons">
24
  <?php if (!empty($social_icon)) { ?>
25
- <a class="maw_team_icon" href="<?php echo $social_url; ?>" style="color: <?php echo $social_clr; ?>;" target="_blank">
26
- <i aria-hidden="true" class="<?php echo $social_icon; ?>" style="font-size: <?php echo $social_size; ?>px;"></i>
27
  </a>
28
  <?php } ?>
29
  <?php if (!empty($social_icon2)) { ?>
30
- <a class="maw_team_icon" href="<?php echo $social_url2; ?>" style="color: <?php echo $social_clr2; ?>;" target="_blank">
31
- <i aria-hidden="true" class="<?php echo $social_icon2; ?>" style="font-size: <?php echo $social_size; ?>px;"></i>
32
  </a>
33
  <?php } ?>
34
  <?php if (!empty($social_icon3)) { ?>
35
- <a class="maw_team_icon" href="<?php echo $social_url3; ?>" style="color: <?php echo $social_clr3; ?>;" target="_blank">
36
- <i aria-hidden="true" class="<?php echo $social_icon3; ?>" style="font-size: <?php echo $social_size; ?>px;"></i>
37
  </a>
38
  <?php } ?>
39
  <?php if (!empty($social_icon4)) { ?>
40
- <a class="maw_team_icon" href="<?php echo $social_url4; ?>" style="color: <?php echo $social_clr4; ?>;" target="_blank">
41
- <i aria-hidden="true" class="<?php echo $social_icon4; ?>" style="font-size: <?php echo $social_size; ?>px;"></i>
42
  </a>
43
  <?php } ?>
44
  <?php if (!empty($social_icon5)) { ?>
45
- <a class="maw_team_icon" href="<?php echo $social_url5; ?>" style="color: <?php echo $social_clr5; ?>;" target="_blank">
46
- <i aria-hidden="true" class="<?php echo $social_icon5; ?>" style="font-size: <?php echo $social_size; ?>px;"></i>
47
  </a>
48
  <?php } ?>
49
  </div>
1
+ <div class="mega_team_case_8 <?php echo esc_attr($classname); ?>">
2
+ <div class="maw_team_wrap" style="background: <?php echo esc_attr($member_clr); ?>; max-width: <?php echo esc_attr($pro_size); ?>px; width: 100%;">
3
  <div class="maw_team_photo_wrapper">
4
  <div class="maw_team_photo">
5
  <div class="">
6
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($image_alt); ?>">
7
  </div>
8
  </div>
9
  </div>
10
 
11
  <div class="maw_team_description">
12
+ <span class="maw_team_name" style="color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($member_txt_size); ?>px;">
13
+ <?php echo esc_attr($memb_name); ?>
14
  </span>
15
+ <span class="maw_team_role" style="color: <?php echo esc_attr($memberproclr); ?>; font-size: <?php echo esc_attr($pro_txt_size); ?>px;">
16
+ <?php echo esc_attr($memb_prof); ?>
17
  </span>
18
+ <div class="maw_team_text" style="color: <?php echo esc_attr($about_clr); ?>; font-size: <?php echo esc_attr($about_txt_size); ?>px;">
19
+ <?php echo esc_attr($memb_about); ?>
20
  </div>
21
  </div>
22
 
23
  <div class="maw_team_icons">
24
  <?php if (!empty($social_icon)) { ?>
25
+ <a class="maw_team_icon" href="<?php echo esc_attr($social_url); ?>" style="color: <?php echo esc_attr($social_clr); ?>;" target="_blank">
26
+ <i aria-hidden="true" class="<?php echo esc_attr($social_icon); ?>" style="font-size: <?php echo esc_attr($social_size); ?>px;"></i>
27
  </a>
28
  <?php } ?>
29
  <?php if (!empty($social_icon2)) { ?>
30
+ <a class="maw_team_icon" href="<?php echo esc_attr($social_url2); ?>" style="color: <?php echo esc_attr($social_clr2); ?>;" target="_blank">
31
+ <i aria-hidden="true" class="<?php echo esc_attr($social_icon2); ?>" style="font-size: <?php echo esc_attr($social_size); ?>px;"></i>
32
  </a>
33
  <?php } ?>
34
  <?php if (!empty($social_icon3)) { ?>
35
+ <a class="maw_team_icon" href="<?php echo esc_attr($social_url3); ?>" style="color: <?php echo esc_attr($social_clr3); ?>;" target="_blank">
36
+ <i aria-hidden="true" class="<?php echo esc_attr($social_icon3); ?>" style="font-size: <?php echo esc_attr($social_size); ?>px;"></i>
37
  </a>
38
  <?php } ?>
39
  <?php if (!empty($social_icon4)) { ?>
40
+ <a class="maw_team_icon" href="<?php echo esc_attr($social_url4); ?>" style="color: <?php echo esc_attr($social_clr4); ?>;" target="_blank">
41
+ <i aria-hidden="true" class="<?php echo esc_attr($social_icon4); ?>" style="font-size: <?php echo esc_attr($social_size); ?>px;"></i>
42
  </a>
43
  <?php } ?>
44
  <?php if (!empty($social_icon5)) { ?>
45
+ <a class="maw_team_icon" href="<?php echo esc_attr($social_url5); ?>" style="color: <?php echo esc_attr($social_clr5); ?>;" target="_blank">
46
+ <i aria-hidden="true" class="<?php echo esc_attr($social_icon5); ?>" style="font-size: <?php echo esc_attr($social_size); ?>px;"></i>
47
  </a>
48
  <?php } ?>
49
  </div>
render/testimonial.php CHANGED
@@ -29,22 +29,24 @@ class WPBakeryShortCode_vc_testimonial extends WPBakeryShortCode {
29
  }
30
  wp_enqueue_style( 'testimonial-css', plugins_url( '../css/testimonial.css' , __FILE__ ));
31
  $content = wpb_js_remove_wpautop($content, true);
 
 
32
  ob_start(); ?>
33
  <?php if ($style == 'theme1') { ?>
34
  <div class="mega-testimonial">
35
- <div class="tm-quotes" style="background: <?php echo $bgclr; ?>; padding: 15px 10px; font-style: italic; border-radius: 4px;">
36
  <?php echo $content; ?>
37
- <span class="tm-arrow" style="border-top: 8px solid <?php echo $bgclr; ?>;"></span>
38
  </div>
39
  <div class="tm-details">
40
  <div class="tm-profile">
41
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; border-radius: <?php echo $radius; ?>%">
42
  </div>
43
  <div class="tm-prof">
44
  <div class="tm-name">
45
- <span style="font-size: <?php echo $namesize; ?>px; color: <?php echo $nameclr; ?>; font-weight: bold;"><?php echo $name; ?></span>,
46
- <span><i><a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo $profclr; ?>; font-size: <?php echo $profsize; ?>px; font-style: italic; text-decoration: none;"><?php echo $prof; ?></a></i></span>
47
- <p style="padding-top: 5px; display: <?php echo $rating; ?>;">
48
  <img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/<?php echo $rating; ?>.png">
49
  </p>
50
  </div>
@@ -59,9 +61,9 @@ class WPBakeryShortCode_vc_testimonial extends WPBakeryShortCode {
59
  <div class="tm-details">
60
  <div class="tm-prof">
61
  <div class="tm-name">
62
- <span style="font-size: <?php echo $namesize; ?>px; color: <?php echo $nameclr; ?>; font-weight: bold;"><?php echo $name; ?></span>,
63
  <p>
64
- <a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo $profclr; ?>; font-size: <?php echo $profsize; ?>px; font-style: italic; text-decoration: none;"><?php echo $prof; ?></a>
65
  </p>
66
  </div>
67
  </div>
@@ -69,20 +71,20 @@ class WPBakeryShortCode_vc_testimonial extends WPBakeryShortCode {
69
  <?php if ($rating !== 'none') { ?>
70
  <img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/<?php echo $rating; ?>.png">
71
  <?php } ?>
72
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; border-radius: <?php echo $radius; ?>%">
73
  </div>
74
  <div class="Clearfix"></div>
75
  </div>
76
- <div class="tm-quotes2" style="background: <?php echo $bgclr; ?>;">
77
  <?php echo $content; ?>
78
- <span class="tm-arrow2" style="border-bottom: 8px solid <?php echo $bgclr; ?>;"></span>
79
  </div>
80
  </div>
81
  <?php } ?>
82
 
83
  <?php if ($style == 'theme3') { ?>
84
  <div class="mega-testimonial-3">
85
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; border-radius: <?php echo $radius; ?>%; box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3);-webkit-box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3); -o-box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3); border: 1px solid #fff;">
86
  <i class="fa fa-quote-left" style="text-align: center; display: block; font-size: 20px;padding: 10px 0 4px 0;color: #000;"></i>
87
  <div class="tm-profile3">
88
  <p style="text-align: center; font-style: italic;">
@@ -90,10 +92,10 @@ class WPBakeryShortCode_vc_testimonial extends WPBakeryShortCode {
90
  </p>
91
  </div>
92
  <div class="tm-prof3" style="text-align: center; margin: 15px 0 5px 0;">
93
- <p style="font-size: <?php echo $namesize; ?>px; color: <?php echo $nameclr; ?>; font-weight: bold; text-align: center;"><?php echo $name; ?></p>
94
  <p style="text-align: center;">
95
- <a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo $profclr; ?>; font-size: <?php echo $profsize; ?>px; font-style: italic; text-decoration: none; ">
96
- <?php echo $prof; ?>
97
  </a>
98
  </p>
99
  </div>
@@ -106,19 +108,19 @@ class WPBakeryShortCode_vc_testimonial extends WPBakeryShortCode {
106
  <?php if ($style == 'theme4') { ?>
107
  <div class="mega-testimonial-4">
108
  <div class="tm-profile4">
109
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; border-radius: <?php echo $radius; ?>%;">
110
  </div>
111
- <div class="tm-right-box" style="padding-left: <?php echo $width+20; ?>px">
112
  <p class="tm-quotes" style="font-style: italic;">
113
  <?php echo $content; ?>
114
  </p><br>
115
  <div class="tm-prof4">
116
- <span style="font-size: <?php echo $namesize; ?>px; color: <?php echo $nameclr; ?>; font-weight: bold; text-align: center;"><?php echo $name; ?></span>
117
  <?php if ($rating !== 'none') { ?>
118
  <span><img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/<?php echo $rating; ?>.png"></span>
119
  <?php } ?>
120
- <p><a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo $profclr; ?>; font-size: <?php echo $profsize; ?>px; font-style: italic; text-decoration: none; ">
121
- <?php echo $prof; ?>
122
  </a></p>
123
  </div>
124
  </div>
@@ -128,16 +130,16 @@ class WPBakeryShortCode_vc_testimonial extends WPBakeryShortCode {
128
 
129
  <?php if ($style == 'theme5') { ?>
130
  <div class="mega-testimonial-5">
131
- <div class="tm-quotes-5" style="font-style: italic; background: <?php echo $bgclr; ?>;">
132
  <?php echo $content; ?>
133
- <span class="icon-after" style="border-right: 8px solid <?php echo $bgclr; ?>;"></span>
134
  </div>
135
  <div class="tm-profile-5">
136
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; border-radius: <?php echo $radius; ?>%;">
137
  <div class="tm-prof4">
138
- <span style="font-size: <?php echo $namesize; ?>px; color: <?php echo $nameclr; ?>; font-weight: bold; text-align: center;"><?php echo $name; ?></span>
139
- <p><a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo $profclr; ?>; font-size: <?php echo $profsize; ?>px; font-style: italic; text-decoration: none; ">
140
- <?php echo $prof; ?>
141
  </a></p>
142
  <?php if ($rating !== 'none') { ?>
143
  <span><img style="border-radius: 0px;" src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/<?php echo $rating; ?>.png"></span>
@@ -154,12 +156,12 @@ class WPBakeryShortCode_vc_testimonial extends WPBakeryShortCode {
154
  <?php echo $content; ?>
155
  </div>
156
  <div class="tm-profile-6">
157
- <img class="tm-pic" src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; border-radius: <?php echo $radius; ?>%;">
158
  <div class="tm-prof6" style="text-align: center; padding-top: 6px;">
159
- <span style="font-size: <?php echo $namesize; ?>px; color: <?php echo $nameclr; ?>; font-weight: bold; text-align: center;"><?php echo $name; ?></span>
160
  <p style="text-align: center;">
161
- <a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo $profclr; ?>; font-size: <?php echo $profsize; ?>px; font-style: italic; text-decoration: none; ">
162
- <?php echo $prof; ?>
163
  </a>
164
  </p>
165
  <?php if ($rating !== 'none') { ?>
@@ -174,13 +176,13 @@ class WPBakeryShortCode_vc_testimonial extends WPBakeryShortCode {
174
  <?php if ($style == 'theme7') { ?>
175
  <div class="mega-testimonial-7">
176
  <div class="tm-picture">
177
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="width: <?php echo $width; ?>px; border-radius: <?php echo $radius; ?>%;">
178
  </div>
179
  <div class="tm-prof-7">
180
- <span style="font-size: <?php echo $namesize; ?>px; color: <?php echo $nameclr; ?>; font-weight: bold; text-align: center;"><?php echo $name; ?></span>
181
  <p>
182
- <a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo $profclr; ?>; font-size: <?php echo $profsize; ?>px; font-style: italic; text-decoration: none; ">
183
- <?php echo $prof; ?>
184
  </a>
185
  </p>
186
  <?php if ($rating !== 'none') { ?>
29
  }
30
  wp_enqueue_style( 'testimonial-css', plugins_url( '../css/testimonial.css' , __FILE__ ));
31
  $content = wpb_js_remove_wpautop($content, true);
32
+ $content = str_replace("<script>","&#60;script&#62;",$content);
33
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
34
  ob_start(); ?>
35
  <?php if ($style == 'theme1') { ?>
36
  <div class="mega-testimonial">
37
+ <div class="tm-quotes" style="background: <?php echo esc_attr($bgclr); ?>; padding: 15px 10px; font-style: italic; border-radius: 4px;">
38
  <?php echo $content; ?>
39
+ <span class="tm-arrow" style="border-top: 8px solid <?php echo esc_attr($bgclr); ?>;"></span>
40
  </div>
41
  <div class="tm-details">
42
  <div class="tm-profile">
43
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; border-radius: <?php echo esc_attr($radius); ?>%">
44
  </div>
45
  <div class="tm-prof">
46
  <div class="tm-name">
47
+ <span style="font-size: <?php echo esc_attr($namesize); ?>px; color: <?php echo esc_attr($nameclr); ?>; font-weight: bold;"><?php echo esc_attr($name); ?></span>,
48
+ <span><i><a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo esc_attr($profclr); ?>; font-size: <?php echo esc_attr($profsize); ?>px; font-style: italic; text-decoration: none;"><?php echo esc_attr($prof); ?></a></i></span>
49
+ <p style="padding-top: 5px; display: <?php echo esc_attr($rating); ?>;">
50
  <img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/<?php echo $rating; ?>.png">
51
  </p>
52
  </div>
61
  <div class="tm-details">
62
  <div class="tm-prof">
63
  <div class="tm-name">
64
+ <span style="font-size: <?php echo esc_attr($namesize); ?>px; color: <?php echo esc_attr($nameclr); ?>; font-weight: bold;"><?php echo esc_attr($name); ?></span>,
65
  <p>
66
+ <a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo esc_attr($profclr); ?>; font-size: <?php echo esc_attr($profsize); ?>px; font-style: italic; text-decoration: none;"><?php echo esc_attr($prof); ?></a>
67
  </p>
68
  </div>
69
  </div>
71
  <?php if ($rating !== 'none') { ?>
72
  <img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/<?php echo $rating; ?>.png">
73
  <?php } ?>
74
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; border-radius: <?php echo esc_attr($radius); ?>%">
75
  </div>
76
  <div class="Clearfix"></div>
77
  </div>
78
+ <div class="tm-quotes2" style="background: <?php echo esc_attr($bgclr); ?>;">
79
  <?php echo $content; ?>
80
+ <span class="tm-arrow2" style="border-bottom: 8px solid <?php echo esc_attr($bgclr); ?>;"></span>
81
  </div>
82
  </div>
83
  <?php } ?>
84
 
85
  <?php if ($style == 'theme3') { ?>
86
  <div class="mega-testimonial-3">
87
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; border-radius: <?php echo esc_attr($radius); ?>%; box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3);-webkit-box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3); -o-box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3); border: 1px solid #fff;">
88
  <i class="fa fa-quote-left" style="text-align: center; display: block; font-size: 20px;padding: 10px 0 4px 0;color: #000;"></i>
89
  <div class="tm-profile3">
90
  <p style="text-align: center; font-style: italic;">
92
  </p>
93
  </div>
94
  <div class="tm-prof3" style="text-align: center; margin: 15px 0 5px 0;">
95
+ <p style="font-size: <?php echo esc_attr($namesize); ?>px; color: <?php echo esc_attr($nameclr); ?>; font-weight: bold; text-align: center;"><?php echo esc_attr($name); ?></p>
96
  <p style="text-align: center;">
97
+ <a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo esc_attr($profclr); ?>; font-size: <?php echo esc_attr($profsize); ?>px; font-style: italic; text-decoration: none; ">
98
+ <?php echo esc_attr($prof); ?>
99
  </a>
100
  </p>
101
  </div>
108
  <?php if ($style == 'theme4') { ?>
109
  <div class="mega-testimonial-4">
110
  <div class="tm-profile4">
111
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; border-radius: <?php echo esc_attr($radius); ?>%;">
112
  </div>
113
+ <div class="tm-right-box" style="padding-left: <?php echo esc_attr($width)+20; ?>px">
114
  <p class="tm-quotes" style="font-style: italic;">
115
  <?php echo $content; ?>
116
  </p><br>
117
  <div class="tm-prof4">
118
+ <span style="font-size: <?php echo esc_attr($namesize); ?>px; color: <?php echo esc_attr($nameclr); ?>; font-weight: bold; text-align: center;"><?php echo esc_attr($name); ?></span>
119
  <?php if ($rating !== 'none') { ?>
120
  <span><img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/<?php echo $rating; ?>.png"></span>
121
  <?php } ?>
122
+ <p><a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo esc_attr($profclr); ?>; font-size: <?php echo esc_attr($profsize); ?>px; font-style: italic; text-decoration: none; ">
123
+ <?php echo esc_attr($prof); ?>
124
  </a></p>
125
  </div>
126
  </div>
130
 
131
  <?php if ($style == 'theme5') { ?>
132
  <div class="mega-testimonial-5">
133
+ <div class="tm-quotes-5" style="font-style: italic; background: <?php echo esc_attr($bgclr); ?>;">
134
  <?php echo $content; ?>
135
+ <span class="icon-after" style="border-right: 8px solid <?php echo esc_attr($bgclr); ?>;"></span>
136
  </div>
137
  <div class="tm-profile-5">
138
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; border-radius: <?php echo esc_attr($radius); ?>%;">
139
  <div class="tm-prof4">
140
+ <span style="font-size: <?php echo esc_attr($namesize); ?>px; color: <?php echo esc_attr($nameclr); ?>; font-weight: bold; text-align: center;"><?php echo esc_attr($name); ?></span>
141
+ <p><a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo esc_attr($profclr); ?>; font-size: <?php echo esc_attr($profsize); ?>px; font-style: italic; text-decoration: none; ">
142
+ <?php echo esc_attr($prof); ?>
143
  </a></p>
144
  <?php if ($rating !== 'none') { ?>
145
  <span><img style="border-radius: 0px;" src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/<?php echo $rating; ?>.png"></span>
156
  <?php echo $content; ?>
157
  </div>
158
  <div class="tm-profile-6">
159
+ <img class="tm-pic" src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; border-radius: <?php echo esc_attr($radius); ?>%;">
160
  <div class="tm-prof6" style="text-align: center; padding-top: 6px;">
161
+ <span style="font-size: <?php echo esc_attr($namesize); ?>px; color: <?php echo esc_attr($nameclr); ?>; font-weight: bold; text-align: center;"><?php echo esc_attr($name); ?></span>
162
  <p style="text-align: center;">
163
+ <a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo esc_attr($profclr); ?>; font-size: <?php echo esc_attr($profsize); ?>px; font-style: italic; text-decoration: none; ">
164
+ <?php echo esc_attr($prof); ?>
165
  </a>
166
  </p>
167
  <?php if ($rating !== 'none') { ?>
176
  <?php if ($style == 'theme7') { ?>
177
  <div class="mega-testimonial-7">
178
  <div class="tm-picture">
179
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="width: <?php echo esc_attr($width); ?>px; border-radius: <?php echo esc_attr($radius); ?>%;">
180
  </div>
181
  <div class="tm-prof-7">
182
+ <span style="font-size: <?php echo esc_attr($namesize); ?>px; color: <?php echo esc_attr($nameclr); ?>; font-weight: bold; text-align: center;"><?php echo esc_attr($name); ?></span>
183
  <p>
184
+ <a href="<?php echo esc_url($link['url']); ?>" target="<?php echo $link['target']; ?>" title="<?php echo esc_html($link['title']); ?>" style="color: <?php echo esc_attr($profclr); ?>; font-size: <?php echo esc_attr($profsize); ?>px; font-style: italic; text-decoration: none; ">
185
+ <?php echo esc_attr($prof); ?>
186
  </a>
187
  </p>
188
  <?php if ($rating !== 'none') { ?>
render/texttyper.php CHANGED
@@ -24,6 +24,8 @@ class WPBakeryShortCode_text_type_vc extends WPBakeryShortCode {
24
  ), $atts ) );
25
  $some_id = rand(5, 500);
26
  $content = wpb_js_remove_wpautop($content, true);
 
 
27
  wp_enqueue_script( 'typed-js', plugins_url( '../js/typed.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
28
  wp_enqueue_script( 'typer-js', plugins_url( '../js/customTyper.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
29
  wp_localize_script( 'typer-js', 'mega_text', array(
@@ -33,38 +35,38 @@ class WPBakeryShortCode_text_type_vc extends WPBakeryShortCode {
33
  ob_start(); ?>
34
  <!-- HTML DESIGN HERE -->
35
 
36
- <div class="type-wrap type-wrap-<?php echo $some_id; ?>"
37
- data-typespeed="<?php echo $typespeed; ?>"
38
- data-backspeed="<?php echo $backspeed; ?>"
39
- data-loop="<?php echo $loop; ?>"
40
- style="height: 50px; text-align: <?php echo $align; ?>;">
41
- <span class="mega-prefix" style="font-size: <?php echo $size; ?>px; color: <?php echo $clr; ?>;"> <?php echo $before; ?></span>
42
  <div class="typed-strings">
43
  <?php echo $content; ?>
44
  </div>
45
  <span class="typed" style="white-space:pre;"></span>
46
  <?php if (!empty($checked)) { ?>
47
- <span class="blink_me" style="font-size: <?php echo $size; ?>px; color: <?php echo $verticalclr; ?>;">|</span>
48
  <?php } ?>
49
- <span class="mega-suffix" style="font-size: <?php echo $size; ?>px;color: <?php echo $clr; ?>;"> <?php echo $after; ?></span>
50
  </div>
51
 
52
  <style>
53
- .type-wrap-<?php echo $some_id; ?> .typed{
54
- font-size: <?php echo $typersize; ?>px;
55
  }
56
  .type-wrap span {
57
  display: inline-block;
58
  }
59
  @media only screen and (max-width: 768px) {
60
- .type-wrap-<?php echo $some_id; ?> .typed,
61
- .type-wrap-<?php echo $some_id; ?> .blink_me {
62
- font-size: <?php echo $typermblsize; ?>px !important;
63
  }
64
 
65
- .type-wrap-<?php echo $some_id; ?> .mega-prefix,
66
- .type-wrap-<?php echo $some_id; ?> .mega-suffix {
67
- font-size: <?php echo $typermblsize; ?>px !important;
68
  }
69
  }
70
  </style>
24
  ), $atts ) );
25
  $some_id = rand(5, 500);
26
  $content = wpb_js_remove_wpautop($content, true);
27
+ $content = str_replace("<script>","&#60;script&#62;",$content);
28
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
29
  wp_enqueue_script( 'typed-js', plugins_url( '../js/typed.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
30
  wp_enqueue_script( 'typer-js', plugins_url( '../js/customTyper.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
31
  wp_localize_script( 'typer-js', 'mega_text', array(
35
  ob_start(); ?>
36
  <!-- HTML DESIGN HERE -->
37
 
38
+ <div class="type-wrap type-wrap-<?php echo esc_attr($some_id); ?>"
39
+ data-typespeed="<?php echo esc_attr($typespeed); ?>"
40
+ data-backspeed="<?php echo esc_attr($backspeed); ?>"
41
+ data-loop="<?php echo esc_attr($loop); ?>"
42
+ style="height: 50px; text-align: <?php echo esc_attr($align); ?>;">
43
+ <span class="mega-prefix" style="font-size: <?php echo esc_attr($size); ?>px; color: <?php echo esc_attr($clr); ?>;"> <?php echo esc_attr($before); ?></span>
44
  <div class="typed-strings">
45
  <?php echo $content; ?>
46
  </div>
47
  <span class="typed" style="white-space:pre;"></span>
48
  <?php if (!empty($checked)) { ?>
49
+ <span class="blink_me" style="font-size: <?php echo esc_attr($size); ?>px; color: <?php echo esc_attr($verticalclr); ?>;">|</span>
50
  <?php } ?>
51
+ <span class="mega-suffix" style="font-size: <?php echo esc_attr($size); ?>px;color: <?php echo esc_attr($clr); ?>;"> <?php echo esc_attr($after); ?></span>
52
  </div>
53
 
54
  <style>
55
+ .type-wrap-<?php echo esc_attr($some_id); ?> .typed{
56
+ font-size: <?php echo esc_attr($typersize); ?>px;
57
  }
58
  .type-wrap span {
59
  display: inline-block;
60
  }
61
  @media only screen and (max-width: 768px) {
62
+ .type-wrap-<?php echo esc_attr($some_id); ?> .typed,
63
+ .type-wrap-<?php echo esc_attr($some_id); ?> .blink_me {
64
+ font-size: <?php echo esc_attr($typermblsize); ?>px !important;
65
  }
66
 
67
+ .type-wrap-<?php echo esc_attr($some_id); ?> .mega-prefix,
68
+ .type-wrap-<?php echo esc_attr($some_id); ?> .mega-suffix {
69
+ font-size: <?php echo esc_attr($typermblsize); ?>px !important;
70
  }
71
  }
72
  </style>
render/timeline_father.php CHANGED
@@ -16,16 +16,18 @@ class WPBakeryShortCode_mvc_timeline_father extends WPBakeryShortCodesContainer
16
  'linebg' => '',
17
  ), $atts ) );
18
  $content = wpb_js_remove_wpautop($content, true);
 
 
19
  wp_enqueue_style( 'timeline-css', plugins_url( '../css/timeline.css' , __FILE__ ));
20
  wp_enqueue_script( 'timeline-js', plugins_url( '../js/timeline.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
21
  wp_enqueue_script( 'animtimeline-js', plugins_url( '../js/animtimeline.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
22
  ob_start(); ?>
23
 
24
- <div class="mega-timeline-title"><span style="font-size: <?php echo $size; ?>px; color: <?php echo $clr; ?>;background:<?php echo $bgclr; ?>;">
25
- <?php echo $title ?>
26
  </span></div>
27
  <div id="cd-timeline" class="cd-container">
28
- <span class="timeline-line" style="width: <?php echo $width; ?>px; background: <?php echo $linebg; ?>;"></span>
29
  <span></span>
30
  <?php echo $content; ?>
31
  </div>
16
  'linebg' => '',
17
  ), $atts ) );
18
  $content = wpb_js_remove_wpautop($content, true);
19
+ $content = str_replace("<script>","&#60;script&#62;",$content);
20
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
21
  wp_enqueue_style( 'timeline-css', plugins_url( '../css/timeline.css' , __FILE__ ));
22
  wp_enqueue_script( 'timeline-js', plugins_url( '../js/timeline.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
23
  wp_enqueue_script( 'animtimeline-js', plugins_url( '../js/animtimeline.js' , __FILE__ ), array('jquery', 'jquery-ui-core'));
24
  ob_start(); ?>
25
 
26
+ <div class="mega-timeline-title"><span style="font-size: <?php echo esc_attr($size); ?>px; color: <?php echo esc_attr($clr); ?>;background:<?php echo esc_attr($bgclr); ?>;">
27
+ <?php echo esc_attr($title) ?>
28
  </span></div>
29
  <div id="cd-timeline" class="cd-container">
30
+ <span class="timeline-line" style="width: <?php echo esc_attr($width); ?>px; background: <?php echo esc_attr($linebg); ?>;"></span>
31
  <span></span>
32
  <?php echo $content; ?>
33
  </div>
render/timeline_son.php CHANGED
@@ -32,32 +32,32 @@ class WPBakeryShortCode_mvc_timeline_son extends WPBakeryShortCode {
32
 
33
  <div class="cd-timeline-block">
34
  <?php if ($centerstyle == 'fonticon') { ?>
35
- <div class="cd-timeline-img cd-picture" style="background: <?php echo $bgclr; ?>; border-radius: 50%; text-align:center;">
36
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>px; color: #fff;vertical-align: middle;"></i>
37
  </div>
38
  <?php } ?>
39
 
40
  <?php if ($centerstyle == 'dot') { ?>
41
- <div class="cd-timeline-img cd-timeline-dot cd-picture" style="background: <?php echo $bgclr; ?>; border-radius: 50%;">
42
  </div>
43
  <?php } ?>
44
 
45
- <div class="cd-timeline-content <?php echo $css_class; ?>">
46
- <span class="timeline-arrow" style="border-right-color: <?php echo $titlebg; ?>"></span>
47
- <span class="timeline-arrow" style="border-left-color: <?php echo $titlebg; ?>"></span>
48
- <span class="timeline-arrow" style="border-right: 7px solid <?php echo $titlebg; ?>;"></span>
49
 
50
- <h2 style="background: <?php echo $titlebg; ?>; color: <?php echo $titleclr; ?>; font-size: <?php echo $titlesize; ?>px; text-align: <?php echo $titlealign; ?>; padding: <?php echo $titlepadding ?>px 15px;">
51
- <?php echo $maintitle; ?>
52
  </h2>
53
- <?php if ($image_url != '') { ?>
54
- <img src="<?php echo $image_url; ?>" style="max-width: 100%; width: <?php echo $img_width; ?>px">
55
  <?php } ?>
56
  <div class="cd-timeline-content-area" style="padding: 0 10px; display: block;">
57
  <?php echo $content; ?>
58
  </div>
59
- <span class="cd-date" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px;">
60
- <?php echo $date ?>
61
  </span>
62
  </div>
63
  </div>
32
 
33
  <div class="cd-timeline-block">
34
  <?php if ($centerstyle == 'fonticon') { ?>
35
+ <div class="cd-timeline-img cd-picture" style="background: <?php echo esc_attr($bgclr); ?>; border-radius: 50%; text-align:center;">
36
+ <i class="<?php echo esc_attr($icon); ?>" aria-hidden="true" style="font-size: <?php echo esc_attr($icon_size); ?>px; color: #fff;vertical-align: middle;"></i>
37
  </div>
38
  <?php } ?>
39
 
40
  <?php if ($centerstyle == 'dot') { ?>
41
+ <div class="cd-timeline-img cd-timeline-dot cd-picture" style="background: <?php echo esc_attr($bgclr); ?>; border-radius: 50%;">
42
  </div>
43
  <?php } ?>
44
 
45
+ <div class="cd-timeline-content <?php echo esc_attr($css_class); ?>">
46
+ <span class="timeline-arrow" style="border-right-color: <?php echo esc_attr($titlebg); ?>"></span>
47
+ <span class="timeline-arrow" style="border-left-color: <?php echo esc_attr($titlebg); ?>"></span>
48
+ <span class="timeline-arrow" style="border-right: 7px solid <?php echo esc_attr($titlebg); ?>;"></span>
49
 
50
+ <h2 style="background: <?php echo esc_attr($titlebg); ?>; color: <?php echo esc_attr($titleclr); ?>; font-size: <?php echo esc_attr($titlesize); ?>px; text-align: <?php echo esc_attr($titlealign); ?>; padding: <?php echo esc_attr($titlepadding) ?>px 15px;">
51
+ <?php echo esc_attr($maintitle); ?>
52
  </h2>
53
+ <?php if (isset($image_url)) { ?>
54
+ <img src="<?php echo esc_attr($image_url); ?>" style="max-width: 100%; width: <?php echo esc_attr($img_width); ?>px">
55
  <?php } ?>
56
  <div class="cd-timeline-content-area" style="padding: 0 10px; display: block;">
57
  <?php echo $content; ?>
58
  </div>
59
+ <span class="cd-date" style="color: <?php echo esc_attr($clr); ?>; font-size: <?php echo esc_attr($size); ?>px;">
60
+ <?php echo esc_attr($date) ?>
61
  </span>
62
  </div>
63
  </div>
render/tm_carousel_father.php CHANGED
@@ -31,39 +31,41 @@ class WPBakeryShortCode_tm_carousel_father extends WPBakeryShortCodesContainer {
31
  ), $atts ) );
32
  $some_id = rand(5, 500);
33
  $content = wpb_js_remove_wpautop($content);
 
 
34
  wp_enqueue_style( 'slick-carousel-css', plugins_url( '../css/slick-carousal.css' , __FILE__ ));
35
  wp_enqueue_script( 'slick-js', plugins_url( '../js/slick.js' , __FILE__ ), array('jquery'));
36
  wp_enqueue_script( 'custom-js', plugins_url( '../js/custom-tm.js' , __FILE__ ), array('jquery'));
37
  ob_start(); ?>
38
- <section class="tm-slider slider <?php echo $class; ?> <?php echo $theme; ?>" id="tdt-slider-<?php echo $some_id ?>" data-mobiles="<?php echo $slide_visible_mbl ?>" data-tabs="<?php echo $tabs ?>" data-slick='{"arrows": <?php echo $arrows; ?>, "autoplaySpeed": <?php echo $speed; ?>, "speed": <?php echo $animation_speed; ?>, "dots": <?php echo $dot; ?>, "autoplay": true, "slidesToShow": <?php echo $slide_visible; ?>, "slidesToScroll": <?php echo $slide_scroll; ?>, "fade": <?php echo $effect; ?>}'>
39
  <?php echo $content; ?>
40
  </section>
41
 
42
  <style>
43
- #tdt-slider-<?php echo $some_id ?> .slick-slide {
44
- padding: 0 <?php echo $spaces ?>px !important;
45
  }
46
  <?php if ($dot == 'true') { ?>
47
- #tdt-slider-<?php echo $some_id ?> .slick-dots li button:before{
48
- color: <?php echo $dotclr ?>;
49
- font-size: <?php echo $dotsize; ?>px !important;
50
- border: 2px solid <?php echo $borderclr ?>;
51
  }
52
  <?php } ?>
53
  <?php if ($arrows == 'true') { ?>
54
- #tdt-slider-<?php echo $some_id ?> .slick-next:before, #tdt-slider-<?php echo $some_id ?> .slick-prev:before {
55
- color: <?php echo $arrowclr ?> !important;
56
- background: <?php echo $arrowbg; ?> !important;
57
- font-size: <?php echo $arrowsize; ?>px !important;
58
  }
59
  <?php } ?>
60
  <?php if ($theme == 'content-over-slider') { ?>
61
  @media only screen and (max-width: 480px) {
62
- #tdt-slider-<?php echo $some_id ?>.content-over-slider .slick-slide .content-section {
63
  top: 35px !important;
64
  }
65
- #tdt-slider-<?php echo $some_id ?>.content-over-slider .ultimate-slide-img {
66
- height: <?php echo $mbl_height; ?>px !important;
67
  object-fit: cover;
68
  }
69
  }
31
  ), $atts ) );
32
  $some_id = rand(5, 500);
33
  $content = wpb_js_remove_wpautop($content);
34
+ $content = str_replace("<script>","&#60;script&#62;",$content);
35
+ $content = str_replace("</script>","&#60;&frasl;script&#62;",$content);
36
  wp_enqueue_style( 'slick-carousel-css', plugins_url( '../css/slick-carousal.css' , __FILE__ ));
37
  wp_enqueue_script( 'slick-js', plugins_url( '../js/slick.js' , __FILE__ ), array('jquery'));
38
  wp_enqueue_script( 'custom-js', plugins_url( '../js/custom-tm.js' , __FILE__ ), array('jquery'));
39
  ob_start(); ?>
40
+ <section class="tm-slider slider <?php echo esc_attr($class); ?> <?php echo esc_attr($theme); ?>" id="tdt-slider-<?php echo esc_attr($some_id) ?>" data-mobiles="<?php echo esc_attr($slide_visible_mbl) ?>" data-tabs="<?php echo esc_attr($tabs) ?>" data-slick='{"arrows": <?php echo esc_attr($arrows); ?>, "autoplaySpeed": <?php echo esc_attr($speed); ?>, "speed": <?php echo esc_attr($animation_speed); ?>, "dots": <?php echo esc_attr($dot); ?>, "autoplay": true, "slidesToShow": <?php echo esc_attr($slide_visible); ?>, "slidesToScroll": <?php echo esc_attr($slide_scroll); ?>, "fade": <?php echo esc_attr($effect); ?>}'>
41
  <?php echo $content; ?>
42
  </section>
43
 
44
  <style>
45
+ #tdt-slider-<?php echo esc_attr($some_id) ?> .slick-slide {
46
+ padding: 0 <?php echo esc_attr($spaces) ?>px !important;
47
  }
48
  <?php if ($dot == 'true') { ?>
49
+ #tdt-slider-<?php echo esc_attr($some_id) ?> .slick-dots li button:before{
50
+ color: <?php echo esc_attr($dotclr) ?>;
51
+ font-size: <?php echo esc_attr($dotsize); ?>px !important;
52
+ border: 2px solid <?php echo esc_attr($borderclr) ?>;
53
  }
54
  <?php } ?>
55
  <?php if ($arrows == 'true') { ?>
56
+ #tdt-slider-<?php echo esc_attr($some_id) ?> .slick-next:before, #tdt-slider-<?php echo esc_attr($some_id) ?> .slick-prev:before {
57
+ color: <?php echo esc_attr($arrowclr) ?> !important;
58
+ background: <?php echo esc_attr($arrowbg); ?> !important;
59
+ font-size: <?php echo esc_attr($arrowsize); ?>px !important;
60
  }
61
  <?php } ?>
62
  <?php if ($theme == 'content-over-slider') { ?>
63
  @media only screen and (max-width: 480px) {
64
+ #tdt-slider-<?php echo esc_attr($some_id) ?>.content-over-slider .slick-slide .content-section {
65
  top: 35px !important;
66
  }
67
+ #tdt-slider-<?php echo esc_attr($some_id) ?>.content-over-slider .ultimate-slide-img {
68
+ height: <?php echo esc_attr($mbl_height); ?>px !important;
69
  object-fit: cover;
70
  }
71
  }
render/tm_carousel_son.php CHANGED
@@ -52,16 +52,16 @@ class WPBakeryShortCode_tm_carousel_son extends WPBakeryShortCode {
52
  <a>
53
  <?php } ?>
54
  <?php if (!empty($image_url)) { ?>
55
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" class="ultimate-slide-img" style="max-width: 100%; width: <?php echo $img_width; ?>; height: <?php echo $img_height; ?>; border-radius: <?php echo $img_radius; ?>; margin-bottom: 15px;">
56
  <?php } ?>
57
  </a>
58
- <span class="content-section" style="text-align: <?php echo $align ?>; display: block; top: <?php echo $content_padding ?>%;">
59
- <h2 class="tdt-slider-heading" style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-weight: <?php echo $fontweight; ?>; line-height: <?php echo $line_height; ?>;">
60
- <?php echo $title; ?>
61
  </h2>
62
  <?php if ($line_visibility == 'show') { ?>
63
  <span class="heading-line" style="display: block;">
64
- <span class="heading-line" style="width: <?php echo $line_width; ?>px; border-bottom: <?php echo $line_style; ?>; display: inline-block;"></span>
65
  </span>
66
  <?php } ?>
67
 
@@ -69,8 +69,8 @@ class WPBakeryShortCode_tm_carousel_son extends WPBakeryShortCode {
69
 
70
  <?php if ($btn_visibility == 'show') { ?>
71
  <span class="carousel_btn_span">
72
- <a href="<?php echo esc_url($btn_url['url']); ?>" target="<?php echo $btn_url['target']; ?>" title="<?php echo esc_html($btn_url['title']); ?>" class="ultimate_carousel_btn" style="padding: <?php echo $btn_height/2 ?>px <?php echo $btn_width/2 ?>px;font-size: <?php echo $btn_size; ?>px; border-radius: <?php echo $btn_border; ?>px; color: <?php echo $btn_clr; ?>; background-color: <?php echo $btn_bg; ?>;text-decoration: none;">
73
- <?php echo $btn_text; ?>
74
  </a>
75
  </span>
76
  <?php } ?>
52
  <a>
53
  <?php } ?>
54
  <?php if (!empty($image_url)) { ?>
55
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" class="ultimate-slide-img" style="max-width: 100%; width: <?php echo esc_attr($img_width); ?>; height: <?php echo esc_attr($img_height); ?>; border-radius: <?php echo esc_attr($img_radius); ?>; margin-bottom: 15px;">
56
  <?php } ?>
57
  </a>
58
+ <span class="content-section" style="text-align: <?php echo esc_attr($align) ?>; display: block; top: <?php echo esc_attr($content_padding) ?>%;">
59
+ <h2 class="tdt-slider-heading" style="font-size: <?php echo esc_attr($titlesize); ?>px; color: <?php echo esc_attr($titleclr); ?>; font-weight: <?php echo esc_attr($fontweight); ?>; line-height: <?php echo esc_attr($line_height); ?>;">
60
+ <?php echo esc_attr($title); ?>
61
  </h2>
62
  <?php if ($line_visibility == 'show') { ?>
63
  <span class="heading-line" style="display: block;">
64
+ <span class="heading-line" style="width: <?php echo esc_attr($line_width); ?>px; border-bottom: <?php echo esc_attr($line_style); ?>; display: inline-block;"></span>
65
  </span>
66
  <?php } ?>
67
 
69
 
70
  <?php if ($btn_visibility == 'show') { ?>
71
  <span class="carousel_btn_span">
72
+ <a href="<?php echo esc_attr(esc_url)($btn_url['url']); ?>" target="<?php echo esc_attr($btn_url)['target']; ?>" title="<?php echo esc_attr(esc_html)($btn_url['title']); ?>" class="ultimate_carousel_btn" style="padding: <?php echo esc_attr($btn_height)/2 ?>px <?php echo esc_attr($btn_width)/2 ?>px;font-size: <?php echo esc_attr($btn_size); ?>px; border-radius: <?php echo esc_attr($btn_border); ?>px; color: <?php echo esc_attr($btn_clr); ?>; background-color: <?php echo esc_attr($btn_bg); ?>;text-decoration: none;">
73
+ <?php echo esc_attr($btn_text); ?>
74
  </a>
75
  </span>
76
  <?php } ?>
render/tooltip_icons.php CHANGED
@@ -31,11 +31,11 @@ class WPBakeryShortCode_tooltip_icons extends WPBakeryShortCode {
31
  $content = wpb_js_remove_wpautop($content, true);
32
  $tooltip_id = rand();
33
  ob_start(); ?>
34
- <img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="max-width: 100%; width: <?php echo $img_width; ?>;" data-uid="<?php echo $tooltip_id; ?>" class="tooltip" data-theme="tooltipster-<?php echo $theme; ?>" data-speed="<?php echo $speed; ?>" data-anim="<?php echo $animation; ?>" data-position="<?php echo $position; ?>" data-interactive="<?php echo $interactive; ?>" title="<?php echo $text; ?>">
35
  <style>
36
  /*.tooltipster-content {
37
- font-size: <?php echo $textsize; ?>px !important;
38
- padding: <?php echo $topbottom; ?>px <?php echo $rightleft; ?>px !important;
39
  }*/
40
  </style>
41
  <?php
31
  $content = wpb_js_remove_wpautop($content, true);
32
  $tooltip_id = rand();
33
  ob_start(); ?>
34
+ <img src="<?php echo esc_attr($image_url); ?>" alt="<?php echo esc_attr($alt); ?>" style="max-width: 100%; width: <?php echo esc_attr($img_width); ?>;" data-uid="<?php echo esc_attr($tooltip_id); ?>" class="tooltip" data-theme="tooltipster-<?php echo esc_attr($theme); ?>" data-speed="<?php echo esc_attr($speed); ?>" data-anim="<?php echo esc_attr($animation); ?>" data-position="<?php echo esc_attr($position); ?>" data-interactive="<?php echo esc_attr($interactive); ?>" title="<?php echo esc_attr($text); ?>">
35
  <style>
36
  /*.tooltipster-content {
37
+ font-size: <?php echo esc_attr($textsize); ?>px !important;
38
+ padding: <?php echo esc_attr($topbottom); ?>px <?php echo esc_attr($rightleft); ?>px !important;
39
  }*/
40
  </style>
41
  <?php
render/woo_grid.php CHANGED
@@ -67,7 +67,7 @@ class WPBakeryShortCode_vc_woo_grid extends WPBakeryShortCode {
67
  </span>
68
  </div>
69
 
70
- <div class="mega-post-category" style="display: <?php echo $catg; ?>">
71
  <?php $categories = get_the_terms( get_the_id(), 'product_cat' );
72
  $separator = ' ';
73
  $output = '';
@@ -83,17 +83,17 @@ class WPBakeryShortCode_vc_woo_grid extends WPBakeryShortCode {
83
  <?php if ($args['post_type'] == 'product') {
84
  echo wc_price(get_the_id());
85
  } ?>
86
- <span style="display: <?php echo $rating; ?>;">
87
  <?php echo wc_get_rating_html( $product->get_average_rating() ); ?>
88
  </span>
89
  <div class="clearfix"></div>
90
  <h3 class="mega-post-title">
91
- <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
92
  </h3>
93
 
94
  <div class="clearfix"></div>
95
  <div class="mega-post-para">
96
- <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
97
  <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
98
  </p>
99
  </div>
@@ -123,7 +123,7 @@ class WPBakeryShortCode_vc_woo_grid extends WPBakeryShortCode {
123
  </div>
124
  <div class="mega-post-content">
125
  <h3 class="mega-post-title">
126
- <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
127
  </h3>
128
  <?php $product = new WC_Product(get_the_id()); ?>
129
  <?php if ($args['post_type'] == 'product') {
@@ -131,7 +131,7 @@ class WPBakeryShortCode_vc_woo_grid extends WPBakeryShortCode {
131
  } ?>
132
  <br>
133
  <div class="mega-post-para">
134
- <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
135
  <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 50, '...');?>
136
  </p>
137
  </div>
@@ -150,7 +150,7 @@ class WPBakeryShortCode_vc_woo_grid extends WPBakeryShortCode {
150
 
151
  <div class="mega-desc-box">
152
  <div style="display: table; margin: auto;">
153
- <div class="mega-post-category" style="display: <?php echo $catg; ?>">
154
  <?php $categories = get_the_terms( get_the_id(), 'product_cat' );
155
  $separator = ' , ';
156
  $output = '';
@@ -164,7 +164,7 @@ class WPBakeryShortCode_vc_woo_grid extends WPBakeryShortCode {
164
  </div>
165
  <?php $product = new WC_Product(get_the_id()); ?>
166
  <h3 class="mega-post-title">
167
- <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
168
  </h3>
169
 
170
  <span style="display: <?php echo $rating; ?>;">
@@ -172,7 +172,7 @@ class WPBakeryShortCode_vc_woo_grid extends WPBakeryShortCode {
172
  </span>
173
  <div class="clearfix"></div>
174
  <div class="mega-post-para">
175
- <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
176
  <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
177
  </p>
178
  </div>
67
  </span>
68
  </div>
69
 
70
+ <div class="mega-post-category" style="display: <?php echo esc_attr($catg); ?>">
71
  <?php $categories = get_the_terms( get_the_id(), 'product_cat' );
72
  $separator = ' ';
73
  $output = '';
83
  <?php if ($args['post_type'] == 'product') {
84
  echo wc_price(get_the_id());
85
  } ?>
86
+ <span style="display: <?php echo esc_attr($rating); ?>;">
87
  <?php echo wc_get_rating_html( $product->get_average_rating() ); ?>
88
  </span>
89
  <div class="clearfix"></div>
90
  <h3 class="mega-post-title">
91
+ <a style="font-size: <?php echo esc_attr($txtsize); ?>; color: <?php echo esc_attr($txtclr) ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
92
  </h3>
93
 
94
  <div class="clearfix"></div>
95
  <div class="mega-post-para">
96
+ <p style="font-size: <?php echo esc_attr($descsize); ?>; color: <?php echo esc_attr($descclr) ?>">
97
  <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
98
  </p>
99
  </div>
123
  </div>
124
  <div class="mega-post-content">
125
  <h3 class="mega-post-title">
126
+ <a style="font-size: <?php echo esc_attr($txtsize); ?>; color: <?php echo esc_attr($txtclr) ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
127
  </h3>
128
  <?php $product = new WC_Product(get_the_id()); ?>
129
  <?php if ($args['post_type'] == 'product') {
131
  } ?>
132
  <br>
133
  <div class="mega-post-para">
134
+ <p style="font-size: <?php echo esc_attr($descsize); ?>; color: <?php echo esc_attr($descclr) ?>">
135
  <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 50, '...');?>
136
  </p>
137
  </div>
150
 
151
  <div class="mega-desc-box">
152
  <div style="display: table; margin: auto;">
153
+ <div class="mega-post-category" style="display: <?php echo esc_attr($catg); ?>">
154
  <?php $categories = get_the_terms( get_the_id(), 'product_cat' );
155
  $separator = ' , ';
156
  $output = '';
164
  </div>
165
  <?php $product = new WC_Product(get_the_id()); ?>
166
  <h3 class="mega-post-title">
167
+ <a style="font-size: <?php echo esc_attr($txtsize); ?>; color: <?php echo esc_attr($txtclr); ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
168
  </h3>
169
 
170
  <span style="display: <?php echo $rating; ?>;">
172
  </span>
173
  <div class="clearfix"></div>
174
  <div class="mega-post-para">
175
+ <p style="font-size: <?php echo esc_attr($descsize); ?>; color: <?php echo esc_attr($descclr) ?>">
176
  <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
177
  </p>
178
  </div>