Version Description
(14, July 2020) = * [*] Follow WordPress Detailed Plugin Guidelines for Offload Media and Analytics Code.
Download this release
Release Info
Developer | wponlinesupport |
Plugin | WP Logo Showcase Responsive Slider |
Version | 2.5.6 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.5.6
- assets/css/blocks.editor.build.css +1 -0
- assets/css/logo-showcase-admin.css +4 -0
- assets/js/blocks.build.js +1 -0
- assets/js/wpls-public.js +16 -13
- includes/admin/class-wpls-admin.php +90 -9
- includes/admin/metabox/wpls-post-setting-metabox.php +45 -37
- includes/admin/settings/hire-us.php +20 -24
- includes/admin/settings/premium.php +10 -10
- includes/admin/supports/gutenberg-block.php +173 -0
- includes/admin/wpls-how-it-work.php +27 -27
- includes/class-wpls-script.php +49 -13
- includes/shortcode/wpls-logo-slider.php +37 -28
- includes/wpls-functions.php +36 -22
- languages/wp-logo-showcase-responsive-slider-slider-en_US-wpls-free-block-js.json +1 -0
- languages/wp-logo-showcase-responsive-slider-slider.pot +424 -0
- logo-showcase.php +21 -25
- readme.txt +45 -8
- templates/design-1.php +11 -11
- wpos-analytics/includes/class-anylc-admin.php +27 -44
- wpos-analytics/includes/class-anylc-script.php +4 -3
- wpos-analytics/includes/wpos-anylc-function.php +30 -12
- wpos-analytics/templates/analytic.php +3 -8
- wpos-analytics/templates/optout-popup.php +11 -2
- wpos-analytics/wpos-analytics.php +1 -1
assets/css/blocks.editor.build.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.wpos-guten-shrt{border:1px solid #ccc;padding:8px;line-height:22px;background-color:#eee;font-size:13px;text-align:center;color:#32373c;font-family:arial, sans-serif}.wpos-guten-shrt-title span{border-bottom:2px solid #32373c;margin-bottom:10px;display:inline-block;font-size:16px;font-weight:600}.wpos-guten-shrt .wpos-guten-shrt-footer{margin:10px 0 0 0}.wpos-guten-shrt .wpos-guten-shrt-footer span{display:block;border-top:2px solid #ccc;width:50px;margin:5px auto}.components-disabled{opacity:0.5}.components-disabled .wpos-hidden-opts-desc a{pointer-events:auto}
|
assets/css/logo-showcase-admin.css
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
.wpls-pro-tag {padding: 4px 7px 4px 5px;background-color:#cdd9f3;color: #1e2b48; position: relative; font-size: 10px; margin: 0 10px; display: inline-block; line-height: 1.1;}
|
2 |
+
.wpls-pro-tag::before { content: ""; left: -10px; top: 0; border-top: 10px solid transparent;border-right: 10px solid #cdd9f3;border-bottom: 10px solid transparent; position: absolute;}
|
3 |
+
.wpls-pro-feature { opacity: 0.5;}
|
4 |
+
.wpls-pro-feature:hover{opacity: 0.8;}
|
assets/js/blocks.build.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){function s(o){if(l[o])return l[o].exports;var t=l[o]={i:o,l:!1,exports:{}};return e[o].call(t.exports,t,t.exports,s),t.l=!0,t.exports}var l={};s.m=e,s.c=l,s.d=function(e,l,o){s.o(e,l)||Object.defineProperty(e,l,{configurable:!1,enumerable:!0,get:o})},s.n=function(e){var l=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(l,"a",l),l},s.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},s.p="",s(s.s=0)}([function(e,s,l){"use strict";Object.defineProperty(s,"__esModule",{value:!0});l(1)},function(e,s,l){"use strict";var o=l(2),t=(l.n(o),l(3)),n=(l.n(t),l(4)),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("wpls/logoshowcase",{title:__("Logo Slider","wp-logo-showcase-responsive-slider-slider"),description:__("Display logo in a slider view with various layouts.","wp-logo-showcase-responsive-slider-slider"),icon:"images-alt2",category:"wpos_guten_block",keywords:[__("wpos"),__("wpls logo slider","wp-logo-showcase-responsive-slider-slider"),__("logoshowcase")],supports:{html:!1,multiple:!0},getEditWrapperProps:function(e){var s=e.align;if(["wide","full"].includes(s))return{"data-align":s,"data-block-type":"wpls-logo-slider"}},edit:n.a,save:function(){return null}})},function(e,s){},function(e,s){},function(e,s,l){"use strict";function o(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function t(e,s){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!==typeof s&&"function"!==typeof s?e:s}function n(e,s){if("function"!==typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);e.prototype=Object.create(s&&s.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(e,s):e.__proto__=s)}var r=function(){function e(e,s){for(var l=0;l<s.length;l++){var o=s[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(s,l,o){return l&&e(s.prototype,l),o&&e(s,o),s}}(),i=wp.element,a=i.Component,p=i.Fragment,d=wp.components,c=d.PanelBody,w=d.Disabled,m=d.TextControl,u=d.ToggleControl,h=d.RangeControl,g=d.SelectControl,__=wp.i18n.__,v=(wp.data.select,wp.editor),f=v.InspectorControls,E=v.BlockControls,b=v.BlockAlignmentToolbar,y=function(e){function s(){o(this,s);var e=t(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments));return e.state={isLoading:!1},e}return n(s,e),r(s,[{key:"ObjToString",value:function(e){var s=wp.blocks.getBlockAttributes("wpls/logoshowcase"),l=["content_tail"],o="";for(var t in e)e.hasOwnProperty(t)&&"undefined"!==typeof e[t]&&e[t]!==s[t]&&(""!=jQuery.trim(e[t])||jQuery.inArray(t,l)>=0)&&(o+=t+'="'+e[t]+'" ');return o}},{key:"GetBooleanDropdown",value:function(){return[{value:"true",label:__("True","wp-logo-showcase-responsive-slider-slider")},{value:"false",label:__("False","wp-logo-showcase-responsive-slider-slider")}]}},{key:"GetDesigns",value:function(){return[{value:"design-1",label:__("Design 1","wp-logo-showcase-responsive-slider-slider")}]}},{key:"GetAnimationEffect",value:function(){return[{value:"",label:__("Select Animation Effect","wp-logo-showcase-responsive-slider-slider")}]}},{key:"GetLinkTarget",value:function(){return[{value:"self",label:__("Same Window","wp-logo-showcase-responsive-slider-slider")},{value:"blank",label:__("New Window","wp-logo-showcase-responsive-slider-slider")}]}},{key:"GetPostOrderby",value:function(){return[{value:"date",label:__("Post Date","wp-logo-showcase-responsive-slider-slider")},{value:"modified",label:__("Post Modified Date","wp-logo-showcase-responsive-slider-slider")},{value:"title",label:__("Post Title","wp-logo-showcase-responsive-slider-slider")},{value:"name",label:__("Post Slug","wp-logo-showcase-responsive-slider-slider")},{value:"ID",label:__("Post ID","wp-logo-showcase-responsive-slider-slider")},{value:"rand",label:__("Random","wp-logo-showcase-responsive-slider-slider")}]}},{key:"GetPostOrder",value:function(){return[{value:"desc",label:__("Descending","wp-logo-showcase-responsive-slider-slider")},{value:"asc",label:__("Ascending","wp-logo-showcase-responsive-slider-slider")}]}},{key:"GetLazyloadDropdown",value:function(){return[{value:"",label:__("Select Lazyload","wp-logo-showcase-responsive-slider-slider")},{value:"ondemand",label:__("Ondemand","wp-logo-showcase-responsive-slider-slider")},{value:"progressive",label:__("Progressive","wp-logo-showcase-responsive-slider-slider")}]}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){var s=wp.data.select("core/editor").getEditorSettings(),l=s.alignWide;e.attributes;l||this.props.setAttributes({align:void 0})}},{key:"render",value:function(){var e=this.props,s=e.attributes,l=e.setAttributes,o=s.limit,t=s.design,n=s.cat_id,r=s.cat_name,i=s.slides_column,a=s.slides_scroll,d=s.dots,v=s.arrows,y=s.autoplay,_=s.autoplay_interval,k=s.speed,C=s.center_mode,P=s.loop,B=s.lazyload,D=s.link_target,S=s.show_title,O=s.image_size,G=s.orderby,W=s.order,N=s.hide_border,x=s.max_height,L=s.align,T=(s.className,this.state.isLoading,wp.element.createElement(f,null,wp.element.createElement(c,{title:__("General Parameters","wp-logo-showcase-responsive-slider-slider")},wp.element.createElement(m,{label:__("Logo Showcase Heading","wp-logo-showcase-responsive-slider-slider"),value:r,onChange:function(e){return l({cat_name:e})},help:__("Enter Logo Heading.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(g,{label:__("Design","wp-logo-showcase-responsive-slider-slider"),value:t,options:this.GetDesigns(),onChange:function(e){return l({design:e})}}),wp.element.createElement(u,{label:__("Show Title","wp-logo-showcase-responsive-slider-slider"),checked:!!S,onChange:function(){return l({show_title:!S})}}),wp.element.createElement(w,null,wp.element.createElement(u,{label:__("Show Tooltip","wp-logo-showcase-responsive-slider-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to enable/disable tooltip on logo. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(h,{label:__("Content Words Limit","wp-logo-showcase-responsive-slider-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter content word limit. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(m,{label:__("Content Tail","wp-logo-showcase-responsive-slider-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Display dots after the post content as continue reading. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(g,{label:__("Link","wp-logo-showcase-responsive-slider-slider"),options:this.GetBooleanDropdown()})),wp.element.createElement(g,{label:__("Link Behaviour","wp-logo-showcase-responsive-slider-slider"),value:D,options:this.GetLinkTarget(),onChange:function(e){return l({link_target:e})}}),wp.element.createElement(w,null,wp.element.createElement(g,{label:__("Animation Effect","wp-logo-showcase-responsive-slider-slider"),options:this.GetAnimationEffect(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose to manage diffrent type of animation effect of logos list. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(m,{label:__("Media Size","wp-logo-showcase-responsive-slider-slider"),value:O,onChange:function(e){return l({image_size:e})},help:__("Choose WordPress registered image size. e.g original, large, medium, thumbnail.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(g,{label:__("Hide Border","wp-logo-showcase-responsive-slider-slider"),value:N,options:this.GetBooleanDropdown(),onChange:function(e){return l({hide_border:e})},help:__("Choose option to hide logo border.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(h,{label:__("Max Height","wp-logo-showcase-responsive-slider-slider"),value:x,onChange:function(e){return l({max_height:e})},min:1,help:__('Enter image maximum height 80px with 100% maximum width for better output. By default value is "250".',"wp-logo-showcase-responsive-slider-slider")})),wp.element.createElement(c,{title:__("Slider Parameters","wp-logo-showcase-responsive-slider-slider"),initialOpen:!1},wp.element.createElement(h,{label:__("Slides Column","wp-logo-showcase-responsive-slider-slider"),value:i,onChange:function(e){return l({slides_column:e})},min:1,help:__("Enter number for slide to show at a time.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(w,null,wp.element.createElement(h,{label:__("Slides Rows","wp-logo-showcase-responsive-slider-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter number of rows for slider. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(h,{label:__("Slides Scroll","wp-logo-showcase-responsive-slider-slider"),value:a,onChange:function(e){return l({slides_scroll:e})},min:1,help:__("Enter number of slide to scroll at a time.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(g,{label:__("Dots","wp-logo-showcase-responsive-slider-slider"),value:d,options:this.GetBooleanDropdown(),onChange:function(e){return l({dots:e})},help:__("Show pagination dots.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(g,{label:__("Arrows","wp-logo-showcase-responsive-slider-slider"),value:v,options:this.GetBooleanDropdown(),onChange:function(e){return l({arrows:e})},help:__("Show prev - next arrows.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(g,{label:__("Autoplay","wp-logo-showcase-responsive-slider-slider"),value:y,options:this.GetBooleanDropdown(),onChange:function(e){return l({autoplay:e})}}),"true"==y&&wp.element.createElement(h,{label:__("Autoplay Interval","wp-logo-showcase-responsive-slider-slider"),value:_,onChange:function(e){return l({autoplay_interval:e})},min:1,help:__("Enter autoplay interval speed. 1000 is equal to 1 sec.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(h,{label:__("Speed","wp-logo-showcase-responsive-slider-slider"),value:k,onChange:function(e){return l({speed:e})},min:1,help:__("Enter slide speed. 1000 is equal to 1 sec.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(g,{label:__("Center Mode","wp-logo-showcase-responsive-slider-slider"),value:C,options:this.GetBooleanDropdown(),onChange:function(e){return l({center_mode:e})},help:__("Enable slider center mode effect.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(g,{label:__("Infinite Loop","wp-logo-showcase-responsive-slider-slider"),value:P,options:this.GetBooleanDropdown(),onChange:function(e){return l({loop:e})},help:__("Enable infinite loop for continuous sliding.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(w,null,wp.element.createElement(g,{label:__("Ticker Mode","wp-logo-showcase-responsive-slider-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",{title:__("Note: When you enable ticker mode Autoplay, Slides Scroll and Autoplay Interval will set to default.","wp-logo-showcase-responsive-slider-slider")},__("Enable ticker mode for slider. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(g,{label:__("Pause On Hover","wp-logo-showcase-responsive-slider-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Pause slider autoplay on hover. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(g,{label:__("Pause On Focus","wp-logo-showcase-responsive-slider-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Pause slider autoplay when slider element is focused. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(g,{label:__("Slider Lazyload","wp-logo-showcase-responsive-slider-slider"),value:B,options:this.GetLazyloadDropdown(),onChange:function(e){return l({lazyload:e})},help:__("Select option to use lazy loading in slider.","wp-logo-showcase-responsive-slider-slider")})),wp.element.createElement(c,{title:__("Query Parameters","wp-logo-showcase-responsive-slider-slider"),initialOpen:!1},wp.element.createElement(h,{label:__("Limit","wp-logo-showcase-responsive-slider-slider"),value:o,onChange:function(e){return l({limit:e})},min:-1,help:__("Enter number of logos to be displayed. Enter -1 to display all.","wp-logo-showcase-responsive-slider-slider")}),wp.element.createElement(g,{label:__("Order By","wp-logo-showcase-responsive-slider-slider"),value:G,options:this.GetPostOrderby(),onChange:function(e){return l({orderby:e})}}),wp.element.createElement(g,{label:__("Order","wp-logo-showcase-responsive-slider-slider"),value:W,options:this.GetPostOrder(),onChange:function(e){return l({order:e})}}),wp.element.createElement(m,{label:__("Display Specific Category","wp-logo-showcase-responsive-slider-slider"),value:n,onChange:function(e){return l({cat_id:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant category listing page.","wp-logo-showcase-responsive-slider-slider")},__("Enter category id to display categories wise.","wp-logo-showcase-responsive-slider-slider")," [?]")}),wp.element.createElement(w,null,wp.element.createElement(g,{label:__("Display Child Category","wp-logo-showcase-responsive-slider-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("If you are using parent category then whether to display child category or not. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(m,{label:__("Exclude Category","wp-logo-showcase-responsive-slider-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Exclude post category. Works only if `Category` field is empty. You can pass multiple ids with comma seperated. You can find id at relevant category listing page. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(m,{label:__("Display Specific Posts","wp-logo-showcase-responsive-slider-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter id of the post which you want to display. You can pass multiple ids with comma seperated. You can find id at relevant post listing page. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(m,{label:__("Exclude Post","wp-logo-showcase-responsive-slider-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter id of the post which you do not want to display. You can pass multiple ids with comma seperated. You can find id at relevant post listing page. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})),wp.element.createElement(w,null,wp.element.createElement(h,{label:__("Query Offset","wp-logo-showcase-responsive-slider-slider"),min:0,help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Exclude number of posts from starting. e.g if you pass 5 then it will skip first five post. Note: This will not work with limit=-1. Upgarade to ","wp-logo-showcase-responsive-slider-slider"),wp.element.createElement("a",{href:Wplsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-logo-showcase-responsive-slider-slider")),__("to get this option.","wp-logo-showcase-responsive-slider-slider")))})))));return wp.element.createElement(p,null,T,wp.element.createElement(E,null,wp.element.createElement(b,{value:L,onChange:function(e){return l({align:e})},controls:["wide","full"]})),wp.element.createElement("div",{className:this.props.className},this.renderOutput()))}},{key:"renderOutput",value:function(){var e=this.props.attributes,s=this.ObjToString(e);s=s.trim();var l=s?"[logoshowcase "+s+"]":"[logoshowcase]";return wp.element.createElement("div",{class:"wpos-guten-shrt"},wp.element.createElement("div",{class:"wpos-guten-shrt-title"},wp.element.createElement("span",null,__("WP Logo Showcase Responsive Slider","wp-logo-showcase-responsive-slider-slider"))),l,wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},wp.element.createElement("span",null),__("Do you want to check demo of this plugin.","wp-logo-showcase-responsive-slider-slider")," ",wp.element.createElement("a",{href:Wplsf_Block.free_demo_link,target:"_blank"},__("Click here","wp-logo-showcase-responsive-slider-slider"))),wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},__("Do you also want to check premium version demo of this plugin.","wp-logo-showcase-responsive-slider-slider")," ",wp.element.createElement("a",{href:Wplsf_Block.pro_demo_link,target:"_blank"},__("Click here","wp-logo-showcase-responsive-slider-slider"))))}}]),s}(a);s.a=y}]);
|
assets/js/wpls-public.js
CHANGED
@@ -6,21 +6,24 @@ jQuery( document ).ready(function($) {
|
|
6 |
var slider_id = $(this).attr('id');
|
7 |
var logo_conf = $.parseJSON( $(this).closest('.wpls-logo-showcase-slider-wrp').find('.wpls-logo-showacse-slider-conf').attr('data-conf') );
|
8 |
|
|
|
|
|
9 |
if( typeof(slider_id) != 'undefined' && slider_id != '' ) {
|
10 |
jQuery('#'+slider_id).slick({
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
24 |
responsive: [{
|
25 |
breakpoint: 1023,
|
26 |
settings: {
|
6 |
var slider_id = $(this).attr('id');
|
7 |
var logo_conf = $.parseJSON( $(this).closest('.wpls-logo-showcase-slider-wrp').find('.wpls-logo-showacse-slider-conf').attr('data-conf') );
|
8 |
|
9 |
+
|
10 |
+
console.log( logo_conf.lazyload );
|
11 |
if( typeof(slider_id) != 'undefined' && slider_id != '' ) {
|
12 |
jQuery('#'+slider_id).slick({
|
13 |
+
lazyLoad : logo_conf.lazyload,
|
14 |
+
centerMode : (logo_conf.center_mode) == "true" ? true : false,
|
15 |
+
dots : (logo_conf.dots) == "true" ? true : false,
|
16 |
+
arrows : (logo_conf.arrows) == "true" ? true : false,
|
17 |
+
infinite : (logo_conf.loop) == "true" ? true : false,
|
18 |
+
speed : parseInt(logo_conf.speed),
|
19 |
+
autoplay : (logo_conf.autoplay) == "true" ? true : false,
|
20 |
+
slidesToShow : parseInt(logo_conf.slides_column),
|
21 |
+
slidesToScroll : parseInt(logo_conf.slides_scroll),
|
22 |
+
autoplaySpeed : parseInt(logo_conf.autoplay_interval),
|
23 |
+
pauseOnFocus : false,
|
24 |
+
centerPadding : '0px',
|
25 |
+
rtl : (logo_conf.rtl) == "true" ? true : false,
|
26 |
+
mobileFirst : (Wpls.is_mobile == 1) ? true : false,
|
27 |
responsive: [{
|
28 |
breakpoint: 1023,
|
29 |
settings: {
|
includes/admin/class-wpls-admin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Handles the Admin side functionality of plugin
|
6 |
*
|
7 |
-
* @package WP Logo Showcase Responsive Slider
|
8 |
* @since 1.0.0
|
9 |
*/
|
10 |
|
@@ -13,20 +13,76 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
13 |
|
14 |
class Wpls_Admin {
|
15 |
|
16 |
-
function __construct() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
// Action to add admin menu
|
19 |
-
add_action( 'admin_menu', array($this, 'wpls_register_menu'), 12 );
|
20 |
|
21 |
-
//
|
22 |
-
|
|
|
|
|
|
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
/**
|
27 |
* Function to add menu
|
28 |
*
|
29 |
-
* @package WP Logo Showcase Responsive Slider
|
30 |
* @since 1.0.0
|
31 |
*/
|
32 |
function wpls_register_menu() {
|
@@ -41,7 +97,7 @@ class Wpls_Admin {
|
|
41 |
/**
|
42 |
* Getting Started Page Html
|
43 |
*
|
44 |
-
* @package WP Logo Showcase Responsive Slider
|
45 |
* @since 1.0.0
|
46 |
*/
|
47 |
function wpls_premium_page() {
|
@@ -51,7 +107,7 @@ class Wpls_Admin {
|
|
51 |
/**
|
52 |
* Hire Us Page Html
|
53 |
*
|
54 |
-
* @package WP Logo Showcase Responsive Slider
|
55 |
* @since 2.1
|
56 |
*/
|
57 |
function wpls_hireus_page() {
|
@@ -61,7 +117,7 @@ class Wpls_Admin {
|
|
61 |
/**
|
62 |
* Function to notification transient
|
63 |
*
|
64 |
-
* @package WP Logo Showcase Responsive Slider
|
65 |
* @since 1.0.0
|
66 |
*/
|
67 |
function wpls_admin_init_process() {
|
@@ -70,6 +126,31 @@ class Wpls_Admin {
|
|
70 |
set_transient( 'wpls_install_notice', true, 604800 );
|
71 |
}
|
72 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
}
|
74 |
|
75 |
$wpls_Admin = new Wpls_Admin();
|
4 |
*
|
5 |
* Handles the Admin side functionality of plugin
|
6 |
*
|
7 |
+
* @package WP Logo Showcase Responsive Slider
|
8 |
* @since 1.0.0
|
9 |
*/
|
10 |
|
13 |
|
14 |
class Wpls_Admin {
|
15 |
|
16 |
+
function __construct() {
|
17 |
+
|
18 |
+
// Admin init process
|
19 |
+
add_action( 'admin_init', array( $this, 'wpls_admin_init_process') );
|
20 |
+
|
21 |
+
// Action to add metabox
|
22 |
+
add_action( 'add_meta_boxes', array( $this, 'wpls_post_sett_metabox'), 10, 2 );
|
23 |
+
|
24 |
+
// Action to save metabox value
|
25 |
+
add_action( 'save_post_'.WPLS_POST_TYPE, array( $this, 'wpls_save_meta_box_data') );
|
26 |
|
27 |
// Action to add admin menu
|
28 |
+
add_action( 'admin_menu', array( $this, 'wpls_register_menu'), 12 );
|
29 |
|
30 |
+
// Action to add custom column to Logo listing
|
31 |
+
add_filter("manage_wplss_logo_showcase_cat_custom_column", array( $this, 'wplss_logoshowcase_cat_columns'), 10, 3);
|
32 |
+
|
33 |
+
// Action to add custom column data to Logo listing
|
34 |
+
add_filter("manage_edit-wplss_logo_showcase_cat_columns", array( $this, 'wplss_logoshowcase_cat_manage_columns') );
|
35 |
}
|
36 |
|
37 |
+
/**
|
38 |
+
* Post Settings Metabox
|
39 |
+
*
|
40 |
+
* @package WP Logo Showcase Responsive Slider
|
41 |
+
* @since 2.5
|
42 |
+
*/
|
43 |
+
function wpls_post_sett_metabox( $post_type, $post ) {
|
44 |
+
add_meta_box( 'wpls-post-metabox', __('WP Logo Showcase Responsive Slider - Settings', 'wp-logo-showcase-responsive-slider-slider'), array($this, 'wpls_post_sett_box_callback'), WPLS_POST_TYPE, 'normal', 'high' );
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Function to handle 'Add Link URL' metabox HTML
|
49 |
+
*
|
50 |
+
* @package WP Logo Showcase Responsive Slider
|
51 |
+
* @since 2.5
|
52 |
+
*/
|
53 |
+
function wpls_post_sett_box_callback( $post ) {
|
54 |
+
include_once( WPLS_DIR .'/includes/admin/metabox/wpls-post-setting-metabox.php');
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Function to save metabox values
|
59 |
+
*
|
60 |
+
* @package WP Logo Showcase Responsive Slider
|
61 |
+
* @since 2.5
|
62 |
+
*/
|
63 |
+
function wpls_save_meta_box_data( $post_id ){
|
64 |
+
|
65 |
+
global $post_type;
|
66 |
+
|
67 |
+
if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) // Check Autosave
|
68 |
+
|| ( ! isset( $_POST['post_ID'] ) || $post_id != $_POST['post_ID'] ) // Check Revision
|
69 |
+
|| ( $post_type != WPLS_POST_TYPE ) ) // Check if current post type is supported.
|
70 |
+
{
|
71 |
+
return $post_id;
|
72 |
+
}
|
73 |
+
|
74 |
+
$prefix = WPLS_META_PREFIX; // Taking metabox prefix
|
75 |
+
|
76 |
+
$logo_link = isset($_POST[$prefix.'logo_link']) ? wpls_clean_url( $_POST[$prefix.'logo_link'] ) : '';
|
77 |
+
|
78 |
+
// Updating Post Meta
|
79 |
+
update_post_meta( $post_id, 'wplss_slide_link', $logo_link );
|
80 |
+
}
|
81 |
|
82 |
/**
|
83 |
* Function to add menu
|
84 |
*
|
85 |
+
* @package WP Logo Showcase Responsive Slider
|
86 |
* @since 1.0.0
|
87 |
*/
|
88 |
function wpls_register_menu() {
|
97 |
/**
|
98 |
* Getting Started Page Html
|
99 |
*
|
100 |
+
* @package WP Logo Showcase Responsive Slider
|
101 |
* @since 1.0.0
|
102 |
*/
|
103 |
function wpls_premium_page() {
|
107 |
/**
|
108 |
* Hire Us Page Html
|
109 |
*
|
110 |
+
* @package WP Logo Showcase Responsive Slider
|
111 |
* @since 2.1
|
112 |
*/
|
113 |
function wpls_hireus_page() {
|
117 |
/**
|
118 |
* Function to notification transient
|
119 |
*
|
120 |
+
* @package WP Logo Showcase Responsive Slider
|
121 |
* @since 1.0.0
|
122 |
*/
|
123 |
function wpls_admin_init_process() {
|
126 |
set_transient( 'wpls_install_notice', true, 604800 );
|
127 |
}
|
128 |
}
|
129 |
+
|
130 |
+
/**
|
131 |
+
* Add custom column to Logo listing page
|
132 |
+
*
|
133 |
+
* @package WP Logo Showcase Responsive Slider
|
134 |
+
* @since 1.0.0
|
135 |
+
*/
|
136 |
+
function wplss_logoshowcase_cat_columns($ouput, $column_name, $tax_id) {
|
137 |
+
if( $column_name == 'wpls_logo_shortcode' ) {
|
138 |
+
$ouput .= '[logoshowcase cat_id="' . $tax_id. '"]';
|
139 |
+
}
|
140 |
+
return $ouput;
|
141 |
+
}
|
142 |
+
|
143 |
+
/**
|
144 |
+
* Add custom column data to Logo listing page
|
145 |
+
*
|
146 |
+
* @package WP Logo Showcase Responsive Slider
|
147 |
+
* @since 1.0.0
|
148 |
+
*/
|
149 |
+
function wplss_logoshowcase_cat_manage_columns($columns) {
|
150 |
+
$new_columns['wpls_logo_shortcode'] = __( 'Category Shortcode', 'wp-logo-showcase-responsive-slider-slider' );
|
151 |
+
$columns = wpls_logo_add_array( $columns, $new_columns, 2 );
|
152 |
+
return $columns;
|
153 |
+
}
|
154 |
}
|
155 |
|
156 |
$wpls_Admin = new Wpls_Admin();
|
includes/admin/metabox/wpls-post-setting-metabox.php
CHANGED
@@ -5,44 +5,52 @@
|
|
5 |
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.2.8
|
7 |
*/
|
8 |
-
|
9 |
-
|
|
|
10 |
}
|
11 |
-
add_action( 'add_meta_boxes', 'wplss_add_meta_box' );
|
12 |
|
13 |
-
|
14 |
-
wp_nonce_field( 'wplss_save_meta_box_data', 'wplss_meta_box_nonce' );
|
15 |
-
$value = get_post_meta( $post->ID, 'wplss_slide_link', true );
|
16 |
-
echo '<input type="url" id="wplss_slide_link" style="width:100%" name="wplss_slide_link" value="' . esc_url( $value ) . '" size="25" /><br />';
|
17 |
-
echo '<em>Display link on logo image ie http://www.google.com</em>';
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.2.8
|
7 |
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly
|
11 |
}
|
|
|
12 |
|
13 |
+
global $post;
|
|
|
|
|
|
|
|
|
14 |
|
15 |
+
$prefix = WPLS_META_PREFIX; // Metabox prefix
|
16 |
|
17 |
+
$logo_link = get_post_meta( $post->ID, 'wplss_slide_link', true );
|
18 |
+
?>
|
19 |
+
<table class="form-table wpls-metabox-table">
|
20 |
+
<tbody>
|
21 |
+
|
22 |
+
<tr>
|
23 |
+
<th>
|
24 |
+
<label for="wpls-logo-link"><?php _e('Logo Link', 'wp-logo-showcase-responsive-slider-slider'); ?></label>
|
25 |
+
</th>
|
26 |
+
<td>
|
27 |
+
<input type="url" value="<?php echo esc_url($logo_link); ?>" class="large-text wpls-logo-link" id="wpls-logo-link" name="<?php echo $prefix; ?>logo_link" /><br/>
|
28 |
+
<span class="description"><?php _e('Enter link url for logo. i.e https://www.wponlinesupport.com', 'wp-logo-showcase-responsive-slider-slider'); ?></span>
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
|
32 |
+
<tr class="wpls-pro-feature">
|
33 |
+
<th>
|
34 |
+
<?php _e('Logo Description', 'wp-logo-showcase-responsive-slider-slider'); ?><span class="wpls-pro-tag"><?php _e('PRO','wp-logo-showcase-responsive-slider-slider');?></span>
|
35 |
+
</th>
|
36 |
+
<td>
|
37 |
+
<textarea name="<?php echo $prefix; ?>logo_desc" rows="4" cols="100" disabled></textarea><br/>
|
38 |
+
<?php // wp_editor( '', 'logo_desc', $settings = array('textarea_name'=>'logo_desc') ); ?>
|
39 |
+
<span class="description"><?php _e('Enter logo description using default wordpress content editor.', 'wp-logo-showcase-responsive-slider-slider'); ?></span>
|
40 |
+
<?php echo sprintf( __( 'Upgrade to <a href="%s" target="_blank">Premium Version</a> to get this option.', 'wp-logo-showcase-responsive-slider-slider'), WPLS_PLUGIN_LINK); ?>
|
41 |
+
</td>
|
42 |
+
</tr>
|
43 |
+
|
44 |
+
<tr class="wpls-pro-feature">
|
45 |
+
<th>
|
46 |
+
<?php _e('Logo Image URL', 'wp-logo-showcase-responsive-slider-slider'); ?><span class="wpls-pro-tag"><?php _e('PRO','wp-logo-showcase-responsive-slider-slider');?></span>
|
47 |
+
</th>
|
48 |
+
<td>
|
49 |
+
<input type="url" value="" class="large-text wpls-logo-url" id="wpls-logo-url" name="<?php echo $prefix; ?>logo_url" disabled /><br/>
|
50 |
+
<span class="description"><?php _e('Enter external URL of logo. If you don not want to use an image from your media gallery, you can set an URL for logo image here.', 'wp-logo-showcase-responsive-slider-slider'); ?></span>
|
51 |
+
<?php echo sprintf( __( 'Upgrade to <a href="%s" target="_blank">Premium Version</a> to get this option.', 'wp-logo-showcase-responsive-slider-slider'), WPLS_PLUGIN_LINK); ?>
|
52 |
+
</td>
|
53 |
+
</tr>
|
54 |
+
|
55 |
+
</tbody>
|
56 |
+
</table><!-- end .wpls-metabox-table -->
|
includes/admin/settings/hire-us.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Premium Offer Page
|
4 |
*
|
5 |
-
* @package
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
@@ -15,14 +15,13 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
15 |
<h2><?php _e( 'Hire Us - Get unlimited expert WordPress Support and Development', 'wp-logo-showcase-responsive-slider-slider' ); ?></h2><br />
|
16 |
|
17 |
<div class="support-data">
|
18 |
-
|
19 |
<ul>
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
</div>
|
27 |
|
28 |
<style>
|
@@ -42,14 +41,11 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
42 |
|
43 |
/* Tablehead */
|
44 |
.wpos-plugin-pricing-table thead th {background-color: #fff; background:linear-gradient(to bottom, #ffffff 0%, #ffffff 100%); text-align: center; position: relative; border-bottom: 1px solid #ccc; padding: 1em 0 3em; font-weight:400; color:#999;}
|
45 |
-
|
46 |
.wpos-plugin-pricing-table thead th:nth-child(3) {padding:1em 0 3.5em 0;}
|
47 |
.wpos-plugin-pricing-table thead th p.promo {font-size: 14px; color: #fff; position: absolute; bottom:0; left: -17px; z-index: 1000; width: 100%; margin: 0; padding: .625em 17px .75em; background-color: #ca4a1f; box-shadow: 0 2px 4px rgba(0,0,0,.25); border-bottom: 1px solid #ca4a1f;}
|
48 |
.wpos-plugin-pricing-table thead th p.promo:before {content: ""; position: absolute; display: block; width: 0px; height: 0px; border-style: solid; border-width: 0 7px 7px 0; border-color: transparent #900 transparent transparent; bottom: -7px; left: 0;}
|
49 |
.wpos-plugin-pricing-table thead th p.promo:after {content: ""; position: absolute; display: block; width: 0px; height: 0px; border-style: solid; border-width: 7px 7px 0 0; border-color: #900 transparent transparent transparent; bottom: -7px; right: 0;}
|
50 |
|
51 |
-
|
52 |
-
|
53 |
/* Table Footer */
|
54 |
.wpos-plugin-pricing-table tfoot th, .wpos-plugin-pricing-table tfoot td{text-align: center; border-top: 1px solid #ccc;}
|
55 |
.wpos-plugin-pricing-table tfoot a{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #59c7fb; border-radius: .2em;}
|
@@ -63,31 +59,31 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
63 |
<thead>
|
64 |
<tr>
|
65 |
<th>
|
66 |
-
<h2
|
67 |
-
<p
|
68 |
</th>
|
69 |
<th>
|
70 |
-
<h2
|
71 |
-
<p
|
72 |
</th>
|
73 |
<th>
|
74 |
-
<h2
|
75 |
-
<p
|
76 |
-
<p class="promo"
|
77 |
</th>
|
78 |
<th>
|
79 |
-
<h2
|
80 |
-
<p
|
81 |
</th>
|
82 |
</tr>
|
83 |
</thead>
|
84 |
|
85 |
<tfoot>
|
86 |
<tr>
|
87 |
-
<td><a href="https://www.wponlinesupport.com/checkout/?edd_action=add_to_cart&download_id=6044&edd_options[price_id]=6&ref=wposthemeplugin" target="_blank"
|
88 |
-
<td><a href="https://www.wponlinesupport.com/checkout/?edd_action=add_to_cart&download_id=6044&edd_options[price_id]=3&ref=wposthemeplugin" target="_blank"
|
89 |
-
<td><a href="https://www.wponlinesupport.com/checkout/?edd_action=add_to_cart&download_id=6044&edd_options[price_id]=4&ref=wposthemeplugin" target="_blank"
|
90 |
-
<td><a href="https://www.wponlinesupport.com/checkout/?edd_action=add_to_cart&download_id=6044&edd_options[price_id]=5&ref=wposthemeplugin" target="_blank"
|
91 |
</tr>
|
92 |
</tfoot>
|
93 |
|
2 |
/**
|
3 |
* Plugin Premium Offer Page
|
4 |
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
15 |
<h2><?php _e( 'Hire Us - Get unlimited expert WordPress Support and Development', 'wp-logo-showcase-responsive-slider-slider' ); ?></h2><br />
|
16 |
|
17 |
<div class="support-data">
|
18 |
+
<h3 style="margin-bottom:5px;"><?php _e( 'Highlight of Hiring:', 'wp-logo-showcase-responsive-slider-slider' ); ?></h3>
|
19 |
<ul>
|
20 |
+
<li><?php _e( 'Hire once, get unlimited jobs done', 'wp-logo-showcase-responsive-slider-slider' ); ?></li>
|
21 |
+
<li><?php _e( 'Quick ticket support, quick solution', 'wp-logo-showcase-responsive-slider-slider' ); ?></li>
|
22 |
+
<li><?php _e( 'Any sort of WP work with no extra cost', 'wp-logo-showcase-responsive-slider-slider' ); ?></li>
|
23 |
+
<li><?php _e( 'Dedicated expert working only for you!', 'wp-logo-showcase-responsive-slider-slider' ); ?></li>
|
24 |
+
</ul>
|
|
|
25 |
</div>
|
26 |
|
27 |
<style>
|
41 |
|
42 |
/* Tablehead */
|
43 |
.wpos-plugin-pricing-table thead th {background-color: #fff; background:linear-gradient(to bottom, #ffffff 0%, #ffffff 100%); text-align: center; position: relative; border-bottom: 1px solid #ccc; padding: 1em 0 3em; font-weight:400; color:#999;}
|
|
|
44 |
.wpos-plugin-pricing-table thead th:nth-child(3) {padding:1em 0 3.5em 0;}
|
45 |
.wpos-plugin-pricing-table thead th p.promo {font-size: 14px; color: #fff; position: absolute; bottom:0; left: -17px; z-index: 1000; width: 100%; margin: 0; padding: .625em 17px .75em; background-color: #ca4a1f; box-shadow: 0 2px 4px rgba(0,0,0,.25); border-bottom: 1px solid #ca4a1f;}
|
46 |
.wpos-plugin-pricing-table thead th p.promo:before {content: ""; position: absolute; display: block; width: 0px; height: 0px; border-style: solid; border-width: 0 7px 7px 0; border-color: transparent #900 transparent transparent; bottom: -7px; left: 0;}
|
47 |
.wpos-plugin-pricing-table thead th p.promo:after {content: ""; position: absolute; display: block; width: 0px; height: 0px; border-style: solid; border-width: 7px 7px 0 0; border-color: #900 transparent transparent transparent; bottom: -7px; right: 0;}
|
48 |
|
|
|
|
|
49 |
/* Table Footer */
|
50 |
.wpos-plugin-pricing-table tfoot th, .wpos-plugin-pricing-table tfoot td{text-align: center; border-top: 1px solid #ccc;}
|
51 |
.wpos-plugin-pricing-table tfoot a{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #59c7fb; border-radius: .2em;}
|
59 |
<thead>
|
60 |
<tr>
|
61 |
<th>
|
62 |
+
<h2><?php _e( 'Hire us for 1 Hr', 'wp-logo-showcase-responsive-slider-slider' ); ?></h2>
|
63 |
+
<p><?php _e( '$20 USD', 'wp-logo-showcase-responsive-slider-slider' ); ?></p>
|
64 |
</th>
|
65 |
<th>
|
66 |
+
<h2><?php _e( 'Hire us for 5 Hrs', 'wp-logo-showcase-responsive-slider-slider' ); ?></h2>
|
67 |
+
<p><?php _e( '$99 USD', 'wp-logo-showcase-responsive-slider-slider' ); ?></p>
|
68 |
</th>
|
69 |
<th>
|
70 |
+
<h2><?php _e( 'Hire us for 30 Hrs', 'wp-logo-showcase-responsive-slider-slider' ); ?></h2>
|
71 |
+
<p><?php _e( '$499 USD', 'wp-logo-showcase-responsive-slider-slider' ); ?></p>
|
72 |
+
<p class="promo"><?php _e( 'Our most valuable package!', 'wp-logo-showcase-responsive-slider-slider' ); ?></p>
|
73 |
</th>
|
74 |
<th>
|
75 |
+
<h2><?php _e( 'Hire us for 70 Hrs', 'wp-logo-showcase-responsive-slider-slider' ); ?></h2>
|
76 |
+
<p><?php _e( '$999 USD', 'wp-logo-showcase-responsive-slider-slider' ); ?></p>
|
77 |
</th>
|
78 |
</tr>
|
79 |
</thead>
|
80 |
|
81 |
<tfoot>
|
82 |
<tr>
|
83 |
+
<td><a href="https://www.wponlinesupport.com/checkout/?edd_action=add_to_cart&download_id=6044&edd_options[price_id]=6&ref=wposthemeplugin" target="_blank"><?php _e( 'Hire Us', 'wp-logo-showcase-responsive-slider-slider' ); ?></a></td>
|
84 |
+
<td><a href="https://www.wponlinesupport.com/checkout/?edd_action=add_to_cart&download_id=6044&edd_options[price_id]=3&ref=wposthemeplugin" target="_blank"><?php _e( 'Hire Us', 'wp-logo-showcase-responsive-slider-slider' ); ?></a></td>
|
85 |
+
<td><a href="https://www.wponlinesupport.com/checkout/?edd_action=add_to_cart&download_id=6044&edd_options[price_id]=4&ref=wposthemeplugin" target="_blank"><?php _e( 'Hire Us', 'wp-logo-showcase-responsive-slider-slider' ); ?></a></td>
|
86 |
+
<td><a href="https://www.wponlinesupport.com/checkout/?edd_action=add_to_cart&download_id=6044&edd_options[price_id]=5&ref=wposthemeplugin" target="_blank"><?php _e( 'Hire Us', 'wp-logo-showcase-responsive-slider-slider' ); ?></a></td>
|
87 |
</tr>
|
88 |
</tfoot>
|
89 |
|
includes/admin/settings/premium.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Premium Offer Page
|
4 |
*
|
5 |
-
* @package
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
@@ -53,13 +53,8 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
53 |
.wpos-plugin-pricing-table tfoot th, .wpos-plugin-pricing-table tfoot td{text-align: center; border-top: 1px solid #ccc;}
|
54 |
.wpos-plugin-pricing-table tfoot a{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #ca4a1f; border-radius: .2em;}
|
55 |
|
56 |
-
.essential-plugin-bundle{clear:both; margin-bottom:15px;}
|
57 |
-
.essential-plugin-bundle img{max-width:100%;}
|
58 |
</style>
|
59 |
-
|
60 |
-
<a href="https://www.wponlinesupport.com/pricing/?ref=WposPratik&utm_source=WP&utm_medium=WP-Plugins&utm_campaign=Essential-Plugin-Banner" target="_blank"><img src="https://www.wponlinesupport.com/plugin-data-api/images/plugin-bundle-banner.png?time=<?php echo current_time('timestamp'); ?>" alt="essential-plugin-bundle" /></a>
|
61 |
-
</div>
|
62 |
-
|
63 |
<table class="wpos-plugin-pricing-table">
|
64 |
<colgroup></colgroup>
|
65 |
<colgroup></colgroup>
|
@@ -84,7 +79,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
84 |
<th></th>
|
85 |
<td></td>
|
86 |
<td><p>Gain access to <strong>Logo Showcase Responsive Slider</strong> included in <strong>Essential Plugin Bundle</p>
|
87 |
-
<a href="https://www.wponlinesupport.com/
|
88 |
</tr>
|
89 |
</tfoot>
|
90 |
|
@@ -120,7 +115,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
120 |
<td><i class="dashicons dashicons-yes"></i></td>
|
121 |
</tr>
|
122 |
<tr>
|
123 |
-
<th>Option Show/Hide Title <span>Display
|
124 |
<td><i class="dashicons dashicons-yes"></i></td>
|
125 |
<td><i class="dashicons dashicons-yes"></i></td>
|
126 |
</tr>
|
@@ -151,9 +146,14 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
151 |
<td><i class="dashicons dashicons-yes"></i></td>
|
152 |
<td><i class="dashicons dashicons-yes"></i></td>
|
153 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
154 |
<tr>
|
155 |
<th>Gutenberg Block Supports <span>Use this plugin with Gutenberg easily</span></th>
|
156 |
-
<td><i class="dashicons dashicons-
|
157 |
<td><i class="dashicons dashicons-yes"></i></td>
|
158 |
</tr>
|
159 |
<tr>
|
2 |
/**
|
3 |
* Plugin Premium Offer Page
|
4 |
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
53 |
.wpos-plugin-pricing-table tfoot th, .wpos-plugin-pricing-table tfoot td{text-align: center; border-top: 1px solid #ccc;}
|
54 |
.wpos-plugin-pricing-table tfoot a{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #ca4a1f; border-radius: .2em;}
|
55 |
|
|
|
|
|
56 |
</style>
|
57 |
+
|
|
|
|
|
|
|
58 |
<table class="wpos-plugin-pricing-table">
|
59 |
<colgroup></colgroup>
|
60 |
<colgroup></colgroup>
|
79 |
<th></th>
|
80 |
<td></td>
|
81 |
<td><p>Gain access to <strong>Logo Showcase Responsive Slider</strong> included in <strong>Essential Plugin Bundle</p>
|
82 |
+
<a href="https://www.wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/?ref=WposPratik&utm_source=WP&utm_medium=Logoshowcase&utm_campaign=Upgrade-PRO" target="_blank">View Buying Options</a></td>
|
83 |
</tr>
|
84 |
</tfoot>
|
85 |
|
115 |
<td><i class="dashicons dashicons-yes"></i></td>
|
116 |
</tr>
|
117 |
<tr>
|
118 |
+
<th>Option Show/Hide Title <span>Display logo title</span></th>
|
119 |
<td><i class="dashicons dashicons-yes"></i></td>
|
120 |
<td><i class="dashicons dashicons-yes"></i></td>
|
121 |
</tr>
|
146 |
<td><i class="dashicons dashicons-yes"></i></td>
|
147 |
<td><i class="dashicons dashicons-yes"></i></td>
|
148 |
</tr>
|
149 |
+
<tr>
|
150 |
+
<th>Lazyload Support <span>Add lazyload support for image. </span></th>
|
151 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
152 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
153 |
+
</tr>
|
154 |
<tr>
|
155 |
<th>Gutenberg Block Supports <span>Use this plugin with Gutenberg easily</span></th>
|
156 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
157 |
<td><i class="dashicons dashicons-yes"></i></td>
|
158 |
</tr>
|
159 |
<tr>
|
includes/admin/supports/gutenberg-block.php
ADDED
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Blocks Initializer
|
4 |
+
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
+
* @since 2.5
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly.
|
11 |
+
}
|
12 |
+
|
13 |
+
function wpls_register_guten_block() {
|
14 |
+
|
15 |
+
// Block Editor Script
|
16 |
+
wp_register_script( 'wpls-free-block-js', WPLS_URL.'assets/js/blocks.build.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-components' ), WPLS_VERSION, true );
|
17 |
+
|
18 |
+
wp_localize_script( 'wpls-free-block-js', 'Wplsf_Block', array(
|
19 |
+
'pro_demo_link' => 'https://demo.wponlinesupport.com/prodemo/pro-logo-showcase-responsive-slider/',
|
20 |
+
'free_demo_link' => 'https://demo.wponlinesupport.com/logo-slider-plugin-demo/',
|
21 |
+
'pro_link' => WPLS_PLUGIN_LINK,
|
22 |
+
));
|
23 |
+
|
24 |
+
// Register block and explicit attributes for grid
|
25 |
+
register_block_type( 'wpls/logoshowcase', array(
|
26 |
+
'attributes' => array(
|
27 |
+
'limit' => array(
|
28 |
+
'type' => 'number',
|
29 |
+
'default' => 15,
|
30 |
+
),
|
31 |
+
'design' => array(
|
32 |
+
'type' => 'string',
|
33 |
+
'default' => 'design-1',
|
34 |
+
),
|
35 |
+
'cat_id' => array(
|
36 |
+
'type' => 'string',
|
37 |
+
'default' => '',
|
38 |
+
),
|
39 |
+
'cat_name' => array(
|
40 |
+
'type' => 'string',
|
41 |
+
'default' => '',
|
42 |
+
),
|
43 |
+
'slides_column' => array(
|
44 |
+
'type' => 'number',
|
45 |
+
'default' => 4,
|
46 |
+
),
|
47 |
+
'slides_scroll' => array(
|
48 |
+
'type' => 'number',
|
49 |
+
'default' => 1,
|
50 |
+
),
|
51 |
+
'dots' => array(
|
52 |
+
'type' => 'string',
|
53 |
+
'default' => 'true',
|
54 |
+
),
|
55 |
+
'arrows' => array(
|
56 |
+
'type' => 'string',
|
57 |
+
'default' => 'true',
|
58 |
+
),
|
59 |
+
'autoplay' => array(
|
60 |
+
'type' => 'string',
|
61 |
+
'default' => 'true',
|
62 |
+
),
|
63 |
+
'autoplay_interval' => array(
|
64 |
+
'type' => 'number',
|
65 |
+
'default' => 2000,
|
66 |
+
),
|
67 |
+
'speed' => array(
|
68 |
+
'type' => 'number',
|
69 |
+
'default' => 1000,
|
70 |
+
),
|
71 |
+
'center_mode' => array(
|
72 |
+
'type' => 'string',
|
73 |
+
'default' => 'false',
|
74 |
+
),
|
75 |
+
'loop' => array(
|
76 |
+
'type' => 'string',
|
77 |
+
'default' => 'true',
|
78 |
+
),
|
79 |
+
'lazyload' => array(
|
80 |
+
'type' => 'string',
|
81 |
+
'default' => '',
|
82 |
+
),
|
83 |
+
'link_target' => array(
|
84 |
+
'type' => 'string',
|
85 |
+
'default' => 'self',
|
86 |
+
),
|
87 |
+
'show_title' => array(
|
88 |
+
'type' => 'boolean',
|
89 |
+
'default' => false,
|
90 |
+
),
|
91 |
+
'image_size' => array(
|
92 |
+
'type' => 'string',
|
93 |
+
'default' => 'original',
|
94 |
+
),
|
95 |
+
'orderby' => array(
|
96 |
+
'type' => 'string',
|
97 |
+
'default' => 'date',
|
98 |
+
),
|
99 |
+
'order' => array(
|
100 |
+
'type' => 'string',
|
101 |
+
'default' => 'asc',
|
102 |
+
),
|
103 |
+
'hide_border' => array(
|
104 |
+
'type' => 'string',
|
105 |
+
'default' => 'true',
|
106 |
+
),
|
107 |
+
'max_height' => array(
|
108 |
+
'type' => 'number',
|
109 |
+
'default' => 250,
|
110 |
+
),
|
111 |
+
'align' => array(
|
112 |
+
'type' => 'string',
|
113 |
+
'default' => '',
|
114 |
+
),
|
115 |
+
'className' => array(
|
116 |
+
'type' => 'string',
|
117 |
+
'default' => '',
|
118 |
+
),
|
119 |
+
),
|
120 |
+
'render_callback' => 'wpls_logo_slider',
|
121 |
+
));
|
122 |
+
|
123 |
+
if ( function_exists( 'wp_set_script_translations' ) ) {
|
124 |
+
wp_set_script_translations( 'wpls-free-block-js', 'wp-logo-showcase-responsive-slider-slider', WPLS_DIR . '/languages' );
|
125 |
+
}
|
126 |
+
}
|
127 |
+
add_action( 'init', 'wpls_register_guten_block' );
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Enqueue Gutenberg block assets for backend editor.
|
131 |
+
*
|
132 |
+
* @uses {wp-blocks} for block type registration & related functions.
|
133 |
+
* @uses {wp-element} for WP Element abstraction — structure of blocks.
|
134 |
+
* @uses {wp-i18n} to internationalize the block's text.
|
135 |
+
* @uses {wp-editor} for WP editor styles.
|
136 |
+
*
|
137 |
+
* @package WP Logo Showcase Responsive Slider
|
138 |
+
* @since 2.5
|
139 |
+
*/
|
140 |
+
function wpls_editor_assets() {
|
141 |
+
|
142 |
+
// Block Editor CSS
|
143 |
+
if( ! wp_style_is( 'wpos-free-guten-block-css', 'registered' ) ) {
|
144 |
+
wp_register_style( 'wpos-free-guten-block-css', WPLS_URL.'assets/css/blocks.editor.build.css', array( 'wp-edit-blocks' ), WPLS_VERSION );
|
145 |
+
}
|
146 |
+
|
147 |
+
// Block Editor Script - Style
|
148 |
+
wp_enqueue_style( 'wpos-free-guten-block-css' );
|
149 |
+
wp_enqueue_script( 'wpls-free-block-js' );
|
150 |
+
}
|
151 |
+
add_action( 'enqueue_block_editor_assets', 'wpls_editor_assets' );
|
152 |
+
|
153 |
+
/**
|
154 |
+
* Adds an extra category to the block inserter
|
155 |
+
*
|
156 |
+
* @package WP Logo Showcase Responsive Slider
|
157 |
+
* @since 2.5
|
158 |
+
*/
|
159 |
+
function wpls_add_block_category( $categories ) {
|
160 |
+
|
161 |
+
$guten_cats = wp_list_pluck( $categories, 'slug' );
|
162 |
+
|
163 |
+
if( ! in_array( 'wpos_guten_block', $guten_cats ) ) {
|
164 |
+
$categories[] = array(
|
165 |
+
'slug' => 'wpos_guten_block',
|
166 |
+
'title' => esc_html__('WPOS Blocks', 'wp-logo-showcase-responsive-slider-slider'),
|
167 |
+
'icon' => null,
|
168 |
+
);
|
169 |
+
}
|
170 |
+
|
171 |
+
return $categories;
|
172 |
+
}
|
173 |
+
add_filter( 'block_categories', 'wpls_add_block_category' );
|
includes/admin/wpls-how-it-work.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Pro Designs and Plugins Feed
|
4 |
*
|
5 |
-
* @package
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
@@ -15,7 +15,7 @@ add_action('admin_menu', 'wpls_register_design_page');
|
|
15 |
/**
|
16 |
* Register plugin design page in admin menu
|
17 |
*
|
18 |
-
* @package
|
19 |
* @since 1.0.0
|
20 |
*/
|
21 |
function wpls_register_design_page() {
|
@@ -25,7 +25,7 @@ function wpls_register_design_page() {
|
|
25 |
/**
|
26 |
* Function to display plugin design HTML
|
27 |
*
|
28 |
-
* @package
|
29 |
* @since 1.0.0
|
30 |
*/
|
31 |
function wpls_designs_page() {
|
@@ -70,7 +70,7 @@ function wpls_designs_page() {
|
|
70 |
/**
|
71 |
* Gets the plugin design part feed
|
72 |
*
|
73 |
-
* @package
|
74 |
* @since 1.0.0
|
75 |
*/
|
76 |
function wpls_get_plugin_design( $feed_type = '' ) {
|
@@ -109,7 +109,7 @@ function wpls_get_plugin_design( $feed_type = '' ) {
|
|
109 |
/**
|
110 |
* Function to get plugin feed tabs
|
111 |
*
|
112 |
-
* @package
|
113 |
* @since 1.0.0
|
114 |
*/
|
115 |
function wpls_help_tabs() {
|
@@ -130,7 +130,7 @@ function wpls_help_tabs() {
|
|
130 |
/**
|
131 |
* Function to get 'How It Works' HTML
|
132 |
*
|
133 |
-
* @package
|
134 |
* @since 1.0.0
|
135 |
*/
|
136 |
function wpls_howitwork_page() { ?>
|
@@ -228,27 +228,27 @@ function wpls_howitwork_page() { ?>
|
|
228 |
</h3>
|
229 |
<div class="inside">
|
230 |
<ul class="wpos-list">
|
231 |
-
<li
|
232 |
-
<li
|
233 |
-
<li
|
234 |
-
<li
|
235 |
-
<li
|
236 |
-
<li
|
237 |
-
<li
|
238 |
-
<li
|
239 |
-
<li
|
240 |
-
<li
|
241 |
-
<li
|
242 |
-
<li
|
243 |
-
<li
|
244 |
-
<li
|
245 |
-
<li
|
246 |
-
<li
|
247 |
-
<li
|
248 |
-
<li
|
249 |
</ul>
|
250 |
-
<div class="upgrade-to-pro"
|
251 |
-
<a class="button button-primary wpos-button-full" href="https://www.wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/?ref=WposPratik&utm_source=WP&utm_medium=
|
252 |
<p><a class="button button-primary wpos-button-full" href="http://demo.wponlinesupport.com/prodemo/pro-logo-showcase-responsive-slider/" target="_blank"><?php _e('View PRO Demo ', 'wp-logo-showcase-responsive-slider-slider'); ?></a> </p>
|
253 |
</div><!-- .inside -->
|
254 |
</div><!-- #general -->
|
@@ -263,7 +263,7 @@ function wpls_howitwork_page() { ?>
|
|
263 |
<span><?php _e( 'Help to improve this plugin!', 'wp-logo-showcase-responsive-slider-slider' ); ?></span>
|
264 |
</h3>
|
265 |
<div class="inside">
|
266 |
-
<p
|
267 |
</div><!-- .inside -->
|
268 |
</div><!-- #general -->
|
269 |
</div><!-- .meta-box-sortables ui-sortable -->
|
2 |
/**
|
3 |
* Pro Designs and Plugins Feed
|
4 |
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
15 |
/**
|
16 |
* Register plugin design page in admin menu
|
17 |
*
|
18 |
+
* @package WP Logo Showcase Responsive Slider
|
19 |
* @since 1.0.0
|
20 |
*/
|
21 |
function wpls_register_design_page() {
|
25 |
/**
|
26 |
* Function to display plugin design HTML
|
27 |
*
|
28 |
+
* @package WP Logo Showcase Responsive Slider
|
29 |
* @since 1.0.0
|
30 |
*/
|
31 |
function wpls_designs_page() {
|
70 |
/**
|
71 |
* Gets the plugin design part feed
|
72 |
*
|
73 |
+
* @package WP Logo Showcase Responsive Slider
|
74 |
* @since 1.0.0
|
75 |
*/
|
76 |
function wpls_get_plugin_design( $feed_type = '' ) {
|
109 |
/**
|
110 |
* Function to get plugin feed tabs
|
111 |
*
|
112 |
+
* @package WP Logo Showcase Responsive Slider
|
113 |
* @since 1.0.0
|
114 |
*/
|
115 |
function wpls_help_tabs() {
|
130 |
/**
|
131 |
* Function to get 'How It Works' HTML
|
132 |
*
|
133 |
+
* @package WP Logo Showcase Responsive Slider
|
134 |
* @since 1.0.0
|
135 |
*/
|
136 |
function wpls_howitwork_page() { ?>
|
228 |
</h3>
|
229 |
<div class="inside">
|
230 |
<ul class="wpos-list">
|
231 |
+
<li><?php _e( '15+ predefined template for logo showcase.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
232 |
+
<li><?php _e( '3 shortcodes [logoshowcase], [logo_grid] and [logo_filter]', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
233 |
+
<li><?php _e( 'Drag & Drop order change', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
234 |
+
<li><?php _e( 'Display logo showcase in a grid view.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
235 |
+
<li><?php _e( 'Display logo with filtration.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
236 |
+
<li><?php _e( 'Display logo showcase in slider view', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
237 |
+
<li><?php _e( 'Display logo showcase in center mode view', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
238 |
+
<li><?php _e( 'Logo Showcase With Ticker Mode', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
239 |
+
<li><?php _e( '2 Widgets- Slider and Grid view.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
240 |
+
<li><?php _e( 'Display Logo with title and description', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
241 |
+
<li><?php _e( 'Slider RTL support.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
242 |
+
<li><?php _e( 'Display logo showcase categories wise.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
243 |
+
<li><?php _e( 'Set image size for logo among WordPress image size.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
244 |
+
<li><?php _e( 'Visual Composer support.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
245 |
+
<li><?php _e( 'Logo Showcase with tool-tip with 5 tool-tip theme', 'wp-logo-showcase-responsive-slider-slider'); ?> and various parameters.</li>
|
246 |
+
<li><?php _e( 'Custom CSS option', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
247 |
+
<li><?php _e( 'Fully responsive', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
248 |
+
<li><?php _e( '100% Multi language', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
|
249 |
</ul>
|
250 |
+
<div class="upgrade-to-pro"><?php _e( 'Gain access to <strong>Logo Showcase Responsive Slider</strong> included in <br /><strong>Essential Plugin Bundle', 'wp-logo-showcase-responsive-slider-slider'); ?></div>
|
251 |
+
<a class="button button-primary wpos-button-full" href="https://www.wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/?ref=WposPratik&utm_source=WP&utm_medium=Logoshowcase&utm_campaign=Upgrade-PRO" target="_blank"><?php _e('Go Premium ', 'wp-logo-showcase-responsive-slider-slider'); ?></a>
|
252 |
<p><a class="button button-primary wpos-button-full" href="http://demo.wponlinesupport.com/prodemo/pro-logo-showcase-responsive-slider/" target="_blank"><?php _e('View PRO Demo ', 'wp-logo-showcase-responsive-slider-slider'); ?></a> </p>
|
253 |
</div><!-- .inside -->
|
254 |
</div><!-- #general -->
|
263 |
<span><?php _e( 'Help to improve this plugin!', 'wp-logo-showcase-responsive-slider-slider' ); ?></span>
|
264 |
</h3>
|
265 |
<div class="inside">
|
266 |
+
<p><?php echo sprintf( __( 'Enjoyed this plugin? You can help by rate this plugin <a href="%s" target="_blank">5 stars!', 'wp-logo-showcase-responsive-slider-slider'), 'https://wordpress.org/support/plugin/wp-logo-showcase-responsive-slider-slider/reviews/' ); ?></a></p>
|
267 |
</div><!-- .inside -->
|
268 |
</div><!-- #general -->
|
269 |
</div><!-- .meta-box-sortables ui-sortable -->
|
includes/class-wpls-script.php
CHANGED
@@ -11,16 +11,49 @@
|
|
11 |
// Exit if accessed directly
|
12 |
if ( !defined( 'ABSPATH' ) ) exit;
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
|
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
// Registring and enqueing slick slider css
|
25 |
if( !wp_style_is( 'wpos-slick-style', 'registered' ) ) {
|
26 |
wp_register_style( 'wpos-slick-style', WPLS_URL.'assets/css/slick.css', array(), WPLS_VERSION );
|
@@ -31,6 +64,13 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
31 |
wp_enqueue_style( 'logo_showcase_style');
|
32 |
|
33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
function wpls_logoshowcase_script(){
|
35 |
|
36 |
// Registring slick slider js
|
@@ -38,15 +78,11 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
38 |
wp_register_script( 'wpos-slick-jquery', WPLS_URL.'assets/js/slick.min.js', array('jquery'), WPLS_VERSION, true );
|
39 |
}
|
40 |
|
41 |
-
|
42 |
wp_register_script( 'wpls-public-js', WPLS_URL.'assets/js/wpls-public.js', array('jquery'), WPLS_VERSION, true );
|
43 |
wp_localize_script( 'wpls-public-js', 'Wpls', array(
|
44 |
'is_mobile' => (wp_is_mobile()) ? 1 : 0,
|
45 |
'is_rtl' => (is_rtl()) ? 1 : 0,
|
46 |
-
));
|
47 |
-
//wp_enqueue_script('wpls-public-jquery');
|
48 |
-
|
49 |
-
|
50 |
}
|
51 |
}
|
52 |
|
11 |
// Exit if accessed directly
|
12 |
if ( !defined( 'ABSPATH' ) ) exit;
|
13 |
|
14 |
+
class Wpls_Script {
|
15 |
+
|
16 |
+
function __construct() {
|
17 |
+
|
18 |
+
// Action to add style in backend
|
19 |
+
add_action( 'admin_enqueue_scripts', array($this, 'wpls_admin_style_script') );
|
20 |
+
|
21 |
+
// Action to add style at front side
|
22 |
+
add_action( 'wp_enqueue_scripts', array($this, 'wpls_logoshowcase_style_css' ));
|
23 |
+
|
24 |
+
// Action to add script at front side
|
25 |
+
add_action( 'wp_enqueue_scripts', array($this, 'wpls_logoshowcase_script') );
|
26 |
+
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Enqueue admin styles
|
31 |
+
*
|
32 |
+
* @package WP Logo Showcase Responsive Slider
|
33 |
+
* @since 2.5
|
34 |
+
*/
|
35 |
+
function wpls_admin_style_script( $hook ) {
|
36 |
+
|
37 |
+
global $typenow, $wp_version;
|
38 |
+
|
39 |
+
$new_ui = $wp_version >= '3.5' ? '1' : '0'; // Check wordpress version for older scripts
|
40 |
+
|
41 |
+
// Taking pages array
|
42 |
+
$pages_arr = array( WPLS_POST_TYPE );
|
43 |
+
|
44 |
+
if( in_array($typenow, $pages_arr) ) {
|
45 |
+
wp_register_style( 'wpls-admin-style', WPLS_URL.'assets/css/logo-showcase-admin.css', array(), WPLS_VERSION );
|
46 |
+
wp_enqueue_style( 'wpls-admin-style' );
|
47 |
}
|
48 |
+
}
|
49 |
|
50 |
+
/**
|
51 |
+
* Function to add style at front side
|
52 |
+
*
|
53 |
+
* @package WP Logo Showcase Responsive Slider
|
54 |
+
* @since 1.0.0
|
55 |
+
*/
|
56 |
+
function wpls_logoshowcase_style_css() {
|
57 |
// Registring and enqueing slick slider css
|
58 |
if( !wp_style_is( 'wpos-slick-style', 'registered' ) ) {
|
59 |
wp_register_style( 'wpos-slick-style', WPLS_URL.'assets/css/slick.css', array(), WPLS_VERSION );
|
64 |
wp_enqueue_style( 'logo_showcase_style');
|
65 |
|
66 |
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Function to add style at front side
|
70 |
+
*
|
71 |
+
* @package WP Logo Showcase Responsive Slider
|
72 |
+
* @since 1.0.0
|
73 |
+
*/
|
74 |
function wpls_logoshowcase_script(){
|
75 |
|
76 |
// Registring slick slider js
|
78 |
wp_register_script( 'wpos-slick-jquery', WPLS_URL.'assets/js/slick.min.js', array('jquery'), WPLS_VERSION, true );
|
79 |
}
|
80 |
|
|
|
81 |
wp_register_script( 'wpls-public-js', WPLS_URL.'assets/js/wpls-public.js', array('jquery'), WPLS_VERSION, true );
|
82 |
wp_localize_script( 'wpls-public-js', 'Wpls', array(
|
83 |
'is_mobile' => (wp_is_mobile()) ? 1 : 0,
|
84 |
'is_rtl' => (is_rtl()) ? 1 : 0,
|
85 |
+
));
|
|
|
|
|
|
|
86 |
}
|
87 |
}
|
88 |
|
includes/shortcode/wpls-logo-slider.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* 'logoshowcase' Shortcode
|
4 |
*
|
5 |
-
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
@@ -12,7 +12,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
12 |
/**
|
13 |
* Function to handle the `logoshowcase` shortcode
|
14 |
*
|
15 |
-
* @package WP Logo Showcase Responsive Slider
|
16 |
* @since 1.0.0
|
17 |
*/
|
18 |
function wpls_logo_slider( $atts, $content ) {
|
@@ -42,27 +42,35 @@ function wpls_logo_slider( $atts, $content ) {
|
|
42 |
'order' => 'ASC',
|
43 |
'hide_border' => 'true',
|
44 |
'max_height' => '250',
|
|
|
|
|
|
|
|
|
45 |
), $atts));
|
46 |
|
47 |
$shortcode_designs = wpls_logo_designs();
|
48 |
$design = array_key_exists( trim($design), $shortcode_designs ) ? $design : 'design-1';
|
49 |
-
$limit = !empty($limit) ? $limit : '15';
|
50 |
-
$cat = (!empty($cat_id)) ? explode(',',$cat_id) : '';
|
51 |
-
$cat_name = !empty($cat_name) ? $cat_name : '';
|
52 |
-
$slides_scroll = !empty($slides_scroll) ? $slides_scroll : 1;
|
53 |
-
$dots = ($dots == 'false') ? 'false'
|
54 |
-
$arrows = ($arrows == 'false') ? 'false'
|
55 |
-
$autoplay = ($autoplay == 'false') ? 'false'
|
56 |
-
$autoplay_interval = ($autoplay_interval !== '') ? $autoplay_interval
|
57 |
-
$speed = (!empty($speed)) ? $speed
|
58 |
-
$loop = ($loop == 'false') ? 'false'
|
59 |
-
$link_target = ($link_target == 'blank') ? '_blank'
|
60 |
-
$show_title = ($show_title == '
|
61 |
-
$image_size = (!empty($image_size)) ? $image_size
|
62 |
-
$order = ( strtolower($order) == 'asc' ) ? 'ASC'
|
63 |
-
$orderby = !empty($orderby) ? $orderby
|
64 |
$hide_border = ($hide_border == 'true') ? 'sliderimage_hide_border' : '';
|
65 |
-
$max_height = (!empty($max_height)) ? $max_height
|
|
|
|
|
|
|
|
|
66 |
|
67 |
// For RTL
|
68 |
if( empty($rtl) && is_rtl() ) {
|
@@ -116,7 +124,7 @@ function wpls_logo_slider( $atts, $content ) {
|
|
116 |
$dots_cls = ($dots == 'false') ? 'wpls-dots-false' : '';
|
117 |
|
118 |
// Slider configuration
|
119 |
-
$slider_conf = compact('slides_column', 'slides_scroll', 'dots', 'arrows', 'autoplay', 'autoplay_interval', 'loop' , 'rtl', 'speed', 'center_mode');
|
120 |
|
121 |
ob_start();
|
122 |
|
@@ -126,16 +134,17 @@ function wpls_logo_slider( $atts, $content ) {
|
|
126 |
if($cat_name != '') { ?>
|
127 |
<h2><?php echo $cat_name; ?> </h2>
|
128 |
<?php } ?>
|
129 |
-
<style>
|
130 |
-
#wpls-logo-showcase-slider-<?php echo $unique; ?> .
|
131 |
-
#wpls-logo-showcase-slider-<?php echo $unique; ?> .
|
132 |
</style>
|
133 |
-
<div class="wpls-logo-showcase-slider-wrp wpls-logo-clearfix">
|
134 |
<div class="wpls-logo-showcase logo_showcase wpls-logo-slider wpls-<?php echo $design; ?> <?php echo $center_mode_cls; ?> <?php echo $hide_border; ?> <?php echo $dots_cls; ?>" id="wpls-logo-showcase-slider-<?php echo $unique; ?>" >
|
135 |
<?php while ($logo_query->have_posts()) : $logo_query->the_post();
|
136 |
|
137 |
-
$feat_image
|
138 |
-
$logourl
|
|
|
139 |
$feat_image_alt = get_post_meta(get_post_thumbnail_id( $post->ID ), '_wp_attachment_image_alt', true);
|
140 |
|
141 |
// Include shortcode html file
|
@@ -149,9 +158,9 @@ function wpls_logo_slider( $atts, $content ) {
|
|
149 |
</div>
|
150 |
|
151 |
<?php
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
}
|
156 |
}
|
157 |
|
2 |
/**
|
3 |
* 'logoshowcase' Shortcode
|
4 |
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
12 |
/**
|
13 |
* Function to handle the `logoshowcase` shortcode
|
14 |
*
|
15 |
+
* @package WP Logo Showcase Responsive Slider
|
16 |
* @since 1.0.0
|
17 |
*/
|
18 |
function wpls_logo_slider( $atts, $content ) {
|
42 |
'order' => 'ASC',
|
43 |
'hide_border' => 'true',
|
44 |
'max_height' => '250',
|
45 |
+
'lazyload' => '',
|
46 |
+
'className' => '',
|
47 |
+
'align' => '',
|
48 |
+
'extra_class' => '',
|
49 |
), $atts));
|
50 |
|
51 |
$shortcode_designs = wpls_logo_designs();
|
52 |
$design = array_key_exists( trim($design), $shortcode_designs ) ? $design : 'design-1';
|
53 |
+
$limit = ! empty($limit) ? $limit : '15';
|
54 |
+
$cat = (! empty($cat_id)) ? explode(',',$cat_id) : '';
|
55 |
+
$cat_name = ! empty($cat_name) ? $cat_name : '';
|
56 |
+
$slides_scroll = ! empty($slides_scroll) ? $slides_scroll : 1;
|
57 |
+
$dots = ($dots == 'false') ? 'false' : 'true';
|
58 |
+
$arrows = ($arrows == 'false') ? 'false' : 'true';
|
59 |
+
$autoplay = ($autoplay == 'false') ? 'false' : 'true';
|
60 |
+
$autoplay_interval = ($autoplay_interval !== '') ? $autoplay_interval : '2000';
|
61 |
+
$speed = (! empty($speed)) ? $speed : '300';
|
62 |
+
$loop = ($loop == 'false') ? 'false' : 'true';
|
63 |
+
$link_target = ($link_target == 'blank') ? '_blank' : '_self';
|
64 |
+
$show_title = ($show_title == 'true') ? 'true' : 'false';
|
65 |
+
$image_size = (! empty($image_size)) ? $image_size : 'original';
|
66 |
+
$order = ( strtolower($order) == 'asc' ) ? 'ASC' : 'DESC';
|
67 |
+
$orderby = ! empty($orderby) ? $orderby : 'date';
|
68 |
$hide_border = ($hide_border == 'true') ? 'sliderimage_hide_border' : '';
|
69 |
+
$max_height = (! empty($max_height)) ? $max_height : '250';
|
70 |
+
$lazyload = ( $lazyload == 'ondemand' || $lazyload == 'progressive' ) ? $lazyload : ''; // ondemand or progressive
|
71 |
+
$align = ! empty( $align ) ? 'align'.$align : '';
|
72 |
+
$extra_class = $extra_class .' '. $align .' '. $className;
|
73 |
+
$extra_class = wpls_sanitize_html_classes( $extra_class );
|
74 |
|
75 |
// For RTL
|
76 |
if( empty($rtl) && is_rtl() ) {
|
124 |
$dots_cls = ($dots == 'false') ? 'wpls-dots-false' : '';
|
125 |
|
126 |
// Slider configuration
|
127 |
+
$slider_conf = compact('slides_column', 'slides_scroll', 'dots', 'arrows', 'autoplay', 'autoplay_interval', 'loop' , 'rtl', 'speed', 'center_mode', 'lazyload');
|
128 |
|
129 |
ob_start();
|
130 |
|
134 |
if($cat_name != '') { ?>
|
135 |
<h2><?php echo $cat_name; ?> </h2>
|
136 |
<?php } ?>
|
137 |
+
<style>
|
138 |
+
#wpls-logo-showcase-slider-<?php echo $unique; ?> .wpls-fix-box,
|
139 |
+
#wpls-logo-showcase-slider-<?php echo $unique; ?> .wpls-fix-box img.wp-post-image{max-height:<?php echo $max_height; ?>px; }
|
140 |
</style>
|
141 |
+
<div class="wpls-logo-showcase-slider-wrp wpls-logo-clearfix <?php echo $extra_class; ?>">
|
142 |
<div class="wpls-logo-showcase logo_showcase wpls-logo-slider wpls-<?php echo $design; ?> <?php echo $center_mode_cls; ?> <?php echo $hide_border; ?> <?php echo $dots_cls; ?>" id="wpls-logo-showcase-slider-<?php echo $unique; ?>" >
|
143 |
<?php while ($logo_query->have_posts()) : $logo_query->the_post();
|
144 |
|
145 |
+
$feat_image = wpls_get_logo_image( $post->ID, $image_size);
|
146 |
+
$logourl = get_post_meta( $post->ID, 'wplss_slide_link', true );
|
147 |
+
$image_title = get_the_title(get_post_thumbnail_id( $post->ID ));
|
148 |
$feat_image_alt = get_post_meta(get_post_thumbnail_id( $post->ID ), '_wp_attachment_image_alt', true);
|
149 |
|
150 |
// Include shortcode html file
|
158 |
</div>
|
159 |
|
160 |
<?php
|
161 |
+
wp_reset_postdata(); // Reset WP Query
|
162 |
+
$content .= ob_get_clean();
|
163 |
+
return $content;
|
164 |
}
|
165 |
}
|
166 |
|
includes/wpls-functions.php
CHANGED
@@ -12,10 +12,43 @@ function wplss_get_unique() {
|
|
12 |
return $unique;
|
13 |
}
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* Function to get post featured image
|
17 |
*
|
18 |
-
* @package WP Logo Showcase Responsive Slider
|
19 |
* @since 1.1.7
|
20 |
*/
|
21 |
function wpls_get_logo_image( $post_id = '', $size = 'full' ) {
|
@@ -31,7 +64,7 @@ function wpls_get_logo_image( $post_id = '', $size = 'full' ) {
|
|
31 |
/**
|
32 |
* Function to get plugin image sizes array
|
33 |
*
|
34 |
-
* @package WP Logo Showcase Responsive Slider
|
35 |
* @since 1.0.0
|
36 |
*/
|
37 |
function wpls_logo_designs() {
|
@@ -45,7 +78,7 @@ function wpls_logo_designs() {
|
|
45 |
/**
|
46 |
* Function to add array after specific key
|
47 |
*
|
48 |
-
* @package WP Logo Showcase Responsive Slider
|
49 |
* @since 1.2.5
|
50 |
*/
|
51 |
function wpls_logo_add_array(&$array, $value, $index, $from_last = false) {
|
@@ -63,22 +96,3 @@ function wpls_logo_add_array(&$array, $value, $index, $from_last = false) {
|
|
63 |
|
64 |
return $array;
|
65 |
}
|
66 |
-
|
67 |
-
// Manage Category Shortcode Columns
|
68 |
-
|
69 |
-
add_filter("manage_wplss_logo_showcase_cat_custom_column", 'wplss_logoshowcase_cat_columns', 10, 3);
|
70 |
-
add_filter("manage_edit-wplss_logo_showcase_cat_columns", 'wplss_logoshowcase_cat_manage_columns');
|
71 |
-
function wplss_logoshowcase_cat_manage_columns($columns) {
|
72 |
-
$new_columns['wpls_logo_shortcode'] = __( 'Category Shortcode', 'wp-logo-showcase-responsive-slider-slider' );
|
73 |
-
$columns = wpls_logo_add_array( $columns, $new_columns, 2 );
|
74 |
-
return $columns;
|
75 |
-
}
|
76 |
-
|
77 |
-
function wplss_logoshowcase_cat_columns($ouput, $column_name, $tax_id) {
|
78 |
-
if( $column_name == 'wpls_logo_shortcode' ) {
|
79 |
-
$ouput .= '[logoshowcase cat_id="' . $tax_id. '"]';
|
80 |
-
|
81 |
-
}
|
82 |
-
return $ouput;
|
83 |
-
|
84 |
-
}
|
12 |
return $unique;
|
13 |
}
|
14 |
|
15 |
+
/**
|
16 |
+
* Sanitize URL
|
17 |
+
*
|
18 |
+
* @package WP Logo Showcase Responsive Slider
|
19 |
+
* @since 2.5
|
20 |
+
*/
|
21 |
+
function wpls_clean_url( $url ) {
|
22 |
+
return esc_url_raw( trim($url) );
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Sanitize Multiple HTML class
|
27 |
+
*
|
28 |
+
* @package WP Logo Showcase Responsive Slider
|
29 |
+
* @since 2.5.1
|
30 |
+
*/
|
31 |
+
function wpls_sanitize_html_classes($classes, $sep = " ") {
|
32 |
+
$return = "";
|
33 |
+
|
34 |
+
if( !is_array($classes) ) {
|
35 |
+
$classes = explode($sep, $classes);
|
36 |
+
}
|
37 |
+
|
38 |
+
if( !empty($classes) ) {
|
39 |
+
foreach($classes as $class){
|
40 |
+
$return .= sanitize_html_class($class) . " ";
|
41 |
+
}
|
42 |
+
$return = trim( $return );
|
43 |
+
}
|
44 |
+
|
45 |
+
return $return;
|
46 |
+
}
|
47 |
+
|
48 |
/**
|
49 |
* Function to get post featured image
|
50 |
*
|
51 |
+
* @package WP Logo Showcase Responsive Slider
|
52 |
* @since 1.1.7
|
53 |
*/
|
54 |
function wpls_get_logo_image( $post_id = '', $size = 'full' ) {
|
64 |
/**
|
65 |
* Function to get plugin image sizes array
|
66 |
*
|
67 |
+
* @package WP Logo Showcase Responsive Slider
|
68 |
* @since 1.0.0
|
69 |
*/
|
70 |
function wpls_logo_designs() {
|
78 |
/**
|
79 |
* Function to add array after specific key
|
80 |
*
|
81 |
+
* @package WP Logo Showcase Responsive Slider
|
82 |
* @since 1.2.5
|
83 |
*/
|
84 |
function wpls_logo_add_array(&$array, $value, $index, $from_last = false) {
|
96 |
|
97 |
return $array;
|
98 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/wp-logo-showcase-responsive-slider-slider-en_US-wpls-free-block-js.json
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=2; plural=n != 1;","lang":"en_US"},"https://github.com/ahmadawais/create-guten-block/":[null,""],"https://www.wponlinesupport.com":[null,""],"mrahmadawais, maedahbatool":[null,""],"WP Logo Showcase Responsive Slider - Gutenberg":[null,""],"WP Logo Showcase Responsive Slider Gutenberg.":[null,""],"WPOS Blocks":[null,""]}}}
|
languages/wp-logo-showcase-responsive-slider-slider.pot
ADDED
@@ -0,0 +1,424 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: WP Logo Showcase Responsive Slider\n"
|
5 |
+
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2020-04-23 13:07+0000\n"
|
7 |
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
+
"Language-Team: \n"
|
10 |
+
"Language: \n"
|
11 |
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
12 |
+
"MIME-Version: 1.0\n"
|
13 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
+
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Loco https://localise.biz/\n"
|
16 |
+
"X-Loco-Version: 2.3.1; wp-5.4"
|
17 |
+
|
18 |
+
#: logo-showcase.php:123
|
19 |
+
#, php-format
|
20 |
+
msgid "Thank you for activating %s"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: logo-showcase.php:124
|
24 |
+
#, php-format
|
25 |
+
msgid ""
|
26 |
+
"It looks like you had PRO version %s of this plugin activated. To avoid "
|
27 |
+
"conflicts the extra version has been deactivated and we recommend you delete "
|
28 |
+
"it."
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: includes/wpls-functions.php:72
|
32 |
+
msgid "Design 1"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: includes/wpls-post-types.php:13
|
36 |
+
msgid "Add New"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: includes/wpls-post-types.php:14
|
40 |
+
msgid "Add New Logo Showcase"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: includes/wpls-post-types.php:15
|
44 |
+
msgid "Edit Logo Showcase"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: includes/wpls-post-types.php:16
|
48 |
+
msgid "New Logo Showcase"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: includes/wpls-post-types.php:17
|
52 |
+
msgid "All Logo Showcase"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: includes/wpls-post-types.php:18
|
56 |
+
msgid "View Logo Showcase"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: includes/wpls-post-types.php:19
|
60 |
+
msgid "Search Logo Showcase"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: includes/wpls-post-types.php:20
|
64 |
+
msgid "No Logo Showcase found"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: includes/wpls-post-types.php:21
|
68 |
+
msgid "No Logo Showcase found in Trash"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: includes/wpls-post-types.php:22 includes/wpls-post-types.php:23
|
72 |
+
msgid "Set logo image"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: includes/wpls-post-types.php:24
|
76 |
+
msgid "Remove logo image"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: includes/wpls-post-types.php:26
|
80 |
+
msgid "Logo Showcase"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: includes/admin/class-wpls-admin.php:44
|
84 |
+
msgid "WP Logo Showcase Responsive Slider - Settings"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: includes/admin/class-wpls-admin.php:91
|
88 |
+
msgid "Upgrade to PRO - Logo Showcase Responsive Slider"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: includes/admin/class-wpls-admin.php:91
|
92 |
+
msgid "Upgrade to PRO"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: includes/admin/class-wpls-admin.php:94
|
96 |
+
#: includes/admin/settings/hire-us.php:83
|
97 |
+
#: includes/admin/settings/hire-us.php:84
|
98 |
+
#: includes/admin/settings/hire-us.php:85
|
99 |
+
#: includes/admin/settings/hire-us.php:86
|
100 |
+
msgid "Hire Us"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: includes/admin/class-wpls-admin.php:150
|
104 |
+
msgid "Category Shortcode"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: includes/admin/wpls-how-it-work.php:22
|
108 |
+
msgid "How it works, our plugins and offers"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: includes/admin/wpls-how-it-work.php:22
|
112 |
+
#: includes/admin/wpls-how-it-work.php:118
|
113 |
+
msgid "How It Works"
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: includes/admin/wpls-how-it-work.php:103
|
117 |
+
msgid ""
|
118 |
+
"There was an error retrieving the data from the server. Please try again "
|
119 |
+
"later."
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: includes/admin/wpls-how-it-work.php:121
|
123 |
+
msgid "Our Plugins"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: includes/admin/wpls-how-it-work.php:159
|
127 |
+
msgid "How It Works - Display and shortcode"
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: includes/admin/wpls-how-it-work.php:167
|
131 |
+
msgid "Geeting Started with Logo Showcase"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: includes/admin/wpls-how-it-work.php:171
|
135 |
+
msgid "Step-1. Go to \"Logo Showcase --> Add New\"."
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: includes/admin/wpls-how-it-work.php:172
|
139 |
+
msgid ""
|
140 |
+
"Step-2. Add Logo title, logo link to redirect(if need) and logo image under "
|
141 |
+
"featured image section."
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: includes/admin/wpls-how-it-work.php:173
|
145 |
+
msgid ""
|
146 |
+
"Step-3. Display multiple logo showcase, create categories under \"Logo "
|
147 |
+
"Showcase --> category\" and create categories."
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: includes/admin/wpls-how-it-work.php:174
|
151 |
+
msgid ""
|
152 |
+
"Step-4. Assign logo showcase post to respective categories and use the "
|
153 |
+
"category shortcode under \"Logo Showcase --> category\""
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#: includes/admin/wpls-how-it-work.php:181
|
157 |
+
msgid "How Shortcode Works"
|
158 |
+
msgstr ""
|
159 |
+
|
160 |
+
#: includes/admin/wpls-how-it-work.php:185
|
161 |
+
msgid "Step-1. Create a page like Logoshose OR add the shortcode in any page."
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: includes/admin/wpls-how-it-work.php:186
|
165 |
+
msgid "Step-2. Put below shortcode as per your need."
|
166 |
+
msgstr ""
|
167 |
+
|
168 |
+
#: includes/admin/wpls-how-it-work.php:193
|
169 |
+
msgid "All Shortcodes"
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#: includes/admin/wpls-how-it-work.php:196
|
173 |
+
msgid "Logo Showcase Slider Shortcode"
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#: includes/admin/wpls-how-it-work.php:197
|
177 |
+
msgid "Logo Showcase Slider with center mode Shortcode"
|
178 |
+
msgstr ""
|
179 |
+
|
180 |
+
#: includes/admin/wpls-how-it-work.php:204
|
181 |
+
msgid "Need Support?"
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#: includes/admin/wpls-how-it-work.php:207
|
185 |
+
msgid "Check plugin document for shortcode parameters and demo for designs."
|
186 |
+
msgstr ""
|
187 |
+
|
188 |
+
#: includes/admin/wpls-how-it-work.php:208
|
189 |
+
msgid "Documentation"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: includes/admin/wpls-how-it-work.php:209
|
193 |
+
msgid "Demo for Designs"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: includes/admin/wpls-how-it-work.php:227
|
197 |
+
msgid "Upgrate to Pro"
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
+
#: includes/admin/wpls-how-it-work.php:231
|
201 |
+
msgid "15+ predefined template for logo showcase."
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: includes/admin/wpls-how-it-work.php:232
|
205 |
+
msgid "3 shortcodes [logoshowcase], [logo_grid] and [logo_filter]"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: includes/admin/wpls-how-it-work.php:233
|
209 |
+
msgid "Drag & Drop order change"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: includes/admin/wpls-how-it-work.php:234
|
213 |
+
msgid "Display logo showcase in a grid view."
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#: includes/admin/wpls-how-it-work.php:235
|
217 |
+
msgid "Display logo with filtration."
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: includes/admin/wpls-how-it-work.php:236
|
221 |
+
msgid "Display logo showcase in slider view"
|
222 |
+
msgstr ""
|
223 |
+
|
224 |
+
#: includes/admin/wpls-how-it-work.php:237
|
225 |
+
msgid "Display logo showcase in center mode view"
|
226 |
+
msgstr ""
|
227 |
+
|
228 |
+
#: includes/admin/wpls-how-it-work.php:238
|
229 |
+
msgid "Logo Showcase With Ticker Mode"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: includes/admin/wpls-how-it-work.php:239
|
233 |
+
msgid "2 Widgets- Slider and Grid view."
|
234 |
+
msgstr ""
|
235 |
+
|
236 |
+
#: includes/admin/wpls-how-it-work.php:240
|
237 |
+
msgid "Display Logo with title and description"
|
238 |
+
msgstr ""
|
239 |
+
|
240 |
+
#: includes/admin/wpls-how-it-work.php:241
|
241 |
+
msgid "Slider RTL support."
|
242 |
+
msgstr ""
|
243 |
+
|
244 |
+
#: includes/admin/wpls-how-it-work.php:242
|
245 |
+
msgid "Display logo showcase categories wise."
|
246 |
+
msgstr ""
|
247 |
+
|
248 |
+
#: includes/admin/wpls-how-it-work.php:243
|
249 |
+
msgid "Set image size for logo among WordPress image size."
|
250 |
+
msgstr ""
|
251 |
+
|
252 |
+
#: includes/admin/wpls-how-it-work.php:244
|
253 |
+
msgid "Visual Composer support."
|
254 |
+
msgstr ""
|
255 |
+
|
256 |
+
#: includes/admin/wpls-how-it-work.php:245
|
257 |
+
msgid "Logo Showcase with tool-tip with 5 tool-tip theme"
|
258 |
+
msgstr ""
|
259 |
+
|
260 |
+
#: includes/admin/wpls-how-it-work.php:246
|
261 |
+
msgid "Custom CSS option"
|
262 |
+
msgstr ""
|
263 |
+
|
264 |
+
#: includes/admin/wpls-how-it-work.php:247
|
265 |
+
msgid "Fully responsive"
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
+
#: includes/admin/wpls-how-it-work.php:248
|
269 |
+
msgid "100% Multi language"
|
270 |
+
msgstr ""
|
271 |
+
|
272 |
+
#: includes/admin/wpls-how-it-work.php:250
|
273 |
+
msgid ""
|
274 |
+
"Gain access to <strong>Logo Showcase Responsive Slider</strong> included in "
|
275 |
+
"<br /><strong>Essential Plugin Bundle"
|
276 |
+
msgstr ""
|
277 |
+
|
278 |
+
#: includes/admin/wpls-how-it-work.php:251
|
279 |
+
msgid "Go Premium "
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#: includes/admin/wpls-how-it-work.php:252
|
283 |
+
msgid "View PRO Demo "
|
284 |
+
msgstr ""
|
285 |
+
|
286 |
+
#: includes/admin/wpls-how-it-work.php:263
|
287 |
+
msgid "Help to improve this plugin!"
|
288 |
+
msgstr ""
|
289 |
+
|
290 |
+
#: includes/admin/wpls-how-it-work.php:266
|
291 |
+
#, php-format
|
292 |
+
msgid ""
|
293 |
+
"Enjoyed this plugin? You can help by rate this plugin <a href=\"%s\" "
|
294 |
+
"target=\"_blank\">5 stars!"
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:24
|
298 |
+
msgid "Logo Link"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:28
|
302 |
+
msgid "Enter link url for logo. i.e https://www.wponlinesupport.com"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:34
|
306 |
+
msgid "Logo Description"
|
307 |
+
msgstr ""
|
308 |
+
|
309 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:34
|
310 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:46
|
311 |
+
msgid "PRO"
|
312 |
+
msgstr ""
|
313 |
+
|
314 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:39
|
315 |
+
msgid "Enter logo description using default wordpress content editor."
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:40
|
319 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:51
|
320 |
+
#, php-format
|
321 |
+
msgid ""
|
322 |
+
"Upgrade to <a href=\"%s\" target=\"_blank\">Premium Version</a> to get this "
|
323 |
+
"option."
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:46
|
327 |
+
msgid "Logo Image URL"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#: includes/admin/metabox/wpls-post-setting-metabox.php:50
|
331 |
+
msgid ""
|
332 |
+
"Enter external URL of logo. If you don not want to use an image from your "
|
333 |
+
"media gallery, you can set an URL for logo image here."
|
334 |
+
msgstr ""
|
335 |
+
|
336 |
+
#: includes/admin/settings/hire-us.php:15
|
337 |
+
msgid "Hire Us - Get unlimited expert WordPress Support and Development"
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#: includes/admin/settings/hire-us.php:18
|
341 |
+
msgid "Highlight of Hiring:"
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#: includes/admin/settings/hire-us.php:20
|
345 |
+
msgid "Hire once, get unlimited jobs done"
|
346 |
+
msgstr ""
|
347 |
+
|
348 |
+
#: includes/admin/settings/hire-us.php:21
|
349 |
+
msgid "Quick ticket support, quick solution"
|
350 |
+
msgstr ""
|
351 |
+
|
352 |
+
#: includes/admin/settings/hire-us.php:22
|
353 |
+
msgid "Any sort of WP work with no extra cost"
|
354 |
+
msgstr ""
|
355 |
+
|
356 |
+
#: includes/admin/settings/hire-us.php:23
|
357 |
+
msgid "Dedicated expert working only for you!"
|
358 |
+
msgstr ""
|
359 |
+
|
360 |
+
#: includes/admin/settings/hire-us.php:62
|
361 |
+
msgid "Hire us for 1 Hr"
|
362 |
+
msgstr ""
|
363 |
+
|
364 |
+
#: includes/admin/settings/hire-us.php:63
|
365 |
+
msgid "$20 USD"
|
366 |
+
msgstr ""
|
367 |
+
|
368 |
+
#: includes/admin/settings/hire-us.php:66
|
369 |
+
msgid "Hire us for 5 Hrs"
|
370 |
+
msgstr ""
|
371 |
+
|
372 |
+
#: includes/admin/settings/hire-us.php:67
|
373 |
+
msgid "$99 USD"
|
374 |
+
msgstr ""
|
375 |
+
|
376 |
+
#: includes/admin/settings/hire-us.php:70
|
377 |
+
msgid "Hire us for 30 Hrs"
|
378 |
+
msgstr ""
|
379 |
+
|
380 |
+
#: includes/admin/settings/hire-us.php:71
|
381 |
+
msgid "$499 USD"
|
382 |
+
msgstr ""
|
383 |
+
|
384 |
+
#: includes/admin/settings/hire-us.php:72
|
385 |
+
msgid "Our most valuable package!"
|
386 |
+
msgstr ""
|
387 |
+
|
388 |
+
#: includes/admin/settings/hire-us.php:75
|
389 |
+
msgid "Hire us for 70 Hrs"
|
390 |
+
msgstr ""
|
391 |
+
|
392 |
+
#: includes/admin/settings/hire-us.php:76
|
393 |
+
msgid "$999 USD"
|
394 |
+
msgstr ""
|
395 |
+
|
396 |
+
#: includes/admin/settings/premium.php:15
|
397 |
+
msgid "Logo Showcase Responsive Slider - Features"
|
398 |
+
msgstr ""
|
399 |
+
|
400 |
+
#: includes/admin/supports/gutenberg-block.php:166
|
401 |
+
msgid "WPOS Blocks"
|
402 |
+
msgstr ""
|
403 |
+
|
404 |
+
#. Name of the plugin
|
405 |
+
msgid "WP Logo Showcase Responsive Slider"
|
406 |
+
msgstr ""
|
407 |
+
|
408 |
+
#. Description of the plugin
|
409 |
+
msgid ""
|
410 |
+
"Easy to add and display Logo Showcase Responsive Slider on your website. "
|
411 |
+
"Also added Gutenberg block support."
|
412 |
+
msgstr ""
|
413 |
+
|
414 |
+
#. URI of the plugin
|
415 |
+
msgid "https://www.wponlinesupport.com/plugins/"
|
416 |
+
msgstr ""
|
417 |
+
|
418 |
+
#. Author of the plugin
|
419 |
+
msgid "WP OnlineSupport"
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#. Author URI of the plugin
|
423 |
+
msgid "https://www.wponlinesupport.com/"
|
424 |
+
msgstr ""
|
logo-showcase.php
CHANGED
@@ -2,19 +2,23 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WP Logo Showcase Responsive Slider
|
4 |
* Plugin URI: https://www.wponlinesupport.com/plugins/
|
5 |
-
* Description: Easy to add and display Logo Showcase Responsive Slider on your website. Also
|
6 |
* Author: WP OnlineSupport
|
7 |
* Text Domain: wp-logo-showcase-responsive-slider-slider
|
8 |
* Domain Path: /languages/
|
9 |
-
* Version: 2.
|
10 |
* Author URI: https://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
13 |
* @author WP OnlineSupport
|
14 |
*/
|
15 |
|
|
|
|
|
|
|
|
|
16 |
if( !defined( 'WPLS_VERSION' ) ) {
|
17 |
-
define( 'WPLS_VERSION', '2.
|
18 |
}
|
19 |
if( !defined( 'WPLS_DIR' ) ) {
|
20 |
define( 'WPLS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
@@ -31,6 +35,10 @@ if( !defined( 'WPLS_CAT_TYPE' ) ) {
|
|
31 |
if( !defined( 'WPLS_META_PREFIX' ) ) {
|
32 |
define( 'WPLS_META_PREFIX', '_wpls_' ); // Plugin metabox prefix
|
33 |
}
|
|
|
|
|
|
|
|
|
34 |
|
35 |
/**
|
36 |
* Activation Hook
|
@@ -143,19 +151,16 @@ add_action('plugins_loaded', 'wpls_load_textdomain');
|
|
143 |
// Script file
|
144 |
require_once( WPLS_DIR . '/includes/class-wpls-script.php' );
|
145 |
|
146 |
-
//
|
147 |
require_once( WPLS_DIR . '/includes/wpls-functions.php' );
|
148 |
|
149 |
-
//
|
150 |
require_once( WPLS_DIR . '/includes/wpls-post-types.php' );
|
151 |
|
152 |
-
//
|
153 |
-
require_once( WPLS_DIR . '/includes/admin/metabox/wpls-post-setting-metabox.php' );
|
154 |
-
|
155 |
-
//post metabox file
|
156 |
require_once( WPLS_DIR . '/includes/shortcode/wpls-logo-slider.php' );
|
157 |
|
158 |
-
//Admin file for pro vs free
|
159 |
require_once( WPLS_DIR . '/includes/admin/class-wpls-admin.php' );
|
160 |
|
161 |
// Load admin files
|
@@ -163,6 +168,11 @@ if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
|
163 |
require_once( WPLS_DIR . '/includes/admin/wpls-how-it-work.php' );
|
164 |
}
|
165 |
|
|
|
|
|
|
|
|
|
|
|
166 |
/* Plugin Wpos Analytics Data Starts */
|
167 |
function wpos_analytics_anl23_load() {
|
168 |
|
@@ -175,21 +185,7 @@ function wpos_analytics_anl23_load() {
|
|
175 |
'slug' => 'wp-logo-showcase-responsive-slider',
|
176 |
'type' => 'plugin',
|
177 |
'menu' => 'edit.php?post_type=logoshowcase',
|
178 |
-
'text_domain' => 'wp-logo-showcase-responsive-slider-slider',
|
179 |
-
'promotion' => array(
|
180 |
-
'bundle' => array(
|
181 |
-
'name' => 'Download FREE 50+ Plugins, 10+ Themes and Dashboard Plugin',
|
182 |
-
'desc' => 'Download FREE 50+ Plugins, 10+ Themes and Dashboard Plugin',
|
183 |
-
'file' => 'https://www.wponlinesupport.com/latest/wpos-free-50-plugins-plus-12-themes.zip'
|
184 |
-
)
|
185 |
-
),
|
186 |
-
'offers' => array(
|
187 |
-
'trial_premium' => array(
|
188 |
-
'image' => 'http://analytics.wponlinesupport.com/?anylc_img=23',
|
189 |
-
'link' => 'http://analytics.wponlinesupport.com/?anylc_redirect=23',
|
190 |
-
'desc' => 'Or start using the plugin from admin menu',
|
191 |
-
)
|
192 |
-
),
|
193 |
));
|
194 |
|
195 |
return $wpos_analytics;
|
2 |
/**
|
3 |
* Plugin Name: WP Logo Showcase Responsive Slider
|
4 |
* Plugin URI: https://www.wponlinesupport.com/plugins/
|
5 |
+
* Description: Easy to add and display Logo Showcase Responsive Slider on your website. Also added Gutenberg block support.
|
6 |
* Author: WP OnlineSupport
|
7 |
* Text Domain: wp-logo-showcase-responsive-slider-slider
|
8 |
* Domain Path: /languages/
|
9 |
+
* Version: 2.5.6
|
10 |
* Author URI: https://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
13 |
* @author WP OnlineSupport
|
14 |
*/
|
15 |
|
16 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
17 |
+
exit; // Exit if accessed directly
|
18 |
+
}
|
19 |
+
|
20 |
if( !defined( 'WPLS_VERSION' ) ) {
|
21 |
+
define( 'WPLS_VERSION', '2.5.6' ); // Version of plugin
|
22 |
}
|
23 |
if( !defined( 'WPLS_DIR' ) ) {
|
24 |
define( 'WPLS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
35 |
if( !defined( 'WPLS_META_PREFIX' ) ) {
|
36 |
define( 'WPLS_META_PREFIX', '_wpls_' ); // Plugin metabox prefix
|
37 |
}
|
38 |
+
if(!defined( 'WPLS_PLUGIN_LINK' ) ) {
|
39 |
+
define('WPLS_PLUGIN_LINK','https://www.wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/?utm_source=WP&utm_medium=Logoshowcase&utm_campaign=Features-PRO'); // Plugin link
|
40 |
+
}
|
41 |
+
|
42 |
|
43 |
/**
|
44 |
* Activation Hook
|
151 |
// Script file
|
152 |
require_once( WPLS_DIR . '/includes/class-wpls-script.php' );
|
153 |
|
154 |
+
// Functions file
|
155 |
require_once( WPLS_DIR . '/includes/wpls-functions.php' );
|
156 |
|
157 |
+
// Post type file
|
158 |
require_once( WPLS_DIR . '/includes/wpls-post-types.php' );
|
159 |
|
160 |
+
// Shortcode File
|
|
|
|
|
|
|
161 |
require_once( WPLS_DIR . '/includes/shortcode/wpls-logo-slider.php' );
|
162 |
|
163 |
+
// Admin file for pro vs free
|
164 |
require_once( WPLS_DIR . '/includes/admin/class-wpls-admin.php' );
|
165 |
|
166 |
// Load admin files
|
168 |
require_once( WPLS_DIR . '/includes/admin/wpls-how-it-work.php' );
|
169 |
}
|
170 |
|
171 |
+
// Gutenberg Block Initializer
|
172 |
+
if ( function_exists( 'register_block_type' ) ) {
|
173 |
+
require_once( WPLS_DIR . '/includes/admin/supports/gutenberg-block.php' );
|
174 |
+
}
|
175 |
+
|
176 |
/* Plugin Wpos Analytics Data Starts */
|
177 |
function wpos_analytics_anl23_load() {
|
178 |
|
185 |
'slug' => 'wp-logo-showcase-responsive-slider',
|
186 |
'type' => 'plugin',
|
187 |
'menu' => 'edit.php?post_type=logoshowcase',
|
188 |
+
'text_domain' => 'wp-logo-showcase-responsive-slider-slider',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
));
|
190 |
|
191 |
return $wpos_analytics;
|
readme.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
=== WP Logo Showcase Responsive Slider ===
|
2 |
Contributors: wponlinesupport, anoopranawat, pratik-jain
|
3 |
-
Tags:
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 5.
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
-
A quick, easy way to add and display Multiple reponsive logo slideshow carousel to your site quickly and easily. Also
|
11 |
|
12 |
== Description ==
|
13 |
|
@@ -21,7 +21,7 @@ The plugin work with shortcode so you can easily display logo slideshow anywhere
|
|
21 |
|
22 |
Check [Demo and Features](https://demo.wponlinesupport.com/logo-slider-plugin-demo/) for additional information.
|
23 |
|
24 |
-
### Also
|
25 |
|
26 |
= Here is the shortcode example =
|
27 |
|
@@ -29,7 +29,7 @@ Check [Demo and Features](https://demo.wponlinesupport.com/logo-slider-plugin-de
|
|
29 |
|
30 |
= If you want to display Logos by category then use this short code =
|
31 |
|
32 |
-
<code>[logoshowcase limit
|
33 |
|
34 |
= Use Following parameters with shortcode =
|
35 |
|
@@ -66,28 +66,35 @@ Check [Demo and Features](https://demo.wponlinesupport.com/logo-slider-plugin-de
|
|
66 |
* **max_height:**
|
67 |
[logoshowcase max_height="80"] (ie set image maximum height 80px with 100% maximum width for better output. By default value is "250")
|
68 |
* **order:**
|
69 |
-
[logoshowcase order="
|
70 |
* **orderby :**
|
71 |
[logoshowcase orderby="post_date"] (Sort retrieved posts by parameter. Defaults to 'date (post_date)'. One or more options can be passed. 'none',ID','author','title','name',rand',date')
|
72 |
* **hide_border :**
|
73 |
[logoshowcase hide_border="true"] (Option to remove the border of logo. )
|
74 |
* **rtl :**
|
75 |
[logoshowcase rtl="true"] (Option to enable rtl mode )
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
= How to install : =
|
78 |
[youtube https://www.youtube.com/watch?v=frvJI6ZqYEo]
|
79 |
|
80 |
-
|
81 |
= Features include: =
|
|
|
82 |
* Added two new shortcode parameters "order and orderby"
|
83 |
* Display Client logoshowcase in slider view.
|
84 |
* Display Unlimited Client logoshowcase categories wise.
|
85 |
* Add Link for image.
|
86 |
* Target "blank" OR "self" when user click on link (Specify target to load the Links)
|
|
|
87 |
* Set image size with image_size="original" parameter (Logo image size control).
|
88 |
* Display Logo including / excluding Title (Show or hide logo title)
|
89 |
* Multiple sliders can be shown from different Logo categories.
|
90 |
* Slider sliding speed, autoplay Intervel, navigation, pagination, Slide columns for Logo slider, Number of Logos slides at a time.
|
|
|
91 |
* Created with Slick Slider.
|
92 |
* Enable center mode (Shown in Demo)
|
93 |
* Display slider in Loop OR not
|
@@ -146,9 +153,39 @@ Check [Demo and Features](https://demo.wponlinesupport.com/logo-slider-plugin-de
|
|
146 |
3. Category with shortcode.
|
147 |
4. Add a Logo
|
148 |
5. Also work with Gutenberg shortcode block.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
|
|
|
|
|
|
|
|
|
150 |
|
151 |
-
|
|
|
|
|
|
|
152 |
|
153 |
= 2.4.1 (26, 12 2019) =
|
154 |
* [*] Updated features list.
|
1 |
=== WP Logo Showcase Responsive Slider ===
|
2 |
Contributors: wponlinesupport, anoopranawat, pratik-jain
|
3 |
+
Tags: logo slider, widget, client logo carousel, client logo slider, client, customer, image carousel, carousel, logo showcase, Responsive logo slider, Responsive logo carousel, WordPress logo slider, WordPress logo carousel, slick carousel, Best logo showcase, easy logo slider, logo carousel wordpress, logo slider wordpress, sponsors, sponsors slider, sponsors carousel, wponlinesupport
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.5
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
+
A quick, easy way to add and display Multiple reponsive logo slideshow carousel to your site quickly and easily. Also added Gutenberg block support.
|
11 |
|
12 |
== Description ==
|
13 |
|
21 |
|
22 |
Check [Demo and Features](https://demo.wponlinesupport.com/logo-slider-plugin-demo/) for additional information.
|
23 |
|
24 |
+
### Also added Gutenberg block support.
|
25 |
|
26 |
= Here is the shortcode example =
|
27 |
|
29 |
|
30 |
= If you want to display Logos by category then use this short code =
|
31 |
|
32 |
+
<code>[logoshowcase limit="-1" cat_id="category_ID"]</code>
|
33 |
|
34 |
= Use Following parameters with shortcode =
|
35 |
|
66 |
* **max_height:**
|
67 |
[logoshowcase max_height="80"] (ie set image maximum height 80px with 100% maximum width for better output. By default value is "250")
|
68 |
* **order:**
|
69 |
+
[logoshowcase order="DESC"] (Designates the ascending or descending order of the 'orderby' parameter. Defaults to 'DESC'. Values are "DESC" and "ASC")
|
70 |
* **orderby :**
|
71 |
[logoshowcase orderby="post_date"] (Sort retrieved posts by parameter. Defaults to 'date (post_date)'. One or more options can be passed. 'none',ID','author','title','name',rand',date')
|
72 |
* **hide_border :**
|
73 |
[logoshowcase hide_border="true"] (Option to remove the border of logo. )
|
74 |
* **rtl :**
|
75 |
[logoshowcase rtl="true"] (Option to enable rtl mode )
|
76 |
+
* **lazyload :**
|
77 |
+
[logoshowcase lazyload="ondemand"] (Add lazy load to the images. By defaults there is no lazyload. Two options can be passed. 'ondemand', 'progressive')
|
78 |
+
|
79 |
+
= Features : =
|
80 |
+
[youtube https://www.youtube.com/watch?v=eEj85H71prA]
|
81 |
|
82 |
= How to install : =
|
83 |
[youtube https://www.youtube.com/watch?v=frvJI6ZqYEo]
|
84 |
|
|
|
85 |
= Features include: =
|
86 |
+
* Added Gutenberg block support.
|
87 |
* Added two new shortcode parameters "order and orderby"
|
88 |
* Display Client logoshowcase in slider view.
|
89 |
* Display Unlimited Client logoshowcase categories wise.
|
90 |
* Add Link for image.
|
91 |
* Target "blank" OR "self" when user click on link (Specify target to load the Links)
|
92 |
+
* Lazyload.
|
93 |
* Set image size with image_size="original" parameter (Logo image size control).
|
94 |
* Display Logo including / excluding Title (Show or hide logo title)
|
95 |
* Multiple sliders can be shown from different Logo categories.
|
96 |
* Slider sliding speed, autoplay Intervel, navigation, pagination, Slide columns for Logo slider, Number of Logos slides at a time.
|
97 |
+
* Slider Lazy loading your images which can improve your website speed by only calling on the loading of your images when they are needed.
|
98 |
* Created with Slick Slider.
|
99 |
* Enable center mode (Shown in Demo)
|
100 |
* Display slider in Loop OR not
|
153 |
3. Category with shortcode.
|
154 |
4. Add a Logo
|
155 |
5. Also work with Gutenberg shortcode block.
|
156 |
+
6. Gutenberg block.
|
157 |
+
7. Gutenberg block preview and options.
|
158 |
+
|
159 |
+
== Changelog ==
|
160 |
+
|
161 |
+
= 2.5.6 (14, July 2020) =
|
162 |
+
* [*] Follow WordPress Detailed Plugin Guidelines for Offload Media and Analytics Code.
|
163 |
+
|
164 |
+
= 2.5.5 (06, July 2020) =
|
165 |
+
* [+] Added Logo title attribute.
|
166 |
+
* [*] Regular pluign maintenance. Updated readme file. Tested plugin some more populor themes.
|
167 |
+
|
168 |
+
= 2.5.4 (15, May 2020) =
|
169 |
+
* [*] Fixed max_height parameter issue.
|
170 |
+
|
171 |
+
= 2.5.3 (24, April 2020) =
|
172 |
+
* [+] New - Added 'lazyload' shortcode parameter for all slider shortcodes. Now you can able to set lazy loading in two different method lazyload="ondemand" OR lazyload="progressive".
|
173 |
+
* [+] Update - Minor change in CSS and JS.
|
174 |
+
* [*] Template File - Minor template file has been updated. If you have override template file then verify with latest copy.
|
175 |
+
|
176 |
+
= 2.5.2 (14, April 2020) =
|
177 |
+
* [*] Fix - Resolve show_title issue in logo slider.
|
178 |
+
* [*] Template File - Main design file has been updated. If you have override template file then verify with latest copy.
|
179 |
|
180 |
+
= 2.5.1 (13, April 2020) =
|
181 |
+
* [+] New - Added 'align' and 'extra_class' parameter for slider shortcode. Now both slider shortcode are support twenty-ninteent and twenty-twenty theme gutenberg block align and additional class feature.
|
182 |
+
* [+] New - Add new classes sanatize function in function file.
|
183 |
+
* [+] Tweak - Minor code optimize tp move code from function file to admin class file.
|
184 |
|
185 |
+
= 2.5 (07, April 2020) =
|
186 |
+
* [+] New - Added Gutenberg block support. Now use plugin easily with Gutenberg!
|
187 |
+
* [*] Tweak - Code optimization and performance improvements.
|
188 |
+
* [*] Template File - Main design file has been updated. If you have override template file then verify with latest copy.
|
189 |
|
190 |
= 2.4.1 (26, 12 2019) =
|
191 |
* [*] Updated features list.
|
templates/design-1.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* 'logoshowcase' Design 1 Shortcodes HTML
|
4 |
*
|
5 |
-
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
@@ -10,17 +10,17 @@
|
|
10 |
if ( !defined( 'ABSPATH' ) ) exit;
|
11 |
?>
|
12 |
|
13 |
-
<div class="wpls-logo-cnt">
|
14 |
-
<div class="wpls-fix-box">
|
15 |
-
<?php if ($logourl != '') { ?>
|
16 |
<a href="<?php echo esc_url($logourl); ?>" target="<?php echo esc_attr($link_target); ?>">
|
17 |
-
<img class="wp-post-image" src="<?php echo esc_url($feat_image); ?>" alt="<?php echo esc_attr($feat_image_alt); ?>" />
|
18 |
-
</a>
|
19 |
-
<?php } else { ?>
|
20 |
-
<img class="wp-post-image" src="<?php echo esc_url($feat_image); ?>" alt="<?php echo esc_attr($feat_image_alt); ?>" />
|
21 |
-
<?php } ?>
|
22 |
</div>
|
23 |
-
<?php if($show_title ==
|
24 |
-
<div class="logo-title"><?php the_title(); ?></div>
|
25 |
<?php } ?>
|
26 |
</div>
|
2 |
/**
|
3 |
* 'logoshowcase' Design 1 Shortcodes HTML
|
4 |
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
* @since 1.0.0
|
7 |
*/
|
8 |
|
10 |
if ( !defined( 'ABSPATH' ) ) exit;
|
11 |
?>
|
12 |
|
13 |
+
<div class="wpls-logo-cnt">
|
14 |
+
<div class="wpls-fix-box">
|
15 |
+
<?php if ($logourl != '') { ?>
|
16 |
<a href="<?php echo esc_url($logourl); ?>" target="<?php echo esc_attr($link_target); ?>">
|
17 |
+
<img class="wp-post-image" <?php if($lazyload) { ?>data-lazy="<?php echo esc_url($feat_image); ?>" <?php } ?> src="<?php if(empty($lazyload)) { echo esc_url($feat_image); } ?>" title="<?php echo esc_attr($image_title); ?>" alt="<?php echo esc_attr($feat_image_alt); ?>" />
|
18 |
+
</a>
|
19 |
+
<?php } else { ?>
|
20 |
+
<img class="wp-post-image" <?php if($lazyload) { ?>data-lazy="<?php echo esc_url($feat_image); ?>" <?php } ?> src="<?php if(empty($lazyload)) { echo esc_url($feat_image); } ?>" title="<?php echo esc_attr($image_title); ?>" alt="<?php echo esc_attr($feat_image_alt); ?>" />
|
21 |
+
<?php } ?>
|
22 |
</div>
|
23 |
+
<?php if($show_title == 'true') { ?>
|
24 |
+
<div class="logo-title"><?php the_title(); ?></div>
|
25 |
<?php } ?>
|
26 |
</div>
|
wpos-analytics/includes/class-anylc-admin.php
CHANGED
@@ -81,7 +81,7 @@ class Wpos_Anylc_Admin {
|
|
81 |
|
82 |
// WP Menu data
|
83 |
$wpos_menu_data = wp_list_pluck( $menu, 2 );
|
84 |
-
$anylc_page = isset( $_GET['page'] ) ? $_GET['page'] : null;
|
85 |
|
86 |
foreach ($wpos_analytics_module as $module_key => $module) {
|
87 |
|
@@ -150,7 +150,7 @@ class Wpos_Anylc_Admin {
|
|
150 |
|
151 |
global $current_user, $wpos_analytics_product;
|
152 |
|
153 |
-
$anylc_product_name = !empty( $_GET['page'] ) ? $_GET['page'] : '';
|
154 |
|
155 |
// if no data is set then return
|
156 |
if( ! isset( $wpos_analytics_product[ $anylc_product_name ] ) ) {
|
@@ -183,7 +183,8 @@ class Wpos_Anylc_Admin {
|
|
183 |
|
184 |
global $wpos_analytics_product;
|
185 |
|
186 |
-
$anylc_product_name = isset( $_GET['page'] ) ?
|
|
|
187 |
|
188 |
// if no data is set then return
|
189 |
if( ! isset( $wpos_analytics_product[ $anylc_product_name ] ) ) {
|
@@ -244,7 +245,8 @@ class Wpos_Anylc_Admin {
|
|
244 |
|
245 |
// If license notice is dismissed
|
246 |
if( isset($_GET['message']) && $_GET['message'] == 'wpos-anylc-dismiss-notice' && !empty( $_GET['anylc_id'] ) ) {
|
247 |
-
|
|
|
248 |
}
|
249 |
|
250 |
$redirect = get_option('wpos_anylc_redirect');
|
@@ -312,10 +314,11 @@ class Wpos_Anylc_Admin {
|
|
312 |
// Process Promotion Data
|
313 |
if( !empty($_GET['message']) && $_GET['message'] == 'wpos_anylc_promotion' && !empty($_GET['wpos_anylc_pdt']) && !empty($_GET['wpos_anylc_promo_pdt']) ) {
|
314 |
|
315 |
-
$promotion
|
316 |
-
$
|
|
|
317 |
|
318 |
-
$anylc_pdt = $_GET['wpos_anylc_pdt'];
|
319 |
$anylc_pdt_data = isset( $wpos_analytics_product[ $anylc_pdt ] ) ? $wpos_analytics_product[ $anylc_pdt ] : false;
|
320 |
|
321 |
if( !empty($promotion_pdt) ) {
|
@@ -353,7 +356,16 @@ class Wpos_Anylc_Admin {
|
|
353 |
// If user has opt in
|
354 |
if( $opt_in == 1 ) {
|
355 |
|
356 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
|
358 |
include( WPOS_ANYLC_DIR .'/templates/optout-popup.php' );
|
359 |
}
|
@@ -378,9 +390,9 @@ class Wpos_Anylc_Admin {
|
|
378 |
|
379 |
global $wpos_analytics_product;
|
380 |
|
381 |
-
$anylc_pdt = !empty( $_GET['wpos_anylc_pdt'] ) ? $_GET['wpos_anylc_pdt']
|
382 |
-
$anylc_pdt = ( ! $anylc_pdt && !empty( $_GET['page'] ) ) ? $_GET['page']
|
383 |
-
$anylc_pdt_data = isset( $wpos_analytics_product[ $anylc_pdt ] ) ? $wpos_analytics_product[ $anylc_pdt ]
|
384 |
|
385 |
// If valid product data found
|
386 |
if( $anylc_pdt_data ) {
|
@@ -412,21 +424,7 @@ class Wpos_Anylc_Admin {
|
|
412 |
wp_die( __('Sorry, Something happened wrong.', 'wpos_analytic'), 'wpos_anylc_err', array('back_link' => true) );
|
413 |
}
|
414 |
|
415 |
-
$
|
416 |
-
$optin_form_data['wpos_anylc_action'] = 'skip';
|
417 |
-
|
418 |
-
$anylc_args = array(
|
419 |
-
'timeout' => 60,
|
420 |
-
'sslverify' => false,
|
421 |
-
'body' => $optin_form_data,
|
422 |
-
);
|
423 |
-
|
424 |
-
// Post back to get a response.
|
425 |
-
$response = wp_safe_remote_post( 'http://analytics.wponlinesupport.com', $anylc_args );
|
426 |
-
|
427 |
-
if( wp_remote_retrieve_response_code( $response ) == 200 ) {
|
428 |
-
$opt_in_data = wpos_anylc_update_option( $anylc_pdt_data['anylc_optin'], array('status' => 2) );
|
429 |
-
}
|
430 |
|
431 |
// Redirect to original menu
|
432 |
$redirect_url = wpos_anylc_pdt_url( $anylc_pdt_data, 'offer' );
|
@@ -445,25 +443,10 @@ class Wpos_Anylc_Admin {
|
|
445 |
wp_die( __('Sorry, Something happened wrong.', 'wpos_analytic'), 'wpos_anylc_err', array('back_link' => true) );
|
446 |
}
|
447 |
|
448 |
-
$
|
449 |
-
$optin_form_data['wpos_anylc_action'] = 'optout';
|
450 |
|
451 |
-
|
452 |
-
|
453 |
-
'sslverify' => false,
|
454 |
-
'body' => $optin_form_data,
|
455 |
-
);
|
456 |
-
|
457 |
-
// Post back to get a response.
|
458 |
-
$response = wp_safe_remote_post( 'http://analytics.wponlinesupport.com', $anylc_args );
|
459 |
-
|
460 |
-
if( wp_remote_retrieve_response_code( $response ) == 200 ) {
|
461 |
-
$opt_in_data = wpos_anylc_update_option( $anylc_pdt_data['anylc_optin'], array('status' => 0) );
|
462 |
-
}
|
463 |
-
|
464 |
-
// Redirect to original menu
|
465 |
-
$redirect_url = isset( $_GET['redirect'] ) ? $_GET['redirect'] : wpos_anylc_pdt_url( $anylc_pdt_data );
|
466 |
-
$redirect_url = add_query_arg( array( 'message' => 'optout_success' ), $redirect_url );
|
467 |
if( $redirect_url ) {
|
468 |
wp_redirect( $redirect_url );
|
469 |
exit;
|
81 |
|
82 |
// WP Menu data
|
83 |
$wpos_menu_data = wp_list_pluck( $menu, 2 );
|
84 |
+
$anylc_page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : null;
|
85 |
|
86 |
foreach ($wpos_analytics_module as $module_key => $module) {
|
87 |
|
150 |
|
151 |
global $current_user, $wpos_analytics_product;
|
152 |
|
153 |
+
$anylc_product_name = !empty( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : '';
|
154 |
|
155 |
// if no data is set then return
|
156 |
if( ! isset( $wpos_analytics_product[ $anylc_product_name ] ) ) {
|
183 |
|
184 |
global $wpos_analytics_product;
|
185 |
|
186 |
+
$anylc_product_name = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : '';
|
187 |
+
$anylc_product_name = str_replace( '-offers', '', $anylc_product_name );
|
188 |
|
189 |
// if no data is set then return
|
190 |
if( ! isset( $wpos_analytics_product[ $anylc_product_name ] ) ) {
|
245 |
|
246 |
// If license notice is dismissed
|
247 |
if( isset($_GET['message']) && $_GET['message'] == 'wpos-anylc-dismiss-notice' && !empty( $_GET['anylc_id'] ) ) {
|
248 |
+
$anylc_id = sanitize_text_field( $_GET['anylc_id'] );
|
249 |
+
set_transient( 'wpos_anylc_optin_notice_'.$anylc_id, true, 172800 );
|
250 |
}
|
251 |
|
252 |
$redirect = get_option('wpos_anylc_redirect');
|
314 |
// Process Promotion Data
|
315 |
if( !empty($_GET['message']) && $_GET['message'] == 'wpos_anylc_promotion' && !empty($_GET['wpos_anylc_pdt']) && !empty($_GET['wpos_anylc_promo_pdt']) ) {
|
316 |
|
317 |
+
$promotion = 1;
|
318 |
+
$wpos_anylc_promo_pdt = sanitize_text_field( $_GET['wpos_anylc_promo_pdt'] );
|
319 |
+
$promotion_pdt = explode( ',', $wpos_anylc_promo_pdt );
|
320 |
|
321 |
+
$anylc_pdt = sanitize_text_field( $_GET['wpos_anylc_pdt'] );
|
322 |
$anylc_pdt_data = isset( $wpos_analytics_product[ $anylc_pdt ] ) ? $wpos_analytics_product[ $anylc_pdt ] : false;
|
323 |
|
324 |
if( !empty($promotion_pdt) ) {
|
356 |
// If user has opt in
|
357 |
if( $opt_in == 1 ) {
|
358 |
|
359 |
+
// Creating redirect URL
|
360 |
+
$plugin_status = isset( $_GET['plugin_status'] ) ? sanitize_text_field( $_GET['plugin_status'] ) : false;
|
361 |
+
$paged = isset( $_GET['paged'] ) ? sanitize_text_field( $_GET['paged'] ) : false;
|
362 |
+
$s = isset( $_GET['s'] ) ? sanitize_text_field( $_GET['s'] ) : false;
|
363 |
+
|
364 |
+
$redirect_url = add_query_arg( array( 'plugin_status' => $plugin_status, 'paged' => $paged, 's' => $s, 'wpos_anylc_pdt' => $module['slug'] ), admin_url( 'plugins.php' ) );
|
365 |
+
$redirect_url = wp_nonce_url( $redirect_url, 'wpos_anylc_act'.'|'.$module['slug'] );
|
366 |
+
|
367 |
+
// Form Data
|
368 |
+
$optin_form_data = wpos_anylc_optin_data( $module['slug'], $redirect_url );
|
369 |
|
370 |
include( WPOS_ANYLC_DIR .'/templates/optout-popup.php' );
|
371 |
}
|
390 |
|
391 |
global $wpos_analytics_product;
|
392 |
|
393 |
+
$anylc_pdt = !empty( $_GET['wpos_anylc_pdt'] ) ? sanitize_text_field( $_GET['wpos_anylc_pdt'] ) : '';
|
394 |
+
$anylc_pdt = ( ! $anylc_pdt && !empty( $_GET['page'] ) ) ? sanitize_text_field( $_GET['page'] ) : $anylc_pdt;
|
395 |
+
$anylc_pdt_data = isset( $wpos_analytics_product[ $anylc_pdt ] ) ? $wpos_analytics_product[ $anylc_pdt ] : false;
|
396 |
|
397 |
// If valid product data found
|
398 |
if( $anylc_pdt_data ) {
|
424 |
wp_die( __('Sorry, Something happened wrong.', 'wpos_analytic'), 'wpos_anylc_err', array('back_link' => true) );
|
425 |
}
|
426 |
|
427 |
+
$opt_in_data = wpos_anylc_update_option( $anylc_pdt_data['anylc_optin'], array('status' => 2) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
|
429 |
// Redirect to original menu
|
430 |
$redirect_url = wpos_anylc_pdt_url( $anylc_pdt_data, 'offer' );
|
443 |
wp_die( __('Sorry, Something happened wrong.', 'wpos_analytic'), 'wpos_anylc_err', array('back_link' => true) );
|
444 |
}
|
445 |
|
446 |
+
$opt_in_data = wpos_anylc_update_option( $anylc_pdt_data['anylc_optin'], array('status' => 0) );
|
|
|
447 |
|
448 |
+
// Redirect with success message
|
449 |
+
$redirect_url = add_query_arg( array( 'message' => 'optout_success', 'wpos_anylc_action' => false, 'wpos_anylc_pdt' => false, '_wpnonce' => false ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
if( $redirect_url ) {
|
451 |
wp_redirect( $redirect_url );
|
452 |
exit;
|
wpos-analytics/includes/class-anylc-script.php
CHANGED
@@ -32,10 +32,11 @@ class Wpos_Anylc_Script {
|
|
32 |
if( !empty($_GET['message']) && $_GET['message'] == 'wpos_anylc_promotion' && !empty($_GET['wpos_anylc_pdt']) && !empty($_GET['wpos_anylc_promo_pdt']) ) {
|
33 |
global $wpos_analytics_product;
|
34 |
|
35 |
-
$promotion
|
36 |
-
$
|
|
|
37 |
|
38 |
-
$anylc_pdt = $_GET['wpos_anylc_pdt'];
|
39 |
$anylc_pdt_data = isset( $wpos_analytics_product[ $anylc_pdt ] ) ? $wpos_analytics_product[ $anylc_pdt ] : false;
|
40 |
|
41 |
if( !empty($promotion_pdt) ) {
|
32 |
if( !empty($_GET['message']) && $_GET['message'] == 'wpos_anylc_promotion' && !empty($_GET['wpos_anylc_pdt']) && !empty($_GET['wpos_anylc_promo_pdt']) ) {
|
33 |
global $wpos_analytics_product;
|
34 |
|
35 |
+
$promotion = 1;
|
36 |
+
$wpos_anylc_promo_pdt = sanitize_text_field( $_GET['wpos_anylc_promo_pdt'] );
|
37 |
+
$promotion_pdt = explode( ',', $wpos_anylc_promo_pdt );
|
38 |
|
39 |
+
$anylc_pdt = sanitize_text_field( $_GET['wpos_anylc_pdt'] );
|
40 |
$anylc_pdt_data = isset( $wpos_analytics_product[ $anylc_pdt ] ) ? $wpos_analytics_product[ $anylc_pdt ] : false;
|
41 |
|
42 |
if( !empty($promotion_pdt) ) {
|
wpos-analytics/includes/wpos-anylc-function.php
CHANGED
@@ -25,6 +25,21 @@ function wpos_anylc_text( $text, $echo = false ) {
|
|
25 |
}
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
/**
|
29 |
* Check Multidimention Array
|
30 |
*
|
@@ -63,7 +78,7 @@ function wpos_anylc_site_uid() {
|
|
63 |
* @package Wpos Analytic
|
64 |
* @since 1.0.0
|
65 |
*/
|
66 |
-
function wpos_anylc_optin_data( $anylc_pdt = false ) {
|
67 |
|
68 |
// Skip if not admin area
|
69 |
if ( !is_admin() ) {
|
@@ -74,20 +89,23 @@ function wpos_anylc_optin_data( $anylc_pdt = false ) {
|
|
74 |
|
75 |
// Takind some data
|
76 |
$theme_data = wp_get_theme();
|
77 |
-
$page = isset( $_GET['page'] ) ? $_GET['page'] : false;
|
78 |
|
79 |
// If product is not passed
|
80 |
if( ! $anylc_pdt ) {
|
81 |
-
$anylc_pdt = !empty( $_GET['wpos_anylc_pdt'] ) ? $_GET['wpos_anylc_pdt'] : '';
|
82 |
-
$anylc_pdt = ( ! $anylc_pdt && !empty( $_GET['page'] ) ) ? $_GET['page']
|
83 |
}
|
84 |
|
85 |
// If a valid product is there
|
86 |
if( $anylc_pdt && !empty( $wpos_analytics_product[ $anylc_pdt ] ) ) {
|
87 |
|
88 |
$analy_product = $wpos_analytics_product[ $anylc_pdt ];
|
89 |
-
|
90 |
-
|
|
|
|
|
|
|
91 |
|
92 |
// Getting data according to type
|
93 |
if( $analy_product['type'] == 'theme' ) {
|
@@ -130,7 +148,7 @@ function wpos_anylc_optin_data( $anylc_pdt = false ) {
|
|
130 |
'user_email' => get_bloginfo( 'admin_email' ),
|
131 |
'ip_address' => wpos_anylc_get_ip_address(),
|
132 |
'site_uid' => wpos_anylc_site_uid(),
|
133 |
-
'return_url' =>
|
134 |
);
|
135 |
return $optin_data;
|
136 |
}
|
@@ -247,9 +265,9 @@ function wpos_anylc_optout_url( $module_data = '', $optin_status = null, $redire
|
|
247 |
if( $optin_status == 1 ) {
|
248 |
|
249 |
if( ! $redirect_url ) {
|
250 |
-
$plugin_status = isset( $_GET['plugin_status'] ) ? $_GET['plugin_status'] : false;
|
251 |
-
$paged = isset( $_GET['paged'] ) ? $_GET['paged'] : false;
|
252 |
-
$s = isset( $_GET['s'] ) ? $_GET['s'] : false;
|
253 |
|
254 |
$redirect_url = add_query_arg( array( 'plugin_status' => $plugin_status, 'paged' => $paged, 's' => $s ), admin_url( 'plugins.php' ) );
|
255 |
}
|
@@ -278,7 +296,7 @@ function wpos_anylc_pdt_url( $module_data = '', $type = false ) {
|
|
278 |
switch ( $type ) {
|
279 |
case 'promotion':
|
280 |
|
281 |
-
$promotion = !empty( $_GET['promotion'] ) ? $_GET['promotion'] : '';
|
282 |
|
283 |
if( !empty( $promotion ) ) {
|
284 |
$promotion = is_array( $promotion ) ? implode( ',', $promotion ) : $promotion;
|
@@ -295,7 +313,7 @@ function wpos_anylc_pdt_url( $module_data = '', $type = false ) {
|
|
295 |
|
296 |
case 'offer-promotion':
|
297 |
|
298 |
-
$promotion = !empty( $_GET['promotion'] ) ? $_GET['promotion'] : '';
|
299 |
|
300 |
if( !empty( $module_data['offers'] ) ) {
|
301 |
$redirect_url = add_query_arg( array( 'page' => $module_data['slug'].'-offers' ), $redirect_url );
|
25 |
}
|
26 |
}
|
27 |
|
28 |
+
/**
|
29 |
+
* Clean variables using sanitize_text_field. Arrays are cleaned recursively.
|
30 |
+
* Non-scalar values are ignored.
|
31 |
+
*
|
32 |
+
* @since 1.0
|
33 |
+
*/
|
34 |
+
function wpos_anylc_clean( $var ) {
|
35 |
+
if ( is_array( $var ) ) {
|
36 |
+
return array_map( 'wpos_anylc_clean', $var );
|
37 |
+
} else {
|
38 |
+
$data = is_scalar( $var ) ? sanitize_text_field( $var ) : $var;
|
39 |
+
return wp_unslash($data);
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
/**
|
44 |
* Check Multidimention Array
|
45 |
*
|
78 |
* @package Wpos Analytic
|
79 |
* @since 1.0.0
|
80 |
*/
|
81 |
+
function wpos_anylc_optin_data( $anylc_pdt = false, $return_url = '' ) {
|
82 |
|
83 |
// Skip if not admin area
|
84 |
if ( !is_admin() ) {
|
89 |
|
90 |
// Takind some data
|
91 |
$theme_data = wp_get_theme();
|
92 |
+
$page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : false;
|
93 |
|
94 |
// If product is not passed
|
95 |
if( ! $anylc_pdt ) {
|
96 |
+
$anylc_pdt = !empty( $_GET['wpos_anylc_pdt'] ) ? sanitize_text_field( $_GET['wpos_anylc_pdt'] ) : '';
|
97 |
+
$anylc_pdt = ( ! $anylc_pdt && !empty( $_GET['page'] ) ) ? sanitize_text_field( $_GET['page'] ) : $anylc_pdt;
|
98 |
}
|
99 |
|
100 |
// If a valid product is there
|
101 |
if( $anylc_pdt && !empty( $wpos_analytics_product[ $anylc_pdt ] ) ) {
|
102 |
|
103 |
$analy_product = $wpos_analytics_product[ $anylc_pdt ];
|
104 |
+
|
105 |
+
if( empty( $return_url ) ) {
|
106 |
+
$return_url = add_query_arg( array( 'page' => $page ), admin_url('admin.php') );
|
107 |
+
$return_url = wp_nonce_url( $return_url, 'wpos_anylc_act' );
|
108 |
+
}
|
109 |
|
110 |
// Getting data according to type
|
111 |
if( $analy_product['type'] == 'theme' ) {
|
148 |
'user_email' => get_bloginfo( 'admin_email' ),
|
149 |
'ip_address' => wpos_anylc_get_ip_address(),
|
150 |
'site_uid' => wpos_anylc_site_uid(),
|
151 |
+
'return_url' => $return_url,
|
152 |
);
|
153 |
return $optin_data;
|
154 |
}
|
265 |
if( $optin_status == 1 ) {
|
266 |
|
267 |
if( ! $redirect_url ) {
|
268 |
+
$plugin_status = isset( $_GET['plugin_status'] ) ? sanitize_text_field( $_GET['plugin_status'] ) : false;
|
269 |
+
$paged = isset( $_GET['paged'] ) ? sanitize_text_field( $_GET['paged'] ) : false;
|
270 |
+
$s = isset( $_GET['s'] ) ? sanitize_text_field( $_GET['s'] ) : false;
|
271 |
|
272 |
$redirect_url = add_query_arg( array( 'plugin_status' => $plugin_status, 'paged' => $paged, 's' => $s ), admin_url( 'plugins.php' ) );
|
273 |
}
|
296 |
switch ( $type ) {
|
297 |
case 'promotion':
|
298 |
|
299 |
+
$promotion = !empty( $_GET['promotion'] ) ? wpos_anylc_clean( $_GET['promotion'] ) : '';
|
300 |
|
301 |
if( !empty( $promotion ) ) {
|
302 |
$promotion = is_array( $promotion ) ? implode( ',', $promotion ) : $promotion;
|
313 |
|
314 |
case 'offer-promotion':
|
315 |
|
316 |
+
$promotion = !empty( $_GET['promotion'] ) ? wpos_anylc_clean( $_GET['promotion'] ) : '';
|
317 |
|
318 |
if( !empty( $module_data['offers'] ) ) {
|
319 |
$redirect_url = add_query_arg( array( 'page' => $module_data['slug'].'-offers' ), $redirect_url );
|
wpos-analytics/templates/analytic.php
CHANGED
@@ -37,11 +37,6 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
37 |
<p>Contribute in helping us making <b><?php echo $product_name; ?></b> compatible with most themes and plugins by allowing to share non-sensitive data to <a target="_blank" href="https://www.wponlinesupport.com">wponlinesupport.com</a> about your website.</p>
|
38 |
<p>If you skip this, that's okay! <b><?php echo $product_name; ?></b> will still work just fine.</p>
|
39 |
|
40 |
-
<div class="wpos-anylc-subs-wrap">
|
41 |
-
<input type="hidden" name="subscribe" value="" />
|
42 |
-
<label><input type="checkbox" value="1" name="subscribe" checked="checked" /> Subscribe for Updates and Promotions</label>
|
43 |
-
</div>
|
44 |
-
|
45 |
<?php if( !empty( $analy_product['promotion'] ) ) { ?>
|
46 |
<div class="wpos-anylc-promotion-wrap">
|
47 |
<?php foreach( $analy_product['promotion'] as $promotion_key => $promotion_data ) { ?>
|
@@ -54,10 +49,10 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
54 |
<button type="submit" name="wpos_anylc_optin" class="button button-primary button-large right wpos-anylc-allow-btn" value="wpos_anylc_optin">Allow and Continue</button>
|
55 |
|
56 |
<?php if( is_null( $opt_in ) ) { ?>
|
57 |
-
<
|
58 |
<?php }
|
59 |
|
60 |
-
if( !empty( $optin_form_data ) ) {
|
61 |
foreach ($optin_form_data as $data_key => $data_value) {
|
62 |
echo '<input type="hidden" name="'.esc_attr( $data_key ).'" value="'.esc_attr( $data_value ).'" />';
|
63 |
}
|
@@ -92,7 +87,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
92 |
</div>
|
93 |
</div>
|
94 |
<div class="wpos-anylc-terms">
|
95 |
-
<a href="https://www.wponlinesupport.com/privacy-policy
|
96 |
</div>
|
97 |
</div>
|
98 |
</form>
|
37 |
<p>Contribute in helping us making <b><?php echo $product_name; ?></b> compatible with most themes and plugins by allowing to share non-sensitive data to <a target="_blank" href="https://www.wponlinesupport.com">wponlinesupport.com</a> about your website.</p>
|
38 |
<p>If you skip this, that's okay! <b><?php echo $product_name; ?></b> will still work just fine.</p>
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
<?php if( !empty( $analy_product['promotion'] ) ) { ?>
|
41 |
<div class="wpos-anylc-promotion-wrap">
|
42 |
<?php foreach( $analy_product['promotion'] as $promotion_key => $promotion_data ) { ?>
|
49 |
<button type="submit" name="wpos_anylc_optin" class="button button-primary button-large right wpos-anylc-allow-btn" value="wpos_anylc_optin">Allow and Continue</button>
|
50 |
|
51 |
<?php if( is_null( $opt_in ) ) { ?>
|
52 |
+
<button type="submit" name="wpos_anylc_action" class="button button-secondary button-large wpos-anylc-skip-btn" value="skip">Skip</button>
|
53 |
<?php }
|
54 |
|
55 |
+
if( ! empty( $optin_form_data ) ) {
|
56 |
foreach ($optin_form_data as $data_key => $data_value) {
|
57 |
echo '<input type="hidden" name="'.esc_attr( $data_key ).'" value="'.esc_attr( $data_value ).'" />';
|
58 |
}
|
87 |
</div>
|
88 |
</div>
|
89 |
<div class="wpos-anylc-terms">
|
90 |
+
<a href="https://www.wponlinesupport.com/privacy-policy/#free-pluign-info" target="_blank">Privacy Policy</a> - <a href="https://www.wponlinesupport.com/term-and-condition/" target="_blank">Terms of Service</a>
|
91 |
</div>
|
92 |
</div>
|
93 |
</form>
|
wpos-analytics/templates/optout-popup.php
CHANGED
@@ -21,8 +21,17 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
21 |
<p>By clicking "Opt Out", we will no longer be sending any data from <b><?php echo $module['name']; ?></b> to <a href="https://www.wponlinesupport.com/" target="_blank">wponlinesupport.com</a>.</p>
|
22 |
</div>
|
23 |
<div class="wpos-anylc-popup-footer">
|
24 |
-
<
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
</div>
|
27 |
|
28 |
</div><!-- end .wpos-anylc-popup-block -->
|
21 |
<p>By clicking "Opt Out", we will no longer be sending any data from <b><?php echo $module['name']; ?></b> to <a href="https://www.wponlinesupport.com/" target="_blank">wponlinesupport.com</a>.</p>
|
22 |
</div>
|
23 |
<div class="wpos-anylc-popup-footer">
|
24 |
+
<form method="POST" action="http://analytics.wponlinesupport.com">
|
25 |
+
<?php
|
26 |
+
if( ! empty( $optin_form_data ) ) {
|
27 |
+
foreach ($optin_form_data as $data_key => $data_value) {
|
28 |
+
echo '<input type="hidden" name="'.esc_attr( $data_key ).'" value="'.esc_attr( $data_value ).'" />';
|
29 |
+
}
|
30 |
+
}
|
31 |
+
?>
|
32 |
+
<button type="submit" name="wpos_anylc_action" class="button button-secondary" value="optout">Opt Out</button>
|
33 |
+
<button type="button" class="button button-primary wpos-anylc-popup-close">Sure, Let Me Continue Helping</button>
|
34 |
+
</form>
|
35 |
</div>
|
36 |
|
37 |
</div><!-- end .wpos-anylc-popup-block -->
|
wpos-analytics/wpos-analytics.php
CHANGED
@@ -102,7 +102,7 @@ final class WPOS_Analytics {
|
|
102 |
*/
|
103 |
private function setup_constants() {
|
104 |
|
105 |
-
$this->define( 'WPOS_ANYLC_VERSION', '1.
|
106 |
$this->define( 'WPOS_ANYLC_DIR', plugin_dir_path( __FILE__ ) );
|
107 |
$this->define( 'WPOS_ANYLC_URL', plugin_dir_url( __FILE__ ) );
|
108 |
}
|
102 |
*/
|
103 |
private function setup_constants() {
|
104 |
|
105 |
+
$this->define( 'WPOS_ANYLC_VERSION', '1.1' );
|
106 |
$this->define( 'WPOS_ANYLC_DIR', plugin_dir_path( __FILE__ ) );
|
107 |
$this->define( 'WPOS_ANYLC_URL', plugin_dir_url( __FILE__ ) );
|
108 |
}
|