Page Builder: PageLayer – Drag and Drop website builder - Version 0.9.7

Version Description

(August 13, 2019) = * [Feature] Introducing template feature which allows theme developers to make their themes with Pagelayer * [Feature] Added Settings in the editor to change the post title * [Task] Image Box added border options for the image * [Task] Added heading hover style options for Image Box and Icon Box * [Task] Added Column Gap and Row Gap for Grid Gallery * [Task] Added font family to the text editor * [Task] Added the screen type option for multiple settings * [Task] Made Owl Carousel the default slider as it has much more features * [Task] Improved code for AJAX Calls

Download this release

Release Info

Developer pagelayer
Plugin Icon 128x128 Page Builder: PageLayer – Drag and Drop website builder
Version 0.9.7
Comparing to
See all releases

Code changes from version 0.9.6 to 0.9.7

css/chartist.min.css DELETED
@@ -1 +0,0 @@
1
- .ct-double-octave:after,.ct-major-eleventh:after,.ct-major-second:after,.ct-major-seventh:after,.ct-major-sixth:after,.ct-major-tenth:after,.ct-major-third:after,.ct-major-twelfth:after,.ct-minor-second:after,.ct-minor-seventh:after,.ct-minor-sixth:after,.ct-minor-third:after,.ct-octave:after,.ct-perfect-fifth:after,.ct-perfect-fourth:after,.ct-square:after{content:"";clear:both}.ct-label{fill:rgba(0,0,0,.4);color:rgba(0,0,0,.4);font-size:.75rem;line-height:1}.ct-grid-background,.ct-line{fill:none}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0,0,0,.2);stroke-width:1px;stroke-dasharray:2px}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-area,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-slice-pie{fill:#f05b4f}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{display:table}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{display:table}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{display:table}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{display:table}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{display:table}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{display:table}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{display:table}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{display:table}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{display:table}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{display:table}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{display:table}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{display:table}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{display:table}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{display:table}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{display:table}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{display:table}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}
 
css/givecss.php CHANGED
@@ -32,8 +32,10 @@ $files = array(
32
  // Enduser CSS
33
  'font-awesome.min.css',
34
  'nivo-lightbox.css',
35
- 'slippry.css',
 
36
  'pagelayer-frontend.css',
 
37
  'animate.min.css',
38
  'chartist.min.css',
39
  );
32
  // Enduser CSS
33
  'font-awesome.min.css',
34
  'nivo-lightbox.css',
35
+ 'owl.carousel.min.css',
36
+ 'owl.theme.default.min.css',
37
  'pagelayer-frontend.css',
38
+ 'premium-frontend.css',
39
  'animate.min.css',
40
  'chartist.min.css',
41
  );
css/notes.owl.txt ADDED
@@ -0,0 +1,2 @@
 
 
1
+ 1) Rename all CSS .owl to .pagelayer-owl
2
+ 2) Rename owlCarousel to pagelayerowlCarousel in JS
css/owl.carousel.min.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /**
2
+ * Owl Carousel v2.3.4
3
+ * Copyright 2013-2018 David Deutsch
4
+ * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
5
+ */
6
+ .pagelayer-owl-carousel,.pagelayer-owl-carousel .pagelayer-owl-item{-webkit-tap-highlight-color:transparent;position:relative}.pagelayer-owl-carousel{display:none;width:100%;z-index:1}.pagelayer-owl-carousel .pagelayer-owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.pagelayer-owl-carousel .pagelayer-owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.pagelayer-owl-carousel .pagelayer-owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.pagelayer-owl-carousel .pagelayer-owl-item,.pagelayer-owl-carousel .pagelayer-owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.pagelayer-owl-carousel .pagelayer-owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.pagelayer-owl-carousel .pagelayer-owl-item img{display:block;width:100%}.pagelayer-owl-carousel .pagelayer-owl-dots.disabled,.pagelayer-owl-carousel .pagelayer-owl-nav.disabled{display:none}.no-js .pagelayer-owl-carousel,.pagelayer-owl-carousel.pagelayer-owl-loaded{display:block}.pagelayer-owl-carousel .pagelayer-owl-dot,.pagelayer-owl-carousel .pagelayer-owl-nav .pagelayer-owl-next,.pagelayer-owl-carousel .pagelayer-owl-nav .pagelayer-owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pagelayer-owl-carousel .pagelayer-owl-nav button.pagelayer-owl-next,.pagelayer-owl-carousel .pagelayer-owl-nav button.pagelayer-owl-prev,.pagelayer-owl-carousel button.pagelayer-owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.pagelayer-owl-carousel.pagelayer-owl-loading{opacity:0;display:block}.pagelayer-owl-carousel.pagelayer-owl-hidden{opacity:0}.pagelayer-owl-carousel.pagelayer-owl-refresh .pagelayer-owl-item{visibility:hidden}.pagelayer-owl-carousel.pagelayer-owl-drag .pagelayer-owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pagelayer-owl-carousel.pagelayer-owl-grab{cursor:move;cursor:grab}.pagelayer-owl-carousel.pagelayer-owl-rtl{direction:rtl}.pagelayer-owl-carousel.pagelayer-owl-rtl .pagelayer-owl-item{float:right}.pagelayer-owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.pagelayer-owl-carousel .pagelayer-owl-animated-in{z-index:0}.pagelayer-owl-carousel .pagelayer-owl-animated-out{z-index:1}.pagelayer-owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.pagelayer-owl-height{transition:height .5s ease-in-out}.pagelayer-owl-carousel .pagelayer-owl-item .pagelayer-owl-lazy{opacity:0;transition:opacity .4s ease}.pagelayer-owl-carousel .pagelayer-owl-item .pagelayer-owl-lazy:not([src]),.pagelayer-owl-carousel .pagelayer-owl-item .pagelayer-owl-lazy[src^=""]{max-height:0}.pagelayer-owl-carousel .pagelayer-owl-item img.pagelayer-owl-lazy{transform-style:preserve-3d}.pagelayer-owl-carousel .pagelayer-owl-video-wrapper{position:relative;height:100%;background:#000}.pagelayer-owl-carousel .pagelayer-owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.pagelayer-owl-carousel .pagelayer-owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.pagelayer-owl-carousel .pagelayer-owl-video-playing .pagelayer-owl-video-play-icon,.pagelayer-owl-carousel .pagelayer-owl-video-playing .pagelayer-owl-video-tn{display:none}.pagelayer-owl-carousel .pagelayer-owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.pagelayer-owl-carousel .pagelayer-owl-video-frame{position:relative;z-index:1;height:100%;width:100%}
css/owl.theme.default.min.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /**
2
+ * Owl Carousel v2.3.4
3
+ * Copyright 2013-2018 David Deutsch
4
+ * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
5
+ */
6
+ .pagelayer-owl-theme .pagelayer-owl-dots,.pagelayer-owl-theme .pagelayer-owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.pagelayer-owl-theme .pagelayer-owl-nav{margin-top:10px}.pagelayer-owl-theme .pagelayer-owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.pagelayer-owl-theme .pagelayer-owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.pagelayer-owl-theme .pagelayer-owl-nav .disabled{opacity:.5;cursor:default}.pagelayer-owl-theme .pagelayer-owl-nav.disabled+.pagelayer-owl-dots{margin-top:10px}.pagelayer-owl-theme .pagelayer-owl-dots .pagelayer-owl-dot{display:inline-block;zoom:1}.pagelayer-owl-theme .pagelayer-owl-dots .pagelayer-owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.pagelayer-owl-theme .pagelayer-owl-dots .pagelayer-owl-dot.active span,.pagelayer-owl-theme .pagelayer-owl-dots .pagelayer-owl-dot:hover span{background:#869791}
css/pagelayer-admin.css CHANGED
@@ -23,3 +23,7 @@ padding:10px;
23
  padding:0px 20px;
24
  display:none;
25
  }
 
 
 
 
23
  padding:0px 20px;
24
  display:none;
25
  }
26
+
27
+ .pagelayer-setting-form td .pagelayer-app-id{
28
+ width:350px;
29
+ }
css/pagelayer-editor.css CHANGED
@@ -223,7 +223,8 @@ padding: 4px 8px;
223
  margin: auto 5px;
224
  }
225
 
226
- .pagelayer-update-button{
 
227
  border: #398439 1px solid;
228
  color: #fff;
229
  background: #449d44;
@@ -478,17 +479,75 @@ font-size: 12px;
478
  line-height: 150%;
479
  }
480
 
 
 
 
 
 
 
481
  .pagelayer-elp-screen{
482
  display: inline-block;
 
 
 
 
483
  }
484
 
485
  .pagelayer-elp-screen .fa{
486
- padding:1px 6px;
487
  cursor: pointer;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
488
  }
489
 
490
- .pagelayer-elp-screen .fa:hover{
491
- color: #07a;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
492
  }
493
 
494
  .pagelayer-elp-screen .fa-tablet{
@@ -530,7 +589,8 @@ margin-top: 5px;
530
  .pagelayer-elpd-body input,
531
  .pagelayer-elpd-body textarea,
532
  .pagelayer-elpd-body select,
533
- .pagelayer-elpd-body option{
 
534
  font-size: 13px !important;
535
  color: #666;
536
  border-radius: unset;
@@ -978,6 +1038,53 @@ vertical-align:top;
978
  background: #CCC !important;
979
  }
980
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
981
  .pagelayer-elp-multi_image{
982
  padding: 3px;
983
  width: 60%;
@@ -1098,7 +1205,7 @@ display: none;
1098
  position: absolute;
1099
  background-color: #fff;
1100
  width: 86%;
1101
- z-index: 1;
1102
  }
1103
 
1104
  .pagelayer-prop-edit{
@@ -1230,6 +1337,16 @@ font-size: 13px;
1230
  margin-bottom: 10px;
1231
  }
1232
 
 
 
 
 
 
 
 
 
 
 
1233
  .pagelayer-elp-group-item-head{
1234
  display:flex;
1235
  background: #F8F8F8;
@@ -1312,12 +1429,13 @@ padding: 10px !important;
1312
 
1313
  .pagelayer-topbar-holder{
1314
  background-color: #3e8ef7;
 
1315
  }
1316
 
1317
  .pagelayer-logo{
1318
  font-size:20px;
1319
  font-weight: bold;
1320
- display: table-cell;
1321
  text-align:center;
1322
  vertical-align:middle;
1323
  color:#fff;
@@ -1331,6 +1449,16 @@ line-height: normal;
1331
  vertical-align: super;
1332
  }
1333
 
 
 
 
 
 
 
 
 
 
 
1334
  .pagelayer-leftbar{
1335
  width:270px !important;
1336
  padding-top:0;
@@ -1452,7 +1580,7 @@ padding:1px;
1452
  .pagelayer-pl_row:before{content:"\f0c9"} /* e916 */
1453
  .pagelayer-pl_inner_row:before{content:"\f022"}
1454
  .pagelayer-pl_col:before{content:"\f0db"}
1455
- .pagelayer-pl_heading:before{content:"\e90f";font-size:18px;}
1456
  .pagelayer-pl_text:before{content:"\f036"}
1457
  .pagelayer-pl_code:before{content:"\f044"}
1458
  .pagelayer-pl_quote:before{content:"\e906"}
@@ -1518,6 +1646,7 @@ padding:1px;
1518
  .pagelayer-pl_wp_title:before{content:"\e90f";font-size:18px;}
1519
  .pagelayer-pl_wp_menu:before{content:"\e900";font-size:28px; margin:-3px;}
1520
  .pagelayer-pl_arrow_down:before{content:"\e900";font-size:28px; margin:-3px;}
 
1521
  .pagelayer-shortcode[class*="pagelayer-pl_wp_"]:before{content:"\f19a"}
1522
 
1523
  /* Trumbowyg color widget style */
@@ -1588,6 +1717,7 @@ font-size: 12px;
1588
  color:#505050;
1589
  }
1590
 
 
1591
  .pagelayer-history,
1592
  .pagelayer-history-hidden{
1593
  display:none;
@@ -1634,5 +1764,63 @@ height: 20px;
1634
  margin-right:5px;
1635
  }
1636
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1637
 
1638
- /* Pagelayer history end*/
223
  margin: auto 5px;
224
  }
225
 
226
+ .pagelayer-update-button,
227
+ .pagelayer-post-settings-apply{
228
  border: #398439 1px solid;
229
  color: #fff;
230
  background: #449d44;
479
  line-height: 150%;
480
  }
481
 
482
+ .pagelayer-elp-heading{
483
+ font-size: 13px;
484
+ font-weight:600;
485
+ line-height: 150%;
486
+ }
487
+
488
  .pagelayer-elp-screen{
489
  display: inline-block;
490
+ position: absolute;
491
+ top: -2px;
492
+ text-align: center;
493
+ z-index: 1;
494
  }
495
 
496
  .pagelayer-elp-screen .fa{
497
+ padding: 0;
498
  cursor: pointer;
499
+ box-shadow: 0 0 0.5rem #babbbc;
500
+ height: 30px;
501
+ width: 30px;
502
+ border-radius: 50%;
503
+ line-height: 30px;
504
+ transition-duration: 0.1s;
505
+ }
506
+
507
+ .pagelayer-elp-screen .fa-desktop:not(.pagelayer-prop-screen),
508
+ .pagelayer-elp-screen .fa-tablet:not(.pagelayer-prop-screen),
509
+ .pagelayer-elp-screen .fa-mobile:not(.pagelayer-prop-screen){
510
+ position: absolute;
511
+ transform: none;
512
+ left: 0;
513
+ opacity:0;
514
+ background:#aaaaaa;
515
+ color:#ffffff;
516
  }
517
 
518
+ .pagelayer-elp-screen .fa-desktop.open{
519
+ transform: rotate(-90deg) translate(30px, -27px) rotate(90deg);
520
+ transition-delay: 0s;
521
+ left: 40px;
522
+ opacity:1;
523
+ }
524
+
525
+ .pagelayer-elp-screen .fa-tablet.open{
526
+ transform: rotate(-90deg) translate(0px, -6px) rotate(90deg);
527
+ transition-delay: 0.1s;
528
+ left: 40px;
529
+ opacity:1;
530
+ }
531
+
532
+ .pagelayer-elp-screen .fa-mobile.open{
533
+ transform: rotate(-90deg) translate(-30px, -27px) rotate(90deg);
534
+ transition-delay: 0.2s;
535
+ left: 40px;
536
+ opacity:1;
537
+ }
538
+
539
+ .pagelayer-elp-screen .pagelayer-prop-screen{
540
+ box-shadow: none;
541
+ z-index: 2;
542
+ position: absolute;
543
+ }
544
+
545
+ .pagelayer-elp-screen .fa:not(.pagelayer-prop-screen):hover{
546
+ background-color: #3E8EF7;
547
+ }
548
+
549
+ .pagelayer-elp-screen .pagelayer-prop-screen:hover{
550
+ color: #3E8EF7;
551
  }
552
 
553
  .pagelayer-elp-screen .fa-tablet{
589
  .pagelayer-elpd-body input,
590
  .pagelayer-elpd-body textarea,
591
  .pagelayer-elpd-body select,
592
+ .pagelayer-elpd-body option,
593
+ .pagelayer-elp-multiselect{
594
  font-size: 13px !important;
595
  color: #666;
596
  border-radius: unset;
1038
  background: #CCC !important;
1039
  }
1040
 
1041
+ /* Pagelayer Multi Select Property */
1042
+ .pagelayer-elp-multiselect{
1043
+ min-height: 25px;
1044
+ width:96%;
1045
+ }
1046
+
1047
+ .pagelayer-elp-multiselect-ul{
1048
+ list-style:none;
1049
+ padding:0;
1050
+ margin:0;
1051
+ display:none;
1052
+ border: 1px solid #CCC;
1053
+ border-radius: 0 0 5px 5px;
1054
+ border-top:none;
1055
+ position:absolute;
1056
+ background:rgb(255, 255, 255);
1057
+ z-index:1;
1058
+ width:100%;
1059
+ }
1060
+
1061
+ .pagelayer-elp-multiselect-option{
1062
+ font-size:13px;
1063
+ padding:3px 8px;
1064
+ cursor:pointer;
1065
+ }
1066
+
1067
+ .pagelayer-elp-multiselect-option[selected="selected"]{
1068
+ background: #cccccc;
1069
+ }
1070
+
1071
+ .pagelayer-elp-multiselect-selected{
1072
+ padding: 3px 5px;
1073
+ border-radius: 5px;
1074
+ margin: 2px;
1075
+ background: #cccccc;
1076
+ line-height: 13px;
1077
+ font-size: 13px;
1078
+ }
1079
+
1080
+ .pagelayer-elp-multiselect{
1081
+ display: flex;
1082
+ flex-wrap: wrap;
1083
+ padding: 5px;
1084
+ }
1085
+
1086
+ /* Pagelayer Multi Select Property end*/
1087
+
1088
  .pagelayer-elp-multi_image{
1089
  padding: 3px;
1090
  width: 60%;
1205
  position: absolute;
1206
  background-color: #fff;
1207
  width: 86%;
1208
+ z-index: 2;
1209
  }
1210
 
1211
  .pagelayer-prop-edit{
1337
  margin-bottom: 10px;
1338
  }
1339
 
1340
+ .pagelayer-elp-group-item .pagelayer-form-item{
1341
+ padding: 10px 0px 10px 0px;
1342
+ }
1343
+
1344
+ .pagelayer-elp-group-item .pagelayer-elp-select-div,
1345
+ .pagelayer-elp-group-item .pagelayer-elp-spinner-div,
1346
+ .pagelayer-elp-group-item .pagelayer-elp-color-div{
1347
+ right:0px;
1348
+ }
1349
+
1350
  .pagelayer-elp-group-item-head{
1351
  display:flex;
1352
  background: #F8F8F8;
1429
 
1430
  .pagelayer-topbar-holder{
1431
  background-color: #3e8ef7;
1432
+ position:relative;
1433
  }
1434
 
1435
  .pagelayer-logo{
1436
  font-size:20px;
1437
  font-weight: bold;
1438
+ display: block;
1439
  text-align:center;
1440
  vertical-align:middle;
1441
  color:#fff;
1449
  vertical-align: super;
1450
  }
1451
 
1452
+ .pagelayer-settings-icon{
1453
+ float:right;
1454
+ padding-right:10px;
1455
+ cursor: pointer;
1456
+ position: absolute;
1457
+ right: 5px;
1458
+ top: 50%;
1459
+ transform: translateY(-50%);
1460
+ }
1461
+
1462
  .pagelayer-leftbar{
1463
  width:270px !important;
1464
  padding-top:0;
1580
  .pagelayer-pl_row:before{content:"\f0c9"} /* e916 */
1581
  .pagelayer-pl_inner_row:before{content:"\f022"}
1582
  .pagelayer-pl_col:before{content:"\f0db"}
1583
+ .pagelayer-pl_heading:before,.pagelayer-pl_post_title:before{content:"\e90f";font-size:18px;}
1584
  .pagelayer-pl_text:before{content:"\f036"}
1585
  .pagelayer-pl_code:before{content:"\f044"}
1586
  .pagelayer-pl_quote:before{content:"\e906"}
1646
  .pagelayer-pl_wp_title:before{content:"\e90f";font-size:18px;}
1647
  .pagelayer-pl_wp_menu:before{content:"\e900";font-size:28px; margin:-3px;}
1648
  .pagelayer-pl_arrow_down:before{content:"\e900";font-size:28px; margin:-3px;}
1649
+ .pagelayer-pl_posts:before{content:"\e92e";font-size:28px; margin:-3px;}
1650
  .pagelayer-shortcode[class*="pagelayer-pl_wp_"]:before{content:"\f19a"}
1651
 
1652
  /* Trumbowyg color widget style */
1717
  color:#505050;
1718
  }
1719
 
1720
+ .pagelayer-leftbar-tab,
1721
  .pagelayer-history,
1722
  .pagelayer-history-hidden{
1723
  display:none;
1764
  margin-right:5px;
1765
  }
1766
 
1767
+ /* Pagelayer history end*/
1768
+
1769
+ /* Pagelayer settings*/
1770
+
1771
+ .pagelayer-post-settings-holder{
1772
+ border:1px solid #d3d3d3;
1773
+ font-size: 14px;
1774
+ line-height: 150%;
1775
+ }
1776
+
1777
+ .pagelayer-post-settings-acc{
1778
+ background-color:#fff;
1779
+ }
1780
+
1781
+ .pagelayer-post-settings-apply{
1782
+ font-size: 14px;
1783
+ font-weight: bold;
1784
+ cursor: pointer;
1785
+ border-radius: 2px;
1786
+ padding: 4px 8px;
1787
+ margin: auto 5px;
1788
+ }
1789
+
1790
+ .pagelayer-post-settings-apply[disabled]{
1791
+ opacity:0.5;
1792
+ }
1793
+
1794
+ .pagelayer-post-settings-acc{
1795
+ margin-top:7px;
1796
+ }
1797
+
1798
+ .pagelayer-post-settings-fields{
1799
+ padding:10px;
1800
+ display:none;
1801
+ }
1802
+
1803
+ .pagelayer-post-settings-lable{
1804
+ border:1px solid #d3d3d3;
1805
+ padding:10px;
1806
+ cursor:pointer;
1807
+ }
1808
+
1809
+ .pagelayer-toggle{
1810
+ float:right;
1811
+ }
1812
+
1813
+ .pagelayer-toggle:not(.pagelayer-open):before{
1814
+ content: "\f0da";
1815
+ }
1816
+
1817
+ .pagelayer-toggle.pagelayer-open:before{
1818
+ content: "\f0d7";
1819
+ }
1820
+
1821
+ .pagelayer-post-settings-fields label{
1822
+ display:block;
1823
+ margin:7px 0;
1824
+ }
1825
 
1826
+ /* Pagelayer settings end*/
css/pagelayer-frontend.css CHANGED
@@ -24,6 +24,10 @@
24
  transition:0.5s;
25
  }
26
 
 
 
 
 
27
  /* To give no decoration to a link for a pagelayer element */
28
  .pagelayer-ele-link{
29
  text-decoration:none;
@@ -52,6 +56,11 @@ position:relative;
52
  width:100%;
53
  }
54
 
 
 
 
 
 
55
  .pagelayer-row-shape{
56
  width:100%;
57
  position:absolute;
@@ -471,25 +480,25 @@ line-height:1;
471
  /* Icon widget end */
472
 
473
  /* Icon animation */
474
- .pagelayer-animation-grow, [pagelayer-animation="grow"] i{
475
  transition: transform 400ms;
476
  }
477
 
478
- .pagelayer-animation-grow:hover, [pagelayer-animation="grow"] i:hover{
479
  transform: scale(1.1);
480
  }
481
 
482
- .pagelayer-animation-shrink, [pagelayer-animation="shrink"] i{
483
  transition: transform 400ms;
484
  }
485
 
486
- .pagelayer-animation-shrink:hover, [pagelayer-animation="shrink"] i:hover{
487
  transform: scale(0.9);
488
  }
489
 
490
  @keyframes pagelayer-animation-pulse{25%{transform:scale(1.1)}75%{transform:scale(0.9)}}
491
 
492
- .pagelayer-animation-pulse:hover, [pagelayer-animation="pulse"] i:hover{
493
  animation-name: pagelayer-animation-pulse;
494
  animation-duration: 1s;
495
  animation-timing-function: linear;
@@ -498,7 +507,7 @@ animation-iteration-count: infinite;
498
 
499
  @keyframes pagelayer-animation-pulse-grow{to{transform:scale(1.1)}}
500
 
501
- .pagelayer-animation-pulse-grow:hover, [pagelayer-animation="pulse-grow"] i:hover{
502
  animation-name: pagelayer-animation-pulse-grow;
503
  animation-duration: 0.4s;
504
  animation-timing-function: linear;
@@ -508,7 +517,7 @@ animation-direction:alternate;
508
 
509
  @keyframes pagelayer-animation-pulse-shrink{to{transform:scale(0.9)}}
510
 
511
- .pagelayer-animation-pulse-shrink:hover, [pagelayer-animation="pulse-shrink"] i:hover{
512
  animation-name: pagelayer-animation-pulse-shrink;
513
  animation-duration: 0.4s;
514
  animation-timing-function: linear;
@@ -518,7 +527,7 @@ animation-direction:alternate;
518
 
519
  @keyframes pagelayer-animation-push{50%{transform:scale(0.8)}100%{transform:scale(1)}}
520
 
521
- .pagelayer-animation-push:hover, [pagelayer-animation="push"] i:hover{
522
  animation-name:pagelayer-animation-push;
523
  animation-duration:0.4s;
524
  animation-timing-function:linear;
@@ -527,7 +536,7 @@ animation-iteration-count:1
527
 
528
  @keyframes pagelayer-animation-pop{50%{transform:scale(1.2)}}
529
 
530
- .pagelayer-animation-pop:hover, [pagelayer-animation="pop"] i:hover{
531
  animation-name:pagelayer-animation-pop;
532
  animation-duration:0.4s;
533
  animation-timing-function:linear;
@@ -543,7 +552,7 @@ transform:translateX(-3px) rotate(-2deg)
543
  }
544
  }
545
 
546
- .pagelayer-animation-buzz:hover, [pagelayer-animation="buzz"] i:hover{
547
  animation-name:pagelayer-animation-buzz;
548
  animation-duration:0.15s;
549
  animation-timing-function:linear;
@@ -563,18 +572,18 @@ animation-iteration-count:infinite;
563
  100%{transform:translateX(-1px) rotate(0)}
564
  }
565
 
566
- .pagelayer-animation-buzz-out:hover, [pagelayer-animation="buzz-out"] i:hover{
567
  animation-name:pagelayer-animation-buzz-out;
568
  animation-duration:0.7s;
569
  animation-timing-function:linear;
570
  animation-iteration-count:1;
571
  }
572
 
573
- .pagelayer-animation-float:hover, [pagelayer-animation="float"] i:hover{
574
  transform:translateY(-8px)
575
  }
576
 
577
- .pagelayer-animation-sink:hover, [pagelayer-animation="sink"] i:hover{
578
  transform:translateY(8px)
579
  }
580
 
@@ -588,7 +597,7 @@ transform:translateY(8px)
588
  100%{transform:translateY(-8px)}
589
  }
590
 
591
- .pagelayer-animation-bob:hover, [pagelayer-animation="bob"] i:hover{
592
  animation-name:pagelayer-animation-bob-up,pagelayer-animation-bob;
593
  animation-duration:0.4s,1.5s;
594
  animation-timing-function:ease-out,ease-in-out;
@@ -606,7 +615,7 @@ animation-iteration-count:infinite;
606
  100%{transform:translateY(8px)}
607
  }
608
 
609
- .pagelayer-animation-hang:hover, [pagelayer-animation="hang"] i:hover{
610
  animation-name:pagelayer-animation-hang-up,pagelayer-animation-hang;
611
  animation-duration:0.4s,1.5s;
612
  animation-timing-function:ease-out,ease-in-out;
@@ -615,36 +624,36 @@ animation-iteration-count:1,infinite;
615
  animation-direction:normal,alternate;
616
  }
617
 
618
- .pagelayer-animation-bounce-in, [pagelayer-animation="bounce-in"] i{
619
  transition-duration:0.5s;
620
  }
621
- .pagelayer-animation-bounce-in:hover, [pagelayer-animation="bounce-in"] i:hover{
622
  transform:scale(1.2);
623
  transition-timing-function:cubic-bezier(0.52,2.07,0.36,-0.41);
624
  }
625
 
626
- .pagelayer-animation-bounce-out, [pagelayer-animation="bounce-out"] i{
627
  transition-duration:0.5s;
628
  }
629
 
630
- .pagelayer-animation-bounce-out:hover, [pagelayer-animation="bounce-out"] i:hover{
631
  transform:scale(0.8);
632
  transition-timing-function:cubic-bezier(0.52,2.07,0.36,-0.41);
633
  }
634
 
635
- .pagelayer-animation-rotate:hover, [pagelayer-animation="rotate"] i:hover{
636
  transform:rotate(6deg);
637
  }
638
 
639
- .pagelayer-animation-grow-rotate:hover, [pagelayer-animation="grow-rotate"] i:hover{
640
  transform:scale(1.1) rotate(6deg);
641
  }
642
 
643
- .pagelayer-animation-skew-forward:hover, [pagelayer-animation="skew-forward"] i:hover{
644
  transform:skew(-9deg);
645
  }
646
 
647
- .pagelayer-animation-skew-backward:hover, [pagelayer-animation="skew-backward"] i:hover{
648
  transform:skew(9deg);
649
  }
650
 
@@ -657,7 +666,7 @@ transform:skew(9deg);
657
  100%{transform:translateY(0)}
658
  }
659
 
660
- .pagelayer-animation-wobble-vertical:hover, [pagelayer-animation="wobble-vertical"] i:hover{
661
  animation-name:pagelayer-animation-wobble-vertical;
662
  animation-duration:1s;
663
  animation-timing-function:ease-in-out;
@@ -673,7 +682,7 @@ animation-iteration-count:1;
673
  100%{transform:translateX(0)}
674
  }
675
 
676
- .pagelayer-animation-wobble-horizontal:hover, [pagelayer-animation="wobble-horizontal"] i:hover{
677
  animation-name:pagelayer-animation-wobble-horizontal;
678
  animation-duration:1s;
679
  animation-timing-function:ease-in-out;
@@ -690,7 +699,7 @@ animation-iteration-count:1;
690
  }
691
 
692
 
693
- .pagelayer-animation-wobble-bottom-to-right:hover, [pagelayer-animation="wobble-bottom-to-right"] i:hover{
694
  animation-name:pagelayer-animation-wobble-bottom-to-right;
695
  animation-duration:1s;
696
  animation-timing-function:ease-in-out;
@@ -707,14 +716,14 @@ animation-iteration-count:1;
707
  }
708
 
709
 
710
- .pagelayer-animation-wobble-top-to-right:hover, [pagelayer-animation="wobble-top-to-right"] i:hover{
711
  animation-name:pagelayer-animation-wobble-top-to-right;
712
  animation-duration:1s;
713
  animation-timing-function:ease-in-out;
714
  animation-iteration-count:1;
715
  }
716
 
717
- .pagelayer-animation-wobble-top, [pagelayer-animation="wobble-top"] i
718
  {
719
  transform-origin:0 100%;
720
  }
@@ -728,14 +737,14 @@ transform-origin:0 100%;
728
  100%{transform:skew(0)}
729
  }
730
 
731
- .pagelayer-animation-wobble-top:hover, [pagelayer-animation="wobble-top"] i:hover{
732
  animation-name:pagelayer-animation-wobble-top;
733
  animation-duration:1s;
734
  animation-timing-function:ease-in-out;
735
  animation-iteration-count:1
736
  }
737
 
738
- .pagelayer-animation-wobble-bottom, [pagelayer-animation="wobble-bottom"] i{
739
  transform-origin:100% 0;
740
  }
741
 
@@ -748,7 +757,7 @@ transform-origin:100% 0;
748
  100%{transform:skew(0)}
749
  }
750
 
751
- .pagelayer-animation-wobble-bottom:hover, [pagelayer-animation="wobble-bottom"] i:hover{
752
  animation-name:pagelayer-animation-wobble-bottom;
753
  animation-duration:1s;
754
  animation-timing-function:ease-in-out;
@@ -764,7 +773,7 @@ animation-iteration-count:1
764
  100%{transform:skew(0)}
765
  }
766
 
767
- .pagelayer-animation-wobble-skew:hover, [pagelayer-animation="wobble-skew"] i:hover{
768
  animation-name:pagelayer-animation-wobble-skew;
769
  animation-duration:1s;
770
  animation-timing-function:ease-in-out;
@@ -1538,16 +1547,26 @@ background-color:#f94877;
1538
  color:#f94877;
1539
  }
1540
 
1541
- .pagelayer-share_grp[class*="pagelayer-social-shape"] .fa{
1542
- height:1em;
1543
- width:1em;
1544
  position: absolute;
1545
  top: 50%;
1546
  left: 50%;
1547
  transform: translate(-50% , -50%);
1548
  }
 
 
 
 
 
 
 
 
 
 
 
1549
 
1550
- .pagelayer-share_grp[class*="pagelayer-social-shape"] .pagelayer-icon-holder{
1551
  position: relative;
1552
  min-height: 1em;
1553
  min-width: 1em;
@@ -1587,9 +1606,6 @@ display:flex;
1587
  align-items:center;
1588
  }
1589
 
1590
- .pagelayer-icon-name span{
1591
- display:none;
1592
- }
1593
 
1594
  .pagelayer-social-shape-circle .pagelayer-share-content{
1595
  border-radius:100000px;
@@ -1599,12 +1615,41 @@ border-radius:100000px;
1599
  padding:0 20px 0 5px;
1600
  }
1601
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1602
  /* Social Profile end */
1603
 
1604
  /* Call to action */
1605
 
1606
- .pagelayer-call{
1607
  overflow:hidden;
 
1608
  }
1609
 
1610
  .pagelayer-cta-image{
@@ -1617,6 +1662,14 @@ background-position: center;
1617
  transition:all 5s;
1618
  }
1619
 
 
 
 
 
 
 
 
 
1620
  .pagelayer-call[class*="pagelayer-cta-align"]{
1621
  display:flex;
1622
  flex-wrap:wrap;
@@ -1629,15 +1682,57 @@ flex-direction:row-reverse;
1629
 
1630
  .pagelayer-cta-content-holder{
1631
  display:flex;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1632
  }
1633
 
1634
  .pagelayer-cta-ribbon:after{
1635
- content:'';
 
 
 
1636
  }
1637
 
1638
- /* .pagelayer-cta-layout-overlay{
1639
- position:relative;
1640
- } */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1641
 
1642
  .pagelayer-cta-layout-overlay .pagelayer-cta-image{
1643
  width:100%;
@@ -1708,10 +1803,6 @@ margin-bottom:0;
1708
  padding:0;
1709
  }
1710
 
1711
- .pagelayer-cta-align-center .pagelayer-cta-image{
1712
- width:100%;
1713
- }
1714
-
1715
  /* Video */
1716
 
1717
  .pagelayer-video .pagelayer-video-holder{
@@ -1857,6 +1948,7 @@ line-height: normal;
1857
  .pagelayer-testimonial-image{
1858
  -o-object-fit: cover;
1859
  object-fit: cover;
 
1860
  }
1861
 
1862
  .pagelayer-testimonial-square{
@@ -1992,15 +2084,57 @@ width:1em;
1992
  }
1993
  /*Stars widget end*/
1994
 
1995
- .pagelayer-site-title-link{
1996
- display: flex;
1997
- flex-wrap: wrap;
 
 
 
 
 
1998
  }
1999
 
2000
- .pagelayer-site-title-img{
2001
  box-shadow: none !important;
2002
  }
2003
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2004
 
2005
  /* Primary Menu */
2006
 
@@ -2252,6 +2386,12 @@ display:block !important;
2252
  /*pricing plans*/
2253
  .pagelayer-pricing{
2254
  text-align:center;
 
 
 
 
 
 
2255
  }
2256
 
2257
  .pagelayer-pricing-details h1,
@@ -2264,7 +2404,6 @@ margin:10px 0px; padding:0px;
2264
 
2265
  .pagelayer-pricing-details{
2266
  position: relative;
2267
- overflow:hidden;
2268
  background-color:#1e1558;
2269
  border-top-left-radius: inherit;
2270
  border-top-right-radius: inherit;
@@ -2282,6 +2421,17 @@ font-weight: normal;
2282
  font-weight:800;
2283
  }
2284
 
 
 
 
 
 
 
 
 
 
 
 
2285
  .pagelayer-pricing-details{
2286
  font-size:15px;
2287
  }
@@ -2292,41 +2442,73 @@ margin:0px;
2292
  }
2293
 
2294
  .pagelayer-pricing-features{
2295
- padding-left:20px;
2296
- padding-right:20px;
2297
  border-bottom-left-radius: inherit;
2298
  border-bottom-right-radius: inherit;
2299
  }
2300
 
 
 
 
 
2301
  .pagelayer-pricing-ul li{
 
2302
  list-style-type: none;
2303
- padding:10px;
2304
- border-bottom: 2px solid #e5e5e5e6;
 
 
 
 
 
 
 
 
2305
  }
2306
 
2307
  .pagelayer-pricing-btn{
2308
- background-color: #1e1558;
2309
- color:#fff;
2310
  }
2311
 
2312
  .pagelayer-pricing-additional{
2313
- margin:20px 0px;
 
 
 
 
 
 
 
 
 
 
 
2314
  }
2315
 
2316
  .pagelayer-pricing-ribbon{
2317
  display: none;
2318
- width: 225px;
2319
  background-color: #ce4210ff;
2320
  position: absolute;
2321
- top: 19px;
2322
- right: -76px;
2323
- left: auto;
2324
  text-align: center;
2325
- line-height: 30px;
2326
  letter-spacing: 1px;
2327
  color: #f0f0f0;
2328
- transform: rotate(45deg);
2329
- -webkit-transform: rotate(45deg);
 
 
 
 
 
 
 
 
 
 
 
 
2330
  }
2331
 
2332
  /*pricing plans end*/
@@ -2351,15 +2533,6 @@ vertical-align: middle;
2351
  .pagelayer-call-center{
2352
  text-align: center;
2353
  }
2354
- .pagelayer-pricing-price.pagelayer-pricing-original{
2355
- display:none;
2356
- text-decoration: line-through;
2357
- margin-right: 10px;
2358
- }
2359
-
2360
- h2.pagelayer-pricing-price{
2361
- display:inline-block;
2362
- }
2363
 
2364
  .pagelayer-call-center .pagelayer-call-icon-section,
2365
  .pagelayer-call-center .pagelayer-call-content-section,
@@ -2367,16 +2540,6 @@ display:inline-block;
2367
  display: block;
2368
  }
2369
 
2370
- .pagelayer-pricing-currency-top{
2371
- vertical-align:text-top;
2372
- }
2373
- .pagelayer-pricing-currency-middle{
2374
- vertical-align: middle;
2375
- }
2376
- .pagelayer-pricing-currency-bottom{
2377
- vertical-align: text-bottom;
2378
- }
2379
-
2380
  .pagelayer-call-3d{
2381
  background: #eee;
2382
  border-bottom: 5px solid #ddd;
@@ -2454,27 +2617,30 @@ padding: 50px;
2454
  top: 0;
2455
  left: 0;
2456
  height: 100%;
2457
- width: auto;
2458
  overflow: auto;
2459
  color: #000;
2460
  opacity: 1;
2461
- z-index: 99;
2462
  }
2463
 
2464
- .pagelayer-modal-bottom-content{
 
2465
  padding: 50px;
 
2466
  }
2467
  .pagelayer-modal-body,
2468
- .pagelayer-splash-content{
2469
- position: relative;
2470
- background-color: #fefefe;
2471
  margin: auto;
2472
- border: 1px solid #888;
2473
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
2474
  -webkit-animation-name: animatetop;
2475
  -webkit-animation-duration: 0.4s;
2476
  animation-name: animatetop;
2477
- animation-duration: 0.4s
 
 
 
2478
  }
2479
 
2480
  .pagelayer-btn-icon-left .pagelayer-icon-right{
@@ -2504,8 +2670,6 @@ top: 25px;
2504
  color: #fff;
2505
  font-size: 70px !important;
2506
  cursor: pointer;
2507
- height: 80px;
2508
- width: 80px;
2509
  }
2510
 
2511
  .pagelayer-modal-close:before,
@@ -2516,7 +2680,6 @@ position: absolute;
2516
  top: 2px;
2517
  right: 38px;
2518
  content: ' ';
2519
- height: 80px;
2520
  width: 2px;
2521
  background-color: #fff;
2522
  }
@@ -2535,17 +2698,34 @@ transform: rotate(45deg);
2535
  transform: rotate(-45deg);
2536
  }
2537
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2538
  .pagelayer-countdown-days,
2539
  .pagelayer-countdown-hours,
2540
  .pagelayer-countdown-minutes,
2541
  .pagelayer-countdown-seconds{
2542
- display: table-cell;
2543
  vertical-align: middle;
2544
- /* width: 100px;
2545
- height: 100px; */
2546
  background: #eee;
2547
- border-radius: 50%;
2548
- margin: 0 5px;
2549
  }
2550
 
2551
  .pagelayer-countdown-days div,
@@ -2556,10 +2736,27 @@ margin: 0 5px;
2556
  line-height: 1;
2557
  }
2558
 
2559
- .pagelayer-countdown-container center{
2560
- /* border-spacing: 5px; */
2561
  }
2562
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2563
  #pagelayer-header-menu{
2564
  display: inline-block;
2565
  }
@@ -2567,25 +2764,26 @@ line-height: 1;
2567
 
2568
  /* splash style */
2569
  .pagelayer-splash .pagelayer-splash-dark,
2570
- .pagelayer-modal .modal-dark{
2571
  background-color:#000000e0;
2572
  }
2573
 
2574
- .pagelayer-modal .modal-light{
 
2575
  background-color:#ffffffe0;
2576
  }
2577
 
2578
  .pagelayer-splash-light .pagelayer-splash-close::after,
2579
  .pagelayer-splash-light .pagelayer-splash-close::before,
2580
- .modal-light .pagelayer-modal-close::after,
2581
- .modal-light .pagelayer-modal-close::before{
2582
  background-color:#000000;
2583
  }
2584
 
2585
  .pagelayer-splash-dark .pagelayer-splash-close::after,
2586
  .pagelayer-splash-dark .pagelayer-splash-close::before,
2587
- .modal-dark .pagelayer-modal-close::after,
2588
- .modal-dark .pagelayer-modal-close::before{
2589
  background-color:#fff;
2590
  }
2591
 
@@ -2659,6 +2857,9 @@ line-height:1;
2659
  /*Image Slider style start*/
2660
  .pagelayer-image-slider-ul{
2661
  display:none;
 
 
 
2662
  }
2663
 
2664
  .pagelayer-image-slider-ul[pagelayer-setup]{
@@ -2848,15 +3049,21 @@ transform: rotate(-45deg);
2848
  .pagelayer-grid-gallery-ul{
2849
  display:block;
2850
  list-style:none;
 
 
2851
  }
2852
 
2853
  .pagelayer-gallery-item{
2854
- display:inline-flex;
2855
  list-style:none;
2856
- padding: 5px;
2857
  border: none;
2858
  }
2859
 
 
 
 
 
 
 
2860
  .pagelayer-grid-gallery-caption{
2861
  display:block;
2862
  }
@@ -2910,148 +3117,29 @@ height:100%;
2910
  max-width:unset;
2911
  }
2912
 
2913
- /*******************/
2914
-
2915
- /* Image hotspot */
2916
-
2917
- .pagelayer-image-hotspots-anim:hover:before{
2918
- transform: scale(2);
2919
- }
2920
- .pagelayer-image-hotspots-anim i{
2921
- position: relative;
2922
- }
2923
-
2924
- .pagelayer-image-hotspots-anim::before {
2925
- content: "";
2926
- transform: scale(1);
2927
- position: absolute;
2928
- top:0;
2929
- left:0;
2930
- bottom:0;
2931
- right:0;
2932
- pointer-events: none;
2933
- animation: pagelayer-hotspot 2s infinite;
2934
  }
2935
 
2936
- @keyframes pagelayer-hotspot {
2937
- 0% {transform: scale(1);opacity: 1;}
2938
- 100% {transform: scale(1.5); opacity: 0;}
2939
- }
2940
-
2941
- .pagelayer-hotspots-hover .pagelayer-hotspots-icon-holder:hover .pagelayer-tooltip-text,
2942
- .pagelayer-hotspots-always .pagelayer-hotspots-icon-holder .pagelayer-tooltip-text{
2943
- visibility:visible;
2944
- }
2945
-
2946
- /* Image Hotspot end */
2947
-
2948
- /* Search Form */
2949
- .pagelayer-search-classic .pagelayer-search-fields{
2950
- display: flex;
2951
- overflow:hidden;
2952
- }
2953
-
2954
- .pagelayer-search-classic .pagelayer-search-fields input.pagelayer-search-input{
2955
- /*background:none;*/
2956
- border-width:0px;
2957
- }
2958
-
2959
- .pagelayer-search-classic .pagelayer-search-fields .pagelayer-search-submit{
2960
- border-radius:0px;
2961
- }
2962
-
2963
- .pagelayer-search-toggle,
2964
- .pagelayer-search-full-screen .pagelayer-search-fields{
2965
- display:none;
2966
- }
2967
-
2968
- .pagelayer-search-full-screen .pagelayer-search-toggle{
2969
  display:inline-block;
2970
- text-align: center;
2971
- }
2972
-
2973
- .pagelayer-search-full-screen .pagelayer-search-fields.show{
2974
- position: fixed;
2975
- top: 0;
2976
- left: 0;
2977
- background: #211c1c;
2978
- bottom: 0;
2979
- right: 0;
2980
- z-index: 99;
2981
- align-items: center;
2982
- display: flex;
2983
- text-align: center;
2984
- flex-direction: column;
2985
- }
2986
-
2987
- .pagelayer-search-full-screen .pagelayer-search-input,
2988
- .pagelayer-search-full-screen .pagelayer-search-input:focus{
2989
- width: 60%;
2990
- text-align: center;
2991
- background: transparent;
2992
- border-width: 0;
2993
- border-bottom-width: 2px;
2994
- position: absolute;
2995
- top: 50%;
2996
- color:#fff;
2997
  }
2998
 
2999
- .pagelayer-search-full-screen .pagelayer-search-submit{
 
 
3000
  display:none;
3001
  }
3002
 
3003
- .pagelayer-post-nav-container{
3004
- display: flex;
3005
- align-items: center;
3006
- }
3007
-
3008
- .pagelayer-prev-post a,
3009
- .pagelayer-next-post a{
3010
- display: inline-flex;
3011
- align-items: center;
3012
- }
3013
-
3014
- .pagelayer-next-post a .pagelayer-post-nav-icon{
3015
- padding-left:12px;
3016
  }
3017
 
3018
- .pagelayer-prev-post a .pagelayer-post-nav-icon{
3019
- padding-right:12px;
 
3020
  }
3021
 
3022
- .pagelayer-next-post{
3023
- text-align:right;
3024
- }
3025
-
3026
- .pagelayer-prev-post a:hover,
3027
- .pagelayer-next-post a:hover{
3028
- text-decoration:none;
3029
- }
3030
-
3031
- .pagelayer-prev-post, .pagelayer-next-post{
3032
- width: calc(50% - 1px);
3033
- }
3034
-
3035
- .pagelayer-post-nav-container .pagelayer-prev-holder,
3036
- .pagelayer-post-nav-container .pagelayer-next-holder{
3037
- display: -webkit-box;
3038
- display: -webkit-flex;
3039
- display: -ms-flexbox;
3040
- display: flex;
3041
- -webkit-box-orient: vertical;
3042
- -webkit-box-direction: normal;
3043
- -webkit-flex-direction: column;
3044
- -ms-flex-direction: column;
3045
- flex-direction: column;
3046
- }
3047
-
3048
- .pagelayer-post-nav-separator{
3049
- align-self: stretch;
3050
- }
3051
-
3052
- /* Search Form end*/
3053
- /* Post info*/
3054
- .pagelayer-post-info-vertical > div{
3055
- display:inline-block;
3056
- }
3057
- /* Post info end*/
24
  transition:0.5s;
25
  }
26
 
27
+ .pagelayer-img{
28
+ vertical-align:bottom;
29
+ }
30
+
31
  /* To give no decoration to a link for a pagelayer element */
32
  .pagelayer-ele-link{
33
  text-decoration:none;
56
  width:100%;
57
  }
58
 
59
+ /* For owl-carousel */
60
+ .pagelayer-row-holder .pagelayer-col:only-child{
61
+ width:100%;
62
+ }
63
+
64
  .pagelayer-row-shape{
65
  width:100%;
66
  position:absolute;
480
  /* Icon widget end */
481
 
482
  /* Icon animation */
483
+ .pagelayer-animation-grow, [pagelayer-animation="grow"] .pagelayer-icon-holder{
484
  transition: transform 400ms;
485
  }
486
 
487
+ .pagelayer-animation-grow:hover, [pagelayer-animation="grow"] .pagelayer-icon-holder:hover{
488
  transform: scale(1.1);
489
  }
490
 
491
+ .pagelayer-animation-shrink, [pagelayer-animation="shrink"] .pagelayer-icon-holder{
492
  transition: transform 400ms;
493
  }
494
 
495
+ .pagelayer-animation-shrink:hover, [pagelayer-animation="shrink"] .pagelayer-icon-holder:hover{
496
  transform: scale(0.9);
497
  }
498
 
499
  @keyframes pagelayer-animation-pulse{25%{transform:scale(1.1)}75%{transform:scale(0.9)}}
500
 
501
+ .pagelayer-animation-pulse:hover, [pagelayer-animation="pulse"] .pagelayer-icon-holder:hover{
502
  animation-name: pagelayer-animation-pulse;
503
  animation-duration: 1s;
504
  animation-timing-function: linear;
507
 
508
  @keyframes pagelayer-animation-pulse-grow{to{transform:scale(1.1)}}
509
 
510
+ .pagelayer-animation-pulse-grow:hover, [pagelayer-animation="pulse-grow"] .pagelayer-icon-holder:hover{
511
  animation-name: pagelayer-animation-pulse-grow;
512
  animation-duration: 0.4s;
513
  animation-timing-function: linear;
517
 
518
  @keyframes pagelayer-animation-pulse-shrink{to{transform:scale(0.9)}}
519
 
520
+ .pagelayer-animation-pulse-shrink:hover, [pagelayer-animation="pulse-shrink"] .pagelayer-icon-holder:hover{
521
  animation-name: pagelayer-animation-pulse-shrink;
522
  animation-duration: 0.4s;
523
  animation-timing-function: linear;
527
 
528
  @keyframes pagelayer-animation-push{50%{transform:scale(0.8)}100%{transform:scale(1)}}
529
 
530
+ .pagelayer-animation-push:hover, [pagelayer-animation="push"] .pagelayer-icon-holder:hover{
531
  animation-name:pagelayer-animation-push;
532
  animation-duration:0.4s;
533
  animation-timing-function:linear;
536
 
537
  @keyframes pagelayer-animation-pop{50%{transform:scale(1.2)}}
538
 
539
+ .pagelayer-animation-pop:hover, [pagelayer-animation="pop"] .pagelayer-icon-holder:hover{
540
  animation-name:pagelayer-animation-pop;
541
  animation-duration:0.4s;
542
  animation-timing-function:linear;
552
  }
553
  }
554
 
555
+ .pagelayer-animation-buzz:hover, [pagelayer-animation="buzz"] .pagelayer-icon-holder:hover{
556
  animation-name:pagelayer-animation-buzz;
557
  animation-duration:0.15s;
558
  animation-timing-function:linear;
572
  100%{transform:translateX(-1px) rotate(0)}
573
  }
574
 
575
+ .pagelayer-animation-buzz-out:hover, [pagelayer-animation="buzz-out"] .pagelayer-icon-holder:hover{
576
  animation-name:pagelayer-animation-buzz-out;
577
  animation-duration:0.7s;
578
  animation-timing-function:linear;
579
  animation-iteration-count:1;
580
  }
581
 
582
+ .pagelayer-animation-float:hover, [pagelayer-animation="float"] .pagelayer-icon-holder:hover{
583
  transform:translateY(-8px)
584
  }
585
 
586
+ .pagelayer-animation-sink:hover, [pagelayer-animation="sink"] .pagelayer-icon-holder:hover{
587
  transform:translateY(8px)
588
  }
589
 
597
  100%{transform:translateY(-8px)}
598
  }
599
 
600
+ .pagelayer-animation-bob:hover, [pagelayer-animation="bob"] .pagelayer-icon-holder:hover{
601
  animation-name:pagelayer-animation-bob-up,pagelayer-animation-bob;
602
  animation-duration:0.4s,1.5s;
603
  animation-timing-function:ease-out,ease-in-out;
615
  100%{transform:translateY(8px)}
616
  }
617
 
618
+ .pagelayer-animation-hang:hover, [pagelayer-animation="hang"] .pagelayer-icon-holder:hover{
619
  animation-name:pagelayer-animation-hang-up,pagelayer-animation-hang;
620
  animation-duration:0.4s,1.5s;
621
  animation-timing-function:ease-out,ease-in-out;
624
  animation-direction:normal,alternate;
625
  }
626
 
627
+ .pagelayer-animation-bounce-in, [pagelayer-animation="bounce-in"] .pagelayer-icon-holder{
628
  transition-duration:0.5s;
629
  }
630
+ .pagelayer-animation-bounce-in:hover, [pagelayer-animation="bounce-in"] .pagelayer-icon-holder:hover{
631
  transform:scale(1.2);
632
  transition-timing-function:cubic-bezier(0.52,2.07,0.36,-0.41);
633
  }
634
 
635
+ .pagelayer-animation-bounce-out, [pagelayer-animation="bounce-out"] .pagelayer-icon-holder{
636
  transition-duration:0.5s;
637
  }
638
 
639
+ .pagelayer-animation-bounce-out:hover, [pagelayer-animation="bounce-out"] .pagelayer-icon-holder:hover{
640
  transform:scale(0.8);
641
  transition-timing-function:cubic-bezier(0.52,2.07,0.36,-0.41);
642
  }
643
 
644
+ .pagelayer-animation-rotate:hover, [pagelayer-animation="rotate"] .pagelayer-icon-holder:hover{
645
  transform:rotate(6deg);
646
  }
647
 
648
+ .pagelayer-animation-grow-rotate:hover, [pagelayer-animation="grow-rotate"] .pagelayer-icon-holder:hover{
649
  transform:scale(1.1) rotate(6deg);
650
  }
651
 
652
+ .pagelayer-animation-skew-forward:hover, [pagelayer-animation="skew-forward"] .pagelayer-icon-holder:hover{
653
  transform:skew(-9deg);
654
  }
655
 
656
+ .pagelayer-animation-skew-backward:hover, [pagelayer-animation="skew-backward"] .pagelayer-icon-holder:hover{
657
  transform:skew(9deg);
658
  }
659
 
666
  100%{transform:translateY(0)}
667
  }
668
 
669
+ .pagelayer-animation-wobble-vertical:hover, [pagelayer-animation="wobble-vertical"] .pagelayer-icon-holder:hover{
670
  animation-name:pagelayer-animation-wobble-vertical;
671
  animation-duration:1s;
672
  animation-timing-function:ease-in-out;
682
  100%{transform:translateX(0)}
683
  }
684
 
685
+ .pagelayer-animation-wobble-horizontal:hover, [pagelayer-animation="wobble-horizontal"] .pagelayer-icon-holder:hover{
686
  animation-name:pagelayer-animation-wobble-horizontal;
687
  animation-duration:1s;
688
  animation-timing-function:ease-in-out;
699
  }
700
 
701
 
702
+ .pagelayer-animation-wobble-bottom-to-right:hover, [pagelayer-animation="wobble-bottom-to-right"] .pagelayer-icon-holder:hover{
703
  animation-name:pagelayer-animation-wobble-bottom-to-right;
704
  animation-duration:1s;
705
  animation-timing-function:ease-in-out;
716
  }
717
 
718
 
719
+ .pagelayer-animation-wobble-top-to-right:hover, [pagelayer-animation="wobble-top-to-right"] .pagelayer-icon-holder:hover{
720
  animation-name:pagelayer-animation-wobble-top-to-right;
721
  animation-duration:1s;
722
  animation-timing-function:ease-in-out;
723
  animation-iteration-count:1;
724
  }
725
 
726
+ .pagelayer-animation-wobble-top, [pagelayer-animation="wobble-top"] .pagelayer-icon-holder
727
  {
728
  transform-origin:0 100%;
729
  }
737
  100%{transform:skew(0)}
738
  }
739
 
740
+ .pagelayer-animation-wobble-top:hover, [pagelayer-animation="wobble-top"] .pagelayer-icon-holder:hover{
741
  animation-name:pagelayer-animation-wobble-top;
742
  animation-duration:1s;
743
  animation-timing-function:ease-in-out;
744
  animation-iteration-count:1
745
  }
746
 
747
+ .pagelayer-animation-wobble-bottom, [pagelayer-animation="wobble-bottom"] .pagelayer-icon-holder{
748
  transform-origin:100% 0;
749
  }
750
 
757
  100%{transform:skew(0)}
758
  }
759
 
760
+ .pagelayer-animation-wobble-bottom:hover, [pagelayer-animation="wobble-bottom"] .pagelayer-icon-holder:hover{
761
  animation-name:pagelayer-animation-wobble-bottom;
762
  animation-duration:1s;
763
  animation-timing-function:ease-in-out;
773
  100%{transform:skew(0)}
774
  }
775
 
776
+ .pagelayer-animation-wobble-skew:hover, [pagelayer-animation="wobble-skew"] .pagelayer-icon-holder:hover{
777
  animation-name:pagelayer-animation-wobble-skew;
778
  animation-duration:1s;
779
  animation-timing-function:ease-in-out;
1547
  color:#f94877;
1548
  }
1549
 
1550
+ .pagelayer-share_grp .fa,
1551
+ .pagelayer-share_grp .fa:before{
 
1552
  position: absolute;
1553
  top: 50%;
1554
  left: 50%;
1555
  transform: translate(-50% , -50%);
1556
  }
1557
+ .pagelayer-share_grp{
1558
+ font-size: 0;
1559
+ }
1560
+ .pagelayer-share_grp > div{
1561
+ display: inline-block;
1562
+ }
1563
+
1564
+ .pagelayer-share_grp .fa{
1565
+ height:1em;
1566
+ width:1em;
1567
+ }
1568
 
1569
+ .pagelayer-share_grp .pagelayer-icon-holder{
1570
  position: relative;
1571
  min-height: 1em;
1572
  min-width: 1em;
1606
  align-items:center;
1607
  }
1608
 
 
 
 
1609
 
1610
  .pagelayer-social-shape-circle .pagelayer-share-content{
1611
  border-radius:100000px;
1615
  padding:0 20px 0 5px;
1616
  }
1617
 
1618
+ .pagelayer-share-buttons{
1619
+ position:relative;
1620
+ border-radius: inherit;
1621
+ }
1622
+
1623
+ .pagelayer-social-shape-boxed .pagelayer-share-buttons:before{
1624
+ content: "";
1625
+ position: absolute;
1626
+ width: 100%;
1627
+ height: 100%;
1628
+ background: rgba(0,0,0,0.15);
1629
+ border-top-left-radius: inherit;
1630
+ border-bottom-left-radius: inherit;
1631
+ left: 0;
1632
+ }
1633
+
1634
+ .pagelayer-share_grp .pagelayer-icon-name span,
1635
+ .pagelayer-share_grp .pagelayer-icon-holder{
1636
+ display:none;
1637
+ }
1638
+
1639
+ .pagelayer-share-type-icon .pagelayer-icon-holder,
1640
+ .pagelayer-share-type-icon-label .pagelayer-icon-holder,
1641
+ .pagelayer-share-type-label .pagelayer-icon-name span,
1642
+ .pagelayer-share-type-icon-label .pagelayer-icon-name span{
1643
+ display:block;
1644
+ }
1645
+
1646
  /* Social Profile end */
1647
 
1648
  /* Call to action */
1649
 
1650
+ .pagelayer-cta-img-holder{
1651
  overflow:hidden;
1652
+ width:100%;
1653
  }
1654
 
1655
  .pagelayer-cta-image{
1662
  transition:all 5s;
1663
  }
1664
 
1665
+ .pagelayer-cta-image:before{
1666
+ content:'';
1667
+ position:absolute;
1668
+ width:100%;
1669
+ height:100%;
1670
+ z-index:1;
1671
+ }
1672
+
1673
  .pagelayer-call[class*="pagelayer-cta-align"]{
1674
  display:flex;
1675
  flex-wrap:wrap;
1682
 
1683
  .pagelayer-cta-content-holder{
1684
  display:flex;
1685
+ flex-grow:1;
1686
+ }
1687
+
1688
+ .pagelayer-cta-content{
1689
+ width:100%;
1690
+ }
1691
+
1692
+ .pagelayer-cta-ribbon:before {
1693
+ content: "";
1694
+ height: 0;
1695
+ width: 0;
1696
+ display: block;
1697
+ position: absolute;
1698
+ border-top: solid;
1699
+ border-bottom: solid;
1700
+ z-index: -1;
1701
  }
1702
 
1703
  .pagelayer-cta-ribbon:after{
1704
+ content: "";
1705
+ width: 100%;
1706
+ left:0;
1707
+ position:absolute;
1708
  }
1709
 
1710
+ .pagelayer-cta-ribbon-left:before{
1711
+ right: 0;
1712
+ border-right: solid transparent;
1713
+ }
1714
+
1715
+ .pagelayer-cta-ribbon-right:before{
1716
+ left: 0;
1717
+ border-left: solid transparent;
1718
+ }
1719
+
1720
+ .pagelayer-cta-ribbon-text{
1721
+ height:100%;
1722
+ }
1723
+
1724
+ .pagelayer-cta-ribbon-text:before{
1725
+ content: "";
1726
+ height: 0;
1727
+ width: 0;
1728
+ display: block;
1729
+ position: absolute;
1730
+ top: 0;
1731
+ border-top: solid;
1732
+ border-bottom: solid;
1733
+ border-right: solid transparent;
1734
+ border-left: solid transparent;
1735
+ }
1736
 
1737
  .pagelayer-cta-layout-overlay .pagelayer-cta-image{
1738
  width:100%;
1803
  padding:0;
1804
  }
1805
 
 
 
 
 
1806
  /* Video */
1807
 
1808
  .pagelayer-video .pagelayer-video-holder{
1948
  .pagelayer-testimonial-image{
1949
  -o-object-fit: cover;
1950
  object-fit: cover;
1951
+ display: unset !important;
1952
  }
1953
 
1954
  .pagelayer-testimonial-square{
2084
  }
2085
  /*Stars widget end*/
2086
 
2087
+ /* Site Title Start */
2088
+ .pagelayer-wp-title-align-top{
2089
+ display:block;
2090
+ text-align: center;
2091
+ }
2092
+
2093
+ .pagelayer-wp-title-heading{
2094
+ padding:5px 20px;
2095
  }
2096
 
2097
+ .pagelayer-wp-title-img{
2098
  box-shadow: none !important;
2099
  }
2100
 
2101
+ .pagelayer-wp-title-align-left,
2102
+ .pagelayer-wp-title-align-right{
2103
+ display: flex;
2104
+ }
2105
+
2106
+ .pagelayer-wp-title-align-right{
2107
+ text-align: right;
2108
+ -webkit-box-orient: horizontal;
2109
+ -webkit-box-direction: reverse;
2110
+ flex-direction: row-reverse;
2111
+ }
2112
+
2113
+ .pagelayer-wp-title-vertical-top{
2114
+ align-items: flex-start;
2115
+ -webkit-align-items: flex-start;
2116
+ -webkit-box-align: start;
2117
+ -ms-flex-align: start;
2118
+ }
2119
+
2120
+ .pagelayer-wp-title-vertical-middle{
2121
+ align-items: center;
2122
+ -webkit-align-items: center;
2123
+ -webkit-box-align: center;
2124
+ -ms-flex-align: center;
2125
+ }
2126
+
2127
+ .pagelayer-wp-title-vertical-bottom{
2128
+ align-items: flex-end;
2129
+ -webkit-align-items: flex-end;
2130
+ -webkit-box-align: end;
2131
+ -ms-flex-align: end;
2132
+ }
2133
+
2134
+ .pagelayer-wp-title-section .pagelayer-wp-title-link{
2135
+ text-decoration: none !important;
2136
+ }
2137
+ /* Site title End */
2138
 
2139
  /* Primary Menu */
2140
 
2386
  /*pricing plans*/
2387
  .pagelayer-pricing{
2388
  text-align:center;
2389
+ border:2px solid #e8e3e3;
2390
+ border-radius:6px;
2391
+ }
2392
+
2393
+ .pagelayer-pricing-rate-section{
2394
+ padding:20px;
2395
  }
2396
 
2397
  .pagelayer-pricing-details h1,
2404
 
2405
  .pagelayer-pricing-details{
2406
  position: relative;
 
2407
  background-color:#1e1558;
2408
  border-top-left-radius: inherit;
2409
  border-top-right-radius: inherit;
2421
  font-weight:800;
2422
  }
2423
 
2424
+ .pagelayer-pricing-price.pagelayer-pricing-original{
2425
+ display:none;
2426
+ text-decoration: line-through;
2427
+ margin-right: 10px;
2428
+ }
2429
+
2430
+ h2.pagelayer-pricing-price{
2431
+ display:inline-block;
2432
+ margin:5px 0px;
2433
+ }
2434
+
2435
  .pagelayer-pricing-details{
2436
  font-size:15px;
2437
  }
2442
  }
2443
 
2444
  .pagelayer-pricing-features{
2445
+ padding:20px;
 
2446
  border-bottom-left-radius: inherit;
2447
  border-bottom-right-radius: inherit;
2448
  }
2449
 
2450
+ .pagelayer-pricing-features .pagelayer-pricing-ul{
2451
+ padding:0px;
2452
+ }
2453
+
2454
  .pagelayer-pricing-ul li{
2455
+ display: inline-block;
2456
  list-style-type: none;
2457
+ padding:5px 0px;
2458
+ }
2459
+
2460
+ .pagelayer-pricing-ul .pagelayer-list_item:after{
2461
+ border-bottom:2px solid #c5c5c5;
2462
+ margin-top: 5px;
2463
+ }
2464
+
2465
+ .pagelayer-list-li span i{
2466
+ margin-right:5px;
2467
  }
2468
 
2469
  .pagelayer-pricing-btn{
2470
+ display: inline-block;
 
2471
  }
2472
 
2473
  .pagelayer-pricing-additional{
2474
+ margin:20px 0px 0px;
2475
+ }
2476
+
2477
+ .pagelayer-pricing-ribbon-container{
2478
+ position: absolute;
2479
+ top: 0;
2480
+ left: auto;
2481
+ right: 0;
2482
+ transform: rotate(90deg);
2483
+ width: 150px;
2484
+ overflow: hidden;
2485
+ height: 150px;
2486
  }
2487
 
2488
  .pagelayer-pricing-ribbon{
2489
  display: none;
2490
+ width: 200%;
2491
  background-color: #ce4210ff;
2492
  position: absolute;
2493
+ left:0;
 
 
2494
  text-align: center;
2495
+ line-height: 2;
2496
  letter-spacing: 1px;
2497
  color: #f0f0f0;
2498
+ margin-top: 40px;
2499
+ transform: translateY(-50%) translateX(-50%) translateX(50px) rotate(-45deg);
2500
+ }
2501
+
2502
+ .pagelayer-pricing-currency-top{
2503
+ vertical-align: top;
2504
+ }
2505
+
2506
+ .pagelayer-pricing-currency-middle{
2507
+ vertical-align: middle;
2508
+ }
2509
+
2510
+ .pagelayer-pricing-currency-bottom{
2511
+ vertical-align: bottom;
2512
  }
2513
 
2514
  /*pricing plans end*/
2533
  .pagelayer-call-center{
2534
  text-align: center;
2535
  }
 
 
 
 
 
 
 
 
 
2536
 
2537
  .pagelayer-call-center .pagelayer-call-icon-section,
2538
  .pagelayer-call-center .pagelayer-call-content-section,
2540
  display: block;
2541
  }
2542
 
 
 
 
 
 
 
 
 
 
 
2543
  .pagelayer-call-3d{
2544
  background: #eee;
2545
  border-bottom: 5px solid #ddd;
2617
  top: 0;
2618
  left: 0;
2619
  height: 100%;
2620
+ width: 100%;
2621
  overflow: auto;
2622
  color: #000;
2623
  opacity: 1;
2624
+ z-index: 99999;
2625
  }
2626
 
2627
+ .pagelayer-modal-bottom-content,
2628
+ .pagelayer-splash-bottom-content{
2629
  padding: 50px;
2630
+ background-color: #fefefe;
2631
  }
2632
  .pagelayer-modal-body,
2633
+ .pagelayer-splash-body{
2634
+ position: absolute;
 
2635
  margin: auto;
 
2636
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
2637
  -webkit-animation-name: animatetop;
2638
  -webkit-animation-duration: 0.4s;
2639
  animation-name: animatetop;
2640
+ animation-duration: 0.4s;
2641
+ left: 50%;
2642
+ top: 50%;
2643
+ transform: translate(-50%, -50%);
2644
  }
2645
 
2646
  .pagelayer-btn-icon-left .pagelayer-icon-right{
2670
  color: #fff;
2671
  font-size: 70px !important;
2672
  cursor: pointer;
 
 
2673
  }
2674
 
2675
  .pagelayer-modal-close:before,
2680
  top: 2px;
2681
  right: 38px;
2682
  content: ' ';
 
2683
  width: 2px;
2684
  background-color: #fff;
2685
  }
2698
  transform: rotate(-45deg);
2699
  }
2700
 
2701
+ .pagelayer-modal-title,
2702
+ .pagelayer-splash-title{
2703
+ background-color: #3D54DF;
2704
+ color: #ffffff;
2705
+ }
2706
+
2707
+
2708
+ /* Countdown Start */
2709
+ .pagelayer-countdown-item{
2710
+ padding:20px 30px;
2711
+ text-align:center;
2712
+ }
2713
+
2714
+ .pagelayer-countdown-counter{
2715
+ display: flex;
2716
+ flex-wrap:wrap;
2717
+ justify-content: center;
2718
+ }
2719
+
2720
  .pagelayer-countdown-days,
2721
  .pagelayer-countdown-hours,
2722
  .pagelayer-countdown-minutes,
2723
  .pagelayer-countdown-seconds{
2724
+ display: inline-block;
2725
  vertical-align: middle;
 
 
2726
  background: #eee;
2727
+ margin: 0 5px 5px;
2728
+ flex:1;
2729
  }
2730
 
2731
  .pagelayer-countdown-days div,
2736
  line-height: 1;
2737
  }
2738
 
2739
+ .pagelayer-countdown-inline .pagelayer-countdown-name{
2740
+ display:inline-block;
2741
  }
2742
 
2743
+ .pagelayer-countdown-inline .pagelayer-countdown-count{
2744
+ display:inline-block;
2745
+ }
2746
+
2747
+ .pagelayer-countdown-expired{
2748
+ display:none;
2749
+ }
2750
+
2751
+ .pagelayer-countdown[pagelayer-a-display_expired_text="true"] .pagelayer-countdown-expired{
2752
+ display:block !important;
2753
+ }
2754
+
2755
+ .pagelayer-countdown[pagelayer-a-display_expired_text="true"] .pagelayer-countdown-counter{
2756
+ display:none !important;
2757
+ }
2758
+ /* Countdown End*/
2759
+
2760
  #pagelayer-header-menu{
2761
  display: inline-block;
2762
  }
2764
 
2765
  /* splash style */
2766
  .pagelayer-splash .pagelayer-splash-dark,
2767
+ .pagelayer-modal .pagelayer-modal-dark{
2768
  background-color:#000000e0;
2769
  }
2770
 
2771
+ .pagelayer-modal .pagelayer-modal-light,
2772
+ .pagelayer-splash .pagelayer-splash-light{
2773
  background-color:#ffffffe0;
2774
  }
2775
 
2776
  .pagelayer-splash-light .pagelayer-splash-close::after,
2777
  .pagelayer-splash-light .pagelayer-splash-close::before,
2778
+ .pagelayer-modal-light .pagelayer-modal-close::after,
2779
+ .pagelayer-modal-light .pagelayer-modal-close::before{
2780
  background-color:#000000;
2781
  }
2782
 
2783
  .pagelayer-splash-dark .pagelayer-splash-close::after,
2784
  .pagelayer-splash-dark .pagelayer-splash-close::before,
2785
+ .pagelayer-modal-dark .pagelayer-modal-close::after,
2786
+ .pagelayer-modal-dark .pagelayer-modal-close::before{
2787
  background-color:#fff;
2788
  }
2789
 
2857
  /*Image Slider style start*/
2858
  .pagelayer-image-slider-ul{
2859
  display:none;
2860
+ padding:0;
2861
+ margin:0;
2862
+ list-style: none;
2863
  }
2864
 
2865
  .pagelayer-image-slider-ul[pagelayer-setup]{
3049
  .pagelayer-grid-gallery-ul{
3050
  display:block;
3051
  list-style:none;
3052
+ padding:0;
3053
+ margin:0;
3054
  }
3055
 
3056
  .pagelayer-gallery-item{
 
3057
  list-style:none;
 
3058
  border: none;
3059
  }
3060
 
3061
+ .pagelayer-gallery-item img{
3062
+ height: 100%;
3063
+ width: 100%;
3064
+ object-fit: cover;
3065
+ }
3066
+
3067
  .pagelayer-grid-gallery-caption{
3068
  display:block;
3069
  }
3117
  max-width:unset;
3118
  }
3119
 
3120
+ /* WooCommerce widget */
3121
+ .pagelayer-product-images-container{
3122
+ display:flow-root;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3123
  }
3124
 
3125
+ .pagelayer-add-to-cart-holder,
3126
+ .pagelayer-product-rating{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3127
  display:inline-block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3128
  }
3129
 
3130
+ .pagelayer-product-related-container:not([pagelayer-heading-show]) .products > h2,
3131
+ .pagelayer-product-related-container:not([pagelayer-sale-flash]) ul.products li.product span.onsale,
3132
+ .pagelayer-addi-info-container:not([pagelayer-show-heading]) h2 {
3133
  display:none;
3134
  }
3135
 
3136
+ .pagelayer-product-related-container[pagelayer-content-align="right"] ul.products li.product .star-rating{
3137
+ margin-left: auto;
 
 
 
 
 
 
 
 
 
 
 
3138
  }
3139
 
3140
+ .pagelayer-product-related-container[pagelayer-content-align="center"] ul.products li.product .star-rating{
3141
+ margin-left: auto;
3142
+ margin-right: auto;
3143
  }
3144
 
3145
+ /*******************/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/slippry.css DELETED
@@ -1,281 +0,0 @@
1
- /**
2
- *
3
- * slippry v1.4.0 - Responsive content slider for jQuery
4
- * http://slippry.com
5
- *
6
- * Authors: Lukas Jakob Hafner - @saftsaak
7
- * Thomas Hurd - @SeenNotHurd
8
- *
9
- * Copyright 2016, booncon oy - http://booncon.com
10
- *
11
- *
12
- * Released under the MIT license - http://opensource.org/licenses/MIT
13
- */
14
- /* kenBurns animations, very basic */
15
- @-webkit-keyframes left-right {
16
- 0% {
17
- -webkit-transform: translateY(-20%) translateX(-10%);
18
- transform: translateY(-20%) translateX(-10%); }
19
- 100% {
20
- -webkit-transform: translateY(0%) translateX(10%);
21
- transform: translateY(0%) translateX(10%); } }
22
- @-o-keyframes left-right {
23
- 0% {
24
- -o-transform: translateY(-20%) translateX(-10%);
25
- transform: translateY(-20%) translateX(-10%); }
26
- 100% {
27
- -o-transform: translateY(0%) translateX(10%);
28
- transform: translateY(0%) translateX(10%); } }
29
- @keyframes left-right {
30
- 0% {
31
- -webkit-transform: translateY(-20%) translateX(-10%);
32
- -o-transform: translateY(-20%) translateX(-10%);
33
- transform: translateY(-20%) translateX(-10%); }
34
- 100% {
35
- -webkit-transform: translateY(0%) translateX(10%);
36
- -o-transform: translateY(0%) translateX(10%);
37
- transform: translateY(0%) translateX(10%); } }
38
- @-webkit-keyframes right-left {
39
- 0% {
40
- -webkit-transform: translateY(0%) translateX(10%);
41
- transform: translateY(0%) translateX(10%); }
42
- 100% {
43
- -webkit-transform: translateY(-20%) translateX(-10%);
44
- transform: translateY(-20%) translateX(-10%); } }
45
- @-o-keyframes right-left {
46
- 0% {
47
- -o-transform: translateY(0%) translateX(10%);
48
- transform: translateY(0%) translateX(10%); }
49
- 100% {
50
- -o-transform: translateY(-20%) translateX(-10%);
51
- transform: translateY(-20%) translateX(-10%); } }
52
- @keyframes right-left {
53
- 0% {
54
- -webkit-transform: translateY(0%) translateX(10%);
55
- -o-transform: translateY(0%) translateX(10%);
56
- transform: translateY(0%) translateX(10%); }
57
- 100% {
58
- -webkit-transform: translateY(-20%) translateX(-10%);
59
- -o-transform: translateY(-20%) translateX(-10%);
60
- transform: translateY(-20%) translateX(-10%); } }
61
- /* added to the original element calling slippry */
62
- .pagelayer-imgsl-box.pagelayer-imgsl-loading {
63
- background: url("../images/pagelayer-imgsl-loader.gif") 50% 50% no-repeat;
64
- -webkit-background-size: 32px 32px;
65
- background-size: 32px;
66
- min-height: 40px; }
67
- .pagelayer-imgsl-box.pagelayer-imgsl-loading .pagelayer-imgsl-slides-wrap, .pagelayer-imgsl-box.pagelayer-imgsl-loading .pagelayer-imgsl-pager {
68
- visibility: hidden; }
69
-
70
- /* element that wraps the slides */
71
- .pagelayer-imgsl-slides-wrap {
72
- position: relative;
73
- height: 100%;
74
- width: 100%; }
75
- .pagelayer-imgsl-slides-wrap:hover .pagelayer-imgsl-controls {
76
- display: block; }
77
-
78
- /* element that crops the visible area to the slides */
79
- .pagelayer-imgsl-slides-crop {
80
- height: 100%;
81
- width: 100%;
82
- position: absolute;
83
- overflow: hidden; }
84
-
85
- /* list containing the slides */
86
- .pagelayer-imgsl-list {
87
- width: 100%;
88
- height: 100%;
89
- list-style: none;
90
- margin: 0;
91
- padding: 0;
92
- position: absolute; }
93
- .pagelayer-imgsl-list.horizontal {
94
- -webkit-transition: left ease;
95
- -o-transition: left ease;
96
- transition: left ease; }
97
- .pagelayer-imgsl-list.vertical {
98
- -webkit-transition: top ease;
99
- -o-transition: top ease;
100
- transition: top ease; }
101
-
102
- /* single slide */
103
- .pagelayer-imgsl-slide {
104
- position: absolute;
105
- width: 100%;
106
- z-index: 2; }
107
- .pagelayer-imgsl-slide.kenburns {
108
- width: 140%;
109
- left: -20%; }
110
- .pagelayer-imgsl-slide.kenburns.useCSS {
111
- -webkit-transition-property: opacity;
112
- -o-transition-property: opacity;
113
- transition-property: opacity; }
114
- .pagelayer-imgsl-slide.kenburns.useCSS.pagelayer-imgsl-ken:nth-child(1n) {
115
- -webkit-animation-name: left-right;
116
- -o-animation-name: left-right;
117
- animation-name: left-right;
118
- -webkit-animation-fill-mode: forwards;
119
- -o-animation-fill-mode: forwards;
120
- animation-fill-mode: forwards; }
121
- .pagelayer-imgsl-slide.kenburns.useCSS.pagelayer-imgsl-ken:nth-child(2n) {
122
- -webkit-animation-name: right-left;
123
- -o-animation-name: right-left;
124
- animation-name: right-left;
125
- -webkit-animation-fill-mode: forwards;
126
- -o-animation-fill-mode: forwards;
127
- animation-fill-mode: forwards; }
128
- .pagelayer-imgsl-slide.pagelayer-imgsl-active {
129
- z-index: 3; }
130
- .pagelayer-imgsl-slide > img {
131
- margin: 0;
132
- padding: 0;
133
- display: block;
134
- width: 100%;
135
- border: 0; }
136
- .pagelayer-imgsl-slide > a {
137
- margin: 0;
138
- padding: 0;
139
- display: block;
140
- width: 100%; }
141
- .pagelayer-imgsl-slide > a > img {
142
- margin: 0;
143
- padding: 0;
144
- display: block;
145
- width: 100%;
146
- border: 0; }
147
-
148
- /* next/ prev buttons, with arrows and clickable area a lot larger than the visible buttons */
149
- .pagelayer-imgsl-controls {
150
- display: none;
151
- list-style: none;
152
- height: 100%;
153
- width: 100%;
154
- position: absolute;
155
- padding: 0;
156
- margin: 0; }
157
- .pagelayer-imgsl-controls li {
158
- position: absolute;
159
- width: 10%;
160
- min-width: 4.2em;
161
- height: 100%;
162
- z-index: 33; }
163
- .pagelayer-imgsl-controls li.pagelayer-imgsl-prev {
164
- left: 0;
165
- top: 0; }
166
- .pagelayer-imgsl-controls li.pagelayer-imgsl-prev a:after {
167
- background-position: -5% 0; }
168
- .pagelayer-imgsl-controls li.pagelayer-imgsl-next {
169
- right: 0;
170
- top: 0; }
171
- .pagelayer-imgsl-controls li.pagelayer-imgsl-next a:after {
172
- background-position: 105% 0; }
173
- .pagelayer-imgsl-controls li a {
174
- position: relative;
175
- width: 100%;
176
- height: 100%;
177
- display: block;
178
- text-indent: -9999px; }
179
- .pagelayer-imgsl-controls li a:link, .pagelayer-imgsl-controls li a:visited {
180
- opacity: 0.4; }
181
- .pagelayer-imgsl-controls li a:hover, .pagelayer-imgsl-controls li a:focus {
182
- opacity: 0.8;
183
- outline: none; }
184
- .pagelayer-imgsl-controls li a:after {
185
- content: "";
186
- background-image: url("../images/arrows.svg");
187
- background-repeat: no-repeat;
188
- -webkit-background-size: cover;
189
- background-size: cover;
190
- text-align: center;
191
- text-indent: 0;
192
- line-height: 2.8em;
193
- color: #111;
194
- font-weight: 800;
195
- position: absolute;
196
- background-color: #fff;
197
- width: 2.8em;
198
- height: 2.8em;
199
- left: 50%;
200
- top: 50%;
201
- margin-top: -1.4em;
202
- margin-left: -1.4em;
203
- border-radius: 50%; }
204
- @media only screen and (max-device-width: 600px) {
205
- .pagelayer-imgsl-controls {
206
- display: block; }
207
- .pagelayer-imgsl-controls li {
208
- min-width: 2.1em; }
209
- .pagelayer-imgsl-controls li a:after {
210
- width: 1.4em;
211
- height: 1.4em;
212
- margin-top: -0.7em;
213
- margin-left: -0.7em; } }
214
-
215
- /* captions, styled fo the overlay variant */
216
- .pagelayer-imgsl-caption-wrap {
217
- position: absolute;
218
- bottom: 2em;
219
- z-index: 12;
220
- left: 50%; }
221
- .pagelayer-imgsl-caption-wrap .pagelayer-imgsl-caption {
222
- position: relative;
223
- left: -50%;
224
- background-color: rgba(0, 0, 0, 0.54);
225
- color: #fff;
226
- padding: 0.4em 1em;
227
- border-radius: 1.2em; }
228
- .pagelayer-imgsl-caption-wrap .pagelayer-imgsl-caption a:link, .pagelayer-imgsl-caption-wrap .pagelayer-imgsl-caption a:visited {
229
- color: #e24b70;
230
- font-weight: 600;
231
- text-decoration: none; }
232
- .pagelayer-imgsl-caption-wrap .pagelayer-imgsl-caption a:hover, .pagelayer-imgsl-caption-wrap .pagelayer-imgsl-caption a:focus {
233
- text-decoration: underline; }
234
- @media only screen and (max-device-width: 600px), screen and (max-width: 600px) {
235
- .pagelayer-imgsl-caption-wrap {
236
- left: 0;
237
- bottom: 0.4em; }
238
- .pagelayer-imgsl-caption-wrap .pagelayer-imgsl-caption {
239
- left: 0;
240
- padding: 0.2em 0.4em;
241
- font-size: 0.92em;
242
- border-radius: 0; } }
243
-
244
- /* pager bubbles */
245
- .pagelayer-imgsl-pager {
246
- clear: both;
247
- display: block;
248
- width: 100%;
249
- margin: 1em 0 0;
250
- padding: 0;
251
- list-style: none;
252
- text-align: center; }
253
- .pagelayer-imgsl-pager li {
254
- display: inline-block;
255
- width: 1.2em;
256
- height: 1.2em;
257
- margin: 0 1em 0 0;
258
- border-radius: 50%; }
259
- .pagelayer-imgsl-pager li.pagelayer-imgsl-active a {
260
- background-color: #e24b70; }
261
- .pagelayer-imgsl-pager li a {
262
- width: 100%;
263
- height: 100%;
264
- display: block;
265
- background-color: #ccc;
266
- text-indent: -9999px;
267
- -webkit-background-size: 2em 2em;
268
- background-size: 2em;
269
- border-radius: 50%; }
270
- .pagelayer-imgsl-pager li a:link, .pagelayer-imgsl-pager li a:visited {
271
- opacity: 1.0; }
272
- .pagelayer-imgsl-pager li a:hover, .pagelayer-imgsl-pager li a:focus {
273
- opacity: 0.6; }
274
-
275
- /* element to "keep/ fill" the space of the content, gets intrinsic height via js */
276
- .pagelayer-imgsl-filler {
277
- width: 100%; }
278
- .pagelayer-imgsl-filler.ready {
279
- -webkit-transition: padding 600ms ease;
280
- -o-transition: padding 600ms ease;
281
- transition: padding 600ms ease; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
init.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
5
 
6
  define('PAGELAYER_BASE', plugin_basename(__FILE__));
7
  define('PAGELAYER_FILE', __FILE__);
8
- define('PAGELAYER_VERSION', '0.9.6');
9
  define('PAGELAYER_DIR', WP_PLUGIN_DIR.'/'.basename(dirname(PAGELAYER_FILE)));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
@@ -110,10 +110,15 @@ function pagelayer_load_plugin(){
110
  'image' => PAGELAYER_URL.'/images/pagelayer-logo-256.png'
111
  ]);
112
 
 
 
 
 
 
113
  }
114
 
115
  // This adds the left menu in WordPress Admin page
116
- add_action('admin_menu', 'pagelayer_admin_menu');
117
 
118
  // Shows the admin menu of Pagelayer
119
  function pagelayer_admin_menu() {
@@ -123,7 +128,7 @@ function pagelayer_admin_menu() {
123
  $capability = 'activate_plugins';// TODO : Capability for accessing this page
124
 
125
  // Add the menu page
126
- add_menu_page(__('PageLayer Editor'), __('PageLayer'), $capability, 'pagelayer', 'pagelayer_page_handler', PAGELAYER_URL.'/images/pagelayer-logo-19.png');
127
 
128
  // Settings Page
129
  add_submenu_page('pagelayer', __('PageLayer Editor'), __('Settings'), $capability, 'pagelayer', 'pagelayer_page_handler');
@@ -132,7 +137,16 @@ function pagelayer_admin_menu() {
132
  if(defined('PAGELAYER_PREMIUM')){
133
 
134
  // Fonts link
135
- add_submenu_page('pagelayer', __('PageLayer Font Settings'), __('PageLayer Font Settings'), $capability, 'pagelayer_fonts', 'pagelayer_page_fonts');
 
 
 
 
 
 
 
 
 
136
 
137
  // Its free
138
  }else{
@@ -217,16 +231,23 @@ function pagelayer_enqueue_frontend($force = false){
217
  pagelayer_load_shortcodes();
218
  $pagelayer->cache['enqueue_frontend'] = true;
219
 
 
 
 
220
  $premium_js = '';
221
  if(defined('PAGELAYER_PREMIUM')){
222
- $premium_js = ',chartist.min.js';
 
 
 
 
223
  }
224
-
225
  // Enqueue our Editor's Frontend JS
226
- wp_register_script('pagelayer-frontend', PAGELAYER_JS.'/givejs.php?give=pagelayer-frontend.js,nivo-lightbox.min.js,slippry.min.js,wow.min.js,jquery-numerator.js,simpleParallax.min.js'.$premium_js, array('jquery'), PAGELAYER_VERSION);
227
  wp_enqueue_script('pagelayer-frontend');
228
 
229
- wp_register_style('pagelayer-frontend', PAGELAYER_CSS.'/givecss.php?give=pagelayer-frontend.css,nivo-lightbox.css,slippry.css,animate.min.css', array(), PAGELAYER_VERSION);
230
  wp_enqueue_style('pagelayer-frontend');
231
 
232
  wp_register_style('font-awesome', PAGELAYER_CSS.'/font-awesome.min.css', array(), PAGELAYER_VERSION);
@@ -266,6 +287,18 @@ function pagelayer_enqueue_fonts(){
266
 
267
  }
268
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  // We need to handle global styles
270
  function pagelayer_global_styles(){
271
 
@@ -311,7 +344,7 @@ if(wp_doing_ajax()){
311
  }
312
 
313
  // Show the backend editor options
314
- add_action('edit_form_after_title', 'pagelayer_after_title');
315
  function pagelayer_after_title(){
316
 
317
  global $post;
@@ -331,7 +364,7 @@ function pagelayer_after_title(){
331
  $link = pagelayer_shortlink($post->ID).'&pagelayer-live=1';
332
 
333
  echo '
334
- <div id="pagelayer-editor-button-row" style="margin-top:15px">
335
  <a id="pagelayer-editor-button" href="'.$link.'" class="button button-primary button-large" style="height:auto; padding:6px; font-size:18px;">
336
  <img src="'.PAGELAYER_URL.'/images/pagelayer-logo-40.png" align="top" width="24" /> <span>'.__('Edit with PageLayer').'</span>
337
  </a>
@@ -383,3 +416,6 @@ function pagelayer_quick_link($actions, $post){
383
 
384
  return $actions;
385
  }
 
 
 
5
 
6
  define('PAGELAYER_BASE', plugin_basename(__FILE__));
7
  define('PAGELAYER_FILE', __FILE__);
8
+ define('PAGELAYER_VERSION', '0.9.7');
9
  define('PAGELAYER_DIR', WP_PLUGIN_DIR.'/'.basename(dirname(PAGELAYER_FILE)));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
110
  'image' => PAGELAYER_URL.'/images/pagelayer-logo-256.png'
111
  ]);
112
 
113
+ // Its premium
114
+ if(defined('PAGELAYER_PREMIUM')){
115
+ include_once(PAGELAYER_DIR.'/main/template-builder.php');
116
+ }
117
+
118
  }
119
 
120
  // This adds the left menu in WordPress Admin page
121
+ add_action('admin_menu', 'pagelayer_admin_menu', 5);
122
 
123
  // Shows the admin menu of Pagelayer
124
  function pagelayer_admin_menu() {
128
  $capability = 'activate_plugins';// TODO : Capability for accessing this page
129
 
130
  // Add the menu page
131
+ add_menu_page(__('PageLayer Editor'), __('Pagelayer'), $capability, 'pagelayer', 'pagelayer_page_handler', PAGELAYER_URL.'/images/pagelayer-logo-19.png');
132
 
133
  // Settings Page
134
  add_submenu_page('pagelayer', __('PageLayer Editor'), __('Settings'), $capability, 'pagelayer', 'pagelayer_page_handler');
137
  if(defined('PAGELAYER_PREMIUM')){
138
 
139
  // Fonts link
140
+ add_submenu_page('pagelayer', __('Font Settings'), __('Font Settings'), $capability, 'pagelayer_fonts', 'pagelayer_page_fonts');
141
+
142
+ // Add new template
143
+ add_submenu_page('pagelayer', __('Theme Builder'), __('Theme Builder'), $capability, 'edit.php?post_type=pagelayer-template');
144
+
145
+ // Add new template Link
146
+ //add_submenu_page('pagelayer', __('Add New Template'), __('Add New Template'), $capability, 'edit.php?post_type=pagelayer-template#new');
147
+
148
+ // Add new template
149
+ add_submenu_page('pagelayer', __('Add New Template'), __('Add New Template'), $capability, 'pagelayer_template_wizard', 'pagelayer_builder_template_wizard');
150
 
151
  // Its free
152
  }else{
231
  pagelayer_load_shortcodes();
232
  $pagelayer->cache['enqueue_frontend'] = true;
233
 
234
+ // Load the global styles
235
+ add_action('wp_head', 'pagelayer_global_js', 2);
236
+
237
  $premium_js = '';
238
  if(defined('PAGELAYER_PREMIUM')){
239
+ $premium_js = ',chart.min.js,slick.min.js,premium-frontend.js';
240
+ $premium_css = ',slick.css,slick-theme.css,premium-frontend.css';
241
+ // Load this For audio widget
242
+ wp_enqueue_script('wp-mediaelement');
243
+ wp_enqueue_style( 'wp-mediaelement' );
244
  }
245
+
246
  // Enqueue our Editor's Frontend JS
247
+ wp_register_script('pagelayer-frontend', PAGELAYER_JS.'/givejs.php?give=pagelayer-frontend.js,nivo-lightbox.min.js,wow.min.js,jquery-numerator.js,simpleParallax.min.js,owl.carousel.min.js'.$premium_js, array('jquery'), PAGELAYER_VERSION);
248
  wp_enqueue_script('pagelayer-frontend');
249
 
250
+ wp_register_style('pagelayer-frontend', PAGELAYER_CSS.'/givecss.php?give=pagelayer-frontend.css,nivo-lightbox.css,animate.min.css,owl.carousel.min.css,owl.theme.default.min.css'.$premium_css, array(), PAGELAYER_VERSION);
251
  wp_enqueue_style('pagelayer-frontend');
252
 
253
  wp_register_style('font-awesome', PAGELAYER_CSS.'/font-awesome.min.css', array(), PAGELAYER_VERSION);
287
 
288
  }
289
 
290
+ // Load any header we have
291
+ function pagelayer_global_js(){
292
+
293
+ echo '<script>
294
+ var pagelayer_ajaxurl = "'.admin_url( 'admin-ajax.php' ).'?";
295
+ var pagelayer_ajax_nonce = "'.wp_create_nonce('pagelayer_ajax').'";
296
+ var pagelayer_server_time = '.time().';
297
+ var pagelayer_facebook_id = "'.get_option('pagelayer-fbapp-id').'";
298
+ </script>';
299
+
300
+ }
301
+
302
  // We need to handle global styles
303
  function pagelayer_global_styles(){
304
 
344
  }
345
 
346
  // Show the backend editor options
347
+ add_action('edit_form_after_title', 'pagelayer_after_title', 10);
348
  function pagelayer_after_title(){
349
 
350
  global $post;
364
  $link = pagelayer_shortlink($post->ID).'&pagelayer-live=1';
365
 
366
  echo '
367
+ <div id="pagelayer-editor-button-row" style="margin-top:15px; display:inline-block;">
368
  <a id="pagelayer-editor-button" href="'.$link.'" class="button button-primary button-large" style="height:auto; padding:6px; font-size:18px;">
369
  <img src="'.PAGELAYER_URL.'/images/pagelayer-logo-40.png" align="top" width="24" /> <span>'.__('Edit with PageLayer').'</span>
370
  </a>
416
 
417
  return $actions;
418
  }
419
+
420
+ // Pagelayer Template Loading Mechanism
421
+ include_once(PAGELAYER_DIR.'/main/template.php');
js/chart.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ /*!
2
+ * Chart.js v2.8.0
3
+ * https://www.chartjs.org
4
+ * (c) 2019 Chart.js Contributors
5
+ * Released under the MIT License
6
+ */
7
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(function(){try{return require("moment")}catch(t){}}()):"function"==typeof define&&define.amd?define(["require"],function(t){return e(function(){try{return t("moment")}catch(t){}}())}):t.Chart=e(t.moment)}(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={rgb2hsl:i,rgb2hsv:n,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:l,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:u,hsl2hsv:function(t){var e=t[0],i=t[1]/100,n=t[2]/100;if(0===n)return[0,0,0];return[e,100*(2*(i*=(n*=2)<=1?n:2-n)/(n+i)),100*((n+i)/2)]},hsl2hwb:function(t){return a(u(t))},hsl2cmyk:function(t){return o(u(t))},hsl2keyword:function(t){return s(u(t))},hsv2rgb:h,hsv2hsl:function(t){var e,i,n=t[0],a=t[1]/100,o=t[2]/100;return e=a*o,[n,100*(e=(e/=(i=(2-a)*o)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return a(h(t))},hsv2cmyk:function(t){return o(h(t))},hsv2keyword:function(t){return s(h(t))},hwb2rgb:c,hwb2hsl:function(t){return i(c(t))},hwb2hsv:function(t){return n(c(t))},hwb2cmyk:function(t){return o(c(t))},hwb2keyword:function(t){return s(c(t))},cmyk2rgb:f,cmyk2hsl:function(t){return i(f(t))},cmyk2hsv:function(t){return n(f(t))},cmyk2hwb:function(t){return a(f(t))},cmyk2keyword:function(t){return s(f(t))},keyword2rgb:w,keyword2hsl:function(t){return i(w(t))},keyword2hsv:function(t){return n(w(t))},keyword2hwb:function(t){return a(w(t))},keyword2cmyk:function(t){return o(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return l(w(t))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(t){return x(m(t))},lab2xyz:v,lab2rgb:y,lab2lch:x,lch2lab:k,lch2xyz:function(t){return v(k(t))},lch2rgb:function(t){return y(k(t))}};function i(t){var e,i,n=t[0]/255,a=t[1]/255,o=t[2]/255,r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r;return s==r?e=0:n==s?e=(a-o)/l:a==s?e=2+(o-n)/l:o==s&&(e=4+(n-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(r+s)/2,[e,100*(s==r?0:i<=.5?l/(s+r):l/(2-s-r)),100*i]}function n(t){var e,i,n=t[0],a=t[1],o=t[2],r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r;return i=0==s?0:l/s*1e3/10,s==r?e=0:n==s?e=(a-o)/l:a==s?e=2+(o-n)/l:o==s&&(e=4+(n-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,i,s/255*1e3/10]}function a(t){var e=t[0],n=t[1],a=t[2];return[i(t)[0],100*(1/255*Math.min(e,Math.min(n,a))),100*(a=1-1/255*Math.max(e,Math.max(n,a)))]}function o(t){var e,i=t[0]/255,n=t[1]/255,a=t[2]/255;return[100*((1-i-(e=Math.min(1-i,1-n,1-a)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]}function s(t){return _[JSON.stringify(t)]}function l(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*i+.0722*n),100*(.0193*e+.1192*i+.9505*n)]}function d(t){var e=l(t),i=e[0],n=e[1],a=e[2];return n/=100,a/=108.883,i=(i/=95.047)>.008856?Math.pow(i,1/3):7.787*i+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(i-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function u(t){var e,i,n,a,o,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[o=255*l,o,o];e=2*l-(i=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var d=0;d<3;d++)(n=r+1/3*-(d-1))<0&&n++,n>1&&n--,o=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,a[d]=255*o;return a}function h(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,o=e-Math.floor(e),r=255*n*(1-i),s=255*n*(1-i*o),l=255*n*(1-i*(1-o));n*=255;switch(a){case 0:return[n,l,r];case 1:return[s,n,r];case 2:return[r,n,l];case 3:return[r,s,n];case 4:return[l,r,n];case 5:return[n,r,s]}}function c(t){var e,i,n,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,d=s+l;switch(d>1&&(s/=d,l/=d),n=6*o-(e=Math.floor(6*o)),0!=(1&e)&&(n=1-n),a=s+n*((i=1-l)-s),e){default:case 6:case 0:r=i,g=a,b=s;break;case 1:r=a,g=i,b=s;break;case 2:r=s,g=i,b=a;break;case 3:r=s,g=a,b=i;break;case 4:r=a,g=s,b=i;break;case 5:r=i,g=s,b=a}return[255*r,255*g,255*b]}function f(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]}function p(t){var e,i,n,a=t[0]/100,o=t[1]/100,r=t[2]/100;return i=-.9689*a+1.8758*o+.0415*r,n=.0557*a+-.204*o+1.057*r,e=(e=3.2406*a+-1.5372*o+-.4986*r)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1))]}function m(t){var e=t[0],i=t[1],n=t[2];return i/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(e-i),200*(i-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]}function v(t){var e,i,n,a,o=t[0],r=t[1],s=t[2];return o<=8?a=(i=100*o/903.3)/100*7.787+16/116:(i=100*Math.pow((o+16)/116,3),a=Math.pow(i/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),i,n=n/108.883<=.008859?n=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function x(t){var e,i=t[0],n=t[1],a=t[2];return(e=360*Math.atan2(a,n)/2/Math.PI)<0&&(e+=360),[i,Math.sqrt(n*n+a*a),e]}function y(t){return p(v(t))}function k(t){var e,i=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[i,n*Math.cos(e),n*Math.sin(e)]}function w(t){return M[t]}var M={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},_={};for(var C in M)_[JSON.stringify(M[C])]=C;var S=function(){return new T};for(var P in e){S[P+"Raw"]=function(t){return function(i){return"number"==typeof i&&(i=Array.prototype.slice.call(arguments)),e[t](i)}}(P);var I=/(\w+)2(\w+)/.exec(P),A=I[1],D=I[2];(S[A]=S[A]||{})[D]=S[P]=function(t){return function(i){"number"==typeof i&&(i=Array.prototype.slice.call(arguments));var n=e[t](i);if("string"==typeof n||void 0===n)return n;for(var a=0;a<n.length;a++)n[a]=Math.round(n[a]);return n}}(P)}var T=function(){this.convs={}};T.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},T.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},T.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,n=this.convs[i];e=S[i][t](n),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){T.prototype[t]=function(e){return this.routeSpace(t,arguments)}});var F=S,L={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},R={getRgba:O,getHsla:z,getRgb:function(t){var e=O(t);return e&&e.slice(0,3)},getHsl:function(t){var e=z(t);return e&&e.slice(0,3)},getHwb:B,getAlpha:function(t){var e=O(t);if(e)return e[3];if(e=z(t))return e[3];if(e=B(t))return e[3]},hexString:function(t,e){var e=void 0!==e&&3===t.length?e:t[3];return"#"+H(t[0])+H(t[1])+H(t[2])+(e>=0&&e<1?H(Math.round(255*e)):"")},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return N(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:N,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return W(t,e);var i=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),a=Math.round(t[2]/255*100);return"rgb("+i+"%, "+n+"%, "+a+"%)"},percentaString:W,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return V(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:V,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return j[t.slice(0,3)]}};function O(t){if(t){var e=[0,0,0],i=1,n=t.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(n){a=(n=n[1])[3];for(var o=0;o<e.length;o++)e[o]=parseInt(n[o]+n[o],16);a&&(i=Math.round(parseInt(a+a,16)/255*100)/100)}else if(n=t.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){a=n[2],n=n[1];for(o=0;o<e.length;o++)e[o]=parseInt(n.slice(2*o,2*o+2),16);a&&(i=Math.round(parseInt(a,16)/255*100)/100)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(n[o+1]);i=parseFloat(n[4])}else if(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(n[o+1]));i=parseFloat(n[4])}else if(n=t.match(/(\w+)/)){if("transparent"==n[1])return[0,0,0,0];if(!(e=L[n[1]]))return}for(o=0;o<e.length;o++)e[o]=E(e[o],0,255);return i=i||0==i?E(i,0,1):1,e[3]=i,e}}function z(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]);return[E(parseInt(e[1]),0,360),E(parseFloat(e[2]),0,100),E(parseFloat(e[3]),0,100),E(isNaN(i)?1:i,0,1)]}}}function B(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]);return[E(parseInt(e[1]),0,360),E(parseFloat(e[2]),0,100),E(parseFloat(e[3]),0,100),E(isNaN(i)?1:i,0,1)]}}}function N(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function W(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function V(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function E(t,e,i){return Math.min(Math.max(e,t),i)}function H(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var j={};for(var q in L)j[L[q]]=q;var Y=function(t){return t instanceof Y?t:this instanceof Y?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=R.getRgba(t))?this.setValues("rgb",e):(e=R.getHsla(t))?this.setValues("hsl",e):(e=R.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new Y(t);var e};Y.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return R.hexString(this.values.rgb)},rgbString:function(){return R.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return R.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return R.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return R.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return R.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return R.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return R.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],i=0;i<t.length;i++){var n=t[i]/255;e[i]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,i=(e[0]+t)%360;return e[0]=i<0?360+i:i,this.setValues("hsl",e),this},mix:function(t,e){var i=t,n=void 0===e?.5:e,a=2*n-1,o=this.alpha()-i.alpha(),r=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,s=1-r;return this.rgb(r*this.red()+s*i.red(),r*this.green()+s*i.green(),r*this.blue()+s*i.blue()).alpha(this.alpha()*n+i.alpha()*(1-n))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new Y,n=this.values,a=i.values;for(var o in n)n.hasOwnProperty(o)&&(t=n[o],"[object Array]"===(e={}.toString.call(t))?a[o]=t.slice(0):"[object Number]"===e?a[o]=t:console.error("unexpected color value:",t));return i}},Y.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},Y.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},Y.prototype.getValues=function(t){for(var e=this.values,i={},n=0;n<t.length;n++)i[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(i.a=e.alpha),i},Y.prototype.setValues=function(t,e){var i,n,a=this.values,o=this.spaces,r=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(i=0;i<t.length;i++)a[t][i]=e[t.charAt(i)];s=e.a}else if(void 0!==e[o[t][0]]){var l=o[t];for(i=0;i<t.length;i++)a[t][i]=e[l[i]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(i=0;i<t.length;i++)n=Math.max(0,Math.min(r[t][i],a[t][i])),a[t][i]=Math.round(n);for(var d in o)d!==t&&(a[d]=F[t][d](a[t]));return!0},Y.prototype.setSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i),this)},Y.prototype.setChannel=function(t,e,i){var n=this.values[t];return void 0===i?n[e]:i===n[e]?this:(n[e]=i,this.setValues(t,n),this)},"undefined"!=typeof window&&(window.Color=Y);var U,X=Y,K={noop:function(){},uid:(U=0,function(){return U++}),isNullOrUndef:function(t){return null==t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"==typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,i){return K.valueOrDefault(K.isArray(t)?t[e]:t,i)},callback:function(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)},each:function(t,e,i,n){var a,o,r;if(K.isArray(t))if(o=t.length,n)for(a=o-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<o;a++)e.call(i,t[a],a);else if(K.isObject(t))for(o=(r=Object.keys(t)).length,a=0;a<o;a++)e.call(i,t[r[a]],r[a])},arrayEquals:function(t,e){var i,n,a,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(a=t[i],o=e[i],a instanceof Array&&o instanceof Array){if(!K.arrayEquals(a,o))return!1}else if(a!==o)return!1;return!0},clone:function(t){if(K.isArray(t))return t.map(K.clone);if(K.isObject(t)){for(var e={},i=Object.keys(t),n=i.length,a=0;a<n;++a)e[i[a]]=K.clone(t[i[a]]);return e}return t},_merger:function(t,e,i,n){var a=e[t],o=i[t];K.isObject(a)&&K.isObject(o)?K.merge(a,o,n):e[t]=K.clone(o)},_mergerIf:function(t,e,i){var n=e[t],a=i[t];K.isObject(n)&&K.isObject(a)?K.mergeIf(n,a):e.hasOwnProperty(t)||(e[t]=K.clone(a))},merge:function(t,e,i){var n,a,o,r,s,l=K.isArray(e)?e:[e],d=l.length;if(!K.isObject(t))return t;for(n=(i=i||{}).merger||K._merger,a=0;a<d;++a)if(e=l[a],K.isObject(e))for(s=0,r=(o=Object.keys(e)).length;s<r;++s)n(o[s],t,e,i);return t},mergeIf:function(t,e){return K.merge(t,e,{merger:K._mergerIf})},extend:function(t){for(var e=function(e,i){t[i]=e},i=1,n=arguments.length;i<n;++i)K.each(arguments[i],e);return t},inherits:function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},n=function(){this.constructor=i};return n.prototype=e.prototype,i.prototype=new n,i.extend=K.inherits,t&&K.extend(i.prototype,t),i.__super__=e.prototype,i}},G=K;K.callCallback=K.callback,K.indexOf=function(t,e,i){return Array.prototype.indexOf.call(t,e,i)},K.getValueOrDefault=K.valueOrDefault,K.getValueAtIndexOrDefault=K.valueAtIndexOrDefault;var Z={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i||(i=.3),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},easeOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i||(i=.3),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:2==(t/=.5)?1:(i||(i=.45),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),t<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-Z.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*Z.easeInBounce(2*t):.5*Z.easeOutBounce(2*t-1)+.5}},$={effects:Z};G.easingEffects=Z;var J=Math.PI,Q=J/180,tt=2*J,et=J/2,it=J/4,nt=2*J/3,at={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,i,n,a,o){if(o){var r=Math.min(o,a/2,n/2),s=e+r,l=i+r,d=e+n-r,u=i+a-r;t.moveTo(e,l),s<d&&l<u?(t.arc(s,l,r,-J,-et),t.arc(d,l,r,-et,0),t.arc(d,u,r,0,et),t.arc(s,u,r,et,J)):s<d?(t.moveTo(s,i),t.arc(d,l,r,-et,et),t.arc(s,l,r,et,J+et)):l<u?(t.arc(s,l,r,-J,0),t.arc(s,u,r,0,J)):t.arc(s,l,r,-J,J),t.closePath(),t.moveTo(e,i)}else t.rect(e,i,n,a)},drawPoint:function(t,e,i,n,a,o){var r,s,l,d,u,h=(o||0)*Q;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(i)||i<=0)){switch(t.beginPath(),e){default:t.arc(n,a,i,0,tt),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(h)*i,a-Math.cos(h)*i),h+=nt,t.lineTo(n+Math.sin(h)*i,a-Math.cos(h)*i),h+=nt,t.lineTo(n+Math.sin(h)*i,a-Math.cos(h)*i),t.closePath();break;case"rectRounded":d=i-(u=.516*i),s=Math.cos(h+it)*d,l=Math.sin(h+it)*d,t.arc(n-s,a-l,u,h-J,h-et),t.arc(n+l,a-s,u,h-et,h),t.arc(n+s,a+l,u,h,h+et),t.arc(n-l,a+s,u,h+et,h+J),t.closePath();break;case"rect":if(!o){d=Math.SQRT1_2*i,t.rect(n-d,a-d,2*d,2*d);break}h+=it;case"rectRot":s=Math.cos(h)*i,l=Math.sin(h)*i,t.moveTo(n-s,a-l),t.lineTo(n+l,a-s),t.lineTo(n+s,a+l),t.lineTo(n-l,a+s),t.closePath();break;case"crossRot":h+=it;case"cross":s=Math.cos(h)*i,l=Math.sin(h)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n+l,a-s),t.lineTo(n-l,a+s);break;case"star":s=Math.cos(h)*i,l=Math.sin(h)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n+l,a-s),t.lineTo(n-l,a+s),h+=it,s=Math.cos(h)*i,l=Math.sin(h)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n+l,a-s),t.lineTo(n-l,a+s);break;case"line":s=Math.cos(h)*i,l=Math.sin(h)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l);break;case"dash":t.moveTo(n,a),t.lineTo(n+Math.cos(h)*i,a+Math.sin(h)*i)}t.fill(),t.stroke()}}else t.drawImage(e,n-e.width/2,a-e.height/2,e.width,e.height)},_isPointInArea:function(t,e){return t.x>e.left-1e-6&&t.x<e.right+1e-6&&t.y>e.top-1e-6&&t.y<e.bottom+1e-6},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,i,n){var a=i.steppedLine;if(a){if("middle"===a){var o=(e.x+i.x)/2;t.lineTo(o,n?i.y:e.y),t.lineTo(o,n?e.y:i.y)}else"after"===a&&!n||"after"!==a&&n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}else i.tension?t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):t.lineTo(i.x,i.y)}},ot=at;G.clear=at.clear,G.drawRoundedRectangle=function(t){t.beginPath(),at.roundedRect.apply(at,arguments)};var rt={_set:function(t,e){return G.merge(this[t]||(this[t]={}),e)}};rt._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var st=rt,lt=G.valueOrDefault;var dt={toLineHeight:function(t,e){var i=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,i,n,a;return G.isObject(t)?(e=+t.top||0,i=+t.right||0,n=+t.bottom||0,a=+t.left||0):e=i=n=a=+t||0,{top:e,right:i,bottom:n,left:a,height:e+n,width:a+i}},_parseFont:function(t){var e=st.global,i=lt(t.fontSize,e.defaultFontSize),n={family:lt(t.fontFamily,e.defaultFontFamily),lineHeight:G.options.toLineHeight(lt(t.lineHeight,e.defaultLineHeight),i),size:i,style:lt(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return n.string=function(t){return!t||G.isNullOrUndef(t.size)||G.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n},resolve:function(t,e,i){var n,a,o;for(n=0,a=t.length;n<a;++n)if(void 0!==(o=t[n])&&(void 0!==e&&"function"==typeof o&&(o=o(e)),void 0!==i&&G.isArray(o)&&(o=o[i]),void 0!==o))return o}},ut=G,ht=$,ct=ot,ft=dt;ut.easing=ht,ut.canvas=ct,ut.options=ft;var gt=function(t){ut.extend(this,t),this.initialize.apply(this,arguments)};ut.extend(gt.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=ut.clone(t._model)),t._start={},t},transition:function(t){var e=this,i=e._model,n=e._start,a=e._view;return i&&1!==t?(a||(a=e._view={}),n||(n=e._start={}),function(t,e,i,n){var a,o,r,s,l,d,u,h,c,f=Object.keys(i);for(a=0,o=f.length;a<o;++a)if(d=i[r=f[a]],e.hasOwnProperty(r)||(e[r]=d),(s=e[r])!==d&&"_"!==r[0]){if(t.hasOwnProperty(r)||(t[r]=s),(u=typeof d)==typeof(l=t[r]))if("string"===u){if((h=X(l)).valid&&(c=X(d)).valid){e[r]=c.mix(h,n).rgbString();continue}}else if(ut.isFinite(l)&&ut.isFinite(d)){e[r]=l+(d-l)*n;continue}e[r]=d}}(n,a,i,t),e):(e._view=i,e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ut.isNumber(this._model.x)&&ut.isNumber(this._model.y)}}),gt.extend=ut.inherits;var pt=gt,mt=pt.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),vt=mt;Object.defineProperty(mt.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(mt.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),st._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ut.noop,onComplete:ut.noop}});var bt={animations:[],request:null,addAnimation:function(t,e,i,n){var a,o,r=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=i,n||(t.animating=!0),a=0,o=r.length;a<o;++a)if(r[a].chart===t)return void(r[a]=e);r.push(e),1===r.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=ut.findIndex(this.animations,function(e){return e.chart===t});-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=ut.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var t,e,i,n,a=this.animations,o=0;o<a.length;)e=(t=a[o]).chart,i=t.numSteps,n=Math.floor((Date.now()-t.startTime)/t.duration*i)+1,t.currentStep=Math.min(n,i),ut.callback(t.render,[e,t],e),ut.callback(t.onAnimationProgress,[t],e),t.currentStep>=i?(ut.callback(t.onAnimationComplete,[t],e),e.animating=!1,a.splice(o,1)):++o}},xt=ut.options.resolve,yt=["push","pop","shift","splice","unshift"];function kt(t,e){var i=t._chartjs;if(i){var n=i.listeners,a=n.indexOf(e);-1!==a&&n.splice(a,1),n.length>0||(yt.forEach(function(e){delete t[e]}),delete t._chartjs)}}var wt=function(t,e){this.initialize(t,e)};ut.extend(wt.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),i=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=i.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=i.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this.update(!0)},destroy:function(){this._data&&kt(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,i=this.getMeta(),n=this.getDataset().data||[],a=i.data;for(t=0,e=n.length;t<e;++t)a[t]=a[t]||this.createMetaData(t);i.dataset=i.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t,e,i=this,n=i.getDataset(),a=n.data||(n.data=[]);i._data!==a&&(i._data&&kt(i._data,i),a&&Object.isExtensible(a)&&(e=i,(t=a)._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),yt.forEach(function(e){var i="onData"+e.charAt(0).toUpperCase()+e.slice(1),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),a=n.apply(this,e);return ut.each(t._chartjs.listeners,function(t){"function"==typeof t[i]&&t[i].apply(t,e)}),a}})}))),i._data=a),i.resyncElements()},update:ut.noop,transition:function(t){for(var e=this.getMeta(),i=e.data||[],n=i.length,a=0;a<n;++a)i[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],i=e.length,n=0;for(t.dataset&&t.dataset.draw();n<i;++n)e[n].draw()},removeHoverStyle:function(t){ut.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},a=t._model,o=ut.getHoverColor;t.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=xt([n.hoverBackgroundColor,e.hoverBackgroundColor,o(a.backgroundColor)],void 0,i),a.borderColor=xt([n.hoverBorderColor,e.hoverBorderColor,o(a.borderColor)],void 0,i),a.borderWidth=xt([n.hoverBorderWidth,e.hoverBorderWidth,a.borderWidth],void 0,i)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,i=t.data.length,n=e.length;n<i?t.data.splice(n,i-n):n>i&&this.insertElements(i,n-i)},insertElements:function(t,e){for(var i=0;i<e;++i)this.addElementAndReset(t+i)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),wt.extend=ut.inherits;var Mt=wt;st._set("global",{elements:{arc:{backgroundColor:st.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var _t=pt.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var i=this._view;if(i){for(var n=ut.getAngleFromPoint(i,{x:t,y:e}),a=n.angle,o=n.distance,r=i.startAngle,s=i.endAngle;s<r;)s+=2*Math.PI;for(;a>s;)a-=2*Math.PI;for(;a<r;)a+=2*Math.PI;var l=a>=r&&a<=s,d=o>=i.innerRadius&&o<=i.outerRadius;return l&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,i=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t,e=this._chart.ctx,i=this._view,n=i.startAngle,a=i.endAngle,o="inner"===i.borderAlign?.33:0;e.save(),e.beginPath(),e.arc(i.x,i.y,Math.max(i.outerRadius-o,0),n,a),e.arc(i.x,i.y,i.innerRadius,a,n,!0),e.closePath(),e.fillStyle=i.backgroundColor,e.fill(),i.borderWidth&&("inner"===i.borderAlign?(e.beginPath(),t=o/i.outerRadius,e.arc(i.x,i.y,i.outerRadius,n-t,a+t),i.innerRadius>o?(t=o/i.innerRadius,e.arc(i.x,i.y,i.innerRadius-o,a+t,n-t,!0)):e.arc(i.x,i.y,o,a+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip(),e.beginPath(),e.arc(i.x,i.y,i.outerRadius,n,a),e.arc(i.x,i.y,i.innerRadius,a,n,!0),e.closePath(),e.lineWidth=2*i.borderWidth,e.lineJoin="round"):(e.lineWidth=i.borderWidth,e.lineJoin="bevel"),e.strokeStyle=i.borderColor,e.stroke()),e.restore()}}),Ct=ut.valueOrDefault,St=st.global.defaultColor;st._set("global",{elements:{line:{tension:.4,backgroundColor:St,borderWidth:3,borderColor:St,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Pt=pt.extend({draw:function(){var t,e,i,n,a=this._view,o=this._chart.ctx,r=a.spanGaps,s=this._children.slice(),l=st.global,d=l.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=a.borderCapStyle||d.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||d.borderDash),o.lineDashOffset=Ct(a.borderDashOffset,d.borderDashOffset),o.lineJoin=a.borderJoinStyle||d.borderJoinStyle,o.lineWidth=Ct(a.borderWidth,d.borderWidth),o.strokeStyle=a.borderColor||l.defaultColor,o.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],i=ut.previousItem(s,t),n=e._view,0===t?n.skip||(o.moveTo(n.x,n.y),u=t):(i=-1===u?i:s[u],n.skip||(u!==t-1&&!r||-1===u?o.moveTo(n.x,n.y):ut.canvas.lineTo(o,i._view,e._view),u=t));o.stroke(),o.restore()}}),It=ut.valueOrDefault,At=st.global.defaultColor;function Dt(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}st._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:At,borderColor:At,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Tt=pt.extend({inRange:function(t,e){var i=this._view;return!!i&&Math.pow(t-i.x,2)+Math.pow(e-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:Dt,inXRange:Dt,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,i=this._chart.ctx,n=e.pointStyle,a=e.rotation,o=e.radius,r=e.x,s=e.y,l=st.global,d=l.defaultColor;e.skip||(void 0===t||ut.canvas._isPointInArea(e,t))&&(i.strokeStyle=e.borderColor||d,i.lineWidth=It(e.borderWidth,l.elements.point.borderWidth),i.fillStyle=e.backgroundColor||d,ut.canvas.drawPoint(i,n,o,r,s,a))}}),Ft=st.global.defaultColor;function Lt(t){return t&&void 0!==t.width}function Rt(t){var e,i,n,a,o;return Lt(t)?(o=t.width/2,e=t.x-o,i=t.x+o,n=Math.min(t.y,t.base),a=Math.max(t.y,t.base)):(o=t.height/2,e=Math.min(t.x,t.base),i=Math.max(t.x,t.base),n=t.y-o,a=t.y+o),{left:e,top:n,right:i,bottom:a}}function Ot(t,e,i){return t===e?i:t===i?e:t}function zt(t,e,i){var n,a,o,r,s=t.borderWidth,l=function(t){var e=t.borderSkipped,i={};return e?(t.horizontal?t.base>t.x&&(e=Ot(e,"left","right")):t.base<t.y&&(e=Ot(e,"bottom","top")),i[e]=!0,i):i}(t);return ut.isObject(s)?(n=+s.top||0,a=+s.right||0,o=+s.bottom||0,r=+s.left||0):n=a=o=r=+s||0,{t:l.top||n<0?0:n>i?i:n,r:l.right||a<0?0:a>e?e:a,b:l.bottom||o<0?0:o>i?i:o,l:l.left||r<0?0:r>e?e:r}}function Bt(t,e,i){var n=null===e,a=null===i,o=!(!t||n&&a)&&Rt(t);return o&&(n||e>=o.left&&e<=o.right)&&(a||i>=o.top&&i<=o.bottom)}st._set("global",{elements:{rectangle:{backgroundColor:Ft,borderColor:Ft,borderSkipped:"bottom",borderWidth:0}}});var Nt=pt.extend({draw:function(){var t=this._chart.ctx,e=this._view,i=function(t){var e=Rt(t),i=e.right-e.left,n=e.bottom-e.top,a=zt(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n},inner:{x:e.left+a.l,y:e.top+a.t,w:i-a.l-a.r,h:n-a.t-a.b}}}(e),n=i.outer,a=i.inner;t.fillStyle=e.backgroundColor,t.fillRect(n.x,n.y,n.w,n.h),n.w===a.w&&n.h===a.h||(t.save(),t.beginPath(),t.rect(n.x,n.y,n.w,n.h),t.clip(),t.fillStyle=e.borderColor,t.rect(a.x,a.y,a.w,a.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return Bt(this._view,t,e)},inLabelRange:function(t,e){var i=this._view;return Lt(i)?Bt(i,t,null):Bt(i,null,e)},inXRange:function(t){return Bt(this._view,t,null)},inYRange:function(t){return Bt(this._view,null,t)},getCenterPoint:function(){var t,e,i=this._view;return Lt(i)?(t=i.x,e=(i.y+i.base)/2):(t=(i.x+i.base)/2,e=i.y),{x:t,y:e}},getArea:function(){var t=this._view;return Lt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),Wt={},Vt=_t,Et=Pt,Ht=Tt,jt=Nt;Wt.Arc=Vt,Wt.Line=Et,Wt.Point=Ht,Wt.Rectangle=jt;var qt=ut.options.resolve;st._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});var Yt=Mt.extend({dataElementType:Wt.Rectangle,initialize:function(){var t;Mt.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,i,n=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,i=n.length;e<i;++e)this.updateElement(n[e],e,t)},updateElement:function(t,e,i){var n=this,a=n.getMeta(),o=n.getDataset(),r=n._resolveElementOptions(t,e);t._xScale=n.getScaleForId(a.xAxisID),t._yScale=n.getScaleForId(a.yAxisID),t._datasetIndex=n.index,t._index=e,t._model={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderSkipped:r.borderSkipped,borderWidth:r.borderWidth,datasetLabel:o.label,label:n.chart.data.labels[e]},n._updateElementGeometry(t,e,i),t.pivot()},_updateElementGeometry:function(t,e,i){var n=this,a=t._model,o=n._getValueScale(),r=o.getBasePixel(),s=o.isHorizontal(),l=n._ruler||n.getRuler(),d=n.calculateBarValuePixels(n.index,e),u=n.calculateBarIndexPixels(n.index,e,l);a.horizontal=s,a.base=i?r:d.base,a.x=s?i?r:d.head:u.center,a.y=s?u.center:i?r:d.head,a.height=s?u.size:void 0,a.width=s?void 0:u.size},_getStacks:function(t){var e,i,n=this.chart,a=this._getIndexScale().options.stacked,o=void 0===t?n.data.datasets.length:t+1,r=[];for(e=0;e<o;++e)(i=n.getDatasetMeta(e)).bar&&n.isDatasetVisible(e)&&(!1===a||!0===a&&-1===r.indexOf(i.stack)||void 0===a&&(void 0===i.stack||-1===r.indexOf(i.stack)))&&r.push(i.stack);return r},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var i=this._getStacks(t),n=void 0!==e?i.indexOf(e):-1;return-1===n?i.length-1:n},getRuler:function(){var t,e,i=this._getIndexScale(),n=this.getStackCount(),a=this.index,o=i.isHorizontal(),r=o?i.left:i.top,s=r+(o?i.width:i.height),l=[];for(t=0,e=this.getMeta().data.length;t<e;++t)l.push(i.getPixelForValue(null,t,a));return{min:ut.isNullOrUndef(i.options.barThickness)?function(t,e){var i,n,a,o,r=t.isHorizontal()?t.width:t.height,s=t.getTicks();for(a=1,o=e.length;a<o;++a)r=Math.min(r,Math.abs(e[a]-e[a-1]));for(a=0,o=s.length;a<o;++a)n=t.getPixelForTick(a),r=a>0?Math.min(r,n-i):r,i=n;return r}(i,l):-1,pixels:l,start:r,end:s,stackCount:n,scale:i}},calculateBarValuePixels:function(t,e){var i,n,a,o,r,s,l=this.chart,d=this.getMeta(),u=this._getValueScale(),h=u.isHorizontal(),c=l.data.datasets,f=+u.getRightValue(c[t].data[e]),g=u.options.minBarLength,p=u.options.stacked,m=d.stack,v=0;if(p||void 0===p&&void 0!==m)for(i=0;i<t;++i)(n=l.getDatasetMeta(i)).bar&&n.stack===m&&n.controller._getValueScaleId()===u.id&&l.isDatasetVisible(i)&&(a=+u.getRightValue(c[i].data[e]),(f<0&&a<0||f>=0&&a>0)&&(v+=a));return o=u.getPixelForValue(v),s=(r=u.getPixelForValue(v+f))-o,void 0!==g&&Math.abs(s)<g&&(s=g,r=f>=0&&!h||f<0&&h?o-g:o+g),{size:s,base:o,head:r,center:r+s/2}},calculateBarIndexPixels:function(t,e,i){var n=i.scale.options,a="flex"===n.barThickness?function(t,e,i){var n,a=e.pixels,o=a[t],r=t>0?a[t-1]:null,s=t<a.length-1?a[t+1]:null,l=i.categoryPercentage;return null===r&&(r=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-r),n=o-(o-Math.min(r,s))/2*l,{chunk:Math.abs(s-r)/2*l/e.stackCount,ratio:i.barPercentage,start:n}}(e,i,n):function(t,e,i){var n,a,o=i.barThickness,r=e.stackCount,s=e.pixels[t];return ut.isNullOrUndef(o)?(n=e.min*i.categoryPercentage,a=i.barPercentage):(n=o*r,a=1),{chunk:n/r,ratio:a,start:s-n/2}}(e,i,n),o=this.getStackIndex(t,this.getMeta().stack),r=a.start+a.chunk*o+a.chunk/2,s=Math.min(ut.valueOrDefault(n.maxBarThickness,1/0),a.chunk*a.ratio);return{base:r-s/2,head:r+s/2,center:r,size:s}},draw:function(){var t=this.chart,e=this._getValueScale(),i=this.getMeta().data,n=this.getDataset(),a=i.length,o=0;for(ut.canvas.clipArea(t.ctx,t.chartArea);o<a;++o)isNaN(e.getRightValue(n.data[o]))||i[o].draw();ut.canvas.unclipArea(t.ctx)},_resolveElementOptions:function(t,e){var i,n,a,o=this.chart,r=o.data.datasets[this.index],s=t.custom||{},l=o.options.elements.rectangle,d={},u={chart:o,dataIndex:e,dataset:r,datasetIndex:this.index},h=["backgroundColor","borderColor","borderSkipped","borderWidth"];for(i=0,n=h.length;i<n;++i)d[a=h[i]]=qt([s[a],r[a],l[a]],u,e);return d}}),Ut=ut.valueOrDefault,Xt=ut.options.resolve;st._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return i+": ("+t.xLabel+", "+t.yLabel+", "+n.r+")"}}}});var Kt=Mt.extend({dataElementType:Wt.Point,update:function(t){var e=this,i=e.getMeta().data;ut.each(i,function(i,n){e.updateElement(i,n,t)})},updateElement:function(t,e,i){var n=this,a=n.getMeta(),o=t.custom||{},r=n.getScaleForId(a.xAxisID),s=n.getScaleForId(a.yAxisID),l=n._resolveElementOptions(t,e),d=n.getDataset().data[e],u=n.index,h=i?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof d?d:NaN,e,u),c=i?s.getBasePixel():s.getPixelForValue(d,e,u);t._xScale=r,t._yScale=s,t._options=l,t._datasetIndex=u,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:i?0:l.radius,skip:o.skip||isNaN(h)||isNaN(c),x:h,y:c},t.pivot()},setHoverStyle:function(t){var e=t._model,i=t._options,n=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Ut(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=Ut(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=Ut(i.hoverBorderWidth,i.borderWidth),e.radius=i.radius+i.hoverRadius},_resolveElementOptions:function(t,e){var i,n,a,o=this.chart,r=o.data.datasets[this.index],s=t.custom||{},l=o.options.elements.point,d=r.data[e],u={},h={chart:o,dataIndex:e,dataset:r,datasetIndex:this.index},c=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(i=0,n=c.length;i<n;++i)u[a=c[i]]=Xt([s[a],r[a],l[a]],h,e);return u.radius=Xt([s.radius,d?d.r:void 0,r.radius,l.radius],h,e),u}}),Gt=ut.options.resolve,Zt=ut.valueOrDefault;st._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var o=0;o<n[0].data.length;++o)e.push('<li><span style="background-color:'+n[0].backgroundColor[o]+'"></span>'),a[o]&&e.push(a[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(i,n){var a=t.getDatasetMeta(0),o=e.datasets[0],r=a.data[n],s=r&&r.custom||{},l=t.options.elements.arc;return{text:i,fillStyle:Gt([s.backgroundColor,o.backgroundColor,l.backgroundColor],void 0,n),strokeStyle:Gt([s.borderColor,o.borderColor,l.borderColor],void 0,n),lineWidth:Gt([s.borderWidth,o.borderWidth,l.borderWidth],void 0,n),hidden:isNaN(o.data[n])||a.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var i,n,a,o=e.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;i<n;++i)(a=r.getDatasetMeta(i)).data[o]&&(a.data[o].hidden=!a.data[o].hidden);r.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.labels[t.index],n=": "+e.datasets[t.datasetIndex].data[t.index];return ut.isArray(i)?(i=i.slice())[0]+=n:i+=n,i}}}});var $t=Mt.extend({dataElementType:Wt.Arc,linkScales:ut.noop,getRingIndex:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(t){var e,i,n=this,a=n.chart,o=a.chartArea,r=a.options,s=o.right-o.left,l=o.bottom-o.top,d=Math.min(s,l),u={x:0,y:0},h=n.getMeta(),c=h.data,f=r.cutoutPercentage,g=r.circumference,p=n._getRingWeight(n.index);if(g<2*Math.PI){var m=r.rotation%(2*Math.PI),v=(m+=2*Math.PI*(m>=Math.PI?-1:m<-Math.PI?1:0))+g,b={x:Math.cos(m),y:Math.sin(m)},x={x:Math.cos(v),y:Math.sin(v)},y=m<=0&&v>=0||m<=2*Math.PI&&2*Math.PI<=v,k=m<=.5*Math.PI&&.5*Math.PI<=v||m<=2.5*Math.PI&&2.5*Math.PI<=v,w=m<=-Math.PI&&-Math.PI<=v||m<=Math.PI&&Math.PI<=v,M=m<=.5*-Math.PI&&.5*-Math.PI<=v||m<=1.5*Math.PI&&1.5*Math.PI<=v,_=f/100,C={x:w?-1:Math.min(b.x*(b.x<0?1:_),x.x*(x.x<0?1:_)),y:M?-1:Math.min(b.y*(b.y<0?1:_),x.y*(x.y<0?1:_))},S={x:y?1:Math.max(b.x*(b.x>0?1:_),x.x*(x.x>0?1:_)),y:k?1:Math.max(b.y*(b.y>0?1:_),x.y*(x.y>0?1:_))},P={width:.5*(S.x-C.x),height:.5*(S.y-C.y)};d=Math.min(s/P.width,l/P.height),u={x:-.5*(S.x+C.x),y:-.5*(S.y+C.y)}}for(e=0,i=c.length;e<i;++e)c[e]._options=n._resolveElementOptions(c[e],e);for(a.borderWidth=n.getMaxBorderWidth(),a.outerRadius=Math.max((d-a.borderWidth)/2,0),a.innerRadius=Math.max(f?a.outerRadius/100*f:0,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(n._getVisibleDatasetWeightTotal()||1),a.offsetX=u.x*a.outerRadius,a.offsetY=u.y*a.outerRadius,h.total=n.calculateTotal(),n.outerRadius=a.outerRadius-a.radiusLength*n._getRingWeightOffset(n.index),n.innerRadius=Math.max(n.outerRadius-a.radiusLength*p,0),e=0,i=c.length;e<i;++e)n.updateElement(c[e],e,t)},updateElement:function(t,e,i){var n=this,a=n.chart,o=a.chartArea,r=a.options,s=r.animation,l=(o.left+o.right)/2,d=(o.top+o.bottom)/2,u=r.rotation,h=r.rotation,c=n.getDataset(),f=i&&s.animateRotate?0:t.hidden?0:n.calculateCircumference(c.data[e])*(r.circumference/(2*Math.PI)),g=i&&s.animateScale?0:n.innerRadius,p=i&&s.animateScale?0:n.outerRadius,m=t._options||{};ut.extend(t,{_datasetIndex:n.index,_index:e,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+a.offsetX,y:d+a.offsetY,startAngle:u,endAngle:h,circumference:f,outerRadius:p,innerRadius:g,label:ut.valueAtIndexOrDefault(c.label,e,a.data.labels[e])}});var v=t._model;i&&s.animateRotate||(v.startAngle=0===e?r.rotation:n.getMeta().data[e-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),i=this.getMeta(),n=0;return ut.each(i.data,function(i,a){t=e.data[a],isNaN(t)||i.hidden||(n+=Math.abs(t))}),n},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,i,n,a,o,r,s,l,d=0,u=this.chart;if(!t)for(e=0,i=u.data.datasets.length;e<i;++e)if(u.isDatasetVisible(e)){t=(n=u.getDatasetMeta(e)).data,e!==this.index&&(o=n.controller);break}if(!t)return 0;for(e=0,i=t.length;e<i;++e)a=t[e],"inner"!==(r=o?o._resolveElementOptions(a,e):a._options).borderAlign&&(s=r.borderWidth,d=(l=r.hoverBorderWidth)>(d=s>d?s:d)?l:d);return d},setHoverStyle:function(t){var e=t._model,i=t._options,n=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Zt(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=Zt(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=Zt(i.hoverBorderWidth,i.borderWidth)},_resolveElementOptions:function(t,e){var i,n,a,o=this.chart,r=this.getDataset(),s=t.custom||{},l=o.options.elements.arc,d={},u={chart:o,dataIndex:e,dataset:r,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(i=0,n=h.length;i<n;++i)d[a=h[i]]=Gt([s[a],r[a],l[a]],u,e);return d},_getRingWeightOffset:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e},_getRingWeight:function(t){return Math.max(Zt(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});st._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});var Jt=Yt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Qt=ut.valueOrDefault,te=ut.options.resolve,ee=ut.canvas._isPointInArea;function ie(t,e){return Qt(t.showLine,e.showLines)}st._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var ne=Mt.extend({datasetElementType:Wt.Line,dataElementType:Wt.Point,update:function(t){var e,i,n=this,a=n.getMeta(),o=a.dataset,r=a.data||[],s=n.getScaleForId(a.yAxisID),l=n.getDataset(),d=ie(l,n.chart.options);for(d&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=s,o._datasetIndex=n.index,o._children=r,o._model=n._resolveLineOptions(o),o.pivot()),e=0,i=r.length;e<i;++e)n.updateElement(r[e],e,t);for(d&&0!==o._model.tension&&n.updateBezierControlPoints(),e=0,i=r.length;e<i;++e)r[e].pivot()},updateElement:function(t,e,i){var n,a,o=this,r=o.getMeta(),s=t.custom||{},l=o.getDataset(),d=o.index,u=l.data[e],h=o.getScaleForId(r.yAxisID),c=o.getScaleForId(r.xAxisID),f=r.dataset._model,g=o._resolvePointOptions(t,e);n=c.getPixelForValue("object"==typeof u?u:NaN,e,d),a=i?h.getBasePixel():o.calculatePointY(u,e,d),t._xScale=c,t._yScale=h,t._options=g,t._datasetIndex=d,t._index=e,t._model={x:n,y:a,skip:s.skip||isNaN(n)||isNaN(a),radius:g.radius,pointStyle:g.pointStyle,rotation:g.rotation,backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,tension:Qt(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:g.hitRadius}},_resolvePointOptions:function(t,e){var i,n,a,o=this.chart,r=o.data.datasets[this.index],s=t.custom||{},l=o.options.elements.point,d={},u={chart:o,dataIndex:e,dataset:r,datasetIndex:this.index},h={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},c=Object.keys(h);for(i=0,n=c.length;i<n;++i)d[a=c[i]]=te([s[a],r[h[a]],r[a],l[a]],u,e);return d},_resolveLineOptions:function(t){var e,i,n,a=this.chart,o=a.data.datasets[this.index],r=t.custom||{},s=a.options,l=s.elements.line,d={},u=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill","cubicInterpolationMode"];for(e=0,i=u.length;e<i;++e)d[n=u[e]]=te([r[n],o[n],l[n]]);return d.spanGaps=Qt(o.spanGaps,s.spanGaps),d.tension=Qt(o.lineTension,l.tension),d.steppedLine=te([r.steppedLine,o.steppedLine,l.stepped]),d},calculatePointY:function(t,e,i){var n,a,o,r=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),d=0,u=0;if(l.options.stacked){for(n=0;n<i;n++)if(a=r.data.datasets[n],"line"===(o=r.getDatasetMeta(n)).type&&o.yAxisID===l.id&&r.isDatasetVisible(n)){var h=Number(l.getRightValue(a.data[e]));h<0?u+=h||0:d+=h||0}var c=Number(l.getRightValue(t));return c<0?l.getPixelForValue(u+c):l.getPixelForValue(d+c)}return l.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,i,n,a=this.chart,o=this.getMeta(),r=o.dataset._model,s=a.chartArea,l=o.data||[];function d(t,e,i){return Math.max(Math.min(t,i),e)}if(r.spanGaps&&(l=l.filter(function(t){return!t._model.skip})),"monotone"===r.cubicInterpolationMode)ut.splineCurveMonotone(l);else for(t=0,e=l.length;t<e;++t)i=l[t]._model,n=ut.splineCurve(ut.previousItem(l,t)._model,i,ut.nextItem(l,t)._model,r.tension),i.controlPointPreviousX=n.previous.x,i.controlPointPreviousY=n.previous.y,i.controlPointNextX=n.next.x,i.controlPointNextY=n.next.y;if(a.options.elements.line.capBezierPoints)for(t=0,e=l.length;t<e;++t)i=l[t]._model,ee(i,s)&&(t>0&&ee(l[t-1]._model,s)&&(i.controlPointPreviousX=d(i.controlPointPreviousX,s.left,s.right),i.controlPointPreviousY=d(i.controlPointPreviousY,s.top,s.bottom)),t<l.length-1&&ee(l[t+1]._model,s)&&(i.controlPointNextX=d(i.controlPointNextX,s.left,s.right),i.controlPointNextY=d(i.controlPointNextY,s.top,s.bottom)))},draw:function(){var t,e=this.chart,i=this.getMeta(),n=i.data||[],a=e.chartArea,o=n.length,r=0;for(ie(this.getDataset(),e.options)&&(t=(i.dataset._model.borderWidth||0)/2,ut.canvas.clipArea(e.ctx,{left:a.left,right:a.right,top:a.top-t,bottom:a.bottom+t}),i.dataset.draw(),ut.canvas.unclipArea(e.ctx));r<o;++r)n[r].draw(a)},setHoverStyle:function(t){var e=t._model,i=t._options,n=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Qt(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=Qt(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=Qt(i.hoverBorderWidth,i.borderWidth),e.radius=Qt(i.hoverRadius,i.radius)}}),ae=ut.options.resolve;st._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var o=0;o<n[0].data.length;++o)e.push('<li><span style="background-color:'+n[0].backgroundColor[o]+'"></span>'),a[o]&&e.push(a[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(i,n){var a=t.getDatasetMeta(0),o=e.datasets[0],r=a.data[n].custom||{},s=t.options.elements.arc;return{text:i,fillStyle:ae([r.backgroundColor,o.backgroundColor,s.backgroundColor],void 0,n),strokeStyle:ae([r.borderColor,o.borderColor,s.borderColor],void 0,n),lineWidth:ae([r.borderWidth,o.borderWidth,s.borderWidth],void 0,n),hidden:isNaN(o.data[n])||a.data[n].hidden,index:n}}):[]}},onClick:function(t,e){var i,n,a,o=e.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;i<n;++i)(a=r.getDatasetMeta(i)).data[o].hidden=!a.data[o].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var oe=Mt.extend({dataElementType:Wt.Arc,linkScales:ut.noop,update:function(t){var e,i,n,a=this,o=a.getDataset(),r=a.getMeta(),s=a.chart.options.startAngle||0,l=a._starts=[],d=a._angles=[],u=r.data;for(a._updateRadius(),r.count=a.countVisibleElements(),e=0,i=o.data.length;e<i;e++)l[e]=s,n=a._computeAngle(e),d[e]=n,s+=n;for(e=0,i=u.length;e<i;++e)u[e]._options=a._resolveElementOptions(u[e],e),a.updateElement(u[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,i=e.chartArea,n=e.options,a=Math.min(i.right-i.left,i.bottom-i.top);e.outerRadius=Math.max(a/2,0),e.innerRadius=Math.max(n.cutoutPercentage?e.outerRadius/100*n.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,i){var n=this,a=n.chart,o=n.getDataset(),r=a.options,s=r.animation,l=a.scale,d=a.data.labels,u=l.xCenter,h=l.yCenter,c=r.startAngle,f=t.hidden?0:l.getDistanceFromCenterForValue(o.data[e]),g=n._starts[e],p=g+(t.hidden?0:n._angles[e]),m=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[e]),v=t._options||{};ut.extend(t,{_datasetIndex:n.index,_index:e,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u,y:h,innerRadius:0,outerRadius:i?m:f,startAngle:i&&s.animateRotate?c:g,endAngle:i&&s.animateRotate?c:p,label:ut.valueAtIndexOrDefault(d,e,d[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),i=0;return ut.each(e.data,function(e,n){isNaN(t.data[n])||e.hidden||i++}),i},setHoverStyle:function(t){var e=t._model,i=t._options,n=ut.getHoverColor,a=ut.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=a(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=a(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=a(i.hoverBorderWidth,i.borderWidth)},_resolveElementOptions:function(t,e){var i,n,a,o=this.chart,r=this.getDataset(),s=t.custom||{},l=o.options.elements.arc,d={},u={chart:o,dataIndex:e,dataset:r,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(i=0,n=h.length;i<n;++i)d[a=h[i]]=ae([s[a],r[a],l[a]],u,e);return d},_computeAngle:function(t){var e=this,i=this.getMeta().count,n=e.getDataset(),a=e.getMeta();if(isNaN(n.data[t])||a.data[t].hidden)return 0;var o={chart:e.chart,dataIndex:t,dataset:n,datasetIndex:e.index};return ae([e.chart.options.elements.arc.angle,2*Math.PI/i],o,t)}});st._set("pie",ut.clone(st.doughnut)),st._set("pie",{cutoutPercentage:0});var re=$t,se=ut.valueOrDefault,le=ut.options.resolve;st._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});var de=Mt.extend({datasetElementType:Wt.Line,dataElementType:Wt.Point,linkScales:ut.noop,update:function(t){var e,i,n=this,a=n.getMeta(),o=a.dataset,r=a.data||[],s=n.chart.scale,l=n.getDataset();for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=s,o._datasetIndex=n.index,o._children=r,o._loop=!0,o._model=n._resolveLineOptions(o),o.pivot(),e=0,i=r.length;e<i;++e)n.updateElement(r[e],e,t);for(n.updateBezierControlPoints(),e=0,i=r.length;e<i;++e)r[e].pivot()},updateElement:function(t,e,i){var n=this,a=t.custom||{},o=n.getDataset(),r=n.chart.scale,s=r.getPointPositionForValue(e,o.data[e]),l=n._resolvePointOptions(t,e),d=n.getMeta().dataset._model,u=i?r.xCenter:s.x,h=i?r.yCenter:s.y;t._scale=r,t._options=l,t._datasetIndex=n.index,t._index=e,t._model={x:u,y:h,skip:a.skip||isNaN(u)||isNaN(h),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:se(a.tension,d?d.tension:0),hitRadius:l.hitRadius}},_resolvePointOptions:function(t,e){var i,n,a,o=this.chart,r=o.data.datasets[this.index],s=t.custom||{},l=o.options.elements.point,d={},u={chart:o,dataIndex:e,dataset:r,datasetIndex:this.index},h={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},c=Object.keys(h);for(i=0,n=c.length;i<n;++i)d[a=c[i]]=le([s[a],r[h[a]],r[a],l[a]],u,e);return d},_resolveLineOptions:function(t){var e,i,n,a=this.chart,o=a.data.datasets[this.index],r=t.custom||{},s=a.options.elements.line,l={},d=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"];for(e=0,i=d.length;e<i;++e)l[n=d[e]]=le([r[n],o[n],s[n]]);return l.tension=se(o.lineTension,s.tension),l},updateBezierControlPoints:function(){var t,e,i,n,a=this.getMeta(),o=this.chart.chartArea,r=a.data||[];function s(t,e,i){return Math.max(Math.min(t,i),e)}for(t=0,e=r.length;t<e;++t)i=r[t]._model,n=ut.splineCurve(ut.previousItem(r,t,!0)._model,i,ut.nextItem(r,t,!0)._model,i.tension),i.controlPointPreviousX=s(n.previous.x,o.left,o.right),i.controlPointPreviousY=s(n.previous.y,o.top,o.bottom),i.controlPointNextX=s(n.next.x,o.left,o.right),i.controlPointNextY=s(n.next.y,o.top,o.bottom)},setHoverStyle:function(t){var e=t._model,i=t._options,n=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=se(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=se(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=se(i.hoverBorderWidth,i.borderWidth),e.radius=se(i.hoverRadius,i.radius)}});st._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}});var ue={bar:Yt,bubble:Kt,doughnut:$t,horizontalBar:Jt,line:ne,polarArea:oe,pie:re,radar:de,scatter:ne};function he(t,e){return t.native?{x:t.x,y:t.y}:ut.getRelativePosition(t,e)}function ce(t,e){var i,n,a,o,r;for(n=0,o=t.data.datasets.length;n<o;++n)if(t.isDatasetVisible(n))for(a=0,r=(i=t.getDatasetMeta(n)).data.length;a<r;++a){var s=i.data[a];s._view.skip||e(s)}}function fe(t,e){var i=[];return ce(t,function(t){t.inRange(e.x,e.y)&&i.push(t)}),i}function ge(t,e,i,n){var a=Number.POSITIVE_INFINITY,o=[];return ce(t,function(t){if(!i||t.inRange(e.x,e.y)){var r=t.getCenterPoint(),s=n(e,r);s<a?(o=[t],a=s):s===a&&o.push(t)}}),o}function pe(t){var e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){var a=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function me(t,e,i){var n=he(e,t);i.axis=i.axis||"x";var a=pe(i.axis),o=i.intersect?fe(t,n):ge(t,n,!1,a),r=[];return o.length?(t.data.datasets.forEach(function(e,i){if(t.isDatasetVisible(i)){var n=t.getDatasetMeta(i).data[o[0]._index];n&&!n._view.skip&&r.push(n)}}),r):[]}var ve={modes:{single:function(t,e){var i=he(e,t),n=[];return ce(t,function(t){if(t.inRange(i.x,i.y))return n.push(t),n}),n.slice(0,1)},label:me,index:me,dataset:function(t,e,i){var n=he(e,t);i.axis=i.axis||"xy";var a=pe(i.axis),o=i.intersect?fe(t,n):ge(t,n,!1,a);return o.length>0&&(o=t.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(t,e){return me(t,e,{intersect:!1})},point:function(t,e){return fe(t,he(e,t))},nearest:function(t,e,i){var n=he(e,t);i.axis=i.axis||"xy";var a=pe(i.axis);return ge(t,n,i.intersect,a)},x:function(t,e,i){var n=he(e,t),a=[],o=!1;return ce(t,function(t){t.inXRange(n.x)&&a.push(t),t.inRange(n.x,n.y)&&(o=!0)}),i.intersect&&!o&&(a=[]),a},y:function(t,e,i){var n=he(e,t),a=[],o=!1;return ce(t,function(t){t.inYRange(n.y)&&a.push(t),t.inRange(n.x,n.y)&&(o=!0)}),i.intersect&&!o&&(a=[]),a}}};function be(t,e){return ut.where(t,function(t){return t.position===e})}function xe(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,i){var n=e?i:t,a=e?t:i;return n.weight===a.weight?n._tmpIndex_-a._tmpIndex_:n.weight-a.weight}),t.forEach(function(t){delete t._tmpIndex_})}function ye(t,e){ut.each(t,function(t){e[t.position]+=t.isHorizontal()?t.height:t.width})}st._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var ke={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure:function(t,e,i){for(var n,a=["fullWidth","position","weight"],o=a.length,r=0;r<o;++r)n=a[r],i.hasOwnProperty(n)&&(e[n]=i[n])},update:function(t,e,i){if(t){var n=t.options.layout||{},a=ut.options.toPadding(n.padding),o=a.left,r=a.right,s=a.top,l=a.bottom,d=be(t.boxes,"left"),u=be(t.boxes,"right"),h=be(t.boxes,"top"),c=be(t.boxes,"bottom"),f=be(t.boxes,"chartArea");xe(d,!0),xe(u,!1),xe(h,!0),xe(c,!1);var g,p=d.concat(u),m=h.concat(c),v=p.concat(m),b=e-o-r,x=i-s-l,y=(e-b/2)/p.length,k=b,w=x,M={top:s,left:o,bottom:l,right:r},_=[];ut.each(v,function(t){var e,i=t.isHorizontal();i?(e=t.update(t.fullWidth?b:k,x/2),w-=e.height):(e=t.update(y,w),k-=e.width),_.push({horizontal:i,width:e.width,box:t})}),g=function(t){var e=0,i=0,n=0,a=0;return ut.each(t,function(t){if(t.getPadding){var o=t.getPadding();e=Math.max(e,o.top),i=Math.max(i,o.left),n=Math.max(n,o.bottom),a=Math.max(a,o.right)}}),{top:e,left:i,bottom:n,right:a}}(v),ut.each(p,T),ye(p,M),ut.each(m,T),ye(m,M),ut.each(p,function(t){var e=ut.findNextWhere(_,function(e){return e.box===t}),i={left:0,right:0,top:M.top,bottom:M.bottom};e&&t.update(e.width,w,i)}),ye(v,M={top:s,left:o,bottom:l,right:r});var C=Math.max(g.left-M.left,0);M.left+=C,M.right+=Math.max(g.right-M.right,0);var S=Math.max(g.top-M.top,0);M.top+=S,M.bottom+=Math.max(g.bottom-M.bottom,0);var P=i-M.top-M.bottom,I=e-M.left-M.right;I===k&&P===w||(ut.each(p,function(t){t.height=P}),ut.each(m,function(t){t.fullWidth||(t.width=I)}),w=P,k=I);var A=o+C,D=s+S;ut.each(d.concat(h),F),A+=k,D+=w,ut.each(u,F),ut.each(c,F),t.chartArea={left:M.left,top:M.top,right:M.left+k,bottom:M.top+w},ut.each(f,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(k,w)})}function T(t){var e=ut.findNextWhere(_,function(e){return e.box===t});if(e)if(e.horizontal){var i={left:Math.max(M.left,g.left),right:Math.max(M.right,g.right),top:0,bottom:0};t.update(t.fullWidth?b:k,x/2,i)}else t.update(e.width,w)}function F(t){t.isHorizontal()?(t.left=t.fullWidth?o:M.left,t.right=t.fullWidth?e-r:M.left+k,t.top=D,t.bottom=D+t.height,D=t.bottom):(t.left=A,t.right=A+t.width,t.top=M.top,t.bottom=M.top+w,A=t.right)}}};var we,Me=(we=Object.freeze({default:"@keyframes chartjs-render-animation{from{opacity:.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 1ms}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}"}))&&we.default||we,_e="$chartjs",Ce="chartjs-size-monitor",Se="chartjs-render-monitor",Pe="chartjs-render-animation",Ie=["animationstart","webkitAnimationStart"],Ae={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function De(t,e){var i=ut.getStyle(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}var Te=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function Fe(t,e,i){t.addEventListener(e,i,Te)}function Le(t,e,i){t.removeEventListener(e,i,Te)}function Re(t,e,i,n,a){return{type:t,chart:e,native:a||null,x:void 0!==i?i:null,y:void 0!==n?n:null}}function Oe(t){var e=document.createElement("div");return e.className=t||"",e}function ze(t,e,i){var n,a,o,r,s=t[_e]||(t[_e]={}),l=s.resizer=function(t){var e=Oe(Ce),i=Oe(Ce+"-expand"),n=Oe(Ce+"-shrink");i.appendChild(Oe()),n.appendChild(Oe()),e.appendChild(i),e.appendChild(n),e._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,n.scrollLeft=1e6,n.scrollTop=1e6};var a=function(){e._reset(),t()};return Fe(i,"scroll",a.bind(i,"expand")),Fe(n,"scroll",a.bind(n,"shrink")),e}((n=function(){if(s.resizer){var n=i.options.maintainAspectRatio&&t.parentNode,a=n?n.clientWidth:0;e(Re("resize",i)),n&&n.clientWidth<a&&i.canvas&&e(Re("resize",i))}},o=!1,r=[],function(){r=Array.prototype.slice.call(arguments),a=a||this,o||(o=!0,ut.requestAnimFrame.call(window,function(){o=!1,n.apply(a,r)}))}));!function(t,e){var i=t[_e]||(t[_e]={}),n=i.renderProxy=function(t){t.animationName===Pe&&e()};ut.each(Ie,function(e){Fe(t,e,n)}),i.reflow=!!t.offsetParent,t.classList.add(Se)}(t,function(){if(s.resizer){var e=t.parentNode;e&&e!==l.parentNode&&e.insertBefore(l,e.firstChild),l._reset()}})}function Be(t){var e=t[_e]||{},i=e.resizer;delete e.resizer,function(t){var e=t[_e]||{},i=e.renderProxy;i&&(ut.each(Ie,function(e){Le(t,e,i)}),delete e.renderProxy),t.classList.remove(Se)}(t),i&&i.parentNode&&i.parentNode.removeChild(i)}var Ne={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(){var t,e,i;this._loaded||(this._loaded=!0,this.disableCSSInjection||(e=Me,i=(t=this)._style||document.createElement("style"),t._style||(t._style=i,e="/* Chart.js */\n"+e,i.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(e))))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var i=t&&t.getContext&&t.getContext("2d");return this._ensureLoaded(),i&&i.canvas===t?(function(t,e){var i=t.style,n=t.getAttribute("height"),a=t.getAttribute("width");if(t[_e]={initial:{height:n,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null===a||""===a){var o=De(t,"width");void 0!==o&&(t.width=o)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var r=De(t,"height");void 0!==o&&(t.height=r)}}(t,e),i):null},releaseContext:function(t){var e=t.canvas;if(e[_e]){var i=e[_e].initial;["height","width"].forEach(function(t){var n=i[t];ut.isNullOrUndef(n)?e.removeAttribute(t):e.setAttribute(t,n)}),ut.each(i.style||{},function(t,i){e.style[i]=t}),e.width=e.width,delete e[_e]}},addEventListener:function(t,e,i){var n=t.canvas;if("resize"!==e){var a=i[_e]||(i[_e]={});Fe(n,e,(a.proxies||(a.proxies={}))[t.id+"_"+e]=function(e){i(function(t,e){var i=Ae[t.type]||t.type,n=ut.getRelativePosition(t,e);return Re(i,e,n.x,n.y,t)}(e,t))})}else ze(n,i,t)},removeEventListener:function(t,e,i){var n=t.canvas;if("resize"!==e){var a=((i[_e]||{}).proxies||{})[t.id+"_"+e];a&&Le(n,e,a)}else Be(n)}};ut.addEvent=Fe,ut.removeEvent=Le;var We=Ne._enabled?Ne:{acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},Ve=ut.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},We);st._set("global",{plugins:{}});var Ee={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,i){var n,a,o,r,s,l=this.descriptors(t),d=l.length;for(n=0;n<d;++n)if("function"==typeof(s=(o=(a=l[n]).plugin)[e])&&((r=[t].concat(i||[])).push(a.options),!1===s.apply(o,r)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],n=[],a=t&&t.config||{},o=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(t){if(-1===i.indexOf(t)){var e=t.id,a=o[e];!1!==a&&(!0===a&&(a=ut.clone(st.global.plugins[e])),i.push(t),n.push({plugin:t,options:a||{}}))}}),e.descriptors=n,e.id=this._cacheId,n},_invalidate:function(t){delete t.$plugins}},He={constructors:{},defaults:{},registerScaleType:function(t,e,i){this.constructors[t]=e,this.defaults[t]=ut.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?ut.merge({},[st.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=ut.extend(this.defaults[t],e))},addScalesToLayout:function(t){ut.each(t.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,ke.addBox(t,e)})}},je=ut.valueOrDefault;st._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ut.noop,title:function(t,e){var i="",n=e.labels,a=n?n.length:0;if(t.length>0){var o=t[0];o.label?i=o.label:o.xLabel?i=o.xLabel:a>0&&o.index<a&&(i=n[o.index])}return i},afterTitle:ut.noop,beforeBody:ut.noop,beforeLabel:ut.noop,label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i&&(i+=": "),ut.isNullOrUndef(t.value)?i+=t.yLabel:i+=t.value,i},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ut.noop,afterBody:ut.noop,beforeFooter:ut.noop,footer:ut.noop,afterFooter:ut.noop}}});var qe={average:function(t){if(!t.length)return!1;var e,i,n=0,a=0,o=0;for(e=0,i=t.length;e<i;++e){var r=t[e];if(r&&r.hasValue()){var s=r.tooltipPosition();n+=s.x,a+=s.y,++o}}return{x:n/o,y:a/o}},nearest:function(t,e){var i,n,a,o=e.x,r=e.y,s=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){var l=t[i];if(l&&l.hasValue()){var d=l.getCenterPoint(),u=ut.distanceBetweenPoints(e,d);u<s&&(s=u,a=l)}}if(a){var h=a.tooltipPosition();o=h.x,r=h.y}return{x:o,y:r}}};function Ye(t,e){return e&&(ut.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ue(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Xe(t){var e=st.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:je(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:je(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:je(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:je(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:je(t.titleFontStyle,e.defaultFontStyle),titleFontSize:je(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:je(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:je(t.footerFontStyle,e.defaultFontStyle),footerFontSize:je(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Ke(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function Ge(t){return Ye([],Ue(t))}var Ze=pt.extend({initialize:function(){this._model=Xe(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),n=t.afterTitle.apply(this,arguments),a=[];return a=Ye(a,Ue(e)),a=Ye(a,Ue(i)),a=Ye(a,Ue(n))},getBeforeBody:function(){return Ge(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var i=this,n=i._options.callbacks,a=[];return ut.each(t,function(t){var o={before:[],lines:[],after:[]};Ye(o.before,Ue(n.beforeLabel.call(i,t,e))),Ye(o.lines,n.label.call(i,t,e)),Ye(o.after,Ue(n.afterLabel.call(i,t,e))),a.push(o)}),a},getAfterBody:function(){return Ge(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),n=t.afterFooter.apply(this,arguments),a=[];return a=Ye(a,Ue(e)),a=Ye(a,Ue(i)),a=Ye(a,Ue(n))},update:function(t){var e,i,n,a,o,r,s,l,d,u,h=this,c=h._options,f=h._model,g=h._model=Xe(c),p=h._active,m=h._data,v={xAlign:f.xAlign,yAlign:f.yAlign},b={x:f.x,y:f.y},x={width:f.width,height:f.height},y={x:f.caretX,y:f.caretY};if(p.length){g.opacity=1;var k=[],w=[];y=qe[c.position].call(h,p,h._eventPosition);var M=[];for(e=0,i=p.length;e<i;++e)M.push((n=p[e],a=void 0,o=void 0,r=void 0,s=void 0,l=void 0,d=void 0,u=void 0,a=n._xScale,o=n._yScale||n._scale,r=n._index,s=n._datasetIndex,l=n._chart.getDatasetMeta(s).controller,d=l._getIndexScale(),u=l._getValueScale(),{xLabel:a?a.getLabelForIndex(r,s):"",yLabel:o?o.getLabelForIndex(r,s):"",label:d?""+d.getLabelForIndex(r,s):"",value:u?""+u.getLabelForIndex(r,s):"",index:r,datasetIndex:s,x:n._model.x,y:n._model.y}));c.filter&&(M=M.filter(function(t){return c.filter(t,m)})),c.itemSort&&(M=M.sort(function(t,e){return c.itemSort(t,e,m)})),ut.each(M,function(t){k.push(c.callbacks.labelColor.call(h,t,h._chart)),w.push(c.callbacks.labelTextColor.call(h,t,h._chart))}),g.title=h.getTitle(M,m),g.beforeBody=h.getBeforeBody(M,m),g.body=h.getBody(M,m),g.afterBody=h.getAfterBody(M,m),g.footer=h.getFooter(M,m),g.x=y.x,g.y=y.y,g.caretPadding=c.caretPadding,g.labelColors=k,g.labelTextColors=w,g.dataPoints=M,x=function(t,e){var i=t._chart.ctx,n=2*e.yPadding,a=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,d=e.titleFontSize,u=e.bodyFontSize,h=e.footerFontSize;n+=s*d,n+=s?(s-1)*e.titleSpacing:0,n+=s?e.titleMarginBottom:0,n+=r*u,n+=r?(r-1)*e.bodySpacing:0,n+=l?e.footerMarginTop:0,n+=l*h,n+=l?(l-1)*e.footerSpacing:0;var c=0,f=function(t){a=Math.max(a,i.measureText(t).width+c)};return i.font=ut.fontString(d,e._titleFontStyle,e._titleFontFamily),ut.each(e.title,f),i.font=ut.fontString(u,e._bodyFontStyle,e._bodyFontFamily),ut.each(e.beforeBody.concat(e.afterBody),f),c=e.displayColors?u+2:0,ut.each(o,function(t){ut.each(t.before,f),ut.each(t.lines,f),ut.each(t.after,f)}),c=0,i.font=ut.fontString(h,e._footerFontStyle,e._footerFontFamily),ut.each(e.footer,f),{width:a+=2*e.xPadding,height:n}}(this,g),b=function(t,e,i,n){var a=t.x,o=t.y,r=t.caretSize,s=t.caretPadding,l=t.cornerRadius,d=i.xAlign,u=i.yAlign,h=r+s,c=l+s;return"right"===d?a-=e.width:"center"===d&&((a-=e.width/2)+e.width>n.width&&(a=n.width-e.width),a<0&&(a=0)),"top"===u?o+=h:o-="bottom"===u?e.height+h:e.height/2,"center"===u?"left"===d?a+=h:"right"===d&&(a-=h):"left"===d?a-=c:"right"===d&&(a+=c),{x:a,y:o}}(g,x,v=function(t,e){var i,n,a,o,r,s=t._model,l=t._chart,d=t._chart.chartArea,u="center",h="center";s.y<e.height?h="top":s.y>l.height-e.height&&(h="bottom");var c=(d.left+d.right)/2,f=(d.top+d.bottom)/2;"center"===h?(i=function(t){return t<=c},n=function(t){return t>c}):(i=function(t){return t<=e.width/2},n=function(t){return t>=l.width-e.width/2}),a=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},r=function(t){return t<=f?"top":"bottom"},i(s.x)?(u="left",a(s.x)&&(u="center",h=r(s.y))):n(s.x)&&(u="right",o(s.x)&&(u="center",h=r(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:u,yAlign:g.yAlign?g.yAlign:h}}(this,x),h._chart)}else g.opacity=0;return g.xAlign=v.xAlign,g.yAlign=v.yAlign,g.x=b.x,g.y=b.y,g.width=x.width,g.height=x.height,g.caretX=y.x,g.caretY=y.y,h._model=g,t&&c.custom&&c.custom.call(h,g),h},drawCaret:function(t,e){var i=this._chart.ctx,n=this._view,a=this.getCaretPosition(t,e,n);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,i){var n,a,o,r,s,l,d=i.caretSize,u=i.cornerRadius,h=i.xAlign,c=i.yAlign,f=t.x,g=t.y,p=e.width,m=e.height;if("center"===c)s=g+m/2,"left"===h?(a=(n=f)-d,o=n,r=s+d,l=s-d):(a=(n=f+p)+d,o=n,r=s-d,l=s+d);else if("left"===h?(n=(a=f+u+d)-d,o=a+d):"right"===h?(n=(a=f+p-u-d)-d,o=a+d):(n=(a=i.caretX)-d,o=a+d),"top"===c)s=(r=g)-d,l=r;else{s=(r=g+m)+d,l=r;var v=o;o=n,n=v}return{x1:n,x2:a,x3:o,y1:r,y2:s,y3:l}},drawTitle:function(t,e,i){var n=e.title;if(n.length){t.x=Ke(e,e._titleAlign),i.textAlign=e._titleAlign,i.textBaseline="top";var a,o,r=e.titleFontSize,s=e.titleSpacing;for(i.fillStyle=e.titleFontColor,i.font=ut.fontString(r,e._titleFontStyle,e._titleFontFamily),a=0,o=n.length;a<o;++a)i.fillText(n[a],t.x,t.y),t.y+=r+s,a+1===n.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i){var n,a=e.bodyFontSize,o=e.bodySpacing,r=e._bodyAlign,s=e.body,l=e.displayColors,d=e.labelColors,u=0,h=l?Ke(e,"left"):0;i.textAlign=r,i.textBaseline="top",i.font=ut.fontString(a,e._bodyFontStyle,e._bodyFontFamily),t.x=Ke(e,r);var c=function(e){i.fillText(e,t.x+u,t.y),t.y+=a+o};i.fillStyle=e.bodyFontColor,ut.each(e.beforeBody,c),u=l&&"right"!==r?"center"===r?a/2+1:a+2:0,ut.each(s,function(o,r){n=e.labelTextColors[r],i.fillStyle=n,ut.each(o.before,c),ut.each(o.lines,function(o){l&&(i.fillStyle=e.legendColorBackground,i.fillRect(h,t.y,a,a),i.lineWidth=1,i.strokeStyle=d[r].borderColor,i.strokeRect(h,t.y,a,a),i.fillStyle=d[r].backgroundColor,i.fillRect(h+1,t.y+1,a-2,a-2),i.fillStyle=n),c(o)}),ut.each(o.after,c)}),u=0,ut.each(e.afterBody,c),t.y-=o},drawFooter:function(t,e,i){var n=e.footer;n.length&&(t.x=Ke(e,e._footerAlign),t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top",i.fillStyle=e.footerFontColor,i.font=ut.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),ut.each(n,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing}))},drawBackground:function(t,e,i,n){i.fillStyle=e.backgroundColor,i.strokeStyle=e.borderColor,i.lineWidth=e.borderWidth;var a=e.xAlign,o=e.yAlign,r=t.x,s=t.y,l=n.width,d=n.height,u=e.cornerRadius;i.beginPath(),i.moveTo(r+u,s),"top"===o&&this.drawCaret(t,n),i.lineTo(r+l-u,s),i.quadraticCurveTo(r+l,s,r+l,s+u),"center"===o&&"right"===a&&this.drawCaret(t,n),i.lineTo(r+l,s+d-u),i.quadraticCurveTo(r+l,s+d,r+l-u,s+d),"bottom"===o&&this.drawCaret(t,n),i.lineTo(r+u,s+d),i.quadraticCurveTo(r,s+d,r,s+d-u),"center"===o&&"left"===a&&this.drawCaret(t,n),i.lineTo(r,s+u),i.quadraticCurveTo(r,s,r+u,s),i.closePath(),i.fill(),e.borderWidth>0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i={width:e.width,height:e.height},n={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(t.save(),t.globalAlpha=a,this.drawBackground(n,e,t,i),n.y+=e.yPadding,this.drawTitle(n,e,t),this.drawBody(n,e,t),this.drawFooter(n,e,t),t.restore())}},handleEvent:function(t){var e,i=this,n=i._options;return i._lastActive=i._lastActive||[],"mouseout"===t.type?i._active=[]:i._active=i._chart.getElementsAtEventForMode(t,n.mode,n),(e=!ut.arrayEquals(i._active,i._lastActive))&&(i._lastActive=i._active,(n.enabled||n.custom)&&(i._eventPosition={x:t.x,y:t.y},i.update(!0),i.pivot())),e}}),$e=qe,Je=Ze;Je.positioners=$e;var Qe=ut.valueOrDefault;function ti(){return ut.merge({},[].slice.call(arguments),{merger:function(t,e,i,n){if("xAxes"===t||"yAxes"===t){var a,o,r,s=i[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)r=i[t][a],o=Qe(r.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||r.type&&r.type!==e[t][a].type?ut.merge(e[t][a],[He.getScaleDefaults(o),r]):ut.merge(e[t][a],r)}else ut._merger(t,e,i,n)}})}function ei(){return ut.merge({},[].slice.call(arguments),{merger:function(t,e,i,n){var a=e[t]||{},o=i[t];"scales"===t?e[t]=ti(a,o):"scale"===t?e[t]=ut.merge(a,[He.getScaleDefaults(o.type),o]):ut._merger(t,e,i,n)}})}function ii(t){return"top"===t||"bottom"===t}st._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var ni=function(t,e){return this.construct(t,e),this};ut.extend(ni.prototype,{construct:function(t,e){var i=this;e=function(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=ei(st.global,st[t.type],t.options||{}),t}(e);var n=Ve.acquireContext(t,e),a=n&&n.canvas,o=a&&a.height,r=a&&a.width;i.id=ut.uid(),i.ctx=n,i.canvas=a,i.config=e,i.width=r,i.height=o,i.aspectRatio=o?r/o:null,i.options=e.options,i._bufferedRender=!1,i.chart=i,i.controller=i,ni.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(t){i.config.data=t}}),n&&a?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Ee.notify(t,"beforeInit"),ut.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),Ee.notify(t,"afterInit"),t},clear:function(){return ut.canvas.clear(this),this},stop:function(){return bt.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,n=e.canvas,a=i.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(ut.getMaximumWidth(n))),r=Math.max(0,Math.floor(a?o/a:ut.getMaximumHeight(n)));if((e.width!==o||e.height!==r)&&(n.width=e.width=o,n.height=e.height=r,n.style.width=o+"px",n.style.height=r+"px",ut.retinaScale(e,i.devicePixelRatio),!t)){var s={width:o,height:r};Ee.notify(e,"resize",[s]),i.onResize&&i.onResize(e,s),e.stop(),e.update({duration:i.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;ut.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),ut.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,i=t.scales||{},n=[],a=Object.keys(i).reduce(function(t,e){return t[e]=!1,t},{});e.scales&&(n=n.concat((e.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),e.scale&&n.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ut.each(n,function(e){var n=e.options,o=n.id,r=Qe(n.type,e.dtype);ii(n.position)!==ii(e.dposition)&&(n.position=e.dposition),a[o]=!0;var s=null;if(o in i&&i[o].type===r)(s=i[o]).options=n,s.ctx=t.ctx,s.chart=t;else{var l=He.getScaleConstructor(r);if(!l)return;s=new l({id:o,type:r,options:n,ctx:t.ctx,chart:t}),i[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)}),ut.each(a,function(t,e){t||delete i[e]}),t.scales=i,He.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,e=[];return ut.each(t.data.datasets,function(i,n){var a=t.getDatasetMeta(n),o=i.type||t.config.type;if(a.type&&a.type!==o&&(t.destroyDatasetMeta(n),a=t.getDatasetMeta(n)),a.type=o,a.controller)a.controller.updateIndex(n),a.controller.linkScales();else{var r=ue[a.type];if(void 0===r)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new r(t,n),e.push(a.controller)}},t),e},resetElements:function(){var t=this;ut.each(t.data.datasets,function(e,i){t.getDatasetMeta(i).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,i,n=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),i=(e=n).options,ut.each(e.scales,function(t){ke.removeBox(e,t)}),i=ei(st.global,st[e.config.type],i),e.options=e.config.options=i,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=i.tooltips,e.tooltip.initialize(),Ee._invalidate(n),!1!==Ee.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var a=n.buildOrUpdateControllers();ut.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.buildOrUpdateElements()},n),n.updateLayout(),n.options.animation&&n.options.animation.duration&&ut.each(a,function(t){t.reset()}),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],Ee.notify(n,"afterUpdate"),n._bufferedRender?n._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t)}},updateLayout:function(){!1!==Ee.notify(this,"beforeLayout")&&(ke.update(this,this.width,this.height),Ee.notify(this,"afterScaleUpdate"),Ee.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==Ee.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);Ee.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),i={meta:e,index:t};!1!==Ee.notify(this,"beforeDatasetUpdate",[i])&&(e.controller.update(),Ee.notify(this,"afterDatasetUpdate",[i]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var i=e.options.animation,n=Qe(t.duration,i&&i.duration),a=t.lazy;if(!1!==Ee.notify(e,"beforeRender")){var o=function(t){Ee.notify(e,"afterRender"),ut.callback(i&&i.onComplete,[t],e)};if(i&&n){var r=new vt({numSteps:n/16.66,easing:t.easing||i.easing,render:function(t,e){var i=ut.easing.effects[e.easing],n=e.currentStep,a=n/e.numSteps;t.draw(i(a),a,n)},onAnimationProgress:i.onProgress,onAnimationComplete:o});bt.addAnimation(e,r,n,a)}else e.draw(),o(new vt({numSteps:0,chart:e}));return e}},draw:function(t){var e=this;e.clear(),ut.isNullOrUndef(t)&&(t=1),e.transition(t),e.width<=0||e.height<=0||!1!==Ee.notify(e,"beforeDraw",[t])&&(ut.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.drawDatasets(t),e._drawTooltip(t),Ee.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,i=(this.data.datasets||[]).length;e<i;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==Ee.notify(e,"beforeDatasetsDraw",[t])){for(var i=(e.data.datasets||[]).length-1;i>=0;--i)e.isDatasetVisible(i)&&e.drawDataset(i,t);Ee.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var i=this.getDatasetMeta(t),n={meta:i,index:t,easingValue:e};!1!==Ee.notify(this,"beforeDatasetDraw",[n])&&(i.controller.draw(e),Ee.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this.tooltip,i={tooltip:e,easingValue:t};!1!==Ee.notify(this,"beforeTooltipDraw",[i])&&(e.draw(),Ee.notify(this,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return ve.modes.single(this,t)},getElementsAtEvent:function(t){return ve.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return ve.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,i){var n=ve.modes[e];return"function"==typeof n?n(this,t,i):[]},getDatasetAtEvent:function(t){return ve.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var i=e._meta[this.id];return i||(i=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;e<i;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,i=this.data.datasets[t],n=i._meta&&i._meta[e];n&&(n.controller.destroy(),delete i._meta[e])},destroy:function(){var t,e,i=this,n=i.canvas;for(i.stop(),t=0,e=i.data.datasets.length;t<e;++t)i.destroyDatasetMeta(t);n&&(i.unbindEvents(),ut.canvas.clear(i),Ve.releaseContext(i.ctx),i.canvas=null,i.ctx=null),Ee.notify(i,"destroy"),delete ni.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new Je({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},i=function(){t.eventHandler.apply(t,arguments)};ut.each(t.options.events,function(n){Ve.addEventListener(t,n,i),e[n]=i}),t.options.responsive&&(i=function(){t.resize()},Ve.addEventListener(t,"resize",i),e.resize=i)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,ut.each(e,function(e,i){Ve.removeEventListener(t,i,e)}))},updateHoverStyle:function(t,e,i){var n,a,o,r=i?"setHoverStyle":"removeHoverStyle";for(a=0,o=t.length;a<o;++a)(n=t[a])&&this.getDatasetMeta(n._datasetIndex).controller[r](n)},eventHandler:function(t){var e=this,i=e.tooltip;if(!1!==Ee.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var n=e.handleEvent(t);i&&(n=i._start?i.handleEvent(t):n|i.handleEvent(t)),Ee.notify(e,"afterEvent",[t]);var a=e._bufferedRequest;return a?e.render(a):n&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,i=this,n=i.options||{},a=n.hover;return i.lastActive=i.lastActive||[],"mouseout"===t.type?i.active=[]:i.active=i.getElementsAtEventForMode(t,a.mode,a),ut.callback(n.onHover||n.hover.onHover,[t.native,i.active],i),"mouseup"!==t.type&&"click"!==t.type||n.onClick&&n.onClick.call(i,t.native,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,a.mode,!1),i.active.length&&a.mode&&i.updateHoverStyle(i.active,a.mode,!0),e=!ut.arrayEquals(i.active,i.lastActive),i.lastActive=i.active,e}}),ni.instances={};var ai=ni;ni.Controller=ni,ni.types={},ut.configMerge=ei,ut.scaleMerge=ti;function oi(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function ri(t){this.options=t||{}}ut.extend(ri.prototype,{formats:oi,parse:oi,format:oi,add:oi,diff:oi,startOf:oi,endOf:oi,_create:function(t){return t}}),ri.override=function(t){ut.extend(ri.prototype,t)};var si={_date:ri},li={formatters:{values:function(t){return ut.isArray(t)?t:""+t},linear:function(t,e,i){var n=i.length>3?i[2]-i[1]:i[1]-i[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var a=ut.log10(Math.abs(n)),o="";if(0!==t)if(Math.max(Math.abs(i[0]),Math.abs(i[i.length-1]))<1e-4){var r=ut.log10(Math.abs(t));o=t.toExponential(Math.floor(r)-Math.floor(a))}else{var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,e,i){var n=t/Math.pow(10,Math.floor(ut.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===e||e===i.length-1?t.toExponential():""}}},di=ut.valueOrDefault,ui=ut.valueAtIndexOrDefault;function hi(t){var e,i,n=[];for(e=0,i=t.length;e<i;++e)n.push(t[e].label);return n}function ci(t,e,i){return ut.isArray(e)?ut.longestText(t,i,e):t.measureText(e).width}st._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:li.formatters.values,minor:{},major:{}}});var fi=pt.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t=this.options.ticks;for(var e in!1===t.minor&&(t.minor={display:!1}),!1===t.major&&(t.major={display:!1}),t)"major"!==e&&"minor"!==e&&(void 0===t.minor[e]&&(t.minor[e]=t[e]),void 0===t.major[e]&&(t.major[e]=t[e]))},beforeUpdate:function(){ut.callback(this.options.beforeUpdate,[this])},update:function(t,e,i){var n,a,o,r,s,l,d=this;for(d.beforeUpdate(),d.maxWidth=t,d.maxHeight=e,d.margins=ut.extend({left:0,right:0,top:0,bottom:0},i),d._maxLabelLines=0,d.longestLabelWidth=0,d.longestTextCache=d.longestTextCache||{},d.beforeSetDimensions(),d.setDimensions(),d.afterSetDimensions(),d.beforeDataLimits(),d.determineDataLimits(),d.afterDataLimits(),d.beforeBuildTicks(),s=d.buildTicks()||[],s=d.afterBuildTicks(s)||s,d.beforeTickToLabelConversion(),o=d.convertTicksToLabels(s)||d.ticks,d.afterTickToLabelConversion(),d.ticks=o,n=0,a=o.length;n<a;++n)r=o[n],(l=s[n])?l.label=r:s.push(l={label:r,major:!1});return d._ticks=s,d.beforeCalculateTickRotation(),d.calculateTickRotation(),d.afterCalculateTickRotation(),d.beforeFit(),d.fit(),d.afterFit(),d.afterUpdate(),d.minSize},afterUpdate:function(){ut.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ut.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){ut.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ut.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ut.noop,afterDataLimits:function(){ut.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ut.callback(this.options.beforeBuildTicks,[this])},buildTicks:ut.noop,afterBuildTicks:function(t){var e=this;return ut.isArray(t)&&t.length?ut.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=ut.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){ut.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){ut.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ut.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,i=t.options.ticks,n=hi(t._ticks),a=ut.options._parseFont(i);e.font=a.string;var o=i.minRotation||0;if(n.length&&t.options.display&&t.isHorizontal())for(var r,s=ut.longestText(e,a.string,n,t.longestTextCache),l=s,d=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l>d&&o<i.maxRotation;){var u=ut.toRadians(o);if(r=Math.cos(u),Math.sin(u)*s>t.maxHeight){o--;break}o++,l=r*s}t.labelRotation=o},afterCalculateTickRotation:function(){ut.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ut.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},i=hi(t._ticks),n=t.options,a=n.ticks,o=n.scaleLabel,r=n.gridLines,s=t._isVisible(),l=n.position,d=t.isHorizontal(),u=ut.options._parseFont,h=u(a),c=n.gridLines.tickMarkLength;if(e.width=d?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s&&r.drawTicks?c:0,e.height=d?s&&r.drawTicks?c:0:t.maxHeight,o.display&&s){var f=u(o),g=ut.options.toPadding(o.padding),p=f.lineHeight+g.height;d?e.height+=p:e.width+=p}if(a.display&&s){var m=ut.longestText(t.ctx,h.string,i,t.longestTextCache),v=ut.numberOfLabelLines(i),b=.5*h.size,x=t.options.ticks.padding;if(t._maxLabelLines=v,t.longestLabelWidth=m,d){var y=ut.toRadians(t.labelRotation),k=Math.cos(y),w=Math.sin(y)*m+h.lineHeight*v+b;e.height=Math.min(t.maxHeight,e.height+w+x),t.ctx.font=h.string;var M,_,C=ci(t.ctx,i[0],h.string),S=ci(t.ctx,i[i.length-1],h.string),P=t.getPixelForTick(0)-t.left,I=t.right-t.getPixelForTick(i.length-1);0!==t.labelRotation?(M="bottom"===l?k*C:k*b,_="bottom"===l?k*b:k*S):(M=C/2,_=S/2),t.paddingLeft=Math.max(M-P,0)+3,t.paddingRight=Math.max(_-I,0)+3}else a.mirror?m=0:m+=x+b,e.width=Math.min(t.maxWidth,e.width+m),t.paddingTop=h.size/2,t.paddingBottom=h.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){ut.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(ut.isNullOrUndef(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:ut.noop,getPixelForValue:ut.noop,getValueForPixel:ut.noop,getPixelForTick:function(t){var e=this,i=e.options.offset;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(i?0:1),1),a=n*t+e.paddingLeft;i&&(a+=n/2);var o=e.left+a;return o+=e.isFullWidth()?e.margins.left:0}var r=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(r/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,n=e.left+i;return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,i,n=this,a=n.isHorizontal(),o=n.options.ticks.minor,r=t.length,s=!1,l=o.maxTicksLimit,d=n._tickSize()*(r-1),u=a?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.PaddingBottom),h=[];for(d>u&&(s=1+Math.floor(d/u)),r>l&&(s=Math.max(s,1+Math.floor(r/l))),e=0;e<r;e++)i=t[e],s>1&&e%s>0&&delete i.label,h.push(i);return h},_tickSize:function(){var t=this,e=t.isHorizontal(),i=t.options.ticks.minor,n=ut.toRadians(t.labelRotation),a=Math.abs(Math.cos(n)),o=Math.abs(Math.sin(n)),r=i.autoSkipPadding||0,s=t.longestLabelWidth+r||0,l=ut.options._parseFont(i),d=t._maxLabelLines*l.lineHeight+r||0;return e?d*a>s*o?s/a:d/o:d*o<s*a?d/a:s/o},_isVisible:function(){var t,e,i,n=this.chart,a=this.options.display;if("auto"!==a)return!!a;for(t=0,e=n.data.datasets.length;t<e;++t)if(n.isDatasetVisible(t)&&((i=n.getDatasetMeta(t)).xAxisID===this.id||i.yAxisID===this.id))return!0;return!1},draw:function(t){var e=this,i=e.options;if(e._isVisible()){var n,a,o,r=e.chart,s=e.ctx,l=st.global.defaultFontColor,d=i.ticks.minor,u=i.ticks.major||d,h=i.gridLines,c=i.scaleLabel,f=i.position,g=0!==e.labelRotation,p=d.mirror,m=e.isHorizontal(),v=ut.options._parseFont,b=d.display&&d.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),x=di(d.fontColor,l),y=v(d),k=y.lineHeight,w=di(u.fontColor,l),M=v(u),_=d.padding,C=d.labelOffset,S=h.drawTicks?h.tickMarkLength:0,P=di(c.fontColor,l),I=v(c),A=ut.options.toPadding(c.padding),D=ut.toRadians(e.labelRotation),T=[],F=h.drawBorder?ui(h.lineWidth,0,0):0,L=ut._alignPixel;"top"===f?(n=L(r,e.bottom,F),a=e.bottom-S,o=n-F/2):"bottom"===f?(n=L(r,e.top,F),a=n+F/2,o=e.top+S):"left"===f?(n=L(r,e.right,F),a=e.right-S,o=n-F/2):(n=L(r,e.left,F),a=n+F/2,o=e.left+S);if(ut.each(b,function(n,s){if(!ut.isNullOrUndef(n.label)){var l,d,u,c,v,b,x,y,w,M,P,I,A,R,O,z,B=n.label;s===e.zeroLineIndex&&i.offset===h.offsetGridLines?(l=h.zeroLineWidth,d=h.zeroLineColor,u=h.zeroLineBorderDash||[],c=h.zeroLineBorderDashOffset||0):(l=ui(h.lineWidth,s),d=ui(h.color,s),u=h.borderDash||[],c=h.borderDashOffset||0);var N=ut.isArray(B)?B.length:1,W=function(t,e,i){var n=t.getPixelForTick(e);return i&&(1===t.getTicks().length?n-=t.isHorizontal()?Math.max(n-t.left,t.right-n):Math.max(n-t.top,t.bottom-n):n-=0===e?(t.getPixelForTick(1)-n)/2:(n-t.getPixelForTick(e-1))/2),n}(e,s,h.offsetGridLines);if(m){var V=S+_;W<e.left-1e-7&&(d="rgba(0,0,0,0)"),v=x=w=P=L(r,W,l),b=a,y=o,A=e.getPixelForTick(s)+C,"top"===f?(M=L(r,t.top,F)+F/2,I=t.bottom,O=((g?1:.5)-N)*k,z=g?"left":"center",R=e.bottom-V):(M=t.top,I=L(r,t.bottom,F)-F/2,O=(g?0:.5)*k,z=g?"right":"center",R=e.top+V)}else{var E=(p?0:S)+_;W<e.top-1e-7&&(d="rgba(0,0,0,0)"),v=a,x=o,b=y=M=I=L(r,W,l),R=e.getPixelForTick(s)+C,O=(1-N)*k/2,"left"===f?(w=L(r,t.left,F)+F/2,P=t.right,z=p?"left":"right",A=e.right-E):(w=t.left,P=L(r,t.right,F)-F/2,z=p?"right":"left",A=e.left+E)}T.push({tx1:v,ty1:b,tx2:x,ty2:y,x1:w,y1:M,x2:P,y2:I,labelX:A,labelY:R,glWidth:l,glColor:d,glBorderDash:u,glBorderDashOffset:c,rotation:-1*D,label:B,major:n.major,textOffset:O,textAlign:z})}}),ut.each(T,function(t){var e=t.glWidth,i=t.glColor;if(h.display&&e&&i&&(s.save(),s.lineWidth=e,s.strokeStyle=i,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),h.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),h.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),d.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=t.major?M.string:y.string,s.fillStyle=t.major?w:x,s.textBaseline="middle",s.textAlign=t.textAlign;var n=t.label,a=t.textOffset;if(ut.isArray(n))for(var o=0;o<n.length;++o)s.fillText(""+n[o],0,a),a+=k;else s.fillText(n,0,a);s.restore()}}),c.display){var R,O,z=0,B=I.lineHeight/2;if(m)R=e.left+(e.right-e.left)/2,O="bottom"===f?e.bottom-B-A.bottom:e.top+B+A.top;else{var N="left"===f;R=N?e.left+B+A.top:e.right-B-A.top,O=e.top+(e.bottom-e.top)/2,z=N?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(R,O),s.rotate(z),s.textAlign="center",s.textBaseline="middle",s.fillStyle=P,s.font=I.string,s.fillText(c.labelString,0,0),s.restore()}if(F){var W,V,E,H,j=F,q=ui(h.lineWidth,b.length-1,0);m?(W=L(r,e.left,j)-j/2,V=L(r,e.right,q)+q/2,E=H=n):(E=L(r,e.top,j)-j/2,H=L(r,e.bottom,q)+q/2,W=V=n),s.lineWidth=F,s.strokeStyle=ui(h.color,0),s.beginPath(),s.moveTo(W,E),s.lineTo(V,H),s.stroke()}}}}),gi=fi.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,i=e.getLabels();e.minIndex=0,e.maxIndex=i.length-1,void 0!==e.options.ticks.min&&(t=i.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=i.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=i[e.minIndex],e.max=i[e.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===i.id?i.getRightValue(n.data.datasets[e].data[t]):i.ticks[t-i.minIndex]},getPixelForValue:function(t,e){var i,n=this,a=n.options.offset,o=Math.max(n.maxIndex+1-n.minIndex-(a?0:1),1);if(null!=t&&(i=n.isHorizontal()?t.x:t.y),void 0!==i||void 0!==t&&isNaN(e)){t=i||t;var r=n.getLabels().indexOf(t);e=-1!==r?r:e}if(n.isHorizontal()){var s=n.width/o,l=s*(e-n.minIndex);return a&&(l+=s/2),n.left+l}var d=n.height/o,u=d*(e-n.minIndex);return a&&(u+=d/2),n.top+u},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,i=e.options.offset,n=Math.max(e._ticks.length-(i?0:1),1),a=e.isHorizontal(),o=(a?e.width:e.height)/n;return t-=a?e.left:e.top,i&&(t-=o/2),(t<=0?0:Math.round(t/o))+e.minIndex},getBasePixel:function(){return this.bottom}}),pi={position:"bottom"};gi._defaults=pi;var mi=ut.noop,vi=ut.isNullOrUndef;var bi=fi.extend({getRightValue:function(t){return"string"==typeof t?+t:fi.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var i=ut.sign(t.min),n=ut.sign(t.max);i<0&&n<0?t.max=0:i>0&&n>0&&(t.min=0)}var a=void 0!==e.min||void 0!==e.suggestedMin,o=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),a!==o&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,i=e.stepSize,n=e.maxTicksLimit;return i?t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1:(t=this._computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:mi,buildTicks:function(){var t=this,e=t.options.ticks,i=t.getTickLimit(),n={maxTicks:i=Math.max(2,i),min:e.min,max:e.max,precision:e.precision,stepSize:ut.valueOrDefault(e.fixedStepSize,e.stepSize)},a=t.ticks=function(t,e){var i,n,a,o,r=[],s=t.stepSize,l=s||1,d=t.maxTicks-1,u=t.min,h=t.max,c=t.precision,f=e.min,g=e.max,p=ut.niceNum((g-f)/d/l)*l;if(p<1e-14&&vi(u)&&vi(h))return[f,g];(o=Math.ceil(g/p)-Math.floor(f/p))>d&&(p=ut.niceNum(o*p/d/l)*l),s||vi(c)?i=Math.pow(10,ut._decimalPlaces(p)):(i=Math.pow(10,c),p=Math.ceil(p*i)/i),n=Math.floor(f/p)*p,a=Math.ceil(g/p)*p,s&&(!vi(u)&&ut.almostWhole(u/p,p/1e3)&&(n=u),!vi(h)&&ut.almostWhole(h/p,p/1e3)&&(a=h)),o=(a-n)/p,o=ut.almostEquals(o,Math.round(o),p/1e3)?Math.round(o):Math.ceil(o),n=Math.round(n*i)/i,a=Math.round(a*i)/i,r.push(vi(u)?n:u);for(var m=1;m<o;++m)r.push(Math.round((n+m*p)*i)/i);return r.push(vi(h)?a:h),r}(n,t);t.handleDirectionalChanges(),t.max=ut.max(a),t.min=ut.min(a),e.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),fi.prototype.convertTicksToLabels.call(t)}}),xi={position:"left",ticks:{callback:li.formatters.linear}},yi=bi.extend({determineDataLimits:function(){var t=this,e=t.options,i=t.chart,n=i.data.datasets,a=t.isHorizontal();function o(e){return a?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null,t.max=null;var r=e.stacked;if(void 0===r&&ut.each(n,function(t,e){if(!r){var n=i.getDatasetMeta(e);i.isDatasetVisible(e)&&o(n)&&void 0!==n.stack&&(r=!0)}}),e.stacked||r){var s={};ut.each(n,function(n,a){var r=i.getDatasetMeta(a),l=[r.type,void 0===e.stacked&&void 0===r.stack?a:"",r.stack].join(".");void 0===s[l]&&(s[l]={positiveValues:[],negativeValues:[]});var d=s[l].positiveValues,u=s[l].negativeValues;i.isDatasetVisible(a)&&o(r)&&ut.each(n.data,function(i,n){var a=+t.getRightValue(i);isNaN(a)||r.data[n].hidden||(d[n]=d[n]||0,u[n]=u[n]||0,e.relativePoints?d[n]=100:a<0?u[n]+=a:d[n]+=a)})}),ut.each(s,function(e){var i=e.positiveValues.concat(e.negativeValues),n=ut.min(i),a=ut.max(i);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?a:Math.max(t.max,a)})}else ut.each(n,function(e,n){var a=i.getDatasetMeta(n);i.isDatasetVisible(n)&&o(a)&&ut.each(e.data,function(e,i){var n=+t.getRightValue(e);isNaN(n)||a.data[i].hidden||(null===t.min?t.min=n:n<t.min&&(t.min=n),null===t.max?t.max=n:n>t.max&&(t.max=n))})});t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var t;return this.isHorizontal()?Math.ceil(this.width/40):(t=ut.options._parseFont(this.options.ticks),Math.ceil(this.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this,i=e.start,n=+e.getRightValue(t),a=e.end-i;return e.isHorizontal()?e.left+e.width/a*(n-i):e.bottom-e.height/a*(n-i)},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=i?e.width:e.height,a=(i?t-e.left:e.bottom-t)/n;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}}),ki=xi;yi._defaults=ki;var wi=ut.valueOrDefault;var Mi={position:"left",ticks:{callback:li.formatters.logarithmic}};function _i(t,e){return ut.isFinite(t)&&t>=0?t:e}var Ci=fi.extend({determineDataLimits:function(){var t=this,e=t.options,i=t.chart,n=i.data.datasets,a=t.isHorizontal();function o(e){return a?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null,t.max=null,t.minNotZero=null;var r=e.stacked;if(void 0===r&&ut.each(n,function(t,e){if(!r){var n=i.getDatasetMeta(e);i.isDatasetVisible(e)&&o(n)&&void 0!==n.stack&&(r=!0)}}),e.stacked||r){var s={};ut.each(n,function(n,a){var r=i.getDatasetMeta(a),l=[r.type,void 0===e.stacked&&void 0===r.stack?a:"",r.stack].join(".");i.isDatasetVisible(a)&&o(r)&&(void 0===s[l]&&(s[l]=[]),ut.each(n.data,function(e,i){var n=s[l],a=+t.getRightValue(e);isNaN(a)||r.data[i].hidden||a<0||(n[i]=n[i]||0,n[i]+=a)}))}),ut.each(s,function(e){if(e.length>0){var i=ut.min(e),n=ut.max(e);t.min=null===t.min?i:Math.min(t.min,i),t.max=null===t.max?n:Math.max(t.max,n)}})}else ut.each(n,function(e,n){var a=i.getDatasetMeta(n);i.isDatasetVisible(n)&&o(a)&&ut.each(e.data,function(e,i){var n=+t.getRightValue(e);isNaN(n)||a.data[i].hidden||n<0||(null===t.min?t.min=n:n<t.min&&(t.min=n),null===t.max?t.max=n:n>t.max&&(t.max=n),0!==n&&(null===t.minNotZero||n<t.minNotZero)&&(t.minNotZero=n))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;t.min=_i(e.min,t.min),t.max=_i(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(ut.log10(t.min))-1),t.max=Math.pow(10,Math.floor(ut.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(ut.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(ut.log10(t.min))+1):10),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(ut.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,i=!t.isHorizontal(),n={min:_i(e.min),max:_i(e.max)},a=t.ticks=function(t,e){var i,n,a=[],o=wi(t.min,Math.pow(10,Math.floor(ut.log10(e.min)))),r=Math.floor(ut.log10(e.max)),s=Math.ceil(e.max/Math.pow(10,r));0===o?(i=Math.floor(ut.log10(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,i)),a.push(o),o=n*Math.pow(10,i)):(i=Math.floor(ut.log10(o)),n=Math.floor(o/Math.pow(10,i)));var l=i<0?Math.pow(10,Math.abs(i)):1;do{a.push(o),10==++n&&(n=1,l=++i>=0?1:l),o=Math.round(n*Math.pow(10,i)*l)/l}while(i<r||i===r&&n<s);var d=wi(t.max,o);return a.push(d),a}(n,t);t.max=ut.max(a),t.min=ut.min(a),e.reverse?(i=!i,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),i&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),fi.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(ut.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,i,n,a,o,r=this,s=r.options.ticks,l=s.reverse,d=ut.log10,u=r._getFirstTickValue(r.minNotZero),h=0;return t=+r.getRightValue(t),l?(n=r.end,a=r.start,o=-1):(n=r.start,a=r.end,o=1),r.isHorizontal()?(e=r.width,i=l?r.right:r.left):(e=r.height,o*=-1,i=l?r.top:r.bottom),t!==n&&(0===n&&(e-=h=wi(s.fontSize,st.global.defaultFontSize),n=u),0!==t&&(h+=e/(d(a)-d(n))*(d(t)-d(n))),i+=o*h),i},getValueForPixel:function(t){var e,i,n,a,o=this,r=o.options.ticks,s=r.reverse,l=ut.log10,d=o._getFirstTickValue(o.minNotZero);if(s?(i=o.end,n=o.start):(i=o.start,n=o.end),o.isHorizontal()?(e=o.width,a=s?o.right-t:t-o.left):(e=o.height,a=s?t-o.top:o.bottom-t),a!==i){if(0===i){var u=wi(r.fontSize,st.global.defaultFontSize);a-=u,e-=u,i=d}a*=l(n)-l(i),a/=e,a=Math.pow(10,l(i)+a)}return a}}),Si=Mi;Ci._defaults=Si;var Pi=ut.valueOrDefault,Ii=ut.valueAtIndexOrDefault,Ai=ut.options.resolve,Di={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:li.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Ti(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function Fi(t){var e=t.ticks;return e.display&&t.display?Pi(e.fontSize,st.global.defaultFontSize)+2*e.backdropPaddingY:0}function Li(t,e,i,n,a){return t===n||t===a?{start:e-i/2,end:e+i/2}:t<n||t>a?{start:e-i,end:e}:{start:e,end:e+i}}function Ri(t){return 0===t||180===t?"center":t<180?"left":"right"}function Oi(t,e,i,n){var a,o,r=i.y+n/2;if(ut.isArray(e))for(a=0,o=e.length;a<o;++a)t.fillText(e[a],i.x,r),r+=n;else t.fillText(e,i.x,r)}function zi(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function Bi(t){return ut.isNumber(t)?t:0}var Ni=bi.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Fi(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,i=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;ut.each(e.data.datasets,function(a,o){if(e.isDatasetVisible(o)){var r=e.getDatasetMeta(o);ut.each(a.data,function(e,a){var o=+t.getRightValue(e);isNaN(o)||r.data[a].hidden||(i=Math.min(o,i),n=Math.max(o,n))})}}),t.min=i===Number.POSITIVE_INFINITY?0:i,t.max=n===Number.NEGATIVE_INFINITY?0:n,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Fi(this.options))},convertTicksToLabels:function(){var t=this;bi.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,i,n,a=ut.options._parseFont(t.options.pointLabels),o={l:0,r:t.width,t:0,b:t.height-t.paddingTop},r={};t.ctx.font=a.string,t._pointLabelSizes=[];var s,l,d,u=Ti(t);for(e=0;e<u;e++){n=t.getPointPosition(e,t.drawingArea+5),s=t.ctx,l=a.lineHeight,d=t.pointLabels[e]||"",i=ut.isArray(d)?{w:ut.longestText(s,s.font,d),h:d.length*l}:{w:s.measureText(d).width,h:l},t._pointLabelSizes[e]=i;var h=t.getIndexAngle(e),c=ut.toDegrees(h)%360,f=Li(c,n.x,i.w,0,180),g=Li(c,n.y,i.h,90,270);f.start<o.l&&(o.l=f.start,r.l=h),f.end>o.r&&(o.r=f.end,r.r=h),g.start<o.t&&(o.t=g.start,r.t=h),g.end>o.b&&(o.b=g.end,r.b=h)}t.setReductions(t.drawingArea,o,r)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,i){var n=this,a=e.l/Math.sin(i.l),o=Math.max(e.r-n.width,0)/Math.sin(i.r),r=-e.t/Math.cos(i.t),s=-Math.max(e.b-(n.height-n.paddingTop),0)/Math.cos(i.b);a=Bi(a),o=Bi(o),r=Bi(r),s=Bi(s),n.drawingArea=Math.min(Math.floor(t-(a+o)/2),Math.floor(t-(r+s)/2)),n.setCenterPoint(a,o,r,s)},setCenterPoint:function(t,e,i,n){var a=this,o=a.width-e-a.drawingArea,r=t+a.drawingArea,s=i+a.drawingArea,l=a.height-a.paddingTop-n-a.drawingArea;a.xCenter=Math.floor((r+o)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(t){return t*(2*Math.PI/Ti(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var i=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*i:(t-e.min)*i},getPointPosition:function(t,e){var i=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(){var t=this,e=t.options,i=e.gridLines,n=e.ticks;if(e.display){var a=t.ctx,o=this.getIndexAngle(0),r=ut.options._parseFont(n);(e.angleLines.display||e.pointLabels.display)&&function(t){var e=t.ctx,i=t.options,n=i.angleLines,a=i.gridLines,o=i.pointLabels,r=Pi(n.lineWidth,a.lineWidth),s=Pi(n.color,a.color),l=Fi(i);e.save(),e.lineWidth=r,e.strokeStyle=s,e.setLineDash&&(e.setLineDash(Ai([n.borderDash,a.borderDash,[]])),e.lineDashOffset=Ai([n.borderDashOffset,a.borderDashOffset,0]));var d=t.getDistanceFromCenterForValue(i.ticks.reverse?t.min:t.max),u=ut.options._parseFont(o);e.font=u.string,e.textBaseline="middle";for(var h=Ti(t)-1;h>=0;h--){if(n.display&&r&&s){var c=t.getPointPosition(h,d);e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(c.x,c.y),e.stroke()}if(o.display){var f=0===h?l/2:0,g=t.getPointPosition(h,d+f+5),p=Ii(o.fontColor,h,st.global.defaultFontColor);e.fillStyle=p;var m=t.getIndexAngle(h),v=ut.toDegrees(m);e.textAlign=Ri(v),zi(v,t._pointLabelSizes[h],g),Oi(e,t.pointLabels[h]||"",g,u.lineHeight)}}e.restore()}(t),ut.each(t.ticks,function(e,s){if(s>0||n.reverse){var l=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]);if(i.display&&0!==s&&function(t,e,i,n){var a,o=t.ctx,r=e.circular,s=Ti(t),l=Ii(e.color,n-1),d=Ii(e.lineWidth,n-1);if((r||s)&&l&&d){if(o.save(),o.strokeStyle=l,o.lineWidth=d,o.setLineDash&&(o.setLineDash(e.borderDash||[]),o.lineDashOffset=e.borderDashOffset||0),o.beginPath(),r)o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI);else{a=t.getPointPosition(0,i),o.moveTo(a.x,a.y);for(var u=1;u<s;u++)a=t.getPointPosition(u,i),o.lineTo(a.x,a.y)}o.closePath(),o.stroke(),o.restore()}}(t,i,l,s),n.display){var d=Pi(n.fontColor,st.global.defaultFontColor);if(a.font=r.string,a.save(),a.translate(t.xCenter,t.yCenter),a.rotate(o),n.showLabelBackdrop){var u=a.measureText(e).width;a.fillStyle=n.backdropColor,a.fillRect(-u/2-n.backdropPaddingX,-l-r.size/2-n.backdropPaddingY,u+2*n.backdropPaddingX,r.size+2*n.backdropPaddingY)}a.textAlign="center",a.textBaseline="middle",a.fillStyle=d,a.fillText(e,0,-l),a.restore()}}})}}}),Wi=Di;Ni._defaults=Wi;var Vi=ut.valueOrDefault,Ei=Number.MIN_SAFE_INTEGER||-9007199254740991,Hi=Number.MAX_SAFE_INTEGER||9007199254740991,ji={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},qi=Object.keys(ji);function Yi(t,e){return t-e}function Ui(t){var e,i,n,a={},o=[];for(e=0,i=t.length;e<i;++e)a[n=t[e]]||(a[n]=!0,o.push(n));return o}function Xi(t,e,i,n){var a=function(t,e,i){for(var n,a,o,r=0,s=t.length-1;r>=0&&r<=s;){if(a=t[(n=r+s>>1)-1]||null,o=t[n],!a)return{lo:null,hi:o};if(o[e]<i)r=n+1;else{if(!(a[e]>i))return{lo:a,hi:o};s=n-1}}return{lo:o,hi:null}}(t,e,i),o=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-o[e],l=s?(i-o[e])/s:0,d=(r[n]-o[n])*l;return o[n]+d}function Ki(t,e){var i=t._adapter,n=t.options.time,a=n.parser,o=a||n.format,r=e;return"function"==typeof a&&(r=a(r)),ut.isFinite(r)||(r="string"==typeof o?i.parse(r,o):i.parse(r)),null!==r?+r:(a||"function"!=typeof o||(r=o(e),ut.isFinite(r)||(r=i.parse(r))),r)}function Gi(t,e){if(ut.isNullOrUndef(e))return null;var i=t.options.time,n=Ki(t,t.getRightValue(e));return null===n?n:(i.round&&(n=+t._adapter.startOf(n,i.round)),n)}function Zi(t){for(var e=qi.indexOf(t)+1,i=qi.length;e<i;++e)if(ji[qi[e]].common)return qi[e]}function $i(t,e,i,n){var a,o=t._adapter,r=t.options,s=r.time,l=s.unit||function(t,e,i,n){var a,o,r,s=qi.length;for(a=qi.indexOf(t);a<s-1;++a)if(r=(o=ji[qi[a]]).steps?o.steps[o.steps.length-1]:Hi,o.common&&Math.ceil((i-e)/(r*o.size))<=n)return qi[a];return qi[s-1]}(s.minUnit,e,i,n),d=Zi(l),u=Vi(s.stepSize,s.unitStepSize),h="week"===l&&s.isoWeekday,c=r.ticks.major.enabled,f=ji[l],g=e,p=i,m=[];for(u||(u=function(t,e,i,n){var a,o,r,s=e-t,l=ji[i],d=l.size,u=l.steps;if(!u)return Math.ceil(s/(n*d));for(a=0,o=u.length;a<o&&(r=u[a],!(Math.ceil(s/(d*r))<=n));++a);return r}(e,i,l,n)),h&&(g=+o.startOf(g,"isoWeek",h),p=+o.startOf(p,"isoWeek",h)),g=+o.startOf(g,h?"day":l),(p=+o.startOf(p,h?"day":l))<i&&(p=+o.add(p,1,l)),a=g,c&&d&&!h&&!s.round&&(a=+o.startOf(a,d),a=+o.add(a,~~((g-a)/(f.size*u))*u,l));a<p;a=+o.add(a,u,l))m.push(+a);return m.push(+a),m}var Ji=fi.extend({initialize:function(){this.mergeTicksOptions(),fi.prototype.initialize.call(this)},update:function(){var t=this.options,e=t.time||(t.time={}),i=this._adapter=new si._date(t.adapters.date);return e.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),ut.mergeIf(e.displayFormats,i.formats()),fi.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),fi.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,i,n,a,o,r=this,s=r.chart,l=r._adapter,d=r.options.time,u=d.unit||"day",h=Hi,c=Ei,f=[],g=[],p=[],m=s.data.labels||[];for(t=0,i=m.length;t<i;++t)p.push(Gi(r,m[t]));for(t=0,i=(s.data.datasets||[]).length;t<i;++t)if(s.isDatasetVisible(t))if(a=s.data.datasets[t].data,ut.isObject(a[0]))for(g[t]=[],e=0,n=a.length;e<n;++e)o=Gi(r,a[e]),f.push(o),g[t][e]=o;else{for(e=0,n=p.length;e<n;++e)f.push(p[e]);g[t]=p.slice(0)}else g[t]=[];p.length&&(p=Ui(p).sort(Yi),h=Math.min(h,p[0]),c=Math.max(c,p[p.length-1])),f.length&&(f=Ui(f).sort(Yi),h=Math.min(h,f[0]),c=Math.max(c,f[f.length-1])),h=Gi(r,d.min)||h,c=Gi(r,d.max)||c,h=h===Hi?+l.startOf(Date.now(),u):h,c=c===Ei?+l.endOf(Date.now(),u)+1:c,r.min=Math.min(h,c),r.max=Math.max(h+1,c),r._horizontal=r.isHorizontal(),r._table=[],r._timestamps={data:f,datasets:g,labels:p}},buildTicks:function(){var t,e,i,n=this,a=n.min,o=n.max,r=n.options,s=r.time,l=[],d=[];switch(r.ticks.source){case"data":l=n._timestamps.data;break;case"labels":l=n._timestamps.labels;break;case"auto":default:l=$i(n,a,o,n.getLabelCapacity(a))}for("ticks"===r.bounds&&l.length&&(a=l[0],o=l[l.length-1]),a=Gi(n,s.min)||a,o=Gi(n,s.max)||o,t=0,e=l.length;t<e;++t)(i=l[t])>=a&&i<=o&&d.push(i);return n.min=a,n.max=o,n._unit=s.unit||function(t,e,i,n,a){var o,r;for(o=qi.length-1;o>=qi.indexOf(i);o--)if(r=qi[o],ji[r].common&&t._adapter.diff(a,n,r)>=e.length)return r;return qi[i?qi.indexOf(i):0]}(n,d,s.minUnit,n.min,n.max),n._majorUnit=Zi(n._unit),n._table=function(t,e,i,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:i,pos:1}];var a,o,r,s,l,d=[],u=[e];for(a=0,o=t.length;a<o;++a)(s=t[a])>e&&s<i&&u.push(s);for(u.push(i),a=0,o=u.length;a<o;++a)l=u[a+1],r=u[a-1],s=u[a],void 0!==r&&void 0!==l&&Math.round((l+r)/2)===s||d.push({time:s,pos:a/(o-1)});return d}(n._timestamps.data,a,o,r.distribution),n._offsets=function(t,e,i,n,a){var o,r,s=0,l=0;return a.offset&&e.length&&(a.time.min||(o=Xi(t,"time",e[0],"pos"),s=1===e.length?1-o:(Xi(t,"time",e[1],"pos")-o)/2),a.time.max||(r=Xi(t,"time",e[e.length-1],"pos"),l=1===e.length?r:(r-Xi(t,"time",e[e.length-2],"pos"))/2)),{start:s,end:l}}(n._table,d,0,0,r),r.ticks.reverse&&d.reverse(),function(t,e,i){var n,a,o,r,s=[];for(n=0,a=e.length;n<a;++n)o=e[n],r=!!i&&o===+t._adapter.startOf(o,i),s.push({value:o,major:r});return s}(n,d,n._majorUnit)},getLabelForIndex:function(t,e){var i=this,n=i._adapter,a=i.chart.data,o=i.options.time,r=a.labels&&t<a.labels.length?a.labels[t]:"",s=a.datasets[e].data[t];return ut.isObject(s)&&(r=i.getRightValue(s)),o.tooltipFormat?n.format(Ki(i,r),o.tooltipFormat):"string"==typeof r?r:n.format(Ki(i,r),o.displayFormats.datetime)},tickFormatFunction:function(t,e,i,n){var a=this._adapter,o=this.options,r=o.time.displayFormats,s=r[this._unit],l=this._majorUnit,d=r[l],u=+a.startOf(t,l),h=o.ticks.major,c=h.enabled&&l&&d&&t===u,f=a.format(t,n||(c?d:s)),g=c?h:o.ticks.minor,p=Vi(g.callback,g.userCallback);return p?p(f,e,i):f},convertTicksToLabels:function(t){var e,i,n=[];for(e=0,i=t.length;e<i;++e)n.push(this.tickFormatFunction(t[e].value,e,t));return n},getPixelForOffset:function(t){var e=this,i=e.options.ticks.reverse,n=e._horizontal?e.width:e.height,a=e._horizontal?i?e.right:e.left:i?e.bottom:e.top,o=Xi(e._table,"time",t,"pos"),r=n*(e._offsets.start+o)/(e._offsets.start+1+e._offsets.end);return i?a-r:a+r},getPixelForValue:function(t,e,i){var n=null;if(void 0!==e&&void 0!==i&&(n=this._timestamps.datasets[i][e]),null===n&&(n=Gi(this,t)),null!==n)return this.getPixelForOffset(n)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,i=e._horizontal?e.width:e.height,n=e._horizontal?e.left:e.top,a=(i?(t-n)/i:0)*(e._offsets.start+1+e._offsets.start)-e._offsets.end,o=Xi(e._table,"pos",a,"time");return e._adapter._create(o)},getLabelWidth:function(t){var e=this.options.ticks,i=this.ctx.measureText(t).width,n=ut.toRadians(e.maxRotation),a=Math.cos(n),o=Math.sin(n);return i*a+Vi(e.fontSize,st.global.defaultFontSize)*o},getLabelCapacity:function(t){var e=this,i=e.options.time.displayFormats.millisecond,n=e.tickFormatFunction(t,0,[],i),a=e.getLabelWidth(n),o=e.isHorizontal()?e.width:e.height,r=Math.floor(o/a);return r>0?r:1}}),Qi={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};Ji._defaults=Qi;var tn={category:gi,linear:yi,logarithmic:Ci,radialLinear:Ni,time:Ji},en={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};si._date.override("function"==typeof t?{_id:"moment",formats:function(){return en},parse:function(e,i){return"string"==typeof e&&"string"==typeof i?e=t(e,i):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,i){return t(e).format(i)},add:function(e,i,n){return t(e).add(i,n).valueOf()},diff:function(e,i,n){return t.duration(t(e).diff(t(i))).as(n)},startOf:function(e,i,n){return e=t(e),"isoWeek"===i?e.isoWeekday(n).valueOf():e.startOf(i).valueOf()},endOf:function(e,i){return t(e).endOf(i).valueOf()},_create:function(e){return t(e)}}:{}),st._set("global",{plugins:{filler:{propagate:!0}}});var nn={dataset:function(t){var e=t.fill,i=t.chart,n=i.getDatasetMeta(e),a=n&&i.isDatasetVisible(e)&&n.dataset._children||[],o=a.length||0;return o?function(t,e){return e<o&&a[e]._view||null}:null},boundary:function(t){var e=t.boundary,i=e?e.x:null,n=e?e.y:null;return function(t){return{x:null===i?t.x:i,y:null===n?t.y:n}}}};function an(t,e,i){var n,a=t._model||{},o=a.fill;if(void 0===o&&(o=!!a.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(n=parseFloat(o,10),isFinite(n)&&Math.floor(n)===n)return"-"!==o[0]&&"+"!==o[0]||(n=e+n),!(n===e||n<0||n>=i)&&n;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function on(t){var e,i=t.el._model||{},n=t.el._scale||{},a=t.fill,o=null;if(isFinite(a))return null;if("start"===a?o=void 0===i.scaleBottom?n.bottom:i.scaleBottom:"end"===a?o=void 0===i.scaleTop?n.top:i.scaleTop:void 0!==i.scaleZero?o=i.scaleZero:n.getBasePosition?o=n.getBasePosition():n.getBasePixel&&(o=n.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(ut.isFinite(o))return{x:(e=n.isHorizontal())?o:null,y:e?null:o}}return null}function rn(t,e,i){var n,a=t[e].fill,o=[e];if(!i)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(n=t[a]))return!1;if(n.visible)return a;o.push(a),a=n.fill}return!1}function sn(t){var e=t.fill,i="dataset";return!1===e?null:(isFinite(e)||(i="boundary"),nn[i](t))}function ln(t){return t&&!t.skip}function dn(t,e,i,n,a){var o;if(n&&a){for(t.moveTo(e[0].x,e[0].y),o=1;o<n;++o)ut.canvas.lineTo(t,e[o-1],e[o]);for(t.lineTo(i[a-1].x,i[a-1].y),o=a-1;o>0;--o)ut.canvas.lineTo(t,i[o],i[o-1],!0)}}var un={id:"filler",afterDatasetsUpdate:function(t,e){var i,n,a,o,r=(t.data.datasets||[]).length,s=e.propagate,l=[];for(n=0;n<r;++n)o=null,(a=(i=t.getDatasetMeta(n)).dataset)&&a._model&&a instanceof Wt.Line&&(o={visible:t.isDatasetVisible(n),fill:an(a,n,r),chart:t,el:a}),i.$filler=o,l.push(o);for(n=0;n<r;++n)(o=l[n])&&(o.fill=rn(l,n,s),o.boundary=on(o),o.mapper=sn(o))},beforeDatasetDraw:function(t,e){var i=e.meta.$filler;if(i){var n=t.ctx,a=i.el,o=a._view,r=a._children||[],s=i.mapper,l=o.backgroundColor||st.global.defaultColor;s&&l&&r.length&&(ut.canvas.clipArea(n,t.chartArea),function(t,e,i,n,a,o){var r,s,l,d,u,h,c,f=e.length,g=n.spanGaps,p=[],m=[],v=0,b=0;for(t.beginPath(),r=0,s=f+!!o;r<s;++r)u=i(d=e[l=r%f]._view,l,n),h=ln(d),c=ln(u),h&&c?(v=p.push(d),b=m.push(u)):v&&b&&(g?(h&&p.push(d),c&&m.push(u)):(dn(t,p,m,v,b),v=b=0,p=[],m=[]));dn(t,p,m,v,b),t.closePath(),t.fillStyle=a,t.fill()}(n,r,s,o,l,a._loop),ut.canvas.unclipArea(n))}}},hn=ut.noop,cn=ut.valueOrDefault;function fn(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}st._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,a=n.getDatasetMeta(i);a.hidden=null===a.hidden?!n.data.datasets[i].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return ut.isArray(e.datasets)?e.datasets.map(function(e,i){return{text:e.label,fillStyle:ut.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(i),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:i}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var i=0;i<t.data.datasets.length;i++)e.push('<li><span style="background-color:'+t.data.datasets[i].backgroundColor+'"></span>'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var gn=pt.extend({initialize:function(t){ut.extend(this,t),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:hn,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:hn,beforeSetDimensions:hn,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:hn,beforeBuildLabels:hn,buildLabels:function(){var t=this,e=t.options.labels||{},i=ut.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(i=i.filter(function(i){return e.filter(i,t.chart.data)})),t.options.reverse&&i.reverse(),t.legendItems=i},afterBuildLabels:hn,beforeFit:hn,fit:function(){var t=this,e=t.options,i=e.labels,n=e.display,a=t.ctx,o=ut.options._parseFont(i),r=o.size,s=t.legendHitBoxes=[],l=t.minSize,d=t.isHorizontal();if(d?(l.width=t.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=t.maxHeight),n)if(a.font=o.string,d){var u=t.lineWidths=[0],h=0;a.textAlign="left",a.textBaseline="top",ut.each(t.legendItems,function(t,e){var n=fn(i,r)+r/2+a.measureText(t.text).width;(0===e||u[u.length-1]+n+i.padding>l.width)&&(h+=r+i.padding,u[u.length-(e>0?0:1)]=i.padding),s[e]={left:0,top:0,width:n,height:r},u[u.length-1]+=n+i.padding}),l.height+=h}else{var c=i.padding,f=t.columnWidths=[],g=i.padding,p=0,m=0,v=r+c;ut.each(t.legendItems,function(t,e){var n=fn(i,r)+r/2+a.measureText(t.text).width;e>0&&m+v>l.height-c&&(g+=p+i.padding,f.push(p),p=0,m=0),p=Math.max(p,n),m+=v,s[e]={left:0,top:0,width:n,height:r}}),g+=p,f.push(p),l.width+=g}t.width=l.width,t.height=l.height},afterFit:hn,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,i=e.labels,n=st.global,a=n.defaultColor,o=n.elements.line,r=t.width,s=t.lineWidths;if(e.display){var l,d=t.ctx,u=cn(i.fontColor,n.defaultFontColor),h=ut.options._parseFont(i),c=h.size;d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=u,d.fillStyle=u,d.font=h.string;var f=fn(i,c),g=t.legendHitBoxes,p=t.isHorizontal();l=p?{x:t.left+(r-s[0])/2+i.padding,y:t.top+i.padding,line:0}:{x:t.left+i.padding,y:t.top+i.padding,line:0};var m=c+i.padding;ut.each(t.legendItems,function(n,u){var h=d.measureText(n.text).width,v=f+c/2+h,b=l.x,x=l.y;p?u>0&&b+v+i.padding>t.left+t.minSize.width&&(x=l.y+=m,l.line++,b=l.x=t.left+(r-s[l.line])/2+i.padding):u>0&&x+m>t.top+t.minSize.height&&(b=l.x=b+t.columnWidths[l.line]+i.padding,x=l.y=t.top+i.padding,l.line++),function(t,i,n){if(!(isNaN(f)||f<=0)){d.save();var r=cn(n.lineWidth,o.borderWidth);if(d.fillStyle=cn(n.fillStyle,a),d.lineCap=cn(n.lineCap,o.borderCapStyle),d.lineDashOffset=cn(n.lineDashOffset,o.borderDashOffset),d.lineJoin=cn(n.lineJoin,o.borderJoinStyle),d.lineWidth=r,d.strokeStyle=cn(n.strokeStyle,a),d.setLineDash&&d.setLineDash(cn(n.lineDash,o.borderDash)),e.labels&&e.labels.usePointStyle){var s=f*Math.SQRT2/2,l=t+f/2,u=i+c/2;ut.canvas.drawPoint(d,n.pointStyle,s,l,u)}else 0!==r&&d.strokeRect(t,i,f,c),d.fillRect(t,i,f,c);d.restore()}}(b,x,n),g[u].left=b,g[u].top=x,function(t,e,i,n){var a=c/2,o=f+a+t,r=e+a;d.fillText(i.text,o,r),i.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(o,r),d.lineTo(o+n,r),d.stroke())}(b,x,n,h),p?l.x+=v+i.padding:l.y+=m})}},_getLegendItemAt:function(t,e){var i,n,a,o=this;if(t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom)for(a=o.legendHitBoxes,i=0;i<a.length;++i)if(t>=(n=a[i]).left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return o.legendItems[i];return null},handleEvent:function(t){var e,i=this,n=i.options,a="mouseup"===t.type?"click":t.type;if("mousemove"===a){if(!n.onHover&&!n.onLeave)return}else{if("click"!==a)return;if(!n.onClick)return}e=i._getLegendItemAt(t.x,t.y),"click"===a?e&&n.onClick&&n.onClick.call(i,t.native,e):(n.onLeave&&e!==i._hoveredItem&&(i._hoveredItem&&n.onLeave.call(i,t.native,i._hoveredItem),i._hoveredItem=e),n.onHover&&e&&n.onHover.call(i,t.native,e))}});function pn(t,e){var i=new gn({ctx:t.ctx,options:e,chart:t});ke.configure(t,i,e),ke.addBox(t,i),t.legend=i}var mn={id:"legend",_element:gn,beforeInit:function(t){var e=t.options.legend;e&&pn(t,e)},beforeUpdate:function(t){var e=t.options.legend,i=t.legend;e?(ut.mergeIf(e,st.global.legend),i?(ke.configure(t,i,e),i.options=e):pn(t,e)):i&&(ke.removeBox(t,i),delete t.legend)},afterEvent:function(t,e){var i=t.legend;i&&i.handleEvent(e)}},vn=ut.noop;st._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var bn=pt.extend({initialize:function(t){ut.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:vn,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:vn,beforeSetDimensions:vn,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:vn,beforeBuildLabels:vn,buildLabels:vn,afterBuildLabels:vn,beforeFit:vn,fit:function(){var t=this,e=t.options,i=e.display,n=t.minSize,a=ut.isArray(e.text)?e.text.length:1,o=ut.options._parseFont(e),r=i?a*o.lineHeight+2*e.padding:0;t.isHorizontal()?(n.width=t.maxWidth,n.height=r):(n.width=r,n.height=t.maxHeight),t.width=n.width,t.height=n.height},afterFit:vn,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,i=t.options;if(i.display){var n,a,o,r=ut.options._parseFont(i),s=r.lineHeight,l=s/2+i.padding,d=0,u=t.top,h=t.left,c=t.bottom,f=t.right;e.fillStyle=ut.valueOrDefault(i.fontColor,st.global.defaultFontColor),e.font=r.string,t.isHorizontal()?(a=h+(f-h)/2,o=u+l,n=f-h):(a="left"===i.position?h+l:f-l,o=u+(c-u)/2,n=c-u,d=Math.PI*("left"===i.position?-.5:.5)),e.save(),e.translate(a,o),e.rotate(d),e.textAlign="center",e.textBaseline="middle";var g=i.text;if(ut.isArray(g))for(var p=0,m=0;m<g.length;++m)e.fillText(g[m],0,p,n),p+=s;else e.fillText(g,0,0,n);e.restore()}}});function xn(t,e){var i=new bn({ctx:t.ctx,options:e,chart:t});ke.configure(t,i,e),ke.addBox(t,i),t.titleBlock=i}var yn={},kn=un,wn=mn,Mn={id:"title",_element:bn,beforeInit:function(t){var e=t.options.title;e&&xn(t,e)},beforeUpdate:function(t){var e=t.options.title,i=t.titleBlock;e?(ut.mergeIf(e,st.global.title),i?(ke.configure(t,i,e),i.options=e):xn(t,e)):i&&(ke.removeBox(t,i),delete t.titleBlock)}};for(var _n in yn.filler=kn,yn.legend=wn,yn.title=Mn,ai.helpers=ut,function(){function t(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}function e(t){return null!=t&&"none"!==t}function i(i,n,a){var o=document.defaultView,r=ut._getParentNode(i),s=o.getComputedStyle(i)[n],l=o.getComputedStyle(r)[n],d=e(s),u=e(l),h=Number.POSITIVE_INFINITY;return d||u?Math.min(d?t(s,i,a):h,u?t(l,r,a):h):"none"}ut.where=function(t,e){if(ut.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return ut.each(t,function(t){e(t)&&i.push(t)}),i},ut.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,a=t.length;n<a;++n)if(e.call(i,t[n],n,t))return n;return-1},ut.findNextWhere=function(t,e,i){ut.isNullOrUndef(i)&&(i=-1);for(var n=i+1;n<t.length;n++){var a=t[n];if(e(a))return a}},ut.findPreviousWhere=function(t,e,i){ut.isNullOrUndef(i)&&(i=t.length);for(var n=i-1;n>=0;n--){var a=t[n];if(e(a))return a}},ut.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ut.almostEquals=function(t,e,i){return Math.abs(t-e)<i},ut.almostWhole=function(t,e){var i=Math.round(t);return i-e<t&&i+e>t},ut.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},ut.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},ut.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},ut.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,i=Math.round(e);return t===Math.pow(10,i)?i:e},ut.toRadians=function(t){return t*(Math.PI/180)},ut.toDegrees=function(t){return t*(180/Math.PI)},ut._decimalPlaces=function(t){if(ut.isFinite(t)){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}},ut.getAngleFromPoint=function(t,e){var i=e.x-t.x,n=e.y-t.y,a=Math.sqrt(i*i+n*n),o=Math.atan2(n,i);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},ut.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ut.aliasPixel=function(t){return t%2==0?0:.5},ut._alignPixel=function(t,e,i){var n=t.currentDevicePixelRatio,a=i/2;return Math.round((e-a)*n)/n+a},ut.splineCurve=function(t,e,i,n){var a=t.skip?e:t,o=e,r=i.skip?e:i,s=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),d=s/(s+l),u=l/(s+l),h=n*(d=isNaN(d)?0:d),c=n*(u=isNaN(u)?0:u);return{previous:{x:o.x-h*(r.x-a.x),y:o.y-h*(r.y-a.y)},next:{x:o.x+c*(r.x-a.x),y:o.y+c*(r.y-a.y)}}},ut.EPSILON=Number.EPSILON||1e-14,ut.splineCurveMonotone=function(t){var e,i,n,a,o,r,s,l,d,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),h=u.length;for(e=0;e<h;++e)if(!(n=u[e]).model.skip){if(i=e>0?u[e-1]:null,(a=e<h-1?u[e+1]:null)&&!a.model.skip){var c=a.model.x-n.model.x;n.deltaK=0!==c?(a.model.y-n.model.y)/c:0}!i||i.model.skip?n.mK=n.deltaK:!a||a.model.skip?n.mK=i.deltaK:this.sign(i.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(i.deltaK+n.deltaK)/2}for(e=0;e<h-1;++e)n=u[e],a=u[e+1],n.model.skip||a.model.skip||(ut.almostEquals(n.deltaK,0,this.EPSILON)?n.mK=a.mK=0:(o=n.mK/n.deltaK,r=a.mK/n.deltaK,(l=Math.pow(o,2)+Math.pow(r,2))<=9||(s=3/Math.sqrt(l),n.mK=o*s*n.deltaK,a.mK=r*s*n.deltaK)));for(e=0;e<h;++e)(n=u[e]).model.skip||(i=e>0?u[e-1]:null,a=e<h-1?u[e+1]:null,i&&!i.model.skip&&(d=(n.model.x-i.model.x)/3,n.model.controlPointPreviousX=n.model.x-d,n.model.controlPointPreviousY=n.model.y-d*n.mK),a&&!a.model.skip&&(d=(a.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+d,n.model.controlPointNextY=n.model.y+d*n.mK))},ut.nextItem=function(t,e,i){return i?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ut.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ut.niceNum=function(t,e){var i=Math.floor(ut.log10(t)),n=t/Math.pow(10,i);return(e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,i)},ut.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},ut.getRelativePosition=function(t,e){var i,n,a=t.originalEvent||t,o=t.target||t.srcElement,r=o.getBoundingClientRect(),s=a.touches;s&&s.length>0?(i=s[0].clientX,n=s[0].clientY):(i=a.clientX,n=a.clientY);var l=parseFloat(ut.getStyle(o,"padding-left")),d=parseFloat(ut.getStyle(o,"padding-top")),u=parseFloat(ut.getStyle(o,"padding-right")),h=parseFloat(ut.getStyle(o,"padding-bottom")),c=r.right-r.left-l-u,f=r.bottom-r.top-d-h;return{x:i=Math.round((i-r.left-l)/c*o.width/e.currentDevicePixelRatio),y:n=Math.round((n-r.top-d)/f*o.height/e.currentDevicePixelRatio)}},ut.getConstraintWidth=function(t){return i(t,"max-width","clientWidth")},ut.getConstraintHeight=function(t){return i(t,"max-height","clientHeight")},ut._calculatePadding=function(t,e,i){return(e=ut.getStyle(t,e)).indexOf("%")>-1?i*parseInt(e,10)/100:parseInt(e,10)},ut._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ut.getMaximumWidth=function(t){var e=ut._getParentNode(t);if(!e)return t.clientWidth;var i=e.clientWidth,n=i-ut._calculatePadding(e,"padding-left",i)-ut._calculatePadding(e,"padding-right",i),a=ut.getConstraintWidth(t);return isNaN(a)?n:Math.min(n,a)},ut.getMaximumHeight=function(t){var e=ut._getParentNode(t);if(!e)return t.clientHeight;var i=e.clientHeight,n=i-ut._calculatePadding(e,"padding-top",i)-ut._calculatePadding(e,"padding-bottom",i),a=ut.getConstraintHeight(t);return isNaN(a)?n:Math.min(n,a)},ut.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ut.retinaScale=function(t,e){var i=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==i){var n=t.canvas,a=t.height,o=t.width;n.height=a*i,n.width=o*i,t.ctx.scale(i,i),n.style.height||n.style.width||(n.style.height=a+"px",n.style.width=o+"px")}},ut.fontString=function(t,e,i){return e+" "+t+"px "+i},ut.longestText=function(t,e,i,n){var a=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(a=n.data={},o=n.garbageCollect=[],n.font=e),t.font=e;var r=0;ut.each(i,function(e){null!=e&&!0!==ut.isArray(e)?r=ut.measureText(t,a,o,r,e):ut.isArray(e)&&ut.each(e,function(e){null==e||ut.isArray(e)||(r=ut.measureText(t,a,o,r,e))})});var s=o.length/2;if(s>i.length){for(var l=0;l<s;l++)delete a[o[l]];o.splice(0,s)}return r},ut.measureText=function(t,e,i,n,a){var o=e[a];return o||(o=e[a]=t.measureText(a).width,i.push(a)),o>n&&(n=o),n},ut.numberOfLabelLines=function(t){var e=1;return ut.each(t,function(t){ut.isArray(t)&&t.length>e&&(e=t.length)}),e},ut.color=X?function(t){return t instanceof CanvasGradient&&(t=st.global.defaultColor),X(t)}:function(t){return console.error("Color.js not found!"),t},ut.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ut.color(t).saturate(.5).darken(.1).rgbString()}}(),ai._adapters=si,ai.Animation=vt,ai.animationService=bt,ai.controllers=ue,ai.DatasetController=Mt,ai.defaults=st,ai.Element=pt,ai.elements=Wt,ai.Interaction=ve,ai.layouts=ke,ai.platform=Ve,ai.plugins=Ee,ai.Scale=fi,ai.scaleService=He,ai.Ticks=li,ai.Tooltip=Je,ai.helpers.each(tn,function(t,e){ai.scaleService.registerScaleType(e,t,t._defaults)}),yn)yn.hasOwnProperty(_n)&&ai.plugins.register(yn[_n]);ai.platform.initialize();var Cn=ai;return"undefined"!=typeof window&&(window.Chart=ai),ai.Chart=ai,ai.Legend=yn.legend._element,ai.Title=yn.title._element,ai.pluginService=ai.plugins,ai.PluginBase=ai.Element.extend({}),ai.canvasHelpers=ai.helpers.canvas,ai.layoutService=ai.layouts,ai.LinearScaleBase=bi,ai.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(t){ai[t]=function(e,i){return new ai(e,ai.helpers.merge(i||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}}),Cn});
js/chartist.min.js DELETED
@@ -1,10 +0,0 @@
1
- /* Chartist.js 0.11.0
2
- * Copyright © 2017 Gion Kunz
3
- * Free to use under either the WTFPL license or the MIT license.
4
- * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL
5
- * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT
6
- */
7
-
8
- !function(a,b){"function"==typeof define&&define.amd?define("Chartist",[],function(){return a.Chartist=b()}):"object"==typeof module&&module.exports?module.exports=b():a.Chartist=b()}(this,function(){var a={version:"0.11.0"};return function(a,b,c){"use strict";c.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},c.noop=function(a){return a},c.alphaNumerate=function(a){return String.fromCharCode(97+a%26)},c.extend=function(a){var b,d,e;for(a=a||{},b=1;b<arguments.length;b++){d=arguments[b];for(var f in d)e=d[f],"object"!=typeof e||null===e||e instanceof Array?a[f]=e:a[f]=c.extend(a[f],e)}return a},c.replaceAll=function(a,b,c){return a.replace(new RegExp(b,"g"),c)},c.ensureUnit=function(a,b){return"number"==typeof a&&(a+=b),a},c.quantity=function(a){if("string"==typeof a){var b=/^(\d+)\s*(.*)$/g.exec(a);return{value:+b[1],unit:b[2]||void 0}}return{value:a}},c.querySelector=function(a){return a instanceof Node?a:b.querySelector(a)},c.times=function(a){return Array.apply(null,new Array(a))},c.sum=function(a,b){return a+(b?b:0)},c.mapMultiply=function(a){return function(b){return b*a}},c.mapAdd=function(a){return function(b){return b+a}},c.serialMap=function(a,b){var d=[],e=Math.max.apply(null,a.map(function(a){return a.length}));return c.times(e).forEach(function(c,e){var f=a.map(function(a){return a[e]});d[e]=b.apply(null,f)}),d},c.roundWithPrecision=function(a,b){var d=Math.pow(10,b||c.precision);return Math.round(a*d)/d},c.precision=8,c.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},c.serialize=function(a){return null===a||void 0===a?a:("number"==typeof a?a=""+a:"object"==typeof a&&(a=JSON.stringify({data:a})),Object.keys(c.escapingMap).reduce(function(a,b){return c.replaceAll(a,b,c.escapingMap[b])},a))},c.deserialize=function(a){if("string"!=typeof a)return a;a=Object.keys(c.escapingMap).reduce(function(a,b){return c.replaceAll(a,c.escapingMap[b],b)},a);try{a=JSON.parse(a),a=void 0!==a.data?a.data:a}catch(b){}return a},c.createSvg=function(a,b,d,e){var f;return b=b||"100%",d=d||"100%",Array.prototype.slice.call(a.querySelectorAll("svg")).filter(function(a){return a.getAttributeNS(c.namespaces.xmlns,"ct")}).forEach(function(b){a.removeChild(b)}),f=new c.Svg("svg").attr({width:b,height:d}).addClass(e),f._node.style.width=b,f._node.style.height=d,a.appendChild(f._node),f},c.normalizeData=function(a,b,d){var e,f={raw:a,normalized:{}};return f.normalized.series=c.getDataArray({series:a.series||[]},b,d),e=f.normalized.series.every(function(a){return a instanceof Array})?Math.max.apply(null,f.normalized.series.map(function(a){return a.length})):f.normalized.series.length,f.normalized.labels=(a.labels||[]).slice(),Array.prototype.push.apply(f.normalized.labels,c.times(Math.max(0,e-f.normalized.labels.length)).map(function(){return""})),b&&c.reverseData(f.normalized),f},c.safeHasProperty=function(a,b){return null!==a&&"object"==typeof a&&a.hasOwnProperty(b)},c.isDataHoleValue=function(a){return null===a||void 0===a||"number"==typeof a&&isNaN(a)},c.reverseData=function(a){a.labels.reverse(),a.series.reverse();for(var b=0;b<a.series.length;b++)"object"==typeof a.series[b]&&void 0!==a.series[b].data?a.series[b].data.reverse():a.series[b]instanceof Array&&a.series[b].reverse()},c.getDataArray=function(a,b,d){function e(a){if(c.safeHasProperty(a,"value"))return e(a.value);if(c.safeHasProperty(a,"data"))return e(a.data);if(a instanceof Array)return a.map(e);if(!c.isDataHoleValue(a)){if(d){var b={};return"string"==typeof d?b[d]=c.getNumberOrUndefined(a):b.y=c.getNumberOrUndefined(a),b.x=a.hasOwnProperty("x")?c.getNumberOrUndefined(a.x):b.x,b.y=a.hasOwnProperty("y")?c.getNumberOrUndefined(a.y):b.y,b}return c.getNumberOrUndefined(a)}}return a.series.map(e)},c.normalizePadding=function(a,b){return b=b||0,"number"==typeof a?{top:a,right:a,bottom:a,left:a}:{top:"number"==typeof a.top?a.top:b,right:"number"==typeof a.right?a.right:b,bottom:"number"==typeof a.bottom?a.bottom:b,left:"number"==typeof a.left?a.left:b}},c.getMetaData=function(a,b){var c=a.data?a.data[b]:a[b];return c?c.meta:void 0},c.orderOfMagnitude=function(a){return Math.floor(Math.log(Math.abs(a))/Math.LN10)},c.projectLength=function(a,b,c){return b/c.range*a},c.getAvailableHeight=function(a,b){return Math.max((c.quantity(b.height).value||a.height())-(b.chartPadding.top+b.chartPadding.bottom)-b.axisX.offset,0)},c.getHighLow=function(a,b,d){function e(a){if(void 0!==a)if(a instanceof Array)for(var b=0;b<a.length;b++)e(a[b]);else{var c=d?+a[d]:+a;g&&c>f.high&&(f.high=c),h&&c<f.low&&(f.low=c)}}b=c.extend({},b,d?b["axis"+d.toUpperCase()]:{});var f={high:void 0===b.high?-Number.MAX_VALUE:+b.high,low:void 0===b.low?Number.MAX_VALUE:+b.low},g=void 0===b.high,h=void 0===b.low;return(g||h)&&e(a),(b.referenceValue||0===b.referenceValue)&&(f.high=Math.max(b.referenceValue,f.high),f.low=Math.min(b.referenceValue,f.low)),f.high<=f.low&&(0===f.low?f.high=1:f.low<0?f.high=0:f.high>0?f.low=0:(f.high=1,f.low=0)),f},c.isNumeric=function(a){return null!==a&&isFinite(a)},c.isFalseyButZero=function(a){return!a&&0!==a},c.getNumberOrUndefined=function(a){return c.isNumeric(a)?+a:void 0},c.isMultiValue=function(a){return"object"==typeof a&&("x"in a||"y"in a)},c.getMultiValue=function(a,b){return c.isMultiValue(a)?c.getNumberOrUndefined(a[b||"y"]):c.getNumberOrUndefined(a)},c.rho=function(a){function b(a,c){return a%c===0?c:b(c,a%c)}function c(a){return a*a+1}if(1===a)return a;var d,e=2,f=2;if(a%2===0)return 2;do e=c(e)%a,f=c(c(f))%a,d=b(Math.abs(e-f),a);while(1===d);return d},c.getBounds=function(a,b,d,e){function f(a,b){return a===(a+=b)&&(a*=1+(b>0?o:-o)),a}var g,h,i,j=0,k={high:b.high,low:b.low};k.valueRange=k.high-k.low,k.oom=c.orderOfMagnitude(k.valueRange),k.step=Math.pow(10,k.oom),k.min=Math.floor(k.low/k.step)*k.step,k.max=Math.ceil(k.high/k.step)*k.step,k.range=k.max-k.min,k.numberOfSteps=Math.round(k.range/k.step);var l=c.projectLength(a,k.step,k),m=l<d,n=e?c.rho(k.range):0;if(e&&c.projectLength(a,1,k)>=d)k.step=1;else if(e&&n<k.step&&c.projectLength(a,n,k)>=d)k.step=n;else for(;;){if(m&&c.projectLength(a,k.step,k)<=d)k.step*=2;else{if(m||!(c.projectLength(a,k.step/2,k)>=d))break;if(k.step/=2,e&&k.step%1!==0){k.step*=2;break}}if(j++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var o=2.221e-16;for(k.step=Math.max(k.step,o),h=k.min,i=k.max;h+k.step<=k.low;)h=f(h,k.step);for(;i-k.step>=k.high;)i=f(i,-k.step);k.min=h,k.max=i,k.range=k.max-k.min;var p=[];for(g=k.min;g<=k.max;g=f(g,k.step)){var q=c.roundWithPrecision(g);q!==p[p.length-1]&&p.push(q)}return k.values=p,k},c.polarToCartesian=function(a,b,c,d){var e=(d-90)*Math.PI/180;return{x:a+c*Math.cos(e),y:b+c*Math.sin(e)}},c.createChartRect=function(a,b,d){var e=!(!b.axisX&&!b.axisY),f=e?b.axisY.offset:0,g=e?b.axisX.offset:0,h=a.width()||c.quantity(b.width).value||0,i=a.height()||c.quantity(b.height).value||0,j=c.normalizePadding(b.chartPadding,d);h=Math.max(h,f+j.left+j.right),i=Math.max(i,g+j.top+j.bottom);var k={padding:j,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return e?("start"===b.axisX.position?(k.y2=j.top+g,k.y1=Math.max(i-j.bottom,k.y2+1)):(k.y2=j.top,k.y1=Math.max(i-j.bottom-g,k.y2+1)),"start"===b.axisY.position?(k.x1=j.left+f,k.x2=Math.max(h-j.right,k.x1+1)):(k.x1=j.left,k.x2=Math.max(h-j.right-f,k.x1+1))):(k.x1=j.left,k.x2=Math.max(h-j.right,k.x1+1),k.y2=j.top,k.y1=Math.max(i-j.bottom,k.y2+1)),k},c.createGrid=function(a,b,d,e,f,g,h,i){var j={};j[d.units.pos+"1"]=a,j[d.units.pos+"2"]=a,j[d.counterUnits.pos+"1"]=e,j[d.counterUnits.pos+"2"]=e+f;var k=g.elem("line",j,h.join(" "));i.emit("draw",c.extend({type:"grid",axis:d,index:b,group:g,element:k},j))},c.createGridBackground=function(a,b,c,d){var e=a.elem("rect",{x:b.x1,y:b.y2,width:b.width(),height:b.height()},c,!0);d.emit("draw",{type:"gridBackground",group:a,element:e})},c.createLabel=function(a,d,e,f,g,h,i,j,k,l,m){var n,o={};if(o[g.units.pos]=a+i[g.units.pos],o[g.counterUnits.pos]=i[g.counterUnits.pos],o[g.units.len]=d,o[g.counterUnits.len]=Math.max(0,h-10),l){var p=b.createElement("span");p.className=k.join(" "),p.setAttribute("xmlns",c.namespaces.xhtml),p.innerText=f[e],p.style[g.units.len]=Math.round(o[g.units.len])+"px",p.style[g.counterUnits.len]=Math.round(o[g.counterUnits.len])+"px",n=j.foreignObject(p,c.extend({style:"overflow: visible;"},o))}else n=j.elem("text",o,k.join(" ")).text(f[e]);m.emit("draw",c.extend({type:"label",axis:g,index:e,group:j,element:n,text:f[e]},o))},c.getSeriesOption=function(a,b,c){if(a.name&&b.series&&b.series[a.name]){var d=b.series[a.name];return d.hasOwnProperty(c)?d[c]:b[c]}return b[c]},c.optionsProvider=function(b,d,e){function f(b){var f=h;if(h=c.extend({},j),d)for(i=0;i<d.length;i++){var g=a.matchMedia(d[i][0]);g.matches&&(h=c.extend(h,d[i][1]))}e&&b&&e.emit("optionsChanged",{previousOptions:f,currentOptions:h})}function g(){k.forEach(function(a){a.removeListener(f)})}var h,i,j=c.extend({},b),k=[];if(!a.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(d)for(i=0;i<d.length;i++){var l=a.matchMedia(d[i][0]);l.addListener(f),k.push(l)}return f(),{removeMediaQueryListeners:g,getCurrentOptions:function(){return c.extend({},h)}}},c.splitIntoSegments=function(a,b,d){var e={increasingX:!1,fillHoles:!1};d=c.extend({},e,d);for(var f=[],g=!0,h=0;h<a.length;h+=2)void 0===c.getMultiValue(b[h/2].value)?d.fillHoles||(g=!0):(d.increasingX&&h>=2&&a[h]<=a[h-2]&&(g=!0),g&&(f.push({pathCoordinates:[],valueData:[]}),g=!1),f[f.length-1].pathCoordinates.push(a[h],a[h+1]),f[f.length-1].valueData.push(b[h/2]));return f}}(window,document,a),function(a,b,c){"use strict";c.Interpolation={},c.Interpolation.none=function(a){var b={fillHoles:!1};return a=c.extend({},b,a),function(b,d){for(var e=new c.Svg.Path,f=!0,g=0;g<b.length;g+=2){var h=b[g],i=b[g+1],j=d[g/2];void 0!==c.getMultiValue(j.value)?(f?e.move(h,i,!1,j):e.line(h,i,!1,j),f=!1):a.fillHoles||(f=!0)}return e}},c.Interpolation.simple=function(a){var b={divisor:2,fillHoles:!1};a=c.extend({},b,a);var d=1/Math.max(1,a.divisor);return function(b,e){for(var f,g,h,i=new c.Svg.Path,j=0;j<b.length;j+=2){var k=b[j],l=b[j+1],m=(k-f)*d,n=e[j/2];void 0!==n.value?(void 0===h?i.move(k,l,!1,n):i.curve(f+m,g,k-m,l,k,l,!1,n),f=k,g=l,h=n):a.fillHoles||(f=k=h=void 0)}return i}},c.Interpolation.cardinal=function(a){var b={tension:1,fillHoles:!1};a=c.extend({},b,a);var d=Math.min(1,Math.max(0,a.tension)),e=1-d;return function f(b,g){var h=c.splitIntoSegments(b,g,{fillHoles:a.fillHoles});if(h.length){if(h.length>1){var i=[];return h.forEach(function(a){i.push(f(a.pathCoordinates,a.valueData))}),c.Svg.Path.join(i)}if(b=h[0].pathCoordinates,g=h[0].valueData,b.length<=4)return c.Interpolation.none()(b,g);for(var j,k=(new c.Svg.Path).move(b[0],b[1],!1,g[0]),l=0,m=b.length;m-2*!j>l;l+=2){var n=[{x:+b[l-2],y:+b[l-1]},{x:+b[l],y:+b[l+1]},{x:+b[l+2],y:+b[l+3]},{x:+b[l+4],y:+b[l+5]}];j?l?m-4===l?n[3]={x:+b[0],y:+b[1]}:m-2===l&&(n[2]={x:+b[0],y:+b[1]},n[3]={x:+b[2],y:+b[3]}):n[0]={x:+b[m-2],y:+b[m-1]}:m-4===l?n[3]=n[2]:l||(n[0]={x:+b[l],y:+b[l+1]}),k.curve(d*(-n[0].x+6*n[1].x+n[2].x)/6+e*n[2].x,d*(-n[0].y+6*n[1].y+n[2].y)/6+e*n[2].y,d*(n[1].x+6*n[2].x-n[3].x)/6+e*n[2].x,d*(n[1].y+6*n[2].y-n[3].y)/6+e*n[2].y,n[2].x,n[2].y,!1,g[(l+2)/2])}return k}return c.Interpolation.none()([])}},c.Interpolation.monotoneCubic=function(a){var b={fillHoles:!1};return a=c.extend({},b,a),function d(b,e){var f=c.splitIntoSegments(b,e,{fillHoles:a.fillHoles,increasingX:!0});if(f.length){if(f.length>1){var g=[];return f.forEach(function(a){g.push(d(a.pathCoordinates,a.valueData))}),c.Svg.Path.join(g)}if(b=f[0].pathCoordinates,e=f[0].valueData,b.length<=4)return c.Interpolation.none()(b,e);var h,i,j=[],k=[],l=b.length/2,m=[],n=[],o=[],p=[];for(h=0;h<l;h++)j[h]=b[2*h],k[h]=b[2*h+1];for(h=0;h<l-1;h++)o[h]=k[h+1]-k[h],p[h]=j[h+1]-j[h],n[h]=o[h]/p[h];for(m[0]=n[0],m[l-1]=n[l-2],h=1;h<l-1;h++)0===n[h]||0===n[h-1]||n[h-1]>0!=n[h]>0?m[h]=0:(m[h]=3*(p[h-1]+p[h])/((2*p[h]+p[h-1])/n[h-1]+(p[h]+2*p[h-1])/n[h]),isFinite(m[h])||(m[h]=0));for(i=(new c.Svg.Path).move(j[0],k[0],!1,e[0]),h=0;h<l-1;h++)i.curve(j[h]+p[h]/3,k[h]+m[h]*p[h]/3,j[h+1]-p[h]/3,k[h+1]-m[h+1]*p[h]/3,j[h+1],k[h+1],!1,e[h+1]);return i}return c.Interpolation.none()([])}},c.Interpolation.step=function(a){var b={postpone:!0,fillHoles:!1};return a=c.extend({},b,a),function(b,d){for(var e,f,g,h=new c.Svg.Path,i=0;i<b.length;i+=2){var j=b[i],k=b[i+1],l=d[i/2];void 0!==l.value?(void 0===g?h.move(j,k,!1,l):(a.postpone?h.line(j,f,!1,g):h.line(e,k,!1,l),h.line(j,k,!1,l)),e=j,f=k,g=l):a.fillHoles||(e=f=g=void 0)}return h}}}(window,document,a),function(a,b,c){"use strict";c.EventEmitter=function(){function a(a,b){d[a]=d[a]||[],d[a].push(b)}function b(a,b){d[a]&&(b?(d[a].splice(d[a].indexOf(b),1),0===d[a].length&&delete d[a]):delete d[a])}function c(a,b){d[a]&&d[a].forEach(function(a){a(b)}),d["*"]&&d["*"].forEach(function(c){c(a,b)})}var d=[];return{addEventHandler:a,removeEventHandler:b,emit:c}}}(window,document,a),function(a,b,c){"use strict";function d(a){var b=[];if(a.length)for(var c=0;c<a.length;c++)b.push(a[c]);return b}function e(a,b){var d=b||this.prototype||c.Class,e=Object.create(d);c.Class.cloneDefinitions(e,a);var f=function(){var a,b=e.constructor||function(){};return a=this===c?Object.create(e):this,b.apply(a,Array.prototype.slice.call(arguments,0)),a};return f.prototype=e,f["super"]=d,f.extend=this.extend,f}function f(){var a=d(arguments),b=a[0];return a.splice(1,a.length-1).forEach(function(a){Object.getOwnPropertyNames(a).forEach(function(c){delete b[c],Object.defineProperty(b,c,Object.getOwnPropertyDescriptor(a,c))})}),b}c.Class={extend:e,cloneDefinitions:f}}(window,document,a),function(a,b,c){"use strict";function d(a,b,d){return a&&(this.data=a||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),b&&(this.options=c.extend({},d?this.options:this.defaultOptions,b),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=c.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this}function e(){return this.initializeTimeoutId?a.clearTimeout(this.initializeTimeoutId):(a.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this}function f(a,b){return this.eventEmitter.addEventHandler(a,b),this}function g(a,b){return this.eventEmitter.removeEventHandler(a,b),this}function h(){a.addEventListener("resize",this.resizeListener),this.optionsProvider=c.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(a){a instanceof Array?a[0](this,a[1]):a(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}function i(a,b,d,e,f){this.container=c.querySelector(a),this.data=b||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=d,this.options=e,this.responsiveOptions=f,this.eventEmitter=c.EventEmitter(),this.supportsForeignObject=c.Svg.isSupported("Extensibility"),this.supportsAnimations=c.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(h.bind(this),0)}c.Base=c.Class.extend({constructor:i,optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:d,detach:e,on:f,off:g,version:c.version,supportsForeignObject:!1})}(window,document,a),function(a,b,c){"use strict";function d(a,d,e,f,g){a instanceof Element?this._node=a:(this._node=b.createElementNS(c.namespaces.svg,a),"svg"===a&&this.attr({"xmlns:ct":c.namespaces.ct})),d&&this.attr(d),e&&this.addClass(e),f&&(g&&f._node.firstChild?f._node.insertBefore(this._node,f._node.firstChild):f._node.appendChild(this._node))}function e(a,b){return"string"==typeof a?b?this._node.getAttributeNS(b,a):this._node.getAttribute(a):(Object.keys(a).forEach(function(b){if(void 0!==a[b])if(b.indexOf(":")!==-1){var d=b.split(":");this._node.setAttributeNS(c.namespaces[d[0]],b,a[b])}else this._node.setAttribute(b,a[b])}.bind(this)),this)}function f(a,b,d,e){return new c.Svg(a,b,d,this,e)}function g(){return this._node.parentNode instanceof SVGElement?new c.Svg(this._node.parentNode):null}function h(){for(var a=this._node;"svg"!==a.nodeName;)a=a.parentNode;return new c.Svg(a)}function i(a){var b=this._node.querySelector(a);return b?new c.Svg(b):null}function j(a){var b=this._node.querySelectorAll(a);return b.length?new c.Svg.List(b):null}function k(){return this._node}function l(a,d,e,f){if("string"==typeof a){var g=b.createElement("div");g.innerHTML=a,a=g.firstChild}a.setAttribute("xmlns",c.namespaces.xmlns);var h=this.elem("foreignObject",d,e,f);return h._node.appendChild(a),h}function m(a){return this._node.appendChild(b.createTextNode(a)),this}function n(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}function o(){return this._node.parentNode.removeChild(this._node),this.parent()}function p(a){return this._node.parentNode.replaceChild(a._node,this._node),a}function q(a,b){return b&&this._node.firstChild?this._node.insertBefore(a._node,this._node.firstChild):this._node.appendChild(a._node),this}function r(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]}function s(a){return this._node.setAttribute("class",this.classes(this._node).concat(a.trim().split(/\s+/)).filter(function(a,b,c){return c.indexOf(a)===b}).join(" ")),this}function t(a){var b=a.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(a){return b.indexOf(a)===-1}).join(" ")),this}function u(){return this._node.setAttribute("class",""),this}function v(){return this._node.getBoundingClientRect().height}function w(){return this._node.getBoundingClientRect().width}function x(a,b,d){return void 0===b&&(b=!0),Object.keys(a).forEach(function(e){function f(a,b){var f,g,h,i={};a.easing&&(h=a.easing instanceof Array?a.easing:c.Svg.Easing[a.easing],delete a.easing),a.begin=c.ensureUnit(a.begin,"ms"),a.dur=c.ensureUnit(a.dur,"ms"),h&&(a.calcMode="spline",a.keySplines=h.join(" "),a.keyTimes="0;1"),b&&(a.fill="freeze",i[e]=a.from,this.attr(i),g=c.quantity(a.begin||0).value,a.begin="indefinite"),f=this.elem("animate",c.extend({attributeName:e},a)),b&&setTimeout(function(){try{f._node.beginElement()}catch(b){i[e]=a.to,this.attr(i),f.remove()}}.bind(this),g),d&&f._node.addEventListener("beginEvent",function(){d.emit("animationBegin",{element:this,animate:f._node,params:a})}.bind(this)),f._node.addEventListener("endEvent",function(){d&&d.emit("animationEnd",{element:this,animate:f._node,params:a}),b&&(i[e]=a.to,this.attr(i),f.remove())}.bind(this))}a[e]instanceof Array?a[e].forEach(function(a){f.bind(this)(a,!1)}.bind(this)):f.bind(this)(a[e],b)}.bind(this)),this}function y(a){var b=this;this.svgElements=[];for(var d=0;d<a.length;d++)this.svgElements.push(new c.Svg(a[d]));Object.keys(c.Svg.prototype).filter(function(a){return["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(a)===-1}).forEach(function(a){b[a]=function(){var d=Array.prototype.slice.call(arguments,0);return b.svgElements.forEach(function(b){c.Svg.prototype[a].apply(b,d)}),b}})}c.Svg=c.Class.extend({constructor:d,attr:e,elem:f,parent:g,root:h,querySelector:i,querySelectorAll:j,getNode:k,foreignObject:l,text:m,empty:n,remove:o,replace:p,append:q,classes:r,addClass:s,removeClass:t,removeAllClasses:u,height:v,width:w,animate:x}),c.Svg.isSupported=function(a){return b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+a,"1.1")};var z={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};c.Svg.Easing=z,c.Svg.List=c.Class.extend({constructor:y})}(window,document,a),function(a,b,c){"use strict";function d(a,b,d,e,f,g){var h=c.extend({command:f?a.toLowerCase():a.toUpperCase()},b,g?{data:g}:{});d.splice(e,0,h)}function e(a,b){a.forEach(function(c,d){u[c.command.toLowerCase()].forEach(function(e,f){b(c,e,d,f,a)})})}function f(a,b){this.pathElements=[],this.pos=0,this.close=a,this.options=c.extend({},v,b)}function g(a){return void 0!==a?(this.pos=Math.max(0,Math.min(this.pathElements.length,a)),this):this.pos}function h(a){return this.pathElements.splice(this.pos,a),this}function i(a,b,c,e){return d("M",{x:+a,y:+b},this.pathElements,this.pos++,c,e),this}function j(a,b,c,e){return d("L",{x:+a,y:+b},this.pathElements,this.pos++,c,e),this}function k(a,b,c,e,f,g,h,i){return d("C",{x1:+a,y1:+b,x2:+c,y2:+e,x:+f,y:+g},this.pathElements,this.pos++,h,i),this}function l(a,b,c,e,f,g,h,i,j){return d("A",{rx:+a,ry:+b,xAr:+c,lAf:+e,sf:+f,x:+g,y:+h},this.pathElements,this.pos++,i,j),this}function m(a){var b=a.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(a,b){return b.match(/[A-Za-z]/)&&a.push([]),a[a.length-1].push(b),a},[]);"Z"===b[b.length-1][0].toUpperCase()&&b.pop();var d=b.map(function(a){var b=a.shift(),d=u[b.toLowerCase()];return c.extend({command:b},d.reduce(function(b,c,d){return b[c]=+a[d],b},{}))}),e=[this.pos,0];return Array.prototype.push.apply(e,d),Array.prototype.splice.apply(this.pathElements,e),this.pos+=d.length,this}function n(){var a=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(b,c){var d=u[c.command.toLowerCase()].map(function(b){return this.options.accuracy?Math.round(c[b]*a)/a:c[b]}.bind(this));return b+c.command+d.join(",")}.bind(this),"")+(this.close?"Z":"")}function o(a,b){return e(this.pathElements,function(c,d){c[d]*="x"===d[0]?a:b}),this}function p(a,b){return e(this.pathElements,function(c,d){c[d]+="x"===d[0]?a:b}),this}function q(a){return e(this.pathElements,function(b,c,d,e,f){var g=a(b,c,d,e,f);(g||0===g)&&(b[c]=g)}),this}function r(a){var b=new c.Svg.Path(a||this.close);return b.pos=this.pos,b.pathElements=this.pathElements.slice().map(function(a){return c.extend({},a)}),b.options=c.extend({},this.options),b}function s(a){var b=[new c.Svg.Path];return this.pathElements.forEach(function(d){d.command===a.toUpperCase()&&0!==b[b.length-1].pathElements.length&&b.push(new c.Svg.Path),b[b.length-1].pathElements.push(d)}),b}function t(a,b,d){for(var e=new c.Svg.Path(b,d),f=0;f<a.length;f++)for(var g=a[f],h=0;h<g.pathElements.length;h++)e.pathElements.push(g.pathElements[h]);return e}var u={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},v={accuracy:3};c.Svg.Path=c.Class.extend({constructor:f,position:g,remove:h,move:i,line:j,curve:k,arc:l,scale:o,translate:p,transform:q,parse:m,stringify:n,clone:r,splitByCommand:s}),c.Svg.Path.elementDescriptions=u,c.Svg.Path.join=t}(window,document,a),function(a,b,c){"use strict";function d(a,b,c,d){this.units=a,this.counterUnits=a===f.x?f.y:f.x,this.chartRect=b,this.axisLength=b[a.rectEnd]-b[a.rectStart],this.gridOffset=b[a.rectOffset],this.ticks=c,this.options=d}function e(a,b,d,e,f){var g=e["axis"+this.units.pos.toUpperCase()],h=this.ticks.map(this.projectValue.bind(this)),i=this.ticks.map(g.labelInterpolationFnc);h.forEach(function(j,k){var l,m={x:0,y:0};l=h[k+1]?h[k+1]-j:Math.max(this.axisLength-j,30),c.isFalseyButZero(i[k])&&""!==i[k]||("x"===this.units.pos?(j=this.chartRect.x1+j,m.x=e.axisX.labelOffset.x,"start"===e.axisX.position?m.y=this.chartRect.padding.top+e.axisX.labelOffset.y+(d?5:20):m.y=this.chartRect.y1+e.axisX.labelOffset.y+(d?5:20)):(j=this.chartRect.y1-j,m.y=e.axisY.labelOffset.y-(d?l:0),"start"===e.axisY.position?m.x=d?this.chartRect.padding.left+e.axisY.labelOffset.x:this.chartRect.x1-10:m.x=this.chartRect.x2+e.axisY.labelOffset.x+10),g.showGrid&&c.createGrid(j,k,this,this.gridOffset,this.chartRect[this.counterUnits.len](),a,[e.classNames.grid,e.classNames[this.units.dir]],f),g.showLabel&&c.createLabel(j,l,k,i,this,g.offset,m,b,[e.classNames.label,e.classNames[this.units.dir],"start"===g.position?e.classNames[g.position]:e.classNames.end],d,f))}.bind(this))}var f={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};c.Axis=c.Class.extend({constructor:d,createGridAndLabels:e,projectValue:function(a,b,c){throw new Error("Base axis can't be instantiated!")}}),c.Axis.units=f}(window,document,a),function(a,b,c){"use strict";function d(a,b,d,e){var f=e.highLow||c.getHighLow(b,e,a.pos);this.bounds=c.getBounds(d[a.rectEnd]-d[a.rectStart],f,e.scaleMinSpace||20,e.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},c.AutoScaleAxis["super"].constructor.call(this,a,d,this.bounds.values,e)}function e(a){return this.axisLength*(+c.getMultiValue(a,this.units.pos)-this.bounds.min)/this.bounds.range}c.AutoScaleAxis=c.Axis.extend({constructor:d,projectValue:e})}(window,document,a),function(a,b,c){"use strict";function d(a,b,d,e){var f=e.highLow||c.getHighLow(b,e,a.pos);this.divisor=e.divisor||1,this.ticks=e.ticks||c.times(this.divisor).map(function(a,b){return f.low+(f.high-f.low)/this.divisor*b}.bind(this)),this.ticks.sort(function(a,b){return a-b}),this.range={min:f.low,max:f.high},c.FixedScaleAxis["super"].constructor.call(this,a,d,this.ticks,e),this.stepLength=this.axisLength/this.divisor}function e(a){return this.axisLength*(+c.getMultiValue(a,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}c.FixedScaleAxis=c.Axis.extend({constructor:d,projectValue:e})}(window,document,a),function(a,b,c){"use strict";function d(a,b,d,e){c.StepAxis["super"].constructor.call(this,a,d,e.ticks,e);var f=Math.max(1,e.ticks.length-(e.stretch?1:0));this.stepLength=this.axisLength/f}function e(a,b){return this.stepLength*b}c.StepAxis=c.Axis.extend({constructor:d,projectValue:e})}(window,document,a),function(a,b,c){"use strict";function d(a){var b=c.normalizeData(this.data,a.reverseData,!0);this.svg=c.createSvg(this.container,a.width,a.height,a.classNames.chart);var d,e,g=this.svg.elem("g").addClass(a.classNames.gridGroup),h=this.svg.elem("g"),i=this.svg.elem("g").addClass(a.classNames.labelGroup),j=c.createChartRect(this.svg,a,f.padding);d=void 0===a.axisX.type?new c.StepAxis(c.Axis.units.x,b.normalized.series,j,c.extend({},a.axisX,{ticks:b.normalized.labels,stretch:a.fullWidth})):a.axisX.type.call(c,c.Axis.units.x,b.normalized.series,j,a.axisX),e=void 0===a.axisY.type?new c.AutoScaleAxis(c.Axis.units.y,b.normalized.series,j,c.extend({},a.axisY,{high:c.isNumeric(a.high)?a.high:a.axisY.high,low:c.isNumeric(a.low)?a.low:a.axisY.low})):a.axisY.type.call(c,c.Axis.units.y,b.normalized.series,j,a.axisY),d.createGridAndLabels(g,i,this.supportsForeignObject,a,this.eventEmitter),e.createGridAndLabels(g,i,this.supportsForeignObject,a,this.eventEmitter),a.showGridBackground&&c.createGridBackground(g,j,a.classNames.gridBackground,this.eventEmitter),b.raw.series.forEach(function(f,g){var i=h.elem("g");i.attr({"ct:series-name":f.name,"ct:meta":c.serialize(f.meta)}),i.addClass([a.classNames.series,f.className||a.classNames.series+"-"+c.alphaNumerate(g)].join(" "));var k=[],l=[];b.normalized.series[g].forEach(function(a,h){var i={x:j.x1+d.projectValue(a,h,b.normalized.series[g]),y:j.y1-e.projectValue(a,h,b.normalized.series[g])};k.push(i.x,i.y),l.push({value:a,valueIndex:h,meta:c.getMetaData(f,h)})}.bind(this));var m={lineSmooth:c.getSeriesOption(f,a,"lineSmooth"),showPoint:c.getSeriesOption(f,a,"showPoint"),showLine:c.getSeriesOption(f,a,"showLine"),showArea:c.getSeriesOption(f,a,"showArea"),areaBase:c.getSeriesOption(f,a,"areaBase")},n="function"==typeof m.lineSmooth?m.lineSmooth:m.lineSmooth?c.Interpolation.monotoneCubic():c.Interpolation.none(),o=n(k,l);if(m.showPoint&&o.pathElements.forEach(function(b){var h=i.elem("line",{x1:b.x,y1:b.y,x2:b.x+.01,y2:b.y},a.classNames.point).attr({"ct:value":[b.data.value.x,b.data.value.y].filter(c.isNumeric).join(","),"ct:meta":c.serialize(b.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:b.data.value,index:b.data.valueIndex,meta:b.data.meta,series:f,seriesIndex:g,axisX:d,axisY:e,group:i,element:h,x:b.x,y:b.y})}.bind(this)),m.showLine){var p=i.elem("path",{d:o.stringify()},a.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:b.normalized.series[g],path:o.clone(),chartRect:j,index:g,series:f,seriesIndex:g,seriesMeta:f.meta,axisX:d,axisY:e,group:i,element:p})}if(m.showArea&&e.range){var q=Math.max(Math.min(m.areaBase,e.range.max),e.range.min),r=j.y1-e.projectValue(q);o.splitByCommand("M").filter(function(a){return a.pathElements.length>1}).map(function(a){var b=a.pathElements[0],c=a.pathElements[a.pathElements.length-1];return a.clone(!0).position(0).remove(1).move(b.x,r).line(b.x,b.y).position(a.pathElements.length+1).line(c.x,r)}).forEach(function(c){var h=i.elem("path",{d:c.stringify()},a.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:b.normalized.series[g],path:c.clone(),series:f,seriesIndex:g,axisX:d,axisY:e,chartRect:j,index:g,group:i,element:h})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:e.bounds,chartRect:j,axisX:d,axisY:e,svg:this.svg,options:a})}function e(a,b,d,e){c.Line["super"].constructor.call(this,a,b,f,c.extend({},f,d),e)}var f={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};c.Line=c.Base.extend({constructor:e,createChart:d})}(window,document,a),function(a,b,c){"use strict";function d(a){var b,d;a.distributeSeries?(b=c.normalizeData(this.data,a.reverseData,a.horizontalBars?"x":"y"),b.normalized.series=b.normalized.series.map(function(a){return[a]})):b=c.normalizeData(this.data,a.reverseData,a.horizontalBars?"x":"y"),this.svg=c.createSvg(this.container,a.width,a.height,a.classNames.chart+(a.horizontalBars?" "+a.classNames.horizontalBars:""));var e=this.svg.elem("g").addClass(a.classNames.gridGroup),g=this.svg.elem("g"),h=this.svg.elem("g").addClass(a.classNames.labelGroup);if(a.stackBars&&0!==b.normalized.series.length){var i=c.serialMap(b.normalized.series,function(){
9
- return Array.prototype.slice.call(arguments).map(function(a){return a}).reduce(function(a,b){return{x:a.x+(b&&b.x)||0,y:a.y+(b&&b.y)||0}},{x:0,y:0})});d=c.getHighLow([i],a,a.horizontalBars?"x":"y")}else d=c.getHighLow(b.normalized.series,a,a.horizontalBars?"x":"y");d.high=+a.high||(0===a.high?0:d.high),d.low=+a.low||(0===a.low?0:d.low);var j,k,l,m,n,o=c.createChartRect(this.svg,a,f.padding);k=a.distributeSeries&&a.stackBars?b.normalized.labels.slice(0,1):b.normalized.labels,a.horizontalBars?(j=m=void 0===a.axisX.type?new c.AutoScaleAxis(c.Axis.units.x,b.normalized.series,o,c.extend({},a.axisX,{highLow:d,referenceValue:0})):a.axisX.type.call(c,c.Axis.units.x,b.normalized.series,o,c.extend({},a.axisX,{highLow:d,referenceValue:0})),l=n=void 0===a.axisY.type?new c.StepAxis(c.Axis.units.y,b.normalized.series,o,{ticks:k}):a.axisY.type.call(c,c.Axis.units.y,b.normalized.series,o,a.axisY)):(l=m=void 0===a.axisX.type?new c.StepAxis(c.Axis.units.x,b.normalized.series,o,{ticks:k}):a.axisX.type.call(c,c.Axis.units.x,b.normalized.series,o,a.axisX),j=n=void 0===a.axisY.type?new c.AutoScaleAxis(c.Axis.units.y,b.normalized.series,o,c.extend({},a.axisY,{highLow:d,referenceValue:0})):a.axisY.type.call(c,c.Axis.units.y,b.normalized.series,o,c.extend({},a.axisY,{highLow:d,referenceValue:0})));var p=a.horizontalBars?o.x1+j.projectValue(0):o.y1-j.projectValue(0),q=[];l.createGridAndLabels(e,h,this.supportsForeignObject,a,this.eventEmitter),j.createGridAndLabels(e,h,this.supportsForeignObject,a,this.eventEmitter),a.showGridBackground&&c.createGridBackground(e,o,a.classNames.gridBackground,this.eventEmitter),b.raw.series.forEach(function(d,e){var f,h,i=e-(b.raw.series.length-1)/2;f=a.distributeSeries&&!a.stackBars?l.axisLength/b.normalized.series.length/2:a.distributeSeries&&a.stackBars?l.axisLength/2:l.axisLength/b.normalized.series[e].length/2,h=g.elem("g"),h.attr({"ct:series-name":d.name,"ct:meta":c.serialize(d.meta)}),h.addClass([a.classNames.series,d.className||a.classNames.series+"-"+c.alphaNumerate(e)].join(" ")),b.normalized.series[e].forEach(function(g,k){var r,s,t,u;if(u=a.distributeSeries&&!a.stackBars?e:a.distributeSeries&&a.stackBars?0:k,r=a.horizontalBars?{x:o.x1+j.projectValue(g&&g.x?g.x:0,k,b.normalized.series[e]),y:o.y1-l.projectValue(g&&g.y?g.y:0,u,b.normalized.series[e])}:{x:o.x1+l.projectValue(g&&g.x?g.x:0,u,b.normalized.series[e]),y:o.y1-j.projectValue(g&&g.y?g.y:0,k,b.normalized.series[e])},l instanceof c.StepAxis&&(l.options.stretch||(r[l.units.pos]+=f*(a.horizontalBars?-1:1)),r[l.units.pos]+=a.stackBars||a.distributeSeries?0:i*a.seriesBarDistance*(a.horizontalBars?-1:1)),t=q[k]||p,q[k]=t-(p-r[l.counterUnits.pos]),void 0!==g){var v={};v[l.units.pos+"1"]=r[l.units.pos],v[l.units.pos+"2"]=r[l.units.pos],!a.stackBars||"accumulate"!==a.stackMode&&a.stackMode?(v[l.counterUnits.pos+"1"]=p,v[l.counterUnits.pos+"2"]=r[l.counterUnits.pos]):(v[l.counterUnits.pos+"1"]=t,v[l.counterUnits.pos+"2"]=q[k]),v.x1=Math.min(Math.max(v.x1,o.x1),o.x2),v.x2=Math.min(Math.max(v.x2,o.x1),o.x2),v.y1=Math.min(Math.max(v.y1,o.y2),o.y1),v.y2=Math.min(Math.max(v.y2,o.y2),o.y1);var w=c.getMetaData(d,k);s=h.elem("line",v,a.classNames.bar).attr({"ct:value":[g.x,g.y].filter(c.isNumeric).join(","),"ct:meta":c.serialize(w)}),this.eventEmitter.emit("draw",c.extend({type:"bar",value:g,index:k,meta:w,series:d,seriesIndex:e,axisX:m,axisY:n,chartRect:o,group:h,element:s},v))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:j.bounds,chartRect:o,axisX:m,axisY:n,svg:this.svg,options:a})}function e(a,b,d,e){c.Bar["super"].constructor.call(this,a,b,f,c.extend({},f,d),e)}var f={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};c.Bar=c.Base.extend({constructor:e,createChart:d})}(window,document,a),function(a,b,c){"use strict";function d(a,b,c){var d=b.x>a.x;return d&&"explode"===c||!d&&"implode"===c?"start":d&&"implode"===c||!d&&"explode"===c?"end":"middle"}function e(a){var b,e,f,h,i,j=c.normalizeData(this.data),k=[],l=a.startAngle;this.svg=c.createSvg(this.container,a.width,a.height,a.donut?a.classNames.chartDonut:a.classNames.chartPie),e=c.createChartRect(this.svg,a,g.padding),f=Math.min(e.width()/2,e.height()/2),i=a.total||j.normalized.series.reduce(function(a,b){return a+b},0);var m=c.quantity(a.donutWidth);"%"===m.unit&&(m.value*=f/100),f-=a.donut&&!a.donutSolid?m.value/2:0,h="outside"===a.labelPosition||a.donut&&!a.donutSolid?f:"center"===a.labelPosition?0:a.donutSolid?f-m.value/2:f/2,h+=a.labelOffset;var n={x:e.x1+e.width()/2,y:e.y2+e.height()/2},o=1===j.raw.series.filter(function(a){return a.hasOwnProperty("value")?0!==a.value:0!==a}).length;j.raw.series.forEach(function(a,b){k[b]=this.svg.elem("g",null,null)}.bind(this)),a.showLabel&&(b=this.svg.elem("g",null,null)),j.raw.series.forEach(function(e,g){if(0!==j.normalized.series[g]||!a.ignoreEmptyValues){k[g].attr({"ct:series-name":e.name}),k[g].addClass([a.classNames.series,e.className||a.classNames.series+"-"+c.alphaNumerate(g)].join(" "));var p=i>0?l+j.normalized.series[g]/i*360:0,q=Math.max(0,l-(0===g||o?0:.2));p-q>=359.99&&(p=q+359.99);var r,s,t,u=c.polarToCartesian(n.x,n.y,f,q),v=c.polarToCartesian(n.x,n.y,f,p),w=new c.Svg.Path(!a.donut||a.donutSolid).move(v.x,v.y).arc(f,f,0,p-l>180,0,u.x,u.y);a.donut?a.donutSolid&&(t=f-m.value,r=c.polarToCartesian(n.x,n.y,t,l-(0===g||o?0:.2)),s=c.polarToCartesian(n.x,n.y,t,p),w.line(r.x,r.y),w.arc(t,t,0,p-l>180,1,s.x,s.y)):w.line(n.x,n.y);var x=a.classNames.slicePie;a.donut&&(x=a.classNames.sliceDonut,a.donutSolid&&(x=a.classNames.sliceDonutSolid));var y=k[g].elem("path",{d:w.stringify()},x);if(y.attr({"ct:value":j.normalized.series[g],"ct:meta":c.serialize(e.meta)}),a.donut&&!a.donutSolid&&(y._node.style.strokeWidth=m.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:j.normalized.series[g],totalDataSum:i,index:g,meta:e.meta,series:e,group:k[g],element:y,path:w.clone(),center:n,radius:f,startAngle:l,endAngle:p}),a.showLabel){var z;z=1===j.raw.series.length?{x:n.x,y:n.y}:c.polarToCartesian(n.x,n.y,h,l+(p-l)/2);var A;A=j.normalized.labels&&!c.isFalseyButZero(j.normalized.labels[g])?j.normalized.labels[g]:j.normalized.series[g];var B=a.labelInterpolationFnc(A,g);if(B||0===B){var C=b.elem("text",{dx:z.x,dy:z.y,"text-anchor":d(n,z,a.labelDirection)},a.classNames.label).text(""+B);this.eventEmitter.emit("draw",{type:"label",index:g,group:b,element:C,text:""+B,x:z.x,y:z.y})}}l=p}}.bind(this)),this.eventEmitter.emit("created",{chartRect:e,svg:this.svg,options:a})}function f(a,b,d,e){c.Pie["super"].constructor.call(this,a,b,g,c.extend({},g,d),e)}var g={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:c.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};c.Pie=c.Base.extend({constructor:f,createChart:e,determineAnchorPosition:d})}(window,document,a),a});
10
- //# sourceMappingURL=chartist.min.js.map
 
 
 
 
 
 
 
 
 
 
js/givejs.php CHANGED
@@ -34,17 +34,19 @@ $files = array(
34
  'vanilla-picker.min.js',
35
  'trumbowyg.min.js',
36
  'trumbowyg.js',
 
37
  'trumbowyg-pagelayer.js',
38
  'pen.js',
39
  // Enduser JS
40
  'imagesloaded.min.js',
41
  'nivo-lightbox.min.js',
42
- 'slippry.min.js',
43
  'pagelayer-frontend.js',
 
44
  'wow.min.js',
45
  'jquery-numerator.js',
46
  'simpleParallax.min.js',
47
- 'chartist.min.js',
48
  );
49
 
50
  // What files to give
34
  'vanilla-picker.min.js',
35
  'trumbowyg.min.js',
36
  'trumbowyg.js',
37
+ 'trumbowyg.fontfamily.js',
38
  'trumbowyg-pagelayer.js',
39
  'pen.js',
40
  // Enduser JS
41
  'imagesloaded.min.js',
42
  'nivo-lightbox.min.js',
43
+ 'owl.carousel.min.js',
44
  'pagelayer-frontend.js',
45
+ 'premium-frontend.js',
46
  'wow.min.js',
47
  'jquery-numerator.js',
48
  'simpleParallax.min.js',
49
+ 'chart.min.js'
50
  );
51
 
52
  // What files to give
js/owl.carousel.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ /**
2
+ * Owl Carousel v2.3.4
3
+ * Copyright 2013-2018 David Deutsch
4
+ * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
5
+ */
6
+ !function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"pagelayer-owl-refresh",loadedClass:"pagelayer-owl-loaded",loadingClass:"pagelayer-owl-loading",rtlClass:"pagelayer-owl-rtl",responsiveClass:"pagelayer-owl-responsive",dragClass:"pagelayer-owl-drag",itemClass:"pagelayer-owl-item",stageClass:"pagelayer-owl-stage",stageOuterClass:"pagelayer-owl-stage-outer",grabClass:"pagelayer-owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(a("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(".pagelayer-owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&b<i+f?e=a:"right"===c&&b>i-g-f&&b<i-g+f?e=a+1:this.op(b,"<",i)&&this.op(b,">",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.pagelayerOwlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.pagelayerOwlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("pagelayer-owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.pagelayerOwlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".pagelayer-owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.pagelayerOwlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on("load",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:"pagelayer-owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.pagelayerOwlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .pagelayer-owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".pagelayer-owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".pagelayer-owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='<div class="pagelayer-owl-video-play-icon"></div>',d=k.lazyLoad?a("<div/>",{class:"pagelayer-owl-video-tn "+j,srcType:c}):a("<div/>",{class:"pagelayer-owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("<div/>",{class:"pagelayer-owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="pagelayer-owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".pagelayer-owl-video-frame").remove(),this._playing.removeClass("pagelayer-owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('<div class="pagelayer-owl-video-frame" />').insertAfter(e.find(".pagelayer-owl-video")),this._playing=e.addClass("pagelayer-owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("pagelayer-owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.pagelayerOwlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,
7
+ animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated pagelayer-owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated pagelayer-owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated pagelayer-owl-animated-out pagelayer-owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.pagelayerOwlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.pagelayerOwlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"pagelayer-owl-nav",navClass:["pagelayer-owl-prev","pagelayer-owl-next"],slideBy:1,dotClass:"pagelayer-owl-dot",dotsClass:"pagelayer-owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)"$relative"===b&&e.navContainer?this._controls[b].html(""):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.pagelayerOwlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.pagelayerOwlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
js/pagelayer-admin.js CHANGED
@@ -33,7 +33,7 @@ jQuery(document).ready(function(){
33
  });
34
  }
35
 
36
- var pl_admin_accourdion = function(){
37
 
38
  jQuery('.pagelayer-acc-wrapper .pagelayer-acc-tab').click(function(){
39
 
@@ -67,6 +67,6 @@ jQuery(document).ready(function(){
67
  }
68
 
69
  pl_admin_tabs();
70
- pl_admin_accourdion();
71
 
72
  });
33
  });
34
  }
35
 
36
+ var pl_admin_accordion = function(){
37
 
38
  jQuery('.pagelayer-acc-wrapper .pagelayer-acc-tab').click(function(){
39
 
67
  }
68
 
69
  pl_admin_tabs();
70
+ pl_admin_accordion();
71
 
72
  });
js/pagelayer-editor.js CHANGED
@@ -19,6 +19,8 @@ var pagelayer_history_obj = {}, pagelayer_revision_obj = {};
19
 
20
  // Lets start
21
  jQuery(document).ready(function(){
 
 
22
 
23
  pagelayer_shortcodes['pl_inner_row'] = JSON.parse(JSON.stringify(pagelayer_shortcodes['pl_row']));
24
  pagelayer_shortcodes['pl_inner_row']['name'] = 'Inner Row';
@@ -225,9 +227,9 @@ function pagelayer_setup_drag(){
225
 
226
  // For inner row we restrict to 1 level only
227
  }else if(tag == 'pl_inner_row'){
228
- var ele_wrap = jQuery(ele).parents('.pagelayer-wrap-col')
229
- if(ele_wrap.length == 1){
230
- onWrap = jQuery(ele).closest('.pagelayer-wrap-ele,.pagelayer-wrap-col');
231
  }else{
232
  onWrap = jQuery(ele).closest('.pagelayer-wrap-inner-row');
233
  }
@@ -784,7 +786,7 @@ function pagelayer_element_setup(selector, render){
784
  render = render || false;
785
 
786
  // Loop through
787
- jQuery(selector).each(function(){
788
 
789
  var jEle = jQuery(this);
790
 
@@ -944,7 +946,7 @@ function pagelayer_element_setup(selector, render){
944
  // Left Click
945
  function pagelayer_left_click(){
946
 
947
- jQuery('.entry-content').on('click', function(e){
948
 
949
  e.preventDefault();// Added by Jivan in Actions / Revisions version
950
 
@@ -983,7 +985,7 @@ function pagelayer_right_click(){
983
 
984
  var $contextMenu = jQuery('.pagelayer-right-click-options');
985
 
986
- jQuery('.entry-content').on('contextmenu', function(e){
987
 
988
  var tEle = jQuery(e.target);
989
  var jEle = tEle.closest('.pagelayer-ele-wrap').children('.pagelayer-ele');
@@ -1059,6 +1061,9 @@ function pagelayer_set_screen_mode(mode){
1059
  // Add the class to the button
1060
  pagelayer.$$('.pagelayer-mode-button').removeClass('fa-'+current).addClass('fa-'+mode);
1061
 
 
 
 
1062
  // Trigger screen change if any
1063
  pagelayer.$$('.pagelayer-elp-screen').trigger('pagelayer-screen-changed');
1064
 
@@ -2072,14 +2077,14 @@ function pagelayer_is_group(tag){
2072
  // Save the post
2073
  function pagelayer_save(){
2074
 
2075
- var post = pagelayer_generate_sc(".entry-content");//alert(post);return;
2076
  var pagelayerajaxurl = pagelayer_ajax_url+'&action=pagelayer_save_content&postID='+pagelayer_postID;
2077
  jQuery.ajax({
2078
  type: "POST",
2079
  url: pagelayerajaxurl,
2080
  data: {
2081
  pagelayer_update_content : post,
2082
- nonce: pagelayer_ajax_nonce
2083
  },
2084
  success: function(response, status, xhr){
2085
  //alert(data);
@@ -2133,12 +2138,15 @@ function pagelayer_generate_sc(selector){
2133
  // Find the type of tag
2134
  var tag = jEle.attr('pagelayer-tag');
2135
  var final_tag = tag;
 
2136
 
2137
- // Define inner row and inner column
2138
- if(tag == 'pl_row' && jQuery(this).closest('.pagelayer-col-holder').length > 0){
2139
  final_tag = 'pl_inner_row';
2140
- }
2141
- if(tag == 'pl_col' && jQuery(this).closest('.pagelayer-col-holder').length > 0){
 
 
2142
  final_tag = 'pl_inner_col';
2143
  }
2144
  //console.log(tag);
@@ -2187,7 +2195,17 @@ function pagelayer_generate_sc(selector){
2187
  sel = sel+' '+pagelayer_shortcodes[tag]['holder'];
2188
  }
2189
 
2190
- var childrens = pagelayer_generate_sc(jQuery(sel).first());
 
 
 
 
 
 
 
 
 
 
2191
  if(childrens.length > 0){
2192
  txt = txt+childrens;
2193
  }
@@ -2271,6 +2289,12 @@ function pagelayer_unescapeHTML(str){
2271
  });
2272
  };
2273
 
 
 
 
 
 
 
2274
  // Sets up the leftbar
2275
  function pagelayer_leftbar(){
2276
 
@@ -2281,7 +2305,7 @@ function pagelayer_leftbar(){
2281
 
2282
  var html = '<div class="pagelayer-leftbar">'+
2283
  '<div class="pagelayer-leftbar-scroll">'+
2284
- '<div class="pagelayer-shortcodes">'+
2285
  '<div class="pagelayer-leftbar-search">'+
2286
  '<input class="pagelayer-search-field" />'+
2287
  '</div>';
@@ -2322,15 +2346,17 @@ function pagelayer_leftbar(){
2322
  }
2323
 
2324
  html += '</div>'+
2325
- '<div id="pagelayer-elpd" class="pagelayer-elpd"></div>'+
2326
- '<div id="pagelayer-history" class="pagelayer-history"></div>'+
 
2327
  '</div>'+
2328
  '</div>';
2329
 
2330
  pagelayer.$$('.pagelayer-leftbar-holder').prepend(html);
 
2331
 
2332
  pagelayer.$$('.pagelayer-leftbar-scroll').slimScroll({
2333
- height: '100%',
2334
  railVisible: false,
2335
  alwaysVisible: true,
2336
  color: '#000',
@@ -2372,8 +2398,109 @@ function pagelayer_leftbar(){
2372
  });
2373
  });
2374
 
 
 
 
 
 
 
 
 
 
2375
  };
2376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2377
  // Get the closest element and method
2378
  function pagelayer_near_by_ele(id, sc){
2379
 
@@ -2391,7 +2518,7 @@ function pagelayer_near_by_ele(id, sc){
2391
 
2392
  // If don't have previous element of the id element then get parent element
2393
  if(sc == "pl_row"){
2394
- args = {'method' : 'prepend', 'cEle' : '.entry-content'};
2395
  }else{
2396
 
2397
  // Get the parent element
@@ -2456,7 +2583,7 @@ function pagelayer_history_setup(force){
2456
  var force = force || false;
2457
 
2458
  // If the history tab is visible, only then setup
2459
- if(!pagelayer.$$('.pagelayer-history').is(':visible') && !force){
2460
  return;
2461
  }
2462
 
@@ -2559,7 +2686,7 @@ function pagelayer_history_setup(force){
2559
  url: pagelayer_ajax_url+'&action=pagelayer_apply_revision&revisionID='+revision_id,
2560
  type: 'post',
2561
  data: {
2562
- nonce: pagelayer_ajax_nonce,
2563
  'pagelayer-live' : 1,
2564
  },
2565
  success: function(response, status, xhr){
@@ -2568,7 +2695,7 @@ function pagelayer_history_setup(force){
2568
  if(obj['error']){
2569
  alert(obj['error']);
2570
  }else{
2571
- jQuery('.entry-content').html(obj['content']);
2572
  alert(obj['success']);
2573
  pagelayer_element_setup();
2574
  pagelayer_add_widget();
@@ -2588,7 +2715,7 @@ function pagelayer_history_setup(force){
2588
  jQuery.ajax({
2589
  url: pagelayer_ajax_url+'&action=pagelayer_delete_revision&revisionID='+revision_id,
2590
  type: 'post',
2591
- data: {nonce: pagelayer_ajax_nonce},
2592
  success: function(response, status, xhr){
2593
 
2594
  var obj = jQuery.parseJSON(response);
@@ -2637,7 +2764,7 @@ function pagelayer_get_revision(){
2637
  url: pagelayer_ajax_url+'&action=pagelayer_get_revision&postID='+pagelayer_postID,
2638
  type: 'post',
2639
  data: {
2640
- nonce: pagelayer_ajax_nonce,
2641
  },
2642
  //async:false,
2643
  success: function(response, status, xhr){
@@ -2849,10 +2976,8 @@ function pagelayer_bottombar(){
2849
 
2850
  holder.find('.pagelayer-history-icon').click(function(){
2851
  pagelayer.$$('.pagelayer-elpd-header').show().find('.pagelayer-elpd-title').text('Pagelayer History');
2852
- pagelayer.$$('.pagelayer-elpd').hide();
2853
  pagelayer.$$('.pagelayer-logo').hide();
2854
- pagelayer.$$('.pagelayer-shortcodes').hide();
2855
- pagelayer.$$('.pagelayer-history').show();
2856
  pagelayer_active = {};
2857
  pagelayer_history_setup();
2858
  });
@@ -3003,7 +3128,7 @@ function pagelayer_add_widget(){
3003
  '<p>Click here to add new row OR drag widgets</p>'+
3004
  '</div>';
3005
 
3006
- jQuery('.entry-content').append(html);
3007
 
3008
  var add_area = jQuery('.pagelayer-add-widget-area');
3009
 
@@ -3045,7 +3170,8 @@ function pagelayer_add_widget(){
3045
  }
3046
 
3047
  // Handle Click
3048
- add_area.on('click', function(){
 
3049
  add_sc('pl_col');
3050
  });
3051
 
19
 
20
  // Lets start
21
  jQuery(document).ready(function(){
22
+
23
+ pagelayer.blank_img = pagelayer_url+'/images/default-image.png';
24
 
25
  pagelayer_shortcodes['pl_inner_row'] = JSON.parse(JSON.stringify(pagelayer_shortcodes['pl_row']));
26
  pagelayer_shortcodes['pl_inner_row']['name'] = 'Inner Row';
227
 
228
  // For inner row we restrict to 1 level only
229
  }else if(tag == 'pl_inner_row'){
230
+ var ele_wrap = jQuery(ele).parents('.pagelayer-wrap-col');
231
+ if(ele_wrap.length == 1 && !jQuery(ele).hasClass('pagelayer-wrap-col')){
232
+ onWrap = jQuery(ele).closest('.pagelayer-wrap-ele,.pagelayer-wrap-col,.pagelayer-wrap-inner-row');
233
  }else{
234
  onWrap = jQuery(ele).closest('.pagelayer-wrap-inner-row');
235
  }
786
  render = render || false;
787
 
788
  // Loop through
789
+ jQuery(pagelayer_editable+' '+selector).each(function(){
790
 
791
  var jEle = jQuery(this);
792
 
946
  // Left Click
947
  function pagelayer_left_click(){
948
 
949
+ jQuery(pagelayer_editable).on('click', function(e){
950
 
951
  e.preventDefault();// Added by Jivan in Actions / Revisions version
952
 
985
 
986
  var $contextMenu = jQuery('.pagelayer-right-click-options');
987
 
988
+ jQuery(pagelayer_editable).on('contextmenu', function(e){
989
 
990
  var tEle = jQuery(e.target);
991
  var jEle = tEle.closest('.pagelayer-ele-wrap').children('.pagelayer-ele');
1061
  // Add the class to the button
1062
  pagelayer.$$('.pagelayer-mode-button').removeClass('fa-'+current).addClass('fa-'+mode);
1063
 
1064
+ // Add the class to the button
1065
+ pagelayer.$$('.pagelayer-prop-screen').removeClass('fa-'+current).addClass('fa-'+mode);
1066
+
1067
  // Trigger screen change if any
1068
  pagelayer.$$('.pagelayer-elp-screen').trigger('pagelayer-screen-changed');
1069
 
2077
  // Save the post
2078
  function pagelayer_save(){
2079
 
2080
+ var post = pagelayer_generate_sc(pagelayer_editable);//alert(post);return;
2081
  var pagelayerajaxurl = pagelayer_ajax_url+'&action=pagelayer_save_content&postID='+pagelayer_postID;
2082
  jQuery.ajax({
2083
  type: "POST",
2084
  url: pagelayerajaxurl,
2085
  data: {
2086
  pagelayer_update_content : post,
2087
+ pagelayer_nonce: pagelayer_ajax_nonce
2088
  },
2089
  success: function(response, status, xhr){
2090
  //alert(data);
2138
  // Find the type of tag
2139
  var tag = jEle.attr('pagelayer-tag');
2140
  var final_tag = tag;
2141
+ var closestEle = jQuery(this).closest('.pagelayer-col-holder');
2142
 
2143
+ // Define inner row | Note : Commented as we now have a new widget of type inner_row
2144
+ /*if(tag == 'pl_row' && closestEle.length > 0 && closestEle.closest(pagelayer_editable).length > 0){
2145
  final_tag = 'pl_inner_row';
2146
+ }*/
2147
+
2148
+ // Define inner column
2149
+ if(tag == 'pl_col' && closestEle.length > 0 && closestEle.closest(pagelayer_editable).length > 0){
2150
  final_tag = 'pl_inner_col';
2151
  }
2152
  //console.log(tag);
2195
  sel = sel+' '+pagelayer_shortcodes[tag]['holder'];
2196
  }
2197
 
2198
+ // Select the top-most element
2199
+ sel = jQuery(sel).first();
2200
+
2201
+ // Any child selector - Majorly for owl carousel
2202
+ // NOTE : Child selector should be very specific with immediate child selection at all levels
2203
+ var child_selector = false;
2204
+ if('child_selector' in pagelayer_shortcodes[tag]){
2205
+ sel = sel.find(pagelayer_shortcodes[tag]['child_selector']);
2206
+ }
2207
+
2208
+ var childrens = pagelayer_generate_sc(sel);
2209
  if(childrens.length > 0){
2210
  txt = txt+childrens;
2211
  }
2289
  });
2290
  };
2291
 
2292
+ // Show the required leftbar tab
2293
+ function pagelayer_leftbar_tab(tab){
2294
+ pagelayer.$$('.pagelayer-leftbar-tab').hide();
2295
+ pagelayer.$$('#'+tab).show();
2296
+ }
2297
+
2298
  // Sets up the leftbar
2299
  function pagelayer_leftbar(){
2300
 
2305
 
2306
  var html = '<div class="pagelayer-leftbar">'+
2307
  '<div class="pagelayer-leftbar-scroll">'+
2308
+ '<div id="pagelayer-shortcodes" class="pagelayer-leftbar-tab pagelayer-shortcodes">'+
2309
  '<div class="pagelayer-leftbar-search">'+
2310
  '<input class="pagelayer-search-field" />'+
2311
  '</div>';
2346
  }
2347
 
2348
  html += '</div>'+
2349
+ '<div id="pagelayer-elpd" class="pagelayer-leftbar-tab pagelayer-elpd"></div>'+
2350
+ '<div id="pagelayer-history" class="pagelayer-leftbar-tab pagelayer-history"></div>'+
2351
+ '<div id="pagelayer-post-settings" class="pagelayer-leftbar-tab pagelayer-post-settings"></div>'+
2352
  '</div>'+
2353
  '</div>';
2354
 
2355
  pagelayer.$$('.pagelayer-leftbar-holder').prepend(html);
2356
+ pagelayer_leftbar_tab('pagelayer-shortcodes');
2357
 
2358
  pagelayer.$$('.pagelayer-leftbar-scroll').slimScroll({
2359
+ height: '100%',
2360
  railVisible: false,
2361
  alwaysVisible: true,
2362
  color: '#000',
2398
  });
2399
  });
2400
 
2401
+ // On click Pagelayer setting icon
2402
+ pagelayer.$$('.pagelayer-settings-icon').click(function(){
2403
+ pagelayer.$$('.pagelayer-elpd-header').show().find('.pagelayer-elpd-title').text('Post Settings');
2404
+ pagelayer.$$('.pagelayer-logo').hide();
2405
+ pagelayer_leftbar_tab('pagelayer-post-settings');
2406
+ pagelayer_active = {};
2407
+ pagelayer_post_settings();
2408
+ });
2409
+
2410
  };
2411
 
2412
+ // Post setting holder
2413
+ function pagelayer_post_settings(){
2414
+
2415
+ // Start pagelayer settings holder
2416
+ var setting_holder = '<div class="pagelayer-post-settings-holder">';
2417
+
2418
+ // Start pagelayer settings content body
2419
+ setting_holder += '<div class="pagelayer-post-settings-acc">'+
2420
+ '<div class="pagelayer-post-settings-lable"><span>Title</span><i class="pagelayer-toggle fa"></i></div>'+
2421
+ '<div class="pagelayer-post-settings-fields">'+
2422
+ '<label for="post_title">Post Title</label> '+
2423
+ '<input type="text" name="post_title" value="'+ pagelayer_postTitle +'" id="title" spellcheck="true" autocomplete="off">'+
2424
+ '<button class="pagelayer-post-settings-apply" disabled>Apply</button>'+
2425
+ '</div>'+
2426
+ '</div>';
2427
+
2428
+ /*if(pagelayer_postType == pagelayer_cpt['name']){
2429
+ setting_holder += '<div class="pagelayer-post-settings-acc">'+
2430
+ '<div class="pagelayer-post-settings-lable"><span>Custom Template type</span><i class="pagelayer-toggle fa"></i></div>'+
2431
+ '<div class="pagelayer-post-settings-fields">'+ pagelayer_CPT_condi +
2432
+ '</div>'+
2433
+ '</div>';
2434
+ }*/
2435
+
2436
+ /* if(pagelayer_support_FI){
2437
+ setting_holder += '<div class="pagelayer-post-settings-acc">'+
2438
+ '<div class="pagelayer-post-settings-lable"><span>Featured Image</span><i class="pagelayer-toggle fa"></i></div>'+
2439
+ '<div class="pagelayer-post-settings-fields">Featured Image'+
2440
+ '</div>'+
2441
+ '</div>';
2442
+ } */
2443
+
2444
+ // End pagelayer settings content body
2445
+
2446
+ // End pagelayer settings holder
2447
+ setting_holder += '</div>';
2448
+ var holder = pagelayer.$$('#pagelayer-post-settings');
2449
+ holder.html(setting_holder);
2450
+
2451
+ // On change input fields enable the apply button
2452
+ holder.find('input, select, textarea').on('change input', function(){
2453
+ jQuery(this).closest('.pagelayer-post-settings-fields').find('.pagelayer-post-settings-apply').removeAttr('disabled');
2454
+ });
2455
+
2456
+ // On click the label toggle the setting field holder
2457
+ holder.find('.pagelayer-post-settings-lable').on('click', function(){
2458
+
2459
+ var lEle = jQuery(this);
2460
+ var lEle_next = lEle.next('.pagelayer-post-settings-fields');
2461
+
2462
+ holder.find('.pagelayer-post-settings-fields').each(function(){
2463
+ var fEle = jQuery(this);
2464
+ if(!fEle.is(lEle_next)){
2465
+ fEle.hide().prev('.pagelayer-post-settings-lable').find('.pagelayer-toggle').removeClass('pagelayer-open');
2466
+ }
2467
+ });
2468
+
2469
+ lEle.next('.pagelayer-post-settings-fields').toggle();
2470
+ lEle.find('.pagelayer-toggle').toggleClass('pagelayer-open');
2471
+
2472
+ });
2473
+
2474
+ // On click apply button
2475
+ holder.find('.pagelayer-post-settings-apply').click(function(){
2476
+ var fEle = jQuery(this).closest('.pagelayer-post-settings-fields');
2477
+ var data = fEle.find('input, select, textarea').serialize();
2478
+
2479
+ jQuery.ajax({
2480
+ url: pagelayer_ajax_url+'action=pagelayer_save_settings&postID='+pagelayer_postID,
2481
+ type: 'post',
2482
+ data : 'pagelayer_nonce='+ pagelayer_ajax_nonce +'&'+ data,
2483
+ success: function(response, status, xhr){
2484
+ //alert(data);
2485
+ var obj = jQuery.parseJSON(response);
2486
+ //alert(obj);
2487
+ if(obj['error']){
2488
+ alert(obj['error']);
2489
+ }else{
2490
+ alert(obj['success']);
2491
+ window.location.reload();
2492
+ }
2493
+ },
2494
+ error: function(errorThrown){
2495
+ console.log(errorThrown);
2496
+ }
2497
+ });
2498
+
2499
+ });
2500
+
2501
+ return;
2502
+ }
2503
+
2504
  // Get the closest element and method
2505
  function pagelayer_near_by_ele(id, sc){
2506
 
2518
 
2519
  // If don't have previous element of the id element then get parent element
2520
  if(sc == "pl_row"){
2521
+ args = {'method' : 'prepend', 'cEle' : pagelayer_editable};
2522
  }else{
2523
 
2524
  // Get the parent element
2583
  var force = force || false;
2584
 
2585
  // If the history tab is visible, only then setup
2586
+ if(!pagelayer.$$('#pagelayer-history').is(':visible') && !force){
2587
  return;
2588
  }
2589
 
2686
  url: pagelayer_ajax_url+'&action=pagelayer_apply_revision&revisionID='+revision_id,
2687
  type: 'post',
2688
  data: {
2689
+ pagelayer_nonce: pagelayer_ajax_nonce,
2690
  'pagelayer-live' : 1,
2691
  },
2692
  success: function(response, status, xhr){
2695
  if(obj['error']){
2696
  alert(obj['error']);
2697
  }else{
2698
+ jQuery(pagelayer_editable).html(obj['content']);
2699
  alert(obj['success']);
2700
  pagelayer_element_setup();
2701
  pagelayer_add_widget();
2715
  jQuery.ajax({
2716
  url: pagelayer_ajax_url+'&action=pagelayer_delete_revision&revisionID='+revision_id,
2717
  type: 'post',
2718
+ data: {pagelayer_nonce: pagelayer_ajax_nonce},
2719
  success: function(response, status, xhr){
2720
 
2721
  var obj = jQuery.parseJSON(response);
2764
  url: pagelayer_ajax_url+'&action=pagelayer_get_revision&postID='+pagelayer_postID,
2765
  type: 'post',
2766
  data: {
2767
+ pagelayer_nonce: pagelayer_ajax_nonce,
2768
  },
2769
  //async:false,
2770
  success: function(response, status, xhr){
2976
 
2977
  holder.find('.pagelayer-history-icon').click(function(){
2978
  pagelayer.$$('.pagelayer-elpd-header').show().find('.pagelayer-elpd-title').text('Pagelayer History');
 
2979
  pagelayer.$$('.pagelayer-logo').hide();
2980
+ pagelayer_leftbar_tab('pagelayer-history');
 
2981
  pagelayer_active = {};
2982
  pagelayer_history_setup();
2983
  });
3128
  '<p>Click here to add new row OR drag widgets</p>'+
3129
  '</div>';
3130
 
3131
+ jQuery(pagelayer_editable).append(html);
3132
 
3133
  var add_area = jQuery('.pagelayer-add-widget-area');
3134
 
3170
  }
3171
 
3172
  // Handle Click
3173
+ add_area.on('click', function(e){
3174
+ e.stopPropagation();
3175
  add_sc('pl_col');
3176
  });
3177
 
js/pagelayer-frontend.js CHANGED
@@ -18,7 +18,9 @@ jQuery(document).ready(function(){
18
  });
19
 
20
  // Setup any sliders
21
- pagelayer_pl_image_slider();
 
 
22
 
23
  jQuery('.pagelayer-accordion').each(function(){
24
  pagelayer_pl_accordion(jQuery(this));
@@ -51,8 +53,9 @@ jQuery(document).ready(function(){
51
  jQuery('.pagelayer-parallax-window img').each(function(){
52
  pagelayer_pl_row_parallax(jQuery(this));
53
  });
54
- pagelayer_stars();
55
 
 
 
56
  // We need to call the is visible thing to show the widgets loading effect
57
  if(jQuery('.pagelayer-counter-content,.pagelayer-progress-container').length > 0){
58
 
@@ -68,31 +71,6 @@ jQuery(document).ready(function(){
68
 
69
  new WOW({boxClass:'pagelayer-wow'}).init();
70
 
71
- // For Pagelayer Pro
72
- jQuery('.pagelayer-image_hotspot').each(function(){
73
- pagelayer_image_hotspot(jQuery(this));
74
- });
75
-
76
- jQuery('.pagelayer-countdown').each(function(){
77
- pagelayer_countdown(jQuery(this));
78
- });
79
-
80
- jQuery('.pagelayer-chart').each(function(){
81
- pagelayer_chart(jQuery(this));
82
- });
83
-
84
- jQuery('.pagelayer-table').each(function(){
85
- pagelayer_table(jQuery(this));
86
- });
87
-
88
- jQuery('.pagelayer-wp_menu').each(function(){
89
- pagelayer_primary_menu(jQuery(this));
90
- });
91
-
92
- jQuery('.pagelayer-search').each(function(){
93
- pagelayer_search_form(jQuery(this));
94
- });
95
-
96
  });
97
 
98
  // For automatic row change
@@ -199,64 +177,14 @@ function pagelayer_pl_modal_close(param){
199
  }
200
 
201
  // Setup the image slider
202
- function pagelayer_pl_image_slider(){
203
 
204
- jQuery('.pagelayer-image_slider').each(function(){
205
-
206
- var jEle = jQuery(this);
207
- var ul = jEle.find('.pagelayer-image-slider-ul');
208
-
209
- // No UL is impossible !
210
- if(ul.length < 1){
211
- return false;
212
- }
213
-
214
- var setup = ul.attr('pagelayer-setup');
215
-
216
- // Already setup ?
217
- if(setup && setup.length > 0){
218
- return true;
219
- }
220
-
221
- // Build the options
222
- var options = {};
223
-
224
- // Add required options
225
- options.adaptiveheight = false;
226
- options.autohover = false;
227
- options.loop = false;
228
- options.autodirection = 'next';
229
-
230
- jQuery.each(ul[0].attributes, function(index, att){
231
- if(att.name.match(/data\-/i)){
232
- options[att.name.substr(5)] = att.value;
233
- }
234
- });
235
-
236
- // Make the values correct
237
- for(var x in options){
238
- var val = options[x];
239
- if(val == 'true') val = true;
240
- if(val == 'false') val = false;
241
- if(jQuery.isNumeric(val)) val = parseInt(val);
242
-
243
- options[x] = val;
244
- }
245
-
246
- // Handle case sensitive issues
247
- options.autohover = options.autoHover;
248
- options.adaptiveHeight = options.adaptiveheight;
249
- options.autoDirection = options.autodirection;
250
-
251
- //console.log(options);
252
-
253
- // Enable Slippry
254
- ul.slippry(options);
255
-
256
- // Set that we have setup everything
257
- ul.attr('pagelayer-setup', 1);
258
-
259
- });
260
 
261
  }
262
 
@@ -631,245 +559,111 @@ function pagelayer_empty(mixed_var) {
631
  return false;
632
  };
633
 
634
- // For Pagelayer Pro
635
- // Show tooltip in image hotspot
636
- function pagelayer_image_hotspot(jEle){
637
-
638
- var tooltip_click = jEle.find('.pagelayer-icon-holder').hasClass('pagelayer-hotspots-click');
639
-
640
- if(tooltip_click){
641
- jEle.find('.pagelayer-hotspots-icon-holder').each(function(){
642
-
643
- jQuery(this).toggle(function(){
644
- jQuery(this).find('.pagelayer-tooltip-text').css({'visibility': 'visible'});
645
- }, function(){
646
- jQuery(this).find('.pagelayer-tooltip-text').css({'visibility': 'hidden'});
647
- });
648
-
649
- });
650
- }
651
- }
652
-
653
- var count_int ={};
654
- // Show countdown render
655
- function pagelayer_countdown(jEle){
656
 
657
- var expiry_date = jEle.find('.pagelayer-countdown-container').attr('pagelayer-expiry-date');
658
- var jEle_id = jEle.attr('pagelayer-id');
659
 
660
- if(!pagelayer_empty(expiry_date)){
661
-
662
- clearInterval(count_int[jEle_id]);
663
-
664
- count_int[jEle_id] = setInterval(function() {
665
-
666
- var countDownDate = new Date(expiry_date).getTime();
667
- var now = new Date().getTime();
668
- var distance = countDownDate - now;
669
-
670
- // Time calculations for days, hours, minutes and seconds
671
- var days = Math.floor(distance / (1000 * 60 * 60 * 24));
672
- var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
673
- var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
674
- var seconds = Math.floor((distance % (1000 * 60)) / 1000);
675
 
676
- jEle.find('.pagelayer-days-count').html(days);
677
- jEle.find('.pagelayer-hours-count').html(hours);
678
- jEle.find('.pagelayer-minutes-count').html(minutes);
679
- jEle.find('.pagelayer-seconds-count').html(seconds);
680
 
681
- // If the count down is over, write some text
682
- if (distance < 0) {
683
- clearInterval(count_int[jEle_id]);
684
- jEle.find('.pagelayer-countdown-container').html("EXPIRED");
685
- }
686
- }, 1000);
687
- }
688
-
689
- }
690
-
691
- // Show Chart render
692
- function pagelayer_chart(jEle){
693
-
694
- var pl_id = jEle.attr('pagelayer-id');
695
- var chart_holder = jEle.find('.pagelayer-chart-holder');
696
- var chart_type = chart_holder.attr('chart-type');
697
- var chart_colors = chart_holder.attr('chart-colors') || '';
698
- var chart_labels = jEle.find('.pagelayer-chart-holder').attr('chart-labels') || '';
699
- var chart_series = [];
700
- var tmp_series = '';
701
-
702
- chart_colors = chart_colors.split(',');
703
- var alphabets = 'abcdefghijklmnopqrstuvwxyz';
704
-
705
- for(var i =0; chart_colors.length > i; i++){
706
- var char_at = alphabets.charAt(i);
707
-
708
- if(i == 26){i=0;}
709
-
710
- var styles = '[pagelayer-id="'+pl_id+'"] .ct-series-'+char_at+' .ct-bar, .ct-series-'+char_at+' .ct-line, .ct-series-'+char_at+' .ct-point, .ct-series-'+char_at+' .ct-slice-donut {stroke : '+chart_colors[i]+'}'+
711
- '[pagelayer-id="'+pl_id+'"] .ct-series-'+char_at+' .ct-area, .ct-series-'+char_at+' .ct-slice-donut-solid, .ct-series-'+char_at+' .ct-slice-pie{fill : '+chart_colors[i]+'}';
712
-
713
- jEle.find('style')[0].append(styles);
714
- }
715
-
716
- chart_labels = chart_labels.split(',');
717
-
718
- jEle.find('.pagelayer-chart-child-holder').find('[chart-series]').each(function(){
719
- tmp_series = jQuery(this).attr('chart-series');
720
- tmp_series = tmp_series.split(',');
721
- chart_series.push(tmp_series);
722
- });
723
-
724
- var data = {
725
- labels: chart_labels,
726
- series: chart_series
727
- };
728
-
729
- var options = {};
730
-
731
- jQuery.each(chart_holder[0].attributes, function(index, att){
732
- if(att.name.match(/data\-/i)){
733
 
734
- var name = att.name.substr(5);
735
-
736
- for(var i = 0; name.length > i; i++){
737
- var index = name.search("_");
738
- if(index < 0)break;
739
- var s_char = name.charAt(index+1);
740
- var C_char = s_char.toUpperCase();
741
- name = name.replace("_"+s_char, C_char);
742
- }
743
-
744
- var value = att.value;
745
-
746
- if(value == "true"){
747
- value= true;
748
- }else if(value == "false"){
749
- value = false;
750
- }else if(jQuery.isNumeric(value)){
751
- value = parseInt(value);
752
- }
753
-
754
- options[name] = value;
755
  }
756
- });
757
-
758
- //console.log(options);
759
-
760
- var responsiveOptions = [];
761
-
762
- if(chart_type == "Pie"){
763
- data.series = tmp_series;
764
- }
765
-
766
- new Chartist[chart_type]('[pagelayer-id="'+pl_id+'"] .pagelayer-chart-holder', data, options, responsiveOptions);
767
- }
768
-
769
- // Show table render
770
- function pagelayer_table(jEle){
771
-
772
- var tHolder = jEle.find('.pagelayer-table-holder');
773
- var dHolder = jEle.find('.pagelayer-data-holder');
774
- var trEle = dHolder.find(".pagelayer-table_row");
775
- var tdlength = 0;
776
- tHolder.empty();
777
-
778
- /* trEle.each(function(){
779
- var tdEle = jQuery(this).find(".pagelayer-table_col").length;
780
- if(tdlength < tdEle){tdlength = tdEle}
781
- }) */;
782
-
783
- // Add rows
784
- trEle.each(function(){
785
- var this_trEle = jQuery(this);
786
- var tdEle = this_trEle.find(".pagelayer-table_col");
787
- var style_row = 'color:'+this_trEle.find('.pagelayer-table-row-holder').attr('data-trcolor')+';background-color:'+this_trEle.find('.pagelayer-table-row-holder').attr('data-trbg-color')+'';
788
-
789
- var html = '';
790
-
791
- // Add columns
792
- tdEle.each(function(){
793
- var td_data_Holder = jQuery(this).find('.pagelayer-col-data');
794
- var tdata = td_data_Holder.attr('data-td') || '';
795
- var t_tag = td_data_Holder.attr('data-tag') || '';
796
- var style_col = 'color:'+td_data_Holder.attr('data-color')+';background-color:'+td_data_Holder.attr('data-bg-color')+'';
797
- var col_attr = 'style="'+style_col+'" colspan="'+td_data_Holder.attr('data-colspan')+'" rowspan="'+td_data_Holder.attr('data-rowspan')+'"';
798
 
799
- html = html+'<'+t_tag +' '+col_attr+'>'+tdata+'</'+t_tag+'>';
800
- });
801
-
802
- /* if(tdlength > tdEle.length){
 
803
 
804
- var extra_td = tdlength - tdEle.length;
805
- for(var i=0; extra_td >i; i++){
806
- html = html+'<td></td>';
807
- }
808
- } */
809
-
810
- tHolder.append('<tr style="'+style_row+'">'+html+'</tr>');
811
  });
812
 
813
- }
814
-
815
- // Primary Menu Handler - Premium
816
- function pagelayer_primary_menu(jEle){
817
 
818
- var container = jEle.find('.pagelayer-wp-menu-container');
819
- var menu_bar = jEle.find('.pagelayer-primary-menu-bar').find('i.fa');
820
- var layout = jEle.find('.pagelayer-wp-menu-holder').data('layout');
821
- var submenu_ind = jEle.find('.pagelayer-wp-menu-holder').data('submenu_ind');
822
-
823
- if(layout == 'vertical'){
824
- menu_bar.hide();
 
 
 
 
 
 
 
 
 
 
 
825
  }
826
 
827
- // Menu toggle
828
- jQuery(menu_bar).unbind('click');
829
- jQuery(menu_bar).click(function(){
830
- jQuery(container).toggleClass('pagelayer-togglt-on');
831
- if(jQuery(container).hasClass('pagelayer-togglt-on')){
832
- jQuery(this).removeClass('fa-bars');
833
- jQuery(this).addClass('fa-times');
834
- }else{
835
- jQuery(this).addClass('fa-bars');
836
- jQuery(this).removeClass('fa-times');
 
 
 
837
  }
838
- });
839
-
840
- // If has sub-menu the as icon
841
- var after_icons = '<span class="after-icon fa fa-'+submenu_ind+'"></span>';
842
- jQuery(container).find('ul.menu li ul.sub-menu').parent().children('a').append(after_icons);
843
-
844
- // Toggle Sub nav
845
- var after_icon = jQuery(container).find('ul.menu li.menu-item-has-children .after-icon');
846
 
847
- after_icon.unbind('click');
848
- after_icon.click(function(e){
849
- e.preventDefault();
850
- if(window.matchMedia("(max-width: 782px)").matches || layout != 'horizontal'){
851
- jQuery(this).closest('li').toggleClass('active-sub-menu');
852
- }else{
853
- jQuery(this).closest('li').removeClass('active-sub-menu');
854
- }
855
- });
 
 
 
856
 
 
857
  }
858
 
859
- // Search Form handler - Premium
860
- function pagelayer_search_form(jEle){
861
 
862
- // In full screen mode set auto complete offscreenBuffering
863
- jEle.find('.pagelayer-search-full-screen form').attr('autocomplete', 'off');
 
 
 
 
 
864
 
865
- jEle.find('.pagelayer-search-toggle').click(function(){
866
- jEle.find('.pagelayer-search-fields').toggleClass('show');
867
- });
868
 
869
- jEle.find('.pagelayer-search-fields').click(function(e){
870
- e = window.event || e;
871
- if(this === e.target) {
872
- jQuery(this).removeClass('show');
873
- }
874
- });
875
- }
18
  });
19
 
20
  // Setup any sliders
21
+ jQuery('.pagelayer-image_slider').each(function(){
22
+ pagelayer_pl_image_slider(jQuery(this));
23
+ });
24
 
25
  jQuery('.pagelayer-accordion').each(function(){
26
  pagelayer_pl_accordion(jQuery(this));
53
  jQuery('.pagelayer-parallax-window img').each(function(){
54
  pagelayer_pl_row_parallax(jQuery(this));
55
  });
 
56
 
57
+ pagelayer_stars();
58
+
59
  // We need to call the is visible thing to show the widgets loading effect
60
  if(jQuery('.pagelayer-counter-content,.pagelayer-progress-container').length > 0){
61
 
71
 
72
  new WOW({boxClass:'pagelayer-wow'}).init();
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  });
75
 
76
  // For automatic row change
177
  }
178
 
179
  // Setup the image slider
180
+ function pagelayer_pl_image_slider(jEle){
181
 
182
+ var ul = jQuery(jEle.find('.pagelayer-image-slider-ul'));
183
+
184
+ // Build the options
185
+ var options = pagelayer_fetch_dataAttrs(ul, 'data-slides-');
186
+
187
+ pagelayer_owl_init(jEle, ul, options);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
 
189
  }
190
 
559
  return false;
560
  };
561
 
562
+ function pagelayer_fetch_dataAttrs(ele, prefix){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
 
564
+ var options = {};
 
565
 
566
+ jQuery.each(ele.get(0).attributes, function(i, attrib){
567
+
568
+ //console.log(attrib);
569
+ if(attrib.name.includes(prefix)){
 
 
 
 
 
 
 
 
 
 
 
570
 
571
+ var opt_name = attrib.name.substring(prefix.length);
 
 
 
572
 
573
+ // Check for any Uppercase attribute
574
+ if(opt_name.includes('-')){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575
 
576
+ opt_name = opt_name.split('-');
577
+ //console.log(opt_name);
578
+ var opt_arr = [];
579
+ jQuery.each(opt_name, function(key, value) {
580
+ if(key != 0){
581
+ opt_arr.push(value.charAt(0).toUpperCase() + value.slice(1));
582
+ }else{
583
+ opt_arr.push(value);
584
+ }
585
+ });
586
+ //console.log(opt_arr);
587
+ opt_name = opt_arr.join('');
 
 
 
 
 
 
 
 
 
588
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
589
 
590
+ // Make the values correct
591
+ var val = attrib.value;
592
+ if(val == 'true') val = true;
593
+ if(val == 'false') val = false;
594
+ if(jQuery.isNumeric(val)) val = parseInt(val);
595
 
596
+ options[opt_name] = val;
597
+ }
 
 
 
 
 
598
  });
599
 
600
+ //console.log(options);
 
 
 
601
 
602
+ if(options['controls']){
603
+ switch(options['controls']){
604
+ case 'arrows':
605
+ options['nav'] = true;
606
+ options['dots'] = false;
607
+ break;
608
+ case 'pager':
609
+ options['dots'] = true;
610
+ options['nav'] = false;
611
+ break;
612
+ case 'none':
613
+ options['nav'] = false;
614
+ options['dots'] = false;
615
+ break;
616
+ }
617
+ }else{
618
+ options['nav'] = true;
619
+ options['dots'] = true;
620
  }
621
 
622
+ if(options['animateIn']){
623
+ switch(options['controls']){
624
+ case 'horizontal':
625
+ options['animateIn'] = 'slideInLeft';
626
+ break;
627
+ case 'vertical':
628
+ options['animateIn'] = 'slideInDown';
629
+ break;
630
+ case 'kenburns':
631
+ options['animateIn'] = 'zoomIn';
632
+ break;
633
+ default:
634
+ options['animateIn'] = options['animateIn'];
635
  }
636
+ }
 
 
 
 
 
 
 
637
 
638
+ if(!options['items']){
639
+ options['items'] = 1;
640
+ }
641
+ options['responsive'] = {
642
+ 0:{items: 1},
643
+ 500:{items: options['items']}
644
+ }
645
+ // If we are in editor don't loop the Owl items
646
+ if (window.location.href.indexOf('pagelayer-live=1') > -1) {
647
+ //console.log('here');
648
+ options['loop'] = false;
649
+ }
650
 
651
+ return options;
652
  }
653
 
654
+ function pagelayer_owl_init(jEle, ul, options){
 
655
 
656
+ //console.log(options);
657
+ var setup = jEle.attr('pagelayer-setup');
658
+
659
+ // Already setup ?
660
+ if(setup && setup.length > 0){
661
+ return true;
662
+ }
663
 
664
+ ul.pagelayerOwlCarousel(options);
 
 
665
 
666
+ // Set that we have setup everything
667
+ jEle.attr('pagelayer-setup', 1);
668
+
669
+ }
 
 
 
js/properties.js CHANGED
@@ -165,11 +165,9 @@ function pagelayer_elpd_setup(){
165
  pagelayer_elpd = pagelayer.$$('#pagelayer-elpd');
166
 
167
  pagelayer.$$('.pagelayer-elpd-close').on('click', function(){
168
- pagelayer_elpd.hide();
169
  pagelayer.$$('.pagelayer-elpd-header').hide();
170
- pagelayer.$$('.pagelayer-shortcodes').show();
171
  pagelayer.$$('.pagelayer-logo').show();
172
- pagelayer.$$('.pagelayer-history').hide();
173
  pagelayer.$$('.pagelayer-elpd-body').removeAttr('pagelayer-element-id').empty();
174
  pagelayer_active = {};
175
  });
@@ -208,11 +206,9 @@ function pagelayer_elpd_open(jEle){
208
  // Set the position of the element and show
209
  //pagelayer_elpd.css('left', pagelayer_elpd_pos[0]);
210
  //pagelayer_elpd.css('top', pagelayer_elpd_pos[1]);
211
- pagelayer_elpd.show();
212
  pagelayer.$$('.pagelayer-elpd-header').show();
213
  pagelayer.$$('.pagelayer-logo').hide();
214
- pagelayer.$$('.pagelayer-shortcodes').hide();
215
- pagelayer.$$('.pagelayer-history').hide();
216
 
217
  // The property holder
218
  var holder = pagelayer.$$('.pagelayer-elpd-body');
@@ -589,7 +585,7 @@ function pagelayer_elpd_widget_settings(el, sec, onfocus){
589
 
590
  var post = {};
591
  post['action'] = 'pagelayer_wp_widget';
592
- post['nonce'] = pagelayer_ajax_nonce;
593
  post['tag'] = el.tag;
594
  post['pagelayer-id'] = el.id;
595
 
@@ -711,11 +707,12 @@ function pagelayer_elp_label(row, prop){
711
  '<i class="fa fa-desktop" />'+
712
  '<i class="fa fa-tablet" />'+
713
  '<i class="fa fa-mobile" />'+
 
714
  '</div>';
715
  label.append(screen);
716
 
717
  // Set screen mode on change
718
- label.find('.fa').on('click', function(){
719
  var mode = 'desktop';
720
  var jEle = jQuery(this);
721
 
@@ -730,12 +727,14 @@ function pagelayer_elp_label(row, prop){
730
  }
731
 
732
  pagelayer_set_screen_mode(mode);
 
733
 
734
  });
735
 
736
  // On change of screen handle the values
737
  label.find('.pagelayer-elp-screen').on('pagelayer-screen-changed', function(e){
738
 
 
739
  var mode = pagelayer_get_screen_mode();
740
  var modes = {desktop: '', tablet: '_tablet', mobile: '_mobile'};
741
 
@@ -764,6 +763,10 @@ function pagelayer_elp_label(row, prop){
764
  // The main property
765
  fn(row, prop);
766
 
 
 
 
 
767
  })
768
 
769
  }
@@ -806,6 +809,16 @@ function pagelayer_elp_label(row, prop){
806
 
807
  };
808
 
 
 
 
 
 
 
 
 
 
 
809
  // Create the Description
810
  function pagelayer_elp_desc(row, label){
811
  //row.append('<div class="pagelayer-elp-desc">'+label+'</div>');
@@ -821,7 +834,7 @@ function pagelayer_elp_text(row, prop){
821
  row.append(div);
822
 
823
  row.find('input').on('input', function(){
824
- _pagelayer_set_atts(row, pagelayer_trim(jQuery(this).val()));// Save and Render
825
  });
826
 
827
  };
@@ -873,6 +886,66 @@ function pagelayer_elp_select(row, prop){
873
 
874
  }
875
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
876
  function _pagelayer_trigger_anim(row, anim){
877
  var id = row.closest('[pagelayer-element-id]').attr('pagelayer-element-id');
878
  var classList = $('[pagelayer-id='+id+']').attr('class');
@@ -957,7 +1030,7 @@ function pagelayer_elp_image(row, prop){
957
 
958
  var style = '';
959
  var tmp = prop.c['name']+'-url';
960
- var def = pagelayer_url+'/images/default-image.png';
961
  var src = (tmp in prop.el.tmp) ? prop.el.tmp[tmp] : def;
962
 
963
  // Set temp image
@@ -1459,7 +1532,8 @@ function pagelayer_elp_editor(row, prop){
1459
  ['viewHTML'],
1460
  ['undo', 'redo'], // Only supported in Blink browsers
1461
  ['formatting'],
1462
- ['foreColor', 'backColor'],
 
1463
  ['strong', 'em', 'del'],
1464
  ['superscript', 'subscript'],
1465
  ['link'],
@@ -1616,7 +1690,7 @@ function pagelayer_elp_icon(row, prop){
1616
  })[0].cssRules, function(r) {
1617
 
1618
  if(r.cssText.indexOf('::before { content: ') > 0){
1619
- return r.cssText.substring(4,r.cssText.indexOf('::'));
1620
  }
1621
  return null;
1622
 
165
  pagelayer_elpd = pagelayer.$$('#pagelayer-elpd');
166
 
167
  pagelayer.$$('.pagelayer-elpd-close').on('click', function(){
168
+ pagelayer_leftbar_tab('pagelayer-shortcodes');
169
  pagelayer.$$('.pagelayer-elpd-header').hide();
 
170
  pagelayer.$$('.pagelayer-logo').show();
 
171
  pagelayer.$$('.pagelayer-elpd-body').removeAttr('pagelayer-element-id').empty();
172
  pagelayer_active = {};
173
  });
206
  // Set the position of the element and show
207
  //pagelayer_elpd.css('left', pagelayer_elpd_pos[0]);
208
  //pagelayer_elpd.css('top', pagelayer_elpd_pos[1]);
209
+ pagelayer_leftbar_tab('pagelayer-elpd');
210
  pagelayer.$$('.pagelayer-elpd-header').show();
211
  pagelayer.$$('.pagelayer-logo').hide();
 
 
212
 
213
  // The property holder
214
  var holder = pagelayer.$$('.pagelayer-elpd-body');
585
 
586
  var post = {};
587
  post['action'] = 'pagelayer_wp_widget';
588
+ post['pagelayer_nonce'] = pagelayer_ajax_nonce;
589
  post['tag'] = el.tag;
590
  post['pagelayer-id'] = el.id;
591
 
707
  '<i class="fa fa-desktop" />'+
708
  '<i class="fa fa-tablet" />'+
709
  '<i class="fa fa-mobile" />'+
710
+ '<i class="pagelayer-prop-screen fa fa-desktop" />'+
711
  '</div>';
712
  label.append(screen);
713
 
714
  // Set screen mode on change
715
+ label.find('.fa:not(.pagelayer-prop-screen)').on('click', function(){
716
  var mode = 'desktop';
717
  var jEle = jQuery(this);
718
 
727
  }
728
 
729
  pagelayer_set_screen_mode(mode);
730
+ label.find('.pagelayer-elp-screen .fa').removeClass('open');
731
 
732
  });
733
 
734
  // On change of screen handle the values
735
  label.find('.pagelayer-elp-screen').on('pagelayer-screen-changed', function(e){
736
 
737
+ label.find('.pagelayer-elp-screen .fa').removeClass('open');
738
  var mode = pagelayer_get_screen_mode();
739
  var modes = {desktop: '', tablet: '_tablet', mobile: '_mobile'};
740
 
763
  // The main property
764
  fn(row, prop);
765
 
766
+ });
767
+
768
+ label.find('.pagelayer-elp-screen .pagelayer-prop-screen').on('click', function(e){
769
+ jQuery(this).siblings().toggleClass('open');
770
  })
771
 
772
  }
809
 
810
  };
811
 
812
+ // Create the Label
813
+ function pagelayer_elp_heading(row, prop){
814
+ //row.append('<div class="pagelayer-elp-heading">'+prop['label']+'</div>');
815
+ }
816
+
817
+ // Create the Label
818
+ function pagelayer_elp_heading_ui(row, prop){
819
+ row.append('<div class="pagelayer-elp-heading">'+prop['label']+'</div>');
820
+ }
821
+
822
  // Create the Description
823
  function pagelayer_elp_desc(row, label){
824
  //row.append('<div class="pagelayer-elp-desc">'+label+'</div>');
834
  row.append(div);
835
 
836
  row.find('input').on('input', function(){
837
+ _pagelayer_set_atts(row, jQuery(this).val());// Save and Render
838
  });
839
 
840
  };
886
 
887
  }
888
 
889
+ // The MultiSelect property
890
+ function pagelayer_elp_multiselect(row, prop){
891
+
892
+ var selection = [];
893
+ if(!pagelayer_empty(prop.c['val'])){
894
+ //selection = JSON.parse(prop.c['val']);
895
+ selection = prop.c['val'].split(',');
896
+ }
897
+
898
+ var options = '';
899
+ var option = function(val, lang){
900
+ var selected = (jQuery.inArray(val,selection) == -1 ? '' : 'selected="selected"');
901
+ return '<li class="pagelayer-elp-multiselect-option" data-val="'+val+'" '+selected+'>'+lang+'</li>';
902
+ }
903
+
904
+ var show_sel = function(val){
905
+ var sel_html = '';
906
+ jQuery.each(val, function(index, value){
907
+ sel_html += '<span class="pagelayer-elp-multiselect-selected">'+prop['list'][value]+'</span>';
908
+ });
909
+ return sel_html;
910
+ }
911
+
912
+ for (x in prop['list']){
913
+ options += option(x, prop['list'][x]);
914
+ }
915
+
916
+ var div = '<div class="pagelayer-elp-multiselect-div pagelayer-elp-pos-rel">'+
917
+ '<div class="pagelayer-elp-multiselect">'+show_sel(selection)+'</div>'+
918
+ '<ul class="pagelayer-elp-multiselect-ul" name="'+prop.c['name']+'">'+options+'</ul>'+
919
+ '</div>';
920
+
921
+ row.append(div);
922
+
923
+ row.find('.pagelayer-elp-multiselect-option').on('click', function(){
924
+
925
+ var sVal = jQuery(this).data('val');
926
+
927
+ if(jQuery.inArray(sVal,selection) == -1){
928
+ selection.push(sVal);
929
+ row.find('[data-val="'+sVal+'"]').attr('selected','selected');
930
+ }else{
931
+ selection.splice(jQuery.inArray(sVal,selection),1);
932
+ row.find('[data-val="'+sVal+'"]').removeAttr('selected');
933
+ }
934
+
935
+ //_pagelayer_set_atts(row,JSON.stringify(selection));// Save and Render
936
+ _pagelayer_set_atts(row, selection.join(','));// Save and Render
937
+
938
+ row.find('.pagelayer-elp-multiselect').html(show_sel(selection));
939
+
940
+ });
941
+
942
+ // Open the selector
943
+ row.find('.pagelayer-elp-multiselect').on('click', function(){
944
+ row.find('.pagelayer-elp-multiselect-ul').slideToggle();
945
+ });
946
+
947
+ }
948
+
949
  function _pagelayer_trigger_anim(row, anim){
950
  var id = row.closest('[pagelayer-element-id]').attr('pagelayer-element-id');
951
  var classList = $('[pagelayer-id='+id+']').attr('class');
1030
 
1031
  var style = '';
1032
  var tmp = prop.c['name']+'-url';
1033
+ var def = pagelayer.blank_img;
1034
  var src = (tmp in prop.el.tmp) ? prop.el.tmp[tmp] : def;
1035
 
1036
  // Set temp image
1532
  ['viewHTML'],
1533
  ['undo', 'redo'], // Only supported in Blink browsers
1534
  ['formatting'],
1535
+ ['fontfamily'],
1536
+ ['foreColor', 'backColor',],
1537
  ['strong', 'em', 'del'],
1538
  ['superscript', 'subscript'],
1539
  ['link'],
1690
  })[0].cssRules, function(r) {
1691
 
1692
  if(r.cssText.indexOf('::before { content: ') > 0){
1693
+ return r.cssText.substring(4,r.cssText.indexOf('::'));
1694
  }
1695
  return null;
1696
 
js/slippry.min.js DELETED
@@ -1,14 +0,0 @@
1
- /** @preserve
2
- *
3
- * slippry v1.4.0 - Responsive content slider for jQuery
4
- * http://slippry.com
5
- *
6
- * Authors: Lukas Jakob Hafner - @saftsaak
7
- * Thomas Hurd - @SeenNotHurd
8
- *
9
- * Copyright 2016, booncon oy - http://booncon.com
10
- *
11
- *
12
- * Released under the MIT license - http://opensource.org/licenses/MIT
13
- */
14
- !function(a){"use strict";var b;b={slippryWrapper:'<div class="pagelayer-imgsl-box" />',slideWrapper:'<div class="pagelayer-imgsl-slides-wrap" />',slideCrop:'<div class="pagelayer-imgsl-slides-crop" />',boxClass:"pagelayer-imgsl-list",elements:"li",activeClass:"pagelayer-imgsl-active",fillerClass:"pagelayer-imgsl-filler",loadingClass:"pagelayer-imgsl-loading",adaptiveHeight:!0,start:1,loop:!0,captionsSrc:"img",captions:"overlay",captionsEl:".pagelayer-imgsl-caption",initSingle:!0,responsive:!0,preload:"visible",pager:!0,pagerClass:"pagelayer-imgsl-pager",controls:!0,controlClass:"pagelayer-imgsl-controls",prevClass:"pagelayer-imgsl-prev",prevText:"Previous",nextClass:"pagelayer-imgsl-next",nextText:"Next",hideOnEnd:!0,transition:"fade",kenZoom:120,slideMargin:0,transClass:"transition",speed:800,easing:"swing",continuous:!0,useCSS:!0,auto:!0,autoDirection:"next",autoHover:!0,autoHoverDelay:100,autoDelay:500,pause:4e3,onSliderLoad:function(){return this},onSlideBefore:function(){return this},onSlideAfter:function(){return this}},a.fn.slippry=function(c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A;return e=this,0===e.length?this:e.length>1?(e.each(function(){a(this).slippry(c)}),this):(d={},d.vars={},n=function(){var a,b,c;b=document.createElement("div"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",MSTransition:"msTransitionEnd",OTransition:"oTransitionEnd",transition:"transitionEnd transitionend"};for(a in c)if(void 0!==b.style[a])return c[a]},w=function(){var a=document.createElement("div"),b=["Khtml","Ms","O","Moz","Webkit"],c=b.length;return function(d){if(d in a.style)return!0;for(d=d.replace(/^[a-z]/,function(a){return a.toUpperCase()});c--;)if(b[c]+d in a.style)return!0;return!1}}(),z=function(b,c){var d,e,f,g;return d=c.split("."),e=a(b),f="",g="",a.each(d,function(a,b){b.indexOf("#")>=0?f+=b.replace(/^#/,""):g+=b+" "}),f.length&&e.attr("id",f),g.length&&e.attr("class",a.trim(g)),e},A=function(){var a,b,c,e;c={},e={},a=100-d.settings.kenZoom,e.width=d.settings.kenZoom+"%",d.vars.active.index()%2===0?(e.left=a+"%",e.top=a+"%",c.left="0%",c.top="0%"):(e.left="0%",e.top="0%",c.left=a+"%",c.top=a+"%"),b=d.settings.pause+2*d.settings.speed,d.vars.active.css(e),d.vars.active.animate(c,{duration:b,easing:d.settings.easing,queue:!1})},l=function(){d.vars.fresh?(d.vars.slippryWrapper.removeClass(d.settings.loadingClass),d.vars.fresh=!1,d.settings.auto&&e.startAuto(),d.settings.useCSS||"kenburns"!==d.settings.transition||A(),d.settings.onSliderLoad.call(void 0,d.vars.active.index())):a("."+d.settings.fillerClass,d.vars.slideWrapper).addClass("ready")},q=function(b,c){var e,f,g;e=b/c,f=1/e*100+"%",g=a("."+d.settings.fillerClass,d.vars.slideWrapper),g.css({paddingTop:f}),l()},g=function(b){var c,d;void 0!==a("img",b).attr("src")?a("<img />").on("load",function(){c=b.width(),d=b.height(),q(c,d)}).attr("src",a("img",b).attr("src")):(c=b.width(),d=b.height(),q(c,d))},f=function(){if(0===a("."+d.settings.fillerClass,d.vars.slideWrapper).length&&d.vars.slideWrapper.append(a('<div class="'+d.settings.fillerClass+'" />')),d.settings.adaptiveHeight===!0)g(a("."+d.settings.activeClass,e));else{var b,c,f;c=0,f=0,a(d.vars.slides).each(function(){a(this).height()>c&&(b=a(this),c=b.height()),f+=1,f===d.vars.count&&(void 0===b&&(b=a(a(d.vars.slides)[0])),g(b))})}},p=function(){d.settings.pager&&(a("."+d.settings.pagerClass+" li",d.vars.slippryWrapper).removeClass(d.settings.activeClass),a(a("."+d.settings.pagerClass+" li",d.vars.slippryWrapper)[d.vars.active.index()]).addClass(d.settings.activeClass))},u=function(){!d.settings.loop&&d.settings.hideOnEnd&&(a("."+d.settings.prevClass,d.vars.slippryWrapper)[d.vars.first?"hide":"show"](),a("."+d.settings.nextClass,d.vars.slippryWrapper)[d.vars.last?"hide":"show"]())},i=function(){var b,c;d.settings.captions!==!1&&(b="img"!==d.settings.captionsSrc?d.vars.active.attr("title"):void 0!==a("img",d.vars.active).attr("title")?a("img",d.vars.active).attr("title"):a("img",d.vars.active).attr("alt"),c="custom"!==d.settings.captions?a(d.settings.captionsEl,d.vars.slippryWrapper):a(d.settings.captionsEl),void 0!==b&&""!==b?c.html(b).show():c.hide())},e.startAuto=function(){void 0===d.vars.timer&&void 0===d.vars.delay&&(d.vars.delay=window.setTimeout(function(){d.vars.autodelay=!1,d.vars.timer=window.setInterval(function(){d.vars.trigger="auto",t(d.settings.autoDirection)},d.settings.pause)},d.vars.autodelay?d.settings.autoHoverDelay:d.settings.autoDelay),d.settings.autoHover&&d.vars.slideWrapper.unbind("mouseenter").unbind("mouseleave").bind("mouseenter",function(){void 0!==d.vars.timer?(d.vars.hoverStop=!0,e.stopAuto()):d.vars.hoverStop=!1}).bind("mouseleave",function(){d.vars.hoverStop&&(d.vars.autodelay=!0,e.startAuto())}))},e.stopAuto=function(){window.clearInterval(d.vars.timer),d.vars.timer=void 0,window.clearTimeout(d.vars.delay),d.vars.delay=void 0},e.refresh=function(){d.vars.slides.removeClass(d.settings.activeClass),d.vars.active.addClass(d.settings.activeClass),d.settings.responsive?f():l(),u(),p(),i()},s=function(){e.refresh()},m=function(){d.vars.moving=!1,d.vars.active.removeClass(d.settings.transClass),d.vars.fresh||d.vars.old.removeClass("pagelayer-imgsl-ken"),d.vars.old.removeClass(d.settings.transClass),d.settings.onSlideAfter.call(void 0,d.vars.active,d.vars.old.index(),d.vars.active.index()),d.settings.auto&&(d.vars.hoverStop&&void 0!==d.vars.hoverStop||e.startAuto())},r=function(){var b,c,f,g,h,i,j;d.settings.onSlideBefore.call(void 0,d.vars.active,d.vars.old.index(),d.vars.active.index()),d.settings.transition!==!1?(d.vars.moving=!0,"fade"===d.settings.transition||"kenburns"===d.settings.transition?(d.vars.fresh?(d.settings.useCSS?d.vars.slides.css({transitionDuration:d.settings.speed+"ms",opacity:0}):d.vars.slides.css({opacity:0}),d.vars.active.css("opacity",1),"kenburns"===d.settings.transition&&d.settings.useCSS&&(h=d.settings.pause+2*d.settings.speed,d.vars.slides.css({animationDuration:h+"ms"}),d.vars.active.addClass("pagelayer-imgsl-ken")),m()):d.settings.useCSS?(d.vars.old.addClass(d.settings.transClass).css("opacity",0),d.vars.active.addClass(d.settings.transClass).css("opacity",1),"kenburns"===d.settings.transition&&d.vars.active.addClass("pagelayer-imgsl-ken"),a(window).off("focus").on("focus",function(){d.vars.moving&&d.vars.old.trigger(d.vars.transition)}),d.vars.old.one(d.vars.transition,function(){return m(),this})):("kenburns"===d.settings.transition&&A(),d.vars.old.addClass(d.settings.transClass).animate({opacity:0},d.settings.speed,d.settings.easing,function(){m()}),d.vars.active.addClass(d.settings.transClass).css("opacity",0).animate({opacity:1},d.settings.speed,d.settings.easing)),s()):("horizontal"===d.settings.transition||"vertical"===d.settings.transition)&&(i="horizontal"===d.settings.transition?"left":"top",b="-"+d.vars.active.index()*(100+d.settings.slideMargin)+"%",d.vars.fresh?(e.css(i,b),m()):(j={},d.settings.continuous&&(!d.vars.jump||"controls"!==d.vars.trigger&&"auto"!==d.vars.trigger||(c=!0,g=b,d.vars.first?(f=0,d.vars.active.css(i,d.vars.count*(100+d.settings.slideMargin)+"%"),b="-"+d.vars.count*(100+d.settings.slideMargin)+"%"):(f=(d.vars.count-1)*(100+d.settings.slideMargin)+"%",d.vars.active.css(i,-(100+d.settings.slideMargin)+"%"),b=100+d.settings.slideMargin+"%"))),d.vars.active.addClass(d.settings.transClass),d.settings.useCSS?(j[i]=b,j.transitionDuration=d.settings.speed+"ms",e.addClass(d.settings.transition),e.css(j),a(window).off("focus").on("focus",function(){d.vars.moving&&e.trigger(d.vars.transition)}),e.one(d.vars.transition,function(){return e.removeClass(d.settings.transition),c&&(d.vars.active.css(i,f),j[i]=g,j.transitionDuration="0ms",e.css(j)),m(),this})):(j[i]=b,e.stop().animate(j,d.settings.speed,d.settings.easing,function(){return c&&(d.vars.active.css(i,f),e.css(i,g)),m(),this}))),s())):(s(),m())},v=function(a){d.vars.first=d.vars.last=!1,"prev"===a||0===a?d.vars.first=!0:("next"===a||a===d.vars.count-1)&&(d.vars.last=!0)},t=function(b){var c,f;d.vars.moving||("auto"!==d.vars.trigger&&e.stopAuto(),c=d.vars.active.index(),"prev"===b?(f=b,c>0?b=c-1:d.settings.loop&&(b=d.vars.count-1)):"next"===b?(f=b,c<d.vars.count-1?b=c+1:d.settings.loop&&(b=0)):(b-=1,f=c>b?"prev":"next"),d.vars.jump=!1,"prev"===b||"next"===b||b===c&&!d.vars.fresh||(v(b),d.vars.old=d.vars.active,d.vars.active=a(d.vars.slides[b]),(0===c&&"prev"===f||c===d.vars.count-1&&"next"===f)&&(d.vars.jump=!0),r()))},e.goToSlide=function(a){d.vars.trigger="external",t(a)},e.goToNextSlide=function(){d.vars.trigger="external",t("next")},e.goToPrevSlide=function(){d.vars.trigger="external",t("prev")},j=function(){if(d.settings.pager&&d.vars.count>1){var b,c,e;for(b=d.vars.slides.length,e=a('<ul class="'+d.settings.pagerClass+'" />'),c=1;b+1>c;c+=1)e.append(a("<li />").append(a('<a href="#'+c+'">'+c+"</a>")));d.vars.slippryWrapper.append(e),a("."+d.settings.pagerClass+" a",d.vars.slippryWrapper).click(function(){return d.vars.trigger="pager",t(parseInt(this.hash.split("#")[1],10)),!1}),p()}},k=function(){d.settings.controls&&d.vars.count>1&&(d.vars.slideWrapper.append(a('<ul class="'+d.settings.controlClass+'" />').append('<li class="'+d.settings.prevClass+'"><a href="#prev">'+d.settings.prevText+"</a></li>").append('<li class="'+d.settings.nextClass+'"><a href="#next">'+d.settings.nextText+"</a></li>")),a("."+d.settings.controlClass+" a",d.vars.slippryWrapper).click(function(){return d.vars.trigger="controls",t(this.hash.split("#")[1]),!1}),u())},o=function(){d.settings.captions!==!1&&("overlay"===d.settings.captions?d.vars.slideWrapper.append(a('<div class="pagelayer-imgsl-caption-wrap" />').html(z("<div />",d.settings.captionsEl))):"below"===d.settings.captions&&d.vars.slippryWrapper.append(a('<div class="pagelayer-imgsl-caption-wrap" />').html(z("<div />",d.settings.captionsEl))))},y=function(){t(d.vars.active.index()+1)},x=function(b){var c,e,f,g;return g="all"===d.settings.preload?b:d.vars.active,f=a("img, iframe",g),c=f.length,0===c?void y():(e=0,void f.each(function(){a(this).one("load error",function(){++e===c&&y()}).each(function(){this.complete&&a(this).trigger("load")})}))},e.getCurrentSlide=function(){return d.vars.active},e.getSlideCount=function(){return d.vars.count},e.destroySlider=function(){d.vars.fresh===!1&&(e.stopAuto(),d.vars.moving=!1,d.vars.slides.each(function(){void 0!==a(this).data("pagelayer-imgsl-cssBckup")?a(this).attr("style",a(this).data("pagelayer-imgsl-cssBckup")):a(this).removeAttr("style"),void 0!==a(this).data("pagelayer-imgsl-classBckup")?a(this).attr("class",a(this).data("pagelayer-imgsl-classBckup")):a(this).removeAttr("class")}),void 0!==e.data("pagelayer-imgsl-cssBckup")?e.attr("style",e.data("pagelayer-imgsl-cssBckup")):e.removeAttr("style"),void 0!==e.data("pagelayer-imgsl-classBckup")?e.attr("class",e.data("pagelayer-imgsl-classBckup")):e.removeAttr("class"),d.vars.slippryWrapper.before(e),d.vars.slippryWrapper.remove(),d.vars.fresh=void 0)},e.reloadSlider=function(){e.destroySlider(),h()},h=function(){var f;return d.settings=a.extend({},b,c),d.vars.slides=a(d.settings.elements,e),d.vars.count=d.vars.slides.length,d.settings.useCSS&&(w("transition")||(d.settings.useCSS=!1),d.vars.transition=n()),e.data("pagelayer-imgsl-cssBckup",e.attr("style")),e.data("pagelayer-imgsl-classBackup",e.attr("class")),e.addClass(d.settings.boxClass).wrap(d.settings.slippryWrapper).wrap(d.settings.slideWrapper).wrap(d.settings.slideCrop),d.vars.slideWrapper=e.parent().parent(),d.vars.slippryWrapper=d.vars.slideWrapper.parent().addClass(d.settings.loadingClass),d.vars.fresh=!0,d.vars.slides.each(function(){a(this).addClass("pagelayer-imgsl-slide "+d.settings.transition),d.settings.useCSS&&a(this).addClass("useCSS"),"horizontal"===d.settings.transition?a(this).css("left",a(this).index()*(100+d.settings.slideMargin)+"%"):"vertical"===d.settings.transition&&a(this).css("top",a(this).index()*(100+d.settings.slideMargin)+"%")}),d.vars.count>1||d.settings.initSingle?(-1===a("."+d.settings.activeClass,e).index()?(f="random"===d.settings.start?Math.round(Math.random()*(d.vars.count-1)):d.settings.start>0&&d.settings.start<=d.vars.count?d.settings.start-1:0,d.vars.active=a(d.vars.slides[f]).addClass(d.settings.activeClass)):d.vars.active=a("."+d.settings.activeClass,e),k(),j(),o(),x(d.vars.slides),void 0):this},h(),this)}}(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/trumbowyg.fontfamily.js ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function ($) {
2
+ 'use strict';
3
+
4
+ $.extend(true, $.trumbowyg, {
5
+ langs: {
6
+ // jshint camelcase:false
7
+ en: {
8
+ fontFamily: 'Font'
9
+ },
10
+ da: {
11
+ fontFamily: 'Skrifttype'
12
+ },
13
+ fr: {
14
+ fontFamily: 'Police'
15
+ },
16
+ de: {
17
+ fontFamily: 'Schriftart'
18
+ },
19
+ nl: {
20
+ fontFamily: 'Lettertype'
21
+ },
22
+ tr: {
23
+ fontFamily: 'Yazı Tipi'
24
+ },
25
+ zh_tw: {
26
+ fontFamily: '字體',
27
+ },
28
+ pt_br: {
29
+ fontFamily: 'Fonte',
30
+ }
31
+ }
32
+ });
33
+ // jshint camelcase:true
34
+
35
+ var defaultOptions = {
36
+ fontList: [
37
+ {name: 'Arial', family: 'Arial, Helvetica, sans-serif'},
38
+ {name: 'Arial Black', family: '\'Arial Black\', Gadget, sans-serif'},
39
+ {name: 'Comic Sans', family: '\'Comic Sans MS\', Textile, cursive, sans-serif'},
40
+ {name: 'Courier New', family: '\'Courier New\', Courier, monospace'},
41
+ {name: 'Georgia', family: 'Georgia, serif'},
42
+ {name: 'Impact', family: 'Impact, Charcoal, sans-serif'},
43
+ {name: 'Lucida Console', family: '\'Lucida Console\', Monaco, monospace'},
44
+ {name: 'Lucida Sans', family: '\'Lucida Sans Uncide\', \'Lucida Grande\', sans-serif'},
45
+ {name: 'Palatino', family: '\'Palatino Linotype\', \'Book Antiqua\', Palatino, serif'},
46
+ {name: 'Tahoma', family: 'Tahoma, Geneva, sans-serif'},
47
+ {name: 'Times New Roman', family: '\'Times New Roman\', Times, serif'},
48
+ {name: 'Trebuchet', family: '\'Trebuchet MS\', Helvetica, sans-serif'},
49
+ {name: 'Verdana', family: 'Verdana, Geneva, sans-serif'}
50
+ ]
51
+ };
52
+
53
+ // Add dropdown with web safe fonts
54
+ $.extend(true, $.trumbowyg, {
55
+ plugins: {
56
+ fontfamily: {
57
+ init: function (trumbowyg) {
58
+ trumbowyg.o.plugins.fontfamily = trumbowyg.o.plugins.fontfamily || defaultOptions;
59
+ trumbowyg.addBtnDef('fontfamily', {
60
+ dropdown: buildDropdown(trumbowyg),
61
+ hasIcon: false,
62
+ text: trumbowyg.lang.fontFamily
63
+ });
64
+ }
65
+ }
66
+ }
67
+ });
68
+
69
+ function buildDropdown(trumbowyg) {
70
+ var dropdown = [];
71
+
72
+ $.each(trumbowyg.o.plugins.fontfamily.fontList, function (index, font) {
73
+ trumbowyg.addBtnDef('fontfamily_' + index, {
74
+ title: '<span style="font-family: ' + font.family + ';">' + font.name + '</span>',
75
+ hasIcon: false,
76
+ fn: function () {
77
+ trumbowyg.execCmd('fontName', font.family, true);
78
+ }
79
+ });
80
+ dropdown.push('fontfamily_' + index);
81
+ });
82
+
83
+ return dropdown;
84
+ }
85
+ })(jQuery);
js/widgets.js CHANGED
@@ -315,7 +315,7 @@ function pagelayer_render_pl_image_slider(el){
315
  ul += '<a href="'+link+'">';
316
  }
317
 
318
- ul += '<img src="'+url+'">';
319
 
320
  if(is_link){
321
  ul += '</a>';
@@ -324,6 +324,10 @@ function pagelayer_render_pl_image_slider(el){
324
  ul += '</li>';
325
  }
326
 
 
 
 
 
327
  el.atts['ul'] = ul;
328
 
329
  // Which arrows to show
@@ -339,7 +343,8 @@ function pagelayer_render_pl_image_slider(el){
339
 
340
  // Render the image slider
341
  function pagelayer_render_end_pl_image_slider(el){
342
- pagelayer_pl_image_slider();
 
343
  };
344
 
345
 
@@ -366,9 +371,9 @@ function pagelayer_render_pl_grid_gallery(el){
366
  // Create figure HTML
367
  for (var x in img_urls){
368
 
369
- if(i % col == 0 && i != 0){
370
  ul += '</ul><ul class="pagelayer-grid-gallery-ul">';
371
- }
372
 
373
  // Use the default URL first
374
  var url = img_urls[x];
@@ -399,7 +404,7 @@ function pagelayer_render_pl_grid_gallery(el){
399
  ul += '<a href="'+img_urls[x]+'" class="pagelayer-ele-link" data-lightbox-gallery="'+gallery_rand+'" alt="'+img_title[x]+'" pagelayer-grid-gallery-type="'+el.atts['link_to']+'">'
400
  }
401
 
402
- ul += '<img src="'+url+'" title="'+img_title[x]+'" alt="'+img_title[x]+'">';
403
 
404
  if(el.atts['caption'] == 'true'){
405
  ul += '<span class="pagelayer-grid-gallery-caption">'+img_captions[x]+'</span>';
@@ -459,7 +464,7 @@ function pagelayer_render_pl_shortcodes(el){
459
  url: pagelayer_ajax_url+'&action=pagelayer_do_shortcodes',
460
  type: 'POST',
461
  data: {
462
- nonce: pagelayer_ajax_nonce,
463
  shortcode_data: el.atts['data']
464
  },
465
  success:function(data) {
@@ -485,7 +490,7 @@ function pagelayer_render_pl_wp_widgets(el){
485
  url: pagelayer_ajax_url+'&action=pagelayer_fetch_sidebar',
486
  type: 'POST',
487
  data: {
488
- nonce: pagelayer_ajax_nonce,
489
  sidebar: el.atts['sidebar']
490
  },
491
  success:function(data) {
@@ -496,3 +501,18 @@ function pagelayer_render_pl_wp_widgets(el){
496
  }, 500);
497
 
498
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  ul += '<a href="'+link+'">';
316
  }
317
 
318
+ ul += '<img class="pagelayer-img" src="'+url+'">';
319
 
320
  if(is_link){
321
  ul += '</a>';
324
  ul += '</li>';
325
  }
326
 
327
+ if(pagelayer_empty(ul)){
328
+ ul = '<h4 style="text-align:center;">'+ pagelayer_l('Please select Images from left side Widget properties.')+'</h4>';
329
+ }
330
+
331
  el.atts['ul'] = ul;
332
 
333
  // Which arrows to show
343
 
344
  // Render the image slider
345
  function pagelayer_render_end_pl_image_slider(el){
346
+ pagelayer_owl_destroy(el.$, '.pagelayer-image-slider-ul');
347
+ pagelayer_pl_image_slider(el.$);
348
  };
349
 
350
 
371
  // Create figure HTML
372
  for (var x in img_urls){
373
 
374
+ /* if(i % col == 0 && i != 0){
375
  ul += '</ul><ul class="pagelayer-grid-gallery-ul">';
376
+ } */
377
 
378
  // Use the default URL first
379
  var url = img_urls[x];
404
  ul += '<a href="'+img_urls[x]+'" class="pagelayer-ele-link" data-lightbox-gallery="'+gallery_rand+'" alt="'+img_title[x]+'" pagelayer-grid-gallery-type="'+el.atts['link_to']+'">'
405
  }
406
 
407
+ ul += '<img class="pagelayer-img" src="'+url+'" title="'+img_title[x]+'" alt="'+img_title[x]+'">';
408
 
409
  if(el.atts['caption'] == 'true'){
410
  ul += '<span class="pagelayer-grid-gallery-caption">'+img_captions[x]+'</span>';
464
  url: pagelayer_ajax_url+'&action=pagelayer_do_shortcodes',
465
  type: 'POST',
466
  data: {
467
+ pagelayer_nonce: pagelayer_ajax_nonce,
468
  shortcode_data: el.atts['data']
469
  },
470
  success:function(data) {
490
  url: pagelayer_ajax_url+'&action=pagelayer_fetch_sidebar',
491
  type: 'POST',
492
  data: {
493
+ pagelayer_nonce: pagelayer_ajax_nonce,
494
  sidebar: el.atts['sidebar']
495
  },
496
  success:function(data) {
501
  }, 500);
502
 
503
  };
504
+
505
+ function pagelayer_owl_destroy(jEle, slides_class){
506
+
507
+ var ul = jEle.find(slides_class);
508
+ var setup = jEle.attr('pagelayer-setup');
509
+
510
+ // Already setup ?
511
+ if(setup && setup.length > 0){
512
+ if(ul.children('.pagelayer-ele-wrap')){
513
+ ul.pagelayerOwlCarousel('destroy');
514
+ ul.find('[class^="pagelayer-owl-"]').remove();
515
+ jEle.removeAttr('pagelayer-setup');
516
+ }
517
+ }
518
+ }
languages/en.json CHANGED
@@ -1,573 +1,609 @@
1
  {
2
- "ele_bg_styles": "Background Style",
3
- "ele_styles": "Box Style",
4
- "border_styles": "Border Style",
5
- "animation_styles": "Animation",
6
- "responsive_styles": "Responsive",
7
- "custom_styles": "Custom CSS",
8
- "params": "Params",
9
- "hotspot": "Hotspot",
10
- "red": "Red",
11
- "grey": "Grey",
12
- "black": "Black",
13
- "custom": "Custom",
14
- "small": "Small",
15
- "middle": "Middle",
16
- "large": "Large",
17
- "dark": "Dark",
18
- "silver": "Silver",
19
- "noir": "Noir",
20
- "shadow": "Shadow",
21
- "top": "Top",
22
- "right": "Right",
23
- "bottom": "Bottom",
24
- "left": "Left",
25
- "always": "Always",
26
- "audio": "Audio",
27
- "wp_audio_source_title": "Audio source",
28
- "wp_audio_source_desc": "If your current browser does not support HTML5 audio or Flash Player is not installed, a direct download link will be displayed instead of the player",
29
- "wp_audio_autoplay_title": "Autoplay",
30
- "wp_audio_autoplay_desc": "Play file automatically when page is loaded",
31
- "wp_audio_loop_title": "Repeat",
32
- "wp_audio_loop_desc": "Repeat when playback is ended",
33
- "Videos": "Videos",
34
- "video": "Video",
35
- "Transition": "Transition",
36
- "fade": "Fade",
37
- "horizontal": "Horizontal",
38
- "vertical": "Vertical",
39
- "kenburns": "Kenburns",
40
- "visible": "Visible",
41
- "all": "All",
42
- "Pager": "Pager",
43
- "buttons": "Buttons",
44
- "button": "Button",
45
- "add_new_item": "Add new %name% item",
46
- "button_name": "Button",
47
- "obj_align_label": "Alignment",
48
- "center": "Center",
49
- "layout": "Layout",
50
- "button_group_indent_label": "Indent",
51
- "media_file": "Media File",
52
- "media_description": "Select file from Media Library",
53
- "button_text_label": "Button Text",
54
- "button_type_label": "Type",
55
- "btn_type_default": "Default",
56
- "btn_type_primary": "Primary",
57
- "btn_type_secondary": "Secondary",
58
- "btn_type_success": "Success",
59
- "btn_type_info": "Info",
60
- "btn_type_warning": "Warning",
61
- "btn_type_danger": "Danger",
62
- "btn_type_dark": "Dark",
63
- "btn_type_light": "Light",
64
- "btn_type_link": "Link",
65
- "button_size_label": "Size",
66
- "mini": "Mini",
67
- "extra_large": "Extra Large",
68
- "double_large": "Double Large",
69
- "btn_custom_size": "Custom Size",
70
- "service_box_font_icon_label": "Icon",
71
- "icon_alignment": "Icon Alignment",
72
- "icon_spacing": "Space Between",
73
- "stretch": "Stretch",
74
- "Share": "Share",
75
- "list_icon_label": "Icon",
76
- "share_text_label": "Text",
77
- "social_share_grp": "Group Elements",
78
- "share_item": "Social Icon",
79
- "share_name": "Name",
80
- "social_grp_size_label": "Size",
81
- "icon_background_shape": "Background Shape",
 
82
  "group": "Group",
83
  "layout_style": "Layout",
84
- "icon_shape_none": "None",
85
- "icon_shape_circle": "Circle",
86
- "icon_shape_square": "Square",
87
- "icon_shape_rounded": "Rounded",
88
- "icon_shape_outline": "Outline",
89
- "share_icon_name_label": "Name",
90
- "table": "Table",
91
- "obj_table_data_label": "Data",
92
- "obj_table_data_desc": "Data in each row separated by comma. Find out more about <a href='http:\/\/en.wikipedia.org\/wiki\/Comma-separated_values' target='_blank'>CSV format<\/a>.",
93
- "cta_layout_label": "Layout",
94
- "Normal": "Normal",
95
- "Overlay": "Overlay",
96
- "cta_align_label": "Alignment",
97
- "cta_image_label": "Image",
98
- "cta_img_height_label": "Height",
99
- "cta_img_width_label": "Width",
100
- "heading_name": "Title",
101
- "heading_typo": "Typography",
102
- "heading_shadow": "Shadow",
103
- "subheading_name": "Subtitle",
104
- "text": "Text",
105
- "cta_content_spacing_label": "Spacing",
106
- "cta_content_align_label": "Alignment",
107
- "cta_valign_label": "Vertical Alignment",
108
- "cta_content_bg_label": "Background",
109
- "ctaobj_button_link_label": "Button link",
110
- "button_link_desc": "ex. http:\/\/yoursite.com\/ or \/blog",
111
- "cta_btn_spacing_label": "Button Spacing",
112
- "cta_hover_anim_label": "Hover Animation",
113
- "cta_anim_none": "None",
114
- "cta_anim_zoomin": "Zoom In",
115
- "cta_anim_zoomout": "Zoom Out",
116
- "cta_anim_moveup": "Move Up",
117
- "cta_anim_movedown": "Move Down",
118
- "cta_anim_moveleft": "Move Left",
119
- "cta_anim_moveright": "Move Right",
120
- "cta_show_ribbon": "Show Ribbon",
121
- "cta_ribbon_text_label": "Text",
122
- "cta_ribbon_bg_label": "Background",
123
- "cta_ribbon_color_label": "Color",
124
- "cta_ribbon_spacing": "Spacing",
125
- "ribbon_pos_label": "Position",
126
- "Left": "Left",
127
- "Right": "Right",
128
- "modal": "Modal",
129
- "title": "Title",
130
- "modal_name": "Modal",
131
- "modal_title_content_default": "This is a cool new Modal",
132
- "padding": "Padding",
133
- "obj_content": "Content",
134
- "edit": "Edit",
135
- "content_with_tags_default": "<h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit.<\/h1><p>Integer ac leo ut arcu dictum viverra at eu magna. Integer ut eros varius, ornare magna non, malesuada nunc. Nulla elementum fringilla libero vitae luctus. Phasellus tincidunt nulla erat, in consectetur ante ornare tempor. Curabitur egestas purus ac gravida malesuada. Vestibulum sit amet rhoncus nisi. Quisque porta enim eget nisi luctus accumsan. Interdum et malesuada fames ac ante ipsum primis in faucibus.<\/p>",
136
- "modal_popup_width": "Modal Popup Width",
137
- "obj_show_animation_label": "Show Animation",
138
- "obj_hide_animation_label": "Hide Animation",
139
- "obj_style": "Style",
140
- "light": "Light",
141
- "obj_shadow_color_label": "Background Color",
142
- "obj_content_color_label": "Box Color",
143
- "list_text_color_label": "Text Color",
144
- "modal_container_style": "Container Style",
145
- "modal_title_style": "Title Style",
146
- "popup_name": "Splash Screen",
147
- "popup_delay_label": "Delay in milliseconds",
148
- "display": "Display",
149
- "once": "Once",
150
- "chart": "Chart",
151
- "obj_title_label": "Title",
152
- "google_charts_type_label": "Chart Type",
153
- "google_charts_type_desc": "Find out more about chart types at <a href='https:\/\/developers.google.com\/chart\/' target='_blank'>Google Charts<\/a>",
154
- "google_charts_type_list_column": "Column Chart",
155
- "google_charts_type_list_bar": "Bar Chart",
156
- "google_charts_type_list_area": "Area Chart",
157
- "google_charts_type_list_stepped": "Stepped Area Chart",
158
- "google_charts_type_list_pie": "Pie Chart",
159
- "google_charts_type_list3d": "3D Pie Chart",
160
- "google_charts_type_list_line": "Line Chart",
161
- "google_charts_type_list_histogram": "Histogram",
162
- "google_charts_donut_label": "Donut Hole",
163
- "google_charts_colors_label": "Chart colors",
164
- "google_charts_colors_desc": "Comma separated HEX color values. Ex: #e0440e, #e6693e",
165
- "google_charts_transparency_label": "Transparent background",
166
- "google_charts_data_desc": "Data in each row separated by comma",
167
- "date_picker_label": "Expiration Date",
168
- "countdown_time_zone": "Time zone",
169
- "server_time": "Server time",
170
- "user_local": "User's local time",
171
- "format": "Format",
172
- "countdown_format_description": "Use 'Y' for years, 'O' for months, 'W' for weeks, 'D' for days, 'H' for hours, 'M' for minutes, 'S' for seconds. Upper-case characters for required fields and lower-case characters for display only if non-zero.",
173
- "bg_color": "Background Color",
174
- "text_color": "Text Color",
175
- "countdown_blocks_size": "Block Size",
176
- "countdown_digits_size": "Digits Size",
177
- "countdown_labels_size": "Text Size",
178
- "countdown_block_space": "Spacing",
179
- "pricing_type_label": "Type",
180
- "pricing_subtitle_label": "Subtitle",
181
- "pricing_currency_type_label": "Currency",
182
- "pricing_value_label": "Value",
183
- "sale": "Sale",
184
- "pricing_old_value_label": "Old Value",
185
- "pricing_period_label": "Period",
186
- "pricing_btn_url_label": "Button URL",
187
- "additional_info": "Additional Info",
188
- "ribbion_display_label": "Display",
189
- "pricing_ribbion_text": "Text",
190
- "price_currency_color": "Currency Color",
191
- "price_currency_size": "Currency Size",
192
- "currency_position_label": "Position",
193
- "plan_price_size": "Price Size",
194
- "old_price_size": "Old Price Size",
195
- "price_margin": "Margin",
196
- "price_padding": "Padding",
197
- "price_state_label": "State",
198
- "Hover": "Hover",
199
- "price_line_height": "Line Height",
200
- "price_value_color": "Color",
201
- "old_price_value_color": "Old Price Color",
202
- "price_background_color": "Background Color",
203
- "price_value_color_hover": "Color",
204
- "price_background_color_hover": "Background Color",
205
- "price_border_type": "Border Type",
206
- "none": "None",
207
- "solid": "Solid",
208
- "double": "Double",
209
- "dotted": "Dotted",
210
- "dashed": "Dashed",
211
- "groove": "Groove",
212
- "price_value_border_color": "Border Color",
213
- "price_value_border_width": "Border Width",
214
- "price_value_border_radius": "Border Radius",
215
- "plan_title_color": "Color",
216
- "plan_subtitle_color": "Color",
217
- "plan_title_size": "Size",
218
- "plan_period_color": "Color",
219
- "plan_period_size": "Size",
220
- "plan_header_background_color": "Background Color",
221
- "plan_price_padding": "Padding",
222
- "plan_features_background_color": "Background Color",
223
- "plan_features_text_color": "Color",
224
- "plan_features_padding": "Padding",
225
- "plan_button_text_color": "Color",
226
- "plan_button_background_color": "Background Color",
227
- "plan_button_text_color_hover": "Color",
228
- "plan_button_background_color_hover": "Background Color",
229
- "price_btn_border_type": "Border Type",
230
- "price_btn_border_color": "Border Color",
231
- "price_btn_border_width": "Border Width",
232
- "price_btn_border_radius": "Border Radius",
233
- "price_btn_padding": "Padding",
234
- "ribbon_text_size": "Size",
235
- "ribbon_background_color": "Background Color",
236
- "ribbon_text_color": "Color",
237
- "currency_style": "Currency",
238
- "price_style": "Price",
239
- "title_style": "Title Style",
240
- "period_style": "Period",
241
- "header_style": "Header",
242
- "feature_style": "Feature",
243
- "button_style": "Button Style",
244
- "ribbon_style": "Ribbon",
245
- "label": "Label",
246
- "customize_style_fields": "Customize Style for Fields",
247
- "label_color": "Label Color",
248
- "placeholder_color": "Placeholder Color",
249
- "text_field_height": "Text Field Height",
250
- "border_width": "Border Width",
251
- "border_color": "Border Color",
252
- "border_radius": "Border Radius",
253
- "focus_fields_label": "Focus Effect for Fields",
254
- "checkbox_selected_style": "Radio\/Checkbox Selected Style",
255
- "color": "Color",
256
- "submit": "Submit",
257
- "opt_google_fonts_family": "Font Family",
258
- "button_text_color": "Color",
259
- "button_background_color": "Background Color",
260
- "hover_effect_button_label": "Hover Effect for Button",
261
- "stretch_button_label": "Stretch Button to full width",
262
- "redirect_url": "Redirect URL",
263
- "redirect_urllabel": "Choose the Redirect URL",
264
- "redirect_urldesc": "User will be redirected to this URL after contact form is submitted",
265
- "alignment": "Alignment",
266
- "default": "Default",
267
- "site_title": "Site Title",
268
- "site_title_desc": "Enter the site name if you want to change the Site Title otherwise leave this field empty",
269
- "site_logo": "Show Logo",
270
- "site_logo_desc": "Select this checkbox to show a logo with the site title",
271
- "site_logo_select": "Select logo",
272
- "site_logo_size": "Logo Size",
273
- "site_logo_size_desc": "Image size in pixels, e.g. 200x100",
274
- "site_title_position": "Site Title Position",
275
- "site_logo_position": "Logo Position",
276
- "site_logo_margin": "Logo Margin",
277
- "site_logo_margin_desc": "Select this checkbox to set space around the logo",
278
- "logo_style": "Logo Style",
279
- "font_style": "Font Style",
280
- "posts_grid_query_type_label": "Query Type",
281
- "posts_grid_query_type_desc": "Choose Query Type",
282
- "simple": "Simple",
283
- "posts_grid_custom_query_label": "Custom query",
284
- "ids": "IDs",
285
- "posts_grid_post_type_label": "Post Type to show",
286
- "posts_grid_post_type_desc": "Select post type to populate posts from",
287
- "posts_grid_category_label": "Display posts by category slug",
288
- "posts_grid_category_desc": "Separate with ',' to display posts that have either of these categories or with '+' to display posts that have all of these categories.",
289
- "posts_grid_tag_label": "Display posts by tag slug",
290
- "posts_grid_tag_desc": "Separate with ',' to display posts that have either of these tags or with '+' to display posts that have all of these tags.",
291
- "posts_grid_custom_tax_label": "Custom Taxonomy",
292
- "posts_grid_custom_tax_field_label": "Taxonomy field",
293
- "term_id": "Term ID",
294
- "slug": "Slug",
295
- "name": "Name",
296
- "posts_grid_custom_tax_term_label": "Taxonomy term(s)",
297
- "posts_grid_custom_tax_term_desc": "Separate with ',' to display posts that have either of these terms or with '+' to display posts that have all of these tags.",
298
- "posts_grid_posts_per_page_label": "Posts count",
299
- "posts_grid_sort_order": "Sort order",
300
- "posts_grid_sort_order_ascending": "Ascending",
301
- "posts_grid_sort_order_descending": "Descending",
302
- "posts_grid_custom_query_desc": "Build custom query according to PageLayer Codex. Example: post_type=portfolio&posts_per_page=5&orderby=title",
303
- "posts_grid_ids_label": "IDs of posts",
304
- "posts_grid_ids_desc": "Separate with ','",
305
- "columns_count": "Columns count",
306
- "posts_grid_template_label": "Post Style",
307
- "posts_grid_posts_gap_label": "Vertical gap between posts",
308
- "posts_grid_show_featured_image": "Show Featured Image",
309
- "obj_image_size_label": "Size",
310
- "full": "Full",
311
- "medium": "Medium",
312
- "thumbnail": "Thumbnail",
313
- "image_custom_size_label": "Custom Size",
314
- "posts_grid_title_tag": "Title style",
315
- "posts_grid_title_tag_none": "Hide",
316
- "posts_grid_show_date_comments": "Show Date and Comments",
317
- "posts_grid_show_content": "Post description",
318
- "posts_grid_show_content_short": "Short",
319
- "posts_grid_show_content_full": "Full",
320
- "posts_grid_show_content_excerpt": "Excerpt",
321
- "posts_grid_show_content_none": "None",
322
- "posts_grid_short_content_length": "Length of the Text",
323
- "posts_grid_read_more_text_label": "Post Read More link text",
324
- "posts_grid_read_more_text": "Read more",
325
- "posts_grid_display_style": "Display Style",
326
- "show_all": "Show All",
327
- "posts_grid_display_style_load_more": "Load More Button",
328
- "posts_grid_display_style_pagination": "Pagination",
329
- "posts_grid_load_more_text_label": "Load More button text",
330
- "posts_grid_load_more_text_default": "Load More",
331
- "posts_grid_filter_label": "Filter",
332
- "posts_grid_filter_desc": "Add taxonomy filter.",
333
- "posts_grid_filter_by_first_tax": "First Taxonomy",
334
- "posts_grid_filter_by_second_tax": "Second Taxonomy",
335
- "posts_grid_filter_by_both": "Both",
336
- "posts_grid_filter_first_tax_name": "Select First Taxonomy",
337
- "posts_grid_filter_second_tax_name": "Select Second Taxonomy",
338
- "button_color_label": "Button color",
339
- "pink_dreams": "Pink Dreams",
340
- "warm": "Warm",
341
- "hot_summer": "Hot Summer",
342
- "olive_garden": "Olive Garden",
343
- "green_grass": "Green Grass",
344
- "skyline": "Skyline",
345
- "aqua_blue": "Aqua Blue",
346
- "violet": "Violet",
347
- "dark_grey": "Dark Grey",
348
- "filter_links_divider": "Divider",
349
- "posts_grid_filter_first_tax_text_label": "First Filter Title",
350
- "categories": "Categories",
351
- "posts_grid_filter_second_tax_text_label": "Second Filter Title",
352
- "tags": "Tags",
353
- "posts_grid_filter_view_all_text_label": "\"View All\" text",
354
- "posts_slider_post_types_label": "Post types",
355
- "posts_slider_posts_count_label": "Posts count",
356
- "posts_slider_order_by": "Order by",
357
- "posts_slider_order_by_id": "ID",
358
- "posts_slider_order_by_date": "Date",
359
- "posts_slider_order_by_author": "Author",
360
- "posts_slider_order_by_modified": "Modified",
361
- "posts_slider_order_by_random": "Random",
362
- "posts_slider_order_by_comment_count": "Comment count",
363
- "posts_slider_order_by_menu_order": "Menu order",
364
- "posts_grid_post_title_tag": "Post title",
365
- "service_box_layout_label": "Content style",
366
- "posts_slider_layout_title_image_text": "Image",
367
- "posts_slider_layout_image_title_text": "Image, Title, Text",
368
- "posts_slider_layout_image_title_inline": "Inline",
369
- "posts_slider_layout_image_title_text_wrap": "Title, Image and Text",
370
- "posts_slider_layout_title_text": "Title, Text",
371
- "posts_slider_image_position": "Image position",
372
- "image_link_label": "Link to",
373
  "image_link_url": "URL",
374
- "posts_slider_post_link": "Original post",
375
- "posts_slider_open_custom_links": "Custom links",
376
- "posts_slider_no_link": "None",
377
- "posts_slider_custom_links_description": "Enter links for each slide here. Divide links with linebreaks (Enter).",
378
- "posts_slider_auto_rotate_label": "Auto rotate(s)",
379
- "disable": "Disable",
380
- "image_slider_animation_label": "Animation type",
381
- "image_slider_animation_slide": "Slide",
382
- "image_slider_animation_fade": "Fade",
383
- "image_slider_smooth_height_label": "Smooth height",
384
- "image_slider_smooth_height_desc": "Animate the height of the slider smoothly for slides of varying height",
385
- "image_slider_control_nav_label": "Show bullets",
386
- "posts_slider_pause_on_hover_label": "Pause on hover",
387
- "pages": "Pages",
388
- "parameters_title": "Title",
389
- "wp_pages": "Pages",
390
- "wp_pages_description": "Your site pages",
391
- "sort_by": "Sort by",
392
- "sort_by_page_title": "Page title",
393
- "sort_by_page_order": "Page order",
394
- "sort_by_page_id": "Page ID",
395
- "exclude": "Exclude",
396
- "wp_pages_exclude_pages": "Page IDs, separated by commas.",
397
- "wp_recent_posts": "Recent Posts",
398
- "wp_recent_posts_description": "The most recent posts on your site",
399
- "wp_recent_posts_number": "Number of Posts to show",
400
- "wp_recent_posts_display_date": "Display post date ?",
401
- "calendar": "Calendar",
402
- "wp_calendar": "Calendar",
403
- "wp_calendar_description": "A calendar of your site posts",
404
- "wp_recent_comments": "Recent Comments",
405
- "wp_recent_comments_description": "The most recent comments",
406
- "wp_recent_comments_number": "Number of Comments to show",
407
- "wp_categories": "Categories",
408
- "wp_categories_description": "A list or dropdown of categories",
409
- "wp_display_as_drop_down": "Display as dropdown",
410
- "wp_show_post_counts": "Show post counts",
411
- "wp_categories_show_hierarchy": "Show hierarchy",
412
- "archives": "Archives",
413
- "wp_archives": "Archives",
414
- "wp_archives_description": "A monthly archive of your site posts",
415
- "wp_tags": "Tags",
416
- "wp_tag_cloud_description": "Your most used tags in cloud format",
417
- "wp_tag_cloud_taxonomy": "Taxonomy",
418
- "wp_tag_cloud_categories": "Categories",
419
- "search": "Search",
420
- "wp_rsssearch": "Search",
421
- "wp_rsssearch_description": "A search form for your site",
422
- "rss": "RSS",
423
- "wp_rssurl": "RSS feed URL",
424
- "wp_rssurl_description": "Enter the RSS feed URL here",
425
- "wp_rssfeed_title": "Feed title",
426
- "wp_rssfeed_title_description": "Give the feed a title (optional)",
427
- "wp_rssquantity": "Items quantity",
428
- "wp_rssquantity_description": "How many items would you like to display?",
429
- "wp_rssdisplay_content": "Display item content?",
430
- "wp_rssdisplay_author": "Display item author if available?",
431
- "wp_rssdisplay_date": "Display item date ?",
432
- "meta": "Meta",
433
- "wp_meta": "Meta",
434
- "wp_meta_description": "Log in\/out, admin, feed and SitePad links",
435
- "normal": "Normal",
436
- "hover": "Hover",
437
- "gradient": "Gradient",
438
- "image": "Image",
439
- "ele_bg_attachment": "Attachment",
440
- "scroll": "Scroll",
441
- "fixed": "Fixed",
442
- "ele_bg_posx": "Position X",
443
- "ele_bg_posy": "Position Y",
444
- "ele_bg_repeat": "Repeat",
445
- "repeat": "Repeat",
446
- "no-repeat": "No-repeat",
447
- "repeat-x": "Repeat-x",
448
- "repeat-y": "Repeat-y",
449
- "ele_bg_size": "Size",
450
- "cover": "Cover",
451
- "contain": "Contain",
452
- "ele_bg_hover_delay": "Delay",
453
- "ele_bg_attachment_hover": "Attachment",
454
- "ele_bg_posx_hover": "Position X",
455
- "ele_bg_posy_hover": "Position Y",
456
- "ele_bg_repeat_hover": "Repeat",
457
- "ele_bg_size_hover": "Size",
458
- "margin": "Margin",
459
- "z-index": "Z-index",
460
- "border_type": "Border Type",
461
- "animation": "Animation",
462
- "fading": "Fading",
463
- "fadein": "Fade In",
464
- "fadeindown": "Fade In Down",
465
- "fadeinup": "Fade In Up",
466
- "fadeinleft": "Fade In Left",
467
- "fadeinright": "Fade In Right",
468
- "zooming": "Zooming",
469
- "zoomin": "Zoom In",
470
- "zoomindown": "Zoom In Down",
471
- "zoominup": "Zoom In Up",
472
- "zoominleft": "Zoom In Left",
473
- "zoominright": "Zoom In Right",
474
- "bounceing": "Bounceing",
475
- "bouncein": "Bounce In",
476
- "bounceindown": "Bounce In Down",
477
- "bounceinup": "Bounce In Up",
478
- "bounceinleft": "Bounce In Left",
479
- "bounceinright": "Bounce In Right",
480
- "sliding": "Sliding",
481
- "slideindown": "Slide In Down",
482
- "slideinup": "Slide In Up",
483
- "slideinleft": "Slide In Left",
484
- "slideinright": "Slide In Right",
485
- "rotating": "Rotating",
486
- "rotatein": "Rotate In",
487
- "rotateindown": "Rotate In Down",
488
- "rotateinup": "Rotate In Up",
489
- "rotateinleft": "Rotate In Left",
490
- "rotateinright": "Rotate In Right",
491
- "effects": "Effects",
492
- "lightspeedin": "Light Speed In",
493
- "bounce": "Bounce",
494
- "pulse": "Pulse",
495
- "rubberband": "Rubber Band",
496
- "flash": "Flash",
497
- "swing": "Swing",
498
- "jello": "Jello",
499
- "tada": "Tada",
500
- "wobble": "Wobble",
501
- "rollin": "Rollin",
502
- "headshake": "Head Shake",
503
- "shake": "Shake",
504
- "animate_speed": "Speed",
505
- "fast": "Fast",
506
- "slow": "Slow",
507
- "fastest": "Fastest",
508
- "slowest": "Slowest",
509
- "animation_delay": "Delay",
510
- "hide_desktop": "Hide On Desktop",
511
- "hide_tablet": "Hide On Tablet",
512
- "hide_mobile": "Hide On Mobile",
513
- "ele_id": "CSS Id",
514
- "ele_id_desc": "You can add your custom ID without Hash(#)",
515
- "ele_classes": "CSS Class",
516
- "ele_classes_desc": "You can add your custom Class without dot(.)",
517
- "row": "Row",
518
- "con_width": "Container Width",
519
- "con_width_exp": "The default value of row container max-width: 1170px, you can change it here",
520
- "auto": "Auto",
521
- "full_width": "Full",
522
- "fixed_width": "Fixed",
523
- "row_width": "Row Width",
524
- "col_gap": "Columns Gap",
525
- "auto_width": "Auto",
526
- "fit_to_screen": "Fit Screen",
527
- "min_height": "Min Height",
528
- "row_bg_type": "Background Type",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
529
  "background_type": "Background Type",
530
- "parallax": "Parallax",
531
- "video_src_label": "Video URL",
532
- "video_src_desc": "Paste the URL of a video (YouTube, Vimeo, Dailymotion, etc) or choose from your media library",
533
- "overlay_type": "Background Type",
534
- "overlay_img_attachment": "Attachment",
535
- "overlay_bg_posx": "Position X",
536
- "overlay_bg_posy": "Position Y",
537
- "overlay_bg_repeat": "Repeat",
538
- "overlay_bg_size": "Size",
539
- "overlay_transperancy": "Transparency",
540
- "overlay_hover_delay": "Delay",
541
- "overlay_type_hover": "Background Type",
542
- "overlay_img_attachment_hover": "Attachment",
543
- "overlay_bg_posx_hover": "Position X",
544
- "overlay_bg_posy_hover": "Position Y",
545
- "overlay_bg_repeat_hover": "Repeat",
546
- "overlay_bg_size_hover": "Size",
547
- "overlay_transperancy_hover": "Transperancy",
548
- "shape_position": "Position",
549
- "Top": "Top",
550
- "Bottom": "Bottom",
551
- "shape_type": "Type",
552
- "Arrow": "Arrow",
553
- "BigTriangle": "BigTriangle",
554
- "Curve": "Curve",
555
- "Clouds": "Clouds",
556
- "Mountains": "Mountains",
557
- "Pyramids": "Pyramids",
558
- "Stamp": "Stamp",
559
- "Slit": "Slit",
560
- "Split": "Split",
561
- "Tilt": "Tilt",
562
- "Waves": "Waves",
563
- "Zigzag": "Zigzag",
564
- "shape_bg_color": "Color",
565
- "shape_width": "Width",
566
- "shape_height": "Height",
567
- "shape_flip": "Flip",
568
- "row_bg_styles": "Background",
569
- "row_bg_overlay": "Overlay",
570
- "shape_styles": "Shape Styles",
571
  "column": "Column",
572
  "widget_space": "Widgets Space",
573
  "width_custom": "Custom Width",
@@ -770,7 +806,7 @@
770
  "Lightbox": "Lightbox",
771
  "Autoplay": "Autoplay",
772
  "Mute": "Mute",
773
- "loop": "loop",
774
  "video_style": "Video",
775
  "overlay_style": "Overlay",
776
  "service_box_image_icon_label": "Choose Image",
@@ -977,6 +1013,121 @@
977
  "color_hover" : "Color Hover",
978
  "col_width" : "Column Width",
979
  "link_settings" : "Link",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
980
  "search_form" : "Search Form",
981
  "form_type" : "Form Type",
982
  "button_type" : "Button Type",
@@ -1047,6 +1198,18 @@
1047
  "separator_style" : "Separator Style",
1048
  "theme_tamplate" : "Theme Template",
1049
  "Drop_out" : "Drop Out",
 
 
 
 
 
 
 
 
 
 
 
 
1050
  "no_tag" : "No Tag",
1051
  "no_widget_class" : "No Widget Class",
1052
  "invalid_post_id" : "Invalid post ID",
@@ -1058,5 +1221,345 @@
1058
  "rev_load_success" : "Post revision was loaded successfully!",
1059
  "access_denied" : "Access denied.",
1060
  "delete_rev_error" : "Can't delete this revision.",
1061
- "delete_rev_success" : "Revision was deleted Successfully"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1062
  }
1
  {
2
+ "ele_bg_styles": "Background Style",
3
+ "ele_styles": "Box Style",
4
+ "border_styles": "Border Style",
5
+ "animation_styles": "Animation",
6
+ "responsive_styles": "Responsive",
7
+ "custom_styles": "Custom CSS",
8
+ "params": "Params",
9
+ "hotspot": "Hotspot",
10
+ "hotspots": "Hotspots",
11
+ "red": "Red",
12
+ "grey": "Grey",
13
+ "black": "Black",
14
+ "custom": "Custom",
15
+ "small": "Small",
16
+ "middle": "Middle",
17
+ "large": "Large",
18
+ "dark": "Dark",
19
+ "silver": "Silver",
20
+ "noir": "Noir",
21
+ "shadow": "Shadow",
22
+ "top": "Top",
23
+ "right": "Right",
24
+ "bottom": "Bottom",
25
+ "left": "Left",
26
+ "always": "Always",
27
+ "audio": "Audio",
28
+ "wp_audio_source_title": "Audio source",
29
+ "wp_audio_source_desc": "If your current browser does not support HTML5 audio or Flash Player is not installed, a direct download link will be displayed instead of the player",
30
+ "wp_audio_autoplay_title": "Autoplay",
31
+ "wp_audio_autoplay_desc": "Play file automatically when page is loaded",
32
+ "wp_audio_loop_title": "Repeat",
33
+ "wp_audio_loop_desc": "Repeat when playback is ended",
34
+ "Videos": "Videos",
35
+ "video": "Video",
36
+ "Transition": "Transition",
37
+ "fade": "Fade",
38
+ "horizontal": "Horizontal",
39
+ "vertical": "Vertical",
40
+ "kenburns": "Kenburns",
41
+ "visible": "Visible",
42
+ "all": "All",
43
+ "Pager": "Pager",
44
+ "buttons": "Buttons",
45
+ "button": "Button",
46
+ "add_new_item": "Add new %name% item",
47
+ "button_name": "Button",
48
+ "obj_align_label": "Alignment",
49
+ "center": "Center",
50
+ "layout": "Layout",
51
+ "button_group_indent_label": "Indent",
52
+ "media_file": "Media File",
53
+ "media_description": "Select file from Media Library",
54
+ "button_text_label": "Button Text",
55
+ "button_type_label": "Type",
56
+ "btn_type_default": "Default",
57
+ "btn_type_primary": "Primary",
58
+ "btn_type_secondary": "Secondary",
59
+ "btn_type_success": "Success",
60
+ "btn_type_info": "Info",
61
+ "btn_type_warning": "Warning",
62
+ "btn_type_danger": "Danger",
63
+ "btn_type_dark": "Dark",
64
+ "btn_type_light": "Light",
65
+ "btn_type_link": "Link",
66
+ "button_size_label": "Size",
67
+ "mini": "Mini",
68
+ "extra_large": "Extra Large",
69
+ "double_large": "Double Large",
70
+ "btn_custom_size": "Custom Size",
71
+ "service_box_font_icon_label": "Icon",
72
+ "icon_alignment": "Icon Alignment",
73
+ "icon_spacing": "Space Between",
74
+ "stretch": "Stretch",
75
+ "Share": "Share",
76
+ "list_icon_label": "Icon",
77
+ "share_text_label": "Text",
78
+ "social_share_grp": "Social Icons",
79
+ "share_item": "Social Icon",
80
+ "share_name": "Name",
81
+ "social_grp_size_label": "Size",
82
+ "icon_background_shape": "Background Shape",
83
  "group": "Group",
84
  "layout_style": "Layout",
85
+ "icon_shape_none": "None",
86
+ "icon_shape_circle": "Circle",
87
+ "icon_shape_square": "Square",
88
+ "icon_shape_rounded": "Rounded",
89
+ "icon_shape_outline": "Outline",
90
+ "share_icon_name_label": "Name",
91
+ "table": "Table",
92
+ "obj_table_data_label": "Data",
93
+ "obj_table_data_desc": "Data in each row separated by comma. Find out more about <a href='http:\/\/en.wikipedia.org\/wiki\/Comma-separated_values' target='_blank'>CSV format<\/a>.",
94
+ "cta_layout_label": "Layout",
95
+ "Normal": "Normal",
96
+ "Overlay": "Overlay",
97
+ "cta_align_label": "Alignment",
98
+ "cta_image_label": "Image",
99
+ "cta_img_height_label": "Height",
100
+ "cta_img_width_label": "Width",
101
+ "heading_name": "Title",
102
+ "heading_typo": "Typography",
103
+ "heading_shadow": "Shadow",
104
+ "subheading_name": "Subtitle",
105
+ "text": "Text",
106
+ "cta_content_spacing_label": "Spacing",
107
+ "cta_content_align_label": "Alignment",
108
+ "cta_valign_label": "Vertical Alignment",
109
+ "cta_content_bg_label": "Background",
110
+ "ctaobj_button_link_label": "Button link",
111
+ "button_link_desc": "ex. http:\/\/yoursite.com\/ or \/blog",
112
+ "cta_btn_spacing_label": "Button Spacing",
113
+ "cta_hover_anim_label": "Hover Animation",
114
+ "cta_anim_none": "None",
115
+ "cta_anim_zoomin": "Zoom In",
116
+ "cta_anim_zoomout": "Zoom Out",
117
+ "cta_anim_moveup": "Move Up",
118
+ "cta_anim_movedown": "Move Down",
119
+ "cta_anim_moveleft": "Move Left",
120
+ "cta_anim_moveright": "Move Right",
121
+ "cta_show_ribbon": "Show Ribbon",
122
+ "cta_ribbon_text_label": "Text",
123
+ "cta_ribbon_bg_label": "Background",
124
+ "cta_ribbon_color_label": "Color",
125
+ "cta_ribbon_spacing": "Spacing",
126
+ "ribbon_pos_label": "Position",
127
+ "Left": "Left",
128
+ "Right": "Right",
129
+ "modal": "Modal",
130
+ "title": "Title",
131
+ "modal_name": "Modal",
132
+ "modal_title_content_default": "This is a cool new Modal",
133
+ "padding": "Padding",
134
+ "obj_content": "Content",
135
+ "edit": "Edit",
136
+ "content_with_tags_default": "<h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit.<\/h1><p>Integer ac leo ut arcu dictum viverra at eu magna. Integer ut eros varius, ornare magna non, malesuada nunc. Nulla elementum fringilla libero vitae luctus. Phasellus tincidunt nulla erat, in consectetur ante ornare tempor. Curabitur egestas purus ac gravida malesuada. Vestibulum sit amet rhoncus nisi. Quisque porta enim eget nisi luctus accumsan. Interdum et malesuada fames ac ante ipsum primis in faucibus.<\/p>",
137
+ "modal_popup_width": "Modal Popup Width",
138
+ "obj_show_animation_label": "Show Animation",
139
+ "obj_hide_animation_label": "Hide Animation",
140
+ "obj_style": "Style",
141
+ "light": "Light",
142
+ "obj_shadow_color_label": "Background Color",
143
+ "obj_content_color_label": "Box Color",
144
+ "list_text_color_label": "Text Color",
145
+ "modal_container_style": "Container Style",
146
+ "modal_title_style": "Title Style",
147
+ "popup_name": "Splash Screen",
148
+ "popup_delay_label": "Delay in milliseconds",
149
+ "display": "Display",
150
+ "once": "Once",
151
+ "chart": "Chart",
152
+ "obj_title_label": "Title",
153
+ "google_charts_type_label": "Chart Type",
154
+ "google_charts_type_desc": "Find out more about chart types at <a href='https:\/\/developers.google.com\/chart\/' target='_blank'>Google Charts<\/a>",
155
+ "google_charts_type_list_column": "Column Chart",
156
+ "google_charts_type_list_bar": "Bar Chart",
157
+ "google_charts_type_list_area": "Area Chart",
158
+ "google_charts_type_list_stepped": "Stepped Area Chart",
159
+ "google_charts_type_list_pie": "Pie Chart",
160
+ "google_charts_type_list3d": "3D Pie Chart",
161
+ "google_charts_type_list_line": "Line Chart",
162
+ "google_charts_type_list_histogram": "Histogram",
163
+ "google_charts_donut_label": "Donut Hole",
164
+ "google_charts_colors_label": "Chart colors",
165
+ "google_charts_colors_desc": "Comma separated HEX color values. Ex: #e0440e, #e6693e",
166
+ "google_charts_transparency_label": "Transparent background",
167
+ "google_charts_data_desc": "Data in each row separated by comma",
168
+ "date_picker_label": "Expiration Date",
169
+ "time_zone": "Time zone",
170
+ "server_time": "Server time",
171
+ "user_local": "User's local time",
172
+ "spacing" : "Spacing",
173
+ "format": "Format",
174
+ "days" : "Days",
175
+ "hours" : "Hours",
176
+ "minutes" : "Minutes",
177
+ "seconds" : "Seconds",
178
+ "block" : "Block",
179
+ "inline" : "Inline",
180
+ "expired_text" : "Expired Text",
181
+ "show_exp_text" : "Show Expired Text",
182
+ "expired_style" : "Expired Text Style",
183
+ "custom_label_text" : "Custom Title",
184
+ "title_style" : "Title",
185
+ "block_styles" : "Countdown Block",
186
+ "show_label" : "Show Title",
187
+ "bg_color": "Background Color",
188
+ "text_color": "Text Color",
189
+ "blocks_size": "Block Size",
190
+ "digits_size": "Digit Size",
191
+ "labels_size": "Text Size",
192
+ "block_space": "Outside Spacing",
193
+ "plan_type": "Plan Name",
194
+ "subtitle": "Subtitle",
195
+ "currency": "Currency",
196
+ "plan_price": "Value",
197
+ "sale": "Sale",
198
+ "old_price": "Old Value",
199
+ "period": "Period",
200
+ "btn_url_label": "Button URL",
201
+ "additional_info": "Additional Info",
202
+ "ribbion_display": "Display",
203
+ "ribbion_text": "Text",
204
+ "currency_color": "Currency Color",
205
+ "currency_size": "Currency Size",
206
+ "price_size": "Price Size",
207
+ "old_price_size": "Old Price Size",
208
+ "price_state": "State",
209
+ "Hover": "Hover",
210
+ "price_line_height": "Line Height",
211
+ "old_price_color": "Old Price Color",
212
+ "border_type": "Border Type",
213
+ "none": "None",
214
+ "solid": "Solid",
215
+ "double": "Double",
216
+ "dotted": "Dotted",
217
+ "dashed": "Dashed",
218
+ "groove": "Groove",
219
+ "old_price_line_color" : "Line-through Color",
220
+ "title_size": "Size",
221
+ "period_size": "Size",
222
+ "features_item" : "Features Item",
223
+ "button_text_color": "Color",
224
+ "button_Spacing": "Spacing",
225
+ "button_bg_color": "Background Color",
226
+ "button_text_color_hover": "Color",
227
+ "button_bg_color_hover": "Background Color",
228
+ "btn_hover_delay" : "Hover Delay",
229
+ "btn_border_type": "Border Type",
230
+ "btn_border_color": "Border Color",
231
+ "btn_border_width": "Border Width",
232
+ "btn_border_radius": "Border Radius",
233
+ "btn_padding": "Padding",
234
+ "ribbon_text_size": "Size",
235
+ "addition_info" : "Additional Information",
236
+ "currency_style": "Currency",
237
+ "price_style": "Price",
238
+ "title_style": "Title Style",
239
+ "period_style": "Period",
240
+ "header_style": "Header",
241
+ "feature_style": "Features",
242
+ "button_style": "Button Style",
243
+ "ribbon_style": "Ribbon",
244
+ "label": "Label",
245
+ "customize_style_fields": "Customize Style for Fields",
246
+ "label_color": "Label Color",
247
+ "placeholder_color": "Placeholder Color",
248
+ "text_field_height": "Text Field Height",
249
+ "border_width": "Border Width",
250
+ "border_color": "Border Color",
251
+ "border_radius": "Border Radius",
252
+ "focus_fields_label": "Focus Effect for Fields",
253
+ "checkbox_selected_style": "Radio\/Checkbox Selected Style",
254
+ "color": "Color",
255
+ "submit": "Submit",
256
+ "opt_google_fonts_family": "Font Family",
257
+ "button_text_color": "Color",
258
+ "button_background_color": "Background Color",
259
+ "hover_effect_button_label": "Hover Effect for Button",
260
+ "stretch_button_label": "Stretch Button to full width",
261
+ "redirect_url": "Redirect URL",
262
+ "redirect_urllabel": "Choose the Redirect URL",
263
+ "redirect_urldesc": "User will be redirected to this URL after contact form is submitted",
264
+ "alignment": "Alignment",
265
+ "default": "Default",
266
+ "site_title": "Site Title",
267
+ "site_logo": "Show Logo",
268
+ "logo_select": "Select logo",
269
+ "logo_size": "Logo Size",
270
+ "logo_custom_size" : "Logo Custom Size",
271
+ "vertical_alignment" : "Vertical Alignment",
272
+ "default_logo" : "Default Logo",
273
+ "custom_logo" : "Custom Logo",
274
+ "logo_img_type" : "Logo Image",
275
+ "logo_style": "Logo Style",
276
+ "font_style": "Font Style",
277
+ "posts_grid_query_type_label": "Query Type",
278
+ "posts_grid_query_type_desc": "Choose Query Type",
279
+ "simple": "Simple",
280
+ "posts_grid_custom_query_label": "Custom query",
281
+ "ids": "IDs",
282
+ "posts_grid_post_type_label": "Post Type to show",
283
+ "posts_grid_post_type_desc": "Select post type to populate posts from",
284
+ "posts_grid_category_label": "Display posts by category slug",
285
+ "posts_grid_category_desc": "Separate with ',' to display posts that have either of these categories or with '+' to display posts that have all of these categories.",
286
+ "posts_grid_tag_label": "Display posts by tag slug",
287
+ "posts_grid_tag_desc": "Separate with ',' to display posts that have either of these tags or with '+' to display posts that have all of these tags.",
288
+ "posts_grid_custom_tax_label": "Custom Taxonomy",
289
+ "posts_grid_custom_tax_field_label": "Taxonomy field",
290
+ "term_id": "Term ID",
291
+ "slug": "Slug",
292
+ "name": "Name",
293
+ "posts_grid_custom_tax_term_label": "Taxonomy term(s)",
294
+ "posts_grid_custom_tax_term_desc": "Separate with ',' to display posts that have either of these terms or with '+' to display posts that have all of these tags.",
295
+ "posts_grid_posts_per_page_label": "Posts count",
296
+ "posts_grid_sort_order": "Sort order",
297
+ "posts_grid_sort_order_ascending": "Ascending",
298
+ "posts_grid_sort_order_descending": "Descending",
299
+ "posts_grid_custom_query_desc": "Build custom query according to PageLayer Codex. Example: post_type=portfolio&posts_per_page=5&orderby=title",
300
+ "posts_grid_ids_label": "IDs of posts",
301
+ "posts_grid_ids_desc": "Separate with ','",
302
+ "columns_count": "Columns count",
303
+ "posts_grid_template_label": "Post Style",
304
+ "posts_grid_posts_gap_label": "Vertical gap between posts",
305
+ "posts_grid_show_featured_image": "Show Featured Image",
306
+ "obj_image_size_label": "Size",
307
+ "full": "Full",
308
+ "medium": "Medium",
309
+ "thumbnail": "Thumbnail",
310
+ "image_custom_size_label": "Custom Size",
311
+ "posts_grid_title_tag": "Title style",
312
+ "posts_grid_title_tag_none": "Hide",
313
+ "posts_grid_show_date_comments": "Show Date and Comments",
314
+ "posts_grid_show_content": "Post description",
315
+ "posts_grid_show_content_short": "Short",
316
+ "posts_grid_show_content_full": "Full",
317
+ "posts_grid_show_content_excerpt": "Excerpt",
318
+ "posts_grid_show_content_none": "None",
319
+ "posts_grid_short_content_length": "Length of the Text",
320
+ "posts_grid_read_more_text_label": "Post Read More link text",
321
+ "posts_grid_read_more_text": "Read more",
322
+ "posts_grid_display_style": "Display Style",
323
+ "show_all": "Show All",
324
+ "posts_grid_display_style_load_more": "Load More Button",
325
+ "posts_grid_display_style_pagination": "Pagination",
326
+ "posts_grid_load_more_text_label": "Load More button text",
327
+ "posts_grid_load_more_text_default": "Load More",
328
+ "posts_grid_filter_label": "Filter",
329
+ "posts_grid_filter_desc": "Add taxonomy filter.",
330
+ "posts_grid_filter_by_first_tax": "First Taxonomy",
331
+ "posts_grid_filter_by_second_tax": "Second Taxonomy",
332
+ "posts_grid_filter_by_both": "Both",
333
+ "posts_grid_filter_first_tax_name": "Select First Taxonomy",
334
+ "posts_grid_filter_second_tax_name": "Select Second Taxonomy",
335
+ "button_color_label": "Button color",
336
+ "pink_dreams": "Pink Dreams",
337
+ "warm": "Warm",
338
+ "hot_summer": "Hot Summer",
339
+ "olive_garden": "Olive Garden",
340
+ "green_grass": "Green Grass",
341
+ "skyline": "Skyline",
342
+ "aqua_blue": "Aqua Blue",
343
+ "violet": "Violet",
344
+ "dark_grey": "Dark Grey",
345
+ "filter_links_divider": "Divider",
346
+ "posts_grid_filter_first_tax_text_label": "First Filter Title",
347
+ "categories": "Categories",
348
+ "posts_grid_filter_second_tax_text_label": "Second Filter Title",
349
+ "tags": "Tags",
350
+ "posts_grid_filter_view_all_text_label": "\"View All\" text",
351
+ "post_count" : "Post Count",
352
+ "post_types" : "Post Types",
353
+ "posts_style" : "Post Style",
354
+ "post_sort_order" : "Sort Order",
355
+ "sort_order_ascending" : "Ascending",
356
+ "sort_order_descending" : "Descending",
357
+ "posts_order_by": "Order by",
358
+ "posts_order_by_id": "ID",
359
+ "posts_order_by_date": "Date",
360
+ "posts_order_by_author": "Author",
361
+ "posts_order_by_modified": "Modified",
362
+ "posts_order_by_random": "Random",
363
+ "posts_order_by_comment_count": "Comment count",
364
+ "posts_order_by_menu_order": "Menu order",
365
+ "show_excerpt":"Show Excerpt",
366
+ "posts_grid_post_title_tag": "Post title",
367
+ "service_box_layout_label": "Content style",
368
+ "image_link_label": "Link to",
 
 
 
 
 
369
  "image_link_url": "URL",
370
+ "hide_title" : "Hide Title",
371
+ "hide_image" : "Hide Image",
372
+ "img_size" : "Image Size",
373
+ "img_height" : "Height",
374
+ "content_color" : "color",
375
+ "hide_date" : "Hide Date",
376
+ "hide_link" : "Hide Link",
377
+ "link_color" : "Link Color",
378
+ "background_color" : "Background Color",
379
+ "post_shadow" : "Shadow",
380
+ "border_state" : "Border state",
381
+ "slider_items_display" : "Slides Per Page",
382
+ "slider_autoplay" : "Autoplay",
383
+ "slider_navigations" : "Navigation",
384
+ "slider_loop" : "Loop",
385
+ "slider_arrows_color" : "Navigation Color",
386
+ "slides_bullets" : "Bullets",
387
+ "image_style" : "Image",
388
+ "content_style" : "Post Content",
389
+ "date_style" : "Post Date",
390
+ "slider_post_style" : "Post Style",
391
+ "slider_options" : "Slider Options",
392
+ "disable": "Disable",
393
+ "image_slider_animation_label": "Animation type",
394
+ "image_slider_animation_slide": "Slide",
395
+ "image_slider_animation_fade": "Fade",
396
+ "image_slider_smooth_height_label": "Smooth height",
397
+ "image_slider_smooth_height_desc": "Animate the height of the slider smoothly for slides of varying height",
398
+ "image_slider_control_nav_label": "Show bullets",
399
+ "pages": "Pages",
400
+ "parameters_title": "Title",
401
+ "wp_pages": "Pages",
402
+ "wp_pages_description": "Your site pages",
403
+ "sort_by": "Sort by",
404
+ "sort_by_page_title": "Page title",
405
+ "sort_by_page_order": "Page order",
406
+ "sort_by_page_id": "Page ID",
407
+ "exclude": "Exclude",
408
+ "wp_pages_exclude_pages": "Page IDs, separated by commas.",
409
+ "wp_recent_posts": "Recent Posts",
410
+ "wp_recent_posts_description": "The most recent posts on your site",
411
+ "wp_recent_posts_number": "Number of Posts to show",
412
+ "wp_recent_posts_display_date": "Display post date ?",
413
+ "calendar": "Calendar",
414
+ "wp_calendar": "Calendar",
415
+ "wp_calendar_description": "A calendar of your site posts",
416
+ "wp_recent_comments": "Recent Comments",
417
+ "wp_recent_comments_description": "The most recent comments",
418
+ "wp_recent_comments_number": "Number of Comments to show",
419
+ "wp_categories": "Categories",
420
+ "wp_categories_description": "A list or dropdown of categories",
421
+ "wp_display_as_drop_down": "Display as dropdown",
422
+ "wp_show_post_counts": "Show post counts",
423
+ "wp_categories_show_hierarchy": "Show hierarchy",
424
+ "archives": "Archives",
425
+ "wp_archives": "Archives",
426
+ "wp_archives_description": "A monthly archive of your site posts",
427
+ "wp_tags": "Tags",
428
+ "wp_tag_cloud_description": "Your most used tags in cloud format",
429
+ "wp_tag_cloud_taxonomy": "Taxonomy",
430
+ "wp_tag_cloud_categories": "Categories",
431
+ "search": "Search",
432
+ "wp_rsssearch": "Search",
433
+ "wp_rsssearch_description": "A search form for your site",
434
+ "rss": "RSS",
435
+ "wp_rssurl": "RSS feed URL",
436
+ "wp_rssurl_description": "Enter the RSS feed URL here",
437
+ "wp_rssfeed_title": "Feed title",
438
+ "wp_rssfeed_title_description": "Give the feed a title (optional)",
439
+ "wp_rssquantity": "Items quantity",
440
+ "wp_rssquantity_description": "How many items would you like to display?",
441
+ "wp_rssdisplay_content": "Display item content?",
442
+ "wp_rssdisplay_author": "Display item author if available?",
443
+ "wp_rssdisplay_date": "Display item date ?",
444
+ "meta": "Meta",
445
+ "wp_meta": "Meta",
446
+ "wp_meta_description": "Log in\/out, admin, feed and SitePad links",
447
+ "normal": "Normal",
448
+ "hover": "Hover",
449
+ "gradient": "Gradient",
450
+ "image": "Image",
451
+ "ele_bg_attachment": "Attachment",
452
+ "scroll": "Scroll",
453
+ "fixed": "Fixed",
454
+ "ele_bg_posx": "Position X",
455
+ "ele_bg_posy": "Position Y",
456
+ "ele_bg_repeat": "Repeat",
457
+ "repeat": "Repeat",
458
+ "no-repeat": "No-repeat",
459
+ "repeat-x": "Repeat-x",
460
+ "repeat-y": "Repeat-y",
461
+ "ele_bg_size": "Size",
462
+ "cover": "Cover",
463
+ "contain": "Contain",
464
+ "ele_bg_hover_delay": "Delay",
465
+ "ele_bg_attachment_hover": "Attachment",
466
+ "ele_bg_posx_hover": "Position X",
467
+ "ele_bg_posy_hover": "Position Y",
468
+ "ele_bg_repeat_hover": "Repeat",
469
+ "ele_bg_size_hover": "Size",
470
+ "margin": "Margin",
471
+ "z-index": "Z-index",
472
+ "border_type": "Border Type",
473
+ "animation": "Animation",
474
+ "fading": "Fading",
475
+ "fadein": "Fade In",
476
+ "fadeindown": "Fade In Down",
477
+ "fadeinup": "Fade In Up",
478
+ "fadeinleft": "Fade In Left",
479
+ "fadeinright": "Fade In Right",
480
+ "zooming": "Zooming",
481
+ "zoomin": "Zoom In",
482
+ "zoomindown": "Zoom In Down",
483
+ "zoominup": "Zoom In Up",
484
+ "zoominleft": "Zoom In Left",
485
+ "zoominright": "Zoom In Right",
486
+ "bounceing": "Bounceing",
487
+ "bouncein": "Bounce In",
488
+ "bounceindown": "Bounce In Down",
489
+ "bounceinup": "Bounce In Up",
490
+ "bounceinleft": "Bounce In Left",
491
+ "bounceinright": "Bounce In Right",
492
+ "sliding": "Sliding",
493
+ "slideindown": "Slide In Down",
494
+ "slideinup": "Slide In Up",
495
+ "slideinleft": "Slide In Left",
496
+ "slideinright": "Slide In Right",
497
+ "rotating": "Rotating",
498
+ "rotatein": "Rotate In",
499
+ "rotateindown": "Rotate In Down",
500
+ "rotateinup": "Rotate In Up",
501
+ "rotateinleft": "Rotate In Left",
502
+ "rotateinright": "Rotate In Right",
503
+ "fadeout": "Fade Out",
504
+ "fadeoutdown": "Fade Out Down",
505
+ "fadeoutup": "Fade Out Up",
506
+ "fadeoutleft": "Fade Out Left",
507
+ "fadeoutright": "Fade Out Right",
508
+ "zoomout": "Zoom Out",
509
+ "zoomoutdown": "Zoom Out Down",
510
+ "zoomoutup": "Zoom Out Up",
511
+ "zoomoutleft": "Zoom Out Left",
512
+ "zoomoutright": "Zoom Out Right",
513
+ "bounceout": "Bounce Out",
514
+ "bounceoutdown": "Bounce Out Down",
515
+ "bounceoutup": "Bounce Out Up",
516
+ "bounceoutleft": "Bounce Out Left",
517
+ "bounceoutright": "Bounce Out Right",
518
+ "slideoutdown": "Slide Out Down",
519
+ "slideoutup": "Slide Out Up",
520
+ "slideoutleft": "Slide Out Left",
521
+ "slideoutright": "Slide Out Right",
522
+ "rotateout": "Rotate Out",
523
+ "rotateoutdown": "Rotate Out Down",
524
+ "rotateoutup": "Rotate Out Up",
525
+ "rotateoutleft": "Rotate Out Left",
526
+ "rotateoutright": "Rotate Out Right",
527
+ "effects": "Effects",
528
+ "lightspeedin": "Light Speed In",
529
+ "bounce": "Bounce",
530
+ "pulse": "Pulse",
531
+ "rubberband": "Rubber Band",
532
+ "flash": "Flash",
533
+ "swing": "Swing",
534
+ "jello": "Jello",
535
+ "tada": "Tada",
536
+ "wobble": "Wobble",
537
+ "rollin": "Rollin",
538
+ "headshake": "Head Shake",
539
+ "shake": "Shake",
540
+ "animate_speed": "Speed",
541
+ "fast": "Fast",
542
+ "slow": "Slow",
543
+ "fastest": "Fastest",
544
+ "slowest": "Slowest",
545
+ "animation_delay": "Delay",
546
+ "hide_desktop": "Hide On Desktop",
547
+ "hide_tablet": "Hide On Tablet",
548
+ "hide_mobile": "Hide On Mobile",
549
+ "ele_id": "CSS Id",
550
+ "ele_id_desc": "You can add your custom ID without Hash(#)",
551
+ "ele_classes": "CSS Class",
552
+ "ele_classes_desc": "You can add your custom Class without dot(.)",
553
+ "row": "Row",
554
+ "con_width": "Container Width",
555
+ "con_width_exp": "The default value of row container max-width: 1170px, you can change it here",
556
+ "auto": "Auto",
557
+ "full_width": "Full",
558
+ "fixed_width": "Fixed",
559
+ "row_width": "Row Width",
560
+ "col_gap": "Columns Gap",
561
+ "auto_width": "Auto",
562
+ "fit_to_screen": "Fit Screen",
563
+ "min_height": "Min Height",
564
+ "row_bg_type": "Background Type",
565
  "background_type": "Background Type",
566
+ "parallax": "Parallax",
567
+ "video_src_label": "Video URL",
568
+ "video_src_desc": "Paste the URL of a video (YouTube, Vimeo, Dailymotion, etc) or choose from your media library",
569
+ "overlay_type": "Background Type",
570
+ "overlay_img_attachment": "Attachment",
571
+ "overlay_bg_posx": "Position X",
572
+ "overlay_bg_posy": "Position Y",
573
+ "overlay_bg_repeat": "Repeat",
574
+ "overlay_bg_size": "Size",
575
+ "overlay_transperancy": "Transparency",
576
+ "overlay_hover_delay": "Delay",
577
+ "overlay_type_hover": "Background Type",
578
+ "overlay_img_attachment_hover": "Attachment",
579
+ "overlay_bg_posx_hover": "Position X",
580
+ "overlay_bg_posy_hover": "Position Y",
581
+ "overlay_bg_repeat_hover": "Repeat",
582
+ "overlay_bg_size_hover": "Size",
583
+ "overlay_transperancy_hover": "Transperancy",
584
+ "shape_position": "Position",
585
+ "Top": "Top",
586
+ "Bottom": "Bottom",
587
+ "shape_type": "Type",
588
+ "Arrow": "Arrow",
589
+ "BigTriangle": "BigTriangle",
590
+ "Curve": "Curve",
591
+ "Clouds": "Clouds",
592
+ "Mountains": "Mountains",
593
+ "Pyramids": "Pyramids",
594
+ "Stamp": "Stamp",
595
+ "Slit": "Slit",
596
+ "Split": "Split",
597
+ "Tilt": "Tilt",
598
+ "Waves": "Waves",
599
+ "Zigzag": "Zigzag",
600
+ "shape_bg_color": "Color",
601
+ "shape_width": "Width",
602
+ "shape_height": "Height",
603
+ "shape_flip": "Flip",
604
+ "row_bg_styles": "Background",
605
+ "row_bg_overlay": "Overlay",
606
+ "shape_styles": "Shape Styles",
607
  "column": "Column",
608
  "widget_space": "Widgets Space",
609
  "width_custom": "Custom Width",
806
  "Lightbox": "Lightbox",
807
  "Autoplay": "Autoplay",
808
  "Mute": "Mute",
809
+ "loop": "Loop",
810
  "video_style": "Video",
811
  "overlay_style": "Overlay",
812
  "service_box_image_icon_label": "Choose Image",
1013
  "color_hover" : "Color Hover",
1014
  "col_width" : "Column Width",
1015
  "link_settings" : "Link",
1016
+ "enable_slideshow" : "Enable Slideshow",
1017
+ "slideshow_speed" : "Speed in seconds",
1018
+ "slideshow_start" : "Start with slide number",
1019
+ "slider_transition" : "Slider Animation",
1020
+ "slider_preload" : "Preload Slides",
1021
+ "slider_options" : "Slider Options",
1022
+ "arrow_styles" : "Arrow Style",
1023
+ "pager_styles" : "Pager Options",
1024
+ "arrows" : "Show Arrows",
1025
+ "background_size" : "Background Size",
1026
+ "size" : "Size",
1027
+ "background_shape" : "Background Shape",
1028
+ "pager" : "Pager",
1029
+ "active_pager_color" : "Active Pager Color",
1030
+ "pager_overlay" : "Overlay Pager",
1031
+ "menu_list" : "Menu List",
1032
+ "menu_item" : "Menu Item",
1033
+ "divider_color" : "Divider Color",
1034
+ "thickness" : "Thickness",
1035
+ "space_bottom" : "Bottom Space",
1036
+ "item_details" : "Item Details",
1037
+ "desc_style" : "Description",
1038
+ "includes_default" : "Cheese | Pepper | Mushrooms",
1039
+ "desc_default" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
1040
+ "menu_name" : "Menu",
1041
+ "animated_heading" : "Animated Heading",
1042
+ "rotate_default" : "Effects,Rotates,&More",
1043
+ "rotate_text" : "Rotate Text",
1044
+ "after_text" : "After Text",
1045
+ "misc_style" : "Miscellaneous",
1046
+ "blob_1_color" : "Blob1 Color",
1047
+ "blob_2_color" : "Blob2 Color",
1048
+ "blob_3_color" : "Blob3 Color",
1049
+ "blob_4_color" : "Blob4 Color",
1050
+ "blob_5_color" : "Blob5 Color",
1051
+ "blob_6_color" : "Blob6 Color",
1052
+ "blob_7_color" : "Blob7 Color",
1053
+ "stroke_thickness" : "Stroke Thickness",
1054
+ "stroke_color" : "Stroke Color",
1055
+ "rotate_color" : "Rotate Color",
1056
+ "rotate-1" : "Rotate-1",
1057
+ "rotate-2" : "Rotate-2",
1058
+ "rotate-3" : "Rotate-3",
1059
+ "loading-bar" : "Loading-Bar",
1060
+ "slide" : "Slide",
1061
+ "clip" : "Clip",
1062
+ "zoom" : "Zoom",
1063
+ "scale" : "Scale",
1064
+ "push" : "Push",
1065
+ "blobs" : "Blobs",
1066
+ "stroke" : "Stroke",
1067
+ "btn_grp" : "Button Group",
1068
+ "download_btn" : "Download Button",
1069
+ "playpause_style" : "Play Pause Style",
1070
+ "space_around" : "Space Around",
1071
+ "duration_style" : "Duration Time Style",
1072
+ "show" : "Show",
1073
+ "progress_style" : "Progress Bar Style",
1074
+ "loaded_color" : "Loaded Color",
1075
+ "current_color" : "Current Color",
1076
+ "hovered_color" : "Hover Color",
1077
+ "handle_color" : "Handle Color",
1078
+ "current_style" : "Current Style",
1079
+ "volume_style" : "Volume Style",
1080
+ "volume_slider" : "Volume Slider",
1081
+ "video_slider" : "Video Slider",
1082
+ "add_media" : "Add Media",
1083
+ "cta" : "Call To Action",
1084
+ "opacity" : "Opacity",
1085
+ "subheading_styles" : "Subheading style",
1086
+ "content_styles" : "Content Box Style",
1087
+ "verticle_postion" : "Verticle Position",
1088
+ "shadow_pos" : "Shadow Position",
1089
+ "shadow_color" : "Shadow Color",
1090
+ "ribbon_text_default" : "New Arrivals",
1091
+ "close_style" : "Close",
1092
+ "horizontalbar_chart" : "Horizontal Bar Chart",
1093
+ "radar" : "Radar Chart",
1094
+ "doughnut_chart" : "Doughnut Chart",
1095
+ "polararea" : "Polar Area",
1096
+ "legend_pos" : "Legend Position",
1097
+ "custom_dimension" : "Custom Dimension",
1098
+ "label_style" : "Labels",
1099
+ "colors" : "Colors",
1100
+ "datasets" : "Datasets",
1101
+ "dataset_name" : "Dataset",
1102
+ "ticks_style" : "Ticks",
1103
+ "axis" : "Axis",
1104
+ "x-axis" : "X-Axis",
1105
+ "y-axis" : "Y-Axis",
1106
+ "begin_at_zero" : "Begin At Zero",
1107
+ "fill_color" : "Fill Color",
1108
+ "after" : "After",
1109
+ "post_excerpt" : "Post Excerpt",
1110
+ "featured_img" : "Featured Image",
1111
+ "fallback_img" : "Fallback Image",
1112
+ "breadcrumb" : "Breadcrumb",
1113
+ "home_label" : "Homepage Anchor Text",
1114
+ "search_prefix" : "Search Page Prefix",
1115
+ "404_prefix" : "404 Page Prefix",
1116
+ "cur_color" : "Active Color",
1117
+ "prefix_style" : "Prefix Style",
1118
+ "breadcrumb_prefix" : "Breadcrumb Prefix",
1119
+ "search_prefix" : "Search Page Prefix",
1120
+ "404_prefix" : "404 Page Prefix",
1121
+ "post_folio" : "Post Portfolio",
1122
+ "columns" : "Columns",
1123
+ "post_per_page" : "Posts Per Page",
1124
+ "ratio" : "Height Ratio",
1125
+ "row_gap" : "Row Gap",
1126
+ "show_title" : "Show Title",
1127
+ "filter_style" : "Filter Style",
1128
+ "filter_by" : "Filter By",
1129
+ "btn_padding" : "Button Padding",
1130
+ "space_between" : "Space Between",
1131
  "search_form" : "Search Form",
1132
  "form_type" : "Form Type",
1133
  "button_type" : "Button Type",
1198
  "separator_style" : "Separator Style",
1199
  "theme_tamplate" : "Theme Template",
1200
  "Drop_out" : "Drop Out",
1201
+ "on_hover" : "On Hover",
1202
+ "posts" : "Posts",
1203
+ "box_shadow" : "Box Shadow",
1204
+ "thumb_style" : "Thumbnail Style",
1205
+ "show_thumb" : "Show Thumbnail",
1206
+ "medium_large" : "Medium Large",
1207
+ "top_bottom_spacing" : "Top Bottom Spacing",
1208
+ "meta_options" : "Meta Options",
1209
+ "category" : "Category",
1210
+ "show_content" : "Show Content",
1211
+ "excerpt" : "Excerpt",
1212
+ "more_style" : "Read More Style",
1213
  "no_tag" : "No Tag",
1214
  "no_widget_class" : "No Widget Class",
1215
  "invalid_post_id" : "Invalid post ID",
1221
  "rev_load_success" : "Post revision was loaded successfully!",
1222
  "access_denied" : "Access denied.",
1223
  "delete_rev_error" : "Can't delete this revision.",
1224
+ "delete_rev_success" : "Revision was deleted Successfully",
1225
+ "hide_name" : "Hide Name",
1226
+ "animation_direction" : "Animation Direction",
1227
+ "animation_duration" : "Animation Duration",
1228
+ "front_section" : "Front Section",
1229
+ "visual_element" : "Visual Element",
1230
+ "flip" : "Flip",
1231
+ "slide" : "Slide",
1232
+ "push" : "Push",
1233
+ "zoom-in" : "Zoom In",
1234
+ "zoom-out" : "Zoom Out",
1235
+ "fade" : "Fade",
1236
+ "content_width" : "Content Width",
1237
+ "icon_label" : "Icon",
1238
+ "icon_view" : "Frame",
1239
+ "icon_color" : "Color",
1240
+ "icon_background_color":"Background Color",
1241
+ "icon_border_color" : "Border Color",
1242
+ "back_section" : "Back Section",
1243
+ "text_color" : "Text Color",
1244
+ "text_style" : "Text Style",
1245
+ "icon_background_size": "Background Space",
1246
+ "size_label" : "Size",
1247
+ "icon_custom_size" : "Custom Size",
1248
+ "icon_rotate" : "Rotate",
1249
+ "background_attachment" : "Attachment",
1250
+ "back_side" : "Flipbox Back Side",
1251
+ "border_color" : "Border Color",
1252
+ "button_color" : "Color",
1253
+ "button_size" : "Size",
1254
+ "image_size" : "Image Size",
1255
+ "img_custom_size" : "Custom Size",
1256
+ "content" : "Content",
1257
+ "background_gradient" : "Gradient",
1258
+ "app_id" : "Facebook App ID",
1259
+ "post_link_type" : "Post Link Type",
1260
+ "page_url" : "Custom Link",
1261
+ "share_btn" : "Share Button",
1262
+ "liked_faces" : "People Faces",
1263
+ "layout_type" : "Layout",
1264
+ "standard" : "Standard",
1265
+ "box_count" : "Box Count",
1266
+ "button_count" : "Button Count",
1267
+ "btn_action": "Action",
1268
+ "like" : "Like",
1269
+ "recommend" : "Recommend",
1270
+ "color_scheme" : "Color Scheme",
1271
+ "current_url" : "Current URL",
1272
+ "btn_size" : "Button Size",
1273
+ "post" : "Post",
1274
+ "comment" : "Comment",
1275
+ "embed_type" : "Embed Type",
1276
+ "post" : "Post",
1277
+ "post-url" : "Post URL",
1278
+ "video-url" : "Video URL",
1279
+ "comment-url" : "Comment URL",
1280
+ "full_post" : "Full Post",
1281
+ "autoplay" : "Autoplay",
1282
+ "captions" : "Captions",
1283
+ "parent_comments" : "Parent Comments",
1284
+ "comments_count" : "Number of Comments",
1285
+ "comments_width" : "Width",
1286
+ "comments_order" : "Order",
1287
+ "social" : "Social",
1288
+ "reverse_time" : "Reverse Time",
1289
+ "time" : "Time",
1290
+ "page_link" : "Page URL",
1291
+ "tabs" : "Tabs",
1292
+ "timeline" :"Timeline",
1293
+ "events" : "Events",
1294
+ "messages" : "Messages",
1295
+ "page_height" : "Height",
1296
+ "small_header" : "Small Header",
1297
+ "hide_cover" : "Hide Cover",
1298
+ "cta_button" : "Facebook CTA Button",
1299
+ "author_Name" : "Author Name",
1300
+ "author_Name_color" : "Author Color",
1301
+ "author_title" : "Author Title",
1302
+ "author_title_color" : "Title Color",
1303
+ "author_rating" : "Authors Rating",
1304
+ "author_url" : "Author URL",
1305
+ "author_Icon" : "Icon",
1306
+ "review" : "Review",
1307
+ "rw_image_width" : "Image size",
1308
+ "seperator_color" : "Seperator Color",
1309
+ "seperator_width" : "Seperator Size",
1310
+ "rw_text_color" : "Review Color",
1311
+ "background_color" : "Background Color",
1312
+ "shadow" : "Shadow",
1313
+ "slides_to_display" : "Slides to View",
1314
+ "navigation" : "Navigation Arrows",
1315
+ "bullets" : "Dots",
1316
+ "slider_pause_on_hover" : "Pause On Hover",
1317
+ "rtl" : "Right To Left",
1318
+ "slide_content" : "Slide Content",
1319
+ "stars_style" : "Stars",
1320
+ "slide_style" : "Slide Style",
1321
+ "templates" : "Templates",
1322
+ "archive_title" : "Archive Title",
1323
+ "select_templates" : "Select Templates",
1324
+ "post_content" : "Post Content",
1325
+ "slider_options" : "Slider Options",
1326
+ "submit_button_label" : "Submit Button Label",
1327
+ "submit_fonts_family" : "Submit Button Font Family",
1328
+ "use_recaptcha" : "Use Google reCaptcha",
1329
+ "use_recaptcha_desc" : "Protect this form from spam and abuse. Configure Google reCAPTCHA in plugin settings first.",
1330
+ "form_id" : "Form ID",
1331
+ "label_name" : "Label Name",
1332
+ "form_id_desc" : "Is used in e-mail template",
1333
+ "form_name" : "Form Name",
1334
+ "form_name_desc" : "Is used in e-mail subject",
1335
+ "input_field_type" : "Select Field Type",
1336
+ "e-mail" : "E-Mail",
1337
+ "number" : "Number",
1338
+ "telephone" : "Telephone",
1339
+ "checkbox" : "Checkbox",
1340
+ "radio" : "Radio",
1341
+ "textarea" : "Textarea",
1342
+ "select" : "Select",
1343
+ "values" : "Field Values",
1344
+ "required_label" : "Required Label",
1345
+ "show_label_as_placeholder" : "Show Label as PlaceHolder",
1346
+ "input_field_name" : "Input Field Name",
1347
+ "author_box" : "Author Box",
1348
+ "contact_item" : "Contact Item",
1349
+ "contact_form" : "Contact Form",
1350
+ "field_name" : "Input Field",
1351
+ "box_source_type" : "Source Type",
1352
+ "current_author" : "Current Author",
1353
+ "custom_image" : "Custom Image",
1354
+ "author_picture" : "Author Picture",
1355
+ "show_name" : "Show Name",
1356
+ "display_name" : "Display Name",
1357
+ "name_style" : "Name Style Tag",
1358
+ "show_site" : "Show Website",
1359
+ "author_website" : "Author Website",
1360
+ "show_website_btn" : "Show Website as Button",
1361
+ "show_bio" : "Show Author Bio",
1362
+ "description" : "Description",
1363
+ "show_archive_btn" : "Show Archive Button",
1364
+ "archive_btn_txt" : "Archive Button Text",
1365
+ "extra_small" : "Extra Small",
1366
+ "gap" : "Gap",
1367
+ "btn_gap" : "Button Gap",
1368
+ "remember_me" : "Remember Me",
1369
+ "lost_pass" : "Lost your Password ?",
1370
+ "custom_label" : "Custom Label",
1371
+ "custom_label_username" : "Custom Label for Username",
1372
+ "custom_placeholder_login" : "Custom PlaceHolder for Login",
1373
+ "custom_label_password" : "Custom Label for Password",
1374
+ "custom_placeholder_password" : "Custom PlaceHolder for Password",
1375
+ "redirect_login" : "Redirect After Login",
1376
+ "login_redirect_url" : "Login Redirect URL",
1377
+ "redirect_url_desc" : "redirect link ex. https://your-link.com",
1378
+ "redirect_logout" : "Redirect After Logout",
1379
+ "logout_redirect_url" : "Logout Redirect URL",
1380
+ "link_color_hover" : "Link Color Hover",
1381
+ "title_tags" : "Title Name Style",
1382
+ "nofollow" : "No Follow",
1383
+ "protected_post" : "Protected Post",
1384
+ "title_color" : "Title Color",
1385
+ "title_typography" : "Title Typography",
1386
+ "list_color" : "List Color",
1387
+ "list_typography" : "List Typography",
1388
+ "taxonomy" : "Taxanomy",
1389
+ "source" : "Source",
1390
+ "order_by" : "Order By",
1391
+ "order" : "Order",
1392
+ "menu_order" : "Menu Order",
1393
+ "random" : "Random",
1394
+ "id" : "ID",
1395
+ "asc" : "ASC",
1396
+ "desc" : "DESC",
1397
+ "hide_empty" : "Hide Empty",
1398
+ "hierarchical_view" : "Hierarchical View",
1399
+ "depth" : "Depth",
1400
+ "list_option" : "List Option",
1401
+ "additional_option" : "Additional Option",
1402
+ "login" : "Login",
1403
+ "sitemap" : "Sitemap",
1404
+ "sitemap_item" : "Sitemap Item",
1405
+ "form_style" : "Form Style",
1406
+ "sitemap_disc": "Disc",
1407
+ "sitemap_square": "Square",
1408
+ "sitemap_circle": "Circle",
1409
+ "sitemap_none": "None",
1410
+ "horizontal_pos" : "Horizontal Position",
1411
+ "verticle_pos" : "Verticle Position",
1412
+ "content_box_style" : "Content Box Styles",
1413
+ "sub_style" : "Sub Heading",
1414
+ "height" : "Height",
1415
+ "number_of_items" : "Number of Items",
1416
+ "arraow_size" : "Arrow Size",
1417
+ "dot_size" : "Dot Size",
1418
+ "autoplay_timeout" : "Autoplay Timeout",
1419
+ "autoplay_hover_pause" : "Autoplay Hover Pause",
1420
+ "slides" : "Slides",
1421
+ "pulse_color" : "Pulse Color",
1422
+ "rounded" : "Rounded",
1423
+ "theme" : "Theme",
1424
+ "social_share" : "Social Share",
1425
+ "count_in_line" : "Icon Count in One Line",
1426
+ "icon_shape_boxed" : "Boxed",
1427
+ "space_between_col" : "Space Between (Vertical)",
1428
+ "space_between_row" : "Space Between (Horizontal)",
1429
+ "aspect_ratio" : "Aspect Ratio",
1430
+ "table_row" : "Table Row",
1431
+ "odd_row_bg" : "Odd Row background",
1432
+ "even_row_bg" : "Even Row background",
1433
+ "table_cell" : "Table Cell",
1434
+ "data" : "Data",
1435
+ "cell_type" : "Cell Type",
1436
+ "standard_cell" : "Standard Cell",
1437
+ "header_cell" : "Header Cell",
1438
+ "colspan" : "Colspan",
1439
+ "rowspan" : "Rowspan",
1440
+ "delay" : "Delay",
1441
+ "splash_screen" : "Splash Screen",
1442
+ "custom_height" : "Custom Height",
1443
+ "custom_width" : "Custom Width",
1444
+ "company_performance" : "Company Performance",
1445
+ "chart_dataset" : "Chart Dataset",
1446
+ "countdown_timer" : "Countdown Timer",
1447
+ "pricing_table" : "Pricing Table",
1448
+ "exc_length" : "Excerpt Length",
1449
+ "remember_me" : "Remember Me",
1450
+ "lost_your_password" : "Lost Your Password",
1451
+ "redirect_login" : "Redirect on Login",
1452
+ "redirect_login_url" : "Login Redirect URL",
1453
+ "redirect_logout" : "Redirect on Logout",
1454
+ "redirect_logout_url" : "Logout Redirect URL",
1455
+ "link_hover_color" : "Link Hover Color",
1456
+ "show_label" : "Show Label",
1457
+ "custom_label" : "Custom Label",
1458
+ "custom_username_label" : "Custom Username Label",
1459
+ "custom_username_placeholder" : "Custom Username Placeholder",
1460
+ "custom_password_label" : "Custom Password Label",
1461
+ "custom_password_placeholder" : "Custom Password Placeholder",
1462
+ "includes_styles" : "Includes",
1463
+ "angle" : "Angle",
1464
+ "angle_double" : "Angle Double",
1465
+ "arrow_circle" : "Arrow Circle",
1466
+ "arrow_circle_O" : "Arrow Circle O",
1467
+ "chevron" : "Chevron",
1468
+ "chevron_circle" : "Chevron Circle",
1469
+ "caret" : "Caret",
1470
+ "long_arrow" : "Long Arrow",
1471
+ "last_day" : "Last Day",
1472
+ "last_week" : "Last Week",
1473
+ "last_month" : "Last Month",
1474
+ "last_year" : "Last Year",
1475
+ "include_by" : "Include By",
1476
+ "exclude_by" : "Exclude By",
1477
+ "include" : "Include",
1478
+ "term" : "Term",
1479
+ "ignore_sticky_posts" : "Ignore Sticky Posts",
1480
+ "offset" : "Offset",
1481
+ "posts_options" : "Posts Options",
1482
+ "enable_slider" : "Enable Slider",
1483
+ "reviews" : "Reviews",
1484
+ "author_style" : "Author Style",
1485
+ "review_style" : "Review Style",
1486
+ "seperator_style" : "Seperator Style",
1487
+ "show_avatar" : "Show Avatar",
1488
+ "testimonial_slider" : "Testimonial Slider",
1489
+ "add_temp" : "Add New Pagelayer Template",
1490
+ "edit_temp" : "Edit Pagelayer Template",
1491
+ "temp_update_success" : "The Template was saved successfully",
1492
+ "temp_error" : "There was an error saving the template",
1493
+ "temp_error_type" : "The template type is invalid",
1494
+ "edit_using" : "Edit using Pagelayer",
1495
+ "export_template" : "Export Template",
1496
+ "temp_export_empty" : "There are no templates to export !",
1497
+ "temp_export_success" : "The template files were exported successfully",
1498
+ "woo_breadcrumb" : "Woo Breadcrumb",
1499
+ "product_images" : "Product Images",
1500
+ "sale_flash" : "Flash Sale",
1501
+ "thumbnails" : "Thumbnails",
1502
+ "product_price" : "Product Price",
1503
+ "sale_price" : "Sale Price",
1504
+ "add_to_cart" : "Add To Cart",
1505
+ "quantity" : "Quantity",
1506
+ "variations" : "Variations",
1507
+ "product_rating" : "Product Rating",
1508
+ "star_color" : "Star Color",
1509
+ "empty_star_color" : "Empty Star Color",
1510
+ "star_size" : "Star Size",
1511
+ "product_meta" : "Product Meta",
1512
+ "inline_block" : "Inline Block",
1513
+ "product_short_desc" : "Product Short Desc",
1514
+ "column_gap" : "Column Gap",
1515
+ "regular_price" : "Regular Price",
1516
+ "products_style" : "Products Style",
1517
+ "box_style" : "Box Style",
1518
+ "pagination_style" : "Pagination Style",
1519
+ "sale_flash_style" : "Flash Sale Style",
1520
+ "no_found_style" : "Not Found Style",
1521
+ "distance" : "Distance",
1522
+ "product_archives" : "Product Archives",
1523
+ "allow_order" : "Allow Order",
1524
+ "show_result_counter" : "Show Result Counter",
1525
+ "no_found_msg" : "Not Found Message",
1526
+ "related_upsell_products" : "Related/Upsell Products",
1527
+ "product_type" : "Product Type",
1528
+ "products_per_page" : "Products Per Page",
1529
+ "view_cart" : "View Cart",
1530
+ "woo_pages" : "WooCommerce Pages",
1531
+ "cart_page" : "Cart Page",
1532
+ "single_product_page" : "Single Product Page",
1533
+ "checkout_page" : "Checkout Page",
1534
+ "order_tracking_form" : "Order Tracking Form",
1535
+ "my_account" : "My Account",
1536
+ "product_categories" : "Product Categories",
1537
+ "limit" : "Limit",
1538
+ "manual_selection" : "Manual Selection",
1539
+ "by_parent" : "By Parent",
1540
+ "current_subcategories" : "Current Sub-Categories",
1541
+ "count" : "Count",
1542
+ "products" : "Products",
1543
+ "rows" : "Rows",
1544
+ "pagination" : "Pagination",
1545
+ "query" : "Query",
1546
+ "price" : "Price",
1547
+ "popularity" : "Popularity",
1548
+ "rating" : "Rating",
1549
+ "rand" : "Rand",
1550
+ "currunt_query" : "Current Query",
1551
+ "recent_products" : "Recent Products",
1552
+ "sale_products" : "Sale Products",
1553
+ "best_selling_products" : "Best Selling Products",
1554
+ "top_rated_products" : "Top Rated Products",
1555
+ "featured_product" : "Featured Products",
1556
+ "product_addi_info" : "Additional Information",
1557
+ "archive_posts" : "Archive Posts",
1558
+ "product_data_tabs" : "Product Data Tabs",
1559
+ "product_archives_desc" : "Product Archive Description",
1560
+ "panel_style" : "Panel Style",
1561
+ "animation_in" : "Animation In",
1562
+ "animation_out" : "Animation Out",
1563
+ "autoheight" : "Auto Height",
1564
+ "current_user_can_not" : "You do not have edit permissions"
1565
  }
main/ajax.php CHANGED
@@ -24,6 +24,10 @@ if(!defined('PAGELAYER_VERSION')) {
24
  exit('Hacking Attempt !');
25
  }
26
 
 
 
 
 
27
 
28
  // The ajax handler
29
  add_action('wp_ajax_pagelayer_wp_widget', 'pagelayer_wp_widget_ajax');
@@ -32,7 +36,7 @@ function pagelayer_wp_widget_ajax(){
32
  global $pagelayer;
33
 
34
  // Some AJAX security
35
- check_ajax_referer('pagelayer_ajax', 'nonce');
36
 
37
  pagelayer_load_shortcodes();
38
 
@@ -45,8 +49,7 @@ function pagelayer_wp_widget_ajax(){
45
  // No tag ?
46
  if(empty($pagelayer->shortcodes[$tag])){
47
  $ret['error'][] = __pl('no_tag');
48
- echo json_encode($ret);
49
- wp_die();
50
  }
51
 
52
  // Include the widgets
@@ -57,8 +60,7 @@ function pagelayer_wp_widget_ajax(){
57
  // Check the widget class exists ?
58
  if(empty($class) || !class_exists($class)){
59
  $ret['error'][] = __pl('no_widget_class');
60
- echo json_encode($ret);
61
- wp_die();
62
  }
63
 
64
  $instance = [];
@@ -112,8 +114,7 @@ function pagelayer_wp_widget_ajax(){
112
  $ret['widget_data'] = $instance;
113
  }
114
 
115
- echo json_encode($ret);
116
- wp_die();
117
 
118
  }
119
 
@@ -122,7 +123,7 @@ add_action('wp_ajax_pagelayer_save_content', 'pagelayer_save_content');
122
  function pagelayer_save_content(){
123
 
124
  // Some AJAX security
125
- check_ajax_referer('pagelayer_ajax', 'nonce');
126
 
127
  $content = $_POST['pagelayer_update_content'];
128
 
@@ -154,8 +155,7 @@ function pagelayer_save_content(){
154
  $msg['error'] = __pl('post_update_err');
155
  }
156
 
157
- echo json_encode($msg);
158
- wp_die();
159
 
160
  }
161
 
@@ -164,14 +164,23 @@ add_action('wp_ajax_pagelayer_do_shortcodes', 'pagelayer_do_shortcodes');
164
  function pagelayer_do_shortcodes(){
165
 
166
  // Some AJAX security
167
- check_ajax_referer('pagelayer_ajax', 'nonce');
168
 
169
  $data = '';
170
  if(isset($_REQUEST['shortcode_data'])){
171
  $data = stripslashes($_REQUEST['shortcode_data']);
172
  }
173
-
174
- echo do_shortcode($data);
 
 
 
 
 
 
 
 
 
175
  wp_die();
176
 
177
  }
@@ -181,7 +190,7 @@ add_action('wp_ajax_pagelayer_fetch_site_title', 'pagelayer_fetch_site_title');
181
  function pagelayer_fetch_site_title(){
182
 
183
  // Some AJAX security
184
- check_ajax_referer('pagelayer_ajax', 'nonce');
185
 
186
  echo get_bloginfo('name');
187
  wp_die();
@@ -193,7 +202,7 @@ function pagelayer_update_site_title(){
193
  global $wpdb;
194
 
195
  // Some AJAX security
196
- check_ajax_referer('pagelayer_ajax', 'nonce');
197
 
198
  $site_title = $_POST['site_title'];
199
 
@@ -212,7 +221,7 @@ function pagelayer_fetch_sidebar(){
212
  global $wp_registered_sidebars;
213
 
214
  // Some AJAX security
215
- check_ajax_referer('pagelayer_ajax', 'nonce');
216
 
217
  // Create a list
218
  $pagelayer_wp_widgets = array();
@@ -241,7 +250,7 @@ add_action('wp_ajax_pagelayer_fetch_primary_menu', 'pagelayer_fetch_primary_menu
241
  function pagelayer_fetch_primary_menu(){
242
 
243
  // Some AJAX security
244
- check_ajax_referer('pagelayer_ajax', 'nonce');
245
 
246
  if(isset($_POST['nav_list'])){
247
  echo wp_nav_menu([
@@ -260,7 +269,7 @@ add_action('wp_ajax_pagelayer_get_revision', 'pagelayer_get_revision');
260
  function pagelayer_get_revision(){
261
 
262
  // Some AJAX security
263
- check_ajax_referer('pagelayer_ajax', 'nonce');
264
 
265
  $postID = (int) $_GET['postID'];
266
  $post_revisions = array();
@@ -271,8 +280,8 @@ function pagelayer_get_revision(){
271
  $post_revisions = pagelayer_get_post_revision_by_id($postID);
272
  }
273
 
274
- echo json_encode($post_revisions);
275
- wp_die();
276
  }
277
 
278
  // Get post revision
@@ -280,7 +289,7 @@ add_action('wp_ajax_pagelayer_apply_revision', 'pagelayer_apply_revision');
280
  function pagelayer_apply_revision(){
281
 
282
  // Some AJAX security
283
- check_ajax_referer('pagelayer_ajax', 'nonce');
284
 
285
  $revisionID = (int) $_REQUEST['revisionID'];
286
  $post_data = array();
@@ -293,8 +302,7 @@ function pagelayer_apply_revision(){
293
 
294
  if ( empty( $post ) ) {
295
  $post_data['error'] = __pl('invalid_revision');
296
- echo json_encode($post_data);
297
- return false;
298
  }
299
 
300
  // Need to make the reviews post global
@@ -314,8 +322,8 @@ function pagelayer_apply_revision(){
314
  wp_reset_postdata();
315
  }
316
 
317
- echo json_encode($post_data);
318
- wp_die();
319
  }
320
 
321
  // Get post revision
@@ -323,7 +331,7 @@ add_action('wp_ajax_pagelayer_delete_revision', 'pagelayer_delete_revision');
323
  function pagelayer_delete_revision() {
324
 
325
  // Some AJAX security
326
- check_ajax_referer('pagelayer_ajax', 'nonce');
327
 
328
  $revisionID = (int) $_REQUEST['revisionID'];
329
 
@@ -339,7 +347,7 @@ function pagelayer_delete_revision() {
339
 
340
  if ( ! current_user_can( 'delete_post', $revision->ID ) ) {
341
  $post_data['error'] = __pl('access_denied');
342
- echo json_encode($post_data);
343
  return false;
344
  }
345
 
@@ -353,8 +361,8 @@ function pagelayer_delete_revision() {
353
  }
354
  }
355
 
356
- echo json_encode($post_data);
357
- wp_die();
358
  }
359
 
360
  // Get post revision
@@ -362,7 +370,7 @@ add_action('wp_ajax_pagelayer_post_nav', 'pagelayer_post_nav');
362
  function pagelayer_post_nav() {
363
 
364
  // Some AJAX security
365
- check_ajax_referer('pagelayer_ajax', 'nonce');
366
 
367
  if(!isset($_REQUEST['data']) || !isset($_REQUEST['postID'])){
368
  return;
@@ -403,8 +411,7 @@ function pagelayer_post_nav() {
403
 
404
  $el['atts']['prev_link'] = get_previous_post_link('%link', $prev_label, $in_same_term, '', $taxonomies );
405
 
406
- echo json_encode($el);
407
- wp_die();
408
 
409
  }
410
 
@@ -414,7 +421,7 @@ function pagelayer_post_comment() {
414
  global $post;
415
 
416
  // Some AJAX security
417
- check_ajax_referer('pagelayer_ajax', 'nonce');
418
 
419
  if(!isset($_REQUEST['postID'])){
420
  return true;
@@ -440,7 +447,7 @@ function pagelayer_post_info() {
440
  global $post;
441
 
442
  // Some AJAX security
443
- check_ajax_referer('pagelayer_ajax', 'nonce');
444
 
445
  if(!isset($_REQUEST['postID']) || !isset($_REQUEST['el'])){
446
  return true;
@@ -523,7 +530,701 @@ function pagelayer_post_info() {
523
  $el['atts']['avatar_url'] = $avatar_url;
524
  $el['atts']['link'] = $link;
525
 
526
- echo json_encode($el['atts']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
527
  wp_die();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
 
529
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  exit('Hacking Attempt !');
25
  }
26
 
27
+ // Is the nonce there ?
28
+ if(empty($_REQUEST['pagelayer_nonce'])){
29
+ return;
30
+ }
31
 
32
  // The ajax handler
33
  add_action('wp_ajax_pagelayer_wp_widget', 'pagelayer_wp_widget_ajax');
36
  global $pagelayer;
37
 
38
  // Some AJAX security
39
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
40
 
41
  pagelayer_load_shortcodes();
42
 
49
  // No tag ?
50
  if(empty($pagelayer->shortcodes[$tag])){
51
  $ret['error'][] = __pl('no_tag');
52
+ pagelayer_json_output($ret);
 
53
  }
54
 
55
  // Include the widgets
60
  // Check the widget class exists ?
61
  if(empty($class) || !class_exists($class)){
62
  $ret['error'][] = __pl('no_widget_class');
63
+ pagelayer_json_output($ret);
 
64
  }
65
 
66
  $instance = [];
114
  $ret['widget_data'] = $instance;
115
  }
116
 
117
+ pagelayer_json_output($ret);
 
118
 
119
  }
120
 
123
  function pagelayer_save_content(){
124
 
125
  // Some AJAX security
126
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
127
 
128
  $content = $_POST['pagelayer_update_content'];
129
 
155
  $msg['error'] = __pl('post_update_err');
156
  }
157
 
158
+ pagelayer_json_output($msg);
 
159
 
160
  }
161
 
164
  function pagelayer_do_shortcodes(){
165
 
166
  // Some AJAX security
167
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
168
 
169
  $data = '';
170
  if(isset($_REQUEST['shortcode_data'])){
171
  $data = stripslashes($_REQUEST['shortcode_data']);
172
  }
173
+
174
+ // Load shortcodes
175
+ pagelayer_load_shortcodes();
176
+
177
+ $data = do_shortcode($data);
178
+
179
+ // Create the HTML object
180
+ $node = pQuery::parseStr($data);
181
+ $node->query('.pagelayer-ele')->removeClass('pagelayer-ele');
182
+ echo $node->html();
183
+
184
  wp_die();
185
 
186
  }
190
  function pagelayer_fetch_site_title(){
191
 
192
  // Some AJAX security
193
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
194
 
195
  echo get_bloginfo('name');
196
  wp_die();
202
  global $wpdb;
203
 
204
  // Some AJAX security
205
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
206
 
207
  $site_title = $_POST['site_title'];
208
 
221
  global $wp_registered_sidebars;
222
 
223
  // Some AJAX security
224
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
225
 
226
  // Create a list
227
  $pagelayer_wp_widgets = array();
250
  function pagelayer_fetch_primary_menu(){
251
 
252
  // Some AJAX security
253
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
254
 
255
  if(isset($_POST['nav_list'])){
256
  echo wp_nav_menu([
269
  function pagelayer_get_revision(){
270
 
271
  // Some AJAX security
272
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
273
 
274
  $postID = (int) $_GET['postID'];
275
  $post_revisions = array();
280
  $post_revisions = pagelayer_get_post_revision_by_id($postID);
281
  }
282
 
283
+ pagelayer_json_output($post_revisions);
284
+
285
  }
286
 
287
  // Get post revision
289
  function pagelayer_apply_revision(){
290
 
291
  // Some AJAX security
292
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
293
 
294
  $revisionID = (int) $_REQUEST['revisionID'];
295
  $post_data = array();
302
 
303
  if ( empty( $post ) ) {
304
  $post_data['error'] = __pl('invalid_revision');
305
+ pagelayer_json_output($post_data);
 
306
  }
307
 
308
  // Need to make the reviews post global
322
  wp_reset_postdata();
323
  }
324
 
325
+ pagelayer_json_output($post_data);
326
+
327
  }
328
 
329
  // Get post revision
331
  function pagelayer_delete_revision() {
332
 
333
  // Some AJAX security
334
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
335
 
336
  $revisionID = (int) $_REQUEST['revisionID'];
337
 
347
 
348
  if ( ! current_user_can( 'delete_post', $revision->ID ) ) {
349
  $post_data['error'] = __pl('access_denied');
350
+ pagelayer_json_output($post_data);
351
  return false;
352
  }
353
 
361
  }
362
  }
363
 
364
+ pagelayer_json_output($post_data);
365
+
366
  }
367
 
368
  // Get post revision
370
  function pagelayer_post_nav() {
371
 
372
  // Some AJAX security
373
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
374
 
375
  if(!isset($_REQUEST['data']) || !isset($_REQUEST['postID'])){
376
  return;
411
 
412
  $el['atts']['prev_link'] = get_previous_post_link('%link', $prev_label, $in_same_term, '', $taxonomies );
413
 
414
+ pagelayer_json_output($el);
 
415
 
416
  }
417
 
421
  global $post;
422
 
423
  // Some AJAX security
424
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
425
 
426
  if(!isset($_REQUEST['postID'])){
427
  return true;
447
  global $post;
448
 
449
  // Some AJAX security
450
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
451
 
452
  if(!isset($_REQUEST['postID']) || !isset($_REQUEST['el'])){
453
  return true;
530
  $el['atts']['avatar_url'] = $avatar_url;
531
  $el['atts']['link'] = $link;
532
 
533
+ pagelayer_json_output($el['atts']);
534
+
535
+ }
536
+
537
+ // Get the Featured Image
538
+ add_action('wp_ajax_pagelayer_fetch_featured_img', 'pagelayer_fetch_featured_img');
539
+ function pagelayer_fetch_featured_img(){
540
+
541
+ // Some AJAX security
542
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
543
+
544
+ if($_POST['size']){
545
+ echo get_the_post_thumbnail_url($_POST['post_id'], $_POST['size']);
546
+ }else{
547
+ echo get_the_post_thumbnail_url($_POST['post_id']);
548
+ }
549
+ wp_die();
550
+ }
551
+
552
+ // Get the postfolio posts
553
+ add_action('wp_ajax_pagelayer_fetch_posts', 'pagelayer_fetch_posts');
554
+ function pagelayer_fetch_posts(){
555
+
556
+ // Some AJAX security
557
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
558
+
559
+ echo pagelayer_widget_posts($_POST);
560
+
561
+ wp_die();
562
+ }
563
+
564
+ // Get the Posts
565
+ add_action('wp_ajax_pagelayer_posts_data', 'pagelayer_posts_data');
566
+ function pagelayer_posts_data(){
567
+
568
+ // Some AJAX security
569
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
570
+
571
+ // Load shortcodes
572
+ pagelayer_load_shortcodes();
573
+
574
+ echo pagelayer_posts($_POST);
575
+ wp_die();
576
+ }
577
+
578
+ // Get the Posts
579
+ add_action('wp_ajax_pagelayer_archive_posts_data', 'pagelayer_archive_posts_data');
580
+ function pagelayer_archive_posts_data(){
581
+
582
+ // Some AJAX security
583
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
584
+
585
+ // Set excerpt length
586
+ if($_POST['exc_length']){
587
+ $exc_length = (int) $params['exc_length'];
588
+ add_filter( 'excerpt_length', function($length) use($exc_length){
589
+ return $exc_length;
590
+ }, 999 );
591
+ }
592
+
593
+ // Load shortcodes
594
+ pagelayer_load_shortcodes();
595
+
596
+ echo pagelayer_posts($_POST, $_POST['pagelayer_wp_query']);
597
+ wp_die();
598
+ }
599
+
600
+ // Handle Contact Form Data
601
+ add_action('wp_ajax_pagelayer_contact_submit', 'pagelayer_contact_submit');
602
+ add_action('wp_ajax_nopriv_pagelayer_contact_submit', 'pagelayer_contact_submit' );
603
+ function pagelayer_contact_submit(){
604
+
605
+ $to_mail = get_option('pagelayer_cf_to_email');
606
+ $subject = get_option('pagelayer_cf_subject');
607
+
608
+ $fdata = $_POST['form_data'];
609
+ parse_str($fdata, $formdata);
610
+
611
+ // Make the email content
612
+ foreach($formdata as $k => $i){
613
+ $data .= ''.$k.'\t : \t'.$i.'\n';
614
+ }
615
+
616
+ // Send the email
617
+ $r = wp_mail( $to_mail, $subject, $data );
618
+
619
+ if($r == TRUE){
620
+ $wp['success'] = get_option( 'pagelayer_cf_success' );
621
+ }else{
622
+ $wp['failed'] = get_option( 'pagelayer_cf_failed' );
623
+ }
624
+
625
+ pagelayer_json_output($wp);
626
+
627
+ }
628
+
629
+ // Fetch Google reCaptcha Key
630
+ add_action('wp_ajax_pagelayer_fetch_grecaptcha_key', 'pagelayer_fetch_grecaptcha_key');
631
+ function pagelayer_fetch_grecaptcha_key(){
632
+
633
+ $data['key'] = get_option('pagelayer_google_captcha');
634
+
635
+ pagelayer_json_output($data);
636
+
637
+ }
638
+
639
+ // Handle Login Submit
640
+ add_action('wp_ajax_pagelayer_login_submit', 'pagelayer_login_submit');
641
+ add_action('wp_ajax_nopriv_pagelayer_login_submit', 'pagelayer_login_submit');
642
+ function pagelayer_login_submit(){
643
+
644
+ $fdata = $_POST['form_data'];
645
+ parse_str($fdata, $formdata);
646
+
647
+ $creds = array();
648
+ $creds['user_login'] = $formdata['username'];
649
+ $creds['user_password'] = $formdata['password'];
650
+ $creds['remember'] = $formdata['remember_me'];
651
+
652
+ // If After logout URL, then save
653
+ if(!empty($formdata['logout_url'])){
654
+ update_user_option('pagelayer_logout_url', $formdata['logout_url']);
655
+ }
656
+
657
+ // Login the user
658
+ $user = wp_signon( $creds, false );
659
+
660
+ if ( is_wp_error($user) ){
661
+ $data['error'] = $user->get_error_message();
662
+ }else{
663
+ $data['redirect'] = (empty($formdata['login_url']) ? '' : $formdata['login_url']);
664
+ $data['error'] = '';
665
+ }
666
+
667
+ pagelayer_json_output($data);
668
+
669
+ }
670
+
671
+ // Handle Logout Redirect here
672
+ add_action('wp_logout', 'pagelayer_after_logout');
673
+ function pagelayer_after_logout(){
674
+
675
+ $url = get_user_option('pagelayer_logout_url');
676
+
677
+ // We will redirect if we have the given item set.
678
+ if(!empty($url)){
679
+ wp_redirect( $url );
680
+ exit();
681
+ }
682
+
683
+ }
684
+
685
+ // Get Page List for SiteMap
686
+ add_action('wp_ajax_pagelayer_get_pages_list', 'pagelayer_get_pages_list');
687
+ add_action('wp_ajax_nopriv_pagelayer_get_pages_list', 'pagelayer_get_pages_list');
688
+ function pagelayer_get_pages_list(){
689
+
690
+ $args = array(
691
+ 'post_type' => $_POST['type'],
692
+ 'orderby' => $_POST['post_order'],
693
+ 'order' => $_POST['order'],
694
+ 'hierarchical' => (empty($_POST['hier']) || $_POST['hier'] == null ? '' : $_POST['hier']),
695
+ 'number' => (empty($_POST['depth']) || $_POST['depth'] == null ? '' : $_POST['depth']),
696
+ );
697
+
698
+ $option = '<ul>';
699
+ $pages = new WP_Query($args);
700
+ $posts = $pages->posts;
701
+ foreach ( $posts as $page ) {
702
+ $option .= '<li class="pagelayer-sitemap-list-item" data-postID="'.$page->ID.'"><a class="pagelayer-ele-link" href="'.$page->guid.'">'.$page->post_name.'</a></li>';
703
+ }
704
+ $option .= '</ul>';
705
+
706
+
707
+ echo $option;
708
+
709
+ wp_die();
710
+ }
711
+
712
+ // Posts Slider
713
+ add_action('wp_ajax_pagelayer_posts_slider_data', 'pagelayer_posts_slider_data');
714
+ function pagelayer_posts_slider_data(){
715
+
716
+ // Some AJAX security
717
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
718
+
719
+ // Load shortcodes
720
+ echo pagelayer_posts_slider($_POST);
721
+ wp_die();
722
+ }
723
+
724
+ // Get the data for template
725
+ add_action('wp_ajax_pagelayer_search_ids', 'pagelayer_search_ids');
726
+ function pagelayer_search_ids() {
727
+
728
+ // Some AJAX security
729
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
730
+
731
+ if ( empty( $_POST['filter_type'] ) || empty( $_POST['search'] ) ) {
732
+ wp_die();
733
+ }
734
+
735
+ $sel_opt = '';
736
+
737
+ switch ( $_POST['filter_type'] ) {
738
+ case 'taxonomy':
739
+ $query_params = [
740
+ 'taxonomy' => $_POST['object_type'],
741
+ 'search' => $_POST['search'],
742
+ 'hide_empty' => false,
743
+ ];
744
+
745
+ $terms = get_terms( $query_params );
746
+
747
+ global $wp_taxonomies;
748
+
749
+ foreach ( $terms as $term ) {
750
+ $sel_opt .= '<span class="pagelayer-temp-search-sel-span" value="'. $term->term_taxonomy_id .'">'. $term->name .'</span>';
751
+ }
752
+
753
+ break;
754
+
755
+ case 'post':
756
+ $query_params = [
757
+ 'post_type' => $_POST['object_type'], //$this->extract_post_type( $data ),
758
+ 's' => $_POST['search'],
759
+ 'posts_per_page' => -1,
760
+ ];
761
+
762
+ if ( 'attachment' === $query_params['post_type'] ) {
763
+ $query_params['post_status'] = 'inherit';
764
+ }
765
+
766
+ $query = new \WP_Query( $query_params );
767
+
768
+ foreach ( $query->posts as $post ) {
769
+ $sel_opt .= '<span class="pagelayer-temp-search-sel-span" value="'. $post->ID .'">'. $post->post_title .'</span>';
770
+ }
771
+ break;
772
+
773
+ case 'author':
774
+ $query_params = [
775
+ 'who' => 'authors',
776
+ 'fields' => [
777
+ 'ID',
778
+ 'display_name',
779
+ ],
780
+ 'search' => '*' . $_POST["search"] . '*',
781
+ 'search_columns' => [
782
+ 'user_login',
783
+ 'user_nicename',
784
+ ],
785
+ ];
786
+
787
+ $user_query = new \WP_User_Query( $query_params );
788
+
789
+ foreach ( $user_query->get_results() as $author ) {
790
+ $sel_opt .= '<span class="pagelayer-temp-search-sel-span" value="'. $author->ID .'">'. $author->display_name .'</span>';
791
+ }
792
+ break;
793
+ default:
794
+ $sel_opt = 'Result Not Found';
795
+ }
796
+
797
+ if(!empty($sel_opt)){
798
+ echo $sel_opt;
799
+ }else{
800
+ echo 'Result Not Found';
801
+ }
802
+
803
+ wp_die();
804
+ }
805
+
806
+
807
+ // Save the post data from pagelayer setting page
808
+ add_action('wp_ajax_pagelayer_save_template', 'pagelayer_save_template');
809
+ function pagelayer_save_template() {
810
+
811
+ // Some AJAX security
812
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
813
+
814
+ $done = [];
815
+
816
+ $post_id = (int) $_GET['postID'];
817
+
818
+ // We need to create the post
819
+ if(empty($post_id)){
820
+
821
+ // Get the template type
822
+ if(empty($_POST['pagelayer_template_type'])){
823
+ $done['error'] = __pl('temp_error_type');
824
+ pagelayer_json_output($done);
825
+ }
826
+
827
+ $ret = wp_insert_post([
828
+ 'post_title' => $_POST['pagelayer_lib_title'],
829
+ 'post_type' => 'pagelayer-template',
830
+ 'post_status' => 'publish',
831
+ 'comment_status' => 'closed',
832
+ 'ping_status' => 'closed'
833
+ ]);
834
+
835
+ // An error occured
836
+ if(is_wp_error($ret)){
837
+ $done['error'] = __pl('temp_error').' : '.$ret->get_error_message();
838
+ pagelayer_json_output($done);
839
+ }
840
+
841
+ $post_id = $ret;
842
+ $done['id'] = $post_id;
843
+
844
+ // Save our template type
845
+ $ret = update_post_meta($post_id, 'pagelayer_template_type', $_POST['pagelayer_template_type']);
846
+
847
+ }
848
+
849
+ // The ID in consideration
850
+ $done['id'] = $post_id;
851
+
852
+ // Check if the post title in not empty
853
+ if(!empty($_POST['pagelayer_lib_title'])){
854
+
855
+ $post = array(
856
+ 'ID' => $post_id,
857
+ 'post_title' => $_POST['pagelayer_lib_title'],
858
+ );
859
+
860
+ // Update the post into the database
861
+ $ret = wp_update_post($post);
862
+
863
+ }
864
+
865
+ // Save template library display conditions
866
+ $condi_array = array();
867
+ $condi_len = count($_POST['pagelayer_condition_type']);
868
+ if($_POST['pagelayer_template_type'] != 'section'){
869
+ for( $i =0; $i < $condi_len; $i++ ){
870
+ $condi_array[$i] = array(
871
+ 'type' => $_POST['pagelayer_condition_type'][$i],
872
+ 'template' => $_POST['pagelayer_condition_name'][$i],
873
+ 'sub_template' => $_POST['pagelayer_condition_sub_template'][$i],
874
+ 'id' => $_POST['pagelayer_condition_id'][$i],
875
+ );
876
+ }
877
+ }
878
+ //print_r($condi_array);
879
+
880
+ $ret = update_post_meta($post_id, 'pagelayer_template_conditions', $condi_array);
881
+
882
+ if(is_wp_error($post_id)){
883
+ $done['error'] = __pl('temp_error').' : '.$ret->get_error_message();
884
+ }else{
885
+ $done['success'] = __pl('temp_update_success');
886
+ }
887
+
888
+ pagelayer_json_output($done);
889
+
890
+ }
891
+
892
+ // Product Images Handler
893
+ add_action('wp_ajax_pagelayer_product_images', 'pagelayer_product_images');
894
+ function pagelayer_product_images(){
895
+ global $product;
896
+
897
+ // Some AJAX security
898
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
899
+
900
+ if ( !isset($_REQUEST['postID']) ) {
901
+ return;
902
+ }
903
+
904
+ $product = wc_get_product($_REQUEST['postID']);
905
+
906
+ if ( empty( $product ) ) {
907
+ return ;
908
+ }
909
+
910
+ if ( isset($_POST['sale_flash']) ) {
911
+ wc_get_template( 'loop/sale-flash.php' );
912
+ }
913
+ wc_get_template( 'single-product/product-image.php' );
914
+
915
+ // On render widget from Editor - trigger the init manually.
916
+ echo '
917
+ <script>
918
+ jQuery(".woocommerce-product-gallery").each( function() {
919
+ jQuery(this).wc_product_gallery();
920
+ } );
921
+ </script>
922
+ ';
923
+
924
+ wp_die();
925
+ }
926
+
927
+ // Related Products Handler
928
+ add_action('wp_ajax_pagelayer_product_related', 'pagelayer_product_related');
929
+ function pagelayer_product_related(){
930
+ global $product;
931
+
932
+ // Some AJAX security
933
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
934
+
935
+ if ( !isset($_REQUEST['postID']) ) {
936
+ return;
937
+ }
938
+
939
+ $product = wc_get_product($_REQUEST['postID']);
940
+
941
+ if ( empty( $product ) ) {
942
+ return ;
943
+ }
944
+
945
+ $args = $_REQUEST['pagelayer_args'];
946
+
947
+ if(function_exists( 'woocommerce_related_products' )){
948
+ woocommerce_related_products($args);
949
+ }
950
+
951
+ wp_die();
952
+ }
953
+
954
+ // Upsell Products Handler
955
+ add_action('wp_ajax_pagelayer_product_upsell', 'pagelayer_product_upsell');
956
+ function pagelayer_product_upsell(){
957
+ global $product;
958
+
959
+ // Some AJAX security
960
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
961
+
962
+ if ( !isset($_REQUEST['postID']) ) {
963
+ return;
964
+ }
965
+
966
+ $product = wc_get_product($_REQUEST['postID']);
967
+
968
+ if ( empty( $product ) ) {
969
+ return ;
970
+ }
971
+
972
+ if(function_exists( 'woocommerce_related_products' )){
973
+ woocommerce_upsell_display( $_REQUEST['limit'], $_REQUEST['columns'], $_REQUEST['orderby'], $_REQUEST['order'] );
974
+ }
975
+
976
  wp_die();
977
+ }
978
+
979
+ // Products Categories Handler
980
+ add_action('wp_ajax_pagelayer_product_categories', 'pagelayer_product_categories');
981
+ function pagelayer_product_categories(){
982
+
983
+ // Some AJAX security
984
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
985
+
986
+ $attributes = '';
987
+ $attributes .= ' number="'. $_POST['atts']['number'] .'" ';
988
+ $attributes .= ' columns="'. $_POST['atts']['columns'] .'" ';
989
+ $attributes .= ' hide_empty="'. (!empty($_POST['atts']['hide_empty']) ? 1 : 0) .'" ';
990
+ $attributes .= ' orderby="'. $_POST['atts']['nuorderbymber'] .'" ';
991
+ $attributes .= ' order="'. $_POST['atts']['order'] .'" ';
992
+
993
+ if ( 'by_id' === $_POST['atts']['source'] ) {
994
+ $attributes .= ' ids="'. $_POST['atts']['by_id'] .'" ';
995
+ } elseif ( 'by_parent' === $_POST['atts']['source'] ) {
996
+ $attributes .= ' parent="'. $_POST['atts']['parent'] .'" ';
997
+ } elseif ( 'current_subcategories' === $_POST['atts']['source'] ) {
998
+ $attributes .= ' parent="'. get_queried_object_id() .'" ';
999
+ }
1000
+
1001
+ $shortcode = '[product_categories '. $attributes .']';
1002
+
1003
+ // do_shortcode the shortcode
1004
+ echo do_shortcode($shortcode);
1005
+
1006
+ wp_die();
1007
+ }
1008
+
1009
+ // Products Categories Handler
1010
+ add_action('wp_ajax_pagelayer_product_archives', 'pagelayer_product_archives');
1011
+ function pagelayer_product_archives(){
1012
+
1013
+ // Some AJAX security
1014
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
1015
+
1016
+ if ( WC()->session ) {
1017
+ wc_print_notices();
1018
+ }
1019
+
1020
+ $atts['paginate'] = true;
1021
+ $atts['cache'] = false;
1022
+ $no_found = $_POST['atts']['no_found'];
1023
+
1024
+ if( empty($_POST['atts']['allow_order']) ){
1025
+ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
1026
+ }
1027
+ if( empty($_POST['atts']['show_result']) ){
1028
+ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
1029
+ }
1030
+
1031
+ $type = 'pagelayer_current_query';
1032
+
1033
+ // Set the current query
1034
+ add_action( 'woocommerce_shortcode_products_query', 'pagelayer_shortcode_current_query_query', 10, 10);
1035
+
1036
+ // If product not found
1037
+ add_action( "woocommerce_shortcode_{$type}_loop_no_results", function ($attributes) use ($no_found){
1038
+ echo '<div class="pagelayer-product-no-found">'.$no_found.'</div>';
1039
+ } );
1040
+
1041
+ // Get the products list
1042
+ $shortcode = new WC_Shortcode_Products( $atts, $type );
1043
+
1044
+ echo $shortcode->get_content();
1045
 
1046
+ wp_die();
1047
+ }
1048
+
1049
+ // Products Categories Handler
1050
+ add_action('wp_ajax_pagelayer_products_ajax', 'pagelayer_products_ajax');
1051
+ function pagelayer_products_ajax(){
1052
+
1053
+ // Some AJAX security
1054
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
1055
+
1056
+ if ( WC()->session ) {
1057
+ wc_print_notices();
1058
+ }
1059
+
1060
+ $no_found = $_POST['atts']['no_found'];
1061
+
1062
+ $attributes = '';
1063
+ $type = $_POST['atts']['source'];
1064
+ $attributes .= ' columns="'. $_POST['atts']['columns'] .'" ';
1065
+ $attributes .= ' rows="'. $_POST['atts']['rows'] .'" ';
1066
+ $attributes .= ' paginate="'. (!empty($_POST['atts']['paginate']) ? true : false) .'" ';
1067
+ $attributes .= ' orderby="'. $_POST['atts']['orderby'] .'" ';
1068
+ $attributes .= ' order="'. $_POST['atts']['order'] .'" ';
1069
+ $attributes .= ' cache="false" ';
1070
+
1071
+ // Hide the catalog order
1072
+ if( empty($_POST['atts']['allow_order']) ){
1073
+ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
1074
+ }
1075
+
1076
+ // Hide the result count
1077
+ if( empty($_POST['atts']['show_result']) ){
1078
+ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
1079
+ }
1080
+
1081
+ if( $type == 'by_id' ){
1082
+ $type = 'products';
1083
+ $attributes .= ' ids="'. (!empty($_POST['atts']['ids']) ? $_POST['atts']['ids'] : '') .'" ';
1084
+ }elseif( $type == 'pagelayer_current_query' ){
1085
+
1086
+ $atts['paginate'] = (!empty($_POST['atts']['paginate']) ? true : false);
1087
+ $atts['cache'] = false;
1088
+
1089
+ $type = 'pagelayer_current_query';
1090
+
1091
+ // Set the current query
1092
+ add_action( 'woocommerce_shortcode_products_query', 'pagelayer_shortcode_current_query_query', 10, 10);
1093
+
1094
+ // If product not found
1095
+ add_action( "woocommerce_shortcode_{$type}_loop_no_results", function ($attributes) use ($no_found){
1096
+ echo '<div class="pagelayer-product-no-found">'.$no_found.'</div>';
1097
+ } );
1098
+
1099
+ // Get the products list
1100
+ $shortcode = new WC_Shortcode_Products( $atts, $type );
1101
+
1102
+ echo $shortcode->get_content();
1103
+ return true;
1104
+ }
1105
+
1106
+ $shortcode = '['.$type.' '. $attributes .']';
1107
+
1108
+ $content = do_shortcode($shortcode);
1109
+
1110
+ // If product not found
1111
+ if('<div class="woocommerce columns-'.$_POST['atts']['columns'] .' "></div>' == $content){
1112
+ $content = '<div class="pagelayer-product-no-found">'. $no_found .'</div>';
1113
+ }
1114
+
1115
+ echo $content;
1116
+
1117
+ wp_die();
1118
+ }
1119
+
1120
+ // Get Taxamony List for SiteMap
1121
+ add_action('wp_ajax_pagelayer_get_taxonomy_list', 'pagelayer_get_taxonomy_list');
1122
+ add_action('wp_ajax_nopriv_pagelayer_get_taxonomy_list', 'pagelayer_get_taxonomy_list');
1123
+ function pagelayer_get_taxonomy_list(){
1124
+
1125
+ $args = array(
1126
+ 'title_li' => 0,
1127
+ 'orderby' => $_POST['post_order'],
1128
+ 'order' => $_POST['order'],
1129
+ 'style' => '',
1130
+ 'hide_empty' => $_POST['empty'],
1131
+ 'echo' => false,
1132
+ 'hierarchical' => (empty($_POST['hier']) || $_POST['hier'] == null ? '' : $_POST['hier']),
1133
+ 'taxonomy' => $_POST['type'],
1134
+ 'depth' => (empty($_POST['depth']) || $_POST['depth'] == null ? '' : $_POST['depth']),
1135
+ );
1136
+
1137
+ $taxonomies = get_categories( $args );
1138
+
1139
+ $option = '<ul>';
1140
+ foreach ( $taxonomies as $taxonomy ) {
1141
+ $option .= '<li class="pagelayer-sitemap-list-item" data-postID="'.$taxonomy->term_id.'"><a class="pagelayer-ele-link" href="'.get_term_link($taxonomy->term_id).'">'.$taxonomy->name.'</a></li>';
1142
+ }
1143
+ $option .= '</ul>';
1144
+
1145
+ echo $option;
1146
+ wp_die();
1147
+ }
1148
+
1149
+ // Export the template
1150
+ add_action('wp_ajax_pagelayer_export_template', 'pagelayer_export_template');
1151
+ function pagelayer_export_template(){
1152
+
1153
+ global $pagelayer;
1154
+
1155
+ // Some AJAX security
1156
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
1157
+
1158
+ $done = [];
1159
+
1160
+ // Load the templates
1161
+ pagelayer_builder_load_templates();
1162
+
1163
+ if(empty($pagelayer->templates)){
1164
+ $done['error'] = __pl('temp_export_empty');
1165
+ pagelayer_json_output($done);
1166
+ }
1167
+
1168
+ // Get the active theme
1169
+ $theme_dir = get_template_directory();
1170
+ $conf = [];
1171
+
1172
+ // Write the files
1173
+ foreach($pagelayer->templates as $k => $v){
1174
+ file_put_contents($theme_dir.'/'.$v->post_name.'.pgl', $v->post_content);
1175
+ $conf[$v->post_name] = [
1176
+ 'type' => get_post_meta($v->ID, 'pagelayer_template_type', true),
1177
+ 'conditions' => get_post_meta($v->ID, 'pagelayer_template_conditions', true),
1178
+ ];
1179
+ }
1180
+
1181
+ // Write the config
1182
+ file_put_contents($theme_dir.'/pagelayer.conf', json_encode($conf, JSON_PRETTY_PRINT));
1183
+
1184
+ $done['success'] = __pl('temp_export_success');
1185
+
1186
+ // Output and die
1187
+ pagelayer_json_output($done);
1188
+
1189
+ }
1190
+
1191
+ // Export the template
1192
+ add_action('wp_ajax_pagelayer_save_settings', 'pagelayer_save_settings');
1193
+ function pagelayer_save_settings(){
1194
+
1195
+ // Some AJAX security
1196
+ check_ajax_referer('pagelayer_ajax', 'pagelayer_nonce');
1197
+
1198
+ if(!current_user_can('edit_posts')){
1199
+ $msg['error'] = __pl('current_user_can_not');
1200
+ pagelayer_json_output($msg);
1201
+ }
1202
+
1203
+ $postID = (int) $_GET['postID'];
1204
+
1205
+ if(empty($postID)){
1206
+ $msg['error'] = __pl('invalid_post_id');
1207
+ pagelayer_json_output($msg);
1208
+ }
1209
+
1210
+ // Check if the post exists
1211
+
1212
+ if(!empty($_POST['post_title'])){
1213
+
1214
+ $post = array(
1215
+ 'ID' => $postID,
1216
+ 'post_title' => $_POST['post_title'],
1217
+ );
1218
+
1219
+ // Update the post into the database
1220
+ $ret = wp_update_post($post);
1221
+
1222
+ if (is_wp_error($ret)) {
1223
+ $msg['error'] = __pl('post_update_err');
1224
+ }else{
1225
+ $msg['success'] = __pl('post_update_success');
1226
+ }
1227
+ }
1228
+
1229
+ pagelayer_json_output($msg);
1230
+ }
main/class.php CHANGED
@@ -42,8 +42,8 @@ class PageLayer{
42
  // All Shortcodes Groups
43
  var $groups = array();
44
 
45
- // Definde where to load shortcode template
46
- var $template_path = '';
47
 
48
  // The Lang Strings
49
  var $l = array();
42
  // All Shortcodes Groups
43
  var $groups = array();
44
 
45
+ // Builder definition
46
+ var $builder = array();
47
 
48
  // The Lang Strings
49
  var $l = array();
main/functions.php CHANGED
@@ -476,6 +476,9 @@ function pagelayer_icon_sources(){
476
  function pagelayer_load_shortcodes(){
477
 
478
  include_once(PAGELAYER_DIR.'/main/shortcode_functions.php');
 
 
 
479
  include_once(PAGELAYER_DIR.'/main/shortcodes.php');
480
 
481
  // pQuery
@@ -542,6 +545,25 @@ function pagelayer_add_shortcode($tag, $params = array()){
542
  $params['settings'] = array_merge($params['settings'], $params['styles']);
543
  unset($params['styles']);
544
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
 
546
  // Insert the shortcode
547
  $pagelayer->shortcodes[$tag] = $params;
@@ -651,6 +673,7 @@ function pagelayer_video_url($source){
651
  $source = filter_var($source, FILTER_SANITIZE_URL);
652
  $source = str_replace('&amp;', '&', $source);
653
  $url = parse_url($source);
 
654
 
655
  $youtubeRegExp = '/youtube\.com|youtu\.be/is';
656
  $vimeoRegExp = '/vimeo\.com/is';
@@ -897,6 +920,293 @@ function pagelayer_maybe_promo($opts){
897
 
898
  }
899
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
900
  // Get Post Revision
901
  function pagelayer_get_post_revision_by_id($postID){
902
 
@@ -928,4 +1238,197 @@ function pagelayer_get_post_revision_by_id($postID){
928
  }
929
 
930
  return $post_revisions;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
931
  }
476
  function pagelayer_load_shortcodes(){
477
 
478
  include_once(PAGELAYER_DIR.'/main/shortcode_functions.php');
479
+ if(defined('PAGELAYER_PREMIUM')){
480
+ include_once(PAGELAYER_DIR.'/main/premium_functions.php');
481
+ }
482
  include_once(PAGELAYER_DIR.'/main/shortcodes.php');
483
 
484
  // pQuery
545
  $params['settings'] = array_merge($params['settings'], $params['styles']);
546
  unset($params['styles']);
547
  }
548
+
549
+ /*// The following is for testing only
550
+ $r = [];
551
+ foreach($pagelayer->styles as $k => $v){
552
+ foreach($v as $kk => $vv){
553
+ $r[$kk] = $kk;
554
+ }
555
+ }
556
+ //print_r($r);die();
557
+
558
+ foreach($params['settings'] as $k => $v){
559
+ if(empty($params[$k])) continue;
560
+ foreach($params[$k] as $kk => $vv){
561
+ if(!empty($r[$kk])){
562
+ echo 'Duplicate KEY '.$kk.' in Shortcode '.$tag."<br>";
563
+ }
564
+ }
565
+ }
566
+ //die();*/
567
 
568
  // Insert the shortcode
569
  $pagelayer->shortcodes[$tag] = $params;
673
  $source = filter_var($source, FILTER_SANITIZE_URL);
674
  $source = str_replace('&amp;', '&', $source);
675
  $url = parse_url($source);
676
+ $videoSite ='';
677
 
678
  $youtubeRegExp = '/youtube\.com|youtu\.be/is';
679
  $vimeoRegExp = '/vimeo\.com/is';
920
 
921
  }
922
 
923
+ // Bread Crumbs with links
924
+ function pagelayer_get_breadcrumb(){
925
+
926
+ // Home page
927
+ $ret = '<a href="'.home_url().'" rel="nofollow">{{home}}</a>';
928
+
929
+ // Is Front page
930
+ if(is_front_page()){
931
+ return $ret;
932
+
933
+ // Is search query
934
+ }elseif(is_search()){
935
+ $ret .= '<b class="pagelayer-breadcrumb-sep" if="{{separator}}">{{separator}}</b><b class="pagelayer-breadcrumb-prefix" if="{{search_prefix}}">{{search_prefix}}</b>';
936
+ $ret .= '<em>';
937
+ $ret .= get_search_query();
938
+ $ret .= '</em>';
939
+
940
+ //Is category or single post
941
+ }elseif(is_category() || is_single()){
942
+
943
+ $ret .= '<b class="pagelayer-breadcrumb-sep" if="{{separator}}">{{separator}}</b>';
944
+ $categories = get_the_category();
945
+ $separator = ' ';
946
+ $output = '';
947
+ if(!empty($categories)){
948
+ $ret .= get_category_parents($categories[0], true, ' <b class="pagelayer-breadcrumb-sep" if="{{separator}}">{{separator}}</b> ');
949
+ }
950
+ if(is_single()) {
951
+ /* if (empty($categories)){
952
+ $ret .= ' <b class="pagelayer-breadcrumb-sep" if="{{separator}}">{{separator}}</b> ';
953
+ } */
954
+ $ret .= get_the_title();
955
+ }
956
+
957
+ // Is page
958
+ }elseif(is_page()){
959
+ $ret .= '<b class="pagelayer-breadcrumb-sep" if="{{separator}}">{{separator}}</b>';
960
+ $ret .= get_the_title();
961
+ }else{
962
+ $ret .= '<b class="pagelayer-breadcrumb-sep" if="{{separator}}">{{separator}}</b>';
963
+ $ret .= wp_title('', false );
964
+ }
965
+
966
+ // wooCommerce Integration left
967
+
968
+ return $ret;
969
+ }
970
+
971
+ // Portfolio Posts
972
+ function pagelayer_widget_posts($args){
973
+
974
+ $r = new \WP_Query($args);
975
+
976
+ $ret = '';
977
+ if ( $r->have_posts() ){
978
+
979
+ if($args['filter_by'] != 'none' && $args['post_type'] == 'post'){
980
+ $ret .= '<div class="pagelayer-postfolio-filter">';
981
+
982
+ $data_filter = ( $args['filter_by'] == 'category' ? get_categories() : get_tags() );
983
+
984
+ if(!empty($data_filter)){
985
+
986
+ $ret .= '<div class="pagelayer-postfolio-btn" data-filter="all">'.__pl('All').'</div>';
987
+
988
+ foreach($data_filter as $filter) {
989
+ $ret .= '<div class="pagelayer-postfolio-btn" data-filter="'.$filter->name.'">' . $filter->name . '</div>';
990
+ }
991
+
992
+ }
993
+
994
+ $ret .= '</div>';
995
+ }
996
+
997
+ $ret .= '<div class="pagelayer-postfolio-container">';
998
+
999
+ while ( $r->have_posts() ) : $r->the_post();
1000
+ $post_meta = ( $args['filter_by'] == 'category' ? get_the_category() : get_the_tags() );
1001
+ $meta_attr = '';
1002
+ if($post_meta){
1003
+
1004
+ $meta_array = array();
1005
+ foreach( $post_meta as $meta ){
1006
+ $meta_array[] = $meta->name;
1007
+ }
1008
+ $meta_attr .= ' data-category="'.implode(' ', $meta_array).'"';
1009
+ }
1010
+
1011
+ $ret .= '<div class="pagelayer-postfolio-thumb"'.(has_post_thumbnail() ? ' style="background:url('.get_the_post_thumbnail_url().')"' : ''). $meta_attr .'>';
1012
+ $ret .= '<a href="'.esc_url( get_permalink() ).'" rel="bookmark">';
1013
+ $ret .= '<div class="pagelayer-postfolio-content">';
1014
+ $ret .= '<h4 class="pagelayer-entry-title">'.get_the_title().'</h4>';
1015
+ $ret .= '</div></a></div>';
1016
+
1017
+ endwhile;
1018
+
1019
+ $ret .= '</div>';
1020
+
1021
+ }
1022
+
1023
+ return $ret;
1024
+ }
1025
+
1026
+ // List all available sizes of images registered on WordPress
1027
+ function pagelayer_image_sizes(){
1028
+
1029
+ $sizes = array();
1030
+ $sizes = get_intermediate_image_sizes();
1031
+ $ret = array();
1032
+ foreach($sizes as $size){
1033
+ $ret[$size] = __pl($size);
1034
+ }
1035
+
1036
+ return $ret;
1037
+ }
1038
+
1039
+ function pagelayer_posts($params, $args = []){
1040
+
1041
+ // If args is empty
1042
+ if(empty($args)){
1043
+ $args = array(
1044
+ 'post_type' => $params['post_type'],
1045
+ 'posts_per_page' => $params['posts_per_page'],
1046
+ 'order' => $params['order']
1047
+ );
1048
+
1049
+ if($params['exc_length']){
1050
+ $exc_length = (int) $params['exc_length'];
1051
+ add_filter( 'excerpt_length', function($length) use($exc_length){
1052
+ return $exc_length;
1053
+ }, 999 );
1054
+ }
1055
+
1056
+ if($params['term']){
1057
+
1058
+ $term = explode(':', $params['term']);
1059
+ //pagelayer_print($term);
1060
+ if($term[0] == 'category'){
1061
+ $args['category_name'] = $term[1];
1062
+ }
1063
+ if($term[0] == 'post_tag'){
1064
+ $args['tag'] = $term[1];
1065
+ }
1066
+ }
1067
+
1068
+ if($params['exc_term']){
1069
+
1070
+ $term = explode(':', $params['exc_term']);
1071
+ //pagelayer_print($term);
1072
+ if($term[0] == 'category'){
1073
+ $args['category__not_in'] = $term[2];
1074
+ }
1075
+ if($term[0] == 'post_tag'){
1076
+ $args['tag__not_in'] = $term[2];
1077
+ }
1078
+ }
1079
+
1080
+ if($params['author_name']){
1081
+ $author_name = explode(':', $params['author_name']);
1082
+ $args['author_name'] = $author_name[0];
1083
+ }
1084
+
1085
+ if($params['exc_author']){
1086
+ $exc_author = explode(':', $params['exc_author']);
1087
+ $args['author'] = '-'.$exc_author[1];
1088
+ }
1089
+
1090
+ if(!empty($params['offset'])){
1091
+ $args['offset'] = $params['offset'];
1092
+ }
1093
+
1094
+ if(!empty($params['ignore_sticky'])){
1095
+ $args['ignore_sticky_posts'] = $params['ignore_sticky'];
1096
+ }
1097
+
1098
+ if(!empty($params['orderby'])){
1099
+ $args['orderby'] = $params['orderby'];
1100
+ }
1101
+
1102
+ if($params['by_period']){
1103
+ $date_arg = array();
1104
+ switch($params['by_period']){
1105
+ case 'last_day':
1106
+ $date_arg['day'] = date('j')-1;
1107
+ break;
1108
+ case 'last_week':
1109
+ $date_arg['week'] = date('W')-1;
1110
+ break;
1111
+ case 'last_month':
1112
+ $date_arg['month'] = date('n')-1;
1113
+ break;
1114
+ case 'last_year':
1115
+ $date_arg['year'] = date('Y')-1;
1116
+ break;
1117
+ case 'custom':
1118
+ $date_arg['before'] = $params['before_date'];
1119
+ $date_arg['after'] = $params['after_date'];
1120
+ break;
1121
+ }
1122
+ $args['date_query'] = array(
1123
+ $date_arg
1124
+ );
1125
+ }
1126
+ }
1127
+ //pagelayer_print($args);
1128
+
1129
+ $postsquery = new WP_Query($args);
1130
+ $data = '';
1131
+
1132
+ if(!$postsquery->have_posts()){
1133
+ return '<h3>Something went wrong, Please give proper inputs!</h3>';
1134
+ }
1135
+
1136
+ while($postsquery->have_posts()) : $postsquery->the_post();
1137
+ $data .= '<div class="pagelayer-wposts-col">
1138
+ <div class="pagelayer-wposts-post">
1139
+ <div class="pagelayer-wposts-featured">';
1140
+ $data .= '<a href="'. get_the_permalink() .'">';
1141
+
1142
+ if(isset($params['show_thumb']) && has_post_thumbnail( $postsquery->ID )){
1143
+ $data .= '<div class="pagelayer-wposts-thumb"'.(has_post_thumbnail() ? ' style="background:url('.get_the_post_thumbnail_url($postsquery->ID,$params['thumb_size']).')"' : '').'></div>';
1144
+ }
1145
+ /* if($params['show_thumb'] && has_post_thumbnail( $postsquery->ID )){
1146
+ $data .= get_the_post_thumbnail_url($postsquery->ID,$params['thumb_size']);
1147
+ } */
1148
+ $data .= '</a></div>
1149
+ <div class="pagelayer-wposts-content">';
1150
+
1151
+ if(isset($params['show_title'])){
1152
+ $data .= '<a href="'.esc_url( get_permalink() ).'" rel="bookmark"><div class="pagelayer-wposts-title">'. get_the_title().'</div></a>';
1153
+ }
1154
+
1155
+ $data .= '<div class="pagelayer-wposts-meta">';
1156
+ $sep = '';
1157
+ if(isset($params['meta_sep'])){
1158
+ $sep = '<b class="pagelayer-wposts-sep">'.$params['meta_sep'].'</b>';
1159
+ }
1160
+ if(isset($params['author'])){
1161
+ $data .= '<span class="pagelayer-wposts-author">By <a class="pagelayer-wposts-author-url" href="'.esc_url(get_author_posts_url(get_the_author_meta('ID'))).'">'.esc_html(get_the_author()).'</a></span>'.$sep;
1162
+ }
1163
+ if(isset($params['date'])){
1164
+ $data .= '<span class="pagelayer-wposts-date"><time class="pagelayer-wposts-entry-date published updated" datetime="'.get_the_date('c').'"><span class="date-d">'.get_the_date('j').'</span><span class="date-my">'.get_the_date('M, y').'</span></time></span>'.$sep;
1165
+ }
1166
+ if(isset($params['category'])){
1167
+ $category = get_the_category();
1168
+ $singlecategory = '';
1169
+ foreach( $category as $cat ){
1170
+ $singlecategory .= '<a href="' . get_tag_link( $cat->term_id ) . '">'. $cat->name .'</a>';
1171
+ }
1172
+ $data .= '<span class="pagelayer-wposts-category">' . $singlecategory . '</span>'.$sep;
1173
+ }
1174
+ if(isset($params['tags'])){
1175
+ $tags = get_the_tags();
1176
+ $singletag = '';
1177
+ foreach( $tags as $tag ){
1178
+ $singletag .= '<a href="' . get_tag_link( $tag->term_id ) . '">'. $tag->name .'</a>';
1179
+ }
1180
+ $data .= '<span class="pagelayer-wposts-tags">'.$singletag.'</span>'.$sep;
1181
+
1182
+ }
1183
+ if(isset($params['comments'])){
1184
+ $data .= '<span class="pagelayer-wposts-comments"><i class="far fa-comment" /><a href="' . esc_url( get_permalink() ) . '">' . esc_html(get_comments_number()) . '</a></span>'.$sep;
1185
+ }
1186
+
1187
+ $data .= '</div>';
1188
+
1189
+ if(isset($params['show_content'])){
1190
+ $data .= '<div class="pagelayer-wposts-excerpt">';
1191
+ if($params['show_content'] == 'excerpt'){
1192
+ $data .= do_shortcode(get_the_excerpt());
1193
+ }elseif($params['show_content'] == 'full'){
1194
+ $data .= do_shortcode(get_the_content());
1195
+ }
1196
+ $data .= '</div>';
1197
+ }
1198
+
1199
+ if(isset($params['show_more'])){
1200
+ $data .= '<a class="pagelayer-wposts-more" href="'. get_the_permalink().'">'.$params['more'].'</a>';
1201
+ }
1202
+
1203
+ //$data .= '<div class="pagelayer-wposts-date"><p>'.get_the_date().'</p></div>';
1204
+ $data .= '</div></div></div>';
1205
+ endwhile;
1206
+
1207
+ return $data;
1208
+ }
1209
+
1210
  // Get Post Revision
1211
  function pagelayer_get_post_revision_by_id($postID){
1212
 
1238
  }
1239
 
1240
  return $post_revisions;
1241
+ }
1242
+
1243
+ // Gets author data
1244
+ function pagelayer_author_data($postID){
1245
+
1246
+ $authorID = get_post_field('post_author', $postID);
1247
+ $data['display_name'] = get_the_author_meta( 'display_name' , $authorID );
1248
+ $data['description'] = get_the_author_meta( 'description' , $authorID );
1249
+ $data['user_url'] = get_author_posts_url( $authorID , '' );
1250
+ $data['avatar'] = get_avatar_url( $authorID );
1251
+
1252
+ return $data;
1253
+ }
1254
+
1255
+ // Posts Slider
1256
+ function pagelayer_posts_slider($params){
1257
+
1258
+ $args = array();
1259
+
1260
+ if(isset($params['post']['post_type'])){
1261
+ $args['post_type'] = $params['post']['post_type'];
1262
+ }
1263
+
1264
+ if(isset($params['post']['category'])){
1265
+ $args['category_name'] = $params['post']['category'];
1266
+ }
1267
+
1268
+ if(isset($params['post']['tags'])){
1269
+ $args['tag'] = $params['post']['tags'];
1270
+ }
1271
+
1272
+ if(isset($params['post']['order_by'])){
1273
+ $args['orderby'] = $params['post']['order_by'];
1274
+ }
1275
+
1276
+ if(isset($params['post']['sort_order'])){
1277
+ $args['order'] = $params['post']['sort_order'];
1278
+ }
1279
+
1280
+ if(isset($params['post']['post_count'])){
1281
+ $args['posts_per_page'] = $params['post']['post_count'];
1282
+ }
1283
+
1284
+ $data = '';
1285
+ $postsquery = new WP_Query($args);
1286
+ if ( $postsquery->have_posts() ){
1287
+ while ( $postsquery->have_posts() ) : $postsquery->the_post();
1288
+ $data .= '<li class="pagelayer-posts-slider-col">
1289
+ <div class="pagelayer-posts-slider-post">
1290
+ <div class="pagelayer-posts-slider-featured-img">';
1291
+ $data .= '<a href="'. get_the_permalink() .'">';
1292
+ if(has_post_thumbnail( $postsquery->ID ) ){
1293
+ if($params['post']['image_size'] == "full" || $params['post']['image_size'] == "custom" ){
1294
+ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $postsquery->ID ), 'single-post-thumbnail' );
1295
+ $data .= '<img class="pagelayer-img" src="'.$image[0].'" class="pagelayer-posts-slider-img">';
1296
+ }else if($params['post']['image_size'] == "thumbnail"){
1297
+ $data .= get_the_post_thumbnail();
1298
+ }
1299
+ }
1300
+ $data .= '</a></div>
1301
+ <div class="pagelayer-posts-slider-content">';
1302
+ $data .= '<p class="pagelayer-posts-slider-title">'. get_the_title().'</p>';
1303
+ $data .= '<div class="pagelayer-posts-slider-excerpt">';
1304
+ if($params['post']['show_excerpt'] == "true"){
1305
+ if(has_excerpt()){
1306
+ $excerpt = get_the_excerpt();
1307
+ $data .= do_shortcode($excerpt);
1308
+ }
1309
+ }
1310
+ $data .= '</div>';
1311
+ $data .= '<a class="pagelayer-posts-slider-link" href="'. get_the_permalink().'">Read More</a>';
1312
+ $data .= '<div class="pagelayer-post-slider-date"><p>'.get_the_date().'</p></div>';
1313
+ $data .= '</div></div></li>';
1314
+ endwhile;
1315
+ }
1316
+ return $data;
1317
+ }
1318
+
1319
+ // Gets the site logo URLs
1320
+ function pagelayer_site_logo(){
1321
+
1322
+ if(get_theme_mod('custom_logo')){
1323
+ $logo_id = get_theme_mod('custom_logo');
1324
+ return pagelayer_image($logo_id);
1325
+ }
1326
+
1327
+ return NULL;
1328
+ }
1329
+
1330
+ // Create select options
1331
+ function pagelayer_create_sel_options( $opt_array , $selected = ''){
1332
+ $options = '';
1333
+ foreach($opt_array as $x => $val){
1334
+
1335
+ // Single item
1336
+ if(is_string($opt_array[$x])){
1337
+ $options .= pagelayer_sel_option($x, $val, $selected);
1338
+
1339
+ // Groups
1340
+ }else{
1341
+ $options .= '<optgroup label="'. $x .'">';
1342
+
1343
+ foreach($opt_array[$x] as $y => $gval){
1344
+ $options .= pagelayer_sel_option($y, $gval, $selected);
1345
+ }
1346
+
1347
+ $options .= '</optgroup>';
1348
+ }
1349
+
1350
+ }
1351
+
1352
+ return $options;
1353
+ }
1354
+
1355
+ // Create option HTML
1356
+ function pagelayer_sel_option($val, $lang, $selected){
1357
+ return '<option value="'. $val .'" '. (($val != $selected) ? '' : 'selected="selected"') .' >'. $lang .'</option>';
1358
+ }
1359
+
1360
+ function pagelayer_get_post_term(){
1361
+
1362
+ $args = [
1363
+ 'taxonomy' => array('category','post_tag'),
1364
+ 'hide_empty' => false,
1365
+ ];
1366
+
1367
+ $terms = get_terms( $args );
1368
+
1369
+ $ret = array();
1370
+ foreach ( $terms as $term ) {
1371
+ $ret[$term->taxonomy.':'.$term->slug.':'.$term->term_taxonomy_id] = $term->taxonomy .': '. $term->name;
1372
+ }
1373
+ //pagelayer_print($terms);die();
1374
+ return $ret;
1375
+ }
1376
+
1377
+ function pagelayer_get_post_author(){
1378
+
1379
+ $args = [
1380
+ 'who' => 'authors',
1381
+ 'fields' => [
1382
+ 'ID',
1383
+ 'display_name',
1384
+ 'user_nicename',
1385
+ ]
1386
+ ];
1387
+
1388
+ $authors = new \WP_User_Query( $args );
1389
+
1390
+ $ret = array();
1391
+ foreach ( $authors->get_results() as $author ) {
1392
+ $ret[$author->user_nicename.':'.$author->ID] = $author->display_name;
1393
+ }
1394
+ //pagelayer_print($authors->get_results());die();
1395
+ return $ret;
1396
+ }
1397
+
1398
+ // Simply echo and dir
1399
+ function pagelayer_json_output(&$done){
1400
+
1401
+ echo json_encode($done);
1402
+ wp_die();
1403
+
1404
+ }
1405
+
1406
+ // Get the current query for render the product
1407
+ function pagelayer_shortcode_current_query_query($query_args, $atts, $type){
1408
+ global $wp_query;
1409
+
1410
+ if($type == 'pagelayer_current_query'){
1411
+
1412
+ if ( ! is_page( wc_get_page_id( 'shop' ) ) ) {
1413
+ $query_args = $wp_query->query_vars;
1414
+ }
1415
+
1416
+ add_action( "woocommerce_shortcode_before_{$type}_loop", function () {
1417
+ wc_set_loop_prop( 'is_shortcode', false );
1418
+ } );
1419
+
1420
+ if(!empty($atts['paginate'])){
1421
+ $page = get_query_var( 'paged', 1 );
1422
+
1423
+ if( 1 < $page ) {
1424
+ $query_args['paged'] = $page;
1425
+ }
1426
+ }
1427
+
1428
+ // Always query only IDs
1429
+ $query_args['fields'] = 'ids';
1430
+
1431
+ }
1432
+
1433
+ return $query_args;
1434
  }
main/live-body.php CHANGED
@@ -52,6 +52,7 @@ echo '
52
  </div>
53
  <div class="pagelayer-logo">
54
  <img src="'.PAGELAYER_URL.'/images/pagelayer-logo-40.png" width="32" /><span class="pagelayer-logo-text">pagelayer</span>
 
55
  </div>
56
  </td>
57
  </tr>
52
  </div>
53
  <div class="pagelayer-logo">
54
  <img src="'.PAGELAYER_URL.'/images/pagelayer-logo-40.png" width="32" /><span class="pagelayer-logo-text">pagelayer</span>
55
+ <span class="pagelayer-settings-icon fa fa-cog" aria-hidden="true"></span>
56
  </div>
57
  </td>
58
  </tr>
main/live.php CHANGED
@@ -48,11 +48,11 @@ class PageLayer_LiveEditor{
48
  add_filter('the_content', array($this, 'the_content'));
49
 
50
  // Enqueue our Editor's JS
51
- wp_register_script('pagelayer-editor', PAGELAYER_JS.'/givejs.php?give=pagelayer-editor.js,widgets.js,'.(defined('PAGELAYER_PREMIUM') ? 'premium.js,' : '').'properties.js,base64.js,slimscroll.js,vanilla-picker.min.js,trumbowyg.js,trumbowyg-pagelayer.js,pen.js', array('jquery'), PAGELAYER_VERSION);
52
  wp_enqueue_script('pagelayer-editor');
53
 
54
  // Enqueue the Editor's CSS
55
- wp_register_style('pagelayer-editor', PAGELAYER_CSS.'/givecss.php?give=pagelayer-editor-frontend.css,pen.css', array(), PAGELAYER_VERSION);
56
  wp_enqueue_style('pagelayer-editor');
57
 
58
  // Enqueue the DateTime picker CSS
@@ -100,10 +100,16 @@ pagelayer_ajax_url = "'.admin_url( 'admin-ajax.php' ).'?";
100
  pagelayer_ajax_nonce = "'.wp_create_nonce('pagelayer_ajax').'";
101
  pagelayer_url = "'.PAGELAYER_URL.'";
102
  pagelayer_postID = "'.$post->ID.'";
 
103
  pagelayer_tabs = '.json_encode($pagelayer->tabs).';
104
  pagelayer_isDirty = false;
105
  pagelayer_returnURL = "'.$returnURL.'";
106
  pagelayer_revision_obj = '.json_encode( pagelayer_get_post_revision_by_id( $post->ID ) ).';
 
 
 
 
 
107
  </script>';
108
  }
109
 
48
  add_filter('the_content', array($this, 'the_content'));
49
 
50
  // Enqueue our Editor's JS
51
+ wp_register_script('pagelayer-editor', PAGELAYER_JS.'/givejs.php?give=pagelayer-editor.js,widgets.js,'.(defined('PAGELAYER_PREMIUM') ? 'premium.js,' : '').'properties.js,base64.js,slimscroll.js,vanilla-picker.min.js,trumbowyg.js,trumbowyg.fontfamily.js,trumbowyg-pagelayer.js,pen.js', array('jquery'), PAGELAYER_VERSION);
52
  wp_enqueue_script('pagelayer-editor');
53
 
54
  // Enqueue the Editor's CSS
55
+ wp_register_style('pagelayer-editor', PAGELAYER_CSS.'/givecss.php?give=pagelayer-editor-frontend.css,pen.css'.(defined('PAGELAYER_PREMIUM') ? ',owl.theme.default.min.css,owl.carousel.min.css' : ''), array(), PAGELAYER_VERSION);
56
  wp_enqueue_style('pagelayer-editor');
57
 
58
  // Enqueue the DateTime picker CSS
100
  pagelayer_ajax_nonce = "'.wp_create_nonce('pagelayer_ajax').'";
101
  pagelayer_url = "'.PAGELAYER_URL.'";
102
  pagelayer_postID = "'.$post->ID.'";
103
+ pagelayer_post_permalink = "'.get_permalink($post->ID).'";
104
  pagelayer_tabs = '.json_encode($pagelayer->tabs).';
105
  pagelayer_isDirty = false;
106
  pagelayer_returnURL = "'.$returnURL.'";
107
  pagelayer_revision_obj = '.json_encode( pagelayer_get_post_revision_by_id( $post->ID ) ).';
108
+ pagelayer_author = '.json_encode(pagelayer_author_data($post->ID)).';
109
+ pagelayer_site_logo = '.json_encode(pagelayer_site_logo()).';
110
+ pagelayer_postTitle = "'. ( isset( $post->post_title ) ? $post->post_title : '' ) .'";
111
+ pagelayer_support_FI = "'. ( current_theme_supports('post-thumbnails') ) .'";
112
+ pagelayer_editable = ".'.(!empty($pagelayer->template_editor) ? $pagelayer->template_editor : 'entry-content').'";
113
  </script>';
114
  }
115
 
main/settings.php CHANGED
@@ -100,6 +100,107 @@ if(!defined('PAGELAYER_VERSION')) {
100
  }
101
  }
102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  $post_type = array('post', 'page', 'product');
104
 
105
  $support_ept = get_option( 'pl_support_ept', ['post', 'page']);
@@ -114,6 +215,11 @@ if(!defined('PAGELAYER_VERSION')) {
114
  <h2 class="nav-tab-wrapper pagelayer-wrapper">
115
  <a href="#general" class="nav-tab">General</a>
116
  <a href="#settings" class="nav-tab ">Settings</a>
 
 
 
 
 
117
  <a href="#support" class="nav-tab ">Support</a>
118
  <a href="#faq" class="nav-tab ">FAQ</a>
119
  </h2>
@@ -156,6 +262,84 @@ if(!defined('PAGELAYER_VERSION')) {
156
  <tr>
157
  </table>
158
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  <div class="pagelayer-tab-panel" id="support">
160
  <h2>Support</h2>
161
  <h3>You can contact the PageLayer Group via email. Our email address is <a href="mailto:support@pagelayer.com">support@pagelayer.com</a>. We will get back to you as soon as possible!</h3>
100
  }
101
  }
102
 
103
+ if(defined('PAGELAYER_PREMIUM')){
104
+
105
+ if(isset($_REQUEST['pagelayer_cf_to_email'])){
106
+
107
+ $to_email = $_REQUEST['pagelayer_cf_to_email'];
108
+
109
+ if ( get_option( 'pagelayer_cf_to_email' ) !== false ) {
110
+
111
+ // The option already exists, so we just update it.
112
+ update_option( 'pagelayer_cf_to_email', $to_email );
113
+
114
+ } else {
115
+
116
+ // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
117
+ $deprecated = null;
118
+ $autoload = 'no';
119
+ add_option( 'pagelayer_cf_to_email', $to_email, $deprecated, $autoload );
120
+ }
121
+ }
122
+
123
+ if(isset($_REQUEST['pagelayer_cf_subject'])){
124
+
125
+ $subject = $_REQUEST['pagelayer_cf_subject'];
126
+
127
+ if ( get_option( 'pagelayer_cf_subject' ) !== false ) {
128
+
129
+ // The option already exists, so we just update it.
130
+ update_option( 'pagelayer_cf_subject', $subject );
131
+
132
+ } else {
133
+
134
+ // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
135
+ $deprecated = null;
136
+ $autoload = 'no';
137
+ add_option( 'pagelayer_cf_subject', $subject, $deprecated, $autoload );
138
+ }
139
+ }
140
+
141
+ if(isset($_REQUEST['pagelayer_cf_success'])){
142
+
143
+ $success = $_REQUEST['pagelayer_cf_success'];
144
+
145
+ if ( get_option( 'pagelayer_cf_success' ) !== false ) {
146
+
147
+ // The option already exists, so we just update it.
148
+ update_option( 'pagelayer_cf_success', $success );
149
+
150
+ } else {
151
+
152
+ // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
153
+ $deprecated = null;
154
+ $autoload = 'no';
155
+ add_option( 'pagelayer_cf_success', $success, $deprecated, $autoload );
156
+ }
157
+ }
158
+
159
+ if(isset($_REQUEST['pagelayer_cf_failed'])){
160
+
161
+ $failed = $_REQUEST['pagelayer_cf_failed'];
162
+
163
+ if ( get_option( 'pagelayer_cf_failed' ) !== false ) {
164
+
165
+ // The option already exists, so we just update it.
166
+ update_option( 'pagelayer_cf_failed', $failed );
167
+
168
+ } else {
169
+
170
+ // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
171
+ $deprecated = null;
172
+ $autoload = 'no';
173
+ add_option( 'pagelayer_cf_failed', $failed, $deprecated, $autoload );
174
+ }
175
+ }
176
+
177
+ if(isset($_REQUEST['pagelayer_google_captcha'])){
178
+
179
+ $captcha = $_REQUEST['pagelayer_google_captcha'];
180
+
181
+ if ( get_option( 'pagelayer_google_captcha' ) !== false ) {
182
+
183
+ // The option already exists, so we just update it.
184
+ update_option( 'pagelayer_google_captcha', $captcha );
185
+
186
+ } else {
187
+
188
+ // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
189
+ $deprecated = null;
190
+ $autoload = 'no';
191
+ add_option( 'pagelayer_google_captcha', $captcha, $deprecated, $autoload );
192
+ }
193
+ }
194
+
195
+ // Facebook APP ID
196
+ if(isset($_REQUEST['pagelayer-fbapp-id'])){
197
+ $fb_app_id = $_REQUEST['pagelayer-fbapp-id'];
198
+
199
+ // Save it
200
+ update_option( 'pagelayer-fbapp-id', $fb_app_id );
201
+ }
202
+ }
203
+
204
  $post_type = array('post', 'page', 'product');
205
 
206
  $support_ept = get_option( 'pl_support_ept', ['post', 'page']);
215
  <h2 class="nav-tab-wrapper pagelayer-wrapper">
216
  <a href="#general" class="nav-tab">General</a>
217
  <a href="#settings" class="nav-tab ">Settings</a>
218
+ <?php if(defined('PAGELAYER_PREMIUM')){ ?>
219
+ <a href="#integration" class="nav-tab">Integrations</a>
220
+ <a href="#contactform" class="nav-tab ">Contact Form</a>
221
+ <a href="#captcha" class="nav-tab ">Google Captcha</a>
222
+ <?php } ?>
223
  <a href="#support" class="nav-tab ">Support</a>
224
  <a href="#faq" class="nav-tab ">FAQ</a>
225
  </h2>
262
  <tr>
263
  </table>
264
  </div>
265
+ <?php if(defined('PAGELAYER_PREMIUM')){ ?>
266
+ <div class="pagelayer-tab-panel" id="integration">
267
+ <div class="pagelayer-title">
268
+ <h2>Facebook SDK Details</h2>
269
+ </div>
270
+ <table>
271
+ <tr>
272
+ <th>App ID</th>
273
+ <td><input type="text" name="pagelayer-fbapp-id" class="pagelayer-app-id" <?php if(get_option('pagelayer-fbapp-id')){
274
+ echo 'value="'.get_option('pagelayer-fbapp-id').'"';
275
+ }?>/></td>
276
+ </tr>
277
+ </table>
278
+ </div>
279
+ <div class="pagelayer-tab-panel" id="contactform">
280
+ <table>
281
+ <tr>
282
+ <th scope="row">To Email:
283
+ </th>
284
+ <td>
285
+ <label>
286
+ <input name="pagelayer_cf_to_email" type="email" placeholder="email@domain.com" <?php if(get_option('pagelayer_cf_to_email')){
287
+ echo 'value="'.get_option('pagelayer_cf_to_email').'"';
288
+ }?>/>
289
+ </label>
290
+ </td>
291
+ </tr>
292
+ <tr>
293
+ <th scope="row">Subject:
294
+ </th>
295
+ <td>
296
+ <label>
297
+ <input name="pagelayer_cf_subject" type="text" placeholder="Subject" <?php if(get_option('pagelayer_cf_subject')){
298
+ echo 'value="'.get_option('pagelayer_cf_subject').'"';
299
+ }?> />
300
+ </label>
301
+ </td>
302
+ </tr>
303
+ <tr>
304
+ <th scope="row">Success Message:
305
+ </th>
306
+ <td>
307
+ <label>
308
+ <input name="pagelayer_cf_success" type="text" placeholder="Success" <?php if(get_option('pagelayer_cf_success')){
309
+ echo 'value="'.get_option('pagelayer_cf_success').'"';
310
+ }?> />
311
+ </label>
312
+ </td>
313
+ </tr>
314
+ <tr>
315
+ <th scope="row">Failed Message:
316
+ </th>
317
+ <td>
318
+ <label>
319
+ <input name="pagelayer_cf_failed" type="text" placeholder="Failed" <?php if(get_option('pagelayer_cf_failed')){
320
+ echo 'value="'.get_option('pagelayer_cf_failed').'"';
321
+ }?> />
322
+ </label>
323
+ </td>
324
+ </tr>
325
+ </table>
326
+ </div>
327
+ <div class="pagelayer-tab-panel" id="captcha">
328
+ <table>
329
+ <tr>
330
+ <th scope="row">Google ReCaptcha </th>
331
+ </th>
332
+ <td>
333
+ <label>
334
+ <input name="pagelayer_google_captcha" type="text" placeholder="captcha" <?php if(get_option('pagelayer_google_captcha')){
335
+ echo 'value="'.get_option('pagelayer_google_captcha').'"';
336
+ }?> />
337
+ </label>
338
+ </td>
339
+ </tr>
340
+ </table>
341
+ </div>
342
+ <?php } ?>
343
  <div class="pagelayer-tab-panel" id="support">
344
  <h2>Support</h2>
345
  <h3>You can contact the PageLayer Group via email. Our email address is <a href="mailto:support@pagelayer.com">support@pagelayer.com</a>. We will get back to you as soon as possible!</h3>
main/shortcode_functions.php CHANGED
@@ -48,7 +48,7 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
48
 
49
  // Is there any function ?
50
  $func = @$pagelayer->shortcodes[$tag]['func'];
51
-
52
  // Create the element array. NOTE : This is similar to the JS el and is temporary
53
  $el = [];
54
  $el['atts'] = $atts;
@@ -752,7 +752,7 @@ function pagelayer_sc_image_slider(&$el){
752
  }
753
 
754
  // The Image
755
- $li .= '<img src="'.$final_urls[$v].'">';
756
 
757
  if(!empty($el['atts']['link_type'])){
758
  $li .= '</a>';
@@ -819,9 +819,9 @@ function pagelayer_sc_grid_gallery(&$el){
819
  }
820
  }
821
 
822
- if(($i % $col) == 0 && $i != 0 ){
823
  $ul[] = '</ul><ul class="pagelayer-grid-gallery-ul">';
824
- }
825
 
826
  $li = '<li class="pagelayer-gallery-item" >';
827
 
@@ -845,7 +845,7 @@ function pagelayer_sc_grid_gallery(&$el){
845
  $li .= '<a href="'.$image['full-url'].'" data-lightbox-gallery="'.$gallery_rand.'" alt="'.$image['alt'].'" class="pagelayer-ele-link" pagelayer-grid-gallery-type="'.$el['atts']['link_to'].'">';
846
  }
847
  // The Image
848
- $li .= '<img src="'.$final_urls[$v].'" title="'.$image['title'].'" alt="'.$image['alt'].'">';
849
 
850
  if(!empty($el['atts']['caption'])){
851
  $li .= '<span class="pagelayer-grid-gallery-caption">'.$image['caption'].'</span>';
@@ -884,179 +884,6 @@ function pagelayer_sc_grid_gallery(&$el){
884
  }
885
  }
886
 
887
- // Image Handler
888
- function pagelayer_sc_audio(&$el){
889
-
890
- return;
891
-
892
- $el['atts']['a_url'] = '';
893
-
894
- if ($el['atts']['source'] == 'external'){
895
- $el['atts']['a_url'] = $el['atts']['url'];
896
- }
897
-
898
- if ($el['atts']['source'] == 'library'){
899
-
900
- $el['atts']['a_url'] = wp_get_attachment_url($el['atts']['id']);
901
- }
902
- if(!empty($el['atts']['a_url'])){
903
-
904
- $filename=$el['atts']['a_url'];
905
-
906
- //Get the file extension
907
-
908
- $extension = pathinfo($filename, PATHINFO_EXTENSION);
909
-
910
-
911
- //Create source tag according to audio file
912
- switch($extension){
913
-
914
- default:
915
- case 'mp3':
916
- $el['atts']['a_type'] = 'audio/mpeg';
917
- break;
918
-
919
- case 'ogg':
920
- $el['atts']['a_type']= 'audio/ogg';
921
- break;
922
-
923
- case 'wav':
924
- $el['atts']['a_type'] = 'audio/wav';
925
- break;
926
- }
927
- }
928
-
929
- if(!empty($el['atts']['a_url']) && !empty($el['atts']['a_type'])){
930
- $el['attr'][]= ['source' => 'src="{{a_url}}'];
931
- $el['attr'][]= ['source' => 'type="{{a_type}}'];
932
- }
933
-
934
- }
935
-
936
- // Social Share Handler
937
- function pagelayer_sc_share(&$el){
938
-
939
- $labelList = array(
940
- 'Facebook' => array(
941
- 'icons' => array('facebook', 'facebook-official', 'facebook-square'),
942
- 'url' => 'https://www.facebook.com/sharer/sharer.php?u='
943
- ),
944
- 'Twitter' => array(
945
- 'icons' => array('twitter', 'twitter-square'),
946
- 'url' => 'https://twitter.com/share?url='
947
- ),
948
- 'Google+' => array(
949
- 'icons' => array('google-plus', 'google-plus-square'),
950
- 'url' => 'https://plus.google.com/share?url='
951
- ),
952
- 'Instagram' => array(
953
- 'icons' => array('instagram'),
954
- 'url' => ''
955
- ),
956
- 'Linkedin' => array(
957
- 'icons' => array('linkedin', 'linkedin-square'),
958
- 'url' => 'https://www.linkedin.com/shareArticle?url='
959
- ),
960
- 'pinterest' => array(
961
- 'icons' => array('pinterest', 'pinterest-p', 'pinterest-square'),
962
- 'url' => '//www.pinterest.com/pin/create/button/?url='
963
- ),
964
- 'Reddit' => array(
965
- 'icons' => array('reddit-alien', 'reddit-square', 'reddit'),
966
- 'url' => 'https://reddit.com/submit?url='
967
- ),
968
- 'Skype' => array(
969
- 'icons' => array('skype'),
970
- 'url' => ''
971
- ),
972
- 'Stumbleupon' => array(
973
- 'icons' => array('stumbleupon'),
974
- 'url' => 'https://www.stumbleupon.com/submit?url='
975
- ),
976
- 'Telegram' => array(
977
- 'icons' => array('telegram'),
978
- 'url' => 'https://t.me/share/url?url='
979
- ),
980
- 'Tumblr' => array(
981
- 'icons' => array('tumblr', 'tumblr-square'),
982
- 'url' => 'https://www.tumblr.com/share/link?url='
983
- ),
984
- 'VK' => array(
985
- 'icons' => array('vk'),
986
- 'url' => 'http://vk.com/share.php?url='
987
- ),
988
- 'Weibo' => array(
989
- 'icons' => array('weibo'),
990
- 'url' => 'http://service.weibo.com/share/share.php?url='
991
- ),
992
- 'WhatsApp' => array(
993
- 'icons' => array('whatsapp'),
994
- 'url' => 'whatsapp://send?text='
995
- ),
996
- 'WordPress' => array(
997
- 'icons' => array('wordpress'),
998
- 'url' => 'https://wordpress.com/press-this.php?u='
999
- ),
1000
- 'Xing' => array(
1001
- 'icons' => array('xing', 'xing-square'),
1002
- 'url' => 'https://www.xing.com/spi/shares/new?url='
1003
- ),
1004
- 'Delicious' => array(
1005
- 'icons' => array('delicious'),
1006
- 'url' => 'https://delicious.com/save?v=5&noui&jump=close&url='
1007
- ),
1008
- 'Dribbble' => array(
1009
- 'icons' => array('dribbble'),
1010
- 'url' => ''
1011
- )
1012
- );
1013
-
1014
- if(!empty($el['atts']['text'])){
1015
- $el['atts']['icon_label'] = $el['atts']['text'];
1016
- }else{
1017
- foreach($labelList as $key => $val){
1018
- if(in_array($el['atts']['icon'], $val['icons'])){
1019
- $el['atts']['icon_label'] = $key;
1020
- break;
1021
- }
1022
- }
1023
- }
1024
-
1025
- foreach($labelList as $key => $val){
1026
- if(in_array($el['atts']['icon'], $val['icons'])){
1027
- $el['atts']['social_url'] = $val['url'].$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];;
1028
- break;
1029
- }
1030
- }
1031
- }
1032
-
1033
- // Posts Grid
1034
- function pagelayer_sc_wp_posts_grid($atts, $content = '', $tag = ''){
1035
-
1036
- $args = array(
1037
- 'numberposts' => -1,
1038
- 'post_type' => 'post',
1039
- 'post_status' => array('publish', 'pending', 'draft', 'future', 'private', 'inherit', 'trash')
1040
- );
1041
- $all_posts = get_posts($args);
1042
-
1043
- $html = '<div '.pagelayer_create_sc($tag, $atts, 'pagelayer-posts-grid').'>';
1044
-
1045
- //pagelayer_print($all_posts);
1046
- foreach($all_posts as $pk => $pv){
1047
- $post_link = get_permalink($pv->ID);
1048
- $html .= '<div>
1049
- <h2><a href="'.$post_link.'">'.$pv->post_title.'</a></h2>
1050
- <p>'.date('F jS, Y', strtotime($pv->post_date)).' | Published by <a href="'.site_url('author/'.get_the_author_meta('user_login', $pv->post_author)).'">'.get_the_author_meta('display_name', $pv->post_author).'</a></p>
1051
- <p>'.do_shortcode($pv->post_content).'</p>
1052
- <p><a href="'.$post_link.'">Read More</a></p>
1053
- </div>';
1054
- }
1055
-
1056
- $html .= '</div>';
1057
-
1058
- return $html;
1059
- }
1060
 
1061
  // Video Handler
1062
  function pagelayer_sc_video(&$el){
@@ -1089,55 +916,6 @@ function pagelayer_sc_video(&$el){
1089
 
1090
  }
1091
 
1092
- // Video slider items Handler
1093
- function pagelayer_sc_video_slider(&$el){
1094
-
1095
- $pager = (!empty($el['atts']['slider_pager']))? 'true': 'false';
1096
- $loop = (!empty($el['atts']['slider_loop']))? 'true': 'false';
1097
- $autoplay = (!empty($el['atts']['autoplay']) || !($el['atts']['autoplay']))? 'true' : 'false';
1098
- $slideshow_speed = intval($el['atts']['slideshow_speed']);
1099
- $slideshow_start = intval($el['atts']['slideshow_start']);
1100
-
1101
- echo "<script type='text/javascript'>
1102
- jQuery(document).ready(function(){
1103
- jQuery('".$el['selector']." .pagelayer-video-slider-holder').slippry({
1104
- elements: 'div.pagelayer-video',
1105
- auto: ".$autoplay.",
1106
- speed: ".$slideshow_speed.",
1107
- transition: '".$el['atts']['slider_transition']."',
1108
- preload: '".$el['atts']['slider_preload']."',
1109
- pager: ".$pager.",
1110
- start : ".$slideshow_start.",
1111
- loop : ".$loop.",
1112
-
1113
- });
1114
- });
1115
- </script>";
1116
- }
1117
-
1118
- // Splash Handler
1119
- function pagelayer_sc_splash(&$el){
1120
-
1121
- $delay = intval($el['atts']['delay']);
1122
- echo '<script type="text/javascript">
1123
- jQuery(document).ready(function(){
1124
- if("'.$el['atts']['display'].'" == "once"){
1125
-
1126
- if (!sessionStorage.isVisited) {
1127
- sessionStorage.isVisited = "true";
1128
- jQuery("[pagelayer-id='.$el['id'].'] .pagelayer-splash-container").delay('.$delay.').fadeIn();
1129
- }
1130
- }else{
1131
- jQuery("[pagelayer-id='.$el['id'].'] .pagelayer-splash-container").delay('.$delay.').fadeIn();
1132
- }
1133
-
1134
- jQuery("[pagelayer-id='.$el['id'].'] .pagelayer-splash-close").on("click", function(){
1135
- jQuery("[pagelayer-id='.$el['id'].'] .pagelayer-splash-container").fadeOut();
1136
- });
1137
- });
1138
- </script>';
1139
-
1140
- }
1141
 
1142
  // Shortcodes Handler
1143
  function pagelayer_sc_shortcodes(&$el){
@@ -1161,19 +939,6 @@ function pagelayer_sc_wp_widgets(&$el){
1161
  $el['tmp']['data'] = $data;
1162
  }
1163
 
1164
- // Testimonial Handler
1165
- function pagelayer_sc_testimonial(&$el){
1166
-
1167
- $el['atts']['func_image'] = @$el['tmp']['avatar-'.$el['atts']['custom_size'].'-url'];
1168
- $el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$el['tmp']['avatar-full-url'] : $el['atts']['func_image'];
1169
-
1170
- if(!empty($image)){
1171
- foreach($image as $k => $v){
1172
- $el['tmp']['avatar-'.$k] = $v;
1173
- }
1174
- }
1175
-
1176
- }
1177
 
1178
  // Service Handler
1179
  function pagelayer_sc_service(&$el){
@@ -1184,155 +949,6 @@ function pagelayer_sc_service(&$el){
1184
  }
1185
  }
1186
 
1187
- // Primary menu Handler
1188
- function pagelayer_sc_wp_menu(&$el){
1189
-
1190
- $el['atts']['nav_menu'] = wp_nav_menu( array(
1191
- 'menu' => wp_get_nav_menu_object($el['atts']['nav_list']),
1192
- 'menu_id' => $el['atts']['nav_list'],
1193
- //'theme_location' => 'primary',
1194
- //'menu_class' => 'primary-menu',
1195
- 'echo' => false,
1196
- ) );
1197
- }
1198
-
1199
- // Post Navigation Handler
1200
- function pagelayer_sc_post_nav(&$el){
1201
-
1202
- $in_same_term = false;
1203
- $taxonomies = 'category';
1204
- $title = '';
1205
- $arrows_list = $el['atts']['arrows_list'];
1206
-
1207
- if($el['atts']['in_same_term']){
1208
- $in_same_term = true;
1209
- $taxonomies = $el['atts']['taxonomies'];
1210
- }
1211
-
1212
- if($el['atts']['post_title']){
1213
- $title = '<span class="pagelayer-post-nav-title">%title</span>';
1214
- }
1215
-
1216
- $next_label = '<span class="pagelayer-next-holder">
1217
- <span class="pagelayer-post-nav-link"> '.$el["atts"]["next_label"].'</span>'.$title.'
1218
- </span>
1219
- <span class="pagelayer-post-nav-icon fa fa-'.$arrows_list.'-right"></span>';
1220
-
1221
- $prev_label = '<span class="pagelayer-post-nav-icon fa fa-'.$arrows_list.'-left"></span>
1222
- <span class="pagelayer-next-holder">
1223
- <span class="pagelayer-post-nav-link"> '.$el["atts"]["prev_label"].'</span>'.$title.'
1224
- </span>';
1225
-
1226
- $el['atts']['next_link'] = get_next_post_link('%link', $next_label, $in_same_term, '', $taxonomies);
1227
-
1228
- $el['atts']['prev_link'] = get_previous_post_link('%link', $prev_label, $in_same_term, '', $taxonomies );
1229
- }
1230
-
1231
- // Comments Handler
1232
- function pagelayer_sc_post_comment(&$el){
1233
- global $post;
1234
-
1235
- // Is it custom ?
1236
- if($el['atts']['post_type'] == 'custom' && !empty($el['atts']['post_id'])){
1237
- $orig_post = $post;
1238
- $post = get_post($el['atts']['post_id']);
1239
- }
1240
-
1241
- $post_id = $post->ID;
1242
- //echo $post_id.' - '.$el['atts']['post_id'];
1243
-
1244
- if ( comments_open($post_id) || get_comments_number($post_id) ) {
1245
-
1246
- // Handel comments template echo
1247
- ob_start();
1248
- comments_template();
1249
-
1250
- $el['atts']['post_comment'] = '<div class="pagelayer-comments-template">'.ob_get_clean().'</div>';
1251
- }else{
1252
- $el['atts']['post_comment'] = '<div class="pagelayer-comments-close">
1253
- <h2>Comments are closed!</h2>
1254
- </div>';
1255
- }
1256
-
1257
- if(!empty($orig_post)){
1258
- $post = $orig_post;
1259
- }
1260
-
1261
- }
1262
-
1263
- // post navigation Handler
1264
- function pagelayer_sc_post_info_list(&$el){
1265
-
1266
- $el['atts']['post_info_content'] ='';
1267
-
1268
- switch($el['atts']['type']){
1269
- case 'author':
1270
-
1271
- $el['atts']['link'] = get_author_posts_url( get_the_author_meta( 'ID' ) );
1272
- $el['atts']['avatar_url'] = get_avatar_url( get_the_author_meta( 'ID' ), 96 );
1273
- $el['atts']['post_info_content'] = get_the_author_meta( 'display_name' );
1274
-
1275
- break;
1276
-
1277
- case 'date':
1278
-
1279
- $format = [
1280
- 'default' => 'F j, Y',
1281
- '0' => 'F j, Y',
1282
- '1' => 'Y-m-d',
1283
- '2' => 'm/d/Y',
1284
- '3' => 'd/m/Y',
1285
- 'custom' => empty( $el['atts']['date_format_custom'] ) ? 'F j, Y' : $el['atts']['date_format_custom'],
1286
- ];
1287
-
1288
- $el['atts']['post_info_content'] = get_the_time( $format[ $el['atts']['date_format'] ] );
1289
- $el['atts']['link'] = get_day_link( get_post_time( 'Y' ), get_post_time( 'm' ), get_post_time( 'j' ) );
1290
-
1291
- break;
1292
-
1293
- case 'time':
1294
-
1295
- $format = [
1296
- 'default' => 'g:i a',
1297
- '0' => 'g:i a',
1298
- '1' => 'g:i A',
1299
- '2' => 'H:i',
1300
- 'custom' => empty( $el['atts']['time_format_custom'] ) ? 'F j, Y' : $el['atts']['time_format_custom'],
1301
- ];
1302
- $el['atts']['post_info_content'] = get_the_time( $format[ $el['atts']['time_format'] ] );
1303
-
1304
- break;
1305
-
1306
- case 'comments':
1307
-
1308
- if (comments_open()) {
1309
- $el['atts']['post_info_content'] = (int) get_comments_number();
1310
- $el['atts']['link'] = get_comments_link();
1311
- }
1312
-
1313
- break;
1314
-
1315
- case 'terms':
1316
-
1317
- $taxonomy = $el['atts']['taxonomy'];
1318
- $terms = wp_get_post_terms( get_the_ID(), $taxonomy );
1319
- foreach ( $terms as $term ) {
1320
- $el['atts']['post_info_content'] .= ' <a href="'. get_term_link( $term ) .'"> '. $term->name .' </a>';
1321
- }
1322
-
1323
- $el['atts']['info_link'] = '';
1324
- break;
1325
-
1326
- case 'custom':
1327
-
1328
- $el['atts']['post_info_content'] = $el['atts']['type_custom'];
1329
- $el['atts']['link'] = $el['atts']['info_custom_link'];
1330
-
1331
- break;
1332
- }
1333
-
1334
-
1335
- }
1336
 
1337
  /*pagelayer_print($atts);
1338
  pagelayer_print($content);
@@ -1354,105 +970,3 @@ function pagelayer_font_family(){
1354
  function pagelayer_icon_class_list(){
1355
  return array();
1356
  }
1357
-
1358
- // The types of Posts
1359
- function pagelayer_post_types($page = false){
1360
-
1361
- // Get the types
1362
- $args = array('public' => TRUE);
1363
- $types = get_post_types($args, 'objects');
1364
-
1365
- // Unset Page if not required
1366
- if($page == false){
1367
- unset($types['page']);
1368
- }
1369
-
1370
- // Remove Attachment types !
1371
- unset($types['attachment']);
1372
-
1373
- foreach($types as $name => $type){
1374
- $return[$name] = $type->labels->singular_name;
1375
- }
1376
-
1377
- return $return;
1378
- }
1379
-
1380
- // Get Taxonomies
1381
- function pagelayer_tax_list($item, $page = false){
1382
-
1383
- // Get types
1384
- $types = pagelayer_post_types($page);
1385
-
1386
- // Loop thru
1387
- foreach($types as $slug => $label){
1388
-
1389
- // Get the items
1390
- $items = get_object_taxonomies($slug, 'objects');
1391
-
1392
- foreach($items as $name => $v) {
1393
- if(!isset($taxonomies[$name])){
1394
- $taxonomies[$name] = array('label' => $v->labels->singular_name, 'posttypes' => array($label));
1395
- }else{
1396
- $taxonomies[$name]['posttypes'][] = $label;
1397
- }
1398
- }
1399
- }
1400
-
1401
- // Make it simple
1402
- foreach($taxonomies as $k => $v){
1403
- $taxonomies[$k] = $v['label'].' ('.implode(', ', $v['posttypes']).')';
1404
- }
1405
-
1406
- $pos = array_search($item, array_keys($taxonomies));
1407
- if(!empty($pos)) {
1408
- $cut = array_splice($taxonomies, $pos, 1);
1409
- $taxonomies = $cut + $taxonomies;
1410
- }
1411
-
1412
- return $taxonomies;
1413
- }
1414
-
1415
- // Get all posts and pages list
1416
- function pagelayer_get_posts($args){
1417
-
1418
- if(empty($args)){
1419
- $args = array_keys(pagelayer_post_types(true));
1420
- }
1421
-
1422
- $posts_list = array();
1423
-
1424
- // Get type
1425
- foreach($args as $p){
1426
-
1427
- // Create post list
1428
- foreach(get_posts(['post_type' => $p]) as $post){
1429
- $posts_list[$post->ID] = $post->post_title;
1430
- }
1431
- }
1432
-
1433
- return $posts_list;
1434
- }
1435
-
1436
- // Get Menu List()
1437
- function pagelayer_get_menu_list($return_def = false){
1438
-
1439
- $menus = wp_get_nav_menus();
1440
- $nav_menu = array();
1441
-
1442
- $default = $menus[0]->term_id;
1443
-
1444
- foreach ( $menus as $menu ) {
1445
- $nav_menu[$menu->term_id] = $menu->name;
1446
-
1447
- if($default > $menu->term_id){
1448
- $default = $menu->term_id;
1449
- }
1450
- }
1451
-
1452
- if($return_def){
1453
- return $default;
1454
- }
1455
-
1456
- return $nav_menu;
1457
-
1458
- }
48
 
49
  // Is there any function ?
50
  $func = @$pagelayer->shortcodes[$tag]['func'];
51
+ $atts = (array) $atts;
52
  // Create the element array. NOTE : This is similar to the JS el and is temporary
53
  $el = [];
54
  $el['atts'] = $atts;
752
  }
753
 
754
  // The Image
755
+ $li .= '<img class="pagelayer-img" src="'.$final_urls[$v].'">';
756
 
757
  if(!empty($el['atts']['link_type'])){
758
  $li .= '</a>';
819
  }
820
  }
821
 
822
+ /* if(($i % $col) == 0 && $i != 0 ){
823
  $ul[] = '</ul><ul class="pagelayer-grid-gallery-ul">';
824
+ } */
825
 
826
  $li = '<li class="pagelayer-gallery-item" >';
827
 
845
  $li .= '<a href="'.$image['full-url'].'" data-lightbox-gallery="'.$gallery_rand.'" alt="'.$image['alt'].'" class="pagelayer-ele-link" pagelayer-grid-gallery-type="'.$el['atts']['link_to'].'">';
846
  }
847
  // The Image
848
+ $li .= '<img class="pagelayer-img" src="'.$final_urls[$v].'" title="'.$image['title'].'" alt="'.$image['alt'].'">';
849
 
850
  if(!empty($el['atts']['caption'])){
851
  $li .= '<span class="pagelayer-grid-gallery-caption">'.$image['caption'].'</span>';
884
  }
885
  }
886
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
887
 
888
  // Video Handler
889
  function pagelayer_sc_video(&$el){
916
 
917
  }
918
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
919
 
920
  // Shortcodes Handler
921
  function pagelayer_sc_shortcodes(&$el){
939
  $el['tmp']['data'] = $data;
940
  }
941
 
 
 
 
 
 
 
 
 
 
 
 
 
 
942
 
943
  // Service Handler
944
  function pagelayer_sc_service(&$el){
949
  }
950
  }
951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
952
 
953
  /*pagelayer_print($atts);
954
  pagelayer_print($content);
970
  function pagelayer_icon_class_list(){
971
  return array();
972
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
main/shortcodes.php CHANGED
@@ -102,6 +102,265 @@ if(!defined('PAGELAYER_VERSION')) {
102
  ////////////////////////
103
  global $pagelayer;
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  $pagelayer->styles['ele_bg_styles'] = [
106
  'ele_bg_hover' => [
107
  'type' => 'radio',
@@ -153,6 +412,7 @@ $pagelayer->styles['ele_bg_styles'] = [
153
  'ele_bg_img' => [
154
  'type' => 'image',
155
  'label' => __pl('Image'),
 
156
  'css' => 'background: url({{{ele_bg_img-url}}});',
157
  'show' => ['ele_bg_hover' => ''],
158
  'req' => ['ele_bg_type' => 'image']
@@ -480,57 +740,7 @@ $pagelayer->styles['animation_styles'] = [
480
  'label' => __pl('animation'),
481
  'default' => '',
482
  'addClass' => ['{{val}}',( !pagelayer_is_live() ? 'pagelayer-wow' : '' )],
483
- 'list' => [
484
- '' => __pl('none'),
485
- __pl('fading') => [
486
- 'fadeIn' => __pl('fadein'),
487
- 'fadeInDown' => __pl('fadeindown'),
488
- 'fadeInUp' => __pl('fadeinup'),
489
- 'fadeInLeft' => __pl('fadeinleft'),
490
- 'fadeInRight' => __pl('fadeinright'),
491
- ],
492
- __pl('zooming') => [
493
- 'zoomIn' => __pl('zoomin'),
494
- 'zoomInDown' => __pl('zoomindown'),
495
- 'zoomInUp' => __pl('zoominup'),
496
- 'zoomInLeft' => __pl('zoominleft'),
497
- 'zoomInRight' => __pl('zoominright'),
498
- ],
499
- __pl('bounceing') => [
500
- 'bounceIn' => __pl('bouncein'),
501
- 'bounceInDown' => __pl('bounceindown'),
502
- 'bounceInUp' => __pl('bounceinup'),
503
- 'bounceInLeft' => __pl('bounceinleft'),
504
- 'bounceInRight' => __pl('bounceinright'),
505
- ],
506
- __pl('sliding') => [
507
- 'slideInDown' => __pl('slideindown'),
508
- 'slideInUp' => __pl('slideinup'),
509
- 'slideInLeft' => __pl('slideinleft'),
510
- 'slideInRight' => __pl('slideinright'),
511
- ],
512
- __pl('rotating') => [
513
- 'rotateIn' => __pl('rotatein'),
514
- 'rotateInDown' => __pl('rotateindown'),
515
- 'rotateInUp' => __pl('rotateinup'),
516
- 'rotateInLeft' => __pl('rotateinleft'),
517
- 'rotateInRight' => __pl('rotateinright'),
518
- ],
519
- __pl('effects') => [
520
- 'lightSpeedIn' => __pl('lightspeedin'),
521
- 'bounce' => __pl('bounce'),
522
- 'pulse' => __pl('pulse'),
523
- 'rubberBand' => __pl('rubberband'),
524
- 'flash' => __pl('flash'),
525
- 'swing' => __pl('swing'),
526
- 'jello' => __pl('jello'),
527
- 'tada' => __pl('tada'),
528
- 'wobble' => __pl('wobble'),
529
- 'rollin' => __pl('rollin'),
530
- 'headShake' => __pl('headshake'),
531
- 'shake' => __pl('shake'),
532
- ],
533
- ],
534
  ],
535
  'animation_speed' => [
536
  'type' => 'select',
@@ -609,7 +819,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
609
  'func' => 'pagelayer_sc_row',
610
  'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
611
  <div if="{{parallax_img}}" class="pagelayer-parallax-window">
612
- <img src="{{{parallax_img-url}}}">
613
  </div>
614
  <div if="{{row_shape_position}}" class="pagelayer-row-shape">
615
  <div class="pagelayer-row-svg">
@@ -1127,7 +1337,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
1127
  'func' => 'pagelayer_sc_col',
1128
  'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
1129
  <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1130
- <img src="{{{parallax_img-url}}}">
1131
  </div>
1132
  <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
1133
  <div class="pagelayer-col-holder"></div>',
@@ -1496,6 +1706,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
1496
  'label' => __pl('obj_align_label'),
1497
  'type' => 'radio',
1498
  'addAttr' => 'align="{{align}}"',
 
1499
  'css' => ['{{element}}' => 'text-align: {{val}}'],
1500
  'list' => array(
1501
  'left' => __pl('left'),
@@ -1514,6 +1725,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
1514
  'heading_typo' => array(
1515
  'type' => 'typography',
1516
  'label' => __pl('typography'),
 
1517
  'css' => ['{{element}} .pagelayer-heading-holder *' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
1518
  '{{element}} .pagelayer-heading-holder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1519
  ),
@@ -1589,6 +1801,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1589
  'quote_content_typo' => array(
1590
  'type' => 'typography',
1591
  'label' => __pl('quote_content_typo'),
 
1592
  'css' => ['{{element}} .pagelayer-quote-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1593
  ),
1594
  ),
@@ -1647,6 +1860,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1647
  'step' => 1,
1648
  'max' => 100,
1649
  'default' => 0,
 
1650
  'css' => ['{{element}} .pagelayer-quotation-overlay' => 'top: {{val}}%;'],
1651
  'req' => array(
1652
  'quote_style' => 'quotation',
@@ -1659,6 +1873,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1659
  'min' => 0,
1660
  'step' => 1,
1661
  'max' => 100,
 
1662
  'css' => ['{{element}} .pagelayer-quotation-overlay' => 'left: {{val}}%;'],
1663
  'req' => array(
1664
  'quote_style' => 'quotation',
@@ -1672,6 +1887,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1672
  'step' => 1,
1673
  'max' => 500,
1674
  'default' => 10,
 
1675
  'css' => ['{{element}} .fa-quote-right' => 'padding-left: {{val}}px;',
1676
  '{{element}} .fa-quote-left' => 'padding-right: {{val}}px;'],
1677
  'req' => array(
@@ -1682,6 +1898,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1682
  'label' => __pl('obj_align_label'),
1683
  'type' => 'radio',
1684
  'default' => 'left',
 
1685
  'css' => ['{{element}} .pagelayer-quote-holder' => 'text-align: {{val}};'],
1686
  'list' => array(
1687
  'left' => __pl('left'),
@@ -1713,6 +1930,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1713
  'type' => 'typography',
1714
  'label' => __pl('cite_typo'),
1715
  'default' => ',16,italic,,,,solid,,,,',
 
1716
  'css' => ['{{element}} .pagelayer-quote-cite' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1717
  )
1718
  ],
@@ -1724,6 +1942,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1724
  'step' => 1,
1725
  'max' => 100,
1726
  'default' => 5,
 
1727
  'css' => ['{{element}} .pagelayer-quote-holder' => 'border-left-width: {{val}}px; border-left-style: solid;']
1728
  ),
1729
  'quote_border_color' => array(
@@ -1739,6 +1958,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1739
  'step' => 1,
1740
  'max' => 100,
1741
  'default' => 30,
 
1742
  'css' => ['{{element}} .pagelayer-quote-holder' => 'padding-left: {{val}}px; padding-right: 10px;']
1743
  ),
1744
  'quote_vpadding' => array(
@@ -1748,6 +1968,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
1748
  'step' => 1,
1749
  'max' => 100,
1750
  'default' => 20,
 
1751
  'css' => ['{{element}} .pagelayer-quote-holder' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;']
1752
  )
1753
  ],
@@ -1853,8 +2074,9 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
1853
  'step' => 1,
1854
  'max' => 100,
1855
  'default' => 10,
1856
- 'css' => ['{{element}} .pagelayer-list_item:not(:last-child)' => 'padding-bottom: calc({{val}}px/2);',
1857
- '{{element}} .pagelayer-list_item:not(:first-child)' => 'margin-top: calc({{val}}px/2)'],
 
1858
  ),
1859
  'side_spacing' => array(
1860
  'type' => 'slider',
@@ -1862,6 +2084,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
1862
  'min' => 0,
1863
  'step' => 1,
1864
  'max' => 100,
 
1865
  'css' => ['{{element}} .pagelayer-list_item' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
1866
  ),
1867
  ),
@@ -1875,6 +2098,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
1875
  'list_typo' => array(
1876
  'type' => 'typography',
1877
  'label' => __pl('list_typo'),
 
1878
  'css' => [
1879
  '{{element}} li' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
1880
  '{{element}} li > a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'
@@ -1887,6 +2111,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
1887
  'step' => 1,
1888
  'max' => 100,
1889
  'default' => 10,
 
1890
  'css' => ['{{element}} .pagelayer-list-item' => 'margin-left: {{val}}px;'],
1891
  ),
1892
  ],
@@ -1903,6 +2128,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
1903
  'min' => 0,
1904
  'step' => 1,
1905
  'max' => 150,
 
1906
  'css' => ['{{element}} i' => 'font-size: {{val}}px'],
1907
  ),
1908
  ],
@@ -1910,8 +2136,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
1910
  'icon_border_type' => array(
1911
  'type' => 'select',
1912
  'label' => __pl('type'),
1913
- 'css' => ['{{element}} .pagelayer-list_item:not(:last-child)' => 'border-bottom-style: {{val}};',
1914
- '{{element}} .pagelayer-ele-wrap:not(:last-child) .pagelayer-list_item' => 'border-bottom-style: {{val}};'],
1915
  'default' => 'solid',
1916
  'list' => [
1917
  '' => __pl('none'),
@@ -1926,7 +2151,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
1926
  'type' => 'color',
1927
  'label' => __pl('color'),
1928
  'default' => '#cbd2dc78',
1929
- 'css' => ['{{element}} .pagelayer-list_item' => 'border-bottom-color: {{val}};'],
1930
  'req' => array(
1931
  '!icon_border_type' => ''
1932
  ),
@@ -1938,7 +2163,8 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
1938
  'step' => 1,
1939
  'max' => 100,
1940
  'default' => 3,
1941
- 'css' => ['{{element}} .pagelayer-list_item' => 'border-bottom-width: {{val[0]}}px;'],
 
1942
  'req' => [
1943
  '!icon_border_type' => ''
1944
  ]
@@ -1972,6 +2198,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
1972
  'type' => 'spinner',
1973
  'label' => __pl('service_box_icon_background_size'),
1974
  'default' => 10,
 
1975
  'css' => ['{{element}} i' => 'padding: calc(0.5em + {{val}}px);'],
1976
  'min' => 1,
1977
  'max' => 500,
@@ -1991,6 +2218,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
1991
  'type' => 'radio',
1992
  'label' => __pl('alignment'),
1993
  'default' => 'center',
 
1994
  'css' => 'text-align: {{val}}',
1995
  'list' => array(
1996
  'left' => __pl('left'),
@@ -2057,6 +2285,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2057
  'step' => 1,
2058
  'max' => 500,
2059
  'default' => 26,
 
2060
  'css' => ['{{element}} i' => 'font-size: {{val}}px'],
2061
  'req' => array(
2062
  'icon_size' => 'pagelayer-icon-custom'
@@ -2073,6 +2302,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2073
  'min' => 0,
2074
  'max' => 360,
2075
  'step' => 1,
 
2076
  'show' => array(
2077
  'icon_hover' => ''
2078
  ),
@@ -2096,6 +2326,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2096
  'step' => 100,
2097
  'max' => 5000,
2098
  'default' => 400,
 
2099
  'css' => ['{{element}} i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
2100
  'show' => array(
2101
  'icon_hover' => 'hover'
@@ -2117,6 +2348,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2117
  'min' => 1,
2118
  'step' => 1,
2119
  'max' => 500,
 
2120
  'css' => ['{{element}} i:hover' => 'font-size: {{val}}px'],
2121
  'req' => array(
2122
  'icon_size' => 'pagelayer-icon-custom'
@@ -2169,6 +2401,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2169
  'min' => 0,
2170
  'max' => 360,
2171
  'step' => 1,
 
2172
  'show' => array(
2173
  'icon_hover' => 'hover'
2174
  ),
@@ -2191,6 +2424,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2191
  'min' => 1,
2192
  'max' => 500,
2193
  'step' => 1,
 
2194
  'req' => array(
2195
  '!bg_shape' => ''
2196
  ),
@@ -2200,7 +2434,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2200
  )
2201
  ],
2202
  'border_style' => [
2203
- 'border_hover' => array(
2204
  'type' => 'radio',
2205
  'label' => '',
2206
  'default' => '',
@@ -2222,7 +2456,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2222
  'groove' => __pl('groove'),
2223
  ],
2224
  'show' => array(
2225
- 'border_hover' => ''
2226
  ),
2227
  ),
2228
  'icon_border_color' => array(
@@ -2234,29 +2468,31 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2234
  '!icon_border_type' => ''
2235
  ),
2236
  'show' => array(
2237
- 'border_hover' => ''
2238
  ),
2239
  ),
2240
  'icon_border_width' => array(
2241
  'type' => 'padding',
2242
  'label' => __pl('border_width'),
 
2243
  'css' => ['{{element}} i' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2244
  'req' => [
2245
  '!icon_border_type' => ''
2246
  ],
2247
  'show' => array(
2248
- 'border_hover' => ''
2249
  ),
2250
  ),
2251
  'icon_border_radius' => array(
2252
  'type' => 'padding',
2253
  'label' => __pl('border_radius'),
 
2254
  'css' => ['{{element}} i' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2255
  'req' => array(
2256
  '!icon_border_type' => ''
2257
  ),
2258
  'show' => array(
2259
- 'border_hover' => ''
2260
  ),
2261
  ),
2262
  'icon_border_type_hover' => array(
@@ -2272,7 +2508,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2272
  'groove' => __pl('groove'),
2273
  ],
2274
  'show' => array(
2275
- 'border_hover' => 'hover'
2276
  ),
2277
  ),
2278
  'icon_border_color_hover' => array(
@@ -2281,32 +2517,34 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2281
  'css' => ['{{element}} i:hover' => 'border-color: {{val}};'],
2282
  'default' => '#3e8ef7',
2283
  'req' => array(
2284
- '!icon_border_type' => ''
2285
  ),
2286
  'show' => array(
2287
- 'border_hover' => 'hover'
2288
  ),
2289
  ),
2290
  'icon_border_width_hover' => array(
2291
  'type' => 'padding',
2292
  'label' => __pl('border_width'),
 
2293
  'css' => ['{{element}} i:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2294
  'req' => [
2295
- '!icon_border_type' => ''
2296
  ],
2297
  'show' => array(
2298
- 'border_hover' => 'hover'
2299
  ),
2300
  ),
2301
  'icon_border_radius_hover' => array(
2302
  'type' => 'padding',
2303
  'label' => __pl('border_radius'),
 
2304
  'css' => ['{{element}} i:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2305
  'req' => array(
2306
- '!icon_border_type' => ''
2307
  ),
2308
  'show' => array(
2309
- 'border_hover' => 'hover'
2310
  ),
2311
  ),
2312
  ],
@@ -2374,6 +2612,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
2374
  'badge_vertical_align' => array(
2375
  'type' => 'select',
2376
  'label' => __pl('badge_vertical_align'),
 
2377
  'css' => ['{{element}} .pagelayer-badge-details' => 'vertical-align:{{val}};'],
2378
  'list' => [
2379
  '' => __pl('none'),
@@ -2401,6 +2640,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
2401
  'type' => 'typography',
2402
  'label' => __pl('text_size'),
2403
  'default' => ',25,,400,,,,,,,',
 
2404
  'css' => ['{{element}} .pagelayer-badge-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
2405
  ),
2406
  ],
@@ -2417,7 +2657,8 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
2417
  'label' => __pl('badge_spacing'),
2418
  'default' => 2,
2419
  'min' => 1,
2420
- 'max' => 100,
 
2421
  'css' => ['{{element}} .pagelayer-badge-details' => 'margin-left:{{val}}px;'],
2422
  ),
2423
  'badge_background_color' => array(
@@ -2433,6 +2674,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
2433
  'default' => 2,
2434
  'min' => 0,
2435
  'max' => 100,
 
2436
  'css' => ['{{element}} .pagelayer-badge-details' => 'padding-top:{{val}}px; padding-bottom:{{val}}px;'],
2437
  ),
2438
  'badge_hspacing' => array(
@@ -2440,7 +2682,8 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
2440
  'label' => __pl('horizontal_spacing'),
2441
  'default' => 2,
2442
  'min' => 0,
2443
- 'max' => 100,
 
2444
  'css' => ['{{element}} .pagelayer-badge-details' => 'padding-left:{{val}}px; padding-right:{{val}}px;'],
2445
  ),
2446
  'badge_text_style' => array(
@@ -2549,6 +2792,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
2549
  'label' => __pl('tooltip_align'),
2550
  'type' => 'select',
2551
  'default' => 'center',
 
2552
  'css' => 'text-align: {{val}};',
2553
  'list' => array(
2554
  'left' => __pl('left'),
@@ -2565,6 +2809,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
2565
  'type' => 'typography',
2566
  'label' => __pl('tooltip_title_size'),
2567
  'default' => ',25,,400,,,,,,,',
 
2568
  'css' => ['{{element}} .pagelayer-tooltip-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
2569
  '{{element}} .pagelayer-tooltip-icon .fa' => 'font-size: {{val[1]}}px !important;'],
2570
  ),
@@ -2593,6 +2838,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
2593
  'min' => 100,
2594
  'max' => 500,
2595
  'default' => 200,
 
2596
  'css' => ['{{element}} .pagelayer-tooltip-text' => 'width:{{val}}px;'],
2597
  ),
2598
  'tooltip_spacing' => array(
@@ -2601,6 +2847,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
2601
  'min' => 0,
2602
  'max' => 100,
2603
  'default' => 10,
 
2604
  'css' => ['{{element}} .pagelayer-tooltip-text' => 'padding:{{val}}px;'],
2605
  ),
2606
  'tooltip_background' => array(
@@ -2624,6 +2871,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
2624
  'type' => 'typography',
2625
  'label' => __pl('tooltip_text_size'),
2626
  'default' => ',18,,400,,,,,,,',
 
2627
  'css' => ['{{element}} .pagelayer-tooltip-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
2628
  ),
2629
  'tooltip_shadow' => array(
@@ -2660,6 +2908,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
2660
  'min' => 0,
2661
  'max' => 100,
2662
  'default' => 4,
 
2663
  'css' => ['{{element}} .pagelayer-tooltip-icon' => 'margin-left:{{val}}px; margin-right:{{val}}px;'],
2664
  'req' => array(
2665
  'show_icon' => 'true',
@@ -2700,7 +2949,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
2700
  'innerHTML' => 'text',
2701
  'html' => '<div class="pagelayer-image-holder">
2702
  <a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}">
2703
- <img src="{{func_id}}" title="{{{id-title}}}" alt="{{{id-alt}}}" />
2704
  <div if="{{overlay}}" class="pagelayer-image-overlay {{content_position}}">
2705
  <div class="pagelayer-image-overlay-content">
2706
  <i if="{{icon}}" class="pagelayer-image-overlay-icon fa fa-{{icon}}"></i>
@@ -2756,6 +3005,8 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
2756
  'type' => 'slider',
2757
  'min' => 0,
2758
  'max' => 100,
 
 
2759
  ),
2760
  'img_filter' => array(
2761
  'type' => 'filter',
@@ -2766,6 +3017,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
2766
  'img_shadow' => array(
2767
  'type' => 'shadow',
2768
  'label' => __pl('shadow'),
 
2769
  'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
2770
  ),
2771
  ),
@@ -2854,6 +3106,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
2854
  'step' => 1,
2855
  'max' => 500,
2856
  'default' => 50,
 
2857
  'css' => ['{{element}} .pagelayer-image-overlay-icon' => 'font-size: {{val}}px'],
2858
  'req' => array(
2859
  'overlay' => 'true'
@@ -2881,6 +3134,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
2881
  'label' => __pl('Overlay Content Position'),
2882
  'type' => 'radio',
2883
  'default' => 'center',
 
2884
  'css' => ['{{element}} .pagelayer-image-overlay' => 'display:-webkit-flex;display:flex;-webkit-align-items:{{val}}; align-items:{{val}};'],
2885
  'list' => array(
2886
  'flex-start' => __pl('Top'),
@@ -2894,6 +3148,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
2894
  'show_always' => array(
2895
  'label' => __pl('image_show_always'),
2896
  'type' => 'checkbox',
 
2897
  'css' => ['{{element}} .pagelayer-image-overlay' => 'opacity:1;'],
2898
  'req' => array(
2899
  'overlay' => 'true'
@@ -2913,7 +3168,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
2913
  'name' => __pl('Image Slider'),
2914
  'group' => 'image',
2915
  'html' => '<div class="pagelayer-image-slider-div">
2916
- <ul class="pagelayer-image-slider-ul">{{ul}}</ul>
2917
  </div>',
2918
  'func' => 'pagelayer_sc_image_slider',
2919
  'settings' => [
@@ -2943,6 +3198,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
2943
  'type' => 'dimension',
2944
  'label' => __pl('image_custom_size_label'),
2945
  'default' => '200,200',
 
2946
  'css' => ['{{element}} .pagelayer-image-slider-ul' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
2947
  'req' => array(
2948
  'size' => 'custom'
@@ -2975,9 +3231,33 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
2975
  ),
2976
  ),
2977
  'slider_options' => [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2978
  'controls' => array(
2979
  'type' => 'select',
2980
  'label' => __pl('slider_controls'),
 
2981
  'list' => array(
2982
  '' => __pl('Arrows and Pager'),
2983
  'arrows' => __pl('Arrows'),
@@ -2985,31 +3265,19 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
2985
  'none' => __pl('none'),
2986
  )
2987
  ),
2988
- 'slider_animation' => [
2989
- 'type' => 'select',
2990
- 'label' => __pl('image_slider_animation'),
2991
- 'desc' => __pl('image_slider_animation_desc'),
2992
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-transition="{{slider_animation}}"'],
2993
- 'list' => array(
2994
- '' => __pl('Fade'),
2995
- 'horizontal' => __pl('horizontal'),
2996
- 'vertical' => __pl('vertical'),
2997
- 'kenburns' => __pl('kenburns'),
2998
- )
2999
- ],
3000
  'pause' => array(
3001
  'type' => 'slider',
3002
  'label' => __pl('image_slider_slideshow_speed_label'),
3003
  'default' => 5000,
3004
  'min' => 200,
3005
- 'max' => 10000,
3006
  'step' => 100,
3007
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-pause="{{pause}}"'],
3008
  ),
3009
  'speed' => array(
3010
  'type' => 'slider',
3011
  'label' => __pl('slider_animation_speed'),
3012
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-speed="{{speed}}"'],
3013
  'default' => 800,
3014
  'min' => 200,
3015
  'max' => 10000,
@@ -3020,39 +3288,36 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
3020
  'label' => __pl('image_slider_loop'),
3021
  'desc' => __pl('image_slider_loop_desc'),
3022
  'default' => 'true',
3023
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-loop="{{loop}}"'],
3024
  ),
3025
  'adaptive_height' => array(
3026
  'type' => 'checkbox',
3027
  'label' => __pl('slider_height'),
3028
  'desc' => __pl('slider_height_desc'),
3029
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-adaptiveHeight="{{adaptive_height}}"'],
3030
  ),
3031
  'auto' => array(
3032
  'type' => 'checkbox',
3033
  'label' => __pl('image_slider_auto'),
3034
  'desc' => __pl('image_slider_auto_desc'),
3035
  'default' => 'true',
3036
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-auto="{{auto}}"'],
3037
  ),
3038
  'auto_hover' => [
3039
  'type' => 'checkbox',
3040
  'label' => __pl('auto_hover'),
3041
  'desc' => __pl('auto_hover_desc'),
3042
  'default' => 'true',
3043
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-autoHover="{{auto_hover}}"'],
3044
  ],
3045
- 'auto_direction' => [
3046
- 'type' => 'select',
3047
- 'label' => __pl('slider_auto_direction'),
3048
- 'desc' => __pl('slider_auto_direction_desc'),
3049
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-autoDirection="{{auto_direction}}"'],
3050
- 'list' =>[
3051
- '' => __pl('Next'),
3052
- 'prev' => __pl('Previous'),
3053
- ]
3054
- ],
3055
- ]
3056
  )
3057
  );
3058
 
@@ -3075,6 +3340,8 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
3075
  'type' => 'select',
3076
  'label' => __pl('columns_count'),
3077
  'default' => 3,
 
 
3078
  'list' => array(
3079
  1 => __pl('1'),
3080
  2 => __pl('2'),
@@ -3088,6 +3355,26 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
3088
  10 => __pl('10')
3089
  )
3090
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3091
  'size' => array(
3092
  'type' => 'select',
3093
  'label' => __pl('obj_image_size_label'),
@@ -3106,6 +3393,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
3106
  'req' => array(
3107
  'size' => 'custom'
3108
  ),
 
3109
  'css' => ['{{element}} .pagelayer-gallery-item img' => 'height: {{val[0]}}px; width: {{val[1]}}px;'],
3110
  ),
3111
  'link_to' => array(
@@ -3203,11 +3491,13 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3203
  'full_width' => array(
3204
  'type' => 'checkbox',
3205
  'label' => __pl('stretch'),
 
3206
  'css' => ['{{element}} a' => 'width: 100%; text-align: center;']
3207
  ),
3208
  'btn_typo' => array(
3209
  'type' => 'typography',
3210
  'label' => __pl('quote_content_typo'),
 
3211
  'css' => [
3212
  '{{element}} .pagelayer-btn-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
3213
  '{{element}} .pagelayer-btn-holder' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
@@ -3217,6 +3507,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3217
  'type' => 'radio',
3218
  'label' => __pl('obj_align_label'),
3219
  'default' => 'left',
 
3220
  'css' => 'text-align: {{val}}',
3221
  'list' => array(
3222
  'left' => __pl('left'),
@@ -3250,6 +3541,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3250
  'step' => 1,
3251
  'max' => 100,
3252
  'default' => 5,
 
3253
  'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
3254
  'req' => array(
3255
  '!icon' => 'none'
@@ -3296,6 +3588,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3296
  'step' => 1,
3297
  'max' => 100,
3298
  'default' => 5,
 
3299
  'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: calc({{val}}px / 2) {{val}}px;'],
3300
  'req' => array(
3301
  'size' => 'pagelayer-btn-custom'
@@ -3418,6 +3711,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3418
  'btn_border_width' => array(
3419
  'type' => 'padding',
3420
  'label' => __pl('border_width'),
 
3421
  'css' => ['{{element}} .pagelayer-btn-holder' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3422
  'req' => [
3423
  '!btn_border_type' => ''
@@ -3429,6 +3723,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3429
  'btn_border_radius' => array(
3430
  'type' => 'padding',
3431
  'label' => __pl('border_radius'),
 
3432
  'css' => ['{{element}} .pagelayer-btn-holder' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3433
  'req' => array(
3434
  '!btn_border_type' => ''
@@ -3468,6 +3763,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3468
  'btn_border_width_hover' => array(
3469
  'type' => 'padding',
3470
  'label' => __pl('border_width_hover'),
 
3471
  'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3472
  'req' => [
3473
  '!btn_border_type_hover' => ''
@@ -3479,6 +3775,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3479
  'btn_border_radius_hover' => array(
3480
  'type' => 'padding',
3481
  'label' => __pl('border_radius_hover'),
 
3482
  'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3483
  'req' => array(
3484
  '!btn_border_type_hover' => ''
@@ -3568,6 +3865,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3568
  'step' => 1,
3569
  'max' => 500,
3570
  'default' => 10,
 
3571
  'req' => array(
3572
  '!bg_shape' => ''
3573
  )
@@ -3577,6 +3875,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3577
  'label' => __pl('obj_align_label'),
3578
  'default' => 'center',
3579
  'css' => 'text-align: {{val}}',
 
3580
  'list' => array(
3581
  'left' => __pl('left'),
3582
  'center' => __pl('center'),
@@ -3587,6 +3886,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3587
  'type' => 'radio',
3588
  'label' => __pl('layout'),
3589
  'default' => 'pagelayer-btn-grp-horizontal',
 
3590
  'css' => ['{{element}} > div' => 'display: inline-block;'],
3591
  'list' => array(
3592
  'pagelayer-btn-grp-horizontal' => __pl('horizontal'),
@@ -3601,6 +3901,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3601
  'step' => 1,
3602
  'max' => 100,
3603
  'default' => 3,
 
3604
  )
3605
  ],
3606
  'icon_style' => [
@@ -3613,6 +3914,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3613
  'step' => 1,
3614
  'max' => 500,
3615
  'default' => 40,
 
3616
  ),
3617
  'color_scheme' => array(
3618
  'type' => 'select',
@@ -3682,6 +3984,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3682
  'icon_border_width' => array(
3683
  'type' => 'padding',
3684
  'label' => __pl('border_width'),
 
3685
  'css' => ['{{element}} .pagelayer-icon-holder' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3686
  'req' => [
3687
  '!icon_border_type' => ''
@@ -3691,6 +3994,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3691
  'icon_border_radius' => array(
3692
  'type' => 'padding',
3693
  'label' => __pl('border_radius'),
 
3694
  'css' => ['{{element}} .pagelayer-icon-holder' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3695
  'req' => array(
3696
  '!icon_border_type' => ''
@@ -3705,6 +4009,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3705
  'step' => 100,
3706
  'max' => 5000,
3707
  'default' => 400,
 
3708
  'css' => ['{{element}} .pagelayer-icon-holder' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',
3709
  '{{element}} .pagelayer-social-fa' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
3710
  'show' => array(
@@ -3796,6 +4101,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3796
  'icon_border_width_hover' => array(
3797
  'type' => 'padding',
3798
  'label' => __pl('border_width_hover'),
 
3799
  'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3800
  'req' => [
3801
  '!icon_border_type_hover' => ''
@@ -3805,6 +4111,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3805
  'icon_border_radius_hover' => array(
3806
  'type' => 'padding',
3807
  'label' => __pl('border_radius_hover'),
 
3808
  'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3809
  'req' => array(
3810
  '!icon_border_type_hover' => ''
@@ -3867,7 +4174,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
3867
  ),
3868
  'video_ratio' => array(
3869
  'type' => 'select',
3870
- 'label' => __pl('video aspect ratio'),
3871
  'default' => 'aspect-8-5',
3872
  'list' => array(
3873
  'aspect-1-1' => __pl('1:1'),
@@ -3925,7 +4232,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
3925
  ),
3926
  'tooltip_text_shadow' => array(
3927
  'type' => 'shadow',
3928
- 'label' => __pl('tooltip_text_shadow'),
3929
  'css' => ['{{element}} .pagelayer-video-overlay i' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
3930
  'req' => array(
3931
  'overlay' => 'true'
@@ -3951,7 +4258,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
3951
  'innerHTML' => 'service_text',
3952
  'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
3953
  <div if="{{service_image}}" class="pagelayer-service-image">
3954
- <img class="pagelayer-animation-{{anim_hover}}" src="{{func_image}}">
3955
  </div>
3956
  <div class="pagelayer-service-details">
3957
  <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
@@ -4048,6 +4355,115 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4048
  'label' => __pl('service_image_spacing'),
4049
  'css' => ['{{element}} .pagelayer-service-image img' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
4050
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4051
  ],
4052
  'service_heading_style' => [
4053
  'service_heading' => array(
@@ -4062,19 +4478,57 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4062
  'min' => '0',
4063
  'max' => '200',
4064
  'default' => '10',
 
4065
  'css' => ['{{element}} .pagelayer-service-heading' => 'margin-bottom: {{val}}px !important;'],
4066
  ),
 
 
 
 
 
 
 
 
 
4067
  'service_heading_color' => array(
4068
  'type' => 'color',
4069
  'label' => __pl('service_heading_color'),
4070
  'default' => '#3e8ef7',
4071
  'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
 
4072
  ),
4073
  'service_heading_typo' => array(
4074
  'type' => 'typography',
4075
  'label' => __pl('service_heading_typo'),
4076
  'default' => ',28,,600,,,,,,,',
 
4077
  'css' => ['{{element}} .pagelayer-service-heading' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4078
  ),
4079
  ],
4080
  //service content style
@@ -4083,6 +4537,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4083
  'type' => 'select',
4084
  'label' => __pl('service_box_text_alignment'),
4085
  'default' => 'center',
 
4086
  'list' => array(
4087
  'left' => __pl('left'),
4088
  'center' => __pl('center'),
@@ -4162,6 +4617,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4162
  'min' => '0',
4163
  'max' => '200',
4164
  'default' => '10',
 
4165
  'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
4166
  'req' => [
4167
  'service_button' => 'true',
@@ -4172,6 +4628,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4172
  'label' => __pl('iconbox_btn_text_size'),
4173
  'min' => '0',
4174
  'max' => '50',
 
4175
  'css' => ['{{element}} .pagelayer-service-btn' => 'font-size:{{val}}px;'],
4176
  'req' => [
4177
  'service_button' => 'true',
@@ -4323,6 +4780,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4323
  'min' => '0',
4324
  'max' => '200',
4325
  'default' => '15',
 
4326
  'css' => ['{{element}} .pagelayer-service-icon i' => 'padding: calc(0.5em + {{val}}px);'],
4327
  'req' => ['!service_icon_view' => 'default'],
4328
  ),
@@ -4361,6 +4819,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4361
  'min' => '0',
4362
  'max' => '300',
4363
  'default' => '75',
 
4364
  'css' => ['{{element}} .pagelayer-service-icon' => 'font-size:{{val}}px;'],
4365
  'show' => ['service_icon_state' => 'normal'],
4366
  ),
@@ -4370,6 +4829,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4370
  'min' => '0',
4371
  'max' => '360',
4372
  'default' => '0',
 
4373
  'css' => ['{{element}} .pagelayer-service-icon i' => 'transform: rotate({{val}}deg);'],
4374
  'show' => ['service_icon_state' => 'normal'],
4375
  ),
@@ -4438,6 +4898,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4438
  'label' => __pl('service_icon_size_hover'),
4439
  'min' => '0',
4440
  'max' => '300',
 
4441
  'css' => ['{{element}}:hover .pagelayer-service-icon' => 'font-size:{{val}}px;'],
4442
  'show' => ['service_icon_state' => 'hover'],
4443
  ),
@@ -4446,6 +4907,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4446
  'label' => __pl('service_rotate_hover'),
4447
  'min' => '0',
4448
  'max' => '360',
 
4449
  'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'transform: rotate({{val}}deg);'],
4450
  'show' => ['service_icon_state' => 'hover'],
4451
  ),
@@ -4487,6 +4949,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4487
  'service_icon_border_width' => array(
4488
  'type' => 'padding',
4489
  'label' => __pl('icon_border_width'),
 
4490
  'css' => ['{{element}} .pagelayer-service-icon i' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
4491
  'req' => [
4492
  '!service_icon_border_type' => '',
@@ -4496,6 +4959,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4496
  'service_icon_border_radius' => array(
4497
  'type' => 'padding',
4498
  'label' => __pl('border_radius'),
 
4499
  'css' => ['{{element}} .pagelayer-service-icon i ' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4500
  'req' => [
4501
  '!service_icon_border_type' => '',
@@ -4529,6 +4993,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4529
  'service_icon_border_width_hover' => array(
4530
  'type' => 'padding',
4531
  'label' => __pl('icon_border_width_hover'),
 
4532
  'css' => ['{{element}}:hover .pagelayer-service-icon i' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
4533
  'req' => [
4534
  '!service_icon_border_type_hover' => '',
@@ -4538,6 +5003,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4538
  'service_icon_border_radius_hover' => array(
4539
  'type' => 'padding',
4540
  'label' => __pl('border_radius'),
 
4541
  'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4542
  'req' => [
4543
  '!service_icon_border_type_hover' => '',
@@ -4558,27 +5024,66 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4558
  'min' => '0',
4559
  'max' => '200',
4560
  'default' => '10',
 
4561
  'css' => ['{{element}} .pagelayer-service-heading' => 'margin-bottom: {{val}}px;'],
4562
  ),
 
 
 
 
 
 
 
 
 
4563
  'service_heading_color' => array(
4564
  'type' => 'color',
4565
  'label' => __pl('service_heading_color'),
4566
  'default' => '#3e8ef7',
4567
  'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
 
4568
  ),
4569
  'service_heading_typo' => array(
4570
  'type' => 'typography',
4571
  'label' => __pl('service_heading_typo'),
4572
  'default' => ',28,,600,,,,,,,',
 
4573
  'css' => ['{{element}} .pagelayer-service-heading' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4574
  ),
4575
  ],
4576
  //service content style
4577
  'service_content_style' =>[
4578
  'service_text_alignment' => array(
4579
  'type' => 'select',
4580
- 'label' => __pl('iconbox_box_text_alignment'),
4581
  'default' => 'center',
 
4582
  'list' => array(
4583
  'left' => __pl('left'),
4584
  'center' => __pl('center'),
@@ -4658,6 +5163,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4658
  'min' => '0',
4659
  'max' => '200',
4660
  'default' => '10',
 
4661
  'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
4662
  'req' => [
4663
  'service_button' => 'true',
@@ -4668,6 +5174,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4668
  'label' => __pl('iconbox_btn_text_size'),
4669
  'min' => '0',
4670
  'max' => '50',
 
4671
  'css' => ['{{element}} .pagelayer-service-btn' => 'font-size:{{val}}px;'],
4672
  'req' => [
4673
  'service_button' => 'true',
@@ -4779,6 +5286,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4779
  'min' => 0,
4780
  'max' => 70,
4781
  'step' => 1,
 
4782
  'css' => ['{{element}}' => 'width:100%; display: -webkit-flex;
4783
  display: flex;', '{{element}} .pagelayer-tabs-holder' => '-webkit-flex-basis: {{val}}%; flex-basis:{{val}}%', '{{element}} .pagelayer-tabcontainer' => '-webkit-flex-basis: calc(100% - {{val}}%); flex-basis:calc(100% - {{val}}%)', '{{element}} .pagelayer-tabs-holder .pagelayer-tablinks' => 'width: 100%;'],
4784
  'req' => array(
@@ -4832,6 +5340,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4832
  'type' => 'padding',
4833
  'label' => __pl('Border Width'),
4834
  'default' => '1,1,0,1',
 
4835
  'req' => [
4836
  '!tabs_border_type' => ''
4837
  ],
@@ -4841,6 +5350,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4841
  'type' => 'padding',
4842
  'label' => __pl('Border Radius'),
4843
  'default' => '1,1,0,1',
 
4844
  'req' => [
4845
  '!tabs_border_type' => ''
4846
  ],
@@ -4852,6 +5362,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4852
  'type' => 'radio',
4853
  'label' => __pl('alignment'),
4854
  'default' => 'left',
 
4855
  'list' => array(
4856
  'left' => __pl('Left'),
4857
  'center' => __pl('Center'),
@@ -4886,6 +5397,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4886
  'tab_title_typo' => array(
4887
  'type' => 'typography',
4888
  'label' => __pl('tab_title_typo'),
 
4889
  'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4890
  ),
4891
  'tabs_icon_align' => array(
@@ -4905,6 +5417,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4905
  'max' => 50,
4906
  'min' => 0,
4907
  'steps' => 1,
 
4908
  'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks .fa'=> 'padding:0px {{val}}px;padding-{{tabs_icon_align}}:0px;'],
4909
  ),
4910
  ],
@@ -4912,6 +5425,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4912
  'tabs_content_typo' => array(
4913
  'type' => 'typography',
4914
  'label' => __pl('tab_content_typo'),
 
4915
  'css' => ['{{element}} .pagelayer-tabcontainer' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4916
  ),
4917
  'tabs_content_color' => array(
@@ -4933,12 +5447,14 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4933
  'min' => 0,
4934
  'max' => 50,
4935
  'step' => 1,
 
4936
  'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer [pagelayer-id]' => 'padding: {{val}}px;'],
4937
  ),
4938
  'tabs_content_border_width' => array(
4939
  'type' => 'padding',
4940
  'label' => __pl('border_width'),
4941
  'default' => '1,1,1,1',
 
4942
  'req' => [
4943
  '!tabs_border_type' => ''
4944
  ],
@@ -4947,6 +5463,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
4947
  'tabs_content_border_radius' => array(
4948
  'type' => 'padding',
4949
  'label' => __pl('border_radius'),
 
4950
  'req' => [
4951
  '!tabs_border_type' => ''
4952
  ],
@@ -5028,6 +5545,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
5028
  'min' => 0,
5029
  'max' => 50,
5030
  'step' => 1,
 
5031
  'css' => ['{{element}} .pagelayer-accordion_item' => 'margin-bottom:{{val}}px;'],
5032
  ),
5033
  ),
@@ -5046,6 +5564,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
5046
  'type' => 'radio',
5047
  'label' => __pl('Alignment'),
5048
  'default' => 'left',
 
5049
  'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
5050
  'list' => array(
5051
  'left' => __pl('left'),
@@ -5060,6 +5579,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
5060
  'min' => 0,
5061
  'max' => 50,
5062
  'step' => 1,
 
5063
  'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
5064
  ),
5065
  ],
@@ -5095,6 +5615,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
5095
  'min' => 0,
5096
  'max' => 50,
5097
  'step' => 1,
 
5098
  'css' => ['{{element}} .pagelayer-accordion-tabs' => 'padding: {{val}}px;'],
5099
  ),
5100
  'accordion_title_typo' => array(
@@ -5113,6 +5634,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
5113
  'acc_content_typo' => array(
5114
  'type' => 'typography',
5115
  'label' => __pl('accordion_content_typo'),
 
5116
  'css' => ['{{element}} .pagelayer-accordion-panel' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5117
  ),
5118
  'acc_border_type' => array(
@@ -5141,6 +5663,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
5141
  'type' => 'padding',
5142
  'label' => __pl('border_width'),
5143
  'default' => '1,1,1,1',
 
5144
  'req' => [
5145
  '!acc_border_type' => ''
5146
  ],
@@ -5216,6 +5739,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
5216
  'min' => 0,
5217
  'max' => 50,
5218
  'step' => 1,
 
5219
  'css' => ['{{element}} .pagelayer-accordion_item' => 'margin-bottom:{{val}}px;'],
5220
  ),
5221
 
@@ -5235,6 +5759,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
5235
  'type' => 'radio',
5236
  'label' => __pl('Alignment'),
5237
  'default' => 'left',
 
5238
  'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
5239
  'list' => array(
5240
  'left' => __pl('left'),
@@ -5249,6 +5774,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
5249
  'min' => 0,
5250
  'max' => 50,
5251
  'step' => 1,
 
5252
  'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
5253
  ),
5254
  ],
@@ -5284,11 +5810,13 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
5284
  'min' => 0,
5285
  'max' => 50,
5286
  'step' => 1,
 
5287
  'css' => ['{{element}} .pagelayer-accordion-tabs' => 'padding: {{val}}px;'],
5288
  ),
5289
  'collapse_title_typo' => array(
5290
  'type' => 'typography',
5291
  'label' => __pl('collapsse_title_typo'),
 
5292
  'css' => ['{{element}} .pagelayer-accordion-tabs' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5293
  ),
5294
  ],
@@ -5317,6 +5845,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
5317
  'type' => 'padding',
5318
  'label' => __pl('border_width'),
5319
  'default' => '1,1,1,1',
 
5320
  'req' => [
5321
  '!acc_border_type' => ''
5322
  ],
@@ -5351,6 +5880,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
5351
  'type' => 'slider',
5352
  'label' => __pl('Space Height'),
5353
  'screen' => 1,
 
5354
  'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}}px;'],
5355
  'default' => '10',
5356
  'min' => 0,
@@ -5447,7 +5977,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5447
  'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
5448
  <div class="pagelayer-testimonial-author-details">
5449
  <div class="pagelayer-{{image_position}}">
5450
- <img if="{{avatar}}" class="pagelayer-testimonial-image pagelayer-testimonial-{{img_shape}}" src="{{func_image}}" />
5451
  </div>
5452
  <div class="pagelayer-{{image_position}}">
5453
  <div if="{{cite}}" class="pagelayer-testimonial-cite">
@@ -5475,6 +6005,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5475
  'label' => __pl('testimonial_alignment_label'),
5476
  'default' => 'center',
5477
  'css' =>'text-align:{{val}};',
 
5478
  'list' => array(
5479
  'left' => __pl('left'),
5480
  'center' => __pl('center'),
@@ -5487,6 +6018,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5487
  'min' => '0',
5488
  'max' => '100',
5489
  'default' => '20',
 
5490
  'css' => ['{{element}} .pagelayer-testimonial-author-details' => 'margin-top:{{val}}px;'],
5491
  ),
5492
  ),
@@ -5513,7 +6045,8 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5513
  'min' => 0,
5514
  'max' => 500,
5515
  'default' => 100,
5516
- 'css' => ['{{element}} .pagelayer-testimonial-image' => 'width:{{val}}px; height:{{val}}px; '],
 
5517
  ),
5518
  'img_shape' => array(
5519
  'type' => 'select',
@@ -5547,12 +6080,14 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5547
  'testimonial_border_width' => array(
5548
  'type' => 'padding',
5549
  'label' => __pl('border_width'),
 
5550
  'css' => ['{{element}} .pagelayer-testimonial-image' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
5551
  'req' => ['!testimonial_border_type' => '']
5552
  ),
5553
  'testimonial_border_radius' => array(
5554
  'type' => 'padding',
5555
  'label' => __pl('border_radius'),
 
5556
  'css' => ['{{element}} .pagelayer-testimonial-image' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5557
  'req' => ['!testimonial_border_type' => '']
5558
  ),
@@ -5575,6 +6110,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5575
  'type' => 'typography',
5576
  'label' => __pl('cite_style'),
5577
  'default' => ',20,,100,,none,,,,,',
 
5578
  'css' => ['{{element}} .pagelayer-testimonial-author' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5579
  ),
5580
  'cite_url' => array(
@@ -5586,6 +6122,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5586
  'cite_spacing' => array(
5587
  'type' => 'padding',
5588
  'label' => __pl('cite_spacing'),
 
5589
  'css' => ['{{element}} .pagelayer-testimonial-cite' => 'margin-top: {{val[0]}}px; margin-right: {{val[1]}}px; margin-bottom: {{val[2]}}px; margin-left: {{val[3]}}px'],
5590
  ),
5591
  ],
@@ -5607,6 +6144,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5607
  'type' => 'typography',
5608
  'label' => __pl('cite_designation_style'),
5609
  'default' => ',16,,100,,,,,,,',
 
5610
  'css' => ['{{element}} .pagelayer-testimonial-author-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5611
  ),
5612
  ],
@@ -5660,6 +6198,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
5660
  'min' => 0,
5661
  'max' => 100,
5662
  'step' => 1,
 
5663
  'css' => ['{{element}} .pagelayer-progress-bar' => 'height:{{val}}px;',
5664
  '{{element}} .pagelayer-progress-percent' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
5665
  '{{element}} .pagelayer-progress-text' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
@@ -5684,6 +6223,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
5684
  'type' => 'typography',
5685
  'label' => __pl('title_size'),
5686
  'default' => ',25,,100,,,,,,,',
 
5687
  'css' => ['{{element}} .pagelayer-progress-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5688
  ),
5689
  ],
@@ -5704,6 +6244,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
5704
  'label' => __pl('percentage'),
5705
  'min' => 0,
5706
  'max' => 100,
 
5707
  'css' => ['{{element}} .pagelayer-progress-container > .pagelayer-progress-bar:after' => 'width:{{val}}%;',],
5708
  'addAttr' => ['{{element}} .pagelayer-progress-bar' => 'pagelayer-progress-width="{{progress_percentage}}"'],
5709
  'default' => 75,
@@ -5717,6 +6258,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
5717
  'hide_percentage' => array(
5718
  'type' => 'checkbox',
5719
  'label' => __pl('hide_percentage'),
 
5720
  'default' => '',
5721
  'css' => ['{{element}} .pagelayer-progress-percent' => 'display: none;']
5722
  ),
@@ -5813,6 +6355,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
5813
  'min' => 0,
5814
  'max' => 500,
5815
  'default' => 30,
 
5816
  'css' => ['{{element}} .pagelayer-alert-icon' => 'font-size:{{val}}px;'],
5817
  ),
5818
  'alert_icon_spacing' => array(
@@ -5821,6 +6364,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
5821
  'min' => 0,
5822
  'max' => 200,
5823
  'default' => 5,
 
5824
  'css' => ['{{element}} .pagelayer-alert-icon' => 'margin-right:{{val}}px;'],
5825
  ),
5826
  ],
@@ -5841,6 +6385,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
5841
  'type' => 'typography',
5842
  'label' => __pl('title_typo'),
5843
  'default' => ',22,,600,,,,,,,',
 
5844
  'css' => ['{{element}} .pagelayer-alert-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5845
  ),
5846
  ],
@@ -5863,6 +6408,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
5863
  'type' => 'typography',
5864
  'label' => __pl('title_typo'),
5865
  'default' => ',13,,,,,,,,,',
 
5866
  'css' => ['{{element}} .pagelayer-alert-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5867
  ),
5868
  ],
@@ -5919,6 +6465,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
5919
  'type' => 'radio',
5920
  'label' => __pl('alignment'),
5921
  'css' => ['{{element}}' => 'text-align: {{val}}'],
 
5922
  'list' => array(
5923
  'left' => 'Left',
5924
  'center' => 'Center',
@@ -5942,6 +6489,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
5942
  'type' => 'typography',
5943
  'label' => __pl('counter_number_size'),
5944
  'default' => ',25,,600,,,solid,,,,',
 
5945
  'css' => ['{{element}} .pagelayer-stars-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5946
  ),
5947
  ],
@@ -5964,6 +6512,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
5964
  'min' => 0,
5965
  'max' => 100,
5966
  'default' => 30,
 
5967
  'css' => ['{{element}} .pagelayer-stars-container' => 'font-size:{{val}}px;'],
5968
  ),
5969
  'stars_spacing' => array(
@@ -5972,6 +6521,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
5972
  'min' => 0,
5973
  'max' => 100,
5974
  'default' => 10,
 
5975
  'css' => ['{{element}} .pagelayer-stars-icon' => 'margin-left:{{val}}px;'],
5976
  ),
5977
  ],
@@ -6016,6 +6566,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
6016
  'min' => 1,
6017
  'max' => 30,
6018
  'default' => 3,
 
6019
  'css' => ['{{element}} .pagelayer-divider-seperator' =>'border-top-width: {{val}}px;'],
6020
  ),
6021
  'divider_widht' => array(
@@ -6024,6 +6575,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
6024
  'min' => 1,
6025
  'max' => 100,
6026
  'default' => 50,
 
6027
  'css' => ['{{element}} .pagelayer-divider-seperator' =>'width: {{val}}%;'],
6028
  ),
6029
  'divider_gap' => array(
@@ -6032,6 +6584,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
6032
  'min' => 1,
6033
  'max' => 100,
6034
  'default' => 10,
 
6035
  'css' => ['{{element}} .pagelayer-divider-holder' =>'padding-top: {{val}}px; padding-bottom: {{val}}px;'],
6036
  ),
6037
  'divider_alignment' => array(
@@ -6089,6 +6642,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
6089
  'label' => __pl('counter_align'),
6090
  'default' => 'center',
6091
  'css' => 'text-align: {{val}};',
 
6092
  'list' => [
6093
  'left' => __pl('left'),
6094
  'center' => __pl('center'),
@@ -6135,6 +6689,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
6135
  'type' => 'typography',
6136
  'label' => __pl('counter_number_size'),
6137
  'default' => ',60,,600,,,solid,,,,',
 
6138
  'css' => ['{{element}} .pagelayer-counter-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6139
  ),
6140
  ],
@@ -6155,10 +6710,11 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
6155
  'type' => 'typography',
6156
  'label' => __pl('counter_text_style'),
6157
  'default' => ',25,,400,,,solid,,,,',
 
6158
  'css' => ['{{element}} .pagelayer-counter-info' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6159
  ),
6160
  ],
6161
- 'styles' => [
6162
  'counter_label_style' => __pl('counter_label_style'),
6163
  'counter_style' => __pl('counter_style'),
6164
  ],
102
  ////////////////////////
103
  global $pagelayer;
104
 
105
+ $pagelayer->anim_in_options = array(
106
+ '' => __pl('none'),
107
+ __pl('fading') => [
108
+ 'fadeIn' => __pl('fadein'),
109
+ 'fadeInDown' => __pl('fadeindown'),
110
+ 'fadeInUp' => __pl('fadeinup'),
111
+ 'fadeInLeft' => __pl('fadeinleft'),
112
+ 'fadeInRight' => __pl('fadeinright'),
113
+ ],
114
+ __pl('zooming') => [
115
+ 'zoomIn' => __pl('zoomin'),
116
+ 'zoomInDown' => __pl('zoomindown'),
117
+ 'zoomInUp' => __pl('zoominup'),
118
+ 'zoomInLeft' => __pl('zoominleft'),
119
+ 'zoomInRight' => __pl('zoominright'),
120
+ ],
121
+ __pl('bounceing') => [
122
+ 'bounceIn' => __pl('bouncein'),
123
+ 'bounceInDown' => __pl('bounceindown'),
124
+ 'bounceInUp' => __pl('bounceinup'),
125
+ 'bounceInLeft' => __pl('bounceinleft'),
126
+ 'bounceInRight' => __pl('bounceinright'),
127
+ ],
128
+ __pl('sliding') => [
129
+ 'slideInDown' => __pl('slideindown'),
130
+ 'slideInUp' => __pl('slideinup'),
131
+ 'slideInLeft' => __pl('slideinleft'),
132
+ 'slideInRight' => __pl('slideinright'),
133
+ ],
134
+ __pl('rotating') => [
135
+ 'rotateIn' => __pl('rotatein'),
136
+ 'rotateInDown' => __pl('rotateindown'),
137
+ 'rotateInUp' => __pl('rotateinup'),
138
+ 'rotateInLeft' => __pl('rotateinleft'),
139
+ 'rotateInRight' => __pl('rotateinright'),
140
+ ],
141
+ __pl('effects') => [
142
+ 'lightSpeedIn' => __pl('lightspeedin'),
143
+ 'bounce' => __pl('bounce'),
144
+ 'pulse' => __pl('pulse'),
145
+ 'rubberBand' => __pl('rubberband'),
146
+ 'flash' => __pl('flash'),
147
+ 'swing' => __pl('swing'),
148
+ 'jello' => __pl('jello'),
149
+ 'tada' => __pl('tada'),
150
+ 'wobble' => __pl('wobble'),
151
+ 'rollin' => __pl('rollin'),
152
+ 'headShake' => __pl('headshake'),
153
+ 'shake' => __pl('shake'),
154
+ ],
155
+ );
156
+
157
+ $pagelayer->anim_out_options = array(
158
+ '' => __pl('none'),
159
+ __pl('fading') => [
160
+ 'fadeOut' => __pl('fadeout'),
161
+ 'fadeOutDown' => __pl('fadeoutdown'),
162
+ 'fadeOutUp' => __pl('fadeoutup'),
163
+ 'fadeOutLeft' => __pl('fadeoutleft'),
164
+ 'fadeOutRight' => __pl('fadeoutright'),
165
+ ],
166
+ __pl('zooming') => [
167
+ 'zoomOut' => __pl('zoomout'),
168
+ 'zoomOutDown' => __pl('zoomoutdown'),
169
+ 'zoomOutUp' => __pl('zoomoutup'),
170
+ 'zoomOutLeft' => __pl('zoomoutleft'),
171
+ 'zoomOutRight' => __pl('zoomoutright'),
172
+ ],
173
+ __pl('bounceing') => [
174
+ 'bounceOut' => __pl('bounceout'),
175
+ 'bounceOutDown' => __pl('bounceoutdown'),
176
+ 'bounceOutUp' => __pl('bounceoutup'),
177
+ 'bounceOutLeft' => __pl('bounceoutleft'),
178
+ 'bounceOutRight' => __pl('bounceoutright'),
179
+ ],
180
+ __pl('sliding') => [
181
+ 'slideOutDown' => __pl('slideoutdown'),
182
+ 'slideOutUp' => __pl('slideoutup'),
183
+ 'slideOutLeft' => __pl('slideoutleft'),
184
+ 'slideOutRight' => __pl('slideoutright'),
185
+ ],
186
+ __pl('rotating') => [
187
+ 'rotateOut' => __pl('rotateout'),
188
+ 'rotateOutDown' => __pl('rotateoutdown'),
189
+ 'rotateOutUp' => __pl('rotateoutup'),
190
+ 'rotateOutLeft' => __pl('rotateoutleft'),
191
+ 'rotateOutRight' => __pl('rotateoutright'),
192
+ ],
193
+ __pl('effects') => [
194
+ 'lightSpeedIn' => __pl('lightspeedin'),
195
+ 'bounce' => __pl('bounce'),
196
+ 'pulse' => __pl('pulse'),
197
+ 'rubberBand' => __pl('rubberband'),
198
+ 'flash' => __pl('flash'),
199
+ 'swing' => __pl('swing'),
200
+ 'jello' => __pl('jello'),
201
+ 'tada' => __pl('tada'),
202
+ 'wobble' => __pl('wobble'),
203
+ 'rollin' => __pl('rollin'),
204
+ 'headShake' => __pl('headshake'),
205
+ 'shake' => __pl('shake'),
206
+ ],
207
+ );
208
+
209
+ $pagelayer->slider_arrow_styles = [
210
+ 'arrows_bg' => array(
211
+ 'type' => 'color',
212
+ 'label' => __pl('bg_color'),
213
+ 'default' => '#6a6969',
214
+ 'css' => [
215
+ '{{element}} .pagelayer-owl-prev' => 'background-color: {{val}} !important',
216
+ '{{element}} .pagelayer-owl-next' => 'background-color: {{val}} !important',
217
+ ]
218
+ ),
219
+ 'arraow_color' => array(
220
+ 'type' => 'color',
221
+ 'label' => __pl('color'),
222
+ 'default' => '#ffffff',
223
+ 'css' => [
224
+ '{{element}} .pagelayer-owl-prev' => 'color: {{val}} !important',
225
+ '{{element}} .pagelayer-owl-next' => 'color: {{val}} !important',
226
+ ]
227
+ ),
228
+ 'nav_size' => array(
229
+ 'type' => 'slider',
230
+ 'label' => __pl('arraow_size'),
231
+ 'min' => 0,
232
+ 'step' => 1,
233
+ 'max' => 200,
234
+ 'screen' => 1,
235
+ 'css' => [
236
+ '{{element}} .pagelayer-owl-prev span' => 'font-size: {{val}}px !important;',
237
+ '{{element}} .pagelayer-owl-next span' => 'font-size: {{val}}px !important;'
238
+ ]
239
+ ),
240
+ 'arraow_bg_size' => array(
241
+ 'type' => 'spinner',
242
+ 'label' => __pl('background_size'),
243
+ 'min' => 0,
244
+ 'step' => 1,
245
+ 'max' => 500,
246
+ 'default' => 20,
247
+ 'screen' => 1,
248
+ 'css' => [
249
+ '{{element}} .pagelayer-owl-prev' => 'width: {{val}}px; height: {{val}}px',
250
+ '{{element}} .pagelayer-owl-next' => 'width: {{val}}px; height: {{val}}px'
251
+ ]
252
+ ),
253
+ 'arraow_bg_shape' => array(
254
+ 'type' => 'spinner',
255
+ 'label' => __pl('background_shape'),
256
+ 'min' => 0,
257
+ 'step' => 1,
258
+ 'max' => 100,
259
+ 'default' => 20,
260
+ 'screen' => 1,
261
+ 'css' => [
262
+ '{{element}} .pagelayer-owl-prev' => 'border-radius: {{val}}% !important;',
263
+ '{{element}} .pagelayer-owl-next' => 'border-radius: {{val}}% !important;',
264
+ ]
265
+ ),
266
+ ];
267
+
268
+ $pagelayer->slider_pager_styles = [
269
+ 'pager_color' => array(
270
+ 'type' => 'color',
271
+ 'label' => __pl('color'),
272
+ 'css' => ['{{element}} .pagelayer-owl-dot span' => 'background-color: {{val}} !important']
273
+ ),
274
+ 'active_pager_color' => array(
275
+ 'type' => 'color',
276
+ 'label' => __pl('active_pager_color'),
277
+ 'css' => ['{{element}} .pagelayer-owl-dot.active span' => 'background-color: {{val}} !important']
278
+ ),
279
+ 'dot_size' => array(
280
+ 'type' => 'slider',
281
+ 'label' => __pl('dot_size'),
282
+ 'min' => 0,
283
+ 'step' => 1,
284
+ 'max' => 200,
285
+ 'screen' => 1,
286
+ 'css' => [
287
+ '{{element}} .pagelayer-owl-dot span' => 'width: {{val}}px !important; height: {{val}}px !important;'
288
+ ]
289
+ ),
290
+ ];
291
+
292
+ $pagelayer->slider_options = [
293
+ 'slide_items' => array(
294
+ 'type' => 'spinner',
295
+ 'label' => __pl('number_of_items'),
296
+ 'min' => 1,
297
+ 'step' => 1,
298
+ 'max' => 10,
299
+ 'default' => 1,
300
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-items="{{slide_items}}"'],
301
+ ),
302
+ 'slidein_anim' => array(
303
+ 'type' => 'select',
304
+ 'label' => __pl('animation_in'),
305
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-animate-in="{{slidein_anim}}"'],
306
+ 'list' => $pagelayer->anim_in_options,
307
+ 'req' => ['slide_items' => '1']
308
+ ),
309
+ 'slideout_anim' => array(
310
+ 'type' => 'select',
311
+ 'label' => __pl('animation_out'),
312
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-animate-out="{{slideout_anim}}"'],
313
+ 'list' => $pagelayer->anim_out_options,
314
+ 'req' => ['slide_items' => '1']
315
+ ),
316
+ 'slide_margin' => array(
317
+ 'type' => 'slider',
318
+ 'label' => __pl('space_between'),
319
+ 'min' => 0,
320
+ 'step' => 1,
321
+ 'max' => 100,
322
+ 'default' => 10,
323
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-margin="{{slide_margin}}"'],
324
+ 'req' => ['!slide_items' => '1']
325
+ ),
326
+ 'slide_loop' => array(
327
+ 'type' => 'checkbox',
328
+ 'label' => __pl('loop'),
329
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-loop="{{slide_loop}}"'],
330
+ ),
331
+ 'slide_controls' => array(
332
+ 'type' => 'select',
333
+ 'label' => __pl('slider_controls'),
334
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-controls="{{slide_controls}}"'],
335
+ 'list' => array(
336
+ '' => __pl('Arrows and Pager'),
337
+ 'arrows' => __pl('Arrows'),
338
+ 'pager' => __pl('Pager'),
339
+ 'none' => __pl('none'),
340
+ )
341
+ ),
342
+ 'slide_autoplay' => array(
343
+ 'type' => 'checkbox',
344
+ 'label' => __pl('autoplay'),
345
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay="{{slide_autoplay}}"'],
346
+ ),
347
+ 'slide_timeout' => array(
348
+ 'type' => 'spinner',
349
+ 'label' => __pl('autoplay_timeout'),
350
+ 'min' => 1000,
351
+ 'step' => 200,
352
+ 'max' => 10000,
353
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay-timeout="{{slide_timeout}}"'],
354
+ 'req' => ['slide_autoplay' => 'true']
355
+ ),
356
+ 'slide_hoverpause' => array(
357
+ 'type' => 'checkbox',
358
+ 'label' => __pl('autoplay_hover_pause'),
359
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay-hover-pause="{{slide_hoverpause}}"'],
360
+ 'req' => ['slide_autoplay' => 'true']
361
+ ),
362
+ ];
363
+
364
  $pagelayer->styles['ele_bg_styles'] = [
365
  'ele_bg_hover' => [
366
  'type' => 'radio',
412
  'ele_bg_img' => [
413
  'type' => 'image',
414
  'label' => __pl('Image'),
415
+ //'default' => '',
416
  'css' => 'background: url({{{ele_bg_img-url}}});',
417
  'show' => ['ele_bg_hover' => ''],
418
  'req' => ['ele_bg_type' => 'image']
740
  'label' => __pl('animation'),
741
  'default' => '',
742
  'addClass' => ['{{val}}',( !pagelayer_is_live() ? 'pagelayer-wow' : '' )],
743
+ 'list' => $pagelayer->anim_in_options
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
744
  ],
745
  'animation_speed' => [
746
  'type' => 'select',
819
  'func' => 'pagelayer_sc_row',
820
  'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
821
  <div if="{{parallax_img}}" class="pagelayer-parallax-window">
822
+ <img class="pagelayer-img" src="{{{parallax_img-url}}}">
823
  </div>
824
  <div if="{{row_shape_position}}" class="pagelayer-row-shape">
825
  <div class="pagelayer-row-svg">
1337
  'func' => 'pagelayer_sc_col',
1338
  'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
1339
  <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1340
+ <img class="pagelayer-img" src="{{{parallax_img-url}}}">
1341
  </div>
1342
  <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
1343
  <div class="pagelayer-col-holder"></div>',
1706
  'label' => __pl('obj_align_label'),
1707
  'type' => 'radio',
1708
  'addAttr' => 'align="{{align}}"',
1709
+ 'screen' => 1,
1710
  'css' => ['{{element}}' => 'text-align: {{val}}'],
1711
  'list' => array(
1712
  'left' => __pl('left'),
1725
  'heading_typo' => array(
1726
  'type' => 'typography',
1727
  'label' => __pl('typography'),
1728
+ 'screen' => 1,
1729
  'css' => ['{{element}} .pagelayer-heading-holder *' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
1730
  '{{element}} .pagelayer-heading-holder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1731
  ),
1801
  'quote_content_typo' => array(
1802
  'type' => 'typography',
1803
  'label' => __pl('quote_content_typo'),
1804
+ 'screen' => 1,
1805
  'css' => ['{{element}} .pagelayer-quote-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1806
  ),
1807
  ),
1860
  'step' => 1,
1861
  'max' => 100,
1862
  'default' => 0,
1863
+ 'screen' => 1,
1864
  'css' => ['{{element}} .pagelayer-quotation-overlay' => 'top: {{val}}%;'],
1865
  'req' => array(
1866
  'quote_style' => 'quotation',
1873
  'min' => 0,
1874
  'step' => 1,
1875
  'max' => 100,
1876
+ 'screen' => 1,
1877
  'css' => ['{{element}} .pagelayer-quotation-overlay' => 'left: {{val}}%;'],
1878
  'req' => array(
1879
  'quote_style' => 'quotation',
1887
  'step' => 1,
1888
  'max' => 500,
1889
  'default' => 10,
1890
+ 'screen' => 1,
1891
  'css' => ['{{element}} .fa-quote-right' => 'padding-left: {{val}}px;',
1892
  '{{element}} .fa-quote-left' => 'padding-right: {{val}}px;'],
1893
  'req' => array(
1898
  'label' => __pl('obj_align_label'),
1899
  'type' => 'radio',
1900
  'default' => 'left',
1901
+ 'screen' => 1,
1902
  'css' => ['{{element}} .pagelayer-quote-holder' => 'text-align: {{val}};'],
1903
  'list' => array(
1904
  'left' => __pl('left'),
1930
  'type' => 'typography',
1931
  'label' => __pl('cite_typo'),
1932
  'default' => ',16,italic,,,,solid,,,,',
1933
+ 'screen' => 1,
1934
  'css' => ['{{element}} .pagelayer-quote-cite' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1935
  )
1936
  ],
1942
  'step' => 1,
1943
  'max' => 100,
1944
  'default' => 5,
1945
+ 'screen' => 1,
1946
  'css' => ['{{element}} .pagelayer-quote-holder' => 'border-left-width: {{val}}px; border-left-style: solid;']
1947
  ),
1948
  'quote_border_color' => array(
1958
  'step' => 1,
1959
  'max' => 100,
1960
  'default' => 30,
1961
+ 'screen' => 1,
1962
  'css' => ['{{element}} .pagelayer-quote-holder' => 'padding-left: {{val}}px; padding-right: 10px;']
1963
  ),
1964
  'quote_vpadding' => array(
1968
  'step' => 1,
1969
  'max' => 100,
1970
  'default' => 20,
1971
+ 'screen' => 1,
1972
  'css' => ['{{element}} .pagelayer-quote-holder' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;']
1973
  )
1974
  ],
2074
  'step' => 1,
2075
  'max' => 100,
2076
  'default' => 10,
2077
+ 'screen' => 1,
2078
+ 'css' => ['{{element}} .pagelayer-list-ul div:not(:last-child)' => 'padding-bottom: calc({{val}}px/2);',
2079
+ '{{element}} .pagelayer-list-ul div:not(:first-child)' => 'margin-top: calc({{val}}px/2)'],
2080
  ),
2081
  'side_spacing' => array(
2082
  'type' => 'slider',
2084
  'min' => 0,
2085
  'step' => 1,
2086
  'max' => 100,
2087
+ 'screen' => 1,
2088
  'css' => ['{{element}} .pagelayer-list_item' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
2089
  ),
2090
  ),
2098
  'list_typo' => array(
2099
  'type' => 'typography',
2100
  'label' => __pl('list_typo'),
2101
+ 'screen' => 1,
2102
  'css' => [
2103
  '{{element}} li' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
2104
  '{{element}} li > a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'
2111
  'step' => 1,
2112
  'max' => 100,
2113
  'default' => 10,
2114
+ 'screen' => 1,
2115
  'css' => ['{{element}} .pagelayer-list-item' => 'margin-left: {{val}}px;'],
2116
  ),
2117
  ],
2128
  'min' => 0,
2129
  'step' => 1,
2130
  'max' => 150,
2131
+ 'screen' => 1,
2132
  'css' => ['{{element}} i' => 'font-size: {{val}}px'],
2133
  ),
2134
  ],
2136
  'icon_border_type' => array(
2137
  'type' => 'select',
2138
  'label' => __pl('type'),
2139
+ 'css' => ['{{element}} .pagelayer-list-ul > div:not(:last-child)' => 'border-bottom-style: {{val}};'],
 
2140
  'default' => 'solid',
2141
  'list' => [
2142
  '' => __pl('none'),
2151
  'type' => 'color',
2152
  'label' => __pl('color'),
2153
  'default' => '#cbd2dc78',
2154
+ 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-color: {{val}};'],
2155
  'req' => array(
2156
  '!icon_border_type' => ''
2157
  ),
2163
  'step' => 1,
2164
  'max' => 100,
2165
  'default' => 3,
2166
+ 'screen' => 1,
2167
+ 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-width: {{val[0]}}px;'],
2168
  'req' => [
2169
  '!icon_border_type' => ''
2170
  ]
2198
  'type' => 'spinner',
2199
  'label' => __pl('service_box_icon_background_size'),
2200
  'default' => 10,
2201
+ 'screen' => 1,
2202
  'css' => ['{{element}} i' => 'padding: calc(0.5em + {{val}}px);'],
2203
  'min' => 1,
2204
  'max' => 500,
2218
  'type' => 'radio',
2219
  'label' => __pl('alignment'),
2220
  'default' => 'center',
2221
+ 'screen' => 1,
2222
  'css' => 'text-align: {{val}}',
2223
  'list' => array(
2224
  'left' => __pl('left'),
2285
  'step' => 1,
2286
  'max' => 500,
2287
  'default' => 26,
2288
+ 'screen' => 1,
2289
  'css' => ['{{element}} i' => 'font-size: {{val}}px'],
2290
  'req' => array(
2291
  'icon_size' => 'pagelayer-icon-custom'
2302
  'min' => 0,
2303
  'max' => 360,
2304
  'step' => 1,
2305
+ 'screen' => 1,
2306
  'show' => array(
2307
  'icon_hover' => ''
2308
  ),
2326
  'step' => 100,
2327
  'max' => 5000,
2328
  'default' => 400,
2329
+ 'screen' => 1,
2330
  'css' => ['{{element}} i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
2331
  'show' => array(
2332
  'icon_hover' => 'hover'
2348
  'min' => 1,
2349
  'step' => 1,
2350
  'max' => 500,
2351
+ 'screen' => 1,
2352
  'css' => ['{{element}} i:hover' => 'font-size: {{val}}px'],
2353
  'req' => array(
2354
  'icon_size' => 'pagelayer-icon-custom'
2401
  'min' => 0,
2402
  'max' => 360,
2403
  'step' => 1,
2404
+ 'screen' => 1,
2405
  'show' => array(
2406
  'icon_hover' => 'hover'
2407
  ),
2424
  'min' => 1,
2425
  'max' => 500,
2426
  'step' => 1,
2427
+ 'screen' => 1,
2428
  'req' => array(
2429
  '!bg_shape' => ''
2430
  ),
2434
  )
2435
  ],
2436
  'border_style' => [
2437
+ 'icon_border_hover' => array(
2438
  'type' => 'radio',
2439
  'label' => '',
2440
  'default' => '',
2456
  'groove' => __pl('groove'),
2457
  ],
2458
  'show' => array(
2459
+ 'icon_border_hover' => ''
2460
  ),
2461
  ),
2462
  'icon_border_color' => array(
2468
  '!icon_border_type' => ''
2469
  ),
2470
  'show' => array(
2471
+ 'icon_border_hover' => ''
2472
  ),
2473
  ),
2474
  'icon_border_width' => array(
2475
  'type' => 'padding',
2476
  'label' => __pl('border_width'),
2477
+ 'screen' => 1,
2478
  'css' => ['{{element}} i' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2479
  'req' => [
2480
  '!icon_border_type' => ''
2481
  ],
2482
  'show' => array(
2483
+ 'icon_border_hover' => ''
2484
  ),
2485
  ),
2486
  'icon_border_radius' => array(
2487
  'type' => 'padding',
2488
  'label' => __pl('border_radius'),
2489
+ 'screen' => 1,
2490
  'css' => ['{{element}} i' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2491
  'req' => array(
2492
  '!icon_border_type' => ''
2493
  ),
2494
  'show' => array(
2495
+ 'icon_border_hover' => ''
2496
  ),
2497
  ),
2498
  'icon_border_type_hover' => array(
2508
  'groove' => __pl('groove'),
2509
  ],
2510
  'show' => array(
2511
+ 'icon_border_hover' => 'hover'
2512
  ),
2513
  ),
2514
  'icon_border_color_hover' => array(
2517
  'css' => ['{{element}} i:hover' => 'border-color: {{val}};'],
2518
  'default' => '#3e8ef7',
2519
  'req' => array(
2520
+ '!icon_border_type_hover' => ''
2521
  ),
2522
  'show' => array(
2523
+ 'icon_border_hover' => 'hover'
2524
  ),
2525
  ),
2526
  'icon_border_width_hover' => array(
2527
  'type' => 'padding',
2528
  'label' => __pl('border_width'),
2529
+ 'screen' => 1,
2530
  'css' => ['{{element}} i:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2531
  'req' => [
2532
+ '!icon_border_type_hover' => ''
2533
  ],
2534
  'show' => array(
2535
+ 'icon_border_hover' => 'hover'
2536
  ),
2537
  ),
2538
  'icon_border_radius_hover' => array(
2539
  'type' => 'padding',
2540
  'label' => __pl('border_radius'),
2541
+ 'screen' => 1,
2542
  'css' => ['{{element}} i:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2543
  'req' => array(
2544
+ '!icon_border_type_hover' => ''
2545
  ),
2546
  'show' => array(
2547
+ 'icon_border_hover' => 'hover'
2548
  ),
2549
  ),
2550
  ],
2612
  'badge_vertical_align' => array(
2613
  'type' => 'select',
2614
  'label' => __pl('badge_vertical_align'),
2615
+ 'screen' => 1,
2616
  'css' => ['{{element}} .pagelayer-badge-details' => 'vertical-align:{{val}};'],
2617
  'list' => [
2618
  '' => __pl('none'),
2640
  'type' => 'typography',
2641
  'label' => __pl('text_size'),
2642
  'default' => ',25,,400,,,,,,,',
2643
+ 'screen' => 1,
2644
  'css' => ['{{element}} .pagelayer-badge-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
2645
  ),
2646
  ],
2657
  'label' => __pl('badge_spacing'),
2658
  'default' => 2,
2659
  'min' => 1,
2660
+ 'max' => 100,
2661
+ 'screen' => 1,
2662
  'css' => ['{{element}} .pagelayer-badge-details' => 'margin-left:{{val}}px;'],
2663
  ),
2664
  'badge_background_color' => array(
2674
  'default' => 2,
2675
  'min' => 0,
2676
  'max' => 100,
2677
+ 'screen' => 1,
2678
  'css' => ['{{element}} .pagelayer-badge-details' => 'padding-top:{{val}}px; padding-bottom:{{val}}px;'],
2679
  ),
2680
  'badge_hspacing' => array(
2682
  'label' => __pl('horizontal_spacing'),
2683
  'default' => 2,
2684
  'min' => 0,
2685
+ 'max' => 100,
2686
+ 'screen' => 1,
2687
  'css' => ['{{element}} .pagelayer-badge-details' => 'padding-left:{{val}}px; padding-right:{{val}}px;'],
2688
  ),
2689
  'badge_text_style' => array(
2792
  'label' => __pl('tooltip_align'),
2793
  'type' => 'select',
2794
  'default' => 'center',
2795
+ 'screen' => 1,
2796
  'css' => 'text-align: {{val}};',
2797
  'list' => array(
2798
  'left' => __pl('left'),
2809
  'type' => 'typography',
2810
  'label' => __pl('tooltip_title_size'),
2811
  'default' => ',25,,400,,,,,,,',
2812
+ 'screen' => 1,
2813
  'css' => ['{{element}} .pagelayer-tooltip-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
2814
  '{{element}} .pagelayer-tooltip-icon .fa' => 'font-size: {{val[1]}}px !important;'],
2815
  ),
2838
  'min' => 100,
2839
  'max' => 500,
2840
  'default' => 200,
2841
+ 'screen' => 1,
2842
  'css' => ['{{element}} .pagelayer-tooltip-text' => 'width:{{val}}px;'],
2843
  ),
2844
  'tooltip_spacing' => array(
2847
  'min' => 0,
2848
  'max' => 100,
2849
  'default' => 10,
2850
+ 'screen' => 1,
2851
  'css' => ['{{element}} .pagelayer-tooltip-text' => 'padding:{{val}}px;'],
2852
  ),
2853
  'tooltip_background' => array(
2871
  'type' => 'typography',
2872
  'label' => __pl('tooltip_text_size'),
2873
  'default' => ',18,,400,,,,,,,',
2874
+ 'screen' => 1,
2875
  'css' => ['{{element}} .pagelayer-tooltip-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
2876
  ),
2877
  'tooltip_shadow' => array(
2908
  'min' => 0,
2909
  'max' => 100,
2910
  'default' => 4,
2911
+ 'screen' => 1,
2912
  'css' => ['{{element}} .pagelayer-tooltip-icon' => 'margin-left:{{val}}px; margin-right:{{val}}px;'],
2913
  'req' => array(
2914
  'show_icon' => 'true',
2949
  'innerHTML' => 'text',
2950
  'html' => '<div class="pagelayer-image-holder">
2951
  <a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}">
2952
+ <img class="pagelayer-img" src="{{func_id}}" title="{{{id-title}}}" alt="{{{id-alt}}}" />
2953
  <div if="{{overlay}}" class="pagelayer-image-overlay {{content_position}}">
2954
  <div class="pagelayer-image-overlay-content">
2955
  <i if="{{icon}}" class="pagelayer-image-overlay-icon fa fa-{{icon}}"></i>
3005
  'type' => 'slider',
3006
  'min' => 0,
3007
  'max' => 100,
3008
+ 'screen' => 1,
3009
+ 'css' => ['{{element}} img' => 'max-width: {{val}}%'],
3010
  ),
3011
  'img_filter' => array(
3012
  'type' => 'filter',
3017
  'img_shadow' => array(
3018
  'type' => 'shadow',
3019
  'label' => __pl('shadow'),
3020
+ 'screen' => 1,
3021
  'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
3022
  ),
3023
  ),
3106
  'step' => 1,
3107
  'max' => 500,
3108
  'default' => 50,
3109
+ 'screen' => 1,
3110
  'css' => ['{{element}} .pagelayer-image-overlay-icon' => 'font-size: {{val}}px'],
3111
  'req' => array(
3112
  'overlay' => 'true'
3134
  'label' => __pl('Overlay Content Position'),
3135
  'type' => 'radio',
3136
  'default' => 'center',
3137
+ 'screen' => 1,
3138
  'css' => ['{{element}} .pagelayer-image-overlay' => 'display:-webkit-flex;display:flex;-webkit-align-items:{{val}}; align-items:{{val}};'],
3139
  'list' => array(
3140
  'flex-start' => __pl('Top'),
3148
  'show_always' => array(
3149
  'label' => __pl('image_show_always'),
3150
  'type' => 'checkbox',
3151
+ 'screen' => 1,
3152
  'css' => ['{{element}} .pagelayer-image-overlay' => 'opacity:1;'],
3153
  'req' => array(
3154
  'overlay' => 'true'
3168
  'name' => __pl('Image Slider'),
3169
  'group' => 'image',
3170
  'html' => '<div class="pagelayer-image-slider-div">
3171
+ <ul class="pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme">{{ul}}</ul>
3172
  </div>',
3173
  'func' => 'pagelayer_sc_image_slider',
3174
  'settings' => [
3198
  'type' => 'dimension',
3199
  'label' => __pl('image_custom_size_label'),
3200
  'default' => '200,200',
3201
+ 'screen' => 1,
3202
  'css' => ['{{element}} .pagelayer-image-slider-ul' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
3203
  'req' => array(
3204
  'size' => 'custom'
3231
  ),
3232
  ),
3233
  'slider_options' => [
3234
+ 'slide_items' => array(
3235
+ 'type' => 'spinner',
3236
+ 'label' => __pl('number_of_items'),
3237
+ 'min' => 1,
3238
+ 'step' => 1,
3239
+ 'max' => 10,
3240
+ 'default' => 1,
3241
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-items="{{slide_items}}"'],
3242
+ ),
3243
+ 'slider_animation' => array(
3244
+ 'type' => 'select',
3245
+ 'label' => __pl('animation_in'),
3246
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-animate-in="{{slider_animation}}"'],
3247
+ 'list' => $pagelayer->anim_in_options,
3248
+ 'req' => ['slide_items' => '1']
3249
+ ),
3250
+ 'slideout_anim' => array(
3251
+ 'type' => 'select',
3252
+ 'label' => __pl('animation_out'),
3253
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-animate-out="{{slideout_anim}}"'],
3254
+ 'list' => $pagelayer->anim_out_options,
3255
+ 'req' => ['slide_items' => '1']
3256
+ ),
3257
  'controls' => array(
3258
  'type' => 'select',
3259
  'label' => __pl('slider_controls'),
3260
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-controls="{{controls}}"'],
3261
  'list' => array(
3262
  '' => __pl('Arrows and Pager'),
3263
  'arrows' => __pl('Arrows'),
3265
  'none' => __pl('none'),
3266
  )
3267
  ),
 
 
 
 
 
 
 
 
 
 
 
 
3268
  'pause' => array(
3269
  'type' => 'slider',
3270
  'label' => __pl('image_slider_slideshow_speed_label'),
3271
  'default' => 5000,
3272
  'min' => 200,
3273
+ 'max' => 20000,
3274
  'step' => 100,
3275
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay-timeout="{{pause}}"'],
3276
  ),
3277
  'speed' => array(
3278
  'type' => 'slider',
3279
  'label' => __pl('slider_animation_speed'),
3280
+ 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-slides-smart-speed="{{speed}}"'],
3281
  'default' => 800,
3282
  'min' => 200,
3283
  'max' => 10000,
3288
  'label' => __pl('image_slider_loop'),
3289
  'desc' => __pl('image_slider_loop_desc'),
3290
  'default' => 'true',
3291
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-loop="{{loop}}"'],
3292
  ),
3293
  'adaptive_height' => array(
3294
  'type' => 'checkbox',
3295
  'label' => __pl('slider_height'),
3296
  'desc' => __pl('slider_height_desc'),
3297
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-auto-height="{{adaptive_height}}"'],
3298
  ),
3299
  'auto' => array(
3300
  'type' => 'checkbox',
3301
  'label' => __pl('image_slider_auto'),
3302
  'desc' => __pl('image_slider_auto_desc'),
3303
  'default' => 'true',
3304
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay="{{auto}}"'],
3305
  ),
3306
  'auto_hover' => [
3307
  'type' => 'checkbox',
3308
  'label' => __pl('auto_hover'),
3309
  'desc' => __pl('auto_hover_desc'),
3310
  'default' => 'true',
3311
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay-hover-pause="{{auto_hover}}"'],
3312
  ],
3313
+ ],
3314
+ 'arrow_styles' => $pagelayer->slider_arrow_styles,
3315
+ 'pager_styles' => $pagelayer->slider_pager_styles,
3316
+ 'styles' => [
3317
+ 'slider_options' => __pl('slider_options'),
3318
+ 'arrow_styles' => __pl('arrow_styles'),
3319
+ 'pager_styles' => __pl('pager_styles'),
3320
+ ],
 
 
 
3321
  )
3322
  );
3323
 
3340
  'type' => 'select',
3341
  'label' => __pl('columns_count'),
3342
  'default' => 3,
3343
+ 'screen' => 1,
3344
+ 'css' => ['{{element}} .pagelayer-grid-gallery-ul' => 'display: grid; grid-template-columns: repeat({{val}},1fr);'],
3345
  'list' => array(
3346
  1 => __pl('1'),
3347
  2 => __pl('2'),
3355
  10 => __pl('10')
3356
  )
3357
  ),
3358
+ 'col_gap' => array(
3359
+ 'type' => 'slider',
3360
+ 'label' => __pl('col_gap'),
3361
+ 'min' => 0,
3362
+ 'step' => 1,
3363
+ 'max' => 100,
3364
+ 'default' => 0,
3365
+ 'screen' => 1,
3366
+ 'css' => ['{{element}} .pagelayer-grid-gallery-ul' => 'grid-column-gap: {{val}}px;'],
3367
+ ),
3368
+ 'row_gap' => array(
3369
+ 'type' => 'slider',
3370
+ 'label' => __pl('row_gap'),
3371
+ 'min' => 0,
3372
+ 'step' => 1,
3373
+ 'max' => 100,
3374
+ 'default' => 0,
3375
+ 'screen' => 1,
3376
+ 'css' => ['{{element}} .pagelayer-grid-gallery-ul' => 'grid-row-gap: {{val}}px;'],
3377
+ ),
3378
  'size' => array(
3379
  'type' => 'select',
3380
  'label' => __pl('obj_image_size_label'),
3393
  'req' => array(
3394
  'size' => 'custom'
3395
  ),
3396
+ 'screen' => 1,
3397
  'css' => ['{{element}} .pagelayer-gallery-item img' => 'height: {{val[0]}}px; width: {{val[1]}}px;'],
3398
  ),
3399
  'link_to' => array(
3491
  'full_width' => array(
3492
  'type' => 'checkbox',
3493
  'label' => __pl('stretch'),
3494
+ 'screen' => 1,
3495
  'css' => ['{{element}} a' => 'width: 100%; text-align: center;']
3496
  ),
3497
  'btn_typo' => array(
3498
  'type' => 'typography',
3499
  'label' => __pl('quote_content_typo'),
3500
+ 'screen' => 1,
3501
  'css' => [
3502
  '{{element}} .pagelayer-btn-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
3503
  '{{element}} .pagelayer-btn-holder' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
3507
  'type' => 'radio',
3508
  'label' => __pl('obj_align_label'),
3509
  'default' => 'left',
3510
+ 'screen' => 1,
3511
  'css' => 'text-align: {{val}}',
3512
  'list' => array(
3513
  'left' => __pl('left'),
3541
  'step' => 1,
3542
  'max' => 100,
3543
  'default' => 5,
3544
+ 'screen' => 1,
3545
  'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
3546
  'req' => array(
3547
  '!icon' => 'none'
3588
  'step' => 1,
3589
  'max' => 100,
3590
  'default' => 5,
3591
+ 'screen' => 1,
3592
  'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: calc({{val}}px / 2) {{val}}px;'],
3593
  'req' => array(
3594
  'size' => 'pagelayer-btn-custom'
3711
  'btn_border_width' => array(
3712
  'type' => 'padding',
3713
  'label' => __pl('border_width'),
3714
+ 'screen' => 1,
3715
  'css' => ['{{element}} .pagelayer-btn-holder' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3716
  'req' => [
3717
  '!btn_border_type' => ''
3723
  'btn_border_radius' => array(
3724
  'type' => 'padding',
3725
  'label' => __pl('border_radius'),
3726
+ 'screen' => 1,
3727
  'css' => ['{{element}} .pagelayer-btn-holder' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3728
  'req' => array(
3729
  '!btn_border_type' => ''
3763
  'btn_border_width_hover' => array(
3764
  'type' => 'padding',
3765
  'label' => __pl('border_width_hover'),
3766
+ 'screen' => 1,
3767
  'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3768
  'req' => [
3769
  '!btn_border_type_hover' => ''
3775
  'btn_border_radius_hover' => array(
3776
  'type' => 'padding',
3777
  'label' => __pl('border_radius_hover'),
3778
+ 'screen' => 1,
3779
  'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3780
  'req' => array(
3781
  '!btn_border_type_hover' => ''
3865
  'step' => 1,
3866
  'max' => 500,
3867
  'default' => 10,
3868
+ 'screen' => 1,
3869
  'req' => array(
3870
  '!bg_shape' => ''
3871
  )
3875
  'label' => __pl('obj_align_label'),
3876
  'default' => 'center',
3877
  'css' => 'text-align: {{val}}',
3878
+ 'screen' => 1,
3879
  'list' => array(
3880
  'left' => __pl('left'),
3881
  'center' => __pl('center'),
3886
  'type' => 'radio',
3887
  'label' => __pl('layout'),
3888
  'default' => 'pagelayer-btn-grp-horizontal',
3889
+ 'screen' => 1,
3890
  'css' => ['{{element}} > div' => 'display: inline-block;'],
3891
  'list' => array(
3892
  'pagelayer-btn-grp-horizontal' => __pl('horizontal'),
3901
  'step' => 1,
3902
  'max' => 100,
3903
  'default' => 3,
3904
+ 'screen' => 1,
3905
  )
3906
  ],
3907
  'icon_style' => [
3914
  'step' => 1,
3915
  'max' => 500,
3916
  'default' => 40,
3917
+ 'screen' => 1,
3918
  ),
3919
  'color_scheme' => array(
3920
  'type' => 'select',
3984
  'icon_border_width' => array(
3985
  'type' => 'padding',
3986
  'label' => __pl('border_width'),
3987
+ 'screen' => 1,
3988
  'css' => ['{{element}} .pagelayer-icon-holder' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3989
  'req' => [
3990
  '!icon_border_type' => ''
3994
  'icon_border_radius' => array(
3995
  'type' => 'padding',
3996
  'label' => __pl('border_radius'),
3997
+ 'screen' => 1,
3998
  'css' => ['{{element}} .pagelayer-icon-holder' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3999
  'req' => array(
4000
  '!icon_border_type' => ''
4009
  'step' => 100,
4010
  'max' => 5000,
4011
  'default' => 400,
4012
+ 'screen' => 1,
4013
  'css' => ['{{element}} .pagelayer-icon-holder' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',
4014
  '{{element}} .pagelayer-social-fa' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
4015
  'show' => array(
4101
  'icon_border_width_hover' => array(
4102
  'type' => 'padding',
4103
  'label' => __pl('border_width_hover'),
4104
+ 'screen' => 1,
4105
  'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
4106
  'req' => [
4107
  '!icon_border_type_hover' => ''
4111
  'icon_border_radius_hover' => array(
4112
  'type' => 'padding',
4113
  'label' => __pl('border_radius_hover'),
4114
+ 'screen' => 1,
4115
  'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4116
  'req' => array(
4117
  '!icon_border_type_hover' => ''
4174
  ),
4175
  'video_ratio' => array(
4176
  'type' => 'select',
4177
+ 'label' => __pl('aspect_ratio'),
4178
  'default' => 'aspect-8-5',
4179
  'list' => array(
4180
  'aspect-1-1' => __pl('1:1'),
4232
  ),
4233
  'tooltip_text_shadow' => array(
4234
  'type' => 'shadow',
4235
+ 'label' => __pl('shadow'),
4236
  'css' => ['{{element}} .pagelayer-video-overlay i' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
4237
  'req' => array(
4238
  'overlay' => 'true'
4258
  'innerHTML' => 'service_text',
4259
  'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
4260
  <div if="{{service_image}}" class="pagelayer-service-image">
4261
+ <img class="pagelayer-img pagelayer-animation-{{anim_hover}}" src="{{func_image}}">
4262
  </div>
4263
  <div class="pagelayer-service-details">
4264
  <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
4355
  'label' => __pl('service_image_spacing'),
4356
  'css' => ['{{element}} .pagelayer-service-image img' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
4357
  ),
4358
+ 'img_bor_state' => array(
4359
+ 'type' => 'radio',
4360
+ 'label' => __pl('icon_state'),
4361
+ 'default' => 'normal',
4362
+ 'list' => array(
4363
+ 'normal' => __pl('Normal'),
4364
+ 'hover' => __pl('Hover'),
4365
+ ),
4366
+ ),
4367
+ 'img_border_type' => array(
4368
+ 'type' => 'select',
4369
+ 'label' => __pl('icon_border_type'),
4370
+ 'css' => ['{{element}} .pagelayer-service-image img' =>'border-style: {{val}};'],
4371
+ 'list' => [
4372
+ '' => __pl('none'),
4373
+ 'solid' => __pl('solid'),
4374
+ 'double' => __pl('double'),
4375
+ 'dotted' => __pl('dotted'),
4376
+ 'dashed' => __pl('dashed'),
4377
+ 'groove' => __pl('groove'),
4378
+ ],
4379
+ 'show' => ['img_bor_state' => 'normal'],
4380
+ ),
4381
+ 'img_border_color' => array(
4382
+ 'type' => 'color',
4383
+ 'label' => __pl('icon_border_color_label'),
4384
+ 'default' => '#3e8ef7',
4385
+ 'css' => ['{{element}} .pagelayer-service-image img' => 'border-color: {{val}};'],
4386
+ 'req' => [
4387
+ '!img_border_type' => '',
4388
+ ],
4389
+ 'show' => ['img_bor_state' => 'normal'],
4390
+ ),
4391
+ 'img_border_width' => array(
4392
+ 'type' => 'padding',
4393
+ 'label' => __pl('icon_border_width'),
4394
+ 'screen' => 1,
4395
+ 'css' => ['{{element}} .pagelayer-service-image img' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
4396
+ 'req' => [
4397
+ '!img_border_type' => '',
4398
+ ],
4399
+ 'show' => ['img_bor_state' => 'normal'],
4400
+ ),
4401
+ 'img_border_radius' => array(
4402
+ 'type' => 'padding',
4403
+ 'label' => __pl('border_radius'),
4404
+ 'screen' => 1,
4405
+ 'units' => ['px', 'em', '%'],
4406
+ 'css' => ['{{element}} .pagelayer-service-image img' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
4407
+ 'req' => [
4408
+ '!img_border_type' => '',
4409
+ ],
4410
+ 'show' => ['img_bor_state' => 'normal'],
4411
+ ),
4412
+ 'img_transition' => array(
4413
+ 'type' => 'spinner',
4414
+ 'label' => __pl('ele_bg_hover_delay'),
4415
+ 'min' => 0,
4416
+ 'step' => 100,
4417
+ 'max' => 5000,
4418
+ 'default' => 400,
4419
+ 'css' => ['{{element}} .pagelayer-service-image img' =>'-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
4420
+ 'show' => ['img_bor_state' => 'hover'],
4421
+ ),
4422
+ 'img_border_type_hover' => array(
4423
+ 'type' => 'select',
4424
+ 'label' => __pl('icon_border_type_hover'),
4425
+ 'css' => ['{{element}}:hover .pagelayer-service-image img' =>'border-style: {{val}};'],
4426
+ 'list' => [
4427
+ '' => __pl('none'),
4428
+ 'solid' => __pl('solid'),
4429
+ 'double' => __pl('double'),
4430
+ 'dotted' => __pl('dotted'),
4431
+ 'dashed' => __pl('dashed'),
4432
+ 'groove' => __pl('groove'),
4433
+ ],
4434
+ 'show' => ['img_bor_state' => 'hover'],
4435
+ ),
4436
+ 'img_border_color_hover' => array(
4437
+ 'type' => 'color',
4438
+ 'label' => __pl('icon_border_color_hover_label'),
4439
+ 'default' => '#3e8ef7',
4440
+ 'css' => ['{{element}}:hover .pagelayer-service-image img' => 'border-color: {{val}};'],
4441
+ 'req' => [
4442
+ '!img_border_type_hover' => '',
4443
+ ],
4444
+ 'show' => ['img_bor_state' => 'hover'],
4445
+ ),
4446
+ 'img_border_width_hover' => array(
4447
+ 'type' => 'padding',
4448
+ 'label' => __pl('icon_border_width_hover'),
4449
+ 'screen' => 1,
4450
+ 'css' => ['{{element}}:hover .pagelayer-service-image img' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
4451
+ 'req' => [
4452
+ '!img_border_type_hover' => '',
4453
+ ],
4454
+ 'show' => ['img_bor_state' => 'hover'],
4455
+ ),
4456
+ 'img_border_radius_hover' => array(
4457
+ 'type' => 'padding',
4458
+ 'label' => __pl('border_radius'),
4459
+ 'screen' => 1,
4460
+ 'units' => ['px', 'em', '%'],
4461
+ 'css' => ['{{element}}:hover .pagelayer-service-image img' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
4462
+ 'req' => [
4463
+ '!img_border_type_hover' => '',
4464
+ ],
4465
+ 'show' => ['img_bor_state' => 'hover'],
4466
+ ),
4467
  ],
4468
  'service_heading_style' => [
4469
  'service_heading' => array(
4478
  'min' => '0',
4479
  'max' => '200',
4480
  'default' => '10',
4481
+ 'screen' => 1,
4482
  'css' => ['{{element}} .pagelayer-service-heading' => 'margin-bottom: {{val}}px !important;'],
4483
  ),
4484
+ 'heading_state' => array(
4485
+ 'type' => 'radio',
4486
+ 'label' => __pl('icon_state'),
4487
+ 'default' => 'normal',
4488
+ 'list' => array(
4489
+ 'normal' => __pl('Normal'),
4490
+ 'hover' => __pl('Hover'),
4491
+ ),
4492
+ ),
4493
  'service_heading_color' => array(
4494
  'type' => 'color',
4495
  'label' => __pl('service_heading_color'),
4496
  'default' => '#3e8ef7',
4497
  'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
4498
+ 'show' => ['heading_state' => 'normal'],
4499
  ),
4500
  'service_heading_typo' => array(
4501
  'type' => 'typography',
4502
  'label' => __pl('service_heading_typo'),
4503
  'default' => ',28,,600,,,,,,,',
4504
+ 'screen' => 1,
4505
  'css' => ['{{element}} .pagelayer-service-heading' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4506
+ 'show' => ['heading_state' => 'normal'],
4507
+ ),
4508
+ 'heading_transition' => array(
4509
+ 'type' => 'spinner',
4510
+ 'label' => __pl('ele_bg_hover_delay'),
4511
+ 'min' => 0,
4512
+ 'step' => 100,
4513
+ 'max' => 5000,
4514
+ 'default' => 400,
4515
+ 'css' => ['{{element}} .pagelayer-service-heading' =>'-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
4516
+ 'show' => ['heading_state' => 'hover'],
4517
+ ),
4518
+ 'heading_color_hover' => array(
4519
+ 'type' => 'color',
4520
+ 'label' => __pl('service_heading_color'),
4521
+ 'default' => '#3e8ef7',
4522
+ 'css' => ['{{element}}:hover .pagelayer-service-heading' => 'color:{{val}}'],
4523
+ 'show' => ['heading_state' => 'hover'],
4524
+ ),
4525
+ 'heading_typo_hover' => array(
4526
+ 'type' => 'typography',
4527
+ 'label' => __pl('service_heading_typo'),
4528
+ 'default' => ',28,,600,,,,,,,',
4529
+ 'screen' => 1,
4530
+ 'css' => ['{{element}}:hover .pagelayer-service-heading' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4531
+ 'show' => ['heading_state' => 'hover'],
4532
  ),
4533
  ],
4534
  //service content style
4537
  'type' => 'select',
4538
  'label' => __pl('service_box_text_alignment'),
4539
  'default' => 'center',
4540
+ 'screen' => 1,
4541
  'list' => array(
4542
  'left' => __pl('left'),
4543
  'center' => __pl('center'),
4617
  'min' => '0',
4618
  'max' => '200',
4619
  'default' => '10',
4620
+ 'screen' => 1,
4621
  'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
4622
  'req' => [
4623
  'service_button' => 'true',
4628
  'label' => __pl('iconbox_btn_text_size'),
4629
  'min' => '0',
4630
  'max' => '50',
4631
+ 'screen' => 1,
4632
  'css' => ['{{element}} .pagelayer-service-btn' => 'font-size:{{val}}px;'],
4633
  'req' => [
4634
  'service_button' => 'true',
4780
  'min' => '0',
4781
  'max' => '200',
4782
  'default' => '15',
4783
+ 'screen' => 1,
4784
  'css' => ['{{element}} .pagelayer-service-icon i' => 'padding: calc(0.5em + {{val}}px);'],
4785
  'req' => ['!service_icon_view' => 'default'],
4786
  ),
4819
  'min' => '0',
4820
  'max' => '300',
4821
  'default' => '75',
4822
+ 'screen' => 1,
4823
  'css' => ['{{element}} .pagelayer-service-icon' => 'font-size:{{val}}px;'],
4824
  'show' => ['service_icon_state' => 'normal'],
4825
  ),
4829
  'min' => '0',
4830
  'max' => '360',
4831
  'default' => '0',
4832
+ 'screen' => 1,
4833
  'css' => ['{{element}} .pagelayer-service-icon i' => 'transform: rotate({{val}}deg);'],
4834
  'show' => ['service_icon_state' => 'normal'],
4835
  ),
4898
  'label' => __pl('service_icon_size_hover'),
4899
  'min' => '0',
4900
  'max' => '300',
4901
+ 'screen' => 1,
4902
  'css' => ['{{element}}:hover .pagelayer-service-icon' => 'font-size:{{val}}px;'],
4903
  'show' => ['service_icon_state' => 'hover'],
4904
  ),
4907
  'label' => __pl('service_rotate_hover'),
4908
  'min' => '0',
4909
  'max' => '360',
4910
+ 'screen' => 1,
4911
  'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'transform: rotate({{val}}deg);'],
4912
  'show' => ['service_icon_state' => 'hover'],
4913
  ),
4949
  'service_icon_border_width' => array(
4950
  'type' => 'padding',
4951
  'label' => __pl('icon_border_width'),
4952
+ 'screen' => 1,
4953
  'css' => ['{{element}} .pagelayer-service-icon i' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
4954
  'req' => [
4955
  '!service_icon_border_type' => '',
4959
  'service_icon_border_radius' => array(
4960
  'type' => 'padding',
4961
  'label' => __pl('border_radius'),
4962
+ 'screen' => 1,
4963
  'css' => ['{{element}} .pagelayer-service-icon i ' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4964
  'req' => [
4965
  '!service_icon_border_type' => '',
4993
  'service_icon_border_width_hover' => array(
4994
  'type' => 'padding',
4995
  'label' => __pl('icon_border_width_hover'),
4996
+ 'screen' => 1,
4997
  'css' => ['{{element}}:hover .pagelayer-service-icon i' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
4998
  'req' => [
4999
  '!service_icon_border_type_hover' => '',
5003
  'service_icon_border_radius_hover' => array(
5004
  'type' => 'padding',
5005
  'label' => __pl('border_radius'),
5006
+ 'screen' => 1,
5007
  'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5008
  'req' => [
5009
  '!service_icon_border_type_hover' => '',
5024
  'min' => '0',
5025
  'max' => '200',
5026
  'default' => '10',
5027
+ 'screen' => 1,
5028
  'css' => ['{{element}} .pagelayer-service-heading' => 'margin-bottom: {{val}}px;'],
5029
  ),
5030
+ 'heading_state' => array(
5031
+ 'type' => 'radio',
5032
+ 'label' => __pl('icon_state'),
5033
+ 'default' => 'normal',
5034
+ 'list' => array(
5035
+ 'normal' => __pl('Normal'),
5036
+ 'hover' => __pl('Hover'),
5037
+ ),
5038
+ ),
5039
  'service_heading_color' => array(
5040
  'type' => 'color',
5041
  'label' => __pl('service_heading_color'),
5042
  'default' => '#3e8ef7',
5043
  'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
5044
+ 'show' => ['heading_state' => 'normal']
5045
  ),
5046
  'service_heading_typo' => array(
5047
  'type' => 'typography',
5048
  'label' => __pl('service_heading_typo'),
5049
  'default' => ',28,,600,,,,,,,',
5050
+ 'screen' => 1,
5051
  'css' => ['{{element}} .pagelayer-service-heading' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5052
+ 'show' => ['heading_state' => 'normal']
5053
+ ),
5054
+ 'heading_delay' => array(
5055
+ 'type' => 'spinner',
5056
+ 'label' => __pl('service_icon_hover_delay'),
5057
+ 'min' => 0,
5058
+ 'step' => 100,
5059
+ 'max' => 5000,
5060
+ 'default' => 400,
5061
+ 'css' => ['{{element}} .pagelayer-service-heading' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
5062
+ 'show' => ['heading_state' => 'hover']
5063
+ ),
5064
+ 'heading_color_hover' => array(
5065
+ 'type' => 'color',
5066
+ 'label' => __pl('service_heading_color'),
5067
+ 'default' => '#3e8ef7',
5068
+ 'css' => ['{{element}}:hover .pagelayer-service-heading' => 'color:{{val}}'],
5069
+ 'show' => ['heading_state' => 'hover']
5070
+ ),
5071
+ 'heading_typo_hover' => array(
5072
+ 'type' => 'typography',
5073
+ 'label' => __pl('service_heading_typo'),
5074
+ 'default' => ',28,,600,,,,,,,',
5075
+ 'screen' => 1,
5076
+ 'css' => ['{{element}}:hover .pagelayer-service-heading' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5077
+ 'show' => ['heading_state' => 'hover']
5078
  ),
5079
  ],
5080
  //service content style
5081
  'service_content_style' =>[
5082
  'service_text_alignment' => array(
5083
  'type' => 'select',
5084
+ 'label' => __pl('alignment'),
5085
  'default' => 'center',
5086
+ 'screen' => 1,
5087
  'list' => array(
5088
  'left' => __pl('left'),
5089
  'center' => __pl('center'),
5163
  'min' => '0',
5164
  'max' => '200',
5165
  'default' => '10',
5166
+ 'screen' => 1,
5167
  'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
5168
  'req' => [
5169
  'service_button' => 'true',
5174
  'label' => __pl('iconbox_btn_text_size'),
5175
  'min' => '0',
5176
  'max' => '50',
5177
+ 'screen' => 1,
5178
  'css' => ['{{element}} .pagelayer-service-btn' => 'font-size:{{val}}px;'],
5179
  'req' => [
5180
  'service_button' => 'true',
5286
  'min' => 0,
5287
  'max' => 70,
5288
  'step' => 1,
5289
+ 'screen' => 1,
5290
  'css' => ['{{element}}' => 'width:100%; display: -webkit-flex;
5291
  display: flex;', '{{element}} .pagelayer-tabs-holder' => '-webkit-flex-basis: {{val}}%; flex-basis:{{val}}%', '{{element}} .pagelayer-tabcontainer' => '-webkit-flex-basis: calc(100% - {{val}}%); flex-basis:calc(100% - {{val}}%)', '{{element}} .pagelayer-tabs-holder .pagelayer-tablinks' => 'width: 100%;'],
5292
  'req' => array(
5340
  'type' => 'padding',
5341
  'label' => __pl('Border Width'),
5342
  'default' => '1,1,0,1',
5343
+ 'screen' => 1,
5344
  'req' => [
5345
  '!tabs_border_type' => ''
5346
  ],
5350
  'type' => 'padding',
5351
  'label' => __pl('Border Radius'),
5352
  'default' => '1,1,0,1',
5353
+ 'screen' => 1,
5354
  'req' => [
5355
  '!tabs_border_type' => ''
5356
  ],
5362
  'type' => 'radio',
5363
  'label' => __pl('alignment'),
5364
  'default' => 'left',
5365
+ 'screen' => 1,
5366
  'list' => array(
5367
  'left' => __pl('Left'),
5368
  'center' => __pl('Center'),
5397
  'tab_title_typo' => array(
5398
  'type' => 'typography',
5399
  'label' => __pl('tab_title_typo'),
5400
+ 'screen' => 1,
5401
  'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5402
  ),
5403
  'tabs_icon_align' => array(
5417
  'max' => 50,
5418
  'min' => 0,
5419
  'steps' => 1,
5420
+ 'screen' => 1,
5421
  'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks .fa'=> 'padding:0px {{val}}px;padding-{{tabs_icon_align}}:0px;'],
5422
  ),
5423
  ],
5425
  'tabs_content_typo' => array(
5426
  'type' => 'typography',
5427
  'label' => __pl('tab_content_typo'),
5428
+ 'screen' => 1,
5429
  'css' => ['{{element}} .pagelayer-tabcontainer' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5430
  ),
5431
  'tabs_content_color' => array(
5447
  'min' => 0,
5448
  'max' => 50,
5449
  'step' => 1,
5450
+ 'screen' => 1,
5451
  'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer [pagelayer-id]' => 'padding: {{val}}px;'],
5452
  ),
5453
  'tabs_content_border_width' => array(
5454
  'type' => 'padding',
5455
  'label' => __pl('border_width'),
5456
  'default' => '1,1,1,1',
5457
+ 'screen' => 1,
5458
  'req' => [
5459
  '!tabs_border_type' => ''
5460
  ],
5463
  'tabs_content_border_radius' => array(
5464
  'type' => 'padding',
5465
  'label' => __pl('border_radius'),
5466
+ 'screen' => 1,
5467
  'req' => [
5468
  '!tabs_border_type' => ''
5469
  ],
5545
  'min' => 0,
5546
  'max' => 50,
5547
  'step' => 1,
5548
+ 'screen' => 1,
5549
  'css' => ['{{element}} .pagelayer-accordion_item' => 'margin-bottom:{{val}}px;'],
5550
  ),
5551
  ),
5564
  'type' => 'radio',
5565
  'label' => __pl('Alignment'),
5566
  'default' => 'left',
5567
+ 'screen' => 1,
5568
  'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
5569
  'list' => array(
5570
  'left' => __pl('left'),
5579
  'min' => 0,
5580
  'max' => 50,
5581
  'step' => 1,
5582
+ 'screen' => 1,
5583
  'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
5584
  ),
5585
  ],
5615
  'min' => 0,
5616
  'max' => 50,
5617
  'step' => 1,
5618
+ 'screen' => 1,
5619
  'css' => ['{{element}} .pagelayer-accordion-tabs' => 'padding: {{val}}px;'],
5620
  ),
5621
  'accordion_title_typo' => array(
5634
  'acc_content_typo' => array(
5635
  'type' => 'typography',
5636
  'label' => __pl('accordion_content_typo'),
5637
+ 'screen' => 1,
5638
  'css' => ['{{element}} .pagelayer-accordion-panel' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5639
  ),
5640
  'acc_border_type' => array(
5663
  'type' => 'padding',
5664
  'label' => __pl('border_width'),
5665
  'default' => '1,1,1,1',
5666
+ 'screen' => 1,
5667
  'req' => [
5668
  '!acc_border_type' => ''
5669
  ],
5739
  'min' => 0,
5740
  'max' => 50,
5741
  'step' => 1,
5742
+ 'screen' => 1,
5743
  'css' => ['{{element}} .pagelayer-accordion_item' => 'margin-bottom:{{val}}px;'],
5744
  ),
5745
 
5759
  'type' => 'radio',
5760
  'label' => __pl('Alignment'),
5761
  'default' => 'left',
5762
+ 'screen' => 1,
5763
  'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
5764
  'list' => array(
5765
  'left' => __pl('left'),
5774
  'min' => 0,
5775
  'max' => 50,
5776
  'step' => 1,
5777
+ 'screen' => 1,
5778
  'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
5779
  ),
5780
  ],
5810
  'min' => 0,
5811
  'max' => 50,
5812
  'step' => 1,
5813
+ 'screen' => 1,
5814
  'css' => ['{{element}} .pagelayer-accordion-tabs' => 'padding: {{val}}px;'],
5815
  ),
5816
  'collapse_title_typo' => array(
5817
  'type' => 'typography',
5818
  'label' => __pl('collapsse_title_typo'),
5819
+ 'screen' => 1,
5820
  'css' => ['{{element}} .pagelayer-accordion-tabs' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5821
  ),
5822
  ],
5845
  'type' => 'padding',
5846
  'label' => __pl('border_width'),
5847
  'default' => '1,1,1,1',
5848
+ 'screen' => 1,
5849
  'req' => [
5850
  '!acc_border_type' => ''
5851
  ],
5880
  'type' => 'slider',
5881
  'label' => __pl('Space Height'),
5882
  'screen' => 1,
5883
+ 'units' => ['px', '%'],
5884
  'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}}px;'],
5885
  'default' => '10',
5886
  'min' => 0,
5977
  'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
5978
  <div class="pagelayer-testimonial-author-details">
5979
  <div class="pagelayer-{{image_position}}">
5980
+ <img if="{{avatar}}" class="pagelayer-img pagelayer-testimonial-image pagelayer-testimonial-{{img_shape}}" src="{{func_image}}" />
5981
  </div>
5982
  <div class="pagelayer-{{image_position}}">
5983
  <div if="{{cite}}" class="pagelayer-testimonial-cite">
6005
  'label' => __pl('testimonial_alignment_label'),
6006
  'default' => 'center',
6007
  'css' =>'text-align:{{val}};',
6008
+ 'screen' => 1,
6009
  'list' => array(
6010
  'left' => __pl('left'),
6011
  'center' => __pl('center'),
6018
  'min' => '0',
6019
  'max' => '100',
6020
  'default' => '20',
6021
+ 'screen' => 1,
6022
  'css' => ['{{element}} .pagelayer-testimonial-author-details' => 'margin-top:{{val}}px;'],
6023
  ),
6024
  ),
6045
  'min' => 0,
6046
  'max' => 500,
6047
  'default' => 100,
6048
+ 'screen' => 1,
6049
+ 'css' => ['{{element}} .pagelayer-testimonial-image' => 'width:{{val}}px !important; height:{{val}}px !important;'],
6050
  ),
6051
  'img_shape' => array(
6052
  'type' => 'select',
6080
  'testimonial_border_width' => array(
6081
  'type' => 'padding',
6082
  'label' => __pl('border_width'),
6083
+ 'screen' => 1,
6084
  'css' => ['{{element}} .pagelayer-testimonial-image' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
6085
  'req' => ['!testimonial_border_type' => '']
6086
  ),
6087
  'testimonial_border_radius' => array(
6088
  'type' => 'padding',
6089
  'label' => __pl('border_radius'),
6090
+ 'screen' => 1,
6091
  'css' => ['{{element}} .pagelayer-testimonial-image' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
6092
  'req' => ['!testimonial_border_type' => '']
6093
  ),
6110
  'type' => 'typography',
6111
  'label' => __pl('cite_style'),
6112
  'default' => ',20,,100,,none,,,,,',
6113
+ 'screen' => 1,
6114
  'css' => ['{{element}} .pagelayer-testimonial-author' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6115
  ),
6116
  'cite_url' => array(
6122
  'cite_spacing' => array(
6123
  'type' => 'padding',
6124
  'label' => __pl('cite_spacing'),
6125
+ 'screen' => 1,
6126
  'css' => ['{{element}} .pagelayer-testimonial-cite' => 'margin-top: {{val[0]}}px; margin-right: {{val[1]}}px; margin-bottom: {{val[2]}}px; margin-left: {{val[3]}}px'],
6127
  ),
6128
  ],
6144
  'type' => 'typography',
6145
  'label' => __pl('cite_designation_style'),
6146
  'default' => ',16,,100,,,,,,,',
6147
+ 'screen' => 1,
6148
  'css' => ['{{element}} .pagelayer-testimonial-author-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6149
  ),
6150
  ],
6198
  'min' => 0,
6199
  'max' => 100,
6200
  'step' => 1,
6201
+ 'screen' => 1,
6202
  'css' => ['{{element}} .pagelayer-progress-bar' => 'height:{{val}}px;',
6203
  '{{element}} .pagelayer-progress-percent' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
6204
  '{{element}} .pagelayer-progress-text' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
6223
  'type' => 'typography',
6224
  'label' => __pl('title_size'),
6225
  'default' => ',25,,100,,,,,,,',
6226
+ 'screen' => 1,
6227
  'css' => ['{{element}} .pagelayer-progress-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6228
  ),
6229
  ],
6244
  'label' => __pl('percentage'),
6245
  'min' => 0,
6246
  'max' => 100,
6247
+ 'screen' => 1,
6248
  'css' => ['{{element}} .pagelayer-progress-container > .pagelayer-progress-bar:after' => 'width:{{val}}%;',],
6249
  'addAttr' => ['{{element}} .pagelayer-progress-bar' => 'pagelayer-progress-width="{{progress_percentage}}"'],
6250
  'default' => 75,
6258
  'hide_percentage' => array(
6259
  'type' => 'checkbox',
6260
  'label' => __pl('hide_percentage'),
6261
+ 'screen' => 1,
6262
  'default' => '',
6263
  'css' => ['{{element}} .pagelayer-progress-percent' => 'display: none;']
6264
  ),
6355
  'min' => 0,
6356
  'max' => 500,
6357
  'default' => 30,
6358
+ 'screen' => 1,
6359
  'css' => ['{{element}} .pagelayer-alert-icon' => 'font-size:{{val}}px;'],
6360
  ),
6361
  'alert_icon_spacing' => array(
6364
  'min' => 0,
6365
  'max' => 200,
6366
  'default' => 5,
6367
+ 'screen' => 1,
6368
  'css' => ['{{element}} .pagelayer-alert-icon' => 'margin-right:{{val}}px;'],
6369
  ),
6370
  ],
6385
  'type' => 'typography',
6386
  'label' => __pl('title_typo'),
6387
  'default' => ',22,,600,,,,,,,',
6388
+ 'screen' => 1,
6389
  'css' => ['{{element}} .pagelayer-alert-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6390
  ),
6391
  ],
6408
  'type' => 'typography',
6409
  'label' => __pl('title_typo'),
6410
  'default' => ',13,,,,,,,,,',
6411
+ 'screen' => 1,
6412
  'css' => ['{{element}} .pagelayer-alert-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6413
  ),
6414
  ],
6465
  'type' => 'radio',
6466
  'label' => __pl('alignment'),
6467
  'css' => ['{{element}}' => 'text-align: {{val}}'],
6468
+ 'screen' => 1,
6469
  'list' => array(
6470
  'left' => 'Left',
6471
  'center' => 'Center',
6489
  'type' => 'typography',
6490
  'label' => __pl('counter_number_size'),
6491
  'default' => ',25,,600,,,solid,,,,',
6492
+ 'screen' => 1,
6493
  'css' => ['{{element}} .pagelayer-stars-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6494
  ),
6495
  ],
6512
  'min' => 0,
6513
  'max' => 100,
6514
  'default' => 30,
6515
+ 'screen' => 1,
6516
  'css' => ['{{element}} .pagelayer-stars-container' => 'font-size:{{val}}px;'],
6517
  ),
6518
  'stars_spacing' => array(
6521
  'min' => 0,
6522
  'max' => 100,
6523
  'default' => 10,
6524
+ 'screen' => 1,
6525
  'css' => ['{{element}} .pagelayer-stars-icon' => 'margin-left:{{val}}px;'],
6526
  ),
6527
  ],
6566
  'min' => 1,
6567
  'max' => 30,
6568
  'default' => 3,
6569
+ 'screen' => 1,
6570
  'css' => ['{{element}} .pagelayer-divider-seperator' =>'border-top-width: {{val}}px;'],
6571
  ),
6572
  'divider_widht' => array(
6575
  'min' => 1,
6576
  'max' => 100,
6577
  'default' => 50,
6578
+ 'screen' => 1,
6579
  'css' => ['{{element}} .pagelayer-divider-seperator' =>'width: {{val}}%;'],
6580
  ),
6581
  'divider_gap' => array(
6584
  'min' => 1,
6585
  'max' => 100,
6586
  'default' => 10,
6587
+ 'screen' => 1,
6588
  'css' => ['{{element}} .pagelayer-divider-holder' =>'padding-top: {{val}}px; padding-bottom: {{val}}px;'],
6589
  ),
6590
  'divider_alignment' => array(
6642
  'label' => __pl('counter_align'),
6643
  'default' => 'center',
6644
  'css' => 'text-align: {{val}};',
6645
+ 'screen' => 1,
6646
  'list' => [
6647
  'left' => __pl('left'),
6648
  'center' => __pl('center'),
6689
  'type' => 'typography',
6690
  'label' => __pl('counter_number_size'),
6691
  'default' => ',60,,600,,,solid,,,,',
6692
+ 'screen' => 1,
6693
  'css' => ['{{element}} .pagelayer-counter-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6694
  ),
6695
  ],
6710
  'type' => 'typography',
6711
  'label' => __pl('counter_text_style'),
6712
  'default' => ',25,,400,,,solid,,,,',
6713
+ 'screen' => 1,
6714
  'css' => ['{{element}} .pagelayer-counter-info' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6715
  ),
6716
  ],
6717
+ 'styles' => [
6718
  'counter_label_style' => __pl('counter_label_style'),
6719
  'counter_style' => __pl('counter_style'),
6720
  ],
main/template.php ADDED
@@ -0,0 +1,482 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ //////////////////////////////////////////////////////////////
4
+ //===========================================================
5
+ // tampalte.php
6
+ //===========================================================
7
+ // PAGELAYER
8
+ // Inspired by the DESIRE to be the BEST OF ALL
9
+ // ----------------------------------------------------------
10
+ // Started by: Pulkit Gupta
11
+ // Date: 23rd Jan 2017
12
+ // Time: 23:00 hrs
13
+ // Site: http://pagelayer.com/wordpress (PAGELAYER)
14
+ // ----------------------------------------------------------
15
+ // Please Read the Terms of use at http://pagelayer.com/tos
16
+ // ----------------------------------------------------------
17
+ //===========================================================
18
+ // (c)Pagelayer Team
19
+ //===========================================================
20
+ //////////////////////////////////////////////////////////////
21
+
22
+ // Are we being accessed directly ?
23
+ if(!defined('PAGELAYER_VERSION')) {
24
+ exit('Hacking Attempt !');
25
+ }
26
+
27
+ // Pagelayer Template Loading Mechanism
28
+ add_action('setup_theme', 'pagelayer_template_setup_theme', 5);
29
+ function pagelayer_template_setup_theme(){
30
+
31
+ global $pagelayer;
32
+
33
+ //$theme = wp_get_theme();
34
+ //$theme_tags = $theme->get('Tags');
35
+ //print_r($theme);
36
+ //echo $theme->get('Tags').' Get option';
37
+
38
+ $theme_dir = get_template_directory();
39
+ $conf = $theme_dir.'/pagelayer.conf';
40
+ //echo get_template_directory();
41
+
42
+ // Pagelayer based template ?
43
+ if(file_exists($conf)){
44
+
45
+ $pagelayer->cache['template'] = 1;
46
+ $pagelayer->template_conf = @json_decode(file_get_contents($conf), true);
47
+
48
+ // Not a pagelayer theme
49
+ }else{
50
+ return;
51
+ }
52
+
53
+ // ORDER of preference of every template
54
+ // 1) POST ID as per conditions - Only Premium
55
+ // 2) TPL file if there - Free and Premium when pagelayer.conf
56
+ // 3) PHP file if no Posts - Free and Premium
57
+
58
+ // Filter to finally INCLUDE and render our template
59
+ add_filter('template_include', 'pagelayer_template_include', 1000, 1);
60
+
61
+ }
62
+
63
+ // Handle the template files if any
64
+ // NOTE : This has a priority of 100 while the posts based pagelayer_builder_template_redirect has a priority of 10
65
+ // If there are any post based templates, then that is given priority
66
+ add_action( 'template_redirect', 'pagelayer_template_redirect', 100);
67
+ function pagelayer_template_redirect(){
68
+
69
+ global $pagelayer, $post;
70
+
71
+ // If no conf, then we dont have to do anything
72
+ if(empty($pagelayer->template_conf)){
73
+ return;
74
+ }
75
+
76
+ // If post template was not there, search for a header PGL file
77
+ // Also when we are editing, we can render header only when its a pagelayer-content edit
78
+ if(
79
+ (empty($pagelayer->template_editor) || @$pagelayer->template_editor == 'pagelayer-content')
80
+ && empty($pagelayer->template_header)
81
+ ){
82
+ $pagelayer->template_header = pagelayer_template_try_to_apply('header');
83
+ }
84
+
85
+ // If post template was not there, search for a header PGL file
86
+ // Also when we are editing, we cannot render the template file as post is being rendered
87
+ if(empty($pagelayer->template_editor) && empty($pagelayer->template_post)){
88
+
89
+ // Singular style posts
90
+ if ( is_singular() || is_404() ) {
91
+ $pagelayer->template_post = pagelayer_template_try_to_apply('single');
92
+
93
+ // Archive style posts
94
+ } elseif ( is_archive() || is_home() || is_search() ) {
95
+ $pagelayer->template_post = pagelayer_template_try_to_apply('archive');
96
+ }
97
+
98
+ }
99
+
100
+ // If post template was not there, search for a header PGL file
101
+ // Also when we are editing, we can render footer only when its a pagelayer-content edit
102
+ if(
103
+ (empty($pagelayer->template_editor) || @$pagelayer->template_editor == 'pagelayer-content')
104
+ && empty($pagelayer->template_footer)
105
+ ){
106
+ $pagelayer->template_footer = pagelayer_template_try_to_apply('footer');
107
+ }
108
+
109
+ // If we do have a header but not the footer or we have the footer and no header,
110
+ // then we need to make sure to blank the other
111
+ if(!empty($pagelayer->template_header) || !empty($pagelayer->template_footer)){
112
+ add_action('get_header', 'pagelayer_get_header');
113
+ add_action('get_footer', 'pagelayer_get_footer');
114
+ }
115
+
116
+ }
117
+
118
+ // Is our template being rendered
119
+ function pagelayer_template_include($template){
120
+
121
+ global $pagelayer;
122
+
123
+ // Is there any post templates OR are we editing a pagelayer-template ?
124
+ if(!empty($pagelayer->template_post) || !empty($pagelayer->template_editor)){
125
+ $template = $pagelayer->template_post;
126
+ }
127
+
128
+ // Its our template OR are we editing a pagelayer-template, then render it
129
+ if(pathinfo($template, PATHINFO_EXTENSION) == 'pgl' || !empty($pagelayer->template_post) || !empty($pagelayer->template_editor)){
130
+
131
+ get_header();
132
+ echo '<div class="pagelayer-content">';
133
+ pagelayer_template_render($template);
134
+ echo '</div>';
135
+ get_footer();
136
+
137
+ return false;
138
+ }
139
+
140
+ // Just return the original template if its not our file
141
+ return $template;
142
+
143
+ }
144
+
145
+ // Expects the file to include or the POST ID
146
+ function pagelayer_template_render($template){
147
+
148
+ global $pagelayer;
149
+
150
+ // $template can be blank, e.g. blank header / footer
151
+ if(empty($template)){
152
+ return;
153
+ }
154
+
155
+ if(is_numeric($template)){
156
+ echo pagelayer_get_post_content($template);
157
+ }else{
158
+ echo do_shortcode(file_get_contents(get_template_directory().'/'.$template.'.pgl'));
159
+ }
160
+
161
+ }
162
+
163
+ // For check which template will be applied
164
+ function pagelayer_template_try_to_apply($type){
165
+
166
+ global $pagelayer;
167
+
168
+ // Get templates id by type
169
+ $ids = [];
170
+
171
+ // Find the templates by type
172
+ foreach($pagelayer->template_conf as $k => $v){
173
+ if($v['type'] == $type){
174
+ $ids[] = $k;
175
+ }
176
+ }
177
+
178
+ $file = pagelayer_template_check_conditons($ids, true);
179
+
180
+ if( !empty($ids) && !empty($file) ){
181
+ return $file;
182
+ }
183
+
184
+ return false;
185
+
186
+ }
187
+
188
+ // Check conditions of template post ids / template files
189
+ function pagelayer_template_check_conditons($ids = [], $file = false){
190
+
191
+ global $pagelayer;
192
+
193
+ $selected_templs = [];
194
+
195
+ foreach( $ids as $id ){
196
+
197
+ $priority = 0;
198
+ $selected_template = 0;
199
+ $exclude_check = 1;
200
+
201
+ // File based
202
+ if($file){
203
+ $pagelayer_template_conditions = $pagelayer->template_conf[$id]['conditions'];
204
+
205
+ // Post Template based
206
+ }else{
207
+ $pagelayer_template_conditions = get_post_meta( $id, 'pagelayer_template_conditions', true );
208
+ }
209
+
210
+ if( !empty($pagelayer_template_conditions) ){
211
+ foreach( $pagelayer_template_conditions as $condi ){
212
+
213
+ $check = 0;
214
+
215
+ // If the condition name is general priority
216
+ if(empty($condi['template'])){
217
+ $check = 1;
218
+
219
+ // Set General Property 1
220
+ if($priority < 1){ $priority = 1; }
221
+
222
+ // If the condition name is singular
223
+ }elseif( $condi['template'] == 'singular' && ( is_singular() || is_404() ) ){
224
+
225
+ // Check sub_template conditions
226
+ if( empty($condi['sub_template']) ){
227
+ $check = 1;
228
+
229
+ // Set name Property 2
230
+ if($priority < 2){ $priority = 2; }
231
+
232
+ }else{
233
+ $sub_check = 'is_'.$condi['sub_template'];
234
+ $id_check = 0;
235
+
236
+ if( $condi['sub_template'] == 'post' ){
237
+ $sub_check = 'is_single';
238
+ }elseif( is_numeric(strpos($condi['sub_template'] , 'author')) ){
239
+ $exp = explode('_by_', $condi['sub_template']);
240
+
241
+ if($exp[0] == $condi['sub_template']){
242
+ $sub_check = 'is_singular';
243
+ $id_check = ( $sub_check && get_the_author_meta( 'ID' ) == $condi['id'] ) ? 1 : 2;
244
+ }else{
245
+ $sub_check = ($exp[0] == 'post' ? 'is_single' : 'is_'.$exp[0] );
246
+ $id_check = ( $sub_check && get_the_author_meta( 'ID' ) == $condi['id']) ? 1 : 2;
247
+ }
248
+
249
+ }elseif( ($condi['sub_template'] == 'post_tag') || ($condi['sub_template'] == 'category') ){
250
+ $sub_check = 'is_single';
251
+ $id_check = 2;
252
+ $terms = get_the_terms( '', $condi['sub_template']);
253
+
254
+ foreach ( $terms as $term ) {
255
+ $id_check = ( $sub_check && ($condi['id'] == $term->term_taxonomy_id ) ) ? 1 : 2;
256
+ }
257
+
258
+ }
259
+
260
+ }
261
+
262
+ // If the condition name is archives
263
+ }elseif( $condi['template'] == 'archives' && ( is_archive() || is_home() || is_search() ) ){
264
+
265
+ if( empty($condi['sub_template']) ){
266
+ $check = 1;
267
+
268
+ // Set name Property 2
269
+ if($priority < 2){ $priority = 2; }
270
+
271
+ }else{
272
+ $sub_check = 'is_'.$condi['sub_template'];
273
+ if( is_numeric(strpos($condi['sub_template'] , 'tag')) ){
274
+ $sub_check = 'is_tag';
275
+ }elseif($condi['sub_template'] == 'posts_page'){
276
+ $sub_check = 'is_home';
277
+ }
278
+
279
+ }
280
+
281
+ }
282
+
283
+ if( !empty($sub_check) && function_exists($sub_check) ){
284
+ if(!empty($condi['id'])){
285
+
286
+ if(!empty($id_check) && $id_check == 1 ){
287
+ $check = 1;
288
+ // Set id Property 4
289
+ if($priority < 4){ $priority = 4; }
290
+
291
+ }elseif($sub_check($condi['id'] ) && $id_check != 2 ){
292
+ $check = 1;
293
+ // Set id Property 4
294
+ if($priority < 4){ $priority = 4; }
295
+ }
296
+
297
+ }elseif( $sub_check() ){
298
+ $check = 1;
299
+ // Set sub_template Property 3
300
+ $set_prio = 3;
301
+ $sub_template_prio = ['front_page', '404', 'date', 'search', 'posts_page'];
302
+
303
+ foreach($sub_template_prio as $sub_prio){
304
+ if( $condi['sub_template'] == $sub_prio ){
305
+ $set_prio = 4;
306
+ }
307
+ }
308
+
309
+ if($priority < $set_prio){ $priority = $set_prio; }
310
+ }
311
+ }
312
+
313
+ // IF is set to the exclude then
314
+ if($condi['type'] == 'exclude' && $check){
315
+ $exclude_check = 0;
316
+ }
317
+
318
+ if($check){
319
+ // If the template is valid for apply
320
+ $selected_template = $check;
321
+ }
322
+ }
323
+ }
324
+
325
+ // Set priority to template id
326
+ if( $selected_template && $exclude_check ){
327
+ $selected_templs[$id] = $priority;
328
+ }
329
+ }
330
+
331
+ $gprior = 0;
332
+ $sel_id = '';
333
+ foreach( $selected_templs as $id => $prior ){
334
+ if($gprior <= $prior){
335
+ $gprior = $prior;
336
+ $sel_id = $id;
337
+ }
338
+ }
339
+
340
+ return $sel_id;
341
+ }
342
+
343
+ // The header to substitute
344
+ function pagelayer_get_header($name) {
345
+
346
+ global $pagelayer;
347
+
348
+ // Output default header always if we have a header or footer
349
+ ?>
350
+ <!DOCTYPE html>
351
+ <html <?php language_attributes(); ?>>
352
+ <head>
353
+ <meta charset="<?php bloginfo( 'charset' ); ?>" />
354
+ <meta name="viewport" content="width=device-width, initial-scale=1">
355
+ <link rel="profile" href="https://gmpg.org/xfn/11">
356
+ <?php wp_head(); ?>
357
+ </head>
358
+
359
+ <body <?php body_class(); ?>>
360
+ <?php
361
+
362
+ // Output our content
363
+ if(!empty($pagelayer->template_header)){
364
+
365
+ echo '
366
+ <header class="pagelayer-header">';
367
+
368
+ // Render the content
369
+ pagelayer_template_render($pagelayer->template_header);
370
+
371
+ echo '
372
+ </header>';
373
+
374
+ }
375
+
376
+ // Avoid running wp_head hooks again
377
+ remove_all_actions('wp_head');
378
+
379
+ $templates = [];
380
+ $name = (string) $name;
381
+ if ($name !== '') {
382
+ $templates[] = 'header-'.$name.'.php';
383
+ }
384
+
385
+ $templates[] = 'header.php';
386
+
387
+ // Since, we already outputted our header, we need to do a locate_template for the existing theme
388
+ // This is because, locate_template has the 3rd param as require once, so in the get_header
389
+ // the header.php will not load again
390
+ ob_start();
391
+ locate_template( $templates, true );
392
+ ob_get_clean();
393
+
394
+ }
395
+
396
+ // The footer to load
397
+ function pagelayer_get_footer($name) {
398
+
399
+ global $pagelayer;
400
+
401
+ // Output our content
402
+ if(!empty($pagelayer->template_footer)){
403
+
404
+ echo '
405
+ <footer class="pagelayer-footer">';
406
+
407
+ pagelayer_template_render($pagelayer->template_footer);
408
+
409
+ echo '
410
+ </footer>';
411
+
412
+ }
413
+
414
+ // Output default footer always if we have a header or footer
415
+ wp_footer();
416
+ echo '</body>
417
+ </html>';
418
+
419
+ // Avoid running wp_footer hooks again
420
+ remove_all_actions( 'wp_footer' );
421
+
422
+
423
+ $templates = [];
424
+ $name = (string) $name;
425
+ if ($name !== '') {
426
+ $templates[] = 'footer-'.$name.'.php';
427
+ }
428
+
429
+ $templates[] = 'footer.php';
430
+
431
+ // Since, we already outputted our footer, we need to do a locate_template for the existing theme
432
+ // This is because, locate_template has the 3rd param as require once, so in the get_header
433
+ // the footer.php will not load again
434
+ ob_start();
435
+ locate_template( $templates, true );
436
+ ob_get_clean();
437
+
438
+ }
439
+
440
+ // Any sidebar to load ?
441
+ function pagelayer_get_sidebar($name) {
442
+
443
+ global $pagelayer;
444
+
445
+ // Output our content
446
+ if(!empty($pagelayer->template_sidebar)){
447
+ pagelayer_template_render($pagelayer->template_sidebar);
448
+ }
449
+
450
+ $templates = [];
451
+ $name = (string) $name;
452
+ if ($name !== '') {
453
+ $templates[] = 'sidebar-'.$name.'.php';
454
+ }
455
+
456
+ $templates[] = 'sidebar.php';
457
+
458
+ // Since, we already outputted our sidebar, we need to do a locate_template for the existing theme
459
+ // This is because, locate_template has the 3rd param as require once, so in the get_header
460
+ // the sidebar.php will not load again
461
+ ob_start();
462
+ locate_template( $templates, true );
463
+ ob_get_clean();
464
+
465
+ }
466
+
467
+ // Get the custom post content by id
468
+ function pagelayer_get_post_content($id){
469
+ global $pagelayer;
470
+
471
+ // Get the content
472
+ $post = get_post($id);
473
+
474
+ $content = $post->post_content;
475
+ pagelayer_load_shortcodes();
476
+ //$content = do_shortcode( $content );
477
+ $content = apply_filters( 'the_content', $content );
478
+ $content = str_replace( ']]>', ']]&gt;', $content );
479
+
480
+ return $content;
481
+
482
+ }
pagelayer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: PageLayer
4
  Plugin URI: http://wordpress.org/plugins/pagelayer/
5
  Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
6
- Version: 0.9.6
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
3
  Plugin Name: PageLayer
4
  Plugin URI: http://wordpress.org/plugins/pagelayer/
5
  Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
6
+ Version: 0.9.7
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, editor, landing page, drag-and-drop, pagelayer, softaculous,
4
  Requires at least: 4.7
5
  Tested up to: 5.2
6
  Requires PHP: 5.2.4
7
- Stable tag: 0.9.6
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
@@ -113,6 +113,17 @@ Do you have questions related to PageLayer ? Use the following links :
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
 
 
 
 
 
 
116
  = 0.9.6 (June 25, 2019) =
117
  * [Bug Fix] Undo History small fix
118
 
4
  Requires at least: 4.7
5
  Tested up to: 5.2
6
  Requires PHP: 5.2.4
7
+ Stable tag: 0.9.7
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
113
 
114
  == Changelog ==
115
 
116
+ = 0.9.7 (August 13, 2019) =
117
+ * [Feature] Introducing template feature which allows theme developers to make their themes with Pagelayer
118
+ * [Feature] Added Settings in the editor to change the post title
119
+ * [Task] Image Box added border options for the image
120
+ * [Task] Added heading hover style options for Image Box and Icon Box
121
+ * [Task] Added Column Gap and Row Gap for Grid Gallery
122
+ * [Task] Added font family to the text editor
123
+ * [Task] Added the screen type option for multiple settings
124
+ * [Task] Made Owl Carousel the default slider as it has much more features
125
+ * [Task] Improved code for AJAX Calls
126
+
127
  = 0.9.6 (June 25, 2019) =
128
  * [Bug Fix] Undo History small fix
129