Version Description
(24, May 2022) = * [*] Tested up to: 6.0
Download this release
Release Info
Developer | wponlinesupport |
Plugin | WP News and Scrolling Widgets |
Version | 4.5.7 |
Comparing to | |
See all releases |
Code changes from version 4.4.3 to 4.5.7
- assets/css/sp-news-admin.css +90 -1
- assets/images/SlidersPack-50.png +0 -0
- assets/images/beaver-icon.png +0 -0
- assets/images/divi-icon.png +0 -0
- assets/images/elementor-icon.png +0 -0
- assets/images/essential-plugin-logo.png +0 -0
- assets/images/fb-icon.png +0 -0
- assets/images/g-logo.png +0 -0
- assets/images/gutenberg-icon.png +0 -0
- assets/images/inboundwp-50.png +0 -0
- assets/images/page-builder-icon.png +0 -0
- assets/images/page-builder-support.jpg +0 -0
- assets/images/popup-anything-icon.png +0 -0
- assets/images/popup-icon/14-days-money-back-guarantee.png +0 -0
- assets/images/popup-icon/blog-grid.png +0 -0
- assets/images/popup-icon/blog-list-view.png +0 -0
- assets/images/popup-icon/blog-masonry.png +0 -0
- assets/images/popup-icon/carousel.png +0 -0
- assets/images/popup-icon/centermode.png +0 -0
- assets/images/popup-icon/grid-box.png +0 -0
- assets/images/popup-icon/popup-design.png +0 -0
- assets/images/popup-icon/slider.png +0 -0
- assets/images/rating.png +0 -0
- assets/images/security-icon.png +0 -0
- assets/images/site-origin-icon.png +0 -0
- assets/images/utility-50.png +0 -0
- assets/images/vc-icon.png +0 -0
- assets/images/wordpress-icon-logo.png +0 -0
- assets/images/wpbakery-icon.png +0 -0
- assets/images/wpos-team.png +0 -0
- assets/js/blocks.build.js +1 -1
- includes/admin/class-wpnw-admin.php +107 -3
- includes/admin/metabox/wpnw-post-setting-metabox-pro.php +84 -0
- includes/admin/settings/premium.php +201 -164
- includes/admin/settings/solutions-features.php +220 -0
- includes/admin/settings/trail-premium.php +301 -0
- includes/admin/supports/gutenberg-block.php +5 -5
- includes/admin/wpnw-how-it-work.php +34 -26
- includes/class-wpnw-script.php +9 -0
- includes/functions.php +0 -13
- languages/sp-news-and-widget-de_DE.mo +0 -0
- languages/sp-news-and-widget-de_DE.po +374 -106
- languages/sp-news-and-widget-en_US-wpnw-block-js.json +1 -1
- languages/sp-news-and-widget-es_ES.mo +0 -0
- languages/sp-news-and-widget-es_ES.po +367 -111
- languages/sp-news-and-widget-fr_FR.mo +0 -0
- languages/sp-news-and-widget-fr_FR.po +374 -106
- languages/sp-news-and-widget-pl_PL.mo +0 -0
- languages/sp-news-and-widget-pl_PL.po +380 -109
- languages/sp-news-and-widget.pot +225 -475
- readme.txt +63 -10
- sp-news-and-widget.php +29 -8
- wpos-analytics/assets/images/wpos-logo.png +0 -0
- wpos-analytics/assets/js/wpos-anylc-admin.js +42 -42
- wpos-analytics/includes/class-anylc-admin.php +459 -459
- wpos-analytics/includes/class-anylc-script.php +64 -64
- wpos-analytics/includes/wpos-anylc-function.php +330 -328
- wpos-analytics/templates/analytic.php +93 -93
- wpos-analytics/templates/offers.php +72 -72
- wpos-analytics/templates/optout-popup.php +2 -2
- wpos-analytics/wpos-analytics.php +250 -250
- wpos-plugins/assets/images/essentialplugin-logo.png +0 -0
- wpos-plugins/assets/images/wponlinesupport-logo.png +0 -0
- wpos-plugins/includes/admin/class-espbw-admin.php +1 -1
- wpos-plugins/includes/admin/views/dashboard.php +2 -3
assets/css/sp-news-admin.css
CHANGED
@@ -11,4 +11,93 @@
|
|
11 |
.fl-builder-settings-fields .wpnw-widget-wrap p input,
|
12 |
.fl-builder-settings-fields .wpnw-widget-wrap p select{width: 100%; max-width: 100%; margin: 5px 0 8px 0 !important;}
|
13 |
.so-content .wpnw-widget-wrap p input[type="checkbox"],
|
14 |
-
.fl-builder-settings-fields .wpnw-widget-wrap p input[type="checkbox"]{width: auto; vertical-align: middle;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
.fl-builder-settings-fields .wpnw-widget-wrap p input,
|
12 |
.fl-builder-settings-fields .wpnw-widget-wrap p select{width: 100%; max-width: 100%; margin: 5px 0 8px 0 !important;}
|
13 |
.so-content .wpnw-widget-wrap p input[type="checkbox"],
|
14 |
+
.fl-builder-settings-fields .wpnw-widget-wrap p input[type="checkbox"]{width: auto; vertical-align: middle;}
|
15 |
+
|
16 |
+
/* Meta CSS */
|
17 |
+
.wpnw-pro-tag {padding: 4px 7px 4px 5px;background-color:#cdd9f3;color: #1e2b48; position: relative; font-size: 10px; margin: 0 10px; display: inline-block; line-height: 1.1;}
|
18 |
+
.wpnw-pro-tag::before { content: ""; left: -10px; top: 0; border-top: 10px solid transparent;border-right: 10px solid #cdd9f3;border-bottom: 10px solid transparent; position: absolute;}
|
19 |
+
.wpnw-pro-feature { opacity: 0.5;}
|
20 |
+
.wpnw-pro-feature:hover{opacity: 0.8;}
|
21 |
+
.pro-notice{background-color: #fcecce; border: 1px dashed #f8c057; padding: 3px 10px; font-size:15px;}
|
22 |
+
#wpnw-post-metabox-pro tr.wpnw-pro-feature{border-bottom:1px solid #f1f1f1;}
|
23 |
+
#wpnw-post-metabox-pro tr.wpnw-pro-feature th,
|
24 |
+
#wpnw-post-metabox-pro tr.wpnw-pro-feature td{ vertical-align:top; padding:10px; }
|
25 |
+
#wpnw-post-metabox-pro tr.wpnw-pro-feature th:first-child,
|
26 |
+
#wpnw-post-metabox-pro tr.wpnw-pro-feature td:first-child{width:40%; }
|
27 |
+
|
28 |
+
/************** Start - Solutions & Features Page CSS ****************/
|
29 |
+
.wpnw-sf-center{text-align:center;}
|
30 |
+
.news_page_wpnw-solutions-features #wpwrap { background: #f7faff;}
|
31 |
+
.wpnw-sf-wrap{max-width: 860px;margin: 0 auto;}
|
32 |
+
.wpnw-sf-heading{font-size: 28px;font-weight: 700;letter-spacing: -1px;text-align: center;margin-top: 30px; margin-bottom:5px;}
|
33 |
+
.wpnw-sf-image{margin:25px 0 15px 0;}
|
34 |
+
.wpnw-sf-cont {color: #000; font-size:15px;}
|
35 |
+
.wpnw-sf-top-rsn p, .wpnw-sf-sf-testimonial-wrap p{color: #000; font-size:15px;}
|
36 |
+
.wpnw-sf-left{text-align:left;}
|
37 |
+
.wpnw-sf-feature__text h3{font-size: 22px;font-weight: 700;margin:0;}
|
38 |
+
.wpnw-sf-solutions-box-grid {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;
|
39 |
+
flex-direction: column;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;}
|
40 |
+
.wpnw-sf-team{margin-bottom:50px; border-radius: 10px;border: 1px solid #e5ecf6; padding:10px 30px 30px 30px;}
|
41 |
+
.wpnw-sf-blue{color:#6c63ff; font-weight:bold;}
|
42 |
+
.news_page_wpnw-solutions-features #wpcontent{padding: 0 0 40px; line-height: normal;}
|
43 |
+
.wpnw-sf-wrap .wpnw-sf-inr{padding: 30px 40px 0;}
|
44 |
+
.wpnw-sf-wrap .wpnw-sf-welcome-wrap{ margin-bottom:50px; position: relative; -webkit-box-sizing: border-box; box-sizing: border-box; background: #fff; padding: 30px; border-radius: 10px; border: 1px solid #e5ecf6; }
|
45 |
+
.wpnw-sf-welcome-wrap{margin-top:30px;}
|
46 |
+
|
47 |
+
.wpnw-sf-subtitle{color: #6c7781; font-size: 16px; font-weight: 600; margin-bottom: 6px;}
|
48 |
+
.wpnw-sf-title{font-size: 32px; font-weight: 600; color: #23282d; margin-top: 0; margin-bottom: 20px;}
|
49 |
+
.wpnw-sf-ttl{font-size: 23px; font-weight: 600; color: #23282d; margin-top: 0; margin-bottom: 20px;}
|
50 |
+
.wpnw-sf-content{margin: 0 0 20px; font-size: 22px; color: #646970;}
|
51 |
+
.wpnw-sf-btn{display: inline-block; font-size: 18px; padding: 10px 25px; border-radius: 100px; background-color: #46b450; border-color: #46b450; color: #fff !important; font-weight: 600; text-decoration: none;}
|
52 |
+
.wpnw-sf-btn-orange{ background-color: #FF1000; border-color: #FF1000 ;}
|
53 |
+
.wpnw-sf-btn:hover,
|
54 |
+
.wpnw-sf-btn:focus{background-color: #3fa548; border-color: #3fa548;}
|
55 |
+
.wpnw-sf-btn-orange:hover,
|
56 |
+
.wpnw-sf-btn-orange:focus {background-color: #D01003 ; border-color: #D01003 ;}
|
57 |
+
.wpnw-sf-fp-ttl{font-size: 23px; line-height: 1.4em; margin-bottom: 10px; font-weight: 600; text-align: center;}
|
58 |
+
.wpnw-sf-fp-box-wrp{display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 10px;}
|
59 |
+
.wpnw-sf-fp-box-wrp .wpnw-sf-fp-box{position: relative; border: 1px solid #c3e6cb; padding: 10px; text-align: center;}
|
60 |
+
.wpnw-sf-fp-box-wrp .wpnw-sf-pro-box{border: 1px solid #f5c6cb;}
|
61 |
+
.wpnw-sf-fp-box-wrp>*{flex: 0 0 26.8%;}
|
62 |
+
.wpnw-sf-fp-box-wrp i.dashicons{font-size: 25px; display: inline-block; color: #528bfa; width: 30px; height: 30px; line-height: 30px;}
|
63 |
+
.wpnw-sf-fp-box-wrp .wpnw-sf-box-ttl{font-size: 16px;}
|
64 |
+
.wpnw-sf-tag{position: absolute; display: inline-block; top: 0; right: 0; background-color: #d4edda; color: #155724; padding: 1px 8px; text-transform: uppercase; font-size: 12px; }
|
65 |
+
.wpnw-sf-pro-box .wpnw-sf-tag{background-color: #f8d7da; color: #721c24;}
|
66 |
+
|
67 |
+
.wpnw-rc-wrap{max-width: 550px; margin: 15px auto 0 auto; text-align: left;}
|
68 |
+
.wpnw-rc-wrap .wpnw-rc-inr{display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin-bottom: 15px;}
|
69 |
+
.wpnw-rc-wrap .wpnw-rc-icon{margin-right: 15px; width: 60px; height: 60px;}
|
70 |
+
.wpnw-rc-wrap .wpnw-rc-icon img{width: 100%; height: 100%;}
|
71 |
+
.wpnw-rc-wrap .wpnw-rc-inr h3{font-size: 16px; margin: 0 0 5px 0;}
|
72 |
+
.wpnw-rc-wrap .wpnw-rc-inr p{margin: 0;}
|
73 |
+
.wpnw-rc-wrap .wpnw-rc-bg-box{ background-color:#f1f1f1; border: 1px solid #d1d1d1; padding: 5px 10px; }
|
74 |
+
|
75 |
+
.wpnw-solutions-section{margin-bottom: 20px;}
|
76 |
+
.wpnw-solutions-box-wrap{display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 15px; margin-top:50px; margin-bottom:10px;}
|
77 |
+
.wpnw-solutions-box-wrap>*{flex: 1 0 21%;}
|
78 |
+
|
79 |
+
.wpnw-solutions-box-wrap .wpnw-box-ttl{background-color: #cce5ff; color: #004085; font-size: 16px; padding: 10px;}
|
80 |
+
.wpnw-solutions-box-wrap ul{padding: 0 10px; margin: 0;}
|
81 |
+
.wpnw-solutions-box-wrap ul li{position: relative; font-size: 14px; border-bottom: 1px solid #e7e7e7; margin: 0; padding: 8px 0;}
|
82 |
+
.wpnw-solutions-box-wrap ul li:last-child{border-bottom: none;}
|
83 |
+
|
84 |
+
.wpnw-sf-welcome-wrap{margin-top:30px;}
|
85 |
+
.wpnw-sf-features-ttl{margin-top:45px; margin-bottom: 15px;}
|
86 |
+
.wpnw-sf-features-ttl h2{margin-bottom: 5px; color: #155724;}
|
87 |
+
.wpnw-features-section .wpnw-features-section-inr{padding: 15px 30px; margin-bottom:30px; text-align:center;}
|
88 |
+
.wpnw-features-section ul.wpnw-features-box-grid{margin:0px;display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 15px; list-style: none !important; margin-bottom:15px;}
|
89 |
+
ul.wpnw-features-box-grid>*{flex: 1 0 30%; text-align:center; font-size:13px; font-weight:bold;}
|
90 |
+
ul.wpnw-features-box-grid li{border:1px solid #f1f1f1; padding:10px 0;}
|
91 |
+
ul.wpnw-features-box-grid li img{width:100%;}
|
92 |
+
|
93 |
+
.bg-highlight{background:#bde1f9;color:#000;padding: 0 5px; display:inline-block;}
|
94 |
+
.wpnw-testimonial-section-inr{text-align:center;}
|
95 |
+
.wpnw-testimonial-box-wrap{margin-bottom:15px;}
|
96 |
+
.wpnw-testimonial-box-wrap{display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 15px;}
|
97 |
+
.wpnw-testimonial-box-wrap>*{flex: 1 0 21%;}
|
98 |
+
.wpnw-testimonial-box-wrap .wpnw-testimonial-box-grid{border: 1px solid #ddd;background:#fff; box-shadow: 0 3px 2px rgba(0,0,0,.05);
|
99 |
+
padding: 30px;text-align: center;display: flex;flex-direction: column;align-items: center;}
|
100 |
+
.wpnw-testimonial-box-wrap h3{margin-top:0px;}
|
101 |
+
.wpnw-testimonial-clnt{margin:15px 0 0 0; font-size:16px; font-weight:bold;}
|
102 |
+
|
103 |
+
/************** End - Solutions & Features Page CSS ****************/
|
assets/images/SlidersPack-50.png
ADDED
Binary file
|
assets/images/beaver-icon.png
ADDED
Binary file
|
assets/images/divi-icon.png
ADDED
Binary file
|
assets/images/elementor-icon.png
ADDED
Binary file
|
assets/images/essential-plugin-logo.png
ADDED
Binary file
|
assets/images/fb-icon.png
ADDED
Binary file
|
assets/images/g-logo.png
ADDED
Binary file
|
assets/images/gutenberg-icon.png
ADDED
Binary file
|
assets/images/inboundwp-50.png
ADDED
Binary file
|
assets/images/page-builder-icon.png
ADDED
Binary file
|
assets/images/page-builder-support.jpg
ADDED
Binary file
|
assets/images/popup-anything-icon.png
ADDED
Binary file
|
assets/images/popup-icon/14-days-money-back-guarantee.png
ADDED
Binary file
|
assets/images/popup-icon/blog-grid.png
ADDED
Binary file
|
assets/images/popup-icon/blog-list-view.png
ADDED
Binary file
|
assets/images/popup-icon/blog-masonry.png
ADDED
Binary file
|
assets/images/popup-icon/carousel.png
ADDED
Binary file
|
assets/images/popup-icon/centermode.png
ADDED
Binary file
|
assets/images/popup-icon/grid-box.png
ADDED
Binary file
|
assets/images/popup-icon/popup-design.png
ADDED
Binary file
|
assets/images/popup-icon/slider.png
ADDED
Binary file
|
assets/images/rating.png
ADDED
Binary file
|
assets/images/security-icon.png
ADDED
Binary file
|
assets/images/site-origin-icon.png
ADDED
Binary file
|
assets/images/utility-50.png
ADDED
Binary file
|
assets/images/vc-icon.png
ADDED
Binary file
|
assets/images/wordpress-icon-logo.png
ADDED
Binary file
|
assets/images/wpbakery-icon.png
ADDED
Binary file
|
assets/images/wpos-team.png
ADDED
Binary file
|
assets/js/blocks.build.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(a){if(n[a])return n[a].exports;var l=n[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},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 a=n(2),l=(n.n(a),n(3)),s=(n.n(l),n(4)),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("wpnw/sp-news",{title:__("News Grid","sp-news-and-widget"),description:__("Display news post in a grid view with various layouts.","sp-news-and-widget"),icon:"feedback",category:"wpos_guten_block",keywords:[__("wpos"),__("sp news","sp-news-and-widget"),__("sp-news")],supports:{html:!1,multiple:!0},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t,"data-block-type":"wpnw-grid"}},edit:s.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 s(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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),o=wp.element,r=o.Component,p=o.Fragment,d=wp.components,w=d.PanelBody,m=d.Disabled,c=d.TextControl,u=d.ToggleControl,g=d.RangeControl,h=d.SelectControl,__=wp.i18n.__,f=(wp.data.select,wp.editor),b=f.InspectorControls,E=f.BlockControls,_=f.BlockAlignmentToolbar,k=function(e){function t(){a(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={isLoading:!1},e}return s(t,e),i(t,[{key:"ObjToString",value:function(e){var t=wp.blocks.getBlockAttributes("wpnw/sp-news"),n=["content_tail"],a="";for(var l in e)e.hasOwnProperty(l)&&"undefined"!==typeof e[l]&&e[l]!==t[l]&&(""!=jQuery.trim(e[l])||jQuery.inArray(l,n)>=0)&&(a+=l+'="'+e[l]+'" ');return a}},{key:"GetBooleanDropdown",value:function(){return[{value:"true",label:__("True","sp-news-and-widget")},{value:"false",label:__("False","sp-news-and-widget")}]}},{key:"GetDesigns",value:function(){return[{value:"design-1",label:__("Design 1","sp-news-and-widget")}]}},{key:"Getgridcolumns",value:function(){return[{value:"1",label:__("Grid 1","sp-news-and-widget")},{value:"2",label:__("Grid 2","sp-news-and-widget")},{value:"3",label:__("Grid 3","sp-news-and-widget")},{value:"4",label:__("Grid 4","sp-news-and-widget")},{value:"list",label:__("List","sp-news-and-widget")}]}},{key:"GetPaginationType",value:function(){return[{value:"numeric",label:__("Numeric","sp-news-and-widget")},{value:"prev-next",label:__("Previous - Next","sp-news-and-widget")}]}},{key:"GetLinkTargetDropdown",value:function(){return[{value:"self",label:__("Same Window","sp-news-and-widget")}]}},{key:"GetPostOrderby",value:function(){return[{value:"date",label:__("Post Date","sp-news-and-widget")},{value:"modified",label:__("Post Modified Date","sp-news-and-widget")},{value:"title",label:__("Post Title","sp-news-and-widget")},{value:"name",label:__("Post Slug","sp-news-and-widget")},{value:"ID",label:__("Post ID","sp-news-and-widget")},{value:"rand",label:__("Random","sp-news-and-widget")}]}},{key:"GetPostOrder",value:function(){return[{value:"desc",label:__("Descending","sp-news-and-widget")},{value:"asc",label:__("Ascending","sp-news-and-widget")}]}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes.content_words_limit,n=wp.data.select("core/editor").getEditorSettings(),a=n.alignWide;e.attributes;(parseInt(t)<=0||isNaN(parseInt(t)))&&this.props.setAttributes({content_words_limit:20}),a||this.props.setAttributes({align:void 0})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,a=t.grid,l=t.show_date,s=t.show_category_name,i=t.show_content,o=t.show_full_content,r=t.content_words_limit,d=t.limit,f=t.orderby,k=t.order,v=t.category,y=t.pagination,P=t.pagination_type,C=t.align,N=(t.className,this.state.isLoading,wp.element.createElement(b,null,wp.element.createElement(w,{title:__("General Parameters","sp-news-and-widget")},wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Design","sp-news-and-widget"),options:this.GetDesigns(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Choose design. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("News Heading","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Enter news heading. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(h,{label:__("Number of Columns","sp-news-and-widget"),value:a,options:this.Getgridcolumns(),onChange:function(e){return n({grid:e})}}),wp.element.createElement(m,null,wp.element.createElement(u,{label:__("Show Author","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Display post author. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(u,{label:__("Show Date","sp-news-and-widget"),checked:!!l,onChange:function(){return n({show_date:!l})}}),wp.element.createElement(u,{label:__("Show Category Name","sp-news-and-widget"),checked:!!s,onChange:function(){return n({show_category_name:!s})}}),wp.element.createElement(u,{label:__("Show Content","sp-news-and-widget"),checked:!!i,onChange:function(){return n({show_content:!i})}}),i&&wp.element.createElement(u,{label:__("Show Full Content","sp-news-and-widget"),checked:!!o,onChange:function(){return n({show_full_content:!o})}}),i&&!o&&wp.element.createElement(g,{label:__("Content Words Limit","sp-news-and-widget"),value:r,onChange:function(e){return n({content_words_limit:e})},min:1,max:1e3,help:__("Enter content word limit.","sp-news-and-widget")}),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Content Tail","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Display dots after the post content as continue reading. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Read More","sp-news-and-widget"),options:this.GetBooleanDropdown(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Display read more. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Read More Text","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Enter read more text. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Link Behavior","sp-news-and-widget"),options:this.GetLinkTargetDropdown(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Choose link behaviour. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(g,{label:__("Image Height","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Control height of the featured image. You can enter any numeric number. e.g 500. Leave empty for default height. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Media Size","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Choose WordPress registered image size. e.g thumbnail, medium, large, full. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Image Fit","sp-news-and-widget"),options:this.GetBooleanDropdown(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Fill the news image in a whole container. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))}))),wp.element.createElement(w,{title:__("Query Parameters","sp-news-and-widget"),initialOpen:!1},wp.element.createElement(g,{label:__("Limit","sp-news-and-widget"),value:d,onChange:function(e){return n({limit:e})},min:-1,max:1e3,help:__("Enter number of news post to be displayed. Enter -1 to display all.","sp-news-and-widget")}),wp.element.createElement(h,{label:__("Order By","sp-news-and-widget"),value:f,options:this.GetPostOrderby(),onChange:function(e){return n({orderby:e})}}),wp.element.createElement(h,{label:__("Order","sp-news-and-widget"),value:k,options:this.GetPostOrder(),onChange:function(e){return n({order:e})}}),wp.element.createElement(c,{label:__("Display Specific Category","sp-news-and-widget"),value:v,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.","sp-news-and-widget")},__("Enter category id to display categories wise.","sp-news-and-widget")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Disply Child Category","sp-news-and-widget"),options:this.GetBooleanDropdown(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("If you are using parent category then whether to display child category or not. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Exclude Category","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("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 ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Display Specific Posts","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Enter id of the post which you want to display. You can pass multiple ids with comma seperated. You can find id at relevant post listing page. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Exclude Post","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Enter id of the post which you do not want to display. You can pass multiple ids with comma seperated. You can find id at relevant post listing page. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Include Author","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("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 ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Exclude Author","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("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 ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),-1!=d&&wp.element.createElement(h,{label:__("Pagination","sp-news-and-widget"),value:y,options:this.GetBooleanDropdown(),onChange:function(e){return n({pagination:e})}}),-1!=d&&"true"==y&&wp.element.createElement(h,{label:__("Pagination Type","sp-news-and-widget"),value:P,options:this.GetPaginationType(),onChange:function(e){return n({pagination_type:e})}}),wp.element.createElement(m,null,wp.element.createElement(g,{label:__("Query Offset","sp-news-and-widget"),min:0,help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("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 ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})))));return wp.element.createElement(p,null,N,wp.element.createElement(E,null,wp.element.createElement(_,{value:C,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?"[sp_news "+t+"]":"[sp_news]";return wp.element.createElement("div",{className:"wpos-guten-shrt"},wp.element.createElement("div",{className:"wpos-guten-shrt-title"},wp.element.createElement("span",null,__("WP News and Scrolling Widgets - Grid","sp-news-and-widget"))),n,wp.element.createElement("div",{className:"wpos-guten-shrt-footer"},wp.element.createElement("span",null),__("Do you want to check demo of this plugin.","sp-news-and-widget")," ",wp.element.createElement("a",{href:Wpnwf_Block.free_demo_link,target:"_blank"},__("Click here","sp-news-and-widget"))),wp.element.createElement("div",{className:"wpos-guten-shrt-footer"},__("Do you also want to check premium version demo of this plugin.","sp-news-and-widget")," ",wp.element.createElement("a",{href:Wpnwf_Block.pro_demo_link,target:"_blank"},__("Click here","sp-news-and-widget"))))}}]),t}(r);t.a=k}]);
|
1 |
+
!function(e){function t(a){if(n[a])return n[a].exports;var l=n[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},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 a=n(2),l=(n.n(a),n(3)),s=(n.n(l),n(4)),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("wpnw/sp-news",{title:__("News Grid","sp-news-and-widget"),description:__("Display news post in a grid view with various layouts.","sp-news-and-widget"),icon:"feedback",category:"wpos_guten_block",keywords:[__("wpos"),__("sp news","sp-news-and-widget"),__("sp-news")],supports:{html:!1,multiple:!0},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t,"data-block-type":"wpnw-grid"}},edit:s.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 s(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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),o=wp.element,r=o.Component,p=o.Fragment,d=wp.components,w=d.PanelBody,m=d.Disabled,c=d.TextControl,u=d.ToggleControl,g=d.RangeControl,h=d.SelectControl,__=wp.i18n.__,f=(wp.data.select,wp.blockEditor),b=f.InspectorControls,E=f.BlockControls,_=f.BlockAlignmentToolbar,k=function(e){function t(){a(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={isLoading:!1},e}return s(t,e),i(t,[{key:"ObjToString",value:function(e){var t=wp.blocks.getBlockAttributes("wpnw/sp-news"),n=["content_tail"],a="";for(var l in e)e.hasOwnProperty(l)&&"undefined"!==typeof e[l]&&e[l]!==t[l]&&(""!=jQuery.trim(e[l])||jQuery.inArray(l,n)>=0)&&(a+=l+'="'+e[l]+'" ');return a}},{key:"GetBooleanDropdown",value:function(){return[{value:"true",label:__("True","sp-news-and-widget")},{value:"false",label:__("False","sp-news-and-widget")}]}},{key:"GetDesigns",value:function(){return[{value:"design-1",label:__("Design 1","sp-news-and-widget")}]}},{key:"Getgridcolumns",value:function(){return[{value:"1",label:__("Grid 1","sp-news-and-widget")},{value:"2",label:__("Grid 2","sp-news-and-widget")},{value:"3",label:__("Grid 3","sp-news-and-widget")},{value:"4",label:__("Grid 4","sp-news-and-widget")},{value:"list",label:__("List","sp-news-and-widget")}]}},{key:"GetPaginationType",value:function(){return[{value:"numeric",label:__("Numeric","sp-news-and-widget")},{value:"prev-next",label:__("Previous - Next","sp-news-and-widget")}]}},{key:"GetLinkTargetDropdown",value:function(){return[{value:"self",label:__("Same Window","sp-news-and-widget")}]}},{key:"GetPostOrderby",value:function(){return[{value:"date",label:__("Post Date","sp-news-and-widget")},{value:"modified",label:__("Post Modified Date","sp-news-and-widget")},{value:"title",label:__("Post Title","sp-news-and-widget")},{value:"name",label:__("Post Slug","sp-news-and-widget")},{value:"ID",label:__("Post ID","sp-news-and-widget")},{value:"rand",label:__("Random","sp-news-and-widget")}]}},{key:"GetPostOrder",value:function(){return[{value:"desc",label:__("Descending","sp-news-and-widget")},{value:"asc",label:__("Ascending","sp-news-and-widget")}]}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes.content_words_limit;e.attributes;(parseInt(t)<=0||isNaN(parseInt(t)))&&this.props.setAttributes({content_words_limit:20})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,a=t.grid,l=t.show_date,s=t.show_category_name,i=t.show_content,o=t.show_full_content,r=t.content_words_limit,d=t.limit,f=t.orderby,k=t.order,v=t.category,y=t.pagination,P=t.pagination_type,C=t.align,N=(t.className,this.state.isLoading,wp.element.createElement(b,null,wp.element.createElement(w,{title:__("General Parameters","sp-news-and-widget")},wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Design","sp-news-and-widget"),options:this.GetDesigns(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Choose design. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("News Heading","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Enter news heading. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(h,{label:__("Number of Columns","sp-news-and-widget"),value:a,options:this.Getgridcolumns(),onChange:function(e){return n({grid:e})}}),wp.element.createElement(m,null,wp.element.createElement(u,{label:__("Show Author","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Display post author. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(u,{label:__("Show Date","sp-news-and-widget"),checked:!!l,onChange:function(){return n({show_date:!l})}}),wp.element.createElement(u,{label:__("Show Category Name","sp-news-and-widget"),checked:!!s,onChange:function(){return n({show_category_name:!s})}}),wp.element.createElement(u,{label:__("Show Content","sp-news-and-widget"),checked:!!i,onChange:function(){return n({show_content:!i})}}),i&&wp.element.createElement(u,{label:__("Show Full Content","sp-news-and-widget"),checked:!!o,onChange:function(){return n({show_full_content:!o})}}),i&&!o&&wp.element.createElement(g,{label:__("Content Words Limit","sp-news-and-widget"),value:r,onChange:function(e){return n({content_words_limit:e})},min:1,max:1e3,help:__("Enter content word limit.","sp-news-and-widget")}),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Content Tail","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Display dots after the post content as continue reading. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Read More","sp-news-and-widget"),options:this.GetBooleanDropdown(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Display read more. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Read More Text","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Enter read more text. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Link Behavior","sp-news-and-widget"),options:this.GetLinkTargetDropdown(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Choose link behaviour. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(g,{label:__("Image Height","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Control height of the featured image. You can enter any numeric number. e.g 500. Leave empty for default height. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Media Size","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Choose WordPress registered image size. e.g thumbnail, medium, large, full. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Image Fit","sp-news-and-widget"),options:this.GetBooleanDropdown(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Fill the news image in a whole container. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))}))),wp.element.createElement(w,{title:__("Query Parameters","sp-news-and-widget"),initialOpen:!1},wp.element.createElement(g,{label:__("Limit","sp-news-and-widget"),value:d,onChange:function(e){return n({limit:e})},min:-1,max:1e3,help:__("Enter number of news post to be displayed. Enter -1 to display all.","sp-news-and-widget")}),wp.element.createElement(h,{label:__("Order By","sp-news-and-widget"),value:f,options:this.GetPostOrderby(),onChange:function(e){return n({orderby:e})}}),wp.element.createElement(h,{label:__("Order","sp-news-and-widget"),value:k,options:this.GetPostOrder(),onChange:function(e){return n({order:e})}}),wp.element.createElement(c,{label:__("Display Specific Category","sp-news-and-widget"),value:v,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.","sp-news-and-widget")},__("Enter category id to display categories wise.","sp-news-and-widget")," [?]")}),wp.element.createElement(m,null,wp.element.createElement(h,{label:__("Disply Child Category","sp-news-and-widget"),options:this.GetBooleanDropdown(),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("If you are using parent category then whether to display child category or not. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Exclude Category","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("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 ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Display Specific Posts","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Enter id of the post which you want to display. You can pass multiple ids with comma seperated. You can find id at relevant post listing page. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Exclude Post","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("Enter id of the post which you do not want to display. You can pass multiple ids with comma seperated. You can find id at relevant post listing page. Upgarade to ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Include Author","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("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 ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),wp.element.createElement(m,null,wp.element.createElement(c,{label:__("Exclude Author","sp-news-and-widget"),help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("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 ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})),-1!=d&&wp.element.createElement(h,{label:__("Pagination","sp-news-and-widget"),value:y,options:this.GetBooleanDropdown(),onChange:function(e){return n({pagination:e})}}),-1!=d&&"true"==y&&wp.element.createElement(h,{label:__("Pagination Type","sp-news-and-widget"),value:P,options:this.GetPaginationType(),onChange:function(e){return n({pagination_type:e})}}),wp.element.createElement(m,null,wp.element.createElement(g,{label:__("Query Offset","sp-news-and-widget"),min:0,help:wp.element.createElement("span",{className:"wpos-hidden-opts-desc"},__("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 ","sp-news-and-widget"),wp.element.createElement("a",{href:Wpnwf_Block.pro_link,target:"_blank"},__("Premium version ","sp-news-and-widget")),__("to get this option.","sp-news-and-widget"))})))));return wp.element.createElement(p,null,N,wp.element.createElement(E,null,wp.element.createElement(_,{value:C,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?"[sp_news "+t+"]":"[sp_news]";return wp.element.createElement("div",{className:"wpos-guten-shrt"},wp.element.createElement("div",{className:"wpos-guten-shrt-title"},wp.element.createElement("span",null,__("WP News and Scrolling Widgets - Grid","sp-news-and-widget"))),n,wp.element.createElement("div",{className:"wpos-guten-shrt-footer"},wp.element.createElement("span",null),__("Do you want to check demo of this plugin.","sp-news-and-widget")," ",wp.element.createElement("a",{href:Wpnwf_Block.free_demo_link,target:"_blank"},__("Click here","sp-news-and-widget"))),wp.element.createElement("div",{className:"wpos-guten-shrt-footer"},__("Do you also want to check premium version demo of this plugin.","sp-news-and-widget")," ",wp.element.createElement("a",{href:Wpnwf_Block.pro_demo_link,target:"_blank"},__("Click here","sp-news-and-widget"))))}}]),t}(r);t.a=k}]);
|
includes/admin/class-wpnw-admin.php
CHANGED
@@ -19,14 +19,22 @@ class Wpnw_Admin {
|
|
19 |
// Action to add admin menu
|
20 |
add_action( 'admin_menu', array($this, 'wpnw_register_menu'), 12 );
|
21 |
|
|
|
|
|
|
|
22 |
// Init Processes
|
23 |
add_action( 'admin_init', array($this, 'wpnw_admin_init_process') );
|
24 |
|
|
|
|
|
|
|
25 |
// Filter to add row action in category table
|
26 |
add_filter( WPNW_CAT.'_row_actions', array($this, 'wpnw_add_tax_row_data'), 10, 2 );
|
27 |
|
28 |
// Filter to add display news tag
|
29 |
add_filter( 'pre_get_posts', array($this, 'wpnw_display_news_tags') );
|
|
|
|
|
30 |
}
|
31 |
|
32 |
/**
|
@@ -38,10 +46,16 @@ class Wpnw_Admin {
|
|
38 |
function wpnw_register_menu() {
|
39 |
|
40 |
// How it work page
|
41 |
-
add_submenu_page( 'edit.php?post_type='.WPNW_POST_TYPE, __('How
|
|
|
|
|
|
|
42 |
|
43 |
// Register plugin premium page
|
44 |
-
add_submenu_page( 'edit.php?post_type='.WPNW_POST_TYPE, __('Upgrade
|
|
|
|
|
|
|
45 |
}
|
46 |
|
47 |
/**
|
@@ -51,7 +65,19 @@ class Wpnw_Admin {
|
|
51 |
* @since 1.0.0
|
52 |
*/
|
53 |
function wpnw_designs_page() {
|
54 |
-
include_once( WPNW_DIR . '/includes/admin/wpnw-how-it-work.php' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
/**
|
@@ -64,6 +90,26 @@ class Wpnw_Admin {
|
|
64 |
include_once( WPNW_DIR . '/includes/admin/settings/premium.php' );
|
65 |
}
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
/**
|
68 |
* Function to notification transient
|
69 |
*
|
@@ -71,10 +117,45 @@ class Wpnw_Admin {
|
|
71 |
* @since 1.4.3
|
72 |
*/
|
73 |
function wpnw_admin_init_process() {
|
|
|
|
|
|
|
|
|
|
|
74 |
// If plugin notice is dismissed
|
75 |
if( isset($_GET['message']) && $_GET['message'] == 'wpnw-plugin-notice' ) {
|
76 |
set_transient( 'wpnw_install_notice', true, 604800 );
|
77 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
|
80 |
/**
|
@@ -102,6 +183,29 @@ class Wpnw_Admin {
|
|
102 |
}
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
|
107 |
$wpnw_Admin = new Wpnw_Admin();
|
19 |
// Action to add admin menu
|
20 |
add_action( 'admin_menu', array($this, 'wpnw_register_menu'), 12 );
|
21 |
|
22 |
+
// Action to add metabox
|
23 |
+
add_action( 'add_meta_boxes', array($this, 'wpnw_post_sett_metabox') );
|
24 |
+
|
25 |
// Init Processes
|
26 |
add_action( 'admin_init', array($this, 'wpnw_admin_init_process') );
|
27 |
|
28 |
+
// Admin for the Solutions & Features
|
29 |
+
add_action( 'admin_init', array($this, 'wpnw_admin_init_sf_process') );
|
30 |
+
|
31 |
// Filter to add row action in category table
|
32 |
add_filter( WPNW_CAT.'_row_actions', array($this, 'wpnw_add_tax_row_data'), 10, 2 );
|
33 |
|
34 |
// Filter to add display news tag
|
35 |
add_filter( 'pre_get_posts', array($this, 'wpnw_display_news_tags') );
|
36 |
+
|
37 |
+
//add_action( 'admin_footer', array( $this, 'wpnw_upgrade_page_link_blank' ) );
|
38 |
}
|
39 |
|
40 |
/**
|
46 |
function wpnw_register_menu() {
|
47 |
|
48 |
// How it work page
|
49 |
+
add_submenu_page( 'edit.php?post_type='.WPNW_POST_TYPE, __('How It Works - WP News and Scrolling Widgets', 'sp-news-and-widget'), __('How It Works', 'sp-news-and-widget'), 'edit_posts', 'wpnw-designs', array($this, 'wpnw_designs_page') );
|
50 |
+
|
51 |
+
// Setting page
|
52 |
+
add_submenu_page( 'edit.php?post_type='.WPNW_POST_TYPE, __('Solutions & Features - WP News and Scrolling Widgets', 'sp-news-and-widget'), '<span style="color:#2ECC71">'. __('Solutions & Features', 'sp-news-and-widget').'</span>', 'manage_options', 'wpnw-solutions-features', array($this, 'wpnw_solutions_features_page') );
|
53 |
|
54 |
// Register plugin premium page
|
55 |
+
add_submenu_page( 'edit.php?post_type='.WPNW_POST_TYPE, __('Upgrade To PRO - WP News and Scrolling Widgets', 'sp-news-and-widget'), '<span style="color:#ff2700">'.__('Upgrade To PRO', 'sp-news-and-widget').'</span>', 'manage_options', 'wpnw-premium', array($this, 'wpnw_premium_page') );
|
56 |
+
|
57 |
+
//add_submenu_page( 'edit.php?post_type='.WPNW_POST_TYPE, __('Upgrade To PRO - WP News and Scrolling Widgets', 'sp-news-and-widget'), '<span class="wpos-upgrade-pro" style="color:#ff2700">' . __('Upgrade To Premium ', 'sp-news-and-widget') . '</span>', 'manage_options', 'wpnw-upgrade-pro', array($this, 'wpnw_redirect_page') );
|
58 |
+
//add_submenu_page( 'edit.php?post_type='.WPNW_POST_TYPE, __('Bundle Deal - WP News and Scrolling Widgets', 'sp-news-and-widget'), '<span class="wpos-upgrade-pro" style="color:#ff2700">' . __('Bundle Deal', 'sp-news-and-widget') . '</span>', 'manage_options', 'wpnw-bundle-deal', array($this, 'wpnw_redirect_page') );
|
59 |
}
|
60 |
|
61 |
/**
|
65 |
* @since 1.0.0
|
66 |
*/
|
67 |
function wpnw_designs_page() {
|
68 |
+
include_once( WPNW_DIR . '/includes/admin/wpnw-how-it-work.php' );
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Redirect
|
73 |
+
*
|
74 |
+
* @since 1.0
|
75 |
+
*/
|
76 |
+
// function wpnw_redirect_page() {
|
77 |
+
// }
|
78 |
+
|
79 |
+
function wpnw_solutions_features_page() {
|
80 |
+
include_once( WPNW_DIR . '/includes/admin/settings/solutions-features.php' );
|
81 |
}
|
82 |
|
83 |
/**
|
90 |
include_once( WPNW_DIR . '/includes/admin/settings/premium.php' );
|
91 |
}
|
92 |
|
93 |
+
/**
|
94 |
+
* Post Settings Metabox
|
95 |
+
*
|
96 |
+
* @package WP News and Scrolling Widgets
|
97 |
+
* @since 4.5
|
98 |
+
*/
|
99 |
+
function wpnw_post_sett_metabox() {
|
100 |
+
add_meta_box( 'wpnw-post-metabox-pro', __('More Premium - Settings', 'sp-news-and-widget'), array($this, 'wpnw_post_sett_box_callback_pro'), WPNW_POST_TYPE, 'normal', 'high' );
|
101 |
+
}
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Function to handle 'premium ' metabox HTML
|
105 |
+
*
|
106 |
+
* @package WP News and Scrolling Widgets
|
107 |
+
* @since 4.5
|
108 |
+
*/
|
109 |
+
function wpnw_post_sett_box_callback_pro( $post ) {
|
110 |
+
include_once( WPNW_DIR .'/includes/admin/metabox/wpnw-post-setting-metabox-pro.php');
|
111 |
+
}
|
112 |
+
|
113 |
/**
|
114 |
* Function to notification transient
|
115 |
*
|
117 |
* @since 1.4.3
|
118 |
*/
|
119 |
function wpnw_admin_init_process() {
|
120 |
+
|
121 |
+
//global $typenow, $pagenow;
|
122 |
+
|
123 |
+
//$current_page = isset( $_REQUEST['page'] ) ? $_REQUEST['page'] : '';
|
124 |
+
|
125 |
// If plugin notice is dismissed
|
126 |
if( isset($_GET['message']) && $_GET['message'] == 'wpnw-plugin-notice' ) {
|
127 |
set_transient( 'wpnw_install_notice', true, 604800 );
|
128 |
}
|
129 |
+
|
130 |
+
// Redirect to external page for upgrade to menu
|
131 |
+
// if( $typenow == WPNW_POST_TYPE ) {
|
132 |
+
|
133 |
+
// if( $current_page == 'wpnw-upgrade-pro' ) {
|
134 |
+
|
135 |
+
// wp_redirect( WPNW_PLUGIN_LINK_UPGRADE );
|
136 |
+
// exit;
|
137 |
+
// }
|
138 |
+
|
139 |
+
// if( $current_page == 'wpnw-bundle-deal' ) {
|
140 |
+
|
141 |
+
// wp_redirect( WPNW_PLUGIN_BUNDLE_LINK );
|
142 |
+
// exit;
|
143 |
+
// }
|
144 |
+
// }
|
145 |
+
}
|
146 |
+
|
147 |
+
function wpnw_admin_init_sf_process() {
|
148 |
+
|
149 |
+
if ( get_option( 'wpnw_sf_optin', false ) ) {
|
150 |
+
|
151 |
+
delete_option( 'wpnw_sf_optin' );
|
152 |
+
|
153 |
+
$redirect_link = add_query_arg( array('post_type' => WPNW_POST_TYPE, 'page' => 'wpnw-solutions-features' ), admin_url( 'edit.php' ) );
|
154 |
+
|
155 |
+
wp_safe_redirect( $redirect_link );
|
156 |
+
|
157 |
+
exit;
|
158 |
+
}
|
159 |
}
|
160 |
|
161 |
/**
|
183 |
}
|
184 |
}
|
185 |
|
186 |
+
/**
|
187 |
+
* Add JS snippet to admin footer to add target _blank in upgrade link
|
188 |
+
*
|
189 |
+
* @package WP News and Scrolling Widgets
|
190 |
+
* @since 2.0.5
|
191 |
+
*/
|
192 |
+
/*function wpnw_upgrade_page_link_blank() {
|
193 |
+
|
194 |
+
global $wpos_upgrade_link_snippet;
|
195 |
+
|
196 |
+
// Redirect to external page
|
197 |
+
if( empty( $wpos_upgrade_link_snippet ) ) {
|
198 |
+
|
199 |
+
$wpos_upgrade_link_snippet = 1;
|
200 |
+
?>
|
201 |
+
<script type="text/javascript">
|
202 |
+
(function ($) {
|
203 |
+
$('.wpos-upgrade-pro').parent().attr( { target: '_blank', rel: 'noopener noreferrer' } );
|
204 |
+
})(jQuery);
|
205 |
+
</script>
|
206 |
+
<?php }
|
207 |
+
} */
|
208 |
+
|
209 |
}
|
210 |
|
211 |
$wpnw_Admin = new Wpnw_Admin();
|
includes/admin/metabox/wpnw-post-setting-metabox-pro.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Function Custom meta box for Premium
|
4 |
+
*
|
5 |
+
* @package WP News and Scrolling Widgets
|
6 |
+
* @since 2.5
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly
|
11 |
+
}
|
12 |
+
|
13 |
+
?>
|
14 |
+
<div class="pro-notice"><strong><?php echo sprintf( __( 'Utilize these <a href="%s" target="_blank">Premium Features</a> to get best of this plugin with Annual or Lifetime bundle deal.', 'sp-news-and-widget'), WPNW_PLUGIN_LINK_UNLOCK); ?></strong></div>
|
15 |
+
<table class="form-table wpnw-metabox-table">
|
16 |
+
<tbody>
|
17 |
+
|
18 |
+
<tr class="wpnw-pro-feature">
|
19 |
+
<th>
|
20 |
+
<?php _e('Layouts', 'sp-news-and-widget'); ?><span class="wpnw-pro-tag"><?php _e('PRO','sp-news-and-widget');?></span>
|
21 |
+
</th>
|
22 |
+
<td>
|
23 |
+
<span class="description"><strong><?php _e('6 (Grid, Slider, Carousel, List, Gridbox, GridBox Slider, News Ticker). In lite version only 1 layout.', 'sp-news-and-widget'); ?></strong></span>
|
24 |
+
</td>
|
25 |
+
</tr>
|
26 |
+
<tr class="wpnw-pro-feature">
|
27 |
+
<th>
|
28 |
+
<?php _e('Designs', 'sp-news-and-widget'); ?><span class="wpnw-pro-tag"><?php _e('PRO','sp-news-and-widget');?></span>
|
29 |
+
</th>
|
30 |
+
<td>
|
31 |
+
<span class="description"><strong>120+</strong><?php _e(' In lite version only two design.', 'sp-news-and-widget'); ?></span>
|
32 |
+
</td>
|
33 |
+
</tr>
|
34 |
+
<tr class="wpnw-pro-feature">
|
35 |
+
<th>
|
36 |
+
<?php _e('Widgets', 'sp-news-and-widget'); ?><span class="wpnw-pro-tag"><?php _e('PRO','sp-news-and-widget');?></span>
|
37 |
+
</th>
|
38 |
+
<td>
|
39 |
+
<span class="description"><strong>7+</strong><?php _e(' In lite version only two widget.', 'sp-news-and-widget'); ?></span>
|
40 |
+
</td>
|
41 |
+
</tr>
|
42 |
+
<tr class="wpnw-pro-feature">
|
43 |
+
<th>
|
44 |
+
<?php _e('WP Templating Features ', 'sp-news-and-widget'); ?><span class="wpnw-pro-tag"><?php _e('PRO','sp-news-and-widget');?></span>
|
45 |
+
</th>
|
46 |
+
<td>
|
47 |
+
<span class="description"><?php _e('You can modify plugin html/designs in your current theme.', 'sp-news-and-widget'); ?></span>
|
48 |
+
</td>
|
49 |
+
</tr>
|
50 |
+
<tr class="wpnw-pro-feature">
|
51 |
+
<th>
|
52 |
+
<?php _e('Shortcode Generator ', 'sp-news-and-widget'); ?><span class="wpnw-pro-tag"><?php _e('PRO','sp-news-and-widget');?></span>
|
53 |
+
</th>
|
54 |
+
<td>
|
55 |
+
<span class="description"><?php _e('Play with all shortcode parameters with preview panel. No documentation required.' , 'sp-news-and-widget'); ?></span>
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
<tr class="wpnw-pro-feature">
|
59 |
+
<th>
|
60 |
+
<?php _e('Drag & Drop Slide Order Change', 'sp-news-and-widget'); ?><span class="wpnw-pro-tag"><?php _e('PRO','sp-news-and-widget');?></span>
|
61 |
+
</th>
|
62 |
+
<td>
|
63 |
+
<span class="description"><?php _e('Arrange your desired slides with your desired order and display.' , 'sp-news-and-widget'); ?></span>
|
64 |
+
</td>
|
65 |
+
</tr>
|
66 |
+
<tr class="wpnw-pro-feature">
|
67 |
+
<th>
|
68 |
+
<?php _e('Page Builder Support', 'sp-news-and-widget'); ?><span class="wpnw-pro-tag"><?php _e('PRO','sp-news-and-widget');?></span>
|
69 |
+
</th>
|
70 |
+
<td>
|
71 |
+
<span class="description"><strong><?php _e('Gutenberg Block, Elementor, Bevear Builder, SiteOrigin, Divi, Visual Composer and Fusion Page Builder Support', 'sp-news-and-widget'); ?></strong></span>
|
72 |
+
</td>
|
73 |
+
</tr>
|
74 |
+
<tr class="wpnw-pro-feature">
|
75 |
+
<th>
|
76 |
+
<?php _e('Exclude News and Exclude Some Categories', 'sp-news-and-widget'); ?><span class="wpnw-pro-tag"><?php _e('PRO','sp-news-and-widget');?></span>
|
77 |
+
</th>
|
78 |
+
<td>
|
79 |
+
<span class="description"><strong><?php _e('Do not display the news & Do not display the news for particular categories.' , 'sp-news-and-widget'); ?></strong></span>
|
80 |
+
</td>
|
81 |
+
</tr>
|
82 |
+
</tbody>
|
83 |
+
</table><!-- end .wpnw-metabox-table -->
|
84 |
+
|
includes/admin/settings/premium.php
CHANGED
@@ -12,17 +12,16 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
12 |
?>
|
13 |
<div class="wrap">
|
14 |
|
15 |
-
<h2><?php _e( 'WP News and Scrolling Widgets
|
16 |
|
17 |
<style>
|
18 |
-
.wprps-notice{padding: 10px; color: #3c763d; background-color: #dff0d8; border:1px solid #d6e9c6; margin: 0 0 20px 0;}
|
19 |
.wpos-plugin-pricing-table thead th h2{font-weight: 400; font-size: 2.4em; line-height:normal; margin:0px; color: #2ECC71;}
|
20 |
.wpos-plugin-pricing-table thead th h2 + p{font-size: 1.25em; line-height: 1.4; color: #999; margin:5px 0 5px 0;}
|
21 |
-
.wpos-new-feature{ font-size: 10px; color: #fff; font-weight: bold; background-color: #03aa29; padding:1px 4px; font-style: normal; }
|
22 |
|
23 |
-
table.wpos-plugin-pricing-table{width:
|
24 |
|
25 |
.wpos-plugin-pricing-table th, .wpos-plugin-pricing-table td{font-size:14px; line-height:normal; color:#444; vertical-align:middle; padding:12px;}
|
|
|
26 |
|
27 |
.wpos-plugin-pricing-table colgroup:nth-child(1) { width: 31%; border: 0 none; }
|
28 |
.wpos-plugin-pricing-table colgroup:nth-child(2) { width: 22%; border: 1px solid #ccc; }
|
@@ -31,19 +30,24 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
31 |
/* Tablehead */
|
32 |
.wpos-plugin-pricing-table thead th {background-color: #fff; background:linear-gradient(to bottom, #ffffff 0%, #ffffff 100%); text-align: center; position: relative; border-bottom: 1px solid #ccc; padding: 1em 0 1em; font-weight:400; color:#999;}
|
33 |
.wpos-plugin-pricing-table thead th:nth-child(1) {background: transparent;}
|
34 |
-
.wpos-plugin-pricing-table thead th:nth-child(3) {
|
35 |
-
.wpos-plugin-pricing-table thead th:nth-child(3) p{color:#000;}
|
36 |
.wpos-plugin-pricing-table thead th p.promo {font-size: 14px; color: #fff; position: absolute; bottom:0; left: -17px; z-index: 1000; width: 100%; margin: 0; padding: .625em 17px .75em; background-color: #ca4a1f; box-shadow: 0 2px 4px rgba(0,0,0,.25); border-bottom: 1px solid #ca4a1f;}
|
37 |
.wpos-plugin-pricing-table thead th p.promo:before {content: ""; position: absolute; display: block; width: 0px; height: 0px; border-style: solid; border-width: 0 7px 7px 0; border-color: transparent #900 transparent transparent; bottom: -7px; left: 0;}
|
38 |
.wpos-plugin-pricing-table thead th p.promo:after {content: ""; position: absolute; display: block; width: 0px; height: 0px; border-style: solid; border-width: 7px 7px 0 0; border-color: #900 transparent transparent transparent; bottom: -7px; right: 0;}
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
/* Tablebody */
|
41 |
.wpos-plugin-pricing-table tbody th{background: #fff; border-left: 1px solid #ccc; font-weight: 600;}
|
42 |
.wpos-plugin-pricing-table tbody th span{font-weight: normal; font-size: 87.5%; color: #999; display: block;}
|
43 |
|
44 |
.wpos-plugin-pricing-table tbody td{background: #fff; text-align: center;}
|
45 |
.wpos-plugin-pricing-table tbody td .dashicons{height: auto; width: auto; font-size:30px;}
|
46 |
-
.wpos-plugin-pricing-table tbody td .dashicons-no-alt{color: #
|
47 |
.wpos-plugin-pricing-table tbody td .dashicons-yes{color: #2ECC71;}
|
48 |
|
49 |
.wpos-plugin-pricing-table tbody tr:nth-child(even) th,
|
@@ -52,162 +56,195 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
52 |
|
53 |
/* Table Footer */
|
54 |
.wpos-plugin-pricing-table tfoot th, .wpos-plugin-pricing-table tfoot td{text-align: center; border-top: 1px solid #ccc;}
|
55 |
-
.wpos-plugin-pricing-table tfoot a{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #
|
56 |
-
|
|
|
57 |
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
|
|
|
|
|
|
|
|
213 |
</div>
|
12 |
?>
|
13 |
<div class="wrap">
|
14 |
|
15 |
+
<h2><?php _e( 'WP News and Scrolling Widgets', 'sp-news-and-widget' ); ?></h2>
|
16 |
|
17 |
<style>
|
|
|
18 |
.wpos-plugin-pricing-table thead th h2{font-weight: 400; font-size: 2.4em; line-height:normal; margin:0px; color: #2ECC71;}
|
19 |
.wpos-plugin-pricing-table thead th h2 + p{font-size: 1.25em; line-height: 1.4; color: #999; margin:5px 0 5px 0;}
|
|
|
20 |
|
21 |
+
table.wpos-plugin-pricing-table{width:100%; text-align: left; border-spacing: 0; border-collapse: collapse; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
|
22 |
|
23 |
.wpos-plugin-pricing-table th, .wpos-plugin-pricing-table td{font-size:14px; line-height:normal; color:#444; vertical-align:middle; padding:12px;}
|
24 |
+
.wpos-about-epb-table td{padding: 12px 12px 60px;position: relative;}
|
25 |
|
26 |
.wpos-plugin-pricing-table colgroup:nth-child(1) { width: 31%; border: 0 none; }
|
27 |
.wpos-plugin-pricing-table colgroup:nth-child(2) { width: 22%; border: 1px solid #ccc; }
|
30 |
/* Tablehead */
|
31 |
.wpos-plugin-pricing-table thead th {background-color: #fff; background:linear-gradient(to bottom, #ffffff 0%, #ffffff 100%); text-align: center; position: relative; border-bottom: 1px solid #ccc; padding: 1em 0 1em; font-weight:400; color:#999;}
|
32 |
.wpos-plugin-pricing-table thead th:nth-child(1) {background: transparent;}
|
33 |
+
.wpos-plugin-pricing-table thead th:nth-child(3) p{color:#000;}
|
|
|
34 |
.wpos-plugin-pricing-table thead th p.promo {font-size: 14px; color: #fff; position: absolute; bottom:0; left: -17px; z-index: 1000; width: 100%; margin: 0; padding: .625em 17px .75em; background-color: #ca4a1f; box-shadow: 0 2px 4px rgba(0,0,0,.25); border-bottom: 1px solid #ca4a1f;}
|
35 |
.wpos-plugin-pricing-table thead th p.promo:before {content: ""; position: absolute; display: block; width: 0px; height: 0px; border-style: solid; border-width: 0 7px 7px 0; border-color: transparent #900 transparent transparent; bottom: -7px; left: 0;}
|
36 |
.wpos-plugin-pricing-table thead th p.promo:after {content: ""; position: absolute; display: block; width: 0px; height: 0px; border-style: solid; border-width: 7px 7px 0 0; border-color: #900 transparent transparent transparent; bottom: -7px; right: 0;}
|
37 |
+
.wpos-about-epb-table{margin:10px 0;}
|
38 |
+
.wpos-about-epb-table, .wpos-about-epb-table td{border:1px solid #ccc;}
|
39 |
+
.wpos-about-epb-table th {background: #ff4081 !important; font-size:18px; font-weight:100%; color:#fff; border-bottom: 1px solid #ccc !important; padding:10px !important; color:#fff !important;}
|
40 |
+
.wpos-about-epb-table th, .wpos-about-epb-table td{text-align:left !important; vertical-align:top;}
|
41 |
+
.wpos-about-epb-table td ul{list-style:none;}
|
42 |
+
.wpos-about-epb-table ul li::before {content: "\2022";color:#ff2700 ;font-weight: bold;display: inline-block;width: 15px;}
|
43 |
+
|
44 |
/* Tablebody */
|
45 |
.wpos-plugin-pricing-table tbody th{background: #fff; border-left: 1px solid #ccc; font-weight: 600;}
|
46 |
.wpos-plugin-pricing-table tbody th span{font-weight: normal; font-size: 87.5%; color: #999; display: block;}
|
47 |
|
48 |
.wpos-plugin-pricing-table tbody td{background: #fff; text-align: center;}
|
49 |
.wpos-plugin-pricing-table tbody td .dashicons{height: auto; width: auto; font-size:30px;}
|
50 |
+
.wpos-plugin-pricing-table tbody td .dashicons-no-alt{color: #ff2700;}
|
51 |
.wpos-plugin-pricing-table tbody td .dashicons-yes{color: #2ECC71;}
|
52 |
|
53 |
.wpos-plugin-pricing-table tbody tr:nth-child(even) th,
|
56 |
|
57 |
/* Table Footer */
|
58 |
.wpos-plugin-pricing-table tfoot th, .wpos-plugin-pricing-table tfoot td{text-align: center; border-top: 1px solid #ccc;}
|
59 |
+
.wpos-plugin-pricing-table tfoot a, .wpos-plugin-pricing-table thead a{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #ff2700; border-radius: .2em;}
|
60 |
+
a.epb-cutom-button{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #ff2700; border-radius: .2em;}
|
61 |
+
.wpos-epb{color:#ff2700 !important;}
|
62 |
|
63 |
+
.wp-plugin-icon{position: absolute;bottom: 15px;}
|
64 |
+
.wp-plugin-icon img {margin: 0 5px;}
|
65 |
+
.wp-plugin-icon span{font-size: 14px;font-style: italic;color: red;display: block;}
|
66 |
+
.wp-icons {margin-bottom: 20px;text-align: center;}
|
67 |
+
.wp-icons img{vertical-align: top;}
|
68 |
+
.wp-icons ul{margin: 0;}
|
69 |
+
.wp-icons li{display: inline-block;margin-right: 5px;}
|
70 |
+
|
71 |
+
/* SideBar */
|
72 |
+
.wpos-sidebar .wpos-epb-wrap{background:#0055fb; color:#fff; padding:15px;}
|
73 |
+
.wpos-sidebar .wpos-epb-wrap h2{font-size:24px !important; color:#fff; margin:0 0 15px 0; padding:0px !important;}
|
74 |
+
.wpos-sidebar .wpos-epb-wrap h2 span{font-size:20px !important; color:#ffff00 !important;}
|
75 |
+
.wpos-sidebar .wpos-epb-wrap ul li{font-size:16px; margin-bottom:8px;}
|
76 |
+
.wpos-sidebar .wpos-epb-wrap ul li span{color:#ffff00 !important;}
|
77 |
+
.wpos-sidebar .wpos-epb-wrap ul{list-style: decimal inside none;}
|
78 |
+
.wpos-sidebar .wpos-epb-wrap b{font-weight:bold !important;}
|
79 |
+
.wpos-sidebar .wpos-epb-wrap p{font-size:16px;}
|
80 |
+
.wpos-sidebar .wpos-epb-wrap .button-yellow{font-weight: 600;color: #000; text-align:center;text-decoration: none;display:block;padding: 1em 2em;background: #ffff00;border-radius: .2em;}
|
81 |
+
.wpos-sidebar .wpos-epb-wrap .button-orange{font-weight: 600;color: #fff; text-align:center;text-decoration: none;display:block;padding: 1em 2em;background: #ff2700;border-radius: .2em;}
|
82 |
+
.larger-font{font-size:24px; line-height:35px; margin:0px;}
|
83 |
+
.h-blue{color:#0055fb ;}
|
84 |
+
.h-orange{color:#FF5D52 ;}
|
85 |
+
.wpos-deal-heading{padding:0px 10px;}
|
86 |
+
</style>
|
87 |
+
|
88 |
+
<div id="poststuff">
|
89 |
+
<div id="post-body" class="metabox-holder">
|
90 |
+
<div id="post-body-content">
|
91 |
+
<h3 style="text-align:center"><?php _e( 'Compare "WP News and Scrolling Widgets" Free VS Pro', 'sp-news-and-widget' ); ?></h3>
|
92 |
+
<table class="wpos-plugin-pricing-table">
|
93 |
+
<colgroup></colgroup>
|
94 |
+
<colgroup></colgroup>
|
95 |
+
<colgroup></colgroup>
|
96 |
+
<thead>
|
97 |
+
<tr>
|
98 |
+
<th></th>
|
99 |
+
<th>
|
100 |
+
<h2>Free</h2>
|
101 |
+
</th>
|
102 |
+
<th>
|
103 |
+
<h2 class="wpos-epb">Premium</h2>
|
104 |
+
<h3 class="wpos-deal-heading">Choose best pricing in <span class="h-blue"> Annual</span> or <span class="h-blue">Lifetime</span> deal</h3>
|
105 |
+
<a href="<?php echo WPNW_PLUGIN_LINK_UPGRADE; ?>" target="_blank">Buy Now</a>
|
106 |
+
</th>
|
107 |
+
</tr>
|
108 |
+
</thead>
|
109 |
|
110 |
+
<tfoot>
|
111 |
+
<tr>
|
112 |
+
<th></th>
|
113 |
+
<td></td>
|
114 |
+
<td>
|
115 |
+
<h3 class="wpos-deal-heading">Choose best pricing in <span class="h-blue"> Annual</span> or <span class="h-blue">Lifetime</span> deal</h3>
|
116 |
+
<a href="<?php echo WPNW_PLUGIN_LINK_UPGRADE; ?>" target="_blank">Buy Now</a></td>
|
117 |
+
</tr>
|
118 |
+
</tfoot>
|
119 |
+
<tbody>
|
120 |
+
<tr>
|
121 |
+
<th>Designs <span class="subtext">Designs that make your website better</span></th>
|
122 |
+
<td>2</td>
|
123 |
+
<td>120+</td>
|
124 |
+
</tr>
|
125 |
+
<tr>
|
126 |
+
<th>Shortcodes <span class="subtext">Shortcode provide output to the front-end side</span></th>
|
127 |
+
<td>1 (Grid, List)</td>
|
128 |
+
<td>6 (Grid, Slider, Carousel, List, Gridbox, GridBox Slider, News Ticker )</td>
|
129 |
+
</tr>
|
130 |
+
<tr>
|
131 |
+
<th>Shortcode Parameters <span class="subtext">Add extra power to the shortcode</span></th>
|
132 |
+
<td>9</td>
|
133 |
+
<td>30+</td>
|
134 |
+
</tr>
|
135 |
+
<tr>
|
136 |
+
<th>Shortcode Generator <span class="subtext">Play with all shortcode parameters with preview panel. No documentation required!!</span></th>
|
137 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
138 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
139 |
+
</tr>
|
140 |
+
<tr>
|
141 |
+
<th>WP Templating Features <span class="subtext">You can modify plugin html/designs in your current theme.</span></th>
|
142 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
143 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
144 |
+
</tr>
|
145 |
+
<tr>
|
146 |
+
<th>Widgets<span class="subtext"> WordPress Widgets to your sidebars.</span></th>
|
147 |
+
<td>2</td>
|
148 |
+
<td>7</td>
|
149 |
+
</tr>
|
150 |
+
<tr>
|
151 |
+
<th>Drag & Drop Post Order Change <span class="subtext">Arrange your desired post with your desired order and display</span></th>
|
152 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
153 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
154 |
+
</tr>
|
155 |
+
<tr>
|
156 |
+
<th>Gutenberg Block Supports <span>Use this plugin with Gutenberg easily</span></th>
|
157 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
158 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
159 |
+
</tr>
|
160 |
+
<tr>
|
161 |
+
<th>Elementor Page Builder Support <em class="wpos-new-feature">New</em> <span>Use this plugin with Elementor easily</span></th>
|
162 |
+
<td><i class="dashicons dashicons-no-alt"></i></td>
|
163 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
164 |
+
</tr>
|
165 |
+
<tr>
|
166 |
+
<th>Beaver Builder Support <em class="wpos-new-feature">New</em> <span>Use this plugin with Beaver Builder easily</span></th>
|
167 |
+
<td><i class="dashicons dashicons-no-alt"></i></td>
|
168 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
169 |
+
</tr>
|
170 |
+
<tr>
|
171 |
+
<th>SiteOrigin Page Builder Support <em class="wpos-new-feature">New</em> <span>Use this plugin with SiteOrigin easily</span></th>
|
172 |
+
<td><i class="dashicons dashicons-no-alt"></i></td>
|
173 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
174 |
+
</tr>
|
175 |
+
<tr>
|
176 |
+
<th>Divi Page Builder Native Support <em class="wpos-new-feature">New</em> <span>Use this plugin with Divi Builder easily</span></th>
|
177 |
+
<td><i class="dashicons dashicons-no-alt"></i></td>
|
178 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
179 |
+
</tr>
|
180 |
+
<tr>
|
181 |
+
<th>Fusion (Avada) Page Builder Native Support <em class="wpos-new-feature">New</em> <span>Use this plugin with Fusion Builder easily</span></th>
|
182 |
+
<td><i class="dashicons dashicons-no-alt"></i></td>
|
183 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
184 |
+
</tr>
|
185 |
+
<tr>
|
186 |
+
<th>WPBakery Page Builder Support <span>Use this plugin with Visual Composer easily</span></th>
|
187 |
+
<td><i class="dashicons dashicons-no-alt"></i></td>
|
188 |
+
<td><i class="dashicons dashicons-yes"></i></td>
|
189 |
+
</tr>
|
190 |
+
<tr>
|
191 |
+
<th>Custom Read More link for Post <span class="subtext">Redirect post to third party destination if any</span></th>
|
192 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
193 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
194 |
+
</tr>
|
195 |
+
<tr>
|
196 |
+
<th>Publicize <span class="subtext"> Support with Jetpack to publish your News post on</span></th>
|
197 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
198 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
199 |
+
</tr>
|
200 |
+
<tr>
|
201 |
+
<th>Display Desired Post <span class="subtext">Display only the post you want</span></th>
|
202 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
203 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
204 |
+
</tr>
|
205 |
+
<tr>
|
206 |
+
<th>Display Post for Particular Categories <span class="subtext">Display only the posts with particular category</span></th>
|
207 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
208 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
209 |
+
</tr>
|
210 |
+
<tr>
|
211 |
+
<th>Exclude Some Posts <span class="subtext">Do not display the posts you want</span></th>
|
212 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
213 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
214 |
+
</tr>
|
215 |
+
<tr>
|
216 |
+
<th>Exclude Some Categories <span class="subtext">Do not display the posts for particular categories</span></th>
|
217 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
218 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
219 |
+
</tr>
|
220 |
+
<tr>
|
221 |
+
<th>Post Order / Order By Parameters <span class="subtext">Display post according to date, title and etc</span></th>
|
222 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
223 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
224 |
+
</tr>
|
225 |
+
<tr>
|
226 |
+
<th>Multiple Slider Parameters <span class="subtext">Slider parameters like autoplay, number of slide, sider dots and etc.</span></th>
|
227 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
228 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
229 |
+
</tr>
|
230 |
+
<tr>
|
231 |
+
<th>Slider RTL Support <span class="subtext">Slider supports for RTL website</span></th>
|
232 |
+
<td><i class="dashicons dashicons-no-alt"> </i></td>
|
233 |
+
<td><i class="dashicons dashicons-yes"> </i></td>
|
234 |
+
</tr>
|
235 |
+
<tr>
|
236 |
+
<th>Automatic Update <span>Get automatic plugin updates </span></th>
|
237 |
+
<td>Lifetime</td>
|
238 |
+
<td>Lifetime</td>
|
239 |
+
</tr>
|
240 |
+
<tr>
|
241 |
+
<th>Support <span class="subtext">Get support for plugin</span></th>
|
242 |
+
<td>Limited</td>
|
243 |
+
<td>1 Year</td>
|
244 |
+
</tr>
|
245 |
+
</tbody>
|
246 |
+
</table>
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
</div>
|
250 |
</div>
|
includes/admin/settings/solutions-features.php
ADDED
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Plugin Solutions & Features Page
|
4 |
+
*
|
5 |
+
* @package WP News and Scrolling Widgets
|
6 |
+
* @since 1.0.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly
|
11 |
+
}
|
12 |
+
|
13 |
+
// Taking some variables
|
14 |
+
$wpnw_add_link = add_query_arg( array( 'post_type' =>WPNW_POST_TYPE ), admin_url( 'post-new.php' ) );
|
15 |
+
?>
|
16 |
+
|
17 |
+
<div id="wrap">
|
18 |
+
<div class="wpnw-sf-wrap">
|
19 |
+
<div class="wpnw-sf-inr">
|
20 |
+
|
21 |
+
<div class="wpnw-sf-features-section wpnw-sf-team wpnw-sf-center">
|
22 |
+
<h1 class="wpnw-sf-heading">Now get best value from <span class="wpnw-sf-blue">Annual</span> OR <span class="wpnw-sf-blue">Lifetime</span> deal</h1>
|
23 |
+
<h2>And Build <span class="bg-highlight">better websites</span>, <span class="bg-highlight">landing pages</span> & <span class="bg-highlight">conversion flow</span></h2>
|
24 |
+
<h2>With <span class="wpnw-sf-blue">35+ plugins</span>, <span class="wpnw-sf-blue">2000+ templates</span> & $600 saving in <span class="wpnw-sf-blue">Essential Plugin Bundle</span></h2>
|
25 |
+
<a href="<?php echo WPNW_PLUGIN_BUNDLE_LINK; ?>" target="_blank" class="wpnw-sf-btn wpnw-sf-btn-orange"><span class="dashicons dashicons-cart"></span> Grab Now This Deal</a>
|
26 |
+
</div>
|
27 |
+
<div class="wpnw-sf-features-section wpnw-sf-team wpnw-sf-center">
|
28 |
+
<h1 class="wpnw-sf-heading">Powerful Team Behind <span class="wpnw-sf-blue">News Builder</span></h1>
|
29 |
+
<div class="wpnw-sf-cont">Alone we can do so little; together we can do so much. Our love language is helping small businesses grow and compete with the big guys. Every time you see growth in your business, our little hearts go flip-flop!</div>
|
30 |
+
<p></p>
|
31 |
+
<div class="wpnw-sf-cont">This is why I wanted to introduce you to <span class="wpnw-sf-blue">Anoop Ranawat & Team</span> at EssentialPlugin.com</div>
|
32 |
+
<img class="wpnw-sf-image" src="<?php echo WPNW_URL; ?>/assets/images/wpos-team.png" alt="wpos team" />
|
33 |
+
</div>
|
34 |
+
|
35 |
+
|
36 |
+
<h1 class="wpnw-sf-heading">Display customizable <span class="wpnw-sf-blue">news layouts, vertical scrolling news widgets</span> in the most engaging and customized way</h1>
|
37 |
+
<!-- Start - Welcome Box -->
|
38 |
+
<div class="wpnw-sf-welcome-wrap">
|
39 |
+
<div class="wpnw-sf-welcome-inr wpnw-sf-center">
|
40 |
+
|
41 |
+
<h5 class="wpnw-sf-content">Experience <span class="wpnw-sf-blue">7 Layouts</span>, <span class="wpnw-sf-blue">70+ stunning designs</span>. </h5>
|
42 |
+
<h5 class="wpnw-sf-content"><span class="wpnw-sf-blue">20,000+ </span>websites are using <span class="wpnw-sf-blue">News Builder</span>.</h5>
|
43 |
+
<a href="<?php echo esc_url( $wpnw_add_link ); ?>" class="wpnw-sf-btn">Launch News With Free Features</a> <br /><b>OR</b> <br /> <a href="<?php echo WPNW_PLUGIN_BUNDLE_LINK; ?>" target="_blank" class="wpnw-sf-btn wpnw-sf-btn-orange"> <span class="dashicons dashicons-cart"></span> Grab Now With Essential Bundle</a>
|
44 |
+
<div class="wpnw-rc-wrap">
|
45 |
+
<div class="wpnw-rc-inr wpnw-rc-bg-box">
|
46 |
+
<div class="wpnw-rc-icon">
|
47 |
+
<img src="<?php echo esc_url( WPNW_URL ); ?>assets/images/popup-icon/14-days-money-back-guarantee.png" alt="14-days-money-back-guarantee" title="14-days-money-back-guarantee" />
|
48 |
+
</div>
|
49 |
+
<div class="wpnw-rc-cont">
|
50 |
+
<h3>14 Days Refund Policy</h3>
|
51 |
+
<p>14-day No Question Asked Refund Guarantee</p>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
<div class="wpnw-rc-inr wpnw-rc-bg-box">
|
55 |
+
<div class="wpnw-rc-icon">
|
56 |
+
<img src="<?php echo esc_url( WPNW_URL ); ?>assets/images/popup-icon/popup-design.png" alt="popup-design" title="popup-design" />
|
57 |
+
</div>
|
58 |
+
<div class="wpnw-rc-cont">
|
59 |
+
<h3>Include Done-For-You News Setup</h3>
|
60 |
+
<p>Our experts team will design 1 free news page for you as per your need.</p>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
<div class="wpnw-sf-welcome-left">
|
65 |
+
|
66 |
+
</div>
|
67 |
+
<div class="wpnw-sf-welcome-right">
|
68 |
+
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<!-- End - Welcome Box -->
|
73 |
+
|
74 |
+
<!-- Start - WP News and Scrolling Widgets - Features -->
|
75 |
+
<div class="wpnw-features-section">
|
76 |
+
<div class="wpnw-sf-center">
|
77 |
+
<h1 class="wpnw-sf-heading">Powerful Pro Features, Simplified</h1>
|
78 |
+
|
79 |
+
</div>
|
80 |
+
<div class="wpnw-sf-welcome-wrap wpnw-sf-center">
|
81 |
+
<div class="wpnw-features-box-wrap">
|
82 |
+
<ul class="wpnw-features-box-grid">
|
83 |
+
<li>
|
84 |
+
<div class="wpnw-popup-icon"><img src="<?php echo WPNW_URL; ?>assets/images/popup-icon/blog-grid.png" /></div>
|
85 |
+
News Grid View</li>
|
86 |
+
<li>
|
87 |
+
<div class="wpnw-popup-icon"><img src="<?php echo WPNW_URL; ?>assets/images/popup-icon/slider.png" /></div>
|
88 |
+
News Slider View</li>
|
89 |
+
<li>
|
90 |
+
<div class="wpnw-popup-icon"><img src="<?php echo WPNW_URL; ?>assets/images/popup-icon/blog-list-view.png" /></div>
|
91 |
+
News List View</li>
|
92 |
+
<li>
|
93 |
+
<div class="wpnw-popup-icon"><img src="<?php echo WPNW_URL; ?>assets/images/popup-icon/carousel.png" /></div>
|
94 |
+
News Ticker View</li>
|
95 |
+
<li>
|
96 |
+
<div class="wpnw-popup-icon"><img src="<?php echo WPNW_URL; ?>assets/images/popup-icon/centermode.png" /></div>
|
97 |
+
News Centermode View</li>
|
98 |
+
<li>
|
99 |
+
<div class="wpnw-popup-icon"><img src="<?php echo WPNW_URL; ?>assets/images/popup-icon/grid-box.png" /></div>
|
100 |
+
News Gridbox View</li>
|
101 |
+
<li>
|
102 |
+
<div class="wpnw-popup-icon"><img src="<?php echo WPNW_URL; ?>assets/images/popup-icon/grid-box.png" /></div>
|
103 |
+
News Gridbox Slider View</li>
|
104 |
+
<li>
|
105 |
+
<div class="wpnw-popup-icon"><img src="<?php echo WPNW_URL; ?>assets/images/popup-icon/blog-masonry.png" /></div>
|
106 |
+
News Masonry View</li>
|
107 |
+
</ul>
|
108 |
+
</div>
|
109 |
+
<a href="<?php echo WPNW_PLUGIN_BUNDLE_LINK; ?>" target="_blank" class="wpnw-sf-btn wpnw-sf-btn-orange"><span class="dashicons dashicons-cart"></span> Grab Now Pro Features</a>
|
110 |
+
<div class="wpnw-rc-wrap">
|
111 |
+
<div class="wpnw-rc-inr wpnw-rc-bg-box">
|
112 |
+
<div class="wpnw-rc-icon">
|
113 |
+
<img src="<?php echo esc_url( WPNW_URL ); ?>assets/images/popup-icon/14-days-money-back-guarantee.png" alt="14-days-money-back-guarantee" title="14-days-money-back-guarantee" />
|
114 |
+
</div>
|
115 |
+
<div class="wpnw-rc-cont">
|
116 |
+
<h3>14 Days Refund Policy. 0 risk to you.</h3>
|
117 |
+
<p>14-day No Question Asked Refund Guarantee</p>
|
118 |
+
</div>
|
119 |
+
</div>
|
120 |
+
<div class="wpnw-rc-inr wpnw-rc-bg-box">
|
121 |
+
<div class="wpnw-rc-icon">
|
122 |
+
<img src="<?php echo esc_url( WPNW_URL ); ?>assets/images/popup-icon/popup-design.png" alt="popup-design" title="popup-design" />
|
123 |
+
</div>
|
124 |
+
<div class="wpnw-rc-cont">
|
125 |
+
<h3>Include Done-For-You News Setup</h3>
|
126 |
+
<p>Our experts team will design 1 free news page for you as per your need.</p>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
</div>
|
132 |
+
<!-- End - Logo Showcase - Features -->
|
133 |
+
|
134 |
+
<!-- Start - Pagebuilder Section -->
|
135 |
+
|
136 |
+
<div class="wpnw-sf-testimonial-wrap">
|
137 |
+
<div class="wpnw-sf-center wpnw-sf-features-ttl">
|
138 |
+
<h1 class=" wpnw-sf-heading">Seamless Integration With All Major <span class=" wpnw-sf-blue">Page Builders</span></h1>
|
139 |
+
<div class=" wpnw-sf-cont wpnw-sf-center">Compatible with Gutenberg, DIVI, Elementor, Avada, VC/WPbakery etc page builder/themes</div>
|
140 |
+
<div class=" wpnw-sf-welcome-wrap wpnw-sf-center">
|
141 |
+
<img src="<?php echo esc_url( WPNW_URL ); ?>assets/images/page-builder-icon.png" alt="page-builder-icon" title="page-builder-icon" />
|
142 |
+
</div>
|
143 |
+
</div>
|
144 |
+
|
145 |
+
</div>
|
146 |
+
<!-- End - pagebuilder Section -->
|
147 |
+
|
148 |
+
<!-- Start - Testimonial Section -->
|
149 |
+
<div class="wpnw-sf-testimonial-wrap">
|
150 |
+
<div class="wpnw-sf-center wpnw-sf-features-ttl">
|
151 |
+
<h1 class="wpnw-sf-heading">Looking for a Reason to Use <span class="wpnw-sf-blue">News</span>?</h1>
|
152 |
+
<div class="wpnw-sf-cont wpnw-sf-center"> Here are 40+...</div>
|
153 |
+
|
154 |
+
</div>
|
155 |
+
<div class="wpnw-testimonial-section-inr">
|
156 |
+
<div class="wpnw-testimonial-box-wrap">
|
157 |
+
<div class="wpnw-testimonial-box-grid">
|
158 |
+
<h3 class="wpnw-testimonial-title">Simple and elegant</h3>
|
159 |
+
<div class="wpnw-testimonial-desc">I have used this for 2 years and it just works! Very easy to use, and if you need support, they do respond. A big thanks to the developers.</div>
|
160 |
+
<div class="wpnw-testimonial-clnt">@poinsy</div>
|
161 |
+
<div class="wpnw-testimonial-rating"><img src="<?php echo WPNW_URL; ?>assets/images/rating.png" /></div>
|
162 |
+
</div>
|
163 |
+
<div class="wpnw-testimonial-box-grid">
|
164 |
+
<h3 class="wpnw-testimonial-title">Good plugin and helpful support</h3>
|
165 |
+
<div class="wpnw-testimonial-desc">Useful and customizable plugin. Support questions are answered prompt and knowledgeable.</div>
|
166 |
+
<div class="wpnw-testimonial-clnt">@njvermeer</div>
|
167 |
+
<div class="wpnw-testimonial-rating"><img src="<?php echo WPNW_URL; ?>assets/images/rating.png" /></div>
|
168 |
+
</div>
|
169 |
+
<div class="wpnw-testimonial-box-grid">
|
170 |
+
<h3 class="wpnw-testimonial-title">great plugin and quick support</h3>
|
171 |
+
<div class="wpnw-testimonial-desc">Awesome plugin, easy setup and a lot of graphic layouts. Quick and highly trained support</div>
|
172 |
+
<div class="wpnw-testimonial-clnt">@matteotacconi</div>
|
173 |
+
<div class="wpnw-testimonial-rating"><img src="<?php echo WPNW_URL; ?>assets/images/rating.png" /></div>
|
174 |
+
</div>
|
175 |
+
<div class="wpnw-testimonial-box-grid">
|
176 |
+
<h3 class="wpnw-testimonial-title">Great plugin and helpful support</h3>
|
177 |
+
<div class="wpnw-testimonial-desc">I used this plug-in for my website and it was great. Also Ketan Patel (@patelketan) from the support team was very helpful. Highly recommend.</div>
|
178 |
+
<div class="wpnw-testimonial-clnt">@nadiasakkaf</div>
|
179 |
+
<div class="wpnw-testimonial-rating"><img src="<?php echo WPNW_URL; ?>assets/images/rating.png" /></div>
|
180 |
+
</div>
|
181 |
+
<div class="wpnw-testimonial-box-grid">
|
182 |
+
<h3 class="wpnw-testimonial-title">Quick and on the spot</h3>
|
183 |
+
<div class="wpnw-testimonial-desc">Had a problem today with their news plugin. Sent them an e-mail at support@. Within a quarter of an hour they sent me the solution. Great plugin, perfect support!</div>
|
184 |
+
<div class="wpnw-testimonial-clnt">@bertbulder</div>
|
185 |
+
<div class="wpnw-testimonial-rating"><img src="<?php echo WPNW_URL; ?>assets/images/rating.png" /></div>
|
186 |
+
</div>
|
187 |
+
<div class="wpnw-testimonial-box-grid">
|
188 |
+
<h3 class="wpnw-testimonial-title">Fantastic support</h3>
|
189 |
+
<div class="wpnw-testimonial-desc">Solved my problem in one minute. Perfekt support via livechat! Thank you, Maharshi!</div>
|
190 |
+
<div class="wpnw-testimonial-clnt">@manuelu</div>
|
191 |
+
<div class="wpnw-testimonial-rating"><img src="<?php echo WPNW_URL; ?>assets/images/rating.png" /></div>
|
192 |
+
</div>
|
193 |
+
</div>
|
194 |
+
<a href="https://wordpress.org/support/plugin/sp-news-and-widget/reviews/?filter=5" target="_blank" class="wpnw-sf-btn"><span class="dashicons dashicons-star-filled"></span> View All Reviews</a> OR <a href="<?php echo WPNW_PLUGIN_BUNDLE_LINK; ?>" target="_blank" class="wpnw-sf-btn wpnw-sf-btn-orange"> <span class="dashicons dashicons-cart"></span>Grab Now Pro Features</a>
|
195 |
+
<div class="wpnw-rc-wrap">
|
196 |
+
<div class="wpnw-rc-inr wpnw-rc-bg-box">
|
197 |
+
<div class="wpnw-rc-icon">
|
198 |
+
<img src="<?php echo esc_url( WPNW_URL ); ?>assets/images/popup-icon/14-days-money-back-guarantee.png" alt="14-days-money-back-guarantee" title="14-days-money-back-guarantee" />
|
199 |
+
</div>
|
200 |
+
<div class="wpnw-rc-cont">
|
201 |
+
<h3>14 Days Refund Policy. 0 risk to you.</h3>
|
202 |
+
<p>14-day No Question Asked Refund Guarantee</p>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
+
<div class="wpnw-rc-inr wpnw-rc-bg-box">
|
206 |
+
<div class="wpnw-rc-icon">
|
207 |
+
<img src="<?php echo esc_url( WPNW_URL ); ?>assets/images/popup-icon/popup-design.png" alt="popup-design" title="popup-design" />
|
208 |
+
</div>
|
209 |
+
<div class="wpnw-rc-cont">
|
210 |
+
<h3>Include Done-For-You News Setup</h3>
|
211 |
+
<p>Our experts team will design 1 free news page for you as per your need.</p>
|
212 |
+
</div>
|
213 |
+
</div>
|
214 |
+
</div>
|
215 |
+
</div>
|
216 |
+
</div>
|
217 |
+
<!-- End - Testimonial Section -->
|
218 |
+
</div>
|
219 |
+
</div><!-- end .wpnw-sf-wrap -->
|
220 |
+
</div><!-- end .wrap -->
|
includes/admin/settings/trail-premium.php
ADDED
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Plugin Premium Offer Page
|
4 |
+
*
|
5 |
+
* @package WP News and Scrolling Widgets
|
6 |
+
* @since 1.0.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( !defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly
|
11 |
+
}
|
12 |
+
?>
|
13 |
+
<div class="wrap wpnw-wrap">
|
14 |
+
|
15 |
+
<h2 class="text-center"><?php _e( 'News and Widget with ', 'sp-news-and-widget' ); ?><span class="h-blue"><?php _e( 'Essential Plugin Bundle Free Trial', 'sp-news-and-widget' ); ?></span></h2>
|
16 |
+
|
17 |
+
<style>
|
18 |
+
.button-orange { background: #FF5D52 !important; color: #fff !important; border: 2px solid #FF5D52 !important; font-size:18px!important; font-weight:bold; padding:10px 20px !important; }
|
19 |
+
.section-space-medium{margin:15px 0;}
|
20 |
+
.text-center{text-align:center;}
|
21 |
+
.h-blue { color: #0055fb !important; margin-bottom: 0px !important;}
|
22 |
+
.cart-section-header{font-size:26px; line-height:34px; margin:10px 0px;}
|
23 |
+
.wpos-trail-main-table{background:#fff; width:100%;}
|
24 |
+
.wpos-trail-main-table th, .wpos-trail-main-table td{padding:10px; text-align:left; border:1px solid #ddd; border-collapse: collapse;}
|
25 |
+
.edd_checkout_cart_item_title{font-size:18px; font-weight:bold;}
|
26 |
+
.wpos-trail-main-table tfoot th.edd_cart_total{text-align:right; font-size:18px; color:#0055fb;}
|
27 |
+
.epb-list h5{margin:2px 0 !important;}
|
28 |
+
.epb-list .dashicons {background: #aadb98;color: #34801a;font-size: 14px;padding: 2px;border-radius: 50%;margin-right: 5px; line-height:20px;}
|
29 |
+
.epb-list li{margin-bottom:15px;}
|
30 |
+
.page-template-free-trial-membership .wpos-bundle-stats .wpos-bundle-box {font-size:16px; margin-bottom:15px; box-shadow: 0 5px 30px 0 rgba(214,215,216,.57);padding: 20px 20px 20px 20px;background: #fff;position: relative;}
|
31 |
+
.section-space-small{margin-bottom:20px;}
|
32 |
+
.page-template-free-trial-membership .common-plan .wpos-bundle-stats .medium-4 .wpos-bundle-box{padding: 15px;}
|
33 |
+
.common-plan img{width: 45px;height: 45px;margin-bottom: 8px;}
|
34 |
+
.pay-later-cta {box-shadow: 0 5px 30px 0 rgba(214,215,216,.57);padding: 20px 20px 20px 20px;background: #fff;border-bottom: 2px solid #efeded;}
|
35 |
+
.pricing-review-wrap span{font-size: 14px;}
|
36 |
+
.page-template-free-trial-membership .wpos-seam-integration li{width: 32%;display: inline-block;}
|
37 |
+
.page-template-free-trial-membership .epb-list li{margin-bottom: 0;line-height: 34px;}
|
38 |
+
.page-template-free-trial-membership .wpos-checkout-right .epb-list li{line-height: 26px;}
|
39 |
+
.page-template-free-trial-membership .wp-builder-list li a{display: table;}
|
40 |
+
.page-template-free-trial-membership .wp-builder-list li a img{display: table-cell;width: 50px;}
|
41 |
+
.page-template-free-trial-membership .wp-builder-list li a span{vertical-align: middle;display: table-cell;padding-left: 10px;line-height: normal;}
|
42 |
+
.page-template-free-trial-membership .wpos-pricing-faq-page ul{max-width: 650px;margin: 0 auto;}
|
43 |
+
.grid-x:before, .grid-x:after{content: "";display: table;}
|
44 |
+
.grid-x::after, .grid-x{clear: both;}
|
45 |
+
.grid-padding-x{ margin-right: -.9375rem; margin-left: -.9375rem;}
|
46 |
+
|
47 |
+
@media only screen and (max-width: 40em) {
|
48 |
+
.page-template-free-trial-membership .pricing-review-wrap .medium-3{margin-bottom: 15px;}
|
49 |
+
.page-template-free-trial-membership .wpos-seam-integration li{width: 100%;}
|
50 |
+
.page-template-free-trial-membership .wpos-seam-integration li ul.epb-list li{border: none !important;}
|
51 |
+
.page-template-free-trial-membership .wpos-pricing-faq-page .accordion-item a{font-size: 16px;line-height: normal;}
|
52 |
+
.page-template-free-trial-membership .medium-4.wpos-checkout-right img{max-width: 200px;margin: 0 auto 20px;display: block;width: 100%;}
|
53 |
+
.common-plan .medium-2{width: 100%;}
|
54 |
+
}
|
55 |
+
@media only screen and (min-width: 40em) {
|
56 |
+
.cell {padding-right: .9375rem; padding-left: .9375rem; float:left; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
|
57 |
+
.medium-12{ width: 100%; }
|
58 |
+
.medium-8{ width: 66.66667%; }
|
59 |
+
.medium-4{ width: 33.333%; }
|
60 |
+
.medium-3{ width:25%; }
|
61 |
+
.medium-2{ width: 20%; }
|
62 |
+
}
|
63 |
+
</style>
|
64 |
+
|
65 |
+
<div id="poststuff">
|
66 |
+
<div id="post-body" class="metabox-holder page-template-free-trial-membership">
|
67 |
+
<div id="post-body-content">
|
68 |
+
<div class="grid-x grid-padding-x">
|
69 |
+
<div class="small-12 medium-8 cell">
|
70 |
+
<div class="wpos-trail-table">
|
71 |
+
<table class="wpos-trail-main-table">
|
72 |
+
<thead>
|
73 |
+
<tr class="edd_cart_header_row">
|
74 |
+
<th class="edd_cart_item_name">0$ Pro Trial</th>
|
75 |
+
<th class="edd_cart_item_price">Item Price</th>
|
76 |
+
</tr>
|
77 |
+
</thead>
|
78 |
+
<tbody>
|
79 |
+
<tr class="edd_cart_item" id="edd_cart_item_0_106568" data-download-id="106568">
|
80 |
+
<td class="edd_cart_item_name">
|
81 |
+
<span class="edd_checkout_cart_item_title">14 Days Pro Essential Plugin Bundle – 0$ Pro Trial - Unlimited Sites</span>
|
82 |
+
<p class="eddr-notice eddr-cart-item-notice" style="margin-bottom: 0 !important;"><em style="font-weight:bold; font-size:13px;line-height: normal;">* <span class="h-blue">After 14-Days</span> 0$ Pro Trial $149 will be billed annually.</em></p>
|
83 |
+
<p class="eddr-notice h-orange eddr-cart-item-notice"><em style="font-weight:bold; font-size:13px; ">* <span class="h-blue">Within 14-Days </span>0$ Pro Trial easily cancelable and you will not be charge at all.</em></p>
|
84 |
+
</td>
|
85 |
+
<td class="edd_cart_item_price">$149.00
|
86 |
+
</td>
|
87 |
+
</tr>
|
88 |
+
</tbody>
|
89 |
+
<tfoot>
|
90 |
+
<tr class="edd_cart_footer_row">
|
91 |
+
<th colspan="2" class="edd_cart_total">Total: <span class="edd_cart_amount" data-subtotal="149" data-total="149">$0.00</span></th>
|
92 |
+
</tr>
|
93 |
+
</tfoot>
|
94 |
+
</table>
|
95 |
+
</div>
|
96 |
+
<div class="grid-x grid-padding-x" style="text-align: center;width: 100%;padding: 30px 0;">
|
97 |
+
<div class="small-12 medium-6" style="display: inline-block; font-weight: bold;border-right: 1px solid #ddd;text-align: center;">
|
98 |
+
<span class="h-blue" style="font-size: 40px;margin-right: 10px;">277</span> <span style="display: inline-block;color: #505050;max-width: 100px;line-height: normal;text-align: left;font-size: 15px;">Trials in the last month</span>
|
99 |
+
</div>
|
100 |
+
<div class="small-12 medium-6" style="display: inline-block; font-weight: bold;text-align: center;">
|
101 |
+
<span class="h-blue" style="font-size: 40px;margin-right: 10px;">16,435</span> <span style="display: inline-block;color: #505050;max-width: 100px;line-height: normal;text-align: left;font-size: 15px;">Pro-users since 2015</span>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
<div class="small-12 medium-4 cell wpos-checkout-right">
|
106 |
+
<h4 class="cart-section-header">14 Days Pro Essential Plugin Bundle – <span style="color: #0055fb ;">0$ Pro Trial</span></h4>
|
107 |
+
<h5 style="font-size: 18px;line-height: 30px;margin: 10px 0px;">Your Plan Details:</h5>
|
108 |
+
<ul style="margin: 0;list-style: none;font-size: 16px;">
|
109 |
+
<li style="margin-bottom:8px;">
|
110 |
+
<span style="display:inline-block;vertical-align: middle;"><img src="<?php echo WPNW_URL; ?>/assets/images/utility-50.png" width="24"></span> <span style="display:inline-block;vertical-align: middle;">39 Utility Plugins</span>
|
111 |
+
</li>
|
112 |
+
<li style="margin-bottom:8px;">
|
113 |
+
<span style="display:inline-block;vertical-align: middle;"><img src="<?php echo WPNW_URL; ?>/assets/images/inboundwp-50.png" width="24"></span> <span style="display:inline-block;vertical-align: middle;">6 Marketing Tools</span>
|
114 |
+
</li>
|
115 |
+
<li style="margin-bottom:8px;">
|
116 |
+
<span style="display:inline-block;vertical-align: middle;"><img src="<?php echo WPNW_URL; ?>/assets/images/SlidersPack-50.png" width="24"></span><span style="display:inline-block;vertical-align: middle;"> 10 SlidersPack</span>
|
117 |
+
</li>
|
118 |
+
<li style="margin-bottom:8px;">
|
119 |
+
<span style="display:inline-block;vertical-align: middle;"><img src="<?php echo WPNW_URL; ?>/assets/images/popup-anything-icon.png" width="24"></span><span style="display:inline-block;vertical-align: middle;"> Popup Anything A Marketing Popup</span>
|
120 |
+
</li>
|
121 |
+
<li>
|
122 |
+
<span style="display:inline-block;vertical-align: middle;"><img src="<?php echo WPNW_URL; ?>/assets/images/security-icon.png" width="24"></span><span style="display:inline-block;vertical-align: middle;"> Essential Security</span>
|
123 |
+
</li>
|
124 |
+
</ul>
|
125 |
+
</div>
|
126 |
+
<div class="small-12 medium-12 cell text-center section-space-medium">
|
127 |
+
<a href="<?php echo WPNW_CHECKOUT_PLUGIN_LINK; ?>" class="large button button-orange radius" target="_blank">Join 0$ 14 Days Pro Trial</a>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
<div class="grid-x grid-padding-x" style="margin:30px 0;">
|
131 |
+
<div class="medium-12 cell text-center">
|
132 |
+
<h3 class="text-center cart-section-header" style="display: inline-block;">Build <span style="background:#0099fb;color:#fff;padding: 0 5px;">better websites</span>, <span style="background:#0099fb;color:#fff;padding: 0 5px;">landing pages</span> & <span style="background:#0099fb;color:#fff;padding: 0 5px;">conversion flow</span></h3>
|
133 |
+
</div>
|
134 |
+
<div class="text-center medium-12 cell epb-list">
|
135 |
+
<ul style="list-style:none;margin-left: 0;">
|
136 |
+
<li>
|
137 |
+
<h5 style="font-size:17px;"><span class="dashicons dashicons-saved"></span></i>45 plugins, 10 sliders, Best in class - Popup plugin<span class="new-badge" style="position: relative;top: -8px;right: 2px;font-size: 10px;">New</span> with 2000+ pre-built templates in <span class="h-blue">Essential Bundle</span></h5>
|
138 |
+
</li>
|
139 |
+
<li>
|
140 |
+
<h5 style="font-size:17px;line-height: 30px;margin-bottom: 6px !important;"><span class="dashicons dashicons-saved"></span> Compatible with <span style="text-decoration: underline;color: #ff5d52;">Gutenberg, DIVI, Elementor, Avada, VC/WPbakery</span> etc page builder/themes</h5>
|
141 |
+
</li>
|
142 |
+
</ul>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
<div class="grid-x grid-padding-x wpos-bundle-stats">
|
146 |
+
<div class="small-12 medium-12 cell text-center section-space-small">
|
147 |
+
<h3 class="cart-section-header text-center">What You Will Get?</h3>
|
148 |
+
</div>
|
149 |
+
<div class="medium-2 small-12 cell">
|
150 |
+
<div class="wpos-bundle-box text-center">
|
151 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/utility-50.png"><br>
|
152 |
+
39 <br>
|
153 |
+
Utility Plugins
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
<div class="medium-2 small-12 cell">
|
157 |
+
<div class="wpos-bundle-box text-center">
|
158 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/inboundwp-50.png"><br>
|
159 |
+
6 <br>
|
160 |
+
Marketing Tools
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
<div class="medium-2 small-12 cell">
|
164 |
+
<div class="wpos-bundle-box text-center">
|
165 |
+
<img src="<?php echo WPNW_URL; ?>assets/images/SlidersPack-50.png"><br>
|
166 |
+
10 <br>
|
167 |
+
SlidersPack
|
168 |
+
</div>
|
169 |
+
</div>
|
170 |
+
<div class="medium-2 small-12 cell">
|
171 |
+
<div class="wpos-bundle-box text-center">
|
172 |
+
<img src="<?php echo WPNW_URL; ?>assets/images/popup-anything-icon.png"><br>
|
173 |
+
Popup Anything <br>
|
174 |
+
A Marketing Popup
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
<div class="medium-2 small-12 cell">
|
178 |
+
<div class="wpos-bundle-box text-center">
|
179 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/security-icon.png"><br>
|
180 |
+
Essential <br>Security
|
181 |
+
</div>
|
182 |
+
</div>
|
183 |
+
<div class="medium-4 small-12 cell">
|
184 |
+
<div class="wpos-bundle-box text-center">
|
185 |
+
2000+ Templates
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
<div class="medium-4 small-12 cell">
|
189 |
+
<div class="wpos-bundle-box text-center">
|
190 |
+
Regular Updates With Valid Subscription
|
191 |
+
</div>
|
192 |
+
</div>
|
193 |
+
<div class="medium-4 small-12 cell">
|
194 |
+
<div class="wpos-bundle-box text-center">
|
195 |
+
Auto Renewal Yearly Product License
|
196 |
+
</div>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
|
200 |
+
<h3 class="pay-later-cta text-center section-space-medium" style="font-size: 28px;"><span style="color:#ed4635;">PAY $0 USD</span> + <span style="color:#5f9654;">INSTALL</span> + <span style="color:#9d42b0;">USE & EXPLORE</span> = <span class="h-blue">YOUR DECISION YOU PAY OR NOT</span></h3>
|
201 |
+
<div class="pricing-review-wrap text-center section-space-medium" style="padding:30px 0;background-color: #eaf1fe;">
|
202 |
+
<div class="grid-container">
|
203 |
+
<h4 class="section-space-small cart-section-header">Get convinced? Check out what our real-life members have to say...</h4>
|
204 |
+
<div class="grid-x grid-padding-x">
|
205 |
+
<div class="small-12 medium-3 cell text-center">
|
206 |
+
<a href="https://tinyurl.com/y4bh9dnn" target="_blank" style="display: block;">
|
207 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/g-logo.png" width="44">
|
208 |
+
<br>
|
209 |
+
<span style="color:#555">Google Reviews</span><br>
|
210 |
+
<span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><br>
|
211 |
+
<span>150+ reviews</span>
|
212 |
+
</a>
|
213 |
+
</div>
|
214 |
+
<div class="small-12 medium-3 cell">
|
215 |
+
<a href="https://www.facebook.com/EssentialPlugins/reviews/" target="_blank" style="display: block;">
|
216 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/fb-icon.png" width="44">
|
217 |
+
<br>
|
218 |
+
<span style="color:#555">Facebook Reviews</span><br>
|
219 |
+
<span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><br>
|
220 |
+
<span>50+ reviews</span>
|
221 |
+
</a>
|
222 |
+
</div>
|
223 |
+
<div class="small-12 medium-3 cell" style="padding-top: 10px;">
|
224 |
+
<a href="https://profiles.wordpress.org/wponlinesupport/#content-plugins" target="_blank" style="display: block;">
|
225 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/wordpress-icon-logo.png" width="150">
|
226 |
+
<br>
|
227 |
+
<span style="color:#555">WordPress.org Reviews</span><br>
|
228 |
+
<span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><br>
|
229 |
+
<span>500+ reviews</span>
|
230 |
+
</a>
|
231 |
+
</div>
|
232 |
+
<div class="small-12 medium-3 cell" style="padding-top:10px;">
|
233 |
+
<a href="https://www.essentialplugin.com/essential-plugin-bundle-testimonials/" target="_blank" style="display: block;">
|
234 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/essential-plugin-logo.png" width="150">
|
235 |
+
<br>
|
236 |
+
<span style="color:#555">On-Site Reviews</span><br>
|
237 |
+
<span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><span class="dashicons dashicons-star-filled" style="color: #fe8f01;"></span><br>
|
238 |
+
<span>200+ reviews</span>
|
239 |
+
</a>
|
240 |
+
</div>
|
241 |
+
</div>
|
242 |
+
</div>
|
243 |
+
</div>
|
244 |
+
|
245 |
+
<div class="text-center section-space-larger">
|
246 |
+
<a href="<?php echo WPNW_CHECKOUT_PLUGIN_LINK; ?>" class="large button button-orange radius" target="_blank">Join 0$ 14 Days Pro Bundle Trial</a>
|
247 |
+
<ul class="epb-list" style="text-align: left;list-style: none;margin: 0 auto;padding: 0 15px;max-width: 500px;">
|
248 |
+
<li><span class="dashicons dashicons-saved"></span><span class="h-orange">After 14 days - 0$ Pro Trial $149 will be billed annually.</span></li>
|
249 |
+
<li><span class="dashicons dashicons-saved"></span><span class="h-orange">Within 14 days 0$ Pro Trial easily cancelable and you will not be charge at all.</span></li>
|
250 |
+
</ul>
|
251 |
+
</div>
|
252 |
+
|
253 |
+
<div id="wpos-seam-integration" class="wpos-seam-integration section-space-medium">
|
254 |
+
<div class="grid-x grid-padding-x">
|
255 |
+
<div class="small-12 medium-12 cell text-center section-space-small">
|
256 |
+
<h4 class="h-blue cart-section-header">Seamless Integration With All Major Page Builders</h4>
|
257 |
+
<h3 class="cart-section-header">+ Multisite, Ecom Compatible</h3>
|
258 |
+
</div>
|
259 |
+
</div>
|
260 |
+
<div class="grid-container">
|
261 |
+
<div class="grid-x grid-padding-x">
|
262 |
+
<div class="small-12 medium-12 cell section-space-small">
|
263 |
+
<ul class="wp-builder-list" style="list-style:none;margin:0;">
|
264 |
+
<li>
|
265 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/gutenberg-icon.png" width="30"><span style="margin-left: 10px;">Gutenberg Page Builder</span>
|
266 |
+
</li>
|
267 |
+
<li>
|
268 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/site-origin-icon.png" width="30"><span style="margin-left: 10px;">Siteorigin Page Builder</span>
|
269 |
+
</li>
|
270 |
+
<li>
|
271 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/elementor-icon.png" width="30"><span style="margin-left: 10px;">Elementor Page Builder</span>
|
272 |
+
</li>
|
273 |
+
<li>
|
274 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/vc-icon.png" width="30"><span style="margin-left: 10px;">VC Composer Page Builder</span>
|
275 |
+
</li>
|
276 |
+
<li>
|
277 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/wpbakery-icon.png" width="30"><span style="margin-left: 10px;">WPbakery Page Builder</span>
|
278 |
+
</li>
|
279 |
+
<li>
|
280 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/beaver-icon.png" width="30"><span style="margin-left: 10px;">Beaver Page Builder</span>
|
281 |
+
</li>
|
282 |
+
<li>
|
283 |
+
<img src="<?php echo WPNW_URL; ?>/assets/images/divi-icon.png" width="30"><span style="margin-left: 10px;">Adding DIVI and Avada theme support</span>
|
284 |
+
</li>
|
285 |
+
|
286 |
+
</ul>
|
287 |
+
</div>
|
288 |
+
<div class="small-12 medium-12 cell text-center">
|
289 |
+
<a href="<?php echo WPNW_CHECKOUT_PLUGIN_LINK; ?>" class="large button button-orange radius" target="_blank">Join 0$ 14 Days Pro Bundle Trial</a>
|
290 |
+
<ul class="epb-list" style="text-align: left;list-style: none;max-width: 500px;margin: 0 auto;padding: 0;">
|
291 |
+
<li style="line-height: 34px;width: 100%;padding: 0;margin: 0;"><span class="dashicons dashicons-saved"></span><span class="h-orange">After 14 days - 0$ Pro Trial $149 will be billed annually.</span></li>
|
292 |
+
<li style="line-height: 34px;width: 100%;padding: 0;margin: 0;"><span class="dashicons dashicons-saved"></span><span class="h-orange">Within 14 days 0$ Pro Trial easily cancelable and you will not be charge at all.</span></li>
|
293 |
+
</ul>
|
294 |
+
</div>
|
295 |
+
</div>
|
296 |
+
</div>
|
297 |
+
</div>
|
298 |
+
</div>
|
299 |
+
</div>
|
300 |
+
</div>
|
301 |
+
</div>
|
includes/admin/supports/gutenberg-block.php
CHANGED
@@ -13,11 +13,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
function wpnw_register_guten_block() {
|
14 |
|
15 |
// Block Editor Script
|
16 |
-
wp_register_script( 'wpnw-block-js', WPNW_URL.'assets/js/blocks.build.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-components' ), WPNW_VERSION, true );
|
17 |
wp_localize_script( 'wpnw-block-js', 'Wpnwf_Block', array(
|
18 |
-
'pro_demo_link' => 'https://demo.
|
19 |
-
'free_demo_link' => 'https://demo.
|
20 |
-
'pro_link' =>
|
21 |
));
|
22 |
|
23 |
// Register block and explicit attributes for grid
|
@@ -145,4 +145,4 @@ function wpnw_add_block_category( $categories ) {
|
|
145 |
|
146 |
return $categories;
|
147 |
}
|
148 |
-
add_filter( '
|
13 |
function wpnw_register_guten_block() {
|
14 |
|
15 |
// Block Editor Script
|
16 |
+
wp_register_script( 'wpnw-block-js', WPNW_URL.'assets/js/blocks.build.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-block-editor', 'wp-components' ), WPNW_VERSION, true );
|
17 |
wp_localize_script( 'wpnw-block-js', 'Wpnwf_Block', array(
|
18 |
+
'pro_demo_link' => 'https://demo.essentialplugin.com/prodemo/news-plugin-pro/',
|
19 |
+
'free_demo_link' => 'https://demo.essentialplugin.com/sp-news/',
|
20 |
+
'pro_link' => WPNW_PLUGIN_LINK_UNLOCK,
|
21 |
));
|
22 |
|
23 |
// Register block and explicit attributes for grid
|
145 |
|
146 |
return $categories;
|
147 |
}
|
148 |
+
add_filter( 'block_categories_all', 'wpnw_add_block_category' );
|
includes/admin/wpnw-how-it-work.php
CHANGED
@@ -13,6 +13,16 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
|
14 |
<div class="wrap wpnwm-wrap">
|
15 |
<style type="text/css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
.wpos-pro-box .hndle{background-color:#0073AA; color:#fff;}
|
17 |
.wpos-pro-box.postbox{background:#dbf0fa none repeat scroll 0 0; border:1px solid #0073aa; color:#191e23;}
|
18 |
.postbox-container .wpos-list li:before{font-family: dashicons; content: "\f139"; font-size:20px; color: #0073aa; vertical-align: middle;}
|
@@ -20,9 +30,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
20 |
.wpnwm-shortcode-preview{background-color: #e7e7e7; font-weight: bold; padding: 2px 5px; display: inline-block; margin:0 0 2px 0;}
|
21 |
.upgrade-to-pro{font-size:18px; text-align:center; margin-bottom:15px;}
|
22 |
.wpos-copy-clipboard{-webkit-touch-callout: all; -webkit-user-select: all; -khtml-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;}
|
23 |
-
.
|
|
|
24 |
</style>
|
25 |
-
|
26 |
<div class="post-box-container">
|
27 |
<div id="poststuff">
|
28 |
<div id="post-body" class="metabox-holder columns-2">
|
@@ -30,6 +41,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
30 |
<!--How it workd HTML -->
|
31 |
<div id="post-body-content">
|
32 |
<div class="meta-box-sortables">
|
|
|
33 |
<div class="postbox">
|
34 |
<div class="postbox-header">
|
35 |
<h2 class="hndle">
|
@@ -79,6 +91,22 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
79 |
<span class="wpos-copy-clipboard wpnwm-shortcode-preview">[sp_news grid="3"]</span> – <?php _e('Display News in grid 3', 'sp-news-and-widget'); ?>
|
80 |
</td>
|
81 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
</tbody>
|
83 |
</table>
|
84 |
</div><!-- .inside -->
|
@@ -110,26 +138,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
110 |
</div><!-- .inside -->
|
111 |
</div><!-- #general -->
|
112 |
|
113 |
-
|
114 |
-
<div class="postbox-header">
|
115 |
-
<h2 class="hndle">
|
116 |
-
<span><?php _e( 'Need Support?', 'sp-news-and-widget' ); ?></span>
|
117 |
-
</h2>
|
118 |
-
</div>
|
119 |
-
<div class="inside">
|
120 |
-
<table class="form-table">
|
121 |
-
<tbody>
|
122 |
-
<tr>
|
123 |
-
<td>
|
124 |
-
<p><?php _e('Check plugin document for shortcode parameters and demo for designs.', 'sp-news-and-widget'); ?></p> <br/>
|
125 |
-
<a class="button button-primary" href="https://docs.wponlinesupport.com/wp-news-and-scrolling-widgets/" target="_blank"><?php _e('Documentation', 'sp-news-and-widget'); ?></a>
|
126 |
-
<a class="button button-primary" href="https://demo.wponlinesupport.com/sp-news/" target="_blank"><?php _e('Demo for Designs', 'sp-news-and-widget'); ?></a>
|
127 |
-
</td>
|
128 |
-
</tr>
|
129 |
-
</tbody>
|
130 |
-
</table>
|
131 |
-
</div><!-- .inside -->
|
132 |
-
</div><!-- #general -->
|
133 |
|
134 |
<div class="postbox">
|
135 |
<div class="postbox-header">
|
@@ -150,7 +159,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
150 |
<div class="postbox wpos-pro-box">
|
151 |
|
152 |
<h3 class="hndle">
|
153 |
-
<span><?php _e( '
|
154 |
</h3>
|
155 |
<div class="inside">
|
156 |
<ul class="wpos-list">
|
@@ -179,9 +188,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
179 |
<li>Custom CSS</li>
|
180 |
<li>100% Multi language</li>
|
181 |
</ul>
|
182 |
-
<div class="upgrade-to-pro"><?php echo sprintf( __( 'Gain access to <strong>WP News and Scrolling Widgets</strong>
|
183 |
-
<a class="button button-primary wpos-button-full" href="
|
184 |
-
<p><a class="button button-primary wpos-button-full" href="https://demo.wponlinesupport.com/prodemo/news-plugin-pro/" target="_blank"><?php _e('View PRO Demo ', 'sp-news-and-widget'); ?></a></p>
|
185 |
</div><!-- .inside -->
|
186 |
</div><!-- #general -->
|
187 |
</div><!-- .meta-box-sortables -->
|
13 |
|
14 |
<div class="wrap wpnwm-wrap">
|
15 |
<style type="text/css">
|
16 |
+
.wpos-box{box-shadow: 0 5px 30px 0 rgba(214,215,216,.57);background: #fff; padding-bottom:10px; position:relative;}
|
17 |
+
.wpos-box ul{padding: 15px;}
|
18 |
+
.wpos-box h5{background:#555; color:#fff; padding:15px; text-align:center;}
|
19 |
+
.wpos-box h4{ padding:0 15px; margin:5px 0; font-size:18px;}
|
20 |
+
.wpos-box .button{margin:0px 15px 15px 15px; text-align:center; padding:7px 15px; font-size:15px;display:inline-block;}
|
21 |
+
.wpos-box .wpos-list{list-style:square; margin:10px 0 0 20px;}
|
22 |
+
.wpos-clearfix:before, .wpos-clearfix:after{content: "";display: table;}
|
23 |
+
.wpos-clearfix::after{clear: both;}
|
24 |
+
.wpos-clearfix{clear: both;}
|
25 |
+
.wpos-col{width: 47%; float: left; margin-right:10px; margin-bottom:10px;}
|
26 |
.wpos-pro-box .hndle{background-color:#0073AA; color:#fff;}
|
27 |
.wpos-pro-box.postbox{background:#dbf0fa none repeat scroll 0 0; border:1px solid #0073aa; color:#191e23;}
|
28 |
.postbox-container .wpos-list li:before{font-family: dashicons; content: "\f139"; font-size:20px; color: #0073aa; vertical-align: middle;}
|
30 |
.wpnwm-shortcode-preview{background-color: #e7e7e7; font-weight: bold; padding: 2px 5px; display: inline-block; margin:0 0 2px 0;}
|
31 |
.upgrade-to-pro{font-size:18px; text-align:center; margin-bottom:15px;}
|
32 |
.wpos-copy-clipboard{-webkit-touch-callout: all; -webkit-user-select: all; -khtml-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;}
|
33 |
+
.button-orange{background: #ff5d52 !important;border-color: #ff5d52 !important; font-weight: 600;}
|
34 |
+
.button-blue{background: #0055fb !important;border-color: #0055fb !important; font-weight: 600;}
|
35 |
</style>
|
36 |
+
<h2><?php _e( 'How It Works', 'sp-news-and-widget' ); ?></h2>
|
37 |
<div class="post-box-container">
|
38 |
<div id="poststuff">
|
39 |
<div id="post-body" class="metabox-holder columns-2">
|
41 |
<!--How it workd HTML -->
|
42 |
<div id="post-body-content">
|
43 |
<div class="meta-box-sortables">
|
44 |
+
|
45 |
<div class="postbox">
|
46 |
<div class="postbox-header">
|
47 |
<h2 class="hndle">
|
91 |
<span class="wpos-copy-clipboard wpnwm-shortcode-preview">[sp_news grid="3"]</span> – <?php _e('Display News in grid 3', 'sp-news-and-widget'); ?>
|
92 |
</td>
|
93 |
</tr>
|
94 |
+
<tr>
|
95 |
+
<th>
|
96 |
+
<label><?php _e('Documentation', 'sp-news-and-widget'); ?>:</label>
|
97 |
+
</th>
|
98 |
+
<td>
|
99 |
+
<a class="button button-primary" href="https://docs.essentialplugin.com/wp-news-and-scrolling-widgets/" target="_blank"><?php _e('Check Documentation', 'sp-news-and-widget'); ?></a>
|
100 |
+
</td>
|
101 |
+
</tr>
|
102 |
+
<tr>
|
103 |
+
<th>
|
104 |
+
<label><?php _e('Demo', 'sp-news-and-widget'); ?>:</label>
|
105 |
+
</th>
|
106 |
+
<td>
|
107 |
+
<a class="button button-primary" href="https://demo.essentialplugin.com/sp-news/" target="_blank"><?php _e('Check Free Demo', 'sp-news-and-widget'); ?></a>
|
108 |
+
</td>
|
109 |
+
</tr>
|
110 |
</tbody>
|
111 |
</table>
|
112 |
</div><!-- .inside -->
|
138 |
</div><!-- .inside -->
|
139 |
</div><!-- #general -->
|
140 |
|
141 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
<div class="postbox">
|
144 |
<div class="postbox-header">
|
159 |
<div class="postbox wpos-pro-box">
|
160 |
|
161 |
<h3 class="hndle">
|
162 |
+
<span><?php _e( 'News Premium Features', 'sp-news-and-widget' ); ?></span>
|
163 |
</h3>
|
164 |
<div class="inside">
|
165 |
<ul class="wpos-list">
|
188 |
<li>Custom CSS</li>
|
189 |
<li>100% Multi language</li>
|
190 |
</ul>
|
191 |
+
<div class="upgrade-to-pro"><?php echo sprintf( __( 'Gain access to <strong>WP News and Scrolling Widgets</strong>', 'sp-news-and-widget' ) ); ?></div>
|
192 |
+
<a class="button button-primary wpos-button-full button-orange" href="<?php echo WPNW_PLUGIN_LINK_UPGRADE; ?>" target="_blank"><?php _e('Grab News Now', 'sp-news-and-widget'); ?></a>
|
|
|
193 |
</div><!-- .inside -->
|
194 |
</div><!-- #general -->
|
195 |
</div><!-- .meta-box-sortables -->
|
includes/class-wpnw-script.php
CHANGED
@@ -65,12 +65,21 @@ class Wpnw_Script {
|
|
65 |
*/
|
66 |
function wpnw_news_admin_style_script( $hook ) {
|
67 |
|
|
|
|
|
68 |
$this->wpnw_register_admin_assets();
|
69 |
|
70 |
// How it work page
|
71 |
if( $hook == WPNW_POST_TYPE.'_page_wpnw-designs' ) {
|
72 |
wp_enqueue_script( 'sp-news-admin-js' );
|
73 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
|
76 |
/**
|
65 |
*/
|
66 |
function wpnw_news_admin_style_script( $hook ) {
|
67 |
|
68 |
+
global $typenow;
|
69 |
+
|
70 |
$this->wpnw_register_admin_assets();
|
71 |
|
72 |
// How it work page
|
73 |
if( $hook == WPNW_POST_TYPE.'_page_wpnw-designs' ) {
|
74 |
wp_enqueue_script( 'sp-news-admin-js' );
|
75 |
}
|
76 |
+
|
77 |
+
// Taking pages array
|
78 |
+
$pages_arr = array( WPNW_POST_TYPE );
|
79 |
+
|
80 |
+
if( in_array($typenow, $pages_arr) ) {
|
81 |
+
wp_enqueue_style( 'sp-news-admin-css' );
|
82 |
+
}
|
83 |
}
|
84 |
|
85 |
/**
|
includes/functions.php
CHANGED
@@ -82,19 +82,6 @@ function wpnw_sanitize_html_classes($classes, $sep = " ") {
|
|
82 |
* @since 1.0.0
|
83 |
*/
|
84 |
function wpnw_news_pagination($args = array()){
|
85 |
-
// $big = 999999999; // need an unlikely integer
|
86 |
-
// $paging = apply_filters('news_blog_paging_args', array(
|
87 |
-
// 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
|
88 |
-
// 'format' => '?paged=%#%',
|
89 |
-
// 'current' => max( 1, $args['paged'] ),
|
90 |
-
// 'total' => $args['total'],
|
91 |
-
// 'prev_next' => true,
|
92 |
-
// 'prev_text' => __('« Previous', 'sp-news-and-widget'),
|
93 |
-
// 'next_text' => __('Next »', 'sp-news-and-widget'),
|
94 |
-
// ));
|
95 |
-
|
96 |
-
// echo paginate_links($paging);
|
97 |
-
|
98 |
|
99 |
$big = 999999999; // need an unlikely integer
|
100 |
$page_links_temp = array();
|
82 |
* @since 1.0.0
|
83 |
*/
|
84 |
function wpnw_news_pagination($args = array()){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
$big = 999999999; // need an unlikely integer
|
87 |
$page_links_temp = array();
|
languages/sp-news-and-widget-de_DE.mo
CHANGED
Binary file
|
languages/sp-news-and-widget-de_DE.po
CHANGED
@@ -2,199 +2,467 @@
|
|
2 |
# This file is distributed under the same license as the Development (trunk) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"PO-Revision-Date:
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
10 |
-
"X-Generator:
|
11 |
"Project-Id-Version: Development (trunk)\n"
|
12 |
"POT-Creation-Date: \n"
|
13 |
"Last-Translator: \n"
|
14 |
-
"Language-Team: \n"
|
15 |
-
"Language: de_DE
|
16 |
|
17 |
-
#:
|
18 |
-
|
19 |
-
msgid "Category"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#:
|
23 |
-
msgid "
|
24 |
-
msgstr "
|
25 |
|
26 |
-
#:
|
27 |
-
msgid "
|
|
|
|
|
28 |
msgstr ""
|
29 |
|
30 |
-
#:
|
31 |
-
msgid "
|
32 |
msgstr ""
|
33 |
|
34 |
-
#:
|
35 |
-
msgid "
|
|
|
|
|
|
|
36 |
msgstr ""
|
37 |
|
38 |
-
#.
|
39 |
-
msgid "
|
|
|
|
|
40 |
msgstr ""
|
41 |
|
42 |
-
|
43 |
-
msgid "
|
|
|
|
|
|
|
|
|
44 |
msgstr ""
|
45 |
|
46 |
-
|
47 |
-
|
|
|
48 |
msgstr ""
|
49 |
|
50 |
-
|
51 |
-
|
|
|
|
|
52 |
msgstr ""
|
53 |
|
54 |
-
#:
|
55 |
-
msgid "
|
56 |
msgstr ""
|
57 |
|
58 |
-
#:
|
59 |
-
msgid "
|
60 |
msgstr ""
|
61 |
|
62 |
-
#:
|
63 |
-
msgid "
|
64 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
-
#:
|
67 |
-
msgid "
|
68 |
msgstr ""
|
69 |
|
70 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
msgid "Display Date"
|
72 |
msgstr "Anzeigedatum"
|
73 |
|
74 |
-
#:
|
75 |
-
msgid "Display
|
76 |
msgstr ""
|
77 |
|
78 |
-
#:
|
79 |
-
msgid "
|
80 |
-
msgstr "
|
81 |
|
82 |
-
#:
|
83 |
-
msgid "
|
84 |
-
msgstr "
|
85 |
|
86 |
-
#:
|
87 |
msgid "Displayed Latest News Items from the News in a sidebar"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#:
|
91 |
-
msgid "Latest News
|
92 |
msgstr ""
|
93 |
|
94 |
-
#:
|
95 |
-
msgid "
|
96 |
-
|
|
|
97 |
|
98 |
-
#:
|
99 |
-
msgid "
|
100 |
-
msgstr "
|
101 |
|
102 |
-
#:
|
103 |
-
msgid "
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: sp-news-
|
107 |
-
msgid "
|
108 |
-
msgstr "
|
109 |
|
110 |
-
#: sp-news-
|
111 |
-
msgid "
|
112 |
-
msgstr "
|
113 |
|
114 |
-
#:
|
115 |
-
msgid "
|
116 |
msgstr ""
|
117 |
|
118 |
-
#:
|
119 |
-
msgid "
|
120 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
-
#: sp-news-
|
123 |
msgid "New Category Name"
|
124 |
msgstr "Neuer Kategorie Name"
|
125 |
|
126 |
-
#: sp-news-
|
127 |
-
msgid "
|
128 |
-
msgstr "
|
129 |
|
130 |
-
#:
|
131 |
-
msgid "
|
132 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
-
#: sp-news-
|
135 |
msgid "Parent Category:"
|
136 |
msgstr "Eltern Kategorie:"
|
137 |
|
138 |
-
#:
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
-
#: sp-news-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
msgid "Search Category"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#:
|
147 |
-
msgid "
|
148 |
msgstr ""
|
149 |
|
150 |
-
#:
|
151 |
-
msgid "
|
152 |
-
msgstr "
|
153 |
|
154 |
-
#:
|
155 |
-
|
156 |
-
msgid "News"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#:
|
160 |
-
|
161 |
-
msgid "news"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#:
|
165 |
-
|
166 |
-
|
|
|
167 |
msgstr ""
|
168 |
|
169 |
-
#:
|
170 |
-
msgid "
|
171 |
msgstr ""
|
172 |
|
173 |
-
#:
|
174 |
-
msgid "
|
175 |
msgstr ""
|
176 |
|
177 |
-
#:
|
178 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
msgstr ""
|
180 |
|
181 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
msgid "View News Item"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#:
|
186 |
-
msgid "
|
187 |
msgstr ""
|
188 |
|
189 |
-
#:
|
190 |
-
msgid "
|
191 |
msgstr ""
|
192 |
|
193 |
-
|
194 |
-
msgid "
|
195 |
msgstr ""
|
196 |
|
197 |
-
#:
|
198 |
-
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Development (trunk) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"PO-Revision-Date: 2021-08-18 10:02+0000\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
10 |
+
"X-Generator: Loco https://localise.biz/\n"
|
11 |
"Project-Id-Version: Development (trunk)\n"
|
12 |
"POT-Creation-Date: \n"
|
13 |
"Last-Translator: \n"
|
14 |
+
"Language-Team: German\n"
|
15 |
+
"Language: de_DE"
|
16 |
|
17 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:31
|
18 |
+
msgid "120+. In lite version only two design."
|
|
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: includes/admin/wpnw-how-it-work.php:144
|
22 |
+
msgid "5 stars!"
|
23 |
+
msgstr ""
|
24 |
|
25 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:23
|
26 |
+
msgid ""
|
27 |
+
"6 (Grid, Slider, Carousel, List, Gridbox, GridBox Slider, News Ticker). In "
|
28 |
+
"lite version only 1 layout."
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:39
|
32 |
+
msgid "7. In lite version only two widget."
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: includes/admin/wpnw-how-it-work.php:68
|
36 |
+
msgid ""
|
37 |
+
"<b>Please make sure that Permalink link should not be \"/news\" Otherwise "
|
38 |
+
"all your news will go to archive page. You can give it other name like "
|
39 |
+
"\"/ournews, /latestnews etc\"</b>"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#. Description of the plugin
|
43 |
+
msgid ""
|
44 |
+
"A simple News and three widgets(static, scrolling and with thumbs) plugin. "
|
45 |
+
"Also work with Gutenberg shortcode block."
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: includes/sp-news-post-type.php:64
|
49 |
+
msgid "Add New Category"
|
50 |
+
msgstr "Terminkategorie hinzufügen"
|
51 |
+
|
52 |
+
#: includes/sp-news-post-type.php:16
|
53 |
+
msgid "Add New News Item"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: includes/sp-news-post-type.php:24
|
57 |
+
msgctxt "admin menu"
|
58 |
+
msgid "News"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:89
|
62 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:95
|
63 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:101
|
64 |
+
msgid "All Categories"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: includes/sp-news-post-type.php:59
|
68 |
+
msgid "All Category"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: includes/admin/wpnw-how-it-work.php:76
|
72 |
+
msgid "All Shortcodes"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:63
|
76 |
+
msgid "Arrange your desired slides with your desired order and display."
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: includes/sp-news-post-type.php:66
|
80 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:85
|
81 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:91
|
82 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:97
|
83 |
+
#, fuzzy
|
84 |
+
#| msgid "Category:"
|
85 |
+
msgid "Category"
|
86 |
+
msgstr "Kategorie:"
|
87 |
+
|
88 |
+
#: includes/admin/wpnw-how-it-work.php:127
|
89 |
+
msgid "Check plugin document for shortcode parameters and demo for designs."
|
90 |
+
msgstr ""
|
91 |
|
92 |
+
#: includes/admin/wpnw-how-it-work.php:129
|
93 |
+
msgid "Demo for Designs"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
97 |
+
msgid "Designs"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:81
|
101 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:87
|
102 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:93
|
103 |
+
msgid "Display Category"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:76
|
107 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:82
|
108 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:88
|
109 |
msgid "Display Date"
|
110 |
msgstr "Anzeigedatum"
|
111 |
|
112 |
+
#: includes/admin/wpnw-how-it-work.php:80
|
113 |
+
msgid "Display News in grid 1"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: includes/admin/wpnw-how-it-work.php:81
|
117 |
+
msgid "Display News in grid 2"
|
118 |
+
msgstr ""
|
119 |
|
120 |
+
#: includes/admin/wpnw-how-it-work.php:82
|
121 |
+
msgid "Display News in grid 3"
|
122 |
+
msgstr ""
|
123 |
|
124 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:27
|
125 |
msgid "Displayed Latest News Items from the News in a sidebar"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:22
|
129 |
+
msgid "Displayed Latest News Items in a sidebar with thumbnails"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:79
|
133 |
+
msgid ""
|
134 |
+
"Do not display the news & Do not display the news for particular categories."
|
135 |
+
msgstr ""
|
136 |
|
137 |
+
#: includes/admin/wpnw-how-it-work.php:128
|
138 |
+
msgid "Documentation"
|
139 |
+
msgstr ""
|
140 |
|
141 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
142 |
+
msgid "Drag & Drop Slide Order Change"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: includes/sp-news-post-type.php:62
|
146 |
+
msgid "Edit Category"
|
147 |
+
msgstr "Bearbeite Kategorie"
|
148 |
|
149 |
+
#: includes/sp-news-post-type.php:17
|
150 |
+
msgid "Edit News Item"
|
151 |
+
msgstr ""
|
152 |
|
153 |
+
#: includes/admin/wpnw-how-it-work.php:144
|
154 |
+
msgid "Enjoyed this plugin? You can help by rate this plugin "
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
158 |
+
msgid "Exclude News and Exclude Some Categories"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: includes/admin/wpnw-how-it-work.php:185
|
162 |
+
msgid ""
|
163 |
+
"Gain access to <strong>WP News and Scrolling Widgets</strong> included in "
|
164 |
+
"<br /><strong>Essential Plugin Bundle"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: includes/admin/wpnw-how-it-work.php:48
|
168 |
+
msgid "Getting Started"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: includes/admin/wpnw-how-it-work.php:186
|
172 |
+
msgid "Go Premium "
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:71
|
176 |
+
msgid ""
|
177 |
+
"Gutenberg Block, Elementor, Bevear Builder, SiteOrigin, Divi, Visual "
|
178 |
+
"Composer and Fusion Page Builder Support"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: includes/admin/wpnw-how-it-work.php:93
|
182 |
+
msgid "Gutenberg Support"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:113
|
186 |
+
#, fuzzy
|
187 |
+
#| msgid "Height:"
|
188 |
+
msgid "Height"
|
189 |
+
msgstr "Höhe:"
|
190 |
+
|
191 |
+
#: includes/admin/wpnw-how-it-work.php:140
|
192 |
+
msgid "Help to improve this plugin!"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: includes/admin/wpnw-how-it-work.php:101
|
196 |
+
msgid "How it Work"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: includes/admin/wpnw-how-it-work.php:16
|
200 |
+
#: includes/admin/class-wpnw-admin.php:44
|
201 |
+
msgid "How It Works"
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: includes/admin/wpnw-how-it-work.php:39
|
205 |
+
msgid "How It Works - Display and Shortcode"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: includes/admin/class-wpnw-admin.php:44
|
209 |
+
msgid "How it works - WP News and Scrolling Widgets"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: includes/admin/wpnw-how-it-work.php:63
|
213 |
+
msgid "How Shortcode Works"
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#. Author URI of the plugin
|
217 |
+
msgid "https://www.essentialplugin.com/"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: sp-news-and-widget.php:155
|
221 |
+
#, php-format
|
222 |
+
msgid ""
|
223 |
+
"It looks like you had PRO version %s of this plugin activated. To avoid "
|
224 |
+
"conflicts the extra version has been deactivated and we recommend you delete "
|
225 |
+
"it."
|
226 |
+
msgstr ""
|
227 |
+
|
228 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:34
|
229 |
+
msgid "Latest News"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:31
|
233 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:35
|
234 |
+
msgid "Latest News Scrolling Widget"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:30
|
238 |
+
msgid "Latest News Widget"
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:25
|
242 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:29
|
243 |
+
msgid "Latest News with Thumb"
|
244 |
+
msgstr ""
|
245 |
+
|
246 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
247 |
+
msgid "Layouts"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: includes/admin/class-wpnw-admin.php:77
|
251 |
+
msgid "More Premium - Settings"
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: includes/admin/wpnw-how-it-work.php:119
|
255 |
+
msgid "Need Support?"
|
256 |
+
msgstr ""
|
257 |
|
258 |
+
#: includes/sp-news-post-type.php:65
|
259 |
msgid "New Category Name"
|
260 |
msgstr "Neuer Kategorie Name"
|
261 |
|
262 |
+
#: includes/sp-news-post-type.php:18
|
263 |
+
msgid "New News Item"
|
264 |
+
msgstr ""
|
265 |
|
266 |
+
#: includes/admin/wpnw-how-it-work.php:79
|
267 |
+
msgid "News in List View"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#: includes/functions.php:98 includes/shortcode/sp-news-shortcode.php:203
|
271 |
+
msgid "Next"
|
272 |
+
msgstr ""
|
273 |
+
|
274 |
+
#: includes/sp-news-post-type.php:21
|
275 |
+
msgid "No News Items found"
|
276 |
+
msgstr ""
|
277 |
+
|
278 |
+
#: includes/sp-news-post-type.php:22
|
279 |
+
msgid "No News Items found in Trash"
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:71
|
283 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:77
|
284 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:83
|
285 |
+
msgid "Number of Items"
|
286 |
+
msgstr ""
|
287 |
+
|
288 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
289 |
+
msgid "Page Builder Support"
|
290 |
+
msgstr ""
|
291 |
+
|
292 |
+
#: includes/sp-news-post-type.php:60
|
293 |
+
msgid "Parent Category"
|
294 |
+
msgstr "Eltern Kategorie"
|
295 |
|
296 |
+
#: includes/sp-news-post-type.php:61
|
297 |
msgid "Parent Category:"
|
298 |
msgstr "Eltern Kategorie:"
|
299 |
|
300 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:118
|
301 |
+
#, fuzzy
|
302 |
+
#| msgid "Pause:"
|
303 |
+
msgid "Pause"
|
304 |
+
msgstr "Pause:"
|
305 |
+
|
306 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:55
|
307 |
+
msgid ""
|
308 |
+
"Play with all shortcode parameters with preview panel. No documentation "
|
309 |
+
"required."
|
310 |
+
msgstr ""
|
311 |
|
312 |
+
#: includes/functions.php:97 includes/shortcode/sp-news-shortcode.php:204
|
313 |
+
msgid "Previous"
|
314 |
+
msgstr ""
|
315 |
+
|
316 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
317 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
318 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
319 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
320 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
321 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
322 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
323 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
324 |
+
msgid "PRO"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
#: includes/shortcode/sp-news-shortcode.php:185
|
328 |
+
msgid "Read More"
|
329 |
+
msgstr "Lesen Sie weiter"
|
330 |
+
|
331 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:28
|
332 |
+
msgid "Scroll Latest News Items from the News in a sidebar"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#: includes/sp-news-post-type.php:20
|
336 |
+
msgid "Search News Items"
|
337 |
+
msgstr ""
|
338 |
+
|
339 |
+
#: includes/sp-news-post-type.php:58
|
340 |
msgid "Search Category"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
344 |
+
msgid "Shortcode Generator "
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:123
|
348 |
+
msgid "Speed"
|
349 |
+
msgstr ""
|
350 |
|
351 |
+
#: includes/admin/wpnw-how-it-work.php:67
|
352 |
+
msgid "Step-1. Create a page like Our News OR Latest News."
|
|
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: includes/admin/wpnw-how-it-work.php:105
|
356 |
+
msgid "Step-1. Go to the Gutenberg editor of your page."
|
|
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: includes/admin/wpnw-how-it-work.php:52
|
360 |
+
msgid ""
|
361 |
+
"Step-1: This plugin create a News menu tab in WordPress menu with custom "
|
362 |
+
"post type."
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: includes/admin/wpnw-how-it-work.php:69
|
366 |
+
msgid "Step-2. Put below shortcode as per your need."
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: includes/admin/wpnw-how-it-work.php:106
|
370 |
+
msgid "Step-2. Search \"news\" keyword in the Gutenberg block list."
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: includes/admin/wpnw-how-it-work.php:53
|
374 |
+
msgid "Step-2: Go to \"News > Add news item tab\"."
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: includes/admin/wpnw-how-it-work.php:107
|
378 |
+
msgid ""
|
379 |
+
"Step-3. Add any block of news and you will find its relative options on the "
|
380 |
+
"right end side."
|
381 |
+
msgstr ""
|
382 |
+
|
383 |
+
#: includes/admin/wpnw-how-it-work.php:54
|
384 |
+
msgid ""
|
385 |
+
"Step-3: Add news title, description, category, and image as featured image."
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: includes/admin/wpnw-how-it-work.php:55
|
389 |
+
msgid "Step-4: Repeat this process and add multiple news item."
|
390 |
+
msgstr ""
|
391 |
+
|
392 |
+
#: includes/admin/wpnw-how-it-work.php:56
|
393 |
+
msgid ""
|
394 |
+
"Step-4: To display news category wise you can use category shortcode under "
|
395 |
+
"\"News > News category\""
|
396 |
+
msgstr ""
|
397 |
+
|
398 |
+
#: sp-news-and-widget.php:154
|
399 |
+
#, php-format
|
400 |
+
msgid "Thank you for activating %s"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:67
|
404 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:73
|
405 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:79
|
406 |
+
#, fuzzy
|
407 |
+
#| msgid "Title:"
|
408 |
+
msgid "Title"
|
409 |
+
msgstr "Überschrift:"
|
410 |
+
|
411 |
+
#: includes/sp-news-post-type.php:63
|
412 |
+
msgid "Update Category"
|
413 |
+
msgstr "Aktualisiere Kategorie"
|
414 |
+
|
415 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:14
|
416 |
+
#, php-format
|
417 |
+
msgid ""
|
418 |
+
"Upgrade to <a href=\"%s\" target=\"_blank\">Premium Version</a> to unlock "
|
419 |
+
"more features."
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#: includes/admin/class-wpnw-admin.php:47
|
423 |
+
msgid "Upgrade to PRO"
|
424 |
+
msgstr ""
|
425 |
+
|
426 |
+
#: includes/admin/class-wpnw-admin.php:47
|
427 |
+
msgid "Upgrade to PRO - WP News and Scrolling Widgets"
|
428 |
+
msgstr ""
|
429 |
+
|
430 |
+
#: includes/admin/wpnw-how-it-work.php:156
|
431 |
+
msgid "Upgrate to Pro"
|
432 |
+
msgstr ""
|
433 |
+
|
434 |
+
#: includes/sp-news-post-type.php:19
|
435 |
msgid "View News Item"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: includes/admin/wpnw-how-it-work.php:187
|
439 |
+
msgid "View PRO Demo "
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
443 |
+
msgid "Widgets"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#. Name of the plugin
|
447 |
+
msgid "WP News and Scrolling Widgets"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: includes/admin/settings/premium.php:15
|
451 |
+
msgid "WP News and Scrolling Widgets - Features"
|
452 |
+
msgstr ""
|
453 |
+
|
454 |
+
#. Author of the plugin
|
455 |
+
msgid "WP OnlineSupport, Essential Plugin"
|
456 |
+
msgstr ""
|
457 |
+
|
458 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
459 |
+
msgid "WP Templating Features "
|
460 |
+
msgstr ""
|
461 |
+
|
462 |
+
#: includes/admin/supports/gutenberg-block.php:141
|
463 |
+
msgid "WPOS Blocks"
|
464 |
+
msgstr ""
|
465 |
+
|
466 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:47
|
467 |
+
msgid "You can modify plugin html/designs in your current theme."
|
468 |
msgstr ""
|
languages/sp-news-and-widget-en_US-wpnw-block-js.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=2; plural=n != 1;","lang":"en_US"},"https://github.com/ahmadawais/create-guten-block/":[null,""],"https://www.
|
1 |
+
{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=2; plural=n != 1;","lang":"en_US"},"https://github.com/ahmadawais/create-guten-block/":[null,""],"https://www.essentialplugin.com/":[null,""],"WP News and Scrolling Widgets - Gutenberg":[null,""],"WP News and Scrolling Widgets Gutenberg.":[null,""],"WP OnlineSupport, Essential Plugin":[null,""],"WPOS Blocks":[null,""]}}}
|
languages/sp-news-and-widget-es_ES.mo
CHANGED
Binary file
|
languages/sp-news-and-widget-es_ES.po
CHANGED
@@ -2,211 +2,467 @@
|
|
2 |
# This file is distributed under the same license as the Development (trunk) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"PO-Revision-Date:
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
10 |
-
"X-Generator:
|
11 |
"Project-Id-Version: Development (trunk)\n"
|
12 |
"POT-Creation-Date: \n"
|
13 |
"Last-Translator: \n"
|
14 |
-
"Language-Team: \n"
|
15 |
-
"Language: es_ES
|
16 |
|
17 |
-
#:
|
18 |
-
msgid "
|
19 |
msgstr ""
|
20 |
|
21 |
-
#:
|
22 |
-
msgid "
|
23 |
msgstr ""
|
24 |
|
25 |
-
#:
|
26 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: sp-news-
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
msgid "Category"
|
|
|
|
|
|
|
|
|
32 |
msgstr ""
|
33 |
|
34 |
-
#:
|
35 |
-
msgid "
|
36 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
-
#:
|
39 |
-
msgid "
|
40 |
msgstr ""
|
41 |
|
42 |
-
#:
|
|
|
|
|
|
|
|
|
43 |
msgid "Displayed Latest News Items in a sidebar with thumbnails"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#:
|
47 |
-
msgid "
|
|
|
48 |
msgstr ""
|
49 |
|
50 |
-
|
51 |
-
msgid "
|
52 |
msgstr ""
|
53 |
|
54 |
-
|
55 |
-
msgid "
|
56 |
msgstr ""
|
57 |
|
58 |
-
|
59 |
-
msgid "
|
|
|
|
|
|
|
|
|
60 |
msgstr ""
|
61 |
|
62 |
-
|
63 |
-
msgid "
|
64 |
msgstr ""
|
65 |
|
66 |
-
#:
|
67 |
-
msgid "
|
68 |
msgstr ""
|
69 |
|
70 |
-
#:
|
71 |
-
msgid "
|
|
|
|
|
72 |
msgstr ""
|
73 |
|
74 |
-
#:
|
75 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
msgstr "Largo:"
|
77 |
|
78 |
-
#:
|
79 |
-
msgid "
|
80 |
msgstr ""
|
81 |
|
82 |
-
#:
|
83 |
-
msgid "
|
84 |
msgstr ""
|
85 |
|
86 |
-
#:
|
87 |
-
|
|
|
88 |
msgstr ""
|
89 |
|
90 |
-
#:
|
91 |
-
msgid "
|
92 |
-
msgstr "
|
93 |
|
94 |
-
#:
|
95 |
-
msgid "
|
96 |
-
msgstr "
|
97 |
|
98 |
-
#:
|
99 |
-
msgid "
|
100 |
msgstr ""
|
101 |
|
102 |
-
|
103 |
-
msgid "
|
104 |
msgstr ""
|
105 |
|
106 |
-
#:
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
109 |
|
110 |
-
#:
|
111 |
-
msgid "
|
112 |
-
msgstr "
|
113 |
|
114 |
-
#:
|
115 |
-
|
|
|
116 |
msgstr ""
|
117 |
|
118 |
-
#:
|
119 |
-
msgid "
|
120 |
-
msgstr "
|
121 |
|
122 |
-
#:
|
123 |
-
|
124 |
-
|
|
|
125 |
|
126 |
-
#:
|
127 |
-
msgid "
|
128 |
msgstr ""
|
129 |
|
130 |
-
#:
|
131 |
-
msgid "
|
132 |
-
msgstr "
|
133 |
|
134 |
-
#:
|
|
|
|
|
|
|
|
|
135 |
msgid "New Category Name"
|
136 |
msgstr "Novo Nome da Categoria"
|
137 |
|
138 |
-
#: sp-news-
|
139 |
-
msgid "
|
140 |
-
msgstr "
|
141 |
|
142 |
-
#:
|
143 |
-
msgid "
|
144 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
|
146 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
msgid "Parent Category:"
|
148 |
msgstr "Categoria Parente:"
|
149 |
|
150 |
-
#:
|
151 |
-
|
152 |
-
|
|
|
|
|
153 |
|
154 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
msgid "Search Category"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#:
|
159 |
-
msgid "
|
160 |
msgstr ""
|
161 |
|
162 |
-
#:
|
163 |
-
msgid "
|
164 |
-
msgstr "
|
165 |
|
166 |
-
#:
|
167 |
-
|
168 |
-
msgid "News"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#:
|
172 |
-
|
173 |
-
msgid "news"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#:
|
177 |
-
|
178 |
-
|
|
|
179 |
msgstr ""
|
180 |
|
181 |
-
#:
|
182 |
-
msgid "
|
183 |
msgstr ""
|
184 |
|
185 |
-
#:
|
186 |
-
msgid "
|
187 |
msgstr ""
|
188 |
|
189 |
-
#:
|
190 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
msgstr ""
|
192 |
|
193 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
msgid "View News Item"
|
195 |
msgstr ""
|
196 |
|
197 |
-
#:
|
198 |
-
msgid "
|
199 |
msgstr ""
|
200 |
|
201 |
-
#:
|
202 |
-
msgid "
|
203 |
msgstr ""
|
204 |
|
205 |
-
|
206 |
-
msgid "
|
207 |
msgstr ""
|
208 |
|
209 |
-
#:
|
210 |
-
|
211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Development (trunk) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"PO-Revision-Date: 2021-08-18 10:02+0000\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
10 |
+
"X-Generator: Loco https://localise.biz/\n"
|
11 |
"Project-Id-Version: Development (trunk)\n"
|
12 |
"POT-Creation-Date: \n"
|
13 |
"Last-Translator: \n"
|
14 |
+
"Language-Team: Spanish (Spain)\n"
|
15 |
+
"Language: es_ES"
|
16 |
|
17 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:31
|
18 |
+
msgid "120+. In lite version only two design."
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: includes/admin/wpnw-how-it-work.php:144
|
22 |
+
msgid "5 stars!"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:23
|
26 |
+
msgid ""
|
27 |
+
"6 (Grid, Slider, Carousel, List, Gridbox, GridBox Slider, News Ticker). In "
|
28 |
+
"lite version only 1 layout."
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:39
|
32 |
+
msgid "7. In lite version only two widget."
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: includes/admin/wpnw-how-it-work.php:68
|
36 |
+
msgid ""
|
37 |
+
"<b>Please make sure that Permalink link should not be \"/news\" Otherwise "
|
38 |
+
"all your news will go to archive page. You can give it other name like "
|
39 |
+
"\"/ournews, /latestnews etc\"</b>"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#. Description of the plugin
|
43 |
+
msgid ""
|
44 |
+
"A simple News and three widgets(static, scrolling and with thumbs) plugin. "
|
45 |
+
"Also work with Gutenberg shortcode block."
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: includes/sp-news-post-type.php:64
|
49 |
+
msgid "Add New Category"
|
50 |
+
msgstr "Adicionar Nova Categoria"
|
51 |
+
|
52 |
+
#: includes/sp-news-post-type.php:16
|
53 |
+
msgid "Add New News Item"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: includes/sp-news-post-type.php:24
|
57 |
+
msgctxt "admin menu"
|
58 |
+
msgid "News"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:89
|
62 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:95
|
63 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:101
|
64 |
+
msgid "All Categories"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: includes/sp-news-post-type.php:59
|
68 |
+
msgid "All Category"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: includes/admin/wpnw-how-it-work.php:76
|
72 |
+
msgid "All Shortcodes"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:63
|
76 |
+
msgid "Arrange your desired slides with your desired order and display."
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: includes/sp-news-post-type.php:66
|
80 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:85
|
81 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:91
|
82 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:97
|
83 |
+
#, fuzzy
|
84 |
+
#| msgid "Category:"
|
85 |
msgid "Category"
|
86 |
+
msgstr "Categoría:"
|
87 |
+
|
88 |
+
#: includes/admin/wpnw-how-it-work.php:127
|
89 |
+
msgid "Check plugin document for shortcode parameters and demo for designs."
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: includes/admin/wpnw-how-it-work.php:129
|
93 |
+
msgid "Demo for Designs"
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
97 |
+
msgid "Designs"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:81
|
101 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:87
|
102 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:93
|
103 |
+
msgid "Display Category"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:76
|
107 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:82
|
108 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:88
|
109 |
+
msgid "Display Date"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: includes/admin/wpnw-how-it-work.php:80
|
113 |
+
msgid "Display News in grid 1"
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: includes/admin/wpnw-how-it-work.php:81
|
117 |
+
msgid "Display News in grid 2"
|
118 |
+
msgstr ""
|
119 |
|
120 |
+
#: includes/admin/wpnw-how-it-work.php:82
|
121 |
+
msgid "Display News in grid 3"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:27
|
125 |
+
msgid "Displayed Latest News Items from the News in a sidebar"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:22
|
129 |
msgid "Displayed Latest News Items in a sidebar with thumbnails"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:79
|
133 |
+
msgid ""
|
134 |
+
"Do not display the news & Do not display the news for particular categories."
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: includes/admin/wpnw-how-it-work.php:128
|
138 |
+
msgid "Documentation"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
142 |
+
msgid "Drag & Drop Slide Order Change"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: includes/sp-news-post-type.php:62
|
146 |
+
msgid "Edit Category"
|
147 |
+
msgstr "Modificar Categoría"
|
148 |
+
|
149 |
+
#: includes/sp-news-post-type.php:17
|
150 |
+
msgid "Edit News Item"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: includes/admin/wpnw-how-it-work.php:144
|
154 |
+
msgid "Enjoyed this plugin? You can help by rate this plugin "
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
158 |
+
msgid "Exclude News and Exclude Some Categories"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: includes/admin/wpnw-how-it-work.php:185
|
162 |
+
msgid ""
|
163 |
+
"Gain access to <strong>WP News and Scrolling Widgets</strong> included in "
|
164 |
+
"<br /><strong>Essential Plugin Bundle"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: includes/admin/wpnw-how-it-work.php:48
|
168 |
+
msgid "Getting Started"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: includes/admin/wpnw-how-it-work.php:186
|
172 |
+
msgid "Go Premium "
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:71
|
176 |
+
msgid ""
|
177 |
+
"Gutenberg Block, Elementor, Bevear Builder, SiteOrigin, Divi, Visual "
|
178 |
+
"Composer and Fusion Page Builder Support"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: includes/admin/wpnw-how-it-work.php:93
|
182 |
+
msgid "Gutenberg Support"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:113
|
186 |
+
#, fuzzy
|
187 |
+
#| msgid "Height:"
|
188 |
+
msgid "Height"
|
189 |
msgstr "Largo:"
|
190 |
|
191 |
+
#: includes/admin/wpnw-how-it-work.php:140
|
192 |
+
msgid "Help to improve this plugin!"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: includes/admin/wpnw-how-it-work.php:101
|
196 |
+
msgid "How it Work"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: includes/admin/wpnw-how-it-work.php:16
|
200 |
+
#: includes/admin/class-wpnw-admin.php:44
|
201 |
+
msgid "How It Works"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: includes/admin/wpnw-how-it-work.php:39
|
205 |
+
msgid "How It Works - Display and Shortcode"
|
206 |
+
msgstr ""
|
207 |
|
208 |
+
#: includes/admin/class-wpnw-admin.php:44
|
209 |
+
msgid "How it works - WP News and Scrolling Widgets"
|
210 |
+
msgstr ""
|
211 |
|
212 |
+
#: includes/admin/wpnw-how-it-work.php:63
|
213 |
+
msgid "How Shortcode Works"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#. Author URI of the plugin
|
217 |
+
msgid "https://www.essentialplugin.com/"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: sp-news-and-widget.php:155
|
221 |
+
#, php-format
|
222 |
+
msgid ""
|
223 |
+
"It looks like you had PRO version %s of this plugin activated. To avoid "
|
224 |
+
"conflicts the extra version has been deactivated and we recommend you delete "
|
225 |
+
"it."
|
226 |
+
msgstr ""
|
227 |
|
228 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:34
|
229 |
+
msgid "Latest News"
|
230 |
+
msgstr ""
|
231 |
|
232 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:31
|
233 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:35
|
234 |
+
msgid "Latest News Scrolling Widget"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:30
|
238 |
+
msgid "Latest News Widget"
|
239 |
+
msgstr ""
|
240 |
|
241 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:25
|
242 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:29
|
243 |
+
msgid "Latest News with Thumb"
|
244 |
+
msgstr ""
|
245 |
|
246 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
247 |
+
msgid "Layouts"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: includes/admin/class-wpnw-admin.php:77
|
251 |
+
msgid "More Premium - Settings"
|
252 |
+
msgstr ""
|
253 |
|
254 |
+
#: includes/admin/wpnw-how-it-work.php:119
|
255 |
+
msgid "Need Support?"
|
256 |
+
msgstr ""
|
257 |
+
|
258 |
+
#: includes/sp-news-post-type.php:65
|
259 |
msgid "New Category Name"
|
260 |
msgstr "Novo Nome da Categoria"
|
261 |
|
262 |
+
#: includes/sp-news-post-type.php:18
|
263 |
+
msgid "New News Item"
|
264 |
+
msgstr ""
|
265 |
|
266 |
+
#: includes/admin/wpnw-how-it-work.php:79
|
267 |
+
msgid "News in List View"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#: includes/functions.php:98 includes/shortcode/sp-news-shortcode.php:203
|
271 |
+
msgid "Next"
|
272 |
+
msgstr ""
|
273 |
+
|
274 |
+
#: includes/sp-news-post-type.php:21
|
275 |
+
msgid "No News Items found"
|
276 |
+
msgstr ""
|
277 |
+
|
278 |
+
#: includes/sp-news-post-type.php:22
|
279 |
+
msgid "No News Items found in Trash"
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:71
|
283 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:77
|
284 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:83
|
285 |
+
msgid "Number of Items"
|
286 |
+
msgstr ""
|
287 |
|
288 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
289 |
+
msgid "Page Builder Support"
|
290 |
+
msgstr ""
|
291 |
+
|
292 |
+
#: includes/sp-news-post-type.php:60
|
293 |
+
msgid "Parent Category"
|
294 |
+
msgstr "Categoria Parente"
|
295 |
+
|
296 |
+
#: includes/sp-news-post-type.php:61
|
297 |
msgid "Parent Category:"
|
298 |
msgstr "Categoria Parente:"
|
299 |
|
300 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:118
|
301 |
+
#, fuzzy
|
302 |
+
#| msgid "Pause:"
|
303 |
+
msgid "Pause"
|
304 |
+
msgstr "Parar:"
|
305 |
|
306 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:55
|
307 |
+
msgid ""
|
308 |
+
"Play with all shortcode parameters with preview panel. No documentation "
|
309 |
+
"required."
|
310 |
+
msgstr ""
|
311 |
+
|
312 |
+
#: includes/functions.php:97 includes/shortcode/sp-news-shortcode.php:204
|
313 |
+
msgid "Previous"
|
314 |
+
msgstr ""
|
315 |
+
|
316 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
317 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
318 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
319 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
320 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
321 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
322 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
323 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
324 |
+
msgid "PRO"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
#: includes/shortcode/sp-news-shortcode.php:185
|
328 |
+
msgid "Read More"
|
329 |
+
msgstr "Lea más"
|
330 |
+
|
331 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:28
|
332 |
+
msgid "Scroll Latest News Items from the News in a sidebar"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#: includes/sp-news-post-type.php:20
|
336 |
+
msgid "Search News Items"
|
337 |
+
msgstr ""
|
338 |
+
|
339 |
+
#: includes/sp-news-post-type.php:58
|
340 |
msgid "Search Category"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
344 |
+
msgid "Shortcode Generator "
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:123
|
348 |
+
msgid "Speed"
|
349 |
+
msgstr ""
|
350 |
|
351 |
+
#: includes/admin/wpnw-how-it-work.php:67
|
352 |
+
msgid "Step-1. Create a page like Our News OR Latest News."
|
|
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: includes/admin/wpnw-how-it-work.php:105
|
356 |
+
msgid "Step-1. Go to the Gutenberg editor of your page."
|
|
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: includes/admin/wpnw-how-it-work.php:52
|
360 |
+
msgid ""
|
361 |
+
"Step-1: This plugin create a News menu tab in WordPress menu with custom "
|
362 |
+
"post type."
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: includes/admin/wpnw-how-it-work.php:69
|
366 |
+
msgid "Step-2. Put below shortcode as per your need."
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: includes/admin/wpnw-how-it-work.php:106
|
370 |
+
msgid "Step-2. Search \"news\" keyword in the Gutenberg block list."
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: includes/admin/wpnw-how-it-work.php:53
|
374 |
+
msgid "Step-2: Go to \"News > Add news item tab\"."
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: includes/admin/wpnw-how-it-work.php:107
|
378 |
+
msgid ""
|
379 |
+
"Step-3. Add any block of news and you will find its relative options on the "
|
380 |
+
"right end side."
|
381 |
+
msgstr ""
|
382 |
+
|
383 |
+
#: includes/admin/wpnw-how-it-work.php:54
|
384 |
+
msgid ""
|
385 |
+
"Step-3: Add news title, description, category, and image as featured image."
|
386 |
+
msgstr ""
|
387 |
+
|
388 |
+
#: includes/admin/wpnw-how-it-work.php:55
|
389 |
+
msgid "Step-4: Repeat this process and add multiple news item."
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: includes/admin/wpnw-how-it-work.php:56
|
393 |
+
msgid ""
|
394 |
+
"Step-4: To display news category wise you can use category shortcode under "
|
395 |
+
"\"News > News category\""
|
396 |
+
msgstr ""
|
397 |
+
|
398 |
+
#: sp-news-and-widget.php:154
|
399 |
+
#, php-format
|
400 |
+
msgid "Thank you for activating %s"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:67
|
404 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:73
|
405 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:79
|
406 |
+
#, fuzzy
|
407 |
+
#| msgid "Title:"
|
408 |
+
msgid "Title"
|
409 |
+
msgstr "Titulo:"
|
410 |
+
|
411 |
+
#: includes/sp-news-post-type.php:63
|
412 |
+
msgid "Update Category"
|
413 |
+
msgstr "Atualizar Categoria"
|
414 |
+
|
415 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:14
|
416 |
+
#, php-format
|
417 |
+
msgid ""
|
418 |
+
"Upgrade to <a href=\"%s\" target=\"_blank\">Premium Version</a> to unlock "
|
419 |
+
"more features."
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#: includes/admin/class-wpnw-admin.php:47
|
423 |
+
msgid "Upgrade to PRO"
|
424 |
+
msgstr ""
|
425 |
+
|
426 |
+
#: includes/admin/class-wpnw-admin.php:47
|
427 |
+
msgid "Upgrade to PRO - WP News and Scrolling Widgets"
|
428 |
+
msgstr ""
|
429 |
+
|
430 |
+
#: includes/admin/wpnw-how-it-work.php:156
|
431 |
+
msgid "Upgrate to Pro"
|
432 |
+
msgstr ""
|
433 |
+
|
434 |
+
#: includes/sp-news-post-type.php:19
|
435 |
msgid "View News Item"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: includes/admin/wpnw-how-it-work.php:187
|
439 |
+
msgid "View PRO Demo "
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
443 |
+
msgid "Widgets"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#. Name of the plugin
|
447 |
+
msgid "WP News and Scrolling Widgets"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: includes/admin/settings/premium.php:15
|
451 |
+
msgid "WP News and Scrolling Widgets - Features"
|
452 |
+
msgstr ""
|
453 |
+
|
454 |
+
#. Author of the plugin
|
455 |
+
msgid "WP OnlineSupport, Essential Plugin"
|
456 |
+
msgstr ""
|
457 |
+
|
458 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
459 |
+
msgid "WP Templating Features "
|
460 |
+
msgstr ""
|
461 |
+
|
462 |
+
#: includes/admin/supports/gutenberg-block.php:141
|
463 |
+
msgid "WPOS Blocks"
|
464 |
+
msgstr ""
|
465 |
+
|
466 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:47
|
467 |
+
msgid "You can modify plugin html/designs in your current theme."
|
468 |
msgstr ""
|
languages/sp-news-and-widget-fr_FR.mo
CHANGED
Binary file
|
languages/sp-news-and-widget-fr_FR.po
CHANGED
@@ -2,199 +2,467 @@
|
|
2 |
# This file is distributed under the same license as the Development (trunk) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"PO-Revision-Date:
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
10 |
-
"X-Generator:
|
11 |
"Project-Id-Version: Development (trunk)\n"
|
12 |
"POT-Creation-Date: \n"
|
13 |
"Last-Translator: \n"
|
14 |
-
"Language-Team: \n"
|
15 |
-
"Language: fr_FR
|
16 |
|
17 |
-
#:
|
18 |
-
|
19 |
-
msgid "Category"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#:
|
23 |
-
msgid "
|
24 |
-
msgstr "
|
25 |
|
26 |
-
#:
|
27 |
-
msgid "
|
|
|
|
|
28 |
msgstr ""
|
29 |
|
30 |
-
#:
|
31 |
-
msgid "
|
32 |
msgstr ""
|
33 |
|
34 |
-
#:
|
35 |
-
msgid "
|
|
|
|
|
|
|
36 |
msgstr ""
|
37 |
|
38 |
-
#.
|
39 |
-
msgid "
|
|
|
|
|
40 |
msgstr ""
|
41 |
|
42 |
-
|
43 |
-
msgid "
|
|
|
|
|
|
|
|
|
44 |
msgstr ""
|
45 |
|
46 |
-
|
47 |
-
|
|
|
48 |
msgstr ""
|
49 |
|
50 |
-
|
51 |
-
|
|
|
|
|
52 |
msgstr ""
|
53 |
|
54 |
-
#:
|
55 |
-
msgid "
|
56 |
msgstr ""
|
57 |
|
58 |
-
#:
|
59 |
-
msgid "
|
60 |
msgstr ""
|
61 |
|
62 |
-
#:
|
63 |
-
msgid "
|
64 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
-
#:
|
67 |
-
msgid "
|
68 |
msgstr ""
|
69 |
|
70 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
msgid "Display Date"
|
72 |
msgstr "Affichage de la date"
|
73 |
|
74 |
-
#:
|
75 |
-
msgid "Display
|
76 |
msgstr ""
|
77 |
|
78 |
-
#:
|
79 |
-
msgid "
|
80 |
-
msgstr "
|
81 |
|
82 |
-
#:
|
83 |
-
msgid "
|
84 |
-
msgstr "
|
85 |
|
86 |
-
#:
|
87 |
msgid "Displayed Latest News Items from the News in a sidebar"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#:
|
91 |
-
msgid "Latest News
|
92 |
msgstr ""
|
93 |
|
94 |
-
#:
|
95 |
-
msgid "
|
96 |
-
|
|
|
97 |
|
98 |
-
#:
|
99 |
-
msgid "
|
100 |
-
msgstr "
|
101 |
|
102 |
-
#:
|
103 |
-
msgid "
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: sp-news-
|
107 |
-
msgid "
|
108 |
-
msgstr "
|
109 |
|
110 |
-
#: sp-news-
|
111 |
-
msgid "
|
112 |
-
msgstr "
|
113 |
|
114 |
-
#:
|
115 |
-
msgid "
|
116 |
msgstr ""
|
117 |
|
118 |
-
#:
|
119 |
-
msgid "
|
120 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
-
#: sp-news-
|
123 |
msgid "New Category Name"
|
124 |
msgstr "Nom Catégorie"
|
125 |
|
126 |
-
#: sp-news-
|
127 |
-
msgid "
|
128 |
-
msgstr "
|
129 |
|
130 |
-
#:
|
131 |
-
msgid "
|
132 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
-
#: sp-news-
|
135 |
msgid "Parent Category:"
|
136 |
msgstr "Catégorie parente :"
|
137 |
|
138 |
-
#:
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
-
#: sp-news-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
msgid "Search Category"
|
144 |
msgstr "Chercher la catégorie"
|
145 |
|
146 |
-
#:
|
147 |
-
msgid "
|
148 |
msgstr ""
|
149 |
|
150 |
-
#:
|
151 |
-
msgid "
|
152 |
-
msgstr "
|
153 |
|
154 |
-
#:
|
155 |
-
|
156 |
-
msgid "News"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#:
|
160 |
-
|
161 |
-
msgid "news"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#:
|
165 |
-
|
166 |
-
|
|
|
167 |
msgstr ""
|
168 |
|
169 |
-
#:
|
170 |
-
msgid "
|
171 |
msgstr ""
|
172 |
|
173 |
-
#:
|
174 |
-
msgid "
|
175 |
msgstr ""
|
176 |
|
177 |
-
#:
|
178 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
msgstr ""
|
180 |
|
181 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
msgid "View News Item"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#:
|
186 |
-
msgid "
|
187 |
msgstr ""
|
188 |
|
189 |
-
#:
|
190 |
-
msgid "
|
191 |
msgstr ""
|
192 |
|
193 |
-
|
194 |
-
msgid "
|
195 |
msgstr ""
|
196 |
|
197 |
-
#:
|
198 |
-
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Development (trunk) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"PO-Revision-Date: 2021-08-18 10:02+0000\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
10 |
+
"X-Generator: Loco https://localise.biz/\n"
|
11 |
"Project-Id-Version: Development (trunk)\n"
|
12 |
"POT-Creation-Date: \n"
|
13 |
"Last-Translator: \n"
|
14 |
+
"Language-Team: French (France)\n"
|
15 |
+
"Language: fr_FR"
|
16 |
|
17 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:31
|
18 |
+
msgid "120+. In lite version only two design."
|
|
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: includes/admin/wpnw-how-it-work.php:144
|
22 |
+
msgid "5 stars!"
|
23 |
+
msgstr ""
|
24 |
|
25 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:23
|
26 |
+
msgid ""
|
27 |
+
"6 (Grid, Slider, Carousel, List, Gridbox, GridBox Slider, News Ticker). In "
|
28 |
+
"lite version only 1 layout."
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:39
|
32 |
+
msgid "7. In lite version only two widget."
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: includes/admin/wpnw-how-it-work.php:68
|
36 |
+
msgid ""
|
37 |
+
"<b>Please make sure that Permalink link should not be \"/news\" Otherwise "
|
38 |
+
"all your news will go to archive page. You can give it other name like "
|
39 |
+
"\"/ournews, /latestnews etc\"</b>"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#. Description of the plugin
|
43 |
+
msgid ""
|
44 |
+
"A simple News and three widgets(static, scrolling and with thumbs) plugin. "
|
45 |
+
"Also work with Gutenberg shortcode block."
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: includes/sp-news-post-type.php:64
|
49 |
+
msgid "Add New Category"
|
50 |
+
msgstr "Ajouter Catégorie"
|
51 |
+
|
52 |
+
#: includes/sp-news-post-type.php:16
|
53 |
+
msgid "Add New News Item"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: includes/sp-news-post-type.php:24
|
57 |
+
msgctxt "admin menu"
|
58 |
+
msgid "News"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:89
|
62 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:95
|
63 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:101
|
64 |
+
msgid "All Categories"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: includes/sp-news-post-type.php:59
|
68 |
+
msgid "All Category"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: includes/admin/wpnw-how-it-work.php:76
|
72 |
+
msgid "All Shortcodes"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:63
|
76 |
+
msgid "Arrange your desired slides with your desired order and display."
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: includes/sp-news-post-type.php:66
|
80 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:85
|
81 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:91
|
82 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:97
|
83 |
+
#, fuzzy
|
84 |
+
#| msgid "Category:"
|
85 |
+
msgid "Category"
|
86 |
+
msgstr "Catégories :"
|
87 |
+
|
88 |
+
#: includes/admin/wpnw-how-it-work.php:127
|
89 |
+
msgid "Check plugin document for shortcode parameters and demo for designs."
|
90 |
+
msgstr ""
|
91 |
|
92 |
+
#: includes/admin/wpnw-how-it-work.php:129
|
93 |
+
msgid "Demo for Designs"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
97 |
+
msgid "Designs"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:81
|
101 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:87
|
102 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:93
|
103 |
+
msgid "Display Category"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:76
|
107 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:82
|
108 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:88
|
109 |
msgid "Display Date"
|
110 |
msgstr "Affichage de la date"
|
111 |
|
112 |
+
#: includes/admin/wpnw-how-it-work.php:80
|
113 |
+
msgid "Display News in grid 1"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: includes/admin/wpnw-how-it-work.php:81
|
117 |
+
msgid "Display News in grid 2"
|
118 |
+
msgstr ""
|
119 |
|
120 |
+
#: includes/admin/wpnw-how-it-work.php:82
|
121 |
+
msgid "Display News in grid 3"
|
122 |
+
msgstr ""
|
123 |
|
124 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:27
|
125 |
msgid "Displayed Latest News Items from the News in a sidebar"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:22
|
129 |
+
msgid "Displayed Latest News Items in a sidebar with thumbnails"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:79
|
133 |
+
msgid ""
|
134 |
+
"Do not display the news & Do not display the news for particular categories."
|
135 |
+
msgstr ""
|
136 |
|
137 |
+
#: includes/admin/wpnw-how-it-work.php:128
|
138 |
+
msgid "Documentation"
|
139 |
+
msgstr ""
|
140 |
|
141 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
142 |
+
msgid "Drag & Drop Slide Order Change"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: includes/sp-news-post-type.php:62
|
146 |
+
msgid "Edit Category"
|
147 |
+
msgstr "Modifier Catégorie"
|
148 |
|
149 |
+
#: includes/sp-news-post-type.php:17
|
150 |
+
msgid "Edit News Item"
|
151 |
+
msgstr ""
|
152 |
|
153 |
+
#: includes/admin/wpnw-how-it-work.php:144
|
154 |
+
msgid "Enjoyed this plugin? You can help by rate this plugin "
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
158 |
+
msgid "Exclude News and Exclude Some Categories"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: includes/admin/wpnw-how-it-work.php:185
|
162 |
+
msgid ""
|
163 |
+
"Gain access to <strong>WP News and Scrolling Widgets</strong> included in "
|
164 |
+
"<br /><strong>Essential Plugin Bundle"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: includes/admin/wpnw-how-it-work.php:48
|
168 |
+
msgid "Getting Started"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: includes/admin/wpnw-how-it-work.php:186
|
172 |
+
msgid "Go Premium "
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:71
|
176 |
+
msgid ""
|
177 |
+
"Gutenberg Block, Elementor, Bevear Builder, SiteOrigin, Divi, Visual "
|
178 |
+
"Composer and Fusion Page Builder Support"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: includes/admin/wpnw-how-it-work.php:93
|
182 |
+
msgid "Gutenberg Support"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:113
|
186 |
+
#, fuzzy
|
187 |
+
#| msgid "Height:"
|
188 |
+
msgid "Height"
|
189 |
+
msgstr "Hauteur :"
|
190 |
+
|
191 |
+
#: includes/admin/wpnw-how-it-work.php:140
|
192 |
+
msgid "Help to improve this plugin!"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: includes/admin/wpnw-how-it-work.php:101
|
196 |
+
msgid "How it Work"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: includes/admin/wpnw-how-it-work.php:16
|
200 |
+
#: includes/admin/class-wpnw-admin.php:44
|
201 |
+
msgid "How It Works"
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: includes/admin/wpnw-how-it-work.php:39
|
205 |
+
msgid "How It Works - Display and Shortcode"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: includes/admin/class-wpnw-admin.php:44
|
209 |
+
msgid "How it works - WP News and Scrolling Widgets"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: includes/admin/wpnw-how-it-work.php:63
|
213 |
+
msgid "How Shortcode Works"
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#. Author URI of the plugin
|
217 |
+
msgid "https://www.essentialplugin.com/"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: sp-news-and-widget.php:155
|
221 |
+
#, php-format
|
222 |
+
msgid ""
|
223 |
+
"It looks like you had PRO version %s of this plugin activated. To avoid "
|
224 |
+
"conflicts the extra version has been deactivated and we recommend you delete "
|
225 |
+
"it."
|
226 |
+
msgstr ""
|
227 |
+
|
228 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:34
|
229 |
+
msgid "Latest News"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:31
|
233 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:35
|
234 |
+
msgid "Latest News Scrolling Widget"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:30
|
238 |
+
msgid "Latest News Widget"
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:25
|
242 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:29
|
243 |
+
msgid "Latest News with Thumb"
|
244 |
+
msgstr ""
|
245 |
+
|
246 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
247 |
+
msgid "Layouts"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: includes/admin/class-wpnw-admin.php:77
|
251 |
+
msgid "More Premium - Settings"
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: includes/admin/wpnw-how-it-work.php:119
|
255 |
+
msgid "Need Support?"
|
256 |
+
msgstr ""
|
257 |
|
258 |
+
#: includes/sp-news-post-type.php:65
|
259 |
msgid "New Category Name"
|
260 |
msgstr "Nom Catégorie"
|
261 |
|
262 |
+
#: includes/sp-news-post-type.php:18
|
263 |
+
msgid "New News Item"
|
264 |
+
msgstr ""
|
265 |
|
266 |
+
#: includes/admin/wpnw-how-it-work.php:79
|
267 |
+
msgid "News in List View"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#: includes/functions.php:98 includes/shortcode/sp-news-shortcode.php:203
|
271 |
+
msgid "Next"
|
272 |
+
msgstr ""
|
273 |
+
|
274 |
+
#: includes/sp-news-post-type.php:21
|
275 |
+
msgid "No News Items found"
|
276 |
+
msgstr ""
|
277 |
+
|
278 |
+
#: includes/sp-news-post-type.php:22
|
279 |
+
msgid "No News Items found in Trash"
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:71
|
283 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:77
|
284 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:83
|
285 |
+
msgid "Number of Items"
|
286 |
+
msgstr ""
|
287 |
+
|
288 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
289 |
+
msgid "Page Builder Support"
|
290 |
+
msgstr ""
|
291 |
+
|
292 |
+
#: includes/sp-news-post-type.php:60
|
293 |
+
msgid "Parent Category"
|
294 |
+
msgstr "Catégorie parente"
|
295 |
|
296 |
+
#: includes/sp-news-post-type.php:61
|
297 |
msgid "Parent Category:"
|
298 |
msgstr "Catégorie parente :"
|
299 |
|
300 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:118
|
301 |
+
#, fuzzy
|
302 |
+
#| msgid "Pause:"
|
303 |
+
msgid "Pause"
|
304 |
+
msgstr "Pause :"
|
305 |
+
|
306 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:55
|
307 |
+
msgid ""
|
308 |
+
"Play with all shortcode parameters with preview panel. No documentation "
|
309 |
+
"required."
|
310 |
+
msgstr ""
|
311 |
|
312 |
+
#: includes/functions.php:97 includes/shortcode/sp-news-shortcode.php:204
|
313 |
+
msgid "Previous"
|
314 |
+
msgstr ""
|
315 |
+
|
316 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
317 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
318 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
319 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
320 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
321 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
322 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
323 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
324 |
+
msgid "PRO"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
#: includes/shortcode/sp-news-shortcode.php:185
|
328 |
+
msgid "Read More"
|
329 |
+
msgstr "En savoir plus"
|
330 |
+
|
331 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:28
|
332 |
+
msgid "Scroll Latest News Items from the News in a sidebar"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#: includes/sp-news-post-type.php:20
|
336 |
+
msgid "Search News Items"
|
337 |
+
msgstr ""
|
338 |
+
|
339 |
+
#: includes/sp-news-post-type.php:58
|
340 |
msgid "Search Category"
|
341 |
msgstr "Chercher la catégorie"
|
342 |
|
343 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
344 |
+
msgid "Shortcode Generator "
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:123
|
348 |
+
msgid "Speed"
|
349 |
+
msgstr ""
|
350 |
|
351 |
+
#: includes/admin/wpnw-how-it-work.php:67
|
352 |
+
msgid "Step-1. Create a page like Our News OR Latest News."
|
|
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: includes/admin/wpnw-how-it-work.php:105
|
356 |
+
msgid "Step-1. Go to the Gutenberg editor of your page."
|
|
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: includes/admin/wpnw-how-it-work.php:52
|
360 |
+
msgid ""
|
361 |
+
"Step-1: This plugin create a News menu tab in WordPress menu with custom "
|
362 |
+
"post type."
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: includes/admin/wpnw-how-it-work.php:69
|
366 |
+
msgid "Step-2. Put below shortcode as per your need."
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: includes/admin/wpnw-how-it-work.php:106
|
370 |
+
msgid "Step-2. Search \"news\" keyword in the Gutenberg block list."
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: includes/admin/wpnw-how-it-work.php:53
|
374 |
+
msgid "Step-2: Go to \"News > Add news item tab\"."
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: includes/admin/wpnw-how-it-work.php:107
|
378 |
+
msgid ""
|
379 |
+
"Step-3. Add any block of news and you will find its relative options on the "
|
380 |
+
"right end side."
|
381 |
+
msgstr ""
|
382 |
+
|
383 |
+
#: includes/admin/wpnw-how-it-work.php:54
|
384 |
+
msgid ""
|
385 |
+
"Step-3: Add news title, description, category, and image as featured image."
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: includes/admin/wpnw-how-it-work.php:55
|
389 |
+
msgid "Step-4: Repeat this process and add multiple news item."
|
390 |
+
msgstr ""
|
391 |
+
|
392 |
+
#: includes/admin/wpnw-how-it-work.php:56
|
393 |
+
msgid ""
|
394 |
+
"Step-4: To display news category wise you can use category shortcode under "
|
395 |
+
"\"News > News category\""
|
396 |
+
msgstr ""
|
397 |
+
|
398 |
+
#: sp-news-and-widget.php:154
|
399 |
+
#, php-format
|
400 |
+
msgid "Thank you for activating %s"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:67
|
404 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:73
|
405 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:79
|
406 |
+
#, fuzzy
|
407 |
+
#| msgid "Title:"
|
408 |
+
msgid "Title"
|
409 |
+
msgstr "Titre:"
|
410 |
+
|
411 |
+
#: includes/sp-news-post-type.php:63
|
412 |
+
msgid "Update Category"
|
413 |
+
msgstr "Mettre à jour la catégorie"
|
414 |
+
|
415 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:14
|
416 |
+
#, php-format
|
417 |
+
msgid ""
|
418 |
+
"Upgrade to <a href=\"%s\" target=\"_blank\">Premium Version</a> to unlock "
|
419 |
+
"more features."
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#: includes/admin/class-wpnw-admin.php:47
|
423 |
+
msgid "Upgrade to PRO"
|
424 |
+
msgstr ""
|
425 |
+
|
426 |
+
#: includes/admin/class-wpnw-admin.php:47
|
427 |
+
msgid "Upgrade to PRO - WP News and Scrolling Widgets"
|
428 |
+
msgstr ""
|
429 |
+
|
430 |
+
#: includes/admin/wpnw-how-it-work.php:156
|
431 |
+
msgid "Upgrate to Pro"
|
432 |
+
msgstr ""
|
433 |
+
|
434 |
+
#: includes/sp-news-post-type.php:19
|
435 |
msgid "View News Item"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: includes/admin/wpnw-how-it-work.php:187
|
439 |
+
msgid "View PRO Demo "
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
443 |
+
msgid "Widgets"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#. Name of the plugin
|
447 |
+
msgid "WP News and Scrolling Widgets"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: includes/admin/settings/premium.php:15
|
451 |
+
msgid "WP News and Scrolling Widgets - Features"
|
452 |
+
msgstr ""
|
453 |
+
|
454 |
+
#. Author of the plugin
|
455 |
+
msgid "WP OnlineSupport, Essential Plugin"
|
456 |
+
msgstr ""
|
457 |
+
|
458 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
459 |
+
msgid "WP Templating Features "
|
460 |
+
msgstr ""
|
461 |
+
|
462 |
+
#: includes/admin/supports/gutenberg-block.php:141
|
463 |
+
msgid "WPOS Blocks"
|
464 |
+
msgstr ""
|
465 |
+
|
466 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:47
|
467 |
+
msgid "You can modify plugin html/designs in your current theme."
|
468 |
msgstr ""
|
languages/sp-news-and-widget-pl_PL.mo
CHANGED
Binary file
|
languages/sp-news-and-widget-pl_PL.po
CHANGED
@@ -2,199 +2,470 @@
|
|
2 |
# This file is distributed under the same license as the Development (trunk) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"PO-Revision-Date:
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
-
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10
|
10 |
-
"
|
|
|
11 |
"Project-Id-Version: Development (trunk)\n"
|
12 |
"POT-Creation-Date: \n"
|
13 |
"Last-Translator: \n"
|
14 |
-
"Language-Team: \n"
|
15 |
-
"Language: pl_PL
|
16 |
|
17 |
-
#:
|
18 |
-
|
19 |
-
msgid "Category"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#:
|
23 |
-
msgid "
|
24 |
-
msgstr "
|
25 |
|
26 |
-
#:
|
27 |
-
msgid "
|
28 |
-
|
|
|
|
|
29 |
|
30 |
-
#:
|
31 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
msgstr ""
|
33 |
|
34 |
-
|
35 |
-
msgid "
|
|
|
|
|
36 |
msgstr ""
|
37 |
|
38 |
-
|
39 |
-
msgid "
|
|
|
|
|
|
|
|
|
40 |
msgstr ""
|
41 |
|
42 |
-
|
43 |
-
|
|
|
44 |
msgstr ""
|
45 |
|
46 |
-
|
47 |
-
|
|
|
|
|
48 |
msgstr ""
|
49 |
|
50 |
-
|
51 |
-
msgid "
|
52 |
msgstr ""
|
53 |
|
54 |
-
#:
|
55 |
-
msgid "
|
56 |
msgstr ""
|
57 |
|
58 |
-
#:
|
59 |
-
msgid "
|
60 |
msgstr ""
|
61 |
|
62 |
-
#:
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
-
#:
|
67 |
-
msgid "
|
68 |
msgstr ""
|
69 |
|
70 |
-
#:
|
71 |
-
msgid "
|
72 |
-
msgstr "
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
#:
|
|
|
|
|
75 |
msgid "Display Category"
|
76 |
msgstr "Wyświetlić kategorię?"
|
77 |
|
78 |
-
#:
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
-
#:
|
83 |
-
msgid "
|
84 |
-
msgstr "
|
|
|
|
|
|
|
|
|
85 |
|
86 |
-
#:
|
87 |
msgid "Displayed Latest News Items from the News in a sidebar"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#:
|
91 |
-
msgid "Latest News
|
92 |
msgstr ""
|
93 |
|
94 |
-
#:
|
95 |
-
msgid "
|
96 |
-
|
|
|
97 |
|
98 |
-
#:
|
99 |
-
msgid "
|
100 |
-
msgstr "
|
101 |
|
102 |
-
#:
|
103 |
-
msgid "
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: sp-news-
|
107 |
-
msgid "
|
108 |
-
msgstr "
|
109 |
|
110 |
-
#: sp-news-
|
111 |
-
msgid "
|
112 |
-
msgstr "
|
113 |
|
114 |
-
#:
|
115 |
-
msgid "
|
116 |
msgstr ""
|
117 |
|
118 |
-
#:
|
119 |
-
msgid "
|
120 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
-
#: sp-news-
|
123 |
msgid "New Category Name"
|
124 |
msgstr "Nazwa nowej kategorii"
|
125 |
|
126 |
-
#: sp-news-
|
127 |
-
msgid "
|
128 |
-
msgstr "
|
129 |
|
130 |
-
#:
|
131 |
-
msgid "
|
132 |
-
msgstr "
|
|
|
|
|
|
|
|
|
133 |
|
134 |
-
#: sp-news-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
msgid "Parent Category:"
|
136 |
msgstr "Kategoria nadrzędna"
|
137 |
|
138 |
-
#:
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
msgid "Search Category"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#:
|
147 |
-
msgid "
|
148 |
msgstr ""
|
149 |
|
150 |
-
#:
|
151 |
-
|
152 |
-
|
|
|
|
|
153 |
|
154 |
-
#:
|
155 |
-
|
156 |
-
msgid "News"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#:
|
160 |
-
|
161 |
-
msgid "news"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#:
|
165 |
-
|
166 |
-
|
|
|
167 |
msgstr ""
|
168 |
|
169 |
-
#:
|
170 |
-
msgid "
|
171 |
msgstr ""
|
172 |
|
173 |
-
#:
|
174 |
-
msgid "
|
175 |
msgstr ""
|
176 |
|
177 |
-
#:
|
178 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
msgstr ""
|
180 |
|
181 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
msgid "View News Item"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#:
|
186 |
-
msgid "
|
187 |
msgstr ""
|
188 |
|
189 |
-
#:
|
190 |
-
msgid "
|
191 |
msgstr ""
|
192 |
|
193 |
-
|
194 |
-
msgid "
|
195 |
msgstr ""
|
196 |
|
197 |
-
#:
|
198 |
-
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Development (trunk) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"PO-Revision-Date: 2021-08-18 10:01+0000\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
10 |
+
"|| n%100>=20) ? 1 : 2);\n"
|
11 |
+
"X-Generator: Loco https://localise.biz/\n"
|
12 |
"Project-Id-Version: Development (trunk)\n"
|
13 |
"POT-Creation-Date: \n"
|
14 |
"Last-Translator: \n"
|
15 |
+
"Language-Team: Polish\n"
|
16 |
+
"Language: pl_PL"
|
17 |
|
18 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:31
|
19 |
+
msgid "120+. In lite version only two design."
|
|
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: includes/admin/wpnw-how-it-work.php:144
|
23 |
+
msgid "5 stars!"
|
24 |
+
msgstr ""
|
25 |
|
26 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:23
|
27 |
+
msgid ""
|
28 |
+
"6 (Grid, Slider, Carousel, List, Gridbox, GridBox Slider, News Ticker). In "
|
29 |
+
"lite version only 1 layout."
|
30 |
+
msgstr ""
|
31 |
|
32 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:39
|
33 |
+
msgid "7. In lite version only two widget."
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: includes/admin/wpnw-how-it-work.php:68
|
37 |
+
msgid ""
|
38 |
+
"<b>Please make sure that Permalink link should not be \"/news\" Otherwise "
|
39 |
+
"all your news will go to archive page. You can give it other name like "
|
40 |
+
"\"/ournews, /latestnews etc\"</b>"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#. Description of the plugin
|
44 |
+
msgid ""
|
45 |
+
"A simple News and three widgets(static, scrolling and with thumbs) plugin. "
|
46 |
+
"Also work with Gutenberg shortcode block."
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: includes/sp-news-post-type.php:64
|
50 |
+
msgid "Add New Category"
|
51 |
+
msgstr "Dodaj nową kategorię"
|
52 |
+
|
53 |
+
#: includes/sp-news-post-type.php:16
|
54 |
+
msgid "Add New News Item"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: includes/sp-news-post-type.php:24
|
58 |
+
msgctxt "admin menu"
|
59 |
+
msgid "News"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:89
|
63 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:95
|
64 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:101
|
65 |
+
msgid "All Categories"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: includes/sp-news-post-type.php:59
|
69 |
+
msgid "All Category"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: includes/admin/wpnw-how-it-work.php:76
|
73 |
+
msgid "All Shortcodes"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:63
|
77 |
+
msgid "Arrange your desired slides with your desired order and display."
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: includes/sp-news-post-type.php:66
|
81 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:85
|
82 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:91
|
83 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:97
|
84 |
+
#, fuzzy
|
85 |
+
#| msgid "Category:"
|
86 |
+
msgid "Category"
|
87 |
+
msgstr "Kategoria: "
|
88 |
|
89 |
+
#: includes/admin/wpnw-how-it-work.php:127
|
90 |
+
msgid "Check plugin document for shortcode parameters and demo for designs."
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: includes/admin/wpnw-how-it-work.php:129
|
94 |
+
msgid "Demo for Designs"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
98 |
+
msgid "Designs"
|
99 |
+
msgstr ""
|
100 |
|
101 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:81
|
102 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:87
|
103 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:93
|
104 |
msgid "Display Category"
|
105 |
msgstr "Wyświetlić kategorię?"
|
106 |
|
107 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:76
|
108 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:82
|
109 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:88
|
110 |
+
msgid "Display Date"
|
111 |
+
msgstr "Wyświetl datę wpisu"
|
112 |
+
|
113 |
+
#: includes/admin/wpnw-how-it-work.php:80
|
114 |
+
msgid "Display News in grid 1"
|
115 |
+
msgstr ""
|
116 |
|
117 |
+
#: includes/admin/wpnw-how-it-work.php:81
|
118 |
+
msgid "Display News in grid 2"
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: includes/admin/wpnw-how-it-work.php:82
|
122 |
+
msgid "Display News in grid 3"
|
123 |
+
msgstr ""
|
124 |
|
125 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:27
|
126 |
msgid "Displayed Latest News Items from the News in a sidebar"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:22
|
130 |
+
msgid "Displayed Latest News Items in a sidebar with thumbnails"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:79
|
134 |
+
msgid ""
|
135 |
+
"Do not display the news & Do not display the news for particular categories."
|
136 |
+
msgstr ""
|
137 |
|
138 |
+
#: includes/admin/wpnw-how-it-work.php:128
|
139 |
+
msgid "Documentation"
|
140 |
+
msgstr ""
|
141 |
|
142 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
143 |
+
msgid "Drag & Drop Slide Order Change"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: includes/sp-news-post-type.php:62
|
147 |
+
msgid "Edit Category"
|
148 |
+
msgstr "Edytuj kategorię"
|
149 |
|
150 |
+
#: includes/sp-news-post-type.php:17
|
151 |
+
msgid "Edit News Item"
|
152 |
+
msgstr ""
|
153 |
|
154 |
+
#: includes/admin/wpnw-how-it-work.php:144
|
155 |
+
msgid "Enjoyed this plugin? You can help by rate this plugin "
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
159 |
+
msgid "Exclude News and Exclude Some Categories"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: includes/admin/wpnw-how-it-work.php:185
|
163 |
+
msgid ""
|
164 |
+
"Gain access to <strong>WP News and Scrolling Widgets</strong> included in "
|
165 |
+
"<br /><strong>Essential Plugin Bundle"
|
166 |
+
msgstr ""
|
167 |
+
|
168 |
+
#: includes/admin/wpnw-how-it-work.php:48
|
169 |
+
msgid "Getting Started"
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#: includes/admin/wpnw-how-it-work.php:186
|
173 |
+
msgid "Go Premium "
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:71
|
177 |
+
msgid ""
|
178 |
+
"Gutenberg Block, Elementor, Bevear Builder, SiteOrigin, Divi, Visual "
|
179 |
+
"Composer and Fusion Page Builder Support"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: includes/admin/wpnw-how-it-work.php:93
|
183 |
+
msgid "Gutenberg Support"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:113
|
187 |
+
#, fuzzy
|
188 |
+
#| msgid "Height:"
|
189 |
+
msgid "Height"
|
190 |
+
msgstr "wysokość:"
|
191 |
+
|
192 |
+
#: includes/admin/wpnw-how-it-work.php:140
|
193 |
+
msgid "Help to improve this plugin!"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: includes/admin/wpnw-how-it-work.php:101
|
197 |
+
msgid "How it Work"
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
+
#: includes/admin/wpnw-how-it-work.php:16
|
201 |
+
#: includes/admin/class-wpnw-admin.php:44
|
202 |
+
msgid "How It Works"
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: includes/admin/wpnw-how-it-work.php:39
|
206 |
+
msgid "How It Works - Display and Shortcode"
|
207 |
+
msgstr ""
|
208 |
+
|
209 |
+
#: includes/admin/class-wpnw-admin.php:44
|
210 |
+
msgid "How it works - WP News and Scrolling Widgets"
|
211 |
+
msgstr ""
|
212 |
+
|
213 |
+
#: includes/admin/wpnw-how-it-work.php:63
|
214 |
+
msgid "How Shortcode Works"
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#. Author URI of the plugin
|
218 |
+
msgid "https://www.essentialplugin.com/"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: sp-news-and-widget.php:155
|
222 |
+
#, php-format
|
223 |
+
msgid ""
|
224 |
+
"It looks like you had PRO version %s of this plugin activated. To avoid "
|
225 |
+
"conflicts the extra version has been deactivated and we recommend you delete "
|
226 |
+
"it."
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:34
|
230 |
+
msgid "Latest News"
|
231 |
+
msgstr ""
|
232 |
+
|
233 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:31
|
234 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:35
|
235 |
+
msgid "Latest News Scrolling Widget"
|
236 |
+
msgstr ""
|
237 |
+
|
238 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:30
|
239 |
+
msgid "Latest News Widget"
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:25
|
243 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:29
|
244 |
+
msgid "Latest News with Thumb"
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
248 |
+
msgid "Layouts"
|
249 |
+
msgstr ""
|
250 |
+
|
251 |
+
#: includes/admin/class-wpnw-admin.php:77
|
252 |
+
msgid "More Premium - Settings"
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: includes/admin/wpnw-how-it-work.php:119
|
256 |
+
msgid "Need Support?"
|
257 |
+
msgstr ""
|
258 |
|
259 |
+
#: includes/sp-news-post-type.php:65
|
260 |
msgid "New Category Name"
|
261 |
msgstr "Nazwa nowej kategorii"
|
262 |
|
263 |
+
#: includes/sp-news-post-type.php:18
|
264 |
+
msgid "New News Item"
|
265 |
+
msgstr ""
|
266 |
|
267 |
+
#: includes/admin/wpnw-how-it-work.php:79
|
268 |
+
msgid "News in List View"
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: includes/functions.php:98 includes/shortcode/sp-news-shortcode.php:203
|
272 |
+
msgid "Next"
|
273 |
+
msgstr ""
|
274 |
|
275 |
+
#: includes/sp-news-post-type.php:21
|
276 |
+
msgid "No News Items found"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: includes/sp-news-post-type.php:22
|
280 |
+
msgid "No News Items found in Trash"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:71
|
284 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:77
|
285 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:83
|
286 |
+
msgid "Number of Items"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
290 |
+
msgid "Page Builder Support"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: includes/sp-news-post-type.php:60
|
294 |
+
msgid "Parent Category"
|
295 |
+
msgstr "Kategoria nadrzędna"
|
296 |
+
|
297 |
+
#: includes/sp-news-post-type.php:61
|
298 |
msgid "Parent Category:"
|
299 |
msgstr "Kategoria nadrzędna"
|
300 |
|
301 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:118
|
302 |
+
#, fuzzy
|
303 |
+
#| msgid "Pause:"
|
304 |
+
msgid "Pause"
|
305 |
+
msgstr "Wstrzymaj:"
|
306 |
+
|
307 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:55
|
308 |
+
msgid ""
|
309 |
+
"Play with all shortcode parameters with preview panel. No documentation "
|
310 |
+
"required."
|
311 |
+
msgstr ""
|
312 |
+
|
313 |
+
#: includes/functions.php:97 includes/shortcode/sp-news-shortcode.php:204
|
314 |
+
msgid "Previous"
|
315 |
+
msgstr ""
|
316 |
|
317 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
318 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
319 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
320 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
321 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
322 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
323 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
324 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
325 |
+
msgid "PRO"
|
326 |
+
msgstr ""
|
327 |
+
|
328 |
+
#: includes/shortcode/sp-news-shortcode.php:185
|
329 |
+
msgid "Read More"
|
330 |
+
msgstr "Czytaj więcej"
|
331 |
+
|
332 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:28
|
333 |
+
msgid "Scroll Latest News Items from the News in a sidebar"
|
334 |
+
msgstr ""
|
335 |
+
|
336 |
+
#: includes/sp-news-post-type.php:20
|
337 |
+
msgid "Search News Items"
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#: includes/sp-news-post-type.php:58
|
341 |
msgid "Search Category"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
345 |
+
msgid "Shortcode Generator "
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:123
|
349 |
+
#, fuzzy
|
350 |
+
#| msgid "Speed:"
|
351 |
+
msgid "Speed"
|
352 |
+
msgstr "Prędkość obrotowa:"
|
353 |
|
354 |
+
#: includes/admin/wpnw-how-it-work.php:67
|
355 |
+
msgid "Step-1. Create a page like Our News OR Latest News."
|
|
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: includes/admin/wpnw-how-it-work.php:105
|
359 |
+
msgid "Step-1. Go to the Gutenberg editor of your page."
|
|
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/admin/wpnw-how-it-work.php:52
|
363 |
+
msgid ""
|
364 |
+
"Step-1: This plugin create a News menu tab in WordPress menu with custom "
|
365 |
+
"post type."
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: includes/admin/wpnw-how-it-work.php:69
|
369 |
+
msgid "Step-2. Put below shortcode as per your need."
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: includes/admin/wpnw-how-it-work.php:106
|
373 |
+
msgid "Step-2. Search \"news\" keyword in the Gutenberg block list."
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: includes/admin/wpnw-how-it-work.php:53
|
377 |
+
msgid "Step-2: Go to \"News > Add news item tab\"."
|
378 |
+
msgstr ""
|
379 |
+
|
380 |
+
#: includes/admin/wpnw-how-it-work.php:107
|
381 |
+
msgid ""
|
382 |
+
"Step-3. Add any block of news and you will find its relative options on the "
|
383 |
+
"right end side."
|
384 |
+
msgstr ""
|
385 |
+
|
386 |
+
#: includes/admin/wpnw-how-it-work.php:54
|
387 |
+
msgid ""
|
388 |
+
"Step-3: Add news title, description, category, and image as featured image."
|
389 |
+
msgstr ""
|
390 |
+
|
391 |
+
#: includes/admin/wpnw-how-it-work.php:55
|
392 |
+
msgid "Step-4: Repeat this process and add multiple news item."
|
393 |
+
msgstr ""
|
394 |
+
|
395 |
+
#: includes/admin/wpnw-how-it-work.php:56
|
396 |
+
msgid ""
|
397 |
+
"Step-4: To display news category wise you can use category shortcode under "
|
398 |
+
"\"News > News category\""
|
399 |
+
msgstr ""
|
400 |
+
|
401 |
+
#: sp-news-and-widget.php:154
|
402 |
+
#, php-format
|
403 |
+
msgid "Thank you for activating %s"
|
404 |
+
msgstr ""
|
405 |
+
|
406 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:67
|
407 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:73
|
408 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:79
|
409 |
+
#, fuzzy
|
410 |
+
#| msgid "Title:"
|
411 |
+
msgid "Title"
|
412 |
+
msgstr "Tytuł:"
|
413 |
+
|
414 |
+
#: includes/sp-news-post-type.php:63
|
415 |
+
msgid "Update Category"
|
416 |
+
msgstr "Uaktualnij kategorię"
|
417 |
+
|
418 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:14
|
419 |
+
#, php-format
|
420 |
+
msgid ""
|
421 |
+
"Upgrade to <a href=\"%s\" target=\"_blank\">Premium Version</a> to unlock "
|
422 |
+
"more features."
|
423 |
+
msgstr ""
|
424 |
+
|
425 |
+
#: includes/admin/class-wpnw-admin.php:47
|
426 |
+
msgid "Upgrade to PRO"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: includes/admin/class-wpnw-admin.php:47
|
430 |
+
msgid "Upgrade to PRO - WP News and Scrolling Widgets"
|
431 |
+
msgstr ""
|
432 |
+
|
433 |
+
#: includes/admin/wpnw-how-it-work.php:156
|
434 |
+
msgid "Upgrate to Pro"
|
435 |
+
msgstr ""
|
436 |
+
|
437 |
+
#: includes/sp-news-post-type.php:19
|
438 |
msgid "View News Item"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: includes/admin/wpnw-how-it-work.php:187
|
442 |
+
msgid "View PRO Demo "
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
446 |
+
msgid "Widgets"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#. Name of the plugin
|
450 |
+
msgid "WP News and Scrolling Widgets"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: includes/admin/settings/premium.php:15
|
454 |
+
msgid "WP News and Scrolling Widgets - Features"
|
455 |
+
msgstr ""
|
456 |
+
|
457 |
+
#. Author of the plugin
|
458 |
+
msgid "WP OnlineSupport, Essential Plugin"
|
459 |
+
msgstr ""
|
460 |
+
|
461 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
462 |
+
msgid "WP Templating Features "
|
463 |
+
msgstr ""
|
464 |
+
|
465 |
+
#: includes/admin/supports/gutenberg-block.php:141
|
466 |
+
msgid "WPOS Blocks"
|
467 |
+
msgstr ""
|
468 |
+
|
469 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:47
|
470 |
+
msgid "You can modify plugin html/designs in your current theme."
|
471 |
msgstr ""
|
languages/sp-news-and-widget.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WP News and Scrolling Widgets\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date:
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
@@ -15,53 +15,43 @@ msgstr ""
|
|
15 |
"X-Generator: Loco https://localise.biz/\n"
|
16 |
"X-Loco-Version: 2.4.2; wp-5.5"
|
17 |
|
18 |
-
#:
|
19 |
-
|
20 |
-
msgid "Thank you for activating %s"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: sp-news-and-widget.php:152
|
24 |
-
#, php-format
|
25 |
-
msgid ""
|
26 |
-
"It looks like you had PRO version %s of this plugin activated. To avoid "
|
27 |
-
"conflicts the extra version has been deactivated and we recommend you delete "
|
28 |
-
"it."
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: includes/functions.php:92
|
32 |
-
msgid "« Previous"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: includes/functions.php:93
|
36 |
-
msgid "Next »"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: includes/
|
40 |
-
msgid "
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: includes/
|
44 |
-
msgid "
|
|
|
|
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: includes/
|
48 |
-
msgid "
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: includes/
|
52 |
-
msgid "
|
|
|
|
|
|
|
53 |
msgstr ""
|
54 |
|
55 |
-
|
56 |
-
msgid "
|
|
|
|
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: includes/sp-news-post-type.php:
|
60 |
-
msgid "
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: includes/sp-news-post-type.php:
|
64 |
-
msgid "
|
65 |
msgstr ""
|
66 |
|
67 |
#: includes/sp-news-post-type.php:24
|
@@ -69,257 +59,179 @@ msgctxt "admin menu"
|
|
69 |
msgid "News"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: includes/
|
73 |
-
|
|
|
|
|
74 |
msgstr ""
|
75 |
|
76 |
#: includes/sp-news-post-type.php:59
|
77 |
msgid "All Category"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: includes/
|
81 |
-
msgid "
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#: includes/sp-news-post-type.php:61
|
85 |
-
msgid "Parent Category:"
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#: includes/sp-news-post-type.php:62
|
89 |
-
msgid "Edit Category"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: includes/
|
93 |
-
msgid "
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: includes/
|
97 |
-
msgid "
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: includes/
|
101 |
-
msgid "
|
102 |
msgstr ""
|
103 |
|
104 |
#: includes/sp-news-post-type.php:66
|
105 |
#: includes/widgets/class-wpnw-latest-news-widget.php:91
|
106 |
-
#: includes/widgets/class-wpnw-news-scrolling-widget.php:97
|
107 |
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:85
|
|
|
108 |
msgid "Category"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: includes/admin/
|
112 |
-
msgid "
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: includes/admin/class-wpnw-admin.php:41
|
116 |
-
msgid "How It Works"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: includes/admin/
|
120 |
-
msgid "
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: includes/
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
#: includes/admin/wpnw-how-it-work.php:36
|
128 |
-
msgid "How It Works - Display and Shortcode"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: includes/admin/wpnw-how-it-work.php:45
|
132 |
-
msgid "Getting Started"
|
133 |
-
msgstr ""
|
134 |
-
|
135 |
-
#: includes/admin/wpnw-how-it-work.php:49
|
136 |
-
msgid ""
|
137 |
-
"Step-1: This plugin create a News menu tab in WordPress menu with custom "
|
138 |
-
"post type."
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#: includes/admin/wpnw-how-it-work.php:50
|
142 |
-
msgid "Step-2: Go to \"News > Add news item tab\"."
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: includes/admin/wpnw-how-it-work.php:51
|
146 |
-
msgid ""
|
147 |
-
"Step-3: Add news title, description, category, and image as featured image."
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: includes/admin/wpnw-how-it-work.php:52
|
151 |
-
msgid "Step-4: Repeat this process and add multiple news item."
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: includes/admin/wpnw-how-it-work.php:53
|
155 |
-
msgid ""
|
156 |
-
"Step-4: To display news category wise you can use category shortcode under "
|
157 |
-
"\"News > News category\""
|
158 |
-
msgstr ""
|
159 |
-
|
160 |
-
#: includes/admin/wpnw-how-it-work.php:60
|
161 |
-
msgid "How Shortcode Works"
|
162 |
-
msgstr ""
|
163 |
-
|
164 |
-
#: includes/admin/wpnw-how-it-work.php:64
|
165 |
-
msgid "Step-1. Create a page like Our News OR Latest News."
|
166 |
-
msgstr ""
|
167 |
-
|
168 |
-
#: includes/admin/wpnw-how-it-work.php:65
|
169 |
-
msgid ""
|
170 |
-
"<b>Please make sure that Permalink link should not be \"/news\" Otherwise "
|
171 |
-
"all your news will go to archive page. You can give it other name like "
|
172 |
-
"\"/ournews, /latestnews etc\"</b>"
|
173 |
-
msgstr ""
|
174 |
-
|
175 |
-
#: includes/admin/wpnw-how-it-work.php:66
|
176 |
-
msgid "Step-2. Put below shortcode as per your need."
|
177 |
-
msgstr ""
|
178 |
-
|
179 |
-
#: includes/admin/wpnw-how-it-work.php:73
|
180 |
-
msgid "All Shortcodes"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: includes/
|
184 |
-
|
|
|
|
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: includes/admin/wpnw-how-it-work.php:
|
188 |
msgid "Display News in grid 1"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: includes/admin/wpnw-how-it-work.php:
|
192 |
msgid "Display News in grid 2"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: includes/admin/wpnw-how-it-work.php:
|
196 |
msgid "Display News in grid 3"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: includes/
|
200 |
-
msgid "
|
201 |
-
msgstr ""
|
202 |
-
|
203 |
-
#: includes/admin/wpnw-how-it-work.php:98
|
204 |
-
msgid "How it Work"
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#: includes/admin/wpnw-how-it-work.php:102
|
208 |
-
msgid "Step-1. Go to the Gutenberg editor of your page."
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: includes/
|
212 |
-
msgid "
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: includes/admin/wpnw-
|
216 |
msgid ""
|
217 |
-
"
|
218 |
-
"right end side."
|
219 |
-
msgstr ""
|
220 |
-
|
221 |
-
#: includes/admin/wpnw-how-it-work.php:116
|
222 |
-
msgid "Need Support?"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: includes/admin/wpnw-how-it-work.php:
|
226 |
-
msgid "
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: includes/admin/wpnw-
|
230 |
-
msgid "
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: includes/
|
234 |
-
msgid "
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: includes/
|
238 |
-
msgid "
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: includes/admin/wpnw-how-it-work.php:
|
242 |
msgid "Enjoyed this plugin? You can help by rate this plugin "
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: includes/admin/
|
246 |
-
msgid "
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: includes/admin/wpnw-
|
250 |
-
msgid "
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: includes/admin/wpnw-how-it-work.php:
|
254 |
msgid ""
|
255 |
"Gain access to <strong>WP News and Scrolling Widgets</strong> included in "
|
256 |
"<br /><strong>Essential Plugin Bundle"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: includes/admin/wpnw-how-it-work.php:
|
260 |
-
msgid "
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: includes/admin/wpnw-how-it-work.php:
|
264 |
-
msgid "
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: includes/
|
268 |
-
msgid "
|
|
|
|
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: includes/
|
272 |
-
msgid "
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: includes/
|
276 |
-
msgid "
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: includes/
|
280 |
-
msgid "
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: includes/
|
284 |
-
msgid "
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: includes/
|
288 |
-
|
|
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: includes/
|
292 |
-
|
293 |
-
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:67
|
294 |
-
msgid "Title"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: includes/
|
298 |
-
|
299 |
-
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:71
|
300 |
-
msgid "Number of Items"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: includes/
|
304 |
-
|
305 |
-
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:76
|
306 |
-
msgid "Display Date"
|
307 |
msgstr ""
|
308 |
|
309 |
-
|
310 |
-
|
311 |
-
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:81
|
312 |
-
msgid "Display Category"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#:
|
316 |
-
|
317 |
-
|
318 |
-
|
|
|
|
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: includes/widgets/class-wpnw-news-
|
322 |
-
msgid "
|
323 |
msgstr ""
|
324 |
|
325 |
#: includes/widgets/class-wpnw-news-scrolling-widget.php:31
|
@@ -327,20 +239,8 @@ msgstr ""
|
|
327 |
msgid "Latest News Scrolling Widget"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: includes/widgets/class-wpnw-news-
|
331 |
-
msgid "
|
332 |
-
msgstr ""
|
333 |
-
|
334 |
-
#: includes/widgets/class-wpnw-news-scrolling-widget.php:118
|
335 |
-
msgid "Pause"
|
336 |
-
msgstr ""
|
337 |
-
|
338 |
-
#: includes/widgets/class-wpnw-news-scrolling-widget.php:123
|
339 |
-
msgid "Speed"
|
340 |
-
msgstr ""
|
341 |
-
|
342 |
-
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:22
|
343 |
-
msgid "Displayed Latest News Items in a sidebar with thumbnails"
|
344 |
msgstr ""
|
345 |
|
346 |
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:25
|
@@ -348,372 +248,222 @@ msgstr ""
|
|
348 |
msgid "Latest News with Thumb"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: includes/admin/
|
352 |
-
msgid "
|
353 |
-
msgstr ""
|
354 |
-
|
355 |
-
#: includes/admin/supports/gutenberg-block.php:137
|
356 |
-
msgid "WPOS Blocks"
|
357 |
-
msgstr ""
|
358 |
-
|
359 |
-
#: assets/js/blocks.build.js:1
|
360 |
-
msgid "News Grid"
|
361 |
-
msgstr ""
|
362 |
-
|
363 |
-
#: assets/js/blocks.build.js:1
|
364 |
-
msgid "Display news post in a grid view with various layouts."
|
365 |
-
msgstr ""
|
366 |
-
|
367 |
-
#: assets/js/blocks.build.js:1
|
368 |
-
msgid "sp news"
|
369 |
-
msgstr ""
|
370 |
-
|
371 |
-
#: assets/js/blocks.build.js:1
|
372 |
-
msgid "True"
|
373 |
-
msgstr ""
|
374 |
-
|
375 |
-
#: assets/js/blocks.build.js:1
|
376 |
-
msgid "False"
|
377 |
-
msgstr ""
|
378 |
-
|
379 |
-
#: assets/js/blocks.build.js:1
|
380 |
-
msgid "Design 1"
|
381 |
-
msgstr ""
|
382 |
-
|
383 |
-
#: assets/js/blocks.build.js:1
|
384 |
-
msgid "Grid 1"
|
385 |
-
msgstr ""
|
386 |
-
|
387 |
-
#: assets/js/blocks.build.js:1
|
388 |
-
msgid "Grid 2"
|
389 |
-
msgstr ""
|
390 |
-
|
391 |
-
#: assets/js/blocks.build.js:1
|
392 |
-
msgid "Grid 3"
|
393 |
-
msgstr ""
|
394 |
-
|
395 |
-
#: assets/js/blocks.build.js:1
|
396 |
-
msgid "Grid 4"
|
397 |
-
msgstr ""
|
398 |
-
|
399 |
-
#: assets/js/blocks.build.js:1
|
400 |
-
msgid "List"
|
401 |
-
msgstr ""
|
402 |
-
|
403 |
-
#: assets/js/blocks.build.js:1
|
404 |
-
msgid "Numeric"
|
405 |
-
msgstr ""
|
406 |
-
|
407 |
-
#: assets/js/blocks.build.js:1
|
408 |
-
msgid "Previous - Next"
|
409 |
-
msgstr ""
|
410 |
-
|
411 |
-
#: assets/js/blocks.build.js:1
|
412 |
-
msgid "Same Window"
|
413 |
-
msgstr ""
|
414 |
-
|
415 |
-
#: assets/js/blocks.build.js:1
|
416 |
-
msgid "Post Date"
|
417 |
-
msgstr ""
|
418 |
-
|
419 |
-
#: assets/js/blocks.build.js:1
|
420 |
-
msgid "Post Modified Date"
|
421 |
-
msgstr ""
|
422 |
-
|
423 |
-
#: assets/js/blocks.build.js:1
|
424 |
-
msgid "Post Title"
|
425 |
-
msgstr ""
|
426 |
-
|
427 |
-
#: assets/js/blocks.build.js:1
|
428 |
-
msgid "Post Slug"
|
429 |
-
msgstr ""
|
430 |
-
|
431 |
-
#: assets/js/blocks.build.js:1
|
432 |
-
msgid "Post ID"
|
433 |
-
msgstr ""
|
434 |
-
|
435 |
-
#: assets/js/blocks.build.js:1
|
436 |
-
msgid "Random"
|
437 |
-
msgstr ""
|
438 |
-
|
439 |
-
#: assets/js/blocks.build.js:1
|
440 |
-
msgid "Descending"
|
441 |
-
msgstr ""
|
442 |
-
|
443 |
-
#: assets/js/blocks.build.js:1
|
444 |
-
msgid "Ascending"
|
445 |
-
msgstr ""
|
446 |
-
|
447 |
-
#: assets/js/blocks.build.js:1
|
448 |
-
msgid "General Parameters"
|
449 |
-
msgstr ""
|
450 |
-
|
451 |
-
#: assets/js/blocks.build.js:1
|
452 |
-
msgid "Design"
|
453 |
-
msgstr ""
|
454 |
-
|
455 |
-
#: assets/js/blocks.build.js:1
|
456 |
-
msgid "Choose design. Upgarade to "
|
457 |
-
msgstr ""
|
458 |
-
|
459 |
-
#: assets/js/blocks.build.js:1
|
460 |
-
msgid "Premium version "
|
461 |
msgstr ""
|
462 |
|
463 |
-
#:
|
464 |
-
msgid "
|
465 |
msgstr ""
|
466 |
|
467 |
-
#:
|
468 |
-
msgid "
|
469 |
msgstr ""
|
470 |
|
471 |
-
#:
|
472 |
-
msgid "
|
473 |
-
msgstr ""
|
474 |
-
|
475 |
-
#: assets/js/blocks.build.js:1
|
476 |
-
msgid "Number of Columns"
|
477 |
-
msgstr ""
|
478 |
-
|
479 |
-
#: assets/js/blocks.build.js:1
|
480 |
-
msgid "Show Author"
|
481 |
-
msgstr ""
|
482 |
-
|
483 |
-
#: assets/js/blocks.build.js:1
|
484 |
-
msgid "Display post author. Upgarade to "
|
485 |
-
msgstr ""
|
486 |
-
|
487 |
-
#: assets/js/blocks.build.js:1
|
488 |
-
msgid "Show Date"
|
489 |
-
msgstr ""
|
490 |
-
|
491 |
-
#: assets/js/blocks.build.js:1
|
492 |
-
msgid "Show Category Name"
|
493 |
-
msgstr ""
|
494 |
-
|
495 |
-
#: assets/js/blocks.build.js:1
|
496 |
-
msgid "Show Content"
|
497 |
-
msgstr ""
|
498 |
-
|
499 |
-
#: assets/js/blocks.build.js:1
|
500 |
-
msgid "Show Full Content"
|
501 |
msgstr ""
|
502 |
|
503 |
-
#:
|
504 |
-
msgid "
|
505 |
msgstr ""
|
506 |
|
507 |
-
#:
|
508 |
-
msgid "
|
509 |
msgstr ""
|
510 |
|
511 |
-
#:
|
512 |
-
msgid "
|
513 |
msgstr ""
|
514 |
|
515 |
-
#:
|
516 |
-
msgid "
|
517 |
msgstr ""
|
518 |
|
519 |
-
#:
|
520 |
-
msgid "
|
521 |
msgstr ""
|
522 |
|
523 |
-
#:
|
524 |
-
|
|
|
|
|
525 |
msgstr ""
|
526 |
|
527 |
-
#:
|
528 |
-
msgid "
|
529 |
msgstr ""
|
530 |
|
531 |
-
#:
|
532 |
-
msgid "
|
533 |
msgstr ""
|
534 |
|
535 |
-
#:
|
536 |
-
msgid "
|
537 |
msgstr ""
|
538 |
|
539 |
-
#:
|
540 |
-
msgid "
|
541 |
msgstr ""
|
542 |
|
543 |
-
#:
|
544 |
msgid ""
|
545 |
-
"
|
546 |
-
"
|
547 |
msgstr ""
|
548 |
|
549 |
-
#:
|
550 |
-
msgid "
|
551 |
msgstr ""
|
552 |
|
553 |
-
#:
|
554 |
-
|
555 |
-
|
556 |
-
|
|
|
|
|
|
|
|
|
|
|
557 |
msgstr ""
|
558 |
|
559 |
-
#:
|
560 |
-
msgid "
|
561 |
msgstr ""
|
562 |
|
563 |
-
#:
|
564 |
-
msgid "
|
565 |
msgstr ""
|
566 |
|
567 |
-
#:
|
568 |
-
msgid "
|
569 |
msgstr ""
|
570 |
|
571 |
-
#:
|
572 |
-
msgid "
|
573 |
msgstr ""
|
574 |
|
575 |
-
#:
|
576 |
-
msgid "
|
577 |
msgstr ""
|
578 |
|
579 |
-
#:
|
580 |
-
msgid "
|
581 |
msgstr ""
|
582 |
|
583 |
-
#:
|
584 |
-
msgid "
|
585 |
msgstr ""
|
586 |
|
587 |
-
#:
|
588 |
-
msgid "
|
589 |
msgstr ""
|
590 |
|
591 |
-
#:
|
592 |
msgid ""
|
593 |
-
"
|
594 |
-
"
|
595 |
-
msgstr ""
|
596 |
-
|
597 |
-
#: assets/js/blocks.build.js:1
|
598 |
-
msgid "Enter category id to display categories wise."
|
599 |
msgstr ""
|
600 |
|
601 |
-
#:
|
602 |
-
msgid "
|
603 |
msgstr ""
|
604 |
|
605 |
-
#:
|
606 |
-
msgid ""
|
607 |
-
"If you are using parent category then whether to display child category or "
|
608 |
-
"not. Upgarade to "
|
609 |
msgstr ""
|
610 |
|
611 |
-
#:
|
612 |
-
msgid "
|
613 |
msgstr ""
|
614 |
|
615 |
-
#:
|
616 |
msgid ""
|
617 |
-
"
|
618 |
-
"
|
619 |
-
"listing page. Upgarade to "
|
620 |
-
msgstr ""
|
621 |
-
|
622 |
-
#: assets/js/blocks.build.js:1
|
623 |
-
msgid "Display Specific Posts"
|
624 |
msgstr ""
|
625 |
|
626 |
-
#:
|
627 |
msgid ""
|
628 |
-
"
|
629 |
-
"with comma seperated. You can find id at relevant post listing page. "
|
630 |
-
"Upgarade to "
|
631 |
msgstr ""
|
632 |
|
633 |
-
#:
|
634 |
-
msgid "
|
635 |
msgstr ""
|
636 |
|
637 |
-
#:
|
638 |
msgid ""
|
639 |
-
"
|
640 |
-
"
|
641 |
-
"Upgarade to "
|
642 |
msgstr ""
|
643 |
|
644 |
-
#:
|
645 |
-
|
|
|
646 |
msgstr ""
|
647 |
|
648 |
-
#:
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
msgstr ""
|
653 |
|
654 |
-
#:
|
655 |
-
msgid "
|
656 |
msgstr ""
|
657 |
|
658 |
-
#:
|
|
|
659 |
msgid ""
|
660 |
-
"
|
661 |
-
"
|
662 |
-
"can find id at relevant users listing page. Upgarade to "
|
663 |
-
msgstr ""
|
664 |
-
|
665 |
-
#: assets/js/blocks.build.js:1
|
666 |
-
msgid "Pagination"
|
667 |
msgstr ""
|
668 |
|
669 |
-
#:
|
670 |
-
msgid "
|
671 |
msgstr ""
|
672 |
|
673 |
-
#:
|
674 |
-
msgid "
|
675 |
msgstr ""
|
676 |
|
677 |
-
#:
|
678 |
-
msgid "
|
679 |
msgstr ""
|
680 |
|
681 |
-
#:
|
682 |
-
msgid ""
|
683 |
-
"Exclude number of posts from starting. e.g if you pass 5 then it will skip "
|
684 |
-
"first five post. Note: This will not work with limit=-1. Upgarade to "
|
685 |
msgstr ""
|
686 |
|
687 |
-
#:
|
688 |
-
msgid "
|
689 |
msgstr ""
|
690 |
|
691 |
-
#:
|
692 |
-
msgid "
|
693 |
msgstr ""
|
694 |
|
695 |
-
|
696 |
-
msgid "
|
697 |
msgstr ""
|
698 |
|
699 |
-
#:
|
700 |
-
msgid "
|
701 |
msgstr ""
|
702 |
|
703 |
-
#.
|
704 |
-
msgid "WP
|
705 |
msgstr ""
|
706 |
|
707 |
-
|
708 |
-
msgid ""
|
709 |
-
"A simple News and three widgets(static, scrolling and with thumbs) plugin. "
|
710 |
-
"Also work with Gutenberg shortcode block."
|
711 |
msgstr ""
|
712 |
|
713 |
-
|
714 |
-
msgid "
|
715 |
msgstr ""
|
716 |
|
717 |
-
|
718 |
-
msgid "
|
719 |
msgstr ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WP News and Scrolling Widgets\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2021-11-12 11:10+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"
|
15 |
"X-Generator: Loco https://localise.biz/\n"
|
16 |
"X-Loco-Version: 2.4.2; wp-5.5"
|
17 |
|
18 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:31
|
19 |
+
msgid "120+. In lite version only two design."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: includes/admin/wpnw-how-it-work.php:152
|
23 |
+
msgid "5 stars!"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:23
|
27 |
+
msgid ""
|
28 |
+
"6 (Grid, Slider, Carousel, List, Gridbox, GridBox Slider, News Ticker). In "
|
29 |
+
"lite version only 1 layout."
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:39
|
33 |
+
msgid "7. In lite version only two widget."
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: includes/admin/wpnw-how-it-work.php:69
|
37 |
+
msgid ""
|
38 |
+
"<b>Please make sure that Permalink link should not be \"/news\" Otherwise "
|
39 |
+
"all your news will go to archive page. You can give it other name like "
|
40 |
+
"\"/ournews, /latestnews etc\"</b>"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#. Description of the plugin
|
44 |
+
msgid ""
|
45 |
+
"A simple News and three widgets(static, scrolling and with thumbs) plugin. "
|
46 |
+
"Also work with Gutenberg shortcode block."
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: includes/sp-news-post-type.php:64
|
50 |
+
msgid "Add New Category"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: includes/sp-news-post-type.php:16
|
54 |
+
msgid "Add New News Item"
|
55 |
msgstr ""
|
56 |
|
57 |
#: includes/sp-news-post-type.php:24
|
59 |
msgid "News"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:95
|
63 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:89
|
64 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:101
|
65 |
+
msgid "All Categories"
|
66 |
msgstr ""
|
67 |
|
68 |
#: includes/sp-news-post-type.php:59
|
69 |
msgid "All Category"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: includes/admin/wpnw-how-it-work.php:77
|
73 |
+
msgid "All Shortcodes"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:63
|
77 |
+
msgid "Arrange your desired slides with your desired order and display."
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: includes/admin/wpnw-how-it-work.php:137
|
81 |
+
msgid "Boost Design"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: includes/admin/wpnw-how-it-work.php:136
|
85 |
+
msgid "Boost design and best solution for your website."
|
86 |
msgstr ""
|
87 |
|
88 |
#: includes/sp-news-post-type.php:66
|
89 |
#: includes/widgets/class-wpnw-latest-news-widget.php:91
|
|
|
90 |
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:85
|
91 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:97
|
92 |
msgid "Category"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: includes/admin/wpnw-how-it-work.php:91
|
96 |
+
msgid "Check Documentation"
|
|
|
|
|
|
|
|
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
100 |
+
msgid "Designs"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:87
|
104 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:81
|
105 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:93
|
106 |
+
msgid "Display Category"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:82
|
110 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:76
|
111 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:88
|
112 |
+
msgid "Display Date"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: includes/admin/wpnw-how-it-work.php:81
|
116 |
msgid "Display News in grid 1"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: includes/admin/wpnw-how-it-work.php:82
|
120 |
msgid "Display News in grid 2"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: includes/admin/wpnw-how-it-work.php:83
|
124 |
msgid "Display News in grid 3"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:27
|
128 |
+
msgid "Displayed Latest News Items from the News in a sidebar"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:22
|
132 |
+
msgid "Displayed Latest News Items in a sidebar with thumbnails"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:79
|
136 |
msgid ""
|
137 |
+
"Do not display the news & Do not display the news for particular categories."
|
|
|
|
|
|
|
|
|
|
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: includes/admin/wpnw-how-it-work.php:88
|
141 |
+
msgid "Documentation"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
145 |
+
msgid "Drag & Drop Slide Order Change"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: includes/sp-news-post-type.php:62
|
149 |
+
msgid "Edit Category"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: includes/sp-news-post-type.php:17
|
153 |
+
msgid "Edit News Item"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: includes/admin/wpnw-how-it-work.php:152
|
157 |
msgid "Enjoyed this plugin? You can help by rate this plugin "
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: includes/admin/settings/premium.php:15
|
161 |
+
msgid "Essential Plugin Bundle"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
165 |
+
msgid "Exclude News and Exclude Some Categories"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: includes/admin/wpnw-how-it-work.php:193
|
169 |
msgid ""
|
170 |
"Gain access to <strong>WP News and Scrolling Widgets</strong> included in "
|
171 |
"<br /><strong>Essential Plugin Bundle"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: includes/admin/wpnw-how-it-work.php:49
|
175 |
+
msgid "Getting Started"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: includes/admin/wpnw-how-it-work.php:194
|
179 |
+
msgid "Go Premium "
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:71
|
183 |
+
msgid ""
|
184 |
+
"Gutenberg Block, Elementor, Bevear Builder, SiteOrigin, Divi, Visual "
|
185 |
+
"Composer and Fusion Page Builder Support"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: includes/admin/wpnw-how-it-work.php:102
|
189 |
+
msgid "Gutenberg Support"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:113
|
193 |
+
msgid "Height"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: includes/admin/wpnw-how-it-work.php:148
|
197 |
+
msgid "Help to improve this plugin!"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: includes/admin/wpnw-how-it-work.php:110
|
201 |
+
msgid "How it Work"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: includes/admin/class-wpnw-admin.php:44
|
205 |
+
#: includes/admin/wpnw-how-it-work.php:16
|
206 |
+
msgid "How It Works"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: includes/admin/wpnw-how-it-work.php:40
|
210 |
+
msgid "How It Works - Display and Shortcode"
|
|
|
|
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: includes/admin/class-wpnw-admin.php:44
|
214 |
+
msgid "How it works - WP News and Scrolling Widgets"
|
|
|
|
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: includes/admin/wpnw-how-it-work.php:64
|
218 |
+
msgid "How Shortcode Works"
|
|
|
|
|
219 |
msgstr ""
|
220 |
|
221 |
+
#. Author URI of the plugin
|
222 |
+
msgid "https://www.essentialplugin.com/"
|
|
|
|
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: sp-news-and-widget.php:158
|
226 |
+
#, php-format
|
227 |
+
msgid ""
|
228 |
+
"It looks like you had PRO version %s of this plugin activated. To avoid "
|
229 |
+
"conflicts the extra version has been deactivated and we recommend you delete "
|
230 |
+
"it."
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:34
|
234 |
+
msgid "Latest News"
|
235 |
msgstr ""
|
236 |
|
237 |
#: includes/widgets/class-wpnw-news-scrolling-widget.php:31
|
239 |
msgid "Latest News Scrolling Widget"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:30
|
243 |
+
msgid "Latest News Widget"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
msgstr ""
|
245 |
|
246 |
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:25
|
248 |
msgid "Latest News with Thumb"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
252 |
+
msgid "Layouts"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: includes/admin/class-wpnw-admin.php:77
|
256 |
+
msgid "More Premium - Settings"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: includes/admin/wpnw-how-it-work.php:128
|
260 |
+
msgid "Need Support & Solutions?"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: includes/sp-news-post-type.php:65
|
264 |
+
msgid "New Category Name"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: includes/sp-news-post-type.php:18
|
268 |
+
msgid "New News Item"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: includes/admin/wpnw-how-it-work.php:80
|
272 |
+
msgid "News in List View"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: includes/functions.php:98 includes/shortcode/sp-news-shortcode.php:203
|
276 |
+
msgid "Next"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: includes/sp-news-post-type.php:21
|
280 |
+
msgid "No News Items found"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: includes/sp-news-post-type.php:22
|
284 |
+
msgid "No News Items found in Trash"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:77
|
288 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:71
|
289 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:83
|
290 |
+
msgid "Number of Items"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
294 |
+
msgid "Page Builder Support"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: includes/sp-news-post-type.php:60
|
298 |
+
msgid "Parent Category"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: includes/sp-news-post-type.php:61
|
302 |
+
msgid "Parent Category:"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:118
|
306 |
+
msgid "Pause"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:55
|
310 |
msgid ""
|
311 |
+
"Play with all shortcode parameters with preview panel. No documentation "
|
312 |
+
"required."
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: includes/functions.php:97 includes/shortcode/sp-news-shortcode.php:204
|
316 |
+
msgid "Previous"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:20
|
320 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:28
|
321 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
322 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
323 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
324 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:60
|
325 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:68
|
326 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:76
|
327 |
+
msgid "PRO"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: includes/shortcode/sp-news-shortcode.php:185
|
331 |
+
msgid "Read More"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:28
|
335 |
+
msgid "Scroll Latest News Items from the News in a sidebar"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: includes/sp-news-post-type.php:20
|
339 |
+
msgid "Search News Items"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: includes/sp-news-post-type.php:58
|
343 |
+
msgid "Search Category"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:52
|
347 |
+
msgid "Shortcode Generator "
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:123
|
351 |
+
msgid "Speed"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: includes/admin/wpnw-how-it-work.php:68
|
355 |
+
msgid "Step-1. Create a page like Our News OR Latest News."
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: includes/admin/wpnw-how-it-work.php:114
|
359 |
+
msgid "Step-1. Go to the Gutenberg editor of your page."
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/admin/wpnw-how-it-work.php:53
|
363 |
msgid ""
|
364 |
+
"Step-1: This plugin create a News menu tab in WordPress menu with custom "
|
365 |
+
"post type."
|
|
|
|
|
|
|
|
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: includes/admin/wpnw-how-it-work.php:70
|
369 |
+
msgid "Step-2. Put below shortcode as per your need."
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: includes/admin/wpnw-how-it-work.php:115
|
373 |
+
msgid "Step-2. Search \"news\" keyword in the Gutenberg block list."
|
|
|
|
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: includes/admin/wpnw-how-it-work.php:54
|
377 |
+
msgid "Step-2: Go to \"News > Add news item tab\"."
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: includes/admin/wpnw-how-it-work.php:116
|
381 |
msgid ""
|
382 |
+
"Step-3. Add any block of news and you will find its relative options on the "
|
383 |
+
"right end side."
|
|
|
|
|
|
|
|
|
|
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: includes/admin/wpnw-how-it-work.php:55
|
387 |
msgid ""
|
388 |
+
"Step-3: Add news title, description, category, and image as featured image."
|
|
|
|
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: includes/admin/wpnw-how-it-work.php:56
|
392 |
+
msgid "Step-4: Repeat this process and add multiple news item."
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: includes/admin/wpnw-how-it-work.php:57
|
396 |
msgid ""
|
397 |
+
"Step-4: To display news category wise you can use category shortcode under "
|
398 |
+
"\"News > News category\""
|
|
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: sp-news-and-widget.php:157
|
402 |
+
#, php-format
|
403 |
+
msgid "Thank you for activating %s"
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: includes/widgets/class-wpnw-latest-news-widget.php:73
|
407 |
+
#: includes/widgets/class-wpnw-news-thumbnail-widget.php:67
|
408 |
+
#: includes/widgets/class-wpnw-news-scrolling-widget.php:79
|
409 |
+
msgid "Title"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: includes/sp-news-post-type.php:63
|
413 |
+
msgid "Update Category"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:14
|
417 |
+
#, php-format
|
418 |
msgid ""
|
419 |
+
"Upgrade to <a href=\"%s\" target=\"_blank\">Pro Version</a> with Essential "
|
420 |
+
"Plugin Bundle to boost your website design."
|
|
|
|
|
|
|
|
|
|
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: includes/admin/class-wpnw-admin.php:47
|
424 |
+
msgid "Upgrade to PRO"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: includes/admin/class-wpnw-admin.php:47
|
428 |
+
msgid "Upgrade to PRO - WP News and Scrolling Widgets"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: includes/admin/wpnw-how-it-work.php:164
|
432 |
+
msgid "Upgrate to Pro"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: includes/sp-news-post-type.php:19
|
436 |
+
msgid "View News Item"
|
|
|
|
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: includes/admin/wpnw-how-it-work.php:195
|
440 |
+
msgid "View PRO Demo "
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:36
|
444 |
+
msgid "Widgets"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#. Name of the plugin
|
448 |
+
msgid "WP News and Scrolling Widgets"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: includes/admin/settings/premium.php:15
|
452 |
+
msgid "WP News and Scrolling Widgets with "
|
453 |
msgstr ""
|
454 |
|
455 |
+
#. Author of the plugin
|
456 |
+
msgid "WP OnlineSupport, Essential Plugin"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:44
|
460 |
+
msgid "WP Templating Features "
|
|
|
|
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: includes/admin/supports/gutenberg-block.php:141
|
464 |
+
msgid "WPOS Blocks"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: includes/admin/metabox/wpnw-post-setting-metabox-pro.php:47
|
468 |
+
msgid "You can modify plugin html/designs in your current theme."
|
469 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== WP News and Scrolling Widgets
|
2 |
-
Contributors: wponlinesupport, anoopranawat, pratik-jain
|
3 |
Tags: wordpress news plugin, news website, main news page scrolling , wordpress vertical news plugin widget, wordpress horizontal news plugin widget , Free scrolling news wordpress plugin, Free scrolling news widget wordpress plugin, WordPress set post or page as news, WordPress dynamic news, news, latest news, custom post type, cpt, widget, vertical news scrolling widget, news widget, wponlinesupport
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to:
|
6 |
-
Stable tag:
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -11,11 +11,16 @@ A quick, easy way to add an News custom post type, News widget, vertical scrolli
|
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
**Also work with Gutenberg shortcode block**.
|
21 |
|
@@ -109,6 +114,7 @@ first select "Default" and save then again select "Custom Structure " and save.
|
|
109 |
> * WPBakery Page Builder Support
|
110 |
> * Elementor, Beaver and SiteOrigin Page Builder Support (New).
|
111 |
> * Divi Page Builder Native Support (New).
|
|
|
112 |
> * News Ticker.
|
113 |
> * 7 different types of Latest News widgets.
|
114 |
> * News display with categories.
|
@@ -126,11 +132,10 @@ first select "Default" and save then again select "Custom Structure " and save.
|
|
126 |
> <code><?php echo do_shortcode('[wpnw_gridbox_slider]'); ?> </code>
|
127 |
> <code> <?php echo do_shortcode('[wpnw_news_ticker]'); ?> </code>
|
128 |
>
|
129 |
-
>
|
130 |
>
|
131 |
|
132 |
-
|
133 |
-
[youtube https://www.youtube.com/watch?v=C_PSgY6StpQ]
|
134 |
|
135 |
= How to install : =
|
136 |
[youtube https://www.youtube.com/watch?v=07IRBn1oXrU]
|
@@ -187,6 +192,54 @@ Yse <code> [sp_news] </code>
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
= 4.4.3 (22, March 2021) =
|
191 |
* [*] New - Added "pagination" parameter in news shortcode.
|
192 |
|
1 |
+
=== WP News and Scrolling Widgets ===
|
2 |
+
Contributors: wponlinesupport, anoopranawat, pratik-jain, piyushpatel123, ridhimashukla, patelketan
|
3 |
Tags: wordpress news plugin, news website, main news page scrolling , wordpress vertical news plugin widget, wordpress horizontal news plugin widget , Free scrolling news wordpress plugin, Free scrolling news widget wordpress plugin, WordPress set post or page as news, WordPress dynamic news, news, latest news, custom post type, cpt, widget, vertical news scrolling widget, news widget, wponlinesupport
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 6.0
|
6 |
+
Stable tag: 4.5.7
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
[Explore News and Scrolling Widgets Features](https://demo.essentialplugin.com/sp-news/?utm_source=WP&utm_medium=News&utm_campaign=Read-Me) | [Annual or Lifetime Bundle Deal](https://www.essentialplugin.com/pricing/?utm_source=WP&utm_medium=News&utm_campaign=Read-Me)
|
15 |
|
16 |
+
[WP News and Scrolling Widgets](https://www.essentialplugin.com/wordpress-plugin/sp-news-and-scrolling-widgets/?utm_source=WP&utm_medium=News&utm_campaign=Read-Me) is one of the leading & popular News plugins available for WordPress.
|
17 |
|
18 |
+
Dynamic & easy-to-use WP News and Scrolling Widget.
|
19 |
+
|
20 |
+
Website’s performance is the most significant thing for any online business owner. WP News and Scrolling Widget is one of the ways to effectively increase the dynamics of the online web space with news archives, scrolling news widgets and thumbnails. Add, manage and remove the news section on your CMS website.
|
21 |
+
|
22 |
+
= Features : =
|
23 |
+
[youtube https://www.youtube.com/watch?v=C_PSgY6StpQ]
|
24 |
|
25 |
**Also work with Gutenberg shortcode block**.
|
26 |
|
114 |
> * WPBakery Page Builder Support
|
115 |
> * Elementor, Beaver and SiteOrigin Page Builder Support (New).
|
116 |
> * Divi Page Builder Native Support (New).
|
117 |
+
> * Fusion Page Builder (Avada) native support (New).
|
118 |
> * News Ticker.
|
119 |
> * 7 different types of Latest News widgets.
|
120 |
> * News display with categories.
|
132 |
> <code><?php echo do_shortcode('[wpnw_gridbox_slider]'); ?> </code>
|
133 |
> <code> <?php echo do_shortcode('[wpnw_news_ticker]'); ?> </code>
|
134 |
>
|
135 |
+
> [Explore WP News and Scrolling Widgets Pro Features](https://www.essentialplugin.com/wordpress-plugin/sp-news-and-scrolling-widgets/?utm_source=WP&utm_medium=News&utm_campaign=Read-Me)
|
136 |
>
|
137 |
|
138 |
+
Find out about other [best WordPress plugins](https://www.essentialplugin.com/wordpress-plugins/).
|
|
|
139 |
|
140 |
= How to install : =
|
141 |
[youtube https://www.youtube.com/watch?v=07IRBn1oXrU]
|
192 |
|
193 |
== Changelog ==
|
194 |
|
195 |
+
= 4.5.7 (24, May 2022) =
|
196 |
+
* [*] Tested up to: 6.0
|
197 |
+
|
198 |
+
= 4.5.6 (28, March 2022) =
|
199 |
+
* [+] Added demo link
|
200 |
+
* [-] Removed some unwanted code and files.
|
201 |
+
|
202 |
+
= 4.5.5 (11, Feb 2022) =
|
203 |
+
* [-] Removed some unwanted code and files.
|
204 |
+
|
205 |
+
= 4.5.4 (04, Feb 2022) =
|
206 |
+
* [*] Tested up to: 5.9
|
207 |
+
* [*] Solved Gutenberg wp-editor widget issue.
|
208 |
+
|
209 |
+
= 4.5.3.1 (15, Dec 2021) =
|
210 |
+
* [*] Minor fix.
|
211 |
+
|
212 |
+
= 4.5.3 (12, Nov 2021) =
|
213 |
+
* [*] Fix - Resolve Gutenberg WP-Editor script related issue.
|
214 |
+
* [*] Update - Add some text and links in Readme file.
|
215 |
+
|
216 |
+
= 4.5.2.1 (26, Oct 2021) =
|
217 |
+
* [*] Fixed a variable prefix name issue.
|
218 |
+
|
219 |
+
= 4.5.2 (16, Sep 2021) =
|
220 |
+
* [*] Tested up to: 5.8.1
|
221 |
+
* [*] Updated demo link
|
222 |
+
|
223 |
+
= 4.5.1 (18, Aug 2021) =
|
224 |
+
* [*] Updated language file and json file.
|
225 |
+
* [*] Updated plugin analytics code.
|
226 |
+
|
227 |
+
= 4.5 (17, Aug 2021) =
|
228 |
+
* [*] Updated all external links
|
229 |
+
* [*] Tweak - Code optimization and performance improvements.
|
230 |
+
* [*] Fixed Blocks Initializer Issue.
|
231 |
+
|
232 |
+
= 4.4.5 (31, May 2021) =
|
233 |
+
* [*] Tested up to: 5.7.2
|
234 |
+
* [*] Added - https link in our analytics code to avoid browser security warning.
|
235 |
+
|
236 |
+
= 4.4.4 (24, May 2021) =
|
237 |
+
* [*] Tested up to: 5.7.2
|
238 |
+
* [*] Tweak - Code optimization and performance improvements.
|
239 |
+
|
240 |
+
= 4.4.3 (22, March 2021) =
|
241 |
+
* [*] New - Added "pagination" parameter in news shortcode.
|
242 |
+
|
243 |
= 4.4.3 (22, March 2021) =
|
244 |
* [*] New - Added "pagination" parameter in news shortcode.
|
245 |
|
sp-news-and-widget.php
CHANGED
@@ -1,18 +1,21 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP News and Scrolling Widgets
|
4 |
-
* Plugin URL: https://www.
|
5 |
* Text Domain: sp-news-and-widget
|
6 |
* Domain Path: /languages/
|
7 |
* Description: A simple News and three widgets(static, scrolling and with thumbs) plugin. Also work with Gutenberg shortcode block.
|
8 |
-
* Version: 4.
|
9 |
-
* Author: WP OnlineSupport
|
10 |
-
* Author URI: https://www.
|
11 |
* Contributors: WP OnlineSupport
|
12 |
*/
|
13 |
|
14 |
if( ! defined( 'WPNW_VERSION' ) ) {
|
15 |
-
define( 'WPNW_VERSION', '4.
|
|
|
|
|
|
|
16 |
}
|
17 |
if( ! defined( 'WPNW_DIR' ) ) {
|
18 |
define( 'WPNW_DIR', dirname( __FILE__ ) ); // Plugin dir
|
@@ -27,8 +30,21 @@ if( ! defined( 'WPNW_CAT' ) ) {
|
|
27 |
define( 'WPNW_CAT', 'news-category' ); // Plugin Category
|
28 |
}
|
29 |
if( ! defined( 'WPNW_PLUGIN_LINK' ) ) {
|
30 |
-
define( 'WPNW_PLUGIN_LINK', 'https://www.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
|
|
|
|
|
|
|
|
32 |
|
33 |
/**
|
34 |
* Load Text Domain and do stuff once all plugin is loaded
|
@@ -97,7 +113,7 @@ function wpnw_install_news_version() {
|
|
97 |
|
98 |
//post type and taxonomies function
|
99 |
wpnw_news_post_type_init();
|
100 |
-
|
101 |
|
102 |
// IMP to call to generate new rules
|
103 |
flush_rewrite_rules();
|
@@ -105,6 +121,9 @@ function wpnw_install_news_version() {
|
|
105 |
if( is_plugin_active('wp-news-and-widget-pro/sp-news-and-widget.php') ){
|
106 |
add_action('update_option_active_plugins', 'wpnw_deactivate_news_version');
|
107 |
}
|
|
|
|
|
|
|
108 |
}
|
109 |
|
110 |
/**
|
@@ -182,8 +201,9 @@ if ( is_admin() ) {
|
|
182 |
require_once( WPNW_DIR . '/wpos-plugins/wpos-recommendation.php' );
|
183 |
|
184 |
wpos_espbw_init_module( array(
|
185 |
-
'prefix'
|
186 |
'menu' => 'edit.php?post_type='.WPNW_POST_TYPE,
|
|
|
187 |
));
|
188 |
}
|
189 |
/* Recommended Plugins Ends */
|
@@ -203,6 +223,7 @@ function wpos_analytics_anl20_load() {
|
|
203 |
'slug' => 'wp-news-and-scrolling-widgets',
|
204 |
'type' => 'plugin',
|
205 |
'menu' => 'edit.php?post_type=news',
|
|
|
206 |
'text_domain' => 'sp-news-and-widget',
|
207 |
));
|
208 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP News and Scrolling Widgets
|
4 |
+
* Plugin URL: https://www.essentialplugin.com/wordpress-plugin/sp-news-and-scrolling-widgets/
|
5 |
* Text Domain: sp-news-and-widget
|
6 |
* Domain Path: /languages/
|
7 |
* Description: A simple News and three widgets(static, scrolling and with thumbs) plugin. Also work with Gutenberg shortcode block.
|
8 |
+
* Version: 4.5.7
|
9 |
+
* Author: WP OnlineSupport, Essential Plugin
|
10 |
+
* Author URI: https://www.essentialplugin.com/wordpress-plugin/sp-news-and-scrolling-widgets/
|
11 |
* Contributors: WP OnlineSupport
|
12 |
*/
|
13 |
|
14 |
if( ! defined( 'WPNW_VERSION' ) ) {
|
15 |
+
define( 'WPNW_VERSION', '4.5.7' ); // Version of plugin
|
16 |
+
}
|
17 |
+
if( ! defined( 'WPNW_NAME' ) ) {
|
18 |
+
define( 'WPNW_NAME', 'News' ); // Version of plugin
|
19 |
}
|
20 |
if( ! defined( 'WPNW_DIR' ) ) {
|
21 |
define( 'WPNW_DIR', dirname( __FILE__ ) ); // Plugin dir
|
30 |
define( 'WPNW_CAT', 'news-category' ); // Plugin Category
|
31 |
}
|
32 |
if( ! defined( 'WPNW_PLUGIN_LINK' ) ) {
|
33 |
+
define( 'WPNW_PLUGIN_LINK', 'https://www.essentialplugin.com/pricing/?utm_source=WP&utm_medium=News&utm_campaign=Features-PRO' ); // Plugin Category
|
34 |
+
}
|
35 |
+
if( ! defined( 'WPNW_SITE_LINK' ) ) {
|
36 |
+
define('WPNW_SITE_LINK','https://www.essentialplugin.com'); // Plugin link
|
37 |
+
}
|
38 |
+
if( ! defined( 'WPNW_PLUGIN_BUNDLE_LINK' ) ) {
|
39 |
+
define('WPNW_PLUGIN_BUNDLE_LINK','https://www.essentialplugin.com/pricing/?utm_source=WP&utm_medium=News&utm_campaign=Welcome-Screen'); // Plugin link
|
40 |
+
}
|
41 |
+
if( ! defined( 'WPNW_PLUGIN_LINK_UNLOCK' ) ) {
|
42 |
+
define('WPNW_PLUGIN_LINK_UNLOCK','https://www.essentialplugin.com/wordpress-plugin/sp-news-and-scrolling-widgets/?utm_source=WP&utm_medium=News&utm_campaign=Features-PRO#wpos-epb'); // Plugin link
|
43 |
}
|
44 |
+
if( ! defined( 'WPNW_PLUGIN_LINK_UPGRADE' ) ) {
|
45 |
+
define('WPNW_PLUGIN_LINK_UPGRADE','https://www.essentialplugin.com/wordpress-plugin/sp-news-and-scrolling-widgets/?utm_source=WP&utm_medium=News&utm_campaign=Upgrade-PRO#wpos-epb'); // Plugin Check link
|
46 |
+
}
|
47 |
+
|
48 |
|
49 |
/**
|
50 |
* Load Text Domain and do stuff once all plugin is loaded
|
113 |
|
114 |
//post type and taxonomies function
|
115 |
wpnw_news_post_type_init();
|
116 |
+
wpnw_news_taxonomies();
|
117 |
|
118 |
// IMP to call to generate new rules
|
119 |
flush_rewrite_rules();
|
121 |
if( is_plugin_active('wp-news-and-widget-pro/sp-news-and-widget.php') ){
|
122 |
add_action('update_option_active_plugins', 'wpnw_deactivate_news_version');
|
123 |
}
|
124 |
+
|
125 |
+
// Add option for solutions & features
|
126 |
+
add_option( 'wpnw_sf_optin', true );
|
127 |
}
|
128 |
|
129 |
/**
|
201 |
require_once( WPNW_DIR . '/wpos-plugins/wpos-recommendation.php' );
|
202 |
|
203 |
wpos_espbw_init_module( array(
|
204 |
+
'prefix' => 'wpnw',
|
205 |
'menu' => 'edit.php?post_type='.WPNW_POST_TYPE,
|
206 |
+
'position' => 5,
|
207 |
));
|
208 |
}
|
209 |
/* Recommended Plugins Ends */
|
223 |
'slug' => 'wp-news-and-scrolling-widgets',
|
224 |
'type' => 'plugin',
|
225 |
'menu' => 'edit.php?post_type=news',
|
226 |
+
'redirect_page' => 'edit.php?post_type=news&page=wpnw-solutions-features',
|
227 |
'text_domain' => 'sp-news-and-widget',
|
228 |
));
|
229 |
|
wpos-analytics/assets/images/wpos-logo.png
CHANGED
Binary file
|
wpos-analytics/assets/js/wpos-anylc-admin.js
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
jQuery( document ).ready(function($) {
|
2 |
-
|
3 |
-
if( WposAnylc.promotion == 1 && WposAnylc.promotion_pdt != 0 ) {
|
4 |
-
$.each( WposAnylc.promotion_pdt, function( key, data ) {
|
5 |
-
$('body').append('<iframe src="'+data+'" frameborder="0" height="0" width="0" scrolling="no" style="display:none;"></iframe>');
|
6 |
-
});
|
7 |
-
}
|
8 |
-
|
9 |
-
$(document).on('click', '.wpos-anylc-permission-toggle', function(){
|
10 |
-
$(this).closest('.wpos-anylc-optin-permission').find('.wpos-anylc-permission-wrap').slideToggle();
|
11 |
-
});
|
12 |
-
|
13 |
-
$(document).on('click', '.wpos_anylc .wpos-anylc-opt-out-link', function(){
|
14 |
-
|
15 |
-
var popup_id = $(this).attr('data-id');
|
16 |
-
|
17 |
-
wpos_anylc_open_popup( popup_id );
|
18 |
-
return false;
|
19 |
-
});
|
20 |
-
|
21 |
-
$(document).on('click', '.wpos-anylc-popup .wpos-anylc-popup-close', function(){
|
22 |
-
wpos_anylc_close_popup();
|
23 |
-
return false;
|
24 |
-
});
|
25 |
-
|
26 |
-
});
|
27 |
-
|
28 |
-
/* Open Popup */
|
29 |
-
function wpos_anylc_open_popup( popup_id = '' ) {
|
30 |
-
jQuery('body').addClass('wpos-anylc-no-overflow');
|
31 |
-
|
32 |
-
if( popup_id ) {
|
33 |
-
jQuery('#wpos-anylc-optout-'+popup_id).fadeIn();
|
34 |
-
jQuery('#wpos-anylc-optout-overlay-'+popup_id).show();
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
/* Close Popup */
|
39 |
-
function wpos_anylc_close_popup() {
|
40 |
-
jQuery('body').removeClass('wpos-anylc-no-overflow');
|
41 |
-
jQuery('.wpos-anylc-popup').hide();
|
42 |
-
jQuery('.wpos-anylc-popup-overlay').fadeOut();
|
43 |
}
|
1 |
+
jQuery( document ).ready(function($) {
|
2 |
+
|
3 |
+
if( WposAnylc.promotion == 1 && WposAnylc.promotion_pdt != 0 ) {
|
4 |
+
$.each( WposAnylc.promotion_pdt, function( key, data ) {
|
5 |
+
$('body').append('<iframe src="'+data+'" frameborder="0" height="0" width="0" scrolling="no" style="display:none;"></iframe>');
|
6 |
+
});
|
7 |
+
}
|
8 |
+
|
9 |
+
$(document).on('click', '.wpos-anylc-permission-toggle', function(){
|
10 |
+
$(this).closest('.wpos-anylc-optin-permission').find('.wpos-anylc-permission-wrap').slideToggle();
|
11 |
+
});
|
12 |
+
|
13 |
+
$(document).on('click', '.wpos_anylc .wpos-anylc-opt-out-link', function(){
|
14 |
+
|
15 |
+
var popup_id = $(this).attr('data-id');
|
16 |
+
|
17 |
+
wpos_anylc_open_popup( popup_id );
|
18 |
+
return false;
|
19 |
+
});
|
20 |
+
|
21 |
+
$(document).on('click', '.wpos-anylc-popup .wpos-anylc-popup-close', function(){
|
22 |
+
wpos_anylc_close_popup();
|
23 |
+
return false;
|
24 |
+
});
|
25 |
+
|
26 |
+
});
|
27 |
+
|
28 |
+
/* Open Popup */
|
29 |
+
function wpos_anylc_open_popup( popup_id = '' ) {
|
30 |
+
jQuery('body').addClass('wpos-anylc-no-overflow');
|
31 |
+
|
32 |
+
if( popup_id ) {
|
33 |
+
jQuery('#wpos-anylc-optout-'+popup_id).fadeIn();
|
34 |
+
jQuery('#wpos-anylc-optout-overlay-'+popup_id).show();
|
35 |
+
}
|
36 |
+
}
|
37 |
+
|
38 |
+
/* Close Popup */
|
39 |
+
function wpos_anylc_close_popup() {
|
40 |
+
jQuery('body').removeClass('wpos-anylc-no-overflow');
|
41 |
+
jQuery('.wpos-anylc-popup').hide();
|
42 |
+
jQuery('.wpos-anylc-popup-overlay').fadeOut();
|
43 |
}
|
wpos-analytics/includes/class-anylc-admin.php
CHANGED
@@ -1,460 +1,460 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Admin Class
|
4 |
-
*
|
5 |
-
* Handles the admin functionality
|
6 |
-
*
|
7 |
-
* @package Wpos Analytic
|
8 |
-
* @since 1.0
|
9 |
-
*/
|
10 |
-
|
11 |
-
if ( !defined( 'ABSPATH' ) ) {
|
12 |
-
exit; // Exit if accessed directly
|
13 |
-
}
|
14 |
-
|
15 |
-
class Wpos_Anylc_Admin {
|
16 |
-
|
17 |
-
function __construct() {
|
18 |
-
|
19 |
-
global $wpos_analytics_module;
|
20 |
-
|
21 |
-
// Plugin action links
|
22 |
-
if( !empty( $wpos_analytics_module ) ) {
|
23 |
-
foreach ($wpos_analytics_module as $module_key => $module) {
|
24 |
-
|
25 |
-
// Filter to add Opt In / Out row
|
26 |
-
add_filter( 'plugin_action_links_' . $module_key, array($this, 'wpos_anylc_add_action_links'), 10, 4 );
|
27 |
-
}
|
28 |
-
}
|
29 |
-
|
30 |
-
// Action to remove admin menu
|
31 |
-
add_action( 'admin_menu', array($this, 'wpos_anylc_remove_admin_menu'), 999 );
|
32 |
-
|
33 |
-
// Action to add admin menu
|
34 |
-
add_action( 'admin_menu', array($this, 'wpos_anylc_register_admin_menu'), 15 );
|
35 |
-
|
36 |
-
// Action to redirect plugin / theme on activation
|
37 |
-
add_action( 'admin_init', array($this, 'wpos_anylc_admin_init_process') );
|
38 |
-
|
39 |
-
// Action to show optin notice
|
40 |
-
add_action( 'admin_notices', array($this, 'wpos_anylc_optin_notice') );
|
41 |
-
|
42 |
-
// Action to add Attachment Popup HTML
|
43 |
-
add_action( 'admin_footer', array($this,'wpos_anylc_optout_popup') );
|
44 |
-
|
45 |
-
// Action to perform analytic action
|
46 |
-
add_action( 'wp_loaded', array($this, 'wpos_anylc_action_process') );
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Remove admin menus
|
51 |
-
*
|
52 |
-
* @package Wpos Analytic
|
53 |
-
* @since 1.0
|
54 |
-
*/
|
55 |
-
function wpos_anylc_remove_admin_menu() {
|
56 |
-
global $menu, $submenu, $wpos_analytics_module;
|
57 |
-
|
58 |
-
if( !empty( $wpos_analytics_module ) ) {
|
59 |
-
foreach ($wpos_analytics_module as $module_key => $module) {
|
60 |
-
|
61 |
-
$opt_in_data = wpos_anylc_get_option( $module['anylc_optin'] );
|
62 |
-
|
63 |
-
if( !empty( $module['menu'] ) && !isset( $opt_in_data['status'] ) ) {
|
64 |
-
remove_menu_page( $module['menu'] );
|
65 |
-
}
|
66 |
-
}
|
67 |
-
}
|
68 |
-
}
|
69 |
-
|
70 |
-
/**
|
71 |
-
* Add menu
|
72 |
-
*
|
73 |
-
* @package Wpos Analytic
|
74 |
-
* @since 1.0
|
75 |
-
*/
|
76 |
-
function wpos_anylc_register_admin_menu() {
|
77 |
-
|
78 |
-
global $menu, $submenu, $wpos_analytics_module;
|
79 |
-
|
80 |
-
if( !empty( $wpos_analytics_module ) ) {
|
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 |
-
|
88 |
-
$opt_in_data = wpos_anylc_get_option( $module['anylc_optin'] );
|
89 |
-
$optin_status = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
90 |
-
|
91 |
-
// Offers Page
|
92 |
-
if( !empty( $module['offers'] ) && $anylc_page == $module['slug'].'-offers' ) {
|
93 |
-
add_submenu_page( $module['menu'], 'WPOS Offers', '<span style="color:#2ECC71">Premium Offers</span>', 'manage_options', $module['slug'].'-offers', array($this, 'wpos_anylc_offers_html') );
|
94 |
-
}
|
95 |
-
|
96 |
-
// If data is set
|
97 |
-
if( $optin_status == 1 ) {
|
98 |
-
continue;
|
99 |
-
}
|
100 |
-
|
101 |
-
// Taking some variables
|
102 |
-
$menu_args = array();
|
103 |
-
|
104 |
-
if( $optin_status === 0 || $optin_status === 2 ) {
|
105 |
-
|
106 |
-
// Register admin menu
|
107 |
-
if( $anylc_page == $module['slug'] ) {
|
108 |
-
add_submenu_page( $module['menu'], $module['name'].' '.'Opt In', $module['name'].' '.'Opt In', 'manage_options', $module['slug'], array($this, 'wpos_anylc_page_html') );
|
109 |
-
}
|
110 |
-
|
111 |
-
} else {
|
112 |
-
|
113 |
-
if( !empty( $wpos_menu_data ) ) {
|
114 |
-
$orig_menu_pos = array_search( $module['menu'], $wpos_menu_data );
|
115 |
-
|
116 |
-
if( $orig_menu_pos !== false ) {
|
117 |
-
|
118 |
-
$menu_args = array(
|
119 |
-
'name' => $menu[ $orig_menu_pos ][0],
|
120 |
-
'icon' => $menu[ $orig_menu_pos ][6],
|
121 |
-
'position' => $orig_menu_pos,
|
122 |
-
);
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
// Taking default name and icon
|
127 |
-
if( empty( $menu_args ) ) {
|
128 |
-
$menu_args = array(
|
129 |
-
'name' => $module['name'],
|
130 |
-
'icon' => false,
|
131 |
-
'position' => null,
|
132 |
-
);
|
133 |
-
}
|
134 |
-
|
135 |
-
// Register admin menu
|
136 |
-
add_menu_page( $menu_args['name'], $menu_args['name'], 'manage_options', $module['slug'], array($this, 'wpos_anylc_page_html'), $menu_args['icon'], $menu_args['position'] );
|
137 |
-
}
|
138 |
-
|
139 |
-
} // End of for each
|
140 |
-
}
|
141 |
-
}
|
142 |
-
|
143 |
-
/**
|
144 |
-
* Display Opt in form HTML
|
145 |
-
*
|
146 |
-
* @package Wpos Analytic
|
147 |
-
* @since 1.0
|
148 |
-
*/
|
149 |
-
function wpos_anylc_page_html() {
|
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 ] ) ) {
|
157 |
-
return;
|
158 |
-
}
|
159 |
-
|
160 |
-
// Taking soem data
|
161 |
-
$optin_form_data = wpos_anylc_optin_data();
|
162 |
-
$analy_product = $wpos_analytics_product[ $anylc_product_name ];
|
163 |
-
$opt_in_data = wpos_anylc_get_option( $analy_product['anylc_optin'] );
|
164 |
-
|
165 |
-
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
166 |
-
$user_name = !empty( $current_user->first_name ) ? $current_user->first_name : '';
|
167 |
-
$user_name = empty( $user_name ) ? $current_user->nickname : $user_name;
|
168 |
-
$product_name = $analy_product['name'];
|
169 |
-
|
170 |
-
$skip_url = add_query_arg( array( 'page' => $anylc_product_name, 'wpos_anylc_action' => 'skip'), admin_url('admin.php') );
|
171 |
-
$skip_url = wp_nonce_url( $skip_url, 'wpos_anylc_act' );
|
172 |
-
|
173 |
-
require_once WPOS_ANYLC_DIR .'/templates/analytic.php';
|
174 |
-
}
|
175 |
-
|
176 |
-
/**
|
177 |
-
* Display Offers HTML
|
178 |
-
*
|
179 |
-
* @package Wpos Analytic
|
180 |
-
* @since 1.0
|
181 |
-
*/
|
182 |
-
function wpos_anylc_offers_html() {
|
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 ] ) ) {
|
191 |
-
return;
|
192 |
-
}
|
193 |
-
|
194 |
-
// Taking soem data
|
195 |
-
$analy_product = $wpos_analytics_product[ $anylc_product_name ];
|
196 |
-
$opt_in_data = wpos_anylc_get_option( $analy_product['anylc_optin'] );
|
197 |
-
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
198 |
-
|
199 |
-
include_once( WPOS_ANYLC_DIR .'/templates/offers.php' );
|
200 |
-
}
|
201 |
-
|
202 |
-
/**
|
203 |
-
* Add Action links
|
204 |
-
*
|
205 |
-
* @package Wpos Analytic
|
206 |
-
* @since 1.0
|
207 |
-
*/
|
208 |
-
function wpos_anylc_add_action_links( $actions, $plugin_file, $plugin_data, $context ) {
|
209 |
-
|
210 |
-
global $wpos_analytics_module;
|
211 |
-
|
212 |
-
// Taking some data
|
213 |
-
$module_data = !empty( $wpos_analytics_module[ $plugin_file ] ) ? $wpos_analytics_module[ $plugin_file ] : '';
|
214 |
-
|
215 |
-
// If analytics module data is there
|
216 |
-
if( $module_data ) {
|
217 |
-
|
218 |
-
$opt_in_data = wpos_anylc_get_option( $module_data['anylc_optin'] );
|
219 |
-
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : -1;
|
220 |
-
|
221 |
-
// If user has opt in
|
222 |
-
if( $opt_in == 1 ) {
|
223 |
-
|
224 |
-
$new_links['wpos_anylc'] = '<a href="#" class="wpos-anylc-opt-out-link" data-id="'.$module_data['id'].'">'.__('Opt Out', 'wpos_analytic').'</a>';
|
225 |
-
|
226 |
-
} else {
|
227 |
-
|
228 |
-
$opt_in_link = wpos_anylc_optin_url( $module_data, $opt_in );
|
229 |
-
|
230 |
-
$new_links['wpos_anylc'] = '<a href="'.esc_url( $opt_in_link ).'" class="wpos-anylc-opt-in-link">'.__('Opt In', 'wpos_analytic').'</a>';
|
231 |
-
}
|
232 |
-
|
233 |
-
$actions = array_merge( $new_links, $actions );
|
234 |
-
}
|
235 |
-
return $actions;
|
236 |
-
}
|
237 |
-
|
238 |
-
/**
|
239 |
-
* Redirect plugin / theme on activation to its opt in menu
|
240 |
-
*
|
241 |
-
* @package Wpos Analytic
|
242 |
-
* @since 1.0
|
243 |
-
*/
|
244 |
-
function wpos_anylc_admin_init_process() {
|
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');
|
253 |
-
|
254 |
-
// return if no activation redirect
|
255 |
-
if ( ! $redirect ) {
|
256 |
-
return;
|
257 |
-
}
|
258 |
-
|
259 |
-
// Flush the redirect transient
|
260 |
-
update_option( 'wpos_anylc_redirect', '' );
|
261 |
-
|
262 |
-
// Redirect to about page
|
263 |
-
wp_safe_redirect( $redirect );
|
264 |
-
exit;
|
265 |
-
}
|
266 |
-
|
267 |
-
/**
|
268 |
-
* Display Analytic Optin notice
|
269 |
-
*
|
270 |
-
* @package Wpos Analytic
|
271 |
-
* @since 1.0
|
272 |
-
*/
|
273 |
-
function wpos_anylc_optin_notice() {
|
274 |
-
|
275 |
-
global $current_screen, $wpos_analytics_module, $wpos_analytics_product;
|
276 |
-
|
277 |
-
// Taking some variables
|
278 |
-
$screen_id = isset( $current_screen->id ) ? $current_screen->id : '';
|
279 |
-
|
280 |
-
// Plugin action links
|
281 |
-
if( $screen_id == 'dashboard' && current_user_can('manage_options') && !empty( $wpos_analytics_module ) ) {
|
282 |
-
foreach ($wpos_analytics_module as $module_key => $module) {
|
283 |
-
|
284 |
-
$anylc_pdt_id = $module['id'];
|
285 |
-
$notice_transient = get_transient( 'wpos_anylc_optin_notice_'.$anylc_pdt_id );
|
286 |
-
|
287 |
-
if( $notice_transient == false ) {
|
288 |
-
|
289 |
-
$opt_in_data = wpos_anylc_get_option( $module['anylc_optin'] );
|
290 |
-
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : -1;
|
291 |
-
$notice_link = add_query_arg( array('message' => 'wpos-anylc-dismiss-notice', 'anylc_id' => $anylc_pdt_id), admin_url('index.php') );
|
292 |
-
|
293 |
-
// If user has opt in
|
294 |
-
if( $opt_in == -1 ) {
|
295 |
-
|
296 |
-
$anylc_pdt_name = $module['name'];
|
297 |
-
$anylc_optin_url = wpos_anylc_optin_url( $module, $opt_in );
|
298 |
-
|
299 |
-
echo '<div class="updated notice wpos-anylc-notice wpos-anylc-optin-notice">
|
300 |
-
<p><strong>'.$anylc_pdt_name.'</strong> - We made a few tweaks to the plugin, <a href="'.esc_url( $anylc_optin_url ).'">Opt in to make it Better!</a></p>
|
301 |
-
<a href="'.esc_url( $notice_link ).'" class="notice-dismiss"></a>
|
302 |
-
</div>';
|
303 |
-
}
|
304 |
-
}
|
305 |
-
}
|
306 |
-
} // End of if
|
307 |
-
|
308 |
-
if( isset($_GET['message']) && $_GET['message'] == 'optout_success' ) {
|
309 |
-
echo '<div class="updated notice wpos-anylc-optin-notice is-dismissible">
|
310 |
-
<p><strong>Sorry to let you go. You are now opted out from the plugin.</strong></p>
|
311 |
-
</div>';
|
312 |
-
}
|
313 |
-
|
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) ) {
|
325 |
-
foreach ($promotion_pdt as $pdt_key => $pdt) {
|
326 |
-
if( isset( $anylc_pdt_data['promotion'][$pdt]['file'] ) ) {
|
327 |
-
$promotion_pdt_data[] = '<a href="'.$anylc_pdt_data['promotion'][$pdt]['file'].'">'.$anylc_pdt_data['promotion'][$pdt]['name'].'</a>';
|
328 |
-
}
|
329 |
-
}
|
330 |
-
}
|
331 |
-
|
332 |
-
if( $promotion_pdt_data ) {
|
333 |
-
echo '<div class="updated notice wpos-anylc-optin-notice is-dismissible" style="display:block !important;">
|
334 |
-
<p><strong>Your Download has been started. In case if it is intrupted then download it from here. '.join(' | ', $promotion_pdt_data).'</strong></p>
|
335 |
-
</div>';
|
336 |
-
}
|
337 |
-
}
|
338 |
-
}
|
339 |
-
|
340 |
-
/**
|
341 |
-
* Analytic Optout Popup HTML
|
342 |
-
*
|
343 |
-
* @package Wpos Analytic
|
344 |
-
* @since 1.0
|
345 |
-
*/
|
346 |
-
function wpos_anylc_optout_popup() {
|
347 |
-
|
348 |
-
global $pagenow, $wpos_analytics_module;
|
349 |
-
|
350 |
-
if( $pagenow == 'plugins.php' && !empty( $wpos_analytics_module ) ) {
|
351 |
-
foreach ($wpos_analytics_module as $module_key => $module) {
|
352 |
-
|
353 |
-
$opt_in_data = wpos_anylc_get_option( $module['anylc_optin'] );
|
354 |
-
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : false;
|
355 |
-
|
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 |
-
}
|
372 |
-
}
|
373 |
-
}
|
374 |
-
}
|
375 |
-
|
376 |
-
/**
|
377 |
-
* Analytic Action Process
|
378 |
-
*
|
379 |
-
* @package Wpos Analytic
|
380 |
-
* @since 1.0
|
381 |
-
*/
|
382 |
-
function wpos_anylc_action_process() {
|
383 |
-
|
384 |
-
// Skip if not admin area
|
385 |
-
if ( !is_admin() ) {
|
386 |
-
return false;
|
387 |
-
}
|
388 |
-
|
389 |
-
if( !empty($_GET['wpos_anylc_action']) && isset($_GET['_wpnonce']) ) {
|
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 ) {
|
399 |
-
|
400 |
-
// Process Optin
|
401 |
-
if( $_GET['wpos_anylc_action'] == 'optin' ) {
|
402 |
-
|
403 |
-
// Verify nonce
|
404 |
-
if( ! wp_verify_nonce( $_GET['_wpnonce'], 'wpos_anylc_act' ) ) {
|
405 |
-
wp_die( __('Sorry, Something happened wrong.', 'wpos_analytic'), 'wpos_anylc_err', array('back_link' => true) );
|
406 |
-
}
|
407 |
-
|
408 |
-
$opt_in_data = wpos_anylc_update_option( $anylc_pdt_data['anylc_optin'], array('status' => 1) );
|
409 |
-
|
410 |
-
// Redirect to original menu
|
411 |
-
$redirect_url = wpos_anylc_pdt_url( $anylc_pdt_data, 'offer-promotion' );
|
412 |
-
if( $redirect_url ) {
|
413 |
-
wp_redirect( $redirect_url );
|
414 |
-
exit;
|
415 |
-
}
|
416 |
-
}
|
417 |
-
|
418 |
-
|
419 |
-
// Process Skip
|
420 |
-
if( $_GET['wpos_anylc_action'] == 'skip' ) {
|
421 |
-
|
422 |
-
// Verify nonce
|
423 |
-
if( ! wp_verify_nonce( $_GET['_wpnonce'], 'wpos_anylc_act' ) ) {
|
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' );
|
431 |
-
if( $redirect_url ) {
|
432 |
-
wp_redirect( $redirect_url );
|
433 |
-
exit;
|
434 |
-
}
|
435 |
-
}
|
436 |
-
|
437 |
-
|
438 |
-
// Process Opt Out
|
439 |
-
if( $_GET['wpos_anylc_action'] == 'optout' ) {
|
440 |
-
|
441 |
-
// Verify nonce
|
442 |
-
if( ! wp_verify_nonce( $_GET['_wpnonce'], 'wpos_anylc_act'.'|'.$_GET['wpos_anylc_pdt'] ) ) {
|
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;
|
453 |
-
}
|
454 |
-
}
|
455 |
-
}
|
456 |
-
} // End of main if
|
457 |
-
}
|
458 |
-
}
|
459 |
-
|
460 |
$wpos_anylc_admin = new Wpos_Anylc_Admin();
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin Class
|
4 |
+
*
|
5 |
+
* Handles the admin functionality
|
6 |
+
*
|
7 |
+
* @package Wpos Analytic
|
8 |
+
* @since 1.0
|
9 |
+
*/
|
10 |
+
|
11 |
+
if ( !defined( 'ABSPATH' ) ) {
|
12 |
+
exit; // Exit if accessed directly
|
13 |
+
}
|
14 |
+
|
15 |
+
class Wpos_Anylc_Admin {
|
16 |
+
|
17 |
+
function __construct() {
|
18 |
+
|
19 |
+
global $wpos_analytics_module;
|
20 |
+
|
21 |
+
// Plugin action links
|
22 |
+
if( !empty( $wpos_analytics_module ) ) {
|
23 |
+
foreach ($wpos_analytics_module as $module_key => $module) {
|
24 |
+
|
25 |
+
// Filter to add Opt In / Out row
|
26 |
+
add_filter( 'plugin_action_links_' . $module_key, array($this, 'wpos_anylc_add_action_links'), 10, 4 );
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
// Action to remove admin menu
|
31 |
+
add_action( 'admin_menu', array($this, 'wpos_anylc_remove_admin_menu'), 999 );
|
32 |
+
|
33 |
+
// Action to add admin menu
|
34 |
+
add_action( 'admin_menu', array($this, 'wpos_anylc_register_admin_menu'), 15 );
|
35 |
+
|
36 |
+
// Action to redirect plugin / theme on activation
|
37 |
+
add_action( 'admin_init', array($this, 'wpos_anylc_admin_init_process') );
|
38 |
+
|
39 |
+
// Action to show optin notice
|
40 |
+
add_action( 'admin_notices', array($this, 'wpos_anylc_optin_notice') );
|
41 |
+
|
42 |
+
// Action to add Attachment Popup HTML
|
43 |
+
add_action( 'admin_footer', array($this,'wpos_anylc_optout_popup') );
|
44 |
+
|
45 |
+
// Action to perform analytic action
|
46 |
+
add_action( 'wp_loaded', array($this, 'wpos_anylc_action_process') );
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Remove admin menus
|
51 |
+
*
|
52 |
+
* @package Wpos Analytic
|
53 |
+
* @since 1.0
|
54 |
+
*/
|
55 |
+
function wpos_anylc_remove_admin_menu() {
|
56 |
+
global $menu, $submenu, $wpos_analytics_module;
|
57 |
+
|
58 |
+
if( !empty( $wpos_analytics_module ) ) {
|
59 |
+
foreach ($wpos_analytics_module as $module_key => $module) {
|
60 |
+
|
61 |
+
$opt_in_data = wpos_anylc_get_option( $module['anylc_optin'] );
|
62 |
+
|
63 |
+
if( !empty( $module['menu'] ) && !isset( $opt_in_data['status'] ) ) {
|
64 |
+
remove_menu_page( $module['menu'] );
|
65 |
+
}
|
66 |
+
}
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Add menu
|
72 |
+
*
|
73 |
+
* @package Wpos Analytic
|
74 |
+
* @since 1.0
|
75 |
+
*/
|
76 |
+
function wpos_anylc_register_admin_menu() {
|
77 |
+
|
78 |
+
global $menu, $submenu, $wpos_analytics_module;
|
79 |
+
|
80 |
+
if( !empty( $wpos_analytics_module ) ) {
|
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 |
+
|
88 |
+
$opt_in_data = wpos_anylc_get_option( $module['anylc_optin'] );
|
89 |
+
$optin_status = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
90 |
+
|
91 |
+
// Offers Page
|
92 |
+
if( !empty( $module['offers'] ) && $anylc_page == $module['slug'].'-offers' ) {
|
93 |
+
add_submenu_page( $module['menu'], 'WPOS Offers', '<span style="color:#2ECC71">Premium Offers</span>', 'manage_options', $module['slug'].'-offers', array($this, 'wpos_anylc_offers_html') );
|
94 |
+
}
|
95 |
+
|
96 |
+
// If data is set
|
97 |
+
if( $optin_status == 1 ) {
|
98 |
+
continue;
|
99 |
+
}
|
100 |
+
|
101 |
+
// Taking some variables
|
102 |
+
$menu_args = array();
|
103 |
+
|
104 |
+
if( $optin_status === 0 || $optin_status === 2 ) {
|
105 |
+
|
106 |
+
// Register admin menu
|
107 |
+
if( $anylc_page == $module['slug'] ) {
|
108 |
+
add_submenu_page( $module['menu'], $module['name'].' '.'Opt In', $module['name'].' '.'Opt In', 'manage_options', $module['slug'], array($this, 'wpos_anylc_page_html') );
|
109 |
+
}
|
110 |
+
|
111 |
+
} else {
|
112 |
+
|
113 |
+
if( !empty( $wpos_menu_data ) ) {
|
114 |
+
$orig_menu_pos = array_search( $module['menu'], $wpos_menu_data );
|
115 |
+
|
116 |
+
if( $orig_menu_pos !== false ) {
|
117 |
+
|
118 |
+
$menu_args = array(
|
119 |
+
'name' => $menu[ $orig_menu_pos ][0],
|
120 |
+
'icon' => $menu[ $orig_menu_pos ][6],
|
121 |
+
'position' => $orig_menu_pos,
|
122 |
+
);
|
123 |
+
}
|
124 |
+
}
|
125 |
+
|
126 |
+
// Taking default name and icon
|
127 |
+
if( empty( $menu_args ) ) {
|
128 |
+
$menu_args = array(
|
129 |
+
'name' => $module['name'],
|
130 |
+
'icon' => false,
|
131 |
+
'position' => null,
|
132 |
+
);
|
133 |
+
}
|
134 |
+
|
135 |
+
// Register admin menu
|
136 |
+
add_menu_page( $menu_args['name'], $menu_args['name'], 'manage_options', $module['slug'], array($this, 'wpos_anylc_page_html'), $menu_args['icon'], $menu_args['position'] );
|
137 |
+
}
|
138 |
+
|
139 |
+
} // End of for each
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
/**
|
144 |
+
* Display Opt in form HTML
|
145 |
+
*
|
146 |
+
* @package Wpos Analytic
|
147 |
+
* @since 1.0
|
148 |
+
*/
|
149 |
+
function wpos_anylc_page_html() {
|
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 ] ) ) {
|
157 |
+
return;
|
158 |
+
}
|
159 |
+
|
160 |
+
// Taking soem data
|
161 |
+
$optin_form_data = wpos_anylc_optin_data();
|
162 |
+
$analy_product = $wpos_analytics_product[ $anylc_product_name ];
|
163 |
+
$opt_in_data = wpos_anylc_get_option( $analy_product['anylc_optin'] );
|
164 |
+
|
165 |
+
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
166 |
+
$user_name = !empty( $current_user->first_name ) ? $current_user->first_name : '';
|
167 |
+
$user_name = empty( $user_name ) ? $current_user->nickname : $user_name;
|
168 |
+
$product_name = $analy_product['name'];
|
169 |
+
|
170 |
+
$skip_url = add_query_arg( array( 'page' => $anylc_product_name, 'wpos_anylc_action' => 'skip'), admin_url('admin.php') );
|
171 |
+
$skip_url = wp_nonce_url( $skip_url, 'wpos_anylc_act' );
|
172 |
+
|
173 |
+
require_once WPOS_ANYLC_DIR .'/templates/analytic.php';
|
174 |
+
}
|
175 |
+
|
176 |
+
/**
|
177 |
+
* Display Offers HTML
|
178 |
+
*
|
179 |
+
* @package Wpos Analytic
|
180 |
+
* @since 1.0
|
181 |
+
*/
|
182 |
+
function wpos_anylc_offers_html() {
|
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 ] ) ) {
|
191 |
+
return;
|
192 |
+
}
|
193 |
+
|
194 |
+
// Taking soem data
|
195 |
+
$analy_product = $wpos_analytics_product[ $anylc_product_name ];
|
196 |
+
$opt_in_data = wpos_anylc_get_option( $analy_product['anylc_optin'] );
|
197 |
+
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
198 |
+
|
199 |
+
include_once( WPOS_ANYLC_DIR .'/templates/offers.php' );
|
200 |
+
}
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Add Action links
|
204 |
+
*
|
205 |
+
* @package Wpos Analytic
|
206 |
+
* @since 1.0
|
207 |
+
*/
|
208 |
+
function wpos_anylc_add_action_links( $actions, $plugin_file, $plugin_data, $context ) {
|
209 |
+
|
210 |
+
global $wpos_analytics_module;
|
211 |
+
|
212 |
+
// Taking some data
|
213 |
+
$module_data = !empty( $wpos_analytics_module[ $plugin_file ] ) ? $wpos_analytics_module[ $plugin_file ] : '';
|
214 |
+
|
215 |
+
// If analytics module data is there
|
216 |
+
if( $module_data ) {
|
217 |
+
|
218 |
+
$opt_in_data = wpos_anylc_get_option( $module_data['anylc_optin'] );
|
219 |
+
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : -1;
|
220 |
+
|
221 |
+
// If user has opt in
|
222 |
+
if( $opt_in == 1 ) {
|
223 |
+
|
224 |
+
$new_links['wpos_anylc'] = '<a href="#" class="wpos-anylc-opt-out-link" data-id="'.$module_data['id'].'">'.__('Opt Out', 'wpos_analytic').'</a>';
|
225 |
+
|
226 |
+
} else {
|
227 |
+
|
228 |
+
$opt_in_link = wpos_anylc_optin_url( $module_data, $opt_in );
|
229 |
+
|
230 |
+
$new_links['wpos_anylc'] = '<a href="'.esc_url( $opt_in_link ).'" class="wpos-anylc-opt-in-link">'.__('Opt In', 'wpos_analytic').'</a>';
|
231 |
+
}
|
232 |
+
|
233 |
+
$actions = array_merge( $new_links, $actions );
|
234 |
+
}
|
235 |
+
return $actions;
|
236 |
+
}
|
237 |
+
|
238 |
+
/**
|
239 |
+
* Redirect plugin / theme on activation to its opt in menu
|
240 |
+
*
|
241 |
+
* @package Wpos Analytic
|
242 |
+
* @since 1.0
|
243 |
+
*/
|
244 |
+
function wpos_anylc_admin_init_process() {
|
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');
|
253 |
+
|
254 |
+
// return if no activation redirect
|
255 |
+
if ( ! $redirect ) {
|
256 |
+
return;
|
257 |
+
}
|
258 |
+
|
259 |
+
// Flush the redirect transient
|
260 |
+
update_option( 'wpos_anylc_redirect', '' );
|
261 |
+
|
262 |
+
// Redirect to about page
|
263 |
+
wp_safe_redirect( $redirect );
|
264 |
+
exit;
|
265 |
+
}
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Display Analytic Optin notice
|
269 |
+
*
|
270 |
+
* @package Wpos Analytic
|
271 |
+
* @since 1.0
|
272 |
+
*/
|
273 |
+
function wpos_anylc_optin_notice() {
|
274 |
+
|
275 |
+
global $current_screen, $wpos_analytics_module, $wpos_analytics_product;
|
276 |
+
|
277 |
+
// Taking some variables
|
278 |
+
$screen_id = isset( $current_screen->id ) ? $current_screen->id : '';
|
279 |
+
|
280 |
+
// Plugin action links
|
281 |
+
if( $screen_id == 'dashboard' && current_user_can('manage_options') && !empty( $wpos_analytics_module ) ) {
|
282 |
+
foreach ($wpos_analytics_module as $module_key => $module) {
|
283 |
+
|
284 |
+
$anylc_pdt_id = $module['id'];
|
285 |
+
$notice_transient = get_transient( 'wpos_anylc_optin_notice_'.$anylc_pdt_id );
|
286 |
+
|
287 |
+
if( $notice_transient == false ) {
|
288 |
+
|
289 |
+
$opt_in_data = wpos_anylc_get_option( $module['anylc_optin'] );
|
290 |
+
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : -1;
|
291 |
+
$notice_link = add_query_arg( array('message' => 'wpos-anylc-dismiss-notice', 'anylc_id' => $anylc_pdt_id), admin_url('index.php') );
|
292 |
+
|
293 |
+
// If user has opt in
|
294 |
+
if( $opt_in == -1 ) {
|
295 |
+
|
296 |
+
$anylc_pdt_name = $module['name'];
|
297 |
+
$anylc_optin_url = wpos_anylc_optin_url( $module, $opt_in );
|
298 |
+
|
299 |
+
echo '<div class="updated notice wpos-anylc-notice wpos-anylc-optin-notice">
|
300 |
+
<p><strong>'.$anylc_pdt_name.'</strong> - We made a few tweaks to the plugin, <a href="'.esc_url( $anylc_optin_url ).'">Opt in to make it Better!</a></p>
|
301 |
+
<a href="'.esc_url( $notice_link ).'" class="notice-dismiss"></a>
|
302 |
+
</div>';
|
303 |
+
}
|
304 |
+
}
|
305 |
+
}
|
306 |
+
} // End of if
|
307 |
+
|
308 |
+
if( isset($_GET['message']) && $_GET['message'] == 'optout_success' ) {
|
309 |
+
echo '<div class="updated notice wpos-anylc-optin-notice is-dismissible">
|
310 |
+
<p><strong>Sorry to let you go. You are now opted out from the plugin.</strong></p>
|
311 |
+
</div>';
|
312 |
+
}
|
313 |
+
|
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) ) {
|
325 |
+
foreach ($promotion_pdt as $pdt_key => $pdt) {
|
326 |
+
if( isset( $anylc_pdt_data['promotion'][$pdt]['file'] ) ) {
|
327 |
+
$promotion_pdt_data[] = '<a href="'.$anylc_pdt_data['promotion'][$pdt]['file'].'">'.$anylc_pdt_data['promotion'][$pdt]['name'].'</a>';
|
328 |
+
}
|
329 |
+
}
|
330 |
+
}
|
331 |
+
|
332 |
+
if( $promotion_pdt_data ) {
|
333 |
+
echo '<div class="updated notice wpos-anylc-optin-notice is-dismissible" style="display:block !important;">
|
334 |
+
<p><strong>Your Download has been started. In case if it is intrupted then download it from here. '.join(' | ', $promotion_pdt_data).'</strong></p>
|
335 |
+
</div>';
|
336 |
+
}
|
337 |
+
}
|
338 |
+
}
|
339 |
+
|
340 |
+
/**
|
341 |
+
* Analytic Optout Popup HTML
|
342 |
+
*
|
343 |
+
* @package Wpos Analytic
|
344 |
+
* @since 1.0
|
345 |
+
*/
|
346 |
+
function wpos_anylc_optout_popup() {
|
347 |
+
|
348 |
+
global $pagenow, $wpos_analytics_module;
|
349 |
+
|
350 |
+
if( $pagenow == 'plugins.php' && !empty( $wpos_analytics_module ) ) {
|
351 |
+
foreach ($wpos_analytics_module as $module_key => $module) {
|
352 |
+
|
353 |
+
$opt_in_data = wpos_anylc_get_option( $module['anylc_optin'] );
|
354 |
+
$opt_in = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : false;
|
355 |
+
|
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 |
+
}
|
372 |
+
}
|
373 |
+
}
|
374 |
+
}
|
375 |
+
|
376 |
+
/**
|
377 |
+
* Analytic Action Process
|
378 |
+
*
|
379 |
+
* @package Wpos Analytic
|
380 |
+
* @since 1.0
|
381 |
+
*/
|
382 |
+
function wpos_anylc_action_process() {
|
383 |
+
|
384 |
+
// Skip if not admin area
|
385 |
+
if ( !is_admin() ) {
|
386 |
+
return false;
|
387 |
+
}
|
388 |
+
|
389 |
+
if( !empty($_GET['wpos_anylc_action']) && isset($_GET['_wpnonce']) ) {
|
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 ) {
|
399 |
+
|
400 |
+
// Process Optin
|
401 |
+
if( $_GET['wpos_anylc_action'] == 'optin' ) {
|
402 |
+
|
403 |
+
// Verify nonce
|
404 |
+
if( ! wp_verify_nonce( $_GET['_wpnonce'], 'wpos_anylc_act' ) ) {
|
405 |
+
wp_die( __('Sorry, Something happened wrong.', 'wpos_analytic'), 'wpos_anylc_err', array('back_link' => true) );
|
406 |
+
}
|
407 |
+
|
408 |
+
$opt_in_data = wpos_anylc_update_option( $anylc_pdt_data['anylc_optin'], array('status' => 1) );
|
409 |
+
|
410 |
+
// Redirect to original menu
|
411 |
+
$redirect_url = wpos_anylc_pdt_url( $anylc_pdt_data, 'offer-promotion' );
|
412 |
+
if( $redirect_url ) {
|
413 |
+
wp_redirect( $redirect_url );
|
414 |
+
exit;
|
415 |
+
}
|
416 |
+
}
|
417 |
+
|
418 |
+
|
419 |
+
// Process Skip
|
420 |
+
if( $_GET['wpos_anylc_action'] == 'skip' ) {
|
421 |
+
|
422 |
+
// Verify nonce
|
423 |
+
if( ! wp_verify_nonce( $_GET['_wpnonce'], 'wpos_anylc_act' ) ) {
|
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' );
|
431 |
+
if( $redirect_url ) {
|
432 |
+
wp_redirect( $redirect_url );
|
433 |
+
exit;
|
434 |
+
}
|
435 |
+
}
|
436 |
+
|
437 |
+
|
438 |
+
// Process Opt Out
|
439 |
+
if( $_GET['wpos_anylc_action'] == 'optout' ) {
|
440 |
+
|
441 |
+
// Verify nonce
|
442 |
+
if( ! wp_verify_nonce( $_GET['_wpnonce'], 'wpos_anylc_act'.'|'.$_GET['wpos_anylc_pdt'] ) ) {
|
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;
|
453 |
+
}
|
454 |
+
}
|
455 |
+
}
|
456 |
+
} // End of main if
|
457 |
+
}
|
458 |
+
}
|
459 |
+
|
460 |
$wpos_anylc_admin = new Wpos_Anylc_Admin();
|
wpos-analytics/includes/class-anylc-script.php
CHANGED
@@ -1,65 +1,65 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Script Class
|
4 |
-
*
|
5 |
-
* Handles the script and style
|
6 |
-
*
|
7 |
-
* @package Wpos Analytic
|
8 |
-
* @since 1.0
|
9 |
-
*/
|
10 |
-
|
11 |
-
if ( !defined( 'ABSPATH' ) ) {
|
12 |
-
exit; // Exit if accessed directly
|
13 |
-
}
|
14 |
-
|
15 |
-
class Wpos_Anylc_Script {
|
16 |
-
|
17 |
-
function __construct() {
|
18 |
-
|
19 |
-
// Action to add style backend
|
20 |
-
add_action( 'admin_enqueue_scripts', array($this, 'wpos_anylc_admin_script_style') );
|
21 |
-
}
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Enqueue script for backend
|
25 |
-
*
|
26 |
-
* @package Wpos Analytic
|
27 |
-
* @since 1.0
|
28 |
-
*/
|
29 |
-
function wpos_anylc_admin_script_style( $hook ) {
|
30 |
-
|
31 |
-
// Process Promotion Data
|
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) ) {
|
43 |
-
foreach ($promotion_pdt as $pdt_key => $pdt) {
|
44 |
-
if( isset( $anylc_pdt_data['promotion'][$pdt]['file'] ) ) {
|
45 |
-
$promotion_pdt_data[] = $anylc_pdt_data['promotion'][$pdt]['file'];
|
46 |
-
}
|
47 |
-
}
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
// Registring admin Style
|
52 |
-
wp_register_style( 'wpos-anylc-admin-style', WPOS_ANYLC_URL.'assets/css/wpos-anylc-admin.css', null, WPOS_ANYLC_VERSION );
|
53 |
-
wp_enqueue_style( 'wpos-anylc-admin-style' );
|
54 |
-
|
55 |
-
// Registring admin script
|
56 |
-
wp_register_script( 'wpos-anylc-admin-script', WPOS_ANYLC_URL.'assets/js/wpos-anylc-admin.js', array('jquery'), WPOS_ANYLC_VERSION, true );
|
57 |
-
wp_localize_script( 'wpos-anylc-admin-script', 'WposAnylc', array(
|
58 |
-
'promotion' => isset($promotion) ? 1 : 0,
|
59 |
-
'promotion_pdt' => isset( $promotion_pdt_data ) ? $promotion_pdt_data : 0,
|
60 |
-
));
|
61 |
-
wp_enqueue_script( 'wpos-anylc-admin-script' );
|
62 |
-
}
|
63 |
-
}
|
64 |
-
|
65 |
$wpos_anylc_script = new Wpos_Anylc_Script();
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Script Class
|
4 |
+
*
|
5 |
+
* Handles the script and style
|
6 |
+
*
|
7 |
+
* @package Wpos Analytic
|
8 |
+
* @since 1.0
|
9 |
+
*/
|
10 |
+
|
11 |
+
if ( !defined( 'ABSPATH' ) ) {
|
12 |
+
exit; // Exit if accessed directly
|
13 |
+
}
|
14 |
+
|
15 |
+
class Wpos_Anylc_Script {
|
16 |
+
|
17 |
+
function __construct() {
|
18 |
+
|
19 |
+
// Action to add style backend
|
20 |
+
add_action( 'admin_enqueue_scripts', array($this, 'wpos_anylc_admin_script_style') );
|
21 |
+
}
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Enqueue script for backend
|
25 |
+
*
|
26 |
+
* @package Wpos Analytic
|
27 |
+
* @since 1.0
|
28 |
+
*/
|
29 |
+
function wpos_anylc_admin_script_style( $hook ) {
|
30 |
+
|
31 |
+
// Process Promotion Data
|
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) ) {
|
43 |
+
foreach ($promotion_pdt as $pdt_key => $pdt) {
|
44 |
+
if( isset( $anylc_pdt_data['promotion'][$pdt]['file'] ) ) {
|
45 |
+
$promotion_pdt_data[] = $anylc_pdt_data['promotion'][$pdt]['file'];
|
46 |
+
}
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
// Registring admin Style
|
52 |
+
wp_register_style( 'wpos-anylc-admin-style', WPOS_ANYLC_URL.'assets/css/wpos-anylc-admin.css', null, WPOS_ANYLC_VERSION );
|
53 |
+
wp_enqueue_style( 'wpos-anylc-admin-style' );
|
54 |
+
|
55 |
+
// Registring admin script
|
56 |
+
wp_register_script( 'wpos-anylc-admin-script', WPOS_ANYLC_URL.'assets/js/wpos-anylc-admin.js', array('jquery'), WPOS_ANYLC_VERSION, true );
|
57 |
+
wp_localize_script( 'wpos-anylc-admin-script', 'WposAnylc', array(
|
58 |
+
'promotion' => isset($promotion) ? 1 : 0,
|
59 |
+
'promotion_pdt' => isset( $promotion_pdt_data ) ? $promotion_pdt_data : 0,
|
60 |
+
));
|
61 |
+
wp_enqueue_script( 'wpos-anylc-admin-script' );
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
$wpos_anylc_script = new Wpos_Anylc_Script();
|
wpos-analytics/includes/wpos-anylc-function.php
CHANGED
@@ -1,329 +1,331 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Common Functions
|
4 |
-
*
|
5 |
-
* @package Wpos Analytic
|
6 |
-
* @since 1.0
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( !defined( 'ABSPATH' ) ) {
|
10 |
-
exit; // Exit if accessed directly
|
11 |
-
}
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Retrieve the translation of $text.
|
15 |
-
*
|
16 |
-
* @package Wpos Analytic
|
17 |
-
* @since 1.0
|
18 |
-
*/
|
19 |
-
function wpos_anylc_text( $text, $echo = false ) {
|
20 |
-
|
21 |
-
if( $echo ) {
|
22 |
-
_e( $text, '' );
|
23 |
-
} else {
|
24 |
-
__( $text, '' );
|
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 |
-
*
|
46 |
-
* @package Wpos Analytic
|
47 |
-
* @since 1.0
|
48 |
-
*/
|
49 |
-
function wpos_anylc_is_multi_arr( $arr ) {
|
50 |
-
rsort( $arr );
|
51 |
-
return isset( $arr[0] ) && is_array( $arr[0] );
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* Get site unique id
|
56 |
-
*
|
57 |
-
* @package Wpos Analytic
|
58 |
-
* @since 1.0.0
|
59 |
-
*/
|
60 |
-
function wpos_anylc_site_uid() {
|
61 |
-
|
62 |
-
$site_uid = get_option( 'wpos_anylc_site_uid' );
|
63 |
-
|
64 |
-
// Generate new site id if not exist
|
65 |
-
if( empty( $site_uid ) ) {
|
66 |
-
$site_url = untrailingslashit( get_bloginfo('wpurl') );
|
67 |
-
$site_uid = md5( $site_url . SECURE_AUTH_KEY );
|
68 |
-
|
69 |
-
update_option( 'wpos_anylc_site_uid', $site_uid );
|
70 |
-
}
|
71 |
-
|
72 |
-
return $site_uid;
|
73 |
-
}
|
74 |
-
|
75 |
-
/**
|
76 |
-
* Get Optin Data
|
77 |
-
*
|
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() ) {
|
85 |
-
return false;
|
86 |
-
}
|
87 |
-
|
88 |
-
global $current_user, $wpos_analytics_product;
|
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' ) {
|
112 |
-
|
113 |
-
$product_name = $theme_data->get( 'Name' );
|
114 |
-
$product_version = $theme_data->get( 'Version' );
|
115 |
-
|
116 |
-
} else {
|
117 |
-
|
118 |
-
if( !function_exists('get_plugin_data') ) {
|
119 |
-
require_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
120 |
-
}
|
121 |
-
|
122 |
-
$plugin_data = get_plugin_data( trailingslashit(WP_PLUGIN_DIR) . $analy_product['file'] );
|
123 |
-
$product_name = !empty( $plugin_data['Name'] ) ? $plugin_data['Name'] : '';
|
124 |
-
$product_version = !empty( $plugin_data['Version'] ) ? $plugin_data['Version'] : '';
|
125 |
-
}
|
126 |
-
}
|
127 |
-
|
128 |
-
$optin_data = array(
|
129 |
-
'site_url' => untrailingslashit( get_bloginfo('wpurl') ),
|
130 |
-
'site_name' => get_bloginfo( 'name' ),
|
131 |
-
'wp_version' => get_bloginfo( 'version' ),
|
132 |
-
'language' => get_bloginfo( 'language' ),
|
133 |
-
'is_rtl' => is_rtl() ? 1 : 0,
|
134 |
-
'php_version' => phpversion(),
|
135 |
-
'sdk_version' => WPOS_ANYLC_VERSION,
|
136 |
-
'product_name' => isset( $product_name ) ? $product_name : '',
|
137 |
-
'product_version' => isset( $product_version ) ? $product_version : '',
|
138 |
-
'product_id' => !empty( $analy_product['id'] ) ? $analy_product['id'] : 0,
|
139 |
-
'product_type' => !empty( $analy_product['type'] ) ? $analy_product['type'] : '',
|
140 |
-
'theme_name' => $theme_data->get( 'Name' ),
|
141 |
-
'theme_uri' => $theme_data->get( 'ThemeURI' ),
|
142 |
-
'theme_author' => $theme_data->get( 'Author' ),
|
143 |
-
'theme_author_uri' => $theme_data->get( 'AuthorURI' ),
|
144 |
-
'theme_version' => $theme_data->get( 'Version' ),
|
145 |
-
'user_firstname' => $current_user->user_firstname,
|
146 |
-
'user_lastname' => $current_user->user_lastname,
|
147 |
-
'user_nickname' => $current_user->user_nicename,
|
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 |
-
}
|
155 |
-
|
156 |
-
/**
|
157 |
-
* Get IP Address
|
158 |
-
*
|
159 |
-
* @package Wpos Analytic
|
160 |
-
* @since 1.0.0
|
161 |
-
*/
|
162 |
-
function wpos_anylc_get_ip_address() {
|
163 |
-
if ( isset( $_SERVER['HTTP_X_REAL_IP'] ) ) { // WPCS: input var ok, CSRF ok.
|
164 |
-
return sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_REAL_IP'] ) ); // WPCS: input var ok, CSRF ok.
|
165 |
-
} elseif ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { // WPCS: input var ok, CSRF ok.
|
166 |
-
// Proxy servers can send through this header like this: X-Forwarded-For: client1, proxy1, proxy2
|
167 |
-
// Make sure we always only send through the first IP in the list which should always be the client IP.
|
168 |
-
return (string) rest_is_ip_address( trim( current( preg_split( '/[,:]/', sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) ) ) ) ); // WPCS: input var ok, CSRF ok.
|
169 |
-
} elseif ( isset( $_SERVER['REMOTE_ADDR'] ) ) { // @codingStandardsIgnoreLine
|
170 |
-
return sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ); // @codingStandardsIgnoreLine
|
171 |
-
}
|
172 |
-
return '127.0.0.1';
|
173 |
-
}
|
174 |
-
|
175 |
-
/**
|
176 |
-
* Get Product Optin Data
|
177 |
-
*
|
178 |
-
* @package Wpos Analytic
|
179 |
-
* @since 1.0.0
|
180 |
-
*/
|
181 |
-
function wpos_anylc_get_option( $key = '' ) {
|
182 |
-
|
183 |
-
$opt_in_data = array();
|
184 |
-
|
185 |
-
if( !empty( $key ) ) {
|
186 |
-
$opt_in_data = get_option( $key );
|
187 |
-
$opt_in_data = ( !empty($opt_in_data) && is_array($opt_in_data) ) ? $opt_in_data : array();
|
188 |
-
}
|
189 |
-
return $opt_in_data;
|
190 |
-
}
|
191 |
-
|
192 |
-
/**
|
193 |
-
* Get Product Optin Data
|
194 |
-
*
|
195 |
-
* @package Wpos Analytic
|
196 |
-
* @since 1.0.0
|
197 |
-
*/
|
198 |
-
function wpos_anylc_update_option( $key = '', $data = array() ) {
|
199 |
-
|
200 |
-
$opt_in_data = array();
|
201 |
-
|
202 |
-
if( !empty( $key ) ) {
|
203 |
-
$opt_in_data = wpos_anylc_get_option( $key );
|
204 |
-
|
205 |
-
if( is_array($data) ) {
|
206 |
-
$opt_in_data = array_merge( $opt_in_data, $data );
|
207 |
-
update_option( $key, $opt_in_data );
|
208 |
-
}
|
209 |
-
}
|
210 |
-
return $opt_in_data;
|
211 |
-
}
|
212 |
-
|
213 |
-
/**
|
214 |
-
* Get Analytic Product Optin URL
|
215 |
-
*
|
216 |
-
* @package Wpos Analytic
|
217 |
-
* @since 1.0.0
|
218 |
-
*/
|
219 |
-
function wpos_anylc_optin_url( $module_data = '', $optin_status = null ) {
|
220 |
-
|
221 |
-
$optin_url = false;
|
222 |
-
|
223 |
-
// Optin Status
|
224 |
-
if( ! isset( $optin_status ) ) {
|
225 |
-
$opt_in_data = get_option( $module_data['anylc_optin'] );
|
226 |
-
$optin_status = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
227 |
-
}
|
228 |
-
|
229 |
-
if( !empty( $module_data['menu'] ) && !empty( $module_data['slug'] ) ) {
|
230 |
-
$url_data = parse_url( $module_data['menu'], PHP_URL_QUERY );
|
231 |
-
$query_data = !empty( $url_data ) ? parse_str( $url_data, $query_arr ) : array();
|
232 |
-
|
233 |
-
if( !empty( $query_arr['post_type'] ) && $optin_status >= 0 ) { // If Optin is done and post type menu
|
234 |
-
|
235 |
-
$optin_url = add_query_arg( array( 'post_type' => $query_arr['post_type'], 'page' => $module_data['slug'], 'anylc_optin_menu' => true ), admin_url('edit.php') );
|
236 |
-
|
237 |
-
} else if( empty( $query_arr['post_type'] ) && $optin_status >= 0 ) { // If Optin is done and simple admin menu
|
238 |
-
|
239 |
-
$optin_url = add_query_arg( array( 'page' => $module_data['slug'], 'anylc_optin_menu' => true ), admin_url('admin.php') );
|
240 |
-
|
241 |
-
} else {
|
242 |
-
$optin_url = add_query_arg( array( 'page' => $module_data['slug'] ), admin_url('admin.php') );
|
243 |
-
}
|
244 |
-
}
|
245 |
-
|
246 |
-
return $optin_url;
|
247 |
-
}
|
248 |
-
|
249 |
-
/**
|
250 |
-
* Get Analytic Product Opt Out URL
|
251 |
-
*
|
252 |
-
* @package Wpos Analytic
|
253 |
-
* @since 1.0.0
|
254 |
-
*/
|
255 |
-
function wpos_anylc_optout_url( $module_data = '', $optin_status = null, $redirect_url = false ) {
|
256 |
-
|
257 |
-
$opt_out_link = false;
|
258 |
-
|
259 |
-
// Optin Status
|
260 |
-
if( !isset( $optin_status ) ) {
|
261 |
-
$opt_in_data = get_option( $module_data['anylc_optin'] );
|
262 |
-
$optin_status = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
263 |
-
}
|
264 |
-
|
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 |
-
}
|
274 |
-
|
275 |
-
$opt_out_link = add_query_arg( array( 'wpos_anylc_action' => 'optout', 'wpos_anylc_pdt' => $module_data['slug'], 'redirect' => $redirect_url ), $redirect_url );
|
276 |
-
$opt_out_link = wp_nonce_url( $opt_out_link, 'wpos_anylc_act'.'|'.$module_data['slug'] );
|
277 |
-
}
|
278 |
-
|
279 |
-
return $opt_out_link;
|
280 |
-
}
|
281 |
-
|
282 |
-
/**
|
283 |
-
* Get Analytic Product URL
|
284 |
-
*
|
285 |
-
* @package Wpos Analytic
|
286 |
-
* @since 1.0.0
|
287 |
-
*/
|
288 |
-
function wpos_anylc_pdt_url( $module_data = '', $type = false ) {
|
289 |
-
|
290 |
-
$redirect_url
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
|
|
|
|
329 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Common Functions
|
4 |
+
*
|
5 |
+
* @package Wpos Analytic
|
6 |
+
* @since 1.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( !defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly
|
11 |
+
}
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Retrieve the translation of $text.
|
15 |
+
*
|
16 |
+
* @package Wpos Analytic
|
17 |
+
* @since 1.0
|
18 |
+
*/
|
19 |
+
function wpos_anylc_text( $text, $echo = false ) {
|
20 |
+
|
21 |
+
if( $echo ) {
|
22 |
+
_e( $text, '' );
|
23 |
+
} else {
|
24 |
+
__( $text, '' );
|
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 |
+
*
|
46 |
+
* @package Wpos Analytic
|
47 |
+
* @since 1.0
|
48 |
+
*/
|
49 |
+
function wpos_anylc_is_multi_arr( $arr ) {
|
50 |
+
rsort( $arr );
|
51 |
+
return isset( $arr[0] ) && is_array( $arr[0] );
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Get site unique id
|
56 |
+
*
|
57 |
+
* @package Wpos Analytic
|
58 |
+
* @since 1.0.0
|
59 |
+
*/
|
60 |
+
function wpos_anylc_site_uid() {
|
61 |
+
|
62 |
+
$site_uid = get_option( 'wpos_anylc_site_uid' );
|
63 |
+
|
64 |
+
// Generate new site id if not exist
|
65 |
+
if( empty( $site_uid ) ) {
|
66 |
+
$site_url = untrailingslashit( get_bloginfo('wpurl') );
|
67 |
+
$site_uid = md5( $site_url . SECURE_AUTH_KEY );
|
68 |
+
|
69 |
+
update_option( 'wpos_anylc_site_uid', $site_uid );
|
70 |
+
}
|
71 |
+
|
72 |
+
return $site_uid;
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Get Optin Data
|
77 |
+
*
|
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() ) {
|
85 |
+
return false;
|
86 |
+
}
|
87 |
+
|
88 |
+
global $current_user, $wpos_analytics_product;
|
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' ) {
|
112 |
+
|
113 |
+
$product_name = $theme_data->get( 'Name' );
|
114 |
+
$product_version = $theme_data->get( 'Version' );
|
115 |
+
|
116 |
+
} else {
|
117 |
+
|
118 |
+
if( !function_exists('get_plugin_data') ) {
|
119 |
+
require_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
120 |
+
}
|
121 |
+
|
122 |
+
$plugin_data = get_plugin_data( trailingslashit(WP_PLUGIN_DIR) . $analy_product['file'] );
|
123 |
+
$product_name = !empty( $plugin_data['Name'] ) ? $plugin_data['Name'] : '';
|
124 |
+
$product_version = !empty( $plugin_data['Version'] ) ? $plugin_data['Version'] : '';
|
125 |
+
}
|
126 |
+
}
|
127 |
+
|
128 |
+
$optin_data = array(
|
129 |
+
'site_url' => untrailingslashit( get_bloginfo('wpurl') ),
|
130 |
+
'site_name' => get_bloginfo( 'name' ),
|
131 |
+
'wp_version' => get_bloginfo( 'version' ),
|
132 |
+
'language' => get_bloginfo( 'language' ),
|
133 |
+
'is_rtl' => is_rtl() ? 1 : 0,
|
134 |
+
'php_version' => phpversion(),
|
135 |
+
'sdk_version' => WPOS_ANYLC_VERSION,
|
136 |
+
'product_name' => isset( $product_name ) ? $product_name : '',
|
137 |
+
'product_version' => isset( $product_version ) ? $product_version : '',
|
138 |
+
'product_id' => !empty( $analy_product['id'] ) ? $analy_product['id'] : 0,
|
139 |
+
'product_type' => !empty( $analy_product['type'] ) ? $analy_product['type'] : '',
|
140 |
+
'theme_name' => $theme_data->get( 'Name' ),
|
141 |
+
'theme_uri' => $theme_data->get( 'ThemeURI' ),
|
142 |
+
'theme_author' => $theme_data->get( 'Author' ),
|
143 |
+
'theme_author_uri' => $theme_data->get( 'AuthorURI' ),
|
144 |
+
'theme_version' => $theme_data->get( 'Version' ),
|
145 |
+
'user_firstname' => $current_user->user_firstname,
|
146 |
+
'user_lastname' => $current_user->user_lastname,
|
147 |
+
'user_nickname' => $current_user->user_nicename,
|
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 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Get IP Address
|
158 |
+
*
|
159 |
+
* @package Wpos Analytic
|
160 |
+
* @since 1.0.0
|
161 |
+
*/
|
162 |
+
function wpos_anylc_get_ip_address() {
|
163 |
+
if ( isset( $_SERVER['HTTP_X_REAL_IP'] ) ) { // WPCS: input var ok, CSRF ok.
|
164 |
+
return sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_REAL_IP'] ) ); // WPCS: input var ok, CSRF ok.
|
165 |
+
} elseif ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { // WPCS: input var ok, CSRF ok.
|
166 |
+
// Proxy servers can send through this header like this: X-Forwarded-For: client1, proxy1, proxy2
|
167 |
+
// Make sure we always only send through the first IP in the list which should always be the client IP.
|
168 |
+
return (string) rest_is_ip_address( trim( current( preg_split( '/[,:]/', sanitize_text_field( wp_unslash( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) ) ) ) ); // WPCS: input var ok, CSRF ok.
|
169 |
+
} elseif ( isset( $_SERVER['REMOTE_ADDR'] ) ) { // @codingStandardsIgnoreLine
|
170 |
+
return sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ); // @codingStandardsIgnoreLine
|
171 |
+
}
|
172 |
+
return '127.0.0.1';
|
173 |
+
}
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Get Product Optin Data
|
177 |
+
*
|
178 |
+
* @package Wpos Analytic
|
179 |
+
* @since 1.0.0
|
180 |
+
*/
|
181 |
+
function wpos_anylc_get_option( $key = '' ) {
|
182 |
+
|
183 |
+
$opt_in_data = array();
|
184 |
+
|
185 |
+
if( !empty( $key ) ) {
|
186 |
+
$opt_in_data = get_option( $key );
|
187 |
+
$opt_in_data = ( !empty($opt_in_data) && is_array($opt_in_data) ) ? $opt_in_data : array();
|
188 |
+
}
|
189 |
+
return $opt_in_data;
|
190 |
+
}
|
191 |
+
|
192 |
+
/**
|
193 |
+
* Get Product Optin Data
|
194 |
+
*
|
195 |
+
* @package Wpos Analytic
|
196 |
+
* @since 1.0.0
|
197 |
+
*/
|
198 |
+
function wpos_anylc_update_option( $key = '', $data = array() ) {
|
199 |
+
|
200 |
+
$opt_in_data = array();
|
201 |
+
|
202 |
+
if( !empty( $key ) ) {
|
203 |
+
$opt_in_data = wpos_anylc_get_option( $key );
|
204 |
+
|
205 |
+
if( is_array($data) ) {
|
206 |
+
$opt_in_data = array_merge( $opt_in_data, $data );
|
207 |
+
update_option( $key, $opt_in_data );
|
208 |
+
}
|
209 |
+
}
|
210 |
+
return $opt_in_data;
|
211 |
+
}
|
212 |
+
|
213 |
+
/**
|
214 |
+
* Get Analytic Product Optin URL
|
215 |
+
*
|
216 |
+
* @package Wpos Analytic
|
217 |
+
* @since 1.0.0
|
218 |
+
*/
|
219 |
+
function wpos_anylc_optin_url( $module_data = '', $optin_status = null ) {
|
220 |
+
|
221 |
+
$optin_url = false;
|
222 |
+
|
223 |
+
// Optin Status
|
224 |
+
if( ! isset( $optin_status ) ) {
|
225 |
+
$opt_in_data = get_option( $module_data['anylc_optin'] );
|
226 |
+
$optin_status = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
227 |
+
}
|
228 |
+
|
229 |
+
if( !empty( $module_data['menu'] ) && !empty( $module_data['slug'] ) ) {
|
230 |
+
$url_data = parse_url( $module_data['menu'], PHP_URL_QUERY );
|
231 |
+
$query_data = !empty( $url_data ) ? parse_str( $url_data, $query_arr ) : array();
|
232 |
+
|
233 |
+
if( !empty( $query_arr['post_type'] ) && $optin_status >= 0 ) { // If Optin is done and post type menu
|
234 |
+
|
235 |
+
$optin_url = add_query_arg( array( 'post_type' => $query_arr['post_type'], 'page' => $module_data['slug'], 'anylc_optin_menu' => true ), admin_url('edit.php') );
|
236 |
+
|
237 |
+
} else if( empty( $query_arr['post_type'] ) && $optin_status >= 0 ) { // If Optin is done and simple admin menu
|
238 |
+
|
239 |
+
$optin_url = add_query_arg( array( 'page' => $module_data['slug'], 'anylc_optin_menu' => true ), admin_url('admin.php') );
|
240 |
+
|
241 |
+
} else {
|
242 |
+
$optin_url = add_query_arg( array( 'page' => $module_data['slug'] ), admin_url('admin.php') );
|
243 |
+
}
|
244 |
+
}
|
245 |
+
|
246 |
+
return $optin_url;
|
247 |
+
}
|
248 |
+
|
249 |
+
/**
|
250 |
+
* Get Analytic Product Opt Out URL
|
251 |
+
*
|
252 |
+
* @package Wpos Analytic
|
253 |
+
* @since 1.0.0
|
254 |
+
*/
|
255 |
+
function wpos_anylc_optout_url( $module_data = '', $optin_status = null, $redirect_url = false ) {
|
256 |
+
|
257 |
+
$opt_out_link = false;
|
258 |
+
|
259 |
+
// Optin Status
|
260 |
+
if( !isset( $optin_status ) ) {
|
261 |
+
$opt_in_data = get_option( $module_data['anylc_optin'] );
|
262 |
+
$optin_status = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : null;
|
263 |
+
}
|
264 |
+
|
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 |
+
}
|
274 |
+
|
275 |
+
$opt_out_link = add_query_arg( array( 'wpos_anylc_action' => 'optout', 'wpos_anylc_pdt' => $module_data['slug'], 'redirect' => $redirect_url ), $redirect_url );
|
276 |
+
$opt_out_link = wp_nonce_url( $opt_out_link, 'wpos_anylc_act'.'|'.$module_data['slug'] );
|
277 |
+
}
|
278 |
+
|
279 |
+
return $opt_out_link;
|
280 |
+
}
|
281 |
+
|
282 |
+
/**
|
283 |
+
* Get Analytic Product URL
|
284 |
+
*
|
285 |
+
* @package Wpos Analytic
|
286 |
+
* @since 1.0.0
|
287 |
+
*/
|
288 |
+
function wpos_anylc_pdt_url( $module_data = '', $type = false ) {
|
289 |
+
|
290 |
+
$redirect_url = false;
|
291 |
+
$redirect_page = ! empty( $module_data['redirect_page'] ) ? $module_data['redirect_page'] : $module_data['menu'];
|
292 |
+
|
293 |
+
if( ! empty( $redirect_page ) ) {
|
294 |
+
|
295 |
+
$pos = strpos( $redirect_page, '?post_type' );
|
296 |
+
$redirect_url = ( $pos !== false ) ? admin_url( $redirect_page ) : add_query_arg( array( 'page' => $redirect_page ), admin_url('admin.php') );
|
297 |
+
|
298 |
+
switch ( $type ) {
|
299 |
+
case 'promotion':
|
300 |
+
|
301 |
+
$promotion = !empty( $_GET['promotion'] ) ? wpos_anylc_clean( $_GET['promotion'] ) : '';
|
302 |
+
|
303 |
+
if( !empty( $promotion ) ) {
|
304 |
+
$promotion = is_array( $promotion ) ? implode( ',', $promotion ) : $promotion;
|
305 |
+
$redirect_url = add_query_arg( array( 'message' => 'wpos_anylc_promotion', 'wpos_anylc_pdt' => $module_data['slug'], 'wpos_anylc_promo_pdt' => $promotion ), $redirect_url );
|
306 |
+
}
|
307 |
+
break;
|
308 |
+
|
309 |
+
case 'offer':
|
310 |
+
|
311 |
+
if( !empty( $module_data['offers'] ) ) {
|
312 |
+
$redirect_url = add_query_arg( array( 'page' => $module_data['slug'].'-offers' ), $redirect_url );
|
313 |
+
}
|
314 |
+
break;
|
315 |
+
|
316 |
+
case 'offer-promotion':
|
317 |
+
|
318 |
+
$promotion = !empty( $_GET['promotion'] ) ? wpos_anylc_clean( $_GET['promotion'] ) : '';
|
319 |
+
|
320 |
+
if( !empty( $module_data['offers'] ) ) {
|
321 |
+
$redirect_url = add_query_arg( array( 'page' => $module_data['slug'].'-offers' ), $redirect_url );
|
322 |
+
}
|
323 |
+
if( !empty( $promotion ) ) {
|
324 |
+
$promotion = is_array( $promotion ) ? implode( ',', $promotion ) : $promotion;
|
325 |
+
$redirect_url = add_query_arg( array( 'message' => 'wpos_anylc_promotion', 'wpos_anylc_pdt' => $module_data['slug'], 'wpos_anylc_promo_pdt' => $promotion ), $redirect_url );
|
326 |
+
}
|
327 |
+
break;
|
328 |
+
}
|
329 |
+
}
|
330 |
+
return $redirect_url;
|
331 |
}
|
wpos-analytics/templates/analytic.php
CHANGED
@@ -1,94 +1,94 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Settings Page
|
4 |
-
*
|
5 |
-
* @package Wpos Analytic
|
6 |
-
* @since 1.0.0
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( !defined( 'ABSPATH' ) ) {
|
10 |
-
exit; // Exit if accessed directly
|
11 |
-
}
|
12 |
-
?>
|
13 |
-
<style type="text/css">
|
14 |
-
.notice, .error, div.fs-notice.updated, div.fs-notice.success, div.fs-notice.promotion{display:none !important;}
|
15 |
-
</style>
|
16 |
-
|
17 |
-
<div class="wrap wpos-anylc-optin">
|
18 |
-
|
19 |
-
<?php if( isset($_GET['error']) && $_GET['error'] == 'wpos_anylc_error' ) { ?>
|
20 |
-
<div class="error">
|
21 |
-
<p><strong>Sorry, Something happened wrong. Please contact us on <a href="mailto:support@wponlinesupport.com">support@wponlinesupport.com</a></strong></p>
|
22 |
-
</div>
|
23 |
-
<?php } ?>
|
24 |
-
|
25 |
-
<form method="POST" action="
|
26 |
-
<div class="wpos-anylc-optin-wrap">
|
27 |
-
<div class="wpos-anylc-optin-icon-wrap">
|
28 |
-
<div class="wpos-anylc-optin-icon wpos-anylc-wp-badge"><i class="dashicons dashicons-wordpress"></i></div>
|
29 |
-
<div class="wpos-anylc-optin-plus"><i class="dashicons dashicons-plus"></i></div>
|
30 |
-
<div class="wpos-anylc-optin-icon"><img src="<?php echo $analy_product['icon']; ?>" alt="Icon" /></div>
|
31 |
-
<div class="wpos-anylc-optin-plus"><i class="dashicons dashicons-plus"></i></div>
|
32 |
-
<div class="wpos-anylc-optin-icon"><img src="<?php echo $analy_product['brand_icon']; ?>" alt="Icon" /></div>
|
33 |
-
</div>
|
34 |
-
<div class="wpos-anylc-optin-cnt">
|
35 |
-
<p>Hey <?php echo ucfirst($user_name); ?>,</p>
|
36 |
-
<p>Don't ever miss an opportunity to <b>opt in</b> for Email Notifications / Announcements about exciting New Features and Update Releases.</p>
|
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.
|
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 ) { ?>
|
43 |
-
<div><label><input type="checkbox" value="<?php echo $promotion_key; ?>" name="promotion[]" checked="checked" /> <?php echo $promotion_data['name']; ?></label></div>
|
44 |
-
<?php } ?>
|
45 |
-
</div>
|
46 |
-
<?php } ?>
|
47 |
-
</div>
|
48 |
-
<div class="wpos-anylc-optin-action wpos-anylc-clearfix">
|
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 |
-
}
|
59 |
-
}
|
60 |
-
?>
|
61 |
-
</div>
|
62 |
-
<div class="wpos-anylc-optin-permission">
|
63 |
-
<a class="wpos-anylc-permission-toggle" href="javascript:void(0);">What permissions are being granted?</a>
|
64 |
-
|
65 |
-
<div class="wpos-anylc-permission-wrap wpos-anylc-hide">
|
66 |
-
<div class="wpos-anylc-permission">
|
67 |
-
<i class="dashicons dashicons-admin-users"></i>
|
68 |
-
<div>
|
69 |
-
<span class="wpos-anylc-permission-name">Your Profile Overview</span>
|
70 |
-
<span class="wpos-anylc-permission-info">Name and email address</span>
|
71 |
-
</div>
|
72 |
-
</div>
|
73 |
-
<div class="wpos-anylc-permission">
|
74 |
-
<i class="dashicons dashicons-admin-settings"></i>
|
75 |
-
<div>
|
76 |
-
<span class="wpos-anylc-permission-name">Your Site Overview</span>
|
77 |
-
<span class="wpos-anylc-permission-info">Site URL, WP version, PHP info & Theme</span>
|
78 |
-
</div>
|
79 |
-
</div>
|
80 |
-
<div class="wpos-anylc-permission">
|
81 |
-
<i class="dashicons dashicons-admin-plugins"></i>
|
82 |
-
<div>
|
83 |
-
<span class="wpos-anylc-permission-name">Current Plugin Events</span>
|
84 |
-
<span class="wpos-anylc-permission-info">Activation, Deactivation and Uninstall</span>
|
85 |
-
</div>
|
86 |
-
</div>
|
87 |
-
</div>
|
88 |
-
</div>
|
89 |
-
<div class="wpos-anylc-terms">
|
90 |
-
<a href="https://www.
|
91 |
-
</div>
|
92 |
-
</div>
|
93 |
-
</form>
|
94 |
</div><!-- end .wrap -->
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Settings Page
|
4 |
+
*
|
5 |
+
* @package Wpos Analytic
|
6 |
+
* @since 1.0.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( !defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly
|
11 |
+
}
|
12 |
+
?>
|
13 |
+
<style type="text/css">
|
14 |
+
.notice, .error, div.fs-notice.updated, div.fs-notice.success, div.fs-notice.promotion{display:none !important;}
|
15 |
+
</style>
|
16 |
+
|
17 |
+
<div class="wrap wpos-anylc-optin">
|
18 |
+
|
19 |
+
<?php if( isset($_GET['error']) && $_GET['error'] == 'wpos_anylc_error' ) { ?>
|
20 |
+
<div class="error">
|
21 |
+
<p><strong>Sorry, Something happened wrong. Please contact us on <a href="mailto:support@wponlinesupport.com">support@wponlinesupport.com</a></strong></p>
|
22 |
+
</div>
|
23 |
+
<?php } ?>
|
24 |
+
|
25 |
+
<form method="POST" action="https://analytics.wponlinesupport.com">
|
26 |
+
<div class="wpos-anylc-optin-wrap">
|
27 |
+
<div class="wpos-anylc-optin-icon-wrap">
|
28 |
+
<div class="wpos-anylc-optin-icon wpos-anylc-wp-badge"><i class="dashicons dashicons-wordpress"></i></div>
|
29 |
+
<div class="wpos-anylc-optin-plus"><i class="dashicons dashicons-plus"></i></div>
|
30 |
+
<div class="wpos-anylc-optin-icon"><img src="<?php echo $analy_product['icon']; ?>" alt="Icon" /></div>
|
31 |
+
<div class="wpos-anylc-optin-plus"><i class="dashicons dashicons-plus"></i></div>
|
32 |
+
<div class="wpos-anylc-optin-icon"><img src="<?php echo $analy_product['brand_icon']; ?>" alt="Icon" /></div>
|
33 |
+
</div>
|
34 |
+
<div class="wpos-anylc-optin-cnt">
|
35 |
+
<p>Hey <?php echo ucfirst($user_name); ?>,</p>
|
36 |
+
<p>Don't ever miss an opportunity to <b>opt in</b> for Email Notifications / Announcements about exciting New Features and Update Releases.</p>
|
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.essentialplugin.com/">essentialplugin.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 ) { ?>
|
43 |
+
<div><label><input type="checkbox" value="<?php echo $promotion_key; ?>" name="promotion[]" checked="checked" /> <?php echo $promotion_data['name']; ?></label></div>
|
44 |
+
<?php } ?>
|
45 |
+
</div>
|
46 |
+
<?php } ?>
|
47 |
+
</div>
|
48 |
+
<div class="wpos-anylc-optin-action wpos-anylc-clearfix">
|
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 |
+
}
|
59 |
+
}
|
60 |
+
?>
|
61 |
+
</div>
|
62 |
+
<div class="wpos-anylc-optin-permission">
|
63 |
+
<a class="wpos-anylc-permission-toggle" href="javascript:void(0);">What permissions are being granted?</a>
|
64 |
+
|
65 |
+
<div class="wpos-anylc-permission-wrap wpos-anylc-hide">
|
66 |
+
<div class="wpos-anylc-permission">
|
67 |
+
<i class="dashicons dashicons-admin-users"></i>
|
68 |
+
<div>
|
69 |
+
<span class="wpos-anylc-permission-name">Your Profile Overview</span>
|
70 |
+
<span class="wpos-anylc-permission-info">Name and email address</span>
|
71 |
+
</div>
|
72 |
+
</div>
|
73 |
+
<div class="wpos-anylc-permission">
|
74 |
+
<i class="dashicons dashicons-admin-settings"></i>
|
75 |
+
<div>
|
76 |
+
<span class="wpos-anylc-permission-name">Your Site Overview</span>
|
77 |
+
<span class="wpos-anylc-permission-info">Site URL, WP version, PHP info & Theme</span>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<div class="wpos-anylc-permission">
|
81 |
+
<i class="dashicons dashicons-admin-plugins"></i>
|
82 |
+
<div>
|
83 |
+
<span class="wpos-anylc-permission-name">Current Plugin Events</span>
|
84 |
+
<span class="wpos-anylc-permission-info">Activation, Deactivation and Uninstall</span>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
<div class="wpos-anylc-terms">
|
90 |
+
<a href="https://www.essentialplugin.com/privacy-policy/#free-pluign-info" target="_blank">Privacy Policy</a> - <a href="https://www.essentialplugin.com/term-and-condition/" target="_blank">Terms of Service</a>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
</form>
|
94 |
</div><!-- end .wrap -->
|
wpos-analytics/templates/offers.php
CHANGED
@@ -1,73 +1,73 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Offers Page
|
4 |
-
*
|
5 |
-
* @package Wpos Analytic
|
6 |
-
* @since 1.0.0
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( !defined( 'ABSPATH' ) ) {
|
10 |
-
exit; // Exit if accessed directly
|
11 |
-
}
|
12 |
-
?>
|
13 |
-
<style type="text/css">
|
14 |
-
.notice, .error, div.fs-notice.updated, div.fs-notice.success, div.fs-notice.promotion{display:none !important;}
|
15 |
-
</style>
|
16 |
-
|
17 |
-
<div class="wrap wpos-anylc-offers">
|
18 |
-
|
19 |
-
<?php foreach ($analy_product['offers'] as $offer_key => $offer_data) {
|
20 |
-
|
21 |
-
// If status wise offer is there
|
22 |
-
if( wpos_anylc_is_multi_arr( $offer_data ) ) {
|
23 |
-
$offer_data = isset( $offer_data[ $opt_in ] ) ? $offer_data[ $opt_in ] : false;
|
24 |
-
}
|
25 |
-
|
26 |
-
if( empty( $offer_data ) ) {
|
27 |
-
continue;
|
28 |
-
}
|
29 |
-
|
30 |
-
$has_offer = true;
|
31 |
-
$link = isset( $offer_data['link'] ) ? $offer_data['link'] : '';
|
32 |
-
$image = !empty( $offer_data['image'] ) ? add_query_arg( array('v' => time()), $offer_data['image'] ) : '';
|
33 |
-
?>
|
34 |
-
|
35 |
-
<div class="wpos-anylc-offer-wrap">
|
36 |
-
<?php if( !empty( $offer_data['name'] ) ) { ?>
|
37 |
-
<div class="wpos-anylc-offer-title wpos-anylc-center"><?php echo $offer_data['name']; ?></div>
|
38 |
-
<?php } ?>
|
39 |
-
|
40 |
-
<?php if( $image ) { ?>
|
41 |
-
<div class="wpos-anylc-offer-body wpos-anylc-center">
|
42 |
-
<?php if( $link ) { ?>
|
43 |
-
<a href="<?php echo esc_url( $link ); ?>" target="_blank">
|
44 |
-
<img src="<?php echo esc_url( $image ); ?>" alt="" />
|
45 |
-
</a>
|
46 |
-
<?php } else { ?>
|
47 |
-
<img src="<?php echo esc_url( $image ); ?>" alt="" />
|
48 |
-
<?php } ?>
|
49 |
-
</div>
|
50 |
-
<?php } ?>
|
51 |
-
|
52 |
-
<?php if( !empty( $offer_data['desc'] ) ) { ?>
|
53 |
-
<div class="wpos-anylc-offer-desc wpos-anylc-center"><?php echo wpautop( $offer_data['desc'] ); ?></div>
|
54 |
-
<?php } ?>
|
55 |
-
|
56 |
-
<?php if( !empty( $offer_data['button'] ) ) { ?>
|
57 |
-
<div class="wpos-anylc-offer-footer wpos-anylc-center"><a href="<?php echo esc_url( $link ); ?>" class="button button-primary button-large wpos-anylc-btn" target="_blank"><?php echo $offer_data['button']; ?></a></div>
|
58 |
-
<?php } ?>
|
59 |
-
</div>
|
60 |
-
|
61 |
-
<?php } // End of foreach
|
62 |
-
|
63 |
-
// If no offer to display then redirect to main plugin screen
|
64 |
-
if( empty( $has_offer ) ) {
|
65 |
-
$redirect_url = wpos_anylc_pdt_url( $analy_product ); // Redirect URL
|
66 |
-
?>
|
67 |
-
Please Wait... Redirecting to plugin screen. <a href="<?php echo $redirect_url; ?>">Click Here</a> in case you are not auto redirect.
|
68 |
-
<script type="text/javascript">
|
69 |
-
window.location = "<?php echo $redirect_url; ?>";
|
70 |
-
</script>
|
71 |
-
<?php } ?>
|
72 |
-
|
73 |
</div><!-- end .wrap -->
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Offers Page
|
4 |
+
*
|
5 |
+
* @package Wpos Analytic
|
6 |
+
* @since 1.0.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( !defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly
|
11 |
+
}
|
12 |
+
?>
|
13 |
+
<style type="text/css">
|
14 |
+
.notice, .error, div.fs-notice.updated, div.fs-notice.success, div.fs-notice.promotion{display:none !important;}
|
15 |
+
</style>
|
16 |
+
|
17 |
+
<div class="wrap wpos-anylc-offers">
|
18 |
+
|
19 |
+
<?php foreach ($analy_product['offers'] as $offer_key => $offer_data) {
|
20 |
+
|
21 |
+
// If status wise offer is there
|
22 |
+
if( wpos_anylc_is_multi_arr( $offer_data ) ) {
|
23 |
+
$offer_data = isset( $offer_data[ $opt_in ] ) ? $offer_data[ $opt_in ] : false;
|
24 |
+
}
|
25 |
+
|
26 |
+
if( empty( $offer_data ) ) {
|
27 |
+
continue;
|
28 |
+
}
|
29 |
+
|
30 |
+
$has_offer = true;
|
31 |
+
$link = isset( $offer_data['link'] ) ? $offer_data['link'] : '';
|
32 |
+
$image = !empty( $offer_data['image'] ) ? add_query_arg( array('v' => time()), $offer_data['image'] ) : '';
|
33 |
+
?>
|
34 |
+
|
35 |
+
<div class="wpos-anylc-offer-wrap">
|
36 |
+
<?php if( !empty( $offer_data['name'] ) ) { ?>
|
37 |
+
<div class="wpos-anylc-offer-title wpos-anylc-center"><?php echo $offer_data['name']; ?></div>
|
38 |
+
<?php } ?>
|
39 |
+
|
40 |
+
<?php if( $image ) { ?>
|
41 |
+
<div class="wpos-anylc-offer-body wpos-anylc-center">
|
42 |
+
<?php if( $link ) { ?>
|
43 |
+
<a href="<?php echo esc_url( $link ); ?>" target="_blank">
|
44 |
+
<img src="<?php echo esc_url( $image ); ?>" alt="" />
|
45 |
+
</a>
|
46 |
+
<?php } else { ?>
|
47 |
+
<img src="<?php echo esc_url( $image ); ?>" alt="" />
|
48 |
+
<?php } ?>
|
49 |
+
</div>
|
50 |
+
<?php } ?>
|
51 |
+
|
52 |
+
<?php if( !empty( $offer_data['desc'] ) ) { ?>
|
53 |
+
<div class="wpos-anylc-offer-desc wpos-anylc-center"><?php echo wpautop( $offer_data['desc'] ); ?></div>
|
54 |
+
<?php } ?>
|
55 |
+
|
56 |
+
<?php if( !empty( $offer_data['button'] ) ) { ?>
|
57 |
+
<div class="wpos-anylc-offer-footer wpos-anylc-center"><a href="<?php echo esc_url( $link ); ?>" class="button button-primary button-large wpos-anylc-btn" target="_blank"><?php echo $offer_data['button']; ?></a></div>
|
58 |
+
<?php } ?>
|
59 |
+
</div>
|
60 |
+
|
61 |
+
<?php } // End of foreach
|
62 |
+
|
63 |
+
// If no offer to display then redirect to main plugin screen
|
64 |
+
if( empty( $has_offer ) ) {
|
65 |
+
$redirect_url = wpos_anylc_pdt_url( $analy_product ); // Redirect URL
|
66 |
+
?>
|
67 |
+
Please Wait... Redirecting to plugin screen. <a href="<?php echo $redirect_url; ?>">Click Here</a> in case you are not auto redirect.
|
68 |
+
<script type="text/javascript">
|
69 |
+
window.location = "<?php echo $redirect_url; ?>";
|
70 |
+
</script>
|
71 |
+
<?php } ?>
|
72 |
+
|
73 |
</div><!-- end .wrap -->
|
wpos-analytics/templates/optout-popup.php
CHANGED
@@ -18,10 +18,10 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
18 |
<div class="wpos-anylc-popup-body">
|
19 |
<p class="wpos-anylc-popup-heading">We appreciate your help to make the plugin better by letting us track some usage data.</p>
|
20 |
<p>Usage tracking is done in the name of making <b><?php echo $module['name']; ?></b> better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking.</p>
|
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.
|
22 |
</div>
|
23 |
<div class="wpos-anylc-popup-footer">
|
24 |
-
<form method="POST" action="
|
25 |
<?php
|
26 |
if( ! empty( $optin_form_data ) ) {
|
27 |
foreach ($optin_form_data as $data_key => $data_value) {
|
18 |
<div class="wpos-anylc-popup-body">
|
19 |
<p class="wpos-anylc-popup-heading">We appreciate your help to make the plugin better by letting us track some usage data.</p>
|
20 |
<p>Usage tracking is done in the name of making <b><?php echo $module['name']; ?></b> better. Making a better user experience, prioritizing new features, and more good things. We'd really appreciate if you'll reconsider letting us continue with the tracking.</p>
|
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.essentialplugin.com/" target="_blank">essentialplugin.com</a>.</p>
|
22 |
</div>
|
23 |
<div class="wpos-anylc-popup-footer">
|
24 |
+
<form method="POST" action="https://analytics.wponlinesupport.com">
|
25 |
<?php
|
26 |
if( ! empty( $optin_form_data ) ) {
|
27 |
foreach ($optin_form_data as $data_key => $data_value) {
|
wpos-analytics/wpos-analytics.php
CHANGED
@@ -1,251 +1,251 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* WPOS Analytics
|
4 |
-
*
|
5 |
-
* @author WP Online Support
|
6 |
-
* @package Wpos Analytic
|
7 |
-
* @since 1.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
if ( !defined( 'ABSPATH' ) ) {
|
11 |
-
exit; // Exit if accessed directly
|
12 |
-
}
|
13 |
-
|
14 |
-
if ( ! class_exists( 'WPOS_Analytics' ) ) :
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Main Analytics Class By WP Online Support.
|
18 |
-
*
|
19 |
-
* @since 1.0
|
20 |
-
*/
|
21 |
-
final class WPOS_Analytics {
|
22 |
-
|
23 |
-
/**
|
24 |
-
* @var Instance
|
25 |
-
* @since 1.0
|
26 |
-
*/
|
27 |
-
protected static $instance = null;
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Main Analytics Instance.
|
31 |
-
*
|
32 |
-
* Insures that only one instance of Analytics exists in memory at any one time.
|
33 |
-
* Also prevents needing to define globals all over the place.
|
34 |
-
*
|
35 |
-
* @since 1.0
|
36 |
-
* @uses WPOS_ANYLC::setup_constants() Setup the constants needed.
|
37 |
-
* @uses WPOS_ANYLC::includes() Include the required files.
|
38 |
-
* @uses WPOS_ANYLC::wpos_anylc_plugins_loaded() load the language files.
|
39 |
-
* @see PWPC()
|
40 |
-
* @return object The one true Analytics
|
41 |
-
*/
|
42 |
-
public static function instance() {
|
43 |
-
if ( is_null( self::$instance ) ) {
|
44 |
-
self::$instance = new self();
|
45 |
-
}
|
46 |
-
return self::$instance;
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Throw error on object clone.
|
51 |
-
*
|
52 |
-
* The whole idea of the singleton design pattern is that there is a single object therefore, we don't want the object to be cloned.
|
53 |
-
*
|
54 |
-
* @since 1.0
|
55 |
-
* @access protected
|
56 |
-
* @return void
|
57 |
-
*/
|
58 |
-
public function __clone() {
|
59 |
-
// Cloning instances of the class is forbidden.
|
60 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'pwpc' ), '1.0' );
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Disable unserializing of the class.
|
65 |
-
*
|
66 |
-
* @since 1.0
|
67 |
-
* @access protected
|
68 |
-
* @return void
|
69 |
-
*/
|
70 |
-
public function __wakeup() {
|
71 |
-
// Unserializing instances of the class is forbidden.
|
72 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'pwpc' ), '1.0' );
|
73 |
-
}
|
74 |
-
|
75 |
-
/**
|
76 |
-
* Plugin Constructor.
|
77 |
-
*/
|
78 |
-
public function __construct() {
|
79 |
-
$this->setup_constants();
|
80 |
-
$this->includes();
|
81 |
-
|
82 |
-
do_action( 'wpos_anylc_loaded' );
|
83 |
-
}
|
84 |
-
|
85 |
-
/**
|
86 |
-
* Define constant if not already set.
|
87 |
-
*
|
88 |
-
* @param string $name
|
89 |
-
* @param string|bool $value
|
90 |
-
*/
|
91 |
-
public function define( $name, $value ) {
|
92 |
-
if ( ! defined( $name ) ) {
|
93 |
-
define( $name, $value );
|
94 |
-
}
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Setup plugin constants. Basic plugin definitions
|
99 |
-
*
|
100 |
-
* @access private
|
101 |
-
* @since 1.0
|
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 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* Include required files.
|
112 |
-
*
|
113 |
-
* @access private
|
114 |
-
* @since 1.0
|
115 |
-
*/
|
116 |
-
private function includes() {
|
117 |
-
|
118 |
-
// Functions file
|
119 |
-
require_once WPOS_ANYLC_DIR .'/includes/wpos-anylc-function.php';
|
120 |
-
|
121 |
-
// Script Class
|
122 |
-
require_once WPOS_ANYLC_DIR .'/includes/class-anylc-script.php';
|
123 |
-
|
124 |
-
// Admin Class
|
125 |
-
require_once WPOS_ANYLC_DIR .'/includes/class-anylc-admin.php';
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
*
|
131 |
-
* The main function responsible for returning the one true Analytics
|
132 |
-
* Instance to functions everywhere.
|
133 |
-
*
|
134 |
-
* Use this function like you would a global variable, except without needing
|
135 |
-
* to declare the global.
|
136 |
-
*
|
137 |
-
* Example: <?php $wpos_anylc = WPOS_ANYLC(); ?>
|
138 |
-
*
|
139 |
-
* @since 1.0
|
140 |
-
* @return object The one true Analytics Instance.
|
141 |
-
*/
|
142 |
-
function WPOS_ANYLC() {
|
143 |
-
return WPOS_Analytics::instance();
|
144 |
-
}
|
145 |
-
|
146 |
-
/**
|
147 |
-
*
|
148 |
-
* Initialize Analytics Module
|
149 |
-
*
|
150 |
-
* @since 1.0
|
151 |
-
* @return object The one true Analytics Instance.
|
152 |
-
*/
|
153 |
-
function wpos_anylc_init_module( $args = array() ) {
|
154 |
-
|
155 |
-
global $wpos_analytics_module, $wpos_analytics_product;
|
156 |
-
|
157 |
-
$defaul_args = array(
|
158 |
-
'id' => null,
|
159 |
-
'file' => null,
|
160 |
-
'name' => null,
|
161 |
-
'slug' => null,
|
162 |
-
'type' => 'plugin',
|
163 |
-
'menu' => false,
|
164 |
-
'icon' => '',
|
165 |
-
'text_domain' => 'wpos_analytics',
|
166 |
-
);
|
167 |
-
|
168 |
-
$args = wp_parse_args( $args, $defaul_args );
|
169 |
-
|
170 |
-
// If required data is not there then simply return
|
171 |
-
if( empty($args['id']) || empty( $args['file'] ) || empty( $args['slug'] ) ) {
|
172 |
-
return false;
|
173 |
-
}
|
174 |
-
|
175 |
-
// Additional args
|
176 |
-
$promotion = array();
|
177 |
-
$args['dir'] = pathinfo($args['file'], PATHINFO_DIRNAME);
|
178 |
-
$args['icon'] = empty( $icon ) ? trailingslashit( WP_PLUGIN_URL ).$args['dir'].'/wpos-analytics/assets/images/icon.png' : $args['icon'];
|
179 |
-
$args['brand_icon'] = plugin_dir_url( __FILE__ ).'assets/images/wpos-logo.png';
|
180 |
-
$args['anylc_optin'] = 'wpos_anylc_pdt_'.$args['id'];
|
181 |
-
|
182 |
-
if( isset( $args['promotion'] ) ) {
|
183 |
-
foreach ($args['promotion'] as $promotion_key => $promotion_data) {
|
184 |
-
if( empty( $promotion_data['name'] ) || empty( $promotion_data['file'] ) ) {
|
185 |
-
continue;
|
186 |
-
}
|
187 |
-
|
188 |
-
$promotion[$promotion_key] = $promotion_data;
|
189 |
-
}
|
190 |
-
}
|
191 |
-
$args['promotion'] = $promotion;
|
192 |
-
|
193 |
-
// Taking some variables
|
194 |
-
$wpos_analytics_module = !empty( $wpos_analytics_module ) ? $wpos_analytics_module : array();
|
195 |
-
$wpos_analytics_product = !empty( $wpos_analytics_product ) ? $wpos_analytics_product : array();
|
196 |
-
|
197 |
-
if( is_array( $wpos_analytics_module ) ) {
|
198 |
-
$wpos_analytics_module[ $args['file'] ] = $args;
|
199 |
-
}
|
200 |
-
|
201 |
-
if( is_array( $wpos_analytics_product ) ) {
|
202 |
-
$wpos_analytics_product[ $args['slug'] ] = $args;
|
203 |
-
}
|
204 |
-
|
205 |
-
return $wpos_analytics_module;
|
206 |
-
}
|
207 |
-
|
208 |
-
/**
|
209 |
-
*
|
210 |
-
* Function on any plugin deactivation
|
211 |
-
*
|
212 |
-
* @since 1.0
|
213 |
-
* @return object The one true Analytics Instance.
|
214 |
-
*/
|
215 |
-
function wpos_anylc_plugin_activation( $plugin, $network_activation ) {
|
216 |
-
|
217 |
-
// return if activating from network, or bulk
|
218 |
-
if ( is_network_admin() ) {
|
219 |
-
return;
|
220 |
-
}
|
221 |
-
|
222 |
-
global $wpos_analytics_module;
|
223 |
-
|
224 |
-
if( isset( $wpos_analytics_module[ $plugin ] ) ) {
|
225 |
-
|
226 |
-
$opt_in_data = get_option( $wpos_analytics_module[ $plugin ]['anylc_optin'] );
|
227 |
-
$optin_status = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : -1;
|
228 |
-
|
229 |
-
if( $optin_status == -1 ) {
|
230 |
-
$redirect_link = add_query_arg( array('page' => $wpos_analytics_module[ $plugin ]['slug']), admin_url('admin.php') );
|
231 |
-
update_option( 'wpos_anylc_redirect', $redirect_link );
|
232 |
-
}
|
233 |
-
}
|
234 |
-
}
|
235 |
-
add_action( 'activated_plugin', 'wpos_anylc_plugin_activation', 10, 2 );
|
236 |
-
|
237 |
-
/**
|
238 |
-
*
|
239 |
-
* Initialize Analytics Class Once all stuff has been loaded
|
240 |
-
*
|
241 |
-
* @since 1.0
|
242 |
-
* @return object The one true Analytics Instance.
|
243 |
-
*/
|
244 |
-
function wpos_anylc_plugins_loaded() {
|
245 |
-
|
246 |
-
// Get Analytics Running.
|
247 |
-
WPOS_ANYLC();
|
248 |
-
}
|
249 |
-
add_action( 'plugins_loaded', 'wpos_anylc_plugins_loaded', 12 );
|
250 |
-
|
251 |
endif; // End if class_exists check.
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* WPOS Analytics
|
4 |
+
*
|
5 |
+
* @author WP Online Support
|
6 |
+
* @package Wpos Analytic
|
7 |
+
* @since 1.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( !defined( 'ABSPATH' ) ) {
|
11 |
+
exit; // Exit if accessed directly
|
12 |
+
}
|
13 |
+
|
14 |
+
if ( ! class_exists( 'WPOS_Analytics' ) ) :
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Main Analytics Class By WP Online Support.
|
18 |
+
*
|
19 |
+
* @since 1.0
|
20 |
+
*/
|
21 |
+
final class WPOS_Analytics {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* @var Instance
|
25 |
+
* @since 1.0
|
26 |
+
*/
|
27 |
+
protected static $instance = null;
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Main Analytics Instance.
|
31 |
+
*
|
32 |
+
* Insures that only one instance of Analytics exists in memory at any one time.
|
33 |
+
* Also prevents needing to define globals all over the place.
|
34 |
+
*
|
35 |
+
* @since 1.0
|
36 |
+
* @uses WPOS_ANYLC::setup_constants() Setup the constants needed.
|
37 |
+
* @uses WPOS_ANYLC::includes() Include the required files.
|
38 |
+
* @uses WPOS_ANYLC::wpos_anylc_plugins_loaded() load the language files.
|
39 |
+
* @see PWPC()
|
40 |
+
* @return object The one true Analytics
|
41 |
+
*/
|
42 |
+
public static function instance() {
|
43 |
+
if ( is_null( self::$instance ) ) {
|
44 |
+
self::$instance = new self();
|
45 |
+
}
|
46 |
+
return self::$instance;
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Throw error on object clone.
|
51 |
+
*
|
52 |
+
* The whole idea of the singleton design pattern is that there is a single object therefore, we don't want the object to be cloned.
|
53 |
+
*
|
54 |
+
* @since 1.0
|
55 |
+
* @access protected
|
56 |
+
* @return void
|
57 |
+
*/
|
58 |
+
public function __clone() {
|
59 |
+
// Cloning instances of the class is forbidden.
|
60 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'pwpc' ), '1.0' );
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Disable unserializing of the class.
|
65 |
+
*
|
66 |
+
* @since 1.0
|
67 |
+
* @access protected
|
68 |
+
* @return void
|
69 |
+
*/
|
70 |
+
public function __wakeup() {
|
71 |
+
// Unserializing instances of the class is forbidden.
|
72 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'pwpc' ), '1.0' );
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Plugin Constructor.
|
77 |
+
*/
|
78 |
+
public function __construct() {
|
79 |
+
$this->setup_constants();
|
80 |
+
$this->includes();
|
81 |
+
|
82 |
+
do_action( 'wpos_anylc_loaded' );
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Define constant if not already set.
|
87 |
+
*
|
88 |
+
* @param string $name
|
89 |
+
* @param string|bool $value
|
90 |
+
*/
|
91 |
+
public function define( $name, $value ) {
|
92 |
+
if ( ! defined( $name ) ) {
|
93 |
+
define( $name, $value );
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
/**
|
98 |
+
* Setup plugin constants. Basic plugin definitions
|
99 |
+
*
|
100 |
+
* @access private
|
101 |
+
* @since 1.0
|
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 |
+
}
|
109 |
+
|
110 |
+
/**
|
111 |
+
* Include required files.
|
112 |
+
*
|
113 |
+
* @access private
|
114 |
+
* @since 1.0
|
115 |
+
*/
|
116 |
+
private function includes() {
|
117 |
+
|
118 |
+
// Functions file
|
119 |
+
require_once WPOS_ANYLC_DIR .'/includes/wpos-anylc-function.php';
|
120 |
+
|
121 |
+
// Script Class
|
122 |
+
require_once WPOS_ANYLC_DIR .'/includes/class-anylc-script.php';
|
123 |
+
|
124 |
+
// Admin Class
|
125 |
+
require_once WPOS_ANYLC_DIR .'/includes/class-anylc-admin.php';
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
*
|
131 |
+
* The main function responsible for returning the one true Analytics
|
132 |
+
* Instance to functions everywhere.
|
133 |
+
*
|
134 |
+
* Use this function like you would a global variable, except without needing
|
135 |
+
* to declare the global.
|
136 |
+
*
|
137 |
+
* Example: <?php $wpos_anylc = WPOS_ANYLC(); ?>
|
138 |
+
*
|
139 |
+
* @since 1.0
|
140 |
+
* @return object The one true Analytics Instance.
|
141 |
+
*/
|
142 |
+
function WPOS_ANYLC() {
|
143 |
+
return WPOS_Analytics::instance();
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
*
|
148 |
+
* Initialize Analytics Module
|
149 |
+
*
|
150 |
+
* @since 1.0
|
151 |
+
* @return object The one true Analytics Instance.
|
152 |
+
*/
|
153 |
+
function wpos_anylc_init_module( $args = array() ) {
|
154 |
+
|
155 |
+
global $wpos_analytics_module, $wpos_analytics_product;
|
156 |
+
|
157 |
+
$defaul_args = array(
|
158 |
+
'id' => null,
|
159 |
+
'file' => null,
|
160 |
+
'name' => null,
|
161 |
+
'slug' => null,
|
162 |
+
'type' => 'plugin',
|
163 |
+
'menu' => false,
|
164 |
+
'icon' => '',
|
165 |
+
'text_domain' => 'wpos_analytics',
|
166 |
+
);
|
167 |
+
|
168 |
+
$args = wp_parse_args( $args, $defaul_args );
|
169 |
+
|
170 |
+
// If required data is not there then simply return
|
171 |
+
if( empty($args['id']) || empty( $args['file'] ) || empty( $args['slug'] ) ) {
|
172 |
+
return false;
|
173 |
+
}
|
174 |
+
|
175 |
+
// Additional args
|
176 |
+
$promotion = array();
|
177 |
+
$args['dir'] = pathinfo($args['file'], PATHINFO_DIRNAME);
|
178 |
+
$args['icon'] = empty( $icon ) ? trailingslashit( WP_PLUGIN_URL ).$args['dir'].'/wpos-analytics/assets/images/icon.png' : $args['icon'];
|
179 |
+
$args['brand_icon'] = plugin_dir_url( __FILE__ ).'assets/images/wpos-logo.png';
|
180 |
+
$args['anylc_optin'] = 'wpos_anylc_pdt_'.$args['id'];
|
181 |
+
|
182 |
+
if( isset( $args['promotion'] ) ) {
|
183 |
+
foreach ($args['promotion'] as $promotion_key => $promotion_data) {
|
184 |
+
if( empty( $promotion_data['name'] ) || empty( $promotion_data['file'] ) ) {
|
185 |
+
continue;
|
186 |
+
}
|
187 |
+
|
188 |
+
$promotion[$promotion_key] = $promotion_data;
|
189 |
+
}
|
190 |
+
}
|
191 |
+
$args['promotion'] = $promotion;
|
192 |
+
|
193 |
+
// Taking some variables
|
194 |
+
$wpos_analytics_module = !empty( $wpos_analytics_module ) ? $wpos_analytics_module : array();
|
195 |
+
$wpos_analytics_product = !empty( $wpos_analytics_product ) ? $wpos_analytics_product : array();
|
196 |
+
|
197 |
+
if( is_array( $wpos_analytics_module ) ) {
|
198 |
+
$wpos_analytics_module[ $args['file'] ] = $args;
|
199 |
+
}
|
200 |
+
|
201 |
+
if( is_array( $wpos_analytics_product ) ) {
|
202 |
+
$wpos_analytics_product[ $args['slug'] ] = $args;
|
203 |
+
}
|
204 |
+
|
205 |
+
return $wpos_analytics_module;
|
206 |
+
}
|
207 |
+
|
208 |
+
/**
|
209 |
+
*
|
210 |
+
* Function on any plugin deactivation
|
211 |
+
*
|
212 |
+
* @since 1.0
|
213 |
+
* @return object The one true Analytics Instance.
|
214 |
+
*/
|
215 |
+
function wpos_anylc_plugin_activation( $plugin, $network_activation ) {
|
216 |
+
|
217 |
+
// return if activating from network, or bulk
|
218 |
+
if ( is_network_admin() ) {
|
219 |
+
return;
|
220 |
+
}
|
221 |
+
|
222 |
+
global $wpos_analytics_module;
|
223 |
+
|
224 |
+
if( isset( $wpos_analytics_module[ $plugin ] ) ) {
|
225 |
+
|
226 |
+
$opt_in_data = get_option( $wpos_analytics_module[ $plugin ]['anylc_optin'] );
|
227 |
+
$optin_status = isset( $opt_in_data['status'] ) ? $opt_in_data['status'] : -1;
|
228 |
+
|
229 |
+
if( $optin_status == -1 ) {
|
230 |
+
$redirect_link = add_query_arg( array('page' => $wpos_analytics_module[ $plugin ]['slug']), admin_url('admin.php') );
|
231 |
+
update_option( 'wpos_anylc_redirect', $redirect_link );
|
232 |
+
}
|
233 |
+
}
|
234 |
+
}
|
235 |
+
add_action( 'activated_plugin', 'wpos_anylc_plugin_activation', 10, 2 );
|
236 |
+
|
237 |
+
/**
|
238 |
+
*
|
239 |
+
* Initialize Analytics Class Once all stuff has been loaded
|
240 |
+
*
|
241 |
+
* @since 1.0
|
242 |
+
* @return object The one true Analytics Instance.
|
243 |
+
*/
|
244 |
+
function wpos_anylc_plugins_loaded() {
|
245 |
+
|
246 |
+
// Get Analytics Running.
|
247 |
+
WPOS_ANYLC();
|
248 |
+
}
|
249 |
+
add_action( 'plugins_loaded', 'wpos_anylc_plugins_loaded', 12 );
|
250 |
+
|
251 |
endif; // End if class_exists check.
|
wpos-plugins/assets/images/essentialplugin-logo.png
ADDED
Binary file
|
wpos-plugins/assets/images/wponlinesupport-logo.png
DELETED
Binary file
|
wpos-plugins/includes/admin/class-espbw-admin.php
CHANGED
@@ -33,7 +33,7 @@ class WPOS_ESPBW_Admin {
|
|
33 |
foreach ($wpos_espbw_module as $module_key => $module_val) {
|
34 |
|
35 |
// Dashboard Page
|
36 |
-
add_submenu_page( $module_val['menu'], __('Essential Plugins Bundle By WP OnlineSuport', 'espbw'), '<span style="color:#
|
37 |
}
|
38 |
}
|
39 |
}
|
33 |
foreach ($wpos_espbw_module as $module_key => $module_val) {
|
34 |
|
35 |
// Dashboard Page
|
36 |
+
add_submenu_page( $module_val['menu'], __('Essential Plugins Bundle By WP OnlineSuport', 'espbw'), '<span style="color:#2ECC71;">'.__('Install Popular Plugins From WPOS', 'espbw').'</span>', 'manage_options', "{$module_val['prefix']}-espbw-dashboard", array($this, 'espbw_dashboard_page'), $module_val['position'] );
|
37 |
}
|
38 |
}
|
39 |
}
|
wpos-plugins/includes/admin/views/dashboard.php
CHANGED
@@ -55,8 +55,8 @@ if( ! current_user_can('install_plugins') ) {
|
|
55 |
|
56 |
<div class="espbw-dashboard-title">
|
57 |
<div class="espbw-dashboard-title-inr">
|
58 |
-
<div class="espbw-dashboard-logo"><a href="
|
59 |
-
<h3 style="text-align:center;"><?php _e( 'Essential
|
60 |
<em class="wpos-em">Installs directly from <b>wordpress.org</b> repository</em> <br />
|
61 |
</div>
|
62 |
</div>
|
@@ -66,7 +66,6 @@ if( ! current_user_can('install_plugins') ) {
|
|
66 |
<ul class="filter-links espbw-filter-links">
|
67 |
<li class="espbw-plugin-all"><a href="javascript:void(0);" class="espbw-filter-link current"><?php esc_html_e('All Essential Plugins', 'espbw'); ?></a></li>
|
68 |
<li class="espbw-plugin-recommended"><a href="javascript:void(0);" class="espbw-filter-link" data-filter="recommended"><?php esc_html_e('Utility Plugins', 'espbw'); ?></a></li>
|
69 |
-
<li class="espbw-plugin-marketing"><a href="javascript:void(0);" class="espbw-filter-link" data-filter="marketing"><?php esc_html_e('Inbound Marketing', 'espbw'); ?></a></li>
|
70 |
<li class="espbw-plugin-sliders"><a href="javascript:void(0);" class="espbw-filter-link" data-filter="sliders"><?php esc_html_e('Sliders', 'espbw'); ?></a></li>
|
71 |
<li class="espbw-plugin-woo"><a href="javascript:void(0);" class="espbw-filter-link" data-filter="woocommerce"><?php esc_html_e('WooCommerce', 'espbw'); ?></a></li>
|
72 |
</ul>
|
55 |
|
56 |
<div class="espbw-dashboard-title">
|
57 |
<div class="espbw-dashboard-title-inr">
|
58 |
+
<div class="espbw-dashboard-logo"><a href="<?php echo WPNW_SITE_LINK; ?>/?utm_source=wp&utm_medium=plugin&utm_campaign=essential-bundle" target="_blank"><img src="<?php echo esc_url( WPOS_ESPBW_URL ); ?>assets/images/essentialplugin-logo.png" alt="essentialplugin" /></a></div>
|
59 |
+
<h3 style="text-align:center;"><?php _e( 'Essential Plugin', 'espbw' ); ?></h3>
|
60 |
<em class="wpos-em">Installs directly from <b>wordpress.org</b> repository</em> <br />
|
61 |
</div>
|
62 |
</div>
|
66 |
<ul class="filter-links espbw-filter-links">
|
67 |
<li class="espbw-plugin-all"><a href="javascript:void(0);" class="espbw-filter-link current"><?php esc_html_e('All Essential Plugins', 'espbw'); ?></a></li>
|
68 |
<li class="espbw-plugin-recommended"><a href="javascript:void(0);" class="espbw-filter-link" data-filter="recommended"><?php esc_html_e('Utility Plugins', 'espbw'); ?></a></li>
|
|
|
69 |
<li class="espbw-plugin-sliders"><a href="javascript:void(0);" class="espbw-filter-link" data-filter="sliders"><?php esc_html_e('Sliders', 'espbw'); ?></a></li>
|
70 |
<li class="espbw-plugin-woo"><a href="javascript:void(0);" class="espbw-filter-link" data-filter="woocommerce"><?php esc_html_e('WooCommerce', 'espbw'); ?></a></li>
|
71 |
</ul>
|