File manager - Edit - /home/aresglob/public_html/wp/wp-includes/images/smilies/pagelayer-pro.tar
Back
css/premium-frontend.css 0000644 00000071360 15104542337 0011354 0 ustar 00 /* Pagelayer Premium Frontend Framework */ /* Image hotspot */ .pagelayer-image-hotspots-anim:hover:before{ transform: scale(2); } .pagelayer-image-hotspots-anim .fas{ position: relative; } .pagelayer-image-hotspots-anim::before { content: ""; transform: scale(1); position: absolute; top:0; left:0; bottom:0; right:0; pointer-events: none; animation: pagelayer-hotspot 2s infinite; } @keyframes pagelayer-hotspot { 0% {transform: scale(1);opacity: 1;} 100% {transform: scale(1.5); opacity: 0;} } .pagelayer-hotspots-icon-holder .pagelayer-tooltip-text{ visibility:hidden; } .pagelayer-hotspots-hover .pagelayer-hotspots-icon-holder:hover .pagelayer-tooltip-text, .pagelayer-hotspots-always .pagelayer-hotspots-icon-holder .pagelayer-tooltip-text, .pagelayer-hotspots-icon-holder.pagelayer-clicked .pagelayer-tooltip-text{ visibility:visible; } /* Image Hotspot end */ /* Video Slider */ .pagelayer-imgsl-box{ position:relative; } .pagelayer-video_slider .pagelayer-imgsl-prev a:after{ content: "\f104"; } .pagelayer-video_slider .pagelayer-imgsl-next a:after{ content: "\f105"; } .pagelayer-video_slider .pagelayer-imgsl-controls li a:after{ font-family: "FontAwesome", "Font Awesome 5 Free"; background-image: none; } /* Video Slider End*/ /* Glow Button */ .pagelayer-btn-anim-glow{ color: #fff; background: #111; cursor: pointer; position: relative; z-index: 0; display:inline-block; line-height:1em; } .pagelayer-btn-anim-glow:before{ content: ''; background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); position: absolute; top: -2px; left:-2px; background-size: 400%; z-index: -1; filter: blur(5px); width: calc(100% + 4px); height: calc(100% + 4px); animation: glowing 20s linear infinite; opacity: 0; transition: opacity .3s ease-in-out; } .pagelayer-btn-anim-glow:active { color: #000 } .pagelayer-btn-anim-glow:active:after { background: transparent; } .pagelayer-btn-anim-glow:hover:before { opacity: 1; } .pagelayer-btn-anim-glow:after { z-index: -1; content: ''; position: absolute; background: #111; left: 0; top: 0; } @keyframes glowing { 0% { background-position: 0 0; } 50% { background-position: 400% 0; } 100% { background-position: 0 0; } } /* Glow Button End */ /* Thin Button */ .pagelayer-btn-anim-thin{ transition: all 0.5s; position: relative; display: inline-block; cursor: pointer; line-height:1em; z-index: 0; } .pagelayer-btn-anim-thin::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; transition: all 0.5s; background-color: inherit; border-color: inherit; border-radius: inherit; } .pagelayer-btn-anim-thin::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; transition: all 0.5s; background-color: inherit; border-color: inherit; border-radius: inherit; } .pagelayer-btn-anim-thin:hover::before { transform: rotate(-45deg); border-color: inherit; border-radius: inherit; } .pagelayer-btn-anim-thin:hover::after { transform: rotate(45deg); border-color: inherit; border-radius: inherit; } /* Thin Button End */ /* Slide Button */ .pagelayer-btn-anim-slide{ position: relative; display: inline-block; cursor: pointer; transition: all .35s; line-height:1em; } .pagelayer-btn-text{ position: relative; z-index: 1; } .pagelayer-btn-anim-left:after{ position: absolute; content: ""; top: 0; left: 0; width: 0; height: 100%; background: #00ff72; transition: all .35s; border-radius: 5px 5px 5px 5px; } .pagelayer-btn-anim-right:after{ position: absolute; content: ""; top: 0; right: 0; width: 0; height: 100%; background: #00ff72; transition: all .35s; border-radius: 5px 5px 5px 5px; } .pagelayer-btn-anim-slide:hover{ color: #fff; } .pagelayer-btn-anim-slide:hover:after{ width: 100%; } /* Slide Button end*/ /* Slide overlay */ .pagelayer-slide-bg-overlay{ position:absolute; top: 0; left: 0; right: 0; bottom: 0; } .pagelayer-content-slide-bg{ position:absolute; top: 0; left: 0; right: 0; bottom: 0; animation-timing-function:ease; animation-fill-mode: forwards; } .pagelayer-owl-item:not(.active) .pagelayer-content_slide .pagelayer-content-slide-bg, .pagelayer-owl-item:not(.active) .pagelayer-content_slide .pagelayer-wow{ animation-name: none !important; } @keyframes pagelayerKenBurn {0%{transform: scale(1.0);}100%{transform: scale(1.2);}} @keyframes pagelayerKenBurnReverse{0%{transform: scale(1.2);}100%{transform-origin: bottom left;transform: scale(1.0);}} .pagelayer-slide-dot-pos-top .pagelayer-owl-dots{ position: absolute; top: 0 ; left: 50%; transform: translateX(-50%); } .pagelayer-slide-dot-pos-left .pagelayer-owl-dots{ position:absolute; left:0; display:flex; flex-direction:column; top: 50% !important; transform: translateY(-50%); } .pagelayer-slide-dot-pos-right .pagelayer-owl-dots{ position:absolute; right:0; display:flex; flex-direction:column; top: 50% !important; transform: translateY(-50%); } .pagelayer-slide-arrow-pos-top .pagelayer-owl-prev, .pagelayer-slide-arrow-pos-top .pagelayer-owl-next{ position:relative; top:unset; transform:none; } .pagelayer-slide-arrow-pos-top .pagelayer-owl-holder { display:flex !important; flex-direction:column; } .pagelayer-slide-arrow-pos-top .pagelayer-owl-stage-outer { order:2 !important; } .pagelayer-slide-arrow-pos-top .pagelayer-owl-nav { order:1 !important; display:flex; } .pagelayer-slide-arrow-pos-top .pagelayer-owl-dots { order:3 !important; } .pagelayer-slide-arrow-pos-bottom .pagelayer-owl-prev, .pagelayer-slide-arrow-pos-bottom .pagelayer-owl-next { position:relative; top:unset; transform:none; } .pagelayer-slide-arrow-pos-bottom .pagelayer-owl-nav { display:flex; } .pagelayer-slide-dot-number .pagelayer-owl-dots { counter-reset: plSlidePager; } .pagelayer-slide-dot-number .pagelayer-owl-dot span::before { counter-increment: plSlidePager; content: counter(plSlidePager); font-weight: 600; } /* Audio */ .mejs-container, .mejs-controls{ background: none !important; } .mejs-container{ width: 100% !important; height:unset !important; } .mejs-playpause-button button, .mejs-volume-button button{ position: relative !important; margin: 0 !important; padding: 15px !important; width: unset !important; } .mejs-playpause-button button:after, .mejs-volume-button button:after{ font-size: inherit; font-family: "FontAwesome", "Font Awesome 5 Free"; position: absolute; top: 50%; font-weight: 900; left: 50%; transform: translate(-35%, -50%); } .mejs-play button:after{ content: '\f04b'; } .mejs-replay button:after{ content: '\f01e'; } .mejs-mute button:after{ content: '\f028'; } .mejs-unmute button:after{ content: '\f026'; } .mejs-button>button{ background: none !important; } .mejs-pause button:after{ content: '\f04c'; } .mejs-controls, .mejs-horizontal-volume-total, .mejs-horizontal-volume-current{ position:unset !important; } .mejs-controls > * { width: unset !important; display: flex !important; align-items: center; padding: 0 5px !important; } .mejs-controls{ padding:0 !important; } .mejs-time-slider, .mejs-time-rail{ margin: 0 !important; } .mejs-horizontal-volume-current{ height: 100% !important; } .mejs-time-total{ width: calc( 100% - 10px ) !important; } .pagelayer-audio-container *{ height: unset !important; } .mejs-time-handle, .mejs-time-handle-content{ height: 100% !important; top: 0 !important; } .pagelayer-audio-container .mejs-time-buffering, .pagelayer-audio-container .mejs-time-loaded, .pagelayer-audio-container .mejs-time-current, .pagelayer-audio-container .mejs-time-hovered, .pagelayer-audio-container .mejs-time-float, .pagelayer-audio-container .mejs-time-float-corner, .pagelayer-audio-container .mejs-time-float, .pagelayer-audio-container .mejs-horizontal-volume-current{ height:100% !important; } /* Audio end */ /*** Menu List ***/ .pagelayer-menu-item, .pagelayer-menu-title{ display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; } .pagelayer-menu-separeter, .pagelayer-menu-details{ -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; flex-grow: 1; } .pagelayer-menu-includes{ margin-top: -7px; } /*** Postfolio ***/ .pagelayer-postfolio-container{ display: grid; } .pagelayer-postfolio-thumb{ display:inline-block; position:relative; background-size:cover !important; background-position:center !important; } .pagelayer-postfolio-content{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; } .pagelayer-postfolio-content .pagelayer-entry-title{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 95%; text-align: center; } .pagelayer-postfolio-content .pagelayer-entry-title, .pagelayer-postfolio-content:hover .pagelayer-entry-title{ padding:0; margin:0; opacity: 0; } .pagelayer-postfolio-filter{ text-align:center; } .pagelayer-postfolio-btn{ display:inline-block; padding: 5px 15px; cursor:pointer; } /*** Postfolio End ***/ /* Search Form */ .pagelayer-search-classic .pagelayer-search-fields{ display: flex; overflow:hidden; } .pagelayer-search-classic .pagelayer-search-fields input.pagelayer-search-input{ border-width:0px; } .pagelayer-search-classic .pagelayer-search-fields .pagelayer-search-submit{ border-radius:0px; } .pagelayer-search-toggle, .pagelayer-search-full-screen .pagelayer-search-fields{ display:none; } .pagelayer-search-full-screen .pagelayer-search-toggle{ display:inline-block; text-align: center; } .pagelayer-search-full-screen .pagelayer-search-fields.show{ position: fixed; top: 0; left: 0; background: #211c1c; bottom: 0; right: 0; z-index: 99; align-items: center; display: flex; text-align: center; flex-direction: column; } .pagelayer-search-full-screen .pagelayer-search-input, .pagelayer-search-full-screen .pagelayer-search-input:focus{ width: 60%; text-align: center; background: transparent; border-width: 0; border-bottom-width: 2px; position: absolute; top: 50%; color:#fff; } .pagelayer-search-full-screen .pagelayer-search-submit{ display:none; } /* Search Form end*/ /* Slide */ .pagelayer-slide-btns>div{ display: inline-block; } .pagelayer-slides{ overflow:hidden; } .pagelayer-slides .pagelayer-slide, .pagelayer-slides .pagelayer-content-slide{ height:80vh; } .pagelayer-content-slide > *{ flex:1 } .pagelayer-slides .pagelayer-content-slide{ align-items: center; display: flex; flex-wrap:wrap; } .pagelayer-slides *{ line-height:1.4; } .pagelayer-slide{ height:100%; } .pagelayer-slide-holder{ width:50%; position:relative; } /* Slide End */ /* Author Box*/ .pagelayer-author-image{ width: 100px; } .pagelayer-author-btn{ display: inline-block; } .pagelayer-layout-left{ display:flex; } .pagelayer-layout-left .pagelayer-author-profile-desc, .pagelayer-layout-right .pagelayer-author-profile-desc{ flex:1; } .pagelayer-layout-center{ display:black; } .pagelayer-layout-right{ display:flex; flex-direction: row-reverse; } /* Author Box end*/ /* Login Box start */ .pagelayer-login-input-field{ display:block; width:100%; margin-left:auto; margin-right:auto; } .pagelayer-login-form .pagelayer-rememberMe{ display:inline-block !important; margin:5px; } .pagelayer-login-form .pagelayer-login-wrappers:last-child{ margin-bottom: none !important; } .pagelayer-login-input-left{ margin-left: unset; } .pagelayer-login-input-right{ margin-right: unset; } .pagelayer-login-div label{ display: inline-block; } /* Login Box end */ /* SiteMap start */ .pagelayer-sitemap-flex-wrapper{ display:flex; flex-flow:row wrap; } .pagelayer-sitemap-section{ } /* SiteMap end */ /* Post slider Start*/ .pagelayer-posts-slider-post{ margin:10px; border:1px solid #c5c5c5; box-shadow:1px 1px 10px #c6bfbf; } .pagelayer-posts-slider-img{ width:100%; height:12em; object-fit: cover; -o-object-fit: cover; } .pagelayer-posts-slider-content{ padding:0px 10px 20px; } .pagelayer-posts-slider-content p{ margin:0px; } .pagelayer-posts-slider-title{ font-size: 20px; color:#000000; font-weight: 600; line-height: 1.2; margin-top:20px !Important; margin-bottom: 20px !Important; } .pagelayer-posts-slider-excerpt p{ color:#636060; } .pagelayer-posts-slider-main{ padding:0px; list-style-type: none; } .pagelayer-posts-slider-post .blog-grid-button{ display: none; } .pagelayer-posts-slider-container[hide-posts-title="true"] .pagelayer-posts-slider-title, .pagelayer-posts-slider-container[hide-posts-image="true"] .pagelayer-posts-slider-featured-img, .pagelayer-posts-slider-container[hide-posts-date="true"] .pagelayer-post-slider-date, .pagelayer-posts-slider-container[hide-post-link="true"] .pagelayer-posts-slider-link{ display:none; } .pagelayer-prev-arrow:before{ font-family: "fontawesome" !Important; content: "\f053" !Important; color: Red !Important; font-size:30px !Important; } .pagelayer-next-arrow:before{ font-family: "fontawesome" !Important; content: "\f054" !Important; color: Red !Important; font-size:30px !Important; } .pagelayer-posts-slider-main .slick-slide{ display: none; float: left; height: auto; min-height: 1px; } /*post slider css end*/ /*fb buttons css start*/ .pagelayer-fb-btn-details{ padding:20px; } /*Review Start*/ .pagelayer-review-author{ position: relative; } .pagelayer-review-author .pagelayer-icon-holder{ position: absolute; top:0px; right:10px; } .pagelayer-review-slide{ border:1px solid #000000; margin: 0px 0px 5px 0px; } .pagelayer-review-slide hr{ margin:0; } .pagelayer-review-author-img, .pagelayer-review-author-details{ display:inline-block; vertical-align: middle; } .pagelayer-review-author-img img{ max-width: 150px; object-fit: cover; -o-object-fit: cover; } .pagelayer-review-author-details{ vertical-align: middle; } .pagelayer-review-text, .pagelayer-review-author{ margin:5px 10px; } /*Review End*/ /*WooCommerce Menu Cart*/ .pagelayer-cart-button-icon[data-counter]:before{ display:none; } .pagelayer-menu-cart-toggle[pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:before{ content: attr(data-counter); display: block; position: absolute; min-width: 1.6em; height: 1.6em; line-height: 1.5em; top: -.7em; right: -.7em; border-radius: 100%; color: #ffffff; background-color: #000; text-align: center; font-size: 10px; } .pagelayer-menu-cart-toggle[pagelayer-icon="plain"] .pagelayer-cart-button-icon[data-counter]:before { content: attr(data-counter); display: inline-block; } .pagelayer-menu-cart-toggle[pagelayer-empty-indicator="true"] .pagelayer-cart-button-icon[data-counter="0"]:before{ display:none; } .pagelayer-menu-cart-hidden{ display:none; } .pagelayer-cart-button-icon{ position:relative; } .pagelayer-menu-cart-container{ background-color:#e1e1e1; z-index:999; padding:20px; display:none; } [pagelayer-container-position="fixed_right"] .pagelayer-menu-cart-container{ position:fixed; top:0; right:0; height:100%; } [pagelayer-container-position="fixed_left"] .pagelayer-menu-cart-container{ position:fixed; top:0; left:0; height:100%; } [pagelayer-container-position="dropdown"] .pagelayer-menu-cart-container{ position:absolute; left:auto; right:auto; } .pagelayer-menu-cart-close{ cursor:pointer; } .pagelayer-cart-button{ display:inline-block; } .pagelayer-menu-cart-container{ overflow-y:auto; } .pagelayer-menu-cart-container .woocommerce-mini-cart-item img, .pagelayer-menu-cart-container .woocommerce-mini-cart-item a{ margin-right:10px; } .pagelayer-menu-cart-container .woocommerce-mini-cart-item{ list-style:none } /*WooCommerce Menu Cart End*/ /* Call to action */ .pagelayer-cta-img-holder{ overflow:hidden; width:100%; } .pagelayer-cta-image{ -o-object-fit: cover; object-fit: cover; /* height:100%; */ background-size: cover; background-position: center; } .pagelayer-cta-image:before{ content:''; position:absolute; width:100%; height:100%; z-index:1; } .pagelayer-call[class*="pagelayer-cta-align"]{ display:flex; flex-wrap:wrap; position:relative; } .pagelayer-cta-align-right{ flex-direction:row-reverse; } .pagelayer-cta-content-holder{ display:flex; flex-grow:1; } .pagelayer-cta-content{ width:100%; } .pagelayer-cta-ribbon:before { content: ""; height: 0; width: 0; display: block; position: absolute; border-top: solid; border-bottom: solid; z-index: -1; } .pagelayer-cta-ribbon:after{ content: ""; width: 100%; left:0; position:absolute; } .pagelayer-cta-ribbon-left:before{ right: 0; border-right: solid transparent; } .pagelayer-cta-ribbon-right:before{ left: 0; border-left: solid transparent; } .pagelayer-cta-ribbon-text{ height:100%; } .pagelayer-cta-ribbon-text:before{ content: ""; height: 0; width: 0; display: block; position: absolute; top: 0; border-top: solid; border-bottom: solid; border-right: solid transparent; border-left: solid transparent; } .pagelayer-cta-layout-overlay .pagelayer-cta-image{ width:100%; } .pagelayer-cta-layout-overlay .pagelayer-cta-content-holder{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .pagelayer-cta-zoomin:hover .pagelayer-cta-image{ -ms-transform: scale(1.5); -webkit-transform: scale(1.5); transform:scale(1.5); } .pagelayer-cta-zoomout:hover .pagelayer-cta-image{ -ms-transform: scale(0.5); -webkit-transform: scale(0.5); transform:scale(0.5); } .pagelayer-cta-moveup:hover .pagelayer-cta-image{ background-position: top; } .pagelayer-cta-movedown:hover .pagelayer-cta-image{ background-position: bottom; } .pagelayer-cta-moveleft:hover .pagelayer-cta-image{ background-position: left; } .pagelayer-cta-moveright:hover .pagelayer-cta-image{ background-position: right; } .pagelayer-cta-content-holder{ z-index:1; } /* Call to action end */ /* Table start */ .pagelayer-table{ overflow-x: auto; } .pagelayer-table-holder{ width:100%; } .pagelayer-table-holder > tbody > tr > td{ word-break:break-word; } /* Table end */ /* Pop-up templates start */ .pagelayer-popup-modal{ position: fixed; height: 100%; width: 100%; top: 0; left: 0; z-index: 9999; display:none; align-items:center; justify-content:center; pointer-events:none; } .pagelayer-popup-modal-content{ width: 375px; background-color:#ffffff; min-height:70px; position:relative; pointer-events:all; } .pagelayer-popup-content{ height:100%; overflow:auto; } .pagelayer-popup-close{ position:absolute; top:2%; left:95%; cursor:pointer; display:none; } /* Pop-up templates end */ /* Image Portfolio */ .pagelayer-category-holder{ text-align:center; padding-bottom:20px; } .pagelayer-pfbtn{ border:none; padding:10px 10px; background-color:#333; color:#fff; margin:0 5px; cursor:pointer; } .pagelayer-img_portfolio-holder>div{ width:33%; } .pagelayer-single_img{ padding:10px; } .pagelayer-pf-img{ position:relative; } .pagelayer-pf-img .pagelayer-image-overlay-content{ text-align: center; width:100%; } .pagelayer-single_img .pagelayer-image-overlay{ height: 0%; opacity:1; overflow:hidden; background-color:rgba(3,3,3,0.5); align-items: center; } .pagelayer-single_img:hover .pagelayer-image-overlay{ height: 100%; } .pagelayer-overlay-heading{ color:#ffffff; } .pagelayer-single_img .pagelayer-image-overlay-text{ color: #c7b7b7; } .pagelayer-single_img .pagelayer-image-overlay-icon{ font-size: 40px; color: #ffffff; } .pagelayer-scrolling-effects{ transition: background .3s,border .3s,-webkit-border-radius .3s,-webkit-box-shadow .3s !important; -webkit-transition: background .3s,border .3s,-webkit-border-radius .3s,-webkit-box-shadow .3s !important; transition-delay:0s !important; -webkit-transition-delay:0s !important; transition-timing-function: cubic-bezier(0,.32,.07,1.03) !important; -webkit-transition-timing-function: cubic-bezier(0,.32,.07,1.03) !important; position:relative; z-index:1; } .pagelayer-mouse-effects{ transition-delay:0s !important; -webkit-transition-delay:0s !important; transition-timing-function: cubic-bezier(0,.32,.07,1.03) !important; -webkit-transition-timing-function: cubic-bezier(0,.32,.07,1.03) !important; position:relative; z-index:1; } /*Timeline widget*/ /* The actual timeline (the vertical ruler) */ .pagelayer-timeline { position: relative; margin: 0 auto; } /* The actual timeline (the vertical ruler) */ .pagelayer-timeline::after { content: ''; position: absolute; width: 6px; top: 0; bottom: 0; left: 50%; margin-left: -3px; } /* Container around content */ .pagelayer-timeline-container { padding: 10px 40px; position: relative; background-color: inherit; width: 100%; display:flex; box-sizing: border-box; } .pagelayer-timeline .pagelayer-timeline-container{ padding-bottom:50px; } .pagelayer-timeline-center-circle-container{ height:inherit; width:40px; position:relative; margin-left:auto; margin-right:auto; box-sizing: border-box; } /* The circles on the timeline */ .pagelayer-timeline-center-circle{ position: absolute; text-align:center; background-color: white; display: flex; flex-direction: column; justify-content: center; z-index: 1; box-sizing: border-box; } .pagelayer-timeline-circle-text p{ margin-top:auto; margin-bottom:auto; } /* Place the container to the left */ .pagelayer-timeline-container-left { width:50%; } .pagelayer-timeline-container-left .pagelayer-timeline-content{ margin-left:auto; margin-right:10%; } /* Place the container to the right */ .pagelayer-timeline-container-right { width:50%; } .pagelayer-timeline-container-right .pagelayer-timeline-content{ margin-left:10%; margin-right:auto; } /*both side container css*/ .pagelayer-timeline-left .pagelayer-timeline-container-right, .pagelayer-timeline-right .pagelayer-timeline-container-left{ visibility:hidden; } /* The actual content */ .pagelayer-timeline-content { padding: 20px 30px; position: relative; word-break: break-word; box-sizing: border-box; overflow:hidden; } .pagelayer-timeline-content .pagelayer-heading-holder *{ margin:0px; } @media screen and (max-width: 600px) { .pagelayer-timeline::after { left: 31px; } .pagelayer-timeline-center-circle-container { position:absolute; height:100%; left:11px; top:0; } .pagelayer-timeline-container{ display:inline-block; } .pagelayer-timeline-container-left, .pagelayer-timeline-container-right{ width:100%; margin:10px !important; margin-left: 30px !important; } .pagelayer-timeline-container-left .pagelayer-timeline-content, .pagelayer-timeline-container-right .pagelayer-timeline-content{ margin:0; } } /*Timeline widget end*/ /*facebook page css start*/ .pagelayer-fb-page-container, .pagelayer-fb-embed-container{ text-align:center; } .pagelayer-fb-embed-container .fb-embed{ width:100%; } .pagelayer-fb-btn-container .fb-like iframe{ width:auto !important; } /*facebook page css end*/ /* pagelayer sticky */ .pagelayer-sticky-ele{ transition: none; } /*pagelayer sticky end*/ /* Product image css */ .pagelayer-woo-gallery-left ol{ padding: 0px !important; margin: 0px !important; order: 1; display: grid; grid-template-columns: repeat(1,auto); overflow: hidden; list-style: none; } .pagelayer-woo-gallery-left ol li img, .gallery-thumb-position-left ol li{ width: 100% !important; height:100% } .pagelayer-woo-gallery-left .flex-viewport{ order:2; } .pagelayer-woo-gallery-left .woocommerce-product-gallery{ grid-template-columns: 20% 80%; display: grid; overflow: hidden; box-sizing: border-box; } .pagelayer-woo-gallery-right ol{ text-align: left; display: grid; grid-template-columns: repeat(1,auto); overflow: hidden; list-style: none; padding: 0px !important; margin: 0px !important; } .pagelayer-woo-gallery-right ol li img, .gallery-thumb-position-right ol li{ width: 100% !important; height:100%; } .pagelayer-woo-gallery-right .woocommerce-product-gallery{ grid-template-columns: 80% 20%; display: grid; overflow: hidden; padding: 0; margin: 0; } .pagelayer-woo-gallery-top .flex-viewport{ order:2; } .pagelayer-woo-gallery-top ol{ width: 100%; order: 1; text-align: left; display: flex !important; overflow: hidden; list-style: none; padding: 0px !important; margin: 0px !important; } .pagelayer-woo-gallery-top ol li{ flex: 1; width: 100%; } .pagelayer-woo-gallery-top ol li img{ width: 100%; height: 100%; } .pagelayer-woo-gallery-top .woocommerce-product-gallery{ grid-template-columns: repeat(1, auto); display: grid; overflow: hidden; padding: 0; margin: 0; } .pagelayer-woo-gallery-bottom ol{ width: 100%; text-align: left; display: flex !important; overflow: hidden; list-style: none; padding: 0px !important; margin: 0px !important; } .pagelayer-woo-gallery-bottom ol li{ flex: 1; width: 100%; } .pagelayer-woo-gallery-bottom ol li img{ width: 100%; height: 100%; } .pagelayer-woo-gallery-top .woocommerce-product-gallery{ grid-template-columns: repeat(1, auto); display: grid; overflow: hidden; padding: 0; margin: 0; } .pagelayer-product-images-container .woocommerce-product-gallery, .pagelayer-product-images-container .flex-control-nav li{ width: 100% !important; } .pagelayer-data-tabs-container .woocommerce div.product .woocommerce-tabs ul.tabs li { margin:0 -2px !important; border:auto !important; } .pagelayer-data-tabs-container .wc-tabs{ margin-bottom:0px !important; } /* Product image end*/ /* Before After Start*/ .pagelayer-before-after-container{ width:100%; height: auto; margin:0; } .pagelayer-before-after-slider{ width:100%; position:relative; overflow:hidden; line-height: 0 !important; } .pagelayer-after-image{ position:absolute; width: 100%; height:100%; top:0; left:0; overflow:hidden; z-index:1; line-height: 0 !important; clip-path:polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%); } .pagelayer-before-image{ height: 100% !important; } .pagelayer-before-after-slider-vertical .pagelayer-after-image{ clip-path:polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%); } .pagelayer-before-image img, .pagelayer-after-image img{ width: 100%; background: hsla(0,0%,100%,.65); height: 100%; user-select: none; object-fit: fill; } .pagelayer-resizer{ position: absolute; display: flex !important; align-items: center; top: 0; height: 100%; width: 4px; left: 50%; background: white; -ms-touch-action: pan-y; touch-action: pan-y; z-index: 1; cursor: e-resize !important; } .pagelayer-before-after-slider-horizontal.resize{ cursor: e-resize !important; } .pagelayer-before-after-slider-vertical.resize{ cursor: n-resize !important; } .pagelayer-before-after-slider-vertical .pagelayer-resizer{ width: 100%; height: 4px; top: 50%; left: 0% !important; z-index: 1; cursor: n-resize !important; } .pagelayer-resizer:before{ background: #42414f; font-weight: 900; display: flex; justify-content: center; align-items: center; color: white; position: absolute; min-width: 20px; min-height: 20px; border-radius: 50%; border: 2px solid; border-color: rgb(255, 255, 255); top: 50%; left: 50%; box-sizing: unset; padding: 5px; transform: translateX(-50%) translateY(-50%); } .pagelayer-before-btn, .pagelayer-after-btn{ font-size: 14px; position: absolute; top: 50%; transform: translateY(-50%); left: 0; color: white; background-color: #129efaff; font-size: 13px; padding: 8px 17px; border: 0px solid #42414f; cursor: pointer; border-radius: 2px; text-align: center; z-index: 1; } .pagelayer-after-btn{ left: auto; right: 0; } .pagelayer-before-after-slider-vertical .pagelayer-before-btn{ top: 0; left: 50%; transform: translateX(-50%); } .pagelayer-before-after-slider-vertical .pagelayer-after-btn{ left: 50%; transform: translateX(-50%); bottom:0%; top:initial; right: auto; } .pagelayer-before-after-container[data-resize-event="none"] .pagelayer-resizer{ cursor: auto !important; } .pagelayer-before-after-container[data-resize-event="none"] .pagelayer-resizer:before{ display:none; } /* Before After End*/ /* Image Map Widget */ .pagelayer-imgmap-container { position: relative; overflow: hidden; } .pagelayer-imgmap-wrapper { position: absolute; width: 100%; height: 100%; } .pagelayer-imgmap-svg { width: 100%; height: 100%; margin: 0 !important; } main/download_google_fonts.php 0000644 00000007060 15104542337 0012564 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // download_google_fonts.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } // Download google fonts function pagelayer_pro_download_google_fonts($url){ global $wp_filesystem; if (!defined('FS_METHOD')) { define( 'FS_METHOD', 'direct' ); } $uploads_dir = wp_upload_dir(); $font_url = $uploads_dir['baseurl'].'/pl-google-fonts'; $font_dir = $uploads_dir['basedir'].'/pl-google-fonts'; // Find hash of current url $url_md5 = md5($url); $local_path = $font_dir.'/'.$url_md5.'.css'; if(file_exists( $local_path ) ){ return $local_path; } // Load Wp filesystem class if ( ! function_exists( 'WP_Filesystem' ) ) { $file_path = ABSPATH . 'site-admin/includes/file.php'; $file_path = file_exists($file_path) ? $file_path : ABSPATH . 'wp-admin/includes/file.php'; include $file_path; } WP_Filesystem(); // Is google fonts directory exists? if( !file_exists( $font_dir ) ){ wp_mkdir_p( $font_dir ); } //verify fonts upload directory exists or not $fonts_dir = $font_dir.'/fonts'; if( !file_exists( $fonts_dir ) ){ wp_mkdir_p($fonts_dir); } // Fetch stylesheet $useragent = array( 'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36'); $response = wp_remote_get($url, $useragent); $response_code = wp_remote_retrieve_response_code($response); if ( is_wp_error( $response ) || $response_code !== 200 ) { return false; } $remote_file = wp_remote_retrieve_body($response); // Collect google fonts urls preg_match_all( '/url\(.*?\)/i', $remote_file, $font_links ); if(!isset( $font_links[0] ) || count( $font_links[0] ) < 1 ) { return false; } foreach( $font_links[0] as $key => $_fontlink ){ $download_url = str_ireplace( array('url(',')'), '', $_fontlink ); if(empty($download_url)){ continue; } $parse_url = parse_url($download_url); $font_name = basename($parse_url['path']); $local_file = $font_dir.'/fonts/'.$font_name; $_local_file = './fonts/'.$font_name; if( empty( $font_name ) || strpos($font_name, '.woff2') === false ){ continue; } // Download font files if(!file_exists( $local_file ) ){ $tmp_file = download_url( $download_url ); if(is_wp_error( $tmp_file )){ continue; } $wp_filesystem->copy( $tmp_file, $local_file ); $wp_filesystem->delete( $tmp_file ); } // Update font links $remote_file = str_replace( $download_url, $_local_file, $remote_file ); } // Save local stylesheet $wp_filesystem->put_contents( $local_path, $remote_file ); return $local_path; } main/functions.php 0000644 00000030714 15104542337 0010222 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // functions.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } // Is called when the ADMIN enables the plugin function pagelayer_pro_activation(){ global $wpdb; $sql = array(); add_option('pagelayer_pro_version', PAGELAYER_PRO_VERSION); add_option('pagelayer_pro_options', array()); // Update free verion pagelayer_pro_update_free_after_pro(null, array( 'action' => 'update', 'type' => 'plugin', 'plugin' => 'pagelayer-pro/pagelayer-pro.php', 'silent_skin' => true, )); } // Checks if we are to update ? function pagelayer_pro_update_check(){ global $wpdb; $sql = array(); $current_version = get_option('pagelayer_pro_version'); $version = (int) str_replace('.', '', $current_version); // No update required if($current_version == PAGELAYER_PRO_VERSION){ return true; } // Is it first run ? if(empty($current_version)){ // Reinstall pagelayer_pro_activation(); // Trick the following if conditions to not run $version = (int) str_replace('.', '', PAGELAYER_PRO_VERSION); } $is_network_wide = pagelayer_pro_is_network_active('pagelayer-pro'); if($is_network_wide){ $free_ins = get_site_option('pagelayer_free_installed'); }else{ $free_ins = get_option('pagelayer_free_installed'); } // If plugin runing reached here it means Pagelayer free installed if(empty($free_ins)){ if($is_network_wide){ update_site_option('pagelayer_free_installed', time()); }else{ update_option('pagelayer_free_installed', time()); } } // Re-init NAG dismiss expire time update_option('pagelayer_pro_older_pro_version_nag', time()); update_option('pagelayer_pro_older_free_version_nag', time()); // Save the new Version update_option('pagelayer_pro_version', PAGELAYER_PRO_VERSION); } // Load license data function pagelayer_pro_load_license($parent = 0){ global $pagelayer, $lic_resp; $license_field = 'pagelayer_license'; $license_api_url = PAGELAYER_PRO_API; // Save license if(!empty($parent) && is_string($parent) && strlen($parent) > 5){ $lic['license'] = $parent; // Load license of Soft Pro }elseif(!empty($parent)){ $license_field = 'softaculous_pro_license'; $lic = get_option('softaculous_pro_license', []); // My license }else{ $lic = get_option($license_field, []); } // Loaded license is a Soft Pro if(!empty($lic['license']) && preg_match('/^softwp/is', $lic['license'])){ $license_field = 'softaculous_pro_license'; $license_api_url = 'https://a.softaculous.com/softwp/'; $prods = apply_filters('softaculous_pro_products', []); }else{ $prods = []; } if(empty($lic['last_update'])){ $lic['last_update'] = time() - 86600; } // Update license details as well if(!empty($lic) && !empty($lic['license']) && (time() - @$lic['last_update']) >= 86400){ $url = $license_api_url.'/license.php?license='.$lic['license'].'&prods='.implode(',', $prods).'&url='.rawurlencode(site_url()); $resp = wp_remote_get($url); $lic_resp = $resp; //Did we get a response ? if(is_array($resp)){ $tosave = json_decode($resp['body'], true); //Is it the license ? if(!empty($tosave['license'])){ $tosave['last_update'] = time(); update_option($license_field, $tosave); $lic = $tosave; } } } // If the license is Free or Expired check for Softaculous Pro license if(empty($lic) || empty($lic['active'])){ if(function_exists('softaculous_pro_load_license')){ $softaculous_license = softaculous_pro_load_license(); if(!empty($softaculous_license['license']) && (!empty($softaculous_license['active']) || empty($lic['license'])) ){ $lic = $softaculous_license; } }elseif(empty($parent)){ $lic = get_option('softaculous_pro_license', []); if(!empty($lic)){ return pagelayer_pro_load_license(1); } } } if(!empty($lic['license'])){ $pagelayer->license = $lic; } } add_filter('softaculous_pro_products', 'pagelayer_softaculous_pro_products', 10, 1); function pagelayer_softaculous_pro_products($r = []){ $r['pagelayer'] = 'pagelayer'; return $r; } // Add our license key if ANY function pagelayer_pro_updater_filter_args($queryArgs) { global $pagelayer; if ( !empty($pagelayer->license['license']) ) { $queryArgs['license'] = $pagelayer->license['license']; } $queryArgs['url'] = rawurlencode(site_url()); return $queryArgs; } // Handle the Check for update link and ask to install license key function pagelayer_pro_updater_check_link($final_link){ global $pagelayer; if(empty($pagelayer->license['license'])){ return '<a href="'.admin_url('admin.php?page=pagelayer_license').'">Install Pagelayer Pro License Key</a>'; } return $final_link; } function pagelayer_pro_is_network_active($pluign){ $is_network_wide = false; // Handling network site if(!is_multisite()){ return $is_network_wide; } $_tmp_plugins = get_site_option('active_sitewide_plugins'); if(!empty($_tmp_plugins) && preg_grep('/.*\/'.$pluign.'\.php$/', array_keys($_tmp_plugins))){ $is_network_wide = true; } return $is_network_wide; } // Prevent update of pagelayer free function pagelayer_pro_get_free_version_num(){ if(defined('PAGELAYER_VERSION')){ return PAGELAYER_VERSION; } // In case of pagelayer deactive return pagelayer_pro_file_get_version_num('pagelayer/pagelayer.php'); } // Prevent update of pagelayer free function pagelayer_pro_file_get_version_num($plugin){ $file = WP_PLUGIN_DIR . '/'.$plugin; if(!file_exists($file)){ return false; } // In case of pagelayer deactive include_once(ABSPATH . 'wp-admin/includes/plugin.php'); $plugin_data = get_plugin_data($file); if(empty($plugin_data)){ return false; } return $plugin_data['Version']; } // Prevent update of pagelayer free function pagelayer_pro_disable_manual_update_for_plugin($transient){ $plugin = 'pagelayer/pagelayer.php'; // Is update available? if(!isset($transient->response) || !isset($transient->response[$plugin])){ return $transient; } $free_version = pagelayer_pro_get_free_version_num(); $pro_version = PAGELAYER_PRO_VERSION; if(!empty($GLOBALS['pagelayer_pro_is_upgraded'])){ $pro_version = pagelayer_pro_file_get_version_num('pagelayer-pro/pagelayer-pro.php'); } // Update the Pagelayer version to the equivalent of Pro version if(!empty($pro_version) && version_compare($free_version, $pro_version, '<')){ $transient->response[$plugin]->new_version = $pro_version; $transient->response[$plugin]->package = 'https://downloads.wordpress.org/plugin/pagelayer.'.$pro_version.'.zip'; }else{ unset($transient->response[$plugin]); } return $transient; } // Auto update free version after update pro version function pagelayer_pro_update_free_after_pro($upgrader_object, $options){ // Check if the action is an update for the plugins if($options['action'] != 'update' || $options['type'] != 'plugin'){ return; } // Define the slugs for the free and pro plugins $free_slug = 'pagelayer/pagelayer.php'; $pro_slug = 'pagelayer-pro/pagelayer-pro.php'; // Check if the pro plugin is in the list of updated plugins if( (isset($options['plugins']) && in_array($pro_slug, $options['plugins']) && !in_array($free_slug, $options['plugins'])) || (isset($options['plugin']) && $pro_slug == $options['plugin']) ){ // Trigger the update for the free plugin $current_version = pagelayer_pro_get_free_version_num(); if(empty($current_version)){ return; } $GLOBALS['pagelayer_pro_is_upgraded'] = true; // This will set the 'update_plugins' transient again wp_update_plugins(); // Check for updates for the free plugin $update_plugins = get_site_transient('update_plugins'); if(empty($update_plugins) || !isset($update_plugins->response[$free_slug]) || version_compare($update_plugins->response[$free_slug]->new_version, $current_version, '<=')){ return; } include_once(ABSPATH . 'wp-admin/includes/file.php'); include_once(ABSPATH . 'wp-admin/includes/misc.php'); require_once(ABSPATH . 'wp-admin/includes/plugin.php'); require_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'); $skin = wp_doing_ajax()? new WP_Ajax_Upgrader_Skin() : null; if(!empty($options['silent_skin'])){ class Pagelayer_Silent_Upgrader_Skin extends WP_Upgrader_Skin { public function feedback($string, ...$args){} public function header(){} public function footer(){} public function error($errors){} public function before(){} public function after(){} } $skin = new Pagelayer_Silent_Upgrader_Skin(); } $upgrader = new Plugin_Upgrader($skin); $upgraded = $upgrader->upgrade($free_slug); if(!is_wp_error($upgraded) && $upgraded){ // Re-active free plugins if( file_exists( WP_PLUGIN_DIR . '/'. $free_slug ) && is_plugin_inactive($free_slug) ){ activate_plugin($free_slug); // TODO for network } // Re-active pro plugins if( file_exists( WP_PLUGIN_DIR . '/'. $pro_slug ) && is_plugin_inactive($pro_slug) ){ activate_plugin($pro_slug); // TODO for network } } } } function pagelayer_pro_api_url($main_server = 0, $suffix = 'pagelayer'){ global $pagelayer; $r = array( 'https://s0.softaculous.com/a/softwp/', 'https://s1.softaculous.com/a/softwp/', 'https://s2.softaculous.com/a/softwp/', 'https://s3.softaculous.com/a/softwp/', 'https://s4.softaculous.com/a/softwp/', 'https://s5.softaculous.com/a/softwp/', 'https://s7.softaculous.com/a/softwp/', 'https://s8.softaculous.com/a/softwp/' ); $mirror = $r[array_rand($r)]; // If the license is newly issued, we need to fetch from API only if(!empty($main_server) || empty($pagelayer->license['last_edit']) || (!empty($pagelayer->license['last_edit']) && (time() - 3600) < $pagelayer->license['last_edit']) ){ $mirror = PAGELAYER_PRO_API; } if(!empty($suffix)){ $mirror = str_replace('/softwp', '/'.$suffix, $mirror); } return $mirror; } function pagelayer_pro_plugins_expired($plugins){ $plugins[] = 'Pagelayer'; return $plugins; } function pagelayer_pro_expiry_notice(){ global $pagelayer; // The combined notice for all Softaculous plugin to show that the license has expired $dismissed_at = get_option('softaculous_expired_licenses', 0); $expired_plugins = apply_filters('softaculous_expired_licenses', []); if( !empty($expired_plugins) && is_array($expired_plugins) && !defined('SOFTACULOUS_EXPIRY_LICENSES') && (empty($dismissed_at) || ($dismissed_at + WEEK_IN_SECONDS) < time()) ){ define('SOFTACULOUS_EXPIRY_LICENSES', true); // To make sure other plugins don't return a Notice echo '<div class="notice notice-error is-dismissible" id="pagelayer-pro-expiry-notice"> <p>'.sprintf(__('Your SoftWP license has %1$sexpired%2$s. Please renew it to continue receiving uninterrupted updates and support for %3$s.', 'pagelayer-pro'), '<font style="color:red;"><b>', '</b></font>', esc_html(implode(', ', $expired_plugins)) ). '</p> </div>'; wp_register_script('pagelayer-pro-expiry-notice', '', ['jquery'], PAGELAYER_PRO_VERSION, true); wp_enqueue_script('pagelayer-pro-expiry-notice'); wp_add_inline_script('pagelayer-pro-expiry-notice', ' jQuery(document).ready(function(){ jQuery("#pagelayer-pro-expiry-notice").on("click", ".notice-dismiss", function(e){ e.preventDefault(); let target = jQuery(e.target); let jEle = target.closest("#pagelayer-pro-expiry-notice"); jEle.slideUp(); jQuery.post("'.admin_url('admin-ajax.php').'", { security : "'.wp_create_nonce('pagelayer_expiry_notice').'", action: "pagelayer_pro_dismiss_expired_licenses", }, function(res){ if(!res["success"]){ alert(res["data"]); } }).fail(function(data){ alert("There seems to be some issue dismissing this alert"); }); }); })'); } } main/pagelayer-init.php 0000644 00000015007 15104542337 0011122 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // pagelayer-init.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } // Ok so we are now ready to go register_activation_hook(PAGELAYER_PRO_FILE, 'pagelayer_pro_activation'); // Prevent update of pagelayer free // This also work for auto update add_filter('site_transient_update_plugins', 'pagelayer_pro_disable_manual_update_for_plugin'); add_filter('pre_site_transient_update_plugins', 'pagelayer_pro_disable_manual_update_for_plugin'); // Auto update free version after update pro version add_action('upgrader_process_complete', 'pagelayer_pro_update_free_after_pro', 10, 2); add_action('plugins_loaded', 'pagelayer_pro_load_plugin'); function pagelayer_pro_load_plugin(){ global $pagelayer; if(empty($pagelayer)){ $pagelayer = new stdClass(); } // Load license pagelayer_pro_load_license(); // Check if the installed version is outdated pagelayer_pro_update_check(); // Check for updates include_once(PAGELAYER_PRO_DIR.'/main/plugin-update-checker.php'); $pagelayer_updater = Pagelayer_PucFactory::buildUpdateChecker(pagelayer_pro_api_url().'updates.php?version='.PAGELAYER_PRO_VERSION, PAGELAYER_PRO_FILE); // Add the license key to query arguments $pagelayer_updater->addQueryArgFilter('pagelayer_pro_updater_filter_args'); // Show the text to install the license key add_filter('puc_manual_final_check_link-pagelayer-pro', 'pagelayer_pro_updater_check_link', 10, 1); // Nag informing the user to install the free version. if(current_user_can('activate_plugins')){ add_action('admin_notices', 'pagelayer_pro_free_version_nag', 9); add_action('admin_menu', 'pagelayer_pro_add_menu', 9); } $is_network_wide = pagelayer_pro_is_network_active('pagelayer-pro'); $_pl_version = get_option('pagelayer_version'); $req_free_update = !empty($_pl_version) && version_compare($_pl_version, '1.8.7', '<'); if($is_network_wide){ $pl_free_installed = get_site_option('pagelayer_free_installed'); }else{ $pl_free_installed = get_option('pagelayer_free_installed'); } if(!empty($pl_free_installed)){ return; } // Include the necessary stuff include_once(ABSPATH . 'wp-admin/includes/plugin-install.php'); include_once(ABSPATH . 'wp-admin/includes/plugin.php'); include_once(ABSPATH . 'wp-admin/includes/file.php'); if( file_exists( WP_PLUGIN_DIR . '/pagelayer/pagelayer.php' ) && is_plugin_inactive( '/pagelayer/pagelayer.php' ) && empty($req_free_update) ) { if($is_network_wide){ update_site_option('pagelayer_free_installed', time()); }else{ update_option('pagelayer_free_installed', time()); } activate_plugin('/pagelayer/pagelayer.php', '', $is_network_wide); remove_action('admin_notices', 'pagelayer_pro_free_version_nag', 9); remove_action('admin_menu', 'pagelayer_pro_add_menu', 9); return; } // Includes necessary for Plugin_Upgrader and Plugin_Installer_Skin include_once(ABSPATH . 'wp-admin/includes/misc.php'); include_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'); // Filter to prevent the activate text add_filter('install_plugin_complete_actions', 'pagelayer_pro_prevent_activation_text', 10, 3); $upgrader = new Plugin_Upgrader(new WP_Ajax_Upgrader_Skin()); // Upgrade the plugin to the latest version of free already installed. if(!empty($req_free_update) && file_exists( WP_PLUGIN_DIR . '/pagelayer/pagelayer.php' )){ $installed = $upgrader->upgrade('pagelayer/pagelayer.php'); }else{ $installed = $upgrader->install('https://downloads.wordpress.org/plugin/pagelayer.zip'); } if(!is_wp_error($installed) && $installed){ if($is_network_wide){ update_site_option('pagelayer_free_installed', time()); }else{ update_option('pagelayer_free_installed', time()); } activate_plugin('pagelayer/pagelayer.php', '', $is_network_wide); remove_action('admin_notices', 'pagelayer_pro_free_version_nag', 9); remove_action('admin_menu', 'pagelayer_pro_add_menu', 9); //wp_safe_redirect(admin_url('/')); } } // Do not shows the activation text if function pagelayer_pro_prevent_activation_text($install_actions, $api, $plugin_file){ if($plugin_file == 'pagelayer/pagelayer.php'){ return array(); } return $install_actions; } function pagelayer_pro_free_version_nag(){ $pl_version = get_option('pagelayer_version'); $lower_version = __('You have not installed/activated the free version of Pagelayer. Pagelayer Pro depends on the free version, so you must install/activate it first in order to use Pagelayer Pro.'); $btn_text = __('Install / Activate Now'); if(!empty($pl_version) && version_compare($pl_version, '1.8.6', '<')){ $lower_version = __('You are using an older version of the free version of Pagelayer, please update Pagelayer to work without any issues'); $btn_text = __('Update Now'); } echo '<div class="notice notice-error"> <p style="font-size:16px;">'.esc_html($lower_version).' <a href="'.admin_url('plugin-install.php?s=pagelayer&tab=search').'" class="button button-primary">'.esc_html($btn_text).'</a></p> </div>'; } function pagelayer_pro_add_menu(){ add_menu_page('Pagelayer', 'Pagelayer Pro', 'activate_plugins', 'pagelayer-pro', 'pagelayer_pro_menu_page', PAGELAYER_PRO_URL.'/images/pagelayer-logo-19.png'); } function pagelayer_pro_menu_page(){ echo '<div style="color: #333;padding: 50px;text-align: center;"> <h1 style="font-size: 2em;margin-bottom: 10px;">Pagelayer Free version is not installed / outdated!</h> <p style=" font-size: 16px;margin-bottom: 20px; font-weight:400;">Pagelayer Pro depends on the free version of Pagelayer, so you need to install / update the free version first.</p> <a href="'.admin_url('plugin-install.php?s=pagelayer&tab=search').'" style="text-decoration: none;font-size:16px;">Install/Update Now</a> </div>'; } main/license.php 0000644 00000013526 15104542337 0007636 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // license.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_VERSION')) { exit('Hacking Attempt !'); } include_once(PAGELAYER_DIR.'/main/settings.php'); // The License Page function pagelayer_license(){ global $pl_error, $lic_resp; if(isset($_REQUEST['save_pl_license'])){ check_admin_referer('pagelayer-options'); } // Is there a license key ? if(isset($_POST['save_pl_license'])){ $license = pagelayer_optpost('pagelayer_license'); // Check if its a valid license if(empty($license)){ $pl_error['lic_invalid'] = __('The license key was not submitted', 'pagelayer'); return pagelayer_license_T(); } pagelayer_pro_load_license($license); if(is_array($lic_resp)){ $json = json_decode($lic_resp['body'], true); //print_r($json); }else{ $pl_error['resp_invalid'] = __('The response was malformed<br>'.var_export($lic_resp, true), 'pagelayer'); return pagelayer_license_T(); } // Save the License if(empty($json['license'])){ $pl_error['lic_invalid'] = __('The license key is invalid', 'pagelayer'); return pagelayer_license_T(); }else{ // Mark as saved $GLOBALS['pl_saved'] = true; } } pagelayer_license_T(); } // The License Page - THEME function pagelayer_license_T(){ global $pagelayer, $pl_error; pagelayer_page_header('Pagelayer License'); // Saved ? if(!empty($GLOBALS['pl_saved'])){ echo '<div class="notice notice-success"><p>'. __('The settings were saved successfully', 'pagelayer'). '</p></div><br />'; } if(date('Ymd') <= 20200331 && !defined('PAGELAYER_PREMIUM')){ echo '<div class="updated"><p><span style="font-size: 14px"><b>Promotional Offer</b></span> : If you buy <a href="'.PAGELAYER_PRO_PRICE_URL.'"><b>Pagelayer Pro</b></a> before <b>31st March, 2020</b> then you will get an additional year free and your license will expire on <b>31st March, 2022</b></p></div><br />.'; } // Any errors ? if(!empty($pl_error)){ pagelayer_report_error($pl_error);echo '<br />'; } ?> <div class="postbox"> <button class="handlediv button-link" aria-expanded="true" type="button"> <span class="screen-reader-text"><?php _e('Toggle panel: System Information');?></span> <span class="toggle-indicator" aria-hidden="true"></span> </button> <h2 class="hndle ui-sortable-handle"> <span><?php echo __('System Information', 'pagelayer'); ?></span> </h2> <div class="inside"> <form action="" method="post" enctype="multipart/form-data"> <?php wp_nonce_field('pagelayer-options'); ?> <table class="wp-list-table fixed striped users" cellspacing="1" border="0" width="95%" cellpadding="10" align="center"> <?php echo ' <tr> <th align="left" width="25%">'.__('Pagelayer Version', 'pagelayer').'</th> <td>'.PAGELAYER_VERSION.(defined('PAGELAYER_PREMIUM') ? ' (PRO Version)' : '').'</td> </tr>'; echo ' <tr> <th align="left" valign="top">'.__('Pagelayer License', 'pagelayer').'</th> <td align="left"> '.(defined('PAGELAYER_PREMIUM') && empty($pagelayer->license) ? '<span style="color:red">Unlicensed</span> ' : '').' <input type="text" name="pagelayer_license" value="'.(empty($pagelayer->license) ? '' : $pagelayer->license['license']).'" size="30" placeholder="e.g. PAGEL-11111-22222-33333-44444" style="width:300px;" /> <input name="save_pl_license" class="button button-primary" value="Update License" type="submit" />'; if(!empty($pagelayer->license)){ $expires = $pagelayer->license['expires']; $expires = substr($expires, 0, 4).'/'.substr($expires, 4, 2).'/'.substr($expires, 6); echo '<div style="margin-top:10px;">License Status : '.(empty($pagelayer->license['status_txt']) ? 'N.A.' : $pagelayer->license['status_txt']).' '.($pagelayer->license['expires'] <= date('Ymd') ? __('License Expires : ', 'pagelayer-pro') .'<span style="color:red">'.$expires.'</span>' : (empty($pagelayer->license['has_plid']) ? __('License Expires : ', 'pagelayer-pro') . $expires : '')).' </div>'; } echo '</td> </tr>'; echo '<tr> <th align="left">'.__('URL', 'pagelayer').'</th> <td>'.get_site_url().'</td> </tr> <tr> <th align="left">'.__('Path', 'pagelayer').'</th> <td>'.ABSPATH.'</td> </tr> <tr> <th align="left">'.__('Server\'s IP Address', 'pagelayer').'</th> <td>'.$_SERVER['SERVER_ADDR'].'</td> </tr> <tr> <th align="left">'.__('wp-config.php is writable', 'pagelayer').'</th> <td>'.(is_writable(ABSPATH.'/wp-config.php') ? '<span style="color:red">Yes</span>' : '<span style="color:green">No</span>').'</td> </tr>'; if(file_exists(ABSPATH.'/.htaccess')){ echo ' <tr> <th align="left">'.__('.htaccess is writable', 'pagelayer').'</th> <td>'.(is_writable(ABSPATH.'/.htaccess') ? '<span style="color:red">Yes</span>' : '<span style="color:green">No</span>').'</td> </tr>'; } ?> </table> </form> </div> </div> <?php pagelayer_page_footer(); } main/plugin-update-checker.php 0000644 00000151101 15104542337 0012364 0 ustar 00 <?php /** * Plugin Update Checker Library 3.2 * http://w-shadow.com/ * * Copyright 2016 Janis Elsts * Released under the MIT license. See license.txt for details. */ if ( !class_exists('PagelayerUpdateChecker_3_2', false) ): /** * A custom plugin update checker. * * @author Janis Elsts * @copyright 2016 * @version 3.2 * @access public */ class PagelayerUpdateChecker_3_2 { public $metadataUrl = ''; //The URL of the plugin's metadata file. public $pluginAbsolutePath = ''; //Full path of the main plugin file. public $pluginFile = ''; //Plugin filename relative to the plugins directory. Many WP APIs use this to identify plugins. public $slug = ''; //Plugin slug. public $optionName = ''; //Where to store the update info. public $muPluginFile = ''; //For MU plugins, the plugin filename relative to the mu-plugins directory. public $debugMode = false; //Set to TRUE to enable error reporting. Errors are raised using trigger_error() //and should be logged to the standard PHP error log. public $scheduler; protected $upgraderStatus; private $debugBarPlugin = null; private $cachedInstalledVersion = null; private $metadataHost = ''; //The host component of $metadataUrl. /** * Class constructor. * * @param string $metadataUrl The URL of the plugin's metadata file. * @param string $pluginFile Fully qualified path to the main plugin file. * @param string $slug The plugin's 'slug'. If not specified, the filename part of $pluginFile sans '.php' will be used as the slug. * @param integer $checkPeriod How often to check for updates (in hours). Defaults to checking every 12 hours. Set to 0 to disable automatic update checks. * @param string $optionName Where to store book-keeping info about update checks. Defaults to 'external_updates-$slug'. * @param string $muPluginFile Optional. The plugin filename relative to the mu-plugins directory. */ public function __construct($metadataUrl, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = ''){ $this->metadataUrl = $metadataUrl; $this->pluginAbsolutePath = $pluginFile; $this->pluginFile = plugin_basename($this->pluginAbsolutePath); $this->muPluginFile = $muPluginFile; $this->slug = $slug; $this->optionName = $optionName; $this->debugMode = (bool)(constant('WP_DEBUG')); //If no slug is specified, use the name of the main plugin file as the slug. //For example, 'my-cool-plugin/cool-plugin.php' becomes 'cool-plugin'. if ( empty($this->slug) ){ $this->slug = basename($this->pluginFile, '.php'); } //Plugin slugs must be unique. $slugCheckFilter = 'puc_is_slug_in_use-' . $this->slug; $slugUsedBy = apply_filters($slugCheckFilter, false); if ( $slugUsedBy ) { $this->triggerError(sprintf( 'Plugin slug "%s" is already in use by %s. Slugs must be unique.', htmlentities($this->slug), htmlentities($slugUsedBy) ), E_USER_ERROR); } add_filter($slugCheckFilter, array($this, 'getAbsolutePath')); if ( empty($this->optionName) ){ $this->optionName = 'external_updates-' . $this->slug; } //Backwards compatibility: If the plugin is a mu-plugin but no $muPluginFile is specified, assume //it's the same as $pluginFile given that it's not in a subdirectory (WP only looks in the base dir). if ( (strpbrk($this->pluginFile, '/\\') === false) && $this->isUnknownMuPlugin() ) { $this->muPluginFile = $this->pluginFile; } $this->scheduler = $this->createScheduler($checkPeriod); $this->upgraderStatus = new Pagelayer_PucUpgraderStatus_3_2(); $this->installHooks(); } /** * Create an instance of the scheduler. * * This is implemented as a method to make it possible for plugins to subclass the update checker * and substitute their own scheduler. * * @param int $checkPeriod * @return Pagelayer_PucScheduler_3_2 */ protected function createScheduler($checkPeriod) { return new Pagelayer_PucScheduler_3_2($this, $checkPeriod); } /** * Install the hooks required to run periodic update checks and inject update info * into WP data structures. * * @return void */ protected function installHooks(){ //Override requests for plugin information add_filter('plugins_api', array($this, 'injectInfo'), 20, 3); //Insert our update info into the update array maintained by WP. add_filter('site_transient_update_plugins', array($this,'injectUpdate')); //WP 3.0+ add_filter('transient_update_plugins', array($this,'injectUpdate')); //WP 2.8+ add_filter('site_transient_update_plugins', array($this, 'injectTranslationUpdates')); add_filter('plugin_row_meta', array($this, 'addCheckForUpdatesLink'), 10, 2); add_action('admin_init', array($this, 'handleManualCheck')); add_action('all_admin_notices', array($this, 'displayManualCheckResult')); //Clear the version number cache when something - anything - is upgraded or WP clears the update cache. add_filter('upgrader_post_install', array($this, 'clearCachedVersion')); add_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion')); //Clear translation updates when WP clears the update cache. //This needs to be done directly because the library doesn't actually remove obsolete plugin updates, //it just hides them (see getUpdate()). We can't do that with translations - too much disk I/O. add_action('delete_site_transient_update_plugins', array($this, 'clearCachedTranslationUpdates')); if ( did_action('plugins_loaded') ) { $this->initDebugBarPanel(); } else { add_action('plugins_loaded', array($this, 'initDebugBarPanel')); } //Rename the update directory to be the same as the existing directory. add_filter('upgrader_source_selection', array($this, 'fixDirectoryName'), 10, 3); //Enable language support (i18n). load_plugin_textdomain('plugin-update-checker', false, plugin_basename(dirname(__FILE__)) . '/languages'); //Allow HTTP requests to the metadata URL even if it's on a local host. $this->metadataHost = @parse_url($this->metadataUrl, PHP_URL_HOST); add_filter('http_request_host_is_external', array($this, 'allowMetadataHost'), 10, 2); } /** * Explicitly allow HTTP requests to the metadata URL. * * WordPress has a security feature where the HTTP API will reject all requests that are sent to * another site hosted on the same server as the current site (IP match), a local host, or a local * IP, unless the host exactly matches the current site. * * This feature is opt-in (at least in WP 4.4). Apparently some people enable it. * * That can be a problem when you're developing your plugin and you decide to host the update information * on the same server as your test site. Update requests will mysteriously fail. * * We fix that by adding an exception for the metadata host. * * @param bool $allow * @param string $host * @return bool */ public function allowMetadataHost($allow, $host) { if ( strtolower($host) === strtolower($this->metadataHost) ) { return true; } return $allow; } /** * Retrieve plugin info from the configured API endpoint. * * @uses wp_remote_get() * * @param array $queryArgs Additional query arguments to append to the request. Optional. * @return PagelayerInfo_3_2 */ public function requestInfo($queryArgs = array()){ //Query args to append to the URL. Plugins can add their own by using a filter callback (see addQueryArgFilter()). $installedVersion = $this->getInstalledVersion(); $queryArgs['installed_version'] = ($installedVersion !== null) ? $installedVersion : ''; $queryArgs = apply_filters('puc_request_info_query_args-'.$this->slug, $queryArgs); //Various options for the wp_remote_get() call. Plugins can filter these, too. $options = array( 'timeout' => 10, //seconds 'headers' => array( 'Accept' => 'application/json' ), ); $options = apply_filters('puc_request_info_options-'.$this->slug, $options); //The plugin info should be at 'http://your-api.com/url/here/$slug/info.json' $url = $this->metadataUrl; if ( !empty($queryArgs) ){ $url = add_query_arg($queryArgs, $url); } $result = wp_remote_get( $url, $options ); //Try to parse the response $status = $this->validateApiResponse($result); $pluginInfo = null; if ( !is_wp_error($status) ){ $pluginInfo = PagelayerInfo_3_2::fromJson($result['body']); if ( $pluginInfo !== null ) { $pluginInfo->filename = $this->pluginFile; $pluginInfo->slug = $this->slug; } } else { $this->triggerError( sprintf('The URL %s does not point to a valid plugin metadata file. ', $url) . $status->get_error_message(), E_USER_WARNING ); } $pluginInfo = apply_filters('puc_request_info_result-'.$this->slug, $pluginInfo, $result); return $pluginInfo; } /** * Check if $result is a successful update API response. * * @param array|WP_Error $result * @return true|WP_Error */ private function validateApiResponse($result) { if ( is_wp_error($result) ) { /** @var WP_Error $result */ return new WP_Error($result->get_error_code(), 'WP HTTP Error: ' . $result->get_error_message()); } if ( !isset($result['response']['code']) ) { return new WP_Error('puc_no_response_code', 'wp_remote_get() returned an unexpected result.'); } if ( $result['response']['code'] !== 200 ) { return new WP_Error( 'puc_unexpected_response_code', 'HTTP response code is ' . $result['response']['code'] . ' (expected: 200)' ); } if ( empty($result['body']) ) { return new WP_Error('puc_empty_response', 'The metadata file appears to be empty.'); } return true; } /** * Retrieve the latest update (if any) from the configured API endpoint. * * @uses PagelayerUpdateChecker::requestInfo() * * @return PagelayerUpdate_3_2 An instance of PagelayerUpdate, or NULL when no updates are available. */ public function requestUpdate(){ //For the sake of simplicity, this function just calls requestInfo() //and transforms the result accordingly. $pluginInfo = $this->requestInfo(array('checking_for_updates' => '1')); if ( $pluginInfo == null ){ return null; } $update = PagelayerUpdate_3_2::fromPagelayerInfo($pluginInfo); //Keep only those translation updates that apply to this site. $update->translations = $this->filterApplicableTranslations($update->translations); return $update; } /** * Filter a list of translation updates and return a new list that contains only updates * that apply to the current site. * * @param array $translations * @return array */ private function filterApplicableTranslations($translations) { $languages = array_flip(array_values(get_available_languages())); $installedTranslations = wp_get_installed_translations('plugins'); if ( isset($installedTranslations[$this->slug]) ) { $installedTranslations = $installedTranslations[$this->slug]; } else { $installedTranslations = array(); } $applicableTranslations = array(); foreach($translations as $translation) { //Does it match one of the available core languages? $isApplicable = array_key_exists($translation->language, $languages); //Is it more recent than an already-installed translation? if ( isset($installedTranslations[$translation->language]) ) { $updateTimestamp = strtotime($translation->updated); $installedTimestamp = strtotime($installedTranslations[$translation->language]['PO-Revision-Date']); $isApplicable = $updateTimestamp > $installedTimestamp; } if ( $isApplicable ) { $applicableTranslations[] = $translation; } } return $applicableTranslations; } /** * Get the currently installed version of the plugin. * * @return string Version number. */ public function getInstalledVersion(){ if ( isset($this->cachedInstalledVersion) ) { return $this->cachedInstalledVersion; } $pluginHeader = $this->getPluginHeader(); if ( isset($pluginHeader['Version']) ) { $this->cachedInstalledVersion = $pluginHeader['Version']; return $pluginHeader['Version']; } else { //This can happen if the filename points to something that is not a plugin. $this->triggerError( sprintf( "Can't to read the Version header for '%s'. The filename is incorrect or is not a plugin.", $this->pluginFile ), E_USER_WARNING ); return null; } } /** * Get plugin's metadata from its file header. * * @return array */ protected function getPluginHeader() { if ( !is_file($this->pluginAbsolutePath) ) { //This can happen if the plugin filename is wrong. $this->triggerError( sprintf( "Can't to read the plugin header for '%s'. The file does not exist.", $this->pluginFile ), E_USER_WARNING ); return array(); } if ( !function_exists('get_plugin_data') ){ /** @noinspection PhpIncludeInspection */ require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); } return get_plugin_data($this->pluginAbsolutePath, false, false); } /** * Check for plugin updates. * The results are stored in the DB option specified in $optionName. * * @return PagelayerUpdate_3_2|null */ public function checkForUpdates(){ $installedVersion = $this->getInstalledVersion(); //Fail silently if we can't find the plugin or read its header. if ( $installedVersion === null ) { $this->triggerError( sprintf('Skipping update check for %s - installed version unknown.', $this->pluginFile), E_USER_WARNING ); return null; } $state = $this->getUpdateState(); if ( empty($state) ){ $state = new stdClass; $state->lastCheck = 0; $state->checkedVersion = ''; $state->update = null; } $state->lastCheck = time(); $state->checkedVersion = $installedVersion; $this->setUpdateState($state); //Save before checking in case something goes wrong $state->update = $this->requestUpdate(); $this->setUpdateState($state); return $this->getUpdate(); } /** * Load the update checker state from the DB. * * @return stdClass|null */ public function getUpdateState() { $state = get_site_option($this->optionName, null); if ( empty($state) || !is_object($state)) { $state = null; } if ( isset($state, $state->update) && is_object($state->update) ) { $state->update = PagelayerUpdate_3_2::fromObject($state->update); } return $state; } /** * Persist the update checker state to the DB. * * @param StdClass $state * @return void */ private function setUpdateState($state) { if ( isset($state->update) && is_object($state->update) && method_exists($state->update, 'toStdClass') ) { $update = $state->update; /** @var PagelayerUpdate_3_2 $update */ $state->update = $update->toStdClass(); } update_site_option($this->optionName, $state); } /** * Reset update checker state - i.e. last check time, cached update data and so on. * * Call this when your plugin is being uninstalled, or if you want to * clear the update cache. */ public function resetUpdateState() { delete_site_option($this->optionName); } /** * Intercept plugins_api() calls that request information about our plugin and * use the configured API endpoint to satisfy them. * * @see plugins_api() * * @param mixed $result * @param string $action * @param array|object $args * @return mixed */ public function injectInfo($result, $action = null, $args = null){ $relevant = ($action == 'plugin_information') && isset($args->slug) && ( ($args->slug == $this->slug) || ($args->slug == dirname($this->pluginFile)) ); if ( !$relevant ) { return $result; } $pluginInfo = $this->requestInfo(); $pluginInfo = apply_filters('puc_pre_inject_info-' . $this->slug, $pluginInfo); if ( $pluginInfo ) { return $pluginInfo->toWpFormat(); } return $result; } /** * Insert the latest update (if any) into the update list maintained by WP. * * @param StdClass $updates Update list. * @return StdClass Modified update list. */ public function injectUpdate($updates){ //Is there an update to insert? $update = $this->getUpdate(); //No update notifications for mu-plugins unless explicitly enabled. The MU plugin file //is usually different from the main plugin file so the update wouldn't show up properly anyway. if ( $this->isUnknownMuPlugin() ) { $update = null; } if ( !empty($update) ) { //Let plugins filter the update info before it's passed on to WordPress. $update = apply_filters('puc_pre_inject_update-' . $this->slug, $update); $updates = $this->addUpdateToList($updates, $update); } else { //Clean up any stale update info. $updates = $this->removeUpdateFromList($updates); } return $updates; } /** * @param StdClass|null $updates * @param PagelayerUpdate_3_2 $updateToAdd * @return StdClass */ private function addUpdateToList($updates, $updateToAdd) { if ( !is_object($updates) ) { $updates = new stdClass(); $updates->response = array(); } $wpUpdate = $updateToAdd->toWpFormat(); $pluginFile = $this->pluginFile; if ( $this->isMuPlugin() ) { //WP does not support automatic update installation for mu-plugins, but we can still display a notice. $wpUpdate->package = null; $pluginFile = $this->muPluginFile; } $updates->response[$pluginFile] = $wpUpdate; return $updates; } /** * @param stdClass|null $updates * @return stdClass|null */ private function removeUpdateFromList($updates) { if ( isset($updates, $updates->response) ) { unset($updates->response[$this->pluginFile]); if ( !empty($this->muPluginFile) ) { unset($updates->response[$this->muPluginFile]); } } return $updates; } /** * Insert translation updates into the list maintained by WordPress. * * @param stdClass $updates * @return stdClass */ public function injectTranslationUpdates($updates) { $translationUpdates = $this->getTranslationUpdates(); if ( empty($translationUpdates) ) { return $updates; } //Being defensive. if ( !is_object($updates) ) { $updates = new stdClass(); } if ( !isset($updates->translations) ) { $updates->translations = array(); } //In case there's a name collision with a plugin hosted on wordpress.org, //remove any preexisting updates that match our plugin. $translationType = 'plugin'; $filteredTranslations = array(); foreach($updates->translations as $translation) { if ( ($translation['type'] === $translationType) && ($translation['slug'] === $this->slug) ) { continue; } $filteredTranslations[] = $translation; } $updates->translations = $filteredTranslations; //Add our updates to the list. foreach($translationUpdates as $update) { $convertedUpdate = array_merge( array( 'type' => $translationType, 'slug' => $this->slug, 'autoupdate' => 0, //AFAICT, WordPress doesn't actually use the "version" field for anything. //But lets make sure it's there, just in case. 'version' => isset($update->version) ? $update->version : ('1.' . strtotime($update->updated)), ), (array)$update ); $updates->translations[] = $convertedUpdate; } return $updates; } /** * Rename the update directory to match the existing plugin directory. * * When WordPress installs a plugin or theme update, it assumes that the ZIP file will contain * exactly one directory, and that the directory name will be the same as the directory where * the plugin/theme is currently installed. * * GitHub and other repositories provide ZIP downloads, but they often use directory names like * "project-branch" or "project-tag-hash". We need to change the name to the actual plugin folder. * * This is a hook callback. Don't call it from a plugin. * * @param string $source The directory to copy to /wp-content/plugins. Usually a subdirectory of $remoteSource. * @param string $remoteSource WordPress has extracted the update to this directory. * @param WP_Upgrader $upgrader * @return string|WP_Error */ public function fixDirectoryName($source, $remoteSource, $upgrader) { global $wp_filesystem; /** @var WP_Filesystem_Base $wp_filesystem */ //Basic sanity checks. if ( !isset($source, $remoteSource, $upgrader, $upgrader->skin, $wp_filesystem) ) { return $source; } //If WordPress is upgrading anything other than our plugin, leave the directory name unchanged. if ( !$this->isPluginBeingUpgraded($upgrader) ) { return $source; } //Rename the source to match the existing plugin directory. $pluginDirectoryName = dirname($this->pluginFile); if ( $pluginDirectoryName === '.' ) { return $source; } $correctedSource = trailingslashit($remoteSource) . $pluginDirectoryName . '/'; if ( $source !== $correctedSource ) { //The update archive should contain a single directory that contains the rest of plugin files. Otherwise, //WordPress will try to copy the entire working directory ($source == $remoteSource). We can't rename //$remoteSource because that would break WordPress code that cleans up temporary files after update. if ( $this->isBadDirectoryStructure($remoteSource) ) { return new WP_Error( 'puc-incorrect-directory-structure', sprintf( 'The directory structure of the update is incorrect. All plugin files should be inside ' . 'a directory named <span class="code">%s</span>, not at the root of the ZIP file.', htmlentities($this->slug) ) ); } /** @var WP_Upgrader_Skin $upgrader->skin */ $upgrader->skin->feedback(sprintf( 'Renaming %s to %s…', '<span class="code">' . basename($source) . '</span>', '<span class="code">' . $pluginDirectoryName . '</span>' )); if ( $wp_filesystem->move($source, $correctedSource, true) ) { $upgrader->skin->feedback('Plugin directory successfully renamed.'); return $correctedSource; } else { return new WP_Error( 'puc-rename-failed', 'Unable to rename the update to match the existing plugin directory.' ); } } return $source; } /** * Check for incorrect update directory structure. An update must contain a single directory, * all other files should be inside that directory. * * @param string $remoteSource Directory path. * @return bool */ private function isBadDirectoryStructure($remoteSource) { global $wp_filesystem; /** @var WP_Filesystem_Base $wp_filesystem */ $sourceFiles = $wp_filesystem->dirlist($remoteSource); if ( is_array($sourceFiles) ) { $sourceFiles = array_keys($sourceFiles); $firstFilePath = trailingslashit($remoteSource) . $sourceFiles[0]; return (count($sourceFiles) > 1) || (!$wp_filesystem->is_dir($firstFilePath)); } //Assume it's fine. return false; } /** * Is there and update being installed RIGHT NOW, for this specific plugin? * * @param WP_Upgrader|null $upgrader The upgrader that's performing the current update. * @return bool */ public function isPluginBeingUpgraded($upgrader = null) { return $this->upgraderStatus->isPluginBeingUpgraded($this->pluginFile, $upgrader); } /** * Get the details of the currently available update, if any. * * If no updates are available, or if the last known update version is below or equal * to the currently installed version, this method will return NULL. * * Uses cached update data. To retrieve update information straight from * the metadata URL, call requestUpdate() instead. * * @return PagelayerUpdate_3_2|null */ public function getUpdate() { $state = $this->getUpdateState(); /** @var StdClass $state */ //Is there an update available? if ( isset($state, $state->update) ) { $update = $state->update; //Check if the update is actually newer than the currently installed version. $installedVersion = $this->getInstalledVersion(); if ( ($installedVersion !== null) && version_compare($update->version, $installedVersion, '>') ){ $update->filename = $this->pluginFile; return $update; } } return null; } /** * Get a list of available translation updates. * * This method will return an empty array if there are no updates. * Uses cached update data. * * @return array */ public function getTranslationUpdates() { $state = $this->getUpdateState(); if ( isset($state, $state->update, $state->update->translations) ) { return $state->update->translations; } return array(); } /** * Remove all cached translation updates. * * @see wp_clean_update_cache */ public function clearCachedTranslationUpdates() { $state = $this->getUpdateState(); if ( isset($state, $state->update, $state->update->translations) ) { $state->update->translations = array(); $this->setUpdateState($state); } } /** * Add a "Check for updates" link to the plugin row in the "Plugins" page. By default, * the new link will appear after the "Visit plugin site" link. * * You can change the link text by using the "puc_manual_check_link-$slug" filter. * Returning an empty string from the filter will disable the link. * * @param array $pluginMeta Array of meta links. * @param string $pluginFile * @return array */ public function addCheckForUpdatesLink($pluginMeta, $pluginFile) { $isRelevant = ($pluginFile == $this->pluginFile) || (!empty($this->muPluginFile) && $pluginFile == $this->muPluginFile); if ( $isRelevant && current_user_can('update_plugins') ) { $linkUrl = wp_nonce_url( add_query_arg( array( 'puc_check_for_updates' => 1, 'puc_slug' => $this->slug, ), self_admin_url('plugins.php') ), 'puc_check_for_updates' ); $linkText = apply_filters('puc_manual_check_link-' . $this->slug, __('Check for updates', 'plugin-update-checker')); if ( !empty($linkText) ) { $final_link = sprintf('<a href="%s">%s</a>', esc_attr($linkUrl), $linkText); $pluginMeta[] = apply_filters('puc_manual_final_check_link-' . $this->slug, $final_link); } } return $pluginMeta; } /** * Check for updates when the user clicks the "Check for updates" link. * @see self::addCheckForUpdatesLink() * * @return void */ public function handleManualCheck() { $shouldCheck = isset($_GET['puc_check_for_updates'], $_GET['puc_slug']) && $_GET['puc_slug'] == $this->slug && current_user_can('update_plugins') && check_admin_referer('puc_check_for_updates'); if ( $shouldCheck ) { $update = $this->checkForUpdates(); $status = ($update === null) ? 'no_update' : 'update_available'; wp_redirect(add_query_arg( array( 'puc_update_check_result' => $status, 'puc_slug' => $this->slug, ), self_admin_url('plugins.php') )); } } /** * Display the results of a manual update check. * @see self::handleManualCheck() * * You can change the result message by using the "puc_manual_check_message-$slug" filter. */ public function displayManualCheckResult() { if ( isset($_GET['puc_update_check_result'], $_GET['puc_slug']) && ($_GET['puc_slug'] == $this->slug) ) { $status = strval($_GET['puc_update_check_result']); if ( $status == 'no_update' ) { $message = __('This plugin is up to date.', 'plugin-update-checker'); } else if ( $status == 'update_available' ) { $message = __('A new version of this plugin is available.', 'plugin-update-checker'); } else { $message = sprintf(__('Unknown update checker status "%s"', 'plugin-update-checker'), htmlentities($status)); } printf( '<div class="updated notice is-dismissible"><p>%s</p></div>', apply_filters('puc_manual_check_message-' . $this->slug, $message, $status) ); } } /** * Check if the plugin file is inside the mu-plugins directory. * * @return bool */ protected function isMuPlugin() { static $cachedResult = null; if ( $cachedResult === null ) { //Convert both paths to the canonical form before comparison. $muPluginDir = realpath(WPMU_PLUGIN_DIR); $pluginPath = realpath($this->pluginAbsolutePath); if(!empty($muPluginDir)){ $cachedResult = (strpos($pluginPath, $muPluginDir) === 0); }else{ $cachedResult = false; } } return $cachedResult; } /** * MU plugins are partially supported, but only when we know which file in mu-plugins * corresponds to this plugin. * * @return bool */ protected function isUnknownMuPlugin() { return empty($this->muPluginFile) && $this->isMuPlugin(); } /** * Clear the cached plugin version. This method can be set up as a filter (hook) and will * return the filter argument unmodified. * * @param mixed $filterArgument * @return mixed */ public function clearCachedVersion($filterArgument = null) { $this->cachedInstalledVersion = null; return $filterArgument; } /** * Get absolute path to the main plugin file. * * @return string */ public function getAbsolutePath() { return $this->pluginAbsolutePath; } /** * Register a callback for filtering query arguments. * * The callback function should take one argument - an associative array of query arguments. * It should return a modified array of query arguments. * * @uses add_filter() This method is a convenience wrapper for add_filter(). * * @param callable $callback * @return void */ public function addQueryArgFilter($callback){ add_filter('puc_request_info_query_args-'.$this->slug, $callback); } /** * Register a callback for filtering arguments passed to wp_remote_get(). * * The callback function should take one argument - an associative array of arguments - * and return a modified array or arguments. See the WP documentation on wp_remote_get() * for details on what arguments are available and how they work. * * @uses add_filter() This method is a convenience wrapper for add_filter(). * * @param callable $callback * @return void */ public function addHttpRequestArgFilter($callback){ add_filter('puc_request_info_options-'.$this->slug, $callback); } /** * Register a callback for filtering the plugin info retrieved from the external API. * * The callback function should take two arguments. If the plugin info was retrieved * successfully, the first argument passed will be an instance of PagelayerInfo. Otherwise, * it will be NULL. The second argument will be the corresponding return value of * wp_remote_get (see WP docs for details). * * The callback function should return a new or modified instance of PagelayerInfo or NULL. * * @uses add_filter() This method is a convenience wrapper for add_filter(). * * @param callable $callback * @return void */ public function addResultFilter($callback){ add_filter('puc_request_info_result-'.$this->slug, $callback, 10, 2); } /** * Register a callback for one of the update checker filters. * * Identical to add_filter(), except it automatically adds the "puc_" prefix * and the "-$plugin_slug" suffix to the filter name. For example, "request_info_result" * becomes "puc_request_info_result-your_plugin_slug". * * @param string $tag * @param callable $callback * @param int $priority * @param int $acceptedArgs */ public function addFilter($tag, $callback, $priority = 10, $acceptedArgs = 1) { add_filter('puc_' . $tag . '-' . $this->slug, $callback, $priority, $acceptedArgs); } /** * Initialize the update checker Debug Bar plugin/add-on thingy. */ public function initDebugBarPanel() { $debugBarPlugin = dirname(__FILE__) . '/debug-bar-plugin.php'; if ( class_exists('Debug_Bar', false) && file_exists($debugBarPlugin) ) { /** @noinspection PhpIncludeInspection */ require_once $debugBarPlugin; $this->debugBarPlugin = new Pagelayer_PucDebugBarPlugin_3_2($this); } } /** * Trigger a PHP error, but only when $debugMode is enabled. * * @param string $message * @param int $errorType */ protected function triggerError($message, $errorType) { if ( $this->debugMode ) { trigger_error($message, $errorType); } } } endif; if ( !class_exists('PagelayerInfo_3_2', false) ): /** * A container class for holding and transforming various plugin metadata. * * @author Janis Elsts * @copyright 2016 * @version 3.2 * @access public */ class PagelayerInfo_3_2 { //Most fields map directly to the contents of the plugin's info.json file. //See the relevant docs for a description of their meaning. public $name; public $slug; public $version; public $homepage; public $sections = array(); public $banners; public $translations = array(); public $download_url; public $author; public $author_homepage; public $requires; public $tested; public $upgrade_notice; public $rating; public $num_ratings; public $downloaded; public $active_installs; public $last_updated; public $id = 0; //The native WP.org API returns numeric plugin IDs, but they're not used for anything. public $filename; //Plugin filename relative to the plugins directory. /** * Create a new instance of PagelayerInfo from JSON-encoded plugin info * returned by an external update API. * * @param string $json Valid JSON string representing plugin info. * @return PagelayerInfo_3_2|null New instance of PagelayerInfo, or NULL on error. */ public static function fromJson($json){ /** @var StdClass $apiResponse */ $apiResponse = json_decode($json); if ( empty($apiResponse) || !is_object($apiResponse) ){ trigger_error( "Failed to parse plugin metadata. Try validating your .json file with http://jsonlint.com/", E_USER_NOTICE ); return null; } $valid = self::validateMetadata($apiResponse); if ( is_wp_error($valid) ){ trigger_error($valid->get_error_message(), E_USER_NOTICE); return null; } $info = new self(); foreach(get_object_vars($apiResponse) as $key => $value){ $info->$key = $value; } //json_decode decodes assoc. arrays as objects. We want it as an array. $info->sections = (array)$info->sections; return $info; } /** * Very, very basic validation. * * @param StdClass $apiResponse * @return bool|WP_Error */ protected static function validateMetadata($apiResponse) { if ( !isset($apiResponse->name, $apiResponse->version) || empty($apiResponse->name) || empty($apiResponse->version) ) { return new WP_Error( 'puc-invalid-metadata', "The plugin metadata file does not contain the required 'name' and/or 'version' keys." ); } return true; } /** * Transform plugin info into the format used by the native WordPress.org API * * @return object */ public function toWpFormat(){ $info = new stdClass; //The custom update API is built so that many fields have the same name and format //as those returned by the native WordPress.org API. These can be assigned directly. $sameFormat = array( 'name', 'slug', 'version', 'requires', 'tested', 'rating', 'upgrade_notice', 'num_ratings', 'downloaded', 'active_installs', 'homepage', 'last_updated', ); foreach($sameFormat as $field){ if ( isset($this->$field) ) { $info->$field = $this->$field; } else { $info->$field = null; } } //Other fields need to be renamed and/or transformed. $info->download_link = $this->download_url; $info->author = $this->getFormattedAuthor(); $info->sections = array_merge(array('description' => ''), $this->sections); if ( !empty($this->banners) ) { //WP expects an array with two keys: "high" and "low". Both are optional. //Docs: https://wordpress.org/plugins/about/faq/#banners $info->banners = is_object($this->banners) ? get_object_vars($this->banners) : $this->banners; $info->banners = array_intersect_key($info->banners, array('high' => true, 'low' => true)); } return $info; } protected function getFormattedAuthor() { if ( !empty($this->author_homepage) ){ return sprintf('<a href="%s">%s</a>', $this->author_homepage, $this->author); } return $this->author; } } endif; if ( !class_exists('PagelayerUpdate_3_2', false) ): /** * A simple container class for holding information about an available update. * * @author Janis Elsts * @copyright 2016 * @version 3.2 * @access public */ class PagelayerUpdate_3_2 { public $id = 0; public $slug; public $version; public $homepage; public $download_url; public $upgrade_notice; public $tested; public $translations = array(); public $filename; //Plugin filename relative to the plugins directory. private static $fields = array( 'id', 'slug', 'version', 'homepage', 'tested', 'download_url', 'upgrade_notice', 'filename', 'translations' ); /** * Create a new instance of PagelayerUpdate from its JSON-encoded representation. * * @param string $json * @return PagelayerUpdate_3_2|null */ public static function fromJson($json){ //Since update-related information is simply a subset of the full plugin info, //we can parse the update JSON as if it was a plugin info string, then copy over //the parts that we care about. $pluginInfo = PagelayerInfo_3_2::fromJson($json); if ( $pluginInfo != null ) { return self::fromPagelayerInfo($pluginInfo); } else { return null; } } /** * Create a new instance of PagelayerUpdate based on an instance of PagelayerInfo. * Basically, this just copies a subset of fields from one object to another. * * @param PagelayerInfo_3_2 $info * @return PagelayerUpdate_3_2 */ public static function fromPagelayerInfo($info){ return self::fromObject($info); } /** * Create a new instance of PagelayerUpdate by copying the necessary fields from * another object. * * @param StdClass|PagelayerInfo_3_2|PagelayerUpdate_3_2 $object The source object. * @return PagelayerUpdate_3_2 The new copy. */ public static function fromObject($object) { $update = new self(); $fields = self::$fields; if ( !empty($object->slug) ) { $fields = apply_filters('puc_retain_fields-' . $object->slug, $fields); } foreach($fields as $field){ if (property_exists($object, $field)) { $update->$field = $object->$field; } } return $update; } /** * Create an instance of StdClass that can later be converted back to * a PagelayerUpdate. Useful for serialization and caching, as it avoids * the "incomplete object" problem if the cached value is loaded before * this class. * * @return StdClass */ public function toStdClass() { $object = new stdClass(); $fields = self::$fields; if ( !empty($this->slug) ) { $fields = apply_filters('puc_retain_fields-' . $this->slug, $fields); } foreach($fields as $field){ if (property_exists($this, $field)) { $object->$field = $this->$field; } } return $object; } /** * Transform the update into the format used by WordPress native plugin API. * * @return object */ public function toWpFormat(){ $update = new stdClass; $update->id = $this->id; $update->slug = $this->slug; $update->new_version = $this->version; $update->url = $this->homepage; $update->package = $this->download_url; $update->tested = $this->tested; $update->plugin = $this->filename; if ( !empty($this->upgrade_notice) ){ $update->upgrade_notice = $this->upgrade_notice; } return $update; } } endif; if ( !class_exists('Pagelayer_PucScheduler_3_2', false) ): /** * The scheduler decides when and how often to check for updates. * It calls @see PagelayerUpdateChecker::checkForUpdates() to perform the actual checks. * * @version 3.2 */ class Pagelayer_PucScheduler_3_2 { public $checkPeriod = 12; //How often to check for updates (in hours). public $throttleRedundantChecks = false; //Check less often if we already know that an update is available. public $throttledCheckPeriod = 72; /** * @var PagelayerUpdateChecker_3_2 */ protected $updateChecker; private $cronHook = null; /** * Scheduler constructor. * * @param PagelayerUpdateChecker_3_2 $updateChecker * @param int $checkPeriod How often to check for updates (in hours). */ public function __construct($updateChecker, $checkPeriod) { $this->updateChecker = $updateChecker; $this->checkPeriod = $checkPeriod; //Set up the periodic update checks $this->cronHook = 'check_plugin_updates-' . $this->updateChecker->slug; if ( $this->checkPeriod > 0 ){ //Trigger the check via Cron. //Try to use one of the default schedules if possible as it's less likely to conflict //with other plugins and their custom schedules. $defaultSchedules = array( 1 => 'hourly', 12 => 'twicedaily', 24 => 'daily', ); if ( array_key_exists($this->checkPeriod, $defaultSchedules) ) { $scheduleName = $defaultSchedules[$this->checkPeriod]; } else { //Use a custom cron schedule. $scheduleName = 'every' . $this->checkPeriod . 'hours'; add_filter('cron_schedules', array($this, '_addCustomSchedule')); } if ( !wp_next_scheduled($this->cronHook) && !defined('WP_INSTALLING') ) { wp_schedule_event(time(), $scheduleName, $this->cronHook); } add_action($this->cronHook, array($this, 'maybeCheckForUpdates')); register_deactivation_hook($this->updateChecker->pluginFile, array($this, '_removeUpdaterCron')); //In case Cron is disabled or unreliable, we also manually trigger //the periodic checks while the user is browsing the Dashboard. add_action( 'admin_init', array($this, 'maybeCheckForUpdates') ); //Like WordPress itself, we check more often on certain pages. /** @see wp_update_plugins */ add_action('load-update-core.php', array($this, 'maybeCheckForUpdates')); add_action('load-plugins.php', array($this, 'maybeCheckForUpdates')); add_action('load-update.php', array($this, 'maybeCheckForUpdates')); //This hook fires after a bulk update is complete. add_action('upgrader_process_complete', array($this, 'maybeCheckForUpdates'), 11, 0); } else { //Periodic checks are disabled. wp_clear_scheduled_hook($this->cronHook); } } /** * Check for updates if the configured check interval has already elapsed. * Will use a shorter check interval on certain admin pages like "Dashboard -> Updates" or when doing cron. * * You can override the default behaviour by using the "puc_check_now-$slug" filter. * The filter callback will be passed three parameters: * - Current decision. TRUE = check updates now, FALSE = don't check now. * - Last check time as a Unix timestamp. * - Configured check period in hours. * Return TRUE to check for updates immediately, or FALSE to cancel. * * This method is declared public because it's a hook callback. Calling it directly is not recommended. */ public function maybeCheckForUpdates(){ if ( empty($this->checkPeriod) ){ return; } $state = $this->updateChecker->getUpdateState(); $shouldCheck = empty($state) || !isset($state->lastCheck) || ( (time() - $state->lastCheck) >= $this->getEffectiveCheckPeriod() ); //Let plugin authors substitute their own algorithm. $shouldCheck = apply_filters( 'puc_check_now-' . $this->updateChecker->slug, $shouldCheck, (!empty($state) && isset($state->lastCheck)) ? $state->lastCheck : 0, $this->checkPeriod ); if ( $shouldCheck ) { $this->updateChecker->checkForUpdates(); } } /** * Calculate the actual check period based on the current status and environment. * * @return int Check period in seconds. */ protected function getEffectiveCheckPeriod() { $currentFilter = current_filter(); if ( in_array($currentFilter, array('load-update-core.php', 'upgrader_process_complete')) ) { //Check more often when the user visits "Dashboard -> Updates" or does a bulk update. $period = 60; } else if ( in_array($currentFilter, array('load-plugins.php', 'load-update.php')) ) { //Also check more often on the "Plugins" page and /wp-admin/update.php. $period = 3600; } else if ( $this->throttleRedundantChecks && ($this->updateChecker->getUpdate() !== null) ) { //Check less frequently if it's already known that an update is available. $period = $this->throttledCheckPeriod * 3600; } else if ( defined('DOING_CRON') && constant('DOING_CRON') ) { //WordPress cron schedules are not exact, so lets do an update check even //if slightly less than $checkPeriod hours have elapsed since the last check. $cronFuzziness = 20 * 60; $period = $this->checkPeriod * 3600 - $cronFuzziness; } else { $period = $this->checkPeriod * 3600; } return $period; } /** * Add our custom schedule to the array of Cron schedules used by WP. * * @param array $schedules * @return array */ public function _addCustomSchedule($schedules){ if ( $this->checkPeriod && ($this->checkPeriod > 0) ){ $scheduleName = 'every' . $this->checkPeriod . 'hours'; $schedules[$scheduleName] = array( 'interval' => $this->checkPeriod * 3600, 'display' => sprintf('Every %d hours', $this->checkPeriod), ); } return $schedules; } /** * Remove the scheduled cron event that the library uses to check for updates. * * @return void */ public function _removeUpdaterCron(){ wp_clear_scheduled_hook($this->cronHook); } /** * Get the name of the update checker's WP-cron hook. Mostly useful for debugging. * * @return string */ public function getCronHookName() { return $this->cronHook; } } endif; if ( !class_exists('Pagelayer_PucUpgraderStatus_3_2', false) ): /** * A utility class that helps figure out which plugin WordPress is upgrading. * * It may seem strange to have an separate class just for that, but the task is surprisingly complicated. * Core classes like Plugin_Upgrader don't expose the plugin file name during an in-progress update (AFAICT). * This class uses a few workarounds and heuristics to get the file name. */ class Pagelayer_PucUpgraderStatus_3_2 { private $upgradedPluginFile = null; //The plugin that is currently being upgraded by WordPress. public function __construct() { //Keep track of which plugin WordPress is currently upgrading. add_filter('upgrader_pre_install', array($this, 'setUpgradedPlugin'), 10, 2); add_filter('upgrader_package_options', array($this, 'setUpgradedPluginFromOptions'), 10, 1); add_filter('upgrader_post_install', array($this, 'clearUpgradedPlugin'), 10, 1); add_action('upgrader_process_complete', array($this, 'clearUpgradedPlugin'), 10, 1); } /** * Is there and update being installed RIGHT NOW, for a specific plugin? * * Caution: This method is unreliable. WordPress doesn't make it easy to figure out what it is upgrading, * and upgrader implementations are liable to change without notice. * * @param string $pluginFile The plugin to check. * @param WP_Upgrader|null $upgrader The upgrader that's performing the current update. * @return bool True if the plugin identified by $pluginFile is being upgraded. */ public function isPluginBeingUpgraded($pluginFile, $upgrader = null) { if ( isset($upgrader) ) { $upgradedPluginFile = $this->getPluginBeingUpgradedBy($upgrader); if ( !empty($upgradedPluginFile) ) { $this->upgradedPluginFile = $upgradedPluginFile; } } return ( !empty($this->upgradedPluginFile) && ($this->upgradedPluginFile === $pluginFile) ); } /** * Get the file name of the plugin that's currently being upgraded. * * @param Plugin_Upgrader|WP_Upgrader $upgrader * @return string|null */ private function getPluginBeingUpgradedBy($upgrader) { if ( !isset($upgrader, $upgrader->skin) ) { return null; } //Figure out which plugin is being upgraded. $pluginFile = null; $skin = $upgrader->skin; if ( $skin instanceof Plugin_Upgrader_Skin ) { if ( isset($skin->plugin) && is_string($skin->plugin) && ($skin->plugin !== '') ) { $pluginFile = $skin->plugin; } } elseif ( isset($skin->plugin_info) && is_array($skin->plugin_info) ) { //This case is tricky because Bulk_Plugin_Upgrader_Skin (etc) doesn't actually store the plugin //filename anywhere. Instead, it has the plugin headers in $plugin_info. So the best we can //do is compare those headers to the headers of installed plugins. $pluginFile = $this->identifyPluginByHeaders($skin->plugin_info); } return $pluginFile; } /** * Identify an installed plugin based on its headers. * * @param array $searchHeaders The plugin file header to look for. * @return string|null Plugin basename ("foo/bar.php"), or NULL if we can't identify the plugin. */ private function identifyPluginByHeaders($searchHeaders) { if ( !function_exists('get_plugins') ){ /** @noinspection PhpIncludeInspection */ require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); } $installedPlugins = get_plugins(); $matches = array(); foreach($installedPlugins as $pluginBasename => $headers) { $diff1 = array_diff_assoc($headers, $searchHeaders); $diff2 = array_diff_assoc($searchHeaders, $headers); if ( empty($diff1) && empty($diff2) ) { $matches[] = $pluginBasename; } } //It's possible (though very unlikely) that there could be two plugins with identical //headers. In that case, we can't unambiguously identify the plugin that's being upgraded. if ( count($matches) !== 1 ) { return null; } return reset($matches); } /** * @access private * * @param mixed $input * @param array $hookExtra * @return mixed Returns $input unaltered. */ public function setUpgradedPlugin($input, $hookExtra) { if (!empty($hookExtra['plugin']) && is_string($hookExtra['plugin'])) { $this->upgradedPluginFile = $hookExtra['plugin']; } else { $this->upgradedPluginFile = null; } return $input; } /** * @access private * * @param array $options * @return array */ public function setUpgradedPluginFromOptions($options) { if (isset($options['hook_extra']['plugin']) && is_string($options['hook_extra']['plugin'])) { $this->upgradedPluginFile = $options['hook_extra']['plugin']; } else { $this->upgradedPluginFile = null; } return $options; } /** * @access private * * @param mixed $input * @return mixed Returns $input unaltered. */ public function clearUpgradedPlugin($input = null) { $this->upgradedPluginFile = null; return $input; } } endif; if ( !class_exists('Pagelayer_PucFactory', false) ): /** * A factory that builds instances of other classes from this library. * * When multiple versions of the same class have been loaded (e.g. PagelayerUpdateChecker 1.2 * and 1.3), this factory will always use the latest available version. Register class * versions by calling {@link Pagelayer_PucFactory::addVersion()}. * * At the moment it can only build instances of the PagelayerUpdateChecker class. Other classes * are intended mainly for internal use and refer directly to specific implementations. If you * want to instantiate one of them anyway, you can use {@link Pagelayer_PucFactory::getLatestClassVersion()} * to get the class name and then create it with <code>new $class(...)</code>. */ class Pagelayer_PucFactory { protected static $classVersions = array(); protected static $sorted = false; /** * Create a new instance of PagelayerUpdateChecker. * * @see PagelayerUpdateChecker::__construct() * * @param $metadataUrl * @param $pluginFile * @param string $slug * @param int $checkPeriod * @param string $optionName * @param string $muPluginFile * @return PagelayerUpdateChecker_3_2 */ public static function buildUpdateChecker($metadataUrl, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = '') { $class = self::getLatestClassVersion('PagelayerUpdateChecker'); return new $class($metadataUrl, $pluginFile, $slug, $checkPeriod, $optionName, $muPluginFile); } /** * Get the specific class name for the latest available version of a class. * * @param string $class * @return string|null */ public static function getLatestClassVersion($class) { if ( !self::$sorted ) { self::sortVersions(); } if ( isset(self::$classVersions[$class]) ) { return reset(self::$classVersions[$class]); } else { return null; } } /** * Sort available class versions in descending order (i.e. newest first). */ protected static function sortVersions() { foreach ( self::$classVersions as $class => $versions ) { uksort($versions, array(__CLASS__, 'compareVersions')); self::$classVersions[$class] = $versions; } self::$sorted = true; } protected static function compareVersions($a, $b) { return -version_compare($a, $b); } /** * Register a version of a class. * * @access private This method is only for internal use by the library. * * @param string $generalClass Class name without version numbers, e.g. 'PagelayerUpdateChecker'. * @param string $versionedClass Actual class name, e.g. 'PagelayerUpdateChecker_1_2'. * @param string $version Version number, e.g. '1.2'. */ public static function addVersion($generalClass, $versionedClass, $version) { if ( !isset(self::$classVersions[$generalClass]) ) { self::$classVersions[$generalClass] = array(); } self::$classVersions[$generalClass][$version] = $versionedClass; self::$sorted = false; } } endif; //Register classes defined in this file with the factory. Pagelayer_PucFactory::addVersion('PagelayerUpdateChecker', 'PagelayerUpdateChecker_3_2', '3.2'); Pagelayer_PucFactory::addVersion('PagelayerUpdate', 'PagelayerUpdate_3_2', '3.2'); Pagelayer_PucFactory::addVersion('PagelayerInfo', 'PagelayerInfo_3_2', '3.2'); Pagelayer_PucFactory::addVersion('Pagelayer_PucGitHubChecker', 'Pagelayer_PucGitHubChecker_3_2', '3.2'); main/custom_fonts.php 0000644 00000022072 15104542337 0010733 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // custom_fonts.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } // This function will handle the custom fonts pages in Pagelayer add_action('init', 'pagelayer_custom_fonts_page', 9999); function pagelayer_custom_fonts_page() { global $pagelayer; // Custom fonts supports $supports = array( 'title', // post title ); // Add custom fonts lables $labels = array( 'name' => _x('Custom Fonts', 'plural'), 'singular_name' => _x('Custom Font', 'singular'), 'menu_name' => _x('Custom Fonts', 'admin menu'), 'name_admin_bar' => _x('Custom Fonts', 'admin bar'), 'add_new' => _x('Add New', 'Add'), 'add_new_item' => __('Add New'), 'new_item' => __('New Font'), 'edit_item' => __('Edit Font'), 'view_item' => __('View Font'), 'all_items' => __('All Fonts'), 'search_items' => __('Search Fonts'), 'not_found' => __('No Pagelayer custom fonts found'), ); $args = array( 'supports' => $supports, 'labels' => $labels, 'public' => false, 'show_in_menu' => false, 'publicly_queryable' => true, 'show_ui' => true, 'exclude_from_search' => true, 'show_in_nav_menus' => false, 'has_archive' => false, 'rewrite' => false, ); // Register custom post type register_post_type(PAGELAYER_FONT_POST_TYPE, $args); remove_post_type_support( PAGELAYER_FONT_POST_TYPE, 'editor'); } // Removing extra columns add_filter( 'manage_'.PAGELAYER_FONT_POST_TYPE.'_posts_columns', 'pagelayer_add_custom_columns' ); function pagelayer_add_custom_columns($columns){ unset( $columns['author'] ); unset( $columns['date'] ); $columns['pl-preview'] = __('Preview'); return $columns; } // Adding preview column data add_action( 'manage_'.PAGELAYER_FONT_POST_TYPE.'_posts_custom_column' , 'pagelayer_add_custom_columns_data', 10, 2 ); function pagelayer_add_custom_columns_data( $column, $post_id ){ if($column == __('pl-preview')){ $font_link = get_post_meta( $post_id, 'pagelayer_font_link', true ); echo '<style>@font-face { font-family: "'.get_the_title($post_id).'"; src: url("'.wp_unslash( $font_link ).'"); }</style>'; echo '<span style="font-family:\''.get_the_title($post_id).'\'; font-size:16px" >Preview of the CUSTOM font</span>'; } } // Removing row actions add_filter( 'post_row_actions', 'pagelayer_remove_row_actions', 10, 1 ); function pagelayer_remove_row_actions( $actions ){ if( get_post_type() === PAGELAYER_FONT_POST_TYPE ){ foreach($actions as $action => $html){ if($action == 'edit' || $action == 'trash' || $action == 'clone' || $action == 'untrash' || $action == 'delete'){ continue; }else{ unset($actions[$action]); } } } return $actions; } // Removing Screen options add_filter('screen_options_show_screen', 'pagelayer_remove_screen_options', 1, 1); function pagelayer_remove_screen_options($show_screen) { if(get_post_type() == PAGELAYER_FONT_POST_TYPE) { return false; } return $show_screen; } // Removing all other metaboxes. add_action('admin_init', function() {pagelayer_remove_all_metaboxes(PAGELAYER_FONT_POST_TYPE);}); function pagelayer_remove_all_metaboxes($type) { add_filter("get_user_option_meta-box-order_{$type}", function() use($type) { global $wp_meta_boxes; $publishbox = $wp_meta_boxes[$type]['side']['core']['submitdiv']; $fontsBox = $wp_meta_boxes[$type]['normal']['default']['pl-fonts-link-box']; $wp_meta_boxes[$type] = array( 'side' => array( 'core' => array( 'submitdiv' => $publishbox ) ), 'normal' => array( 'default' => array( 'pl-fonts-link-box' => $fontsBox ) ) ); return array(); }, PHP_INT_MAX); } // Hiding extra options of publish metabox add_action( 'admin_head', 'pagelayer_hide_publish_options' ); function pagelayer_hide_publish_options() { if(get_post_type() == PAGELAYER_FONT_POST_TYPE){ echo '<style>.submitbox #minor-publishing{ display: none; }</style>'; } } // Adding source metabox add_action('add_meta_boxes', 'pagelayer_add_meta_box'); function pagelayer_add_meta_box(){ add_meta_box( 'pl-fonts-link-box', _x('Source', 'font source'), 'pagelayer_font_link_metabox', PAGELAYER_FONT_POST_TYPE, 'normal', 'default', null); } function pagelayer_font_link_metabox($object){ wp_enqueue_media(); wp_nonce_field('pagelayer-font-post', 'pagelayer'); $link = get_post_meta($object->ID, 'pagelayer_font_link', true); ?> <div> <table width="100%"> <tr> <th valign="top" style="text-align:right; padding-right:20px; width:20%;"><?php echo __('Font File');?> : </th> <td> <div> <input type="text" class="pagelayer_font_input" id="pl_font_link" name="pagelayer_font_link" onclick="fontUpload(event)" style="width:70%" value="<?php echo wp_unslash($link); ?>" autocomplete="false" readonly="true"/> <button type="button" class="button button-light" onclick="fontUpload(event)">Upload Font</button> </div> </td> </tr> </table> </div> <script> window.onload = function(){ jQuery('#submitdiv').on('click', '#publish', function(e){ if(jQuery('#title').val()==''){ alert('Please insert title of the page'); return false; }else{ if(jQuery('#pl_font_link').val()==''){ alert('Please insert link of the font'); return false; }else{ return true; } } }); } function fontUpload(e){ var allowed_mime_type = ['.ttf', '.woff', '.woff2','.otf']; var allClear = false; var custom_uploader = wp.media({ title: 'Upload Font', library : { type : 'font' }, button: { text: 'Select Font' // button label text }, multiple: false }).on('select', function() { // it also has "open" and "close" events var attachment = custom_uploader.state().get('selection').first().toJSON(); for(var i=0; i<allowed_mime_type.length; i++){ if(attachment['filename'].indexOf(allowed_mime_type[i]) != -1){ allClear=true; break; } } if(allClear){ jQuery('.pagelayer_font_input').val(attachment['url']); }else{ alert('Kindly insert a correct font file. Allowed font file types are (otf|ttf|woff|woff2)'); } }).open(); } </script> <?php } // Saving source metabox content add_action('save_post', 'pagelayer_save_source_meta_box', 10, 3); function pagelayer_save_source_meta_box($post_id, $post, $update){ if(PAGELAYER_FONT_POST_TYPE != $post->post_type){ return $post_id; } // DO an admin referrer check if(!empty($_POST)){ check_admin_referer('pagelayer-font-post', 'pagelayer'); }else{ return $post_id; } $meta_box_link_value = ''; if(isset($_POST['pagelayer_font_link'])){ $meta_box_link_value = wp_unslash($_POST['pagelayer_font_link']); } update_post_meta($post_id, 'pagelayer_font_link', $meta_box_link_value ); } // Adding custom mime type add_filter('upload_mimes', 'pagelayer_custom_mime_types', 1, 1); function pagelayer_custom_mime_types($mime_types = array()){ global $pagelayer; forEach($pagelayer->allowed_mime_type as $key => $value){ $mime_types[$key]=$value; } return $mime_types; } // Adding custom mime type add_filter( 'mime_types', 'pagelayer_mime_types' ); function pagelayer_mime_types($default_mimes){ global $pagelayer; forEach($pagelayer->allowed_mime_type as $key => $value){ $default_mimes[$key]=$value; } return $default_mimes; } // Adding custom mime type add_filter( 'wp_check_filetype_and_ext', 'pagelayer_check_filetype_and_ext', 10, 5 ); function pagelayer_check_filetype_and_ext( $types, $file, $filename, $mimes, $real_mime = false ){ global $pagelayer; forEach($pagelayer->allowed_mime_type as $key => $value){ if ( false !== strpos( $filename, '.'.$key ) ) { $types['ext'] = $key; $types['type'] = $value; } } return $types; } // Removing notification. add_filter( 'post_updated_messages', 'pagelayer_delete_notification' ); function pagelayer_delete_notification( $messages ){ if(get_post_type() == PAGELAYER_FONT_POST_TYPE){ unset($messages['post'][1]); unset($messages['post'][6]); return $messages; } } main/premium-woocommerce.php 0000644 00000047373 15104542337 0012216 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } add_action( 'wp', 'pagelayer_pro_wc_customization' ); function pagelayer_pro_wc_customization(){ $options = pagelayer_get_customize_options(); if(!is_product()){ return; } if(!empty($options['woo_enable_product_zoom'] ) && $options['woo_enable_product_zoom'] == 'disable'){ remove_theme_support( 'wc-product-gallery-zoom' ); } if(!empty($options['woo_enable_product_zoom'] ) && $options['woo_enable_product_zoom'] == 'enable'){ add_theme_support( 'wc-product-gallery-zoom' ); } // Disable Product description if(!empty($options['woo_disable_product_desc'])){ remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); } // Disable up sell products if(!empty($options['woo_disable_upsells'])){ remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 ); } // Disable Related Products if(!empty($options['woo_disable_related_product'])){ remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); } } // WooCommerce Checkout Fields Hook add_filter('woocommerce_checkout_fields','pagelayer_wc_checkout_fields_no_label',10); function pagelayer_wc_checkout_fields_no_label($fields) { $options = pagelayer_get_customize_options(); if(empty($options['woo_checkout_label_placeholder'])){ return $fields; } // loop by category foreach ($fields as $category => $value) { // loop by fields foreach ($fields[$category] as $field => $property) { //Add label as placeholder if( $fields[$category][$field]['required'] == true ){ //Add required * in placeholder $fields[$category][$field]['placeholder'] = $fields[$category][$field]['label'] .' *'; }else{ //Add (optional) in placeholder $fields[$category][$field]['placeholder'] = $fields[$category][$field]['label'] .'(optional)'; } // remove label property unset($fields[$category][$field]['label']); } } return $fields; } // Disable sale flash add_filter( 'woocommerce_sale_flash', 'pagelayer_woo_sale_flash', 10, 3 ); function pagelayer_woo_sale_flash( $html, $post, $product ) { $options = pagelayer_get_customize_options(); if(empty($options['woo_disable_onsale'])){ return $html; } return ''; } // Change number of related product on single page add_filter( 'woocommerce_output_related_products_args', 'pagelayer_single_product_number_related_products', 99 ); function pagelayer_single_product_number_related_products( $args ) { $options = pagelayer_get_customize_options(); if(empty($options['woo_number_related_product'])){ return $args; } $args['posts_per_page'] = $options['woo_number_related_product']; // # Of related products if(!empty($options['woo_col_related_product'])){ $args['columns'] = $options['woo_col_related_product']; } return $args; } add_filter( 'pagelayer_wc_styles_array', 'pagelayer_pro_wc_styles_array'); function pagelayer_pro_wc_styles_array($woo_styles){ $styles = array( 'woo_shop_pagi_bg_color' => array( '.woocommerce .woocommerce-pagination ul li a, .woocommerce .woocommerce-pagination a.page-numbers' => 'background-color: {{color}}', ), 'woo_shop_pagi_color' => array( '.woocommerce .woocommerce-pagination ul li a, .woocommerce .woocommerce-pagination a.page-numbers' => 'color: {{color}}', ), 'woo_shop_pagi_borderwidth' => array( '.woocommerce .woocommerce-pagination ul li a, .woocommerce .woocommerce-pagination a.page-numbers' => 'border: {{val}}px solid', '.woocommerce .woocommerce-pagination ul li a:focus, .woocommerce .woocommerce-pagination ul li a:hover, .woocommerce .woocommerce-pagination ul li span.current, .woocommerce .woocommerce-pagination a.page-numbers:hover, .woocommerce .woocommerce-pagination a.page-numbers:focus, .woocommerce .woocommerce-pagination span.page-numbers.current' => 'border: {{val}}px solid', ), 'woo_shop_pagi_border_color' => array( '.woocommerce .woocommerce-pagination ul li a, .woocommerce .woocommerce-pagination a.page-numbers' => 'border-color: {{color}}', ), 'woo_shop_pagi_borderradius' => array( '.woocommerce .woocommerce-pagination ul li a, .woocommerce .woocommerce-pagination a.page-numbers' => 'border-radius: {{val}}px', '.woocommerce .woocommerce-pagination ul li a:focus, .woocommerce .woocommerce-pagination ul li a:hover, .woocommerce .woocommerce-pagination ul li span.current, .woocommerce .woocommerce-pagination a.page-numbers:hover, .woocommerce .woocommerce-pagination a.page-numbers:focus, .woocommerce .woocommerce-pagination span.page-numbers.current' => 'border-radius: {{val}}px', ), 'woo_shop_pagi_bg_hover_color' => array( '.woocommerce .woocommerce-pagination ul li a:focus, .woocommerce .woocommerce-pagination ul li a:hover, .woocommerce .woocommerce-pagination ul li span.current, .woocommerce .woocommerce-pagination a.page-numbers:hover, .woocommerce .woocommerce-pagination a.page-numbers:focus, .woocommerce .woocommerce-pagination span.page-numbers.current' => 'background-color: {{color}}', ), 'woo_shop_pagi_hover_color' => array( '.woocommerce .woocommerce-pagination ul li a:focus, .woocommerce .woocommerce-pagination ul li a:hover, .woocommerce .woocommerce-pagination ul li span.current, .woocommerce .woocommerce-pagination a.page-numbers:hover, .woocommerce .woocommerce-pagination a.page-numbers:focus, .woocommerce .woocommerce-pagination span.page-numbers.current' => 'color: {{color}}', ), 'woo_shop_pagi_hover_border_color' => array( '.woocommerce .woocommerce-pagination ul li a:focus, .woocommerce .woocommerce-pagination ul li a:hover, .woocommerce .woocommerce-pagination ul li span.current, .woocommerce .woocommerce-pagination a.page-numbers:hover, .woocommerce .woocommerce-pagination a.page-numbers:focus, .woocommerce .woocommerce-pagination span.page-numbers.current' => 'border-color: {{color}}', ), 'woo_onsale_bg_color' => array( '.woocommerce .product span.onsale' => 'background-color:{{color}};', ), 'woo_onsale_color' => array( '.woocommerce .product span.onsale' => 'color:{{color}};', ), 'woo_onsale_radius' => array( '.woocommerce .product span.onsale' => 'border-radius:{{color}}%;', ), 'woo_product_breadcrumb_color' => array( '.single-product .woocommerce-breadcrumb, .single-product .woocommerce-breadcrumb *' => 'color: {{color}}' ), 'woo_product_description_color' => array( '.single-product div.product .woocommerce-product-details__short-description, .single-product div.product .woocommerce-product-details__short-description p, .single-product div.product .product_meta, .single-product div.product .entry-content' => 'color: {{color}}' ), 'woo_product_price_color' => array( '.single-product div.product p.price, .single-product div.product span.price' => 'color: {{color}}' ), 'woo_product_title_color' => array( '.single-product .product .entry-title' => 'color: {{color}}' ) ); return array_merge( $woo_styles, $styles ); } add_filter( 'customize_register', 'pagelayer_pro_customizer_get_fields', 11); function pagelayer_pro_customizer_get_fields($wp_customize){ // General Setting $wp_customize->add_setting( 'pagelayer_lable_onsale', array( 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new Pagelayer_Customize_Control( $wp_customize, 'pagelayer_lable_onsale', array( 'type' => 'hidden', 'section' => 'pgl_woo_general', 'description' => __('<div class="pagelayer-customize-heading"><div>Onsale Style</div></div>', 'pagelayer'), 'li_class' => 'pagelayer-accordion-tab', 'priority' => 2 ) )); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_disable_onsale]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Custom_Control( $wp_customize, 'pagelayer_customizer_options[woo_disable_onsale]', array( 'type' => 'checkbox', 'label' => __('Disable Sale Notification'), 'section' => 'pgl_woo_general', 'priority' => 2 )) ); // Adds Customizer settings $wp_customize->add_setting( 'pagelayer_customizer_options[woo_onsale_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh' ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_onsale_color]', array( 'label' => __('Sale Text Color'), 'section' => 'pgl_woo_general', 'priority' => 3 ) ) ); // Adds Customizer settings $wp_customize->add_setting( 'pagelayer_customizer_options[woo_onsale_bg_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_onsale_bg_color]', array( 'label' => __('Sale Background'), 'section' => 'pgl_woo_general', 'priority' => 4 ) ) ); // General Setting pagelayer_register_slider_custoze_control($wp_customize, array( 'control' => 'pagelayer_customizer_options[woo_onsale_radius]', 'section' => 'pgl_woo_general', 'setting_type' => 'option', 'label' => __( 'Sale Notification Radius'), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'priority' => 4, 'input_attrs' => array( 'min' => 0, 'max' => 100, 'step' => 1, ) )); pagelayer_register_slider_custoze_control($wp_customize, array( 'control' => 'pagelayer_customizer_options[woo_product_image_width]', 'section' => 'pgl_woo_single_product', 'setting_type' => 'option', 'label' => __('Image Width'), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'priority' => 3, 'input_attrs' => array( 'min' => 0, 'max' => 70, 'step' => 1, ) )); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_enable_product_zoom]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'pagelayer_customizer_options[woo_enable_product_zoom]', array( 'type' => 'select', 'label' => __('Image Zoom Effect'), 'section' => 'pgl_woo_single_product', 'priority' => 4, 'choices' => array( '' => __('Default'), 'enable' => __('Enable'), 'disable' => __('Disable'), ) ) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_disable_product_desc]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Custom_Control( $wp_customize, 'pagelayer_customizer_options[woo_disable_product_desc]', array( 'type' => 'checkbox', 'label' => __('Hide Products Description'), 'section' => 'pgl_woo_single_product', 'priority' => 5 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_disable_upsells]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Custom_Control( $wp_customize, 'pagelayer_customizer_options[woo_disable_upsells]', array( 'type' => 'checkbox', 'label' => __('Disable Products Up Sells'), 'section' => 'pgl_woo_single_product', 'priority' => 6 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_disable_related_product]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Custom_Control( $wp_customize, 'pagelayer_customizer_options[woo_disable_related_product]', array( 'type' => 'checkbox', 'label' => __('Disable Related Products'), 'section' => 'pgl_woo_single_product', 'priority' => 7 )) ); pagelayer_register_slider_custoze_control($wp_customize, array( 'control' => 'pagelayer_customizer_options[woo_number_related_product]', 'section' => 'pgl_woo_single_product', 'setting_type' => 'option', 'label' => __('No. of Related Products'), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'priority' => 8, 'input_attrs' => array( 'min' => 1, 'max' => 10, 'step' => 1, ), )); pagelayer_register_slider_custoze_control($wp_customize, array( 'control' => 'pagelayer_customizer_options[woo_col_related_product]', 'section' => 'pgl_woo_single_product', 'setting_type' => 'option', 'label' => __('Related Products columns'), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'priority' => 8, 'input_attrs' => array( 'min' => 1, 'max' => 6, 'step' => 1, ), )); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_product_title_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh' ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_product_title_color]', array( 'label' => __('Title Color'), 'section' => 'pgl_woo_single_product', 'priority' => 9 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_product_price_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh' ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_product_price_color]', array( 'label' => __('Price Color'), 'section' => 'pgl_woo_single_product', 'priority' => 10 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_product_description_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh' ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_product_description_color]', array( 'label' => __('Description Color'), 'section' => 'pgl_woo_single_product', 'priority' => 11 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_product_breadcrumb_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh' ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_product_breadcrumb_color]', array( 'label' => __('Breadcrumb Color'), 'section' => 'pgl_woo_single_product', 'priority' => 12 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_checkout_label_placeholder]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Custom_Control( $wp_customize, 'pagelayer_customizer_options[woo_checkout_label_placeholder]', array( 'type' => 'checkbox', 'label' => __('Show Label as Placeholder'), 'section' => 'pgl_woo_checkout', 'priority' => 4 )) ); // Shop page settings $wp_customize->add_setting( 'pagelayer_lable_shop_pagi', array( 'capability' => 'edit_theme_options', )); $wp_customize->add_control( new Pagelayer_Customize_Control( $wp_customize, 'pagelayer_lable_shop_pagi', array( 'type' => 'hidden', 'section' => 'pgl_woo_product_catalog', 'description' => __('<div class="pagelayer-customize-heading"><div>Pagination Style</div></div>', 'pagelayer'), 'li_class' => 'pagelayer-accordion-tab', 'priority' => 11 ) )); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_shop_pagi_bg_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh' ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_shop_pagi_bg_color]', array( 'label' => __('Background Color'), 'section' => 'pgl_woo_product_catalog', 'priority' => 11 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_shop_pagi_bg_hover_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh' ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_shop_pagi_bg_hover_color]', array( 'label' => __('Background Hover Color'), 'section' => 'pgl_woo_product_catalog', 'priority' => 11 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_shop_pagi_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_shop_pagi_color]', array( 'label' => __('Text Color'), 'section' => 'pgl_woo_product_catalog', 'priority' => 11 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_shop_pagi_hover_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_shop_pagi_hover_color]', array( 'label' => __('Text Hover Color'), 'section' => 'pgl_woo_product_catalog', 'priority' => 11 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_shop_pagi_border_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_shop_pagi_border_color]', array( 'label' => __('Border Color'), 'section' => 'pgl_woo_product_catalog', 'priority' => 11 )) ); $wp_customize->add_setting( 'pagelayer_customizer_options[woo_shop_pagi_hover_border_color]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'transport' => 'refresh', ) ); $wp_customize->add_control( new Pagelayer_Customize_Alpha_Color_Control( $wp_customize, 'pagelayer_customizer_options[woo_shop_pagi_hover_border_color]', array( 'label' => __('Border Hover Color'), 'section' => 'pgl_woo_product_catalog', 'priority' => 11 )) ); pagelayer_register_slider_custoze_control($wp_customize, array( 'control' => 'pagelayer_customizer_options[woo_shop_pagi_borderwidth]', 'section' => 'pgl_woo_product_catalog', 'setting_type' => 'option', 'label' => __('Pagination Border Width'), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'absint', 'priority' => 11, 'input_attrs' => array( 'min' => 0, 'max' => 50, 'step' => 1, ), 'responsive' => 1, )); pagelayer_register_slider_custoze_control($wp_customize, array( 'control' => 'pagelayer_customizer_options[woo_shop_pagi_borderradius]', 'section' => 'pgl_woo_product_catalog', 'setting_type' => 'option', 'label' => __('Border Radius'), 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'absint', 'priority' => 11, 'input_attrs' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), )); } main/template-builder.php 0000644 00000072633 15104542337 0011457 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // tampalte-builder.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } // The function shows the page to add template function pagelayer_builder_template_wizard(){ global $pagelayer; if(!empty($_REQUEST['post'])){ $posts = get_posts([ 'post_type' => $pagelayer->builder['name'], 'post_status' => 'any', 'include' => (int) $_REQUEST['post'], ]); //print_r($posts); // Did we find it ? if(!empty($posts[0])){ $post = $posts[0]; $_post['id'] = $post->ID; $_post['type'] = get_post_meta($post->ID, 'pagelayer_template_type', true); $_post['conditions'] = get_post_meta( $post->ID, 'pagelayer_template_conditions', true ); $_post['post_title'] = $post->post_title; } } // Fill in defaults if nothing found if(empty($_post)){ $_post['id'] = 0; $_post['type'] = ''; $_post['post_title'] = ''; $_post['conditions'] = []; } ?> <style> .pagelayer-temp-search-sel-open{ float: right; font-size: 10px; padding: 0px; line-height: 20px; } .pagelayer-temp-search-sel-remove{ position: absolute; right: 20px; font-size: 11px; top: 10px; z-index: 10; } .pagelayer-temp-search-sel-span{ display: block; margin: 2px; cursor: pointer; box-sizing: border-box; border: 1px solid #dbdbdb; transition: all 0.3s; font-size: 13px; padding: 3px; } .pagelayer-temp-search-sel-span:hover{ border-color: #00A0D2; background-color: #3e8ef7; color: #ffffff; box-shadow: 0px 1px 1px #3e8ef7bf; } .pagelayer-temp-search-sel-span i{ font-size: 15px; line-height: 1em; padding: 3px; color: #555; transition: all 0.3s; vertical-align: middle; } .pagelayer-temp-search-sel-span:hover i{ color: #ffffff; } .pagelayer-temp-search-sel{ vertical-align: top } .pagelayer-temp-toggle{ cursor:pointer; } .pagelayer-temp-label{ display:block; margin-bottom:5px; } .pagelayer-temp-fields{ display:inline-block; position:relative; margin:0 3px; } .pagelayer-temp-condition{ border:1px solid #d0d0d0; margin-bottom:10px; } .pagelayer-temp-tab{ padding: 6px 10px; background: #d0d0d0; display: flow-root; } .pagelayer-temp-condition-div{ padding:10px; } .pagelayer-temp-hide{ display:none; } .pagelayer-temp-search-holder{ position:relative; display:inline-block; } .pagelayer-temp-search-div{ cursor: pointer; padding: 5px; border: solid 1px #d1d1d1; background: #fffffc; color: #333; vertical-align: middle; width: 126px; display: flex; /* min-width: 245px; border-radius: 4px; margin: 0 auto; position: absolute; top: 7px; */ } .pagelayer-temp-search-preview{ position: relative; margin-right: 5px; width: 100%; border: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .pagelayer-temp-search-preview i{ padding-right: 5px; font-size: 19px; color: #666; vertical-align: middle; } .pagelayer-temp-search-name{ font-size: 13px; } .pagelayer-temp-search-selector{ position: absolute; z-index: 1000; border: 1px solid rgba(0,0,0,0.2) !important; background: #fff !important; box-shadow: 0 3px 5px rgba(0,0,0,0.2) !important; -webkit-border-radius: 2px !important; text-shadow: none !important; padding: 5px; height: auto; box-sizing: border-box; display: none; width: 100%; border-radius: 2px; margin: 0 0 0 auto; top: 35px; } .pagelayer-temp-search-val{ margin-bottom: 5px !important; padding: 2px 6px; line-height: 20px !important; border-radius: 3px !important; width: 100%; } .pagelayer-temp-search-list{ width: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 0; max-height: 183px; overflow-y: auto; } .pagelayer-temp-close{ float:right; font-size:15px; } .pagelayer-close-condition{ font-size: 15px; font-weight: 900; height:7px; margin-top: -2px; padding-left:5px; padding-right:5px; float:right; cursor: pointer; } .pagelayer-temp-add-new, .pagelayer-temp-submit-btn{ font-size: 14px; font-weight: bold; cursor: pointer; border-radius: 2px; padding: 4px 8px; border: #398439 1px solid; color: #fff; background: #449d44; } .pagelayer-temp-pad5{ padding-left:5px; padding-right:5px; } .pagelayer-temp-container{ background-color:#fff; padding:0px; width:95%; border-radius: 4px; margin: 10px auto; } .pagelayer-temp-head{ padding:10px; font-weight:bold; border-bottom: 1px solid #dfdfdf; } .pagelayer-temp-row{ display:table-cell; padding: 10px; } .pagelayer-temp-condition-holder{ padding: 0px 10px; display: none; } .pagelayer-temp-submit{ padding: 10px; } .pagelayer-temp-container select{ font-size:13px; } .postbox{ margin-bottom:5px; } </style> <?php $sel_type = $_post['type']; $dis_conditions = $_post['conditions']; echo ' <div class="pagelayer-temp-container"> <div class="pagelayer-temp-head"> <img src="'.PAGELAYER_URL.'/images/pagelayer-logo-19.png'.'" style="vertical-align: top;" /> '; if(empty($_post['type'])){ echo __pl('add_temp'); }else{ echo __pl('edit_temp').'<span style="float:right" class="pagelayer-temp-edit"><a href="'.esc_url( pagelayer_shortlink($_post['id']).'&pagelayer-live=1' ).'">'.__pl('edit_using').'</a></span>'; } echo ' </div> <div class="pagelayer-temp-row"> <label class="pagelayer-temp-label">'.__('Select Template Type :').'</label> <select name="pagelayer_template_type" class="postbox"> '.pagelayer_create_sel_options( $pagelayer->builder["type"], $sel_type ).' </select> </div> <div class="pagelayer-temp-row"> <label for="pagelayer_lib_title" class="pagelayer-temp-label">'.__('Name :').'</label> <input type="text" name="pagelayer_lib_title" size="30" value="'.$_post['post_title'].'" /> </div> <div class="pagelayer-temp-condition-holder '.((!empty($pagelayer->builder["type"][$sel_type]['no_condition'])) ? ' pagelayer-temp-hide' : '').'"> <label class="pagelayer-temp-label">'.__('Template Display Conditions :').'</label> <div class="pagelayer-temp-condition-container">'; if( !empty($dis_conditions) ){ foreach($dis_conditions as $condi){ echo ' <div class="pagelayer-temp-condition"> <div class="pagelayer-temp-tab"> <span class="pagelayer-temp-toggle pagelayer-temp-pad5">☰</span> <span>'. __('Display Conditions').'</span> <span class="pagelayer-close-condition">×</span> </div> <div class="pagelayer-temp-condition-div"> <div class="pagelayer-temp-fields"> <label for="pagelayer_condition_type" class="pagelayer-temp-label">'. __('Action Type :').'</label> <select name="pagelayer_condition_type[]" class="postbox"> '.pagelayer_create_sel_options( $pagelayer->builder["action"], $condi['type'] ).' </select> </div> <div class="pagelayer-temp-fields"> <label for="pagelayer_condition_name" class="pagelayer-temp-label"> '. __('Display On : ').'</label> <select name="pagelayer_condition_name[]" class="postbox"> '.pagelayer_create_sel_options( $pagelayer->builder['dispay_on'], $condi['template'] ).' </select> </div> <div class="pagelayer-temp-fields '.(empty($condi['template']) ? 'pagelayer-temp-hide' : '').'"> <label for="pagelayer_condition_sub_template" class="pagelayer-temp-label"> '. __('Template : ').'</label> <select name="pagelayer_condition_sub_template[]" class="postbox">'; if($condi['template'] == 'archives'){ echo pagelayer_create_sel_options( $pagelayer->builder['archives_templates'], $condi['sub_template'] ); }else{ echo pagelayer_create_sel_options( $pagelayer->builder['singular_templates'], $condi['sub_template'] ); } echo ' </select> </div> <div class="pagelayer-temp-fields pagelayer-temp-search-sel '. ((empty($condi['sub_template'])) ? ' pagelayer-temp-hide' : '').'"> <label for="pagelayer_condition_id" class="pagelayer-temp-label">'.__('Specific Items').'</label>'; $req_arr['id'] = $condi['id']; $req_arr['filter_type'] = 'post'; if( is_numeric(strpos($condi['sub_template'] , 'author'))){ $req_arr['filter_type'] = 'author'; } if( is_numeric(strpos($condi['sub_template'] , 'category')) || is_numeric(strpos($condi['sub_template'] , 'tag')) ){ $req_arr['filter_type'] = 'taxonomy'; } $title_array = pagelayer_builder_get_title($req_arr['filter_type'], $req_arr['id']); $id = ''; $title = ''; foreach ( $title_array as $tmp_id => $tmp_title ) { $id = $tmp_id; $title = $tmp_title; } echo ' <select name="pagelayer_condition_id[]" class="postbox pagelayer-temp-hide"> <option selected value="'. ((empty($id)) ? '' : $id).'"> '. ((empty($title)) ? __('All') : $title).'</option> </select> <div class="pagelayer-temp-search-holder"> <div class="pagelayer-temp-search-div"> <div class="pagelayer-temp-search-preview"> <span class="pagelayer-temp-search-name"> '. ((empty($title)) ? __('All') : $title).' </span> <span class="pagelayer-temp-close '. ((empty($title)) ? ' pagelayer-temp-hide' : '').'">×</span> </div> <span class="">⯆</span> </div> <div class="pagelayer-temp-search-selector"> <input autocomplete="off" type="text" class="pagelayer-temp-search-val" name="search-icon" placeholder="Search"> <div class="pagelayer-temp-search-list"> </div> </div> </div> </div> </div> </div>'; } } echo ' </div> <div style="margin:15px 10px;"> <span class="pagelayer-temp-add-new" >'. __('Add Conditions').'</span> </div> </div> <div class="pagelayer-temp-submit"> <center><button type="submit" class="pagelayer-temp-submit-btn button button-primary">'.__('Save Template').'</button></center> </div> </div> <script type="text/javascript"> pagelayer_cpt = '.json_encode($pagelayer->builder).'; pagelayer_ajax_url = "'.admin_url( 'admin-ajax.php' ).'?"; pagelayer_builder_nonce = "'.wp_create_nonce('pagelayer_builder').'"; </script>'; ?> <script type="text/javascript"> jQuery(document).ready(function(){ var $ = jQuery; if(typeof pagelayer !== 'undefined'){ var $ = pagelayer.$$ || $; } // The container var pl_temp = $(".pagelayer-temp-container"); var pl_condi = pl_temp.find('.pagelayer-temp-condition-holder'); // Get values from multi-dimensional array by key var pagelayer_multi_array_search = function(array = [], key){ var array_key = []; if (key in array) { array_key = array[key]; } for( var k in array) { if (typeof array[k] === 'object' && key in array[k]) { array_key = array[k][key]; } } return array_key; } // Creates the select options var create_options = function(opt_array){ var options = ''; var tmp_numeric = ''; // Required to handle key 404 in singular templates as json decode puts number first and that spoils our order for (x in opt_array){ // Single item if(typeof opt_array[x] == 'string'){ options += option(x, opt_array[x]); if(tmp_numeric.length > 0){ options += tmp_numeric; tmp_numeric = ''; } // If is array then we get the label string }else if(typeof opt_array[x] == 'object'){ if('label' in opt_array[x]){ if(x == 404){ tmp_numeric = option(x, opt_array[x]['label']); continue; } options += option(x, opt_array[x]['label']); // Groups }else{ options += '<optgroup label="'+x+'">'; options += create_options(opt_array[x]); options += '</optgroup>'; } } } return options; } var option = function(val, lang){ return '<option value="'+val+'">'+lang+'</option>'; } var html_condi = '<div class="pagelayer-temp-condition">'+ '<div class="pagelayer-temp-tab">'+ '<span class="pagelayer-temp-toggle pagelayer-temp-pad5">☰</span>'+ '<span>'+<?php echo "'".__('Display Conditions')."'";?>+'</span>'+ '<span class="pagelayer-close-condition">×</span>'+ '</div>'+ '<div class="pagelayer-temp-condition-div">'+ '<div class="pagelayer-temp-fields">'+ '<label for="pagelayer_condition_type" class="pagelayer-temp-label">'+<?php echo "'".__('Action Type')."'";?>+'</label>'+ '<select name="pagelayer_condition_type[]" class="postbox">'+ create_options(pagelayer_cpt["action"])+ '</select>'+ '</div>'+ ' <div class="pagelayer-temp-fields">'+ '<label for="pagelayer_condition_name" class="pagelayer-temp-label">'+<?php echo "'".__('Display On')."'";?>+'</label>'+ '<select name="pagelayer_condition_name[]" class="postbox">'+ create_options(pagelayer_cpt["dispay_on"])+ '</select>'+ '</div>'+ ' <div class="pagelayer-temp-fields pagelayer-temp-hide">'+ '<label for="pagelayer_condition_sub_template" class="pagelayer-temp-label">'+<?php echo "'".__('Template')."'";?>+'</label>'+ '<select name="pagelayer_condition_sub_template[]" class="postbox">'+ '</select>'+ '</div>'+ ' <div class="pagelayer-temp-fields pagelayer-temp-hide pagelayer-temp-search-sel">'+ '<label for="pagelayer_condition_id" class="pagelayer-temp-label">'+<?php echo "'".__('Specific Items')."'";?>+'</label>'+ '<select name="pagelayer_condition_id[]" class="postbox pagelayer-temp-hide">'+ '<option selected value="">All</option>'+ '</select>'+ '<div class="pagelayer-temp-search-holder">'+ '<div class="pagelayer-temp-search-div">'+ '<div class="pagelayer-temp-search-preview">'+ '<span class="pagelayer-temp-search-name">All</span>'+ '<span class="pagelayer-temp-close pagelayer-temp-hide">×</span>'+ '</div>'+ '<span class="">⯆</span>'+ '</div>'+ '<div class="pagelayer-temp-search-selector">'+ '<input autocomplete="off" type="text" class="pagelayer-temp-search-val" name="search-icon" placeholder="Search">'+ '<div class="pagelayer-temp-search-list">'+ '</div>'+ '</div>'+ '</div>'+ '</div>'+ '</div>'+ '</div>'; // Removes a condition var close_tab = function(){ var condi = pl_temp.find(".pagelayer-temp-condition"); condi.find(".pagelayer-close-condition").click(function(){ jQuery(this).closest(".pagelayer-temp-condition").remove(); }); }; // Toggle a condition content var toggle_tab = function(){ var condi = pl_temp.find(".pagelayer-temp-condition"); condi.find(".pagelayer-temp-tab").unbind("click"); condi.find(".pagelayer-temp-tab").click(function(){ jQuery(this).closest(".pagelayer-temp-condition").find(".pagelayer-temp-condition-div").toggle(); }); }; // Opens the search selector var open_search = function(){ var el = pl_temp.find('.pagelayer-temp-search-div') el.unbind('click'); el.on('click', function(){ jQuery(this).parent().find('.pagelayer-temp-search-selector').slideToggle(); }); }; var pagelayer_set_inter; // A timer // Get closest select box by name in closest "pagelayer-temp-condition" class var pagelayer_get_closest_sel = function(jEle, name){ return jEle.closest(".pagelayer-temp-condition").find("[name='"+name+"']"); } // Handle search of values var search_list = function(){ pl_temp.find('.pagelayer-temp-search-val').on('keyup', function(){ var v = this.value; var iEle = jQuery(this); var template_name, ele_name, template_name_array; //v = v.replace(/\s+/g, '-'); template_name = pagelayer_get_closest_sel(iEle, 'pagelayer_condition_name[]').val(); ele_name = pagelayer_get_closest_sel(iEle, 'pagelayer_condition_sub_template[]').val(); template_name_array = pagelayer_multi_array_search(pagelayer_cpt[template_name+'_templates'], ele_name); data_array = { pagelayer_nonce: pagelayer_builder_nonce, search : v, filter_type : template_name_array['filter_type'] || 'post', object_type : template_name_array['object_type'] || 'post', }; clearTimeout(pagelayer_set_inter); pagelayer_set_inter = setTimeout(function () { v = v.toLowerCase(); jQuery.ajax({ url: pagelayer_ajax_url+'&action=pagelayer_search_ids', type: 'post', data : data_array, success:function(response){ iEle.next().html(response); //console.log(response); } }); //row.find('.pagelayer-temp-search-list').empty().html(span); }, 200); }); // Handle click within the ID selector pl_temp.find('.pagelayer-temp-search-selector').unbind('click'); pl_temp.find('.pagelayer-temp-search-selector').on('click', function(e){ var jEle = jQuery(e.target); var val = jEle.attr('value'); var text = jEle.text(); if(val.length < 1 || text.length < 1){ return false; } // Set the ID in this list var row = jEle.closest('.pagelayer-temp-search-sel'); row.find('[name="pagelayer_condition_id[]"]').html('<option selected value="'+ val +'">'+ text +'</option>'); row.find('.pagelayer-temp-search-preview .pagelayer-temp-search-name').text(text).next().show(); row.find('.pagelayer-temp-search-selector').slideUp(); return false; }); pl_temp.find('.pagelayer-temp-close').click(function(e){ e.stopPropagation(); var sHold = jQuery(this).closest('.pagelayer-temp-search-sel'); sHold.find('[name="pagelayer_condition_id[]"]').html('<option selected value="">All</option>'); sHold.find('.pagelayer-temp-search-preview .pagelayer-temp-search-name').text('All').next().hide(); }); }; // Whenever a condition is to be initialized var reinit_conditions = function(){ close_tab(); toggle_tab(); open_search(); search_list(); pl_temp.find('select').unbind('change'); pl_temp.find('select').on('change', function(event, triggerEle){ var sEle = jQuery(this); var sVal = sEle.val(); var condiEle = triggerEle || pl_condi; //console.log(sVal); // Hide search box if any select is changed var temp_search = jQuery('.pagelayer-temp-search-selector'); if(temp_search.is(':visible') || jQuery('.pagelayer-temp-search-preview > .pagelayer-temp-close').is(':visible')){ temp_search.hide(); temp_search.find('.pagelayer-temp-search-list').empty(); temp_search.find('.pagelayer-temp-search-val').val(''); } switch(sEle.attr('name')){ case 'pagelayer_template_type': var no_condition = pagelayer_cpt["type"][sVal]['no_condition'] || false; if( no_condition ){ pl_condi.hide(); }else if(!pl_condi.is(':visible')){ pl_condi.show(); } condiEle.find("[name='pagelayer_condition_name[]']").each(function(){ var condi_name = jQuery(this); var need_selection = pagelayer_multi_array_search(pagelayer_cpt["type"], sVal); if(typeof need_selection === 'object' && 'need_selection' in need_selection){ if(need_selection['need_selection'] != condi_name.val() ){ condi_name.val(need_selection['need_selection']).trigger('change'); } condi_name.css('pointer-events', 'none'); }else if(condi_name.css('pointer-events') == 'none'){ condi_name.css('pointer-events', 'all'); } }); break; case 'pagelayer_condition_type[]': //console.log(sEle.val()); break; case 'pagelayer_condition_name[]': var ele_name = pagelayer_get_closest_sel(sEle, 'pagelayer_condition_sub_template[]'); //console.log(sEle.val()); if(sVal.length == 0){ ele_name.closest(".pagelayer-temp-fields").addClass('pagelayer-temp-hide'); }else{ if(pagelayer_cpt[sVal+"_templates"]){ ele_name.html(create_options(pagelayer_cpt[sVal+"_templates"])); ele_name.closest(".pagelayer-temp-fields").removeClass('pagelayer-temp-hide'); } } ele_name.trigger('change'); break; case 'pagelayer_condition_sub_template[]': // Get selected template name var template_name = pagelayer_get_closest_sel(sEle, 'pagelayer_condition_name[]').val(); var ele_name = pagelayer_get_closest_sel(sEle, 'pagelayer_condition_id[]'); var template_name_array = pagelayer_multi_array_search(pagelayer_cpt[template_name+'_templates'], sVal); if(sVal.length == 0 || template_name_array['no_id_section'] || !sEle.is(':visible')){ ele_name.closest(".pagelayer-temp-fields").addClass('pagelayer-temp-hide'); }else{ ele_name.closest(".pagelayer-temp-fields").removeClass('pagelayer-temp-hide'); } ele_name.closest(".pagelayer-temp-fields").find('.pagelayer-temp-close').click(); break; case 'pagelayer_condition_id[]': //console.log(sEle.val()); break; } }); } reinit_conditions(); <?php if(!empty($_post['id'])){ $sub_template_sel = "'pagelayer_condition_sub_template[]'"; echo ' //reinit_conditions(); pl_condi.show(); pl_temp.find("select[name=pagelayer_template_type]").trigger("change"); pl_temp.find("select[name='.$sub_template_sel.']").trigger("change"); pl_temp.find("select[name=pagelayer_template_type]").prop("disabled", true); //pl_condi.find("select").trigger("change")'; } ?> // On click add more condition pl_temp.find(".pagelayer-temp-add-new").click(function(){ pl_condi.show(); var hEle = jQuery(html_condi); pl_temp.find('.pagelayer-temp-condition-container').append(hEle); reinit_conditions(); pl_temp.find('select[name="pagelayer_template_type"]').trigger('change', [hEle]); }); // Save the template pl_temp.find(".pagelayer-temp-submit-btn").click(function(e){ e.preventDefault(); var data = pl_temp.find('input, select, textarea').serialize(); //alert(data); jQuery.ajax({ url: pagelayer_ajax_url+'&action=pagelayer_save_template&postID='+ <?php echo "'".$_post['id']."'";?>, type: 'post', data : 'pagelayer_nonce='+ pagelayer_builder_nonce +'&'+ data, success: function(response, status, xhr){ var obj = jQuery.parseJSON(response); //alert(obj); if(obj['error']){ alert(obj['error']); }else{ alert(obj['success']); var hasPost = new window.URLSearchParams(window.location.search).has('post'); if(!hasPost){ window.location.replace(window.location+'&post='+obj['id']); } } }, error: function(errorThrown){ alert(errorThrown); console.log(errorThrown); } }); }); }); </script> <?php } // Get Title from ID function pagelayer_builder_get_title($type, $ids = array()){ $ids = (array) $ids; $sel_title = []; switch ( $type ) { case 'taxonomy': $terms = get_terms([ 'include' => $ids, 'hide_empty' => false, ]); global $wp_taxonomies; foreach ( $terms as $term ) { $sel_title[ $term->term_taxonomy_id ] = $term->name ; } break; case 'post': $query = new \WP_Query([ 'post_type' => 'any', 'post__in' => $ids, 'posts_per_page' => -1, 'post_status' => 'any', ]); foreach ( $query->posts as $post ) { $sel_title[ $post->ID ] = $post->post_title; } break; case 'author': $query_params = [ 'capability' => array( 'edit_posts' ), 'fields' => ['ID', 'display_name'], 'include' => $ids, ]; // Capability queries were only introduced in WP 5.9. if( version_compare( $GLOBALS['wp_version'], '5.9-alpha', '<' ) ){ $args['who'] = 'authors'; unset( $args['capability'] ); } $user_query = new \WP_User_Query( $query_params ); foreach ( $user_query->get_results() as $author ) { $sel_title[ $author->ID ] = $author->display_name; } break; } return $sel_title; } // Append the Popup templates function pagelayer_builder_popup_append(){ global $pagelayer; if(!empty($GLOBALS['pagelayer_builder_popup_append_called'])){ return; } $GLOBALS['pagelayer_builder_popup_append_called'] = 1; // Render the multiple Popups foreach($pagelayer->template_popup_ids as $id => $priority){ $bLoadString = ''; $content = pagelayer_get_post_content($id); // For popup before loading option // First check that att is placed or not. Then scan and extract the value of id and insert it into bLoadString variable if(strpos($content, 'data-trig_before_load') !== false){ preg_match('#pagelayer-id=([^\s]+)#', $content, $matches); $bLoadString = 'pagelayer-popup-Shown="1" style="display: flex;" pagelayer-popup-id="'.$matches[1].'"'; } echo '<div class="pagelayer-popup-modal" '.$bLoadString.'> <div class="pagelayer-popup-modal-content"> <div class="pagelayer-popup-content"> '.$content.' </div> </div> </div>'; } } // Export Pages, Media and Pagelayer Template Files function pagelayer_builder_export($type){ global $pagelayer; // Load the templates pagelayer_builder_load_templates(); $data['page'] = []; // Load the other posts foreach($pagelayer->settings['post_types'] as $type){ // Make the query $type_query = new WP_Query(['post_type' => $type, 'status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'name', 'order' => 'ASC']); $data[$type] = $type_query->posts; } $nonce = wp_create_nonce('pagelayer_builder'); echo '<h1>Pagelayer - Export Template into a Theme</h1> <span style="font-size:12px">With this wizard you can export Pagelayer Template(s) (and pages) into a theme folder. This theme folder can be distributed as a theme and can be used by any Pagelayer user.</span>'; // Make two tables echo ' <script> pagelayer_ajax_url = "'.admin_url( 'admin-ajax.php' ).'?"; function pagelayer_checkbox(ele, cl){ var jEle = jQuery(ele); jQuery(cl).prop("checked", jEle.prop("checked")); } function pagelayer_export_template(){ var data = jQuery("#pagelayer_export_template_form").serialize(); //console.log(data); jQuery.ajax({ dataType: "json", url: pagelayer_ajax_url+"&action=pagelayer_export_template", type: "post", data: data, success:function(response){ if("success" in response){ alert(response["success"]); } if("error" in response){ alert(response["error"]); } } }); return false; } </script> <form id="pagelayer_export_template_form"> <input type="hidden" name="pagelayer_nonce" value="'.$nonce.'"> <div style="display:flex; flex-wrap: wrap; width:100%;"> <div style="width:50%; padding: 10px;"> <h2>Pagelayer Templates</h2> <table cellspacing="0" cellpadding="8" border="0" width="100%" class="wp-list-table widefat fixed striped"> <tr> <td width="10"><input type="checkbox" onclick="pagelayer_checkbox(this, \'.pagelayer_temp_cb\');"></td> <td>Title</td> <td>Type</td> <td>Display On</td> </tr>'; foreach($pagelayer->templates as $k => $v){ $type = get_post_meta($v->ID, 'pagelayer_template_type', true); $dis_conditions = get_post_meta( $v->ID, 'pagelayer_template_conditions', true ); $dis_html = 'None'; if( !empty($dis_conditions) ){ $dis_html = ''; foreach($dis_conditions as $condi){ $dis_html .= '<span>'; if(isset($condi['template'])){ $template = pagelayer_multi_array_search($pagelayer->builder['dispay_on'], $condi['template']); if(is_array($template) && array_key_exists('label', $template)){ $template = $template['label']; } $dis_html .= $template; } if(isset($condi['sub_template'])){ $sub_template = pagelayer_multi_array_search($pagelayer->builder[$condi['template'].'_templates'], $condi['sub_template']); if(is_array($sub_template) && array_key_exists('label', $sub_template)){ $sub_template = $sub_template['label']; } if(!empty($sub_template)){ $dis_html .= ' > '. $sub_template; } } if(!empty($condi['id'])){ $dis_html .= ' > #'. $condi['id']; } $dis_html .= '</span></br>'; } } //print_r($v); echo ' <tr> <td><input type="checkbox" class="pagelayer_temp_cb" name="templates['.$v->ID.']"></td> <td>'.$v->post_title.'</td> <td>'.(!empty($pagelayer->builder['type'][$type]['label']) ? $pagelayer->builder['type'][$type]['label'] : $pagelayer->builder['type'][$type]).'</td> <td>'.$dis_html.'</td> </tr>'; } echo ' </table> </div>'; $pt_objects = get_post_types(['public' => true], 'objects'); foreach($data as $type => $d){ if(empty($pt_objects[$type])){ continue; } echo ' <div style="width:22%; padding: 10px;"> <h2>'.$pt_objects[$type]->labels->name.'</h2> <table cellspacing="0" cellpadding="8" border="0" width="100%" class="wp-list-table widefat fixed striped"> <tr> <td width="10"><input type="checkbox" onclick="pagelayer_checkbox(this, \'.pagelayer_'.$type.'_cb\');"></td> <td>Title</td> <td width="80">Type</td> </tr>'; foreach($data[$type] as $k => $v){ //$type = get_post_meta($v->ID, 'pagelayer_template_type', true); //print_r($v); echo ' <tr> <td><input type="checkbox" class="pagelayer_'.$type.'_cb" name="'.$type.'['.$v->ID.']"></td> <td>'.$v->post_title.'</td> <td>'.$pt_objects[$type]->labels->name.'</td> </tr>'; } echo ' </table> </div>'; } echo ' </div> <div class="pagelayer-temp-submit"> <center> <button onclick="return pagelayer_export_template()" class="pagelayer-temp-submit-btn button button-primary">'.__('Export Template Files').'</button> </center> </div> </form>'; } main/premium_functions.php 0000644 00000072336 15104542337 0011766 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // class.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } // Audio Handler function pagelayer_sc_audio(&$el){ global $pagelayer; if(empty($pagelayer->sc_audio_enqueued) && !pagelayer_is_live_iframe()){ wp_enqueue_script('wp-mediaelement'); wp_enqueue_style( 'wp-mediaelement' ); $pagelayer->sc_audio_enqueued = 1; } return; $el['atts']['a_url'] = ''; if ($el['atts']['source'] == 'external'){ $el['atts']['a_url'] = $el['atts']['url']; } if ($el['atts']['source'] == 'library'){ $el['atts']['a_url'] = wp_get_attachment_url($el['atts']['id']); } if(!empty($el['atts']['a_url'])){ $filename=$el['atts']['a_url']; //Get the file extension $extension = pathinfo($filename, PATHINFO_EXTENSION); //Create source tag according to audio file switch($extension){ default: case 'mp3': $el['atts']['a_type'] = 'audio/mpeg'; break; case 'ogg': $el['atts']['a_type']= 'audio/ogg'; break; case 'wav': $el['atts']['a_type'] = 'audio/wav'; break; } } if(!empty($el['atts']['a_url']) && !empty($el['atts']['a_type'])){ $el['attr'][]= ['source' => 'src="{{a_url}}']; $el['attr'][]= ['source' => 'type="{{a_type}}']; } } // Image Portfolio function pagelayer_sc_single_img(&$el){ // Decide the image URL $img_size = pagelayer_isset($el['atts'], 'img-size'); $el['atts']['func_img'] = pagelayer_isset($el['tmp'], 'img-'.$img_size.'-url'); $el['atts']['func_img'] = empty($el['atts']['func_img']) ? pagelayer_isset($el['tmp'], 'img-url') : $el['atts']['func_img']; // What is the link ? if(!empty($el['atts']['link_type'])){ // Custom url if($el['atts']['link_type'] == 'custom_url'){ // Backward compatibility for new link props pagelayer_add_link_backward($el, array( 'rel' => '', 'selector' => '.pagelayer-ele-link')); $el['atts']['func_link'] = empty($el['tmp']['link']) ? '' : $el['tmp']['link']; } // Link to the media file itself if($el['atts']['link_type'] == 'media_file'){ $el['atts']['func_link'] = $el['atts']['func_img']; } // Lightbox if($el['atts']['link_type'] == 'lightbox'){ $el['atts']['func_link'] = $el['atts']['func_img']; } } } // Posts Grid function pagelayer_sc_wp_posts_grid($atts, $content = '', $tag = ''){ $args = array( 'numberposts' => -1, 'post_type' => 'post', 'post_status' => array('publish', 'pending', 'draft', 'future', 'private', 'inherit', 'trash') ); $all_posts = get_posts($args); $html = '<div '.pagelayer_create_sc($tag, $atts, 'pagelayer-posts-grid').'>'; //pagelayer_print($all_posts); foreach($all_posts as $pk => $pv){ $post_link = get_permalink($pv->ID); $html .= '<div> <h2><a href="'.$post_link.'">'.$pv->post_title.'</a></h2> <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> <p>'.pagelayer_the_content($pv->post_content).'</p> <p><a href="'.$post_link.'">Read More</a></p> </div>'; } $html .= '</div>'; return $html; } // Posts Slider function pagelayer_sc_wp_posts_slider(&$el){ $params = array(); $params['post'] = array(); if($el['atts']['post_type']) $params['post']['post_type'] = $el['atts']['post_type']; if($el['atts']['post_count']) $params['post']['post_count'] = $el['atts']['post_count']; if($el['atts']['category']) $params['post']['category'] = $el['atts']['category']; if($el['atts']['tags']) $params['post']['tags'] = $el['atts']['tags']; if($el['atts']['order_by']) $params['post']['order_by'] = $el['atts']['order_by']; if($el['atts']['sort_order']) $params['post']['sort_order'] = $el['atts']['sort_order']; if($el['atts']['image_size']) $params['post']['image_size'] = $el['atts']['image_size']; if($el['atts']['show_excerpt']) $params['post']['show_excerpt'] = $el['atts']['show_excerpt']; $el['atts']['posts_slides'] = pagelayer_posts_slider($params); //wp_reset_postdata(); } // Search function function pagelayer_sc_search(&$el){ if(!empty($el['atts']['placeholder'])){ $el['tmp']['placeholder'] = htmlspecialchars($el['atts']['placeholder']); } } // Post portfolio function pagelayer_sc_post_folio(&$el){ $args = array(); if($el['atts']['type']) $args['post_type'] = $el['atts']['type']; // Filter by if($el['atts']['filter_by']) $args['filter_by'] = $el['atts']['filter_by']; // Page count if($el['atts']['count']) $args['posts_per_page'] = $el['atts']['count']; $el['atts']['post_html'] = pagelayer_widget_posts($args); } // Posts Handler function pagelayer_sc_posts(&$el){ global $pagelayer; $allow_param = array('show_thumb', 'thumb_size', 'show_content', 'show_title', 'more', 'btn_type', 'size', 'icon_position', 'icon', 'show_more', 'meta_sep', 'exc_length', 'post_type', 'exc_term', 'exc_author', 'offset','ignore_sticky', 'orderby', 'by_period', 'before_date', 'after_date', 'thumb_img_type', 'infinite_types' ); $param = array(); // Page count $param['posts_per_page'] = !empty($el['atts']['count']) ? $el['atts']['count'] : ''; $param['order'] = !empty($el['atts']['posts_order']) ? $el['atts']['posts_order'] : ''; $param['term'] = !empty($el['atts']['inc_term']) ? $el['atts']['inc_term'] : ''; $param['author_name'] = !empty($el['atts']['inc_author']) ? $el['atts']['inc_author'] : ''; if(!empty($el['atts']['thumb_img_type'])){ $thumb_size = pagelayer_isset($el['atts'], 'thumb_size'); $img_size = pagelayer_isset($el['tmp'], 'def_thumb_img-'.$thumb_size.'-url'); $param['def_thumb_img'] = empty($img_size) ? pagelayer_isset($el['tmp'], 'def_thumb_img-url') : $img_size; } foreach($allow_param as $val){ $param[$val] = !empty($el['atts'][$val]) ? $el['atts'][$val] : ''; } if(!empty($el['atts']['meta'])){ $meta_arr = explode(',',$el['atts']['meta']); //pagelayer_print($el['atts']['meta']); foreach($meta_arr as $arr){ $param[$arr] = $arr; } } if(wp_doing_ajax() && isset($_REQUEST['action']) && $_REQUEST['action'] == 'pagelayer_infinite_posts'){ $param['paged'] = $el['atts']['paged']; }else{ $data = array('tag' => $el['tag'],'atts' => $el['oAtts']); $pagelayer->localScript['pagelayer_post_'.$el['id']] = $data; } //pagelayer_print($param); $el['atts']['post_html'] = pagelayer_posts($param); } // Author Box function pagelayer_sc_author_box(&$el){ global $post; if($el['atts']['box_source'] == 'current'){ $author_data = pagelayer_author_data ($post->ID); $el['atts']['display_name'] = $author_data['display_name']; $el['atts']['description'] = $author_data['description']; $el['atts']['user_url'] = $author_data['user_url']; $el['tmp']['avatar-url'] = $author_data['avatar']; $el['tmp']['avatar-title'] = ''; $el['tmp']['avatar-alt'] = ''; }else{ $el['tmp']['avatar-url'] = empty($el['tmp']['avatar-url']) ? $el['atts']['avatar'] : $el['tmp']['avatar-url']; } $el['atts']['display_html'] = '<'.$el['atts']['name_style'].'>'.$el['atts']['display_name'].'</'.$el['atts']['name_style'].'>'; } //Grid Gallery Handler function pagelayer_sc_login(&$el){ if(pagelayer_is_live()){ $el['atts']['login_cap'] = ''; return false; } ob_start(); if(!did_action( 'login_enqueue_scripts' )){ do_action( 'login_enqueue_scripts' ); } do_action( 'login_form' ); $el['atts']['login_cap'] = ob_get_clean(); } // Load all tags function pagelayer_get_tags(){ $tags = get_tags(['hide_empty' => false]); $taglist = array(); $taglist[] = 'Default'; foreach ($tags as $tag) { $taglist[$tag->name] = $tag->name ; } return $taglist; } // Load all categories function pagelayer_get_categories(){ $categories = get_categories(['hide_empty' => 0]); $category_list = array(); $category_list[] = 'Default'; foreach($categories as $category) { $category_list[$category->name] = $category->name ; } return $category_list; } // Templates Handler - 2C function pagelayer_sc_templates(&$el){ global $pagelayer, $post; if( !empty($el['atts']['templates']) ) $id = $el['atts']['templates']; $post_obj = get_post($id); $content = ''; // If both current post and tempate post are same if (empty( $post_obj) || (!empty( $post_obj) && $post_obj == $post) ) { $el['atts']['template_content'] = $content; return; } $pagelayer->dont_make_editable = true; $content = $post_obj->post_content; $content = apply_filters( 'the_content', $content ); $pagelayer->dont_make_editable = false; if(pagelayer_is_live()){ // Create the HTML object $node = pagelayerQuery::parseStr($content); $node->query('.pagelayer-ele')->removeClass('pagelayer-ele'); $content = $node->html(); } $el['atts']['template_content'] = $content; } // Get the list of post by post type - 2C function pagelayer_post_list_by_type($post_type = 'post'){ $postlist = []; $posts_list = get_posts(array( 'post_type' => $post_type, 'numberposts' => -1 )); foreach($posts_list as $post){ $postlist[$post->ID] = $post->post_title; } return $postlist; } ///////////////////////////////////// // WooCommerce Shortcode Functions ///////////////////////////////////// // Product Images Handler - 2C function pagelayer_sc_product_images(&$el){ global $product; $product = pagelayer_get_product(); $images_templ = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $images_templ = __pl('no_woo_product'); } if( empty( $product ) ) { $el['atts']['product_images_templ'] = $images_templ; return; } // Start the output buffer ob_start(); if( !empty($el['atts']['sale_flash']) ){ wc_get_template( 'loop/sale-flash.php' ); } wc_get_template( 'single-product/product-image.php' ); $el['atts']['product_images_templ'] = ob_get_clean(); } // Related products Handler - 2C function pagelayer_sc_product_related(&$el){ global $product; $product = pagelayer_get_product(); $related_templ = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $related_templ = __pl('no_woo_product'); } if( empty( $product ) ) { $el['atts']['related_products'] = $related_templ; return; } // start output buffer ob_start(); // If is related if($el['atts']['select_product'] == 'related'){ $args = [ 'posts_per_page' => 4, 'columns' => 4, 'orderby' => $el['atts']['order_by'], 'order' => $el['atts']['order'], ]; if( ! empty( $el['atts']['posts_per_page'] ) ) { $args['posts_per_page'] = $el['atts']['posts_per_page']; } if( ! empty( $el['atts']['columns'] ) ) { $args['columns'] = $el['atts']['columns']; } if(function_exists( 'woocommerce_related_products' )){ woocommerce_related_products($args); } // If is upsel; }elseif($el['atts']['select_product'] == 'upsell'){ $limit = '-1'; $columns = 4; $orderby = $el['atts']['order_by']; $order = $el['atts']['order']; if( ! empty( $el['atts']['columns'] ) ) { $columns = $el['atts']['columns']; } if(function_exists( 'woocommerce_upsell_display' )){ woocommerce_upsell_display( $limit, $columns, $orderby, $order ); } } // Get data and clean output buffer $el['atts']['related_products'] = ob_get_clean(); } // WooCommers Pages - 2C function pagelayer_sc_woo_pages(&$el){ // if is not empty if(!empty($el['atts']['pages'])){ $shortcode = '['. $el['atts']['pages'] .']'; $content = pagelayer_the_content($shortcode); // if is checkout page if ( 'woocommerce_checkout' === $el['atts']['pages'] && '<div class="woocommerce"></div>' == $content ) { $content = '<div class="woocommerce">' . __( 'Your cart is currently empty.') . '</div>'; } } // If the content is empty if(empty($content)){ $content = '<div class="woocommerce">' . __( 'Page content not found.') . '</div>'; } $el['atts']['page_content'] = $content; } // Product Pages - 2C function pagelayer_sc_product_categories(&$el){ $attributes = ''; $attributes .= ' number="'. (isset($el['atts']['number']) ? $el['atts']['number'] : '').'" '; $attributes .= ' columns="'. (isset($el['atts']['columns']) ? $el['atts']['columns'] : '').'" '; $attributes .= ' hide_empty="'. (!empty($el['atts']['hide_empty']) ? 1 : 0) .'" '; $attributes .= ' orderby="'. (isset($el['atts']['nuorderbymber']) ? $el['atts']['nuorderbymber'] : '') .'" '; $attributes .= ' order="'. (isset($el['atts']['order']) ? $el['atts']['order'] : '') .'" '; $source = isset($el['atts']['source']) ? $el['atts']['source'] : ''; if ( 'by_id' === $source ) { $attributes .= ' ids="'. $el['atts']['by_id'] .'" '; } elseif ( 'by_parent' === $source ) { $attributes .= ' parent="'. $el['atts']['parent'] .'" '; } elseif ( 'current_subcategories' === $source ) { $attributes .= ' parent="'. get_queried_object_id() .'" '; } $shortcode = '[product_categories '. $attributes .']'; // do_shortcode the shortcode $el['atts']['product_categories'] = pagelayer_the_content($shortcode); } // Products - 2C function pagelayer_sc_products(&$el){ if( WC()->session ){ wc_print_notices(); } $no_found = $el['atts']['no_found']; $attributes = ''; $type = $el['atts']['source']; $attributes .= ' columns="'. $el['atts']['columns'] .'" '; $attributes .= ' rows="'. $el['atts']['rows'] .'" '; $attributes .= ' paginate="'. (!empty($el['atts']['paginate']) ? true : false) .'" '; $attributes .= ' orderby="'. $el['atts']['orderby'] .'" '; $attributes .= ' order="'. $el['atts']['order'] .'" '; $attributes .= ' cache="false" '; // Hide the catalog order if( empty($el['atts']['allow_order']) ){ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); } // Hide the result count if( empty($el['atts']['show_result']) ){ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 ); } if( $type == 'by_id' ){ $type = 'products'; $attributes .= ' ids="'. (!empty($el['atts']['ids']) ? $el['atts']['ids'] : '') .'" '; }elseif( $type == 'pagelayer_current_query' ){ $atts['paginate'] = (!empty($el['atts']['paginate']) ? true : false); $atts['cache'] = false; $type = 'pagelayer_current_query'; // Set the current query add_action( 'woocommerce_shortcode_products_query', 'pagelayer_shortcode_current_query', 10, 10); // If product not found add_action( "woocommerce_shortcode_{$type}_loop_no_results", function ($attributes) use ($no_found){ echo '<div class="pagelayer-product-no-found">'.$no_found.'</div>'; } ); $shortcode = new WC_Shortcode_Products( $atts, $type ); $el['atts']['products_content'] = $shortcode->get_content(); return true; } $shortcode = '['.$type.' '. $attributes .']'; $content = pagelayer_the_content($shortcode); // If product not found if('<div class="woocommerce columns-'.$el['atts']['columns'] .' "></div>' == $content){ $content = '<div class="pagelayer-product-no-found">'. __($no_found) .'</div>'; } $el['atts']['products_content'] = $content; } // Archives Product Pages - 2C function pagelayer_sc_product_archives(&$el){ global $post; if ( WC()->session ) { wc_print_notices(); } $atts['paginate'] = true; $atts['cache'] = false; $no_found = $el['atts']['no_found']; if( empty($el['atts']['allow_order']) ){ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); } if( empty($el['atts']['show_result']) ){ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 ); } $type = 'pagelayer_current_query'; // We need to define costom if( (isset($post->post_type) && $post->post_type == 'pagelayer-template') || wp_doing_ajax()){ $type = ''; } // Set the current query add_action( 'woocommerce_shortcode_products_query', 'pagelayer_shortcode_current_query', 10, 10); // If product not found add_action( "woocommerce_shortcode_{$type}_loop_no_results", function ($attributes) use ($no_found){ echo '<div class="pagelayer-product-no-found">'.$no_found.'</div>'; } ); $shortcode = new WC_Shortcode_Products( $atts, $type ); $el['atts']['product_archives'] = $shortcode->get_content(); } // Product Price render - 2C function pagelayer_sc_product_price(&$el) { global $product; $product = pagelayer_get_product(); $price = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $price = __pl('no_woo_product'); } if ( empty( $product ) ) { $el['atts']['pagelayer-product-price'] = $price; return; } ob_start(); wc_get_template( '/single-product/price.php' ); $el['atts']['pagelayer-product-price'] = ob_get_clean(); } // Product add to cart render - 2C function pagelayer_sc_add_to_cart(&$el) { global $product; $product = pagelayer_get_product(); $cart = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $cart = __pl('no_woo_product'); } if ( empty( $product ) ) { $el['atts']['product_add_to_cart'] = $cart; return; } ob_start(); woocommerce_template_single_add_to_cart(); $el['atts']['product_add_to_cart'] = '<div class="pagelayer-add-to-cart-holder pagelayer-product-'. esc_attr( $product->get_type() ) .'"> '. ob_get_clean() .' </div>'; } // Product rating render - 2C function pagelayer_sc_product_rating(&$el) { if( ! post_type_supports( 'product', 'comments' ) ){ return; } global $product; $product = pagelayer_get_product(); $product_rating = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $product_rating = __pl('no_woo_product'); } if ( empty( $product ) ) { $el['atts']['product_rating'] = $product_rating; return; } ob_start(); wc_get_template( '/single-product/rating.php' ); $product_rating = ob_get_clean(); if( empty( $product_rating ) && pagelayer_is_live_template()){ $product_rating = __('No Rating Found!'); } $el['atts']['product_rating'] = $product_rating; } /* // Product stock render - 2C function pagelayer_product_stock() { global $product; $product = wc_get_product(); if ( empty( $product ) ) { return; } return wc_get_stock_html( $product ); } */ // Product meta render - 2C function pagelayer_sc_product_meta(&$el) { global $product; $product = pagelayer_get_product(); $product_meta = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $product_meta = __pl('no_woo_product'); } if ( empty( $product ) ) { $el['atts']['product_meta'] = $product_meta; return; } ob_start(); wc_get_template( '/single-product/meta.php' ); $el['atts']['product_meta'] = ob_get_clean(); } // Product short description render - 2C function pagelayer_sc_product_short_desc(&$el) { global $product, $post; $product = pagelayer_get_product(); $product_short_desc = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $product_short_desc = __pl('no_woo_product'); } if ( empty( $product ) ) { $el['atts']['product_short_desc'] = $product_short_desc; return; } if((isset($post->post_type) && $post->post_type == 'pagelayer-template') || wp_doing_ajax()){ $el['atts']['product_short_desc'] = '<div class="woocommerce-product-details__short-description"><p>'.$product->get_short_description().'</p></div>'; return; } ob_start(); wc_get_template( 'single-product/short-description.php' ); $el['atts']['product_short_desc'] = ob_get_clean(); } // WooCommerce breadcrumb render - 2C function pagelayer_woo_breadcrumb() { ob_start(); woocommerce_breadcrumb(); return ob_get_clean(); } // Get product categories - 2C function pagelayer_get_product_cat() { $categories = get_terms( 'product_cat' ); $options = []; foreach ( $categories as $category ) { $options[ $category->term_id ] = $category->name; } return $options; } // Get product categories - 2C function pagelayer_get_product_archives_desc() { ob_start(); do_action( 'woocommerce_archive_description' ); return ob_get_clean(); } // Get product additional Information - 2C function pagelayer_sc_product_addi_info(&$el) { global $product; $product = pagelayer_get_product(); $product_additional_info = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $product_additional_info = __pl('no_woo_product'); } if ( empty( $product ) ) { $el['atts']['product_additional_info'] = $product_additional_info; return; } ob_start(); wc_get_template( 'single-product/tabs/additional-information.php' ); $el['atts']['product_additional_info'] = ob_get_clean(); } // Get product data tab Information - 2C function pagelayer_sc_product_data_tabs(&$el) { global $product, $post; $product = pagelayer_get_product(); $product_data_tab = ''; if( empty( $product ) && (pagelayer_is_live_template() || wp_doing_ajax())){ $product_data_tab = __pl('no_woo_product'); } if ( empty( $product ) ) { $el['atts']['product_data_tab'] = $product_data_tab; return; } // We need load Pagelayer shortcodes pagelayer_load_shortcodes(); setup_postdata( $product->get_id()); ob_start(); wc_get_template( 'single-product/tabs/tabs.php' ); $data_tabs = ob_get_clean(); // If no data tabs if(empty($data_tabs)){ $data_tabs = __('Data tab not found'); } $el['atts']['product_data_tab'] = $data_tabs; } // Get the HTML for menu cart function pagelayer_sc_woo_menu_cart(&$el){ // Maybe init cart $has_cart = is_a( WC()->cart, 'WC_Cart' ); if ( ! $has_cart ) { $session_class = apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' ); WC()->session = new $session_class(); WC()->session->init(); WC()->cart = new \WC_Cart(); WC()->customer = new \WC_Customer( get_current_user_id(), true ); } // Get the cart values $widget_cart_is_hidden = apply_filters( 'woocommerce_widget_cart_is_hidden', is_cart() || is_checkout() ); $product_count = WC()->cart->get_cart_contents_count(); $sub_total = WC()->cart->get_cart_subtotal(); $cart_items = WC()->cart->get_cart(); $toggle_button_link = $widget_cart_is_hidden ? wc_get_cart_url() : '#'; /** workaround WooCommerce Subscriptions issue that changes the behavior of is_cart() */ $toggle_button_classes = 'pagelayer-cart-button pagelayer-size-sm'; $toggle_button_classes .= $widget_cart_is_hidden ? ' pagelayer-menu-cart-hidden' : ''; $counter_attr = 'data-counter="' . $product_count . '"'; $cart_html = '<div class="pagelayer-menu-cart-toggle"> <a href="'. esc_attr( $toggle_button_link ) .'" class="'. $toggle_button_classes .'"> <span class="pagelayer-cart-button-text">'. $sub_total .'</span> <span class="pagelayer-cart-button-icon" '. $counter_attr .'> <i class="'.$el['atts']['icon_type'].'" aria-hidden="true"></i> </span> </a> </div>'; // If is cart and checkout page the except this if ( ! $widget_cart_is_hidden ){ ob_start(); wc_get_template( 'cart/mini-cart.php' ); $mini_cart_html = ob_get_clean(); $cart_html .= '<div class="pagelayer-menu-cart-container"> <form class="pagelayer-menu-cart-main woocommerce-cart-form" action="'. esc_url( wc_get_cart_url() ) .'" method="post"> <div class="pagelayer-menu-cart-close">×</div> '. $mini_cart_html .' </form> </div>'; } $el['atts']['cart_html'] = $cart_html; } // SiteMap Item Box - 2C function pagelayer_sc_sitemap_item(&$el){ $html_element = ''; $hier = ''; $depth = ''; $option = ''; $id = $el['id']; $option = '<div class="pagelayer-sitemap-section">'; $hier = (empty($el['atts']['hierarchical']) ? '' : $el['atts']['hierarchical']); $depth = (empty($el['atts']['depth']) ? '' : $el['atts']['depth']); if($el['atts']['sitemap_type'] == 'post_type'){ if(empty($el['atts']['title'])){ $el['atts']['title'] = 'Pages'; } $html_element .= $el['atts']['title']; $args = array( 'post_type' => $el['atts']['source_post'], 'orderby' => $el['atts']['order_post'], 'order' => $el['atts']['order'], 'hierarchical' => $hier, 'number' => $depth, 'posts_per_page' => -1, ); $option .= '<span>'.$html_element.'</span>'; $option .= '<ul>'; $pages = new WP_Query($args); $posts = $pages->posts; foreach ( $posts as $page ) { $option .= '<li class="pagelayer-sitemap-list-item" data-postID="'.$page->ID.'"><a class="pagelayer-ele-link" href="'.get_permalink($page->ID).'">'.$page->post_name.'</a></li>'; } $option .= '</ul>'; }else{ if(empty($el['atts']['title'])){ $el['atts']['title'] = 'Categories'; } $html_element .= $el['atts']['title']; $args = array( 'title_li' => 0, 'orderby' => $el['atts']['order_taxonomy'], 'order' => $el['atts']['order'], 'style' => '', 'hide_empty' => $el['atts']['hide_empty'], 'echo' => false, 'hierarchical' => $hier, 'taxonomy' => $el['atts']['source_taxonomy'], 'depth' => $depth, ); $taxonomies = get_categories( $args ); $option .= '<span>'.$html_element.'</span>'; $option .= '<ul>'; foreach ( $taxonomies as $taxonomy ) { $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>'; } $option .= '</ul>'; } $option .= '</div>'; $el['atts']['sitemap_html'] = $option; } function pagelayer_sc_slides(&$el) { if( !pagelayer_is_live() ) { return; } foreach($el['inner_blocks'] as $key => $inner_block) { if(empty($inner_block['blockName']) || 'pagelayer/pl_slide' != $inner_block['blockName']) { continue; } $slide = serialize_block($inner_block); $col = get_comment_delimited_block_content('pagelayer/pl_col', [] , $slide); $row = get_comment_delimited_block_content('pagelayer/pl_inner_row', ['col_gap' => '0.0'] , $col); $el['inner_blocks'][$key] = array( 'blockName' => 'pagelayer/pl_content_slide', 'innerBlocks' => parse_blocks($row), 'innerHTML' => '', 'attrs' => array(), 'innerContent' => array(), ); } } function pagelayer_sc_chart(&$el){ $el['atts']['xcolor'] = empty($el['atts']['xcolor']) ? '' : pagelayer_parse_color($el['atts']['xcolor'], false); $el['atts']['ycolor'] = empty($el['atts']['ycolor']) ? '' : pagelayer_parse_color($el['atts']['ycolor'], false); } function pagelayer_sc_chart_datasets(&$el){ $el['atts']['chart_border_color'] = empty($el['atts']['chart_border_color']) ? '' : pagelayer_parse_color($el['atts']['chart_border_color'], false); $el['atts']['bg_color'] = empty($el['atts']['bg_color']) ? '' : pagelayer_parse_color($el['atts']['bg_color'], false); } // Render the image map function pagelayer_sc_image_map(&$el) { $map_size = pagelayer_isset($el['atts'], 'img_map-size'); $map_key = 'img_map-id-' . $map_size . '-url'; $el['atts']['map_img_id'] = isset($el['tmp'][$map_key]) ? $el['tmp'][$map_key] : pagelayer_isset($el['tmp'], 'map_img-id-url'); $el['atts']['pagelayer-srcset'] = $el['atts']['map_img_id'] . ', ' . $el['atts']['map_img_id'] . ' 1x, '; // Handle multiple paths if(isset($el['atts']['pagelayer_image_map']) && is_array($el['atts']['pagelayer_image_map'])){ $el['atts']['pagelayer_map_path'] = ''; // Initialize as empty foreach ($el['atts']['pagelayer_image_map'] as $key => $data) { $data_cord = isset($data['path']) ? $data['path'] : ''; $data_id = isset($key) ? $key : ''; $data_link = isset($data['link']) ? $data['link'] : ''; $el['atts']['pagelayer_map_path'] .= "<path class='pagelayer-imgmap-item' d='' stroke-width='2' data-cord='" . $data_cord . "' data-id='" . $data_id . "' fill-opacity='0.3' fill-rule='evenodd' data-link='" . $data_link . "'></path>"; } } if(empty($el['atts']['pagelayer_map_path'])){ $el['atts']['pagelayer_map_path'] = ' '; } $image_atts = array( 'name' => 'img_map-id', 'size' => 'img_map-size' ); pagelayer_get_img_srcset($el, $image_atts); } main/ai-functions.php 0000644 00000036147 15104542337 0010617 0 ustar 00 <?php // Are we being accessed directly ? if(!defined('PAGELAYER_VERSION')) { exit('Hacking Attempt !'); } // Add tmp attribute to block code function pagelayer_pro_replace_content_atts($content, $new_atts){ $blocks = parse_blocks( $content ); $output = ''; foreach ( $blocks as $block ) { $block_name = $block['blockName']; // Is pagelayer block if ( is_string( $block_name ) && 0 === strpos( $block_name, 'pagelayer/' ) ) { $_block = pagelayer_pro_add_atts_block($block, $new_atts); $output .= serialize_block($_block); continue; } $output .= serialize_block($block); } return $output; } function pagelayer_pro_add_atts_block($block, $new_atts){ global $pagelayer; // Load shortcode pagelayer_load_shortcodes(); if(empty($block['attrs']['pagelayer-id'])) return $block; $pl_id = $block['attrs']['pagelayer-id']; if (isset($new_atts[$pl_id]) && is_array($new_atts[$pl_id])){ $block['attrs'] = array_merge($block['attrs'], $new_atts[$pl_id]); // If block saved by Pagelayer Editor if(in_array( $block['blockName'], ['pagelayer/pl_inner_col', 'pagelayer/pl_inner_row'])){ $block['blockName'] = str_replace('inner_', '', $block['blockName']); } $tag = substr( $block['blockName'], 10 ); $pl_tag = str_replace('-', '_', $tag); if(isset($pagelayer->shortcodes[$pl_tag])){ // Create attribute Object $innerHTML = pagelayer_isset($pagelayer->shortcodes[$pl_tag], 'innerHTML'); if(!empty($innerHTML) && isset($block['attrs'][$innerHTML])){ $block['innerHTML'] = $block['attrs'][$innerHTML]; $block['innerContent'] = array($block['attrs'][$innerHTML]); } } } // This have innerBlocks if(!empty($block['innerBlocks']) && is_array($block['innerBlocks'])){ foreach($block['innerBlocks'] as $key => $inner_block){ $block['innerBlocks'][$key] = pagelayer_pro_add_atts_block($inner_block, $new_atts); } } return $block; } // Add tmp attribute to block code function pagelayer_pro_extract_editable_atts($content, $only_images = false){ $blocks = parse_blocks( $content ); $el_atts = array(); foreach( $blocks as $block ){ $block_name = $block['blockName']; // Is pagelayer block if( is_string( $block_name ) && 0 === strpos( $block_name, 'pagelayer/' ) ){ pagelayer_pro_parse_ai_atts($block, $el_atts, $only_images); } } return array_filter($el_atts); } function pagelayer_pro_parse_ai_atts($block, &$el_atts, $only_images = false){ global $pagelayer; // Load shortcode pagelayer_load_shortcodes(); // TODO: if empty then assign id and updated content if(empty($block['attrs']['pagelayer-id'])){ return; } // If block saved by Pagelayer Editor if(in_array( $block['blockName'], ['pagelayer/pl_inner_col', 'pagelayer/pl_inner_row'])){ $block['blockName'] = str_replace('inner_', '', $block['blockName']); } $tag = substr( $block['blockName'], 10 ); $pl_tag = str_replace('-', '_', $tag); if(isset($pagelayer->shortcodes[$pl_tag])){ // Create attribute Object $pl_props = $pagelayer->shortcodes[$pl_tag]; $pl_id = $block['attrs']['pagelayer-id']; $el_atts[$pl_id] = array(); foreach($pagelayer->tabs as $tab){ if(empty($pl_props[$tab])){ continue; } foreach($pl_props[$tab] as $section => $_props){ $props = !empty($pl_props[$section]) ? $pl_props[$section] : $pagelayer->styles[$section]; if(empty($props)){ continue; } // Reset / Create the cache foreach($props as $prop => $param){ // No value set if(empty($block['attrs'][$prop]) || (isset($param['ai']) && $param['ai'] === false)){ continue; } // Is editable? if(!empty($param['edit']) && empty($only_images)){ $el_atts[$pl_id][$prop] = $block['attrs'][$prop]; $el_atts[$pl_id]['blockName'] = $pl_props['name']; } // Is image? if(!empty($only_images) && !empty($param['type']) && $param['type'] == 'image'){ $el_atts['img_urls'][] = $block['attrs'][$prop]; } // Is multi_image? if(!empty($only_images) && !empty($param['type']) && $param['type'] == 'multi_image'){ $el_atts['img_urls'][] = $block['attrs'][$prop]; } } } } } // This have innerBlocks if(!empty($block['innerBlocks'])){ foreach($block['innerBlocks'] as $key => $inner_block){ pagelayer_pro_parse_ai_atts($inner_block, $el_atts, $only_images); } } } // Call to AI server function pagelayer_pro_ai_prompt_run($ai_data = array()){ global $pagelayer; if(empty($pagelayer->license) || empty($pagelayer->license['license'])){ return null; } // Only SoftWP license works $ai_data['license'] = $pagelayer->license['license']; $ai_data['url'] = apply_filters('pagelayer_ai_siteurl', site_url()); $response = wp_remote_post(PAGELAYER_AI_API, [ 'body' => $ai_data, 'timeout' => 600, ]); $body = wp_remote_retrieve_body($response); $result = json_decode($body, true); if(isset($_GET['debug1']) && $_GET['debug1'] == 'regenerate'){ pagelayer_print($ai_data); pagelayer_print($result); } if(isset($result['error'])){ // TODO: show this error error if possible error_log('API Request Failed: ' . $result['error']); return null; } if(isset($result['response'])){ $json_content = $result['response']; // Remove markdown code fences if they exist if(strpos($json_content, '```') !== false){ $json_content = preg_replace('/^```(?:json)?\s*/', '', trim($json_content)); $json_content = preg_replace('/\s*```$/', '', $json_content); } $generated = json_decode($json_content, true); if (json_last_error() === JSON_ERROR_NONE) { return $generated; } else { error_log("JSON decode error: " . json_last_error_msg()); return null; } } return null; } // The actual function to import the theme function pagelayer_pro_generate_ai_contents($contents, $args = array()){ if(empty($args['description'])) return $contents; $widgets_attrs = []; // STEP 1: Prepare blocks and extract editable attributes foreach($contents as $page => $content){ if(defined('PAGELAYER_BLOCK_PREFIX') && PAGELAYER_BLOCK_PREFIX == 'wp'){ $content = str_replace('<!-- sp:pagelayer', '<!-- wp:pagelayer', $content); $content = str_replace('<!-- /sp:pagelayer', '<!-- /wp:pagelayer', $content); } $contents[$page] = $content; if(!pagelayer_has_blocks($content)) continue; $widgets_attrs[$page] = pagelayer_pro_extract_editable_atts($content); } if(empty($widgets_attrs)){ return $contents; } // STEP 2: Prepare data for AI prompt $widgets_attrs_json = json_encode( $widgets_attrs ); $data = [ 'request_type' => 'builder_replacer', 'site_name' => get_bloginfo('name'), 'user_context' => $args['description'], 'widgets_attrs_json' => $widgets_attrs_json ]; // STEP 3: Run AI prompt $new_atts = pagelayer_pro_ai_prompt_run($data); // Retry logic if AI prompt fails if(empty($new_atts)){ if(empty($args['retry'])){ $args['retry'] = 1; $contents = pagelayer_pro_generate_ai_contents($contents, $args); } return $contents; } // STEP 4: Check for unconverted attributes $updated_content = !empty($new_atts)? $new_atts : array(); $unconverted = array(); foreach($widgets_attrs as $page => $atts){ $updated = empty($updated_content[$page]) ? [] : $updated_content[$page]; $_unconverted = pagelayer_pro_unconverted_fields($atts, $updated); if(!empty($_unconverted)){ $unconverted[$page] = $_unconverted; } } // STEP 5: Re-run prompt for unconverted fields if(!empty($unconverted)){ $data['widgets_attrs_json'] = json_encode($unconverted); $retry_atts = pagelayer_pro_ai_prompt_run($data); if(!empty($retry_atts)){ if(!empty($retry_atts) && is_array($retry_atts)){ foreach($new_atts as $page => $new_fields){ if(empty($retry_atts[$page])) continue; $new_atts[$page] = array_replace_recursive($new_atts[$page], $retry_atts[$page]); } } } } //pagelayer_print($new_atts); foreach($contents as $page => $content){ if(!isset($new_atts[$page])){ continue; } $content = pagelayer_pro_replace_content_atts($content, $new_atts[$page]); $contents[$page] = $content; } return $contents; } // Content image replace with random images function pagelayer_pro_replace_rand_imgs($content, $images, &$mapImages = array()) { if(empty($images) || !is_array($images)){ return $content; } // Image provide by user to replace $image_urls = array_map(function($item) { $url = is_array($item) ? $item['image_url'] : $item; return strpos($url, 'https://images.pexels.com/photos/') === 0 ? strtok($url, '?') : $url; }, $images); $img_data = pagelayer_pro_extract_editable_atts($content, true); if(empty($img_data['img_urls']) || !is_array($image_urls)){ return $content; } // Copy from original image list $rand_images = $image_urls; shuffle($rand_images); foreach($img_data['img_urls'] as $imgUrl){ $imgUrls = is_string($imgUrl) ? explode(',', $imgUrl) : (is_array($imgUrl) ? $imgUrl : []); foreach ($imgUrls as $url) { $url = trim($url); // Build a lookup map for replaced images if(!pagelayer_pro_is_image_url($url)){ continue; } // Cache replacements for same URL if(!isset($mapImages[$url])) { // Refill with random images if(empty($rand_images)){ $rand_images = $image_urls; shuffle($rand_images); } $first_img = array_shift($rand_images); // URL replace with first image and removed first image to random image list $mapImages[$url] = pagelayer_pro_resize_pexel_img($url, $first_img); } // Replace old image URL with the new one in the content $escapedUrl = str_replace('/', '\/', $url); $escapedMapUrl = str_replace('/', '\/', $mapImages[$url]); $content = str_replace([$url, $escapedUrl], [$mapImages[$url], $escapedMapUrl], $content); } } return $content; } // Get random Pexels images function pagelayer_pro_resize_pexel_img($url, $new_url){ if(empty($new_url)){ return $url; } // Get the dimensions of the old image (assuming the path is local) $template_path = apply_filters('pagelayer_template_path', ''); $oldImagePath = str_replace('{{theme_url}}', $template_path, $url); // Replace theme_url placeholder // Check if the new image URL is from Pexels if (strpos($new_url, 'https://images.pexels.com/photos/') !== 0) { return $new_url; } // Assuming that the old image is local and can be fetched $size = @getimagesize($oldImagePath); $size = $size ? $size : [0, 0]; list($width, $height) = $size; if(empty($width) || empty($height)){ return $new_url; } // Parse existing query parameters and remove width/height $parsed_url = parse_url( $new_url ); parse_str( isset( $parsed_url['query'] ) ? $parsed_url['query'] : '', $query ); unset( $query['w'], $query['h'] ); // Ensure optimization parameters are included $optimize_defaults = [ 'auto' => 'compress', 'cs' => 'tinysrgb', 'dpr' => '1', 'fit' => 'crop', 'pl' => pagelayer_RandomString(4), // Set unique ID for each image to import each suggested image ]; // Merge defaults if not already set $query = array_merge( $optimize_defaults, $query ); // Add width and height $query['w'] = (int) $width; $query['h'] = (int) $height; // Rebuild the full URL $base = strtok( $new_url, '?' ); $new_url = $base . '?' . http_build_query( $query ); return $new_url; } // Helper function to detect image URLs for import only function pagelayer_pro_is_image_url($str) { return is_string($str) && preg_match('/\.(jpe?g|png|gif)(\?.*)?$/i', $str) && strpos($str, '{{theme_url}}') !== false; } function pagelayer_pro_unconverted_fields($inputWidgets, $updatedContent){ $unconverted = []; if(empty($updatedContent)){ return $inputWidgets; } foreach($inputWidgets as $widgetId => $widgetData){ foreach ($widgetData as $field => $value) { // Skip field if($field == 'blockName'){ continue; } // TEXT FIELD CHECK if (is_string($value) && strip_tags($value) !== '' && !is_numeric($value)) { $original = trim($value); $updated = $updatedContent[$widgetId][$field] ? $updatedContent[$widgetId][$field] : ''; if (is_string($updated) && (trim($updated) === '' || trim($updated) === $original)) { $unconverted[$widgetId][$field] = $original; } } } } return $unconverted; } // Download external images like pexels function pagelayer_pro_download_external_images($content) { global $pagelayer; if (empty($content)){ return $content; } if (defined('PAGELAYER_BLOCK_PREFIX') && PAGELAYER_BLOCK_PREFIX == 'wp') { $content = str_replace('<!-- sp:pagelayer', '<!-- wp:pagelayer', $content); $content = str_replace('<!-- /sp:pagelayer', '<!-- /wp:pagelayer', $content); } if (!pagelayer_has_blocks($content)) return $content; $widgets_attrs = pagelayer_pro_extract_editable_atts($content); if (empty($widgets_attrs)) return $content; $processed_images = []; foreach($widgets_attrs as $widget_id => $attrs) { if( empty($attrs['img_urls']) || !is_array($attrs['img_urls'])){ continue; } foreach($attrs['img_urls'] as $image_url) { $imgUrls = is_string($image_url) ? explode(',', $image_url) : (is_array($image_url) ? $image_url : []); foreach ($imgUrls as $url) { if (!is_string($url)){ continue; } $url = trim($url); // Caching the image if(strpos($url, 'https://images.pexels.com/photos/') === false || isset($pagelayer->import_media[$url])){ continue; } // Get ilename $filename = basename(strtok($url, '?')); // We are going to create a loop to find the image for($i = 1; $i <= 3; $i++){ // Upload the image $ret = pagelayer_upload_media($filename, file_get_contents($url)); // Lets check the file exists ? if(!empty($ret)){ // Lets check if the file exists $tmp_image_path = pagelayer_cleanpath(get_attached_file($ret)); // If the file does not exist, simply delete the old upload as well if(!file_exists($tmp_image_path)){ wp_delete_attachment($ret, true); $ret = false; // The image does exist and we can continue }else{ break; } } } if(empty($ret)){ continue; } // This replaces images when inserting content $pagelayer->import_media[$url] = $ret; $imgs_json = array('sitepad_img_source' => 'pexels.com', 'sitepad_download_url' => $url, 'sitepad_img_lic' => ''); $fields = array('sitepad_img_source', 'sitepad_download_url', 'sitepad_img_lic'); foreach($fields as $field){ if(!empty($imgs_json[$field])){ update_post_meta($ret, $field, $imgs_json[$field]); } } } } } return $content; } main/premium.php 0000644 00001536746 15104542337 0007711 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // premium.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } global $pagelayer; // Image Hotspot pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_hotspot', array( 'name' => __pl('Image Hotspot'), 'group' => 'image', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'holder' => '.pagelayer-icon-holder', 'html' => '<div class="pagelayer-image-hotspot-holder"> <img class="pagelayer-img" src="{{{img-url}}}" title="{{{img-title}}}" alt="{{{img-alt}}}" /> <div class="pagelayer-icon-holder pagelayer-hotspots-{{common_tip_show}} pagelayer-{{common_tip_theme}}"></div> </div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('hotspots'), 'sc' => PAGELAYER_SC_PREFIX.'_hotspot', 'item_label' => array( 'default' => __pl('hotspot'), 'param' => 'title', ), 'count' => 1, 'text' => __pl('Add New Hotspot'), ), 'img' => array( 'type' => 'image', 'label' => __pl('Main Image'), 'default' => PAGELAYER_URL.'/images/default-image.png', 'desc' => __pl('Choose an image from Media Library'), 'css' => ['{{element}} .pagelayer-icon-holder' => 'position:absolute; top:0; left:0; height:100%; width:100%;', '{{element}} .pagelayer-icon-holder .pagelayer-ele-wrap' => 'display: contents', '{{element}} .pagelayer-image-hotspot-holder' => 'position:relative'], ), 'icon_anim_hover' => array( 'type' => 'select', 'label' => __pl('icon_animation'), 'list' => [ '' => __pl('none'), 'grow' => __pl('Grow'), 'shrink' => __pl('Shrink'), 'pulse' => __pl('Pulse'), 'pulse-grow' => __pl('Pulse Grow'), 'pulse-shrink' => __pl('Pulse Shrink'), 'push' => __pl('Push'), 'pop' => __pl('Pop'), 'buzz' => __pl('Buzz'), 'buzz-out' => __pl('Buzz Out'), 'float' => __pl('Float'), 'sink' => __pl('Sink'), 'bob' => __pl('Bob'), 'hang' => __pl('Hang'), 'bounce-in' => __pl('Bounce In'), 'bounce-out' => __pl('Bounce Out'), 'rotate' => __pl('Rotate'), 'grow-rotate' => __pl('Grow Rotate'), 'skew-forward' => __pl('Skew Forward'), 'skew-backward' => __pl('Skew Backward'), 'wobble-vertical' => __pl('Wobble Vertical'), 'wobble-horizontal' => __pl('Wobble Horizontal'), 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'), 'wobble-top-to-right' => __pl('Wobble Top To Right'), 'wobble-top' => __pl('Wobble Top'), 'wobble-bottom' => __pl('Wobble Bottom'), 'wobble-skew' => __pl('Wobble Skew'), ], 'addAttr' => ['{{element}} .pagelayer-icon-holder' => 'pagelayer-animation="{{icon_anim_hover}}"'], ), /* 'common_hotspot_color' => array( 'type' => 'color', 'label' => __pl('Hotspot Theme'), 'default' => 'mp-text-color-red', 'list' => array( 'mp-text-color-red' => __pl('red'), 'mp-text-color-dark-grey' => __pl('grey'), 'mp-text-color-black' => __pl('black'), 'custom' => __pl('custom'), ), ), 'common_hotspot_custom_color' => array( 'type' => 'color', 'label' => __pl('Hotspot Color'), 'default' => '#e25441', 'req' => array( 'common_hotspot_color' => 'custom' ) ), 'common_plus_color' => array( 'type' => 'color', 'label' => __pl('Hotspot Icon Color'), 'default' => '#ffffff', 'req' => array( 'common_hotspot_color' => 'custom' ) ), 'common_hotspot_size' => array( 'type' => 'radio', 'label' => __pl('Hotspot Size'), 'default' => 'normal', 'list' => array( 'small' => __pl('small'), 'normal' => __pl('middle'), 'big' => __pl('large'), ) ),*/ 'common_tip_show' => array( 'type' => 'select', 'label' => __pl('tooltip_display'), 'default' => 'hover', 'list' => array( 'hover' => __pl('On Hover'), 'always' => __pl('always'), 'click' => __pl('On Click'), ) ), ) ) ); // Hotspot pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_hotspot', array( 'name' => __pl('hotspot'), 'group' => 'image', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_image_hotspot'], 'innerHTML' => 'tooltip_text', 'html' => '<div class="pagelayer-hotspots-icon-holder"> <div if-ext="{{icon_pulse}}" class="pagelayer-image-hotspots-anim"> <i class="{{icon}}"></i> <div if="{{tooltip_text}}" class="pagelayer-tooltip-text pagelayer-tooltip-{{tooltip_position}}"> {{tooltip_text}} </div> </div> </div>', 'params' => array( 'title' => array( 'type' => 'text', 'label' => __pl('title'), 'default' => 'Lorem', ), 'align_top' => array( 'type' => 'slider', 'label' => __pl('verticle_postion'), 'default' => 50, 'min' => 0, 'max' => 100, 'css' => ['{{element}}' => 'top: {{val}}%'], ), 'align_left' => array( 'type' => 'slider', 'label' => __pl('horizontal_pos'), 'default' => 50, 'min' => 0, 'max' => 100, 'css' => ['{{element}}' => 'left: {{val}}%'], ), ), 'icon_style' => [ 'icon' => array( 'type' => 'icon', 'label' => __pl('icon'), 'default' => 'fas fa-map-pin', 'css' => ['{{element}}' => 'position: absolute;transform: translateY(-{{align_top}}%) translateX(-{{align_left}}%);display: inline-block; cursor: pointer;'], ), 'icon_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-hotspots-icon-holder .fas' => 'color:{{val}}'], ), 'icon_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-hotspots-icon-holder .fas' => 'background-color:{{val}}'], ), 'icon_pulse' => array( 'type' => 'checkbox', 'label' => __pl('pulse'), 'default' => 'true', ), 'icon_pluse_color' => array( 'type' => 'color', 'label' => __pl('pulse_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-image-hotspots-anim::before' => 'background-color:{{val}}'], ), 'icon_rounded' => array( 'type' => 'checkbox', 'label' => __pl('rounded'), 'default' => 'true', 'css' => ['{{element}} .pagelayer-hotspots-icon-holder .fas' => 'border-radius:100%', '{{element}} .pagelayer-image-hotspots-anim::before ' => 'border-radius:100%'], ), 'icon_padding' => array( 'type' => 'dimension', 'label' => __pl('padding'), 'screen' => 1, 'default' => '15,18', 'css' => ['{{element}} .pagelayer-hotspots-icon-holder .fas' => 'padding:{{val[0]}}px {{val[1]}}px;margin-right:1px'], ), ], 'tooltip_style' => [ 'tooltip_text' => array( 'type' => 'editor', 'label' => __pl('text'), 'default' => 'Lorem ipsum dolor sit amet', 'edit' => '.pagelayer-tooltip-text', ), 'tooltip_position' => array( 'type' => 'select', 'label' => __pl('position'), 'default' => 'top', 'list' => array( 'top' => __pl('top'), 'right' => __pl('right'), 'bottom' => __pl('bottom'), 'left' => __pl('left'), ) ), 'common_tip_theme' => array( 'type' => 'select', 'label' => __pl('theme'), 'default' => 'tooltipster-default', 'list' => array( 'tooltipster-default' => __pl('dark'), /* 'tooltipster-light' => __pl('silver'), 'tooltipster-noir' => __pl('noir'), 'tooltipster-shadow' => __pl('shadow'), */ 'custom' => __pl('custom'), ), ), 'common_custom_bg_theme' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#eb002c', 'req' => array( 'common_tip_theme' => 'custom' ), 'css' => ['{{element}} .pagelayer-tooltip-text' => 'background-color:{{val}}', '{{element}} .pagelayer-tooltip-text:after' => 'border-color:transparent !important ;border-{{tooltip_position}}-color:{{val}} !important'] ), 'common_custom_font_theme' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'req' => array( 'common_tip_theme' => 'custom' ), 'css' => ['{{element}} .pagelayer-tooltip-text' => 'color:{{val}}'] ), ], 'styles' => [ 'icon_style' => __pl('icon'), 'tooltip_style' => __pl('tooltip') ] ) ); // Audio pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_audio', array( 'name' => __pl('audio'), 'group' => 'media', 'html' => '<div class="pagelayer-audio-container"> <audio controls> <source src="{{{src-url}}}"></source> </audio> </div>', 'params' => array( 'src' => array( 'type' => 'audio', 'label' => __pl('wp_audio_source_title'), 'desc' => __pl('wp_audio_source_desc'), 'default' => 'http://wpcom.files.wordpress.com/2007/01/mattmullenweg-interview.mp3', ), 'autoplay' => array( 'type' => 'checkbox', 'label' => __pl('wp_audio_autoplay_title'), 'desc' => __pl('wp_audio_autoplay_desc'), 'default' => '', 'addAttr' => ['{{element}} audio' => 'autoplay="autoplay"'], ), 'loop' => array( 'type' => 'checkbox', 'label' => __pl('wp_audio_loop_title'), 'desc' => __pl('wp_audio_loop_desc'), 'default' => '', 'addAttr' => ['{{element}} audio' => 'loop="loop"'], ), 'width' => array( 'type' => 'slider', 'label' => __pl('shape_width'), 'units' => ['%', 'px'], 'min' => 0, 'max' => 100, 'screen' => 1, 'css' => 'width: {{val}} !important', ), 'padding' => array( 'type' => 'dimension', 'label' => __pl('padding'), 'default' => '10,10', 'screen' => 1, 'css' => ['{{element}} .pagelayer-audio-container' => 'padding-top: {{val[0]}}px; padding-bottom: {{val[0]}}px; padding-left: {{val[1]}}px; padding-right: {{val[1]}}px;'], ), ), 'playpause_style' => [ 'playpause_size' => array( 'type' => 'spinner', 'label' => __pl('size'), 'default' => 12, 'min' => 0, 'max' => 200, 'screen' => 1, 'css' => ['{{element}} .mejs-playpause-button button' => 'font-size:{{val}}px;'] ), 'playpause_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#333333', 'css' => ['{{element}} .mejs-playpause-button button:after' => 'color:{{val}}'] ), 'playpause_space' => array( 'type' => 'spinner', 'label' => __pl('space_around'), 'default' => 5, 'min' => -100, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} .mejs-playpause-button button' => 'padding:calc( 1em + {{val}}px ) !important;'] ), 'playpause_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#E5E5E5', 'css' => ['{{element}} .mejs-playpause-button button' => 'background-color:{{val}} !important;'] ), 'playpause_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'default' => 50, 'min' => 0, 'max' => 50, 'screen' => 1, 'css' => ['{{element}} .mejs-playpause-button button' => 'border-radius: {{val}}%;'] ), ], 'duration_style' => [ 'show_duration' => array( 'type' => 'checkbox', 'label' => __pl('show'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-audio-container' => 'show_duration="{{show_duration}}"'], ), 'duration_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#333333', 'css' => ['{{element}} .mejs-duration' => 'color:{{val}} !important;'] ), ], 'progress_style' => [ 'show_progress' => array( 'type' => 'checkbox', 'label' => __pl('show'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-audio-container' => 'show_progress="{{show_progress}}"'], ), 'progress_height' => array( 'type' => 'slider', 'label' => __pl('progress_height'), 'units' => ['px', '%'], 'min' => 0, 'max' => 100, 'screen' => 1, 'default' => 10, 'css' => [ '{{element}} .mejs-time-total' => 'height:{{val}} !important;', ], ), 'progress_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => 'rgba(0,0,0,0.1)', 'css' => ['{{element}} .mejs-controls .mejs-time-rail .mejs-time-total' => 'background:{{val}} !important;'] ), 'progress_loaded' => array( 'type' => 'color', 'label' => __pl('loaded_color'), 'default' => '#777777', 'css' => ['{{element}} .mejs-time-loaded' => 'background:{{val}} !important;'] ), 'progress_current' => array( 'type' => 'color', 'label' => __pl('current_color'), 'default' => '#0986c0', 'css' => ['{{element}} .mejs-time-current' => 'background:{{val}} !important;'] ), 'progress_hovered' => array( 'type' => 'color', 'label' => __pl('hovered_color'), 'default' => '#b5d2f9', 'css' => ['{{element}} .mejs-time-hovered' => 'background:{{val}} !important;'] ), 'progress_handle' => array( 'type' => 'color', 'label' => __pl('handle_color'), 'default' => '#000000', 'css' => [ '{{element}} .mejs-time-handle' => 'background:{{val}} !important;', '{{element}} .mejs-time-handle-content' => 'background:{{val}} !important;', ] ), ], 'current_style' => [ 'show_current' => array( 'type' => 'checkbox', 'label' => __pl('show'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-audio-container' => 'show_current="{{show_current}}"'], ), 'current_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#333333', 'css' => ['{{element}} .mejs-currenttime' => 'color:{{val}} !important;'] ), ], 'volume_style' => [ 'show_volume' => array( 'type' => 'checkbox', 'label' => __pl('show'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-audio-container' => 'show_volume="{{show_volume}}"'], ), 'volume_size' => array( 'type' => 'spinner', 'label' => __pl('size'), 'default' => 12, 'min' => 0, 'max' => 200, 'screen' => 1, 'css' => ['{{element}} .mejs-volume-button button' => 'font-size:{{val}}px;'] ), 'volume_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#333333', 'css' => ['{{element}} .mejs-volume-button button:after' => 'color:{{val}}'] ), 'volume_space' => array( 'type' => 'spinner', 'label' => __pl('space_around'), 'default' => 5, 'min' => -100, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} .mejs-volume-button button' => 'padding:calc( 1em + {{val}}px ) !important;'] ), 'volume_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#E5E5E5', 'css' => ['{{element}} .mejs-volume-button button' => 'background-color:{{val}} !important;'] ), 'volume_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'default' => 50, 'min' => 0, 'max' => 50, 'screen' => 1, 'css' => ['{{element}} .mejs-volume-button button' => 'border-radius: {{val}}%;'] ), ], 'volume_slider' => [ 'volume_height' => array( 'type' => 'slider', 'label' => __pl('progress_height'), 'units' => ['px', '%'], 'min' => 0, 'max' => 100, 'screen' => 1, 'default' => 10, 'css' => [ '{{element}} .mejs-horizontal-volume-total' => 'height:{{val}} !important;' ], ), 'volume_width' => array( 'type' => 'slider', 'label' => __pl('shape_width'), 'min' => 0, 'max' => 100, 'default' => 35, 'screen' => 1, 'css' => [ '{{element}} .mejs-horizontal-volume-total' => 'width:{{val}}px !important;', '{{element}} .mejs-horizontal-volume-slider' => 'width: calc( {{val}}px + 10px ) !important;', ], ), 'vslides_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => 'rgba(0,0,0,0.1)', 'css' => ['{{element}} .mejs-horizontal-volume-total' => 'background:{{val}} !important;'] ), 'vslider_current' => array( 'type' => 'color', 'label' => __pl('current_color'), 'default' => '#777777', 'css' => ['{{element}} .mejs-horizontal-volume-current' => 'background:{{val}} !important;'] ), ], 'styles' => [ 'playpause_style' => __pl('playpause_style'), 'duration_style' => __pl('duration_style'), 'progress_style' => __pl('progress_style'), 'current_style' => __pl('current_style'), 'volume_style' => __pl('volume_style'), 'volume_slider' => __pl('volume_slider'), ] ) ); // Video Slider pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video_slider', array( 'name' => __pl('video_slider'), 'group' => 'media', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'prevent_inside' => ['pl_slides'], 'holder' => '.pagelayer-video-slider-holder', 'child_selector' => '>.pagelayer-owl-stage-outer>.pagelayer-owl-stage>.pagelayer-owl-item', // Make it very specifc 'html' => '<div class="pagelayer-video-slider-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme"></div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('Videos'), 'sc' => PAGELAYER_SC_PREFIX.'_video', 'item_label' => array( 'default' => __pl('video'), 'param' => 'video_type' ), 'count' => 2, 'text' => __pl('add_media'), ), ), 'slider_options' => $pagelayer->slider_options, 'arrow_styles' => $pagelayer->slider_arrow_styles, 'pager_styles' => $pagelayer->slider_pager_styles, 'styles' => [ 'slider_options' => __pl('slider_options'), 'arrow_styles' => __pl('arrow_styles'), 'pager_styles' => __pl('pager_styles'), ], ) ); // Download Button pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_download', array( 'name' => __pl('Download Button'), 'group' => 'button', 'html' => '<a href="{{{attachment-url}}}" target="_blank" class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}" download=""> <i class="{{icon}} pagelayer-btn-icon"></i> <span class="pagelayer-btn-text">{{text}}</span> <i class="{{icon}} pagelayer-btn-icon"></i> </a>', 'params' => array( 'text' => array( 'type' => 'text', 'label' => __pl('button_text_label'), 'default' => 'Download', 'edit' => '.pagelayer-btn-text' ), 'attachment' => array( 'type' => 'media', 'label' => __pl('media_file'), 'desc' => __pl('media_description'), 'default' => '', ), 'file_name' => array( 'type' => 'text', 'label' => __pl('Download File Name'), 'addAttr' => ['{{element}} a.pagelayer-btn-holder' => 'download="{{file_name}}"'] ), 'full_width' => array( 'type' => 'checkbox', 'label' => __pl('stretch'), 'screen' => 1, 'css' => ['{{element}} a' => 'width: 100%; text-align: center;'] ), 'align' => array( 'type' => 'radio', 'label' => __pl('obj_align_label'), 'default' => 'left', 'screen' => 1, 'css' => 'text-align: {{val}}', 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'req' => array( 'full_width' => '' ) ), 'btn_typo' => array( 'type' => 'typography', 'label' => __pl('quote_content_typo'), 'css' => [ '{{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;', '{{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;', ], ), ), 'btn_style' => [ 'type' => array( 'type' => 'select', 'label' => __pl('button_type_label'), 'default' => 'pagelayer-btn-default', 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), ), 'size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'default' => 'pagelayer-btn-large', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ) ), 'btn_custom_size' => array( 'type' => 'spinner', 'label' => __pl('btn_custom_size'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: {{val}}px calc({{val}}px *2)'], 'req' => array( 'size' => 'pagelayer-btn-custom' ), ), 'btn_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => array( 'type' => 'pagelayer-btn-custom', ), ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_label'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_color' => array( 'type' => 'color', 'label' => __pl('btn_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), ], 'icon_style' => [ 'icon' => array( 'type' => 'icon', 'label' => __pl('service_box_font_icon_label'), 'default' => 'fas fa-download', ), 'icon_position' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'pagelayer-btn-icon-left', 'list' => array( 'pagelayer-btn-icon-left' => __pl('left'), 'pagelayer-btn-icon-right' => __pl('right') ), 'req' => array( '!icon' => '' ) ), 'icon_spacing' => array( 'type' => 'slider', 'label' => __pl('icon_spacing'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'], 'req' => array( '!icon' => '' ), ), ], 'border_style' => [ 'btn_bor_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type' => '' ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, '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;'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type_hover' => '' ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, '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;'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), ], 'styles' => [ 'btn_style' => __pl('btn_style'), 'icon_style' => __pl('icon_style'), 'border_style' => __pl('border_style'), ], ) ); // Table pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_table', array( 'name' => __pl('table'), 'group' => 'other', 'no_gt' => 1, 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'holder' => '.pagelayer-data-holder', 'html' => '<div class="pagelayer-data-holder"></div> <table class="pagelayer-table-holder"></table>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('table_row'), 'sc' => PAGELAYER_SC_PREFIX.'_table_row', 'item_label' => array( 'default' => __pl('table_row'), //'param' => 'title', ), 'count' => 3, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('table_row'))) ), 'table_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'screen' => 1, 'units' => ['%', 'px'], 'min' => 0, 'css' => ['{{element}} .pagelayer-table-holder' => 'width:{{val}}'], ), 'table_height' => array( 'type' => 'slider', 'label' => __pl('height'), 'units' => ['px', 'em', '%'], 'screen' => 1, 'min' => 0, 'css' => ['{{element}} .pagelayer-table-holder' => 'height:{{val}}'], ), 'table_td_padding' => [ 'type' => 'padding', 'label' => __pl('table_td_padding'), 'screen' => 1, 'units' => ['px', 'em'], 'css' => ['{{element}} td, {{element}} th' => 'padding-top: {{val[0]}}; padding-right: {{val[1]}}; padding-bottom: {{val[2]}}; padding-left: {{val[3]}}'], ], ), 'table_style' => array( 'table_position' => array( 'type' => 'select', 'label' => __pl('table_position'), 'css' => ['{{element}} .pagelayer-table-holder' => '{{val}}:auto'], 'list' => array( 'margin-right' => __pl('left'), 'margin' => __pl('center'), 'margin-left' => __pl('right'), ), ), 'table_content_align' => array( 'type' => 'select', 'label' => __pl('content_align'), 'css' => ['{{element}} .pagelayer-table-holder' => 'text-align:{{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), 'table_verti_align' => array( 'type' => 'select', 'label' => __pl('vertical_align'), 'css' => ['{{element}} .pagelayer-table-holder *' => 'vertical-align:{{val}}'], 'list' => array( '' => __pl('none'), 'top' => __pl('top'), 'middle' => __pl('middle'), 'bottom' => __pl('bottom'), ), ), 'even_odd_row' => array( 'type' => 'radio', 'label' => __pl('colors'), 'default' => 'odd_row', 'list' => array( 'odd_row' => __pl('odd_row'), 'even_row' => __pl('even_row'), 'hover' => __pl('hover'), ), ), 'odd_row_text_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} tr:nth-child(odd) td, {{element}} tr:nth-child(odd) th' => 'color:{{val}}'], 'show' => ['even_odd_row' => 'odd_row'], ), 'odd_row_color' => array( 'type' => 'color', 'label' => __pl('odd_row_bg'), 'default' => '#ffffff', 'css' => ['{{element}} tr:nth-child(odd) td, {{element}} tr:nth-child(odd) th' => 'background-color:{{val}}'], 'show' => ['even_odd_row' => 'odd_row'], ), 'even_row_text_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} tr:nth-child(even) td, {{element}} tr:nth-child(even) th' => 'color:{{val}}'], 'show' => ['even_odd_row' => 'even_row'], ), 'even_row_color' => array( 'type' => 'color', 'label' => __pl('even_row_bg'), 'default' => '#e3e3e3', 'css' => ['{{element}} tr:nth-child(even) td, {{element}} tr:nth-child(even) th' => 'background-color:{{val}}'], 'show' => ['even_odd_row' => 'even_row'], ), 'tr_hover_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} tr:hover td, {{element}} tr:hover th' => 'color:{{val}} !important'], 'show' => ['even_odd_row' => 'hover'], ), 'tr_hover_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#e3e3e3', 'css' => ['{{element}} tr:hover td, {{element}} tr:hover th' => 'background-color:{{val}} !important'], 'show' => ['even_odd_row' => 'hover'], ), 'table_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .pagelayer-table-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;', ], ), 'table_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} table' =>'border-style: {{val}};', '{{element}} th' =>'border-style: {{val}};', '{{element}} td' =>'border-style: {{val}};' ], 'default' => 'solid', 'list' => [ 'none' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'table_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#42414f', 'css' => ['{{element}} table' =>'border-color: {{val}};', '{{element}} th' =>'border-color: {{val}};', '{{element}} td' =>'border-color: {{val}};' ], 'req' => ['!table_border_type' => 'none'] ), 'table_border_width' => array( 'type' => 'spinner', 'label' => __pl('border_width'), 'default' => 1, 'screen' => 1, 'css' => ['{{element}} table' =>'border-width: {{val}}px;', '{{element}} th' =>'border-width: {{val}}px;', '{{element}} td' =>'border-width: {{val}}px;' ], 'req' => ['!table_border_type' => 'none'] ), ), 'styles' => array( 'table_style' => __pl('table_style'), ), ) ); // Table row pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_table_row', array( 'name' => __pl('table_row'), 'group' => 'other', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_table'], 'has_group' => [ 'section' => 'params', 'prop' => 'col_elements' ], 'holder' => '.pagelayer-table-row-holder', 'html' => '<div class="pagelayer-table-row-holder"></div>', 'params' => array( 'col_elements' => array( 'type' => 'group', 'label' => __pl('table_cell'), 'sc' => PAGELAYER_SC_PREFIX.'_table_col', 'item_label' => array( 'default' => __pl('table_cell'), 'param' => 'title', ), 'count' => 3, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('table_cell'))) ), 'tr_colors' => array( 'type' => 'radio', 'label' => __pl('colors'), 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'tr_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.pagelayer-table [pagelayer-table-id="{{ele_id}}"] td, .pagelayer-table [pagelayer-table-id="{{ele_id}}"] th' => 'color:{{val}} !important'], 'show' => ['tr_colors' => ''], ), 'tr_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.pagelayer-table [pagelayer-table-id="{{ele_id}}"] td, .pagelayer-table [pagelayer-table-id="{{ele_id}}"] th' => 'background-color:{{val}} !important'], 'show' => ['tr_colors' => ''], ), 'tr_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.pagelayer-table [pagelayer-table-id="{{ele_id}}"]:hover td, .pagelayer-table [pagelayer-table-id="{{ele_id}}"]:hover th' => 'color:{{val}} !important'], 'show' => ['tr_colors' => 'hover'], ), 'tr_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.pagelayer-table [pagelayer-table-id="{{ele_id}}"]:hover td, .pagelayer-table [pagelayer-table-id="{{ele_id}}"]:hover th' => 'background-color:{{val}} !important'], 'show' => ['tr_colors' => 'hover'], ), 'tr_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '.pagelayer-table [pagelayer-table-id="{{ele_id}}"]' => '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;', ], ), 'tr_td_padding' => [ 'type' => 'padding', 'label' => __pl('row_data_padding'), 'screen' => 1, 'units' => ['px', 'em'], 'css' => ['.pagelayer-table [pagelayer-table-id="{{ele_id}}"] td, .pagelayer-table [pagelayer-table-id="{{ele_id}}"] th' => 'padding-top: {{val[0]}}; padding-right: {{val[1]}}; padding-bottom: {{val[2]}}; padding-left: {{val[3]}}'], ], ) ) ); // Table col pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_table_col', array( 'name' => __pl('table_cell'), 'group' => 'other', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_table_row'], 'innerHTML' => 'data', 'html' => '<div class="pagelayer-col-data"></div>', 'params' => array( 'data' => array( 'type' => 'textarea', 'label' => __pl('data'), 'default' => 'Lorem ipsum', 'addAttr' => ['{{element}} .pagelayer-col-data' => 'data-td="{{data}}"'], ), 'td_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'screen' => 1, 'units' => ['%', 'px'], 'css' => ['.pagelayer-table tr [pagelayer-table-id="{{ele_id}}"]' => 'width:{{val}}'], ), 'td_tag' => array( 'type' => 'select', 'label' => __pl('cell_type'), 'default' => 'td', 'list' => array( 'td' => __pl('standard_cell'), 'th' => __pl('header_cell'), ), 'addAttr' => ['{{element}} .pagelayer-col-data' => 'data-tag="{{td_tag}}"'], ), 'td_colors' => array( 'type' => 'radio', 'label' => __pl('colors'), 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'td_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.pagelayer-table tr [pagelayer-table-id="{{ele_id}}"]' => 'color:{{val}} !important'], 'show' => ['td_colors' => ''], ), 'td_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.pagelayer-table tr [pagelayer-table-id="{{ele_id}}"]' => 'background-color:{{val}} !important'], 'show' => ['td_colors' => ''], ), 'td_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.pagelayer-table tr [pagelayer-table-id="{{ele_id}}"]:hover' => 'color:{{val}} !important'], 'show' => ['td_colors' => 'hover'], ), 'td_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.pagelayer-table tr [pagelayer-table-id="{{ele_id}}"]:hover' => 'background-color:{{val}} !important'], 'show' => ['td_colors' => 'hover'], ), 'td_colspan' => array( 'type' => 'spinner', 'label' => __pl('colspan'), 'min' => 1, 'addAttr' => ['{{element}} .pagelayer-col-data' => 'data-colspan="{{td_colspan}}"'], ), 'td_rowspan' => array( 'type' => 'spinner', 'label' => __pl('rowspan'), 'min' => 1, 'addAttr' => ['{{element}} .pagelayer-col-data' => 'data-rowspan="{{td_rowspan}}"'], ), ), ) ); // Call To Action pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_call', array( 'name' => __pl('cta'), 'group' => 'other', 'innerHTML' => 'content', 'html' => '<div if={{show_ribbon}} class="pagelayer-cta-ribbon pagelayer-cta-ribbon-{{ribbon_pos}}"><div class="pagelayer-cta-ribbon-text">{{ribbon_text}}</div></div> <div class="pagelayer-cta-img-holder"> <div if="{{cta_image}}" class="pagelayer-cta-image" style="background-image: url(\'{{{cta_image-url}}}\');"> </div> </div> <div class="pagelayer-cta-content-holder"> <div class="pagelayer-cta-content"> <div if="{{heading}}" class="pagelayer-cta-heading">{{heading}}</div> <div if="{{subheading}}" class="pagelayer-cta-subheading">{{subheading}}</div> <div if="{{content}}" class="pagelayer-cta-text">{{content}}</div> <a if={{button_text}} class="pagelayer-btn-holder pagelayer-ele-link {{btn_type}} {{btn_size}}" href="{{{button_link}}}">{{button_text}}</a> </div> </div>', 'params' => array( 'layout' => array( 'type' => 'select', 'label' => __pl('cta_layout_label'), 'default' => 'normal', 'addClass' => 'pagelayer-cta-layout-{{val}}', 'list' => array( 'normal' => __pl('normal'), 'overlay' => __pl('overlay') ) ), 'align' => array( 'type' => 'radio', 'label' => __pl('cta_align_label'), 'default' => 'left', 'addClass' => 'pagelayer-cta-align-{{val}}', 'list' => array( 'left' => __pl('left'), '' => __pl('center'), 'right' => __pl('right'), ), 'req' => array( 'layout' => 'normal' ) ), ), 'image_style' => [ 'cta_image' => array( 'type' => 'image', 'label' => __pl('cta_image_label'), 'default' => PAGELAYER_URL.'/images/default-image.png' ), 'height' => array( 'type' => 'slider', 'label' => __pl('cta_img_height_label'), 'css' => ['{{element}} .pagelayer-cta-image' => 'min-height: {{val}}px;'], 'screen' => 1, 'default' => 300, 'min' => 0, 'max' => 1000, 'step' => 1, ), 'width' => array( 'type' => 'slider', 'label' => __pl('cta_img_width_label'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-cta-img-holder' => 'flex-basis: {{val}}%;', '{{element}} .pagelayer-cta-content-holder' => 'flex-basis: calc(100% - {{val}}%);'], 'default' => 50, 'min' => 0, 'max' => 100, 'step' => 1, 'req' => array( 'layout' => 'normal', '!align' => '' ) ), 'img_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'img_overlay' => array( 'type' => 'color', 'label' => __pl('overlay'), 'css' => ['{{element}} .pagelayer-cta-image:before' => 'background-color: {{val}}'], 'show' => ['img_hover' => ''] ), 'img_opacity' => array( 'type' => 'slider', 'label' => __pl('opacity'), 'css' => ['{{element}} .pagelayer-cta-image:before' => 'opacity: {{val}};'], 'min' => 0, 'max' => 1, 'step' => 0.1, 'show' => ['img_hover' => ''] ), 'hov_delay' => array( 'type' => 'slider', 'label' => __pl('delay'), 'css' => ['{{element}} .pagelayer-cta-image:before, {{element}} .pagelayer-cta-image' => 'transition: all {{val}}ms;'], 'default' => 800, 'min' => 200, 'max' => 10000, 'step' => 100, 'show' => ['img_hover' => 'hover'] ), 'img_overlay_hover' => array( 'type' => 'color', 'label' => __pl('overlay'), 'default' => '#333333', //'css' => ['{{element}} .pagelayer-cta-img-overlay' => 'background-color: {{val}}'], 'css' => ['{{element}}:hover .pagelayer-cta-image:before' => 'background-color: {{val}}'], 'show' => ['img_hover' => 'hover'] ), 'img_opacity_hover' => array( 'type' => 'slider', 'label' => __pl('opacity'), 'css' => ['{{element}}:hover .pagelayer-cta-image:before' => 'opacity: {{val}};'], 'default' => 0.3, 'min' => 0, 'max' => 1, 'step' => 0.1, 'show' => ['img_hover' => 'hover'] ), 'hover_anim' => array( 'type' => 'select', 'label' => __pl('cta_hover_anim_label'), 'default' => 'pagelayer-cta-zoomin', 'addClass' => '{{val}}', 'list' => array( '' => __pl('cta_anim_none'), 'pagelayer-cta-zoomin' => __pl('cta_anim_zoomin'), 'pagelayer-cta-zoomout' => __pl('cta_anim_zoomout'), 'pagelayer-cta-moveup' => __pl('cta_anim_moveup'), 'pagelayer-cta-movedown' => __pl('cta_anim_movedown'), 'pagelayer-cta-moveleft' => __pl('cta_anim_moveleft'), 'pagelayer-cta-moveright' => __pl('cta_anim_moveright'), ), 'show' => ['img_hover' => 'hover'] ), ], 'heading_styles' => [ 'heading' => array( 'type' => 'text', 'label' => __pl('heading_name'), 'default' => 'Time for action', 'edit' => '.pagelayer-cta-heading', ), 'heading_hover' => array( 'type' => 'radio', 'label' => __pl(''), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'heading_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-cta-heading' => 'color: {{val}}'], 'show' => ['heading_hover' => ''] ), 'heading_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'default' => 'Advent Pro,40,,700,,,solid,1.7,,,', 'css' => ['{{element}} .pagelayer-cta-heading' => '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;'], 'show' => ['heading_hover' => ''] ), 'heading_shadow' => array( 'type' => 'shadow', 'label' => __pl('heading_shadow'), 'css' => ['{{element}} .pagelayer-cta-heading' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], 'show' => ['heading_hover' => ''] ), 'heading_delay' => array( 'type' => 'slider', 'label' => __pl('delay'), 'css' => ['{{element}} .pagelayer-cta-heading' => 'transition: all {{val}}ms;'], 'default' => 800, 'min' => 200, 'max' => 3000, 'step' => 100, 'show' => ['heading_hover' => 'hover'] ), 'heading_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}}:hover .pagelayer-cta-heading' => 'color: {{val}}'], 'show' => ['heading_hover' => 'hover'] ), 'heading_typo_hover' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => ['{{element}}:hover .pagelayer-cta-heading' => '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;'], 'show' => ['heading_hover' => 'hover'] ), 'heading_shadow_hover' => array( 'type' => 'shadow', 'label' => __pl('heading_shadow'), 'css' => ['{{element}}:hover .pagelayer-cta-heading' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], 'show' => ['heading_hover' => 'hover'] ), ], 'subheading_styles' => [ 'subheading' => array( 'type' => 'text', 'label' => __pl('subheading_name'), 'edit' => '.pagelayer-cta-subheading', ), 'subheading_hover' => array( 'type' => 'radio', 'label' => __pl(''), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'subheading_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#555555', 'css' => ['{{element}} .pagelayer-cta-subheading' => 'color: {{val}}'], 'show' => ['subheading_hover' => ''] ), 'subheading_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => ['{{element}} .pagelayer-cta-subheading' => '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;'], 'show' => ['subheading_hover' => ''] ), 'subheading_shadow' => array( 'type' => 'shadow', 'label' => __pl('heading_shadow'), 'css' => ['{{element}} .pagelayer-cta-subheading' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], 'show' => ['subheading_hover' => ''] ), 'subheading_delay' => array( 'type' => 'slider', 'label' => __pl('delay'), 'css' => ['{{element}} .pagelayer-cta-subheading' => 'transition: all {{val}}ms;'], 'default' => 800, 'min' => 200, 'max' => 3000, 'step' => 100, 'show' => ['subheading_hover' => 'hover'] ), 'subheading_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#333333', 'css' => ['{{element}}:hover .pagelayer-cta-subheading' => 'color: {{val}}'], 'show' => ['subheading_hover' => 'hover'] ), 'subheading_typo_hover' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => ['{{element}}:hover .pagelayer-cta-subheading' => '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;'], 'show' => ['subheading_hover' => 'hover'] ), 'subheading_shadow_hover' => array( 'type' => 'shadow', 'label' => __pl('heading_shadow'), 'css' => ['{{element}}:hover .pagelayer-cta-subheading' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], 'show' => ['subheading_hover' => 'hover'] ), ], 'text_style' => [ 'content' => array( 'type' => 'editor', 'label' => __pl('text'), 'default' => '<p><span style="color: rgb(255, 255, 255);">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. consectetur adipiscing elit, sed do eiusmod tempor</span></p>', 'edit' => '.pagelayer-cta-text', ), ], 'content_styles' => [ 'content_spacing' => [ 'type' => 'padding', 'label' => __pl('cta_content_spacing_label'), 'default' => '25,25,25,25', 'screen' => 1, //'units' => ['px', 'em', '%'], 'css' => ['{{element}} .pagelayer-cta-content' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px'], ], 'content-align' => array( 'type' => 'radio', 'label' => __pl('cta_content_align_label'), 'default' => 'left', 'screen' => 1, 'css' => ['{{element}} .pagelayer-cta-content-holder' => 'text-align: {{val}};'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ) ), 'content_valign' => array( 'type' => 'radio', 'label' => __pl('cta_valign_label'), 'default' => 'flex-start', 'screen' => 1, 'addClass' => 'pagelayer-cta-align-{{val}}', 'css' => ['{{element}} .pagelayer-cta-content-holder' => 'align-items: {{val}};'], 'list' => array( 'flex-start' => __pl('top'), 'center' => __pl('center'), 'flex-end' => __pl('bottom'), ) ), 'content_hover' => array( 'type' => 'radio', 'label' => __pl(''), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'content_bg' => array( 'type' => 'color', 'label' => __pl('cta_content_bg_label'), 'default' => '#4B6270', 'css' => ['{{element}} .pagelayer-cta-content-holder' => 'background-color: {{val}}'], 'show' => ['content_hover' => ''], 'req' => array( 'layout' => 'normal' ) ), 'content_delay' => array( 'type' => 'slider', 'label' => __pl('delay'), 'css' => ['{{element}} .pagelayer-cta-content-holder' => 'transition: all {{val}}ms;'], 'default' => 800, 'min' => 200, 'max' => 3000, 'step' => 100, 'show' => ['content_hover' => 'hover'], ), 'content_bg_hover' => array( 'type' => 'color', 'label' => __pl('cta_content_bg_label'), 'default' => '#E88987', 'css' => ['{{element}}:hover .pagelayer-cta-content-holder' => 'background-color: {{val}}'], 'show' => ['content_hover' => 'hover'], 'req' => array( 'layout' => 'normal' ) ), ], 'button_style' => [ 'button_text' => array( 'type' => 'text', 'label' => __pl('text'), 'default' => __pl('button_name'), 'edit' => '.pagelayer-btn-holder', ), 'button_link' => array( 'type' => 'link', 'label' => __pl('link_settings'), 'selector' => '.pagelayer-ele-link', 'desc' => __pl('button_link_desc'), ), 'btn_type' => array( 'type' => 'select', 'label' => __pl('button_type_label'), 'default' => 'pagelayer-btn-success', 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-custom' => __pl('btn_type_custom'), ), ), 'btn_size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'default' => 'pagelayer-btn-mini', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ) ), 'btn_custom_size' => array( 'type' => 'dimension', 'label' => __pl('btn_custom_size'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: {{val[0]}}px {{val[1]}}px;'], 'req' => array( 'btn_size' => 'pagelayer-btn-custom' ), ), 'btn_spacing' => array( 'type' => 'slider', 'label' => __pl('cta_btn_spacing_label'), 'css' => ['{{element}} .pagelayer-btn-holder' => 'margin-top: {{val}}px;'], 'default' => 5, 'min' => 0, 'max' => 100, 'step' => 1, 'screen' => 1, ), 'btn_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_label'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_color' => array( 'type' => 'color', 'label' => __pl('btn_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_hover_label'), 'default' => '', 'css' => ['{{element}}:hover .pagelayer-btn-holder' => 'background-color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_color_hover_label'), 'default' => '', 'css' => ['{{element}}:hover .pagelayer-btn-holder' => 'color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_hover' => '' ), ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_hover' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type' => '' ], 'show' => array( 'btn_hover' => '' ), ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'default' => '40,40,40,40', 'screen' => 1, '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;'], 'show' => array( 'btn_hover' => '' ), ), 'btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}}:hover .pagelayer-btn-holder' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}}:hover .pagelayer-btn-holder' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, 'css' => ['{{element}}:hover .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'], 'req' => [ '!btn_border_type_hover' => '' ], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, 'css' => ['{{element}}:hover .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;'], 'show' => array( 'btn_hover' => 'hover' ), ), ], 'ribbon_style' => [ 'show_ribbon' => array( 'type' => 'checkbox', 'label' => __pl('cta_show_ribbon'), 'css' => ['{{element}} .pagelayer-cta-ribbon' => 'position: absolute; z-index: 2;'], 'default' => 'true' ), 'ribbon_style' => array( 'type' => 'select', 'label' => __pl('style'), //'css' => ['{{element}} .pagelayer-cta-ribbon' => '{{val}}: 0px;'], 'default' => '', 'list' => array( '' => __pl('default') ), 'req' => [ 'show_ribbon' => 'true' ] ), 'ribbon_text' => array( 'type' => 'text', 'label' => __pl('cta_ribbon_text_label'), 'default' => __pl('ribbon_text_default'), 'edit' => '.pagelayer-cta-ribbon-text', 'req' => array( 'show_ribbon' => 'true' ), ), 'ribbon_bg' => array( 'type' => 'color', 'label' => __pl('cta_ribbon_bg_label'), 'default' => '#0986c0', 'css' => [ '{{element}} .pagelayer-cta-ribbon' => 'background-color: {{val}}', '{{element}} .pagelayer-cta-ribbon-text:before' => 'border-top-color: {{val}}; border-bottom-color: {{val}};' ], 'req' => array( 'show_ribbon' => 'true' ), ), 'ribbon_color' => array( 'type' => 'color', 'label' => __pl('cta_ribbon_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-cta-ribbon' => 'color: {{val}}'], 'req' => array( 'show_ribbon' => 'true' ), ), 'ribbon_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => ['{{element}} .pagelayer-cta-ribbon-text' => '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;'], 'req' => [ 'show_ribbon' => 'true' ] ), 'ribbon_pos' => array( 'type' => 'radio', 'label' => __pl('ribbon_pos_label'), 'css' => ['{{element}} .pagelayer-cta-ribbon' => '{{val}}: 0px;'], 'default' => 'left', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'right' => __pl('right') ), 'req' => [ 'show_ribbon' => 'true', 'ribbon_style' => '' ] ), 'ribbon_top' => array( 'type' => 'slider', 'label' => __pl('verticle_postion'), 'css' => ['{{element}} .pagelayer-cta-ribbon' => 'top: {{val}}%;'], 'screen' => 1, 'default' => 5, 'min' => 0, 'max' => 100, 'step' => 1, 'req' => [ 'show_ribbon' => 'true', 'ribbon_style' => '' ] ), 'ribbon_spacing' => array( 'type' => 'dimension', 'label' => __pl('space_around'), 'default' => '10,10', 'screen' => 1, 'css' => ['{{element}} .pagelayer-cta-ribbon-text' => 'padding-left: {{val[0]}}px; padding-right: {{val[1]}}px;'], 'req' => [ 'show_ribbon' => 'true', 'ribbon_style' => '' ] ), 'ribbon_height' => array( 'type' => 'slider', 'label' => __pl('block_height'), 'css' => [ '{{element}} .pagelayer-cta-ribbon' => 'height: {{val}}px;', '{{element}} .pagelayer-cta-ribbon-left:before' => 'border-width: calc( {{val}}px / 2 ); right: calc( -{{val}}px / 2 );', '{{element}} .pagelayer-cta-ribbon-right:before' => 'border-width: calc( {{val}}px / 2 ); left: calc( -{{val}}px / 2 );', '{{element}} .pagelayer-cta-ribbon-left .pagelayer-cta-ribbon-text:before' => 'border-width: calc( {{val}}px / 2 ); right: calc( -{{val}}px / 2 );', '{{element}} .pagelayer-cta-ribbon-right .pagelayer-cta-ribbon-text:before' => 'border-width: calc( {{val}}px / 2 ); left: calc( -{{val}}px / 2 );', '{{element}} .pagelayer-cta-ribbon-text' => 'line-height: {{val}}px;' ], 'default' => 35, 'min' => 0, 'max' => 200, 'screen' => 1, 'step' => 1, 'screen' => 1, 'req' => [ 'show_ribbon' => 'true', 'ribbon_style' => '' ] ), 'ribbon_shadow' => array( 'type' => 'color', 'label' => __pl('shadow_color'), 'default' => 'rgba(0,0,0,0.5)', 'css' => [ '{{element}} .pagelayer-cta-ribbon:after' => 'background-color: {{val}}', /* '{{element}} .pagelayer-cta-ribbon-left:before' => 'border-top-color: {{val}}; border-bottom-color: {{val}}; border-left-color: {{val}}', '{{element}} .pagelayer-cta-ribbon-right:before' => 'border-top-color: {{val}}; border-bottom-color: {{val}}; border-right-color: {{val}}', */ '{{element}} .pagelayer-cta-ribbon:before' => 'border-top-color: {{val}}; border-bottom-color: {{val}};' ], 'req' => array( 'show_ribbon' => 'true', 'ribbon_style' => '' ), ), 'shadow_height' => array( 'type' => 'slider', 'label' => __pl('shadow_pos'), 'css' => [ '{{element}} .pagelayer-cta-ribbon:before' => 'top: {{val}}px', '{{element}} .pagelayer-cta-ribbon:after' => 'height: {{val}}px; bottom: -{{val}}px;' ], 'default' => 3, 'min' => 0, 'max' => 50, 'screen' => 1, 'step' => 1, 'screen' => 1, 'req' => [ 'show_ribbon' => 'true', 'ribbon_style' => '' ] ), ], 'styles' => [ 'image_style' => __pl('image_style'), 'heading_styles' => __pl('heading_styles'), 'subheading_styles' => __pl('subheading_styles'), 'text_style' => __pl('text_style'), 'content_styles' => __pl('content_styles'), 'button_style' => __pl('button_style'), 'ribbon_style' => __pl('ribbon_style'), ] ) ); // Modal pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_modal', array( 'name' => __pl('modal'), 'group' => 'other', 'innerHTML' => 'content', 'html' => '<div class="pagelayer-modal-container"> <div class="pagelayer-modal-button"> <a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{button_icon_position}}" onclick="pagelayer_render_pl_modal(event)"> <i if="{{button_icon}}" class="{{button_icon}} pagelayer-btn-icon pagelayer-icon-left"></i> <span class="pagelayer-btn-text" if="{{button_text}}">{{button_text}}</span> <i if="{{button_icon}}" class="{{button_icon}} pagelayer-btn-icon pagelayer-icon-right"></i> </a> </div> <div class="pagelayer-modal-content pagelayer-modal-{{modal_style}}"> <div if={{close_by_overlay}} class="pagelayer-modal-bg-close" onclick="pagelayer_pl_modal_close(event)"></div> <div class="pagelayer-modal-close" onclick="pagelayer_pl_modal_close(event)"></div> <div class="pagelayer-modal-body"> <div if="{{modal_title}}"class="pagelayer-modal-title">{{modal_title}}</div> <div class="pagelayer-modal-content-overflow" if-ext="{{content}}"> <div class="pagelayer-modal-bottom-content" if-ext="{{content}}">{{content}}</div> </div> </div> </div> </div>', 'params' => array( 'modal_style' => array( 'type' => 'radio', 'label' => __pl('obj_style'), 'default' => 'dark', 'list' => array( 'dark' => __pl('dark'), 'light' => __pl('light'), 'custom' => __pl('custom') ) ), 'modal_shadow_color' => array( 'type' => 'color', 'label' => __pl('obj_shadow_color_label'), 'default' => '#0b0b0b', 'req' => array( 'modal_style' => 'custom' ), 'css' => ['{{element}} .pagelayer-modal-content' => 'background-color: {{val}}'], ), 'modal_popup_width' => array( 'type' => 'slider', 'label' => __pl('modal_popup_width'), 'default' => 70, 'min' => 20, 'max' => 100, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-modal-body' => 'width: {{val}}%'], ), 'modal_popup_height' => array( 'type' => 'slider', 'label' => __pl('content_max_height'), 'min' => 100, 'max' => 1500, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-modal-content-overflow' => 'max-height: {{val}}px'], ), ), 'icon_style' => [ 'button_icon' => array( 'type' => 'icon', 'label' => __pl('icon'), 'list' => pagelayer_icon_class_list(true) ), 'icon_spacing' => array( 'type' => 'spinner', 'label' => __pl('icon_spacing'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'], 'req' => array( '!button_icon' => '' ), ), 'button_icon_position' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'pagelayer-btn-icon-left', 'list' => array( 'pagelayer-btn-icon-left' => __pl('left'), 'pagelayer-btn-icon-right' => __pl('right') ), 'req' => array( '!button_icon' => '' ), ), ], 'btn_styles' => [ 'button_text' => array( 'type' => 'text', 'label' => __pl('button_text_label'), 'default' => 'Open Modal Box', ), 'size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'default' => 'pagelayer-btn-large', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ) ), 'btn_custom_size' => array( 'type' => 'spinner', 'label' => __pl('btn_custom_size'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: {{val}}px {{val}}px;'], 'req' => array( 'size' => 'pagelayer-btn-custom' ) ), 'type' => array( 'type' => 'select', 'label' => __pl('button_type_label'), 'default' => 'pagelayer-btn-default', 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), ), 'button_full_width' => array( 'type' => 'checkbox', 'label' => __pl('stretch'), 'screen' => 1, 'css' => ['{{element}} a' => 'width: 100%; text-align: center;'] ), 'button_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'left', 'screen' => 1, 'css' => ['{{element}} .pagelayer-modal-button' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'req' => array( 'button_full_width' => '' ) ), 'btn_hover' => array( 'type' => 'radio', 'label' => '', 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_label'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_color' => array( 'type' => 'color', 'label' => __pl('btn_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_hover' => '' ), ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_hover' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type' => '' ], 'show' => array( 'btn_hover' => '' ), ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, '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;'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_hover' => '' ), ), 'btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type_hover' => '' ], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, '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;'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_hover' => 'hover' ), ), ], 'title_style' => [ 'modal_title' => array( 'type' => 'textarea', 'label' => __pl('title'), 'default' => __pl('modal_title_content_default'), 'edit' => '.pagelayer-modal-title' ), 'title_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'css' => ['{{element}} .pagelayer-modal-title' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'req' => [ '!modal_title' => '' ], ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-modal-title' => '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;'], 'req' => [ '!modal_title' => '' ], ), 'padding' => array( 'type' => 'padding', 'label' => __pl('stars_spacing'), 'default' => '25,25,25,25', 'screen' => 1, 'css' => ['{{element}} .pagelayer-modal-title' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px'], 'req' => [ '!modal_title' => '' ], ), 'modal_title_bgcolor' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#3D54DF', 'css' => ['{{element}} .pagelayer-modal-title' => 'background-color: {{val}}'], 'req' => [ '!modal_title' => '', 'modal_style' => 'custom' ], ), 'modal_title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-modal-title' => 'color: {{val}}'], 'req' => [ '!modal_title' => '', 'modal_style' => 'custom' ], ) ], 'content_style' => [ 'content' => array( 'type' => 'editor', 'label' => __pl('obj_content'), 'default' => __pl('content_with_tags_default'), 'edit' => '.pagelayer-modal-bottom-content' ), 'content_padding' => array( 'type' => 'padding', 'label' => __pl('stars_spacing'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-modal-bottom-content' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px'] ), 'modal_content_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#000000', 'req' => array( 'modal_style' => 'custom' ), 'css' => ['{{element}} .pagelayer-modal-body' => 'color: {{val}}'], ), 'modal_content_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#ffffff', 'req' => array( 'modal_style' => 'custom' ), 'css' => ['{{element}} .pagelayer-modal-bottom-content' => 'background-color: {{val}}'], ), ], 'close_style' => [ 'close_size' => array( 'type' => 'spinner', 'label' => __pl('size'), 'min' => 0, 'step' => 1, 'max' => 200, 'default' => 50, 'screen' => 1, 'css' => [ '{{element}} .pagelayer-modal-close:before' => 'height: {{val}}px; right: calc( {{val}}px / 2 );', '{{element}} .pagelayer-modal-close' => 'height: {{val}}px; width: {{val}}px;', '{{element}} .pagelayer-modal-close:after' => 'height: {{val}}px; right: calc( {{val}}px / 2 );' ] ), 'modal_close_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-modal-close::before' => 'background-color:{{val}}', '{{element}} .pagelayer-modal-close::after' => 'background-color:{{val}}'], 'req' => array( 'modal_style' => 'custom', ) ), 'close_by_overlay' => array( 'type' => 'checkbox', 'label' => __pl('close_by_overlay') ) ], 'styles' => [ 'btn_styles' => __pl('btn_style'), 'icon_style' => __pl('icon_style'), 'title_style' => __pl('title_style'), 'content_style' => __pl('content_style'), 'close_style' => __pl('close_style'), ] ) ); // Splash Screen pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_splash', array( 'name' => __pl('splash_screen'), 'group' => 'other', 'innerHTML' => 'content', 'html' => '<div class="pagelayer-splash-container pagelayer-splash-{{style}}"> <div if={{close_by_overlay}} class="pagelayer-splash-bg-close"></div> <span class="pagelayer-splash-close"></span> <div class="pagelayer-splash-body"> <div if="{{title}}"class="pagelayer-splash-title">{{title}}</div> <div class="pagelayer-splash-content-overflow" if-ext="{{content}}"> <div class="pagelayer-splash-bottom-content">{{content}}</div> </div> </div> </div>', 'params' => array( 'style' => array( 'type' => 'radio', 'label' => __pl('style'), 'default' => 'dark', 'list' => array( 'dark' => __pl('dark'), 'light' => __pl('light'), 'custom' => __pl('custom') ) ), 'shadow_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#0b0b0b', 'css' => ['{{element}} .pagelayer-splash-container ' => 'background:{{val}}'], 'req' => array( 'style' => 'custom' ) ), 'display' => array( 'type' => 'select', 'label' => __pl('display'), 'list' => array( 'once' => __pl('once'), 'always' => __pl('always') ), 'default' => 'once', 'addAttr' => ['{{element}} .pagelayer-splash-container' => 'display_type="{{display}}"'] ), 'delay' => array( 'type' => 'spinner', 'label' => __pl('animation_delay'), 'default' => 1000, 'min' => 100, 'addAttr' => ['{{element}} .pagelayer-splash-container' => 'delay="{{delay}}"'] ), 'width' => array( 'type' => 'slider', 'label' => __pl('icon_border_width'), 'screen' => 1, 'default' => '90', 'css' => ['{{element}} .pagelayer-splash-body' => 'width:{{val}}%'], ), 'splash_popup_height' => array( 'type' => 'slider', 'label' => __pl('content_max_height'), 'min' => 100, 'max' => 1500, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-splash-content-overflow' => 'max-height: {{val}}px'], ), ), 'title_style' => [ 'title' => array( 'type' => 'textarea', 'label' => __pl('title'), 'default' => __pl('splash_title_content_default'), 'edit' => '.pagelayer-splash-title' ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'css' => ['{{element}} .pagelayer-splash-title' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'req' => [ '!title' => '' ], ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-splash-title' => '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;'], 'req' => [ '!title' => '' ], ), 'padding' => array( 'type' => 'padding', 'label' => __pl('space_around'), 'default' => '25,25,25,25', 'screen' => 1, 'css' => ['{{element}} .pagelayer-splash-title' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px'], 'req' => [ '!title' => '' ], ), 'title_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#3D54DF', 'css' => ['{{element}} .pagelayer-splash-title' => 'background-color: {{val}}'], 'req' => [ '!title' => '', 'style' => 'custom' ], ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-splash-title' => 'color: {{val}}'], 'req' => [ '!title' => '', 'style' => 'custom' ], ) ], 'content_style' => [ 'content' => array( 'type' => 'editor', 'label' => __pl('obj_content'), 'default' => __pl('content_with_tags_default'), 'edit' => '.pagelayer-splash-bottom-content' ), 'content_color' => array( 'type' => 'color', 'label' => __pl('obj_content_color_label'), 'default' => '#0b0b0b', 'css' => ['{{element}} .pagelayer-splash-container ' => 'color:{{val}}'], 'req' => array( 'style' => 'custom' ) ), 'content_padding' => array( 'type' => 'padding', 'label' => __pl('space_around'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-splash-bottom-content' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px'], ), ], 'close_style' => [ 'close_size' => array( 'type' => 'spinner', 'label' => __pl('size'), 'min' => 0, 'step' => 1, 'max' => 200, 'default' => 50, 'screen' => 1, 'css' => [ '{{element}} .pagelayer-splash-close:before' => 'height: {{val}}px; right: calc( {{val}}px / 2 );', '{{element}} .pagelayer-splash-close' => 'height: {{val}}px; width: {{val}}px;', '{{element}} .pagelayer-splash-close:after' => 'height: {{val}}px; right: calc( {{val}}px / 2 );' ] ), 'close_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-splash-close::after, {{element}} .pagelayer-splash-close::before ' => 'background-color:{{val}}'], 'req' => array( 'style' => 'custom' ) ), 'close_by_overlay' => array( 'type' => 'checkbox', 'label' => __pl('close_by_overlay') ), ], 'styles' => [ 'title_style' => __pl('title_style'), 'content_style' => __pl('content_style'), 'close_style' => __pl('close_style'), ] ) ); // Chart pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_chart', array( 'name' => __pl('chart'), 'group' => 'other', 'has_group' => [ 'section' => 'datasets', 'prop' => 'elements' ], 'holder' => '.pagelayer-chart-child-holder', 'html' => '<div if="{{title}}" class="pagelayer-chart-title">{{title}}</div> <div class="pagelayer-chart-child-holder"></div> <canvas class="pagelayer-chart-holder"></canvas>', 'params' => array( 'type' => array( 'type' => 'select', 'label' => __pl('type'), 'desc' => __pl('google_charts_type_desc'), 'default' => 'bar', 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'chart-type="{{type}}"'], 'list' => array( 'line' => __pl('google_charts_type_list_line'), 'bar' => __pl('google_charts_type_list_bar'), 'horizontalBar' => __pl('horizontalbar_chart'), 'radar' => __pl('radar'), 'doughnut' => __pl('doughnut_chart'), 'pie' => __pl('google_charts_type_list_pie'), 'polarArea' => __pl('polararea'), ) ), 'legend_pos' => array( 'type' => 'select', 'label' => __pl('legend_pos'), //'desc' => __pl('legend_pos_desc'), 'default' => 'top', 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'chart-legend="{{legend_pos}}"'], 'list' => array( '' => __pl('none'), 'top' => __pl('top'), 'left' => __pl('left'), 'bottom' => __pl('bottom'), 'right' => __pl('right'), ) ), 'custom_dimension' => array( 'type' => 'checkbox', 'label' => __pl('custom_dimension'), 'default' => '', ), 'chart_height' => array( 'type' => 'slider', 'label' => __pl('custom_height'), 'screen' => 1, 'min' => 0, 'max' => 1000, 'step' => 1, 'default' => 350, 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'chart-height="{{chart_height}}"'], 'css' => ['{{element}} .pagelayer-chart-holder' => 'height: {{val}}px !important;'], 'req' => array( 'custom_dimension' => 'true' ), ), 'chart_width' => array( 'type' => 'slider', 'label' => __pl('custom_width'), 'screen' => 1, 'min' => 0, 'max' => 100, 'step' => 1, 'default' => 100, 'css' => ['{{element}} .pagelayer-chart-holder' => 'width: {{val}}% !important;'], 'req' => array( 'custom_dimension' => 'true' ), ), /* 'colors' => array( 'type' => 'textarea', 'label' => __pl('google_charts_colors_label'), 'desc' => 'You can give multiple colors here and separate them by coma(,) E.g. #000000, #ffffff, #f4c63d, #923a3a', 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'chart-colors="{{colors}}"'], ), */ /* 'width' => array( 'type' => 'slider', 'label' => __pl('Chart_width'), 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-width="{{width}}%"'], ), */ ), 'label_style' => [ 'labels' => array( 'type' => 'textarea', 'label' => __pl('label_style'), 'desc' => __pl('Enter labels with comma(,) separeted'), 'default' => 'Jan,Feb,Mar,Apr,May', 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'chart-labels="{{labels}}"'], ), 'label_colors' => array( 'type' => 'textarea', 'label' => __pl('colors'), 'desc' => __pl('Enter hex color code with comma(,) separeted'), 'default' => '#3e95cd,#8e5ea2,#3cba9f,#e8c3b9,#c45850', 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'chart-colors="{{label_colors}}"'], 'req' => [ 'type' => ['doughnut', 'pie', 'polarArea'] ] ), ], 'datasets' => [ 'elements' => array( 'type' => 'group', 'label' => __pl('datasets'), 'sc' => PAGELAYER_SC_PREFIX.'_chart_datasets', 'item_label' => array( 'default' => __pl('dataset'), 'param' => 'datasets', ), 'count' => 1, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('dataset_name'))), ), ], 'ticks_style' => [ 'tick_type' => array( 'type' => 'radio', 'label' => __pl('axis'), 'default' => 'xaxis', //'no_val' => 1,// Dont set any value to element 'list' => array( 'xaxis' => __pl('x-axis'), 'yaxis' => __pl('y-axis'), ) ), 'xcolor' => array( 'type' => 'color', 'label' => __pl('color'), 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-xcolor="{{xcolor}}"'], 'show' => array( 'tick_type' => 'xaxis' ), ), 'xsize' => array( 'type' => 'slider', 'label' => __pl('size'), 'min' => 0, 'max' => 100, 'screen' => 1, 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-xsize="{{xsize}}"'], 'show' => array( 'tick_type' => 'xaxis' ), ), 'xrotate' => array( 'type' => 'slider', 'label' => __pl('Rotate'), 'min' => 0, 'max' => 360, 'screen' => 1, 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-xrotate="{{xrotate}}"'], 'show' => array( 'tick_type' => 'xaxis' ), ), 'xbegin' => array( 'type' => 'checkbox', 'label' => __pl('begin_at_zero'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-xbegin="{{xbegin}}"'], 'show' => array( 'tick_type' => 'xaxis' ), ), 'ycolor' => array( 'type' => 'color', 'label' => __pl('color'), 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-ycolor="{{ycolor}}"'], 'show' => array( 'tick_type' => 'yaxis' ), ), 'ysize' => array( 'type' => 'slider', 'label' => __pl('size'), 'min' => 0, 'max' => 100, 'screen' => 1, 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-ysize="{{ysize}}"'], 'show' => array( 'tick_type' => 'yaxis' ), ), 'yrotate' => array( 'type' => 'slider', 'label' => __pl('Rotate'), 'min' => 0, 'max' => 360, 'screen' => 1, 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-yrotate="{{yrotate}}"'], 'show' => array( 'tick_type' => 'yaxis' ), ), 'ybegin' => array( 'type' => 'checkbox', 'label' => __pl('begin_at_zero'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-chart-holder' => 'data-ybegin="{{ybegin}}"'], 'show' => array( 'tick_type' => 'yaxis' ), ), ], 'title_style' => [ 'title' => array( 'type' => 'text', 'label' => __pl('title'), 'default' => __pl('company_performance'), 'edit' => '.pagelayer-chart-title', ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#47425d', 'css' => ['{{element}} .pagelayer-chart-title' => 'color:{{val}}'], 'req' => [ '!title' => '' ], ), 'title_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'css' => ['{{element}} .pagelayer-chart-title' => 'text-align:{{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'req' => [ '!title' => '' ], ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-chart-title' => '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;'], 'req' => [ '!title' => '' ], ), ], 'styles' => [ 'label_style' => __pl('label_style'), 'datasets' => __pl('datasets'), 'ticks_style' => __pl('ticks_style'), 'title_style' => __pl('title_style'), ], ) ); // Chart pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_chart_datasets', array( 'name' => __pl('chart_dataset'), 'group' => 'other', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_chart'], 'holder' => '.pagelayer-chart-datasets', 'html' => '<div class="pagelayer-chart-datasets"></div>', 'params' => array( 'label' => array( 'type' => 'text', 'label' => __pl('label'), 'default' => __pl('dataset_name'), 'addAttr' => ['{{element}} .pagelayer-chart-datasets' => 'datasets-label="{{label}}"'], ), 'datasets' => array( 'type' => 'textarea', 'label' => __pl('dataset_name'), 'desc' => __pl('Enter the datasets and separate by coma(,)'), 'default' => '5,9,7,8,5', 'addAttr' => ['{{element}} .pagelayer-chart-datasets' => 'chart-datasets="{{datasets}}"'], ), 'bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'addAttr' => ['{{element}} .pagelayer-chart-datasets' => 'dataset-bg="{{bg_color}}"'], ), 'chart_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'addAttr' => ['{{element}} .pagelayer-chart-datasets' => 'border-color="{{chart_border_color}}"'], ), 'fill_color' => array( 'type' => 'checkbox', 'label' => __pl('fill_color'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-chart-datasets' => 'dataset-fill="{{fill_color}}"'] ), ), ) ); // Menu list pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_menu_list', array( 'name' => __pl('menu_list'), 'group' => 'other', 'holder' => '.pagelayer-menu-list', //'innerHTML' => 'text', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'html' => '<div class="pagelayer-menu-list"></div>', 'params' => [ 'elements' => array( 'type' => 'group', 'label' => __pl('menu_item'), 'sc' => PAGELAYER_SC_PREFIX.'_menu_item', 'item_label' => array( 'default' => __pl('menu_item'), 'param' => 'title' ), 'count' => 3, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('menu_name'))), ), 'item_space' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'min' => 0, 'max' => 100, 'step' => 1, 'default' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-item' => 'padding-bottom: calc({{val}}px / 2); margin-bottom: calc({{val}}px / 2);'], ), 'valign' => array( 'type' => 'select', 'label' => __pl('badge_vertical_align'), 'default' => 'center', 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-item' => '-webkit-box-align:{{val}}; -webkit-align-items:{{val}}; -ms-flex-align:{{val}}; align-items:{{val}};'], 'list' => [ 'flex-start' => __pl('top'), 'center' => __pl('center'), 'flex-end' => __pl('bottom'), ], ), 'item_border_type' => array( 'type' => 'select', 'label' => __pl('divider'), 'default' => '', 'css' => ['{{element}} .pagelayer-menu-item' => 'border-bottom-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'item_border_color' => array( 'type' => 'color', 'label' => __pl('divider_color'), 'default' => '#dbdbdb', 'css' => ['{{element}} .pagelayer-menu-item' => 'border-bottom-color: {{val}};'], 'req' => ['!item_border_type' => ''] ), 'item_border_width' => array( 'type' => 'slider', 'label' => __pl('thickness'), 'min' => 0, 'max' => 20, 'step' => 1, 'default' => 2, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-item' => 'border-bottom-width: {{val}}px;'], 'req' => ['!item_border_type' => ''] ), ], 'title_styles' => [ 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#0c0901', 'css' => ['{{element}} .pagelayer-menu-title' => 'color:{{val}}'], ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',19,,700,,,solid,,,,', 'css' => ['{{element}} .pagelayer-menu-title span:first-child' => '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;'], ), 'space_bottom' => array( 'type' => 'slider', 'label' => __pl('space_bottom'), 'min' => 0, 'max' => 100, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-title' => 'padding-bottom:{{val}}px;'] ), ], 'item_details' => [ 'includes_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#484745', 'css' => ['{{element}} .pagelayer-menu-includes' => 'color:{{val}}'], ), 'includes_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',12,italic,200,,,,,,,', 'css' => ['{{element}} .pagelayer-menu-includes' => '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;'], ), ], 'separator_style' => [ 'separater' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'dotted', 'css' => ['{{element}} .pagelayer-menu-separeter' =>'border-top-style:{{val}};'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), ] ), 'separater_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#777777', 'css' => ['{{element}} .pagelayer-menu-separeter' => 'border-top-color:{{val}};'], 'req' => ['!separater' => ''] ), 'separater_width' => array( 'type' => 'slider', 'label' => __pl('shape_width'), 'min' => 0, 'max' => 20, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-separeter' => 'border-top-width:{{val}}px;'], 'default' => 1, 'req' => ['!separater' => ''] ), 'separater_spacing' => array( 'type' => 'slider', 'label' => __pl('stars_spacing'), 'min' => 0, 'max' => 100, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-separeter' => 'margin: 0 {{val}}px;'], 'default' => 10, 'req' => ['!separater' => ''] ), ], 'price_style' => [ 'price_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#c02530', 'css' => ['{{element}} .pagelayer-menu-price' => 'color:{{val}}'], ), 'price_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',25,,600,,,,,,,', 'css' => ['{{element}} .pagelayer-menu-price' => '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;'], ), ], 'desc_style' => [ 'desc_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#484745', 'css' => ['{{element}} .pagelayer-menu-desc' => 'color:{{val}}'], ), 'desc_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',14,,,,,solid,1.5,,,', 'css' => ['{{element}} .pagelayer-menu-desc' => '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;'], ), ], 'image_style' => [ 'custom_size' => array( 'type' => 'spinner', 'label' => __pl('shape_width'), 'min' => 0, 'max' => 2000, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-img img' => 'width: {{val}}px;'], 'default' => 400, ), 'img_spacing' => array( 'type' => 'slider', 'label' => __pl('stars_spacing'), 'min' => 0, 'max' => 100, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-img' => 'padding-right: {{val}}px;'], 'default' => 10, ), 'img_border_hover' => array( 'type' => 'radio', 'label' => '', 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'img_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-menu-img img' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'img_border_hover' => '' ), ), 'img_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-menu-img img' => 'border-color: {{val}};'], 'req' => array( '!img_border_type' => '' ), 'show' => array( 'img_border_hover' => '' ), ), 'img_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-img 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'], 'req' => [ '!img_border_type' => '' ], 'show' => array( 'img_border_hover' => '' ), ), 'img_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-img img' => '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;'], 'show' => array( 'img_border_hover' => '' ), ), 'img_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}}:hover .pagelayer-menu-img img' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'img_border_hover' => 'hover' ), ), 'img_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}}:hover .pagelayer-menu-img img' => 'border-color: {{val}};'], 'default' => '#0986c0', 'req' => array( '!img_border_type' => '' ), 'show' => array( 'img_border_hover' => 'hover' ), ), 'img_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}}:hover .pagelayer-menu-img 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'], 'req' => [ '!img_border_type' => '' ], 'show' => array( 'img_border_hover' => 'hover' ), ), 'img_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}}:hover .pagelayer-menu-img img' => '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;'], 'show' => array( 'img_border_hover' => 'hover' ), ), ], 'styles' => [ 'title_styles' => __pl('title_style'), 'item_details' => __pl('item_details'), 'price_style' => __pl('price_style'), 'desc_style' => __pl('desc_style'), 'image_style' => __pl('image_style'), 'separator_style' => __pl('separator_style'), ] ) ); // Menu item pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_menu_item', array( 'name' => __pl('menu_item'), 'group' => 'other', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_menu_list'], //'innerHTML' => 'text', 'html' => '<div class="pagelayer-menu-item"> <div if="{{img}}" class="pagelayer-menu-img"> <img class="pagelayer-img" src="{{{img-url}}}" title="{{{img-title}}}" alt="{{{img-alt}}}"/> </div> <div class="pagelayer-menu-details"> <div class="pagelayer-menu-text"> <div class="pagelayer-menu-title"> <span if="{{title}}"> <div class="pagelayer-menu-title-holder">{{title}}</div> <div if="{{includes}}" class="pagelayer-menu-includes">{{includes}}</div> </span> <span class="pagelayer-menu-separeter"></span> <span if="{{price}}" class="pagelayer-menu-price">{{price}}</span> </div> <div if="{{desc}}" class="pagelayer-menu-desc">{{desc}}</div> </div> </div> </div>', 'params' => array( 'title' => array( 'type' => 'text', 'label' => __pl('title'), 'default' => __pl('menu_item'), 'edit' => '.pagelayer-menu-title-holder', ), 'includes' => array( 'type' => 'text', 'label' => __pl('includes_styles'), 'default' => __pl('includes_default'), 'edit' => '.pagelayer-menu-includes', ), 'desc' => array( 'type' => 'textarea', 'label' => __pl('desc_style'), 'default' => __pl('desc_default'), 'edit' => '.pagelayer-menu-desc', ), 'price' => array( 'type' => 'text', 'label' => __pl('price_style'), 'default' => __pl('$59'), 'edit' => '.pagelayer-menu-price', ), 'img' => array( 'type' => 'image', 'label' => __pl('Image'), ), ) ) ); // Post Portfolio pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_folio', array( 'name' => __pl('post_folio'), 'group' => 'other', 'html' => '<div class="pagelayer-postfolio-section">{{post_html}}</div>', 'params' => array( 'type' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'post', 'list' => array( 'post' => __pl('post'), 'page' => __pl('page'), ), ), 'columns' => array( 'type' => 'select', 'label' => __pl('columns'), 'default' => '3', 'screen' => 1, 'css' => ['{{element}} .pagelayer-postfolio-container' => 'grid-template-columns: repeat({{val}},1fr);'], 'list' => array( '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', ), ), 'count' => array( 'type' => 'spinner', 'label' => __pl('post_per_page'), 'min' => 1, 'step' => 1, 'default' => 6, ), 'ratio' => array( 'type' => 'spinner', 'label' => __pl('ratio'), 'min' => 0, 'step' => 0.1, 'max' => 2, 'default' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-postfolio-thumb' => 'padding: calc(50% * {{val}}) 0;'], ), 'col_gap' => array( 'type' => 'slider', 'label' => __pl('col_gap'), 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-postfolio-container' => 'grid-column-gap: {{val}}px;'], ), 'row_gap' => array( 'type' => 'slider', 'label' => __pl('row_gap'), 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-postfolio-container' => 'grid-row-gap: {{val}}px;'], ), 'thumb_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'min' => 0, 'step' => 1, 'max' => 50, 'default' => 0, 'screen' => 1, 'css' => [ '{{element}} .pagelayer-postfolio-thumb' => 'border-radius:{{val}}%;', '{{element}} .pagelayer-postfolio-content' => 'border-radius:{{val}}%;' ], ), ), 'title_style' => [ 'title_hover' => [ 'type' => 'radio', 'label' => '', 'default' => '', 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), ], ], 'show_title' => array( 'type' => 'checkbox', 'label' => __pl('show_title'), 'default' => '', 'css' => ['{{element}} .pagelayer-entry-title' => 'opacity:1;'], 'show' => ['title_hover' => ''] ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#333333', 'css' => ['{{element}} .pagelayer-entry-title' => 'color:{{val}};'], 'show' => ['title_hover' => ''], 'req' => ['show_title' => 'true'] ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('title_typo'), 'default' => ',20,,600,,,,,,,', 'css' => ['{{element}} .pagelayer-entry-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;'], 'show' => ['title_hover' => ''], 'req' => ['show_title' => 'true'] ), 'show_title_hover' => array( 'type' => 'checkbox', 'label' => __pl('show_title'), 'default' => 'true', 'css' => ['{{element}} .pagelayer-postfolio-content:hover .pagelayer-entry-title' => 'opacity:1;'], 'show' => ['title_hover' => 'hover'] ), 'title_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#333333', 'css' => ['{{element}} .pagelayer-postfolio-content:hover .pagelayer-entry-title' => 'color:{{val}};'], 'show' => ['title_hover' => 'hover'], 'req' => ['show_title_hover' => 'true'] ), 'title_typo_hover' => array( 'type' => 'typography', 'label' => __pl('title_typo'), 'default' => ',20,,600,,,,,,,', 'css' => ['{{element}} .pagelayer-postfolio-content:hover .pagelayer-entry-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;'], 'show' => ['title_hover' => 'hover'], 'req' => ['show_title_hover' => 'true'] ), ], 'overlay_style' => [ 'overlay_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#dadada', 'css' => ['{{element}} .pagelayer-postfolio-thumb' => 'background-color:{{val}};'] ), 'overlay_color_hover' => array( 'type' => 'color', 'label' => __pl('on_hover'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-postfolio-content:hover' => 'background-color:{{val}};'] ), 'overlay_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('overlay_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 3000, 'default' => 400, 'css' => [ '{{element}} .pagelayer-postfolio-content' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;', '{{element}} .pagelayer-entry-title' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;', ], ), ], 'filter_style' => [ 'filter_by' => array( 'type' => 'select', 'label' => __pl('filter_by'), 'default' => 'category', 'list' => array( 'none' => __pl('none'), 'category' => __pl('category'), 'tags' => __pl('tags'), ), ), 'filter_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#8DBCFA', 'css' => ['{{element}} .pagelayer-postfolio-btn' => 'color:{{val}};'], 'req' => ['!filter_by' => ''] ), 'filter_bg' => array( 'type' => 'color', 'label' => __pl('background_color'), 'default' => '', 'css' => ['{{element}} .pagelayer-postfolio-btn' => 'background-color:{{val}};'], 'req' => ['!filter_by' => ''] ), 'filter_typo' => array( 'type' => 'typography', 'label' => __pl('title_typo'), 'default' => ',20,,,,,,,,,', 'css' => ['{{element}} .pagelayer-postfolio-btn' => '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;'], 'req' => ['!filter_by' => ''] ), 'filter_size' => array( 'type' => 'dimension', 'label' => __pl('btn_padding'), 'default' => '5,10', 'screen' => 1, 'css' => ['{{element}} .pagelayer-postfolio-btn' => 'padding-top: {{val[0]}}px; padding-bottom: {{val[0]}}px; padding-left: {{val[1]}}px; padding-right: {{val[1]}}px;'], 'req' => ['!filter_by' => ''] ), 'filter_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-postfolio-btn' => 'border-radius:{{val}}px;'], 'req' => ['!filter_by' => ''] ), 'filter_spacing' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-postfolio-btn' => 'margin:0 {{val}}px;'], 'req' => ['!filter_by' => ''] ), 'space_bottom' => array( 'type' => 'slider', 'label' => __pl('space_bottom'), 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-postfolio-filter' => 'padding-bottom:{{val}}px;'], 'req' => ['!filter_by' => ''] ), ], 'styles' => [ 'title_style' => __pl('title_style'), 'overlay_style' => __pl('overlay_style'), 'filter_style' => __pl('filter_style'), ] ) ); // Posts pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_posts', array( 'name' => __pl('posts'), 'group' => 'other', 'prevent_inside' => ['pl_slides'], 'html' => '<div class="pagelayer-posts-container">{{post_html}}</div> <div if="{{infinite_types}}" class="pagelayer_load_button" data-text={{infinite_final}}> <a data-max="{{max_pages}}" class="pagelayer-btn-holder pagelayer-btn-load pagelayer-ele-link {{infinite_btn_type}} {{infinite_btn_size}} {{load_btn_icon_position}}"> <i if="{{load_btn_icon}}" class="{{load_btn_icon}} pagelayer-btn-load-icon"></i> <span if="{{infinite_text}}" class="pagelayer-btn-load-text" >{{infinite_text}}</span> <i if="{{load_btn_icon}}" class="{{load_btn_icon}} pagelayer-btn-load-icon"></i> </a> <div class="pagelayer-loader-holder" > <i class="fa fa-spinner fa-spin fa-3x fa-fw" aria-hidden="true"></i> </div> </div>', 'params' => array( 'post_type' => array( 'type' => 'select', 'label' => __pl('posts_grid_post_type_label'), 'desc' => __pl('posts_grid_post_type_desc'), 'list' => array( 'post' => __pl('post'), //'page' => __pl('page') ) ), 'by_period' => array( 'type' => 'select', 'label' => __pl('period'), 'default' => '', 'list' => array( '' => __pl('all'), 'last_day' => __pl('last_day'), 'last_week' => __pl('last_week'), 'last_month' => __pl('last_month'), 'last_year' => __pl('last_year'), 'custom' => __pl('custom'), //'ID' => __pl('ID'), ) ), 'before_date' => array( 'type' => 'datetime', 'displayMode' => 'datetime', // date | datetime (default) 'returnMode' => 'YYYY-MM-DD H:m:s', // mysql format uses here (default: Y-m-d H:i:s ) 'label' => __pl('before'), 'default' => '', 'req' => ['by_duration' => 'custom'] ), 'after_date' => array( 'type' => 'datetime', 'displayMode' => 'datetime', // date | datetime (default) 'returnMode' => 'YYYY-MM-DD H:m:s', // mysql format uses here (default: Y-m-d H:i:s ) 'label' => __pl('after'), 'default' => '', 'req' => ['by_duration' => 'custom'] ), 'orderby' => array( 'type' => 'select', 'label' => __pl('posts_order_by'), 'default' => 'date', 'list' => array( 'date' => __pl('date'), 'title' => __pl('title'), 'modified' => __pl('posts_order_by_modified'), 'rand' => __pl('posts_order_by_random'), 'menu_order' => __pl('posts_order_by_menu_order'), 'author' => __pl('author'), 'ID' => __pl('ID'), ) ), 'posts_order' => array( 'type' => 'select', 'label' => __pl('posts_grid_sort_order'), 'default' => 'DESC', 'list' => array( 'ASC' => __pl('posts_grid_sort_order_ascending'), 'DESC' => __pl('posts_grid_sort_order_descending') ) ), 'count' => array( 'type' => 'spinner', 'label' => __pl('post_per_page'), 'min' => 1, 'step' => 1, 'default' => 6, ), 'que_sec' => array( 'type' => 'radio', 'label' => '', 'default' => 'include', 'list' => array( 'include' => __pl('include'), 'exclude' => __pl('exclude') ) ), 'include_by' => array( 'type' => 'multiselect', 'label' => __pl('include_by'), 'list' => array( 'term' => __pl('term'), 'author' => __pl('author') ), 'show' => ['que_sec' => 'include'] ), 'inc_term' => array( 'type' => 'multiselect', 'label' => __pl('term'), 'list' => pagelayer_get_post_term(), 'req' => ['include_by' => ['term','term,author']], 'show' => ['que_sec' => 'include'] ), 'inc_author' => array( 'type' => 'select', 'label' => __pl('author'), 'list' => pagelayer_get_post_author(), 'req' => ['include_by' => ['author','term,author']], 'show' => ['que_sec' => 'include'] ), 'ignore_sticky' => array( 'label' => __pl('ignore_sticky_posts'), 'type' => 'checkbox', 'show' => ['que_sec' => 'include'] ), 'exclude_by' => array( 'type' => 'multiselect', 'label' => __pl('exclude_by'), 'list' => array( 'term' => __pl('term'), 'author' => __pl('author') ), 'show' => ['que_sec' => 'exclude'] ), 'exc_term' => array( 'type' => 'multiselect', 'label' => __pl('term'), 'list' => pagelayer_get_post_term(), 'req' => ['exclude_by' => ['term','term,author']], 'show' => ['que_sec' => 'exclude'] ), 'exc_author' => array( 'type' => 'select', 'label' => __pl('author'), 'list' => pagelayer_get_post_author(), 'req' => ['exclude_by' => ['author','term,author']], 'show' => ['que_sec' => 'exclude'] ), 'offset' => array( 'type' => 'spinner', 'label' => __pl('offset'), 'min' => 0, 'step' => 1, 'max' => 50, 'show' => ['que_sec' => 'exclude'] ), ), 'posts_options' => $pagelayer_posts_options, 'thumb_style' => $pagelayer_thumb_style, 'title_style' => $pagelayer_title_style, 'meta_options' => $pagelayer_meta_style, 'content_style' => $pagelayer_content_style, 'more_style' => $pagelayer_more_style, 'btn_border_style' => $pagelayer_btn_border_style, 'slider_options' => [ 'enable_slider' => array( 'type' => 'checkbox', 'label' => __pl('enable_slider'), 'default' => '', 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-enable_slider="enable"'] ), 'slide_items' => array( 'type' => 'spinner', 'label' => __pl('number_of_items'), 'min' => 1, 'step' => 1, 'max' => 10, 'default' => 1, 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-owl-items="{{slide_items}}"'], 'req' => ['enable_slider' => 'true'] ), 'slide_margin' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 10, 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-owl-margin="{{slide_margin}}"'], 'req' => [ '!slide_items' => '1', 'enable_slider' => 'true' ] ), 'slide_loop' => array( 'type' => 'checkbox', 'label' => __pl('loop'), 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-owl-loop="{{slide_loop}}"'], 'req' => ['enable_slider' => 'true'] ), 'slide_nav' => array( 'type' => 'checkbox', 'label' => __pl('navigation'), 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-owl-nav="{{slide_nav}}"'], 'req' => ['enable_slider' => 'true'] ), 'slide_dots' => array( 'type' => 'checkbox', 'label' => __pl('bullets'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-owl-dots="{{slide_dots}}"'], 'req' => ['enable_slider' => 'true'] ), 'slide_autoplay' => array( 'type' => 'checkbox', 'label' => __pl('autoplay'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-owl-autoplay="{{slide_autoplay}}"'], 'req' => ['enable_slider' => 'true'] ), 'slide_timeout' => array( 'type' => 'spinner', 'label' => __pl('autoplay_timeout'), 'min' => 1000, 'step' => 200, 'max' => 10000, 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-owl-autoplay-timeout="{{slide_timeout}}"'], 'req' => [ 'slide_autoplay' => 'true', 'enable_slider' => 'true' ] ), 'slide_hoverpause' => array( 'type' => 'checkbox', 'label' => __pl('autoplay_hover_pause'), 'addAttr' => ['{{element}} .pagelayer-posts-container' => 'data-owl-autoplay-hover-pause="{{slide_hoverpause}}"'], 'req' => [ 'slide_autoplay' => 'true', 'enable_slider' => 'true' ] ), ], 'infinite' => $pagelayer_infinite_style, 'arrow_styles' => $pagelayer->slider_arrow_styles, 'pager_styles' => $pagelayer->slider_pager_styles, 'styles' => [ 'posts_options' => __pl('posts_options'), 'thumb_style' => __pl('thumb_style'), 'title_style' => __pl('title_style'), 'meta_options' => __pl('meta_options'), 'content_style' => __pl('content_style'), 'more_style' => __pl('more_style'), 'btn_border_style' => __pl('border_styles'), 'slider_options' => __pl('slider_options'), 'arrow_styles' => __pl('arrow_styles'), 'pager_styles' => __pl('pager_styles'), 'infinite' => __pl('infinite_scroll'), ] ) ); // Slides pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_slides', array( 'name' => __pl('slides'), 'group' => 'other', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'prevent_inside' => ['pl_slides'], 'holder' => '.pagelayer-slides-holder', 'child_selector' => '>.pagelayer-owl-stage-outer>.pagelayer-owl-stage>.pagelayer-owl-item', // Make it very specifc 'html' => '<div class="pagelayer-slides-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme"></div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('slide'), 'sc' => PAGELAYER_SC_PREFIX.'_content_slide', 'item_label' => array( 'default' => __pl('slide'), 'param' => 'item' ), 'count' => 2, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('slide'))), ), 'height' => array( 'type' => 'slider', 'label' => __pl('height'), 'screen' => 1, 'min' => 1, 'step' => 1, 'max' => 1500, 'units' => ['vh','px','%'], 'css' => [ '{{element}} .pagelayer-slide, {{element}} .pagelayer-content-slide' => 'max-height: {{val}}; height:{{val}};', ], ), ), 'slider_options' => $pagelayer->slider_options, 'arrow_styles' => $pagelayer->slider_arrow_styles, 'pager_styles' => $pagelayer->slider_pager_styles, 'styles' => [ 'slider_options' => __pl('slider_options'), 'arrow_styles' => __pl('arrow_styles'), 'pager_styles' => __pl('pager_styles'), ] ) ); // Content Slide pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_content_slide', array( 'name' => __pl('content_slide'), 'group' => 'other', 'has_group' => [ 'section' => 'params', 'prop' => 'elements', ], 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_slides'], 'holder' => '.pagelayer-content-slide', 'html' => '<div class="pagelayer-content-slide-bg"></div> <div class="pagelayer-slide-bg-overlay"></div> <div class="pagelayer-content-slide"></div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('Inner Row'), 'sc' => PAGELAYER_SC_PREFIX.'_inner_row', 'count' => 1, 'item_label' => array( 'default' => __pl('Slide Inner Row'), ), 'inner_content' => [ ['pl_col' => [ 'atts' => ['ele_padding' => '8%,8%,8%,8%', 'content_pos' => 'center'], 'inner_content' => [ ['pl_anim_heading' => [ 'atts' => ['text' => 'Faster & Easiest way to make a slide with', 'type' => 'rotating', 'align' => 'center', 'animations' => 'pagelayer-aheading-push', 'color' => '#fff', 'color_type' => 'color', 'rotate_color' => '#ff7a03', 'rotate_text' => 'Drag&Drop,Animations,&More', 'typo' => ',30,,700,,,Solid,,,,'] ]], ['pl_heading' => [ 'atts' => ['text' => '<h4>Slide show Sub-Heading</h4>', 'color' => '#ffffff', 'align' => 'center'] ]], ['pl_text' => [ 'atts' => ['text' => '<p style="text-align: center; color: rgb(255, 255, 255);">This is the default Slide show content. Feel free to delete it.</p>'] ]], ['pl_btn' => [ 'atts' => ['align' => 'center', 'type' => 'pagelayer-btn-custom', 'size' => 'pagelayer-btn-mini', 'btn_bg_color' => '', 'btn_color' => '#fff', 'btn_border_type' => 'solid', 'btn_border_color' => '#fff', 'btn_color_hover' => '#fff'] ]], ] ]], ], 'hide' => 1, ), 'type' => array( 'label' => __pl('background_type'), 'type' => 'radio', 'list' => array( '' => __pl('color'), 'image' => __pl('image'), 'gradient' => __pl('gradient') ), ), 'bg_color' => [ 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background: {{val}};'], 'req' => ['type' => ''] ], 'gradient' => [ 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100', 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'req' => ['type' => 'gradient'] ], 'img_color' => [ 'type' => 'color', 'label' => __pl('color'), 'desc' => __pl('fallback_color'), 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background: {{val}};'], 'req' => ['type' => 'image'] ], 'bg_img' => [ 'type' => 'image', 'label' => __pl('Image'), 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background: url("{{{bg_img-url}}}");'], 'req' => ['type' => 'image'] ], 'bg_attachment' => [ 'type' => 'select', 'label' => __pl('ele_bg_attachment'), 'list' => [ '' => __pl('default'), 'scroll' => __pl('scroll'), 'fixed' => __pl('fixed') ], 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background-attachment: {{val}};', '{{element}} .pagelayer-content-slide-bg' => 'background-attachment: {{val}};'], 'req' => ['type' => 'image'] ], 'bg_posx' => [ 'type' => 'select', 'label' => __pl('ele_bg_posx'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'left' => __pl('left'), 'right' => __pl('right') ], 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background-position-x: {{val}};'], 'req' => ['type' => 'image'] ], 'bg_posy' => [ 'type' => 'select', 'label' => __pl('ele_bg_posy'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'top' => __pl('top'), 'bottom' => __pl('bottom') ], 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background-position-y: {{val}};'], 'req' => ['type' => 'image'] ], 'bg_repeat' => [ 'type' => 'select', 'label' => __pl('ele_bg_repeat'), 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background-repeat: {{val}};'], 'list' => [ '' => __pl('default'), 'repeat' => __pl('repeat'), 'no-repeat' => __pl('no-repeat'), 'repeat-x' => __pl('repeat-x'), 'repeat-y' => __pl('repeat-y'), ], 'req' => ['type' => 'image'] ], 'bg_size' => [ 'type' => 'select', 'label' => __pl('ele_bg_size'), 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'background-size: {{val}};'], 'list' => [ '' => __pl('default'), 'cover' => __pl('cover'), 'contain' => __pl('contain') ], 'req' => ['type' => 'image'] ], 'bg_ken_burn' => array( 'type' => 'checkbox', 'label' => __pl('ken_burn_effect'), 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'animation-name: pagelayerKenBurn;'], 'req' => ['type' => 'image'] ), 'bg_ken_burn_speed' => array( 'type' => 'spinner', 'label' => __pl('ken_burn_speed'), 'min' => 1, 'step' => 1, 'default' => '20', 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'animation-duration:{{val}}s;'], 'req' => ['!bg_ken_burn' => '', 'type' => 'image'], ), 'bg_ken_burn_rev' => array( 'type' => 'checkbox', 'label' => __pl('ken_burn_reverse'), 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'animation-name: pagelayerKenBurnReverse;'], 'req' => ['!bg_ken_burn' => '', 'type' => 'image'], ), 'bg_ken_burn_loop' => array( 'type' => 'checkbox', 'label' => __pl('loop_kenburn'), 'css' => ['{{element}} .pagelayer-content-slide-bg' => 'animation-iteration-count: infinite;'], 'req' => ['!bg_ken_burn' => '', 'type' => 'image'], ), 'bg_overlay' => [ 'type' => 'checkbox', 'label' => __pl('row_bg_overlay'), ], 'bg_overlay_color' => [ 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-slide-bg-overlay' => 'background-color: {{val}}'], 'req' => ['!bg_overlay' => ''] ], 'bg_overlay_blend_mode' => [ 'type' => 'select', 'label' => __pl('blend_mode'), 'list' => [ '' => __pl('Normal'), 'multiply' => __pl('Multiply'), 'screen' => __pl('Screen'), 'overlay' => __pl('Overlay'), 'darken' => __pl('Darken'), 'lighten' => __pl('Lighten'), 'color-dodge' => __pl('Color Dodge'), 'color-burn' => __pl('Color Burn'), 'hue' => __pl('Hue'), 'saturation' => __pl('Saturation'), 'color' => __pl('Color'), 'exclusion' => __pl('Exclusion'), 'luminosity' => __pl('Luminosity'), ], 'css' => ['{{element}} .pagelayer-slide-bg-overlay' => 'mix-blend-mode:{{val}};'], 'req' => ['!bg_overlay' => ''], ], ), )); // Slide, for backward compatibility of slides child pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_slide', array( 'name' => __pl('slide'), 'group' => 'other', 'holder' => '.pagelayer-slide-btns', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_slides'], 'html' => '<div class="pagelayer-slide-holder"> <div if="{{heading}}" class="pagelayer-slide-heading">{{heading}}</div> <div if="{{sub}}" class="pagelayer-slide-sub">{{sub}}</div> <div if="{{desc}}" class="pagelayer-slide-desc">{{desc}}</div> <div class="pagelayer-slide-btns"></div> </div>', //'innerHTML' => 'desc', 'has_group' => [ 'section' => 'btn_style', 'prop' => 'elements' ], 'params' => array( 'type' => array( 'label' => __pl('background_type'), 'type' => 'radio', 'default' => 'color', 'list' => array( 'color' => __pl('color'), 'image' => __pl('image'), 'gradient' => __pl('gradient') ) ), 'color' => [ 'type' => 'color', 'label' => __pl('color'), 'default' => '#0986c0', 'css' => 'background: {{val}};', 'req' => ['type' => 'color'] ], 'gradient' => [ 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100', 'css' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);', 'req' => ['type' => 'gradient'] ], 'img_color' => [ 'type' => 'color', 'label' => __pl('color'), 'default' => '', 'desc' => __pl('fallback_color'), 'css' => 'background: {{val}};', 'req' => ['type' => 'image'] ], 'bg_img' => [ 'type' => 'image', 'label' => __pl('Image'), 'css' => 'background: url("{{{bg_img-url}}}");', 'req' => ['type' => 'image'] ], 'bg_attachment' => [ 'type' => 'select', 'label' => __pl('ele_bg_attachment'), 'list' => [ '' => __pl('default'), 'scroll' => __pl('scroll'), 'fixed' => __pl('fixed') ], 'css' => 'background-attachment: {{val}};', 'req' => ['type' => 'image'] ], 'bg_posx' => [ 'type' => 'select', 'label' => __pl('ele_bg_posx'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'left' => __pl('left'), 'right' => __pl('right') ], 'css' => 'background-position-x: {{val}};', 'req' => ['type' => 'image'] ], 'bg_posy' => [ 'type' => 'select', 'label' => __pl('ele_bg_posy'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'top' => __pl('top'), 'bottom' => __pl('bottom') ], 'css' => 'background-position-y: {{val}};', 'req' => ['type' => 'image'] ], 'bg_repeat' => [ 'type' => 'select', 'label' => __pl('ele_bg_repeat'), 'css' => 'background-repeat: {{val}};', 'list' => [ '' => __pl('default'), 'repeat' => __pl('repeat'), 'no-repeat' => __pl('no-repeat'), 'repeat-x' => __pl('repeat-x'), 'repeat-y' => __pl('repeat-y'), ], 'req' => ['type' => 'image'] ], 'bg_size' => [ 'type' => 'select', 'label' => __pl('ele_bg_size'), 'css' => 'background-size: {{val}};', 'list' => [ '' => __pl('default'), 'cover' => __pl('cover'), 'contain' => __pl('contain') ], 'req' => ['type' => 'image'] ], ), 'content_box_style' => [ 'content_width' => array( 'type' => 'spinner', 'label' => __pl('width'), 'screen' => 1, 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 80, 'css' => ['{{element}} .pagelayer-slide-holder' => 'width: {{val}}%'], ), 'content_posx' => array( 'type' => 'slider', 'label' => __pl('horizontal_pos'), 'screen' => 1, 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 50, 'css' => ['{{element}} .pagelayer-slide-holder' => 'left: {{val}}%;'], ), 'content_posy' => array( 'type' => 'slider', 'label' => __pl('verticle_postion'), 'screen' => 1, 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 50, 'css' => ['{{element}} .pagelayer-slide-holder' => 'top: {{val}}%; transform: translate(-{{content_posx}}%, -{{val}}%);'], ), 'content_bg' => [ 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#46494a98', 'css' => ['{{element}} .pagelayer-slide-holder' => 'background: {{val}}'], ], 'content_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'default' => '50,50,50,50', 'css' => ['{{element}} .pagelayer-slide-holder' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px'], ), 'align' => array( 'label' => __pl('alignment'), 'type' => 'radio', 'default' => 'center', 'css' => ['{{element}} .pagelayer-slide-holder' => 'text-align:{{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ) ), ], 'heading_style' => [ 'heading' => array( 'type' => 'text', 'label' => __pl('heading_style'), 'default' => __pl('This is Heading'), 'edit' => '.pagelayer-slide-heading', ), 'heading_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-slide-heading' => 'color: {{val}};'], ), 'heading_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',44,,700,,,solid,,,,', 'css' => ['{{element}} .pagelayer-slide-heading' => '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;'], ), 'heading_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'screen' => 1, 'min' => 0, 'step' => 1, 'default' => 0, 'max' => 200, 'css' => ['{{element}} .pagelayer-slide-heading' => 'padding-bottom: {{val}}px'], ), ], 'sub_style' => [ 'sub' => array( 'type' => 'textarea', 'label' => __pl('sub_style'), 'default' => __pl('This is Sub-Heading'), 'edit' => '.pagelayer-slide-sub', ), 'sub_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-slide-sub' => 'color: {{val}};'], ), 'sub_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',26,,,,,solid,,,,', 'css' => ['{{element}} .pagelayer-slide-sub' => '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;'], ), 'sub_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'screen' => 1, 'min' => 0, 'step' => 1, 'default' => 20, 'max' => 200, 'css' => ['{{element}} .pagelayer-slide-sub' => 'padding-bottom: {{val}}px'], ), ], 'btn_style' => [ 'elements' => array( 'type' => 'group', 'label' => __pl('buttons'), 'sc' => PAGELAYER_SC_PREFIX.'_btn', 'item_label' => array( 'default' => __pl('button'), 'param' => 'text' ), 'count' => 2, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('button_name'))), ), 'btn_space' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'screen' => 1, 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 10, 'css' => ['{{element}} .pagelayer-btn' => 'padding-right: {{val}}px;'], ) ], 'desc_style' => [ 'desc' => array( 'type' => 'textarea', 'label' => __pl('desc_style'), 'default' => __pl('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ac leo ut arcu dictum viverra at eu magna.'), 'edit' => '.pagelayer-slide-desc', ), 'desc_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-slide-desc' => 'color: {{val}};'], ), 'desc_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',15,,,,,solid,,,,', 'css' => ['{{element}} .pagelayer-slide-desc' => '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;'], ), 'desc_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'screen' => 1, 'min' => 0, 'step' => 1, 'default' => 10, 'max' => 200, 'css' => ['{{element}} .pagelayer-slide-desc' => 'padding-bottom: {{val}}px'], ), ], 'styles' => [ 'content_box_style' => __pl('content_box_style'), 'heading_style' => __pl('heading_style'), 'sub_style' => __pl('sub_style'), 'desc_style' => __pl('desc_style'), 'btn_style' => __pl('btn_style'), ] ) ); // Author Box pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_author_box', array( 'name' => __pl('author_box'), 'group' => 'archive', 'html' => '<div class="pagelayer-author-box-div pagelayer-author-box-holder pagelayer-layout-{{layout}}"> <div class="pagelayer-author-profile-pic" if={{author_picture}}> <a if-ext={{show_website}} href="{{{author_website}}}" class="pagelayer-link-sel"> <img class="pagelayer-img pagelayer-author-image" src="{{{avatar-url}}}" title="{{{avatar-title}}}" alt="{{{avatar-alt}}}" /> </a> </div> <div class="pagelayer-author-profile-desc"> <a href="{{{author_website}}}" if-ext={{show_website}}> <div class="pagelayer-author-title" if={{show_name}}>{{display_html}}</div> </a> <p class="pagelayer-author-bio" if={{show_bio}}>{{description}}</p> <a href="{{user_url}}" class="pagelayer-author-btn {{type}} pagelayer-button {{size}} pagelayer-ele-link" if={{archive_btn}}>{{archive_btn_txt}}</a> <a href="{{{author_website}}}" class="pagelayer-author-btn {{type}} pagelayer-button {{size}} pagelayer-ele-link" if={{show_as_button}}>{{btn_txt}}</a> </div> </div>', 'params' => array( 'box_source' => array( 'type' => 'select', 'label' => __pl('box_source_type'), 'default' => 'current', 'list' => array( 'current' => __pl('current_author'), 'custom' => __pl('custom'), ), ), 'avatar' => array( 'type' => 'image', 'label' => __pl('custom_image'), 'default' => PAGELAYER_URL.'/images/default-image.png', 'req' => ['box_source' => 'custom'], ), 'author_picture' => array( 'type' => 'checkbox', 'label' => __pl('author_picture'), 'default' => true, ), 'show_name' => array( 'type' => 'checkbox', 'label' => __pl('show_name'), 'default' => true, ), 'display_name' => array( 'type' => 'text', 'label' => __pl('display_name'), 'req' => ['box_source' => 'custom', 'show_name' => 'true' ], 'default' => 'Author', ), 'name_style' => array( 'type' => 'select', 'label' => __pl('name_style'), 'default' => 'h4', 'list' => array( 'h1' => __pl('H1'), 'h2' => __pl('H2'), 'h3' => __pl('H3'), 'h4' => __pl('H4'), 'h5' => __pl('H5'), 'h6' => __pl('H6'), ), ), 'user_url' => array( 'type' => 'select', 'label' => __pl('link'), 'default' => 'none', 'list' => array( 'none' => __pl('none'), 'archives' => __pl('archives'), ), 'req' => ['box_source' => 'current'], ), 'show_website' => array( 'type' => 'checkbox', 'label' => __pl('show_site'), 'default' => '', ), 'author_website' => array( 'type' => 'link', 'label' => __pl('author_website'), 'selector' => '.pagelayer-link-sel', 'req' => ['show_website' => 'true'], ), 'show_as_button' => array( 'type' => 'checkbox', 'label' => __pl('show_website_btn'), 'default' => '', 'req' => ['show_website' => 'true'], ), 'btn_txt' => array( 'type' => 'text', 'label' => __pl('button_text'), 'default' => 'Website', 'req' => array( 'show_as_button' => 'true', 'show_website' => 'true' ), ), 'show_bio' => array( 'type' => 'checkbox', 'label' => __pl('show_bio'), 'req' => ['box_source' => 'custom'], 'default' => 'true', ), 'description' => array( 'type' => 'textarea', 'label' => __pl('description'), 'default' => 'This is my Bio!', 'req' => array( 'box_source' => 'custom', 'show_bio' => 'true' ), ), 'archive_btn' => array( 'type' => 'checkbox', 'label' => __pl('show_archive_btn'), 'default' => '', 'req' => ['box_source' => 'current'], ), 'archive_btn_txt' => array( 'type' => 'text', 'label' => __pl('archive_btn_txt'), 'default' => 'All Post', 'req' => array( 'archive_btn' => 'true', 'box_source' => 'current' ), ), 'layout' => array( 'type' => 'radio', 'label' => __pl('layout'), 'default' => 'left', //'css' => ['{{element}} .pagelayer-author-profile-pic' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ) ), 'alignment' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'left', 'screen' => 1, 'css' => ['{{element}} .pagelayer-author-profile-desc' => 'text-align: {{val}}', '{{element}} .pagelayer-author-profile-pic' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ) ), ), 'image_style' => [ 'image_size' => array( 'type' => 'slider', 'label' => __pl('image_size'), 'step' => 1, 'max' => 200, 'min' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-author-image' => 'height: {{val}}px; width: {{val}}px;'], ), 'image_gap' => array( 'type' => 'slider', 'label' => __pl('gap'), 'step' => 1, 'max' => 100, 'min' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-author-profile-pic' => 'padding-right: {{val}}px;'], ), 'image_border' => array( 'type' => 'checkbox', 'label' => __pl('border'), 'default' => '', ), 'image_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'req' => ['image_border' => 'true'], 'css' => ['{{element}} .pagelayer-author-image' => 'border-color: {{val}};'], ), 'image_border_width' => array( 'type' => 'slider', 'label' => __pl('border_width'), 'max' => 20, 'step' => 1, 'min' => 0, 'screen' => 1, 'req' => ['image_border' => 'true'], 'css' => ['{{element}} .pagelayer-author-image' => 'border-width: {{val}}px;'], ), 'image_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-author-image' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'req' => ['image_border' => 'true'], ), 'image_border_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'step' => 1, 'max' => 100, 'min' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-author-image' => 'border-radius: {{val}}px;'], ), 'image_border_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-author-image' =>'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], ) ], 'text_style' => [ 'name_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-author-title *' => 'color: {{val}};'], ), 'name_typography' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-author-title *' => '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;', '{{element}} .pagelayer-author-title' => '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;'], ), 'title_gap' => array( 'type' => 'slider', 'label' => __pl('gap'), 'step' => 1, 'max' => 100, 'min' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-author-title' => 'padding-bottom: {{val}}px;'], ), 'bio_color' => array( 'type' => 'color', 'label' => __pl('bio_color'), 'css' => ['{{element}} .pagelayer-author-bio' => 'color: {{val}};'], ), 'bio_typography' => array( 'type' => 'typography', 'label' => __pl('bio_typo'), 'css' => ['{{element}} .pagelayer-author-bio *' => '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;', '{{element}} .pagelayer-author-bio' => '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;'], ), 'bio_gap' => array( 'type' => 'slider', 'label' => __pl('bio_gap'), 'step' => 1, 'max' => 100, 'min' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-author-bio' => 'padding-bottom: {{val}}px;'], ), ], 'button_style' => [ 'type' => array( 'type' => 'select', 'label' => __pl('button_type_label'), 'default' => 'pagelayer-btn-default', //'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'], 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), ), 'size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'default' => 'pagelayer-btn-large', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ) ), 'btn_custom_size' => array( 'type' => 'spinner', 'label' => __pl('btn_custom_size'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-author-btn' => 'padding: calc({{val}}px / 2) {{val}}px;'], 'req' => array( 'size' => 'pagelayer-btn-custom' ), ), 'btn_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => array( 'type' => 'pagelayer-btn-custom', ), ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_label'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-author-btn' => 'background-color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_color' => array( 'type' => 'color', 'label' => __pl('btn_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-author-btn' => 'color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-author-btn' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-author-btn:hover' => 'background-color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-author-btn:hover' => 'color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_bor_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-author-btn' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-author-btn' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['{{element}} .pagelayer-author-btn' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!btn_border_type' => '' ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'css' => ['{{element}} .pagelayer-author-btn' => '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;'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-author-btn:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-author-btn:hover' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'css' => ['{{element}} .pagelayer-author-btn: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'], 'req' => [ '!btn_border_type_hover' => '' ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'css' => ['{{element}} .pagelayer-author-btn: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;'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_gap' => array( 'type' => 'slider', 'label' => __pl('btn_gap'), 'step' => 1, 'max' => 100, 'min' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-author-btn' => 'margin-bottom: {{val}}px;'], ), ], 'styles' => [ 'image_style' => __pl('image'), 'text_style' => __pl('text'), 'button_style' => __pl('button'), ] ) ); // Login pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_login', array( 'name' => __pl('login'), 'group' => 'other', 'html' => '<div class="pagelayer-login-div pagelayer-login-holder" > <form class="pagelayer-login-form" onsubmit="return pagelayer_login_submit(this, event)" method="POST"> <div> <label if={{show_label}} class="pagelayer-login-username">{{custom_label_username}}</label> <input type="text" name="username" id="username" placeholder="{{custom_placeholder_login}}" class="pagelayer-login-input-field" spellcheck="false"/> </div> <div class="user-pass-wrap"> <label if={{show_label}} class="pagelayer-login-password">{{custom_label_password}}</label> <input type="password" name="password" id="password" placeholder="{{custom_placeholder_password}}" class="pagelayer-login-input-field" spellcheck="false"/> </div> <div class="pagelayer-login-cap" if="{{login_cap}}">{{login_cap}}</div> <div> <input type="checkbox" name="remember_me" if="{{remember_me}}" class="pagelayer-rememberMe"/><label if="{{remember_me}}" class="pagelayer-rememberMe">Remember Me</label> </div> <div class="wrapper pagelayer-login-btn-{{alignment}} pagelayer-login-wrappers"> <input type="hidden" name="login_url" value="{{redirect_url}}" if="{{redirect_login}}" /> <input type="hidden" name="logout_url" value="{{logout_url}}" if="{{redirect_logout}}" /> <button name="submit" class="pagelayer-ele-link pagelayer-login-btn {{btn_type}} pagelayer-button {{btn_size}}">{{login_text}}</button> </div> <div class="pagelayer-login-wrappers"> <a if="{{lost_pass}}" href="'. esc_url( wp_lostpassword_url( get_permalink() ) ) .'" class="pagelayer-ele-link">Lost your Password?</a> </div> </form> <div class="pagelayer-login-error-box"></div> </div> <div class="pagelayer-logout-txt" if={{display_logouttxt}}>{{display_logouttxt}}</div>', 'params' => array( 'show_label' => array( 'type' => 'checkbox', 'label' => __pl('show_label'), 'default' => 'true' ), 'remember_me' => array( 'type' => 'checkbox', 'label' => __pl('remember_me'), 'default' => 'true' ), 'lost_pass' => array( 'type' => 'checkbox', 'label' => __pl('lost_pass'), 'default' => 'true' ), 'custom_label' => array( 'type' => 'checkbox', 'label' => __pl('custom_label'), 'default' => '', ), 'custom_label_username' => array( 'type' => 'text', 'label' => __pl('custom_label_username'), 'default' => 'Username', 'show' => ['custom_label' => 'true'], 'edit' => '.pagelayer-login-username', ), 'custom_placeholder_login' => array( 'type' => 'text', 'label' => __pl('custom_placeholder_login'), 'default' => 'Username', 'show' => ['custom_label' => 'true'], ), 'custom_label_password' => array( 'type' => 'text', 'label' => __pl('custom_label_password'), 'default' => 'Password', 'show' => ['custom_label' => 'true'], 'edit' => '.pagelayer-login-password', ), 'custom_placeholder_password' => array( 'type' => 'text', 'label' => __pl('custom_placeholder_password'), 'default' => 'Password', 'show' => ['custom_label' => 'true'], ), 'redirect_login' => array( 'type' => 'checkbox', 'label' => __pl('redirect_login'), 'default' => '', ), 'redirect_url' => array( 'type' => 'text', 'label' => __pl('login_redirect_url'), 'desc' => __pl('redirect_url_desc'), 'default' => '', 'req' => ['redirect_login' => 'true'], ), 'redirect_logout' => array( 'type' => 'checkbox', 'label' => __pl('redirect_logout'), 'default' => '', ), 'logout_url' => array( 'type' => 'text', 'label' => __pl('logout_redirect_url'), 'desc' => __pl('redirect_url_desc'), 'default' => '', 'req' => ['redirect_logout' => 'true'], ), ), 'form_style' => array( 'row_gap' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'step' => 1, 'screen' => 1, 'max' => 60, 'css' => ['{{element}} .pagelayer-login-div input, .pagelayer-login-div .pagelayer-login-wrappers' => 'margin-bottom: {{val}}px;'], ), 'alignment' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'screen' => 1, 'default' => 'left', 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-login-div, .pagelayer-login-input-field' => 'text-align: {{val}};'], 'addClass' => ['{{element}} .pagelayer-login-input-field' => 'pagelayer-login-input-{{val}}'] ), 'link_color' => array( 'type' => 'color', 'label' => __pl('link_color'), 'css' => ['{{element}} .pagelayer-login-form a' => 'color: {{val}};'], ), 'link_color_hover' => array( 'type' => 'color', 'label' => __pl('link_color_hover'), 'css' => ['{{element}} .pagelayer-login-form a:hover' => 'color: {{val}};'], ), ), 'label_style' => array( 'label_gap' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'step' => 1, 'screen' => 1, 'max' => 60, 'css' => ['{{element}} .pagelayer-login-div label' => 'margin-bottom: {{val}}px;'], ), 'text_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => ['{{element}} .pagelayer-login-form label, {{element}} .pagelayer-login-cap' => 'color: {{val}};'], ), 'label_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-login-form label, {{element}} .pagelayer-login-cap' => '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;'], ), ), 'fields_style' => array( 'field_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'desc' => __pl('login_widget_width_desc'), 'min' => 10, 'max' => 100, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-login-form .pagelayer-login-input-field' => 'width: {{val}}%;'] ), 'field_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => ['{{element}} .pagelayer-login-form .pagelayer-login-input-field, {{element}} .pagelayer-login-cap input' => 'color: {{val}};', '{{element}} .pagelayer-login-form .pagelayer-login-input-field::selection' => 'color:white; background-color: {{val}};'], ), 'field_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-login-form input' => '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;'], ), 'field_bgcolor' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-login-form .pagelayer-login-input-field, {{element}} .pagelayer-login-cap input' => 'background-color: {{val}};'], ), 'field_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-login-form .pagelayer-login-input-field, {{element}} .pagelayer-login-cap input' => 'border-color: {{val}};'], ), 'field_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-login-form .pagelayer-login-input-field, {{element}} .pagelayer-login-cap input' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), 'field_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-login-form .pagelayer-login-input-field, {{element}} .pagelayer-login-cap input' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), ), 'buttons_style' => array( 'login_text' => array( 'type' => 'text', 'label' => __pl('text'), 'default' => 'Log In', 'edit' => '.pagelayer-login-btn', ), 'btn_stretch' => array( 'type' => 'checkbox', 'label' => __pl('stretch'), 'css' => ['{{element}} .pagelayer-login-btn' => 'width:100%;'], ), 'btn_gap' => array( 'type' => 'padding', 'label' => __pl('spacing'), 'step' => 1, 'screen' => 1, 'max' => 60, 'default' => '10', 'css' => ['{{element}} .pagelayer-login-btn' => 'margin-top: {{val[0]}}px; margin-right: {{val[1]}}px; margin-bottom: {{val[2]}}px; margin-left: {{val[3]}}px'], ), 'btn_type' => array( 'type' => 'select', 'label' => __pl('button_type_label'), 'default' => 'pagelayer-btn-default', //'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'], 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), ), 'btn_size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'default' => 'pagelayer-btn-large', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ) ), 'btn_custom_size' => array( 'type' => 'spinner', 'label' => __pl('btn_custom_size'), 'min' => 1, 'step' => 1, 'max' => 100, 'screen' => 1, 'default' => 5, 'css' => ['{{element}} .pagelayer-login-btn' => 'padding: calc({{val}}px / 2) {{val}}px;'], 'req' => array( 'btn_size' => 'pagelayer-btn-custom' ), ), 'btn_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_label'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-login-btn' => 'background-color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_color' => array( 'type' => 'color', 'label' => __pl('btn_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-login-btn' => 'color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-login-btn' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-login-btn:hover' => 'background-color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-login-btn:hover' => 'color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_bor_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-login-btn' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-login-btn' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-login-btn' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!btn_border_type' => '' ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-login-btn' => '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;'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-login-btn:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-login-btn:hover' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-login-btn: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'], 'req' => [ '!btn_border_type_hover' => '' ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-login-btn: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;'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), ), 'styles' => [ 'form_style' => __pl('Form'), 'label_style' => __pl('Label'), 'fields_style' => __pl('Fields'), 'buttons_style' => __pl('Button'), ] ) ); // SiteMap pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_sitemap', array( 'name' => __pl('sitemap'), 'group' => 'other', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'holder' => '.pagelayer-sitemap-div-holder', 'html' => '<div class="pagelayer-sitemap-div pagelayer-sitemap-holder"> <div class="pagelayer-sitemap-div-holder pagelayer-sitemap-flex-wrapper"> </div> </div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('Label'), 'sc' => PAGELAYER_SC_PREFIX.'_sitemap_item', 'item_label' => array( 'default' => __pl('Label'), 'param' => 'title' ), 'count' => 1, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('sitemap_item'))), ), 'columns' => array( 'type' => 'select', 'label' => __pl('columns'), 'default' => '2', 'list' => array( '1' => __pl('1'), '2' => __pl('2'), '3' => __pl('3'), '4' => __pl('4'), '5' => __pl('5'), '6' => __pl('6'), ), 'css' => [ '{{element}} .pagelayer-sitemap-div-holder > *' => 'flex-basis: calc( 1 / {{val}} * 100% );' ], ), 'nofollow' => array( 'type' => 'checkbox', 'label' => __pl('nofollow'), 'default' => '', 'addAttr' => ['{{element}} .pagelayer-sitemap-list-item a' => 'rel="nofollow"', '{{element}} .pagelayer-sitemap-div-holder' => 'data-nofollow="true"'], ), ), 'additional_opt' => [ 'protected' => array( 'type' => 'checkbox', 'label' => __pl('protected_post'), 'default' => '', ), ], 'list_styles' => [ 'indent' => array( 'type' => 'slider', 'label' => __pl('indent'), 'default' => 0, 'min' => 0, 'max' => 100, 'css' => ['{{element}} .pagelayer-sitemap-section li' => 'margin-left: {{val}}px'], ), 'padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-sitemap-section' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px'], ), 'title_color' => array( 'type' => 'color', 'label' => __pl('title_color'), 'css' => ['{{element}} .pagelayer-sitemap-section span' => 'color: {{val}}'], ), 'title_typography' => array( 'type' => 'typography', 'label' => __pl('title_typography'), 'css' => ['{{element}} .pagelayer-sitemap-section span' => '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;'], ), 'list_color' => array( 'type' => 'color', 'label' => __pl('list_color'), 'css' => ['{{element}} .pagelayer-sitemap-section li' => 'color: {{val}}', '{{element}} .pagelayer-sitemap-section a' => 'color: {{val}}'], ), 'list_typography' => array( 'type' => 'typography', 'label' => __pl('list_typography'), 'css' => ['{{element}} .pagelayer-sitemap-section li, {{element}} .pagelayer-sitemap-section 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;'], ), 'list_type' => array( 'type' => 'radio', 'label' => __pl('list_type'), 'default' => 'disc', 'list' => array( 'disc' => __pl('sitemap_disc'), 'circle' => __pl('sitemap_circle'), 'square' => __pl('sitemap_square'), 'none' => __pl('sitemap_none') ), 'css' => ['{{element}} .pagelayer-sitemap-section li' => 'list-style-type: {{val}}'], ), ], 'styles' => [ 'additional_opt' => __pl('additional_option'), 'list_styles' => __pl('list_option'), ] ) ); // SiteMap Builder pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_sitemap_item', array( 'name' => __pl('sitemap_item'), 'group' => 'other', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_sitemap'], 'html' => '{{sitemap_html}}', 'params' => array( 'sitemap_type' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'post_type', 'list' => array( 'post_type' => __pl('post_type'), 'taxonomy' => __pl('taxonomy'), ) ), 'source_post' => array( 'type' => 'select', 'label' => __pl('source'), 'default' => 'page', 'list' => array( 'post' => __pl('Posts'), 'page' => __pl('Pages'), ), 'show' => array( 'sitemap_type' => 'post_type', ), ), 'source_taxonomy' => array( 'type' => 'select', 'label' => __pl('source'), 'default' => 'category', 'list' => array( 'category' => __pl('categories'), 'post_tag' => __pl('tags'), 'post_format' => __pl('format'), ), 'show' => array( 'sitemap_type' => 'taxonomy' ), ), 'title' => array( 'type' => 'text', 'label' => __pl('title'), 'default' => '', ), 'order_post' => array( 'type' => 'select', 'label' => __pl('order_by'), 'default' => 'random', 'list' => array( 'post_date' => __pl('date'), 'post_title' => __pl('title'), 'menu_order' => __pl('menu_order'), 'rand' => __pl('random'), ), 'show' => array( 'sitemap_type' => 'post_type', ), ), 'order_taxonomy' => array( 'type' => 'select', 'label' => __pl('order_by'), 'default' => 'name', 'list' => array( 'ID' => __pl('id'), 'name' => __pl('name'), ), 'show' => array( 'sitemap_type' => 'taxonomy' ), ), 'order' => array( 'type' => 'select', 'label' => __pl('order'), 'default' => 'DESC', 'list' => array( 'ASC' => __pl('asc'), 'DESC' => __pl('desc'), ) ), 'hide_empty' => array( 'type' => 'checkbox', 'label' => __pl('hide_empty'), 'default' => true, 'show' => array( 'sitemap_type' => 'taxonomy' ), ), 'hierarchical' => array( 'type' => 'checkbox', 'label' => __pl('hierarchical_view'), 'default' => '', ), 'depth' => array( 'type' => 'select', 'label' => __pl('depth'), 'list' => array( '0' => __pl('all'), '1' => __pl('1'), '2' => __pl('2'), '3' => __pl('3'), '4' => __pl('4'), '5' => __pl('5'), '6' => __pl('6'), ), 'show' => array( 'hierarchical' => 'true' ), ), ), ) ); // Search Form pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_search', array( 'name' => __pl('search_form'), 'group' => 'other', 'html' => '<div class="pagelayer-search-container pagelayer-search-{{type}}"> <button class="pagelayer-search-toggle pagelayer-search-button"> <span if="{{button_text}}" class="pagelayer-search-submit-label">{{button_text}}</span> <i if="{{button_icon}}" class="pagelayer-search-submit-icon {{button_icon}}"></i> </button> <form role="search" method="get" class="pagelayer-searchform" action="'.esc_url( home_url( '/' ) ).'"> <div class="pagelayer-search-fields"> <input class="pagelayer-search-input" type="text" value="" name="s" placeholder="{{{placeholder}}}" /> <input type="hidden" if="{{post_type}}" value="{{post_type}}" name="post_type"/> <button type="submit" class="pagelayer-search-submit pagelayer-search-button"> <span if="{{button_text}}" class="pagelayer-search-submit-label">{{button_text}}</span> <i if="{{button_icon}}" class="pagelayer-search-submit-icon {{button_icon}}"></i> </button> </div> </form> </div>', 'params' => array( 'post_type' => array( 'type' => 'select', 'label' => __pl('posts_grid_post_type_label'), 'desc' => __pl('posts_grid_post_type_desc'), 'list' => array_merge(['' => __pl('All Post Types')], pagelayer_post_types(true)) ), 'type' => array( 'type' => 'select', 'label' => __pl('form_type'), 'default' => 'classic', 'list' => array( 'classic' => __pl('classic'), 'full-screen' => __pl('full_screen'), ), ), 'placeholder' => array( 'type' => 'text', 'label' => __pl('placeholder'), 'default' => __pl('search'), ), 'button_type' => array( 'type' => 'radio', 'label' => __pl('button_type'), 'default' => 'icon', 'list' => array( 'icon' => __pl('list_icon_label'), 'text' => __pl('text'), ), ), 'button_icon' => array( 'type' => 'icon', 'label' => __pl('button_icon'), 'default' => 'fas fa-search', 'req' => ['button_type' => 'icon'] ), 'button_text' => array( 'type' => 'text', 'label' => __pl('button_text'), 'default' => __pl('search'), 'req' => ['button_type' => 'text'] ), 'field-width' => array( 'type' => 'slider', 'label' => __pl('width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-fields' => 'max-width:{{val}}%;'], 'req' => ['type' => 'classic'], ), 'size' => array( 'type' => 'slider', 'label' => __pl('min_height'), 'default' => 40, 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-fields, {{element}} .pagelayer-search-full-screen input' => 'min-height:{{val}}px;', '{{element}} .pagelayer-search-fields input' => 'padding-left: calc({{val}}px / 3);padding-right: calc({{val}}px / 3);', '{{element}} .pagelayer-search-fields button' => 'padding-left: calc({{val}}px / 3)'], ), 'field_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-search-fields' => 'margin:auto;margin-{{val}}:0;'], 'req' => ['type' => 'classic'], ), 'toggle_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'left', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-search-container' => 'text-align:{{val}};'], 'req' => ['type' => 'full-screen'], ), 'holder_border_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-search-full-screen .pagelayer-search-fields' => 'background-color: {{val}};'], 'req' => ['type' => 'full-screen'], ), 'holder_border_type' => array( 'type' => 'select', 'label' => __pl('border_styles'), 'default' => 'solid', 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'css' => ['{{element}} .pagelayer-search-fields' =>'border-style: {{val}};'], ), 'holder_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-search-fields' => 'border-color: {{val}};'], 'req' => ['!holder_border_type' => ''] ), 'holder_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '1,1,1,1', 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-fields' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'], 'req' => ['!holder_border_type' => ''] ), 'holder_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-fields' => '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;'], 'req' => ['!holder_border_type' => ''] ), 'holder_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-search-fields' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}};'], ), ), 'input_style' => array( 'input_colors' => array( 'type' => 'radio', 'label' => '', 'default' => '', 'list' => array( 'normal' => __pl('normal'), 'focus' => __pl('focus'), ), ), 'input_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-search-input' => 'color:{{val}}'], 'show' => ['input_colors' => 'normal'], ), 'input_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-search-input' => 'background-color:{{val}}'], 'show' => ['input_colors' => 'normal'], ), 'input_hover_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-search-input:focus' => 'color:{{val}}'], 'show' => ['input_colors' => 'focus'], ), 'input_bg_hover_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-search-input:focus' => 'background-color:{{val}}'], 'show' => ['input_colors' => 'focus'], ), 'input_size' => array( 'type' => 'slider', 'label' => __pl('font_size'), 'css' => ['{{element}} .pagelayer-search-input' => 'font-size:{{val}}px'], ), 'input_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-search-input' => '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;'], ), 'input_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'default' => 100, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-input' => 'width:{{val}}%'], ), 'input_border_type' => array( 'type' => 'select', 'label' => __pl('border_styles'), 'css' => ['{{element}} .pagelayer-search-input' =>'border-style: {{val}};'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'input_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-search-input' => 'border-color: {{val}};'], 'req' => ['!input_border_type' => ''] ), 'input_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '0,0,0,0', 'css' => ['{{element}} .pagelayer-search-input' =>'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;'], 'req' => ['!input_border_type' => ''] ), 'input_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'css' => ['{{element}} .pagelayer-search-input' => '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;'], 'req' => ['!input_border_type' => ''] ), ), 'button_style' => array( 'button_colors' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'button_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-search-button' => 'color:{{val}}'], 'show' => ['button_colors' => 'normal'], ), 'button_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-search-button' => 'background-color:{{val}}'], 'show' => ['button_colors' => 'normal'], ), 'button_hover_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-search-button:hover' => 'color:{{val}}'], 'show' => ['button_colors' => 'hover'], ), 'button_bg_hover_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-search-button:hover' => 'background-color:{{val}}'], 'show' => ['button_colors' => 'hover'], ), 'button_position' => array( 'type' => 'radio', 'label' => __pl('position'), 'screen' => 1, 'default' => 'row', 'list' => array( 'row-reverse' => __pl('left'), 'row' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-search-fields' => 'flex-direction:{{val}}'], 'req' => ['type' => 'classic'], ), 'button_size' => array( 'type' => 'slider', 'label' => __pl('font_size'), 'units' => ['px', 'em'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-submit-label' => 'font-size:{{val}}', '{{element}} .pagelayer-search-submit-icon' => 'font-size:{{val}}'], ), 'button_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-search-button' => '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;'], 'req' => ['button_type' => 'text'] ), 'button_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'units' => ['px', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-button' => 'min-width:{{val}}'], ), 'button_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => ['px', 'em','%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-button' => 'padding:{{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}'], ), 'submit_border_type' => array( 'type' => 'select', 'label' => __pl('border_styles'), 'css' => ['{{element}} .pagelayer-search-submit' =>'border-style: {{val}};'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'submit_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-search-submit' => 'border-color: {{val}};'], 'req' => ['!submit_border_type' => ''] ), 'submit_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '0,0,0,0', 'css' => ['{{element}} .pagelayer-search-submit' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'], 'req' => ['!submit_border_type' => ''] ), 'button_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'max' => 100, 'units' => ['px', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-search-button' => 'border-radius:{{val}} !important'], ), ), 'styles' => [ 'input_style' => __pl('input_style'), 'button_style' => __pl('button_style'), ] ) ); //FACEBOOK buttons pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_fb_btn', array( 'name' => __pl('Facebook Button'), 'group' => 'other', 'html' => '<div class="pagelayer-fb-btn-container" pagelayer-facebook-load="1"> <span class="pagelayer-app-details" pagelayer-app-id="{{fb-app-id}}"></span> <div id="fb-root"></div> <div if="{{link_type}}" class="fb-like pagelayer-fb-btn-details" id="fb-like-btn" data-href="{{custom-url}}" data-layout="{{layout}}" data-action="{{btn_action}}" data-show-faces="{{peoples_faces}}" data-size="{{btn_size}}" data-share="{{share_btn}}"> </div> </div>', 'params' => array( 'fb-app-id' => array( 'type' => 'text', 'label' => __pl('app_id'), 'default' => get_option('pagelayer-fbapp-id'), ), 'link_type' => array( 'type' => 'select', 'label' => __pl('post_link_type'), 'default' => 'current', 'list' => array( 'current' => __pl('current_url'), 'custom_link' => __pl('custom_url') ), ), 'custom-url' => array( 'type' => 'text', 'label' => __pl('page_url'), 'default' => 'https://www.facebook.com/', 'req' => array( 'link_type' => 'custom_link', ) ), 'share_btn' => array( 'type' => 'checkbox', 'label' => __pl('share_btn'), ), 'peoples_faces' => array( 'type' => 'checkbox', 'label' => __pl('liked_faces'), ), 'layout' => array( 'type' => 'select', 'label' => __pl('layout_type'), 'default' => 'standard', 'list' => array( 'standard' => __pl('standard'), 'box_count' => __pl('box_count'), 'button_count' => __pl('button_count'), 'button' => __pl('button'), ), ), 'btn_action' => array( 'type' => 'select', 'label' => __pl('btn_action'), 'default' => 'Like', 'list' => array( 'like' => __pl('like'), 'recommend' => __pl('recommend'), ), ), 'btn_size' => array( 'type' => 'select', 'label' => __pl('btn_size'), 'default' => 'small', 'list' => array( 'small' => __pl('small'), 'large' => __pl('large'), ), ), ), ) ); //FACEBOOK embed pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_fb_embed', array( 'name' => __pl('Facebook Embed'), 'group' => 'other', 'html' => '<div class="pagelayer-fb-embed-container" pagelayer-facebook-load="1"> <span class="pagelayer-app-details" pagelayer-app-id={{fb-app-id}}></span> <div id="fb-root"></div> <div if={{embed_type}} class="fb-embed fb-{{embed_type}}" data-href={{post-url}} data-show-text={{post_text}} data-width=500 data-adapt-container-width="true" data-allowfullscreen={{fullscreen_video}} data-autoplay={{autoplay_video}} data-show-captions={{video_captions}} data-include-parent={{parent_comments}}> </div> </div>', 'params' => array( 'fb-app-id' => array( 'type' => 'text', 'label' => __pl('app_id'), 'default' => get_option('pagelayer-fbapp-id'), ), 'embed_type' => array( 'type' => 'select', 'label' => __pl('embed_type'), 'default' => 'post', 'list' => array( 'post' => __pl('post'), 'video' => __pl('video'), 'comment-embed' => __pl('comment'), ), ), 'post-url' => array( 'type' => 'text', 'label' => __pl('post-url'), 'addAttr' => ['{{element}} .fb-post' => 'data-href="{{post-url}}"'], 'default' => 'https://www.facebook.com/pagelayer/posts/528135551039110', 'req' => array( 'embed_type' => 'post', ), ), 'video-url' => array( 'type' => 'text', 'label' => __pl('video-url'), 'addAttr' => ['{{element}} .fb-video' => 'data-href="{{video-url}}"'], 'default' => 'https://www.facebook.com/seekahost/videos/1027688264058449/', 'req' => array( 'embed_type' => 'video', ), ), 'comment-url' => array( 'type' => 'text', 'label' => __pl('comment-url'), 'addAttr' => ['{{element}} .fb-comment' => 'data-href="{{comment-url}}"'], 'default' => 'https://www.facebook.com/sitepad/posts/751812071877561?comment_id=830006664058101&reply_comment_id=831580997234001&comment_tracking=%7B%22tn%22%3A%22R%22%7D', 'req' => array( 'embed_type' => 'comment-embed', ), ), 'post_text' => array( 'type' => 'checkbox', 'label' => __pl('full_post'), 'req' => array( '!embed_type' => 'comment-embed', ), ), 'autoplay_video' => array( 'type' => 'checkbox', 'label' => __pl('autoplay'), 'req' => array( 'embed_type' => 'video', ), ), 'fullscreen_video' => array( 'type' => 'checkbox', 'label' => __pl('full_screen'), 'req' => array( 'embed_type' => 'video', ), ), 'video_captions' => array( 'type' => 'checkbox', 'label' => __pl('captions'), 'req' => array( 'embed_type' => 'video', ), ), 'parent_comments' => array( 'type' => 'checkbox', 'label' => __pl('parent_comments'), 'default' => 'true', 'req' => array( 'embed_type' => 'comment-embed', ), ), ), ) ); //FACEBOOK comments pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_fb_comments', array( 'name' => __pl('Facebook Comments'), 'group' => 'other', 'html' => '<div class="pagelayer-fb-comments-container" pagelayer-facebook-load="1"> <span class="pagelayer-app-details" pagelayer-app-id={{fb-app-id}}></span> <div id="fb-root"></div> <div class="fb-comments" data-href="{{custom-url}}" data-colorscheme="{{color_scheme}}" data-numposts="{{number-of-comments}}" data-order-by="{{comments_order}}"> </div> </div>', 'params' => array( 'fb-app-id' => array( 'type' => 'text', 'label' => __pl('app_id'), 'default' => get_option('pagelayer-fbapp-id'), ), 'link_type' => array( 'type' => 'select', 'label' => __pl('post_link_type'), 'default' => 'current', 'list' => array( 'current' => __pl('current_url'), 'custom_link' => __pl('custom_url') ), ), 'custom-url' => array( 'type' => 'text', 'label' => __pl('page_url'), 'default' => 'https://www.facebook.com/pagelayer', 'req' => array( 'link_type' => 'custom_link', ) ), 'color_scheme' => array( 'type' => 'select', 'label' => __pl('color_scheme'), 'default' => 'light', 'list' => array( 'light' => __pl('Light'), 'dark' => __pl('Dark'), ), ), 'number-of-comments' => array( 'type' => 'slider', 'label' => __pl('comments_count'), 'min' => '1', 'max' => '100', 'default' => '10', ), 'comments_order' => array( 'type' => 'select', 'label' => __pl('comments_order'), 'default' => '', 'list' => array( 'social' => __pl('social'), 'reverse_time' => __pl('reverse_time'), 'time' => __pl('time'), ), ), ), ) ); //FACEBOOK page pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_fb_page', array( 'name' => __pl('Facebook Page'), 'group' => 'other', 'html' => '<div class="pagelayer-fb-page-container" pagelayer-facebook-load="1"> <span class="pagelayer-app-details" pagelayer-app-id={{fb-app-id}}></span> <div id="fb-root"></div> <div if={{page_url}} class="fb-page" data-href={{page_url}} data-width="500" data-hide-cta={{cta-button}} data-tabs={{tabs_types}} data-small-header={{small_header}} data-adapt-container-width="true" data-hide-cover={{hide_cover}} data-show-facepile={{show_friends_faces}}> </div> </div>', 'params' => array( 'fb-app-id' => array( 'type' => 'text', 'label' => __pl('app_id'), 'default' => get_option('pagelayer-fbapp-id'), ), 'page_url' => array( 'type' => 'text', 'label' => __pl('page_link'), 'default' => 'https://www.facebook.com/pagelayer', ), 'tabs_types' => array( 'type' => 'multiselect', 'label' => __pl('tabs'), 'default' => 'timeline', 'list' => array( 'timeline' => __pl('timeline'), 'events' => __pl('events'), 'messages' => __pl('messages') ), ), 'height' => array( 'type' => 'spinner', 'label' => __pl('page_height'), 'default' => 500, 'min' => 70, 'max' => 1000, 'step' => 10, 'addAttr' => ['{{element}} .pagelayer-fb-page-container .fb-page' => 'data-height="{{height}}"'], ), 'small_header' => array( 'type' => 'checkbox', 'label' => __pl('small_header'), ), 'hide_cover' => array( 'type' => 'checkbox', 'label' => __pl('hide_cover'), ), 'show_friends_faces' => array( 'type' => 'checkbox', 'label' => __pl('liked_faces'), 'default' => "true", ), 'cta-button' => array( 'type' => 'checkbox', 'label' => __pl('cta_button'), 'default' => "true", ), ), ) ); // Review Item pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_review', array( 'name' => __pl('review'), 'group' => 'button', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_review_slider'], 'html' => '<div class="pagelayer-review-slide"> <div class="pagelayer-review-author"> <div if={{author_image}} class="pagelayer-review-author-img"> <img class="pagelayer-img" title="{{{author_image-title}}}" alt="{{{author_image-alt}}}"/> </div> <div class="pagelayer-review-author-details"> <div if={{author_name}} class="pagelayer-review-author-name">{{author_name}}</div> <div if={{author_title}} class="pagelayer-review-author-title">{{author_title}}</div> <div if={{number_of_ratings}} class="pagelayer-stars-container" title="{{number_of_ratings}}/5" pagelayer-stars-value="{{number_of_ratings}}" pagelayer-stars-count="5"> </div> </div> <div class="pagelayer-icon-holder pagelayer-{{icon}}-icon"> <a if-ext="{{icon_url}}" class="pagelayer-ele-link pagelayer-review-icon-link" href="{{{icon_url}}}"> <i class="pagelayer-social-fa {{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i> </a> </div> </div> <hr> <div class="pagelayer-review-text"> <p if={{review_text}} class="pagelayer-review-p">{{review_text}}</p> </div> </div>', 'params' => array( 'author_name' => array( 'type' => 'text', 'label' => __pl('author_Name'), 'default' => 'Jane Doe', 'edit' => '.pagelayer-review-author-name', ), 'author_title' => array( 'type' => 'text', 'label' => __pl('author_title'), 'default' => '@janedoe', 'edit' => '.pagelayer-review-author-title', ), 'show_avatar' => array( 'type' => 'checkbox', 'label' => __pl('show_avatar'), ), 'author_image' => array( 'type' => 'image', 'label' => __pl('avatar_style'), 'addAttr' => ['{{element}} .pagelayer-review-author-img img' => 'src="{{{author_image-url}}}"'], 'req' => ['show_avatar' => 'true'], 'ai' => false, ), 'number_of_ratings' => array( 'type' => 'spinner', 'label' => __pl('author_rating'), 'min' => '0', 'max' => '5', 'step' => '.1', ), 'icon_url' => array( 'type' => 'link', 'label' => __pl('author_url'), 'selector' => '.pagelayer-review-icon-link', ), 'icon' => array( 'type' => 'icon', 'label' => __pl('author_Icon'), 'default' => 'fab fa-facebook', 'list' => ['facebook', 'facebook-official', 'facebook-square', 'twitter', 'twitter-square', 'x-twitter', 'x-twitter-square', 'google-plus', 'google-plus-square', 'instagram', 'linkedin', 'linkedin-square', 'behance', 'behance-square', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'rss', 'rss-square', 'skype', 'slideshare', 'snapchat', 'snapchat-ghost', 'snapchat-square', 'soundcloud', 'spotify', 'stack-overflow', 'steam', 'steam-square', 'stumbleupon', 'telegram', 'thumb-tack', 'tripadvisor', 'tumblr', 'tumblr-square', 'twitch', 'vimeo', 'vimeo-square', 'vk', 'weibo', 'weixin', 'whatsapp', 'wordpress', 'xing', 'xing-square', 'yelp', 'youtube', 'youtube-square', 'youtube-play', '500px', 'flickr', 'android', 'github', 'github-square', 'gitlab', 'apple', 'jsfiddle', 'houzz', 'bitbucket', 'bitbucket-square', 'codepen', 'delicious', 'medium', 'meetup', 'mixcloud', 'dribbble', 'foursquare'], ), 'review_text' => array( 'type' => 'textarea', 'label' => __pl('review'), 'default' => '"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which look even slightly believable."', 'edit' => '.pagelayer-review-p', 'e' => [ 'v', 'f', 'c', 'r'], ), ) ) ); // Reviews Slider pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_review_slider', array( 'name' => __pl('reviews'), 'group' => 'other', 'prevent_inside' => ['pl_slides'], 'holder' => '.pagelayer-reviews-holder', 'child_selector' => '>.pagelayer-owl-stage-outer>.pagelayer-owl-stage>.pagelayer-owl-item', // Make it very specifc 'html' => '<div class="pagelayer-review-slides-container"> <div class="pagelayer-reviews-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme"></div> </div>', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('review'), 'sc' => PAGELAYER_SC_PREFIX.'_review', 'item_label' => array( 'default' => __pl('review'), 'param' => 'author_name', ), 'count' => 3, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('review'))), ), 'width' => array( 'type' => 'slider', 'label' => __pl('width'), 'default' => 100, 'min' => 30, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} .pagelayer-reviews-holder' => 'width:{{val}}%;'] ), ), 'author_style' => array( 'author_name_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-review-author-name' => 'color:{{val}} !important;'], ), 'author_name' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',16,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-review-author-name' => '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;'], ), ), 'title_style' => array( 'author_title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-review-author-title' => 'color:{{val}} !important;'], ), 'author_title' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',14,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-review-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;'], ), ), 'review_style' => array( 'review_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-review-text p' => 'color: {{val}} !important;'], ), 'review_typography' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',18,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-review-text p' => '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;'], ), ), 'icon_style' => array( 'icon_color' => array( 'type' => 'color', 'label' => __pl('icon_color'), 'css' => ['{{element}} .pagelayer-social-fa' => 'color: {{val}};'] ), 'icon_size_custom' => array( 'type' => 'spinner', 'label' => __pl('service_box_icon_custom_size_label'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 20, 'screen' => 1, 'css' => ['{{element}} .pagelayer-social-fa' => 'font-size: {{val}}px'] ) ), 'seperator_style' => array( 'seperator_width' => array( 'type' => 'slider', 'label' => __pl('seperator_width'), 'default' => 1, 'min' => 0, 'max' => 20, 'screen' => 1, 'css' => ['{{element}} .pagelayer-review-slide hr' => 'border-top:{{val}}px solid;'], ), 'seperator_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#c5c5c5', 'css' => ['{{element}} .pagelayer-review-slide hr' => 'border-top-color:{{val}};'], ), ), 'stars_style' => array( 'stars_color' => array( 'type' => 'color', 'label' => __pl('stars_color'), 'default' => '#FFEB3B', 'css' => ['{{element}} .pagelayer-stars-icon:before' => 'color: {{val}}'], ), 'unmarked_stars_color' => array( 'type' => 'color', 'label' => __pl('unmarked_star_color'), 'default' => '#ccd6df', 'css' => ['{{element}} .pagelayer-stars-container' => 'color: {{val}}'], ), 'stars_font_size' => array( 'label' => __pl('stars_font_size'), 'type' => 'slider', 'min' => 5, 'max' => 100, 'default' => 20, 'screen' => 1, 'css' => ['{{element}} .pagelayer-stars-container' => 'font-size:{{val}}px;'], ), 'stars_spacing' => array( 'label' => __pl('stars_spacing'), 'type' => 'slider', 'min' => 0, 'max' => 20, 'default' => 2, 'screen' => 1, 'css' => ['{{element}} .pagelayer-stars-icon:not(:first-child)' => 'margin-left:{{val}}px;'], ), ), 'avatar_style' => array( 'author_image_width' => array( 'type' => 'slider', 'label' => __pl('rw_image_width'), 'min' => 50, 'max' => 120, 'default' => 70, 'screen' => 1, 'css' => ['{{element}} .pagelayer-review-author-img img' => 'width:{{val}}px !important; height: {{val}}px !important;'], ), 'author_image_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'max' => 100, 'default' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-review-author-img img' => 'border-radius:{{val}}px !important;'], ), ), 'slide_style' => array( 'background-color' => array( 'type' => 'color', 'label' => __pl('background_color'), 'css' => ['{{element}} .pagelayer-review-slide' =>'background-color: {{val}};'] ), 'slide_border_hover' => array( 'type' => 'radio', 'label' => __pl('border_state'), 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'slide_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-review-slide' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'slide_border_hover' => '' ), ), 'slide_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-review-slide' => 'border-color: {{val}}!important;'], 'req' => array( '!slide_border_type' => '' ), 'show' => array( 'slide_border_hover' => '' ), ), 'slide_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-review-slide' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!slide_border_type' => '' ], 'show' => array( 'slide_border_hover' => '' ), ), 'slide_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-review-slide' => '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;'], 'req' => array( '!slide_border_type' => '' ), 'show' => array( 'slide_border_hover' => '' ), ), 'slide_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-review-slide:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'slide_border_hover' => 'hover' ), ), 'slide_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-review-slide:hover' => 'border-color: {{val}} !important;'], 'default' => '#0986c0', 'req' => array( '!slide_border_type_hover' => '' ), 'show' => array( 'slide_border_hover' => 'hover' ), ), 'slide_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-review-slide: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'], 'req' => [ '!slide_border_type_hover' => '' ], 'show' => array( 'slide_border_hover' => 'hover' ), ), 'slide_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-review-slide: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;'], 'req' => array( '!slide_border_type_hover' => '' ), 'show' => array( 'slide_border_hover' => 'hover' ), ), 'slide_box_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-review-slide' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], ), ), 'slider_options' => $pagelayer->slider_options, 'arrow_styles' => $pagelayer->slider_arrow_styles, 'pager_styles' => $pagelayer->slider_pager_styles, 'styles' => array( 'author_style' => __pl('author_style'), 'title_style' => __pl('title_style'), 'review_style' => __pl('review_style'), 'icon_style' => __pl('icon_style'), 'seperator_style' => __pl('seperator_style'), 'stars_style' => __pl('stars_style'), 'avatar_style' => __pl('avatar_style'), 'slide_style' => __pl('slide_style'), 'slider_options' => __pl('slider_options'), 'arrow_styles' => __pl('arrow_styles'), 'pager_styles' => __pl('pager_styles'), ) ) ); // Template list pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_templates', array( 'name' => __pl('templates'), 'group' => 'other', 'no_gt' => 1, 'html' => '<div class="pagelayer-template-content">{{template_content}}</div>', 'params' => array( 'templates' => array( 'type' => 'select', 'label' => __pl('select_templates'), 'default' => '0', 'list' => ['0' => __pl('none')] + pagelayer_post_list_by_type('pagelayer-template'), ), ) ) ); // Posts Grid /* pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_posts_grid', array( 'name' => __pl('Posts Grid'), 'group' => 'wordpress', 'html' => '<div class="pagelayer-wp-posts-grid-container"></div>', 'params' => array( 'query_type' => array( 'type' => 'radio', 'label' => __pl('posts_grid_query_type_label'), 'desc' => __pl('posts_grid_query_type_desc'), 'default' => 'simple', 'list' => array( 'simple' => __pl('simple'), 'custom' => __pl('posts_grid_custom_query_label'), 'ids' => __pl('ids'), ) ), 'post_type' => array( 'type' => 'select', 'label' => __pl('posts_grid_post_type_label'), 'desc' => __pl('posts_grid_post_type_desc'), 'list' => pagelayer_post_types(), 'req' => array( 'query_type' => 'simple' ) ), 'category' => array( 'type' => 'text', 'label' => __pl('posts_grid_category_label'), 'desc' => __pl('posts_grid_category_desc'), 'req' => array( 'post_type' => 'post' ) ), 'tag' => array( 'type' => 'text', 'label' => __pl('posts_grid_tag_label'), 'desc' => __pl('posts_grid_tag_desc'), 'req' => array( 'post_type' => 'post' ) ), 'custom_tax' => array( 'type' => 'text', 'label' => __pl('posts_grid_custom_tax_label'), 'req' => array( 'query_type' => 'simple' ) ), 'custom_tax_field' => array( 'type' => 'select', 'label' => __pl('posts_grid_custom_tax_field_label'), 'default' => 'slug', 'list' => array( 'term_id' => __pl('term_id'), 'slug' => __pl('slug'), 'name' => __pl('name') ), 'req' => array( 'query_type' => 'simple' ) ), 'custom_tax_terms' => array( 'type' => 'text', 'label' => __pl('posts_grid_custom_tax_term_label'), 'desc' => __pl('posts_grid_custom_tax_term_desc'), 'req' => array( 'query_type' => 'simple' ) ), 'posts_per_page' => array( 'type' => 'spinner', 'label' => __pl('posts_grid_posts_per_page_label'), 'default' => 4, // For backward compatibility in lite version must be 3 posts per page 'min' => 1, 'max' => 40, 'step' => 1, 'req' => array( 'query_type' => 'simple' ) ), 'posts_order' => array( 'type' => 'radio', 'label' => __pl('posts_grid_sort_order'), 'default' => 'DESC', 'list' => array( 'ASC' => __pl('posts_grid_sort_order_ascending'), 'DESC' => __pl('posts_grid_sort_order_descending') ), 'req' => array( 'query_type' => 'simple' ) ), 'custom_query' => array( 'type' => 'textarea', 'label' => __pl('posts_grid_custom_query_label'), 'desc' => __pl('posts_grid_custom_query_desc'), 'req' => array( 'query_type' => 'custom' ) ), 'ids' => array( 'type' => 'text', 'label' => __pl('posts_grid_ids_label'), 'desc' => __pl('posts_grid_ids_desc'), 'req' => array( 'query_type' => 'ids' ) ), 'columns' => array( 'type' => 'radio', 'label' => __pl('columns_count'), 'default' => 2, 'list' => array( 1 => 1, 2 => 2, 3 => 3, 4 => 4, 6 => 6 ) ), 'template' => array( 'type' => 'select', 'label' => __pl('posts_grid_template_label'), 'list' => array(), ), 'posts_gap' => array( 'type' => 'slider', 'label' => __pl('posts_grid_posts_gap_label'), 'default' => 30, 'min' => 0, 'max' => 100, 'step' => 10, ), 'show_featured_image' => array( 'type' => 'checkbox', 'label' => __pl('posts_grid_show_featured_image'), 'default' => 'true', ), 'image_size' => array( 'type' => 'radio', 'label' => __pl('obj_image_size_label'), 'default' => 'large', 'list' => array( 'full' => __pl('full'), 'large' => __pl('large'), 'medium' => __pl('medium'), 'thumbnail' => __pl('thumbnail'), 'custom' => __pl('custom') ), 'req' => array( 'show_featured_image' => 'true' ), ), 'image_custom_size' => array( 'type' => 'text', 'desc' => __pl('image_custom_size_label'), 'req' => array( 'image_size' => 'custom' ), ), 'title_tag' => array( 'type' => 'radio', 'label' => __pl('posts_grid_title_tag'), 'default' => 'h2', 'list' => array( 'h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'hide' => __pl('posts_grid_title_tag_none'), ) ), 'show_date_comments' => array( 'type' => 'checkbox', 'label' => __pl('posts_grid_show_date_comments'), 'default' => 'true', ), 'show_content' => array( 'type' => 'radio', 'label' => __pl('posts_grid_show_content'), 'default' => 'short', 'list' => array( 'short' => __pl('posts_grid_show_content_short'), 'full' => __pl('posts_grid_show_content_full'), 'excerpt' => __pl('posts_grid_show_content_excerpt'), 'hide' => __pl('posts_grid_show_content_none'), ) ), 'short_content_length' => array( 'type' => 'slider', 'label' => __pl('posts_grid_short_content_length'), 'default' => 200, 'min' => 0, 'max' => 1000, 'step' => 20, 'req' => array( 'show_content' => 'short' ), ), 'read_more_text' => array( 'type' => 'text', 'label' => __pl('posts_grid_read_more_text_label'), 'default' => __pl('posts_grid_read_more_text') ), 'display_style' => array( 'type' => 'radio', 'label' => __pl('posts_grid_display_style'), 'default' => 'show_all', 'list' => array( 'show_all' => __pl('show_all'), 'load_more' => __pl('posts_grid_display_style_load_more'), 'pagination' => __pl('posts_grid_display_style_pagination') ) ), 'load_more_text' => array( 'type' => 'text', 'label' => __pl('posts_grid_load_more_text_label'), 'default' => __pl('posts_grid_load_more_text_default'), // "Load More" 'req' => array( 'display_style' => 'load_more' ) ), 'filter' => array( 'type' => 'radio', 'label' => __pl('posts_grid_filter_label'), 'desc' => __pl('posts_grid_filter_desc'), 'default' => 'none', 'list' => array( 'none' => __pl('none'), 'cats' => __pl('posts_grid_filter_by_first_tax'), 'tags' => __pl('posts_grid_filter_by_second_tax'), 'both' => __pl('posts_grid_filter_by_both') ), 'req' => array( 'query_type' => 'simple' ) ), 'filter_tax_1' => array( 'type' => 'select', 'label' => __pl('posts_grid_filter_first_tax_name'), 'default' => 'category', 'list' => pagelayer_tax_list('category'), 'req' => array( 'filter' => array( 'cats', 'both' ) ) ), 'filter_tax_2' => array( 'type' => 'select', 'label' => __pl('posts_grid_filter_second_tax_name'), 'default' => 'post_tag', 'list' => pagelayer_tax_list('post_tag'), 'req' => array( 'filter' => array( 'tags', 'both' ) ) ), 'filter_btn_color' => array( 'type' => 'color', 'label' => __pl('button_color_label'), 'default' => '#333333', 'req' => array( '!filter' => 'none' ) ), 'filter_btn_divider' => array( 'type' => 'text', 'label' => __pl('filter_links_divider'), 'default' => '/', 'req' => array( 'filter_btn_color' => 'none' ) ), 'filter_cats_text' => array( 'type' => 'text', 'label' => __pl('posts_grid_filter_first_tax_text_label'), 'default' => __pl('categories') . ':', 'req' => array( 'filter' => array('cats', 'both') ) ), 'filter_tags_text' => array( 'type' => 'text', 'label' => __pl('posts_grid_filter_second_tax_text_label'), 'default' => __pl('tags') . ':', 'req' => array( 'filter' => array('tags', 'both') ) ), 'filter_all_text' => array( 'type' => 'text', 'label' => __pl('posts_grid_filter_view_all_text_label'), 'default' => __pl('all'), 'req' => array( '!filter' => 'none' ) ) ) ) ); */ // Posts Slider /* pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_posts_slider', array( 'name' => __pl('Posts Slider'), 'group' => 'wordpress', 'html' => '<div class="pagelayer-posts-slider-container" slider-autoplay="{{slider_autoplay}}" count="{{items_to_display}}" post-slider-pause="{{pause_on_hover}}" bullets="{{show_bullets}}" controlbtn ="{{show_nav}}" hide-posts-title="{{post_title}}" hide-posts-image="{{posts_image}}" hide-posts-date="{{post_date}}" post-content="{{show_content}}" hide-post-link ="{{read_more}}"> <ul class="pagelayer-posts-slider-main"> {{posts_slides}} </ul> </div>', 'params' => array( 'post_count' => array( 'type' => 'spinner', 'label' => __pl('posts_count'), 'default' => 1, 'min' => 1, 'max' => 10, 'step' => 1 ), 'post_type' => array( 'type' => 'select', 'label' => __pl('post_types'), 'default' => 'post', 'list' => pagelayer_post_types(true), ), 'category' => array( 'type' => 'select', 'label' => __pl('categories'), 'list' => pagelayer_get_categories(), 'req' => array( 'post_type' => 'post' ), ), 'tags' => array( 'type' => 'select', 'label' => __pl('tags'), 'list' => pagelayer_get_tags(), 'req' => array( 'post_type' => 'post' ), ), 'order_by' => array( 'type' => 'select', 'label' => __pl('posts_order_by'), 'default' => 'date', 'list' => array( 'ID' => __pl('posts_order_by_id'), 'date' => __pl('posts_order_by_date'), 'author' => __pl('posts_order_by_author'), 'modified' => __pl('posts_order_by_modified'), 'rand' => __pl('posts_order_by_random'), 'comment_count' => __pl('posts_order_by_comment_count'), 'menu_order' => __pl('posts_order_by_menu_order'), ), ), 'sort_order' => array( 'type' => 'radio', 'label' => __pl('post_sort_order'), 'default' => 'DESC', 'list' => array( 'ASC' => __pl('sort_order_ascending'), 'DESC' => __pl('sort_order_descending'), ), ), 'show_excerpt' => array( 'type' => 'checkbox', 'label' => __pl('show_excerpt'), ), ), 'title_style' => [ 'post_title' => array( 'type' => 'checkbox', 'label' => __pl('hide_title'), ), 'title_color' => array( 'type' => 'color', 'label' => __pl('title_color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-posts-slider-title' => 'color:{{val}}'], 'req' => array( 'post_title' => '', ), ), 'title_spacing' => array( 'type' => 'padding', 'label' => __pl('spacing'), 'css' => ['{{element}} .pagelayer-posts-slider-title' => 'margin:{{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], 'req' => array( 'post_title' => '', ), ), 'post_title_style' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',20,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-posts-slider-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;'], 'req' => array( 'post_title' => '', ), ), ], 'image_style' => [ 'posts_image' => array( 'type' => 'checkbox', 'label' => __pl('hide_image'), ), 'image_size' => array( 'type' => 'radio', 'label' => __pl('image_size'), 'default' => 'full', 'list' => array( 'full' => __pl('full'), 'thumbnail' => __pl('thumbnail'), 'custom' => __pl('custom') ), 'req' => array( 'posts_image' => '', ), ), 'img_height' => array( 'type' => 'slider', 'label' => __pl('img_height'), 'css' => ['{{element}} .pagelayer-posts-slider-img' => 'height: {{val}}em;'], 'default' => 10, 'min' => 10, 'max' => 20, 'step' => 0.2, 'req' => array( 'image_size' => 'custom', ), ), 'image_spacing' => array( 'type' => 'padding', 'label' => __pl('spacing'), 'css' => ['{{element}} .pagelayer-posts-slider-featured-img' => 'margin: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], 'req' => array( 'posts_image' => '', ), ), ], 'content_style' => [ 'content_color' => array( 'type' => 'color', 'label' => __pl('content_color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-posts-slider-excerpt' => 'color:{{val}}'], ), 'post_content_style' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',16,,300,,,solid,,,,', 'css' => ['{{element}} .pagelayer-posts-slider-excerpt ' => '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;'], ), ], 'date_style' => [ 'post_date' => array( 'type' => 'checkbox', 'label' => __pl('hide_date'), ), 'date_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-post-slider-date p' => 'color:{{val}}'], 'req' => array( 'post_date' => '', ), ), 'post_date_style' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',14,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-post-slider-date p' => '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;'], 'req' => array( 'post_date' => '', ), ), ], 'post_style' => [ 'read_more' => array( 'type' => 'checkbox', 'label' => __pl('hide_link'), ), 'link_color' => array( 'type' => 'color', 'label' => __pl('link_color'), 'default' => '#e82121', 'css' => ['{{element}} .pagelayer-posts-slider-link' => 'color:{{val}}'], ), 'background_color' => array( 'type' => 'color', 'label' => __pl('background_color'), 'css' => ['{{element}} .pagelayer-posts-slider-post' => 'background-color:{{val}}'], ), 'link_style' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',16,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-posts-slider-link' => '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;'], ), 'post_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('post_shadow'), 'css' => ['{{element}} .pagelayer-posts-slider-post' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], ), 'post_border_hover' => array( 'type' => 'radio', 'label' => __pl('border_state'), 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'post_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-posts-slider-post' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'post_border_hover' => '' ), ), 'post_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-posts-slider-post' => 'border-color: {{val}}!important;'], 'req' => array( '!post_border_type' => '' ), 'show' => array( 'post_border_hover' => '' ), ), 'post_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['{{element}} .pagelayer-posts-slider-post' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!post_border_type' => '' ], 'show' => array( 'post_border_hover' => '' ), ), 'post_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'css' => ['{{element}} .pagelayer-posts-slider-post' => '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;'], 'req' => array( '!post_border_type' => '' ), 'show' => array( 'post_border_hover' => '' ), ), 'post_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-posts-slider-post:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'post_border_hover' => 'hover' ), ), 'post_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-posts-slider-post:hover' => 'border-color: {{val}} !important;'], 'default' => '#0986c0', 'req' => array( '!post_border_type_hover' => '' ), 'show' => array( 'post_border_hover' => 'hover' ), ), 'post_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['{{element}} .pagelayer-posts-slider-post: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'], 'req' => [ '!post_border_type_hover' => '' ], 'show' => array( 'post_border_hover' => 'hover' ), ), 'post_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'css' => ['{{element}} .pagelayer-posts-slider-post: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;'], 'req' => array( '!post_border_type_hover' => '' ), 'show' => array( 'post_border_hover' => 'hover' ), ), ], 'slider_options' => [ 'items_to_display' => array( 'type' => 'spinner', 'label' => __pl('slider_items_display'), 'default' => 1, 'min' => 1, 'max' => 10, 'step' => 1 ), 'slider_autoplay' => array( 'type' => 'checkbox', 'label' => __pl('autoplay'), 'default' => 'true', ), 'show_nav' => array( 'type' => 'checkbox', 'label' => __pl('slider_navigations'), 'default' => 'true', ), 'nav_arrow_color' => array( 'type' => 'color', 'label' => __pl('slider_arrows_color'), 'css' => ['{{element}} .pagelayer-prev-arrow:before' => 'color:{{val}} !important;', '{{element}} .pagelayer-next-arrow:before' => 'color:{{val}} !important;'], 'req' => array( 'show_nav' => 'true', ) ), 'show_bullets' => array( 'type' => 'checkbox', 'label' => __pl('bullets'), 'default' => 'true', ), 'pause_on_hover' => array( 'type' => 'checkbox', 'label' => __pl('slider_pause_on_hover'), ), ], 'styles' => [ 'title_style' => __pl('title_style'), 'image_style' => __pl('image_style'), 'content_style' => __pl('content_style'), 'date_style' => __pl('date_style'), 'post_style' => __pl('posts_style'), 'slider_options' => __pl('slider_options'), ], ) ); */ // Image Portfolio pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_img_portfolio', array( 'name' => __pl('img_portfolio'), 'group' => 'image', 'icon' => 'fas fa-briefcase', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], //'child_selector' => '>.pagelayer-owl-stage-outer>.pagelayer-owl-stage>.pagelayer-owl-item', // Make it very specifc 'holder' => '.pagelayer-img_portfolio-holder', 'html' => '<div class="pagelayer-category-holder"></div> <div class="pagelayer-img_portfolio-holder"></div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('image'), 'sc' => PAGELAYER_SC_PREFIX.'_single_img', 'item_label' => array( 'default' => __pl('image'), 'param' => 'title' ), 'count' => 1, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('image'))) ) ), 'img_style' =>[ 'img_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'screen' => 1, 'min' => 0, 'step' => 1, 'max' => 100, 'css' => ['{{element}} .pagelayer-img_portfolio-holder>div' => 'width: {{val}}%;'], ), 'img_spacing' => array( 'type' => 'padding', 'label' => __pl('space_around'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-single_img' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px'], ), 'img_height' => array( 'type' => 'spinner', 'label' => __pl('height'), 'screen' => 1, 'min' => 0, 'step' => 1, 'css' => ['{{element}} .pagelayer-img_portfolio-holder>div' => 'height: {{val}}px; overflow:hidden;'], ), 'img_stretch' => array( 'type' => 'checkbox', 'label' => __pl('stretch'), 'css' => [ '{{element}}, {{element}} .pagelayer-pf-img, {{element}} .pagelayer-pf-img img'=> 'height:100%; width:100%;' ], 'req' => ['!img_height' => ''] ), 'img_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'img_filter' => array( 'type' => 'filter', 'label' => __pl('filter'), 'css' => ['{{element}} .pagelayer-pf-img img' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'], 'show' => ['img_hover' => ''] ), 'img_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-pf-img img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], 'show' => ['img_hover' => ''] ), 'img_rotate' => array( 'type' => 'spinner', 'label' => __pl('Rotate'), 'min' => 0, 'max' => 360, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-pf-img img' => 'transform: rotate({{val}}deg)'], 'show' => ['img_hover' => ''] ), 'img_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'css' => ['{{element}} .pagelayer-pf-img img' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',], 'show' => ['img_hover' => 'hover'] ), 'img_filter_hover' => array( 'type' => 'filter', 'label' => __pl('filter'), 'css' => ['{{element}} .pagelayer-pf-img img:hover' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'], 'show' => ['img_hover' => 'hover'] ), 'img_shadow_hover' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-pf-img img:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], 'show' => ['img_hover' => 'hover'] ), 'img_rotate_hover' => array( 'type' => 'spinner', 'label' => __pl('Rotate'), 'min' => 0, 'max' => 360, 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-pf-img img:hover' => 'transform: rotate({{val}}deg)'], 'show' => ['img_hover' => 'hover'] ) ], 'btns_style' => [ 'disable_category' => array( 'type' => 'checkbox', 'label' => __pl('disable_category'), 'css' => ['{{element}} .pagelayer-category-holder' => 'display:none'] ), 'btn_align' => array( 'label' => __pl('alignment'), 'type' => 'select', 'screen' => 1, 'css' => ['{{element}} .pagelayer-category-holder' => 'text-align:{{val}};'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), 'justify' => __pl('justify'), ) ), 'btn_size' => array( 'type' => 'dimension', 'label' => __pl('size'), 'screen' => 1, 'css' => ['{{element}} button' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[0]}}px; padding-left: {{val[1]}}px;'], ), 'btn_spacing' => array( 'type' => 'dimension', 'label' => __pl('space_around'), 'screen' => 1, 'css' => ['{{element}} button' => 'margin-top: {{val[0]}}px; margin-right: {{val[1]}}px; margin-bottom: {{val[0]}}px; margin-left: {{val[1]}}px;'], ), 'btn_space_bottom' => array( 'type' => 'slider', 'label' => __pl('space_bottom'), 'screen' => 1, 'min' => 0, 'step' => 1, 'max' => 1000, 'css' => ['{{element}} .pagelayer-category-holder' => 'padding-bottom: {{val}}px;'], ), 'btn_hover' => [ 'type' => 'radio', 'label' => '', 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), ], ], 'btn_color' => array( 'label' => __pl('color'), 'type' => 'color', 'css' => ['{{element}} button' => 'color: {{val}};'], 'show' => ['btn_hover' => ''], ), 'btn_bg' => array( 'label' => __pl('bg_color'), 'type' => 'color', 'css' => ['{{element}} button' => 'background-color: {{val}};'], 'show' => ['btn_hover' => ''], ), 'btn_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} button' => '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;'], 'show' => ['btn_hover' => ''], ), 'btn_border_type' => [ 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['btn_hover' => ''], 'css' => ['{{element}} button' => 'border-style: {{val}}'], ], 'btn_border_width' => [ 'type' => 'padding', 'label' => __pl('border_width'), 'units' => ['px', 'em'], 'screen' => 1, 'show' => [ 'btn_hover' => '' ], 'req' => [ '!btn_border_type' => '' ], 'css' => ['{{element}} button' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ], 'btn_border_color' => [ 'type' => 'color', 'label' => __pl('border_color'), 'screen' => 1, 'show' => [ 'btn_hover' => '' ], 'req' => [ '!btn_border_type' => '' ], 'css' => ['{{element}} button' => 'border-color: {{val}}'], ], 'btn_border_radius' => [ 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', 'em'], 'screen' => 1, 'show' => ['btn_hover' => ''], 'css' => ['{{element}} button' => '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]}};'], ], 'btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'css' => ['{{element}} button' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'btn_hover' => 'hover' ), ), 'btn_color_hover' => array( 'label' => __pl('color'), 'type' => 'color', 'css' => ['{{element}} button:hover' => 'color: {{val}};'], 'show' => ['btn_hover' => 'hover'], ), 'btn_bg_hover' => array( 'label' => __pl('bg_color'), 'type' => 'color', 'css' => ['{{element}} button:hover' => 'background-color: {{val}};'], 'show' => ['btn_hover' => 'hover'], ), 'btn_typo_hover' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} button:hover' => '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;'], 'show' => ['btn_hover' => 'hover'], ), 'btn_btype_hover' => [ 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['btn_hover' => 'hover'], 'css' => ['{{element}} button:hover' => 'border-style: {{val}}'], ], 'btn_bwidth_hover' => [ 'type' => 'padding', 'label' => __pl('border_width'), 'units' => ['px', 'em'], 'screen' => 1, 'show' => [ 'btn_hover' => 'hover' ], 'req' => [ '!btn_btype_hover' => '' ], 'css' => ['{{element}} button:hover' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ], 'btn_bcolor_hover' => [ 'type' => 'color', 'label' => __pl('border_color'), 'screen' => 1, 'show' => [ 'btn_hover' => 'hover' ], 'req' => [ '!btn_btype_hover' => '' ], 'css' => ['{{element}} button:hover' => 'border-color: {{val}}'], ], 'btn_bradius_hover' => [ 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'units' => ['px', 'em'], 'show' => ['btn_hover' => 'hover'], 'css' => ['{{element}} button:hover' => '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]}};'], ], ], 'styles' => [ 'img_style' => __pl('service_img_style'), 'btns_style' => __pl('button_style'), ] )); // Image Portfolio pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_single_img', array( 'name' => __pl('image'), 'group' => 'other', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_img_portfolio'], 'html' => '<div class="pagelayer-pf-img"> <a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}"> <img class="pagelayer-img" src="{{func_img}}" title="{{{img-title}}}" alt="{{{img-alt}}}" /> <div if="{{overlay}}" class="pagelayer-image-overlay"> <div class="pagelayer-image-overlay-content"> <i if="{{icon}}" class="pagelayer-image-overlay-icon {{icon}}"></i> <h3 if="{{heading}}" class="pagelayer-overlay-heading">{{heading}}</h3> <div if="{{text}}" class="pagelayer-image-overlay-text">{{text}}</div> </div> </div> </a> </div>', 'params' => array( 'title' => array( 'type' => 'text', 'label' => __pl('title'), 'default' => 'Lorem', ), 'img' => array( 'label' => __pl('image_src_label'), 'type' => 'image', 'default' => PAGELAYER_URL.'/images/default-image.png', 'addAttr' => 'port-cat="all"', ), 'img-size' => array( 'label' => __pl('obj_image_size_label'), 'type' => 'select', 'default' => 'full', 'list' => array( 'full' => __pl('full'), 'large' => __pl('large'), 'medium' => __pl('medium'), 'thumbnail' => __pl('thumbnail'), 'custom' => __pl('custom') ) ), 'custom_size' => array( 'label' => __pl('image_custom_size_label'), 'type' => 'dimension', 'default' => '100,100', 'screen' => 1, 'css' => ['{{element}} .pagelayer-img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'], 'req' => array( 'img-size' => 'custom' ), ), 'cat_name' => array( 'type' => 'text', 'addAttr' => 'port-cat="{{cat_name}}"', 'label' => __pl('category'), 'default' => __pl('Technology'), ), 'link_type' => array( 'label' => __pl('image_link_label'), 'type' => 'select', 'list' => array( '' => __pl('none'), 'custom_url' => __pl('custom_url'), 'media_file' => __pl('media_file'), 'lightbox' => __pl('lightbox') ) ), 'link' => array( 'type' => 'link', 'label' => __pl('image_link_label'), 'desc' => __pl('image_link_desc'), 'selector' => '.pagelayer-ele-link', 'req' => array( 'link_type' => 'custom_url' ) ), 'rel' => array( 'label' => __pl('image_rel_label'), 'type' => 'text', 'addAttr' => ['{{element}} a' => 'rel="{{rel}}"'], 'req' => array( 'link_type' => 'media_file' ) ), 'target' => array( 'label' => __pl('open_link_in_new_window'), 'type' => 'checkbox', 'addAttr' => ['{{element}} a' => 'target="_blank"'], 'req' => ['link_type' => ['custom_url', 'media_file']], // For backward compatibility of the new link property in version 1.5.8, hide it for custom_url. 'show' => ['link_type' => 'media_file'] ), ), 'overlay_style' => [ 'overlay' => array( 'label' => __pl('image_overlay_effect_label'), 'desc' => __pl('image_overlay_effect_desc'), 'type' => 'checkbox', ), 'icon' => array( 'label' => __pl('icon'), 'type' => 'icon', 'default' => 'far fa-eye', 'req' => array( 'overlay' => 'true' ) ), 'icon_color' => array( 'label' => __pl('icon_color'), 'type' => 'color', 'css' => ['{{element}} .pagelayer-image-overlay-icon' => 'color: {{val}}'], 'req' => array( 'overlay' => 'true' ) ), 'icon_size' => array( 'label' => __pl('icon_custom_size'), 'desc' => __pl('icon_custom_size_desc'), 'type' => 'spinner', 'min' => 0, 'step' => 1, 'max' => 500, 'screen' => 1, 'css' => ['{{element}} .pagelayer-image-overlay-icon' => 'font-size: {{val}}px'], 'req' => array( 'overlay' => 'true' ) ), 'heading' => array( 'label' => __pl('title'), 'type' => 'text', 'edit' => '.pagelayer-overlay-heading', 'req' => array( 'overlay' => 'true' ) ), 'heading_color' => array( 'label' => __pl('title_color'), 'type' => 'color', 'css' => ['{{element}} .pagelayer-overlay-heading, {{element}} .pagelayer-overlay-heading *' => 'color: {{val}}'], 'req' => array( 'overlay' => 'true' ) ), 'heading_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => [ '{{element}} .pagelayer-overlay-heading, {{element}} .pagelayer-overlay-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;', ], 'req' => array( 'overlay' => 'true' ) ), 'text' => array( 'label' => __pl('content'), 'type' => 'editor', 'default' => 'Lorem Ipsum', 'edit' => '.pagelayer-image-overlay-text', 'req' => array( 'overlay' => 'true' ) ), 'overlay_bg_type' => array( 'label' => __pl('background_type'), 'type' => 'radio', 'list' => array( '' => __pl('color'), 'gradient' => __pl('gradient') ), 'req' => array( 'overlay' => 'true' ) ), 'overlay_bg' => array( 'label' => __pl('image_overlay_background'), 'type' => 'color', 'css' => ['{{element}} .pagelayer-image-overlay' => 'background: {{val}}'], 'req' => array( 'overlay' => 'true', 'overlay_bg_type' => '' ) ), 'overlay_gradient' => [ 'type' => 'gradient', 'label' => '', 'css' => ['{{element}} .pagelayer-image-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'req' => array( 'overlay' => 'true', 'overlay_bg_type' => 'gradient' ) ], 'content_align' => array( 'label' => __pl('alignment'), 'type' => 'radio', 'screen' => 1, 'css' => ['{{element}} .pagelayer-image-overlay-content' => 'text-align: {{val}};'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'req' => array( 'overlay' => 'true' ) ), 'content_position' => array( 'label' => __pl('overlay_cont_pos'), 'type' => 'radio', 'screen' => 1, 'css' => ['{{element}} .pagelayer-image-overlay' => 'display:-webkit-flex;display:flex;-webkit-align-items:{{val}}; align-items:{{val}};'], 'list' => array( 'flex-start' => __pl('Top'), 'center' => __pl('Middle'), 'flex-end' => __pl('Bottom'), ), 'req' => array( 'overlay' => 'true' ) ), 'content_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'css' => ['{{element}}:hover .pagelayer-image-overlay' => 'padding-top: {{val[0]}}px; padding-right: {{val[1]}}px; padding-bottom: {{val[2]}}px; padding-left: {{val[3]}}px;'], 'req' => array( 'overlay' => 'true' ) ), 'show_always' => array( 'label' => __pl('image_show_always'), 'type' => 'checkbox', 'screen' => 1, 'css' => ['{{element}} .pagelayer-image-overlay' => 'height:100%;'], 'req' => array( 'overlay' => 'true' ) ) ], 'styles' => [ 'overlay_style' => __pl('overlay_style') ] )); ///////////////////////////////////// // WooCommerce Shortcodes ///////////////////////////////////// if(class_exists( 'woocommerce' )){ // Product Images pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_images', array( 'name' => __pl('product_images'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-product-images-container product pagelayer-woo-gallery-{{gposition}}"> {{product_images_templ}} </div>', 'params' => array( 'sale_flash' => array( 'type' => 'checkbox', 'label' => __pl('sale_flash'), ), 'image_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['.woocommerce {{element}} .woocommerce-product-gallery__trigger + .woocommerce-product-gallery__wrapper' => 'border-style: {{val}}', '.woocommerce {{element}} .flex-viewport' => 'border-style: {{val}}', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'image_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['.woocommerce {{element}} .woocommerce-product-gallery__trigger + .woocommerce-product-gallery__wrapper' => 'border-color: {{val}};', '.woocommerce {{element}} .flex-viewport' => 'border-color: {{val}};', ], 'req' => array( '!image_border_type' => '' ), ), 'image_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['.woocommerce {{element}} .woocommerce-product-gallery__trigger + .woocommerce-product-gallery__wrapper' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px', '.woocommerce {{element}} .flex-viewport' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px', ], 'req' => [ '!image_border_type' => '' ], ), 'image_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'css' => ['.woocommerce {{element}} .woocommerce-product-gallery__trigger + .woocommerce-product-gallery__wrapper' => '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]}};', '.woocommerce {{element}} .flex-viewport' => '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]}};', ], ), ), 'thumbnails' => array( 'disable_gallery' => array( 'type' => 'checkbox', 'label' => __pl('disable_gallery'), 'css' => ['{{element}} ol.flex-control-thumbs' => 'display:none !important'], ), 'gposition' => array( 'label' => __pl('gallery_position'), 'type' => 'radio', 'default' => 'bottom', 'list' => array( 'left' => __pl('left'), 'top' => __pl('top'), 'right' => __pl('right'), 'bottom' => __pl('bottom') ), 'req' => array( 'disable_gallery' => '', ), ), 'thumb_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['.woocommerce {{element}} .flex-control-thumbs img' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'req' => array( 'disable_gallery' => '', ), ), 'thumb_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['.woocommerce {{element}} .flex-control-thumbs img' => 'border-color: {{val}};'], 'req' => array( 'disable_gallery' => '', '!thumb_border_type' => '' ), ), 'thumb_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['.woocommerce {{element}} .flex-control-thumbs 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'], 'req' => [ 'disable_gallery' => '', '!thumb_border_type' => '' ], ), 'thumb_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'css' => ['.woocommerce {{element}} .flex-control-thumbs 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]}};'], 'req' => array( 'disable_gallery' => '', ), ), 'thumb_space' => array( 'type' => 'slider', 'label' => __pl('horizontal_space'), 'units' => [ 'px', '%' ], 'css' => ['.woocommerce {{element}} .flex-control-thumbs li' => 'padding-right: calc({{val}} / 2); padding-left: calc({{val}} / 2); padding-bottom: {{val}}', '.woocommerce {{element}} .flex-control-thumbs' => 'margin-right: calc(-{{val}} / 2); margin-left: calc(-{{val}} / 2)' ], 'req' => array( 'disable_gallery' => '', ), ), 'thumb_vertical_space' => array( 'type' => 'slider', 'label' => __pl('vertical_space'), 'units' => ['px','%'], 'css' => ['.woocommerce {{element}} .flex-control-thumbs li' => 'padding-top: {{val}} ; padding-bottom: {{val}};', '.woocommerce {{element}} .flex-control-thumbs' => 'margin-top: calc(-{{val}} / 2); margin-bottom: calc(-{{val}} / 2)' ], 'req' => array( 'disable_gallery' => '', ), ), ), 'styles' => [ 'thumbnails' => __pl('thumbnails'), ], ) ); // Product Price pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_price', array( 'name' => __pl('product_price'), 'group' => 'woocommerce', 'html' => '<div class=" product pagelayer-product-price-container"> {{pagelayer-product-price}} </div>', 'params' => array( 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'css' => ['.woocommerce {{element}} .pagelayer-product-price-container' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), 'price_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .price .woocommerce-Price-amount' => 'color: {{val}} !important', '.woocommerce {{element}} .price' => 'color: {{val}} !important' ], ), 'price_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => ['.woocommerce {{element}} .price .woocommerce-Price-amount' => '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;', '.woocommerce {{element}} .price' => '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;' ], ), ), 'sale_price' => array( 'sale_price_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .price ins .woocommerce-Price-amount' => 'color: {{val}} !important', '.woocommerce {{element}} .price ins' => 'color: {{val}} !important' ], ), 'sale_price_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => ['.woocommerce {{element}} .price ins .woocommerce-Price-amount' => '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;', '.woocommerce {{element}} .price ins .woocommerce-Price-amount' => '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;' ], ), 'sale_space_bottom' => array( 'type' => 'checkbox', 'label' => __pl('space_bottom'), 'addAttr' => ['{{element}} .price' => 'pagelayer-bottom="yes"'], ), 'sale_price_space' => array( 'type' => 'slider', 'label' => __pl('space'), 'units' => [ 'px', '%' ], 'step' => 0.1, 'css' => ['body:not(.rtl) {{element}} .price:not([pagelayer-bottom="yes"]) del' => 'margin-right: {{val}}', 'body.rtl {{element}} .price:not([pagelayer-bottom="yes"]) del' => 'margin-right: {{val}}', '{{element}} .price[pagelayer-bottom="yes"] del' => 'margin-bottom: {{val}}' ], ), ), 'styles' => [ 'sale_price' => __pl('sale_price'), ], ) ); // Add to cart pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_add_to_cart', array( 'name' => __pl('add_to_cart'), 'group' => 'woocommerce', 'html' => '<div class=" product pagelayer-add-to-cart-holder">{{product_add_to_cart}}<div>', 'params' => array( 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'css' => ['.woocommerce {{element}}' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), 'cart_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => ['.woocommerce {{element}} .cart button' => '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;'], ), 'cart_colors' => array( 'type' => 'radio', 'label' => __pl('color'), 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'cart_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .cart button' => 'color: {{val}} !important'], 'show' => ['cart_colors' => ''], ), 'cart_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.woocommerce {{element}} .cart button' => 'background-color: {{val}} !important'], 'show' => ['cart_colors' => ''], ), 'cart_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['.woocommerce {{element}} .cart button' => 'border-color: {{val}} !important'], 'show' => ['cart_colors' => ''], ), 'cart_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .cart button:hover' => 'color: {{val}} !important'], 'show' => ['cart_colors' => 'hover'], ), 'cart_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.woocommerce {{element}} .cart button:hover' => 'background-color: {{val}} !important'], 'show' => ['cart_colors' => 'hover'], ), 'cart_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['.woocommerce {{element}} .cart button:hover' => 'border-color: {{val}} !important'], 'show' => ['cart_colors' => 'hover'], ), 'cart_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['.woocommerce {{element}} .cart button' => 'border-style: {{val}}', ], 'list' => [ '' => __pl('default'), 'none' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'cart_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['.woocommerce {{element}} .cart button' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px !important; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important', ], 'req' => [ '!cart_border_type' => ['', 'none'], ], ), 'cart_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'css' => ['.woocommerce {{element}} .cart button' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;-moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;', ], ), 'cart_border_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => [ 'px', '%', 'em' ], 'css' => ['.woocommerce {{element}} .cart button' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;'], ), ), 'cart_quantity' => array( 'quantity_space' => array( 'type' => 'slider', 'label' => __pl('space'), 'units' => [ 'px', 'em' ], 'step' => 0.1, 'css' => ['body:not(.rtl) {{element}} .quantity + .button' => 'margin-left: {{val}}', 'body.rtl {{element}} .quantity + .button' => 'margin-right: {{val}}' ], ), 'quantity_width' => array( 'type' => 'slider', 'label' => __pl('Width'), 'units' => [ 'px', 'em' ], 'step' => 0.1, 'css' => ['.woocommerce {{element}} .quantity .qty' => 'width: {{val}} !important'], ), 'quantity_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'css' => ['.woocommerce {{element}} .quantity .qty' => '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;'], ), 'quantity_colors' => array( 'type' => 'radio', 'label' => __pl('colors'), 'list' => array( '' => __pl('normal'), 'focus' => __pl('focus'), ), ), 'quantity_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .quantity .qty' => 'color: {{val}} !important'], 'show' => ['quantity_colors' => ''], ), 'quantity_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.woocommerce {{element}} .quantity .qty' => 'background-color: {{val}} !important'], 'show' => ['quantity_colors' => ''], ), 'quantity_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['.woocommerce {{element}} .quantity .qty' => 'border-color: {{val}} !important'], 'show' => ['quantity_colors' => ''], ), 'quantity_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .quantity .qty:focus' => 'color: {{val}} !important'], 'show' => ['quantity_colors' => 'focus'], ), 'quantity_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.woocommerce {{element}} .quantity .qty:focus' => 'background-color: {{val}} !important'], 'show' => ['quantity_colors' => 'focus'], ), 'quantity_border_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .quantity .qty:focus' => 'border-color: {{val}} !important'], 'show' => ['quantity_colors' => 'focus'], ), 'quantity_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['.woocommerce {{element}} .quantity .qty' => 'border-style: {{val}} !important', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'quantity_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['.woocommerce {{element}} .quantity .qty' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important', ], 'req' => [ '!quantity_border_type' => '' ], ), 'quantity_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'css' => ['.woocommerce {{element}} .quantity .qty' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;-moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;', ], ), 'quantity_border_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => [ 'px', '%', 'em' ], 'css' => ['.woocommerce {{element}} .quantity .qty' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;'], ), ), 'cart_variations' => array( 'variations_space' => array( 'type' => 'slider', 'label' => __pl('space'), 'units' => [ 'px', 'em' ], 'step' => 0.1, 'css' => ['.woocommerce {{element}} form.cart .variations' => 'margin-bottom: {{val}} !important'], ), 'variations_space_between' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'units' => [ 'px', 'em' ], 'step' => 0.1, 'css' => ['.woocommerce {{element}} form.cart table.variations tr:not(:last-child)' => 'margin-bottom: {{val}} !important'], ), 'variations_label' => array( 'type' => 'heading', 'label' => __pl('label'), ), 'variations_label_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['.woocommerce {{element}} form.cart table.variations label' => '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;'], ), 'variations_label_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} form.cart table.variations label' => 'color: {{val}} !important'], ), 'sel_label' => array( 'type' => 'heading', 'label' => __pl('select'), ), 'variations_sel_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['.woocommerce {{element}} form.cart table.variations td.value select' => '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;'], ), 'variations_sel_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} form.cart table.variations td.value select' => 'color: {{val}} !important'], ), 'variations_sel_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.woocommerce {{element}} form.cart table.variations td.value select' => 'background-color: {{val}} !important'], ), 'variations_border_sel_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['.woocommerce {{element}} form.cart table.variations td.value:before' => 'border-color: {{val}} !important'], ), 'variations_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'css' => ['.woocommerce {{element}} form.cart table.variations td.value select' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;-moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;', ], ), ), 'styles' => [ 'cart_quantity' => __pl('quantity'), 'cart_variations' => __pl('variations'), ], ) ); // Product Rating pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_rating', array( 'name' => __pl('product_rating'), 'group' => 'woocommerce', 'html' => '<div class=" product pagelayer-product-rating">{{product_rating}}</div>', 'params' => array( 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'css' => ['.woocommerce {{element}}' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), 'star_color' => array( 'type' => 'color', 'label' => __pl('star_color'), 'css' => ['.woocommerce {{element}} .star-rating' => 'color: {{val}}'], ), 'star_emp_color' => array( 'type' => 'color', 'label' => __pl('empty_star_color'), 'css' => ['.woocommerce {{element}} .star-rating::before' => 'color: {{val}}'], ), 'review_link_color' => array( 'type' => 'color', 'label' => __pl('link_color'), 'css' => ['.woocommerce {{element}} .woocommerce-review-link' => 'color: {{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['.woocommerce {{element}} .woocommerce-review-link' => '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;'], ), 'star_size' => array( 'type' => 'slider', 'label' => __pl('star_size'), 'units' => [ 'px', 'em' ], 'step' => 0.1, 'css' => ['.woocommerce {{element}} .star-rating' => 'font-size:{{val}}'], ), 'space_between' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'units' => [ 'px', 'em' ], 'step' => 0.1, 'css' => [ '.woocommerce:not(.rtl) {{element}} .star-rating' => 'margin-right: {{val}}', '.woocommerce.rtl {{element}} .star-rating' => 'margin-left: {{val}}' ], ), ), 'review_link' => array( 'disable_review_link' => array( 'type' => 'checkbox', 'label' => __pl('disable_link'), 'css' => ['.woocommerce {{element}} .woocommerce-review-link' => 'display:none !important'], ), 'link_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => array( 'disable_review_link' => '', ), ), 'link_color' => array( 'type' => 'color', 'label' => __pl('link_color'), 'css' => ['.woocommerce {{element}} .woocommerce-review-link' => 'color: {{val}}; transition: all 0.5s ;'], 'req' => array( 'disable_review_link' => '', ), 'show' => ['link_hover' => ''], ), 'link_hover_color' => array( 'type' => 'color', 'label' => __pl('link_color'), 'css' => ['.woocommerce {{element}} .woocommerce-review-link:hover' => 'color: {{val}} !important;'], 'req' => array( 'disable_review_link' => '', ), 'show' => ['link_hover' => 'hover'], ), ), 'styles' => [ 'review_link' => __pl('Review Link'), ] ) ); // Product Meta pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_meta', array( 'name' => __pl('product_meta'), 'group' => 'woocommerce', 'html' => '<div class=" product pagelayer-product-meta pagelayer-meta-{{display}}">{{product_meta}}</div>', 'params' => array( 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'css' => ['.woocommerce {{element}} .pagelayer-product-meta' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), 'display' => array( 'type' => 'radio', 'label' => __pl('display'), 'css' => ['.woocommerce {{element}} .product_meta > span' => 'display: {{val}}'], 'list' => array( 'inline-block' => __pl('inline_block'), 'block' => __pl('block'), ), ), 'space_between' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'step' => 0.1, 'css' => [ '.woocommerce {{element}} .pagelayer-product-meta:not(.pagelayer-meta-block) .product_meta > span:not(:first-child)' => 'margin-left: {{val}}px', '.woocommerce {{element}} .pagelayer-product-meta.pagelayer-meta-block .product_meta > span:not(:last-child)' => 'margin-bottom: {{val}}px', ], ), 'meta_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .product_meta span' => 'color: {{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['.woocommerce {{element}} .product_meta span' => '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;'], ), 'link_color' => array( 'type' => 'color', 'label' => __pl('link_color'), 'css' => ['.woocommerce {{element}} .product_meta a' => 'color: {{val}}'], ), 'linl_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['.woocommerce {{element}} .product_meta a' => '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;'], ), ), ) ); // Product short description pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_short_desc', array( 'name' => __pl('product_short_desc'), 'group' => 'woocommerce', 'html' => '<div class=" product pagelayer-product-short-desc">{{product_short_desc}}</div>', 'params' => array( 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'css' => ['.woocommerce {{element}} .pagelayer-product-short-desc' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), 'meta_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .pagelayer-product-short-desc *' => 'color: {{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['.woocommerce {{element}} .pagelayer-product-short-desc' => '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;'], ), ), ) ); // Products style $products_style = array( 'column_gap' => array( 'type' => 'slider', 'label' => __pl('column_gap'), 'units' => ['px', '%'], 'screen' => 1, 'default' => 20, 'step' => 0.2, 'max' => 100, 'css' => ['{{element}} ul.products li.product' => 'margin-right: {{val}}'], ), 'row_gap' => array( 'type' => 'slider', 'label' => __pl('row_gap'), 'units' => ['px', '%'], 'screen' => 1, 'default' => 20, 'step' => 0.2, 'max' => 100, 'css' => ['{{element}} ul.products li.product' => 'margin-bottom: {{val}}'], ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'addAttr' => ['{{element}} .pagelayer-product-related-container' => 'pagelayer-content-align="{{align}}"'], 'css' => ['{{element}} ul.products li.product' => 'text-align:{{val}}'], ), 'img_lable' => array( 'type' => 'heading', 'label' => __pl('image'), ), 'img_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .attachment-woocommerce_thumbnail' => 'border-style: {{val}}', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'img_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .attachment-woocommerce_thumbnail' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px' ], 'req' => [ '!img_border_type' => '' ], ), 'img_border_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .attachment-woocommerce_thumbnail' => 'border-color: {{val}}'], 'show' => ['img_border_type' => ''], ), 'img_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} .attachment-woocommerce_thumbnail' => '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]}};', ], ), 'img_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} .attachment-woocommerce_thumbnail' => 'margin-bottom: {{val}}'], ), 'title_lable' => array( 'type' => 'heading', 'label' => __pl('title'), ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => [ '{{element}} ul.products li.product .woocommerce-loop-product__title' => 'color: {{val}}', '{{element}} ul.products li.product .woocommerce-loop-category__title' => 'color: {{val}}' ], ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} ul.products li.product .woocommerce-loop-product__title' => '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;', '{{element}} ul.products li.product .woocommerce-loop-category__title' => '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;' ], ), 'title_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => [ '{{element}} ul.products li.product .woocommerce-loop-product__title' => 'margin-bottom: {{val}}', '{{element}} ul.products li.product .woocommerce-loop-category__title' => 'margin-bottom: {{val}}' ], ), 'rating_lable' => array( 'type' => 'heading', 'label' => __pl('stars_rating'), ), 'star_color' => array( 'type' => 'color', 'label' => __pl('star_color'), 'css' => ['{{element}} ul.products li.product .star-rating' => 'color: {{val}}'], ), 'empty_star_color' => array( 'type' => 'color', 'label' => __pl('empty_star_color'), 'css' => ['{{element}} ul.products li.product .star-rating::before' => 'color: {{val}}'], ), 'star_size' => array( 'type' => 'slider', 'label' => __pl('star_size'), 'max' => 5, 'step' => 0.1, 'css' => ['{{element}} ul.products li.product .star-rating' => 'font-size: {{val}}em'], ), 'star_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} ul.products li.product .star-rating' => 'margin-bottom: {{val}}'], ), 'price_lable' => array( 'type' => 'heading', 'label' => __pl('price_style'), ), 'price_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => [ '{{element}} ul.products li.product .price' => 'color: {{val}}', '{{element}} ul.products li.product .price ins' => 'color: {{val}}', '{{element}} ul.products li.product .price ins .amount' => 'color: {{val}}', ], ), 'price_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} ul.products li.product .price' => '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;'], ), 'reg_price_lable' => array( 'type' => 'heading', 'label' => __pl('regular_price'), ), 'reg_price_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => [ '{{element}} ul.products li.product .price del .amount' => 'color:{{val}}', '{{element}} ul.products li.product .price del' => 'color:{{val}}' ] ), 'reg_price_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} ul.products li.product .price del .amount' => '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;', '{{element}} ul.products li.product .price del' => '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;' ], ), 'button_lable' => array( 'type' => 'heading', 'label' => __pl('button'), ), 'button_colors'=> array( 'type' => 'radio', 'label' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'btn_color'=> array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} ul.products li.product .button' => 'color:{{val}}'], 'show' => [ 'button_colors' => '' ], ), 'btn_bg_color'=> array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} ul.products li.product .button' => 'background-color:{{val}}'], 'show' => [ 'button_colors' => '' ], ), 'btn_border_color'=> array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} ul.products li.product .button' => 'border-color:{{val}}'], 'show' => [ 'button_colors' => '' ], ), 'btn_hover_color'=> array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} ul.products li.product .button:hover' => 'color:{{val}}'], 'show' => [ 'button_colors' => 'hover' ], ), 'btn_bg_hover_color'=> array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} ul.products li.product .button:hover' => 'background-color:{{val}}'], 'show' => [ 'button_colors' => 'hover' ], ), 'btn_border_hover_color'=> array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} ul.products li.product .button:hover' => 'border-color:{{val}}'], 'show' => [ 'button_colors' => 'hover' ], ), 'btnb_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} ul.products li.product .button' => '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;'], ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} ul.products li.product .button' => 'border-style: {{val}}', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} ul.products li.product .button' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px', ], 'req' => [ '!btn_border_type' => '' ], ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} ul.products li.product .button' => '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]}};', ], ), 'btn_text_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} ul.products li.product .button' => 'padding: {{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]}};', ], ), 'btn_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} ul.products li.product .button' => 'margin-top:{{val}}'], ), 'view_cart_lable' => array( 'type' => 'heading', 'label' => __pl('view_cart'), ), 'view_cart_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .added_to_cart' => 'color: {{val}}'], ), 'view_cart_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .added_to_cart' => '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;'], ), ); // Products heading style $products_heading = array( 'heading_show'=> array( 'type' => 'checkbox', 'label' => __pl('heading_style'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-product-related-container' => 'pagelayer-heading-show="{{heading_show}}"'], ), 'heading_color'=> array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .products > h2' => 'color: {{val}}'], 'req' => ['heading_show' => 'true'], ), 'heading_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .products > h2' => '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;'], 'req' => ['heading_show' => 'true'], ), 'heading_align'=> array( 'type' => 'radio', 'label' => __pl('alignment'), 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .products > h2' => 'text-align: {{val}}'], 'req' => ['heading_show' => 'true'], ), 'heading_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} .products > h2' => 'margin-bottom: {{val}}'], 'req' => ['heading_show' => 'true'], ), ); // Products box style $products_box = array( 'box_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} ul.products li.product' => 'border-style: {{val}}', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'box_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} ul.products li.product' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px', ], 'req' => [ '!box_border_type' => '' ], ), 'box_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} ul.products li.product' => '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]}};', ], ), 'box_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} ul.products li.product' => '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]}};', ], ), 'box_colors' => array( 'type' => 'radio', 'label' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'box_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} ul.products li.product' => 'background-color: {{val}}'], 'show' => ['box_colors' => ''], ), 'box_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} ul.products li.product' => 'border-color: {{val}}'], 'show' => ['box_colors' => ''], ), 'box_shadow' => [ 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} ul.products li.product' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'], 'show' => ['box_colors' => ''], ], 'box_bg_hover_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} ul.products li.product:hover' => 'background-color: {{val}}'], 'show' => ['box_colors' => 'hover'], ), 'box_border_hover_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} ul.products li.product:hover' => 'border-color: {{val}}'], 'show' => ['box_colors' => 'hover'], ), 'box_hover_shadow' => [ 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} ul.products li.product:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'], 'show' => ['box_colors' => 'hover'], ], ); // Products sale flash style $products_sale_flash = array( 'sale_flash' => array( 'type' => 'checkbox', 'label' => __pl('sale_flash'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-product-related-container' => 'pagelayer-sale-flash="{{sale_flash}}"'], ), 'flash_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} ul.products li.product span.onsale' => 'color: {{val}}'], 'req' => [ 'sale_flash' => 'true'], ), 'flash_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} ul.products li.product span.onsale' => 'background-color: {{val}}'], 'req' => [ 'sale_flash' => 'true'], ), 'flash_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} ul.products li.product span.onsale' => '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;'], 'req' => [ 'sale_flash' => 'true'], ), 'flash_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} .ul.products li.product span.onsale' => '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]}};', ], 'req' => [ 'sale_flash' => 'true'], ), 'flash_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'units' => [ 'px', '%' ], 'css' => ['{{element}} ul.products li.product span.onsale' => 'min-width: {{val}};'], 'req' => [ 'sale_flash' => 'true'], ), 'flash_height' => array( 'type' => 'slider', 'label' => __pl('height'), 'units' => [ 'px', '%' ], 'css' => ['{{element}} ul.products li.product span.onsale' => 'min-height: {{val}}; line-height: {{val}};'], 'req' => [ 'sale_flash' => 'true'], ), 'flash_distance' => array( 'type' => 'slider', 'label' => __pl('distance'), 'units' => [ 'px', '%' ], 'max' => 20, 'css' => ['{{element}} ul.products li.product span.onsale' => 'margin: {{val}};'], 'req' => [ 'sale_flash' => 'true'], ), 'flash_position' => array( 'type' => 'radio', 'label' => __pl('position'), 'list' => array( 'left' => __pl('left'), 'right' => __pl('right'), ), 'css' => ['{{element}} ul.products li.product span.onsale' => 'left:auto; right:auto; {{val}} : 0;'], 'req' => [ 'sale_flash' => 'true'], ), ); // Product related pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_related', array( 'name' => __pl('related_upsell_products'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-product-related-container"> {{related_products}} </div>', 'params' => array( 'select_product' => array( 'type' => 'select', 'label' => __pl('product_type'), 'default' => 'related', 'list' => array( 'related' => __pl('related'), 'upsell' => __pl('upsell'), ), ), 'posts_per_page' => array( 'type' => 'spinner', 'label' => __pl('products_per_page'), 'default' => 4, 'max' => 20, 'req' => ['select_product' => 'related'], ), 'columns' => array( 'type' => 'spinner', 'label' => __pl('columns'), 'screen' => 1, 'default' => 4, 'min' => 1, 'max' => 6, ), 'order_by' => array( 'type' => 'select', 'label' => __pl('order_by'), 'default' => 'date', 'list' => array( 'date' => __pl('date'), 'title' => __pl('title'), 'price' => __pl('price'), 'popularity' => __pl('popularity'), 'rating' => __pl('rating'), 'rand' => __pl('random'), 'menu_order' => __pl('menu_order'), ), ), 'order' => array( 'type' => 'select', 'label' => __pl('order'), 'default' => 'asc', 'list' => array( 'asc' => __pl('asc'), 'desc' => __pl('desc'), ), ), ), 'products_style' => $products_style, 'heading_style' => $products_heading, 'box_style' => $products_box, 'sale_flash_style' => $products_sale_flash, 'styles' =>[ 'products_style' => __pl('products_style'), 'heading_style' => __pl('heading_styles'), 'box_style' => __pl('box_style'), 'sale_flash_style' => __pl('sale_flash_style'), ], ) ); // woocommerce breadcrumb pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_woo_breadcrumb', array( 'name' => __pl('woo_breadcrumb'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-woo-breadcrumb-container">'. pagelayer_woo_breadcrumb() .'</div>', 'params' => array( 'color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .woocommerce-breadcrumb' => 'color:{{val}}'], ), 'link_color' => array( 'type' => 'color', 'label' => __pl('link_color'), 'css' => ['{{element}} .woocommerce-breadcrumb > a' => 'color:{{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .woocommerce-breadcrumb' => '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;'], ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'css' => ['{{element}} .woocommerce-breadcrumb' => 'text-align:{{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), ), ) ); // Product pages pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_woo_pages', array( 'name' => __pl('woo_pages'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-product-pages-container">{{page_content}}</div>', 'params' => array( 'pages' => array( 'type' => 'select', 'label' => __pl('pages'), 'css' => ['{{element}} .woocommerce-breadcrumb' => 'color:{{val}}'], 'list' => array( '' => __pl( 'Select' ), 'woocommerce_cart' => __pl('cart_page'), //'product_page' => __pl('single_product_page'), 'woocommerce_checkout' => __pl('checkout_page'), 'woocommerce_order_tracking' => __pl('order_tracking_form'), 'woocommerce_my_account' => __pl('my_account'), ), ), ), ) ); // Product pages pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_categories', array( 'name' => __pl('product_categories'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-product-categories-container">{{product_categories}}</div>', 'params' => array( 'columns' => array( 'type' => 'spinner', 'label' => __pl('columns'), 'screen' => 1, 'default' => 4, 'max' => 12, ), 'number' => array( 'type' => 'spinner', 'label' => __pl('limit'), 'default' => 4, ), 'source' => array( 'type' => 'select', 'label' => __pl('source'), 'list' => array( '' => __pl('show_all'), 'by_id' => __pl('manual_selection'), 'by_parent' => __pl('by_parent'), 'current_subcategories' => __pl('current_subcategories'), ), ), 'by_id' => array( 'type' => 'multiselect', 'label' => __pl('categories'), 'list' => pagelayer_get_product_cat(), 'req' => ['source' => 'by_id'], ), 'parent' => array( 'type' => 'select', 'label' => __pl('parent'), 'list' => [ '0' => __pl('only_top_level') ] + pagelayer_get_product_cat(), 'req' => ['source' => 'by_parent'], ), 'hide_empty' => array( 'type' => 'checkbox', 'label' => __pl('hide_empty'), ), 'orderby' => array( 'type' => 'select', 'label' => __pl('order_by'), 'default' => 'name', 'list' => array( 'name' => __pl('name'), 'slug' => __pl('slug'), 'description' => __pl('description'), 'count' => __pl('count'), ), ), 'order' => array( 'type' => 'select', 'label' => __pl('order'), 'default' => 'desc', 'list' => array( 'asc' => __pl('asc'), 'desc' => __pl('desc'), ), ), ), 'products_style' => array( 'column_gap' => array( 'type' => 'slider', 'label' => __pl('column_gap'), 'units' => ['px', '%'], 'screen' => 1, 'default' => 20, 'step' => 0.2, 'max' => 100, 'css' => ['{{element}} ul.products li.product' => 'margin-right: {{val}}'], ), 'row_gap' => array( 'type' => 'slider', 'label' => __pl('row_gap'), 'units' => ['px', '%'], 'screen' => 1, 'default' => 20, 'step' => 0.2, 'max' => 100, 'css' => ['{{element}} ul.products li.product' => 'margin-bottom: {{val}}'], ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} ul.products li.product' => 'text-align:{{val}}'], ), 'img_lable' => array( 'type' => 'heading', 'label' => __pl('image'), ), 'img_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} a > img' => 'border-style: {{val}}', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'img_border_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} a > img' => 'border-color: {{val}}'], 'show' => ['!img_border_type' => ''], ), 'img_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} a > 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' ], 'req' => [ '!img_border_type' => '' ], ), 'img_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} a > 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]}};', ], ), 'img_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => ['{{element}} a > img' => 'margin-bottom: {{val}}'], ), 'title_lable' => array( 'type' => 'heading', 'label' => __pl('title'), ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .woocommerce-loop-category__title' => 'color: {{val}}'], ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .woocommerce-loop-category__title' => '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;' ], ), 'title_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'units' => [ 'px', '%' ], 'screen' => 1, 'css' => [ '{{element}} .woocommerce-loop-category__title' => 'margin-bottom: {{val}}' ], ), 'count_lable' => array( 'type' => 'heading', 'label' => __pl('count'), ), 'count_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .woocommerce-loop-category__title .count' => 'color: {{val}}'], ), 'count_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .woocommerce-loop-category__title .count' => '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;' ], ), ), 'styles' =>[ 'products_style' => __pl('products_style'), ], ) ); // Archives Product pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_archives', array( 'name' => __pl('product_archives'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-product-archives-container">{{product_archives}}</div>', 'params' => array( 'allow_order' => array( 'type' => 'checkbox', 'label' => __pl('allow_order'), 'default' => 'true', ), 'show_result' => array( 'type' => 'checkbox', 'label' => __pl('show_result_counter'), 'default' => 'true', ), 'no_found' => array( 'type' => 'textarea', 'label' => __pl('no_found_msg'), 'default' => __pl('Products not found.'), ), ), 'products_style' => $products_style, 'box_style' => $products_box, 'sale_flash_style' => $products_sale_flash, 'pagination_style' => array( 'pagination_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'css' => ['{{element}} nav.woocommerce-pagination' => 'margin-top:{{val}}px'], ), 'pagination_border' => array( 'type' => 'checkbox', 'label' => __pl('border'), //'css' => ['{{element}} nav.woocommerce-pagination' => 'margin-top:{{val}}px'], ), 'pagination_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => [ '{{element}}nav.woocommerce-pagination ul' => 'border-color:{{val}}', '{{element}} nav.woocommerce-pagination ul li' => 'border-right-color: {{val}}; border-left-color: {{val}}', ], ), 'pagination_padding' => array( 'type' => 'slider', 'label' => __pl('padding'), 'screen' => 1, 'units' => [ 'em' ], 'min' => 0, 'max' => 4, 'step' => 0.1, 'css' => [ '{{element}} nav.woocommerce-pagination ul li a' => 'padding: {{val}}', '{{element}} nav.woocommerce-pagination ul li span' => 'padding: {{val}}' ], ), 'pagination_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} nav.woocommerce-pagination' => '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;' ], ), 'pagination_colors' => array( 'type' => 'radio', 'label' => __pl('colors'), 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), 'active' => __pl('active'), ), ), 'pagination_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li a' => 'color:{{val}}'], 'show' => ['pagination_colors' => 'normal'], ), 'pagination_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li a' => 'background-color:{{val}}'], 'show' => ['pagination_colors' => 'normal'], ), 'pagination_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li a:hover' => 'color:{{val}}'], 'show' => ['pagination_colors' => 'hover'], ), 'pagination_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li a:hover' => 'background-color:{{val}}'], 'show' => ['pagination_colors' => 'hover'], ), 'pagination_color_active' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => [ '{{element}} nav.woocommerce-pagination ul li span.current' => 'color:{{val}};' ], 'show' => ['pagination_colors' => 'active'], ), 'pagination_bg_color_active' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li span.current' => 'background-color:{{val}}'], 'show' => ['pagination_colors' => 'active'], ), ), 'no_found_style' => array( 'nf_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-product-no-found' => 'color:{{val}}'], ), 'nf_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .pagelayer-product-no-found' => '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;' ], ), ), 'styles' =>[ 'products_style' => __pl('products_style'), 'box_style' => __pl('box_style'), 'pagination_style' => __pl('pagination_style'), 'sale_flash_style' => __pl('sale_flash_style'), 'no_found_style' => __pl('no_found_style'), ], ) ); // Products pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_products', array( 'name' => __pl('products'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-products-container">{{products_content}}</div>', 'params' => array( 'columns' => array( 'type' => 'spinner', 'label' => __pl('columns'), 'screen' => 1, 'default' => 4, 'max' => 12, ), 'rows' => array( 'type' => 'spinner', 'label' => __pl('rows'), 'default' => 4, ), 'paginate' => array( 'type' => 'checkbox', 'label' => __pl('pagination'), ), 'allow_order' => array( 'type' => 'checkbox', 'label' => __pl('allow_order'), 'req' => ['paginate' => 'true'], ), 'show_result' => array( 'type' => 'checkbox', 'label' => __pl('show_result_counter'), 'req' => ['paginate' => 'true'], ), 'no_found' => array( 'type' => 'textarea', 'label' => __pl('no_found_msg'), 'default' => __pl('Products not found.'), ), ), 'query' => array( 'source' => array( 'type' => 'select', 'label' => __pl('source'), 'default' => 'recent_products', 'list' => array( 'pagelayer_current_query' => __pl('currunt_query'), 'recent_products' => __pl('recent_products'), 'sale_products' => __pl('sale_products'), 'best_selling_products' => __pl('best_selling_products'), 'top_rated_products' => __pl('top_rated_products'), 'featured_products' => __pl('featured_product'), 'by_id' => __pl('manual_selection'), ), ), 'ids' => array( 'type' => 'multiselect', 'label' => __pl('products'), 'list' => pagelayer_post_list_by_type('product'), 'req' => ['source' => 'by_id'], ), 'orderby' => array( 'type' => 'select', 'label' => __pl('order_by'), 'default' => 'date', 'list' => array( 'date' => __pl('date'), 'title' => __pl('title'), 'price' => __pl('price'), 'popularity' => __pl('popularity'), 'rating' => __pl('rating'), 'rand' => __pl('rand'), 'menu_order' => __pl('menu_order'), ), ), 'order' => array( 'type' => 'select', 'label' => __pl('order'), 'default' => 'ASC', 'list' => array( 'ASC' => __pl('ASC'), 'DESC' => __pl('DESC'), ), ), ), 'products_style' => $products_style, 'box_style' => $products_box, 'sale_flash_style' => $products_sale_flash, 'pagination_style' => array( 'pagination_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'css' => ['{{element}} nav.woocommerce-pagination' => 'margin-top:{{val}}px'], ), 'pagination_border' => array( 'type' => 'checkbox', 'label' => __pl('border'), //'css' => ['{{element}} nav.woocommerce-pagination' => 'margin-top:{{val}}px'], ), 'pagination_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => [ '{{element}}nav.woocommerce-pagination ul' => 'border-color:{{val}}', '{{element}} nav.woocommerce-pagination ul li' => 'border-right-color: {{val}}; border-left-color: {{val}}', ], ), 'pagination_padding' => array( 'type' => 'slider', 'label' => __pl('padding'), 'screen' => 1, 'units' => [ 'em' ], 'min' => 0, 'max' => 4, 'step' => 0.1, 'css' => [ '{{element}} nav.woocommerce-pagination ul li a' => 'padding: {{val}}', '{{element}} nav.woocommerce-pagination ul li span' => 'padding: {{val}}' ], ), 'pagination_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} nav.woocommerce-pagination' => '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;' ], ), 'pagination_colors' => array( 'type' => 'radio', 'label' => __pl('colors'), 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), 'active' => __pl('active'), ), ), 'pagination_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li a' => 'color:{{val}}'], 'show' => ['pagination_colors' => 'normal'], ), 'pagination_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li a' => 'background-color:{{val}}'], 'show' => ['pagination_colors' => 'normal'], ), 'pagination_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li a:hover' => 'color:{{val}}'], 'show' => ['pagination_colors' => 'hover'], ), 'pagination_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li a:hover' => 'background-color:{{val}}'], 'show' => ['pagination_colors' => 'hover'], ), 'pagination_color_active' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => [ '{{element}} nav.woocommerce-pagination ul li span.current' => 'color:{{val}};' ], 'show' => ['pagination_colors' => 'active'], ), 'pagination_bg_color_active' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} nav.woocommerce-pagination ul li span.current' => 'background-color:{{val}}'], 'show' => ['pagination_colors' => 'active'], ), ), 'no_found_style' => array( 'nf_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-product-no-found' => 'color:{{val}}'], ), 'nf_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .pagelayer-product-no-found' => '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;' ], ), ), 'styles' =>[ 'query' => __pl('query'), 'products_style' => __pl('products_style'), 'box_style' => __pl('box_style'), 'pagination_style' => __pl('pagination_style'), 'sale_flash_style' => __pl('sale_flash_style'), 'no_found_style' => __pl('no_found_style'), ], ) ); // Product Archives description pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_archives_desc', array( 'name' => __pl('product_archives_desc'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-archives-desc-container">'. pagelayer_get_product_archives_desc() .'</div>', 'params' => array( 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-archives-desc-container' => 'text-align:{{val}}'], ), 'color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .woocommerce-product-details__short-description' => 'color:{{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .woocommerce-product-details__short-description' => '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;' ], ), ), ) ); // Product Additional Information pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_addi_info', array( 'name' => __pl('product_addi_info'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-addi-info-container product">{{product_additional_info}}</div>', 'params' => array( 'color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .shop_attributes' => 'color:{{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '.woocommerce {{element}} .shop_attributes' => '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;' ], ), 'heading' => array( 'type' => 'checkbox', 'label' => __pl('heading_style'), 'default' => 'true', 'addAttr' => ['{{element}} .pagelayer-addi-info-container' => 'pagelayer-show-heading="{{heading}}"'], ), 'heading_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-addi-info-container h2' => 'color:{{val}}'], 'req' => ['heading' => 'true'], ), 'heading_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .pagelayer-addi-info-container h2' => '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;' ], 'req' => ['heading' => 'true'], ), ), ) ); // Product Additional Information pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_data_tabs', array( 'name' => __pl('product_data_tabs'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-data-tabs-container product">{{product_data_tab}}</div>', 'params' => array( 'tabs_colors' => array( 'type' => 'radio', 'label' => __pl('colors'), 'list' => array( 'normal' => __pl('normal'), 'active' => __pl('active'), ), ), 'tabs_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li:not(.active) a' => 'color:{{val}} !important;'], 'show' => ['tabs_colors' => 'normal'], ), 'tabs_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li:not(.active)' => 'background-color:{{val}} !important;'], 'show' => ['tabs_colors' => 'normal'], ), 'tabs_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => [ '.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li:not(.active)' => 'border-color:{{val}}', '.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-color:{{val}}' ], 'show' => ['tabs_colors' => 'normal'], ), 'tabs_color_active' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li.active a' => 'color:{{val}} !important;'], 'show' => ['tabs_colors' => 'active'], ), 'tabs_bg_color_active' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li.active' => 'background-color:{{val}} !important;'], 'show' => ['tabs_colors' => 'active'], ), 'tabs_border_color_active' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => [ '.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-color: {{val}}', '.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li.active' => 'border-color: {{val}} !important;' ], 'show' => ['tabs_colors' => 'active'], ), 'tabs_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li' => 'border-style: {{val}} !important', ], 'list' => [ '' => __pl('default'), 'none' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['tabs_colors' => 'normal'], ), 'tabs_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => [ '.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;', ], 'req' => [ '!tabs_border_type' => ['', 'none'], ], ), 'tabs_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li a' => '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;' ], ), 'border_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li' => 'border-radius: {{val}}px !important;'], ), ), 'panel_style' => array( 'panel_color' => array( 'type' => 'color', 'label' => __pl('desc_color'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'color: {{val}}'], ), 'panel_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => '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;' ], ), 'panel_heading' => array( 'type' => 'heading', 'label' => __pl('heading_style'), ), 'panel_heading_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel h2' => 'color: {{val}}'], ), 'panel_heading_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel h2' => '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;' ], ), 'panel_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-style: {{val}}'], 'list' => [ '' => __pl('default'), 'none' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'panel_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-color: {{val}} !important;'], 'req' => array( '!panel_border_type' => ['none'], ), ), 'panel_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important; margin-top: -{{val[0]}}px !important;'], 'req' => [ '!panel_border_type' => ['none'], ], ), 'panel_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'css' => [ '.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => '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;', '.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs' => 'margin-left: {{val[0]}}px; margin-right: {{val[1]}};' ], ), 'panel_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('box_shadow'), 'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], ), ), 'styles' => array( 'panel_style' => __pl('panel_style'), ), ) ); // WooCommerce Menu cart pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_woo_menu_cart', array( 'name' => __pl('woo_menu_cart'), 'group' => 'woocommerce', 'html' => '<div class="pagelayer-woo-menu-cart-container">{{cart_html}}</div>', 'params' => array( 'icon_type' => array( 'type' => 'select', 'label' => __pl('icon'), 'default' => 'fa fa-shopping-cart', 'list' => array( 'fa fa-shopping-cart' => __pl('cart'), 'fa fa-shopping-basket' => __pl('basket'), 'fa fa-shopping-bag' => __pl('bag'), ), ), 'items_indicator' => array( 'type' => 'select', 'label' => __pl('items_indicator'), 'default' => 'bubble', 'list' => array( '' => __pl('none'), 'bubble' => __pl('bubble'), 'plain' => __pl('plain'), ), 'addAttr' => [ '{{element}} .pagelayer-menu-cart-toggle' => 'pagelayer-icon="{{items_indicator}}"'], ), 'empty_indicator' => array( 'type' => 'checkbox', 'label' => __pl('empty_indicator'), 'addAttr' => ['{{element}} .pagelayer-menu-cart-toggle' => 'pagelayer-empty-indicator="{{empty_indicator}}"'], ), 'sub_total' => array( 'type' => 'checkbox', 'label' => __pl('hide_sub_total'), 'css' => ['{{element}} .pagelayer-cart-button-text' => 'display:none;'] ), 'cart_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'left', 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => [ '{{element}} .pagelayer-menu-cart-toggle' => 'text-align:{{val}}' ], ), ), 'mini_cart_style' => array( 'mini_cart_colors' => array( 'type' => 'radio', 'label' => '', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'mini_cart_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-cart-button' => 'color:{{val}}'], 'show' => ['mini_cart_colors' => 'normal'], ), 'cart_icon_color' => array( 'type' => 'color', 'label' => __pl('cart_icon_color'), 'css' => ['{{element}} .pagelayer-cart-button-icon' => 'color:{{val}}'], 'show' => ['mini_cart_colors' => 'normal'], ), 'mini_cart_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-cart-button' => 'background-color:{{val}}'], 'show' => ['mini_cart_colors' => 'normal'], ), 'mini_cart_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-cart-button' => 'border-color:{{val}}'], 'show' => ['mini_cart_colors' => 'normal'], ), 'mini_cart_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-cart-button:hover' => 'color:{{val}}'], 'show' => ['mini_cart_colors' => 'hover'], ), 'cart_icon_color_hover' => array( 'type' => 'color', 'label' => __pl('cart_icon_color'), 'css' => ['{{element}} .pagelayer-cart-button-icon:hover' => 'color:{{val}}'], 'show' => ['mini_cart_colors' => 'hover'], ), 'cart_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-cart-button:hover' => 'background-color:{{val}}'], 'show' => ['mini_cart_colors' => 'hover'], ), 'cart_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-cart-button:hover' => 'border-color:{{val}}'], 'show' => ['mini_cart_colors' => 'hover'], ), 'cart_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-cart-button' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'cart_border_width' => array( 'type' => 'slider', 'label' => __pl('border_width'), 'css' => ['{{element}} .pagelayer-cart-button' => 'border-width:{{val}}px'], 'req' => ['!cart_border_type' => ''], ), 'cart_border_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'units' => [ 'px', 'em', '%' ], 'css' => ['{{element}} .pagelayer-cart-button' => 'border-radius:{{val}}'], ), 'cart_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .pagelayer-cart-button' => '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;' ], ), 'mini_cart_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => [ 'px', 'em', '%' ], 'css' => ['{{element}} .pagelayer-cart-button' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'], ), 'mini_cart_icon' => array( 'type' => 'heading', 'label' => __pl('icon'), ), 'mini_icon_size' => array( 'type' => 'slider', 'label' => __pl('size'), 'units' => [ 'px', 'em' ], 'css' => ['{{element}} .pagelayer-cart-button-icon' => 'font-size:{{val}}'], ), 'mini_icon_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'units' => [ 'px', 'em' ], 'min' => 0, 'max' => 50, 'css' => [ 'body:not(.rtl) {{element}} .pagelayer-cart-button-text' => 'margin-right: {{val}}', 'body.rtl {{element}} .pagelayer-cart-button-text' => 'margin-left: {{val}}', ], ), 'mini_bubble_icon' => array( 'type' => 'heading', 'label' => __pl('bubble'), 'req' => ['items_indicator' => 'bubble'], ), 'bubble_colors' => array( 'type' => 'radio', 'label' => '', 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => ['items_indicator' => 'bubble'], ), 'bubble_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} [pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:before' => 'color:{{val}}'], 'show' => ['bubble_colors' => 'normal'], ), 'bubble_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} [pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:before' => 'background-color:{{val}}'], 'show' => ['bubble_colors' => 'normal'], ), 'bubble_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} [pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:hover:before' => 'color:{{val}}'], 'show' => ['bubble_colors' => 'hover'], ), 'bubble_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} [pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:hover:before' => 'background-color:{{val}}'], 'show' => ['bubble_colors' => 'hover'], ), ), 'container_style' => array( 'container_position' => array( 'type' => 'select', 'label' => __pl('container_position'), 'default' => 'fixed_right', 'list' => array( 'fixed_right' => __pl('fixed_right'), 'fixed_left' => __pl('fixed_left'), 'dropdown' => __pl('dropdown'), ), 'addAttr' => [ '{{element}} .pagelayer-woo-menu-cart-container' => 'pagelayer-container-position="{{container_position}}"'], ), 'container_align' => array( 'type' => 'radio', 'label' => __pl('position'), 'default' => 'left', 'list' => array( 'left' => __pl('left'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-menu-cart-container' => '{{val}}:0 !important;'], 'req' => ['container_position' => 'dropdown'], ), 'cart_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-menu-cart-container' => 'color:{{val}}'] ), 'cart_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-menu-cart-container' => 'background-color:{{val}}'] ), 'container_close' => array( 'type' => 'slider', 'label' => __pl('container_close_size'), 'css' => ['{{element}} .pagelayer-menu-cart-close' => 'font-size:{{val}}px;'] ), 'container_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'screen' => 1, 'units' => ['px', '%'], 'css' => ['{{element}} .pagelayer-menu-cart-container' => 'width:{{val}};'] ), 'sub_total_label' => array( 'type' => 'heading', 'label' => __pl('sub_total'), ), 'sub_total_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .woocommerce-mini-cart__total' => 'color: {{val}}'], ), 'sub_total_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .woocommerce-mini-cart__total' => '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;' ], ), ), 'products_style' => array( 'products_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .woocommerce-mini-cart > .woocommerce-mini-cart-item' => 'color:{{val}}'] ), 'products_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .woocommerce-mini-cart > .woocommerce-mini-cart-item' => 'background-color:{{val}}'] ), 'products_list_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => [ 'px', 'em'], 'css' => ['{{element}} .woocommerce-mini-cart > .woocommerce-mini-cart-item' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;'], ), 'img_label' => array( 'type' => 'heading', 'label' => __pl('image'), ), 'products_img_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'default' => '50px', 'units' => ['px', 'em', '%'], 'css' => ['{{element}} .woocommerce-mini-cart-item img' => 'width: {{val}}'], ), 'title_label' => array( 'type' => 'heading', 'label' => __pl('product_title'), ), 'products_title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .woocommerce-mini-cart-item a' => 'color: {{val}}'], ), 'products_title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .woocommerce-mini-cart-item a' => '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;' ], ), 'price_label' => array( 'type' => 'heading', 'label' => __pl('product_price'), ), 'products_price_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .woocommerce-mini-cart-item .quantity' => 'color: {{val}}'], ), 'products_price_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .woocommerce-mini-cart-item .quantity' => '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;' ], ), 'remove_label' => array( 'type' => 'heading', 'label' => __pl('remove_items'), ), 'remove_icon_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .remove_from_cart_button' => 'color: {{val}} !important'], ), 'remove_icon_size' => array( 'type' => 'slider', 'label' => __pl('size'), 'css' => ['{{element}} .remove_from_cart_button' => 'font-size: {{val}}px'], ), ), 'buttons_style' => array( 'button_display' => array( 'type' => 'select', 'label' => __pl('display'), 'default' => 'inline', 'list' => array( 'inline' => __pl('inline'), 'block' => __pl('block'), ), 'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'display: {{val}}'], 'addAttr' => ['{{element}} .woocommerce-mini-cart__buttons' => 'pagelayer-display="{{button_display}}"'], ), 'space_between_btn' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'default' => 5, 'css' => [ '{{element}} .woocommerce-mini-cart__buttons[pagelayer-display="inline"] a' => 'margin-left: {{val}}px', '{{element}} .woocommerce-mini-cart__buttons[pagelayer-display="block"] a' => 'margin-bottom: {{val}}px' ], ), 'btn_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => [ 'px', 'em'], 'default' => '5,5,5,5', 'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;'], ), 'btn_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .woocommerce-mini-cart__buttons' => '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;' ], ), 'btn_border_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'units' => [ 'px', 'em'], 'default' => '50', 'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'border-radius: {{val}} !important'], ), 'btn_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'color: {{val}}'], ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#585757', 'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'background-color: {{val}}'], ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'border-style: {{val}} !important'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'border-color: {{val}} !important'], 'req' => array( '!btn_border_type' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important'], 'req' => [ '!btn_border_type' => '' ], ), ), 'styles' => array( 'mini_cart_style' => __pl('mini_cart_style'), 'container_style' => __pl('container_style'), 'products_style' => __pl('products_style'), 'buttons_style' => __pl('buttons_style'), ), ) ); }// class_exists('woocommerce') end // Popup Settings pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_popup', array( 'name' => __pl('Popup Layout'), 'group' => 'other', 'not_visible' => 1, 'no_gt' => 1, 'icon' => 'fas fa-sort-amount-up-alt', 'overide_css_selector' => '[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content', 'hide_active' => 1, 'skip_props_cat' => ['position_styles', 'animation_styles', 'responsive_styles'], 'skip_props' => ['ele_zindex', 'ele_shadow', 'border_shadow_hover', 'hide_desktop', 'hide_tablet', 'hide_mobile', 'ele_sticky_pos'], 'params' => array( 'post_popup_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'default' => '50', 'screen' => 1, 'units' => ['%', 'px'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'width:{{val}}'], ), 'post_popup_height' => array( 'type' => 'slider', 'label' => __pl('height'), 'screen' => 1, 'units' => ['%', 'px', 'vh'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'height:{{val}}'], ), 'popup_position' => array( 'type' => 'heading', 'label' => __pl('position'), ), 'popup_hori_position' => array( 'type' => 'radio', 'label' => __pl('horizontal'), 'list' => array( 'flex-start' => __pl('left'), 'center' => __pl('center'), 'flex-end' => __pl('right'), ), 'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'justify-content:{{val}}'], ), 'popup_ver_position' => array( 'type' => 'radio', 'label' => __pl('vertical'), 'list' => array( 'flex-start' => __pl('top'), 'center' => __pl('center'), 'flex-end' => __pl('bottom'), ), 'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'align-items:{{val}}'], ), 'popup_animation' => array( 'type' => 'select', 'label' => __pl('animation'), 'default' => '', 'addClass' => ['{{val}}',( !pagelayer_is_live() ? 'pagelayer-wow' : '' )], 'addAttr' => 'data-popup_animation="{{popup_animation}}', 'list' => $pagelayer->anim_in_options, ), 'popup_animation_delay' => [ 'type' => 'spinner', 'label' => __pl('animation_delay'), 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => '-webkit-animation-delay: {{val}}ms; animation-delay: {{val}}ms;'], 'default' => 600, 'min' => 0, 'max' => 90000, 'step' => 100, 'req' => [ '!popup_animation' => '' ] ], ), 'popup_styles' => array( 'popup_content_back' => array( 'type' => 'radio', 'label' => __pl('bg_color'), 'list' => array( 'color' => __pl('color'), 'gradient' => __pl('gradient'), ), ), 'popup_content_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'background-color:{{val}}'], 'req' => [ 'popup_content_back' => 'color'], ), 'popup_content_bg_gradient' => [ 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100', 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'req' => ['popup_content_back' => 'gradient'], ], 'popup_border_type' => [ 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'border-style: {{val}}'], ], 'popup_border_width' => [ 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '1,1,1,1', 'units' => ['px', 'em'], 'screen' => 1, 'req' => [ '!popup_border_type' => '' ], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ], 'popup_border_color' => [ 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#CCC', 'screen' => 1, 'req' => [ '!popup_border_type' => '' ], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'border-color: {{val}}'], ], 'popup_border_radius' => [ 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', 'em', '%'], 'screen' => 1, 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => '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]}};'], ], 'popup_shadow' => [ 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], ] ), 'overlay' => array( 'popup_overlay' => array( 'type' => 'checkbox', 'label' => __pl('enable_overlay'), 'default' => true, 'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'pointer-events: all'], ), 'popup_overlay_back' => array( 'type' => 'radio', 'label' => __pl('bg_color'), 'default' => 'bg_color', 'list' => array( 'bg_color' => __pl('color'), 'gradient' => __pl('gradient'), ), 'req' => [ 'popup_overlay' => 'true'], ), 'popup_overlay_bg' => array( 'type' => 'color', 'default' => '#000000cc', 'label' => __pl('bg_color'), 'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'background-color:{{val}}'], 'req' => [ 'popup_overlay_back' => 'bg_color', 'popup_overlay' => 'true'], ), 'popup_overlay_bg_gradient' => [ 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100', 'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'req' => ['popup_overlay_back' => 'gradient', 'popup_overlay' => 'true'], ], ), 'close_button' => array( 'popup_overlay_close' => array( 'type' => 'checkbox', 'label' => __pl('close_by_overlay'), 'addAttr' => 'data-overlay_close="{{popup_overlay_close}}"', 'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'pointer-events: all'], ), 'popup_sel_close' => array( 'type' => 'checkbox', 'label' => __pl('close_by_selector'), ), 'popup_selector_close' => array( 'type' => 'text', 'label' => __pl('ele_selector'), 'addAttr' => 'data-selector_close="{{popup_selector_close}}"', 'req' => [ 'popup_sel_close' => 'true'], ), 'popup_cbtn' => array( 'type' => 'checkbox', 'label' => __pl('close_button'), 'default' => true, 'addAttr' => 'data-popup_cbtn="{{popup_cbtn}}"', 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'display:block'], ), 'popup_cbtn_position' => array( 'type' => 'select', 'label' => __pl('position'), 'default' => 'inside', 'list' => array( 'inside' => __pl('inside'), 'outside' => __pl('outside'), ), 'show' => [ 'popup_cbtn' => 'true'], 'addAttr' => 'data-popup_cbtn_position="{{popup_cbtn_position}}"', ), 'popup_cbtn_v_position' => array( 'type' => 'slider', 'label' => __pl('verticle_postion'), 'screen' => 1, 'units' => ['%', 'px'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'top:{{val}}'], 'show' => [ 'popup_cbtn' => 'true'], ), 'popup_cbtn_h_position' => array( 'type' => 'slider', 'label' => __pl('horizontal_pos'), 'screen' => 1, 'units' => ['%', 'px'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'left:{{val}}'], 'show' => [ 'popup_cbtn' => 'true'], ), 'popup_cbtn_size' => array( 'type' => 'slider', 'label' => __pl('size'), 'screen' => 1, 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'font-size:{{val}}px'], 'show' => [ 'popup_cbtn' => 'true'], ), 'popup_cbtn_colors' => array( 'type' => 'radio', 'label' => __pl('colors'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'show' => [ 'popup_cbtn' => 'true'], ), 'popup_cbtn_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'color:{{val}}'], 'show' => [ 'popup_cbtn_colors' => 'normal', 'popup_cbtn' => 'true'], ), 'popup_cbtn_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'background-color:{{val}}'], 'show' => [ 'popup_cbtn_colors' => 'normal', 'popup_cbtn' => 'true'], ), 'popup_cbtn_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close:hover' => 'color:{{val}}'], 'show' => [ 'popup_cbtn_colors' => 'hover', 'popup_cbtn' => 'true'], ), 'popup_cbtn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close:hover' => 'background-color:{{val}}'], 'show' => [ 'popup_cbtn_colors' => 'hover', 'popup_cbtn' => 'true'], ), 'popup_cbtn_border_type' => [ 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => [ 'popup_cbtn' => 'true'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'border-style: {{val}}'], ], 'popup_cbtn_border_width' => [ 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '1,1,1,1', 'units' => ['px', 'em'], 'screen' => 1, 'show' => [ 'popup_cbtn' => 'true'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ], 'popup_cbtn_border_color' => [ 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#CCC', 'screen' => 1, 'show' => [ 'popup_cbtn' => 'true'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'border-color: {{val}}'], ], 'popup_cbtn_border_radius' => [ 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', 'em', '%'], 'screen' => 1, 'show' => [ 'popup_cbtn' => 'true'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => '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]}};'], ], 'popup_cbtn_border_padding' => [ 'type' => 'padding', 'label' => __pl('padding'), 'units' => ['px', 'em', '%'], 'screen' => 1, 'show' => [ 'popup_cbtn' => 'true'], 'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'], ], ), 'action_triggers' => array( 'trig_click' => array( 'type' => 'checkbox', 'label' => __pl('trig_onclick'), 'addAttr' => 'data-trig_click="{{trig_click}}"', ), 'trig_click_ele' => array( 'type' => 'text', 'label' => __pl('ele_selector'), 'addAttr' => 'data-trig_click_ele="{{trig_click_ele}}"', 'req' => [ 'trig_click' => 'true'], ), 'trig_load' => array( 'type' => 'checkbox', 'label' => __pl('trig_onload'), 'addAttr' => 'data-trig_load="{{trig_load}}"', ), 'trig_load_sec' => array( 'type' => 'spinner', 'label' => __pl('within_sec'), 'min' => 1, 'step' => 0.1, 'req' => [ 'trig_load' => 'true'], 'addAttr' => 'data-trig_load_sec="{{trig_load_sec}}"', ), 'trig_scroll' => array( 'type' => 'checkbox', 'label' => __pl('trig_onscroll'), 'addAttr' => 'data-trig_scroll="{{trig_scroll}}"', ), 'trig_scroll_dir' => array( 'type' => 'select', 'label' => __pl('scroll_direction'), 'default' => 'down', 'list' => array( 'down' => __pl('down'), 'up' => __pl('up'), ), 'addAttr' => 'data-trig_scroll_dir="{{trig_scroll_dir}}"', 'req' => [ 'trig_scroll' => 'true'], ), 'trig_scroll_per' => array( 'type' => 'spinner', 'label' => __pl('within_per'), 'min' => 1, 'step' => 1, 'max' => 100, 'req' => ['trig_scroll' => 'true', 'trig_scroll_dir' => 'down'], 'addAttr' => 'data-trig_scroll_per="{{trig_scroll_per}}"', ), 'trig_scroll_to_ele' => array( 'type' => 'checkbox', 'label' => __pl('trig_onscroll_to_ele'), 'addAttr' => 'data-trig_scroll_to_ele="{{trig_scroll_to_ele}}"', ), 'trig_scroll_to_ele_sel' => array( 'type' => 'text', 'label' => __pl('ele_selector'), 'req' => [ 'trig_scroll_to_ele' => 'true'], 'addAttr' => 'data-trig_scroll_to_ele_sel="{{trig_scroll_to_ele_sel}}"', ), 'trig_page_exit_intent' => array( 'type' => 'checkbox', 'label' => __pl('trig_onpage_exit_intent'), 'addAttr' => 'data-trig_page_exit_intent="{{trig_page_exit_intent}}"', ), 'trig_before_load' => array( 'type' => 'checkbox', 'label' => __pl('trig_beforeLoad'), 'addAttr' => 'data-trig_before_load="{{trig_before_load}}"', 'desc' => __pl('popup_load_desc') ), ), 'advance_options' => array( 'popup_multi_time' => array( 'type' => 'checkbox', 'label' => __pl('popup_multi_time'), 'addAttr' => 'data-popup_multi_time="{{popup_multi_time}}"', ), 'popup_cookie_session' => array( 'type' => 'checkbox', 'label' => __pl('popup_cookie_session'), 'addAttr' => 'data-popup_cookie_session="{{popup_cookie_session}}"', ), 'popup_cookie_close' => array( 'type' => 'checkbox', 'label' => __pl('popup_cookie_close'), 'addAttr' => 'data-popup_cookie_close="1"', 'req' => ['popup_cookie_session' => 'true'] ), 'popup_cookie_selector' => array( 'type' => 'text', 'label' => __pl('popup_cookie_selector'), 'desc' => __pl('popup_cookie_selector_exp'), 'addAttr' => 'data-popup_cookie_selector="{{popup_cookie_selector}}"', 'req' => ['popup_cookie_session' => 'true'] ), 'popup_cookie_name' => array( 'type' => 'text', 'label' => __pl('popup_cookie_name'), 'default' => '', // Make it blank to assigned from live.php 'addAttr' => 'data-popup_cookie_name="{{popup_cookie_name}}"', 'req' => ['popup_cookie_session' => 'true'] ), 'popup_cookie_exp' => array( 'type' => 'text', 'label' => __pl('popup_cookie_exp'), 'default' => 30, 'addAttr' => 'data-popup_cookie_exp="{{popup_cookie_exp}}"', 'req' => ['popup_cookie_session' => 'true'] ), 'popup_auto_close' => array( 'type' => 'spinner', 'label' => __pl('auto_close'), 'addAttr' => 'data-popup_auto_close="{{popup_auto_close}}"', ), ), 'styles' => array( 'popup_styles' => __pl('popup_styles'), 'overlay' => __pl('overlay'), 'close_button' => __pl('close_style'), 'action_triggers' => __pl('action_triggers'), 'advance_options' => __pl('advance_options'), ), ) ); // Timeline widget pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_timeline', array( 'name' => __pl('timeline'), 'group' => 'other', 'icon' => 'fas fa-stream', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'holder' => '.pagelayer-timeline', 'innerHTML' => 'text', 'html' => '<div class="pagelayer-timeline"> </div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('timeline_item'), 'sc' => PAGELAYER_SC_PREFIX.'_timeline_item', 'item_label' => array( 'default' => __pl('timeline_item'), 'param' => 'text' ), 'count' => 2, 'text' => __pl('add_timeline_item'), ), 'timeline_centerline_bg_color' => array( 'type' => 'color', 'label' => __pl('seperator_color'), 'default' => 'grey', 'css' => ['{{element}} .pagelayer-timeline::after' => 'background-color: {{val}};'], ), 'vindent' => array( 'type' => 'spinner', 'label' => __pl('space_between_col'), 'min' => 10, 'step' => 1, 'max' => 100, 'default' => 20, 'screen' => 1, 'css' => ['{{element}} .pagelayer-timeline-container' => 'padding-top:{{val}}px; padding-bottom:{{val}}px;'], ) ), )); // Timeline items pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_timeline_item', array( 'name' => __pl('timeline_item'), 'icon' => 'fas fa-stream', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_timeline'], 'html' => '<div class="pagelayer-timeline-container pagelayer-timeline-{{side}}"> <div class="pagelayer-timeline-container-left"> <div class="pagelayer-timeline-content"> <div if={{left_heading_text}} class="pagelayer-heading-holder">{{left_heading_text}}</div> <div if={{left_paragraph_text}} class="pagelayer-text-holder">{{left_paragraph_text}}</div> </div> </div> <div class="pagelayer-timeline-center-circle-container"> <div class="pagelayer-timeline-center-circle"> <i if="{{timeline_circle_icon}}" class="{{timeline_circle_icon}} pagelayer-timeline-circle-icon"></i> <div if="{{timeline_circle_text}}" class="pagelayer-text-holder pagelayer-timeline-circle-text">{{timeline_circle_text}}</div> </div> </div> <div class="pagelayer-timeline-container-right"> <div class="pagelayer-timeline-content"> <div if={{right_heading_text}} class="pagelayer-heading-holder">{{right_heading_text}}</div> <div if={{right_paragraph_text}} class="pagelayer-text-holder">{{right_paragraph_text}}</div> </div> </div> </div>', 'params' => array( 'text' => array( 'type' => 'text', 'label' => __pl('text'), 'default' => __pl('timeline_item') ), 'side' => array( 'label' => __pl('side'), 'type' => 'radio', 'default' => 'both', 'list' => array( 'left' => __pl('left'), 'right' => __pl('right'), 'both' => __pl('both') ) ), 'hindent' => array( 'type' => 'spinner', 'label' => __pl('icon_spacing'), 'screen' => 1, 'step' => 1, 'min' => 0, 'max' => 40, 'default' => 5, 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'margin-right:{{val}}px;', '{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'margin-left:{{val}}px;'], ) ), 'timeline_circle' => [ 'timeline_pos_y' => array( 'label' => __pl('verticle_postion'), 'type' => 'slider', 'step' => 1, 'min' => 0, 'max' => 80, 'default' => 20, 'screen' => 1, 'units' => ['%'], 'css' => ['{{element}} .pagelayer-timeline-center-circle' => 'top: {{val}};'], ), 'timeline_circle_radius' => array( 'type' => 'slider', 'label' => __pl('radius'), 'screen' => 1, 'step' => 1, 'min' => 20, 'max' => 70, 'default' => 40, 'units' => ['px'], 'css' => ['{{element}} .pagelayer-timeline-center-circle' => 'width:{{val}}; height:{{val}}; left:calc(50% - {{val}}/2);'], ), 'timeline_circle_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-timeline-center-circle' => 'background-color: {{val}};'], ), 'timeline_circle_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'default' => 'solid', 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'css' => ['{{element}} .pagelayer-timeline-center-circle'=> 'border-style: {{val}}'], ), 'timeline_circle_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '4,4,4,4', 'units' => ['px', 'em'], 'screen' => 1, 'req' => [ '!timeline_circle_border_type' => '' ], 'css' =>['{{element}} .pagelayer-timeline-center-circle' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ), 'timeline_circle_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#000', 'screen' => 1, 'req' => [ '!timeline_circle_border_type' => '' ], 'css' =>['{{element}} .pagelayer-timeline-center-circle' => 'border-color: {{val}}'], ), 'timeline_circle_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', 'em', '%'], 'screen' => 1, 'show' => ['timeline_circle_border_hover' => ''], 'req' => [ '!timeline_circle_border_type' => '' ], 'default' => '50,50,50,50', 'css' =>['{{element}} .pagelayer-timeline-center-circle' => '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]}};'], ), 'timeline_circle_icon' => array( 'type' => 'icon', 'label' => __pl('service_box_font_icon_label'), 'default' => '', ), 'timeline_circle_icon_size' => array( 'label' => __pl('icon_size'), 'type' => 'slider', 'step' => 1, 'min' => 5, 'max' => 40, 'default' => 10, 'screen' => 1, 'units' => ['px'], 'css' => ['{{element}} .pagelayer-timeline-center-circle .pagelayer-timeline-circle-icon' => 'font-size:{{val}}'], 'show' => ['!timeline_circle_icon' => ''], ), 'timeline_circle_icon_color' => array( 'type' => 'color', 'label' => __pl('icon_color'), 'show' => ['!timeline_circle_icon' => ''], 'css' => ['{{element}} .pagelayer-timeline-center-circle .pagelayer-timeline-circle-icon' => 'color: {{val}};'], ), 'timeline_circle_text' => array( 'type' => 'editor', 'label' => __pl('text'), 'default' => '', 'desc' => __pl('Edit the content here or edit directly in the Editor'), 'edit' => '.pagelayer-timeline-circle-text', // Edit the text and also mirror the same 'keep_prop' => 1 ) ], // timeline left part code starts 'left' => [ 'left_heading_text' => array( 'type' => 'textarea', 'label' => __pl('heading_name'), 'default' => '<h2>1998</h2>', 'desc' => __pl('Edit the heading here'), 'edit' => '.pagelayer-timeline-container-left .pagelayer-timeline-content .pagelayer-heading-holder', // Edit the text and also mirror the same 'req' => ['side' => ['both','left']], ), 'left_paragraph_text' => array( 'type' => 'editor', 'label' => __pl('text'), 'default' => 'Lorem ipsum dolor sit amet', 'desc' => __pl('Edit the content here or edit directly in the Editor'), 'edit' => '.pagelayer-timeline-container-left .pagelayer-timeline-content .pagelayer-text-holder', // Edit the text and also mirror the same 'req' => ['side' => ['both','left']] ), 'left_align' => array( 'label' => __pl('content_align'), 'type' => 'radio', 'addAttr' => 'align="{{align}}"', 'screen' => 1, 'default' => 'left', 'css' => ['{{element}} .pagelayer-timeline-container-left' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'req' => ['side' => ['both','left']] ), 'left_part_width' => array( 'type' => 'spinner', 'label' => __pl('width'), 'screen' => 1, 'step' => 1, 'min' => 0, 'max' => 100, 'default' => 90, 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'width:{{val}}%'], ), 'left_heading_state' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => ['side' => ['both','light']] ), 'left_color' => array( 'type' => 'color', 'label' => __pl('heading_color'), 'default' => '#111111', 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder *' => 'color:{{val}}'], 'show' => ['left_heading_state' => 'normal'] ), 'left_heading_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-timeline-container-left .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;', '{{element}} .pagelayer-timeline-container-left .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;'], 'show' => ['left_heading_state' => 'normal'] ), 'left_heading_text_shadow' => array( 'type' => 'shadow', 'label' => __pl('text_shadow'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'], 'show' => ['left_heading_state' => 'normal'] ), 'left_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder:hover *' => 'color:{{val}}', '{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder:hover' => 'color:{{val}}'], 'show' => ['left_heading_state' => 'hover'] ), 'left_heading_typo_hover' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder:hover *' => '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;', '{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder:hover' => '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;'], 'show' => ['left_heading_state' => 'hover'] ), 'left_heading_text_shadow_hover' => array( 'type' => 'shadow', 'label' => __pl('text_shadow'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder:hover' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'], 'show' => ['left_heading_state' => 'hover'] ), 'left_bg_hover' => array( 'type' => 'radio', 'label' => __pl('row_bg_styles'), 'default' => '', 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), ], 'req' => ['side' => ['both','left']] ), 'left_bg_type' => array( 'type' => 'radio', 'label' => __pl('background_type'), 'default' => '', 'list' => [ '' => __pl('none'), 'color' => __pl('color'), 'gradient' => __pl('gradient'), 'image' => __pl('image'), ], 'show' => ['left_bg_hover' => ''] ), 'left_bg_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-color: {{val}};'], 'show' => ['left_bg_hover' => ''], 'req' => ['left_bg_type' => 'color'] ), 'left_timeline_gradient' => array( 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100', 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'show' => ['left_bg_hover' => ''], 'req' => ['left_bg_type' => 'gradient'] ), 'left_img_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '', 'desc' => __pl('fallback_color'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-color: {{val}};'], 'show' => ['left_bg_hover' => ''], 'req' => ['left_bg_type' => 'image'] ), 'left_bg_img' => array( 'type' => 'image', 'label' => __pl('image'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-image: url("{{{left_bg_img-url}}}");'], 'show' => ['left_bg_hover' => ''], 'req' => ['left_bg_type' => 'image'] ), 'left_bg_attachment' => array( 'type' => 'select', 'label' => __pl('bg_attachment'), 'list' => [ '' => __pl('default'), 'scroll' => __pl('scroll'), 'fixed' => __pl('fixed') ], 'show' => ['left_bg_hover' => ''], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-attachment: {{val}};'], 'req' => ['left_bg_type' => 'image'] ), 'left_bg_posx' => array( 'type' => 'select', 'label' => __pl('bg_posx'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'left' => __pl('left'), 'right' => __pl('right'), 'custom' => __pl('custom') ], 'show' => ['left_bg_hover' => ''], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-position-x: {{val}};'], 'req' => ['left_bg_type' => 'image'] ), 'left_bg_posx_custom' => array( 'label' => __pl('custom_x'), 'type' => 'slider', 'step' => 1, 'min' => -5000, 'max' => 5000, 'screen' => 1, 'units' => ['px', 'em', '%'], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-position-x: {{val}};'], 'req' => array( 'left_bg_posx' => 'custom' ), ), 'left_bg_posy' => array( 'type' => 'select', 'label' => __pl('bg_posy'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'top' => __pl('top'), 'bottom' => __pl('bottom'), 'custom' => __pl('custom') ], 'show' => ['left_bg_hover' => ''], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-position-y: {{val}};'], 'req' => ['left_bg_type' => 'image'] ), 'left_bg_posy_custom' => array( 'label' => __pl('custom_y'), 'type' => 'slider', 'step' => 1, 'min' => -5000, 'max' => 5000, 'screen' => 1, 'units' => ['px', 'em', '%'], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-position-y: {{val}};'], 'req' => array( 'left_bg_posy' => 'custom' ), ), 'left_bg_repeat' => array( 'type' => 'select', 'label' => __pl('bg_repeat'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-repeat: {{val}};'], 'list' => [ '' => __pl('default'), 'repeat' => __pl('repeat'), 'no-repeat' => __pl('no-repeat'), 'repeat-x' => __pl('repeat-x'), 'repeat-y' => __pl('repeat-y'), ], 'show' => ['left_bg_hover' => ''], 'req' => ['left_bg_type' => 'image'] ), 'left_bg_size' => array( 'type' => 'select', 'label' => __pl('bg_size'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-size: {{val}};'], 'list' => [ '' => __pl('default'), 'cover' => __pl('cover'), 'contain' => __pl('contain') ], 'show' => ['left_bg_hover' => ''], 'req' => ['left_bg_type' => 'image'] ), 'left_bg_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('bg_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => ['left_bg_hover' => 'hover'] ), 'left_bg_type_hover' => array( 'type' => 'radio', 'label' => __pl('background_type'), 'default' => '', 'list' => [ '' => __pl('none'), 'color' => __pl('color'), 'gradient' => __pl('gradient'), 'image' => __pl('image'), ], 'show' => ['left_bg_hover' => 'hover'] ), 'left_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('color_hover'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background: {{val}};'], 'show' => ['left_bg_hover' => 'hover'], 'req' => ['left_bg_type_hover' => 'color'] ), 'left_bg_gradient_hover' => array( 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6,25,#72e584,75,#2ca4eb,100', 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'show' => ['left_bg_hover' => 'hover'], 'req' => ['left_bg_type_hover' => 'gradient'] ), 'left_bg_img_hover' => array( 'type' => 'image', 'label' => __pl('image_hover'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background: url("{{{left_bg_img_hover-url}}}");'], 'show' => ['left_bg_hover' => 'hover'], 'req' => ['left_bg_type_hover' => 'image'] ), 'left_bg_attachment_hover' => array( 'type' => 'select', 'label' => __pl('background_attachment'), 'list' => [ '' => __pl('default'), 'scroll' => __pl('scroll'), 'fixed' => __pl('fixed') ], 'show' => ['left_bg_hover' => 'hover'], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-attachment: {{val}};'], 'req' => ['left_bg_type_hover' => 'image'] ), 'left_bg_posx_hover' => array( 'type' => 'select', 'label' => __pl('horizontal_pos'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'left' => __pl('left'), 'right' => __pl('right') ], 'show' => ['left_bg_hover' => 'hover'], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-position-x: {{val}};'], 'req' => ['left_bg_type_hover' => 'image'] ), 'left_bg_posy_hover' => array( 'type' => 'select', 'label' => __pl('verticle_pos'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'top' => __pl('top'), 'bottom' => __pl('bottom') ], 'show' => ['left_bg_hover' => 'hover'], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-position-y: {{val}};'], 'req' => ['left_bg_type_hover' => 'image'] ), 'left_bg_repeat_hover' => array( 'type' => 'select', 'label' => __pl('repeat'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-repeat: {{val}};'], 'list' => [ '' => __pl('default'), 'repeat' => __pl('repeat'), 'no-repeat' => __pl('no-repeat'), 'repeat-x' => __pl('repeat-x'), 'repeat-y' => __pl('repeat-y'), ], 'show' => ['left_bg_hover' => 'hover'], 'req' => ['left_bg_type_hover' => 'image'] ), 'left_bg_size_hover' => array( 'type' => 'select', 'label' => __pl('size'), 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-size: {{val}};'], 'list' => [ '' => __pl('default'), 'cover' => __pl('cover'), 'contain' => __pl('contain') ], 'show' => ['left_bg_hover' => 'hover'], 'req' => ['left_bg_type_hover' => 'image'] ), 'left_timeline_border_hover' => array( 'type' => 'radio', 'label' => '', 'default' => '', 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), ], 'req' => ['side' => ['both','left']] ), 'left_timeline_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'default' => 'solid', 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['left_timeline_border_hover' => ''], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content '=> 'border-style: {{val}}'], ), 'left_timeline_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '1,1,1,1', 'units' => ['px', 'em'], 'screen' => 1, 'show' => [ 'left_timeline_border_hover' => '' ], 'req' => [ '!left_timeline_border_type' => '' ], 'css' =>['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ), 'left_timeline_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#CCC', 'screen' => 1, 'show' => [ 'left_timeline_border_hover' => '' ], 'req' => [ '!left_timeline_border_type' => '' ], 'css' =>['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'border-color: {{val}}'], ), 'left_timeline_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', 'em'], 'screen' => 1, 'show' => ['left_timeline_border_hover' => ''], 'req' => [ '!left_timeline_border_type' => '' ], 'default' => '6,6,6,6', 'css' =>['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => '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]}};'], ), 'left_timeline_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['left_timeline_border_hover' => 'hover'], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'border-style: {{val}}'], ), 'left_timeline_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'units' => ['px', 'em'], 'screen' => 1, 'show' => [ 'left_timeline_border_hover' => 'hover' ], 'req' => [ '!left_timeline_border_type_hover' => '' ], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ), 'left_timeline_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'screen' => 1, 'show' => [ 'left_timeline_border_hover' => 'hover' ], 'req' => [ '!left_timeline_border_type_hover' => '' ], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'border-color: {{val}}'], ), 'left_timeline_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'units' => ['px', 'em'], 'show' => [ 'left_timeline_border_hover' => 'hover' ], 'req' => [ '!left_timeline_border_type_hover' => '' ], 'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => '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]}};'], ), ], // timeline right part code starts 'right' => [ 'right_heading_text' => array( 'type' => 'textarea', 'label' => __pl('heading_name'), 'default' => '<h2>1998</h2>', 'desc' => __pl('Edit the heading here'), 'edit' => '.pagelayer-timeline-container-right .pagelayer-timeline-content .pagelayer-heading-holder', // Edit the text and also mirror the same 'req' => ['side' => ['both','right']] ), 'right_paragraph_text' => array( 'type' => 'editor', 'label' => __pl('text'), 'default' => 'Lorem ipsum dolor sit amet', 'desc' => __pl('Edit the content here or edit directly in the Editor'), 'edit' => '.pagelayer-timeline-container-right .pagelayer-timeline-content .pagelayer-text-holder', // Edit the text and also mirror the same 'req' => ['side' => ['both','right']] ), 'right_align' => array( 'label' => __pl('content_align'), 'type' => 'radio', 'addAttr' => 'align="{{align}}"', 'screen' => 1, 'default' => 'left', 'css' => ['{{element}} .pagelayer-timeline-container-right' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'req' => ['side' => ['both','right']] ), 'right_part_width' => array( 'type' => 'spinner', 'label' => __pl('width'), 'default' => '400', 'screen' => 1, 'step' => 1, 'min' => 0, 'max' => 100, 'default' => 90, 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'width:{{val}}%'], ), 'right_heading_state' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => ['side' => ['both','right']] ), 'right_color' => array( 'type' => 'color', 'label' => __pl('heading_color'), 'default' => '#111111', 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder *' => 'color:{{val}}'], 'show' => ['right_heading_state' => 'normal'] ), 'right_heading_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-timeline-container-right .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;', '{{element}} .pagelayer-timeline-container-right .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;'], 'show' => ['right_heading_state' => 'normal'] ), 'right_heading_text_shadow' => array( 'type' => 'shadow', 'label' => __pl('text_shadow'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'], 'show' => ['right_heading_state' => 'normal'] ), 'right_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder:hover *' => 'color:{{val}}', '{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder:hover' => 'color:{{val}}'], 'show' => ['right_heading_state' => 'hover'] ), 'right_heading_typo_hover' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder:hover *' => '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;', '{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder:hover' => '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;'], 'show' => ['right_heading_state' => 'hover'] ), 'right_heading_text_shadow_hover' => array( 'type' => 'shadow', 'label' => __pl('text_shadow'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder:hover' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'], 'show' => ['right_heading_state' => 'hover'] ), 'right_bg_hover' => array( 'type' => 'radio', 'label' => __pl('row_bg_styles'), 'default' => '', 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), ], 'show' => ['side' => ['both','right']] ), 'right_bg_type' => array( 'type' => 'radio', 'label' => __pl('background_type'), 'default' => '', 'list' => [ '' => __pl('none'), 'color' => __pl('color'), 'gradient' => __pl('gradient'), 'image' => __pl('image'), ], 'show' => ['right_bg_hover' => ''] ), 'right_bg_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-color: {{val}};'], 'show' => ['right_bg_hover' => ''], 'req' => ['right_bg_type' => 'color'] ), 'right_bg_gradient' => array( 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100', 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'show' => ['right_bg_hover' => ''], 'req' => ['right_bg_type' => 'gradient'] ), 'right_img_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '', 'desc' => __pl('fallback_color'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-color: {{val}};'], 'show' => ['right_bg_hover' => ''], 'req' => ['right_bg_type' => 'image'] ), 'right_bg_img' => array( 'type' => 'image', 'label' => __pl('image'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-image: url("{{{right_bg_img-url}}}");'], 'show' => ['right_bg_hover' => ''], 'req' => ['right_bg_type' => 'image'] ), 'right_bg_attachment' => array( 'type' => 'select', 'label' => __pl('bg_attachment'), 'list' => [ '' => __pl('default'), 'scroll' => __pl('scroll'), 'fixed' => __pl('fixed') ], 'show' => ['right_bg_hover' => ''], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-attachment: {{val}};'], 'req' => ['right_bg_type' => 'image'] ), 'right_bg_posx' => array( 'type' => 'select', 'label' => __pl('bg_posx'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'left' => __pl('left'), 'right' => __pl('right'), 'custom' => __pl('custom') ], 'show' => ['right_bg_hover' => ''], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-position-x: {{val}};'], 'req' => ['right_bg_type' => 'image'] ), 'right_bg_posx_custom' => array( 'label' => __pl('custom_x'), 'type' => 'slider', 'step' => 1, 'min' => -5000, 'max' => 5000, 'screen' => 1, 'units' => ['px', 'em', '%'], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-position-x: {{val}};'], 'req' => array( 'right_bg_posx' => 'custom' ), ), 'right_bg_posy' => array( 'type' => 'select', 'label' => __pl('bg_posy'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'top' => __pl('top'), 'bottom' => __pl('bottom'), 'custom' => __pl('custom') ], 'show' => ['right_bg_hover' => ''], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-position-y: {{val}};'], 'req' => ['right_bg_type' => 'image'] ), 'right_bg_posy_custom' => array( 'label' => __pl('custom_y'), 'type' => 'slider', 'step' => 1, 'min' => -5000, 'max' => 5000, 'screen' => 1, 'units' => ['px', 'em', '%'], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-position-y: {{val}};'], 'req' => array( 'right_bg_posy' => 'custom' ), ), 'right_bg_repeat' => array( 'type' => 'select', 'label' => __pl('bg_repeat'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-repeat: {{val}};'], 'list' => [ '' => __pl('default'), 'repeat' => __pl('repeat'), 'no-repeat' => __pl('no-repeat'), 'repeat-x' => __pl('repeat-x'), 'repeat-y' => __pl('repeat-y'), ], 'show' => ['right_bg_hover' => ''], 'req' => ['right_bg_type' => 'image'] ), 'right_bg_size' => array( 'type' => 'select', 'label' => __pl('bg_size'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-size: {{val}};'], 'list' => [ '' => __pl('default'), 'cover' => __pl('cover'), 'contain' => __pl('contain') ], 'show' => ['right_bg_hover' => ''], 'req' => ['right_bg_type' => 'image'] ), 'right_bg_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('ele_bg_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => ['right_bg_hover' => 'hover'] ), 'right_bg_type_hover' => array( 'type' => 'radio', 'label' => __pl('background_type'), 'default' => '', 'list' => [ '' => __pl('none'), 'color' => __pl('color'), 'gradient' => __pl('gradient'), 'image' => __pl('image'), ], 'show' => ['right_bg_hover' => 'hover'] ), 'right_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('color_hover'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background: {{val}};'], 'show' => ['right_bg_hover' => 'hover'], 'req' => ['right_bg_type_hover' => 'color'] ), 'right_bg_gradient_hover' => array( 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6,25,#72e584,75,#2ca4eb,100', 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'show' => ['right_bg_hover' => 'hover'], 'req' => ['right_bg_type_hover' => 'gradient'] ), 'bg_img_hover' => array( 'type' => 'image', 'label' => __pl('image_hover'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background: url("{{{bg_img_hover-url}}}");'], 'show' => ['right_bg_hover' => 'hover'], 'req' => ['right_bg_type_hover' => 'image'] ), 'right_bg_attachment_hover' => array( 'type' => 'select', 'label' => __pl('background_attachment'), 'list' => [ '' => __pl('default'), 'scroll' => __pl('scroll'), 'fixed' => __pl('fixed') ], 'show' => ['right_bg_hover' => 'hover'], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-attachment: {{val}};'], 'req' => ['right_bg_type_hover' => 'image'] ), 'right_bg_posx_hover' => array( 'type' => 'select', 'label' => __pl('horizontal_pos'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'left' => __pl('left'), 'right' => __pl('right') ], 'show' => ['right_bg_hover' => 'hover'], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-position-x: {{val}};'], 'req' => ['right_bg_type_hover' => 'image'] ), 'right_bg_posy_hover' => array( 'type' => 'select', 'label' => __pl('verticle_pos'), 'list' => [ '' => __pl('default'), 'center' => __pl('center'), 'top' => __pl('top'), 'bottom' => __pl('bottom') ], 'show' => ['right_bg_hover' => 'hover'], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-position-y: {{val}};'], 'req' => ['right_bg_type_hover' => 'image'] ), 'right_bg_repeat_hover' => array( 'type' => 'select', 'label' => __pl('repeat'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-repeat: {{val}};'], 'list' => [ '' => __pl('default'), 'repeat' => __pl('repeat'), 'no-repeat' => __pl('no-repeat'), 'repeat-x' => __pl('repeat-x'), 'repeat-y' => __pl('repeat-y'), ], 'show' => ['right_bg_hover' => 'hover'], 'req' => ['right_bg_type_hover' => 'image'] ), 'right_bg_size_hover' => array( 'type' => 'select', 'label' => __pl('size'), 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-size: {{val}};'], 'list' => [ '' => __pl('default'), 'cover' => __pl('cover'), 'contain' => __pl('contain') ], 'show' => ['right_bg_hover' => 'hover'], 'req' => ['right_bg_type_hover' => 'image'] ), 'right_timeline_border_hover' => array( 'type' => 'radio', 'label' => '', 'default' => '', 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), ], 'req' => ['side' => ['both','right']] ), 'right_timeline_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'default' => 'solid', 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['right_timeline_border_hover' => ''], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content '=> 'border-style: {{val}}'], ), 'right_timeline_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '1,1,1,1', 'units' => ['px', 'em'], 'screen' => 1, 'show' => [ 'right_timeline_border_hover' => '' ], 'req' => [ '!right_timeline_border_type' => '' ], 'css' =>['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ), 'right_timeline_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#CCC', 'screen' => 1, 'show' => [ 'right_timeline_border_hover' => '' ], 'req' => [ '!right_timeline_border_type' => '' ], 'css' =>['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'border-color: {{val}}'], ), 'right_timeline_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', 'em'], 'screen' => 1, 'show' => ['right_timeline_border_hover' => ''], 'req' => [ '!right_timeline_border_type' => '' ], 'default' => '6,6,6,6', 'css' =>['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => '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]}};'], ), 'right_timeline_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['right_timeline_border_hover' => 'hover'], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'border-style: {{val}}'], ), 'right_timeline_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'units' => ['px', 'em'], 'screen' => 1, 'show' => [ 'right_timeline_border_hover' => 'hover' ], 'req' => [ '!right_timeline_border_type_hover' => '' ], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'], ), 'right_timeline_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'screen' => 1, 'show' => [ 'right_timeline_border_hover' => 'hover' ], 'req' => [ '!right_timeline_border_type_hover' => '' ], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'border-color: {{val}}'], ), 'right_timeline_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'units' => ['px', 'em'], 'show' => ['right_timeline_border_hover' => 'hover'], 'req' => [ '!right_timeline_border_type_hover' => '' ], 'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => '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]}};'], ), ], 'styles' => [ 'timeline_circle' => __pl('timeline_center_circle'), 'left' => __pl('left'), 'right' => __pl('right'), ] ) ); // Before After Slider pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_before_after', array( 'name' => __pl('before_after_image'), 'group' => 'other', 'html' => '<div class="pagelayer-before-after-container" data-resize-event="{{resize_event}}"> <div class="pagelayer-before-after-slider"> <div class="pagelayer-before-image"> <img src="{{{before_image-url}}}"/> </div> <div class="pagelayer-after-image"> <img src="{{{after_image-url}}}"/> </div> <div class="pagelayer-resizer {{icon}} {{icon_size}} "></div> <button if="{{bf_button}}" class="pagelayer-before-btn">{{before_btn_text}}</button> <button if="{{bf_button}}" class="pagelayer-after-btn">{{after_btn_text}}</button> </div> </div>', 'params' => array( 'before_image' => array( 'type' => 'image', 'label' => __pl('before_image'), 'default' => PAGELAYER_URL.'/images/default-image.png', 'retina' => 1, ), 'after_image' => array( 'type' => 'image', 'label' => __pl('after_image'), 'default' => PAGELAYER_URL.'/images/default-image.png', 'retina' => 1, ), 'before_after_direction' => array( 'type' => 'select', 'label' => __pl('slider_direction'), 'default' => 'horizontal', 'addClass' => ['{{element}} .pagelayer-before-after-slider' => 'pagelayer-before-after-slider-{{val}}'], 'list' => array( 'horizontal' => __pl('horizontal'), 'vertical' => __pl('vertical'), ) ), 'offset_horizontal' => array( 'type' => 'spinner', 'label' => __pl('slider_offset'), 'min' => '1', 'max' => '99.5', 'step' => '1', 'screen' => 1, 'css' => ['{{element}} .pagelayer-after-image' => 'clip-path:polygon({{val}}% 0%, 100% 0%, 100% 100%, {{val}}% 100%);','{{element}} .pagelayer-resizer' => 'left:{{val}}%;'], 'req' => ['before_after_direction' => 'horizontal'] ), 'offset_vertical' => array( 'type' => 'spinner', 'label' => __pl('slider_offset'), 'min' => '1', 'max' => '100', 'step' => '1', 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-after-slider-vertical .pagelayer-after-image' => 'clip-path:polygon(0px {{val}}%, 100% {{val}}%, 100% 100%, 0% 100%)','{{element}} .pagelayer-before-after-slider-vertical .pagelayer-resizer' => 'top:{{val}}%;'], 'req' => ['before_after_direction' => 'vertical'] ), 'resize_event' => array( 'type' => 'radio', 'label' => __pl('slider_type'), 'default' => 'drag', 'screen' => 1, 'list' => array( 'none' => __pl('none'), 'drag' => __pl('drag'), 'hover' => __pl('hover') ) ), 'custom_height' => array( 'type' => 'checkbox', 'label' => __pl('custom_height'), ), 'height' => array( 'type' => 'spinner', 'label' => __pl('slider_height'), 'min' => '0', 'max' => '1000', 'step' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-after-slider' => 'height:{{val}}px;'], 'req' => ["custom_height" => 'true'] ), 'delay_control' => array( 'type' => 'slider', 'label' => __pl('time'), 'min' => '0.0', 'max' => '1.0', 'step' => '0.1', 'css' => ['{{element}} .pagelayer-resizer,{{element}} .pagelayer-after-image' => 'transition-duration:{{val}}s;'], ) ), 'icon_style' => [ 'icon' => array( 'type' => 'icon', 'label' => __pl('icon'), 'default' => 'fas fa-arrows-alt-h', 'list' => ['arrows-alt-h', 'arrows-alt-v','arrows-alt-h', 'arrow-right', 'arrow-left', 'arrow-circle-right', 'arrow-circle-left', 'arrow-alt-circle-left','arrow-alt-circle-right'], ), 'icon_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-resizer:before' => 'color:{{val}};'], ), 'bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-resizer:before' => 'background: {{val}};'], ), 'icon_size' => array( 'type' => 'select', 'label' => __pl('icon_size'), 'default' => 'pagelayer-icon-mini', 'list' => array( 'pagelayer-icon-mini' => __pl('mini'), 'pagelayer-icon-small' => __pl('small'), 'pagelayer-icon-large' => __pl('large'), 'pagelayer-icon-extra-large' => __pl('extra_large'), 'pagelayer-icon-double-large' => __pl('double_large'), 'pagelayer-icon-custom' => __pl('custom'), ), ), 'icon_size_custom' => array( 'type' => 'spinner', 'label' => __pl('icon_size'), 'min' => '1', 'max' => '100', 'screen' => 1, 'css' => ['{{element}} .pagelayer-resizer:before' => 'font-size: {{val}}px'], 'req' => array( 'icon_size' => 'pagelayer-icon-custom' ), ), 'icon_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-resizer:before' => 'border-style: {{val}}'], 'list' => [ '' => __pl('default'), 'none' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'icon_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-resizer:before' => 'border-color: {{val}};'], 'req' => array( '!icon_border_type' => ['', 'none'], ), ), 'icon_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-resizer:before' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!icon_border_type' => ['', 'none'], ], ), 'icon_border_radius' => array( 'type' => 'slider', 'label' => __pl('border_radius'), 'step' => '1', 'screen' => 1, 'css' => ['{{element}} .pagelayer-resizer:before' => 'border-radius: {{val}}%; -webkit-border-radius: {{val}}%;-moz-border-radius: {{val}}%;'], ), 'bg_size' => array( 'type' => 'slider', 'label' => __pl('icon_bg_size'), 'step' => '1', 'screen' => 1, 'css' => ['{{element}} .pagelayer-resizer:before' => 'padding: {{val}}px;'], ), 'bg_positionHorizontalY' => array( 'type' => 'slider', 'label' => __pl('icon_position'), 'max' => '100', 'min' => '0', 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-after-slider-horizontal .pagelayer-resizer:before' => 'top: {{val}}%; transform: TranslateX(-50%) TranslateY(-{{val}}%) '], 'req' => ['before_after_direction' => 'horizontal'], ), 'bg_positionVerticalX' => array( 'type' => 'slider', 'label' => __pl('icon_position'), 'max' => '100', 'min' => '0', 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-after-slider-vertical .pagelayer-resizer:before' => 'left: {{val}}%; transform: TranslateX(-{{val}}%) TranslateY(-50%)'], 'req' => ['before_after_direction' => 'vertical'], ), ], 'resizer_style' => [ 'resizer' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-resizer' => 'background:{{val}};'], ), 'resizer_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'min' => '0', 'max' => '20', 'screen' => 1, 'css' => ['{{element}} .pagelayer-resizer' => 'width: {{val}}px;'], 'req' => ['before_after_direction' => 'horizontal'] ), 'resizer_width_vertical' => array( 'type' => 'slider', 'label' => __pl('height'), 'min' => '0', 'max' => '20', 'screen' => 1, 'css' => ['{{element}} .pagelayer-resizer' => 'height: {{val}}px;'], 'req' => ['before_after_direction' => 'vertical'] ), ], 'bf_btn_style' =>[ 'bf_button' => array( 'type' => 'checkbox', 'label' => __pl('show_btn') ), 'button_color' => array( 'type' => 'color', 'label' => __pl('color'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'color:{{val}};'], 'req' => array( 'bf_button' => 'true' ), ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'background-color:{{val}};'], 'req' => array( 'bf_button' => 'true' ), ), 'bf_btn_size' => array( 'type' => 'padding', 'label' => __pl('size'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[0]}}px;padding-left:{{val[1]}}px;'], 'req' => [ 'bf_button' => 'true', ] ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'border-style: {{val}};', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'req' => array( 'bf_button' => 'true' ), ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!btn_border_type' => '' ], ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => '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;'], 'req' => array( '!btn_border_type' => '', ), ), 'btn_position' => array( 'type' => 'slider', 'label' => __pl('button_position'), 'max' => '100', 'min' => '0', 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-after-slider-horizontal .pagelayer-before-btn, {{element}} .pagelayer-before-after-slider-horizontal .pagelayer-after-btn' => 'top: {{val}}%;transform: translateY(-{{val}}%);','{{element}} .pagelayer-before-after-slider-vertical .pagelayer-before-btn, {{element}} .pagelayer-before-after-slider-vertical .pagelayer-after-btn' => 'left: {{val}}%;transform: translateX(-{{val}}%);'], 'req' => array( 'bf_button' => 'true', ), ), 'before_btn_text' => array( 'type' => 'text', 'label' => __pl('before_text'), 'default' => __pl('Before'), 'req' => array( 'bf_button' => 'true' ), ), 'after_btn_text' => array( 'type' => 'text', 'label' => __pl('after_text'), 'default' => __pl('After'), 'req' => array( 'bf_button' => 'true' ), ), 'btn_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => '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;'], 'req' => ['bf_button' => 'true'] ), 'before_spacing' => array( 'type' => 'padding', 'label' => __pl('before_button_spacing'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-before-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'], 'req' => ['bf_button' => 'true'] ), 'after_spacing' => array( 'type' => 'padding', 'label' => __pl('after_button_spacing'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-after-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'], 'req' => ['bf_button' => 'true'] ) ], 'styles' => [ 'icon_style' => __pl('icon_style'), 'resizer_style' => __pl('resizer'), 'bf_btn_style' => __pl('Before After Button'), ] ) ); pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_map', array( 'name' => __pl('image_map'), 'group' => 'other', 'html' => ' <div class="pagelayer-imgmap-container"> <div class="pagelayer-imgmap-wrapper"> <svg class="pagelayer-imgmap-svg"> <g>{{pagelayer_map_path}}</g> </svg> <div class="pagelayer-imgmap-coordinates-wraper"></div> </div> <img class="pagelayer-img pagelayer-animation-{{anim_hover}}" src="{{map_img_id}}" title="{{{map_img-id-title}}}" alt="{{{map_img-id-alt}}}" srcset="{{pagelayer-srcset}}" /> </div>', 'params' => array( 'map_img-id' => array( 'type' => 'image', 'label' => __pl('Image'), 'desc' => __pl('image_src_desc'), 'default' => PAGELAYER_URL.'/images/default-image.png', 'retina' => 0, ), 'img_map-size' => array( 'label' => __pl('obj_image_size_label'), 'type' => 'select', 'default' => 'full', 'list' => array( 'full' => __pl('full'), 'large' => __pl('large'), 'medium' => __pl('medium'), 'thumbnail' => __pl('thumbnail'), 'custom' => __pl('custom') ) ), 'custom_size' => array( 'label' => __pl('image_custom_size_label'), 'type' => 'text', 'screen' => 1, 'default' => '100x100', 'sep' => 'x', 'css' => ['{{element}} img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'], 'req' => array( 'img_map-size' => 'custom' ), ), 'align' => array( 'label' => __pl('obj_align_label'), 'type' => 'radio', 'default' => 'center', 'screen' => 1, 'css' => ['{{element}} .pagelayer-imgmap-container' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ) ), 'max-width' => array( 'label' => __pl('max-width-percent'), 'type' => 'slider', 'min' => 0, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} img' => 'max-width: {{val}}%'], ), 'pagelayer_image_map' => array( 'type' => 'hidden', 'default' => '' ), ), 'area_styles' => [ 'show_area' =>array( 'label' => __pl('show_area' ), 'desc' => __pl('show_area_to_live'), 'type' => 'checkbox', 'css' => ['{{element}} .pagelayer-imgmap-item.pagelayer-map-item-active, {{element}} .pagelayer-imgmap-hover-active .pagelayer-imgmap-item:hover' => 'opacity: 1'], ), 'area_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#FFABAB', 'css' => ['{{element}} .pagelayer-imgmap-item.pagelayer-map-item-active, {{element}} .pagelayer-map-item-active_is_editable, {{element}} .pagelayer-imgmap-hover-active .pagelayer-imgmap-item:hover' => 'fill: {{val}}'], 'req' => array( 'show_area' => 'true' ) ), 'area_cord_color' => array( 'type' => 'color', 'label' => __pl('cord_color'), 'default' => '#F70E0E', 'css' => ['{{element}} .pagelayer-imgmap-item.pagelayer-map-item-active, {{element}} .pagelayer-map-item-active_is_editable, {{element}} .pagelayer-imgmap-hover-active .pagelayer-imgmap-item:hover' => 'stroke: {{val}}'], 'req' => array( 'show_area' => 'true' ) ) ], 'styles' => [ 'area_styles' => __pl('Area Style') ], ) ); main/freemium_functions.php 0000644 00000077004 15104542337 0012116 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // freemium_functions.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } // Get page title - 2C function pagelayer_get_the_title( $including_context = false ) { $title = ''; if(pagelayer_is_live() || wp_doing_ajax() || pagelayer_is_gutenberg_editor()){ return 'Title'; } if ( is_singular() ) { $title = get_the_title(); if ( $including_context ) { $post_type_obj = get_post_type_object( get_post_type() ); $title = sprintf( '%s: %s', $post_type_obj->labels->singular_name, $title ); } } elseif ( is_search() ) { $title = sprintf( __( 'Search Results for: %s'), get_search_query() ); if ( get_query_var( 'paged' ) ) { $title .= sprintf( __( ' – Page %s' ), get_query_var( 'paged' ) ); } } elseif ( is_category() ) { $title = single_cat_title( '', false ); if ( $including_context ) { $title = sprintf( __( 'Category Archives: %s' ), $title ); } } elseif ( is_tag() ) { $title = single_tag_title( '', false ); if ( $including_context ) { $title = sprintf( __( 'Tag Archives: %s' ), $title ); } } elseif ( is_author() ) { $title = get_the_author() ; if ( $including_context ) { $title = sprintf( __( 'Author Archives: %s' ), $title ); } } elseif ( is_year() ) { $title = get_the_date( _x( 'Y', 'yearly archives date format' ) ); if ( $including_context ) { $title = sprintf( __( 'Yearly Archives: %s' ), $title ); } } elseif ( is_month() ) { $title = get_the_date( _x( 'F Y', 'monthly archives date format' ) ); if ( $including_context ) { $title = sprintf( __( 'Monthly Archives: %s' ), $title ); } } elseif ( is_day() ) { $title = get_the_date( _x( 'F j, Y', 'daily archives date format' ) ); if ( $including_context ) { $title = sprintf( __( 'Daily Archives: %s' ), $title ); } } elseif ( is_tax( 'post_format' ) ) { if ( is_tax( 'post_format', 'post-format-aside' ) ) { $title = _x( 'Asides', 'post format archive title' ); } elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) { $title = _x( 'Galleries', 'post format archive title' ); } elseif ( is_tax( 'post_format', 'post-format-image' ) ) { $title = _x( 'Images', 'post format archive title' ); } elseif ( is_tax( 'post_format', 'post-format-video' ) ) { $title = _x( 'Videos', 'post format archive title' ); } elseif ( is_tax( 'post_format', 'post-format-quote' ) ) { $title = _x( 'Quotes', 'post format archive title' ); } elseif ( is_tax( 'post_format', 'post-format-link' ) ) { $title = _x( 'Links', 'post format archive title' ); } elseif ( is_tax( 'post_format', 'post-format-status' ) ) { $title = _x( 'Statuses', 'post format archive title' ); } elseif ( is_tax( 'post_format', 'post-format-audio' ) ) { $title = _x( 'Audio', 'post format archive title' ); } elseif ( is_tax( 'post_format', 'post-format-chat' ) ) { $title = _x( 'Chats', 'post format archive title' ); } } elseif ( is_post_type_archive() ) { $title = post_type_archive_title( '', false ); if ( $including_context ) { $title = sprintf( __( 'Archives: %s' ), $title ); } } elseif ( is_tax() ) { $title = single_term_title( '', false ); if ( $including_context ) { $tax = get_taxonomy( get_queried_object()->taxonomy ); $title = sprintf( __( '%1$s: %2$s' ), $tax->labels->singular_name, $title ); } } elseif ( is_404() ) { $title = __( 'Page Not Found' ); } elseif ( is_archive() ) { $title = get_the_archive_title(); } elseif ( is_home() ) { $title = single_post_title('', false); } return $title; } // Get Taxonomies function pagelayer_tax_list($item = '', $page = false){ // Get types $types = pagelayer_post_types($page); // Loop thru foreach($types as $slug => $label){ // Get the items $items = get_object_taxonomies($slug, 'objects'); foreach($items as $name => $v) { if(!isset($taxonomies[$name])){ $taxonomies[$name] = array('label' => $v->labels->singular_name, 'posttypes' => array($label)); }else{ $taxonomies[$name]['posttypes'][] = $label; } } } // Make it simple foreach($taxonomies as $k => $v){ $taxonomies[$k] = $v['label'].' ('.implode(', ', $v['posttypes']).')'; } $pos = array_search($item, array_keys($taxonomies)); if(!empty($pos)) { $cut = array_splice($taxonomies, $pos, 1); $taxonomies = $cut + $taxonomies; } return $taxonomies; } ///////////////////////////////////// // Miscellaneous Shortcode Functions ///////////////////////////////////// // The types of Posts function pagelayer_post_types($page = false){ // Get the types $args = array('public' => TRUE); $types = get_post_types($args, 'objects'); // Unset Page if not required if($page == false){ unset($types['page']); } // Remove Attachment types ! unset($types['attachment']); foreach($types as $name => $type){ $return[$name] = $type->labels->singular_name; } return $return; } // Get all posts and pages list function pagelayer_get_posts($args = array()){ if(empty($args)){ $args = array_keys(pagelayer_post_types(true)); } $posts_list = array(); // Get type foreach($args as $p){ // Create post list foreach(get_posts(['post_type' => $p]) as $post){ $posts_list[$post->ID] = $post->post_title; } } return $posts_list; } // Get Menu List() function pagelayer_get_menu_list($return_def = false){ $menus = wp_get_nav_menus(); $nav_menu = array( '0' => __('-- Select Menu --') ); if(empty($menus)){ return $nav_menu; } $default = $menus[0]->term_id; foreach ( $menus as $menu ) { $nav_menu[$menu->term_id] = $menu->name; if($default > $menu->term_id){ $default = $menu->term_id; } } if($return_def){ return $default; } return $nav_menu; } // Animated Heading function pagelayer_sc_anim_heading(&$el){ $el['atts']['rotate_html'] = ''; //Creates html for rotating text if(!empty($el['atts']['rotate_text'])){ $rotate_text = ''; $rotate_text = explode(',', $el['atts']['rotate_text']); $el['atts']['rotate_html'] .= '<div class="pagelayer-animated-heading pagelayer-rotating-text pagelayer-words-wrapper">'; //print_r($rotate_text); foreach($rotate_text as $key => $val){ //print_r($key); $el['atts']['rotate_html'] .= '<span'; if( $key == 0){ $el['atts']['rotate_html'] .= ' class="pagelayer-is-visible"'; } $el['atts']['rotate_html'] .= '>' . $rotate_text[$key] . '</span>'; } $el['atts']['rotate_html'] .= '</div>'; } //Required classes for particular rotate $el['atts']['rotate_req'] = ''; $letters = ['pagelayer-aheading-rotate2', 'pagelayer-aheading-rotate3', 'pagelayer-aheading-scale']; if(!empty($el['atts']['animations'])){ if(in_array($el['atts']['animations'], $letters)){ $el['atts']['rotate_req'] = 'letters '; } if($el['atts']['animations'] == 'clip'){ $el['atts']['rotate_req'] = 'is-full-width '; } } } // Contact Form function pagelayer_sc_contact(&$el){ $recaptcha_version = get_option('pagelayer_recaptcha_version', ''); $el['atts']['grecaptcha'] = get_option('pagelayer_google_captcha'); if(!empty($el['atts']['captcha'])){ if($recaptcha_version == 'v3'){ $el['atts']['grecaptcha_v3'] = true; }else{ $el['atts']['grecaptcha_v2'] = true; } if(!wp_script_is('pagelayer_cap_script', 'registered')){ $pagelayer_cap_lang = get_option('pagelayer_google_captcha_lang'); $lang = empty($pagelayer_cap_lang) ? '' : '&hl='.$pagelayer_cap_lang; $cap_api = ($recaptcha_version == 'v3') ? $el['atts']['grecaptcha'].$lang : "explicit$lang"; wp_register_script('pagelayer_cap_script', "https://www.google.com/recaptcha/api.js?render=$cap_api", array(), PAGELAYER_PRO_VERSION, true); } wp_enqueue_script('pagelayer_cap_script'); } } // Contact Form Item function pagelayer_sc_contact_item(&$el){ $html = ''; $options = array(); $placeholder = ''; $required = ''; if(!empty($el['atts']['required'])){ $required = 'required'; } if(!empty($el['atts']['label_name']) && empty($el['atts']['label_as_holder'])){ $html = '<label for="'.pagelayer_isset($el['atts'], 'field_name').'"><span class="pagelayer-form-label">'.$el['atts']['label_name'].'</span>'; if(!empty($required)){ $html .= ' *'; } $html .= '</label>'; } if(!empty($el['atts']['label_as_holder'])){ $placeholder = $el['atts']['label_name']; }else{ if(!empty($el['atts']['placeholder'])) $placeholder = $el['atts']['placeholder']; } // File accept $file_accept = '.jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.ppt,.pptx,.odt,.avi,.ogg,.m4a,.mov,.mp3,.mp4,.mpg,.wav,.wmv'; if(!empty($el['atts']['accept_file'])){ $file_accept = $el['atts']['accept_file']; } if($el['atts']['field_type'] == 'select'){ $html .= '<select name="'.$el['atts']['field_name'].'" '.$required.'>'; if(!empty($el['atts']['label_name']) && !empty($el['atts']['label_as_holder'])){ $html .= '<option value="" disabled selected>'.$el['atts']['label_name'].'</option>'; }else{ $html .= '<option value="" disabled selected>---</option>'; } if(!empty($el['atts']['values'])){ $options = explode("\n", $el['atts']['values']); for($x = 0; $x < sizeof($options); $x++){ $html .= '<option value="'.trim($options[$x]).'" >'.trim($options[$x]).'</option>'; } } $html .= '</select>'; }elseif($el['atts']['field_type'] == 'checkbox'){ $html .= '<div class="pagelayer-radcheck-holder pagelayer-contact-checkbox" '.$required.'>'; if(!empty($el['atts']['values'])){ $options = explode("\n", $el['atts']['values']); for($x = 0; $x < sizeof($options); $x++){ $html .= '<div><input type="checkbox" id="'.$el["id"].trim($options[$x]).'" name="'.$el['atts']['field_name'].'[]" value="'.trim($options[$x]).'"/><label for="'.$el["id"].trim($options[$x]).'" class="pagelayer-form-label">'.trim($options[$x]).'</label></div>'; } } $html .= '</div>'; }elseif($el['atts']['field_type'] == 'radio'){ $html .= '<div class="pagelayer-radcheck-holder">'; if(!empty($el['atts']['values'])){ $options = explode("\n", $el['atts']['values']); for($x = 0; $x < sizeof($options); $x++){ $html .= '<div><input type="radio" name="'.$el['atts']['field_name'].'"'.$required.' value="'.trim($options[$x]).'"/><span> '.trim($options[$x]).'</span></div>'; } } $html .= '</div>'; }elseif($el['atts']['field_type'] == 'textarea'){ $html .= '<textarea name="'.$el['atts']['field_name'].'" rows="'.$el['atts']['textarea_rows'].'" '.$required.' placeholder="'.$placeholder.'"></textarea>'; }elseif($el['atts']['field_type'] == 'file'){ $html .= '<input type="'.$el['atts']['field_type'].'" '.$required.' name="'.$el['atts']['field_name'].'" accept="'.$file_accept.'" />'; }elseif($el['atts']['field_type'] == 'label'){ $html .= ''; }else{ $html .= '<input type="'.$el['atts']['field_type'].'" '.$required.' placeholder="'.$placeholder.'" name="'.$el['atts']['field_name'].'" />'; } $el['atts']['fieldhtml'] = $html; } // Featured Image Handler function pagelayer_sc_featured_img(&$el){ // Image size if(!empty($el['atts']['size'])){ $size = $el['atts']['size']; } $thumbnail_id = get_post_thumbnail_id(); $title = $alt = ''; if(!empty($thumbnail_id)){ $title = get_the_title($thumbnail_id); $alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true); } if($size){ $src = get_the_post_thumbnail_url(null, $size); }else{ $src = get_the_post_thumbnail_url(); } // Fallback image if(empty($src) && !empty($el['atts']['img'])){ $src = !empty($el['tmp']['img-'.$size.'-url']) ? $el['tmp']['img-'.$size.'-url'] : pagelayer_isset($el['tmp'], 'img-url'); $alt = $el['tmp']['img-alt']; $title = $el['tmp']['img-title']; } $el['atts']['img_html'] = ''; if(!empty($src)){ $el['atts']['img_html'] = '<img class="pagelayer-img" src="'.$src.'" title="'.$title.'" alt="'.$alt.'" />'; }elseif(pagelayer_is_live_template()){ $el['atts']['img_html'] = '<img class="pagelayer-img" src="'.PAGELAYER_URL.'/images/default-image.png" />'; } // What is the link ? if(!empty($el['atts']['link_type'])){ // Custom url if($el['atts']['link_type'] == 'custom_url'){ // Backward compatibility for new link props pagelayer_add_link_backward($el, array( 'rel' => '', 'selector' => '.pagelayer-ele-link')); $el['atts']['func_link'] = empty($el['tmp']['link']) ? '' : $el['tmp']['link']; } // Link to the media file itself if($el['atts']['link_type'] == 'media_file' || $el['atts']['link_type'] == 'lightbox'){ $el['atts']['func_link'] = $src; } } } // Site Title Handler function pagelayer_sc_wp_title(&$el){ // Decide the image URL $el['atts']['func_image'] = pagelayer_isset($el['tmp'], 'id-' . pagelayer_isset($el['atts'], 'id-size') . '-url'); $el['atts']['func_image'] = empty($el['atts']['func_image']) ? pagelayer_isset($el['tmp'], 'id-url') : $el['atts']['func_id']; // Default Logo if(empty($el['atts']['logo_img_type'])){ // Load it $logo = pagelayer_site_logo(); // Only if we get it if(!empty($logo)){ $logo_img_size = pagelayer_isset($el['atts'], 'logo_img_size'); $el['atts']['func_image'] = pagelayer_isset($logo, $logo_img_size.'-url'); $el['atts']['func_image'] = empty($el['atts']['func_image']) ? pagelayer_isset($logo, 'url') : $el['atts']['func_image']; $el['tmp']['logo_img-title'] = pagelayer_isset($logo, 'title'); $el['tmp']['logo_img-alt'] = pagelayer_isset($logo, 'alt'); } // Custom logo }else{ $logo_img_size = pagelayer_isset($el['atts'], 'logo_img_size'); $el['atts']['func_image'] = pagelayer_isset($el['tmp'], 'logo_img-' . $logo_img_size . '-url'); $el['atts']['func_image'] = empty($el['atts']['func_image']) ? pagelayer_isset($el['tmp'], 'logo_img-url') : $el['atts']['func_image']; $el['tmp']['logo_img-title'] = pagelayer_isset($el['tmp'],'logo_img-title'); $el['tmp']['logo_img-alt'] = pagelayer_isset($el['tmp'], 'logo_img-alt'); } } // Primary menu Handler function pagelayer_sc_wp_menu(&$el){ if(!empty($el['atts']['inside_mega'])){ $el['atts']['nav_menu'] = ''; if(pagelayer_is_live()){ $el['atts']['nav_menu'] = 'Primary Menu Holder. Please select the correct menu.'; } return true; } // Setting default toggle icon. If the icon is empty. if(empty($el['atts']['menu_toggle_icon'])){ $el['atts']['menu_toggle_icon'] = 'fas fa-bars'; } // Load Pagelayer nav menu walker include_once(PAGELAYER_DIR.'/main/nav_walker.php'); $el['atts']['nav_menu'] = wp_nav_menu( array( 'menu' => wp_get_nav_menu_object(pagelayer_isset($el['atts'], 'nav_list')), 'menu_id' => pagelayer_isset($el['atts'], 'nav_list'), 'menu_class' => 'pagelayer-wp_menu-ul', 'walker' => new Pagelayer_Walker_Nav_Menu(), //'theme_location' => 'primary', 'echo' => false, ) ); } // Post Navigation Handler function pagelayer_sc_post_nav(&$el){ $in_same_term = false; $taxonomies = 'category'; $title = ''; $arrows_list = $el['atts']['arrows_list']; if(!empty($el['atts']['in_same_term'])){ $in_same_term = true; $taxonomies = $el['atts']['taxonomies']; } if(!empty($el['atts']['post_title'])){ $title = '<span class="pagelayer-post-nav-title">%title</span>'; } $next_label = '<span class="pagelayer-next-holder"> <span class="pagelayer-post-nav-link"> '.$el["atts"]["next_label"].'</span>'.$title.' </span> <span class="pagelayer-post-nav-icon fa fa-'.$arrows_list.'-right"></span>'; $prev_label = '<span class="pagelayer-post-nav-icon fa fa-'.$arrows_list.'-left"></span> <span class="pagelayer-next-holder"> <span class="pagelayer-post-nav-link"> '.$el["atts"]["prev_label"].'</span>'.$title.' </span>'; $el['atts']['next_link'] = get_next_post_link('%link', $next_label, $in_same_term, '', $taxonomies); $el['atts']['prev_link'] = get_previous_post_link('%link', $prev_label, $in_same_term, '', $taxonomies ); } // Comments Handler function pagelayer_sc_post_comment(&$el){ global $post; // Is it custom ? if($el['atts']['post_type'] == 'custom' && !empty($el['atts']['post_id'])){ $orig_post = $post; $post = get_post($el['atts']['post_id']); } $post_id = $post->ID; //echo $post_id.' - '.$el['atts']['post_id']; if ( comments_open($post_id) || get_comments_number($post_id) ) { // Handel comments template echo ob_start(); comments_template(); $el['atts']['post_comment'] = '<div class="pagelayer-comments-template">'.ob_get_clean().'</div>'; // Comments are now closed if(!comments_open($post_id)){ $el['atts']['post_comment'] = '<div class="pagelayer-comments-close"> <h2>Comments are closed!</h2> </div>'; } }else{ $el['atts']['post_comment'] = ''; } if(pagelayer_is_live_template() || $post->post_type == 'pagelayer-template'){ $el['atts']['post_comment'] = '<div class="pagelayer-comments-close"> <center><h4>Comments section !</h4></center> </div>'; } if(!empty($orig_post)){ $post = $orig_post; } } // post navigation Handler function pagelayer_sc_post_info_list(&$el){ global $post; $el['atts']['post_info_content'] =''; switch($el['atts']['type']){ case 'author': $author_id = get_the_author_meta( 'ID' ) ? get_the_author_meta( 'ID' ) : $GLOBALS['post']->post_author; $el['atts']['link'] = get_author_posts_url( $author_id ); $el['atts']['avatar_url'] = get_avatar_url( $author_id, 96 ); $el['atts']['post_info_content'] = get_the_author_meta( 'display_name', $author_id ); break; case 'date': $format = [ 'default' => 'F j, Y', '0' => 'F j, Y', '1' => 'Y-m-d', '2' => 'm/d/Y', '3' => 'd/m/Y', 'custom' => empty( $el['atts']['date_format_custom'] ) ? 'F j, Y' : $el['atts']['date_format_custom'], ]; $el['atts']['post_info_content'] = get_the_time( $format[ $el['atts']['date_format'] ] ); $el['atts']['link'] = get_day_link( get_post_time( 'Y' ), get_post_time( 'm' ), get_post_time( 'j' ) ); break; case 'time': $format = [ 'default' => 'g:i a', '0' => 'g:i a', '1' => 'g:i A', '2' => 'H:i', 'custom' => empty( $el['atts']['time_format_custom'] ) ? 'F j, Y' : $el['atts']['time_format_custom'], ]; $el['atts']['post_info_content'] = get_the_time( $format[ $el['atts']['time_format'] ] ); if(!pagelayer_is_live_template()){ $el['atts']['link'] = 'javascript:void(0)'; $el['atts']['info_link'] = 1; } break; case 'comments': $el['atts']['post_info_content'] = (int) get_comments_number(); $el['atts']['link'] = get_comments_link(); // Comments are closed then dont show ! if(pagelayer_is_live_template() || $GLOBALS['post']->post_type == 'pagelayer-template'){ $el['atts']['post_info_content'] = 1; }elseif(!comments_open($post->ID)){ $el['atts']['post_info_content'] = ''; } break; case 'terms': $taxonomy = $el['atts']['taxonomy']; $terms = wp_get_post_terms( get_the_ID(), $taxonomy ); foreach ( $terms as $term ) { $el['atts']['post_info_content'] .= ' <a href="'. get_term_link( $term ) .'"> '. $term->name .' </a>'; } if(pagelayer_is_live_template() || $GLOBALS['post']->post_type == 'pagelayer-template'){ $el['atts']['post_info_content'] .= '<a>Dummy '.ucfirst(str_replace('_', ' ', $el['atts']['taxonomy'])).'</a>'; } $el['atts']['info_link'] = ''; break; case 'custom': $el['atts']['post_info_content'] = $el['atts']['type_custom']; $el['atts']['link'] = $el['atts']['info_custom_link']; break; } } // Post Content Handler - 2C function pagelayer_sc_post_content(&$el){ static $did_posts = []; global $pagelayer; $post_obj = get_post(); if(empty( $post_obj )){ return false; } if ( post_password_required( $post_obj->ID ) && !pagelayer_is_live() ) { $el['atts']['post_content'] = get_the_password_form( $post_obj->ID ); return; } // Avoid recursion if ( isset( $did_posts[$post_obj->ID] ) || pagelayer_is_live_template($post_obj) ) { $el['atts']['post_content'] = '<div style="min-height:20px;background-color:#e3e3e3;text-align:center">Post Content Holder</div>'; return; } // Is it an attachment if(is_attachment()){ $el['atts']['post_content'] = '<center>'.wp_get_attachment_image( get_the_ID(), 'full' ).'</center>'; return; } // To prevent recursion, set it to True $did_posts[$post_obj->ID] = true; $content = $post_obj->post_content; // If we are rendering a template and this post content is being edited live, then dont_make_editable is set true in pagelayer_get_post_content. Hence we need to set it as false and revert it after rendering the posts content ! if(!empty($pagelayer->dont_make_editable)){ $reset = $pagelayer->dont_make_editable; $pagelayer->dont_make_editable = false; // While rendering post content inside the template $rendering_template_id = $pagelayer->rendering_template_id; $pagelayer->rendering_template_id = $post_obj->ID; } // Split to pages. setup_postdata( $post_obj ); $content = apply_filters( 'the_content', get_the_content() ); if(!empty($reset)){ $pagelayer->rendering_template_id = $rendering_template_id; $pagelayer->dont_make_editable = $reset; } $content .= wp_link_pages( array( 'before' => '<p class="post-nav-links pagelayer-page-links"><span class="page-links-title pagelayer-page-links-title">' . __( 'Pages:') . '</span>', 'after' => '</p>', 'echo' => 0, ) ); $el['atts']['post_content'] = $content; } // Archive Posts shows the posts as per the QUERY of the current page function pagelayer_sc_archive_posts(&$el){ global $wp_query, $pagelayer; $query_args = $wp_query->query_vars; if(pagelayer_is_live() || (wp_doing_ajax() && isset($_REQUEST['action']) && $_REQUEST['action'] == 'pagelayer_archive_posts_data')){ $query_args = ['post_type' => 'post']; $dummy_pagination = 10; } $allow_param = array('show_thumb', 'thumb_size', 'show_content', 'show_title', 'more', 'btn_type', 'size', 'icon_position', 'icon', 'show_more', 'meta_sep', 'exc_length', 'thumb_img_type', 'infinite_types' ); $param = array(); foreach($allow_param as $val){ $param[$val] = !empty($el['atts'][$val]) ? $el['atts'][$val] : ''; } if(!empty($el['atts']['meta'])){ $meta_arr = explode(',',$el['atts']['meta']); //pagelayer_print($el['atts']['meta']); foreach($meta_arr as $arr){ $param[$arr] = $arr; } } if(!empty($el['atts']['thumb_img_type'])){ $thumb_size = pagelayer_isset($el['atts'], 'thumb_size'); $img_size = pagelayer_isset($el['tmp'], 'def_thumb_img-'.$thumb_size.'-url'); $param['def_thumb_img'] = empty($img_size) ? pagelayer_isset($el['tmp'], 'def_thumb_img-url') : $img_size; } $el['atts']['pagelayer_pagination_top'] = ''; $el['atts']['pagelayer_pagination_bottom'] = ''; if(!empty($el['atts']['pagination']) && empty($el['atts']['infinite_types'])){ // Create array for pagination $pagination = array( 'prev_next' => $el['atts']['pagination'] == 'number' ? false : true, 'prev_text' => __( pagelayer_isset($el['atts'], 'pagi_prev_text') ), 'next_text' => __( pagelayer_isset($el['atts'], 'pagi_next_text') ), 'end_size' => $el['atts']['pagi_end_size'], 'mid_size' => $el['atts']['pagi_mid_size'], 'before_page_number' => pagelayer_isset($el['atts'], 'before_page_number'), 'after_page_number' => pagelayer_isset($el['atts'], 'after_page_number'), ); if(!empty($dummy_pagination)){ $pagination['total'] = 10; } if( isset($el['atts']['pagination_on']) && $el['atts']['pagination_on'] == 'top'){ $el['atts']['pagelayer_pagination_top'] = '<div class="pagelayer-pagination">'.paginate_links($pagination).'</div>'; }else{ $el['atts']['pagelayer_pagination_bottom'] = '<div class="pagelayer-pagination">'.paginate_links($pagination).'</div>'; } } if(wp_doing_ajax() && isset($_REQUEST['action']) && $_REQUEST['action'] == 'pagelayer_infinite_posts'){ $query_args['paged'] = $el['atts']['paged']; }else{ $data = array('tag' => $el['tag'], 'atts' => $el['oAtts']); $pagelayer->localScript['pagelayer_post_'.$el['id']] = $data; } $el['atts']['pagelayer_archive_posts'] = pagelayer_posts($param, $query_args); } // Flipbox handler function pagelayer_sc_flipbox(&$el){ // Flipbox front heading image if(!empty($el['atts']['heading_image'])){ $heading_image_size = pagelayer_isset($el['atts'], 'heading_image_size'); $el['atts']['func_image'] = pagelayer_isset($el['tmp'], 'heading_image-'.$heading_image_size.'-url'); $el['atts']['func_image'] = empty($el['atts']['func_image']) ? pagelayer_isset($el['tmp'], 'heading_image-url') : $el['atts']['func_image']; } $back = pagelayer_isset($el['atts'], 'back_section'); if(pagelayer_is_live() && !empty($back)){ $el['attr'][] = 'back_section="'.$back.'"'; } } // Countdown handler function pagelayer_sc_countdown(&$el){ $exp = pagelayer_isset($el['atts'], 'display_expired_text'); if(pagelayer_is_live() && !empty($exp)){ $el['attr'][] = 'display_expired_text="'.$exp.'"'; } if(!isset($el['atts']['custom_label_text'])){ $el['atts']['days_label_text'] = 'Days'; $el['atts']['hours_label_text'] = 'Hours'; $el['atts']['minutes_label_text'] = 'Minutes'; $el['atts']['seconds_label_text'] = 'Seconds'; } } // Social Share Handler function pagelayer_sc_share(&$el){ if(empty($el['atts']['icon'])){ return; } $profileName = ''; if(isset($el['atts']['custom_profile'])){ $profileName = $el['atts']['custom_profile'].'/'; } $icon_splited = explode(' fa-', $el['atts']['icon']); $el['classes'][] = ['.pagelayer-share-content' => 'pagelayer-'.$icon_splited[1]]; $icon = $icon_splited[1]; $labelList = array( 'Facebook' => array( 'icons' => array('facebook', 'facebook-f', 'facebook-messenger', 'facebook-square', 'facebook-official'), 'url' => 'https://www.facebook.com/sharer/sharer.php?u=' ), 'Twitter' => array( 'icons' => array('twitter', 'twitter-square'), 'url' => 'https://twitter.com/intent/tweet?url=' ), 'X' => array( 'icons' => array('x-twitter', 'x-twitter-square'), 'url' => 'https://x.com/intent/post?url=' ), 'Google+' => array( 'icons' => array('google-plus', 'google-plus-square', 'google-plus-g'), 'url' => 'https://plus.google.com/share?url=' ), 'Instagram' => array( 'icons' => array('instagram'), 'url' => 'https://www.instagram.com/'.$profileName, 'no' => 1 ), 'Linkedin' => array( 'icons' => array('linkedin', 'linkedin-in', 'linkedin-square'), 'url' => 'https://www.linkedin.com/shareArticle?url=' ), 'pinterest' => array( 'icons' => array('pinterest', 'pinterest-p', 'pinterest-square'), 'url' => '//www.pinterest.com/pin/create/button/?url=' ), 'Reddit' => array( 'icons' => array('reddit-alien', 'reddit-square', 'reddit'), 'url' => 'https://reddit.com/submit?url=' ), 'Skype' => array( 'icons' => array('skype'), 'url' => 'https://web.skype.com/share?', 'no' => 1 ), 'Stumbleupon' => array( 'icons' => array('stumbleupon', 'stumbleupon-circle'), 'url' => 'https://www.stumbleupon.com/submit?url=' ), 'Telegram' => array( 'icons' => array('telegram', 'telegram-plane'), 'url' => 'https://t.me/share/url?url=' ), 'Tumblr' => array( 'icons' => array('tumblr', 'tumblr-square'), 'url' => 'https://www.tumblr.com/share/link?url=' ), 'VK' => array( 'icons' => array('vk'), 'url' => 'http://vk.com/share.php?url=' ), 'Weibo' => array( 'icons' => array('weibo'), 'url' => 'http://service.weibo.com/share/share.php?url=' ), 'WhatsApp' => array( 'icons' => array('whatsapp', 'whatsapp-square'), 'url' => 'whatsapp://send?text=' ), 'WordPress' => array( 'icons' => array('wordpress', 'wordpress-simple'), 'url' => 'https://wordpress.com/press-this.php?u=' ), 'Xing' => array( 'icons' => array('xing', 'xing-square'), 'url' => 'https://www.xing.com/spi/shares/new?url=' ), 'Delicious' => array( 'icons' => array('delicious'), 'url' => 'https://delicious.com/save?v=5&noui&jump=close&url=' ), 'Dribbble' => array( 'icons' => array('dribbble', 'dribbble-square'), 'url' => 'https://dribbble.com/shots/'.$profileName, 'no' => 1 ), 'Pocket' => array( 'icons' => array('get-pocket'), 'url' => 'https://getpocket.com/edit?url=' ), 'Email' => array( 'icons' => array('envelope', 'envelope-open', 'envelope-o'), 'url' => 'mailto:?body=' ) ); if(!empty($el['atts']['text'])){ $el['atts']['icon_label'] = $el['atts']['text']; }else{ foreach($labelList as $key => $val){ if(in_array($icon, $val['icons'])){ $el['atts']['icon_label'] = $key; break; } } } foreach($labelList as $key => $val){ if(in_array($icon, $val['icons'])){ if(empty($val['no'])){ $el['atts']['social_url'] = $val['url'].$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; }else{ $el['atts']['social_url'] = $val['url']; } break; } } } // If the excerpt for current post is there only then give function pagelayer_get_the_excerpt(){ global $post; if(!empty($post->post_excerpt)){ return $post->post_excerpt; } return ''; } function pagelayer_sc_post_excerpt(&$el){ $el['tmp']['post_excerpt'] = ''; $tmp_excerpt = pagelayer_get_the_excerpt(); if(!empty($tmp_excerpt) && strlen($tmp_excerpt) > 0){ $el['tmp']['post_excerpt'] = '<div class="pagelayer-post-excerpt">'.$tmp_excerpt.'</div>'; } if(pagelayer_is_live_template()){ $el['tmp']['post_excerpt'] = '<div class="pagelayer-post-excerpt pagelayer-empty-widget"></div>'; } } function pagelayer_sc_copyright(&$el){ $el['atts']['copyright_text'] = pagelayer_get_option('pagelayer-copyright'); $el['oAtts']['copyright_text'] = $el['atts']['copyright_text']; } // Pricing Handler function pagelayer_sc_pricing(&$el){ //Backward compatibility for new link props pagelayer_add_link_backward($el, array( 'link' => 'button_url', 'rel' => '', 'target' => 'button_url_target', 'selector' => '.pagelayer-pricing-btn' )); } // Post Title function pagelayer_sc_post_title(&$el){ $el['atts']['open_html_tag'] = !empty($el['atts']['html_tag']) ? '<'.$el['atts']['html_tag'].'>' :''; $el['atts']['close_html_tag'] = !empty($el['atts']['html_tag']) ? '</'.$el['atts']['html_tag'].'>' :''; } main/freemium.php 0000644 00000756743 15104542337 0010044 0 ustar 00 <?php ////////////////////////////////////////////////////////////// //=========================================================== // freemium.php //=========================================================== // PAGELAYER // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit Gupta // Date: 23rd Jan 2017 // Time: 23:00 hrs // Site: http://pagelayer.com/wordpress (PAGELAYER) // ---------------------------------------------------------- // Please Read the Terms of use at http://pagelayer.com/tos // ---------------------------------------------------------- //=========================================================== // (c)Pagelayer Team //=========================================================== ////////////////////////////////////////////////////////////// // Are we being accessed directly ? if(!defined('PAGELAYER_PRO_VERSION')) { exit('Hacking Attempt !'); } global $pagelayer; // Posts options style $pagelayer_posts_options = array( 'type' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'default', 'list' => array( 'default' => __pl('default'), ), ), 'infinite_types' => array( 'type' => 'radio', 'label' => __pl('infinite_scroll'), 'addClass' => ['pagelayer-infinite-posts','{{element}} .pagelayer-posts-container' => 'pagelayer-infinite-scroll-{{val}}'], 'list' => array( '' => __pl('none'), 'button' => __pl('Button'), 'auto' => __pl('Auto'), ), 'req' => ['!enable_slider' => 'true'], ), 'alignment' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'addClass' => 'pagelayer-arc-layout-{{val}}', 'list' => array( '' => __pl('default'), 'left' => __pl('left'), 'right' => __pl('right'), 'alt' => __pl('Alternative') ), ), 'columns' => array( 'type' => 'select', 'label' => __pl('columns'), 'np' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-posts-container' => 'grid-template-columns: repeat({{val}},1fr);'], 'list' => array( '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', ), ), 'col_gap' => array( 'type' => 'slider', 'label' => __pl('col_gap'), 'min' => 0, 'step' => 1, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} .pagelayer-posts-container' => 'grid-column-gap: {{val}}px;'], ), 'row_gap' => array( 'type' => 'slider', 'label' => __pl('row_gap'), 'min' => 0, 'step' => 1, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} .pagelayer-posts-container' => 'grid-row-gap: {{val}}px;'], ), 'data_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'default' => '5,5,5,5', 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-content' => 'padding : {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), 'data_margin' => array( 'type' => 'padding', 'label' => __pl('margin'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-col' => 'margin :{{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), 'bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-wposts-col' => 'background-color:{{val}};'], ), 'box_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('box_shadow'), 'css' => ['{{element}} .pagelayer-wposts-col' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], ), 'post_bor_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'post_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '{{element}} .pagelayer-wposts-col' => 'border-style: {{val}};', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'post_bor_hover' => '' ), ), 'post_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-wposts-col' => 'border-color: {{val}};'], 'req' => array( '!post_border_type' => '' ), 'show' => array( 'post_bor_hover' => '' ), ), 'post_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-col' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!post_border_type' => '' ], 'show' => array( 'post_bor_hover' => '' ), ), 'post_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-col' => '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;'], 'req' => array( '!post_border_type' => '', ), 'show' => array( 'post_bor_hover' => '', ), ), 'post_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '{{element}} .pagelayer-wposts-col:hover' => 'border-style: {{val}}', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'post_bor_hover' => 'hover' ), ), 'post_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-wposts-col:hover' => 'border-color: {{val}};'], 'req' => array( '!post_border_type_hover' => '' ), 'show' => array( 'post_bor_hover' => 'hover' ), ), 'post_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, 'css' => [ '{{element}} .pagelayer-wposts-col: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;' ], 'req' => [ '!post_border_type_hover' => '' ], 'show' => array( 'post_bor_hover' => 'hover' ), ), 'post_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-col: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;'], 'req' => array( '!post_border_type_hover' => '', ), 'show' => array( 'post_bor_hover' => 'hover', ), ), 'anim_hover' => array( 'type' => 'select', 'label' => __pl('Post Animation'), 'addClass' => ['{{element}} .pagelayer-wposts-col' => 'pagelayer-animation-{{val}}'], 'list' => [ '' => __pl('none'), 'grow' => __pl('Grow'), 'shrink' => __pl('Shrink'), 'pulse' => __pl('Pulse'), 'pulse-grow' => __pl('Pulse Grow'), 'pulse-shrink' => __pl('Pulse Shrink'), 'push' => __pl('Push'), 'pop' => __pl('Pop'), 'buzz' => __pl('Buzz'), 'buzz-out' => __pl('Buzz Out'), 'float' => __pl('Float'), 'sink' => __pl('Sink'), 'bob' => __pl('Bob'), 'hang' => __pl('Hang'), 'bounce-in' => __pl('Bounce In'), 'bounce-out' => __pl('Bounce Out'), 'rotate' => __pl('Rotate'), 'grow-rotate' => __pl('Grow Rotate'), 'skew-forward' => __pl('Skew Forward'), 'skew-backward' => __pl('Skew Backward'), 'wobble-vertical' => __pl('Wobble Vertical'), 'wobble-horizontal' => __pl('Wobble Horizontal'), 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'), 'wobble-top-to-right' => __pl('Wobble Top To Right'), 'wobble-top' => __pl('Wobble Top'), 'wobble-bottom' => __pl('Wobble Bottom'), 'wobble-skew' => __pl('Wobble Skew'), ], ) ); // Posts thumb style $pagelayer_thumb_style = [ 'show_thumb' => array( 'label' => __pl('show_thumb'), 'type' => 'checkbox', 'default' => 'true', //'addAttr' => ['{{element}} a' => 'target="_blank"'], ), 'thumb_img_type' => array( 'type' => 'select', 'label' => __pl('thumb_img_type'), 'list' => array( '' => __pl('default'), 'custom' => __pl('custom') ), 'req' => ['show_thumb' => 'true'], ), 'def_thumb_img' => array( 'type' => 'image', 'label' => __pl('image'), 'req' => [ 'show_thumb' => 'true', 'thumb_img_type' => 'custom', ] ), 'thumb_size' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'medium_large', 'list' => pagelayer_image_sizes(), 'req' => ['show_thumb' => 'true'], ), 'ratio' => array( 'type' => 'slider', 'label' => __pl('ratio'), 'min' => 0, 'step' => 0.1, 'max' => 2, 'default' => 0.7, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-thumb' => 'padding: calc(50% * {{val}}) 0;'], 'req' => ['show_thumb' => 'true'], ), ]; // Posts type style $pagelayer_title_style = [ 'show_title' => array( 'type' => 'checkbox', 'label' => __pl('show_title'), 'default' => 'true', ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-wposts-title' => 'color:{{val}};'], 'req' => ['show_title' => 'true'], ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',18,,,,,,,,,', 'css' => ['{{element}} .pagelayer-wposts-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;'], 'req' => ['show_title' => 'true'], ), 'title_spacing' => array( 'type' => 'dimension', 'label' => __pl('top_bottom_spacing'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-title' => 'padding-top:{{val[0]}}px; padding-bottom:{{val[1]}}px;'], 'req' => ['show_title' => 'true'], ), ]; // Posts meta options $pagelayer_meta_style = [ 'meta' => array( 'type' => 'multiselect', 'label' => __pl('meta'), 'default' => 'author,date', 'list' => array( 'date' => __pl('date'), 'author' => __pl('author'), 'comments' => __pl('comments'), 'tags' => __pl('tags'), 'category' => __pl('category'), ), ), 'meta_sep' => array( 'type' => 'text', 'label' => __pl('separator'), 'default' => ' | ', ), 'meta_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-wposts-meta *' => 'color:{{val}};'], ), 'meta_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-wposts-meta' => 'background-color:{{val}};'], ), 'meta_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-meta' => 'text-align:{{val}};'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), 'meta_spacing' => array( 'type' => 'padding', 'label' => __pl('spacing'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-meta' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'], ), 'meta_bor_rad' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-meta' => '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]}};'], ), 'meta_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .pagelayer-wposts-meta *' => '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;', '{{element}} .pagelayer-wposts-sep' => 'font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important;' ], ), 'meta_tag_pos' => array( 'type' => 'select', 'label' => __pl('position'), 'screen' => 1, 'css' => [ '{{element}} .pagelayer-wposts-post' => 'position: relative;', '{{element}} .pagelayer-wposts-meta' => 'position: {{val}};' ], 'list' => array( '' => __pl('default'), 'relative' => __pl('relative'), 'absolute' => __pl('absolute') ), ), 'meta_width' => [ 'type' => 'slider', 'label' => __pl('width'), 'screen' => 1, 'units' => ['px','%','em'], 'css' => ['{{element}} .pagelayer-wposts-meta' => 'width:{{val}};'], 'min' => 0, 'max' => 1000, 'step' => 1, 'req' => ['!meta_tag_pos' => ''] ], 'meta_vposition' => [ 'type' => 'select', 'label' => __pl('verticle_pos'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-meta' => '{{val}}:0;'], 'list' => [ '' => __pl('default'), 'top' => __pl('top'), 'bottom' => __pl('bottom') ], 'req' => ['!meta_tag_pos' => ''] ], 'meta_vposition_offset' => [ 'type' => 'slider', 'label' => __pl('ver_offset'), 'screen' => 1, 'units' => ['px','%','em'], 'css' => ['{{element}} .pagelayer-wposts-meta' => '{{meta_vposition}}:{{val}};'], 'min' => -1000, 'max' => 1000, 'step' => 1, 'req' => [ '!meta_vposition' => '', '!meta_tag_pos' => '' ] ], 'meta_hposition' => [ 'type' => 'select', 'label' => __pl('horizontal_pos'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-meta' => '{{val}}:0;'], 'list' => [ '' => __pl('default'), 'left' => __pl('left'), 'right' => __pl('right') ], 'req' => ['!meta_tag_pos' => ''] ], 'meta_hposition_offset' => [ 'type' => 'slider', 'label' => __pl('hor_offset'), 'screen' => 1, 'units' => ['px','%','em'], 'css' => ['{{element}} .pagelayer-wposts-meta' => '{{meta_hposition}}:{{val}};'], 'min' => -1000, 'max' => 1000, 'step' => 1, 'req' => [ '!meta_hposition' => '', '!meta_tag_pos' => '' ] ] ]; // Posts content style $pagelayer_content_style = [ 'show_content' => array( 'type' => 'select', 'label' => __pl('show_content'), 'default' => 'excerpt', 'list' => array( '' => __pl('none'), 'excerpt' => __pl('excerpt'), 'full' => __pl('full'), ), ), 'exc_length' => array( 'type' => 'spinner', 'label' => __pl('exc_length'), 'min' => 0, 'step' => 1, 'max' => 500, 'default' => 10, 'req' => ['show_content' => 'excerpt'] ), 'content_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#121212', 'css' => ['{{element}} .pagelayer-wposts-content' => 'color:{{val}};'], ), 'content_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-content .pagelayer-wposts-excerpt' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), 'content_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-wposts-excerpt' => '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;'], ), 'content_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'left', 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-content' => 'text-align:{{val}};'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), ]; //Post Infinite Style $pagelayer_infinite_style = array( 'infinite_text' => array( 'type' => 'text', 'label' => __pl('Button Text'), 'default' => 'Load More', 'req' => ['infinite_types' => 'button'] ), 'infinite_final' => array( 'type' => 'text', 'addAttr' => ['{{element}} .pagelayer_load_button' => 'data-text="{{infinite_final}}"'], 'label' => __pl('Post End Message'), 'default' => 'No More Post', ), 'infinite_full_width' => array( 'type' => 'checkbox', 'label' => __pl('stretch'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-load' => 'width: 100% !important; text-align: center;', '{{element}} .pagelayer_load_button' =>'text-align: center;'], ), 'btn_typo' => array( 'type' => 'typography', 'label' => __pl('quote_content_typo'), 'css' => [ '{{element}} .pagelayer-btn-load-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;', '{{element}} .pagelayer_load_button' => '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;', ], ), 'load_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer_load_button' => 'text-align:{{val}}'], 'req' => ['infinite_types' => 'button', 'infinite_full_width' => ''] ), 'load_margin' => array( 'type' => 'padding', 'label' => __pl('margin'), 'screen' => 1, 'css' => ['{{element}} .pagelayer_load_button' => 'margin :{{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), 'load_btn_icon' => array( 'type' => 'icon', 'label' => __pl('service_box_font_icon_label'), ), 'load_btn_icon_position' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'pagelayer-btn-icon-left', 'list' => array( 'pagelayer-btn-icon-left' => __pl('left'), 'pagelayer-btn-icon-right' => __pl('right') ), 'req' => array( '!load_btn_icon' => '' ), ), 'load_btn_icon_spacing' => array( 'type' => 'slider', 'label' => __pl('icon_spacing'), 'min' => 1, 'step' => 1, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-load-icon' => 'padding: 0 {{val}}px;'], 'req' => ['!btn_icon' => ''], ), 'infinite_btn_type' => array( 'type' => 'select', 'label' => __pl('button_type_label'), 'default' => 'pagelayer-btn-default', 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-anim' => __pl('btn_type_anim'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), ), 'infinite_anim_type' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'glow', 'addClass' => ['{{element}} .pagelayer-btn-load' => 'pagelayer-btn-anim-{{val}}'], 'list' => array( 'glow' => __pl('glow_button'), 'thin' => __pl('thin_button'), 'slide' => __pl('slide_button') ), 'req' => array( 'infinite_btn_type' => 'pagelayer-btn-anim' ), ), 'infinite_direction' => array( 'type' => 'select', 'label' => __pl('animation_direction'), 'default' => 'pagelayer-btn-anim-left', 'addClass' => ['{{element}} .pagelayer-btn-load' => '{{val}}'], 'list' => array( 'pagelayer-btn-anim-left' => __pl('left'), 'pagelayer-btn-anim-right' => __pl('right'), ), 'req' => array( 'infinite_anim_type' => 'slide', 'infinite_btn_type' => 'pagelayer-btn-anim', ), ), 'infinite_btn_size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'default' => 'pagelayer-btn-large', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ) ), 'infinite_btn_custom_size' => array( 'type' => 'spinner', 'label' => __pl('btn_custom_size'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-load' => 'padding: calc({{val}}px / 2) {{val}}px;'], 'req' => array( 'infinite_btn_size' => ['pagelayer-btn-custom','pagelayer-btn-anim'], ), ), 'infinite_btn_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => array( 'infinite_btn_type' => ['pagelayer-btn-custom','pagelayer-btn-anim'], ), ), 'infinite_btn_bg_color' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_label'), 'default' => '#818a91', 'css' => [ '{{element}} .pagelayer-btn-load' => 'background-color: {{val}};', '{{element}} .pagelayer-btn-anim-thin' => 'background-color: unset !important;', '{{element}} .pagelayer-btn-anim-thin::before' => 'background-color: {{val}};', '{{element}} .pagelayer-btn-anim-thin::after' => 'background-color: {{val}};', ], 'req' => array( 'infinite_btn_type' => ['pagelayer-btn-custom','pagelayer-btn-anim'], ), 'show' => array( 'infinite_btn_hover' => '' ), ), 'infinite_btn_color' => array( 'type' => 'color', 'label' => __pl('btn_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-btn-load' => 'color: {{val}};'], 'req' => array( 'infinite_btn_type' => ['pagelayer-btn-custom','pagelayer-btn-anim'], ), 'show' => array( 'infinite_btn_hover' => '' ), ), 'infinite_btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-btn-load' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'infinite_btn_type' => ['pagelayer-btn-custom','pagelayer-btn-anim'], 'infinite_btn_hover' => 'hover' ), ), 'infinite_btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_hover_label'), 'css' => [ '{{element}} .pagelayer-btn-custom:hover, {{element}} .pagelayer-btn-anim-slide:after' => 'background-color: {{val}};', ], 'req' => array( 'infinite_btn_type' => ['pagelayer-btn-custom','pagelayer-btn-anim'], '!infinite_anim_type' => ['glow','thin'], ), 'show' => array( 'infinite_btn_hover' => 'hover', '!infinite_anim_type' => ['glow','thin'], ), ), 'infinite_btn_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_color_hover_label'), 'css' => ['{{element}} .pagelayer-btn-load:hover' => 'color: {{val}};'], 'req' => array( 'infinite_btn_type' => ['pagelayer-btn-custom','pagelayer-btn-anim'], ), 'show' => array( 'infinite_btn_hover' => 'hover' ), ), 'infinite_btn_shadow' => [ 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-btn-load' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], ], 'infinite_btn_shadow_hover' => [ 'type' => 'box_shadow', 'label' => __pl('box_shadow_hover'), 'css' => ['{{element}} .pagelayer-btn-load:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], ], 'infinite_btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '{{element}} .pagelayer-btn-load, {{element}} .pagelayer-btn-anim-thin:after, {{element}} .pagelayer-btn-anim-thin:before' => 'border-style: {{val}};', '{{element}} .pagelayer-btn-anim-thin' => 'border-style: unset !important;', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'infinite_btn_hover' => '' ), ), 'infinite_btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-load' => 'border-color: {{val}};'], 'req' => array( '!infinite_btn_border_type' => '' ), 'show' => array( 'infinite_btn_hover' => '' ), ), 'infinite_btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-load, {{element}} .pagelayer-btn-anim-thin:after, {{element}} .pagelayer-btn-anim-thin:before' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!infinite_btn_border_type' => '' ], 'show' => ['infinite_btn_hover' => ''], ), 'infinite_btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-load, {{element}} .pagelayer-btn-anim-glow:before' => '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;'], 'req' => array( '!infinite_btn_border_type' => '', '!infinite_anim_type' => 'slide' ), 'show' => array( 'infinite_btn_hover' => '', '!infinite_anim_type' => 'slide' ), ), 'infinite_btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '{{element}} .pagelayer-btn-load:hover, {{element}} .pagelayer-btn-anim-thin:hover:after, {{element}} .pagelayer-btn-anim-thin:hover:before' => 'border-style: {{val}}', '{{element}} .pagelayer-btn-anim-thin:hover' => 'border-style: unset !important;', ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'infinite_btn_hover' => 'hover' ), ), 'infinite_btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-load:hover' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'infinite_btn_hover' => 'hover' ), ), 'infinite_btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, 'css' => [ '{{element}} .pagelayer-btn-load:hover, {{element}} .pagelayer-btn-anim-thin:hover:after, {{element}} .pagelayer-btn-anim-thin:hover:before' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;' ], 'req' => [ '!infinite_btn_border_type_hover' => '' ], 'show' => array( 'infinite_btn_hover' => 'hover' ), ), 'infinite_btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-load:hover, {{element}} .pagelayer-btn-anim-glow:before' => '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;'], 'req' => array( '!btn_border_type_hover' => '', '!anim_type' => 'slide' ), 'show' => array( 'infinite_btn_hover' => 'hover', '!infinite_anim_type' => 'slide' ), ), ); // Post More style $pagelayer_more_style = [ 'show_more' => array( 'type' => 'checkbox', 'label' => __pl('show'), ), 'more' => array( 'type' => 'text', 'label' => __pl('text'), 'default' => 'read more »', 'req' => ['show_more' => 'true'], ), 'more_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-wposts-more' => '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;'], 'req' => ['show_more' => 'true'], ), 'full_width' => array( 'type' => 'checkbox', 'label' => __pl('stretch'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => 'width: 100%; text-align: center;'], 'req' => ['show_more' => 'true'], ), 'align' => array( 'type' => 'radio', 'label' => __pl('obj_align_label'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-mdiv' => 'text-align: {{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'req' => array( 'full_width' => '', 'show_more' => 'true', ) ), 'icon' => array( 'type' => 'icon', 'label' => __pl('service_box_font_icon_label'), 'req' => ['show_more' => 'true'], ), 'icon_position' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'pagelayer-btn-icon-left', 'list' => array( 'pagelayer-btn-icon-left' => __pl('left'), 'pagelayer-btn-icon-right' => __pl('right') ), 'req' => [ 'show_more' => 'true', '!icon' => '' ], ), 'icon_spacing' => array( 'type' => 'slider', 'label' => __pl('icon_spacing'), 'min' => 1, 'step' => 1, 'max' => 100, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'], 'req' => array( '!icon' => '', 'show_more' => 'true', ), ), 'btn_type' => array( 'type' => 'select', 'label' => __pl('button_type'), //'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'], 'list' => array( 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), 'req' => ['show_more' => 'true'], ), 'size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ), 'req' => ['show_more' => 'true'], ), 'btn_custom_size' => array( 'type' => 'dimension', 'label' => __pl('btn_custom_size'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-more.pagelayer-btn-holder' => 'padding: {{val[0]}}px {{val[1]}}px;'], 'req' => array( 'size' => 'pagelayer-btn-custom', 'show_more' => 'true', ), ), 'btn_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => array( 'btn_type' => 'pagelayer-btn-custom', 'show_more' => 'true', ), ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_label'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', 'show_more' => 'true', ), 'show' => array( 'btn_hover' => '' ), ), 'more_color' => array( 'type' => 'color', 'label' => __pl('color'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-more' => 'color:{{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', 'show_more' => 'true', ), 'show' => array( 'btn_hover' => '' ), ), 'btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'btn_hover' => 'hover' ), 'req' => ['show_more' => 'true'], ), 'btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_hover_label'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', 'show_more' => 'true', ), 'show' => array( 'btn_hover' => 'hover' ), ), 'more_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wposts-more:hover' => 'color:{{val}};'], 'req' => array( 'btn_type' => 'pagelayer-btn-custom', 'show_more' => 'true', ), 'show' => array( 'btn_hover' => 'hover' ), ), ]; // Post More style $pagelayer_btn_border_style = [ 'btn_bor_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => '' ) ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type' => '' ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, '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;'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => 'hover' ) ), 'btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type_hover' => '' ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, '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;'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), ]; // Archives Post title pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_archive_title', array( 'name' => __pl('archive_title'), 'group' => 'archive', 'html' => '<div class="pagelayer-archive-title">'. pagelayer_get_the_title() .'</div>', 'params' => array( 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'list' => [ 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ], 'css' => ['{{element}} .pagelayer-archive-title' => 'text-align: {{val}}'], ), 'color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-archive-title' => 'color:{{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-archive-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;'], ), ) ) ); // Archive Posts shows the posts as per the QUERY of the current page pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_archive_posts', array( 'name' => __pl('archive_posts'), 'group' => 'archive', 'html' => '{{pagelayer_pagination_top}} <div class="pagelayer-posts-container">{{pagelayer_archive_posts}}</div> {{pagelayer_pagination_bottom}} <div if="{{infinite_types}}" class="pagelayer_load_button" data-text={{infinite_final}}> <a class="pagelayer-btn-holder pagelayer-btn-load pagelayer-ele-link {{infinite_btn_type}} {{infinite_btn_size}} {{load_btn_icon_position}}"> <i if="{{load_btn_icon}}" class="{{load_btn_icon}} pagelayer-btn-load-icon"></i> <span if="{{infinite_text}}" class="pagelayer-btn-load-text" >{{infinite_text}}</span> <i if="{{load_btn_icon}}" class="{{load_btn_icon}} pagelayer-btn-load-icon"></i> </a> <div class="pagelayer-loader-holder" > <i class="fa fa-spinner fa-spin fa-3x fa-fw" aria-hidden="true"></i> </div> </div>', 'params' => $pagelayer_posts_options, 'thumb_style' => $pagelayer_thumb_style, 'title_style' => $pagelayer_title_style, 'meta_options' => $pagelayer_meta_style, 'content_style' => $pagelayer_content_style, 'more_style' => $pagelayer_more_style, 'infinite' => $pagelayer_infinite_style, 'paginate_links' => array( 'pagination' => array( 'type' => 'select', 'label' => __pl('pagination'), 'default' => 'number_prev_next', 'list' => array( '' => __pl('none'), 'number' => __pl('number'), 'number_prev_next' => __pl('number_prev_next'), ), ), 'pagination_on' => array( 'type' => 'select', 'label' => __pl('pagination_on'), 'list' => array( '' => __pl('bottom'), 'top' => __pl('top'), ), 'req' => ['!pagination' => ''] ), 'pagi_prev_text' => array( 'type' => 'text', 'label' => __pl('prev_text'), 'default' => 'Previous', 'req' => ['!pagination' => ['', 'number']] ), 'pagi_next_text' => array( 'type' => 'text', 'label' => __pl('next_text'), 'default' => 'Next', 'req' => ['!pagination' => ['', 'number']] ), 'pagi_end_size' => array( 'type' => 'spinner', 'label' => __pl('pagi_end_size'), 'default' => 1, 'req' => ['!pagination' => ''] ), 'pagi_mid_size' => array( 'type' => 'spinner', 'label' => __pl('pagi_mid_size'), 'default' => 2, 'req' => ['!pagination' => ''] ), 'before_page_number' => array( 'type' => 'text', 'label' => __pl('before_page_number'), 'req' => ['!pagination' => ''] ), 'after_page_number' => array( 'type' => 'text', 'label' => __pl('after_page_number'), 'req' => ['!pagination' => ''] ), ), 'paginate_links_style' => array( 'pagi_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .pagelayer-pagination' => '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;', ], 'req' => ['!pagination' => ''] ), 'pagi_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-pagination' => 'text-align:{{val}}'], 'req' => ['!pagination' => ''] ), 'pagi_colors' => array( 'type' => 'radio', 'label' => __pl('colors'), 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), 'active' => __pl('active'), ), 'req' => ['!pagination' => ''] ), 'pagi_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-pagination a.page-numbers' => 'color:{{val}}'], 'show' => [ 'pagi_colors' => 'normal'], 'req' => ['!pagination' => ''] ), 'pagi_hover_color' => array( 'type' => 'color', 'label' => __pl('current_color'), 'css' => ['{{element}} .pagelayer-pagination a.page-numbers:hover' => 'color:{{val}}'], 'show' => [ 'pagi_colors' => 'hover'], 'req' => ['!pagination' => ''] ), 'pagi_current_color' => array( 'type' => 'color', 'label' => __pl('current_color'), 'css' => ['{{element}} .pagelayer-pagination .current' => 'color:{{val}}'], 'show' => [ 'pagi_colors' => 'active'] ), 'pagi_space_between' => array( 'type' => 'slider', 'label' => __pl('space_between'), 'css' => ['{{element}} .pagelayer-pagination .page-numbers:not(:last-child)' => 'margin-right:{{val}}px'], 'req' => ['!pagination' => ''] ), 'pagi_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'css' => ['{{element}} .pagelayer-pagination' => 'padding:{{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], 'req' => ['!pagination' => ''] ), ), 'styles' => array( 'thumb_style' => __pl('thumb_style'), 'title_style' => __pl('title_style'), 'meta_options' => __pl('meta_options'), 'content_style' => __pl('content_style'), 'more_style' => __pl('more_style'), 'paginate_links' => __pl('paginate_links'), 'paginate_links_style' => __pl('paginate_links_style'), 'infinite' => __pl('infinite_scroll'), ), ) ); // Site Title pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_wp_title', array( 'name' => __pl('Site Title'), 'group' => 'wordpress', 'html' => '<div class="pagelayer-wp-title-content"> <div class="pagelayer-wp-title-section"> <a href="'.get_site_url().'" class="pagelayer-wp-title-link pagelayer-ele-link"> <img if="{{site_logo}}" class="pagelayer-img pagelayer-wp-title-img" src="{{func_image}}" title="{{{logo_img-title}}}" alt="{{{logo_img-alt}}}"/> <div class="pagelayer-wp-title-holder"> <div class="pagelayer-wp-title-heading">'.get_bloginfo( 'name' ).'</div> <div if="{{site_desc}}" class="pagelayer-wp-title-desc">'.get_bloginfo( 'description' ).'</div> </div> </a> </div> <div>', 'params' => array( 'site_title_style' => array( 'type' => 'typography', 'label' => __pl('typography'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-title-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;'], ), 'site_title_state' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'title_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-title-heading' => 'color:{{val}};'], 'show' => ['!site_title_state' => 'hover'], ), 'title_color_hover' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => ['{{element}} .pagelayer-wp-title-heading:hover' => 'color:{{val}};'], 'show' => ['site_title_state' => 'hover'], ), 'title_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('service_icon_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 5000, 'css' => ['{{element}} .pagelayer-wp-title-heading' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'], 'show' => ['site_title_state' => 'hover'], ), 'text-align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'css' => ['{{element}} .pagelayer-wp-title-heading' => 'text-align:{{val}};'], ), 'title_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp-title-heading' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), 'disable_title' => array( 'type' => 'checkbox', 'label' => __pl('disable_title'), 'desc' => __pl('disable_title_exp'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-title-holder' => 'display: none;'], 'req' => ['site_logo' => 'true'] ), ), 'site_description' => array( 'site_desc' => array( 'type' => 'checkbox', 'label' => __pl('site_desc'), 'np' => 1, ), 'site_desc_style' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-wp-title-desc' => '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;'], 'req' => ['site_desc' => 'true'] ), 'site_desc_state' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => ['site_desc' => 'true'] ), 'desc_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => ['{{element}} .pagelayer-wp-title-desc' => 'color:{{val}};'], 'show' => ['site_desc_state' => 'normal'], 'req' => ['site_desc' => 'true'] ), 'desc_color_hover' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => ['{{element}} .pagelayer-wp-title-desc:hover' => 'color:{{val}};'], 'show' => ['site_desc_state' => 'hover'], 'req' => ['site_desc' => 'true'] ), 'desc_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('service_icon_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 5000, 'css' => ['{{element}} .pagelayer-wp-title-desc' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'], 'show' => ['site_desc_state' => 'hover'], 'req' => ['site_desc' => 'true'] ), 'desc_text_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'css' => ['{{element}} .pagelayer-wp-title-desc' => 'text-align:{{val}};'], 'req' => ['site_desc' => 'true'] ), 'desc_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp-title-desc' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], 'req' => ['site_desc' => 'true'] ), ), 'logo_style' => array( 'site_logo' => array( 'type' => 'checkbox', 'label' => __pl('site_logo'), 'np' => 1, //'desc' => __pl('site_logo_desc'), ), 'logo_img_type' => array( 'type' => 'select', 'label' => __pl('logo_img_type'), 'np' => 1, 'list' => array( '' => __pl('default_logo'), 'custom-logo' => __pl('custom_logo'), ), 'req' => array( 'site_logo' => 'true' ) ), 'logo_img' => array( 'type' => 'image', 'label' => __pl('logo_select'), 'np' => 1, 'ai' => false, 'req' => array( 'site_logo' => 'true', 'logo_img_type' => 'custom-logo', ) ), 'logo_img_size' => array( 'type' => 'radio', 'label' => __pl('logo_size'), 'default' => 'full', 'list' => array( 'full' => __pl('full'), 'thumbnail' => __pl('thumbnail'), 'custom' => __pl('custom'), ), 'req' => array( 'site_logo' => 'true' ) ), 'logo_img_custom_size' => array( 'type' => 'slider', 'label' => __pl('logo_custom_size'), 'min' => 10, 'max' => 100, 'default' => 20, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp-title-img' => 'width:{{val}}%; height: auto;'], 'req' => array( 'logo_img_size' => 'custom', 'site_logo' => 'true' ) ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'left', 'list' => array( 'left' => __pl('left'), 'top' => __pl('top'), 'right' => __pl('right') ), 'addClass' => ['{{element}} .pagelayer-wp-title-link' => 'pagelayer-wp-title-align-{{val}}'], 'req' => array( 'site_logo' => 'true' ) ), 'vertical_align' => array( 'type' => 'radio', 'label' => __pl('vertical_alignment'), 'default' => 'middle', 'list' => array( 'top' => __pl('top'), 'middle' => __pl('middle'), 'bottom' => __pl('bottom') ), 'addClass' => ['{{element}} .pagelayer-wp-title-link' => 'pagelayer-wp-title-vertical-{{val}}'], 'req' => ['site_logo' => 'true', '!align' => 'top'] ), ), 'styles' => [ 'site_description' => __pl('site_desc'), 'logo_style' => __pl('logo_style'), ] ) ); // Copyright pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_copyright', array( 'name' => __pl('copyright'), 'group' => 'other', 'icon' => 'fa fa-copyright', 'html' => '<div class="pagelayer-copyright"> <a href="'.home_url().'"> {{copyright_text}} </a> </div>', 'params' => array( 'copyright_text' => array( 'type' => 'textarea', 'label' => __pl('text'), 'default' => pagelayer_get_option('pagelayer-copyright') ), 'color' => array( 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-copyright *, {{element}} .pagelayer-copyright' => 'color:{{val}}'] ), 'typography' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-copyright *, {{element}} .pagelayer-copyright' => '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;'], ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'screen' => 1, 'list' => [ 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ], 'css' => ['{{element}} .pagelayer-copyright' => 'text-align: {{val}}'], ), ) ) ); // Primary Menu pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_wp_menu', array( 'name' => __pl('primary_menu'), 'group' => 'wordpress', 'html' => '<div class="pagelayer-wp-menu-holder" data-layout="{{layout}}" data-submenu_ind="{{submenu_ind}}" data-drop_breakpoint="{{drop_breakpoint}}"> <div class="pagelayer-primary-menu-bar"><i class="{{menu_toggle_icon}}"></i></div> <div class="pagelayer-wp-menu-container pagelayer-menu-type-{{layout}} pagelayer-menu-hover-{{pointer}} {{m_animation}} {{slide_style}}" data-align="{{align}}"> <div class="pagelayer-wp_menu-close"><i class="fas fa-times"></i></div> {{nav_menu}} </div> </div>', 'params' => array( 'nav_list' => array(// Never use the same name as we are replacing in IMPORT 'type' => 'menus', 'label' => __pl('select_menu'), 'np' => 1, 'default' => pagelayer_get_menu_list(true), 'list' => pagelayer_get_menu_list(), ), ), 'menu_style' => [ 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'default' => 'left', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-wp_menu-ul' => 'text-align:{{val}};'], ), 'layout' => array( 'type' => 'select', 'label' => __pl('layout'), 'default' => 'horizontal', 'list' => array( 'horizontal' => __pl('horizontal'), 'vertical' => __pl('vertical'), 'dropdown' => __pl('dropdown'), ), ), 'drop_breakpoint' => array( 'type' => 'select', 'label' => __pl('drop_breakpoint'), 'np' => 1, 'list' => array( 'none' => __pl('none'), 'mobile' => __pl('mobile'), 'tablet' => __pl('tablet'), ), 'req' => [ '!layout' => 'dropdown'] ), 'pointer' => array( 'type' => 'select', 'label' => __pl('pointer'), 'default' => 'underline', 'list' => array( '' => __pl('none'), 'underline' => __pl('underline'), 'overline' => __pl('overline'), 'doubleline' => __pl('double_line'), 'framed' => __pl('Framed'), 'background' => __pl('bg_color'), 'text' => __pl('text'), ), ), 'm_animation' => array( 'type' => 'select', 'label' => __pl('animation'), 'default' => 'slide', 'list' => array( 'none' => __pl('none'), 'fade' => __pl('fade'), 'slide' => __pl('slide'), 'grow' => __pl('Grow'), 'dropin' => __pl('drop_in'), 'dropout' => __pl('Drop_out'), ), ), 'list_style' => array( 'type' => 'select', 'label' => __pl('list_style'), 'np' => 1, 'default' => 'none', 'list' => array( 'none' => __pl('none'), 'circle' => __pl('list_list_type_circle'), 'decimal' => __pl('decimal'), 'square' => __pl('list_list_type_square'), 'disc' => __pl('list_list_type_disc'), 'inherit' => __pl('inherit'), 'upper-roman' => __pl('upper_roman'), 'upper-alpha' => __pl('upper_alpha'), 'lower-roman' => __pl('lower_roman'), 'lower-alpha' => __pl('lower_alpha'), ), 'css' => ['{{element}} .pagelayer-wp-menu-container li.menu-item' => 'list-style: {{val}};'] ), 'submenu_ind' => array( 'type' => 'select', 'label' => __pl('sbmenu_indicator'), 'np' => 1, 'default' => 'caret-down', 'list' => array( '' => __pl('none'), 'caret-down' => __pl('caret_down'), 'chevron-down' => __pl('chevron'), 'angle-down' => __pl('angle'), 'plus' => __pl('Plus'), 'arrow-down' => __pl('arrow_down'), ), ), 'submenu_anim' => array( 'type' => 'select', 'label' => __pl('submenu_anim'), 'np' => 1, 'list' => array( '' => __pl('none'), 'pulse' => __pl('Pulse'), 'fade' => __pl('fade'), 'fadeindown' => __pl('fadeindown'), 'fadeinup' => __pl('fadeinup'), 'slideindown' => __pl('slideindown'), 'slideinup' => __pl('slideinup'), 'zoomin' => __pl('zoomin'), 'flip' => __pl('flip'), ), 'css' => ['{{element}} .pagelayer-active-sub-menu.pagelayer-mega-menu-item > .pagelayer-mega-menu, :not(.pagelayer-ele-wrap) > {{element}} .pagelayer-menu-type-horizontal .pagelayer-mega-menu-item:hover > .pagelayer-mega-menu, {{element}} .pagelayer-active-sub-menu:not(.pagelayer-mega-menu-item) > ul.sub-menu, {{element}} .pagelayer-menu-type-horizontal .menu-item-has-children:not(.pagelayer-mega-menu-item, .pagelayer-mega-column-item .sub-menu li):hover > ul.sub-menu, :not(.pagelayer-ele-wrap) > .pagelayer-wp_menu .pagelayer-menu-type-vertical[class*="pagelayer-submenu-position-"] .pagelayer-mega-menu-item:hover > .pagelayer-mega-menu, {{element}} .pagelayer-menu-type-vertical[class*="pagelayer-submenu-position-"] .menu-item-has-children:not(.pagelayer-mega-menu-item, .pagelayer-mega-column-item .sub-menu li):hover > ul.sub-menu' => 'animation-name: pagelayer-submenu-{{val}};animation-duration: 300ms;animation-timing-function: linear; animation-iteration-count: 1;'], ), 'menu_colors' => array( 'type' => 'radio', 'label' => __pl('Background'), 'np' => 1, //'no_val' => 1,// Dont set any value to element 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), 'active' => __pl('active'), ], ), 'menu_color' => [ 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-ul>li a:first-child' => 'color: {{val}};'], 'show' => ['menu_colors' => ''], 'screen' => 1 ], 'menu_bg_color' => [ 'type' => 'color', 'label' => __pl('p_bg_color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-ul>li' => 'background-color: {{val}};'], 'show' => ['menu_colors' => ''], 'screen' => 1 ], 'menu_color_hover' => [ 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-ul>li>a:hover' => 'color: {{val}};', '{{element}} .pagelayer-wp_menu-ul>li.pagelayer-active-sub-menu>a:hover' => 'color: {{val}};'], 'show' => ['menu_colors' => 'hover'], 'screen' => 1 ], 'menu_bg_color_hover' => [ 'type' => 'color', 'label' => __pl('p_bg_color'), 'np' => 1, 'default' => '#00ccff', 'css' => ['{{element}} .pagelayer-menu-hover-background .pagelayer-wp_menu-ul>li:hover' => 'background-color: {{val}};','{{element}} .pagelayer-wp_menu-ul>li>a:hover:before' => 'background-color: {{val}};border-color:{{val}}', '{{element}} .pagelayer-wp_menu-ul>li>a:hover:after' => 'background-color: {{val}};border-color:{{val}}', '{{element}} .pagelayer-wp_menu-ul>li.pagelayer-active-sub-menu' => 'background-color: {{val}};'], 'show' => ['menu_colors' => 'hover'], 'screen' => 1 ], 'menu_color_active' => [ 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-ul>li.current-menu-item>a' => 'color: {{val}};'], 'show' => ['menu_colors' => 'active'], 'screen' => 1 ], 'menu_bg_color_active' => [ 'type' => 'color', 'label' => __pl('p_bg_color'), 'np' => 1, 'default' => '#00ccff', 'css' => ['{{element}} .pagelayer-wp_menu-ul>li.current-menu-item' => 'background-color: {{val}};'], 'show' => ['menu_colors' => 'active'], 'screen' => 1 ], 'menu_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container ul li.menu-item > a' => '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;'], ), 'menu_pointer_height' => [ 'type' => 'slider', 'label' => __pl('pointer_height'), 'screen' => 1, 'min' => 1, 'max' => 50, 'css' => ['{{element}} .pagelayer-menu-hover-underline:not(.none) .pagelayer-wp_menu-ul>li>a:before, {{element}} .pagelayer-menu-hover-doubleline:not(.none) .pagelayer-wp_menu-ul>li>a:before, {{element}} .pagelayer-menu-hover-doubleline:not(.none) .pagelayer-wp_menu-ul>li>a:after, {{element}} .pagelayer-menu-hover-overline:not(.none) .pagelayer-wp_menu-ul>li>a:before' => 'height:{{val}}px;', '{{element}} .pagelayer-menu-hover-framed .pagelayer-wp_menu-ul>li>a:hover:before' => 'border-width: {{val}}px'], 'show' => ['pointer' => ['underline', 'overline', 'doubleline', 'framed']], ], 'horizontal_padding' => [ 'type' => 'slider', 'label' => __pl('horizontal_padding'), 'default' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-ul>li>a' => 'padding-left: {{val}}px;padding-right: {{val}}px;'], ], 'vertical_padding' => [ 'type' => 'slider', 'label' => __pl('vertical_padding'), 'default' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-ul>li>a' => 'padding-top: {{val}}px;padding-bottom : {{val}}px;'], ], ], 'submenu_style' => [ 'submenu_align' => array( 'type' => 'radio', 'label' => __pl('item_alignment'), 'np' => 1, 'default' => 'left', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} ul.sub-menu li>a' => 'justify-content:{{val}} !important;'], ), 'submenu_position' => [ 'type' => 'radio', 'label' => __pl('position'), 'default' => 'left', 'list' => array( 'left' => __pl('left'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-menu-type-horizontal .sub-menu' => '{{val}}:0px;', '{{element}} .pagelayer-menu-type-horizontal .sub-menu .sub-menu' => 'left:unset;{{val}}:100% !important;top:0px;'], 'req' => ['layout' => 'horizontal'], ], 'submenu_v_position' => [ 'type' => 'radio', 'label' => __pl('position'), 'list' => array( '' => __pl('Default'), 'left' => __pl('left'), 'right' => __pl('right'), ), 'addClass' => ['{{element}} .pagelayer-menu-type-vertical' => 'pagelayer-submenu-position-{{val}}'], 'req' => ['layout' => 'vertical'], ], 'submenu_colors' => array( 'type' => 'radio', 'label' => __pl('Background'), 'np' => 1, //'no_val' => 1,// Dont set any value to element 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), 'active' => __pl('active'), ], ), 'submenu_color' => [ 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li a' => 'color: {{val}};'], 'show' => ['submenu_colors' => ''], 'screen' => 1 ], 'submenu_bg_color' => [ 'type' => 'color', 'label' => __pl('bg_color'), 'np' => 1, 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu' => 'background-color: {{val}};'], 'show' => ['submenu_colors' => ''], 'screen' => 1 ], 'submenu_color_hover' => [ 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li a:hover' => 'color: {{val}};', '{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.pagelayer-active-sub-menu a:hover' => 'color: {{val}};'], 'show' => ['submenu_colors' => 'hover'], 'screen' => 1 ], 'submenu_bg_color_hover' => [ 'type' => 'color', 'label' => __pl('bg_color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li:hover' => 'background-color: {{val}};', '{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.pagelayer-active-sub-menu' => 'background-color: {{val}};'], 'show' => ['submenu_colors' => 'hover'], 'screen' => 1 ], 'submenu_color_active' => [ 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.current-menu-item a' => 'color: {{val}};'], 'show' => ['submenu_colors' => 'active'], 'screen' => 1 ], 'submenu_bg_color_active' => [ 'type' => 'color', 'label' => __pl('bg_color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.current-menu-item' => 'background-color: {{val}};'], 'show' => ['submenu_colors' => 'active'], 'screen' => 1 ], 'submenu_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'np' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => '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;'] ), 'submenu_horizontal_padding' => [ 'type' => 'slider', 'label' => __pl('horizontal_padding'), 'default' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => 'padding-left: {{val}}px;padding-right: {{val}}px;'], ], 'submenu_vertical_padding' => [ 'type' => 'slider', 'label' => __pl('vertical_padding'), 'default' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => 'padding-top: {{val}}px;padding-bottom : {{val}}px;'], ], 'submenu_left_margin' => [ 'type' => 'slider', 'label' => __pl('left_margin'), 'default' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp-menu-container .sub-menu a' => 'margin-left: {{val}}px;', '{{element}} .pagelayer-wp-menu-container .sub-menu .sub-menu a' => 'margin-left: calc(2 * {{val}}px);'], ], 'submenu_index' => [ 'type' => 'slider', 'label' => __pl('z-index'), 'css' => ['{{element}} .menu-item .sub-menu, {{element}} .menu-item .pagelayer-mega-menu' => 'z-index:{{val}}'], ], ], 'menu_toggle' => [ 'menu_toggle_icon' => array( 'type' => 'icon', 'label' => __pl('icon'), 'default' => 'fas fa-bars', 'addAttr' => ['{{element}} .pagelayer-primary-menu-bar i' => 'data-icon="{{menu_toggle_icon}}"'], 'desc' => __pl('menu_toggle_icon_desc') ), 'menu_toggle_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'default' => 'center', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-primary-menu-bar' => 'text-align:{{val}}'], ), 'menu_toggle_color' => array( 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'color:{{val}}'], ), 'menu_toggle_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'np' => 1, 'default' => '#0986c050', 'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'background-color:{{val}}'], ), 'menu_toggle_size' => array( 'type' => 'slider', 'label' => __pl('font_size'), 'default' => 30, 'screen' => 1, 'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'font-size:{{val}}px'], ), 'menu_toggle_padding' => array( 'type' => 'dimension', 'label' => __pl('padding'), 'screen' => 1, 'units' => ['px', 'em', '%'], 'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'padding:{{val[0]}} {{val[1]}};'], ), ], 'dropdown_style' => [ 'slide_style' => array( 'type' => 'select', 'label' => __pl('slide_style'), 'default' => 'pagelayer-wp_menu-right', 'list' => array( 'pagelayer-wp_menu-down' => __pl('slide-down'), 'pagelayer-wp_menu-right' => __pl('slide-right'), 'pagelayer-wp_menu-left' => __pl('slide-left'), 'pagelayer-wp_menu-full' => __pl('full_screen') ), 'req' => ['!drop_breakpoint' => 'none'] ), 'dropdown_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'screen' => 1, 'list' => array( 'flex-start' => __pl('left'), 'center' => __pl('center'), 'flex-end' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul > li > a' => 'justify-content: {{val}};'], ), 'menu_width' => [ 'type' => 'spinner', 'label' => __pl('width'), 'np' => 1, 'default' => 30, 'min' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'width:{{val}}%;'], 'req' => [ '!drop_breakpoint' => 'none', '!slide_style' => ['pagelayer-wp_menu-full','pagelayer-wp_menu-down'] ] ], 'menu_down_width' => [ 'type' => 'spinner', 'label' => __pl('width'), 'default' => 100, 'min' => 1, 'screen' => 1, 'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'width:{{val}}%;'], 'req' => [ '!drop_breakpoint' => 'none', 'slide_style' => 'pagelayer-wp_menu-down' ] ], 'menu_items_width' => [ 'type' => 'spinner', 'label' => __pl('menu_items_width'), 'default' => 100, 'min' => 1, 'max' => 100, 'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'width:{{val}}%;'], 'req' => [ '!drop_breakpoint' => 'none', '!slide_style' => ['pagelayer-wp_menu-down'] ] ], 'menu_posx' => array( 'type' => 'slider', 'label' => __pl('horizontal_pos'), 'screen' => 1, 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 0, 'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'left: {{val}}%;'], 'req' => [ '!drop_breakpoint' => 'none', '!slide_style' => 'pagelayer-wp_menu-down' ] ), 'menu_posy' => array( 'type' => 'slider', 'label' => __pl('verticle_postion'), 'screen' => 1, 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 8, 'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'top: {{val}}%; transform: translateY(-{{val}}%);'], 'req' => [ '!drop_breakpoint' => 'none', '!slide_style' => 'pagelayer-wp_menu-down' ] ), 'menu_bg' => array( 'type' => 'radio', 'label' => __pl('col_bg_styles'), 'np' => 1, 'default' => 'color', 'list' => array( '' => __pl('none'), 'color' => __pl('color'), 'gradient' => __pl('gradient'), ), 'req' => ['!drop_breakpoint' => 'none'] ), 'menu_items_bg' => array( 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'background-color:{{val}}'], 'req' => [ 'menu_bg' => 'color', '!drop_breakpoint' => 'none' ], ), 'menu_items_gradient' => array( 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100', 'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'], 'req' => [ 'menu_bg' => 'gradient', '!drop_breakpoint' => 'none' ], ), ], 'close_style' =>[ 'close_size' => array( 'type' => 'slider', 'label' => __pl('font_size'), 'np' => 1, 'default' => 25, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'font-size:{{val}}px'], 'req' => ['!drop_breakpoint' => 'none'], ), 'close_padding' => array( 'type' => 'slider', 'label' => __pl('padding'), 'default' => 8, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'padding:{{val}}px'], 'req' => ['!drop_breakpoint' => 'none'], ), 'close_pos_x' => array( 'type' => 'slider', 'label' => __pl('horizontal_pos'), 'step' => 1, 'max' => 100, 'default' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'left:{{val}}%;'], 'req' => ['!drop_breakpoint' => 'none'], ), 'close_pos_y' => array( 'type' => 'slider', 'label' => __pl('verticle_postion'), 'step' => 1, 'max' => 100, 'default' => 0, 'screen' => 1, 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'top:{{val}}%;'], 'req' => ['!drop_breakpoint' => 'none'], ), 'close_state' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'close_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff68', 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'color:{{val}}'], 'req' => ['!drop_breakpoint' => 'none'], 'show' => ['close_state' => ''] ), 'close_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#00000036', 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'background-color:{{val}}'], 'req' => ['!drop_breakpoint' => 'none'], 'show' => ['close_state' => ''] ), 'close_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('delay'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 600, 'css' => ['{{element}} .pagelayer-wp_menu-close i' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => ['close_state' => 'hover'] ), 'close_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-wp_menu-close i:hover' => 'color:{{val}}'], 'req' => ['!drop_breakpoint' => 'none'], 'show' => ['close_state' => 'hover'] ), 'close_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-wp_menu-close i:hover' => 'background-color:{{val}}'], 'req' => ['!drop_breakpoint' => 'none'], 'show' => ['close_state' => 'hover'] ), ], 'styles' => [ 'menu_style' => __pl('menu_style'), 'submenu_style' => __pl('submenu_style'), 'menu_toggle' => __pl('toggle_style'), 'dropdown_style' => __pl('dropdown_style'), 'close_style' => __pl('close_style'), ] ) ); // Menu items handler // Created this shortcode only use for menus property pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_nav_menu_item', array( 'name' => __pl('Menu Items'), 'group' => 'other', 'not_visible' => 1, 'hide_active' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_wp_menu'], 'icon' => 'far fa-minus-square', 'holder' => '.pagelayer-menu-item-holder', 'has_group' => [ 'section' => 'params', 'prop' => 'element', ], 'html' => '<div class="pagelayer-menu-item-holder"></div>', 'params' => array( 'title' => array( 'type' => 'text', 'label' => __pl('title'), ), 'menu_type' => array( 'type' => 'select', 'label' => __pl('menu_type'), 'desc' => __pl('menu_type_desc'), 'list' => array( '' => __pl('flyout'), 'mega' => __pl('mega_menu'), 'column' => __pl('column_menu'), ), 'req' => ['menu_item_parent' => '0'] ), 'element' => array( 'type' => 'group', 'label' => __pl('Inner Row'), 'sc' => PAGELAYER_SC_PREFIX.'_inner_row', 'count' => 1, 'item_label' => array( 'default' => __pl('Inner Row'), ), 'text' => __pl('Add new row'), 'req' => ['menu_type' => 'mega'] ), 'columns' => array( 'type' => 'select', 'label' => __pl('columns_count'), 'screen' => 1, 'css' => ['.menu-item-{{ID}} > .sub-menu' => 'columns: {{val}}'], 'list' => array( '' => __pl('default'), 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7=> '7', 8 => '8', 9 => '9', 10 => '10' ), 'req' => ['menu_type' => 'column'] ), 'col_gap' => array( 'type' => 'slider', 'label' => __pl('col_gap'), 'min' => 0, 'max' => 100, 'screen' => 1, 'css' => ['.menu-item-{{ID}} > .sub-menu' => 'column-gap: {{val}}px;'], 'req' => ['menu_type' => 'column'] ), 'mega_width' => array( 'type' => 'select', 'label' => __pl('mega_width'), 'list' => array( '' => __pl('menu_container'), 'row_container' => __pl('row_container'), 'custom' => __pl('custom'), ), 'addAttr' => 'pagelayer-mega-width="{{mega_width}}"', 'req' => ['!menu_type' => ''] ), 'mega_custom_width' => array( 'type' => 'spinner', 'label' => __pl('mega_custom_width'), 'default' => '800', 'addAttr' => 'pagelayer-mega-custom-width="{{mega_custom_width}}"', 'req' => ['mega_width' => 'custom', '!menu_type' => ''] ), 'menu_icon' => array( 'type' => 'icon', 'label' => __pl('icon'), ), ), 'menu_setting' => array( 'disable_link' => array( 'type' => 'checkbox', 'label' => __pl('disable_link'), ), 'hide_text' => array( 'type' => 'checkbox', 'label' => __pl('hide_text'), 'css' => ['.menu-item-{{ID}} > a .pagelayer-nav-menu-title' => 'display:none'] ), 'icon_position' => array( 'type' => 'select', 'label' => __pl('icon_position'), 'list' => array( '' => __pl('left'), 'right' => __pl('right'), ), ), ), 'highlight' => array( 'highlight_label' => array( 'type' => 'text', 'label' => __pl('highlight_label'), ), 'highlight_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['.menu-item-{{ID}} > a .pagelayer-menu-highlight' => 'background:{{val}}'] ), 'highlight_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['.menu-item-{{ID}} > a .pagelayer-menu-highlight' => 'color:{{val}}'] ), ), 'styles' => array( 'menu_setting' => __pl('menu_setting'), 'highlight' => __pl('highlight_label'), ), ) ); // Breadcrumb pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_breadcrumb', array( 'name' => __pl('breadcrumb'), 'group' => 'other', 'html' => '<span if="{{prefix}}" class="pagelayer-breadcrumb-prefix">{{prefix}}</span> <span class="pagelayer-breadcrumb-section">'. pagelayer_get_breadcrumb(). '</span>', //'html' => yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ).pagelayer_get_breadcrumb(), 'params' => array( 'home' => array( 'type' => 'text', 'label' => __pl('home_label'), 'np' => 1, 'default' => 'Home', ), 'breadcrumb_color' => array( 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-breadcrumb-section a' => 'color:{{val}};'] ), 'breadcrumb_hover' => array( 'type' => 'color', 'label' => __pl('hovered_color'), 'css' => ['{{element}} .pagelayer-breadcrumb-section a:hover' => 'color:{{val}};'] ), 'cur_color' => array( 'type' => 'color', 'label' => __pl('cur_color'), 'css' => ['{{element}} .pagelayer-breadcrumb-section' => 'color:{{val}};'] ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-breadcrumb-section' => '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;'], ), 'alignment' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'css' =>'text-align:{{val}};', 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), ), ), 'prefix_style' => [ 'prefix' => array( 'type' => 'text', 'label' => __pl('breadcrumb_prefix'), ), 'search_prefix' => array( 'type' => 'text', 'label' => __pl('search_prefix'), ), '404_prefix' => array( 'type' => 'text', 'label' => __pl('404_prefix'), ), 'prefix_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-breadcrumb-prefix' => 'color:{{val}};'] ), 'prefix_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-breadcrumb-prefix' => '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;'], ), ], 'separator_style' => [ 'separator' => array( 'type' => 'text', 'label' => __pl('separator_style'), 'default' => ' » ', ), 'separator_color' => array( 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'default' => '#333333', 'css' => ['{{element}} .pagelayer-breadcrumb-sep' => 'color:{{val}};'] ), ], 'styles' => [ 'prefix_style' => __pl('prefix_style'), 'separator_style' => __pl('separator_style'), ] ) ); // Contact Form pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_contact', array( 'name' => __pl('contact_form'), 'group' => 'other', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'holder' => '.pagelayer-contact-holder', 'html' => '<div class="pagelayer-contact-form-div pagelayer-contact-form-holder"> <div class="pagelayer-message-box pagelayer-message-top"></div> <div if={{note}} class="pagelayer-contact-form-note">{{note}}</div> <form class="pagelayer-contact-form" id="{{form}}" name="{{name}}" onsubmit="return pagelayer_contact_submit(this, event)" method="POST"> <div class="pagelayer-contact-holder"> </div> <input type="hidden" name="cfa-pagelayer-id"/> <input if="{{con_post_id}}" type="hidden" name="cfa-post-id" value="{{con_post_id}}"/> <input if="{{contact_custom_templ}}" type="hidden" name="cfa-custom-template" value="{{contact_custom_templ}}"/> <input if="{{redirect_url}}" type="hidden" name="cfa-redirect" value="{{{redirect_url}}}"/> <div class="g-recaptcha pagelayer-recaptcha" data-sitekey="{{grecaptcha}}" if="{{grecaptcha_v2}}"></div> <input type="hidden" name="g-recaptcha-response" data-version="v3" class="pagelayer-g-recaptcha-v3-token" data-sitekey="{{grecaptcha}}" if="{{grecaptcha_v3}}"/> <div class="pagelayer-contact-submit-holder"> <button if="{{submit}}" type="submit" form="{{form}}" class="pagelayer-contact-submit-btn pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}"> <i class="fa fa-circle-o-notch fa-spin" style="display:none;margin-right:5px;"></i> <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon pagelayer-cf-icon-left"></i> <span if="{{submit}}" class="pagelayer-btn-text">{{submit}}</span> <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon pagelayer-cf-icon-right"></i> </button> </div> </form> <div class="pagelayer-message-box pagelayer-message-bottom"></div> </div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('Label'), 'sc' => PAGELAYER_SC_PREFIX.'_contact_item', 'item_label' => array( 'default' => __pl('Label'), 'param' => 'label_name' ), 'count' => 1, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('field_name'))), ), 'redirect_show' => array( 'type' => 'checkbox', 'label' => __pl('redirect_url'), ), 'redirect_url' => array( 'type' => 'link', 'label' => __pl('redirect_urllabel'), 'desc' => __pl('redirect_urldesc'), 'req' => array( 'redirect_show' => 'true' ) ), 'captcha' => array( 'type' => 'checkbox', 'label' => __pl('use_recaptcha'), 'default' => '', 'desc' => __pl('use_recaptcha_desc'), ), 'form' => array( 'type' => 'text', 'label' => __pl('form_id'), 'desc' => __pl('form_id_desc'), 'default' => 'contact-form', 'np' => 1 ), 'name' => array( 'type' => 'text', 'label' => __pl('form_name'), 'default' => 'Contact Form', 'desc' => __pl('form_name_desc'), 'np' => 1 ), 'form_position' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'default', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'css' => ['{{element}} .pagelayer-contact-form' => 'text-align: {{val}}'], ), 'note' => array( 'type' => 'text', 'label' => __pl('note'), 'edit' => '.pagelayer-contact-form-note', ), 'note_color' => array( 'type' => 'color', 'label' => __pl('note_color'), 'css' => ['{{element}} .pagelayer-contact-form-note' => 'color:{{val}}'], ), ), 'label_style' =>[ 'form_label_color' => array( 'type' => 'color', 'label' => __pl('label_color'), 'default' => '', 'show' => ['field_state' => ''], 'css' => ['{{element}} label' => 'color: {{val}}'], ), 'label_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} label' => '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;'], ), 'space_label' => array( 'type' => 'padding', 'label' => __pl('space_between'), 'default' => ',,10,', 'screen' => 1, 'css' => ['{{element}} label' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'], ), 'form_placeholder_color' => array( 'type' => 'color', 'label' => __pl('placeholder_color'), 'default' => '', 'show' => ['field_state' => ''], 'css' => ['{{element}} ::placeholder' => 'color: {{val}}'], ), 'placeholder_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} ::placeholder' => '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;'], ), ], 'input_style' => [ 'input_state' => array( 'type' => 'radio', 'label' => __pl('state'), 'np' => 1, 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'form_input_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => [ '{{element}} textarea, {{element}} input, {{element}} select, {{element}} date' => 'color: {{val}}' ], 'req' => array( 'input_state' => 'normal' ), ), 'form_input_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => [ '{{element}} textarea, {{element}} input, {{element}} select, {{element}} date' => 'background-color: {{val}}', ], 'req' => array( 'input_state' => 'normal', ), ), 'input_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('input_hover_delay_label'), 'min' => 0, 'step' => 100, 'max' => 5000, 'css' => ['{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'input_state' => 'hover' ), ), 'form_input_color_hover' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => [ '{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => 'color: {{val}}' ], 'req' => array( 'input_state' => 'hover' ), ), 'form_input_bg_hover' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => [ '{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => 'background-color: {{val}}' ], 'req' => array( 'input_state' => 'hover' ), ), 'input_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} select, {{element}} input,{{element}} textarea' => '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;'], ), 'input_height' => array( 'type' => 'spinner', 'label' => __pl('text_field_height'), 'min' => 1, 'max' => 1000, 'step' => 1, 'screen' => 1, 'css' => [ '{{element}} input, {{element}} select, {{element}} textarea'=> 'line-height: {{val}}px; min-height: {{val}}px', ], ), 'input_padding' => array( 'type' => 'dimension', 'label' => __pl('padding'), 'screen' => 1, 'default' => '10,10', 'css' => [ '{{element}} input, {{element}} select, {{element}} textarea'=> 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[0]}}px; padding-left:{{val[1]}}px', ], ), /* 'input_state' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', 'list' => [ '' => __pl('normal'), 'hover' => __pl('hover'), ], ), */ ], 'form_style' => [ 'field_state' => array( 'type' => 'radio', 'label' => '', 'np' => 1, 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), 'focus' => __pl('focus'), ), ), 'field_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '{{element}} input, {{element}} select, {{element}} textarea' => 'border-style: {{val}}', '{{element}} input[type="checkbox"] + label:before' => 'border-style: {{val}}' ], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'field_state' => '' ), ), 'field_border_color' => array( 'type' => 'color', 'label' => __pl('service_box_icon_border_color_label'), 'default' => '#0986c0', 'css' => [ '{{element}} input, {{element}} select, {{element}} textarea' => 'border-color: {{val}};', '{{element}} input[type="checkbox"] + label:before' => 'border-color: {{val}};' ], 'req' => array( '!field_border_type' => '' ), 'show' => array( 'field_state' => '' ), ), 'field_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} input, {{element}} select, {{element}} textarea, {{element}} input[type="checkbox"] + label:before' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!field_border_type' => '' ], 'show' => array( 'field_state' => '' ), ), 'field_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} input, {{element}} select, {{element}} textarea' => '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;'], 'req' => array( '!field_border_type' => '' ), 'show' => array( 'field_state' => '' ), ), 'field_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'screen' => 1, 'css' => [ '{{element}} input, {{element}} select, {{element}} textarea, {{element}} input[type="checkbox"] + label:before' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;' ], 'show' => ['field_state' => ''], ), 'field_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('service_btn_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} input, {{element}} select, {{element}} textarea' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'], 'show' => array( 'field_state' => 'hover' ), ), 'field_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'field_state' => 'hover' ), ), 'field_border_color_hover' => array( 'type' => 'color', 'label' => __pl('service_box_icon_border_color_label'), 'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-color: {{val}};'], 'default' => '#0986c0', 'req' => array( '!field_border_type_hover' => '' ), 'show' => array( 'field_state' => 'hover' ), ), 'field_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea: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'], 'req' => [ '!field_border_type_hover' => '' ], 'show' => array( 'field_state' => 'hover' ), ), 'field_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea: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;'], 'req' => array( '!field_border_type_hover' => '' ), 'show' => array( 'field_state' => 'hover' ), ), 'field_shadow_hover' => array( 'type' => 'box_shadow', 'label' => __pl('text_shadow'), 'screen' => 1, 'css' => [ '{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;' ], 'show' => ['field_state' => 'hover'], ), 'field_border_type_focus' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'field_state' => 'focus' ), ), 'field_border_color_focus' => array( 'type' => 'color', 'label' => __pl('service_box_icon_border_color_label'), 'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-color: {{val}};'], 'default' => '#0986c0', 'req' => array( '!field_border_type_focus' => '' ), 'show' => array( 'field_state' => 'focus' ), ), 'field_border_width_focus' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!field_border_type_focus' => '' ], 'show' => array( 'field_state' => 'focus' ), ), 'field_border_radius_focus' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => '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;'], 'req' => array( '!field_border_type_focus' => '' ), 'show' => array( 'field_state' => 'focus' ), ), 'field_shadow_focus' => array( 'type' => 'box_shadow', 'label' => __pl('text_shadow'), 'screen' => 1, 'css' => [ '{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;' ], 'show' => ['field_state' => 'focus'], ), ], 'radio_style' => [ 'form_box_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '', 'css' => [ '{{element}} input[type="radio"]:checked:before' => 'color: {{val}}', '{{element}} input[type="checkbox"]:checked + label:before' => 'color: {{val}}' ], ), 'form_box_bg_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '', 'css' => [ '{{element}} input[type="radio"]:checked:before' => 'background-color: {{val}}', '{{element}} input[type="checkbox"]:checked + label:before' => 'background-color: {{val}}' ], ), 'inline_radio' => array( 'type' => 'checkbox', 'label' => __pl('inline'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-radcheck-holder' => 'display:flex; align-items:center;'] ), 'radio_padding' => array( 'type' => 'dimension', 'label' => __pl('padding'), 'screen' => 1, 'default' => '10,10', 'css' => [ '{{element}} input[type="checkbox"] + label:before, {{element}} input[type="radio"]'=> 'height:{{val[0]}}px; min-height:{{val[0]}}px; width:{{val[1]}}px;', ], ), 'radio_spacing' => array( 'type' => 'padding', 'label' => __pl('space_around'), 'screen' => 1, 'css' => [ '{{element}} .pagelayer-radcheck-holder>div'=> 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;', ], ), ], 'button_style' => [ 'hide_btn' => array( 'type' => 'checkbox', 'label' => __pl('hide_btn'), ), 'submit' => array( 'type' => 'text', 'label' => __pl('submit_button_label'), 'default' => 'Submit', 'edit' => '.pagelayer-btn-text', 'req' => ['!hide_btn' => 'true'], ), 'btn_typo' => array( 'type' => 'typography', 'label' => __pl('quote_content_typo'), 'css' => [ '{{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;', '{{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;', ], 'req' => ['!hide_btn' => 'true'], ), 'stretch' => array( 'type' => 'checkbox', 'label' => __pl('stretch_button_label'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-contact-submit-btn' => 'width: 100%'], 'req' => ['!hide_btn' => 'true'], ), 'btn_spacing' => array( 'type' => 'padding', 'label' => __pl('spacing'), 'css' => ['{{element}} .pagelayer-contact-submit-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'], 'req' => [ '!hide_btn' => 'true', ] ), 'type' => array( 'type' => 'select', 'label' => __pl('button_type_label'), 'default' => 'pagelayer-btn-default', //'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'], 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), 'req' => ['!hide_btn' => 'true'], ), 'size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'default' => 'pagelayer-btn-small', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ), 'req' => ['!hide_btn' => 'true'], ), 'btn_custom_size' => array( 'type' => 'dimension', 'label' => __pl('btn_custom_size'), 'default' => '5,10', 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[0]}}px; padding-left:{{val[1]}}px;'], 'req' => array( 'size' => 'pagelayer-btn-custom', '!hide_btn' => 'true' ), ), 'contect_btn_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-contact-submit-holder' => 'text-align:{{val}}'], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'req' => ['!hide_btn' => 'true'], ), 'btn_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => array( 'type' => 'pagelayer-btn-custom', '!hide_btn' => 'true' ), ), 'btn_bg_color' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_label'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '', '!hide_btn' => 'true' ), ), 'btn_color' => array( 'type' => 'color', 'label' => __pl('btn_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => '', '!hide_btn' => 'true' ), ), 'btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'], 'show' => array( 'btn_hover' => 'hover', '!hide_btn' => 'true' ), ), 'btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_bg_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover', '!hide_btn' => 'true' ), ), 'btn_color_hover' => array( 'type' => 'color', 'label' => __pl('btn_color_hover_label'), 'default' => '', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'], 'req' => array( 'type' => 'pagelayer-btn-custom', ), 'show' => array( 'btn_hover' => 'hover', '!hide_btn' => 'true' ), ), ], 'icon_style' => [ 'icon' => array( 'type' => 'icon', 'label' => __pl('service_box_font_icon_label'), 'default' => '', ), 'icon_position' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'pagelayer-btn-icon-left', 'list' => array( 'pagelayer-btn-icon-left' => __pl('left'), 'pagelayer-btn-icon-right' => __pl('right') ), 'req' => array( '!icon' => '' ), ), 'icon_spacing' => array( 'type' => 'slider', 'label' => __pl('icon_spacing'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'], 'req' => array( '!icon' => '' ), ), ], 'border_style' => [ 'btn_bor_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'np' => 1, 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type' => '' ], 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, '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;'], 'req' => array( '!btn_border_type' => '' ), 'show' => array( 'btn_bor_hover' => '' ), ), 'btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-color: {{val}};'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, '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'], 'req' => [ '!btn_border_type_hover' => '' ], 'show' => array( 'btn_bor_hover' => 'hover' ), ), 'btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, '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;'], 'req' => array( '!btn_border_type_hover' => '' ), 'show' => array( 'btn_bor_hover' => 'hover' ), ), ], 'message_style' => array( 'show_msg_box' => array( 'type' => 'checkbox', 'label' => __pl('show_msg_box'), 'desc' => __pl('show_msg_box_desc') ), 'message_pos' => array( 'type' => 'radio', 'label' => __pl('position'), 'list' => array( '' => __pl('top'), 'bottom' => __pl('bottom'), ), 'addClass' => 'pagelayer-message-box-{{val}}' ), 'msg_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'css' => ['{{element}} .pagelayer-cf-msg-suc, {{element}} .pagelayer-cf-msg-err' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'], ), 'msg_margin' => array( 'type' => 'padding', 'label' => __pl('margin'), 'css' => ['{{element}} .pagelayer-cf-msg-suc, {{element}} .pagelayer-cf-msg-err' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'], ), 'msg_type' => array( 'type' => 'radio', 'label' => __pl(' '), 'list' => array( 'success' => __pl('Success'), 'failed' => __pl('failed') ) ), 'msg_success_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => [ '{{element}} .pagelayer-cf-msg-suc' => 'color: {{val}}' ], 'show' => array( 'msg_type' => 'success' ), ), 'msg_success_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => [ '{{element}} .pagelayer-cf-msg-suc' => 'background-color: {{val}}', ], 'show' => array( 'msg_type' => 'success' ), ), 'succ_msg_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '{{element}} .pagelayer-cf-msg-suc' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'msg_type' => 'success' ) ), 'succ_msg_border_color' => array( 'type' => 'color', 'label' => __pl('service_box_icon_border_color_label'), 'default' => '#0986c0', 'css' => [ '{{element}} .pagelayer-cf-msg-suc' => 'border-color: {{val}};' ], 'req' => array( '!succ_msg_border_type' => '' ), 'show' => array( 'msg_type' => 'success' ), ), 'succ_msg_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-cf-msg-suc' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => array( '!succ_msg_border_type' => '' ), 'show' => array( 'msg_type' => 'success' ), ), 'succ_msg_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-cf-msg-suc' => '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;'], 'req' => array( '!succ_msg_border_type' => '' ), 'show' => array( 'msg_type' => 'success' ), ), 'msg_failed_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'css' => [ '{{element}} .pagelayer-cf-msg-err' => 'color: {{val}}' ], 'show' => array( 'msg_type' => 'failed' ), ), 'msg_failed_bg' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => [ '{{element}} .pagelayer-cf-msg-err' => 'background-color: {{val}}', ], 'show' => array( 'msg_type' => 'failed' ), ), 'fail_msg_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => [ '{{element}} .pagelayer-cf-msg-err' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'msg_type' => 'failed' ), ), 'fail_msg_border_color' => array( 'type' => 'color', 'label' => __pl('service_box_icon_border_color_label'), 'default' => '#0986c0', 'css' => [ '{{element}} .pagelayer-cf-msg-err' => 'border-color: {{val}};' ], 'req' => array( '!fail_msg_border_type' => '' ), 'show' => array( 'msg_type' => 'failed' ), ), 'fail_msg_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-cf-msg-err' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => array( '!fail_msg_border_type' => '' ), 'show' => array( 'msg_type' => 'failed' ), ), 'fail_msg_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-cf-msg-err' => '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;'], 'req' => ['!fail_msg_border_type' => ''], 'show' => ['msg_type' => 'failed'], ) ), 'mail_template' => array( 'contact_custom_templ' => array( 'type' => 'checkbox', 'label' => __pl('custom_templ'), ), 'templ_modal' => array( 'type' => 'modal', 'label' => __pl('create_mail_templ'), 'show_group' => 'contact_templ_modal', 'req' => ['contact_custom_templ' => 'true'], ), 'to_email' => array( 'type' => 'text', 'label' => __pl('to_email'), 'group' => 'contact_templ_modal', 'req' => ['contact_custom_templ' => 'true'], ), 'from_email' => array( 'type' => 'text', 'label' => __pl('from_email'), 'group' => 'contact_templ_modal', 'req' => ['contact_custom_templ' => 'true'], ), 'cont_subject' => array( 'type' => 'text', 'label' => __pl('subject'), 'group' => 'contact_templ_modal', 'req' => ['contact_custom_templ' => 'true'], ), 'cont_header' => array( 'type' => 'textarea', 'label' => __pl('additional_head'), 'group' => 'contact_templ_modal', 'req' => ['contact_custom_templ' => 'true'], ), 'cont_body' => array( 'type' => 'textarea', 'label' => __pl('message_body'), 'desc' => __pl('usr_field_desc'), 'rows' => 4, 'group' => 'contact_templ_modal', 'req' => ['contact_custom_templ' => 'true'], ), 'cont_use_html' => array( 'type' => 'checkbox', 'label' => __pl('use_html'), 'group' => 'contact_templ_modal', 'req' => ['contact_custom_templ' => 'true'], ), ), 'styles' => [ 'label_style' => __pl('label_style'), 'input_style' => __pl('input_style'), 'radio_style' => __pl('radio_style'), 'form_style' => __pl('form_style'), 'button_style' => __pl('button_style'), 'icon_style' => __pl('icon_style'), 'border_style' => __pl('btn_border_style'), 'message_style' => __pl('message_style'), 'mail_template' => __pl('mail_template'), ] ) ); pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_contact_item', array( 'name' => __pl('contact_item'), 'group' => 'other', 'not_visible' => 1, 'html' => '{{fieldhtml}}', 'parent' => [PAGELAYER_SC_PREFIX.'_contact'], 'params' => array( 'label_name' => array( 'type' => 'text', 'label' => __pl('label_name'), 'default' => 'Input Label', 'edit' => '.pagelayer-form-label', 'keep_prop' => 1, // Prevent to remove props in gutenburg 'np' => 1 ), 'field_type' => array( 'type' => 'select', 'label' => __pl('input_field_type'), 'default' => 'text', 'list' => array( 'text' => __pl('text'), 'email' => __pl('e-mail'), 'number' => __pl('number'), 'tel' => __pl('telephone'), 'checkbox' => __pl('checkbox'), 'radio' => __pl('radio'), 'textarea' => __pl('textarea'), 'select' => __pl('select'), 'date' => __pl('date'), 'file' => __pl('file'), 'label' => __pl('label'), ), 'np' => 1 ), 'values' => array( 'type' => 'textarea', 'label' => __pl('values'), 'default' => "One\nTwo", 'show' => array( 'field_type' => ['select', 'checkbox', 'radio'] ), 'np' => 1 ), 'textarea_rows' => array( 'type' => 'spinner', 'label' => __pl('row'), 'default' => 6, 'min' => 1, 'max' => 100, 'screen' => 1, 'req' => array( 'field_type' => ['textarea'] ), 'np' => 1 ), 'accept_file' => array( 'type' => 'text', 'label' => __pl('accept_file'), 'req' => array( 'field_type' => ['file'] ), 'np' => 1 ), 'required' => array( 'type' => 'checkbox', 'label' => __pl('required_label'), 'default' => '', ), 'label_as_holder' => array( 'type' => 'checkbox', 'label' => __pl('show_label_as_placeholder'), 'default' => '', 'req' => ['!field_type' => ['label']], ), 'placeholder' => array( 'type' => 'text', 'label' => __pl('placeholder'), 'default' => '', 'req' => ['!field_type' => ['label']], 'show' => ['!label_as_holder' => 'true'], ), 'field_name' => array( 'type' => 'text', 'label' => __pl('input_field_name'), 'np' => 1, 'default' => 'Fieldname', 'req' => ['!field_type' => ['label']], ), 'field_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'default' => 100, 'min' => 1, 'max' => 100, 'screen' => 1, 'css' => ['{{wrap}}' => 'width:{{val}}%'], ), 'field_display' => array( 'type' => 'select', 'label' => __pl('display'), 'screen' => 1, 'default' => '', 'css' => ['{{wrap}}' => 'display:{{val}}'], 'list' => array( '' => __pl('full'), 'inline-block' => __pl('inline'), ), ), 'space_between' => array( 'type' => 'padding', 'label' => __pl('space_between'), 'default' => ',,10,', 'screen' => 1, 'css' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;', ), ) ) ); // Post Title pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_title', array( 'name' => __pl('post_title'), 'group' => 'other', 'html' => '<div class="pagelayer-post-title"> <a class="pagelayer-ele-link" if-ext="{{link}}" href="{{{link}}}"> {{open_html_tag}}<span if="{{before}}">{{before}} </span>'.pagelayer_get_the_title(false).'<span if="{{after}}"> {{after}}</span>{{close_html_tag}} </a> </div>', 'params' => array( 'before' => array( 'type' => 'text', 'label' => __pl('before'), 'np' => 1, ), 'after' => array( 'type' => 'text', 'label' => __pl('after'), 'np' => 1, ), 'link' => array( 'type' => 'link', 'label' => __pl('image_link_label'), 'selector' => '.pagelayer-ele-link', ), 'html_tag' => array( 'type' => 'select', 'label' => __pl('html_tag'), 'default' => 'h1', 'list' => [ '' => __pl('default'), 'h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6', ], ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#0986c0', 'css' => [ '{{element}} .pagelayer-post-title'=> 'color:{{val}}', '{{element}} .pagelayer-post-title *'=> 'color:{{val}}' ], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',35,,700,,,solid,,,,', 'css' => ['{{element}} .pagelayer-post-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;'], ), 'shadow' => array( 'type' => 'shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-post-title' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'], ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'screen' => 1, 'list' => [ 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ], 'css' => 'text-align: {{val}}', ), ) ) ); // Post Content pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_content', array( 'name' => __pl('post_content'), 'group' => 'other', 'html' => '<div class="entry-content pagelayer-post-excerpt">{{post_content}}</div>', 'params' => array( 'color' => array( 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-post-excerpt' => 'color:{{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-post-excerpt' => '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;'], ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'list' => [ 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ], 'css' => 'text-align: {{val}}' ), ) ) ); // Post Excerpt pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_excerpt', array( 'name' => __pl('post_excerpt'), 'group' => 'other', 'html' => '{{{post_excerpt}}}', 'params' => array( 'color' => array( 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'css' => ['{{element}} .pagelayer-post-excerpt' => 'color:{{val}}'], ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-post-excerpt' => '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;'], ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'list' => [ 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ], 'css' => 'text-align: {{val}}', ), 'pe_margin' => array( 'type' => 'padding', 'label' => __pl('margin'), 'screen' => 1, 'units' => ['px', 'em'], 'css' => ['{{element}} .pagelayer-post-excerpt' => 'margin-top:{{val[0]}}; margin-right:{{val[1]}}; margin-bottom:{{val[2]}}; margin-left:{{val[3]}};'], ), ) ) ); // Featured Image pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_featured_img', array( 'name' => __pl('featured_img'), 'group' => 'other', 'html' => '<a if-ext="{{link_type}}" href="{{func_link}}" class="pagelayer-ele-link" pagelayer-image-link-type="{{link_type}}"> <div class="pagelayer-featured-img">{{img_html}}</div> </a> <p if="{{caption}}" class="pagelayer-featured-caption">{{caption}}</p>', 'params' => array( 'img' => array( 'label' => __pl('fallback_img'), 'type' => 'image', 'np' => 1, ), 'size' => array( 'label' => __pl('obj_image_size_label'), 'type' => 'select', 'default' => 'full', 'list' => array( 'full' => __pl('full'), 'large' => __pl('large'), 'medium' => __pl('medium'), 'thumbnail' => __pl('thumbnail'), 'custom' => __pl('custom') ) ), 'custom_size' => array( 'type' => 'dimension', 'units' => ['px', '%'], 'screen' => 1, 'label' => __pl('image_custom_size_label'), 'css' => ['{{element}} img' => 'width: {{val[0]}}; height: {{val[1]}};'], 'req' => ['size' => 'custom'] ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'screen' => 1, 'list' => [ 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ], 'css' => 'text-align: {{val}}', ), 'img_filter' => array( 'type' => 'filter', 'label' => __pl('filter'), 'default' => '0,100,100,0,0,100,100', 'css' => ['{{element}} img' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'], ), 'img_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'], ), ), 'link_settings' => [ 'link_type' => array( 'label' => __pl('image_link_label'), 'type' => 'select', 'default' => '', 'list' => array( '' => __pl('none'), 'custom_url' => __pl('custom_url'), 'media_file' => __pl('media_file'), 'lightbox' => __pl('lightbox') ) ), 'link' => array( 'type' => 'link', 'label' => __pl('image_link_label'), 'desc' => __pl('image_link_desc'), 'selector' => '.pagelayer-ele-link', 'req' => array( 'link_type' => 'custom_url' ) ), 'rel' => array( 'label' => __pl('image_rel_label'), 'type' => 'text', 'default' => '', 'addAttr' => ['{{element}} a' => 'rel="{{rel}}"'], 'req' => array( 'link_type' => 'media_file' ) ), 'target' => array( 'label' => __pl('open_link_in_new_window'), 'type' => 'checkbox', 'addAttr' => ['{{element}} a' => 'target="_blank"'], 'req' => ['link_type' => ['custom_url', 'media_file']], // For backward compatibility of the new link property in version 1.5.8, hide it for custom_url. 'show' => ['link_type' => 'media_file'] ), ], 'caption_style' => [ 'caption' => array( 'label' => __pl('gallery_grid_caption_label'), 'desc' => __pl('gallery_grid_caption_desc'), 'np' => 1, 'type' => 'text', ), 'caption_color' => array( 'label' => __pl('Caption Color'), 'type' => 'color', 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-featured-caption' => 'color: {{val}}'], ), 'caption_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-featured-caption' => '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;'], ), ], 'border_style' => [ 'f_border_hover' => array( 'type' => 'radio', 'label' => '', 'np' => 1, 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'img_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} img' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'f_border_hover' => '' ), ), 'img_border_color' => array( 'type' => 'color', 'label' => __pl('service_box_icon_border_color_label'), 'default' => '#0986c0', 'css' => ['{{element}} img' => 'border-color: {{val}};'], 'req' => array( '!img_border_type' => '' ), 'show' => array( 'f_border_hover' => '' ), ), 'img_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} 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'], 'req' => [ '!img_border_type' => '' ], 'show' => array( 'f_border_hover' => '' ), ), 'img_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} img' => '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;'], 'show' => array( 'f_border_hover' => '' ), ), 'img_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('service_btn_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 2000, 'default' => 400, 'css' => ['{{element}} img' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'], 'show' => ['f_border_hover' => 'hover'], ), 'img_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} img:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'f_border_hover' => 'hover' ), ), 'img_border_color_hover' => array( 'type' => 'color', 'label' => __pl('service_box_icon_border_color_label'), 'css' => ['{{element}} img:hover' => 'border-color: {{val}};'], 'default' => '#0986c0', 'req' => array( '!img_border_type_hover' => '' ), 'show' => array( 'f_border_hover' => 'hover' ), ), 'img_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} img: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'], 'req' => [ '!img_border_type_hover' => '' ], 'show' => array( 'f_border_hover' => 'hover' ), ), 'img_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} img: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;'], 'show' => array( 'f_border_hover' => 'hover' ), ), ], 'styles' => [ 'caption_style' => __pl('caption_style'), 'link_settings' => __pl('link_settings'), 'border_style' => __pl('border_style') ] ) ); // Post info pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_info', array( 'name' => __pl('post_info'), 'group' => 'other', 'has_group' => [ 'section' => 'params', 'prop' => 'elements', ], 'holder' => '.pagelayer-post-info-container', 'html' => '<div class="pagelayer-post-info-container pagelayer-post-info-{{layout}}"></div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('post_info_list'), 'sc' => PAGELAYER_SC_PREFIX.'_post_info_list', 'item_label' => array( 'default' => __pl('info_list'), 'param' => 'type', ), 'count' => 1, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('post_info'))), ), 'layout' => array( 'type' => 'select', 'label' => __pl('layout'), 'np' => 1, 'default' => 'vertical', 'list' => array( 'horizontal' => __pl('horizontal'), 'vertical' => __pl('vertical'), ), ), 'space_between' => array( 'type' => 'slider', 'label' => __pl('list_spacing_label'), 'default' => 15, 'screen' => 1, 'css' => ['{{element}} .pagelayer-post-info-vertical .pagelayer-post-info-list-container' => 'margin-right:{{val}}px', '{{element}} .pagelayer-post-info-horizontal .pagelayer-post-info-list-container' => 'margin-bottom:{{val}}px'] ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'default' => 'left', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-post-info-container' => 'text-align:{{val}}'] ), ), 'icon_style' => array( 'icon_size' => array( 'type' => 'slider', 'label' => __pl('font_size'), 'units' => ['px', 'em', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-post-info-icon span' => 'font-size:{{val}}'], ), 'icon_colors' => array( 'type' => 'radio', 'label' => __pl('color'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'icon_color_normal' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-info-icon span' => 'color:{{val}}'], 'show' => ['icon_colors' => 'normal'] ), 'icon_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-info-icon span:hover' => 'color:{{val}}'], 'show' => ['icon_colors' => 'hover'] ), ), 'text_style' => array( 'input_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-post-info-list-container a' => '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;'], ), 'text_colors' => array( 'type' => 'radio', 'label' => __pl('color'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'text_color_normal' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-info-label' => 'color:{{val}}', '{{element}} .pagelayer-post-info-label a' => 'color:{{val}}'], 'show' => ['text_colors' => 'normal'] ), 'text_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-info-label:hover' => 'color:{{val}}', '{{element}} .pagelayer-post-info-label:hover a' => 'color:{{val}}'], 'show' => ['text_colors' => 'hover'] ), ), 'terms_style' => array( 'terms_text_colors' => array( 'type' => 'radio', 'label' => __pl('color'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'terms_text_color_normal' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-terms *' => 'color:{{val}} !important'], 'show' => ['terms_text_colors' => 'normal'] ), 'terms_text_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-terms *:hover' => 'color:{{val}} !important'], 'show' => ['terms_text_colors' => 'hover'] ), 'terms_background_color_normal' => array( 'type' => 'color', 'label' => __pl('background_color'), 'css' => ['{{element}} .pagelayer-terms *' => 'background-color:{{val}}'], 'show' => ['terms_text_colors' => 'normal'] ), 'terms_background_color_hover' => array( 'type' => 'color', 'label' => __pl('background_color'), 'css' => ['{{element}} .pagelayer-terms *:hover' => 'background-color:{{val}}'], 'show' => ['terms_text_colors' => 'hover'] ), 'terms_text_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-terms *' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'], ), 'terms_text_margin' => array( 'type' => 'padding', 'label' => __pl('margin'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-terms *' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'], ), 'terms_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-terms *' => '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;'], 'show' => array( 'btn_bor_hover' => '' ), ), ), 'styles' => array( 'icon_style' => __pl('icon_style'), 'text_style' => __pl('text_style'), 'terms_style' => __pl('terms_style'), ), ) ); // Post info list pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_info_list', array( 'name' => __pl('post_info_list'), 'group' => 'other', 'html' => '<div class="pagelayer-post-info-list-container" if="{{post_info_content}}"> <a if-ext="{{info_link}}" href="{{link}}" class="pagelayer-post-info-list-link"> <span class="pagelayer-post-info-icon"> <span if="{{info_icon_on}}" class="{{info_icon}}"></span> <img class="pagelayer-img" if="{{info_avatar}}" src="{{avatar_url}}"></span> </span> <span if="{{info_before}}" class="pagelayer-post-info-before">{{info_before}}</span> <span class="pagelayer-post-info-label pagelayer-{{type}}">{{post_info_content}}</span> </a> </div>', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_post_info'], 'params' => array( 'type' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'author', 'np' => 1, 'list' => array( 'author' => __pl('author'), 'date' => __pl('date'), 'time' => __pl('time'), 'comments' => __pl('comments'), 'terms' => __pl('Terms'), 'custom' => __pl('custom'), ), ), 'date_format' => array( 'type' => 'select', 'label' => __pl('date_format'), 'default' => 'default', 'list' => array( 'default' => __pl('default'), '0' => 'F j, Y', '1' => 'Y-m-d', '2' => 'm/d/Y', '3' => 'd/m/Y', 'custom' => __pl('custom'), ), 'req' => ['type' => 'date'], ), 'date_format_custom' => array( 'type' => 'text', 'label' => __pl('custom_date_format'), 'default' => 's - M -Y', 'req' => ['date_format' => 'custom', 'type' => 'date'], ), 'time_format' => array( 'type' => 'select', 'label' => __pl('time_format'), 'default' => 'default', 'list' => array( 'default' => __pl('default'), '0' => 'g:i a', '1' => 'g:i A', '2' => 'H:i', 'custom' => __pl('custom'), ), 'req' => ['type' => 'time'], ), 'time_format_custom' => array( 'type' => 'text', 'label' => __pl('custom_time_format'), 'default' => 'g:i a', 'req' => ['time_format' => 'custom', 'type' => 'time'], ), 'taxonomy' => array( 'type' => 'select', 'label' => __pl('Post_taxonomy'), 'default' => 'category', 'list' => pagelayer_tax_list(), 'req' => ['type' => 'terms'], ), 'type_custom' => array( 'type' => 'text', 'label' => __pl('custom'), 'req' => ['type' => 'custom'], ), 'info_before' => array( 'type' => 'text', 'label' => __pl('before'), 'np' => 1, ), 'info_avatar' => array( 'type' => 'checkbox', 'label' => __pl('avatar_style'), 'req' => ['type' => 'author'], ), 'info_avatar_size' => array( 'type' => 'slider', 'label' => __pl('obj_size_label'), 'default' => 22, 'screen' => 1, 'css' => ['{{element}} .pagelayer-post-info-icon img' => 'height:{{val}}px;width:{{val}}px;border-radius:50%;display:inline-block;'], 'req' => ['info_avatar' => 'true', 'type' => 'author'], ), 'info_link' => array( 'type' => 'checkbox', 'label' => __pl('link_settings'), 'default' => true, 'req' => ['!type' => 'time'], ), 'info_custom_link' => array( 'type' => 'text', 'label' => __pl('custom_link'), 'default' => '#', 'req' => ['type' => 'custom'], ), 'info_icon_on' => array( 'type' => 'checkbox', 'label' => __pl('icon'), 'default' => true, 'req' => ['info_avatar' => ''], ), 'info_icon' => array( 'type' => 'icon', 'label' => __pl('icon_list'), 'default' => 'fas fa-user-circle', 'req' => ['info_icon_on' => 'true', 'info_avatar' => ''], ), ), ) ); // Post navigation pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_nav', array( 'name' => __pl('post_nav'), 'group' => 'other', 'html' => '<div class="pagelayer-post-nav-container"> <div class="pagelayer-prev-post"> {{prev_link}} </div> <div class="pagelayer-post-nav-separator"></div> <div class="pagelayer-next-post"> {{next_link}} </div> </div>', 'params' => array( 'in_same_term' => array( 'type' => 'checkbox', 'label' => __pl('in_same_term'), 'np' => 1, ), 'taxonomies' => array( 'type' => 'select', 'label' => __pl('Post_taxonomy'), 'default' => 'category', 'list' => pagelayer_tax_list(), 'req' => ['in_same_term' => 'true'], ), ), 'nav_label' => array( 'lables' => array( 'type' => 'checkbox', 'label' => __pl('label'), 'default' => 'true', ), 'prev_label' => array( 'type' => 'text', 'label' => __pl('prev_label'), 'np' => 1, 'default' => __pl('Previous'), 'req' => ['lables' => 'true'], ), 'next_label' => array( 'type' => 'text', 'label' => __pl('next_label'), 'np' => 1, 'default' => __pl('Next'), 'req' => ['lables' => 'true'], ), 'label_colors' => array( 'type' => 'radio', 'label' => __pl('color'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => ['lables' => 'true'], ), 'label_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-nav-link' => 'color:{{val}}'], 'show' => ['label_colors' => 'normal'], 'req' => ['lables' => 'true'], ), 'label_hover_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-nav-link:hover' => 'color:{{val}}'], 'show' => ['label_colors' => 'hover'], 'req' => ['lables' => 'true'], ), 'label_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-post-nav-link' => '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;'], 'req' => ['lables' => 'true'], ), ), 'nav_title' => array( 'post_title' => array( 'type' => 'checkbox', 'label' => __pl('post_title'), 'default' => 'true', ), 'title_colors' => array( 'type' => 'radio', 'label' => __pl('color'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => ['post_title' => 'true'], ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-nav-title' => 'color:{{val}}'], 'show' => ['title_colors' => 'normal'], 'req' => ['post_title' => 'true'], ), 'title_hover_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-nav-title:hover' => 'color:{{val}}'], 'show' => ['title_colors' => 'hover'], 'req' => ['post_title' => 'true'], ), 'title_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => ['{{element}} .pagelayer-post-nav-title' => '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;'], 'req' => ['post_title' => 'true'], ), ), 'nav_icon' => array( 'arrows' => array( 'type' => 'checkbox', 'label' => __pl('arrows'), 'default' => 'true', ), 'arrows_list' => array( 'type' => 'select', 'label' => __pl('arrows_list'), 'default' => 'angle', 'list' => array( 'angle' => __pl('angle'), 'arrow' => __pl('Arrow'), 'angle-double' => __pl('angle_double'), 'arrow-circle' => __pl('arrow_circle'), 'arrow-circle-o' => __pl('arrow_circle_O'), 'chevron' => __pl('chevron'), 'chevron-circle' => __pl('chevron_circle'), 'caret' => __pl('caret'), 'long-arrow' => __pl('long_arrow'), ), 'req' => ['arrows' => 'true'], ), 'icon_colors' => array( 'type' => 'radio', 'label' => __pl('color'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => ['arrows' => 'true'], ), 'icon_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-nav-icon' => 'color:{{val}}'], 'show' => ['icon_colors' => 'normal'], 'req' => ['arrows' => 'true'], ), 'icon_hover_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-post-nav-icon:hover' => 'color:{{val}}'], 'show' => ['icon_colors' => 'hover'], 'req' => ['arrows' => 'true'], ), 'icon_size' => array( 'type' => 'slider', 'label' => __pl('font_size'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-post-nav-icon' => 'font-size:{{val}}px'], 'req' => ['arrows' => 'true'], ), ), 'nav_sep' => array( 'disable_sep' => array( 'type' => 'checkbox', 'label' => __pl('disable_sep'), 'css' => ['{{element}} .pagelayer-post-nav-separator' => 'display:none'], ), 'sep_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#bdbdbd', 'css' => ['{{element}} .pagelayer-post-nav-separator' => 'background-color:{{val}}'], 'req' => ['disable_sep' => ''] ), 'sep_rotate' => array( 'type' => 'slider', 'label' => __pl('Rotate'), 'default' => 20, 'max' => 360, 'screen' => 1, 'css' => ['{{element}} .pagelayer-post-nav-separator' => 'transform: rotate({{val}}deg);'], 'req' => ['disable_sep' => ''] ), 'sep_width' => array( 'type' => 'slider', 'label' => __pl('width'), 'default' => 1, 'max' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-post-nav-separator' => 'width: {{val}}px;'], 'req' => ['disable_sep' => ''] ), ), 'styles' => array( 'nav_label' => __pl('label_style'), 'nav_title' => __pl('title_style'), 'nav_icon' => __pl('icon_style'), 'nav_sep' => __pl('separator_style'), ), ) ); // Post comment pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_comment', array( 'name' => __pl('post_commment'), 'group' => 'other', 'html' => '<div class="pagelayer-post-comment-container"> {{post_comment}} </div>', 'params' => array( 'comment_skin' => array( 'type' => 'select', 'label' => __pl('skin'), 'default' => 'theme_comment', 'list' => array( 'theme_comment' => __pl('theme_tamplate'), ), ), 'post_type' => array( 'type' => 'radio', 'label' => __pl('post_type'), 'default' => 'current', 'list' => array( 'current' => __pl('current'), 'custom' => __pl('custom'), ), ), 'post_id' => array( 'type' => 'select', 'label' => __pl('post_list'), 'default' => '', 'list' => pagelayer_get_posts(), 'req' => ['post_type' => 'custom'] ), ), ) ); // Flipbox pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_flipbox', array( 'name' => __pl('Flipbox'), 'group' => 'other', 'html' => '<div class="pagelayer-flipbox-container pagelayer-flipbox-{{back_section}} pagelayer-flipbox-{{flip_animation}} pagelayer-flipbox-direction-{{animation_direction}}"> <div class="pagelayer-flipbox-overlay"></div> <div class="pagelayer-flipbox-main"> <div class="pagelayer-flipbox-flipper"> <div class="pagelayer-flipbox-box pagelayer-flipbox-front"> <div class="pagelayer-flipbox-box-overlay"> <div class="pagelayer-flipbox-box-inner"> <div class="pagelayer-flipbox-content"> <div class="pagelayer-icon-holder pagelayer-service-icon pagelayer-service-{{icon_view}}"> <i class="{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i> </div> <div if="{{heading_image}}" class="pagelayer-flipbox-image"> <img class="pagelayer-img pagelayer-animation-{{anim_hover}}" src="{{func_image}}" title="{{{heading_image-title}}}" alt="{{{heading_image-alt}}}" /> </div> <h2 if={{front_heading}}>{{front_heading}}</h2> <p if={{front_content}}>{{front_content}}</p> </div> </div> </div> </div> <div class="pagelayer-flipbox-box pagelayer-flipbox-back" style=""> <div class="pagelayer-flipbox-box-overlay"> <div class="pagelayer-flipbox-box-inner"> <div class="pagelayer-flipbox-content"> <h2 if={{back_heading}}>{{back_heading}}</h2> <p if={{back_content}}>{{back_content}}</p> <a if="{{display_button}}" href="{{{back_button_url}}}" class="pagelayer-service-btn {{back_button_type}} pagelayer-ele-link pagelayer-button {{back_button_size}}">{{back_button_text}}</a> </div> </div> </div> </div> </div> </div> </div>', 'params' => array( 'height' => array( 'type' => 'slider', 'label' => __pl('block_height'), 'np' => 1, 'min' => 100, 'max' => 1200, 'default' => 500, 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'height: {{val}}px;'], ), 'content_width' => array( 'type' => 'slider', 'label' => __pl('content_width'), 'min' => 50, 'max' => 100, 'default' => 100, 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-content' => 'width: {{val}}%; margin:0 auto;'], ), 'flip_animation' => array( 'type' => 'select', 'label' => __pl('animation_styles'), 'default' => 'flip', 'list' => array( 'flip' => __pl('flip'), 'slide' => __pl('slide'), 'push' => __pl('push'), 'zoom-in' => __pl('zoom-in'), 'zoom-out' => __pl('zoom-out'), 'fade' => __pl('fade'), ), ), 'animation_direction' => array( 'type' => 'select', 'label' => __pl('animation_direction'), 'default' => 'right', 'list' => array( 'up' => __pl('top'), 'down' => __pl('bottom'), 'right' => __pl('right'), 'left' => __pl('left'), ), 'req' => array( '!flip_animation' => ['fade','zoom-out','zoom-in'], ), ), 'animation_duration' => array( 'type' => 'spinner', 'label' => __pl('animation_duration'), 'np' => 1, 'default' => 600, 'min' => 100, 'step' => 50, 'max' => 2000, 'css' => ['{{element}} .pagelayer-flipbox-box' => 'transition: all {{val}}ms ease-in-out !important; -webkit-transition: all {{val}}ms ease-in-out !important;'] ), 'flip_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-style: {{val}}'], 'list' => array( '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ), ), 'flip_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-color: {{val}};'], 'req' => array( '!flip_border_type' => '' ), ), 'flip_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => array( '!flip_border_type' => '' ), ), 'flip_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-flipper' => '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]}};'], ), ), 'front_section' => array( 'heading_element' => array( 'type' => 'radio', 'label' => __pl('visual_element'), 'default' => '', 'list' => array( '' => __pl('none'), 'icon' => __pl('icon'), 'image' => __pl('image'), ), ), 'icon' => array( 'type' => 'icon', 'label' => __pl('icon'), 'default' => 'fas fa-star', 'req' => array( 'heading_element'=>'icon', ), ), 'icon_view' => array( 'type' => 'select', 'label' => __pl('iconbox_icon_view'), 'default' => 'default', 'list' =>array( 'default' => __pl('default'), 'stacked' => __pl('Stacked'), 'framed' => __pl('Framed'), ), 'req' => array( 'heading_element'=>'icon', ), ), 'bg_shape' => array( 'type' => 'select', 'label' => __pl('icon_background_shape'), 'default' => 'pagelayer-icon-circle', 'list' => array( '' => __pl('icon_shape_none'), 'pagelayer-icon-circle' => __pl('icon_shape_circle'), 'pagelayer-icon-square' => __pl('icon_shape_square'), 'pagelayer-icon-rounded' => __pl('icon_shape_rounded') ), 'req' => array( 'heading_element'=>'icon', '!icon_view' => 'default', ), ), 'icon_color_style' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'position: relative; color: {{val}};', '{{element}} pagelayer-flipbox-content i:before' => 'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'], 'default' => '#ffffff', 'req' => array( 'heading_element'=>'icon', ), ), 'bg_color' => array( 'type' => 'color', 'label' => __pl('icon_background_color'), 'default' => '#ef9229', 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'background-color: {{val}};'], 'req' => array( 'heading_element'=>'icon', '!bg_shape' => '', 'icon_view' => 'stacked', ), 'show' => array( 'icon_hover' => '' ), ), 'icon_background_size' => array( 'type' => 'spinner', 'label' => __pl('icon_background_size'), 'default' => 20, 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'padding: calc(0.5em + {{val}}px);'], 'min' => 1, 'max' => 100, 'step' => 1, 'screen' => 1, 'req' => array( 'heading_element'=>'icon', ), ), 'icon_size' => array( 'type' => 'select', 'label' => __pl('size_label'), 'default' => 'pagelayer-icon-large', 'list' => array( 'pagelayer-icon-mini' => __pl('mini'), 'pagelayer-icon-small' => __pl('small'), 'pagelayer-icon-large' => __pl('large'), 'pagelayer-icon-extra-large' => __pl('extra_large'), 'pagelayer-icon-double-large' => __pl('double_large'), 'pagelayer-icon-custom' => __pl('custom'), ), 'req' => array( 'heading_element'=>'icon', ), ), 'icon_size_custom' => array( 'type' => 'spinner', 'label' => __pl('icon_custom_size'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 26, 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'font-size: {{val}}px'], 'req' => array( 'icon_size' => 'pagelayer-icon-custom', 'heading_element' => 'icon' ), ), 'icon_rotate' => array( 'type' => 'spinner', 'label' => __pl('icon_rotate'), 'default' => 0, 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'transform: rotate({{val}}deg)'], 'min' => 0, 'max' => 360, 'step' => 1, 'screen' => 1, 'req' => array( 'heading_element'=>'icon', ), ), 'icon_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'req' => array( 'heading_element'=>'icon', ), ), 'icon_border_color' => array( 'type' => 'color', 'label' => __pl('icon_border_color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-color: {{val}};'], 'req' => array( '!icon_border_type' => '', 'heading_element' => 'icon' ), ), 'icon_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-content 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'], 'req' => [ '!icon_border_type' => '', 'heading_element' => 'icon' ], ), 'icon_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-content 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;'], 'req' => array( '!icon_border_type' => '', 'heading_element' => 'icon' ), ), 'heading_image'=> array( 'type' => 'image', 'label' => __pl('image'), 'default' => PAGELAYER_URL.'/images/default-image.png', 'req' => array( 'heading_element' => 'image', ), ), 'heading_image_size' => array( 'type' => 'radio', 'label' => __pl('image_size'), 'default' => 'full', 'list' => array( 'full' => __pl('full'), 'thumbnail' => __pl('thumbnail'), 'custom' => __pl('custom'), ), 'req' => array( 'heading_element' => 'image', ), ), 'heading_image_custom_size' => array( 'type' => 'slider', 'label' => __pl('img_custom_size'), 'min' => 0, 'max' => 100, 'screen' => 1, 'default' => 50, 'css' => ['{{element}} .pagelayer-flipbox-image img' => 'width:{{val}}%; height: auto;'], 'req' => array( 'heading_element' => 'image', 'heading_image_size' => 'custom', ) ), 'heading_image_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'min' => 0, 'max' => 100, 'screen' => 1, 'default' => 20, 'css' => ['{{element}} .pagelayer-flipbox-image img' => 'margin-bottom:{{val}}px;'], 'req' => array( 'heading_element' => 'image', ) ), 'front-text-align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-box-overlay' => 'text-align:{{val}} !important;'], ), 'front_heading' => array( 'type' => 'text', 'default' => 'Flipbox Heading', 'label' => __pl('heading_name'), 'np' => 1, ), 'heading_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content h2' => 'color:{{val}};'], ), 'heading_typography' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => 'Poppins,40,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content h2' => '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;'], ), 'front_content' => array( 'type' => 'textarea', 'label' => __pl('content'), 'np' => 1, 'default' => 'Flipbox content comes here such as It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', ), 'front_content_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content p' => 'color:{{val}};'], ), 'front_content_typography' => array( 'type' => 'typography', 'label' => __pl('text_style'), 'default' => ',16,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content p' => '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;'], ), 'front_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-flipbox-front' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}};'], ), 'front_background_type' => array( 'type' => 'radio', 'label' => __pl('background_type'), 'default' => '', 'list' => array( 'color' => __pl('color'), 'gradient' => __pl('gradient'), 'image' => __pl('image'), ), ), 'front_background_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '', 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-color:{{val}};'], 'req' => array( 'front_background_type' => 'color', ), ), 'front_background_gradient' => array( 'type' => 'gradient', 'label' => __pl('background_gradient'), 'default' => '150,#f12711,40,#f5af19,60,#f5af19,100', 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%) !important;'], 'req' => array( 'front_background_type' => 'gradient', ), ), 'front_background_image' => array( 'type' => 'image', 'label' => __pl('image'), 'np' => 1, 'default' => PAGELAYER_URL.'/images/default-image.png', 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-image:url("{{{front_background_image-url}}}") !important;'], 'req' => array( 'front_background_type' => 'image', ), ), 'front_background_attachment' => array( 'type' => 'select', 'label' => __pl('background_attachment'), 'list' => array( '' => __pl('default'), 'scroll' => __pl('scroll'), 'fixed' => __pl('fixed') ), 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-attachment: {{val}}'], 'req' => array( 'front_background_type' => 'image', ), ), 'front_background_posx' => array( 'type' => 'select', 'label' => __pl('ele_bg_posx'), 'list' => array( '' => __pl('default'), 'center' => __pl('center'), 'left' => __pl('left'), 'right' => __pl('right') ), 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-position-x: {{val}};'], 'req' => array( 'front_background_type' => 'image', ), ), 'front_background_posy' => array( 'type' => 'select', 'label' => __pl('ele_bg_posy'), 'list' => array( '' => __pl('default'), 'center' => __pl('center'), 'top' => __pl('top'), 'bottom' => __pl('bottom') ), 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-position-y: {{val}};'], 'req' => array( 'front_background_type' => 'image', ), ), 'front_background_repeat' => array( 'type' => 'select', 'label' => __pl('repeat'), 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-repeat: {{val}};'], 'list' => array( '' => __pl('default'), 'repeat' => __pl('repeat'), 'no-repeat' => __pl('no-repeat'), 'repeat-x' => __pl('repeat-x'), 'repeat-y' => __pl('repeat-y'), ), 'req' => array( 'front_background_type' => 'image', ), ), 'front_background_size' => array( 'type' => 'select', 'label' => __pl('ele_bg_size'), 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-size: {{val}};'], 'list' => array( '' => __pl('default'), 'cover' => __pl('cover'), 'contain' => __pl('contain') ), 'req' => array( 'front_background_type' => 'image', ), ), 'front_section_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'default' => '100,100,100,100', 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-box-overlay' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), ), 'back_section' => array( 'back_section' => array( 'type' => 'checkbox', 'label' => __pl('back_side'), ), 'back-text-align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ), 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-box-overlay' => 'text-align:{{val}} !important;'], ), 'back_heading' => array( 'type' => 'text', 'label' => __pl('title'), 'np' => 1, 'default' => 'Flipbox Back Heading', ), 'back_heading_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content h2' => 'color:{{val}};'], ), 'back_heading_typography' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => 'Poppins,40,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content h2' => '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;'], ), 'back_content' => array( 'type' => 'textarea', 'label' => __pl('content'), 'np' => 1, 'default' => 'Flipbox content comes here such as It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.', ), 'back_content_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'default' => '#3c3f40', 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content p' => 'color:{{val}};'], ), 'back_content_typography' => array( 'type' => 'typography', 'label' => __pl('text_style'), 'default' => ',16,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content p' => '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;'], ), 'back_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-flipbox-back' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}};'], ), 'display_button' => array( 'type' => 'checkbox', 'label' => __pl('button'), ), 'back_button_url' => array( 'type' => 'link', 'label' => __pl('btn_url_label'), 'selector' => '.pagelayer-service-btn', 'req' => array( '!display_button' => '', ), ), 'back_button_text' => array( 'type' => 'text', 'label' => __pl('button_text_label'), 'default' => 'Click Here!', 'req' => array( '!display_button' => '', ), ), 'back_button_typography' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',20,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-service-btn' => '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;'], 'req' => array( '!display_button' => '', ), ), 'back_button_type' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'pagelayer-btn-default', 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), 'req' => array( '!display_button' => '', ), ), 'back_button_size' => array( 'type' => 'select', 'label' => __pl('button_size'), 'default' => 'pagelayer-btn-mini', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom') ), 'req' => array( '!display_button' => '', ), ), 'back_button_custom_size' => array( 'type' => 'spinner', 'label' => __pl('btn_custom_size'), 'min' => 1, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-service-btn' => 'padding: calc({{val}}px / 2) {{val}}px;'], 'req' => array( 'back_button_size' => 'pagelayer-btn-custom', ), ), 'back_btn_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'min' => 0, 'max' => 200, 'default' => 10, 'screen' => 1, 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'], 'req' => array( '!display_button' => '', ), ), 'back_btn_state' => array( 'type' => 'radio', 'label' => __pl('button_state'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), 'req' => array( 'back_button_type' => 'pagelayer-btn-custom', '!display_button' => '', ), ), 'back_button_color' => array( 'type' => 'color', 'label' => __pl('button_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-service-btn' => 'color:{{val}};'], 'show' => array( 'back_btn_state' => 'normal', ), ), 'back_button_bg_color' => array( 'type' => 'color', 'label' => __pl('button_bg_color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'], 'show' => array( 'back_btn_state' => 'normal', ), ), 'back_btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-service-btn' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'], 'show' => array( 'back_btn_state' => 'hover', ), ), 'back_button_color_hover' => array( 'type' => 'color', 'label' => __pl('button_color'), 'default' => '', 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'color:{{val}} !important;'], 'show' => array( 'back_btn_state' => 'hover', ), ), 'back_button_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('button_bg_color'), 'default' => '', 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}} !important;'], 'show' => array( 'back_btn_state' => 'hover' ), ), 'back_background_type' => array( 'type' => 'radio', 'label' => __pl('background_type'), 'default' => '', 'list' => array( 'color' => __pl('color'), 'gradient' => __pl('gradient'), 'image' => __pl('image'), ), ), 'back_background_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '', 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-color:{{val}};'], 'req' => array( 'back_background_type' => 'color', ), ), 'back_background_gradient' => array( 'type' => 'gradient', 'label' => __pl('background_gradient'), 'default' => '150,#1488CC,40,#2B32B2,60,#2B32B2,100', 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%) !important;'], 'req' => array( 'back_background_type' => 'gradient', ), ), 'back_background_image' => array( 'type' => 'image', 'label' => __pl('image'), 'default' => PAGELAYER_URL.'/images/default-image.png', 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-image:url("{{{back_background_image-url}}}") !important;'], 'req' => array( 'back_background_type' => 'image', ), ), 'back_background_attachment' => array( 'type' => 'select', 'label' => __pl('background_attachment'), 'list' => array( '' => __pl('default'), 'scroll' => __pl('scroll'), 'fixed' => __pl('fixed') ), 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-attachment: {{val}}'], 'req' => array( 'back_background_type' => 'image', ), ), 'back_background_posx' => array( 'type' => 'select', 'label' => __pl('ele_bg_posx'), 'list' => array( '' => __pl('default'), 'center' => __pl('center'), 'left' => __pl('left'), 'right' => __pl('right') ), 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-position-x: {{val}};'], 'req' => array( 'back_background_type' => 'image', ), ), 'back_background_posy' => array( 'type' => 'select', 'label' => __pl('ele_bg_posy'), 'list' => array( '' => __pl('default'), 'center' => __pl('center'), 'top' => __pl('top'), 'bottom' => __pl('bottom') ), 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-position-y: {{val}};'], 'req' => array( 'back_background_type' => 'image', ), ), 'back_background_repeat' => array( 'type' => 'select', 'label' => __pl('ele_bg_repeat'), 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-repeat: {{val}};'], 'list' => array( '' => __pl('default'), 'repeat' => __pl('repeat'), 'no-repeat' => __pl('no-repeat'), 'repeat-x' => __pl('repeat-x'), 'repeat-y' => __pl('repeat-y'), ), 'req' => array( 'back_background_type' => 'image', ), ), 'back_background_size' => array( 'type' => 'select', 'label' => __pl('ele_bg_size'), 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-size: {{val}};'], 'list' => array( '' => __pl('default'), 'cover' => __pl('cover'), 'contain' => __pl('contain') ), 'req' => array( 'back_background_type' => 'image', ), ), 'back_section_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'default' => '100,100,100,100', 'screen' => 1, 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-box-overlay' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), ), 'styles' => [ 'front_section' => __pl('front_section'), 'back_section' => __pl('back_section'), ] ) ); // Countdown Timer pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_countdown', array( 'name' => __pl('countdown_timer'), 'group' => 'other', 'html' => '<div class="pagelayer-countdown-container" pagelayer-expiry-date={{date}} pagelayer-time-type={{time_zone}}> <div class="pagelayer-countdown-expired"> <p if={{expired_text}}>{{expired_text}}</p> </div> <div class="pagelayer-countdown-counter"> <div if={{days}} class="pagelayer-countdown-days pagelayer-countdown-item pagelayer-countdown-{{display}}"> <div class="pagelayer-days-count pagelayer-countdown-count"></div> <div if={{show_label}} class="pagelayer-countdown-name"> <span if={{days_label_text}}>{{days_label_text}}</span> </div> </div> <div if={{hours}} class="pagelayer-countdown-hours pagelayer-countdown-item pagelayer-countdown-{{display}}"> <div class="pagelayer-hours-count pagelayer-countdown-count"></div> <div if={{show_label}} class="pagelayer-countdown-name"> <span if={{hours_label_text}}>{{hours_label_text}}</span> </div> </div> <div if={{minutes}} class="pagelayer-countdown-minutes pagelayer-countdown-item pagelayer-countdown-{{display}}"> <div class="pagelayer-minutes-count pagelayer-countdown-count"></div> <div if={{show_label}} class="pagelayer-countdown-name"> <span if={{minutes_label_text}} >{{minutes_label_text}}</span> </div> </div> <div if={{seconds}} class="pagelayer-countdown-seconds pagelayer-countdown-item pagelayer-countdown-{{display}}"> <div class="pagelayer-seconds-count pagelayer-countdown-count"></div> <div if={{show_label}} class="pagelayer-countdown-name"> <span if={{seconds_label_text}} >{{seconds_label_text}}</span> </div> </div> </div> </div>', 'params' => array( 'date' => array( 'type' => 'datetime', 'displayMode' => 'datetime', // date | datetime (default) 'returnMode' => 'YYYY-MM-DD H:m:s', // mysql format uses here (default: Y-m-d H:i:s ) 'label' => __pl('date_picker_label'), 'np' => 1, 'default' => '', ), 'time_zone' => array( 'type' => 'select', 'label' => __pl('time_zone'), 'default' => 'server', 'list' => array( 'server' => __pl('server_time'), 'local' => __pl('user_local') ), ), 'number_color' => array( 'type' => 'color', 'label' => __pl('color'), 'np' => 1, 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-countdown-count' => 'color:{{val}}'], ), 'number_style' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',50,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-countdown-count' => '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;'], ), 'number_spacing' => array( 'type' => 'padding', 'label' => __pl('spacing'), 'units' => ['px', 'em', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-countdown-count' => 'margin-top: {{val[0]}}; margin-right: {{val[1]}}; margin-bottom: {{val[2]}}; margin-left: {{val[3]}};'], ), 'days' => array( 'type' => 'checkbox', 'label' => __pl('days'), 'np' => 1, 'default' => 'true', ), 'hours' => array( 'type' => 'checkbox', 'label' => __pl('hours'), 'np' => 1, 'default' => 'true', ), 'minutes' => array( 'type' => 'checkbox', 'label' => __pl('minutes'), 'np' => 1, 'default' => 'true', ), 'seconds' => array( 'type' => 'checkbox', 'label' => __pl('seconds'), 'np' => 1, 'default' => 'true', ), ), 'expired_text' =>[ 'display_expired_text' => array( 'type' => 'checkbox', 'label' => __pl('expired_text'), ), 'expired_text' => array( 'type' => 'text', 'label' => __pl('text'), 'default' => 'Countdown Timer Expired', ), 'expired_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-countdown-expired p' => 'color:{{val}};'], ), 'expired_background_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'css' => ['{{element}} .pagelayer-countdown-expired' => 'background-color:{{val}};'], ), 'expired_style' => array( 'type' => 'typography', 'label' => __pl('expired_style'), 'default' => ',50,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-countdown-expired p' => '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;'], ), 'expired_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => ['px', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-countdown-expired' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'], ), 'expired_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'default' => 'center', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ), 'css' => ['{{element}} .pagelayer-countdown-expired' => 'text-align:{{val}};'], ), ], 'text_style' =>[ 'show_label' => array( 'type' => 'checkbox', 'label' => __pl('show_title'), 'np' => 1, 'default' => 'true', ), 'custom_label_text' => array( 'type' => 'checkbox', 'label' => __pl('custom_label_text'), 'show' => array( 'show_label' => 'true', ), ), 'days_label_text' => array( 'type' => 'text', 'label' => __pl('days'), 'default' => __pl('days'), 'show' => array( '!custom_label_text' => '', '!days' => '', ), ), 'hours_label_text' => array( 'type' => 'text', 'label' => __pl('hours'), 'default' => __pl('hours'), 'show' => array( '!custom_label_text' => '', '!hours' => '', ), ), 'minutes_label_text' => array( 'type' => 'text', 'label' => __pl('minutes'), 'default' => __pl('minutes'), 'show' => array( '!custom_label_text' => '', '!minutes' => '', ), ), 'seconds_label_text' => array( 'type' => 'text', 'label' => __pl('seconds'), 'default' => __pl('seconds'), 'show' => array( '!custom_label_text' => '', '!seconds' => '', ), ), 'font_color' => array( 'type' => 'color', 'label' => __pl('text_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-countdown-name span' => 'color:{{val}}'], 'show' => array( 'show_label' => 'true', ), ), 'cd_text_style' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',18,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-countdown-name' => '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;'], 'show' => array( 'show_label' => 'true', ), ), ], 'block_styles' =>[ 'display' => array( 'type' => 'select', 'label' => __pl('display'), 'default' => 'block', 'list' => [ 'block' => __pl('block'), 'inline' => __pl('inline'), ], ), 'block_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#2b1661', 'css' => ['{{element}} .pagelayer-countdown-item' => 'background-color:{{val}}'], ), 'blocks_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'units' => ['px', 'em', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-countdown-item' => 'padding-top: {{val[0]}}; padding-right: {{val[1]}}; padding-bottom: {{val[2]}}; padding-left: {{val[3]}}'], ), 'blocks_space' => array( 'type' => 'padding', 'label' => __pl('block_space'), 'units' => ['px', 'em'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-countdown-item' => 'margin-top: {{val[0]}}; margin-right: {{val[1]}}; margin-bottom: {{val[2]}}; margin-left: {{val[3]}}'], ), 'cd_border_state' => array( 'type' => 'radio', 'label' => __pl(''), 'default' => '', 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'cd_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-countdown-item' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'cd_border_state' => '' ), ), 'cd_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-countdown-item' => 'border-color: {{val}};'], 'req' => array( '!cd_border_type' => '' ), 'show' => array( 'cd_border_state' => '' ), ), 'cd_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-countdown-item' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'], 'req' => [ '!cd_border_type' => '' ], 'show' => array( 'cd_border_state' => '' ), ), 'cd_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-countdown-item' => '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]}};'], 'show' => array( 'cd_border_state' => '' ), ), 'cd_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => array( 'cd_border_state' => 'hover' ), ), 'cd_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-color: {{val}};'], 'default' => '#0986c0', 'req' => array( '!cd_border_type_hover' => '' ), 'show' => array( 'cd_border_state' => 'hover' ), ), 'cd_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-countdown-item: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'], 'req' => [ '!cd_border_type_hover' => '' ], 'show' => array( 'cd_border_state' => 'hover' ), ), 'cd_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'units' => ['px', '%'], 'screen' => 1, 'css' => ['{{element}} .pagelayer-countdown-item:hover' => '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]}};'], 'show' => array( 'cd_border_state' => 'hover' ), ), 'cd_shadow' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-countdown-item' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}};'], 'show' => array( 'cd_border_state' => '', ), ), 'cd_shadow_hover' => array( 'type' => 'box_shadow', 'label' => __pl('shadow'), 'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}};'], 'show' => array( 'cd_border_state' => 'hover' ), ), ], 'styles' => [ 'text_style' => __pl('title_style'), 'expired_text' => __pl('expired_text'), 'block_styles' => __pl('block_styles'), ], ) ); // Button Group pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_btn_grp', array( 'name' => __pl('btn_grp'), 'group' => 'button', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('buttons'), 'sc' => PAGELAYER_SC_PREFIX.'_btn', 'item_label' => array( 'default' => __pl('button'), 'param' => 'text' ), 'count' => 2, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('button_name'))), ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'default' => 'center', 'screen' => 1, 'css' => [ '{{element}}' => 'text-align: {{val}}', '{{element}} .pagelayer-btn' => 'text-align: {{val}}' ], 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ) ), 'group_layout' => array( 'type' => 'radio', 'label' => __pl('layout'), 'default' => 'horizontal', 'css' => ['{{element}} > div' => 'display: inline-block;'], 'list' => array( 'horizontal' => __pl('horizontal'), '' => __pl('vertical') ) ), 'hindent' => array( 'type' => 'spinner', 'label' => __pl('space_between'), 'np' => 1, 'default' => '5', 'css' => ['{{element}} .pagelayer-btn' => 'padding-left: {{val}}px; padding-right: {{val}}px;'], 'min' => 0, 'step' => 1, 'max' => 50, 'default' => 3, 'screen' => 1, 'req' => ['group_layout' => 'horizontal'] ), 'vindent' => array( 'type' => 'spinner', 'label' => __pl('space_between'), 'np' => 1, 'default' => '5', 'css' => ['{{element}} .pagelayer-btn' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;'], 'min' => 0, 'step' => 1, 'max' => 50, 'default' => 3, 'screen' => 1, 'req' => ['group_layout' => ''] ) ) ) ); // Testimonial Slider pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_testimonial_slider', array( 'name' => __pl('testimonial_slider'), 'group' => 'other', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'icon' => 'pli pli-commenting-o', 'prevent_inside' => ['pl_slides'], 'child_selector' => '>.pagelayer-owl-stage-outer>.pagelayer-owl-stage>.pagelayer-owl-item', // Make it very specifc 'holder' => '.pagelayer-testimonials-holder', 'html' => '<div class="pagelayer-testimonials-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme"></div>', 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('testimonial'), 'sc' => PAGELAYER_SC_PREFIX.'_testimonial', 'item_label' => array( 'default' => __pl('testimonial'), 'param' => 'cite' ), 'count' => 3, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('testimonial'))) ), ), 'slider_options' => $pagelayer->slider_options, 'arrow_styles' => $pagelayer->slider_arrow_styles, 'pager_styles' => $pagelayer->slider_pager_styles, 'styles' => [ 'slider_options' => __pl('slider_options'), 'arrow_styles' => __pl('arrow_styles'), 'pager_styles' => __pl('pager_styles'), ] )); // Pricing Table pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_pricing', array( 'name' => __pl('pricing_table'), 'group' => 'other', 'has_group' => [ 'section' => 'feature_style', 'prop' => 'elements' ], 'holder' => '.pagelayer-pricing-ul', 'html' => '<div class="pagelayer-pricing-details"> <div if="{{ribbon_text}}" class="pagelayer-pricing-ribbon-container"> <div class="pagelayer-pricing-ribbon"> {{ribbon_text}} </div> </div> <h3 if="{{plan_title}}" class="pagelayer-pricing-type">{{plan_title}}</h3> <h4 if="{{plan_sub_title}}" class="pagelayer-pricing-sub-title">{{plan_sub_title}}</h4> </div> <div class="pagelayer-pricing-rate-section"> <h4 if="{{original_price}}" class="pagelayer-pricing-price pagelayer-pricing-original"> <span class="pagelayer-pricing-rate"> <span if="{{currency}}">{{currency}}</span><span class="pagelayer-pricing-orig-amt">{{original_price}}</span> </span> </h4> <h2 class="pagelayer-pricing-price"> <span if="{{currency}}" class="pagelayer-pricing-currency pagelayer-pricing-currency-{{currency_position}}">{{currency}}</span><span if="{{price}}" class="pagelayer-pricing-rate pagelayer-pricing-amt">{{price}}</span> </h2> <p if="{{period}}" class="pagelayer-pricing-duration">{{period}}</p> </div> <div class="pagelayer-pricing-features"> <ul class="pagelayer-pricing-ul"></ul> <a if="{{price_button}}" href="{{{button_url}}}" class="pagelayer-pricing-btn {{button_type}} pagelayer-ele-link pagelayer-button {{button_size}}">{{button_text}}</a> <p if="{{additional_info}}" class="pagelayer-pricing-additional">{{additional_info}}</p> </div>', 'params' => array( 'plan_title' => array( 'type' => 'text', 'label' => __pl('plan_type'), 'np' => 1, 'default' => 'Standard', 'edit' => '.pagelayer-pricing-type', ), 'title_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-type' => 'color:{{val}};'], ), 'title_size' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => 'Poppins,20,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-type' => '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;'], ), 'content_align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'screen' => 1, 'css' => 'text-align: {{val}};', 'list' => array( 'left' => __pl('left'), '' => __pl('center'), 'right' => __pl('right'), ) ), ), //styles 'header_style' => [ 'header_background_color' => array( 'type' => 'color', 'label' => __pl('bg_color'), 'default' => '#d55400', 'css' => ['{{element}} .pagelayer-pricing-details' => 'background-color:{{val}} !important;'], ), 'header_padding' => array( 'label' => __pl('padding'), 'type' => 'padding', 'screen' => 1, 'default' => '10,10,10,10', 'css' => ['{{element}} .pagelayer-pricing-details' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), 'header_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-pricing-details' =>'border-style: {{val}};'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'header_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#e5e5e8', 'css' => ['{{element}} .pagelayer-pricing-details' => 'border-color: {{val}};'], 'req' => ['!header_border_type' => ''] ), 'header_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'default' => '0,0,0,0', 'screen' => 1, 'css' => ['{{element}} .pagelayer-pricing-details' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'], 'req' => ['!header_border_type' => ''] ), 'header_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-pricing-details' => '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;'], 'req' => ['!header_border_type' => ''] ), ], 'subtitle_style' => [ 'plan_sub_title' => array( 'type' => 'text', 'label' => __pl('subtitle'), 'default' => 'For beginners', 'edit' => '.pagelayer-pricing-sub-title', ), 'subtitle_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-sub-title' => 'color:{{val}}'], ), 'subtitle_size' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => 'Poppins,18,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-sub-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;'], ), ], 'price_style' => [ 'price' => array( 'type' => 'text', 'label' => __pl('plan_price'), 'np' => 1, 'default' => '49', 'edit' => '.pagelayer-pricing-amt', ), 'sale' => array( 'type' => 'checkbox', 'label' => __pl('sale'), ), 'original_price' => array( 'type' => 'text', 'label' => __pl('old_price'), 'default' => '100', 'edit' => '.pagelayer-pricing-orig-amt', 'keep_prop' => 1, // Prevent to remove props in gutenburg 'css' => ['{{element}} .pagelayer-pricing-original '=> 'display:inline-block;'], 'req' => array( 'sale' => 'true' ) ), 'price_size' => array( 'label' => __pl('price_size'), 'type' => 'typography', 'default' => 'Poppins,45,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate' => '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;'], ), 'price_sale_size' => array( 'label' => __pl('old_price_size'), 'type' => 'typography', 'default' => 'Poppins,35,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-original .pagelayer-pricing-rate' => '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;'], 'req' => array( 'sale' => 'true' ) ), 'price_state' => array( 'type' => 'radio', 'label' => __pl('price_state'), 'default' => 'normal', 'list' => array( 'normal' => __pl('normal'), 'hover' => __pl('hover'), ), ), 'price_line_height' => array( 'label' => __pl('price_line_height'), 'type' => 'slider', 'min' => 0, 'max' => 500, 'default' => 30, 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'line-height:{{val}}%;'], ), 'price_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate' => 'color:{{val}}'], 'show' => ['price_state' => 'normal'], ), 'old_price_color' => array( 'type' => 'color', 'label' => __pl('old_price_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original .pagelayer-pricing-rate' => 'color:{{val}}'], 'show' => ['price_state' => 'normal'], 'req' => ['sale' => 'true'], ), 'old_price_line_color' => array( 'type' => 'color', 'label' => __pl('old_price_line_color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original' => 'color:{{val}}'], 'show' => ['price_state' => 'normal'], 'req' => ['sale' => 'true'], ), 'price_background_color' => array( 'type' => 'color', 'label' => __pl('background_color'), 'default' => '#e98b2b', 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'background-color:{{val}}'], 'show' => ['price_state' => 'normal'], ), 'price_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate:hover' => 'color:{{val}}'], 'show' => ['price_state' => 'hover'], ), 'old_price_color_hover' => array( 'type' => 'color', 'label' => __pl('old_price_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original .pagelayer-pricing-rate:hover' => 'color:{{val}}'], 'show' => ['price_state' => 'hover'], 'req' => ['sale' => 'true'], ), 'old_price_line_color_hover' => array( 'type' => 'color', 'label' => __pl('old_price_line_color'), 'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original:hover' => 'color:{{val}}'], 'show' => ['price_state' => 'hover'], 'req' => ['sale' => 'true'], ), 'price_background_color_hover' => array( 'type' => 'color', 'label' => __pl('background_color'), 'css' => ['{{element}} .pagelayer-pricing-rate-section:hover' => 'background-color:{{val}}'], 'show' => ['price_state' => 'hover'], ), 'price_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-pricing-rate-section' =>'border-style: {{val}};'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], ), 'price_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'border-color: {{val}};'], 'req' => ['!price_border_type' => ''] ), 'price_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['{{element}} .pagelayer-pricing-rate-section' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'], 'req' => ['!price_border_type' => ''] ), 'price_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'css' => ['{{element}} .pagelayer-pricing-rate-section' => '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;'], 'req' => ['!price_border_type' => ''] ), 'price_margin' => array( 'type' => 'padding', 'label' => __pl('margin'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'margin: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), 'price_padding' => array( 'type' => 'padding', 'label' => __pl('padding'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'], ), ], 'currency_style' => [ 'currency' => array( 'type' => 'text', 'label' => __pl('currency'), 'np' => 1, 'default' => '$', 'edit' => '.pagelayer-pricing-currency', ), 'currency_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'color:{{val}}'], ), 'currency_size' => array( 'label' => __pl('currency_size'), 'type' => 'typography', 'default' => 'Poppins,35,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => '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;'], ), 'currency_position' => array( 'type' => 'radio', 'label' => __pl('position'), 'default' => 'top', 'list' => array( 'top' => __pl('top'), 'middle' => __pl('middle'), 'bottom' => __pl('bottom'), ), ), ], 'period_style' => [ 'period_inline' => array( 'type' => 'checkbox', 'label' => __pl('inline'), 'css' => ['{{element}} .pagelayer-pricing-duration' => 'display:inline-block;'], ), 'period' => array( 'type' => 'text', 'label' => __pl('period'), 'np' => 1, 'default' => 'Per Month', 'edit' => '.pagelayer-pricing-duration', ), 'period_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-duration' => 'color:{{val}}'], ), 'period_size' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'default' => ',16,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-duration' => '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;'], ), ], 'feature_style' => [ 'elements' => array( 'type' => 'group', 'label' => __pl('features_item'), 'sc' => PAGELAYER_SC_PREFIX.'_list_item', 'item_label' => array( 'default' => __pl('Features Item'), 'param' => 'item' ), 'count' => 3, 'text' =>strtr(__pl('add_new_item'), array('%name%' => __pl('Feature'))), ), 'features_background_color' => array( 'type' => 'color', 'label' => __pl('background_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-features' => 'background-color:{{val}}'], ), 'features_text_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-pricing-ul li span' => 'color:{{val}}'], ), 'features_text_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',18,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-ul li span' => '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;'], ), 'pri_features_spacing' => array( 'label' => __pl('space_between'), 'type' => 'slider', 'screen' => 1, 'css' => ['{{element}} .pagelayer-pricing-ul > :not(:last-child) ' => 'margin-bottom:{{val}}px'], ), 'features_padding' => array( 'label' => __pl('padding'), 'type' => 'padding', 'screen' => 1, 'css' => ['{{element}} .pagelayer-pricing-features' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;'], ), ], 'additional_info' => [ 'additional_info' => array( 'type' => 'textarea', 'label' => __pl('additional_info'), 'default' => 'Some Additional Information', 'edit' => '.pagelayer-pricing-additional', ), 'additional_text_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#000000', 'css' => ['{{element}} .pagelayer-pricing-additional' => 'color:{{val}}'], ), 'addition_text_typo' => array( 'type' => 'typography', 'label' => __pl('heading_typo'), 'default' => ',16,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-additional' => '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;'], ), ], 'button_style' => [ 'price_button' => array( 'type' => 'checkbox', 'label' => __pl('show_btn'), 'default' => 'true', ), 'button_type' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'pagelayer-btn-danger', 'list' => array( 'pagelayer-btn-default' => __pl('btn_type_default'), 'pagelayer-btn-primary' => __pl('btn_type_primary'), 'pagelayer-btn-secondary' => __pl('btn_type_secondary'), 'pagelayer-btn-success' => __pl('btn_type_success'), 'pagelayer-btn-info' => __pl('btn_type_info'), 'pagelayer-btn-warning' => __pl('btn_type_warning'), 'pagelayer-btn-danger' => __pl('btn_type_danger'), 'pagelayer-btn-dark' => __pl('btn_type_dark'), 'pagelayer-btn-light' => __pl('btn_type_light'), 'pagelayer-btn-link' => __pl('btn_type_link'), 'pagelayer-btn-custom' => __pl('btn_type_custom') ), 'req' => array( 'price_button' => 'true' ), ), 'button_size' => array( 'type' => 'select', 'label' => __pl('button_size_label'), 'default' => 'pagelayer-btn-mini', 'list' => array( 'pagelayer-btn-mini' => __pl('mini'), 'pagelayer-btn-small' => __pl('small'), 'pagelayer-btn-large' => __pl('large'), 'pagelayer-btn-extra-large' => __pl('extra_large'), 'pagelayer-btn-double-large' => __pl('double_large'), 'pagelayer-btn-custom' => __pl('custom'), ), 'req' => array( 'price_button' => 'true' ) ), 'button_size_custom' => array( 'type' => 'dimension', 'label' => __pl('padding'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-pricing-btn' => 'padding:{{val[0]}}px {{val[1]}}px;'], 'req' => array( 'button_size' => 'pagelayer-btn-custom' ) ), 'button_url' => array( 'type' => 'link', 'label' => __pl('btn_url_label'), 'selector' => '.pagelayer-pricing-btn', 'np' => 1, 'req' => array( 'price_button' => 'true' ), ), 'button_text' => array( 'type' => 'text', 'label' => __pl('button_text_label'), 'np' => 1, 'default' => 'Buy This Plan', 'edit' => '.pagelayer-pricing-btn', 'req' => array( 'price_button' => 'true' ), ), 'btn_typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'css' => [ '{{element}} .pagelayer-pricing-btn' => '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;', ], ), 'btn_spacing' => array( 'type' => 'slider', 'label' => __pl('spacing'), 'min' => '0', 'max' => '200', 'screen' => 1, 'default' => '10', 'css' => ['{{element}} .pagelayer-pricing-btn' => 'margin-top: {{val}}px;'], 'req' => [ 'price_button' => 'true', ] ), 'btn_state' => array( 'type' => 'radio', 'label' => __pl('button_state'), 'default' => 'normal', 'list' => array( 'normal' => __pl('Normal'), 'hover' => __pl('Hover'), ), 'req' => array( 'price_button' => 'true', 'button_type' => 'pagelayer-btn-custom' ), ), 'button_color' => array( 'type' => 'color', 'label' => __pl('iconbox_button_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-btn' => 'color:{{val}};'], 'req' => [ 'price_button' => 'true', 'button_type' => 'pagelayer-btn-custom', ], 'show' => ['btn_state' => 'normal'] ), 'button_bg_color' => array( 'type' => 'color', 'label' => __pl('button_bg_color'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-pricing-btn' => 'background-color:{{val}};'], 'req' => [ 'button_type' => 'pagelayer-btn-custom', ], 'show' => ['btn_state' => 'normal'] ), 'price_btn_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-pricing-btn' =>'border-style: {{val}};'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['btn_state' => 'normal'] ), 'price_btn_border_color' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-pricing-btn' => 'border-color: {{val}};'], 'req' => ['!price_btn_border_type' => ''], 'show' => ['btn_state' => 'normal'] ), 'price_btn_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['{{element}} .pagelayer-pricing-btn' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'], 'req' => ['!price_btn_border_type' => ''], 'show' => ['btn_state' => 'normal'] ), 'price_btn_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'css' => ['{{element}} .pagelayer-pricing-btn' => '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;'], 'show' => ['btn_state' => 'normal'] ), 'pricing_btn_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-pricing-btn' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'], 'show' => ['btn_state' => 'hover'], ), 'pricing_btn_color_hover' => array( 'type' => 'color', 'label' => __pl('iconbox_button_color'), 'default' => '', 'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'color:{{val}};'], 'show' => ['btn_state' => 'hover'], ), 'pricing_btn_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('button_bg_color_hover'), 'default' => '', 'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'background-color:{{val}};'], 'show' => ['btn_state' => 'hover'], ), 'price_btn_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-pricing-btn:hover' =>'border-style: {{val}};'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['btn_state' => 'hover'] ), 'price_btn_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color'), 'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'border-color: {{val}};'], 'req' => ['!price_btn_border_type_hover' => ''], 'show' => ['btn_state' => 'hover'] ), 'price_btn_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'css' => ['{{element}} .pagelayer-pricing-btn: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;'], 'req' => ['!price_btn_border_type_hover' => ''], 'show' => ['btn_state' => 'hover'] ), 'price_btn_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'css' => ['{{element}} .pagelayer-pricing-btn: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;'], 'show' => ['btn_state' => 'hover'] ), ], 'ribbon_style' => [ 'ribbon' => array( 'type' => 'checkbox', 'label' => __pl('ribbion_display'), ), 'ribbon_text' => array( 'type' => 'text', 'label' => __pl('ribbion_text'), 'default' => 'Popular', 'css' => ['{{element}} .pagelayer-pricing-ribbon'=> 'display:inline-block;'], 'req' => array( 'ribbon' => 'true' ) ), 'ribbon_text_size' => array( 'type' => 'typography', 'label' => __pl('ribbon_text_size'), 'default' => ',16,,500,,,solid,,,,', 'css' => ['{{element}} .pagelayer-pricing-ribbon' => '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;'], 'req' => array( 'ribbon' => 'true' ) ), 'ribbon_text_color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'color:{{val}}'], 'req' => array( 'ribbon' => 'true' ) ), 'ribbon_background' => array( 'type' => 'color', 'label' => __pl('background_color'), 'default' => '#fd6129', 'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'background-color:{{val}}'], 'req' => array( 'ribbon' => 'true' ) ), ], 'styles' => [ 'subtitle_style' => __pl('subtitle'), 'header_style' => __pl('header_style'), 'currency_style' => __pl('currency_style'), 'price_style' => __pl('price_style'), 'period_style' => __pl('period_style'), 'feature_style' => __pl('feature_style'), 'button_style' => __pl('button_style'), 'additional_info' => __pl('addition_info'), 'ribbon_style' => __pl('ribbon_style'), ], ) ); // Social Share Group pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_share_grp', array( 'name' => __pl('social_share'), 'group' => 'button', 'has_group' => [ 'section' => 'params', 'prop' => 'elements' ], 'params' => array( 'elements' => array( 'type' => 'group', 'label' => __pl('social_share_grp'), 'sc' => PAGELAYER_SC_PREFIX.'_share', 'item_label' => array( 'default' => __pl('share_item'), 'param' => 'icon' ), 'count' => 3, 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('share_name'))), ), ), 'layout_style' => [ 'type' => array( 'type' => 'select', 'label' => __pl('type'), //'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-style: {{val}}'], 'addClass' => 'pagelayer-share-type-{{val}}', 'default' => 'icon-label', 'list' => [ 'icon' => __pl('icon'), 'icon-label' => __pl('icon-label'), 'label' => __pl('label'), ], ), 'count' => array( 'type' => 'radio', 'label' => __pl('count_in_line'), 'default' => '', 'screen' => 1, 'css' => ['{{element}} > div' => 'width: calc(100% / {{val}});'], 'list' => array( '' => __pl('auto'), '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', ), 'req' => array( '!type' => 'icon' ) ), 'bg_shape' => array( 'type' => 'select', 'label' => __pl('icon_background_shape'), 'np' => 1, 'default' => 'pagelayer-social-shape-square', //'css' => ['{{element}} i' => 'height:1em; width:1em; position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%);', //'{{element}} .pagelayer-icon-holder' => 'position: relative; min-height: 1em; min-width: 1em;'], 'addClass' => '{{val}}', 'list' => array( 'pagelayer-social-bg-none' => __pl('icon_shape_none'), 'pagelayer-social-shape-circle' => __pl('icon_shape_circle'), 'pagelayer-social-shape-square' => __pl('icon_shape_square'), 'pagelayer-social-shape-rounded' => __pl('icon_shape_rounded'), 'pagelayer-social-shape-boxed' => __pl('icon_shape_boxed'), 'pagelayer-social-outline-border' => __pl('icon_shape_outline') ), ), /* 'bg_size' => array( 'type' => 'spinner', 'label' => __pl('social_grp_size_label'), 'css' => ['{{element}} .pagelayer-icon-holder' => 'height: calc(1em + {{val}}px); width: calc(1em + {{val}}px);'], 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 10, 'req' => array( '!bg_shape' => '' ) ), */ 'align' => array( 'type' => 'radio', 'label' => __pl('obj_align_label'), 'np' => 1, 'default' => 'center', 'css' => 'text-align: {{val}};', 'screen' => 1, 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right') ) ), /* 'group_layout' => array( 'type' => 'radio', 'label' => __pl('layout'), 'css' => ['{{element}} > div' => 'display: inline-block;'], 'default' => 'horizontal', 'list' => array( '' => __pl('vertical'), 'horizontal' => __pl('horizontal') ) ), */ 'vspace' => array( 'type' => 'spinner', 'label' => __pl('space_between_col'), 'css' => ['{{element}} .pagelayer-share' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;'], 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 2, 'screen' => 1, /* 'req' => array( 'group_layout' => 'horizontal' ) */ ), 'hspace' => array( 'type' => 'spinner', 'label' => __pl('space_between_row'), 'css' => ['{{element}} .pagelayer-share' => 'padding-left: {{val}}px; padding-right: {{val}}px;'], 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 2, 'screen' => 1, /* 'req' => array( 'group_layout' => '' ) */ ), 'height' => array( 'type' => 'slider', 'label' => __pl('height'), 'css' => ['{{element}} .pagelayer-share-content' => 'min-height: {{val}}px;'], 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 35, 'screen' => 1, ), /* 'width' => array( 'type' => 'slider', 'label' => __pl('width'), 'css' => ['{{element}} .pagelayer-share-content' => 'min-width: {{val}}px;'], 'min' => 0, 'step' => 1, 'max' => 100, ), */ ], 'icon_style' => [ 'icon_size' => array( 'type' => 'spinner', 'label' => __pl('social_grp_size_label'), 'css' => ['{{element}} i' => 'font-size: {{val}}px;', '{{element}} .pagelayer-icon-holder' => 'font-size: {{val}}px;'], 'min' => 1, 'step' => 1, 'max' => 500, 'default' => 25, 'screen' => 1, ), 'icon_space' => array( 'type' => 'spinner', 'label' => __pl('space_around'), 'css' => ['{{element}} .pagelayer-icon-holder' => 'padding-left: calc(0.5em + {{val}}px); padding-right: calc(0.5em + {{val}}px);'], 'min' => 0, 'step' => 1, 'max' => 100, 'default' => 5, 'screen' => 1, ), 'color_scheme' => array( 'type' => 'select', 'label' => __pl('color'), 'default' => 'pagelayer-scheme-official', 'addClass' => '{{val}}', 'list' => array( '' => __pl('custom'), 'pagelayer-scheme-official' => __pl('official') ) ), 'social_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'default' => '', //'no_val' => 1,// Dont set any value to element 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'icon_color' => array( 'type' => 'color', 'label' => __pl('social_color_label'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-share-buttons i' => 'color: {{val}} !important;'], 'req' => array( 'color_scheme' => '' ), 'show' => ['social_hover' => ''] ), 'icon_bg_color' => array( 'type' => 'color', 'label' => __pl('social_bg_color_label'), 'default' => '#0986c0', 'css' => ['{{element}} .pagelayer-share-content' => 'background-color: {{val}} !important;'], 'req' => array( '!bg_shape' => '', 'color_scheme' => '' ), 'show' => ['social_hover' => ''] ), 'icon_border_type' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-share-content' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['social_hover' => ''] ), 'icon_border_color' => array( 'type' => 'color', 'label' => __pl('service_box_icon_border_color_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-share-content' => 'border-color: {{val}} !important;'], 'req' => array( '!icon_border_type' => '', 'color_scheme' => '' ), 'show' => ['social_hover' => ''] ), 'icon_border_width' => array( 'type' => 'padding', 'label' => __pl('border_width'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-share-content' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px !important; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important'], 'req' => [ '!icon_border_type' => '' ], 'show' => ['social_hover' => ''] ), 'icon_border_radius' => array( 'type' => 'padding', 'label' => __pl('border_radius'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-share-content' => '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;'], 'req' => array( '!icon_border_type' => '' ), 'show' => ['social_hover' => ''] ), 'social_hover_delay' => array( 'type' => 'spinner', 'label' => __pl('btn_hover_delay_label'), 'desc' => __pl('btn_hover_delay_desc'), 'min' => 0, 'step' => 100, 'max' => 5000, 'default' => 400, 'css' => ['{{element}} .pagelayer-share-content' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;', '{{element}} .pagelayer-share-content i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'], 'show' => array( 'social_hover' => 'hover' ), ), 'icon_color_hover' => array( 'type' => 'color', 'label' => __pl('social_color_label'), 'css' => ['{{element}} .pagelayer-share-buttons:hover i' => 'color: {{val}} !important;'], 'req' => array( 'color_scheme' => '' ), 'show' => ['social_hover' => 'hover'] ), 'icon_bg_color_hover' => array( 'type' => 'color', 'label' => __pl('social_bg_color_label'), 'css' => ['{{element}} .pagelayer-share-content:hover' => 'background-color: {{val}} !important;'], 'req' => array( '!bg_shape' => '', 'color_scheme' => '' ), 'show' => ['social_hover' => 'hover'] ), 'icon_border_type_hover' => array( 'type' => 'select', 'label' => __pl('border_type'), 'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-style: {{val}}'], 'list' => [ '' => __pl('none'), 'solid' => __pl('solid'), 'double' => __pl('double'), 'dotted' => __pl('dotted'), 'dashed' => __pl('dashed'), 'groove' => __pl('groove'), ], 'show' => ['social_hover' => 'hover'] ), 'icon_border_color_hover' => array( 'type' => 'color', 'label' => __pl('border_color_hover_label'), 'default' => '#42414f', 'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-color: {{val}} !important;'], 'req' => array( '!icon_border_type_hover' => '', 'color_scheme' => '' ), 'show' => ['social_hover' => 'hover'] ), 'icon_border_width_hover' => array( 'type' => 'padding', 'label' => __pl('border_width_hover'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px !important; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important'], 'req' => [ '!icon_border_type_hover' => '' ], 'show' => ['social_hover' => 'hover'] ), 'icon_border_radius_hover' => array( 'type' => 'padding', 'label' => __pl('border_radius_hover'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-share-content: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;'], 'req' => array( '!icon_border_type_hover' => '' ), 'show' => ['social_hover' => 'hover'] ), ], 'label_style' => [ 'hide_name' => array( 'type' => 'checkbox', 'label' => __pl('hide_name'), 'screen' => 1, 'css' => ['{{element}} .pagelayer-icon-name span' => 'display: none;'], ), 'name_typo' => array( 'type' => 'typography', 'label' => __pl('quote_content_typo'), 'default' => ',15,,,,,solid,,,,', 'css' => ['{{element}} .pagelayer-icon-name' => '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;'], ), 'label_hover' => array( 'type' => 'radio', 'label' => __pl('state'), 'list' => array( '' => __pl('normal'), 'hover' => __pl('hover'), ) ), 'label_color' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-icon-name-span' => 'color: {{val}} !important;'], 'show' => ['label_hover' => ''] ), 'label_color_hover' => array( 'type' => 'color', 'label' => __pl('color'), 'css' => ['{{element}} .pagelayer-icon-name-span:hover' => 'color: {{val}} !important;'], 'show' => ['label_hover' => 'hover'] ) ], 'styles' => [ 'layout_style' => __pl('layout_style'), 'icon_style' => __pl('icon_style'), 'label_style' => __pl('label_style'), ] ) ); // Social Share Button pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_share', array( 'name' => __pl('icon'), 'group' => 'button', 'not_visible' => 1, 'parent' => [PAGELAYER_SC_PREFIX.'_share_grp'], 'html' => ' <a class="pagelayer-ele-link" title="{{icon}}" href="{{social_url}}"> <div class="pagelayer-share-content"> <div class="pagelayer-icon-holder pagelayer-share-buttons"> <i class="pagelayer-social-fa {{icon}}"></i> </div> <div class="pagelayer-icon-name"> <span class="pagelayer-icon-name-span">{{icon_label}}</span> </div> </div> </a>', 'params' => array( 'icon' => array( 'type' => 'icon', 'label' => __pl('list_icon_label'), 'default' => 'fab fa-facebook-square', 'addAttr' => ['{{element}} .pagelayer-share-content' => 'data-icon="{{icon}}"'], 'list' => ['facebook', 'facebook-f', 'facebook-square', 'facebook-messenger', 'twitter', 'twitter-square','x-twitter', 'x-twitter-square', 'google-plus', 'google-plus-square', 'google-plus-g', 'instagram', 'linkedin', 'linkedin-in', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'skype', 'stumbleupon', 'stumbleupon-circle', 'telegram', 'telegram-plane', 'tumblr', 'tumblr-square', 'vk', 'weibo', 'whatsapp', 'whatsapp-square', 'wordpress', 'wordpress-simple', 'xing', 'xing-square', 'delicious', 'dribbble', 'dribbble-square', 'snapchat-ghost','get-pocket', 'envelope', 'envelope-open', 'envelope-o'], ), 'custom_profile' => array( 'type' => 'text', 'label' => __pl('custom_profile'), 'req' => ['icon' => ['fab fa-instagram', 'fab fa-dribbble', 'fab fa-dribbble-square']] ), 'text' => array( 'type' => 'text', 'label' => __pl('custom_label_text'), 'edit' => '.pagelayer-icon-name-span', 'np' => 1, ), 'target' => array( 'label' => __pl('open_link_in_new_window'), 'type' => 'checkbox', 'addAttr' => ['{{element}} a' => 'target="_blank"'], 'np' => 1, ), ) ) ); // Animated heading pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_anim_heading', array( 'name' => __pl('animated_heading'), 'group' => 'text', 'innerHTML' => 'text', 'html' => '<a if-ext="{{link}}" href="{{link}}"> <div class="pagelayer-aheading-holder {{rotate_req}} {{animations}}"> <div if="{{text}}" class="pagelayer-animated-heading pagelayer-animated-title">{{text}}</div> {{rotate_html}} <div if="{{after_text}}" class="pagelayer-animated-heading">{{after_text}}</div> <div class="pagelayer-blobs_1"></div><div class="pagelayer-blobs_2"></div><div class="pagelayer-blobs_3"></div><div class="pagelayer-blobs_4"></div><div class="pagelayer-blobs_5"></div><div class="pagelayer-blobs_6"></div><div class="pagelayer-blobs_7"></div> </div> </a>', 'params' => array( 'type' => array( 'type' => 'select', 'label' => __pl('type'), 'default' => 'effects', 'addClass' => 'pagelayer-heading-{{val}}', 'list' => array( 'effects' => __pl('effects'), 'rotating' => __pl('rotating'), ), ), 'effects' => array( 'type' => 'select', 'label' => __pl('effects'), 'default' => 'blobs', 'addClass' => 'pagelayer-hEffect-{{val}}', 'list' => array( 'none' => __pl('none'), 'blobs' => __pl('blobs'), 'stroke' => __pl('stroke'), 'shadow' => __pl('shadow'), ), 'req' => [ 'type' => 'effects' ] ), 'animations' => array( 'type' => 'select', 'label' => __pl('effects'), 'default' => 'pagelayer-aheading-rotate1', 'list' => array( 'pagelayer-aheading-rotate1' => __pl('rotate-1'), 'pagelayer-aheading-rotate2' => __pl('rotate-2'), 'pagelayer-aheading-rotate3' => __pl('rotate-3'), 'pagelayer-aheading-loading-bar' => __pl('loading-bar'), 'pagelayer-aheading-slide' => __pl('slide'), 'pagelayer-aheading-clip' => __pl('clip'), 'pagelayer-aheading-zoom' => __pl('zoom'), 'pagelayer-aheading-scale' => __pl('scale'), 'pagelayer-aheading-push' => __pl('push'), ), 'req' => [ 'type' => 'rotating' ] ), 'hide_clip' => array( 'label' => __pl('clip_hide'), 'type' => 'checkbox', 'css' => ['{{element}} .pagelayer-words-wrapper:after' => 'display:none'], 'req' => [ 'animations' => 'pagelayer-aheading-clip' ] ), 'align' => array( 'type' => 'radio', 'label' => __pl('alignment'), 'np' => 1, 'default' => 'center', 'screen' => 1, 'css' => 'text-align: {{val}};', 'list' => array( 'left' => __pl('left'), 'center' => __pl('center'), 'right' => __pl('right'), ) ), ), 'title_style' => [ 'text' => array( 'type' => 'text', 'label' => __pl('title'), 'np' => 1, 'default' => __pl('animated_heading'), 'edit' => '.pagelayer-animated-title', 'e' => [ 'v', 'f', 'r'] ), 'rotate_text' => array( 'type' => 'textarea', 'label' => __pl('rotate_text'), 'np' => 1, 'default' => __pl('rotate_default'), 'req' => [ 'type' => 'rotating' ] ), 'after_text' => array( 'type' => 'text', 'label' => __pl('after_text'), 'np' => 1, 'req' => [ 'type' => 'rotating' ] ), 'typo' => array( 'type' => 'typography', 'label' => __pl('typography'), 'default' => ',40,,700,,,solid,,,,', 'css' => ['{{element}} .pagelayer-animated-heading' => '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;'], ), 'color_type' => array( 'type' => 'radio', 'label' => __pl(''), 'np' => 1, 'default' => 'color', 'list' => array( 'color' => __pl('color'), 'gradient' => __pl('gradient'), ), ), 'color' => array( 'type' => 'color', 'label' => __pl('color'), 'default' => '#A236FA', 'css' => [ '{{element}} .pagelayer-animated-heading' => 'background:{{val}}; -webkit-background-clip: text;', '{{element}}.pagelayer-hEffect-shadow .pagelayer-animated-heading' => 'color:{{val}};', '{{element}} .pagelayer-rotating-text *' => 'background:{{val}}; -webkit-background-clip: text;', '{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background:{{val}};', '{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background:{{val}};' ], 'req' => ['color_type' => 'color'] ), 'gradient' => array( 'type' => 'gradient', 'label' => '', 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100', 'css' => [ '{{element}} .pagelayer-animated-heading' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%); -webkit-background-clip: text;', '{{element}} .pagelayer-rotating-text *' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%); -webkit-background-clip: text;', '{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);', '{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);' ], 'req' => [ 'color_type' => 'gradient', '!effects' => 'shadow' ] ), ], 'misc_style' => [ 'blob_1' => array( 'type' => 'color', 'label' => __pl('blob_1_color'), 'default' => '#ff1493', 'css' => ['{{element}} .pagelayer-blobs_1' => 'background:{{val}}'], 'req' => [ 'effects' => 'blobs', 'type' => 'effects' ] ), 'blob_2' => array( 'type' => 'color', 'label' => __pl('blob_2_color'), 'default' => '#ff4500', 'css' => ['{{element}} .pagelayer-blobs_2' => 'background:{{val}}'], 'req' => [ 'effects' => 'blobs', 'type' => 'effects' ] ), 'blob_3' => array( 'type' => 'color', 'label' => __pl('blob_3_color'), 'default' => '#00ff00', 'css' => ['{{element}} .pagelayer-blobs_3' => 'background:{{val}}'], 'req' => [ 'effects' => 'blobs', 'type' => 'effects' ] ), 'blob_4' => array( 'type' => 'color', 'label' => __pl('blob_4_color'), 'default' => '#ff0000', 'css' => ['{{element}} .pagelayer-blobs_4' => 'background:{{val}}'], 'req' => [ 'effects' => 'blobs', 'type' => 'effects' ] ), 'blob_5' => array( 'type' => 'color', 'label' => __pl('blob_5_color'), 'default' => '#ffff00', 'css' => ['{{element}} .pagelayer-blobs_5' => 'background:{{val}}'], 'req' => [ 'effects' => 'blobs', 'type' => 'effects' ] ), 'blob_6' => array( 'type' => 'color', 'label' => __pl('blob_6_color'), 'default' => '#00ffff', 'css' => ['{{element}} .pagelayer-blobs_6' => 'background:{{val}}'], 'req' => [ 'effects' => 'blobs', 'type' => 'effects' ] ), 'blob_7' => array( 'type' => 'color', 'label' => __pl('blob_7_color'), 'default' => '#ff8c00', 'css' => ['{{element}} .pagelayer-blobs_7' => 'background:{{val}}'], 'req' => [ 'effects' => 'blobs', 'type' => 'effects' ] ), 'stroke' => array( 'type' => 'slider', 'label' => __pl('stroke_thickness'), 'min' => 1, 'step' => 1, 'max' => 50, 'default' => 5, 'screen' => 1, 'css' => ['{{element}} .pagelayer-animated-heading' => '-webkit-text-stroke: {{val}}px transparent;'], 'req' => [ 'effects' => 'stroke' ] ), 'stroke_color' => array( 'type' => 'color', 'label' => __pl('stroke_color'), 'default' => '#ffffff', 'css' => ['{{element}} .pagelayer-animated-heading' => 'color:{{val}}'], 'req' => [ 'effects' => 'stroke' ] ), 'shadow_color' => array( 'type' => 'shadow', 'label' => __pl('shadow'), 'default' => '2,2,,#999999', 'screen' => 1, 'css' => ['{{element}} .pagelayer-animated-heading' => 'text-shadow: {{val[0]}}px {{val[1]}}px #fff, calc({{val[0]}}px * 2) calc({{val[1]}}px * 2) {{val[3]}};'], 'req' => [ 'type' => 'effects', 'effects' => 'shadow' ] ), 'rotate_color' => array( 'type' => 'color', 'label' => __pl('rotate_color'), 'css' => [ '{{element}} .pagelayer-rotating-text *' => 'background:{{val}}; -webkit-background-clip: text;', '{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background:{{val}};', '{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background:{{val}};' ], 'req' => ['type' => 'rotating'] ), ], 'styles' => [ 'title_style' => __pl('title_style'), 'misc_style' => __pl('misc_style'), ] ) ); images/404image.jpg 0000644 00000140677 15104542337 0010050 0 ustar 00 ��� JFIF �� � - " " -D*2**2*D<I;7;I<lUKKUl}ici}���������� - " " -D*2**2*D<I;7;I<lUKKUl}ici}������������ �"