Version Description
(14-07-2020) = * [*] Follow WordPress Detailed Plugin Guidelines for Offload Media and Analytics Code.
Download this release
Release Info
Developer | wponlinesupport |
Plugin | WP Responsive Recent Post Slider |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3 to 2.3.3
- assets/js/blocks.build.js +1 -1
- assets/js/wppsac-public.js +3 -1
- includes/admin/settings/premium.php +8 -9
- includes/admin/supports/gutenberg-block.php +9 -1
- includes/admin/wprps-how-it-work.php +1 -1
- includes/class-wppsac-script.php +7 -8
- includes/shortcodes/wppsac-carousel.php +14 -12
- includes/shortcodes/wppsac-slider.php +8 -6
- includes/wppsac-function.php +6 -8
- languages/wp-responsive-recent-post-slider.pot +324 -0
- readme.txt +18 -2
- templates/carousel/design-1.php +15 -18
- templates/slider/design-1.php +10 -12
- templates/slider/design-2.php +8 -10
- templates/slider/design-3.php +8 -10
- templates/slider/design-4.php +10 -12
- wp-recent-post-slider.php +40 -29
- 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/js/blocks.build.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(r){if(n[r])return n[r].exports;var s=n[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";var r=n(2),s=(n.n(r),n(3)),l=(n.n(s),n(4)),o=n(5),__=wp.i18n.__,p=wp.blocks.registerBlockType;p("wprps/recent-post-slider",{title:__("Recent Post Slider","wp-responsive-recent-post-slider"),description:__("Display recent post in a slider view with various layouts.","wp-responsive-recent-post-slider"),icon:"slides",category:"wpos_guten_block",keywords:[__("wpos"),__("recent post slider","wp-responsive-recent-post-slider"),__("recent-post-slider")],supports:{html:!1,multiple:!0},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t,"data-block-type":"wprpsp-slider"}},edit:l.a,save:function(){return null}}),p("wprps/recent-post-carousel",{title:__("Recent Carousel Slider","wp-responsive-recent-post-slider"),description:__("Display recent post in a carousel slider view with various layouts.","wp-responsive-recent-post-slider"),icon:"slides",category:"wpos_guten_block",keywords:[__("wpos"),__("recent carousel slider","wp-responsive-recent-post-slider"),__("recent-post-carousel")],supports:{html:!1,multiple:!0},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t,"data-block-type":"wprpsp-carousel"}},edit:o.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.element,i=p.Component,a=p.Fragment,c=wp.components,d=c.PanelBody,m=c.Disabled,w=c.TextControl,u=c.ToggleControl,v=c.RangeControl,h=c.SelectControl,__=wp.i18n.__,g=(wp.data.select,wp.editor),f=g.InspectorControls,E=g.BlockControls,b=g.BlockAlignmentToolbar,y=function(e){function t(){r(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={isLoading:!1},e}return l(t,e),o(t,[{key:"ObjToString",value:function(e){var t=wp.blocks.getBlockAttributes("wprps/recent-post-slider"),n=["content_tail"],r="";for(var s in e)e.hasOwnProperty(s)&&"undefined"!==typeof e[s]&&e[s]!==t[s]&&(""!=jQuery.trim(e[s])||jQuery.inArray(s,n)>=0)&&(r+=s+'="'+e[s]+'" ');return r}},{key:"GetBooleanDropdown",value:function(){return[{value:"true",label:__("True","wp-responsive-recent-post-slider")},{value:"false",label:__("False","wp-responsive-recent-post-slider")}]}},{key:"GetDesigns",value:function(){return[{value:"design-1",label:__("Design 1","wp-responsive-recent-post-slider")},{value:"design-2",label:__("Design 2","wp-responsive-recent-post-slider")},{value:"design-3",label:__("Design 3","wp-responsive-recent-post-slider")},{value:"design-4",label:__("Design 4","wp-responsive-recent-post-slider")}]}},{key:"GetLinkTargetDropdown",value:function(){return[{value:"self",label:__("Same Window","wp-responsive-recent-post-slider")},{value:"blank",label:__("New Window","wp-responsive-recent-post-slider")}]}},{key:"GetPostOrderby",value:function(){return[{value:"date",label:__("Post Date","wp-responsive-recent-post-slider")},{value:"modified",label:__("Post Modified Date","wp-responsive-recent-post-slider")},{value:"title",label:__("Post Title","wp-responsive-recent-post-slider")},{value:"name",label:__("Post Slug","wp-responsive-recent-post-slider")},{value:"ID",label:__("Post ID","wp-responsive-recent-post-slider")},{value:"rand",label:__("Random","wp-responsive-recent-post-slider")},{value:"menu_order",label:__("Menu Order (Sort Order)","wp-responsive-recent-post-slider")}]}},{key:"GetPostOrder",value:function(){return[{value:"desc",label:__("Descending","wp-responsive-recent-post-slider")},{value:"asc",label:__("Ascending","wp-responsive-recent-post-slider")}]}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){var t=wp.data.select("core/editor").getEditorSettings(),n=t.alignWide;e.attributes;n||this.props.setAttributes({align:void 0})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.design,s=t.show_date,l=t.show_author,o=t.show_category_name,p=t.show_content,i=t.content_words_limit,c=t.show_read_more,g=t.dots,y=t.arrows,_=t.autoplay,k=t.autoplay_interval,P=t.speed,C=t.post_type,B=t.taxonomy,D=t.limit,W=t.category,O=t.posts,N=t.hide_post,S=t.media_size,G=t.align,U=(t.className,this.state.isLoading,wp.element.createElement(f,null,wp.element.createElement(d,{title:__("General Parameters","wp-responsive-recent-post-slider")},wp.element.createElement(h,{label:__("Design","wp-responsive-recent-post-slider"),value:r,options:this.GetDesigns(),onChange:function(e){return n({design:e})}}),wp.element.createElement(u,{label:__("Show Date","wp-responsive-recent-post-slider"),checked:!!s,onChange:function(){return n({show_date:!s})}}),wp.element.createElement(u,{label:__("Show Author","wp-responsive-recent-post-slider"),checked:!!l,onChange:function(){return n({show_author:!l})}}),wp.element.createElement(u,{label:__("Show Category Name","wp-responsive-recent-post-slider"),checked:!!o,onChange:function(){return n({show_category_name:!o})}}),wp.element.createElement(u,{label:__("Show Content","wp-responsive-recent-post-slider"),checked:!!p,onChange:function(){return n({show_content:!p})}}),p&&wp.element.createElement(v,{label:__("Content Words limit","wp-responsive-recent-post-slider"),value:i,onChange:function(e){return n({content_words_limit:e})},min:1,help:__("Enter content word limit.","wp-responsive-recent-post-slider")}),p&&wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Content Tail","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),p&&wp.element.createElement(h,{label:__("Read More","wp-responsive-recent-post-slider"),value:c,options:this.GetBooleanDropdown(),onChange:function(e){return n({show_read_more:e})}}),p&&wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Read More Text","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter read more text. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Link Behaviour","wp-responsive-recent-post-slider"),onChange:function(e){return n({link_target:e})},help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose link target behaviour. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Media Size","wp-responsive-recent-post-slider"),value:S,onChange:function(e){return n({media_size:e})},help:__("Choose WordPress registered image size. e.g thumbnail, medium, large, full.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Image Height","wp-responsive-recent-post-slider"),min:0,help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Control height of the featured image. You can enter any numeric number. e.g 500. Leave empty for default height. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Image Fit","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Fill the post image in a whole container. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))}))),wp.element.createElement(d,{title:__("Slider Parameters","wp-responsive-recent-post-slider"),initialOpen:!1},wp.element.createElement(h,{label:__("Dots","wp-responsive-recent-post-slider"),value:g,options:this.GetBooleanDropdown(),onChange:function(e){return n({dots:e})},help:__("Show pagination dots.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Arrows","wp-responsive-recent-post-slider"),value:y,options:this.GetBooleanDropdown(),onChange:function(e){return n({arrows:e})},help:__("Show prev - next arrows.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Autoplay","wp-responsive-recent-post-slider"),value:_,options:this.GetBooleanDropdown(),onChange:function(e){return n({autoplay:e})}}),"true"==_&&wp.element.createElement(v,{label:__("Autoplay Interval","wp-responsive-recent-post-slider"),value:k,onChange:function(e){return n({autoplay_interval:e})},min:1,help:__("Enter autoplay interval speed.","wp-responsive-recent-post-slider")}),wp.element.createElement(v,{label:__("Speed","wp-responsive-recent-post-slider"),value:P,onChange:function(e){return n({speed:e})},min:1,help:__("Enter slide speed.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Fade","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enable fade effect. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Loop","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enable infinite loop for continuous sliding. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Pause On Hover","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Pause On Focus","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Nav Slides","wp-responsive-recent-post-slider"),min:0,help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter number of slider navigation column. Note: This parameter default work with design-17, design-18, design-19, design-20. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))}))),wp.element.createElement(d,{title:__("Query Parameters","wp-responsive-recent-post-slider"),initialOpen:!1},wp.element.createElement(w,{label:__("Post Type","wp-responsive-recent-post-slider"),value:C,onChange:function(e){return n({post_type:e})},help:wp.element.createElement("span",{title:__("Note: Be sure you have added valid post type name otherwise no result will be displayed.","wp-responsive-recent-post-slider")},__("Enter registered post type name. You can find it on plugin setting page.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(w,{label:__("Taxonomy","wp-responsive-recent-post-slider"),value:B,onChange:function(e){return n({taxonomy:e})},help:wp.element.createElement("span",{title:__("Note: Be sure you have added valid taxonomy name otherwise no result will be displayed.","wp-responsive-recent-post-slider")},__("Enter registered taxonomy name. You can find it on plugin setting page.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(v,{label:__("Limit","wp-responsive-recent-post-slider"),value:D,onChange:function(e){return n({limit:e})},min:-1,help:__("Enter number of post to be displayed. Enter -1 to display all.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Order By","wp-responsive-recent-post-slider"),options:this.GetPostOrderby(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to set order of post by date, title, name etc.. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Order","wp-responsive-recent-post-slider"),options:this.GetPostOrder(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to set post in acesding and descending order. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Display Specific Category","wp-responsive-recent-post-slider"),value:W,onChange:function(e){return n({category: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-responsive-recent-post-slider")},__("Enter category id to display categories wise.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Display Child Category","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Exclude Category","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Display Specific Posts","wp-responsive-recent-post-slider"),value:O,onChange:function(e){return n({posts:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant post listing page.","wp-responsive-recent-post-slider")},__("Enter id of the post which you want to display.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(w,{label:__("Exclude Post","wp-responsive-recent-post-slider"),value:N,onChange:function(e){return n({hide_post:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant post listing page.","wp-responsive-recent-post-slider")},__("Enter id of the post which you do not want to display.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Include Author","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter author id to display posts of particular author. You can pass multiple ids with comma seperated. You can find id at users listing page. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Exclude Author","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter author id to hide post of particular author. Works only if `Include Author` field is empty. You can pass multiple ids with comma seperated. You can find id at relevant users listing page. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Display Sticky Posts","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Display sticky posts or not. Note: sticky posts only be displayed at front side. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Query Offset","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})))));return wp.element.createElement(a,null,U,wp.element.createElement(E,null,wp.element.createElement(b,{value:G,onChange:function(e){return n({align:e})},controls:["wide","full"]})),wp.element.createElement("div",{className:this.props.className},this.renderOutput()))}},{key:"renderOutput",value:function(){var e=this.props.attributes,t=this.ObjToString(e);t=t.trim();var n=t?"[recent_post_slider "+t+"]":"[recent_post_slider]";return wp.element.createElement("div",{class:"wpos-guten-shrt"},wp.element.createElement("div",{class:"wpos-guten-shrt-title"},wp.element.createElement("span",null,__("WP Responsive Recent Post Slider/Carousel - Slider","wp-responsive-recent-post-slider"))),n,wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},wp.element.createElement("span",null),__("Do you want to check demo of this plugin.","wp-responsive-recent-post-slider")," ",wp.element.createElement("a",{href:Wprpsf_Block.free_demo_link,target:"_blank"},__("Click here","wp-responsive-recent-post-slider"))),wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},__("Do you also want to check premium version demo of this plugin.","wp-responsive-recent-post-slider")," ",wp.element.createElement("a",{href:Wprpsf_Block.pro_demo_link,target:"_blank"},__("Click here","wp-responsive-recent-post-slider"))))}}]),t}(i);t.a=y},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.element,i=p.Component,a=p.Fragment,c=wp.components,d=c.PanelBody,m=c.Disabled,w=c.TextControl,u=c.ToggleControl,v=c.RangeControl,h=c.SelectControl,__=wp.i18n.__,g=(wp.data.select,wp.editor),f=g.InspectorControls,E=g.BlockControls,b=g.BlockAlignmentToolbar,y=function(e){function t(){r(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={isLoading:!1},e}return l(t,e),o(t,[{key:"ObjToString",value:function(e){var t=wp.blocks.getBlockAttributes("wprps/recent-post-carousel"),n=["content_tail"],r="";for(var s in e)e.hasOwnProperty(s)&&"undefined"!==typeof e[s]&&e[s]!==t[s]&&(""!=jQuery.trim(e[s])||jQuery.inArray(s,n)>=0)&&(r+=s+'="'+e[s]+'" ');return r}},{key:"GetBooleanDropdown",value:function(){return[{value:"true",label:__("True","wp-responsive-recent-post-slider")},{value:"false",label:__("False","wp-responsive-recent-post-slider")}]}},{key:"GetDesigns",value:function(){return[{value:"design-1",label:__("Design 1","wp-responsive-recent-post-slider")}]}},{key:"GetLinkTargetDropdown",value:function(){return[{value:"self",label:__("Same Window","wp-responsive-recent-post-slider")},{value:"blank",label:__("New Window","wp-responsive-recent-post-slider")}]}},{key:"GetPostOrderby",value:function(){return[{value:"date",label:__("Post Date","wp-responsive-recent-post-slider")},{value:"modified",label:__("Post Modified Date","wp-responsive-recent-post-slider")},{value:"title",label:__("Post Title","wp-responsive-recent-post-slider")},{value:"name",label:__("Post Slug","wp-responsive-recent-post-slider")},{value:"ID",label:__("Post ID","wp-responsive-recent-post-slider")},{value:"rand",label:__("Random","wp-responsive-recent-post-slider")},{value:"menu_order",label:__("Menu Order (Sort Order)","wp-responsive-recent-post-slider")}]}},{key:"GetPostOrder",value:function(){return[{value:"desc",label:__("Descending","wp-responsive-recent-post-slider")},{value:"asc",label:__("Ascending","wp-responsive-recent-post-slider")}]}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){var t=wp.data.select("core/editor").getEditorSettings(),n=t.alignWide;e.attributes;n||this.props.setAttributes({align:void 0})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.design,s=t.show_date,l=t.show_author,o=t.show_category_name,p=t.show_content,i=t.content_words_limit,c=t.show_read_more,g=t.slides_to_show,y=t.slides_to_scroll,_=t.dots,k=t.arrows,P=t.autoplay,C=t.autoplay_interval,B=t.speed,D=t.post_type,W=t.taxonomy,O=t.limit,N=t.category,S=t.posts,G=t.hide_post,U=t.media_size,x=t.align,T=(t.className,this.state.isLoading,wp.element.createElement(f,null,wp.element.createElement(d,{title:__("General Parameters","wp-responsive-recent-post-slider")},wp.element.createElement(h,{label:__("Design","wp-responsive-recent-post-slider"),value:r,options:this.GetDesigns(),onChange:function(e){return n({design:e})}}),wp.element.createElement(u,{label:__("Show Date","wp-responsive-recent-post-slider"),checked:!!s,onChange:function(){return n({show_date:!s})}}),wp.element.createElement(u,{label:__("Show Author","wp-responsive-recent-post-slider"),checked:!!l,onChange:function(){return n({show_author:!l})}}),wp.element.createElement(u,{label:__("Show Category Name","wp-responsive-recent-post-slider"),checked:!!o,onChange:function(){return n({show_category_name:!o})}}),wp.element.createElement(u,{label:__("Show Content","wp-responsive-recent-post-slider"),checked:!!p,onChange:function(){return n({show_content:!p})}}),p&&wp.element.createElement(v,{label:__("Content Words limit","wp-responsive-recent-post-slider"),value:i,onChange:function(e){return n({content_words_limit:e})},min:1,help:__("Enter content word limit.","wp-responsive-recent-post-slider")}),p&&wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Content Tail","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),p&&wp.element.createElement(h,{label:__("Read More","wp-responsive-recent-post-slider"),value:c,options:this.GetBooleanDropdown(),onChange:function(e){return n({show_read_more:e})}}),p&&wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Read More Text","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter read more text. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Link Behaviour","wp-responsive-recent-post-slider"),onChange:function(e){return n({link_target:e})},help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose link target behaviour. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Media Size","wp-responsive-recent-post-slider"),value:U,onChange:function(e){return n({media_size:e})},help:__("Choose WordPress registered image size. e.g thumbnail, medium, large, full.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Image Height","wp-responsive-recent-post-slider"),min:0,help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Control height of the featured image. You can enter any numeric number. e.g 500. Leave empty for default height. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Image Fit","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Fill the post image in a whole container. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))}))),wp.element.createElement(d,{title:__("Slider Parameters","wp-responsive-recent-post-slider"),initialOpen:!1},wp.element.createElement(v,{label:__("Slide To Show","wp-responsive-recent-post-slider"),value:g,onChange:function(e){return n({slides_to_show:e})},min:1,help:__("Enter number for Slide to show at a time.","wp-responsive-recent-post-slider")}),wp.element.createElement(v,{label:__("Slide To Scroll","wp-responsive-recent-post-slider"),value:y,onChange:function(e){return n({slides_to_scroll:e})},min:1,help:__("Enter number to scroll slider at a time.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Dots","wp-responsive-recent-post-slider"),value:_,options:this.GetBooleanDropdown(),onChange:function(e){return n({dots:e})},help:__("Show pagination dots.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Arrows","wp-responsive-recent-post-slider"),value:k,options:this.GetBooleanDropdown(),onChange:function(e){return n({arrows:e})},help:__("Show prev - next arrows.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Autoplay","wp-responsive-recent-post-slider"),value:P,options:this.GetBooleanDropdown(),onChange:function(e){return n({autoplay:e})}}),"true"==P&&wp.element.createElement(v,{label:__("Autoplay Interval","wp-responsive-recent-post-slider"),value:C,onChange:function(e){return n({autoplay_interval:e})},min:1,help:__("Enter autoplay interval speed.","wp-responsive-recent-post-slider")}),wp.element.createElement(v,{label:__("Speed","wp-responsive-recent-post-slider"),value:B,onChange:function(e){return n({speed:e})},min:1,help:__("Enter slide speed.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Loop","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enable infinite loop for continuous sliding. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Centermode","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enable centered view with partial prev/next slides. Use with odd numbered `Slides to Scroll` and `Slider Column` counts. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Pause On Hover","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Pause On Focus","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))}))),wp.element.createElement(d,{title:__("Query Parameters","wp-responsive-recent-post-slider"),initialOpen:!1},wp.element.createElement(w,{label:__("Post Type","wp-responsive-recent-post-slider"),value:D,onChange:function(e){return n({post_type:e})},help:wp.element.createElement("span",{title:__("Note: Be sure you have added valid post type name otherwise no result will be displayed.","wp-responsive-recent-post-slider")},__("Enter registered post type name. You can find it on plugin setting page.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(w,{label:__("Taxonomy","wp-responsive-recent-post-slider"),value:W,onChange:function(e){return n({taxonomy:e})},help:wp.element.createElement("span",{title:__("Note: Be sure you have added valid taxonomy name otherwise no result will be displayed.","wp-responsive-recent-post-slider")},__("Enter registered taxonomy name. You can find it on plugin setting page.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(v,{label:__("Limit","wp-responsive-recent-post-slider"),value:O,onChange:function(e){return n({limit:e})},min:-1,help:__("Enter number of post to be displayed. Enter -1 to display all.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Order By","wp-responsive-recent-post-slider"),options:this.GetPostOrderby(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to set order of post by date, title, name etc.. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Order","wp-responsive-recent-post-slider"),options:this.GetPostOrder(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to set post in acesding and descending order. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Display Specific Category","wp-responsive-recent-post-slider"),value:N,onChange:function(e){return n({category: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-responsive-recent-post-slider")},__("Enter category id to display categories wise.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Display Child Category","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Exclude Category","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Display Specific Posts","wp-responsive-recent-post-slider"),value:S,onChange:function(e){return n({posts:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant post listing page.","wp-responsive-recent-post-slider")},__("Enter id of the post which you want to display.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(w,{label:__("Exclude Post","wp-responsive-recent-post-slider"),value:G,onChange:function(e){return n({hide_post:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant post listing page.","wp-responsive-recent-post-slider")},__("Enter id of the post which you do not want to display.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Include Author","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter author id to display posts of particular author. You can pass multiple ids with comma seperated. You can find id at users listing page. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Exclude Author","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter author id to hide post of particular author. Works only if `Include Author` field is empty. You can pass multiple ids with comma seperated. You can find id at relevant users listing page. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Display Sticky Posts","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Display sticky posts or not. Note: sticky posts only be displayed at front side. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Query Offset","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})))));return wp.element.createElement(a,null,T,wp.element.createElement(E,null,wp.element.createElement(b,{value:x,onChange:function(e){return n({align:e})},controls:["wide","full"]})),wp.element.createElement("div",{className:this.props.className},this.renderOutput()))}},{key:"renderOutput",value:function(){var e=this.props.attributes,t=this.ObjToString(e);t=t.trim();var n=t?"[recent_post_carousel "+t+"]":"[recent_post_carousel]";return wp.element.createElement("div",{class:"wpos-guten-shrt"},wp.element.createElement("div",{class:"wpos-guten-shrt-title"},wp.element.createElement("span",null,__("WP Responsive Recent Post Slider/Carousel - Carousel Slider","wp-responsive-recent-post-slider"))),n,wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},wp.element.createElement("span",null),__("Do you want to check demo of this plugin.","wp-responsive-recent-post-slider")," ",wp.element.createElement("a",{href:Wprpsf_Block.free_demo_link,target:"_blank"},__("Click here","wp-responsive-recent-post-slider"))),wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},__("Do you also want to check premium version demo of this plugin.","wp-responsive-recent-post-slider")," ",wp.element.createElement("a",{href:Wprpsf_Block.pro_demo_link,target:"_blank"},__("Click here","wp-responsive-recent-post-slider"))))}}]),t}(i);t.a=y}]);
|
1 |
+
!function(e){function t(r){if(n[r])return n[r].exports;var s=n[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";var r=n(2),s=(n.n(r),n(3)),o=(n.n(s),n(4)),l=n(5),__=wp.i18n.__,p=wp.blocks.registerBlockType;p("wprps/recent-post-slider",{title:__("Recent Post Slider","wp-responsive-recent-post-slider"),description:__("Display recent post in a slider view with various layouts.","wp-responsive-recent-post-slider"),icon:"slides",category:"wpos_guten_block",keywords:[__("wpos"),__("recent post slider","wp-responsive-recent-post-slider"),__("recent-post-slider")],supports:{html:!1,multiple:!0},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t,"data-block-type":"wprpsp-slider"}},edit:o.a,save:function(){return null}}),p("wprps/recent-post-carousel",{title:__("Recent Carousel Slider","wp-responsive-recent-post-slider"),description:__("Display recent post in a carousel slider view with various layouts.","wp-responsive-recent-post-slider"),icon:"slides",category:"wpos_guten_block",keywords:[__("wpos"),__("recent carousel slider","wp-responsive-recent-post-slider"),__("recent-post-carousel")],supports:{html:!1,multiple:!0},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t,"data-block-type":"wprpsp-carousel"}},edit:l.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.element,i=p.Component,a=p.Fragment,c=wp.components,d=c.PanelBody,m=c.Disabled,w=c.TextControl,u=c.ToggleControl,v=c.RangeControl,h=c.SelectControl,__=wp.i18n.__,g=(wp.data.select,wp.editor),f=g.InspectorControls,E=g.BlockControls,y=g.BlockAlignmentToolbar,b=function(e){function t(){r(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={isLoading:!1},e}return o(t,e),l(t,[{key:"ObjToString",value:function(e){var t=wp.blocks.getBlockAttributes("wprps/recent-post-slider"),n=["content_tail"],r="";for(var s in e)e.hasOwnProperty(s)&&"undefined"!==typeof e[s]&&e[s]!==t[s]&&(""!=jQuery.trim(e[s])||jQuery.inArray(s,n)>=0)&&(r+=s+'="'+e[s]+'" ');return r}},{key:"GetBooleanDropdown",value:function(){return[{value:"true",label:__("True","wp-responsive-recent-post-slider")},{value:"false",label:__("False","wp-responsive-recent-post-slider")}]}},{key:"GetDesigns",value:function(){return[{value:"design-1",label:__("Design 1","wp-responsive-recent-post-slider")},{value:"design-2",label:__("Design 2","wp-responsive-recent-post-slider")},{value:"design-3",label:__("Design 3","wp-responsive-recent-post-slider")},{value:"design-4",label:__("Design 4","wp-responsive-recent-post-slider")}]}},{key:"GetLinkTargetDropdown",value:function(){return[{value:"self",label:__("Same Window","wp-responsive-recent-post-slider")}]}},{key:"GetPostOrderby",value:function(){return[{value:"date",label:__("Post Date","wp-responsive-recent-post-slider")}]}},{key:"GetPostOrder",value:function(){return[{value:"desc",label:__("Descending","wp-responsive-recent-post-slider")}]}},{key:"GetLazyloadDropdown",value:function(){return[{value:"",label:__("Select Lazyload","wp-responsive-recent-post-slider")},{value:"ondemand",label:__("Ondemand","wp-responsive-recent-post-slider")},{value:"progressive",label:__("Progressive","wp-responsive-recent-post-slider")}]}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes.content_words_limit,n=wp.data.select("core/editor").getEditorSettings(),r=n.alignWide;e.attributes;(parseInt(t)<=0||isNaN(parseInt(t)))&&this.props.setAttributes({content_words_limit:20}),r||this.props.setAttributes({align:void 0})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.design,s=t.show_date,o=t.show_author,l=t.show_category_name,p=t.show_content,i=t.content_words_limit,c=t.show_read_more,g=t.dots,b=t.arrows,_=t.autoplay,k=t.autoplay_interval,C=t.speed,P=t.post_type,B=t.taxonomy,D=t.limit,N=t.category,S=t.posts,W=t.hide_post,O=t.media_size,G=t.lazyload,U=t.align,x=(t.className,this.state.isLoading,wp.element.createElement(f,null,wp.element.createElement(d,{title:__("General Parameters","wp-responsive-recent-post-slider")},wp.element.createElement(h,{label:__("Design","wp-responsive-recent-post-slider"),value:r,options:this.GetDesigns(),onChange:function(e){return n({design:e})}}),wp.element.createElement(u,{label:__("Show Date","wp-responsive-recent-post-slider"),checked:!!s,onChange:function(){return n({show_date:!s})}}),wp.element.createElement(u,{label:__("Show Author","wp-responsive-recent-post-slider"),checked:!!o,onChange:function(){return n({show_author:!o})}}),wp.element.createElement(u,{label:__("Show Category Name","wp-responsive-recent-post-slider"),checked:!!l,onChange:function(){return n({show_category_name:!l})}}),wp.element.createElement(u,{label:__("Show Content","wp-responsive-recent-post-slider"),checked:!!p,onChange:function(){return n({show_content:!p})}}),p&&wp.element.createElement(v,{label:__("Content Words limit","wp-responsive-recent-post-slider"),value:i,onChange:function(e){return n({content_words_limit:e})},min:1,help:__("Enter content word limit.","wp-responsive-recent-post-slider")}),p&&wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Content Tail","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),p&&wp.element.createElement(h,{label:__("Read More","wp-responsive-recent-post-slider"),value:c,options:this.GetBooleanDropdown(),onChange:function(e){return n({show_read_more:e})}}),p&&wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Read More Text","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter read more text. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Link Behaviour","wp-responsive-recent-post-slider"),options:this.GetLinkTargetDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose link target behaviour. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Media Size","wp-responsive-recent-post-slider"),value:O,onChange:function(e){return n({media_size:e})},help:__("Choose WordPress registered image size. e.g thumbnail, medium, large, full.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Image Height","wp-responsive-recent-post-slider"),min:0,help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Control height of the featured image. You can enter any numeric number. e.g 500. Leave empty for default height. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Image Fit","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Fill the post image in a whole container. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))}))),wp.element.createElement(d,{title:__("Slider Parameters","wp-responsive-recent-post-slider"),initialOpen:!1},wp.element.createElement(h,{label:__("Dots","wp-responsive-recent-post-slider"),value:g,options:this.GetBooleanDropdown(),onChange:function(e){return n({dots:e})},help:__("Show pagination dots.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Arrows","wp-responsive-recent-post-slider"),value:b,options:this.GetBooleanDropdown(),onChange:function(e){return n({arrows:e})},help:__("Show prev - next arrows.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Autoplay","wp-responsive-recent-post-slider"),value:_,options:this.GetBooleanDropdown(),onChange:function(e){return n({autoplay:e})}}),"true"==_&&wp.element.createElement(v,{label:__("Autoplay Interval","wp-responsive-recent-post-slider"),value:k,onChange:function(e){return n({autoplay_interval:e})},min:1,help:__("Enter autoplay interval speed.","wp-responsive-recent-post-slider")}),wp.element.createElement(v,{label:__("Speed","wp-responsive-recent-post-slider"),value:C,onChange:function(e){return n({speed:e})},min:1,help:__("Enter slide speed.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Fade","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enable fade effect. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Loop","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enable infinite loop for continuous sliding. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Pause On Hover","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Pause On Focus","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Nav Slides","wp-responsive-recent-post-slider"),min:0,help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter number of slider navigation column. Note: This parameter default work with design-17, design-18, design-19, design-20. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(h,{label:__("Slider Lazyload","wp-responsive-recent-post-slider"),value:G,options:this.GetLazyloadDropdown(),onChange:function(e){return n({lazyload:e})},help:__("Select option to use lazy loading in slider.","wp-responsive-recent-post-slider")})),wp.element.createElement(d,{title:__("Query Parameters","wp-responsive-recent-post-slider"),initialOpen:!1},wp.element.createElement(w,{label:__("Post Type","wp-responsive-recent-post-slider"),value:P,onChange:function(e){return n({post_type:e})},help:wp.element.createElement("span",{title:__("Note: Be sure you have added valid post type name otherwise no result will be displayed.","wp-responsive-recent-post-slider")},__("Enter registered post type name. You can find it on plugin setting page.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(w,{label:__("Taxonomy","wp-responsive-recent-post-slider"),value:B,onChange:function(e){return n({taxonomy:e})},help:wp.element.createElement("span",{title:__("Note: Be sure you have added valid taxonomy name otherwise no result will be displayed.","wp-responsive-recent-post-slider")},__("Enter registered taxonomy name. You can find it on plugin setting page.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(v,{label:__("Limit","wp-responsive-recent-post-slider"),value:D,onChange:function(e){return n({limit:e})},min:-1,help:__("Enter number of post to be displayed. Enter -1 to display all.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Order By","wp-responsive-recent-post-slider"),options:this.GetPostOrderby(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to set order of post by date, title, name etc.. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Order","wp-responsive-recent-post-slider"),options:this.GetPostOrder(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to set post in acesding and descending order. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Display Specific Category","wp-responsive-recent-post-slider"),value:N,onChange:function(e){return n({category: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-responsive-recent-post-slider")},__("Enter category id to display categories wise.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Display Child Category","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Exclude Category","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Display Specific Posts","wp-responsive-recent-post-slider"),value:S,onChange:function(e){return n({posts:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant post listing page.","wp-responsive-recent-post-slider")},__("Enter id of the post which you want to display.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(w,{label:__("Exclude Post","wp-responsive-recent-post-slider"),value:W,onChange:function(e){return n({hide_post:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant post listing page.","wp-responsive-recent-post-slider")},__("Enter id of the post which you do not want to display.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Include Author","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter author id to display posts of particular author. You can pass multiple ids with comma seperated. You can find id at users listing page. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Exclude Author","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter author id to hide post of particular author. Works only if `Include Author` field is empty. You can pass multiple ids with comma seperated. You can find id at relevant users listing page. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Display Sticky Posts","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Display sticky posts or not. Note: sticky posts only be displayed at front side. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Query Offset","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})))));return wp.element.createElement(a,null,x,wp.element.createElement(E,null,wp.element.createElement(y,{value:U,onChange:function(e){return n({align:e})},controls:["wide","full"]})),wp.element.createElement("div",{className:this.props.className},this.renderOutput()))}},{key:"renderOutput",value:function(){var e=this.props.attributes,t=this.ObjToString(e);t=t.trim();var n=t?"[recent_post_slider "+t+"]":"[recent_post_slider]";return wp.element.createElement("div",{class:"wpos-guten-shrt"},wp.element.createElement("div",{class:"wpos-guten-shrt-title"},wp.element.createElement("span",null,__("WP Responsive Recent Post Slider/Carousel - Slider","wp-responsive-recent-post-slider"))),n,wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},wp.element.createElement("span",null),__("Do you want to check demo of this plugin.","wp-responsive-recent-post-slider")," ",wp.element.createElement("a",{href:Wprpsf_Block.free_demo_link,target:"_blank"},__("Click here","wp-responsive-recent-post-slider"))),wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},__("Do you also want to check premium version demo of this plugin.","wp-responsive-recent-post-slider")," ",wp.element.createElement("a",{href:Wprpsf_Block.pro_demo_link,target:"_blank"},__("Click here","wp-responsive-recent-post-slider"))))}}]),t}(i);t.a=b},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.element,i=p.Component,a=p.Fragment,c=wp.components,d=c.PanelBody,m=c.Disabled,w=c.TextControl,u=c.ToggleControl,v=c.RangeControl,h=c.SelectControl,__=wp.i18n.__,g=(wp.data.select,wp.editor),f=g.InspectorControls,E=g.BlockControls,y=g.BlockAlignmentToolbar,b=function(e){function t(){r(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={isLoading:!1},e}return o(t,e),l(t,[{key:"ObjToString",value:function(e){var t=wp.blocks.getBlockAttributes("wprps/recent-post-carousel"),n=["content_tail"],r="";for(var s in e)e.hasOwnProperty(s)&&"undefined"!==typeof e[s]&&e[s]!==t[s]&&(""!=jQuery.trim(e[s])||jQuery.inArray(s,n)>=0)&&(r+=s+'="'+e[s]+'" ');return r}},{key:"GetBooleanDropdown",value:function(){return[{value:"true",label:__("True","wp-responsive-recent-post-slider")},{value:"false",label:__("False","wp-responsive-recent-post-slider")}]}},{key:"GetDesigns",value:function(){return[{value:"design-1",label:__("Design 1","wp-responsive-recent-post-slider")}]}},{key:"GetLinkTargetDropdown",value:function(){return[{value:"self",label:__("Same Window","wp-responsive-recent-post-slider")}]}},{key:"GetPostOrderby",value:function(){return[{value:"date",label:__("Post Date","wp-responsive-recent-post-slider")}]}},{key:"GetPostOrder",value:function(){return[{value:"desc",label:__("Descending","wp-responsive-recent-post-slider")}]}},{key:"GetLazyloadDropdown",value:function(){return[{value:"",label:__("Select Lazyload","wp-responsive-recent-post-slider")},{value:"ondemand",label:__("Ondemand","wp-responsive-recent-post-slider")},{value:"progressive",label:__("Progressive","wp-responsive-recent-post-slider")}]}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes.content_words_limit,n=wp.data.select("core/editor").getEditorSettings(),r=n.alignWide;e.attributes;(parseInt(t)<=0||isNaN(parseInt(t)))&&this.props.setAttributes({content_words_limit:20}),r||this.props.setAttributes({align:void 0})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=t.design,s=t.show_date,o=t.show_author,l=t.show_category_name,p=t.show_content,i=t.content_words_limit,c=t.show_read_more,g=t.slides_to_show,b=t.slides_to_scroll,_=t.dots,k=t.arrows,C=t.autoplay,P=t.autoplay_interval,B=t.speed,D=t.post_type,N=t.taxonomy,S=t.limit,W=t.category,O=t.posts,G=t.hide_post,U=t.media_size,x=t.lazyload,T=t.align,Y=(t.className,this.state.isLoading,wp.element.createElement(f,null,wp.element.createElement(d,{title:__("General Parameters","wp-responsive-recent-post-slider")},wp.element.createElement(h,{label:__("Design","wp-responsive-recent-post-slider"),value:r,options:this.GetDesigns(),onChange:function(e){return n({design:e})}}),wp.element.createElement(u,{label:__("Show Date","wp-responsive-recent-post-slider"),checked:!!s,onChange:function(){return n({show_date:!s})}}),wp.element.createElement(u,{label:__("Show Author","wp-responsive-recent-post-slider"),checked:!!o,onChange:function(){return n({show_author:!o})}}),wp.element.createElement(u,{label:__("Show Category Name","wp-responsive-recent-post-slider"),checked:!!l,onChange:function(){return n({show_category_name:!l})}}),wp.element.createElement(u,{label:__("Show Content","wp-responsive-recent-post-slider"),checked:!!p,onChange:function(){return n({show_content:!p})}}),p&&wp.element.createElement(v,{label:__("Content Words limit","wp-responsive-recent-post-slider"),value:i,onChange:function(e){return n({content_words_limit:e})},min:1,help:__("Enter content word limit.","wp-responsive-recent-post-slider")}),p&&wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Content Tail","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),p&&wp.element.createElement(h,{label:__("Read More","wp-responsive-recent-post-slider"),value:c,options:this.GetBooleanDropdown(),onChange:function(e){return n({show_read_more:e})}}),p&&wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Read More Text","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter read more text. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Link Behaviour","wp-responsive-recent-post-slider"),options:this.GetLinkTargetDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose link target behaviour. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Media Size","wp-responsive-recent-post-slider"),value:U,onChange:function(e){return n({media_size:e})},help:__("Choose WordPress registered image size. e.g thumbnail, medium, large, full.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Image Height","wp-responsive-recent-post-slider"),min:0,help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Control height of the featured image. You can enter any numeric number. e.g 500. Leave empty for default height. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Image Fit","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Fill the post image in a whole container. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))}))),wp.element.createElement(d,{title:__("Slider Parameters","wp-responsive-recent-post-slider"),initialOpen:!1},wp.element.createElement(v,{label:__("Slide To Show","wp-responsive-recent-post-slider"),value:g,onChange:function(e){return n({slides_to_show:e})},min:1,help:__("Enter number for Slide to show at a time.","wp-responsive-recent-post-slider")}),wp.element.createElement(v,{label:__("Slide To Scroll","wp-responsive-recent-post-slider"),value:b,onChange:function(e){return n({slides_to_scroll:e})},min:1,help:__("Enter number to scroll slider at a time.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Dots","wp-responsive-recent-post-slider"),value:_,options:this.GetBooleanDropdown(),onChange:function(e){return n({dots:e})},help:__("Show pagination dots.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Arrows","wp-responsive-recent-post-slider"),value:k,options:this.GetBooleanDropdown(),onChange:function(e){return n({arrows:e})},help:__("Show prev - next arrows.","wp-responsive-recent-post-slider")}),wp.element.createElement(h,{label:__("Autoplay","wp-responsive-recent-post-slider"),value:C,options:this.GetBooleanDropdown(),onChange:function(e){return n({autoplay:e})}}),"true"==C&&wp.element.createElement(v,{label:__("Autoplay Interval","wp-responsive-recent-post-slider"),value:P,onChange:function(e){return n({autoplay_interval:e})},min:1,help:__("Enter autoplay interval speed.","wp-responsive-recent-post-slider")}),wp.element.createElement(v,{label:__("Speed","wp-responsive-recent-post-slider"),value:B,onChange:function(e){return n({speed:e})},min:1,help:__("Enter slide speed.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Loop","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enable infinite loop for continuous sliding. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Centermode","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enable centered view with partial prev/next slides. Use with odd numbered `Slides to Scroll` and `Slider Column` counts. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Pause On Hover","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Pause On Focus","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(h,{label:__("Slider Lazyload","wp-responsive-recent-post-slider"),value:x,options:this.GetLazyloadDropdown(),onChange:function(e){return n({lazyload:e})},help:__("Select option to use lazy loading in slider.","wp-responsive-recent-post-slider")})),wp.element.createElement(d,{title:__("Query Parameters","wp-responsive-recent-post-slider"),initialOpen:!1},wp.element.createElement(w,{label:__("Post Type","wp-responsive-recent-post-slider"),value:D,onChange:function(e){return n({post_type:e})},help:wp.element.createElement("span",{title:__("Note: Be sure you have added valid post type name otherwise no result will be displayed.","wp-responsive-recent-post-slider")},__("Enter registered post type name. You can find it on plugin setting page.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(w,{label:__("Taxonomy","wp-responsive-recent-post-slider"),value:N,onChange:function(e){return n({taxonomy:e})},help:wp.element.createElement("span",{title:__("Note: Be sure you have added valid taxonomy name otherwise no result will be displayed.","wp-responsive-recent-post-slider")},__("Enter registered taxonomy name. You can find it on plugin setting page.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(v,{label:__("Limit","wp-responsive-recent-post-slider"),value:S,onChange:function(e){return n({limit:e})},min:-1,help:__("Enter number of post to be displayed. Enter -1 to display all.","wp-responsive-recent-post-slider")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Order By","wp-responsive-recent-post-slider"),options:this.GetPostOrderby(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to set order of post by date, title, name etc.. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Order","wp-responsive-recent-post-slider"),options:this.GetPostOrder(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Choose option to set post in acesding and descending order. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Display Specific Category","wp-responsive-recent-post-slider"),value:W,onChange:function(e){return n({category: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-responsive-recent-post-slider")},__("Enter category id to display categories wise.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Display Child Category","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Exclude Category","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(w,{label:__("Display Specific Posts","wp-responsive-recent-post-slider"),value:O,onChange:function(e){return n({posts:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant post listing page.","wp-responsive-recent-post-slider")},__("Enter id of the post which you want to display.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(w,{label:__("Exclude Post","wp-responsive-recent-post-slider"),value:G,onChange:function(e){return n({hide_post:e})},help:wp.element.createElement("span",{title:__("You can pass multiple ids with comma seperated. You can find id at relevant post listing page.","wp-responsive-recent-post-slider")},__("Enter id of the post which you do not want to display.","wp-responsive-recent-post-slider")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Include Author","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter author id to display posts of particular author. You can pass multiple ids with comma seperated. You can find id at users listing page. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(w,{label:__("Exclude Author","wp-responsive-recent-post-slider"),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Enter author id to hide post of particular author. Works only if `Include Author` field is empty. You can pass multiple ids with comma seperated. You can find id at relevant users listing page. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Display Sticky Posts","wp-responsive-recent-post-slider"),options:this.GetBooleanDropdown(),help:wp.element.createElement("div",{className:"wpos-hidden-opts-desc"},wp.element.createElement("span",null,__("Display sticky posts or not. Note: sticky posts only be displayed at front side. Upgarade to ","wp-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})),wp.element.createElement(m,null,wp.element.createElement(v,{label:__("Query Offset","wp-responsive-recent-post-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-responsive-recent-post-slider"),wp.element.createElement("a",{href:Wprpsf_Block.pro_link,target:"_blank"},__("Premium version ","wp-responsive-recent-post-slider")),__("to get this option.","wp-responsive-recent-post-slider")))})))));return wp.element.createElement(a,null,Y,wp.element.createElement(E,null,wp.element.createElement(y,{value:T,onChange:function(e){return n({align:e})},controls:["wide","full"]})),wp.element.createElement("div",{className:this.props.className},this.renderOutput()))}},{key:"renderOutput",value:function(){var e=this.props.attributes,t=this.ObjToString(e);t=t.trim();var n=t?"[recent_post_carousel "+t+"]":"[recent_post_carousel]";return wp.element.createElement("div",{class:"wpos-guten-shrt"},wp.element.createElement("div",{class:"wpos-guten-shrt-title"},wp.element.createElement("span",null,__("WP Responsive Recent Post Slider/Carousel - Carousel Slider","wp-responsive-recent-post-slider"))),n,wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},wp.element.createElement("span",null),__("Do you want to check demo of this plugin.","wp-responsive-recent-post-slider")," ",wp.element.createElement("a",{href:Wprpsf_Block.free_demo_link,target:"_blank"},__("Click here","wp-responsive-recent-post-slider"))),wp.element.createElement("div",{class:"wpos-guten-shrt-footer"},__("Do you also want to check premium version demo of this plugin.","wp-responsive-recent-post-slider")," ",wp.element.createElement("a",{href:Wprpsf_Block.pro_demo_link,target:"_blank"},__("Click here","wp-responsive-recent-post-slider"))))}}]),t}(i);t.a=b}]);
|
assets/js/wppsac-public.js
CHANGED
@@ -5,9 +5,10 @@ jQuery(document).ready(function($) {
|
|
5 |
|
6 |
var slider_id = $(this).attr('id');
|
7 |
var slider_conf = $.parseJSON( $(this).closest('.wppsac-slick-slider-wrp').find('.wppsac-slider-conf').attr('data-conf'));
|
8 |
-
|
9 |
if( typeof(slider_id) != 'undefined' && slider_id != '' ) {
|
10 |
jQuery('#'+slider_id).slick({
|
|
|
11 |
dots : (slider_conf.dots) == "true" ? true : false,
|
12 |
infinite : true,
|
13 |
arrows : (slider_conf.arrows) == "true" ? true : false,
|
@@ -29,6 +30,7 @@ jQuery(document).ready(function($) {
|
|
29 |
|
30 |
if( typeof(carousel_id) != 'undefined' && carousel_id != '' ) {
|
31 |
jQuery('#'+carousel_id).slick({
|
|
|
32 |
dots : (carousel_conf.dots) == "true" ? true : false,
|
33 |
infinite : true,
|
34 |
arrows : (carousel_conf.arrows) == "true" ? true : false,
|
5 |
|
6 |
var slider_id = $(this).attr('id');
|
7 |
var slider_conf = $.parseJSON( $(this).closest('.wppsac-slick-slider-wrp').find('.wppsac-slider-conf').attr('data-conf'));
|
8 |
+
|
9 |
if( typeof(slider_id) != 'undefined' && slider_id != '' ) {
|
10 |
jQuery('#'+slider_id).slick({
|
11 |
+
lazyLoad : slider_conf.lazyload,
|
12 |
dots : (slider_conf.dots) == "true" ? true : false,
|
13 |
infinite : true,
|
14 |
arrows : (slider_conf.arrows) == "true" ? true : false,
|
30 |
|
31 |
if( typeof(carousel_id) != 'undefined' && carousel_id != '' ) {
|
32 |
jQuery('#'+carousel_id).slick({
|
33 |
+
lazyLoad : carousel_conf.lazyload,
|
34 |
dots : (carousel_conf.dots) == "true" ? true : false,
|
35 |
infinite : true,
|
36 |
arrows : (carousel_conf.arrows) == "true" ? true : false,
|
includes/admin/settings/premium.php
CHANGED
@@ -52,13 +52,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
52 |
/* Table Footer */
|
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 |
-
<div class="essential-plugin-bundle">
|
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>
|
@@ -84,7 +78,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
84 |
<th></th>
|
85 |
<td></td>
|
86 |
<td><p>Gain access to <strong>WP Responsive Recent Post Slider</strong> included in <br /><strong>Essential Plugin Bundle</p>
|
87 |
-
<a href="https://www.wponlinesupport.com/
|
88 |
</tr>
|
89 |
</tfoot>
|
90 |
|
@@ -138,7 +132,12 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
138 |
<th>Visual Composer Page Builder Supports <span>Use this plugin with Visual Composer easily</span></th>
|
139 |
<td><i class="dashicons dashicons-no-alt"></i></td>
|
140 |
<td><i class="dashicons dashicons-yes"></i></td>
|
141 |
-
</tr>
|
|
|
|
|
|
|
|
|
|
|
142 |
<tr>
|
143 |
<th>Custom Read More link for Post <span>Redirect post to third party destination if any</span></th>
|
144 |
<td><i class="dashicons dashicons-no-alt"></i></td>
|
@@ -187,7 +186,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
187 |
<tr>
|
188 |
<th>Automatic Update <span>Get automatic plugin updates </span></th>
|
189 |
<td>Lifetime</td>
|
190 |
-
<td>Lifetime</td>
|
191 |
</tr>
|
192 |
<tr>
|
193 |
<th>Support <span>Get support for plugin</span></th>
|
52 |
/* Table Footer */
|
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 |
</style>
|
|
|
|
|
|
|
56 |
|
57 |
<table class="wpos-plugin-pricing-table">
|
58 |
<colgroup></colgroup>
|
78 |
<th></th>
|
79 |
<td></td>
|
80 |
<td><p>Gain access to <strong>WP Responsive Recent Post Slider</strong> included in <br /><strong>Essential Plugin Bundle</p>
|
81 |
+
<a href="https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/?ref=WposPratik&utm_source=WP&utm_medium=Post-Slider&utm_campaign=Upgrade-PRO" target="_blank">View Buying Options</a></td>
|
82 |
</tr>
|
83 |
</tfoot>
|
84 |
|
132 |
<th>Visual Composer Page Builder Supports <span>Use this plugin with Visual Composer easily</span></th>
|
133 |
<td><i class="dashicons dashicons-no-alt"></i></td>
|
134 |
<td><i class="dashicons dashicons-yes"></i></td>
|
135 |
+
</tr>
|
136 |
+
<tr>
|
137 |
+
<th>Image Lazyload <span>Lazyload support for the image.</span></th>
|
138 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
139 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
140 |
+
</tr>
|
141 |
<tr>
|
142 |
<th>Custom Read More link for Post <span>Redirect post to third party destination if any</span></th>
|
143 |
<td><i class="dashicons dashicons-no-alt"></i></td>
|
186 |
<tr>
|
187 |
<th>Automatic Update <span>Get automatic plugin updates </span></th>
|
188 |
<td>Lifetime</td>
|
189 |
+
<td>Yearly OR Lifetime</td>
|
190 |
</tr>
|
191 |
<tr>
|
192 |
<th>Support <span>Get support for plugin</span></th>
|
includes/admin/supports/gutenberg-block.php
CHANGED
@@ -100,6 +100,10 @@ function wprps_register_guten_block() {
|
|
100 |
'type' => 'string',
|
101 |
'default' => 'full',
|
102 |
),
|
|
|
|
|
|
|
|
|
103 |
'align' => array(
|
104 |
'type' => 'string',
|
105 |
'default' => '',
|
@@ -169,7 +173,7 @@ function wprps_register_guten_block() {
|
|
169 |
),
|
170 |
'speed' => array(
|
171 |
'type' => 'number',
|
172 |
-
'default' =>
|
173 |
),
|
174 |
'posts' => array(
|
175 |
'type' => 'string',
|
@@ -199,6 +203,10 @@ function wprps_register_guten_block() {
|
|
199 |
'type' => 'string',
|
200 |
'default' => 'full',
|
201 |
),
|
|
|
|
|
|
|
|
|
202 |
'align' => array(
|
203 |
'type' => 'string',
|
204 |
'default' => '',
|
100 |
'type' => 'string',
|
101 |
'default' => 'full',
|
102 |
),
|
103 |
+
'lazyload' => array(
|
104 |
+
'type' => 'string',
|
105 |
+
'default' => '',
|
106 |
+
),
|
107 |
'align' => array(
|
108 |
'type' => 'string',
|
109 |
'default' => '',
|
173 |
),
|
174 |
'speed' => array(
|
175 |
'type' => 'number',
|
176 |
+
'default' => 500,
|
177 |
),
|
178 |
'posts' => array(
|
179 |
'type' => 'string',
|
203 |
'type' => 'string',
|
204 |
'default' => 'full',
|
205 |
),
|
206 |
+
'lazyload' => array(
|
207 |
+
'type' => 'string',
|
208 |
+
'default' => '',
|
209 |
+
),
|
210 |
'align' => array(
|
211 |
'type' => 'string',
|
212 |
'default' => '',
|
includes/admin/wprps-how-it-work.php
CHANGED
@@ -242,7 +242,7 @@ function wprps_howitwork_page() { ?>
|
|
242 |
<li><?php _e('100% Multi language', 'wp-responsive-recent-post-slider' ); ?></li>
|
243 |
</ul>
|
244 |
<div class="upgrade-to-pro"><?php echo __( 'Gain access to <strong>Responsive Recent Post Slider</strong> included in <br /><strong>Essential Plugin Bundle', 'wp-responsive-recent-post-slider' ); ?></div>
|
245 |
-
<a class="button button-primary wpos-button-full" href="https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/?ref=WposPratik&utm_source=WP&utm_medium=
|
246 |
<p><a class="button button-primary wpos-button-full" href="http://demo.wponlinesupport.com/prodemo/post-slider-pro/" target="_blank"><?php _e('View PRO Demo ', 'wp-responsive-recent-post-slider'); ?></a> </p>
|
247 |
</div><!-- .inside -->
|
248 |
</div><!-- #general -->
|
242 |
<li><?php _e('100% Multi language', 'wp-responsive-recent-post-slider' ); ?></li>
|
243 |
</ul>
|
244 |
<div class="upgrade-to-pro"><?php echo __( 'Gain access to <strong>Responsive Recent Post Slider</strong> included in <br /><strong>Essential Plugin Bundle', 'wp-responsive-recent-post-slider' ); ?></div>
|
245 |
+
<a class="button button-primary wpos-button-full" href="https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/?ref=WposPratik&utm_source=WP&utm_medium=Post-Slider&utm_campaign=Upgrade-PRO" target="_blank"><?php _e('Go Premium ', 'wp-responsive-recent-post-slider'); ?></a>
|
246 |
<p><a class="button button-primary wpos-button-full" href="http://demo.wponlinesupport.com/prodemo/post-slider-pro/" target="_blank"><?php _e('View PRO Demo ', 'wp-responsive-recent-post-slider'); ?></a> </p>
|
247 |
</div><!-- .inside -->
|
248 |
</div><!-- #general -->
|
includes/class-wppsac-script.php
CHANGED
@@ -19,8 +19,7 @@ class Wppsac_Script {
|
|
19 |
add_action( 'wp_enqueue_scripts', array($this, 'wppsac_front_style') );
|
20 |
|
21 |
// Action to add script at front side
|
22 |
-
add_action( 'wp_enqueue_scripts', array($this, 'wppsac_front_script') );
|
23 |
-
|
24 |
}
|
25 |
|
26 |
/**
|
@@ -30,18 +29,18 @@ class Wppsac_Script {
|
|
30 |
* @since 1.0.0
|
31 |
*/
|
32 |
function wppsac_front_style() {
|
33 |
-
|
34 |
// Registring and enqueing slick slider css
|
35 |
if( !wp_style_is( 'wpos-slick-style', 'registered' ) ) {
|
36 |
wp_register_style( 'wpos-slick-style', WPRPS_URL.'assets/css/slick.css', array(), WPRPS_VERSION );
|
37 |
wp_enqueue_style( 'wpos-slick-style' );
|
38 |
}
|
39 |
-
|
40 |
// Registring and enqueing public css
|
41 |
wp_register_style( 'wppsac-public-style', WPRPS_URL.'assets/css/recent-post-style.css', array(), WPRPS_VERSION );
|
42 |
wp_enqueue_style( 'wppsac-public-style' );
|
43 |
}
|
44 |
-
|
45 |
/**
|
46 |
* Function to add script at front side
|
47 |
*
|
@@ -49,12 +48,12 @@ class Wppsac_Script {
|
|
49 |
* @since 1.0.0
|
50 |
*/
|
51 |
function wppsac_front_script() {
|
52 |
-
|
53 |
// Registring slick slider script
|
54 |
if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) {
|
55 |
wp_register_script( 'wpos-slick-jquery', WPRPS_URL.'assets/js/slick.min.js', array('jquery'), WPRPS_VERSION, true );
|
56 |
}
|
57 |
-
|
58 |
// Registring and enqueing public script
|
59 |
wp_register_script( 'wppsac-public-script', WPRPS_URL.'assets/js/wppsac-public.js', array('jquery'), WPRPS_VERSION, true );
|
60 |
wp_localize_script( 'wppsac-public-script', 'Wppsac', array(
|
@@ -62,7 +61,7 @@ class Wppsac_Script {
|
|
62 |
'is_rtl' => (is_rtl()) ? 1 : 0
|
63 |
));
|
64 |
}
|
65 |
-
|
66 |
}
|
67 |
|
68 |
$wppsac_script = new Wppsac_Script();
|
19 |
add_action( 'wp_enqueue_scripts', array($this, 'wppsac_front_style') );
|
20 |
|
21 |
// Action to add script at front side
|
22 |
+
add_action( 'wp_enqueue_scripts', array($this, 'wppsac_front_script') );
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
29 |
* @since 1.0.0
|
30 |
*/
|
31 |
function wppsac_front_style() {
|
32 |
+
|
33 |
// Registring and enqueing slick slider css
|
34 |
if( !wp_style_is( 'wpos-slick-style', 'registered' ) ) {
|
35 |
wp_register_style( 'wpos-slick-style', WPRPS_URL.'assets/css/slick.css', array(), WPRPS_VERSION );
|
36 |
wp_enqueue_style( 'wpos-slick-style' );
|
37 |
}
|
38 |
+
|
39 |
// Registring and enqueing public css
|
40 |
wp_register_style( 'wppsac-public-style', WPRPS_URL.'assets/css/recent-post-style.css', array(), WPRPS_VERSION );
|
41 |
wp_enqueue_style( 'wppsac-public-style' );
|
42 |
}
|
43 |
+
|
44 |
/**
|
45 |
* Function to add script at front side
|
46 |
*
|
48 |
* @since 1.0.0
|
49 |
*/
|
50 |
function wppsac_front_script() {
|
51 |
+
|
52 |
// Registring slick slider script
|
53 |
if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) {
|
54 |
wp_register_script( 'wpos-slick-jquery', WPRPS_URL.'assets/js/slick.min.js', array('jquery'), WPRPS_VERSION, true );
|
55 |
}
|
56 |
+
|
57 |
// Registring and enqueing public script
|
58 |
wp_register_script( 'wppsac-public-script', WPRPS_URL.'assets/js/wppsac-public.js', array('jquery'), WPRPS_VERSION, true );
|
59 |
wp_localize_script( 'wppsac-public-script', 'Wppsac', array(
|
61 |
'is_rtl' => (is_rtl()) ? 1 : 0
|
62 |
));
|
63 |
}
|
64 |
+
|
65 |
}
|
66 |
|
67 |
$wppsac_script = new Wppsac_Script();
|
includes/shortcodes/wppsac-carousel.php
CHANGED
@@ -14,7 +14,7 @@ function wprps_post_carousel( $atts, $content = null ) {
|
|
14 |
extract(shortcode_atts(array(
|
15 |
'limit' => '10',
|
16 |
'design' => 'design-1',
|
17 |
-
'category' => '',
|
18 |
'show_date' => 'true',
|
19 |
'show_category_name' => 'true',
|
20 |
'show_content' => 'true',
|
@@ -22,18 +22,19 @@ function wprps_post_carousel( $atts, $content = null ) {
|
|
22 |
'slides_to_show' => '3',
|
23 |
'slides_to_scroll' => '1',
|
24 |
'dots' => 'true',
|
25 |
-
'arrows' => 'true',
|
26 |
-
'autoplay' => 'true',
|
27 |
-
'autoplay_interval' => '3000',
|
28 |
'speed' => '500',
|
29 |
'hide_post' => array(),
|
30 |
'posts' => array(),
|
31 |
-
'post_type' => 'post',
|
32 |
'taxonomy' => 'category',
|
33 |
'show_author' => 'true',
|
34 |
'show_read_more' => 'true',
|
35 |
-
'media_size' => 'full',
|
36 |
'rtl' => 'false',
|
|
|
37 |
'className' => '',
|
38 |
'align' => '',
|
39 |
'extra_class' => '',
|
@@ -41,13 +42,13 @@ function wprps_post_carousel( $atts, $content = null ) {
|
|
41 |
|
42 |
$unique = wppsac_get_unique();
|
43 |
$shortcode_designs = wppsac_carousel_designs();
|
44 |
-
$posts_per_page = !empty($limit) ? $limit : '
|
45 |
$cat = (!empty($category)) ? explode(',', $category) : '';
|
46 |
$design = ($design && (array_key_exists(trim($design), $shortcode_designs))) ? trim($design) : 'design-1';
|
47 |
-
$showCategory = ( $show_category_name == '
|
48 |
-
$showContent = ( $show_content == '
|
49 |
-
$showDate = ( $show_date == '
|
50 |
-
$showAuthor = ( $show_author == '
|
51 |
$showreadmore = ( $show_read_more == 'false') ? false : true;
|
52 |
$words_limit = !empty( $content_words_limit ) ? $content_words_limit : 20;
|
53 |
$slides_to_show = !empty($slides_to_show) ? $slides_to_show : 3;
|
@@ -62,6 +63,7 @@ function wprps_post_carousel( $atts, $content = null ) {
|
|
62 |
$media_size = !empty($media_size) ? $media_size : 'full'; // you can use thumbnail, medium, medium_large, large, full
|
63 |
$exclude_post = !empty($hide_post) ? explode(',', $hide_post) : array();
|
64 |
$posts = !empty($posts) ? explode(',', $posts) : array();
|
|
|
65 |
$align = !empty( $align ) ? 'align'.$align : '';
|
66 |
$extra_class = $extra_class .' '. $align .' '. $className;
|
67 |
$extra_class = wppsac_sanitize_html_classes( $extra_class );
|
@@ -84,7 +86,7 @@ function wprps_post_carousel( $atts, $content = null ) {
|
|
84 |
wp_enqueue_script( 'wppsac-public-script' );
|
85 |
|
86 |
// Slider configuration
|
87 |
-
$carousel_conf = compact('slides_to_show', 'slides_to_scroll', 'dots', 'arrows', 'autoplay', 'autoplay_interval','speed', 'rtl');
|
88 |
|
89 |
// Taking some global
|
90 |
global $post;
|
14 |
extract(shortcode_atts(array(
|
15 |
'limit' => '10',
|
16 |
'design' => 'design-1',
|
17 |
+
'category' => '',
|
18 |
'show_date' => 'true',
|
19 |
'show_category_name' => 'true',
|
20 |
'show_content' => 'true',
|
22 |
'slides_to_show' => '3',
|
23 |
'slides_to_scroll' => '1',
|
24 |
'dots' => 'true',
|
25 |
+
'arrows' => 'true',
|
26 |
+
'autoplay' => 'true',
|
27 |
+
'autoplay_interval' => '3000',
|
28 |
'speed' => '500',
|
29 |
'hide_post' => array(),
|
30 |
'posts' => array(),
|
31 |
+
'post_type' => 'post',
|
32 |
'taxonomy' => 'category',
|
33 |
'show_author' => 'true',
|
34 |
'show_read_more' => 'true',
|
35 |
+
'media_size' => 'full',
|
36 |
'rtl' => 'false',
|
37 |
+
'lazyload' => '',
|
38 |
'className' => '',
|
39 |
'align' => '',
|
40 |
'extra_class' => '',
|
42 |
|
43 |
$unique = wppsac_get_unique();
|
44 |
$shortcode_designs = wppsac_carousel_designs();
|
45 |
+
$posts_per_page = !empty($limit) ? $limit : '10';
|
46 |
$cat = (!empty($category)) ? explode(',', $category) : '';
|
47 |
$design = ($design && (array_key_exists(trim($design), $shortcode_designs))) ? trim($design) : 'design-1';
|
48 |
+
$showCategory = ( $show_category_name == 'true' ) ? true : false;
|
49 |
+
$showContent = ( $show_content == 'true' ) ? true : false;
|
50 |
+
$showDate = ( $show_date == 'true') ? true : false;
|
51 |
+
$showAuthor = ( $show_author == 'true') ? true : false;
|
52 |
$showreadmore = ( $show_read_more == 'false') ? false : true;
|
53 |
$words_limit = !empty( $content_words_limit ) ? $content_words_limit : 20;
|
54 |
$slides_to_show = !empty($slides_to_show) ? $slides_to_show : 3;
|
63 |
$media_size = !empty($media_size) ? $media_size : 'full'; // you can use thumbnail, medium, medium_large, large, full
|
64 |
$exclude_post = !empty($hide_post) ? explode(',', $hide_post) : array();
|
65 |
$posts = !empty($posts) ? explode(',', $posts) : array();
|
66 |
+
$lazyload = ( $lazyload == 'ondemand' || $lazyload == 'progressive' ) ? $lazyload : ''; // ondemand or progressive
|
67 |
$align = !empty( $align ) ? 'align'.$align : '';
|
68 |
$extra_class = $extra_class .' '. $align .' '. $className;
|
69 |
$extra_class = wppsac_sanitize_html_classes( $extra_class );
|
86 |
wp_enqueue_script( 'wppsac-public-script' );
|
87 |
|
88 |
// Slider configuration
|
89 |
+
$carousel_conf = compact('slides_to_show', 'slides_to_scroll', 'dots', 'arrows', 'autoplay', 'autoplay_interval','speed', 'rtl', 'lazyload');
|
90 |
|
91 |
// Taking some global
|
92 |
global $post;
|
includes/shortcodes/wppsac-slider.php
CHANGED
@@ -32,6 +32,7 @@ function wprps_recent_post_slider( $atts, $content = null ) {
|
|
32 |
'show_read_more' => 'true',
|
33 |
'media_size' => 'full',
|
34 |
'rtl' => 'false',
|
|
|
35 |
'className' => '',
|
36 |
'align' => '',
|
37 |
'extra_class' => '',
|
@@ -39,13 +40,13 @@ function wprps_recent_post_slider( $atts, $content = null ) {
|
|
39 |
|
40 |
$unique = wppsac_get_unique();
|
41 |
$shortcode_designs = wppsac_slider_designs();
|
42 |
-
$posts_per_page = !empty($limit) ? $limit : '
|
43 |
$cat = (!empty($category)) ? explode(',', $category) : '';
|
44 |
$design = ($design && (array_key_exists(trim($design), $shortcode_designs))) ? trim($design) : 'design-1';
|
45 |
-
$showCategory = ( $show_category_name == '
|
46 |
-
$showContent = ( $show_content == '
|
47 |
-
$showDate = ( $show_date == '
|
48 |
-
$showAuthor = ( $show_author == '
|
49 |
$showreadmore = ( $show_read_more == 'false') ? false : true;
|
50 |
$words_limit = !empty( $content_words_limit ) ? $content_words_limit : 20;
|
51 |
$dots = ( $dots == 'false' ) ? 'false' : 'true';
|
@@ -58,6 +59,7 @@ function wprps_recent_post_slider( $atts, $content = null ) {
|
|
58 |
$media_size = !empty($media_size) ? $media_size : 'full'; // you can use thumbnail, medium, medium_large, large, full
|
59 |
$exclude_post = !empty($hide_post) ? explode(',', $hide_post) : array();
|
60 |
$posts = !empty($posts) ? explode(',', $posts) : array();
|
|
|
61 |
$align = !empty( $align ) ? 'align'.$align : '';
|
62 |
$extra_class = $extra_class .' '. $align .' '. $className;
|
63 |
$extra_class = wppsac_sanitize_html_classes( $extra_class );
|
@@ -80,7 +82,7 @@ function wprps_recent_post_slider( $atts, $content = null ) {
|
|
80 |
wp_enqueue_script( 'wppsac-public-script' );
|
81 |
|
82 |
// Slider configuration
|
83 |
-
$slider_conf = compact('dots', 'arrows', 'autoplay', 'autoplay_interval','speed', 'rtl');
|
84 |
|
85 |
// Taking some global
|
86 |
global $post;
|
32 |
'show_read_more' => 'true',
|
33 |
'media_size' => 'full',
|
34 |
'rtl' => 'false',
|
35 |
+
'lazyload' => '',
|
36 |
'className' => '',
|
37 |
'align' => '',
|
38 |
'extra_class' => '',
|
40 |
|
41 |
$unique = wppsac_get_unique();
|
42 |
$shortcode_designs = wppsac_slider_designs();
|
43 |
+
$posts_per_page = !empty($limit) ? $limit : '10';
|
44 |
$cat = (!empty($category)) ? explode(',', $category) : '';
|
45 |
$design = ($design && (array_key_exists(trim($design), $shortcode_designs))) ? trim($design) : 'design-1';
|
46 |
+
$showCategory = ( $show_category_name == 'true' ) ? true : false;
|
47 |
+
$showContent = ( $show_content == 'true' ) ? true : false;
|
48 |
+
$showDate = ( $show_date == 'true') ? true : false;
|
49 |
+
$showAuthor = ( $show_author == 'true') ? true : false;
|
50 |
$showreadmore = ( $show_read_more == 'false') ? false : true;
|
51 |
$words_limit = !empty( $content_words_limit ) ? $content_words_limit : 20;
|
52 |
$dots = ( $dots == 'false' ) ? 'false' : 'true';
|
59 |
$media_size = !empty($media_size) ? $media_size : 'full'; // you can use thumbnail, medium, medium_large, large, full
|
60 |
$exclude_post = !empty($hide_post) ? explode(',', $hide_post) : array();
|
61 |
$posts = !empty($posts) ? explode(',', $posts) : array();
|
62 |
+
$lazyload = ( $lazyload == 'ondemand' || $lazyload == 'progressive' ) ? $lazyload : ''; // ondemand or progressive
|
63 |
$align = !empty( $align ) ? 'align'.$align : '';
|
64 |
$extra_class = $extra_class .' '. $align .' '. $className;
|
65 |
$extra_class = wppsac_sanitize_html_classes( $extra_class );
|
82 |
wp_enqueue_script( 'wppsac-public-script' );
|
83 |
|
84 |
// Slider configuration
|
85 |
+
$slider_conf = compact('dots', 'arrows', 'autoplay', 'autoplay_interval','speed', 'rtl', 'lazyload');
|
86 |
|
87 |
// Taking some global
|
88 |
global $post;
|
includes/wppsac-function.php
CHANGED
@@ -93,7 +93,7 @@ function wppsac_slider_designs() {
|
|
93 |
'design-1' => __('Design 1', 'wp-responsive-recent-post-slider'),
|
94 |
'design-2' => __('Design 2', 'wp-responsive-recent-post-slider'),
|
95 |
'design-3' => __('Design 3', 'wp-responsive-recent-post-slider'),
|
96 |
-
'design-4' => __('Design 4', 'wp-responsive-recent-post-slider'),
|
97 |
);
|
98 |
return apply_filters('wppsac_slider_designs', $design_arr );
|
99 |
}
|
@@ -106,7 +106,7 @@ function wppsac_slider_designs() {
|
|
106 |
*/
|
107 |
function wppsac_carousel_designs() {
|
108 |
$design_arr = array(
|
109 |
-
'design-1' => __('Design 1', 'wp-responsive-recent-post-slider'),
|
110 |
);
|
111 |
return apply_filters('wppsac_carousel_designs', $design_arr );
|
112 |
}
|
@@ -118,18 +118,17 @@ function wppsac_carousel_designs() {
|
|
118 |
* @since 1.2.5
|
119 |
*/
|
120 |
function wppsac_add_array(&$array, $value, $index, $from_last = false) {
|
121 |
-
|
122 |
if( is_array($array) && is_array($value) ) {
|
123 |
|
124 |
if( $from_last ) {
|
125 |
$total_count = count($array);
|
126 |
$index = (!empty($total_count) && ($total_count > $index)) ? ($total_count-$index): $index;
|
127 |
}
|
128 |
-
|
129 |
$split_arr = array_splice($array, max(0, $index));
|
130 |
$array = array_merge( $array, $value, $split_arr);
|
131 |
}
|
132 |
-
|
133 |
return $array;
|
134 |
}
|
135 |
|
@@ -139,11 +138,10 @@ function wppsac_add_array(&$array, $value, $index, $from_last = false) {
|
|
139 |
* @package wp-responsive-recent-post-slider
|
140 |
* @since 1.2.5
|
141 |
*/
|
142 |
-
function wprps_limit_words($string, $word_limit)
|
143 |
-
{
|
144 |
if( !empty($string) ) {
|
145 |
$content = strip_shortcodes( $string ); // Strip shortcodes
|
146 |
$content = wp_trim_words( $string, $word_limit, '...' );
|
147 |
return $content;
|
148 |
-
}
|
149 |
}
|
93 |
'design-1' => __('Design 1', 'wp-responsive-recent-post-slider'),
|
94 |
'design-2' => __('Design 2', 'wp-responsive-recent-post-slider'),
|
95 |
'design-3' => __('Design 3', 'wp-responsive-recent-post-slider'),
|
96 |
+
'design-4' => __('Design 4', 'wp-responsive-recent-post-slider'),
|
97 |
);
|
98 |
return apply_filters('wppsac_slider_designs', $design_arr );
|
99 |
}
|
106 |
*/
|
107 |
function wppsac_carousel_designs() {
|
108 |
$design_arr = array(
|
109 |
+
'design-1' => __('Design 1', 'wp-responsive-recent-post-slider'),
|
110 |
);
|
111 |
return apply_filters('wppsac_carousel_designs', $design_arr );
|
112 |
}
|
118 |
* @since 1.2.5
|
119 |
*/
|
120 |
function wppsac_add_array(&$array, $value, $index, $from_last = false) {
|
121 |
+
|
122 |
if( is_array($array) && is_array($value) ) {
|
123 |
|
124 |
if( $from_last ) {
|
125 |
$total_count = count($array);
|
126 |
$index = (!empty($total_count) && ($total_count > $index)) ? ($total_count-$index): $index;
|
127 |
}
|
128 |
+
|
129 |
$split_arr = array_splice($array, max(0, $index));
|
130 |
$array = array_merge( $array, $value, $split_arr);
|
131 |
}
|
|
|
132 |
return $array;
|
133 |
}
|
134 |
|
138 |
* @package wp-responsive-recent-post-slider
|
139 |
* @since 1.2.5
|
140 |
*/
|
141 |
+
function wprps_limit_words($string, $word_limit) {
|
|
|
142 |
if( !empty($string) ) {
|
143 |
$content = strip_shortcodes( $string ); // Strip shortcodes
|
144 |
$content = wp_trim_words( $string, $word_limit, '...' );
|
145 |
return $content;
|
146 |
+
}
|
147 |
}
|
languages/wp-responsive-recent-post-slider.pot
ADDED
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: WP Responsive Recent Post Slider/Carousel\n"
|
5 |
+
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2020-07-14 11:52+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.4.0; wp-5.3.4"
|
17 |
+
|
18 |
+
#: includes/admin/wprps-how-it-work.php:242
|
19 |
+
msgid "100% Multi language"
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#: includes/admin/wprps-how-it-work.php:234
|
23 |
+
msgid "3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2)"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: includes/admin/wprps-how-it-work.php:260
|
27 |
+
msgid "5 stars!"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: includes/admin/wprps-how-it-work.php:230
|
31 |
+
msgid "60+ designs"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#. Description of the plugin
|
35 |
+
msgid ""
|
36 |
+
"Add and display Responsive WordPresss Recent Post Slider and Carousel on "
|
37 |
+
"your website with 4 designs (Slider) and 1 designs (Carousel) using a "
|
38 |
+
"shortcode. Also added Gutenberg block support."
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: includes/admin/wprps-how-it-work.php:193
|
42 |
+
msgid "All Shortcodes"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: includes/admin/settings/hire-us.php:22
|
46 |
+
msgid "Any sort of WP work with no extra cost"
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: templates/carousel/design-1.php:31 templates/slider/design-1.php:25
|
50 |
+
#: templates/slider/design-2.php:27 templates/slider/design-3.php:33
|
51 |
+
#: templates/slider/design-4.php:35
|
52 |
+
msgid "By"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: includes/admin/class-wprps-admin.php:80
|
56 |
+
msgid "Category ID"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: includes/admin/wprps-how-it-work.php:206
|
60 |
+
msgid "Check plugin document for shortcode parameters and demo for designs."
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: includes/admin/wprps-how-it-work.php:236
|
64 |
+
msgid "Custom CSS option"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: includes/admin/settings/hire-us.php:23
|
68 |
+
msgid "Dedicated expert working only for you!"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: includes/admin/wprps-how-it-work.php:208
|
72 |
+
msgid "Demo for Designs"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: includes/wppsac-function.php:93 includes/wppsac-function.php:109
|
76 |
+
msgid "Design 1"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: includes/wppsac-function.php:94
|
80 |
+
msgid "Design 2"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: includes/wppsac-function.php:95
|
84 |
+
msgid "Design 3"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: includes/wppsac-function.php:96
|
88 |
+
msgid "Design 4"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: includes/admin/wprps-how-it-work.php:207
|
92 |
+
msgid "Documentation"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: includes/admin/wprps-how-it-work.php:235
|
96 |
+
msgid "Drag & Drop order change"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: includes/admin/wprps-how-it-work.php:260
|
100 |
+
msgid "Enjoyed this plugin? You can help by rate this plugin "
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: includes/admin/wprps-how-it-work.php:173
|
104 |
+
msgid "Featured Post"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: includes/admin/wprps-how-it-work.php:241
|
108 |
+
msgid "Fully responsive"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: includes/admin/wprps-how-it-work.php:244
|
112 |
+
msgid ""
|
113 |
+
"Gain access to <strong>Responsive Recent Post Slider</strong> included in "
|
114 |
+
"<br /><strong>Essential Plugin Bundle"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: includes/admin/wprps-how-it-work.php:167
|
118 |
+
msgid "Geeting Started with Post Slider"
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: includes/admin/wprps-how-it-work.php:245
|
122 |
+
msgid "Go Premium "
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: includes/admin/wprps-how-it-work.php:237
|
126 |
+
msgid "Gutenberg Block Supports"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: includes/admin/wprps-how-it-work.php:257
|
130 |
+
msgid "Help to improve this plugin!"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: includes/admin/settings/hire-us.php:18
|
134 |
+
msgid "Highlight of Hiring:"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: includes/admin/settings/hire-us.php:20
|
138 |
+
msgid "Hire once, get unlimited jobs done"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: includes/admin/class-wprps-admin.php:43
|
142 |
+
#: includes/admin/settings/hire-us.php:84
|
143 |
+
#: includes/admin/settings/hire-us.php:85
|
144 |
+
#: includes/admin/settings/hire-us.php:86
|
145 |
+
#: includes/admin/settings/hire-us.php:87
|
146 |
+
msgid "Hire Us"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: includes/admin/settings/hire-us.php:15
|
150 |
+
msgid "Hire Us - Get unlimited expert WordPress Support and Development"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: includes/admin/settings/hire-us.php:63
|
154 |
+
msgid "Hire us for 1 Hr"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: includes/admin/settings/hire-us.php:71
|
158 |
+
msgid "Hire us for 30 Hrs"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: includes/admin/settings/hire-us.php:67
|
162 |
+
msgid "Hire us for 5 Hrs"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: includes/admin/settings/hire-us.php:76
|
166 |
+
msgid "Hire us for 70 Hrs"
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: includes/admin/wprps-how-it-work.php:119
|
170 |
+
msgid "How It Works"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: includes/admin/wprps-how-it-work.php:159
|
174 |
+
msgid "How It Works - Display and Shortcode"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: includes/admin/wprps-how-it-work.php:181
|
178 |
+
msgid "How Shortcode Works"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#. Author URI of the plugin
|
182 |
+
msgid "https://www.wponlinesupport.com/"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#. URI of the plugin
|
186 |
+
msgid "https://www.wponlinesupport.com/plugins/"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: wp-recent-post-slider.php:137
|
190 |
+
#, php-format
|
191 |
+
msgid ""
|
192 |
+
"It looks like you had PRO version %s of this plugin activated. To avoid "
|
193 |
+
"conflicts the extra version has been deactivated and we recommend you delete "
|
194 |
+
"it."
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: includes/admin/wprps-how-it-work.php:203
|
198 |
+
msgid "Need Support?"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: includes/admin/settings/hire-us.php:73
|
202 |
+
msgid "Our most valuable package!"
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: includes/admin/wprps-how-it-work.php:122
|
206 |
+
msgid "Our Plugins"
|
207 |
+
msgstr ""
|
208 |
+
|
209 |
+
#: includes/admin/wprps-how-it-work.php:197
|
210 |
+
msgid "Post carousel Shortcode. Where you can use 1 designs."
|
211 |
+
msgstr ""
|
212 |
+
|
213 |
+
#: includes/admin/wprps-how-it-work.php:196
|
214 |
+
msgid "Post slider Shortcode. Where you can use 4 designs."
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: includes/admin/settings/hire-us.php:21
|
218 |
+
msgid "Quick ticket support, quick solution"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: templates/carousel/design-1.php:50 templates/slider/design-1.php:45
|
222 |
+
#: templates/slider/design-2.php:46 templates/slider/design-3.php:53
|
223 |
+
#: templates/slider/design-4.php:54
|
224 |
+
msgid "Read More"
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: includes/admin/wprps-how-it-work.php:233
|
228 |
+
msgid "Recent gridbox slider with 8 designs"
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
#: includes/admin/wprps-how-it-work.php:232
|
232 |
+
msgid "Recent Post Carousel with 30 designs"
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#: includes/admin/wprps-how-it-work.php:23
|
236 |
+
msgid "Recent Post Slider"
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: includes/admin/wprps-how-it-work.php:231
|
240 |
+
msgid "Recent Post Slider with 25 designs"
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: includes/admin/wprps-how-it-work.php:240
|
244 |
+
msgid "Slider RTL support"
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: includes/admin/wprps-how-it-work.php:185
|
248 |
+
msgid "Step-1. Create a page like Latet Post OR add the shortcode in a page."
|
249 |
+
msgstr ""
|
250 |
+
|
251 |
+
#: includes/admin/wprps-how-it-work.php:171
|
252 |
+
msgid "Step-1. This plugin create a menu \"Recent Post Slider\"."
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: includes/admin/wprps-how-it-work.php:186
|
256 |
+
msgid "Step-2. Put below shortcode as per your need."
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: includes/admin/wprps-how-it-work.php:172
|
260 |
+
msgid ""
|
261 |
+
"Step-2. This plugin get all the latest POST from WordPress Post section with "
|
262 |
+
"a simple shortcode"
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: includes/admin/wprps-how-it-work.php:173
|
266 |
+
msgid ""
|
267 |
+
"Step-3. If you need a <b>Featured Post</b> OR <b>Trending/Popular Post</b> "
|
268 |
+
"plugin then try our plugins"
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: wp-recent-post-slider.php:136
|
272 |
+
#, php-format
|
273 |
+
msgid "Thank you for activating %s"
|
274 |
+
msgstr ""
|
275 |
+
|
276 |
+
#: includes/admin/wprps-how-it-work.php:104
|
277 |
+
msgid ""
|
278 |
+
"There was an error retrieving the data from the server. Please try again "
|
279 |
+
"later."
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#: includes/admin/wprps-how-it-work.php:173
|
283 |
+
msgid "Trending/Popular Post"
|
284 |
+
msgstr ""
|
285 |
+
|
286 |
+
#: includes/admin/class-wprps-admin.php:41
|
287 |
+
msgid "Upgrade to PRO"
|
288 |
+
msgstr ""
|
289 |
+
|
290 |
+
#: includes/admin/class-wprps-admin.php:41
|
291 |
+
msgid "Upgrade to PRO - Recent Post Slider"
|
292 |
+
msgstr ""
|
293 |
+
|
294 |
+
#: includes/admin/wprps-how-it-work.php:226
|
295 |
+
msgid "Upgrate to Pro"
|
296 |
+
msgstr ""
|
297 |
+
|
298 |
+
#: includes/admin/wprps-how-it-work.php:246
|
299 |
+
msgid "View PRO Demo "
|
300 |
+
msgstr ""
|
301 |
+
|
302 |
+
#: includes/admin/wprps-how-it-work.php:238
|
303 |
+
msgid "Visual Composer Support"
|
304 |
+
msgstr ""
|
305 |
+
|
306 |
+
#. Author of the plugin
|
307 |
+
msgid "WP OnlineSupport"
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
+
#: includes/admin/settings/premium.php:15
|
311 |
+
msgid "WP Responsive Recent Post Slider - Features"
|
312 |
+
msgstr ""
|
313 |
+
|
314 |
+
#. Name of the plugin
|
315 |
+
msgid "WP Responsive Recent Post Slider/Carousel"
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
+
#: includes/admin/wprps-how-it-work.php:239
|
319 |
+
msgid "WP Templating Features"
|
320 |
+
msgstr ""
|
321 |
+
|
322 |
+
#: includes/admin/supports/gutenberg-block.php:277
|
323 |
+
msgid "WPOS Blocks"
|
324 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== WP Responsive Recent Post Slider/Carousel ===
|
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
|
@@ -78,6 +78,7 @@ Where designs are : design-1, design-2, design-3, design-4. You can use same par
|
|
78 |
* **show_author:** [recent_post_slider show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
|
79 |
* **show_read_more:** [recent_post_slider show_read_more="true"] (Display read more button. Values are "true OR false")
|
80 |
* **rtl:** [recent_post_slider rtl="true"] (for rtl mode. By default value is “false”. Options are “true OR false”).
|
|
|
81 |
|
82 |
= Use Following Recent Post Carousel parameters with shortcode =
|
83 |
<code>[recent_post_carousel]</code>
|
@@ -102,6 +103,7 @@ Where designs are : design-1, design-2, design-3, design-4. You can use same par
|
|
102 |
* **show_author:** [recent_post_carousel show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
|
103 |
* **show_read_more:** [recent_post_carousel show_read_more="true"] (Display read more button. Values are "true OR false")
|
104 |
* **rtl:** [recent_post_carousel rtl="true"] (for rtl mode. By default value is “false”. Options are “true OR false”).
|
|
|
105 |
|
106 |
= Pro Features include: =
|
107 |
> <strong>Premium Version</strong><br>
|
@@ -134,6 +136,9 @@ Where designs are : design-1, design-2, design-3, design-4. You can use same par
|
|
134 |
* Custom post type support.
|
135 |
* Exclude Post with their ID's that you do not want to display.
|
136 |
|
|
|
|
|
|
|
137 |
= How to install : =
|
138 |
[youtube https://www.youtube.com/watch?v=Bpi8f1JEBzc]
|
139 |
|
@@ -163,6 +168,17 @@ Where designs are : design-1, design-2, design-3, design-4. You can use same par
|
|
163 |
|
164 |
== Changelog ==
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
= 2.3 (13, April 2020) =
|
167 |
* [+] New - Added Gutenberg block support. Now use plugin easily with Gutenberg!
|
168 |
* [+] 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.
|
1 |
=== WP Responsive Recent Post Slider/Carousel ===
|
2 |
Contributors: wponlinesupport, anoopranawat, pratik-jain
|
3 |
+
Tags: post slider, posts slider, recent post slider, recent posts slider, slider, responsive post slider, responsive posts slider, responsive recent post slider, responsive recent posts slider, wordpress posts slider, post slideshow, posts slideshow, recent posts slideshow, shortcodes, 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
|
78 |
* **show_author:** [recent_post_slider show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
|
79 |
* **show_read_more:** [recent_post_slider show_read_more="true"] (Display read more button. Values are "true OR false")
|
80 |
* **rtl:** [recent_post_slider rtl="true"] (for rtl mode. By default value is “false”. Options are “true OR false”).
|
81 |
+
* **lazyload:** [recent_post_slider lazyload="ondemand"] (Lazy load images. Defaults to ''. Two options can be passed. 'ondemand', 'progressive')
|
82 |
|
83 |
= Use Following Recent Post Carousel parameters with shortcode =
|
84 |
<code>[recent_post_carousel]</code>
|
103 |
* **show_author:** [recent_post_carousel show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
|
104 |
* **show_read_more:** [recent_post_carousel show_read_more="true"] (Display read more button. Values are "true OR false")
|
105 |
* **rtl:** [recent_post_carousel rtl="true"] (for rtl mode. By default value is “false”. Options are “true OR false”).
|
106 |
+
* **lazyload:** [recent_post_carousel lazyload="ondemand"] (Lazy load images. Defaults to ''. Two options can be passed. 'ondemand', 'progressive')
|
107 |
|
108 |
= Pro Features include: =
|
109 |
> <strong>Premium Version</strong><br>
|
136 |
* Custom post type support.
|
137 |
* Exclude Post with their ID's that you do not want to display.
|
138 |
|
139 |
+
= Features : =
|
140 |
+
[youtube https://www.youtube.com/watch?v=BmCpbC9lXd4]
|
141 |
+
|
142 |
= How to install : =
|
143 |
[youtube https://www.youtube.com/watch?v=Bpi8f1JEBzc]
|
144 |
|
168 |
|
169 |
== Changelog ==
|
170 |
|
171 |
+
= 2.3.3 (14-07-2020) =
|
172 |
+
* [*] Follow WordPress Detailed Plugin Guidelines for Offload Media and Analytics Code.
|
173 |
+
|
174 |
+
= 2.3.2 (06, July 2020) =
|
175 |
+
* [*] Regular pluign maintenance. Updated readme file. Tested plugin with some more populor themes.
|
176 |
+
|
177 |
+
= 2.3.1 (08, May 2020) =
|
178 |
+
* [+] 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".
|
179 |
+
* [+] Update - Minor change in CSS and JS.
|
180 |
+
* [*] Template File - Minor template file has been updated. If you have override template file then verify with latest copy.
|
181 |
+
|
182 |
= 2.3 (13, April 2020) =
|
183 |
* [+] New - Added Gutenberg block support. Now use plugin easily with Gutenberg!
|
184 |
* [+] 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.
|
templates/carousel/design-1.php
CHANGED
@@ -9,26 +9,24 @@
|
|
9 |
// Exit if accessed directly
|
10 |
if ( !defined( 'ABSPATH' ) ) exit;
|
11 |
?>
|
12 |
-
|
13 |
<div class="wppsac-carousel-slides">
|
14 |
<?php if( has_post_thumbnail() ) { ?>
|
15 |
<div class="wppsac-post-image-bg">
|
16 |
-
<a href="<?php the_permalink(); ?>">
|
17 |
-
<img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
|
18 |
</a>
|
19 |
</div>
|
20 |
-
<?php } ?>
|
21 |
-
<div class="wppsac-post-content-position">
|
22 |
<?php if( $showCategory ) { ?>
|
23 |
-
<div class="wppsac-post-categories">
|
24 |
-
|
25 |
-
</div>
|
26 |
-
<?php } ?>
|
27 |
<h2 class="wppsac-post-title">
|
28 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
29 |
</h2>
|
30 |
-
<?php if( $showDate || $showAuthor ) { ?>
|
31 |
-
<div class="wppsac-post-date">
|
32 |
<?php if($showAuthor) { ?>
|
33 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
34 |
<?php }
|
@@ -37,22 +35,21 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
37 |
if( $showDate ) { echo get_the_date(); } ?>
|
38 |
</div>
|
39 |
<?php } ?>
|
40 |
-
|
41 |
-
<?php if( $showContent ) { ?>
|
42 |
<div class="wppsac-post-content">
|
43 |
<?php
|
44 |
-
$customExcerpt = get_the_excerpt();
|
45 |
if ( has_excerpt($post->ID) ) { ?>
|
46 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
47 |
<?php } else {
|
48 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
49 |
-
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
50 |
<?php } ?>
|
51 |
-
|
52 |
<?php if( $showreadmore ) { ?>
|
53 |
<a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
54 |
-
<?php } ?>
|
55 |
</div>
|
56 |
-
<?php } ?>
|
57 |
</div>
|
58 |
</div>
|
9 |
// Exit if accessed directly
|
10 |
if ( !defined( 'ABSPATH' ) ) exit;
|
11 |
?>
|
12 |
+
|
13 |
<div class="wppsac-carousel-slides">
|
14 |
<?php if( has_post_thumbnail() ) { ?>
|
15 |
<div class="wppsac-post-image-bg">
|
16 |
+
<a href="<?php the_permalink(); ?>">
|
17 |
+
<img class="wppsac-post-image-bg" <?php if($lazyload) { ?>data-lazy="<?php echo esc_url($feat_image); ?>" <?php } ?> src="<?php if(empty($lazyload)) { echo esc_url($feat_image); } ?>" alt="<?php the_title_attribute(); ?>" />
|
18 |
</a>
|
19 |
</div>
|
20 |
+
<?php } ?>
|
21 |
+
<div class="wppsac-post-content-position">
|
22 |
<?php if( $showCategory ) { ?>
|
23 |
+
<div class="wppsac-post-categories"><?php echo $cat_list; ?></div>
|
24 |
+
<?php } ?>
|
|
|
|
|
25 |
<h2 class="wppsac-post-title">
|
26 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
27 |
</h2>
|
28 |
+
<?php if( $showDate || $showAuthor ) { ?>
|
29 |
+
<div class="wppsac-post-date">
|
30 |
<?php if($showAuthor) { ?>
|
31 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
32 |
<?php }
|
35 |
if( $showDate ) { echo get_the_date(); } ?>
|
36 |
</div>
|
37 |
<?php } ?>
|
38 |
+
<?php if( $showContent ) { ?>
|
|
|
39 |
<div class="wppsac-post-content">
|
40 |
<?php
|
41 |
+
$customExcerpt = get_the_excerpt();
|
42 |
if ( has_excerpt($post->ID) ) { ?>
|
43 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
44 |
<?php } else {
|
45 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
46 |
+
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
47 |
<?php } ?>
|
48 |
+
|
49 |
<?php if( $showreadmore ) { ?>
|
50 |
<a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
51 |
+
<?php } ?>
|
52 |
</div>
|
53 |
+
<?php } ?>
|
54 |
</div>
|
55 |
</div>
|
templates/slider/design-1.php
CHANGED
@@ -12,17 +12,15 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
12 |
|
13 |
<div class="wppsac-post-slides">
|
14 |
<div class="wppsac-post-content-position">
|
15 |
-
<div class="wppsac-post-content-left wp-medium-8 wpcolumns">
|
16 |
<?php if( $showCategory ) { ?>
|
17 |
-
<div class="wppsac-post-categories">
|
18 |
-
|
19 |
-
</div>
|
20 |
-
<?php } ?>
|
21 |
<h2 class="wppsac-post-title">
|
22 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
23 |
</h2>
|
24 |
-
<?php if( $showDate || $showAuthor ) {
|
25 |
-
<div class="wppsac-post-date">
|
26 |
<?php if( $showAuthor ) { ?>
|
27 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
28 |
<?php }
|
@@ -32,17 +30,17 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
32 |
</div>
|
33 |
<?php } ?>
|
34 |
|
35 |
-
<?php if( $showContent ) { ?>
|
36 |
<div class="wppsac-post-content">
|
37 |
<?php
|
38 |
-
$customExcerpt = get_the_excerpt();
|
39 |
if ( has_excerpt($post->ID) ) { ?>
|
40 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
41 |
<?php } else {
|
42 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
43 |
-
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
44 |
<?php } ?>
|
45 |
-
|
46 |
<?php if( $showreadmore ) { ?>
|
47 |
<a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
48 |
<?php } ?>
|
@@ -52,7 +50,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
52 |
<div class="wppsac-post-image-bg">
|
53 |
<a href="<?php the_permalink(); ?>">
|
54 |
<?php if( has_post_thumbnail() ) { ?>
|
55 |
-
<img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
|
56 |
<?php } ?>
|
57 |
</a>
|
58 |
</div>
|
12 |
|
13 |
<div class="wppsac-post-slides">
|
14 |
<div class="wppsac-post-content-position">
|
15 |
+
<div class="wppsac-post-content-left wp-medium-8 wpcolumns">
|
16 |
<?php if( $showCategory ) { ?>
|
17 |
+
<div class="wppsac-post-categories"><?php echo $cat_list; ?></div>
|
18 |
+
<?php } ?>
|
|
|
|
|
19 |
<h2 class="wppsac-post-title">
|
20 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
21 |
</h2>
|
22 |
+
<?php if( $showDate || $showAuthor ) { ?>
|
23 |
+
<div class="wppsac-post-date">
|
24 |
<?php if( $showAuthor ) { ?>
|
25 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
26 |
<?php }
|
30 |
</div>
|
31 |
<?php } ?>
|
32 |
|
33 |
+
<?php if( $showContent ) { ?>
|
34 |
<div class="wppsac-post-content">
|
35 |
<?php
|
36 |
+
$customExcerpt = get_the_excerpt();
|
37 |
if ( has_excerpt($post->ID) ) { ?>
|
38 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
39 |
<?php } else {
|
40 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
41 |
+
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
42 |
<?php } ?>
|
43 |
+
|
44 |
<?php if( $showreadmore ) { ?>
|
45 |
<a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
46 |
<?php } ?>
|
50 |
<div class="wppsac-post-image-bg">
|
51 |
<a href="<?php the_permalink(); ?>">
|
52 |
<?php if( has_post_thumbnail() ) { ?>
|
53 |
+
<img <?php if($lazyload) { ?>data-lazy="<?php echo esc_url($feat_image); ?>" <?php } ?> src="<?php if(empty($lazyload)) { echo esc_url($feat_image); } ?>" alt="<?php the_title_attribute(); ?>" />
|
54 |
<?php } ?>
|
55 |
</a>
|
56 |
</div>
|
templates/slider/design-2.php
CHANGED
@@ -16,15 +16,13 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
16 |
<div class="wppsac-post-content-left wp-medium-6 wpcolumns">
|
17 |
<div class="wppsac-post-inner-content">
|
18 |
<?php if( $showCategory ) { ?>
|
19 |
-
<div class="wppsac-post-categories">
|
20 |
-
<?php echo $cat_list; ?>
|
21 |
-
</div>
|
22 |
<?php } ?>
|
23 |
<h2 class="wppsac-post-title">
|
24 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
25 |
</h2>
|
26 |
-
<?php if( $showDate || $showAuthor ) { ?>
|
27 |
-
<div class="wppsac-post-date">
|
28 |
<?php if( $showAuthor ) { ?>
|
29 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
30 |
<?php }
|
@@ -33,17 +31,17 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
33 |
if( $showDate ) { echo get_the_date(); } ?>
|
34 |
</div>
|
35 |
<?php } ?>
|
36 |
-
<?php if( $showContent ) { ?>
|
37 |
<div class="wppsac-post-content">
|
38 |
<?php
|
39 |
-
$customExcerpt = get_the_excerpt();
|
40 |
if (has_excerpt($post->ID)) { ?>
|
41 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
42 |
<?php } else {
|
43 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
44 |
-
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
45 |
<?php } ?>
|
46 |
-
|
47 |
<?php if( $showreadmore ) { ?>
|
48 |
<a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
49 |
<?php } ?>
|
@@ -54,7 +52,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
54 |
<div class="wppsac-post-image-bg">
|
55 |
<a href="<?php the_permalink(); ?>">
|
56 |
<?php if( has_post_thumbnail() ) { ?>
|
57 |
-
<img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
|
58 |
<?php } ?>
|
59 |
</a>
|
60 |
</div>
|
16 |
<div class="wppsac-post-content-left wp-medium-6 wpcolumns">
|
17 |
<div class="wppsac-post-inner-content">
|
18 |
<?php if( $showCategory ) { ?>
|
19 |
+
<div class="wppsac-post-categories"><?php echo $cat_list; ?></div>
|
|
|
|
|
20 |
<?php } ?>
|
21 |
<h2 class="wppsac-post-title">
|
22 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
23 |
</h2>
|
24 |
+
<?php if( $showDate || $showAuthor ) { ?>
|
25 |
+
<div class="wppsac-post-date">
|
26 |
<?php if( $showAuthor ) { ?>
|
27 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
28 |
<?php }
|
31 |
if( $showDate ) { echo get_the_date(); } ?>
|
32 |
</div>
|
33 |
<?php } ?>
|
34 |
+
<?php if( $showContent ) { ?>
|
35 |
<div class="wppsac-post-content">
|
36 |
<?php
|
37 |
+
$customExcerpt = get_the_excerpt();
|
38 |
if (has_excerpt($post->ID)) { ?>
|
39 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
40 |
<?php } else {
|
41 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
42 |
+
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
43 |
<?php } ?>
|
44 |
+
|
45 |
<?php if( $showreadmore ) { ?>
|
46 |
<a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
47 |
<?php } ?>
|
52 |
<div class="wppsac-post-image-bg">
|
53 |
<a href="<?php the_permalink(); ?>">
|
54 |
<?php if( has_post_thumbnail() ) { ?>
|
55 |
+
<img <?php if($lazyload) { ?>data-lazy="<?php echo esc_url($feat_image); ?>" <?php } ?> src="<?php if(empty($lazyload)) { echo esc_url($feat_image); } ?>" alt="<?php the_title_attribute(); ?>" />
|
56 |
<?php } ?>
|
57 |
</a>
|
58 |
</div>
|
templates/slider/design-3.php
CHANGED
@@ -13,24 +13,22 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
13 |
<div class="wppsac-post-slides">
|
14 |
<div class="wppsac-post-overlay">
|
15 |
<div class="wppsac-post-image-bg">
|
16 |
-
<a href="<?php the_permalink(); ?>">
|
17 |
<?php if( has_post_thumbnail() ) { ?>
|
18 |
-
<img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
|
19 |
<?php } ?>
|
20 |
</a>
|
21 |
</div>
|
22 |
<?php if( $showCategory ) { ?>
|
23 |
-
<div class="wppsac-post-categories">
|
24 |
-
<?php echo $cat_list; ?>
|
25 |
-
</div>
|
26 |
<?php } ?>
|
27 |
<div class="wppsac-post-short-content">
|
28 |
<div class="wppsac-item-meta bottom">
|
29 |
<h2 class="wppsac-post-title">
|
30 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
31 |
</h2>
|
32 |
-
<?php if( $showDate || $showAuthor ) { ?>
|
33 |
-
<div class="wppsac-post-date">
|
34 |
<?php if($showAuthor) { ?>
|
35 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
36 |
<?php }
|
@@ -39,16 +37,16 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
39 |
if( $showDate ) { echo get_the_date(); } ?>
|
40 |
</div>
|
41 |
<?php } ?>
|
42 |
-
|
43 |
<?php if( $showContent ) { ?>
|
44 |
<div class="wppsac-post-content">
|
45 |
<?php
|
46 |
-
$customExcerpt = get_the_excerpt();
|
47 |
if ( has_excerpt($post->ID) ) { ?>
|
48 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
49 |
<?php } else {
|
50 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
51 |
-
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
52 |
<?php } ?>
|
53 |
|
54 |
<?php if( $showreadmore ) { ?>
|
13 |
<div class="wppsac-post-slides">
|
14 |
<div class="wppsac-post-overlay">
|
15 |
<div class="wppsac-post-image-bg">
|
16 |
+
<a href="<?php the_permalink(); ?>">
|
17 |
<?php if( has_post_thumbnail() ) { ?>
|
18 |
+
<img <?php if($lazyload) { ?>data-lazy="<?php echo esc_url($feat_image); ?>" <?php } ?> src="<?php if(empty($lazyload)) { echo esc_url($feat_image); } ?>" alt="<?php the_title_attribute(); ?>" />
|
19 |
<?php } ?>
|
20 |
</a>
|
21 |
</div>
|
22 |
<?php if( $showCategory ) { ?>
|
23 |
+
<div class="wppsac-post-categories"><?php echo $cat_list; ?></div>
|
|
|
|
|
24 |
<?php } ?>
|
25 |
<div class="wppsac-post-short-content">
|
26 |
<div class="wppsac-item-meta bottom">
|
27 |
<h2 class="wppsac-post-title">
|
28 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
29 |
</h2>
|
30 |
+
<?php if( $showDate || $showAuthor ) { ?>
|
31 |
+
<div class="wppsac-post-date">
|
32 |
<?php if($showAuthor) { ?>
|
33 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
34 |
<?php }
|
37 |
if( $showDate ) { echo get_the_date(); } ?>
|
38 |
</div>
|
39 |
<?php } ?>
|
40 |
+
|
41 |
<?php if( $showContent ) { ?>
|
42 |
<div class="wppsac-post-content">
|
43 |
<?php
|
44 |
+
$customExcerpt = get_the_excerpt();
|
45 |
if ( has_excerpt($post->ID) ) { ?>
|
46 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
47 |
<?php } else {
|
48 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
49 |
+
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
50 |
<?php } ?>
|
51 |
|
52 |
<?php if( $showreadmore ) { ?>
|
templates/slider/design-4.php
CHANGED
@@ -17,22 +17,20 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
17 |
<div class="wp-medium-5 wpcolumns">
|
18 |
<div class="wppsac-post-image-bg">
|
19 |
<a href="<?php the_permalink(); ?>">
|
20 |
-
<img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
|
21 |
</a>
|
22 |
-
</div>
|
23 |
</div>
|
24 |
-
<?php } ?>
|
25 |
<div class="<?php if ( ! empty($feat_image) ) { ?> wp-medium-7 <?php } else { ?> wp-medium-12 <?php } ?> wpcolumns">
|
26 |
<?php if( $showCategory ) { ?>
|
27 |
-
<div class="wppsac-post-categories">
|
28 |
-
<?php echo $cat_list; ?>
|
29 |
-
</div>
|
30 |
<?php } ?>
|
31 |
<h2 class="wppsac-post-title">
|
32 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
33 |
</h2>
|
34 |
-
<?php if( $showDate || $showAuthor ) { ?>
|
35 |
-
<div class="wppsac-post-date">
|
36 |
<?php if($showAuthor) { ?>
|
37 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
38 |
<?php }
|
@@ -41,17 +39,17 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
41 |
if( $showDate ) { echo get_the_date(); } ?>
|
42 |
</div>
|
43 |
<?php } ?>
|
44 |
-
<?php if ($showContent ) { ?>
|
45 |
<div class="wppsac-post-content">
|
46 |
<?php
|
47 |
-
$customExcerpt = get_the_excerpt();
|
48 |
if (has_excerpt($post->ID)) { ?>
|
49 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
50 |
<?php } else {
|
51 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
52 |
-
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
53 |
<?php } ?>
|
54 |
-
|
55 |
<?php if($showreadmore) { ?>
|
56 |
<a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
57 |
<?php } ?>
|
17 |
<div class="wp-medium-5 wpcolumns">
|
18 |
<div class="wppsac-post-image-bg">
|
19 |
<a href="<?php the_permalink(); ?>">
|
20 |
+
<img <?php if($lazyload) { ?>data-lazy="<?php echo esc_url($feat_image); ?>" <?php } ?> src="<?php if(empty($lazyload)) { echo esc_url($feat_image); } ?>" alt="<?php the_title_attribute(); ?>" />
|
21 |
</a>
|
22 |
+
</div>
|
23 |
</div>
|
24 |
+
<?php } ?>
|
25 |
<div class="<?php if ( ! empty($feat_image) ) { ?> wp-medium-7 <?php } else { ?> wp-medium-12 <?php } ?> wpcolumns">
|
26 |
<?php if( $showCategory ) { ?>
|
27 |
+
<div class="wppsac-post-categories"><?php echo $cat_list; ?></div>
|
|
|
|
|
28 |
<?php } ?>
|
29 |
<h2 class="wppsac-post-title">
|
30 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
31 |
</h2>
|
32 |
+
<?php if( $showDate || $showAuthor ) { ?>
|
33 |
+
<div class="wppsac-post-date">
|
34 |
<?php if($showAuthor) { ?>
|
35 |
<span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span>
|
36 |
<?php }
|
39 |
if( $showDate ) { echo get_the_date(); } ?>
|
40 |
</div>
|
41 |
<?php } ?>
|
42 |
+
<?php if ($showContent ) { ?>
|
43 |
<div class="wppsac-post-content">
|
44 |
<?php
|
45 |
+
$customExcerpt = get_the_excerpt();
|
46 |
if (has_excerpt($post->ID)) { ?>
|
47 |
<div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
|
48 |
<?php } else {
|
49 |
$excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
|
50 |
+
<div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
51 |
<?php } ?>
|
52 |
+
|
53 |
<?php if($showreadmore) { ?>
|
54 |
<a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
55 |
<?php } ?>
|
wp-recent-post-slider.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Domain Path: /languages/
|
7 |
* Description: Add and display Responsive WordPresss Recent Post Slider and Carousel on your website with 4 designs (Slider) and 1 designs (Carousel) using a shortcode. Also added Gutenberg block support.
|
8 |
* Author: WP OnlineSupport
|
9 |
-
* Version: 2.3
|
10 |
* Author URI: https://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
@@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
24 |
* @since 1.0.0
|
25 |
*/
|
26 |
if( !defined( 'WPRPS_VERSION' ) ) {
|
27 |
-
define( 'WPRPS_VERSION', '2.3' ); // Version of plugin
|
28 |
}
|
29 |
if( !defined( 'WPRPS_DIR' ) ) {
|
30 |
define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
@@ -36,9 +36,46 @@ if( !defined( 'WPRPS_POST_TYPE' ) ) {
|
|
36 |
define( 'WPRPS_POST_TYPE', 'post' ); // Plugin post type
|
37 |
}
|
38 |
if(!defined( 'WPRPS_PLUGIN_LINK' ) ) {
|
39 |
-
define( 'WPRPS_PLUGIN_LINK', 'https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/?utm_source=WP&utm_medium=
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
/**
|
43 |
* Activation Hook
|
44 |
*
|
@@ -107,18 +144,6 @@ function wprps_plugin_admin_notice() {
|
|
107 |
// Action to display notice
|
108 |
add_action( 'admin_notices', 'wprps_plugin_admin_notice');
|
109 |
|
110 |
-
/**
|
111 |
-
* Load Text Domain
|
112 |
-
* This gets the plugin ready for translation
|
113 |
-
*
|
114 |
-
* @package WP Responsive Recent Post Slider
|
115 |
-
* @since 2.3
|
116 |
-
*/
|
117 |
-
function wprps_load_textdomain() {
|
118 |
-
load_plugin_textdomain( 'wp-responsive-recent-post-slider', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
|
119 |
-
}
|
120 |
-
add_action('plugins_loaded', 'wprps_load_textdomain');
|
121 |
-
|
122 |
// Function file
|
123 |
require_once( WPRPS_DIR . '/includes/wppsac-function.php' );
|
124 |
|
@@ -155,20 +180,6 @@ function wpos_analytics_anl18_load() {
|
|
155 |
'type' => 'plugin',
|
156 |
'menu' => 'wprps-about',
|
157 |
'text_domain' => 'wp-responsive-recent-post-slider',
|
158 |
-
'promotion' => array(
|
159 |
-
'bundle' => array(
|
160 |
-
'name' => 'Download FREE 50+ Plugins, 10+ Themes and Dashboard Plugin',
|
161 |
-
'desc' => 'Download FREE 50+ Plugins, 10+ Themes and Dashboard Plugin',
|
162 |
-
'file' => 'https://www.wponlinesupport.com/latest/wpos-free-50-plugins-plus-12-themes.zip'
|
163 |
-
)
|
164 |
-
),
|
165 |
-
'offers' => array(
|
166 |
-
'trial_premium' => array(
|
167 |
-
'image' => 'http://analytics.wponlinesupport.com/?anylc_img=18',
|
168 |
-
'link' => 'http://analytics.wponlinesupport.com/?anylc_redirect=18',
|
169 |
-
'desc' => 'Or start using the plugin from admin menu',
|
170 |
-
)
|
171 |
-
),
|
172 |
));
|
173 |
|
174 |
return $wpos_analytics;
|
6 |
* Domain Path: /languages/
|
7 |
* Description: Add and display Responsive WordPresss Recent Post Slider and Carousel on your website with 4 designs (Slider) and 1 designs (Carousel) using a shortcode. Also added Gutenberg block support.
|
8 |
* Author: WP OnlineSupport
|
9 |
+
* Version: 2.3.3
|
10 |
* Author URI: https://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
24 |
* @since 1.0.0
|
25 |
*/
|
26 |
if( !defined( 'WPRPS_VERSION' ) ) {
|
27 |
+
define( 'WPRPS_VERSION', '2.3.3' ); // Version of plugin
|
28 |
}
|
29 |
if( !defined( 'WPRPS_DIR' ) ) {
|
30 |
define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
36 |
define( 'WPRPS_POST_TYPE', 'post' ); // Plugin post type
|
37 |
}
|
38 |
if(!defined( 'WPRPS_PLUGIN_LINK' ) ) {
|
39 |
+
define( 'WPRPS_PLUGIN_LINK', 'https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/?utm_source=WP&utm_medium=Post-Slider&utm_campaign=Features-PRO' ); // Plugin link
|
40 |
}
|
41 |
|
42 |
+
/**
|
43 |
+
* Load Text Domain
|
44 |
+
* This gets the plugin ready for translation
|
45 |
+
*
|
46 |
+
* @package WP Responsive Recent Post Slider
|
47 |
+
* @since 2.3
|
48 |
+
*/
|
49 |
+
function wprps_load_textdomain() {
|
50 |
+
|
51 |
+
global $wp_version;
|
52 |
+
|
53 |
+
// Set filter for plugin's languages directory
|
54 |
+
$wpls_pro_lang_dir = dirname( plugin_basename( __FILE__ ) ) . '/languages/';
|
55 |
+
$wpls_pro_lang_dir = apply_filters( 'wprps_languages_directory', $wpls_pro_lang_dir );
|
56 |
+
|
57 |
+
// Traditional WordPress plugin locale filter.
|
58 |
+
$get_locale = get_locale();
|
59 |
+
|
60 |
+
if ( $wp_version >= 4.7 ) {
|
61 |
+
$get_locale = get_user_locale();
|
62 |
+
}
|
63 |
+
|
64 |
+
// Traditional WordPress plugin locale filter
|
65 |
+
$locale = apply_filters( 'plugin_locale', $get_locale, 'wp-responsive-recent-post-slider' );
|
66 |
+
$mofile = sprintf( '%1$s-%2$s.mo', 'wp-responsive-recent-post-slider', $locale );
|
67 |
+
|
68 |
+
// Setup paths to current locale file
|
69 |
+
$mofile_global = WP_LANG_DIR . '/plugins/' . basename( WPRPS_DIR ) . '/' . $mofile;
|
70 |
+
|
71 |
+
if ( file_exists( $mofile_global ) ) { // Look in global /wp-content/languages/plugin-name folder
|
72 |
+
load_textdomain( 'wp-responsive-recent-post-slider', $mofile_global );
|
73 |
+
} else { // Load the default language files
|
74 |
+
load_plugin_textdomain( 'wp-responsive-recent-post-slider', false, $wpls_pro_lang_dir );
|
75 |
+
}
|
76 |
+
}
|
77 |
+
add_action('plugins_loaded', 'wprps_load_textdomain');
|
78 |
+
|
79 |
/**
|
80 |
* Activation Hook
|
81 |
*
|
144 |
// Action to display notice
|
145 |
add_action( 'admin_notices', 'wprps_plugin_admin_notice');
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
// Function file
|
148 |
require_once( WPRPS_DIR . '/includes/wppsac-function.php' );
|
149 |
|
180 |
'type' => 'plugin',
|
181 |
'menu' => 'wprps-about',
|
182 |
'text_domain' => 'wp-responsive-recent-post-slider',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
));
|
184 |
|
185 |
return $wpos_analytics;
|
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 |
}
|