Yasr – Yet Another Stars Rating - Version 3.0.9

Version Description

  • TWEAKED: code cleanup in gutenberg blocks
Download this release

Release Info

Developer Dudo
Plugin Icon 128x128 Yasr – Yet Another Stars Rating
Version 3.0.9
Comparing to
See all releases

Code changes from version 3.0.8 to 3.0.9

admin/js/guten/blocks/shortcodes.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={161:(e,t,a)=>{var r=a(534),n=wp.blocks.registerBlockType,s=wp.components.PanelBody,l=wp.element.Fragment,c=wp.blockEditor,o=c.useBlockProps,i=c.InspectorControls;n("yet-another-stars-rating/most-active-users",{edit:function(e){var t=o({className:"yasr-active-users-block"}),a=[React.createElement(r.YasrNoSettingsPanel,{key:0})];function n(e){return React.createElement(i,null,React.createElement(s,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,a))))}return wp.hooks.doAction("yasr_top_visitor_setting",a),React.createElement(l,null,React.createElement(n,null),React.createElement("div",t,"[yasr_most_active_users]"))},save:function(e){var t=o.save({className:"yasr-active-users-block"});return React.createElement("div",t,"[yasr_most_active_users]")}}),n("yet-another-stars-rating/most-active-reviewers",{edit:function(e){var t=o({className:"yasr-reviewers-block"}),a=[React.createElement(r.YasrNoSettingsPanel,{key:0})];function n(e){return React.createElement(i,null,React.createElement(s,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,a))))}return wp.hooks.doAction("yasr_top_reviewers_setting",a),React.createElement(l,null,React.createElement(n,null),React.createElement("div",t,"[yasr_top_reviewers]"))},save:function(e){var t=o.save({className:"yasr-reviewers-block"});return React.createElement("div",t,"[yasr_top_reviewers]")}})},972:(e,t,a)=>{var r=a(534),n=wp.blocks.registerBlockType,s=wp.element.Fragment,l=wp.blockEditor.useBlockProps;n("yet-another-stars-rating/overall-rating",{edit:function(e){var t=l({className:"yasr-overall-block"}),a=e.attributes,n=a.size,c=a.postId,o=e.setAttributes,i=e.isSelected,u=null,m=null;return"large"!==n&&(u=' size="'+n+'"'),!0===/^\d+$/.test(c)&&(m=' postid="'+c+'"'),React.createElement(s,null,i&&React.createElement(r.YasrBlocksPanel,{block:"overall",size:n,postId:c,setAttributes:o}),React.createElement("div",t,"[yasr_overall_rating",u,m,"]",i&&React.createElement(r.YasrPrintSelectSize,{size:n,setAttributes:o})))},save:function(e){var t=l.save({className:"yasr-overall-block"}),a=e.attributes,r=a.size,n=a.postId,s="";return r&&(s+='size="'+r+'"'),n&&(s+=' postid="'+n+'"'),React.createElement("div",t,"[yasr_overall_rating ",s,"]")}})},982:(e,t,a)=>{var r=a(534),n=wp.blocks.registerBlockType,s=wp.components.PanelBody,l=wp.element.Fragment,c=wp.blockEditor,o=c.useBlockProps,i=c.InspectorControls;n("yet-another-stars-rating/overall-rating-ranking",{edit:function(e){var t=o({className:"yasr-ov-ranking-block"}),a=[React.createElement(r.YasrNoSettingsPanel,{key:0})];function n(e){return React.createElement(i,null,React.createElement(s,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,a))))}return wp.hooks.doAction("yasr_overall_rating_rankings",a),React.createElement(l,null,React.createElement(n,null),React.createElement("div",t,"[yasr_ov_ranking]"))},save:function(e){var t=o.save({className:"yasr-ov-ranking-block"});return React.createElement("div",t,"[yasr_ov_ranking]")}}),n("yet-another-stars-rating/visitor-votes-ranking",{edit:function(e){var t=o({className:"yasr-vv-ranking-block"}),a=[React.createElement(r.YasrNoSettingsPanel,{key:0})];function n(e){return React.createElement(i,null,React.createElement(s,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,a))))}return wp.hooks.doAction("yasr_visitor_votes_rankings",a),React.createElement(l,null,React.createElement(n,null),React.createElement("div",t,"[yasr_most_or_highest_rated_posts]"))},save:function(e){var t=o.save({className:"yasr-vv-ranking-block"});return React.createElement("div",t,"[yasr_most_or_highest_rated_posts]")}})},835:(e,t,a)=>{var r=a(534),n=wp.blocks.registerBlockType,s=(wp.components.PanelBody,wp.element.Fragment),l=wp.blockEditor,c=l.useBlockProps;l.InspectorControls,n("yet-another-stars-rating/user-rate-history",{edit:function(e){var t=c({className:"yasr-user-rate-history"}),a=[React.createElement(r.YasrNoSettingsPanel,{key:0})];return wp.hooks.doAction("yasr_user_rate_history_settings",a),React.createElement(s,null,React.createElement("div",t,"[yasr_user_rate_history]"))},save:function(e){var t=c.save({className:"yasr-user-rate-history"});return React.createElement("div",t,"[yasr_user_rate_history]")}})},466:(e,t,a)=>{var r=a(534),n=wp.blocks.registerBlockType,s=wp.element.Fragment,l=wp.blockEditor.useBlockProps;n("yet-another-stars-rating/visitor-votes",{edit:function(e){var t=l({className:"yasr-vv-block"}),a=e.attributes,n=a.size,c=a.postId,o=e.setAttributes,i=e.isSelected,u=null,m=null;return"large"!==n&&(u=' size="'+n+'"'),!0===/^\d+$/.test(c)&&(m=' postid="'+c+'"'),React.createElement(s,null,React.createElement(r.YasrBlocksPanel,{block:"visitors",size:n,setAttributes:o,postId:c}),React.createElement("div",t,"[yasr_visitor_votes",u,m,"]",i&&React.createElement(r.YasrPrintSelectSize,{size:n,setAttributes:o})))},save:function(e){var t=l.save({className:"yasr-vv-block"}),a=e.attributes,r=a.size,n=a.postId,s="";return r&&(s+='size="'+r+'"'),n&&(s+=' postid="'+n+'"'),React.createElement("div",t,"[yasr_visitor_votes ",s,"]")}})},534:(e,t,a)=>{a.r(t),a.d(t,{YasrBlocksPanel:()=>b,YasrDivRatingOverall:()=>_,YasrNoSettingsPanel:()=>k,YasrPrintInputId:()=>E,YasrPrintSelectSize:()=>g,YasrProText:()=>R,yasrLabelSelectSize:()=>o,yasrLeaveThisBlankText:()=>p,yasrOptionalText:()=>c,yasrOverallDescription:()=>y,yasrSelectSizeChoose:()=>i,yasrSelectSizeLarge:()=>v,yasrSelectSizeMedium:()=>m,yasrSelectSizeSmall:()=>u,yasrVisitorVotesDescription:()=>d});var r=a(534),n=wp.i18n.__,s=wp.components.PanelBody,l=wp.blockEditor.InspectorControls,c=n("All these settings are optional","yet-another-stars-rating"),o=n("Choose Size","yet-another-stars-rating"),i=n("Choose stars size","yet-another-stars-rating"),u=n("Small","yet-another-stars-rating"),m=n("Medium","yet-another-stars-rating"),v=n("Large","yet-another-stars-rating"),p=n("Leave this blank if you don't know what you're doing.","yet-another-stars-rating"),y=n("Remember: only the post author can rate here.","yet-another-stars-rating"),d=n("This is the star set where your users will be able to vote","yet-another-stars-rating");function g(e){return React.createElement("form",null,React.createElement("select",{value:e.size,onChange:function(t){return(0,e.setAttributes)({size:(a=t).target.querySelector("option:checked").value}),void a.preventDefault();var a}},React.createElement("option",{value:"--"},r.yasrSelectSizeChoose),React.createElement("option",{value:"small"},r.yasrSelectSizeSmall),React.createElement("option",{value:"medium"},r.yasrSelectSizeMedium),React.createElement("option",{value:"large"},r.yasrSelectSizeLarge)))}function E(e){var t;return!1!==e.postId&&(t=e.postId),React.createElement("div",null,React.createElement("input",{type:"text",size:"4",defaultValue:t,onKeyPress:function(t){return function(e,t){if("Enter"===t.key){var a=t.target.value;!0!==/^\d+$/.test(a)&&""!==a||e({postId:a}),t.preventDefault()}}(e.setAttributes,t)}}))}function R(){var e=n("To be able to customize this ranking, you need","yet-another-stars-rating"),t=n("You can buy the plugin, including support, updates and upgrades, on","yet-another-stars-rating");return React.createElement("h3",null,e," ",React.createElement("a",{href:"https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings#yasr-pro"},"Yasr Pro."),React.createElement("br",null),t," ",React.createElement("a",{href:"https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings"},"yetanotherstarsrating.com"))}function k(e){return React.createElement("div",null,React.createElement(R,null))}function b(e){var t;return"visitors"===e.block&&(t=d),"overall"===e.block&&(t=y),React.createElement(l,null,"overall"===e.block&&React.createElement(_,null),React.createElement(s,{title:"Settings"},React.createElement("h3",null,c),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,o),React.createElement("div",null,React.createElement(g,{size:e.size,setAttributes:e.setAttributes}))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(E,{postId:e.postId,setAttributes:e.setAttributes}),React.createElement("div",{className:"yasr-guten-block-explain"},"Use return (↵) to save."),React.createElement("p",null,p)),React.createElement("div",{className:"yasr-guten-block-panel"},t)))}function _(e){if(!0===JSON.parse(yasrConstantGutenberg.isFseElement))return React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement("div",null,n("This is a template file, you can't rate here. You need to insert the rating inside the single post or page","yet-another-stars-rating")),React.createElement("br",null));var t=n("Rate this article / item","yet-another-stars-rating"),a=wp.data.select("core/editor").getCurrentPost().meta.yasr_overall_rating,r=function(e,t){e=e.toFixed(1),e=parseFloat(e),wp.data.dispatch("core/editor").editPost({meta:{yasr_overall_rating:e}}),this.setRating(e),t()};return React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},t,React.createElement("div",{id:"overall-rater",ref:function(){return yasrSetRaterValue(32,"overall-rater",!1,.1,!1,a,r)}}))}}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,a),s.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a(534),a(972),a(466),a(982),a(161),a(835)})();
1
+ (()=>{"use strict";var e={434:(e,t,r)=>{r.d(t,{Mp:()=>u,Sg:()=>d,YD:()=>y,aF:()=>p,lN:()=>n,pD:()=>s,pP:()=>R,rl:()=>k,rn:()=>v,yG:()=>m});var a=wp.i18n.__,s=a("All these settings are optional","yet-another-stars-rating"),n=a("Size","yet-another-stars-rating"),o=a("Stars size","yet-another-stars-rating"),i=a("Small","yet-another-stars-rating"),l=a("Medium","yet-another-stars-rating"),c=a("Large","yet-another-stars-rating"),u=a("Leave this blank if you don't know what you're doing.","yet-another-stars-rating"),h=a("Remember: only the post author can rate here.","yet-another-stars-rating"),g=a("This is the star set where your users will be able to vote","yet-another-stars-rating"),m=function(e){var t;return!1!==e.postId&&(t=e.postId),React.createElement("div",null,React.createElement("input",{type:"text",size:"4",defaultValue:t,onKeyPress:function(t){return function(e,t){if("Enter"===t.key){var r=t.target.value;!0!==/^\d+$/.test(r)&&""!==r||e({postId:r}),t.preventDefault()}}(e.setAttributes,t)}}))},p=function(e){return React.createElement("form",null,React.createElement("select",{value:e.size,onChange:function(t){return(0,e.setAttributes)({size:(r=t).target.querySelector("option:checked").value}),void r.preventDefault();var r}},React.createElement("option",{value:"--"},o," "),React.createElement("option",{value:"small"},i," "),React.createElement("option",{value:"medium"},l),React.createElement("option",{value:"large"},c," ")))},d=function(e){if(!0===JSON.parse(yasrConstantGutenberg.isFseElement))return React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement("div",null,a("This is a template file, you can't rate here. You need to insert the rating inside the single post or page","yet-another-stars-rating")),React.createElement("br",null));if(null===wp.data.select("core/editor"))return React.createElement(React.Fragment,null);var t=a("Rate this article / item","yet-another-stars-rating"),r=wp.data.select("core/editor").getCurrentPost().meta.yasr_overall_rating,s=function(e,t){e=e.toFixed(1),e=parseFloat(e),wp.data.dispatch("core/editor").editPost({meta:{yasr_overall_rating:e}}),this.setRating(e),t()};return React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},t,React.createElement("div",{id:"overall-rater",ref:function(){return yasrSetRaterValue(32,"overall-rater",!1,.1,!1,r,s)}}))},y=function(e,t){var r=null;return"edit"===t?("small"!==e&&"medium"!==e||(r=' size="'.concat(e,'"')),r):("small"!==e&&"medium"!==e&&"large"!==e||(r=' size="'.concat(e,'"')),r)},v=function(e){var t=null;return!0===/^\d+$/.test(e)&&(t=' postid="'.concat(e,'"')),t},k=function(e){var t={className:null,shortCode:null,overallRating:!1,hookName:!1,panelSettings:!0,sizeAndId:!1};return"yet-another-stars-rating/overall-rating"===e&&(t.overallRating=!0,t.className="yasr-overall-block",t.shortCode="yasr_overall_rating",t.bottomDesc=h,t.sizeAndId=!0),"yet-another-stars-rating/visitor-votes"===e&&(t.className="yasr-vv-block",t.shortCode="yasr_visitor_votes",t.bottomDesc=g,t.sizeAndId=!0),"yet-another-stars-rating/overall-rating-ranking"===e&&(t.className="yasr-ov-ranking-block",t.shortCode="yasr_ov_ranking",t.hookName="yasr_overall_rating_rankings"),"yet-another-stars-rating/visitor-votes-ranking"===e&&(t.className="yasr-vv-ranking-block",t.shortCode="yasr_most_or_highest_rated_posts",t.hookName="yasr_visitor_votes_rankings"),"yet-another-stars-rating/most-active-users"===e&&(t.className="yasr-active-users-block",t.shortCode="yasr_most_active_users",t.hookName="yasr_top_visitor_setting"),"yet-another-stars-rating/most-active-reviewers"===e&&(t.className="yasr-reviewers-block",t.shortCode="yasr_top_reviewers",t.hookName="yasr_top_reviewers_setting"),"yet-another-stars-rating/user-rate-history"===e&&(t.className="yasr-user-rate-history",t.shortCode="yasr_user_rate_history",t.panelSettings=!1),t},b=function(){var e=a("To be able to customize this ranking, you need","yet-another-stars-rating"),t=a("You can buy the plugin, including support, updates and upgrades, on","yet-another-stars-rating");return React.createElement("h3",null,e," ",React.createElement("a",{href:"admin/js/src/guten/yasrGutenUtils?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings#yasr-pro"},"Yasr Pro."),React.createElement("br",null),t," ",React.createElement("a",{href:"admin/js/src/guten/yasrGutenUtils?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings"},"yetanotherstarsrating.com"))},R=function(){return React.createElement("div",null,React.createElement(b,null))}},968:(e,t,r)=>{const a=JSON.parse('{"title":"Yasr: Overall Rating","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"yet-another-stars-rating/overall-rating","description":"Insert the author rating.","icon":"star-half","category":"yet-another-stars-rating","example":{},"keywords":["rating","author","overall"],"attributes":{"size":{"type":"string","default":"large"},"postId":{"type":"string","default":false}},"supports":{"align":["left","center","right"]},"editorScript":"yasr-shortcodes-blocks"}'),s=JSON.parse('{"title":"Yasr: Visitor Votes","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"yet-another-stars-rating/visitor-votes","description":"Insert the ability for your visitors to vote.","icon":"star-half","category":"yet-another-stars-rating","example":{},"keywords":["rating","visitor","votes","stars"],"attributes":{"size":{"type":"string","default":"large"},"postId":{"type":"string","default":false}},"supports":{"align":["left","center","right"]},"editorScript":"yasr-shortcodes-blocks"}'),n=JSON.parse('{"title":"Yasr: Most Active Visitors","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"yet-another-stars-rating/most-active-users","description":"This ranking shows the most active users, displaying the login name if logged in or \\"Anonymous\\" if not","icon":"star-half","category":"yet-another-stars-rating","example":{},"keywords":["ranking","highest","most","chart","visitors"],"supports":{"align":["left","center","right"]},"editorScript":"yasr-shortcodes-blocks"}'),o=JSON.parse('{"title":"Yasr: Most Active Authors","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"yet-another-stars-rating/most-active-reviewers","description":"This ranking shows the most active reviewers on your site.","icon":"star-half","category":"yet-another-stars-rating","example":{},"keywords":["ranking","highest","most","chart","authors"],"supports":{"align":["left","center","right"]},"editorScript":"yasr-shortcodes-blocks"}'),i=JSON.parse('{"title":"Yasr: User Rate History","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"yet-another-stars-rating/user-rate-history","description":"If user is logged in, this shortcode shows a list of all the ratings provided by the user on [yasr_visitor_votes] shortcode","icon":"star-half","category":"yet-another-stars-rating","example":{},"keywords":["ratings","list","history"],"supports":{"align":["left","center","right"]},"editorScript":"yasr-shortcodes-blocks"}'),l=JSON.parse('{"title":"Yasr: Ranking by overall rating","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"yet-another-stars-rating/overall-rating-ranking","description":"This ranking shows the highest rated posts rated through the overall_rating shortcode.","icon":"star-half","category":"yet-another-stars-rating","example":{},"keywords":["ranking","highest","chart"],"supports":{"align":["left","center","right"]},"editorScript":"yasr-shortcodes-blocks"}'),c=JSON.parse('{"title":"Yasr: Ranking by visitors votes","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"yet-another-stars-rating/visitor-votes-ranking","description":"This ranking shows both the highest and most rated posts rated through the yasr_visitor_votes shortcode. For an item to appear in this chart, it has to be rated at least twice.","icon":"star-half","category":"yet-another-stars-rating","example":{},"keywords":["ranking","highest","most","chart"],"supports":{"align":["left","center","right"]},"editorScript":"yasr-shortcodes-blocks"}');var u=r(434),h=wp.components.PanelBody,g=wp.blockEditor.InspectorControls,m=function(e){var t=e.block,r=e.hookName,a=e.sizeAndId,s=(0,u.rl)(t),n=s.overallRating,o=s.panelSettings,i=s.bottomDesc,l=React.createElement(React.Fragment,null);return!1!==r&&(l=[React.createElement(u.pP,{key:0})],wp.hooks.doAction(r,l)),!0!==o&&!1===r?React.createElement(React.Fragment,null):React.createElement(g,null,n&&React.createElement(u.Sg,null),React.createElement(h,{title:"Settings"},l,o&&a&&React.createElement(p,e),React.createElement("div",{className:"yasr-guten-block-panel"},i)))},p=function(e){var t=e.block,r=e.setAttributes,a={size:t,postId:e.postId,setAttributes:r};return React.createElement(React.Fragment,null,React.createElement("h3",null,u.pD),React.createElement(d,a),React.createElement(y,a))},d=function(e){return React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,u.lN),React.createElement("div",null,React.createElement(u.aF,{size:e.size,setAttributes:e.setAttributes})))},y=function(e){return React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(u.yG,{postId:e.postId,setAttributes:e.setAttributes}),React.createElement("div",{className:"yasr-guten-block-explain"},"Use return (↵) to save."),React.createElement("p",null,u.Mp))},v=wp.element.Fragment,k=wp.blockEditor.useBlockProps;const b=function(e){var t=e.attributes,r=t.size,a=t.postId,s=e.name,n=e.isSelected,o=e.setAttributes,i=(0,u.rl)(s),l=i.className,c=i.shortCode,h=i.hookName,g=i.sizeAndId,p={block:s,size:r,postId:a,setAttributes:o,hookName:h,sizeAndId:g},d=k({className:l,name:s}),y=(0,u.YD)(r,"edit"),b=(0,u.rn)(a);return React.createElement(v,null,n&&React.createElement(m,p),React.createElement("div",d,"[",c,y,b,"]",n&&g&&React.createElement(u.aF,{size:r,setAttributes:o})))};var R=wp.blockEditor.useBlockProps;for(var f=wp.blocks.registerBlockType,_={overallRating:a,visitorVotes:s,mostActiveUsers:n,topReviewers:o,userRateHistory:i,ovRanking:l,vvRanking:c},E=function(){var e=N[w];f(_[e],{edit:b,save:function(t){return function(e,t){var r=e.attributes,a=r.size,s=r.postId,n=t.name,o=(0,u.rl)(n),i=o.className,l=o.shortCode,c=R.save({className:i}),h=(0,u.YD)(a,"save"),g=(0,u.rn)(s);return React.createElement("div",c,"[",l,h,g,"]")}(t,_[e])}})},w=0,N=Object.keys(_);w<N.length;w++)E()}},t={};function r(a){var s=t[a];if(void 0!==s)return s.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(434),r(968)})();
admin/js/guten/yasr-guten-misc.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={534:(e,t,r)=>{"use strict";r.r(t),r.d(t,{YasrBlocksPanel:()=>R,YasrDivRatingOverall:()=>E,YasrNoSettingsPanel:()=>b,YasrPrintInputId:()=>h,YasrPrintSelectSize:()=>g,YasrProText:()=>v,yasrLabelSelectSize:()=>i,yasrLeaveThisBlankText:()=>m,yasrOptionalText:()=>s,yasrOverallDescription:()=>d,yasrSelectSizeChoose:()=>c,yasrSelectSizeLarge:()=>y,yasrSelectSizeMedium:()=>p,yasrSelectSizeSmall:()=>u,yasrVisitorVotesDescription:()=>f});var a=r(534),n=wp.i18n.__,o=wp.components.PanelBody,l=wp.blockEditor.InspectorControls,s=n("All these settings are optional","yet-another-stars-rating"),i=n("Choose Size","yet-another-stars-rating"),c=n("Choose stars size","yet-another-stars-rating"),u=n("Small","yet-another-stars-rating"),p=n("Medium","yet-another-stars-rating"),y=n("Large","yet-another-stars-rating"),m=n("Leave this blank if you don't know what you're doing.","yet-another-stars-rating"),d=n("Remember: only the post author can rate here.","yet-another-stars-rating"),f=n("This is the star set where your users will be able to vote","yet-another-stars-rating");function g(e){return React.createElement("form",null,React.createElement("select",{value:e.size,onChange:function(t){return(0,e.setAttributes)({size:(r=t).target.querySelector("option:checked").value}),void r.preventDefault();var r}},React.createElement("option",{value:"--"},a.yasrSelectSizeChoose),React.createElement("option",{value:"small"},a.yasrSelectSizeSmall),React.createElement("option",{value:"medium"},a.yasrSelectSizeMedium),React.createElement("option",{value:"large"},a.yasrSelectSizeLarge)))}function h(e){var t;return!1!==e.postId&&(t=e.postId),React.createElement("div",null,React.createElement("input",{type:"text",size:"4",defaultValue:t,onKeyPress:function(t){return function(e,t){if("Enter"===t.key){var r=t.target.value;!0!==/^\d+$/.test(r)&&""!==r||e({postId:r}),t.preventDefault()}}(e.setAttributes,t)}}))}function v(){var e=n("To be able to customize this ranking, you need","yet-another-stars-rating"),t=n("You can buy the plugin, including support, updates and upgrades, on","yet-another-stars-rating");return React.createElement("h3",null,e," ",React.createElement("a",{href:"https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings#yasr-pro"},"Yasr Pro."),React.createElement("br",null),t," ",React.createElement("a",{href:"https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings"},"yetanotherstarsrating.com"))}function b(e){return React.createElement("div",null,React.createElement(v,null))}function R(e){var t;return"visitors"===e.block&&(t=f),"overall"===e.block&&(t=d),React.createElement(l,null,"overall"===e.block&&React.createElement(E,null),React.createElement(o,{title:"Settings"},React.createElement("h3",null,s),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,i),React.createElement("div",null,React.createElement(g,{size:e.size,setAttributes:e.setAttributes}))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(h,{postId:e.postId,setAttributes:e.setAttributes}),React.createElement("div",{className:"yasr-guten-block-explain"},"Use return (↵) to save."),React.createElement("p",null,m)),React.createElement("div",{className:"yasr-guten-block-panel"},t)))}function E(e){if(!0===JSON.parse(yasrConstantGutenberg.isFseElement))return React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement("div",null,n("This is a template file, you can't rate here. You need to insert the rating inside the single post or page","yet-another-stars-rating")),React.createElement("br",null));var t=n("Rate this article / item","yet-another-stars-rating"),r=wp.data.select("core/editor").getCurrentPost().meta.yasr_overall_rating,a=function(e,t){e=e.toFixed(1),e=parseFloat(e),wp.data.dispatch("core/editor").editPost({meta:{yasr_overall_rating:e}}),this.setRating(e),t()};return React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},t,React.createElement("div",{id:"overall-rater",ref:function(){return yasrSetRaterValue(32,"overall-rater",!1,.1,!1,r,a)}}))}}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(t,r){if(r&&("object"===e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}var o=wp.i18n.__,l=wp.blocks.registerBlockType,s=wp.components,i=s.PanelBody,c=(s.PanelRow,wp.element.Fragment),u=wp.editor,p=(u.BlockControls,u.InspectorControls),y=o("All these settings are optional","yet-another-stars-rating"),m=o("Choose Size","yet-another-stars-rating"),d=o("Choose stars size","yet-another-stars-rating"),f=o("Small","yet-another-stars-rating"),g=o("Medium","yet-another-stars-rating"),h=o("Large","yet-another-stars-rating"),v=o("Leave this blank if you don't know what you're doing.","yet-another-stars-rating"),b=o("Remember: only the post author can rate here.","yet-another-stars-rating"),R=o("This is the star set where your users will be able to vote","yet-another-stars-rating"),E=o('This block is now deprecated. It will still work, but I suggest to replace it with the new one by simply removing it and adding "Yasr Overall Rating" again.',"yet-another-stars-rating"),w=o('This block is now deprecated. It will still work, but I suggest to replace it with the new one by simply removing it and adding "Yasr Visitors Votes" again.',"yet-another-stars-rating");l("yet-another-stars-rating/yasr-overall-rating",{title:o("[DEPRECATED]Yasr: Overall Rating","yet-another-stars-rating"),description:E,icon:"star-half",keywords:[o("rating","yet-another-stars-rating"),o("author","yet-another-stars-rating"),o("overall","yet-another-stars-rating")],attributes:{overallRatingMeta:{type:"number",source:"meta",meta:"yasr_overall_rating"},size:{type:"string",default:"--"},postId:{type:"string",default:"--"}},edit:function(e){var l,s=e.attributes,u=s.overallRatingMeta,R=s.size,E=s.postId,w=e.setAttributes,k=e.isSelected,_=u,S=null,P=null;"--"!==R&&(S=' size="'+R+'"'),l=/^\d+$/.test(E),"--"!==E&&!0===l&&(P=' postid="'+E+'"');var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}(p,React.Component);var l,s,i,c,u=(i=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=n(i);if(c){var r=n(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return a(this,e)});function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=u.call(this,e)).yasrOverallRateThis=o("Rate this article / item","yet-another-stars-rating"),t}return l=p,(s=[{key:"render",value:function(){return React.createElement("div",null,this.yasrOverallRateThis,React.createElement("div",null,React.createElement("div",{id:"overall-rater",ref:function(){return raterJs({starSize:32,step:.1,showToolTip:!1,rating:_,readOnly:!1,element:document.querySelector("#overall-rater"),rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),w({overallRatingMeta:e}),this.setRating(e),t()}})}})))}}])&&t(l.prototype,s),Object.defineProperty(l,"prototype",{writable:!1}),p}();function z(){return React.createElement("form",null,React.createElement("select",{value:R,onChange:I},React.createElement("option",{value:"--"},d),React.createElement("option",{value:"small"},f),React.createElement("option",{value:"medium"},g),React.createElement("option",{value:"large"},h)))}function I(e){var t=e.target.querySelector("option:checked");w({size:t.value}),e.preventDefault()}function C(){return React.createElement("div",null,React.createElement("input",{type:"text",size:"4",onKeyPress:T}))}function T(e){if("Enter"===e.key){var t=e.target.value;!0!==/^\d+$/.test(t)&&""!==t||w({postId:t}),e.preventDefault()}}function N(e){return React.createElement(p,null,React.createElement("div",{class:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement(O,null)),React.createElement(i,{title:"Settings"},React.createElement("h3",null,y),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,m),React.createElement("div",null,React.createElement(z,null))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(C,null),React.createElement("div",{className:"yasr-guten-block-explain"},v)),React.createElement("div",{className:"yasr-guten-block-panel"},b)))}return React.createElement(c,null,React.createElement(N,null),React.createElement("div",{className:e.className},"[yasr_overall_rating",S,P,"]",k&&React.createElement(z,null)))},save:function(e){var t=e.attributes,r=t.size,a=t.postId,n="",o=a;return r&&(n+='size="'+r+'"'),a&&("--"===a&&(o=wp.data.select("core/editor").getCurrentPostId()),n+=' postid="'+o+'"'),React.createElement("div",null,"[yasr_overall_rating ",n,"]")}}),l("yet-another-stars-rating/yasr-visitor-votes",{title:o("[DEPRECATED]Yasr: Visitor Votes","yet-another-stars-rating"),description:w,icon:"star-half",keywords:[o("rating","yet-another-stars-rating"),o("visitor","yet-another-stars-rating"),o("votes","yet-another-stars-rating")],attributes:{size:{type:"string",default:"--"},postId:{type:"string",default:"--"}},edit:function(e){var t,r=e.attributes,a=r.size,n=r.postId,o=e.setAttributes,l=e.isSelected,s=null,u=null;function b(){return React.createElement("form",null,React.createElement("select",{value:a,onChange:E},React.createElement("option",{value:"--"},d),React.createElement("option",{value:"small"},f),React.createElement("option",{value:"medium"},g),React.createElement("option",{value:"large"},h)))}function E(e){var t=e.target.querySelector("option:checked");o({size:t.value}),e.preventDefault()}function w(){return React.createElement("div",null,React.createElement("input",{type:"text",size:"4",onKeyPress:k}))}function k(e){if("Enter"===e.key){var t=e.target.value;!0!==/^\d+$/.test(t)&&""!==t||o({postId:t}),e.preventDefault()}}function _(e){return React.createElement(p,null,React.createElement(i,{title:"Settings"},React.createElement("h3",null,y),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,m),React.createElement("div",null,React.createElement(b,null))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(w,null),React.createElement("div",{className:"yasr-guten-block-explain"},v)),React.createElement("div",{className:"yasr-guten-block-panel"},R)))}return t=/^\d+$/.test(n),"--"!==a&&(s=' size="'+a+'"'),"--"!==n&&!0===t&&(u=' postid="'+n+'"'),React.createElement(c,null,React.createElement(_,null),React.createElement("div",{className:e.className},"[yasr_visitor_votes",s,u,"]",l&&React.createElement(b,null)))},save:function(e){var t=e.attributes,r=t.size,a=t.postId,n="",o=a;return r&&(n+='size="'+r+'"'),a&&("--"===a&&(o=wp.data.select("core/editor").getCurrentPostId()),n+=' postid="'+o+'"'),React.createElement("div",null,"[yasr_visitor_votes ",n,"]")}}),wp.data.dispatch("core/edit-post").hideBlockTypes("yet-another-stars-rating/yasr-overall-rating"),wp.data.dispatch("core/edit-post").hideBlockTypes("yet-another-stars-rating/yasr-visitor-votes")})(),(()=>{"use strict";var e=r(534);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=p(e);if(t){var n=p(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return c(this,r)}}function c(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=wp.i18n.__,m=wp.plugins.registerPlugin,d=wp.editPost,f=d.PluginSidebar,g=d.PluginSidebarMoreMenuItem,h=wp.components.PanelBody,v=wp.element.Fragment,b=function(){return React.createElement("div",null)},R=function(e){l(r,React.Component);var t=i(r);function r(e){var n;a(this,r),n=t.call(this,e);var o=!1;return"yes"===wp.data.select("core/editor").getCurrentPost().meta.yasr_auto_insert_disabled&&(o=!0),n.state={postExcluded:o},n.yasrUpdatePostMetaAutoInsert=n.yasrUpdatePostMetaAutoInsert.bind(u(n)),n}return o(r,[{key:"yasrUpdatePostMetaAutoInsert",value:function(e){var t=e.target,r="checkbox"===t.type?t.checked:t.value;this.setState({postExcluded:r}),!0===r?wp.data.dispatch("core/editor").editPost({meta:{yasr_auto_insert_disabled:"yes"}}):wp.data.dispatch("core/editor").editPost({meta:{yasr_auto_insert_disabled:"no"}})}},{key:"render",value:function(){return React.createElement("div",{className:"yasr-guten-block-panel-center"},React.createElement("hr",null),React.createElement("label",null,React.createElement("span",null,y("Disable auto insert for this post or page?","yet-another-stars-rating"))),React.createElement("div",{className:"yasr-onoffswitch-big yasr-onoffswitch-big-center",id:"yasr-switcher-disable-auto-insert"},React.createElement("input",{type:"checkbox",name:"yasr_auto_insert_disabled",className:"yasr-onoffswitch-checkbox",value:"yes",id:"yasr-auto-insert-disabled-switch",defaultChecked:this.state.postExcluded,onChange:this.yasrUpdatePostMetaAutoInsert}),React.createElement("label",{className:"yasr-onoffswitch-label",htmlFor:"yasr-auto-insert-disabled-switch"},React.createElement("span",{className:"yasr-onoffswitch-inner"}),React.createElement("span",{className:"yasr-onoffswitch-switch"}))))}}]),r}(),E=function(t){l(n,React.Component);var r=i(n);function n(e){var t;a(this,n),t=r.call(this,e);var o=!1;return"disabled"!==yasrConstantGutenberg.autoInsert&&(o=!0),t.state={yasrAutoInsertEnabled:o},t}return o(n,[{key:"render",value:function(){var t=[React.createElement(b,{key:0})];return wp.hooks.doAction("yasr_below_panel",t),React.createElement(v,null,React.createElement(g,{target:"yasr-guten-sidebar"},y("YASR post settings","yet-another-stars-rating")),React.createElement(f,{name:"yasr-guten-sidebar",title:"YASR Settings"},React.createElement(h,null,React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement(e.YasrDivRatingOverall,null),React.createElement("div",null,y('This is the same value that you find the "Yasr: Overall Rating" block.',"yet-another-stars-rating")),this.state.yasrAutoInsertEnabled&&React.createElement(R,null),t))))}}]),n}();m("yasr-sidebar",{icon:"star-half",title:y("Yasr: Settings","yet-another-stars-rating"),render:E})})()})();
1
+ (()=>{var e={434:(e,t,a)=>{"use strict";a.d(t,{Sg:()=>n});var r=wp.i18n.__,n=(r("All these settings are optional","yet-another-stars-rating"),r("Size","yet-another-stars-rating"),r("Stars size","yet-another-stars-rating"),r("Small","yet-another-stars-rating"),r("Medium","yet-another-stars-rating"),r("Large","yet-another-stars-rating"),r("Leave this blank if you don't know what you're doing.","yet-another-stars-rating"),r("Remember: only the post author can rate here.","yet-another-stars-rating"),r("This is the star set where your users will be able to vote","yet-another-stars-rating"),function(e){if(!0===JSON.parse(yasrConstantGutenberg.isFseElement))return React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement("div",null,r("This is a template file, you can't rate here. You need to insert the rating inside the single post or page","yet-another-stars-rating")),React.createElement("br",null));if(null===wp.data.select("core/editor"))return React.createElement(React.Fragment,null);var t=r("Rate this article / item","yet-another-stars-rating"),a=wp.data.select("core/editor").getCurrentPost().meta.yasr_overall_rating,n=function(e,t){e=e.toFixed(1),e=parseFloat(e),wp.data.dispatch("core/editor").editPost({meta:{yasr_overall_rating:e}}),this.setRating(e),t()};return React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},t,React.createElement("div",{id:"overall-rater",ref:function(){return yasrSetRaterValue(32,"overall-rater",!1,.1,!1,a,n)}}))})}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,a),l.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function r(t,a){if(a&&("object"===e(a)||"function"==typeof a))return a;if(void 0!==a)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}var l=wp.i18n.__,s=wp.blocks.registerBlockType,o=wp.components,i=o.PanelBody,c=(o.PanelRow,wp.element.Fragment),u=wp.editor,y=(u.BlockControls,u.InspectorControls),p=l("All these settings are optional","yet-another-stars-rating"),m=l("Choose Size","yet-another-stars-rating"),d=l("Choose stars size","yet-another-stars-rating"),g=l("Small","yet-another-stars-rating"),h=l("Medium","yet-another-stars-rating"),f=l("Large","yet-another-stars-rating"),v=l("Leave this blank if you don't know what you're doing.","yet-another-stars-rating"),R=l("Remember: only the post author can rate here.","yet-another-stars-rating"),b=l("This is the star set where your users will be able to vote","yet-another-stars-rating"),E=l('This block is now deprecated. It will still work, but I suggest to replace it with the new one by simply removing it and adding "Yasr Overall Rating" again.',"yet-another-stars-rating"),w=l('This block is now deprecated. It will still work, but I suggest to replace it with the new one by simply removing it and adding "Yasr Visitors Votes" again.',"yet-another-stars-rating");s("yet-another-stars-rating/yasr-overall-rating",{title:l("[DEPRECATED]Yasr: Overall Rating","yet-another-stars-rating"),description:E,icon:"star-half",keywords:[l("rating","yet-another-stars-rating"),l("author","yet-another-stars-rating"),l("overall","yet-another-stars-rating")],attributes:{overallRatingMeta:{type:"number",source:"meta",meta:"yasr_overall_rating"},size:{type:"string",default:"--"},postId:{type:"string",default:"--"}},edit:function(e){var s,o=e.attributes,u=o.overallRatingMeta,b=o.size,E=o.postId,w=e.setAttributes,k=e.isSelected,_=u,P=null,S=null;"--"!==b&&(P=' size="'+b+'"'),s=/^\d+$/.test(E),"--"!==E&&!0===s&&(S=' postid="'+E+'"');var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(y,React.Component);var s,o,i,c,u=(i=y,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=n(i);if(c){var a=n(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return r(this,e)});function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=u.call(this,e)).yasrOverallRateThis=l("Rate this article / item","yet-another-stars-rating"),t}return s=y,(o=[{key:"render",value:function(){return React.createElement("div",null,this.yasrOverallRateThis,React.createElement("div",null,React.createElement("div",{id:"overall-rater",ref:function(){return raterJs({starSize:32,step:.1,showToolTip:!1,rating:_,readOnly:!1,element:document.querySelector("#overall-rater"),rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),w({overallRatingMeta:e}),this.setRating(e),t()}})}})))}}])&&t(s.prototype,o),Object.defineProperty(s,"prototype",{writable:!1}),y}();function N(){return React.createElement("form",null,React.createElement("select",{value:b,onChange:z},React.createElement("option",{value:"--"},d),React.createElement("option",{value:"small"},g),React.createElement("option",{value:"medium"},h),React.createElement("option",{value:"large"},f)))}function z(e){var t=e.target.querySelector("option:checked");w({size:t.value}),e.preventDefault()}function C(){return React.createElement("div",null,React.createElement("input",{type:"text",size:"4",onKeyPress:I}))}function I(e){if("Enter"===e.key){var t=e.target.value;!0!==/^\d+$/.test(t)&&""!==t||w({postId:t}),e.preventDefault()}}function T(e){return React.createElement(y,null,React.createElement("div",{class:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement(O,null)),React.createElement(i,{title:"Settings"},React.createElement("h3",null,p),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,m),React.createElement("div",null,React.createElement(N,null))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(C,null),React.createElement("div",{className:"yasr-guten-block-explain"},v)),React.createElement("div",{className:"yasr-guten-block-panel"},R)))}return React.createElement(c,null,React.createElement(T,null),React.createElement("div",{className:e.className},"[yasr_overall_rating",P,S,"]",k&&React.createElement(N,null)))},save:function(e){var t=e.attributes,a=t.size,r=t.postId,n="",l=r;return a&&(n+='size="'+a+'"'),r&&("--"===r&&(l=wp.data.select("core/editor").getCurrentPostId()),n+=' postid="'+l+'"'),React.createElement("div",null,"[yasr_overall_rating ",n,"]")}}),s("yet-another-stars-rating/yasr-visitor-votes",{title:l("[DEPRECATED]Yasr: Visitor Votes","yet-another-stars-rating"),description:w,icon:"star-half",keywords:[l("rating","yet-another-stars-rating"),l("visitor","yet-another-stars-rating"),l("votes","yet-another-stars-rating")],attributes:{size:{type:"string",default:"--"},postId:{type:"string",default:"--"}},edit:function(e){var t,a=e.attributes,r=a.size,n=a.postId,l=e.setAttributes,s=e.isSelected,o=null,u=null;function R(){return React.createElement("form",null,React.createElement("select",{value:r,onChange:E},React.createElement("option",{value:"--"},d),React.createElement("option",{value:"small"},g),React.createElement("option",{value:"medium"},h),React.createElement("option",{value:"large"},f)))}function E(e){var t=e.target.querySelector("option:checked");l({size:t.value}),e.preventDefault()}function w(){return React.createElement("div",null,React.createElement("input",{type:"text",size:"4",onKeyPress:k}))}function k(e){if("Enter"===e.key){var t=e.target.value;!0!==/^\d+$/.test(t)&&""!==t||l({postId:t}),e.preventDefault()}}function _(e){return React.createElement(y,null,React.createElement(i,{title:"Settings"},React.createElement("h3",null,p),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,m),React.createElement("div",null,React.createElement(R,null))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(w,null),React.createElement("div",{className:"yasr-guten-block-explain"},v)),React.createElement("div",{className:"yasr-guten-block-panel"},b)))}return t=/^\d+$/.test(n),"--"!==r&&(o=' size="'+r+'"'),"--"!==n&&!0===t&&(u=' postid="'+n+'"'),React.createElement(c,null,React.createElement(_,null),React.createElement("div",{className:e.className},"[yasr_visitor_votes",o,u,"]",s&&React.createElement(R,null)))},save:function(e){var t=e.attributes,a=t.size,r=t.postId,n="",l=r;return a&&(n+='size="'+a+'"'),r&&("--"===r&&(l=wp.data.select("core/editor").getCurrentPostId()),n+=' postid="'+l+'"'),React.createElement("div",null,"[yasr_visitor_votes ",n,"]")}}),wp.data.dispatch("core/edit-post").hideBlockTypes("yet-another-stars-rating/yasr-overall-rating"),wp.data.dispatch("core/edit-post").hideBlockTypes("yet-another-stars-rating/yasr-visitor-votes")})(),(()=>{"use strict";var e=a(434),t=wp.i18n.__,r=wp.plugins.registerPlugin,n=wp.editPost,l=n.PluginSidebar,s=n.PluginSidebarMoreMenuItem,o=wp.components.PanelBody,i=wp.element.Fragment,c=function(){return React.createElement("div",null)},u=function(e){if("disabled"===yasrConstantGutenberg.autoInsert)return React.createElement(React.Fragment,null);var a=wp.data.select("core/editor").getCurrentPost().meta.yasr_auto_insert_disabled,r=!1;return"yes"===a&&(r=!0),React.createElement("div",{className:"yasr-guten-block-panel-center"},React.createElement("hr",null),React.createElement("label",null,React.createElement("span",null,t("Disable auto insert for this post or page?","yet-another-stars-rating"))),React.createElement("div",{className:"yasr-onoffswitch-big yasr-onoffswitch-big-center",id:"yasr-switcher-disable-auto-insert"},React.createElement("input",{type:"checkbox",name:"yasr_auto_insert_disabled",className:"yasr-onoffswitch-checkbox",value:"yes",id:"yasr-auto-insert-disabled-switch",defaultChecked:r,onChange:function(e){var t=e.target,a="yes";!0!==(r="checkbox"===t.type?t.checked:t.value)&&(a="no"),wp.data.dispatch("core/editor").editPost({meta:{yasr_auto_insert_disabled:a}})}}),React.createElement("label",{className:"yasr-onoffswitch-label",htmlFor:"yasr-auto-insert-disabled-switch"},React.createElement("span",{className:"yasr-onoffswitch-inner"}),React.createElement("span",{className:"yasr-onoffswitch-switch"}))))};r("yasr-sidebar",{icon:"star-half",title:t("Yasr: Settings","yet-another-stars-rating"),render:function(){var a=[React.createElement(c,{key:0})];return wp.hooks.doAction("yasr_below_panel",a),React.createElement(i,null,React.createElement(s,{target:"yasr-guten-sidebar"},t("YASR post settings","yet-another-stars-rating")),React.createElement(l,{name:"yasr-guten-sidebar",title:"YASR Settings"},React.createElement(o,null,React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement(e.Sg,null),React.createElement("div",null,t('This is the same value that you find the "Yasr: Overall Rating" block.',"yet-another-stars-rating")),React.createElement(u,null),a))))}})})()})();
admin/js/src/guten/blocks/noStarsRankings.js DELETED
@@ -1,120 +0,0 @@
1
- const {registerBlockType} = wp.blocks; // Import from wp.blocks
2
- const {PanelBody} = wp.components;
3
- const {Fragment} = wp.element;
4
- const {useBlockProps, InspectorControls} = wp.blockEditor;
5
-
6
- import {YasrNoSettingsPanel} from "./yasrGutenUtils";
7
-
8
- //Most active users
9
- registerBlockType(
10
- 'yet-another-stars-rating/most-active-users', {
11
- edit:
12
- function(props) {
13
- const blockProps = useBlockProps( {
14
- className: 'yasr-active-users-block'
15
- } );
16
-
17
- let YasrTopVisitorSettings = [<YasrNoSettingsPanel key={0}/>];
18
- {wp.hooks.doAction('yasr_top_visitor_setting', YasrTopVisitorSettings)}
19
-
20
- function YasrTopVisitorPanel (props) {
21
- return (
22
- <InspectorControls>
23
- <PanelBody title='Settings'>
24
- <div className="yasr-guten-block-panel">
25
- <div>
26
- {YasrTopVisitorSettings}
27
- </div>
28
- </div>
29
- </PanelBody>
30
- </InspectorControls>
31
- );
32
- }
33
-
34
- return (
35
- <Fragment>
36
- <YasrTopVisitorPanel />
37
- <div {...blockProps}>
38
- [yasr_most_active_users]
39
- </div>
40
- </Fragment>
41
- );
42
- },
43
-
44
- /**
45
- * The save function defines the way in which the different attributes should be combined
46
- * into the final markup, which is then serialized by Gutenberg into post_content.
47
- *
48
- * The "save" property must be specified and must be a valid function.
49
- *
50
- * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
51
- */
52
- save:
53
- function(props) {
54
- const blockProps = useBlockProps.save( {
55
- className: 'yasr-active-users-block'
56
- } );
57
- return (
58
- <div {...blockProps}>[yasr_most_active_users]</div>
59
- );
60
- },
61
-
62
- }
63
- );
64
-
65
- //Most Active reviewers
66
- registerBlockType(
67
- 'yet-another-stars-rating/most-active-reviewers', {
68
- edit:
69
- function(props) {
70
- const blockProps = useBlockProps( {
71
- className: 'yasr-reviewers-block',
72
- } );
73
-
74
- let YasrTopReviewersSettings = [<YasrNoSettingsPanel key={0}/>];
75
- {wp.hooks.doAction('yasr_top_reviewers_setting', YasrTopReviewersSettings)}
76
-
77
- function YasrTopReviewersPanel (props) {
78
- return (
79
- <InspectorControls>
80
- <PanelBody title='Settings'>
81
- <div className="yasr-guten-block-panel">
82
- <div>
83
- {YasrTopReviewersSettings}
84
- </div>
85
- </div>
86
- </PanelBody>
87
- </InspectorControls>
88
- );
89
- }
90
-
91
- return (
92
- <Fragment>
93
- <YasrTopReviewersPanel />
94
- <div {...blockProps}>
95
- [yasr_top_reviewers]
96
- </div>
97
- </Fragment>
98
- );
99
- },
100
-
101
- /**
102
- * The save function defines the way in which the different attributes should be combined
103
- * into the final markup, which is then serialized by Gutenberg into post_content.
104
- *
105
- * The "save" property must be specified and must be a valid function.
106
- *
107
- * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
108
- */
109
- save:
110
- function(props) {
111
- const blockProps = useBlockProps.save( {
112
- className: 'yasr-reviewers-block',
113
- } );
114
- return (
115
- <div {...blockProps}>[yasr_top_reviewers]</div>
116
- );
117
- },
118
-
119
- }
120
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/src/guten/blocks/overallRating.js DELETED
@@ -1,88 +0,0 @@
1
- const {registerBlockType} = wp.blocks; // Import from wp.blocks
2
- const {Fragment} = wp.element;
3
- const {useBlockProps} = wp.blockEditor;
4
-
5
- import {YasrPrintSelectSize, YasrBlocksPanel} from "./yasrGutenUtils";
6
-
7
- /**
8
- * Register: a Gutenberg Block.
9
- *
10
- * Registers a new block provided a unique name and an object defining its
11
- * behavior. Once registered, the block is made editor as an option to any
12
- * editor interface where blocks are implemented.
13
- *
14
- * @link https://wordpress.org/gutenberg/handbook/block-api/
15
- * @param {string} name Block name.
16
- * @param {Object} settings Block settings.
17
- * @return {?WPBlock} The block, if it has been successfully
18
- * registered; otherwise `undefined`.
19
- */
20
-
21
- registerBlockType(
22
- 'yet-another-stars-rating/overall-rating', {
23
- edit:
24
- function(props) {
25
- const blockProps = useBlockProps( {
26
- className: 'yasr-overall-block',
27
- } );
28
-
29
- const {attributes: {size, postId}, setAttributes, isSelected} = props;
30
-
31
- let sizeAttribute = null;
32
- let postIdAttribute = null;
33
- let isNum;
34
-
35
- if (size !== 'large') {
36
- sizeAttribute = ' size="' + size + '"';
37
- }
38
-
39
- isNum = /^\d+$/.test(postId);
40
-
41
- if (isNum === true) {
42
- postIdAttribute = ' postid="' +postId + '"';
43
- }
44
-
45
- return (
46
- <Fragment>
47
- {isSelected &&
48
- <YasrBlocksPanel block='overall' size={size} postId={postId} setAttributes={setAttributes}/> }
49
- <div { ...blockProps }>
50
- [yasr_overall_rating{sizeAttribute}{postIdAttribute}]
51
- {isSelected && <YasrPrintSelectSize size={size} setAttributes={setAttributes}/>}
52
- </div>
53
- </Fragment>
54
- );
55
- },
56
-
57
- /**
58
- * The save function defines the way in which the different attributes should be combined
59
- * into the final markup, which is then serialized by Gutenberg into post_content.
60
- *
61
- * The "save" property must be specified and must be a valid function.
62
- *
63
- * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
64
- */
65
- save:
66
- function(props) {
67
- const blockProps = useBlockProps.save( {
68
- className: 'yasr-overall-block',
69
- } );
70
-
71
- const {attributes: {size, postId}} = props;
72
-
73
- let yasrOverallAttributes = '';
74
- let post_id = postId;
75
-
76
- if (size) {
77
- yasrOverallAttributes += 'size="' +size+ '"';
78
- }
79
- if (postId) {
80
- yasrOverallAttributes += ' postid="'+post_id+'"';
81
- }
82
-
83
- return (
84
- <div {...blockProps}>[yasr_overall_rating {yasrOverallAttributes}]</div>
85
- );
86
- },
87
-
88
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/src/guten/blocks/rankings.js DELETED
@@ -1,118 +0,0 @@
1
- const {registerBlockType} = wp.blocks; // Import from wp.blocks
2
- const {PanelBody} = wp.components;
3
- const {Fragment} = wp.element;
4
- const {useBlockProps, InspectorControls} = wp.blockEditor;
5
-
6
- import {YasrNoSettingsPanel} from "./yasrGutenUtils";
7
-
8
- registerBlockType(
9
- 'yet-another-stars-rating/overall-rating-ranking', {
10
- edit:
11
- function(props) {
12
- const blockProps = useBlockProps( {
13
- className: 'yasr-ov-ranking-block',
14
- } );
15
-
16
- let YasrORRSettings = [<YasrNoSettingsPanel key={0}/>];
17
- {wp.hooks.doAction('yasr_overall_rating_rankings', YasrORRSettings)}
18
-
19
- function YasrORRPanel (props) {
20
- return (
21
- <InspectorControls>
22
- <PanelBody title='Settings'>
23
- <div className="yasr-guten-block-panel">
24
- <div>
25
- {YasrORRSettings}
26
- </div>
27
- </div>
28
-
29
- </PanelBody>
30
- </InspectorControls>
31
- );
32
- }
33
-
34
- return (
35
- <Fragment>
36
- <YasrORRPanel />
37
- <div {...blockProps}>
38
- [yasr_ov_ranking]
39
- </div>
40
- </Fragment>
41
- );
42
- },
43
-
44
-
45
- /**
46
- * The save function defines the way in which the different attributes should be combined
47
- * into the final markup, which is then serialized by Gutenberg into post_content.
48
- *
49
- * The "save" property must be specified and must be a valid function.
50
- *
51
- * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
52
- */
53
- save:
54
- function(props) {
55
- const blockProps = useBlockProps.save( {
56
- className: 'yasr-ov-ranking-block',
57
- } );
58
- return (
59
- <div {...blockProps}>[yasr_ov_ranking]</div>
60
- );
61
- },
62
-
63
- });
64
-
65
- registerBlockType(
66
- 'yet-another-stars-rating/visitor-votes-ranking', {
67
- edit:
68
- function(props) {
69
- const blockProps = useBlockProps( {
70
- className: 'yasr-vv-ranking-block',
71
- } );
72
- let YasrVVRSettings = [<YasrNoSettingsPanel key={0}/>];
73
- {wp.hooks.doAction('yasr_visitor_votes_rankings', YasrVVRSettings)}
74
-
75
- function YasrVVRPanel (props) {
76
- return (
77
- <InspectorControls>
78
- <PanelBody title='Settings'>
79
- <div className="yasr-guten-block-panel">
80
- <div>
81
- {YasrVVRSettings}
82
- </div>
83
- </div>
84
-
85
- </PanelBody>
86
- </InspectorControls>
87
- );
88
- }
89
-
90
- return (
91
- <Fragment>
92
- <YasrVVRPanel />
93
- <div {...blockProps}>
94
- [yasr_most_or_highest_rated_posts]
95
- </div>
96
- </Fragment>
97
- );
98
- },
99
-
100
- /**
101
- * The save function defines the way in which the different attributes should be combined
102
- * into the final markup, which is then serialized by Gutenberg into post_content.
103
- *
104
- * The "save" property must be specified and must be a valid function.
105
- *
106
- * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
107
- */
108
- save:
109
- function(props) {
110
- const blockProps = useBlockProps.save( {
111
- className: 'yasr-vv-ranking-block',
112
- } );
113
- return (
114
- <div {...blockProps}>[yasr_most_or_highest_rated_posts]</div>
115
- );
116
- },
117
-
118
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/src/guten/blocks/userRateHistory.js DELETED
@@ -1,62 +0,0 @@
1
- const {registerBlockType} = wp.blocks; // Import from wp.blocks
2
- const {PanelBody} = wp.components;
3
- const {Fragment} = wp.element;
4
- const {useBlockProps, InspectorControls} = wp.blockEditor;
5
-
6
- import {YasrNoSettingsPanel} from "yasrGutenUtils";
7
-
8
- //Most active users
9
- registerBlockType(
10
- 'yet-another-stars-rating/user-rate-history', {
11
- edit:
12
- function(props) {
13
- const blockProps = useBlockProps( {
14
- className: 'yasr-user-rate-history'
15
- } );
16
-
17
- let YasrUserRateHisotrySettings = [<YasrNoSettingsPanel key={0}/>];
18
- {wp.hooks.doAction('yasr_user_rate_history_settings', YasrUserRateHisotrySettings)}
19
-
20
- function YasrUserRateHistoryPanel (props) {
21
- return (
22
- <InspectorControls>
23
- <PanelBody title='Settings'>
24
- <div className="yasr-guten-block-panel">
25
- <div>
26
- {YasrUserRateHisotrySettings}
27
- </div>
28
- </div>
29
- </PanelBody>
30
- </InspectorControls>
31
- );
32
- }
33
-
34
- return (
35
- <Fragment>
36
- <div {...blockProps}>
37
- [yasr_user_rate_history]
38
- </div>
39
- </Fragment>
40
- );
41
- },
42
-
43
- /**
44
- * The save function defines the way in which the different attributes should be combined
45
- * into the final markup, which is then serialized by Gutenberg into post_content.
46
- *
47
- * The "save" property must be specified and must be a valid function.
48
- *
49
- * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
50
- */
51
- save:
52
- function(props) {
53
- const blockProps = useBlockProps.save( {
54
- className: 'yasr-user-rate-history'
55
- } );
56
- return (
57
- <div {...blockProps}>[yasr_user_rate_history]</div>
58
- );
59
- },
60
-
61
- }
62
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/src/guten/blocks/visitorVotes.js DELETED
@@ -1,70 +0,0 @@
1
- import {YasrBlocksPanel, YasrPrintSelectSize} from "./yasrGutenUtils";
2
-
3
- const {registerBlockType} = wp.blocks; // Import from wp.blocks
4
- const {Fragment} = wp.element;
5
- const {useBlockProps} = wp.blockEditor;
6
-
7
- registerBlockType(
8
- 'yet-another-stars-rating/visitor-votes', {
9
- edit:
10
- function( props ) {
11
- const blockProps = useBlockProps( {
12
- className: 'yasr-vv-block',
13
- } );
14
- const { attributes: { size, postId }, setAttributes, isSelected } = props;
15
-
16
- let sizeAttribute = null;
17
- let postIdAttribute = null;
18
-
19
- let isNum = /^\d+$/.test(postId);
20
-
21
- if (size !== 'large') {
22
- sizeAttribute = ' size="' + size + '"';
23
- }
24
-
25
- if (isNum === true) {
26
- postIdAttribute = ' postid="' +postId + '"';
27
- }
28
-
29
- return (
30
- <Fragment>
31
- <YasrBlocksPanel block='visitors' size={size} setAttributes={setAttributes} postId={postId}/>
32
- <div {...blockProps}>
33
- [yasr_visitor_votes{sizeAttribute}{postIdAttribute}]
34
- {isSelected && <YasrPrintSelectSize size={size} setAttributes={setAttributes}/>}
35
- </div>
36
- </Fragment>
37
- );
38
-
39
- },
40
-
41
- /**
42
- * The save function defines the way in which the different attributes should be combined
43
- * into the final markup, which is then serialized by Gutenberg into post_content.
44
- *
45
- * The "save" property must be specified and must be a valid function.
46
- *
47
- * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
48
- */
49
- save:
50
- function( props ) {
51
- const blockProps = useBlockProps.save( {
52
- className: 'yasr-vv-block',
53
- } );
54
- const { attributes: {size, postId} } = props;
55
-
56
- let yasrVVAttributes = '';
57
-
58
- if (size) {
59
- yasrVVAttributes += 'size="' +size+ '"';
60
- }
61
- if (postId) {
62
- yasrVVAttributes += ' postid="'+postId+'"';
63
- }
64
-
65
- return (
66
- <div {...blockProps}>[yasr_visitor_votes {yasrVVAttributes}]</div>
67
- );
68
- },
69
-
70
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/src/guten/blocks/yasrGutenUtils.js DELETED
@@ -1,194 +0,0 @@
1
- //setting costants
2
- const { __ } = wp.i18n; // Import __() from wp.i18n
3
- const {PanelBody} = wp.components;
4
- const {InspectorControls} = wp.blockEditor;
5
-
6
- export const yasrOptionalText = __('All these settings are optional', 'yet-another-stars-rating');
7
- export const yasrLabelSelectSize = __('Choose Size', 'yet-another-stars-rating');
8
-
9
- export const yasrSelectSizeChoose = __('Choose stars size', 'yet-another-stars-rating');
10
- export const yasrSelectSizeSmall = __('Small', 'yet-another-stars-rating');
11
- export const yasrSelectSizeMedium = __('Medium', 'yet-another-stars-rating');
12
- export const yasrSelectSizeLarge = __('Large', 'yet-another-stars-rating');
13
-
14
- export const yasrLeaveThisBlankText = __('Leave this blank if you don\'t know what you\'re doing.', 'yet-another-stars-rating');
15
-
16
- export const yasrOverallDescription = __('Remember: only the post author can rate here.', 'yet-another-stars-rating');
17
- export const yasrVisitorVotesDescription = __('This is the star set where your users will be able to vote', 'yet-another-stars-rating');
18
-
19
-
20
- export function YasrPrintSelectSize (props) {
21
- return (
22
- <form>
23
- <select value={props.size} onChange={(e) => yasrSetStarsSize(props.setAttributes, e)}>
24
- <option value="--">{yasrGutenUtils.yasrSelectSizeChoose}</option>
25
- <option value="small">{yasrGutenUtils.yasrSelectSizeSmall}</option>
26
- <option value="medium">{yasrGutenUtils.yasrSelectSizeMedium}</option>
27
- <option value="large">{yasrGutenUtils.yasrSelectSizeLarge}</option>
28
- </select>
29
- </form>
30
- );
31
- }
32
-
33
- function yasrSetStarsSize(setAttributes, event) {
34
- const selected = event.target.querySelector( 'option:checked' );
35
- setAttributes( { size: selected.value } );
36
- event.preventDefault();
37
- }
38
-
39
- export function YasrPrintInputId(props) {
40
- let postId;
41
- if(props.postId !== false) {
42
- postId = props.postId;
43
- }
44
- return (
45
- <div>
46
- <input
47
- type="text"
48
- size="4"
49
- defaultValue={postId}
50
- onKeyPress={(e) => yasrSetPostId(props.setAttributes, e)} />
51
- </div>
52
- );
53
- }
54
-
55
- function yasrSetPostId (setAttributes, event) {
56
- if (event.key === 'Enter') {
57
- const postIdValue = event.target.value;
58
-
59
- //postID is always a string, here I check if this string is made only by digits
60
- var isNum = /^\d+$/.test(postIdValue);
61
-
62
- if (isNum === true || postIdValue === '') {
63
- setAttributes({postId: postIdValue})
64
- }
65
- event.preventDefault();
66
- }
67
- }
68
-
69
- export function YasrProText () {
70
-
71
- const YasrProText1 = __('To be able to customize this ranking, you need', 'yet-another-stars-rating');
72
- const YasrProText2 = __('You can buy the plugin, including support, updates and upgrades, on',
73
- 'yet-another-stars-rating');
74
-
75
- return (
76
- <h3>
77
- {YasrProText1}
78
- &nbsp;
79
- <a href="https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings#yasr-pro">
80
- Yasr Pro.
81
- </a><br />
82
- {YasrProText2}
83
- &nbsp;
84
- <a href="https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings">
85
- yetanotherstarsrating.com
86
- </a>
87
- </h3>
88
- )
89
-
90
- }
91
-
92
- export function YasrNoSettingsPanel (props) {
93
- return (
94
- <div>
95
- <YasrProText/>
96
- </div>
97
- );
98
- }
99
-
100
- /**
101
- * This is the main panel that all YASR blocks uses
102
- *
103
- * @param props
104
- * @return {JSX.Element}
105
- * @constructor
106
- */
107
- export function YasrBlocksPanel (props) {
108
- let bottomDesc;
109
- if(props.block === 'visitors') {
110
- bottomDesc = yasrVisitorVotesDescription;
111
- }
112
- if(props.block === 'overall') {
113
- bottomDesc = yasrOverallDescription;
114
- }
115
-
116
- return (
117
- <InspectorControls>
118
- {props.block === 'overall' && <YasrDivRatingOverall />}
119
- <PanelBody title='Settings'>
120
- <h3>{yasrOptionalText}</h3>
121
-
122
- <div className="yasr-guten-block-panel">
123
- <label>{yasrLabelSelectSize}</label>
124
- <div>
125
- <YasrPrintSelectSize size={props.size} setAttributes={props.setAttributes}/>
126
- </div>
127
- </div>
128
-
129
- <div className="yasr-guten-block-panel">
130
- <label>Post ID</label>
131
- <YasrPrintInputId postId={props.postId} setAttributes={props.setAttributes}/>
132
- <div className="yasr-guten-block-explain">
133
- Use return (&#8629;) to save.
134
- </div>
135
- <p>
136
- {yasrLeaveThisBlankText}
137
- </p>
138
-
139
- </div>
140
-
141
- <div className="yasr-guten-block-panel">
142
- {bottomDesc}
143
- </div>
144
- </PanelBody>
145
- </InspectorControls>
146
- );
147
-
148
- }
149
-
150
- export function YasrDivRatingOverall (props) {
151
-
152
- if(JSON.parse(yasrConstantGutenberg.isFseElement) === true) {
153
- return (
154
- <div className="yasr-guten-block-panel yasr-guten-block-panel-center">
155
- <div>
156
- {__('This is a template file, you can\'t rate here. You need to insert the rating inside the single post or page',
157
- 'yet-another-stars-rating')}
158
- </div>
159
- <br />
160
- </div>
161
- );
162
- }
163
-
164
- const yasrOverallRateThis = __("Rate this article / item", 'yet-another-stars-rating');
165
- let overallRating = wp.data.select('core/editor').getCurrentPost().meta.yasr_overall_rating;
166
-
167
- const rateCallback = function (rating, done) {
168
- rating = rating.toFixed(1);
169
- rating = parseFloat(rating);
170
-
171
- wp.data.dispatch('core/editor').editPost(
172
- { meta: { yasr_overall_rating: rating } }
173
- );
174
-
175
- this.setRating(rating);
176
- done();
177
- };
178
- return (
179
- <div className="yasr-guten-block-panel yasr-guten-block-panel-center">
180
- {yasrOverallRateThis}
181
- <div id={'overall-rater'} ref={() =>
182
- yasrSetRaterValue (
183
- 32,
184
- 'overall-rater',
185
- false,
186
- 0.1,
187
- false,
188
- overallRating,
189
- rateCallback
190
- )
191
- } />
192
- </div>
193
- );
194
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/src/guten/registerBlockTypeEdit.js ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const {Fragment} = wp.element;
2
+ const {useBlockProps} = wp.blockEditor;
3
+
4
+ import {
5
+ YasrBlockPostidAttribute,
6
+ YasrBlockSizeAttribute,
7
+ YasrPrintSelectSize,
8
+ YasrSetBlockAttributes
9
+ } from "yasrGutenUtils";
10
+
11
+ import {YasrBlocksPanel} from "./yasrBlocksPanel";
12
+
13
+ /**
14
+ * Return the edit Function to be used in registerBlockType
15
+ *
16
+ * @param props
17
+ * @returns {JSX.Element}
18
+ */
19
+ const yasrEditFunction = (props) => {
20
+ const {attributes: {size, postId}, name, isSelected, setAttributes} = props;
21
+
22
+ const {className, shortCode, hookName, sizeAndId} = YasrSetBlockAttributes(name);
23
+
24
+ const panelAttributes = {
25
+ block: name,
26
+ size: size,
27
+ postId: postId,
28
+ setAttributes: setAttributes,
29
+ hookName: hookName,
30
+ sizeAndId: sizeAndId
31
+ }
32
+
33
+ const blockProps = useBlockProps( {
34
+ className: className,
35
+ name: name
36
+ } );
37
+
38
+ let sizeAttribute = YasrBlockSizeAttribute(size, 'edit');
39
+ let postIdAttribute = YasrBlockPostidAttribute(postId);
40
+
41
+ return (
42
+ <Fragment>
43
+ {isSelected && <YasrBlocksPanel {...panelAttributes} /> }
44
+ <div {...blockProps}>
45
+ [{shortCode}{sizeAttribute}{postIdAttribute}]
46
+ {isSelected && sizeAndId && <YasrPrintSelectSize size={size} setAttributes={setAttributes} />}
47
+ </div>
48
+ </Fragment>
49
+ );
50
+ };
51
+
52
+ export default yasrEditFunction;
admin/js/src/guten/registerBlockTypeSave.js ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import {YasrBlockPostidAttribute, YasrBlockSizeAttribute, YasrSetBlockAttributes} from "yasrGutenUtils";
2
+
3
+ const {useBlockProps} = wp.blockEditor;
4
+
5
+ /**
6
+ * The Save function to use into registerBlockTypeSave
7
+ *
8
+ * @param props
9
+ * @param metadata
10
+ * @returns {JSX.Element}
11
+ */
12
+ const yasrSaveFunction = (props, metadata) => {
13
+
14
+ //get attributes size and postId
15
+ const {attributes: {size, postId}} = props;
16
+
17
+ //get attributes name from metadata
18
+ const {name} = metadata;
19
+
20
+ //get className and shortcode name
21
+ const {className, shortCode} = YasrSetBlockAttributes(name);
22
+
23
+ const blockProps = useBlockProps.save( {
24
+ className: className,
25
+ } );
26
+
27
+ let sizeAttribute = YasrBlockSizeAttribute(size, 'save');
28
+ let postIdAttribute = YasrBlockPostidAttribute(postId);
29
+
30
+ return (
31
+ //must no use spaces within vars here
32
+ <div {...blockProps}>[{shortCode}{sizeAttribute}{postIdAttribute}]</div>
33
+ );
34
+
35
+ };
36
+
37
+ export default yasrSaveFunction;
admin/js/src/guten/yasr-guten-panel.js DELETED
@@ -1,122 +0,0 @@
1
- const {__} = wp.i18n; // Import __() from wp.i18n
2
- const {registerPlugin} = wp.plugins;
3
- const {PluginSidebar, PluginSidebarMoreMenuItem} = wp.editPost;
4
- const {PanelBody} = wp.components;
5
- const {Fragment} = wp.element;
6
-
7
- const ContentBelowSidebar = () => {
8
- return <div/>;
9
- };
10
-
11
- import {YasrDivRatingOverall} from 'yasrGutenUtils';
12
-
13
- /**
14
- * Show auto insert option
15
- */
16
- class YasrSideBarAutoInsert extends React.Component {
17
-
18
- constructor(props) {
19
- super(props);
20
-
21
- let isThisPostExluded = wp.data.select('core/editor').getCurrentPost().meta.yasr_auto_insert_disabled;
22
- let isThisPostExludedCheckbox = false;
23
-
24
- if (isThisPostExluded === 'yes') {
25
- isThisPostExludedCheckbox = true;
26
- }
27
-
28
- this.state = {postExcluded: isThisPostExludedCheckbox};
29
-
30
- this.yasrUpdatePostMetaAutoInsert = this.yasrUpdatePostMetaAutoInsert.bind(this);
31
- }
32
-
33
- yasrUpdatePostMetaAutoInsert(event) {
34
- const target = event.target;
35
- const postExcluded = target.type === 'checkbox' ? target.checked : target.value;
36
-
37
- this.setState({postExcluded: postExcluded});
38
-
39
- if (postExcluded === true) {
40
- wp.data.dispatch('core/editor').editPost(
41
- { meta: { yasr_auto_insert_disabled: 'yes' } }
42
- );
43
- } else {
44
- wp.data.dispatch('core/editor').editPost(
45
- { meta: { yasr_auto_insert_disabled: 'no' } }
46
- );
47
- }
48
- }
49
-
50
- render () {
51
- return (
52
- <div className="yasr-guten-block-panel-center">
53
- <hr />
54
- <label><span>{__('Disable auto insert for this post or page?', 'yet-another-stars-rating')}</span></label>
55
- <div className="yasr-onoffswitch-big yasr-onoffswitch-big-center" id="yasr-switcher-disable-auto-insert">
56
- <input type="checkbox"
57
- name="yasr_auto_insert_disabled"
58
- className="yasr-onoffswitch-checkbox"
59
- value="yes"
60
- id="yasr-auto-insert-disabled-switch"
61
- defaultChecked={this.state.postExcluded}
62
- onChange={this.yasrUpdatePostMetaAutoInsert}
63
- />
64
- <label className="yasr-onoffswitch-label" htmlFor="yasr-auto-insert-disabled-switch">
65
- <span className="yasr-onoffswitch-inner"/>
66
- <span className="yasr-onoffswitch-switch"/>
67
- </label>
68
- </div>
69
- </div>
70
- );
71
- }
72
-
73
- }
74
-
75
- class yasrSidebar extends React.Component {
76
-
77
- constructor(props) {
78
- super(props);
79
-
80
- let yasrAutoInsertEnabled = false;
81
-
82
- //this is not for the post, but from settings
83
- if (yasrConstantGutenberg.autoInsert !== 'disabled') {
84
- yasrAutoInsertEnabled = true;
85
- }
86
-
87
- this.state = {yasrAutoInsertEnabled: yasrAutoInsertEnabled};
88
-
89
- }
90
-
91
- render() {
92
- let YasrBelowSidebar = [<ContentBelowSidebar key={0}/>];
93
- {wp.hooks.doAction('yasr_below_panel', YasrBelowSidebar)}
94
- return (
95
- <Fragment>
96
- <PluginSidebarMoreMenuItem target="yasr-guten-sidebar" >
97
- { __( 'YASR post settings', 'yet-another-stars-rating' ) }
98
- </PluginSidebarMoreMenuItem>
99
- <PluginSidebar name="yasr-guten-sidebar" title="YASR Settings">
100
- <PanelBody>
101
- <div className="yasr-guten-block-panel yasr-guten-block-panel-center">
102
- <YasrDivRatingOverall />
103
- <div>
104
- {__('This is the same value that you find the "Yasr: Overall Rating" block.',
105
- 'yet-another-stars-rating')}
106
- </div>
107
- {this.state.yasrAutoInsertEnabled && <YasrSideBarAutoInsert />}
108
- {YasrBelowSidebar}
109
- </div>
110
- </PanelBody>
111
- </PluginSidebar>
112
- </Fragment>
113
- );
114
- }
115
- }
116
-
117
- //Custom sidebar
118
- registerPlugin( 'yasr-sidebar', {
119
- icon: 'star-half',
120
- title: __( 'Yasr: Settings', 'yet-another-stars-rating' ),
121
- render: yasrSidebar
122
- } );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/src/guten/yasrBlocksPanel.js ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * This is the panel that shows when a block is selected
3
+ */
4
+ const {PanelBody} = wp.components;
5
+ const {InspectorControls} = wp.blockEditor;
6
+
7
+ import {
8
+ yasrLabelSelectSize,
9
+ yasrLeaveThisBlankText,
10
+ yasrOptionalText,
11
+ YasrDivRatingOverall,
12
+ YasrPrintInputId,
13
+ YasrPrintSelectSize,
14
+ YasrNoSettingsPanel,
15
+ YasrSetBlockAttributes
16
+ } from "yasrGutenUtils";
17
+
18
+ /**
19
+ * This is the panel that for blocks that use size and postid attributes
20
+ *
21
+ * @param props
22
+ * @return {JSX.Element}
23
+ */
24
+ export const YasrBlocksPanel = (props) => {
25
+ const {block: name, hookName, sizeAndId} = props;
26
+
27
+ const {overallRating, panelSettings, bottomDesc} = YasrSetBlockAttributes(name);
28
+
29
+ //Create an empty element to hook into
30
+ let hookedDiv = <></>;
31
+
32
+ //if an hook name exists, wp.hooks.doAction
33
+ if(hookName !== false) {
34
+ hookedDiv = [<YasrNoSettingsPanel key={0}/>];
35
+ {wp.hooks.doAction(hookName, hookedDiv)}
36
+ }
37
+
38
+ //if there is no hook and settings are not true, return an empty element
39
+ if(panelSettings !== true && hookName === false) {
40
+ return <></>;
41
+ }
42
+
43
+ return (
44
+ <InspectorControls>
45
+ {
46
+ //If the block selected is overall rating, call YasrDivRatingOverall
47
+ overallRating && <YasrDivRatingOverall />
48
+ }
49
+ <PanelBody title='Settings'>
50
+ {hookedDiv}
51
+ {
52
+ //Return block settings if needed
53
+ panelSettings && sizeAndId && <YasrPanelSizeAndId {...props} />
54
+ }
55
+ <div className="yasr-guten-block-panel">
56
+ {bottomDesc}
57
+ </div>
58
+ </PanelBody>
59
+ </InspectorControls>
60
+ );
61
+ }
62
+
63
+ /**
64
+ * Return select size and input id
65
+ *
66
+ * @param props
67
+ * @returns {JSX.Element}
68
+ */
69
+ const YasrPanelSizeAndId = (props) => {
70
+ const {block: size, setAttributes, postId} = props;
71
+
72
+ const blockAttributes = {
73
+ size: size,
74
+ postId: postId,
75
+ setAttributes: setAttributes
76
+ }
77
+
78
+ return (
79
+ <>
80
+ <h3>{yasrOptionalText}</h3>
81
+ <YasrSelectSizeDiv {...blockAttributes} />
82
+ <YasrPrintInputIdDiv {...blockAttributes} />
83
+ </>
84
+ );
85
+ }
86
+
87
+ /**
88
+ * Return the div to select the size of the block
89
+ *
90
+ * @param props
91
+ * @returns {JSX.Element}
92
+ */
93
+ const YasrSelectSizeDiv = (props) => {
94
+ return (
95
+ <div className="yasr-guten-block-panel">
96
+ <label>{yasrLabelSelectSize}</label>
97
+ <div>
98
+ <YasrPrintSelectSize size={props.size} setAttributes={props.setAttributes} />
99
+ </div>
100
+ </div>
101
+ )
102
+ }
103
+
104
+ /**
105
+ *
106
+ * @param props
107
+ * @returns {JSX.Element}
108
+ */
109
+ const YasrPrintInputIdDiv = (props) => {
110
+ return (
111
+ <div className="yasr-guten-block-panel">
112
+ <label>Post ID</label>
113
+ <YasrPrintInputId postId={props.postId} setAttributes={props.setAttributes} />
114
+ <div className="yasr-guten-block-explain">
115
+ Use return (&#8629;) to save.
116
+ </div>
117
+ <p>
118
+ {yasrLeaveThisBlankText}
119
+ </p>
120
+ </div>
121
+ )
122
+ }
admin/js/src/guten/yasrGutenUtils.js ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //setting costants
2
+ const { __ } = wp.i18n; // Import __() from wp.i18n
3
+
4
+ export const yasrOptionalText = __('All these settings are optional', 'yet-another-stars-rating');
5
+ export const yasrLabelSelectSize = __('Size', 'yet-another-stars-rating');
6
+
7
+ export const yasrSelectSizeChoose = __('Stars size', 'yet-another-stars-rating');
8
+ export const yasrSelectSizeSmall = __('Small', 'yet-another-stars-rating');
9
+ export const yasrSelectSizeMedium = __('Medium', 'yet-another-stars-rating');
10
+ export const yasrSelectSizeLarge = __('Large', 'yet-another-stars-rating');
11
+
12
+ export const yasrLeaveThisBlankText = __('Leave this blank if you don\'t know what you\'re doing.', 'yet-another-stars-rating');
13
+
14
+ export const yasrOverallDescription = __('Remember: only the post author can rate here.', 'yet-another-stars-rating');
15
+ export const yasrVisitorVotesDescription = __('This is the star set where your users will be able to vote', 'yet-another-stars-rating');
16
+
17
+
18
+ /**
19
+ * Print the text field to insert the input id, and manage the event
20
+ *
21
+ * @param props
22
+ * @returns {JSX.Element}
23
+ */
24
+ export const YasrPrintInputId = (props) => {
25
+ let postId;
26
+ if(props.postId !== false) {
27
+ postId = props.postId;
28
+ }
29
+
30
+ const yasrSetPostId = (setAttributes, event) => {
31
+ if (event.key === 'Enter') {
32
+ const postIdValue = event.target.value;
33
+
34
+ //postID is always a string, here I check if this string is made only by digits
35
+ let isNum = /^\d+$/.test(postIdValue);
36
+
37
+ if (isNum === true || postIdValue === '') {
38
+ setAttributes({postId: postIdValue})
39
+ }
40
+ event.preventDefault();
41
+ }
42
+ }
43
+
44
+ return (
45
+ <div>
46
+ <input
47
+ type="text"
48
+ size="4"
49
+ defaultValue={postId}
50
+ onKeyPress={(e) => yasrSetPostId(props.setAttributes, e)} />
51
+ </div>
52
+ );
53
+ }
54
+
55
+ /**
56
+ * This is just the select, used both in blocks panel and block itself
57
+ *
58
+ * @param props
59
+ * @returns {JSX.Element}
60
+ */
61
+ export const YasrPrintSelectSize = (props) => {
62
+ const yasrSetStarsSize = (setAttributes, event) => {
63
+ const selected = event.target.querySelector( 'option:checked' );
64
+ setAttributes( { size: selected.value } );
65
+ event.preventDefault();
66
+ }
67
+
68
+ return (
69
+ <form>
70
+ <select value={props.size} onChange={(e) => yasrSetStarsSize(props.setAttributes, e)}>
71
+ <option value="--">{yasrSelectSizeChoose} </option>
72
+ <option value="small">{yasrSelectSizeSmall} </option>
73
+ <option value="medium">{yasrSelectSizeMedium}</option>
74
+ <option value="large">{yasrSelectSizeLarge} </option>
75
+ </select>
76
+ </form>
77
+ );
78
+ }
79
+
80
+ /**
81
+ * Return a div with the stars in order to vote for overall rating
82
+ *
83
+ * @param props
84
+ * @returns {JSX.Element}
85
+ */
86
+ export const YasrDivRatingOverall = (props) => {
87
+
88
+ if(JSON.parse(yasrConstantGutenberg.isFseElement) === true) {
89
+ return (
90
+ <div className="yasr-guten-block-panel yasr-guten-block-panel-center">
91
+ <div>
92
+ {__('This is a template file, you can\'t rate here. You need to insert the rating inside the single post or page',
93
+ 'yet-another-stars-rating')}
94
+ </div>
95
+ <br />
96
+ </div>
97
+ );
98
+ }
99
+
100
+ //Outside the editor page (e.g. widgets.php) wp.data.select('core/editor') is null
101
+ //So, in such cases, rating in overall widget must be disabled
102
+ if(wp.data.select('core/editor') === null) {
103
+ return (
104
+ <>
105
+ </>
106
+ )
107
+ }
108
+
109
+ const yasrOverallRateThis = __("Rate this article / item", 'yet-another-stars-rating');
110
+ let overallRating = wp.data.select('core/editor').getCurrentPost().meta.yasr_overall_rating;
111
+
112
+ const rateCallback = function (rating, done) {
113
+ rating = rating.toFixed(1);
114
+ rating = parseFloat(rating);
115
+
116
+ wp.data.dispatch('core/editor').editPost(
117
+ { meta: { yasr_overall_rating: rating } }
118
+ );
119
+
120
+ this.setRating(rating);
121
+ done();
122
+ };
123
+
124
+ return (
125
+ <div className="yasr-guten-block-panel yasr-guten-block-panel-center">
126
+ {yasrOverallRateThis}
127
+ <div id={'overall-rater'} ref={() =>
128
+ yasrSetRaterValue (
129
+ 32,
130
+ 'overall-rater',
131
+ false,
132
+ 0.1,
133
+ false,
134
+ overallRating,
135
+ rateCallback
136
+ )
137
+ } />
138
+ </div>
139
+ );
140
+ }
141
+
142
+ /**
143
+ * Return attribute sizeString
144
+ **
145
+ * @param size
146
+ * @param context
147
+ * @returns {(null | string)}
148
+ */
149
+ export const YasrBlockSizeAttribute = (size, context) => {
150
+ let sizeString = null;
151
+
152
+ //when is called from edit function, attribute sizeString must return only if size is small or medium
153
+ //large is the default attribute, no need to show it
154
+ if(context === 'edit') {
155
+ if (size === 'small' || size === 'medium') {
156
+ sizeString = ` size="${size}"`
157
+ }
158
+ return sizeString;
159
+ }
160
+
161
+ //when this is called from save function, if size is small medium or large, attribute sizeString must return
162
+ //large is the default, but must be keep for compatibility with old versions
163
+ if (size === 'small' || size === 'medium' || size === 'large') {
164
+ sizeString = ` size="${size}"`
165
+ }
166
+
167
+ return (sizeString);
168
+ };
169
+
170
+ /**
171
+ * Returns a string with postId attribute
172
+ *
173
+ * @param postId
174
+ * @returns {(null | string)}
175
+ */
176
+ export const YasrBlockPostidAttribute = (postId) => {
177
+ let isNum;
178
+ let postIdAttribute = null;
179
+
180
+ isNum = /^\d+$/.test(postId);
181
+
182
+ if (isNum === true) {
183
+ postIdAttribute = ` postid="${postId}"`;
184
+ }
185
+
186
+ return postIdAttribute;
187
+ };
188
+
189
+ /**
190
+ * Return an object with block attributes
191
+ *
192
+ * @param blockName
193
+ * @returns {object}
194
+ */
195
+ export const YasrSetBlockAttributes = (blockName) => {
196
+ let blockAttributes = {
197
+ className: null, //class name for the main div
198
+ shortCode: null, //shortcode
199
+ overallRating: false, //if the overall Rating div must be displayed or not
200
+ hookName: false,
201
+ panelSettings: true, //by default, the block <PanelBody title='Settings'> is shown
202
+ sizeAndId: false //by default, the block <PanelBody title='Settings'> is shown
203
+ }
204
+
205
+ if(blockName === 'yet-another-stars-rating/overall-rating') {
206
+ blockAttributes.overallRating = true;
207
+ blockAttributes.className = 'yasr-overall-block';
208
+ blockAttributes.shortCode = 'yasr_overall_rating';
209
+ blockAttributes.bottomDesc = yasrOverallDescription;
210
+ blockAttributes.sizeAndId = true;
211
+ }
212
+
213
+ if(blockName === 'yet-another-stars-rating/visitor-votes') {
214
+ blockAttributes.className = 'yasr-vv-block';
215
+ blockAttributes.shortCode = 'yasr_visitor_votes';
216
+ blockAttributes.bottomDesc = yasrVisitorVotesDescription;
217
+ blockAttributes.sizeAndId = true;
218
+ }
219
+
220
+ if(blockName === 'yet-another-stars-rating/overall-rating-ranking') {
221
+ blockAttributes.className = 'yasr-ov-ranking-block';
222
+ blockAttributes.shortCode = 'yasr_ov_ranking';
223
+ blockAttributes.hookName = 'yasr_overall_rating_rankings';
224
+ }
225
+
226
+ if(blockName === 'yet-another-stars-rating/visitor-votes-ranking') {
227
+ blockAttributes.className = 'yasr-vv-ranking-block';
228
+ blockAttributes.shortCode = 'yasr_most_or_highest_rated_posts';
229
+ blockAttributes.hookName = 'yasr_visitor_votes_rankings';
230
+ }
231
+
232
+ if(blockName === 'yet-another-stars-rating/most-active-users') {
233
+ blockAttributes.className = 'yasr-active-users-block';
234
+ blockAttributes.shortCode = 'yasr_most_active_users';
235
+ blockAttributes.hookName = 'yasr_top_visitor_setting';
236
+ }
237
+
238
+ if(blockName === 'yet-another-stars-rating/most-active-reviewers') {
239
+ blockAttributes.className = 'yasr-reviewers-block';
240
+ blockAttributes.shortCode = 'yasr_top_reviewers';
241
+ blockAttributes.hookName = 'yasr_top_reviewers_setting';
242
+ }
243
+
244
+ if(blockName === 'yet-another-stars-rating/user-rate-history') {
245
+ blockAttributes.className = 'yasr-user-rate-history';
246
+ blockAttributes.shortCode = 'yasr_user_rate_history';
247
+ blockAttributes.panelSettings = false;
248
+ }
249
+
250
+ return blockAttributes;
251
+ }
252
+
253
+ /**
254
+ * Return an h3 with YASR Pro texts
255
+ *
256
+ * @returns {JSX.Element}
257
+ */
258
+ export const YasrProText = () => {
259
+
260
+ const YasrProText1 = __('To be able to customize this ranking, you need', 'yet-another-stars-rating');
261
+ const YasrProText2 = __('You can buy the plugin, including support, updates and upgrades, on',
262
+ 'yet-another-stars-rating');
263
+
264
+ return (
265
+ <h3>
266
+ {YasrProText1}
267
+ &nbsp;
268
+ <a href="admin/js/src/guten/yasrGutenUtils?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings#yasr-pro">
269
+ Yasr Pro.
270
+ </a><br />
271
+ {YasrProText2}
272
+ &nbsp;
273
+ <a href="admin/js/src/guten/yasrGutenUtils?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings">
274
+ yetanotherstarsrating.com
275
+ </a>
276
+ </h3>
277
+ )
278
+
279
+ }
280
+
281
+ /**
282
+ * Return a Div with YasrProText
283
+ *
284
+ * @returns {JSX.Element}
285
+ * @constructor
286
+ */
287
+ export const YasrNoSettingsPanel = () => {
288
+ return (
289
+ <div>
290
+ <YasrProText/>
291
+ </div>
292
+ );
293
+ }
admin/js/src/guten/yasrRegisterBlockType.js ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const {registerBlockType} = wp.blocks; // Import from wp.blocks
2
+
3
+ import metadataOverall from '../../../../includes/blocks/overall-rating/block.json';
4
+ import metadataVV from '../../../../includes/blocks/visitor-votes/block.json';
5
+ import metadataUsers from '../../../../includes/blocks/ranking-users/block.json';
6
+ import metadataReviewers from '../../../../includes/blocks/ranking-reviewers/block.json';
7
+ import metadataRateHistory from '../../../../includes/blocks/user-rate-history/block.json';
8
+ import metadataRankingOv from '../../../../includes/blocks/ranking-overall-rating/block.json';
9
+ import metadataRankingVV from '../../../../includes/blocks/ranking-visitor-votes/block.json';
10
+
11
+
12
+ import edit from './registerBlockTypeEdit';
13
+ import saveBlock from './registerBlockTypeSave';
14
+
15
+
16
+ const allShortcodesMetadata = {
17
+ overallRating: metadataOverall,
18
+ visitorVotes: metadataVV,
19
+ mostActiveUsers: metadataUsers,
20
+ topReviewers: metadataReviewers,
21
+ userRateHistory: metadataRateHistory,
22
+ ovRanking: metadataRankingOv,
23
+ vvRanking: metadataRankingVV
24
+ }
25
+
26
+ /**
27
+ * Register: a Gutenberg Block.
28
+ *
29
+ * Registers a new block provided a unique name and an object defining its
30
+ * behavior. Once registered, the block is made editor as an option to any
31
+ * editor interface where blocks are implemented.
32
+ *
33
+ * @link https://wordpress.org/gutenberg/handbook/block-api/
34
+ * @param {string} name Block name.
35
+ * @param {Object} settings Block settings.
36
+ * @return {?WPBlock} The block, if it has been successfully
37
+ * registered; otherwise `undefined`.
38
+ */
39
+
40
+ for (const key of Object.keys(allShortcodesMetadata)) {
41
+ registerBlockType (
42
+ allShortcodesMetadata[key], {
43
+ edit: edit,
44
+ save: (props) => {
45
+ return saveBlock(props, allShortcodesMetadata[key]);
46
+ }
47
+ }
48
+ );
49
+ }
admin/js/src/guten/yasrSidebar.js ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * This is the YASR Sidebar, when an user click on the star on top right
3
+ */
4
+
5
+ const {__} = wp.i18n; // Import __() from wp.i18n
6
+ const {registerPlugin} = wp.plugins;
7
+ const {PluginSidebar, PluginSidebarMoreMenuItem} = wp.editPost;
8
+ const {PanelBody} = wp.components;
9
+ const {Fragment} = wp.element;
10
+
11
+ const ContentBelowSidebar = () => {
12
+ return <div/>;
13
+ };
14
+
15
+ import {YasrDivRatingOverall} from 'yasrGutenUtils';
16
+
17
+ /**
18
+ * Auto insert block, will show only if auto insert in setting is enabled
19
+ *
20
+ * @param props
21
+ */
22
+ const YasrAutoInsert = (props) => {
23
+ //if auto insert is disabled in settings, just return
24
+ if (yasrConstantGutenberg.autoInsert === 'disabled') {
25
+ return (<></>);
26
+ }
27
+
28
+ let autoInsertMeta = wp.data.select('core/editor').getCurrentPost().meta.yasr_auto_insert_disabled;
29
+ let autoInsertCheckboxValue = false;
30
+
31
+ if (autoInsertMeta === 'yes') {
32
+ autoInsertCheckboxValue = true;
33
+ }
34
+
35
+ /**
36
+ * Save post meta yasr_auto_insert_disabled with switcher value
37
+ *
38
+ * @param event
39
+ */
40
+ const savePostMetaAutoInsert = (event) => {
41
+ const target = event.target;
42
+ autoInsertCheckboxValue = target.type === 'checkbox' ? target.checked : target.value;
43
+
44
+ let metaValue = 'yes';
45
+
46
+ if (autoInsertCheckboxValue !== true) {
47
+ metaValue = 'no';
48
+ }
49
+
50
+ wp.data.dispatch('core/editor').editPost(
51
+ { meta: { yasr_auto_insert_disabled: metaValue } }
52
+ );
53
+ }
54
+
55
+ return (
56
+ <div className="yasr-guten-block-panel-center">
57
+ <hr />
58
+ <label><span>{__('Disable auto insert for this post or page?', 'yet-another-stars-rating')}</span></label>
59
+ <div className="yasr-onoffswitch-big yasr-onoffswitch-big-center" id="yasr-switcher-disable-auto-insert">
60
+ <input type="checkbox"
61
+ name="yasr_auto_insert_disabled"
62
+ className="yasr-onoffswitch-checkbox"
63
+ value="yes"
64
+ id="yasr-auto-insert-disabled-switch"
65
+ defaultChecked={autoInsertCheckboxValue}
66
+ onChange={savePostMetaAutoInsert}
67
+ />
68
+ <label className="yasr-onoffswitch-label" htmlFor="yasr-auto-insert-disabled-switch">
69
+ <span className="yasr-onoffswitch-inner"/>
70
+ <span className="yasr-onoffswitch-switch"/>
71
+ </label>
72
+ </div>
73
+ </div>
74
+ );
75
+ }
76
+
77
+
78
+ /**
79
+ * YASR sidebar
80
+ *
81
+ * @returns {JSX.Element}
82
+ */
83
+ const yasrSidebar = () => {
84
+ let YasrBelowSidebar = [<ContentBelowSidebar key={0}/>];
85
+ {wp.hooks.doAction('yasr_below_panel', YasrBelowSidebar)}
86
+
87
+ return (
88
+ <Fragment>
89
+ <PluginSidebarMoreMenuItem target="yasr-guten-sidebar" >
90
+ { __( 'YASR post settings', 'yet-another-stars-rating' ) }
91
+ </PluginSidebarMoreMenuItem>
92
+ <PluginSidebar name="yasr-guten-sidebar" title="YASR Settings">
93
+ <PanelBody>
94
+ <div className="yasr-guten-block-panel yasr-guten-block-panel-center">
95
+ <YasrDivRatingOverall />
96
+ <div>
97
+ {__('This is the same value that you find the "Yasr: Overall Rating" block.',
98
+ 'yet-another-stars-rating')}
99
+ </div>
100
+ {<YasrAutoInsert />}
101
+ {YasrBelowSidebar}
102
+ </div>
103
+ </PanelBody>
104
+ </PluginSidebar>
105
+ </Fragment>
106
+ );
107
+ }
108
+
109
+ //Custom sidebar
110
+ registerPlugin( 'yasr-sidebar', {
111
+ icon: 'star-half',
112
+ title: __( 'Yasr: Settings', 'yet-another-stars-rating' ),
113
+ render: yasrSidebar
114
+ } );
admin/yasr-admin-functions.php CHANGED
@@ -77,6 +77,8 @@ function yasr_add_admin_scripts($hook) {
77
  || $hook === 'post-new.php'
78
  || $hook === 'edit-comments.php'
79
  || $hook === 'term.php'
 
 
80
  || $hook === 'appearance_page_gutenberg-edit-site'
81
  || $hook === $yasr_settings_page
82
  || $hook === 'yet-another-stars-rating_page_yasr_stats_page'
77
  || $hook === 'post-new.php'
78
  || $hook === 'edit-comments.php'
79
  || $hook === 'term.php'
80
+ || $hook === 'widgets.php'
81
+ || $hook === 'site-editor.php'
82
  || $hook === 'appearance_page_gutenberg-edit-site'
83
  || $hook === $yasr_settings_page
84
  || $hook === 'yet-another-stars-rating_page_yasr_stats_page'
changelog.txt CHANGED
@@ -1,3 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  = 2.9.8 =
2
  * TWEAKED: updated rest api
3
  * FIX: softwareApplication itemType didn't get saved
@@ -269,7 +290,6 @@ be used to customize the shortcodes.
269
  = 2.4.8 =
270
  * Removed YasrSettings file from svn repo
271
 
272
-
273
  = 2.4.7 =
274
  * NEW FEATURE: Added new fields for these itemTypes:
275
  #### Book
1
+ = 3.0.3 =
2
+ * FIX: if parameter 'show_average' is enabled on a multi set, a duplicate query was run.
3
+ * TWEAKED: loader image has height and width attributes set.
4
+ * TWEAKED: minor changes
5
+ [//]: # fs_premium_only_begin
6
+ PREMIUM ONLY:
7
+ * NEW FEATURE: new shortcode available: yasr_pro_average_comments_multiset: this print a multi set with the average ratings from reviews.
8
+ [//]: # fs_premium_only_end
9
+
10
+ = 3.0.2 =
11
+ * Updated Freemius SDK
12
+
13
+ = 3.0.1 =
14
+ * Minor changes and new pricing page.
15
+
16
+ = 3.0.0 =
17
+ * Fix for an authenticated XSS vulnerability if 'Load results with AJAX?' is enabled
18
+
19
+ = 2.9.9 =
20
+ * TWEAKED: removed "Pro only features" box in the editor screen
21
+
22
  = 2.9.8 =
23
  * TWEAKED: updated rest api
24
  * FIX: softwareApplication itemType didn't get saved
290
  = 2.4.8 =
291
  * Removed YasrSettings file from svn repo
292
 
 
293
  = 2.4.7 =
294
  * NEW FEATURE: Added new fields for these itemTypes:
295
  #### Book
includes/blocks/overall-rating/block.json CHANGED
@@ -6,6 +6,7 @@
6
  "description": "Insert the author rating.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
 
9
  "keywords": [
10
  "rating",
11
  "author",
6
  "description": "Insert the author rating.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
9
+ "example": {},
10
  "keywords": [
11
  "rating",
12
  "author",
includes/blocks/ranking-overall-rating/block.json CHANGED
@@ -6,6 +6,7 @@
6
  "description": "This ranking shows the highest rated posts rated through the overall_rating shortcode.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
 
9
  "keywords": [
10
  "ranking",
11
  "highest",
6
  "description": "This ranking shows the highest rated posts rated through the overall_rating shortcode.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
9
+ "example": {},
10
  "keywords": [
11
  "ranking",
12
  "highest",
includes/blocks/ranking-reviewers/block.json CHANGED
@@ -6,6 +6,7 @@
6
  "description": "This ranking shows the most active reviewers on your site.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
 
9
  "keywords": [
10
  "ranking",
11
  "highest",
6
  "description": "This ranking shows the most active reviewers on your site.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
9
+ "example": {},
10
  "keywords": [
11
  "ranking",
12
  "highest",
includes/blocks/ranking-users/block.json CHANGED
@@ -6,6 +6,7 @@
6
  "description": "This ranking shows the most active users, displaying the login name if logged in or \"Anonymous\" if not",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
 
9
  "keywords": [
10
  "ranking",
11
  "highest",
6
  "description": "This ranking shows the most active users, displaying the login name if logged in or \"Anonymous\" if not",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
9
+ "example": {},
10
  "keywords": [
11
  "ranking",
12
  "highest",
includes/blocks/ranking-visitor-votes/block.json CHANGED
@@ -6,6 +6,7 @@
6
  "description": "This ranking shows both the highest and most rated posts rated through the yasr_visitor_votes shortcode. For an item to appear in this chart, it has to be rated at least twice.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
 
9
  "keywords": [
10
  "ranking",
11
  "highest",
6
  "description": "This ranking shows both the highest and most rated posts rated through the yasr_visitor_votes shortcode. For an item to appear in this chart, it has to be rated at least twice.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
9
+ "example": {},
10
  "keywords": [
11
  "ranking",
12
  "highest",
includes/blocks/user-rate-history/block.json CHANGED
@@ -6,6 +6,7 @@
6
  "description": "If user is logged in, this shortcode shows a list of all the ratings provided by the user on [yasr_visitor_votes] shortcode",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
 
9
  "keywords": [
10
  "ratings",
11
  "list",
6
  "description": "If user is logged in, this shortcode shows a list of all the ratings provided by the user on [yasr_visitor_votes] shortcode",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
9
+ "example": {},
10
  "keywords": [
11
  "ratings",
12
  "list",
includes/blocks/visitor-votes/block.json CHANGED
@@ -6,6 +6,7 @@
6
  "description": "Insert the ability for your visitors to vote.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
 
9
  "keywords": [
10
  "rating",
11
  "visitor",
6
  "description": "Insert the ability for your visitors to vote.",
7
  "icon": "star-half",
8
  "category": "yet-another-stars-rating",
9
+ "example": {},
10
  "keywords": [
11
  "rating",
12
  "visitor",
includes/classes/YasrScriptsLoader.php CHANGED
@@ -501,8 +501,15 @@ class YasrScriptsLoader {
501
  * @param $hook
502
  */
503
  public function addJsConstantInGutenberg($hook) {
504
- if (($hook === 'post.php' || $hook === 'post-new.php' || $hook === 'appearance_page_gutenberg-edit-site')
505
- && yasr_is_gutenberg_page() ) {
 
 
 
 
 
 
 
506
 
507
  //create an empty array
508
  //do not add elements here, use yasrGutenbergConstants method instead
@@ -570,7 +577,8 @@ class YasrScriptsLoader {
570
  }
571
 
572
  if (property_exists($current_screen, 'base')
573
- && $current_screen->base === 'appearance_page_gutenberg-edit-site'
 
574
  ) {
575
  return true;
576
  }
501
  * @param $hook
502
  */
503
  public function addJsConstantInGutenberg($hook) {
504
+ if (
505
+ ($hook === 'post.php'
506
+ || $hook === 'post-new.php'
507
+ || $hook === 'widgets.php'
508
+ || $hook === 'site-editor.php'
509
+ || $hook === 'appearance_page_gutenberg-edit-site'
510
+ )
511
+ && yasr_is_gutenberg_page()
512
+ ) {
513
 
514
  //create an empty array
515
  //do not add elements here, use yasrGutenbergConstants method instead
577
  }
578
 
579
  if (property_exists($current_screen, 'base')
580
+ && ($current_screen->base === 'appearance_page_gutenberg-edit-site'
581
+ || $current_screen->base === 'site-editor' )
582
  ) {
583
  return true;
584
  }
includes/css/yasr.css CHANGED
@@ -149,7 +149,6 @@ yasr_pro_comment_reviews_stats shortcode too***/
149
  }
150
 
151
  .yasr-progress-bar-name {
152
- flex-grow: 1;
153
  min-width: 72px;
154
  font-size: 14px !important;
155
  }
149
  }
150
 
151
  .yasr-progress-bar-name {
 
152
  min-width: 72px;
153
  font-size: 14px !important;
154
  }
languages/yet-another-stars-rating.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: YASR lenguages\n"
5
- "POT-Creation-Date: 2022-03-24 14:02+0100\n"
6
  "PO-Revision-Date: 2016-07-04 10:26+0100\n"
7
  "Last-Translator: Dario <thedudoworld@gmail.com>\n"
8
  "Language-Team: \n"
@@ -20,306 +20,319 @@ msgstr ""
20
  "X-Poedit-SearchPathExcluded-2: admin/class-wp-list-table.php\n"
21
  "X-Poedit-SearchPathExcluded-3: node_modules\n"
22
 
23
- #: admin/classes/YasrEditCategory.php:40
24
  msgid "Select default itemType"
25
  msgstr ""
26
 
27
- #: admin/classes/YasrEditCategory.php:45
28
- #, php-format
29
- msgid "Upgrade to %s to unlock this feature"
30
  msgstr ""
31
 
32
- #: admin/classes/YasrEditCategory.php:62
33
- msgid "Check to update YASR itemType"
 
 
34
  msgstr ""
35
 
36
- #: admin/classes/YasrOnInstall.php:25 admin/editor/YasrEditorHooks.php:756
37
  #: admin/settings/migrations/yasr-settings-migration-functions.php:40
38
  #: admin/settings/migrations/yasr-settings-migration-functions.php:113
39
  #: admin/settings/migrations/yasr-settings-migration-functions.php:176
40
  #: admin/settings/migrations/yasr-settings-migration-functions.php:231
41
- #: admin/settings/yasr-settings-page.php:26
42
- #: admin/settings/yasr-stats-page.php:26 admin/yasr-admin-functions.php:200
43
- #: admin/yasr-admin-functions.php:209 admin/yasr-admin-functions.php:217
44
  msgid "You do not have sufficient permissions to access this page."
45
  msgstr ""
46
 
47
- #: admin/classes/YasrOnInstall.php:152
48
- #: admin/settings/classes/YasrSettings.php:80
49
- msgid "Our Score"
50
- msgstr ""
51
-
52
- #: admin/classes/YasrOnInstall.php:153
53
- #: admin/settings/classes/YasrSettings.php:83
54
- msgid "Click to rate this post!"
55
- msgstr ""
56
-
57
- #: admin/classes/YasrOnInstall.php:155
58
- #: admin/settings/classes/YasrSettings.php:88
59
- #, php-format
60
- msgid "[Total: %s Average: %s]"
61
- msgstr ""
62
-
63
- #: admin/classes/YasrOnInstall.php:158
64
- #: admin/settings/classes/YasrSettings.php:95
65
- msgid "You have already voted for this article with rating "
66
- msgstr ""
67
-
68
- #: admin/classes/YasrOnInstall.php:160
69
- #: admin/settings/classes/YasrSettings.php:99
70
- #: includes/shortcodes/classes/YasrVisitorMultiSet.php:164
71
- #: includes/shortcodes/classes/YasrVisitorVotes.php:282
72
- msgid "You must sign in to vote"
73
- msgstr ""
74
-
75
- #: admin/classes/Yasr_WP_List_Table.php:160
76
  msgid "List View"
77
  msgstr ""
78
 
79
- #: admin/classes/Yasr_WP_List_Table.php:161
80
  msgid "Excerpt View"
81
  msgstr ""
82
 
83
- #: admin/classes/Yasr_WP_List_Table.php:325
84
- msgid "No items found."
85
  msgstr ""
86
 
87
- #: admin/classes/Yasr_WP_List_Table.php:454
88
  msgid "Select bulk action"
89
  msgstr ""
90
 
91
- #: admin/classes/Yasr_WP_List_Table.php:456
92
  msgid "Bulk Actions"
93
  msgstr ""
94
 
95
- #: admin/classes/Yasr_WP_List_Table.php:466
96
  msgid "Apply"
97
  msgstr ""
98
 
99
- #: admin/classes/Yasr_WP_List_Table.php:518
100
- #: admin/classes/Yasr_WP_List_Table.php:1337
101
  msgid "Show more details"
102
  msgstr ""
103
 
104
- #: admin/classes/Yasr_WP_List_Table.php:585
105
  msgid "Filter by date"
106
  msgstr ""
107
 
108
- #: admin/classes/Yasr_WP_List_Table.php:587
109
  msgid "All dates"
110
  msgstr ""
111
 
112
- #: admin/classes/Yasr_WP_List_Table.php:602
113
  #, php-format
114
  msgid "%1$s %2$d"
115
  msgstr ""
116
 
117
- #: admin/classes/Yasr_WP_List_Table.php:661
118
- #: admin/classes/Yasr_WP_List_Table.php:682
119
- #: admin/classes/Yasr_WP_List_Table.php:704
120
  msgid "No comments"
121
  msgstr ""
122
 
123
- #: admin/classes/Yasr_WP_List_Table.php:682
124
  msgid "No approved comments"
125
  msgstr ""
126
 
127
- #: admin/classes/Yasr_WP_List_Table.php:704
128
  msgid "No pending comments"
129
  msgstr ""
130
 
131
- #: admin/classes/Yasr_WP_List_Table.php:817
132
  msgid "First page"
133
  msgstr ""
134
 
135
- #: admin/classes/Yasr_WP_List_Table.php:828
136
  msgid "Previous page"
137
  msgstr ""
138
 
139
- #: admin/classes/Yasr_WP_List_Table.php:835
140
- #: admin/classes/Yasr_WP_List_Table.php:839
141
  msgid "Current Page"
142
  msgstr ""
143
 
144
- #: admin/classes/Yasr_WP_List_Table.php:853
145
  msgid "Next page"
146
  msgstr ""
147
 
148
- #: admin/classes/Yasr_WP_List_Table.php:864
149
  msgid "Last page"
150
  msgstr ""
151
 
152
- #: admin/classes/Yasr_WP_List_Table.php:1086
153
  msgid "Select All"
154
  msgstr ""
155
 
156
- #: admin/editor/YasrEditorHooks.php:121
157
- msgid "Yasr: Overall Rating"
158
- msgstr ""
159
-
160
- #: admin/editor/YasrEditorHooks.php:122 admin/editor/YasrEditorHooks.php:501
161
- msgid "Insert the author rating"
162
- msgstr ""
163
-
164
- #: admin/editor/YasrEditorHooks.php:166
165
- msgid "Yasr: Visitor Votes"
166
- msgstr ""
167
-
168
- #: admin/editor/YasrEditorHooks.php:167 admin/editor/YasrEditorHooks.php:528
169
- msgid "Insert the ability for your visitors to vote"
170
- msgstr ""
171
-
172
- #: admin/editor/YasrEditorHooks.php:210
173
- msgid "Yasr: Ranking by overall rating"
174
- msgstr ""
175
-
176
- #: admin/editor/YasrEditorHooks.php:211
177
- msgid ""
178
- "This ranking shows the highest rated posts rated through the overall_rating "
179
- "shortcode."
180
- msgstr ""
181
-
182
- #: admin/editor/YasrEditorHooks.php:227
183
- msgid "Yasr: Ranking by visitors votes"
184
- msgstr ""
185
-
186
- #: admin/editor/YasrEditorHooks.php:228
187
- msgid ""
188
- "This ranking shows both the highest and most rated posts rated through the \n"
189
- " yasr_visitor_votes shortcode. For an item to appear in "
190
- "this chart, it has to be rated at least twice. "
191
- msgstr ""
192
-
193
- #: admin/editor/YasrEditorHooks.php:264
194
- msgid "Yasr: Most Active Visitors"
195
- msgstr ""
196
-
197
- #: admin/editor/YasrEditorHooks.php:265 admin/editor/YasrEditorHooks.php:682
198
- msgid ""
199
- "This ranking shows the most active users, displaying the login name if "
200
- "logged in or “Anonymous” if not."
201
- msgstr ""
202
-
203
- #: admin/editor/YasrEditorHooks.php:281
204
- msgid "Yasr: Most Active Authors"
205
- msgstr ""
206
-
207
- #: admin/editor/YasrEditorHooks.php:282 admin/editor/YasrEditorHooks.php:662
208
- msgid "This ranking shows the most active reviewers on your site."
209
- msgstr ""
210
-
211
- #: admin/editor/YasrEditorHooks.php:399 admin/yasr-admin-functions.php:156
212
  msgid "Yet Another Stars Rating"
213
  msgstr ""
214
 
215
- #: admin/editor/YasrEditorHooks.php:418
216
  msgid "You don't have enought privileges to insert Overall Rating"
217
  msgstr ""
218
 
219
- #: admin/editor/YasrEditorHooks.php:431
220
  msgid "You don't have enough privileges to insert a Multi Set"
221
  msgstr ""
222
 
223
- #: admin/editor/YasrEditorHooks.php:470
224
- msgid "Main"
225
  msgstr ""
226
 
227
- #: admin/editor/YasrEditorHooks.php:472
228
- #: admin/settings/yasr-settings-functions-misc.php:48
229
- msgid "Rankings"
230
  msgstr ""
231
 
232
- #: admin/editor/YasrEditorHooks.php:478
233
- msgid "Read the doc"
 
234
  msgstr ""
235
 
236
- #: admin/editor/YasrEditorHooks.php:488
237
- #: admin/settings/classes/YasrSettings.php:235
238
- #: admin/settings/yasr-stats-page.php:60
239
  msgid "Overall Rating"
240
  msgstr ""
241
 
242
- #: admin/editor/YasrEditorHooks.php:497
243
  msgid "Insert Overall Rating"
244
  msgstr ""
245
 
246
- #: admin/editor/YasrEditorHooks.php:506 admin/editor/YasrEditorHooks.php:533
 
 
 
 
247
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:11
248
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:9
249
  msgid "Choose Size"
250
  msgstr ""
251
 
252
- #: admin/editor/YasrEditorHooks.php:521
253
- #: admin/settings/classes/YasrSettings.php:234
254
- #: admin/settings/classes/YasrSettings.php:360
255
- #: admin/settings/yasr-stats-page.php:48
256
  msgid "Visitor Votes"
257
  msgstr ""
258
 
259
- #: admin/editor/YasrEditorHooks.php:526
260
  msgid "Insert Visitor Votes"
261
  msgstr ""
262
 
263
- #: admin/editor/YasrEditorHooks.php:547
 
 
 
 
264
  msgid "Insert Multiset:"
265
  msgstr ""
266
 
267
- #: admin/editor/YasrEditorHooks.php:559
268
  msgid "Choose wich set you want to insert."
269
  msgstr ""
270
 
271
- #: admin/editor/YasrEditorHooks.php:565
272
  msgid "Readonly?"
273
  msgstr ""
274
 
275
- #: admin/editor/YasrEditorHooks.php:571
276
  msgid ""
277
  "If Readonly is checked, only you can insert the votes (in the box above the "
278
  "editor)"
279
  msgstr ""
280
 
281
- #: admin/editor/YasrEditorHooks.php:578
282
  msgid "Hide Average?"
283
  msgstr ""
284
 
285
- #: admin/editor/YasrEditorHooks.php:587
286
  msgid "Insert Multi Set"
287
  msgstr ""
288
 
289
- #: admin/editor/YasrEditorHooks.php:607
 
 
 
 
 
 
 
 
 
 
 
290
  msgid "Ranking by overall rating"
291
  msgstr ""
292
 
293
- #: admin/editor/YasrEditorHooks.php:618
294
  msgid ""
295
  "This ranking shows the highest rated posts rated through the \n"
296
  " yasr_overall_rating shortcode"
297
  msgstr ""
298
 
299
- #: admin/editor/YasrEditorHooks.php:628
300
  msgid "Ranking by visitors votes"
301
  msgstr ""
302
 
303
- #: admin/editor/YasrEditorHooks.php:640
304
  msgid ""
305
  "This ranking shows both the highest and most rated posts rated through the \n"
306
  " yasr_visitor_votes shortcode. For an "
307
  "item to appear in this chart, it has to be rated at least twice. "
308
  msgstr ""
309
 
310
- #: admin/editor/YasrEditorHooks.php:650
311
  msgid "Most Active Authors"
312
  msgstr ""
313
 
314
- #: admin/editor/YasrEditorHooks.php:671
 
 
 
 
315
  msgid "Most Active Users"
316
  msgstr ""
317
 
318
- #: admin/editor/YasrEditorHooks.php:693
 
 
 
 
 
 
319
  #, php-format
320
  msgid "%s Click here %s to customize the ranking and see a live preview"
321
  msgstr ""
322
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
  #: admin/editor/YasrMetaboxSchemaFields.php:53
324
  msgid "The brand of the product."
325
  msgstr ""
@@ -407,7 +420,7 @@ msgid "Type of software application, e.g. 'Game, Multimedia'. "
407
  msgstr ""
408
 
409
  #: admin/editor/YasrMetaboxSchemaFields.php:229
410
- msgid "Operating systems supported e.g. (Windows 7, OSX 10.6, Android 1.6)"
411
  msgstr ""
412
 
413
  #: admin/editor/YasrMetaboxSchemaFields.php:260
@@ -456,50 +469,6 @@ msgstr ""
456
  msgid "More info %s here %s"
457
  msgstr ""
458
 
459
- #: admin/editor/yasr-metabox-below-editor.php:32
460
- msgid "Structured Data"
461
- msgstr ""
462
-
463
- #: admin/editor/yasr-metabox-below-editor.php:36
464
- #: admin/settings/yasr-settings-functions-misc.php:39
465
- msgid "Multi Sets"
466
- msgstr ""
467
-
468
- #: admin/editor/yasr-metabox-multiple-rating.php:42
469
- msgid "Choose which set you want to use"
470
- msgstr ""
471
-
472
- #: admin/editor/yasr-metabox-multiple-rating.php:54
473
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:172
474
- msgid "Select"
475
- msgstr ""
476
-
477
- #: admin/editor/yasr-metabox-multiple-rating.php:74
478
- msgid "Choose a vote for each element"
479
- msgstr ""
480
-
481
- #: admin/editor/yasr-metabox-multiple-rating.php:85
482
- msgid "If you want to insert this multiset, paste this shortcode"
483
- msgstr ""
484
-
485
- #: admin/editor/yasr-metabox-multiple-rating.php:88
486
- msgid ""
487
- "If, instead, you want allow your visitor to vote on this multiset, use this "
488
- "shortcode"
489
- msgstr ""
490
-
491
- #: admin/editor/yasr-metabox-multiple-rating.php:90
492
- msgid "In this case, you don't need to vote here"
493
- msgstr ""
494
-
495
- #: admin/editor/yasr-metabox-multiple-rating.php:97
496
- #, php-format
497
- msgid ""
498
- "With %sYasr Pro%s you can use %s yasr_pro_average_multiset %s and \n"
499
- " %s yasr_pro_average_visitor_multiset %s to print a "
500
- "separate average of the Multi Set."
501
- msgstr ""
502
-
503
  #: admin/editor/yasr-metabox-schema.php:66
504
  msgid "Rich snippet options"
505
  msgstr ""
@@ -520,63 +489,63 @@ msgstr ""
520
  msgid "Select ItemType"
521
  msgstr ""
522
 
523
- #: admin/editor/yasr-metabox-top-right.php:45
524
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:111
525
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:149
526
  msgid "Rate this article / item"
527
  msgstr ""
528
 
529
- #: admin/editor/yasr-metabox-top-right.php:64
 
530
  msgid ""
531
- "Remember to insert this shortcode <strong>[yasr_overall_rating]</strong> \n"
532
- " where you want to display this rating"
533
  msgstr ""
534
 
535
- #: admin/editor/yasr-metabox-top-right.php:80
536
- #: admin/js/src/guten/yasr-guten-panel.js:54
537
  msgid "Disable auto insert for this post or page?"
538
  msgstr ""
539
 
540
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:9
541
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:8
542
  msgid "All these settings are optional"
543
  msgstr ""
544
 
545
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:13
546
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:11
547
  msgid "Choose stars size"
548
  msgstr ""
549
 
550
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:14
551
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:12 includes/yasr-widgets.php:121
552
- #: includes/yasr-widgets.php:300
553
  msgid "Small"
554
  msgstr ""
555
 
556
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:15
557
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:13 includes/yasr-widgets.php:129
558
- #: includes/yasr-widgets.php:307
559
  msgid "Medium"
560
  msgstr ""
561
 
562
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:16
563
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:14 includes/yasr-widgets.php:136
564
- #: includes/yasr-widgets.php:314
565
  msgid "Large"
566
  msgstr ""
567
 
568
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:18
569
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:16
570
  msgid "Leave this blank if you don't know what you're doing."
571
  msgstr ""
572
 
573
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:20
574
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:18
575
  msgid "Remember: only the post author can rate here."
576
  msgstr ""
577
 
578
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:21
579
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:19
580
  msgid "This is the star set where your users will be able to vote"
581
  msgstr ""
582
 
@@ -595,12 +564,12 @@ msgid ""
595
  msgstr ""
596
 
597
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:30
598
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:73
599
  msgid "To be able to customize this ranking, you need"
600
  msgstr ""
601
 
602
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:31
603
- #: admin/js/src/guten/blocks/yasrGutenUtils.js:74
604
  msgid "You can buy the plugin, including support, updates and upgrades, on"
605
  msgstr ""
606
 
@@ -633,17 +602,23 @@ msgstr ""
633
  msgid "votes"
634
  msgstr ""
635
 
636
- #: admin/js/src/guten/yasr-guten-panel.js:97
 
 
 
 
 
 
637
  msgid "YASR post settings"
638
  msgstr ""
639
 
640
- #: admin/js/src/guten/yasr-guten-panel.js:104
641
  msgid ""
642
  "This is the same value that you find the \"Yasr: Overall Rating\" block."
643
  msgstr ""
644
 
645
- #: admin/js/src/guten/yasr-guten-panel.js:120
646
- msgid "Yasr: Page Settings"
647
  msgstr ""
648
 
649
  #: admin/js/src/yasr-settings-rankings.js:206
@@ -667,286 +642,294 @@ msgstr ""
667
  msgid "Save Settings"
668
  msgstr ""
669
 
670
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:50
671
  msgid "Style Options"
672
  msgstr ""
673
 
674
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:59
675
  msgid "Which color scheme do you want to use?"
676
  msgstr ""
677
 
678
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:68
679
  msgid "Custom CSS Styles"
680
  msgstr ""
681
 
682
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:88
683
  msgid "Light"
684
  msgstr ""
685
 
686
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:89
687
  msgid "Dark"
688
  msgstr ""
689
 
690
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:102
691
  msgid "Preview"
692
  msgstr ""
693
 
694
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:107
695
  msgid "Light theme"
696
  msgstr ""
697
 
698
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:112
699
  msgid "Dark theme"
700
  msgstr ""
701
 
702
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:123
703
  msgid ""
704
  "Please use text area below to write your own CSS styles to override the "
705
  "default ones."
706
  msgstr ""
707
 
708
- #: admin/settings/aspect_style/yasr-settings-style-functions.php:126
709
  msgid "Leave it blank if you don't know what you're doing."
710
  msgstr ""
711
 
712
- #: admin/settings/classes/YasrSettings.php:121
713
  msgid "General settings"
714
  msgstr ""
715
 
716
- #: admin/settings/classes/YasrSettings.php:192
717
  msgid "Advanced Settings"
718
  msgstr ""
719
 
720
- #: admin/settings/classes/YasrSettings.php:216
721
  msgid "Use Auto Insert?"
722
  msgstr ""
723
 
724
- #: admin/settings/classes/YasrSettings.php:232
725
- #: admin/settings/classes/YasrSettings.php:358
726
  msgid "What?"
727
  msgstr ""
728
 
729
- #: admin/settings/classes/YasrSettings.php:236
730
- #: admin/settings/classes/YasrSettings.php:390
 
731
  msgid "Both"
732
  msgstr ""
733
 
734
- #: admin/settings/classes/YasrSettings.php:247
735
  msgid "Where?"
736
  msgstr ""
737
 
738
- #: admin/settings/classes/YasrSettings.php:249
739
  msgid "Before the content"
740
  msgstr ""
741
 
742
- #: admin/settings/classes/YasrSettings.php:250
743
  msgid "After the content"
744
  msgstr ""
745
 
746
- #: admin/settings/classes/YasrSettings.php:261
747
  msgid "Align"
748
  msgstr ""
749
 
750
- #: admin/settings/classes/YasrSettings.php:263
751
  msgid "Left"
752
  msgstr ""
753
 
754
- #: admin/settings/classes/YasrSettings.php:264
755
  msgid "Center"
756
  msgstr ""
757
 
758
- #: admin/settings/classes/YasrSettings.php:265
759
  msgid "Right"
760
  msgstr ""
761
 
762
- #: admin/settings/classes/YasrSettings.php:276
763
- #: admin/settings/classes/YasrSettingsRankings.php:117
764
  msgid "Size"
765
  msgstr ""
766
 
767
- #: admin/settings/classes/YasrSettings.php:288
768
- #: admin/settings/classes/YasrSettings.php:372
769
  msgid "Exclude Pages?"
770
  msgstr ""
771
 
772
- #: admin/settings/classes/YasrSettings.php:290
773
- #: admin/settings/classes/YasrSettings.php:306
774
- #: admin/settings/classes/YasrSettings.php:374
775
- #: admin/settings/classes/YasrSettingsRankings.php:294
776
- #: admin/settings/classes/YasrSettingsRankings.php:360
777
  msgid "Yes"
778
  msgstr ""
779
 
780
- #: admin/settings/classes/YasrSettings.php:291
781
- #: admin/settings/classes/YasrSettings.php:307
782
- #: admin/settings/classes/YasrSettings.php:375
783
- #: admin/settings/classes/YasrSettingsRankings.php:217
784
- #: admin/settings/classes/YasrSettingsRankings.php:293
785
- #: admin/settings/classes/YasrSettingsRankings.php:359
786
  msgid "No"
787
  msgstr ""
788
 
789
- #: admin/settings/classes/YasrSettings.php:304
790
  msgid "Use only in custom post types?"
791
  msgstr ""
792
 
793
- #: admin/settings/classes/YasrSettings.php:317
794
  msgid "Select yes if you want to use auto insert only in custom post types"
795
  msgstr ""
796
 
797
- #: admin/settings/classes/YasrSettings.php:361
798
  msgid "Overall Rating / Author Rating"
799
  msgstr ""
800
 
801
- #: admin/settings/classes/YasrSettings.php:386
802
  msgid "Where do you want show ratings?"
803
  msgstr ""
804
 
805
- #: admin/settings/classes/YasrSettings.php:388
806
  msgid "Only on archive pages (categories, tags, etc.)"
807
  msgstr ""
808
 
809
- #: admin/settings/classes/YasrSettings.php:389
810
  msgid "Only on single posts or pages"
811
  msgstr ""
812
 
813
- #: admin/settings/classes/YasrSettings.php:414
814
  msgid "Show \"Overall Rating\" in Archive Pages?"
815
  msgstr ""
816
 
817
- #: admin/settings/classes/YasrSettings.php:427
818
  msgid "Enable to show \"Overall Rating\" in archive pages."
819
  msgstr ""
820
 
821
- #: admin/settings/classes/YasrSettings.php:432
822
  msgid "Show \"Visitor Votes\" in Archive Page?"
823
  msgstr ""
824
 
825
- #: admin/settings/classes/YasrSettings.php:445
826
  msgid "Enable to show \"Visitor Votes\" in archive pages"
827
  msgstr ""
828
 
829
- #: admin/settings/classes/YasrSettings.php:471
830
  msgid "Select \"Yes\" to enable."
831
  msgstr ""
832
 
833
- #: admin/settings/classes/YasrSettings.php:478
834
  msgid "Example"
835
  msgstr ""
836
 
837
- #: admin/settings/classes/YasrSettings.php:497
838
  msgid "Allow only logged-in users"
839
  msgstr ""
840
 
841
- #: admin/settings/classes/YasrSettings.php:498
842
  msgid "Allow everybody (logged in and anonymous)"
843
  msgstr ""
844
 
845
- #: admin/settings/classes/YasrSettings.php:509
846
  msgid "Select who can rate your posts."
847
  msgstr ""
848
 
849
- #: admin/settings/classes/YasrSettings.php:526
850
- msgid "Custom text to display before Overall Rating"
851
- msgstr ""
852
-
853
- #: admin/settings/classes/YasrSettings.php:532
854
- msgid "Custom text to display BEFORE Visitor Rating"
855
  msgstr ""
856
 
857
- #: admin/settings/classes/YasrSettings.php:538
858
- msgid "Custom text to display AFTER Visitor Rating"
859
  msgstr ""
860
 
861
- #: admin/settings/classes/YasrSettings.php:544
862
- msgid "Custom text to display when login is required to vote"
863
  msgstr ""
864
 
865
- #: admin/settings/classes/YasrSettings.php:550
866
- msgid "Custom text to display when an user has already rated"
867
  msgstr ""
868
 
869
- #: admin/settings/classes/YasrSettings.php:564
870
- msgid "Restore defaults"
871
  msgstr ""
872
 
873
- #: admin/settings/classes/YasrSettings.php:571
874
  #, php-format
875
  msgid ""
876
- "In the first and last fields you can use %s pattern to show the rating (as "
877
- "text)."
 
 
878
  msgstr ""
879
 
880
- #: admin/settings/classes/YasrSettings.php:574
881
  #, php-format
882
- msgid ""
883
- "In the second and third fields you can use %s pattern to show the \n"
884
- " total count, and %s pattern to show the average."
885
  msgstr ""
886
 
887
- #: admin/settings/classes/YasrSettings.php:578
888
- msgid "Leave a field empty to disable it."
889
  msgstr ""
890
 
891
- #: admin/settings/classes/YasrSettings.php:585
892
- msgid "You can use these html tags:"
893
  msgstr ""
894
 
895
- #: admin/settings/classes/YasrSettings.php:607
896
- msgid "Select default itemType for all post or pages"
 
 
 
 
897
  msgstr ""
898
 
899
  #: admin/settings/classes/YasrSettings.php:640
900
- msgid "You can always change itemType in the single post or page."
901
  msgstr ""
902
 
903
  #: admin/settings/classes/YasrSettings.php:646
904
- msgid "Choose whether the site represents an organization or a person."
 
905
  msgstr ""
906
 
907
- #: admin/settings/classes/YasrSettings.php:664
908
- msgid "Publisher name (e.g. Google)"
909
  msgstr ""
910
 
911
- #: admin/settings/classes/YasrSettings.php:675
912
- msgid "Image Url (if empty siteicon will be used instead)"
 
913
  msgstr ""
914
 
915
- #: admin/settings/classes/YasrSettings.php:685
916
  #, php-format
917
  msgid ""
918
- "Please keep in mind that since September, 16, 2019 blogPosting itemType "
919
- "will \n"
920
- " no show stars in SERP anymore. %sHere"
921
- "%s the announcement by Google."
922
  msgstr ""
923
 
924
- #: admin/settings/classes/YasrSettings.php:693
925
- #, php-format
926
- msgid "Also, %sread Google guidelines%s"
 
 
 
 
 
 
 
927
  msgstr ""
928
 
929
- #: admin/settings/classes/YasrSettings.php:716
930
  msgid "Load results with AJAX?"
931
  msgstr ""
932
 
933
- #: admin/settings/classes/YasrSettings.php:731
934
  msgid ""
935
  "This should be enabled if you're using caching plugins. \n"
936
  " Not required for yasr_overall_rating and "
937
  "yasr_multiset."
938
  msgstr ""
939
 
940
- #: admin/settings/classes/YasrSettings.php:740
941
  #, php-format
942
  msgid "Since you're using the caching plugin %s you should enable this."
943
  msgstr ""
944
 
945
- #: admin/settings/classes/YasrSettings.php:750
946
  msgid "Do you want to save ip address?"
947
  msgstr ""
948
 
949
- #: admin/settings/classes/YasrSettings.php:765
950
  #, php-format
951
  msgid ""
952
  "Please note that to comply with the %s EU law, you %s MUST %s warn your "
@@ -958,103 +941,100 @@ msgstr ""
958
  msgid "Select Ranking"
959
  msgstr ""
960
 
961
- #: admin/settings/classes/YasrSettingsRankings.php:86
962
  msgid "How many rows?"
963
  msgstr ""
964
 
965
- #: admin/settings/classes/YasrSettingsRankings.php:137
966
  msgid "Default View"
967
  msgstr ""
968
 
969
- #: admin/settings/classes/YasrSettingsRankings.php:139
970
- #: includes/js/src/shortcodes/ranking.js:400
971
- #: includes/js/src/shortcodes/ranking.js:413
972
  msgid "Most Rated"
973
  msgstr ""
974
 
975
- #: admin/settings/classes/YasrSettingsRankings.php:140
976
- #: includes/js/src/shortcodes/ranking.js:403
977
- #: includes/js/src/shortcodes/ranking.js:410
978
  msgid "Highest Rated"
979
  msgstr ""
980
 
981
- #: admin/settings/classes/YasrSettingsRankings.php:159
982
  msgid "At least..."
983
  msgstr ""
984
 
985
- #: admin/settings/classes/YasrSettingsRankings.php:182
986
  msgid "votes required for most rated"
987
  msgstr ""
988
 
989
- #: admin/settings/classes/YasrSettingsRankings.php:203
990
  msgid "votes required for highest rated"
991
  msgstr ""
992
 
993
- #: admin/settings/classes/YasrSettingsRankings.php:214
994
  msgid "Show text before or after the stars?"
995
  msgstr ""
996
 
997
- #: admin/settings/classes/YasrSettingsRankings.php:218
998
  msgid "Yes, before the stars"
999
  msgstr ""
1000
 
1001
- #: admin/settings/classes/YasrSettingsRankings.php:219
1002
  msgid "Yes, after the stars"
1003
  msgstr ""
1004
 
1005
- #: admin/settings/classes/YasrSettingsRankings.php:230
1006
  msgid "Text to show"
1007
  msgstr ""
1008
 
1009
- #: admin/settings/classes/YasrSettingsRankings.php:235
1010
- #: includes/js/src/shortcodes/ranking.js:93
1011
  msgid "Rating:"
1012
  msgstr ""
1013
 
1014
- #: admin/settings/classes/YasrSettingsRankings.php:244
1015
  #, php-format
1016
  msgid "Use return %s to insert the text."
1017
  msgstr ""
1018
 
1019
- #: admin/settings/classes/YasrSettingsRankings.php:259
1020
  msgid "Start Date"
1021
  msgstr ""
1022
 
1023
- #: admin/settings/classes/YasrSettingsRankings.php:268
1024
  msgid "End Date"
1025
  msgstr ""
1026
 
1027
- #: admin/settings/classes/YasrSettingsRankings.php:291
1028
  msgid "Do you want to specify a category?"
1029
  msgstr ""
1030
 
1031
- #: admin/settings/classes/YasrSettingsRankings.php:308
1032
  msgid "Search Categories:"
1033
  msgstr ""
1034
 
1035
- #: admin/settings/classes/YasrSettingsRankings.php:357
1036
  msgid "Do you want to specify a custom post type?"
1037
  msgstr ""
1038
 
1039
- #: admin/settings/classes/YasrSettingsRankings.php:395
1040
  msgid "Do you want to use Username or Display Name?"
1041
  msgstr ""
1042
 
1043
- #: admin/settings/classes/YasrSettingsRankings.php:397
1044
  msgid "Username"
1045
  msgstr ""
1046
 
1047
- #: admin/settings/classes/YasrSettingsRankings.php:398
1048
  msgid "User display name"
1049
  msgstr ""
1050
 
1051
- #: admin/settings/classes/YasrSettingsRankings.php:418
1052
  msgid "Choose Multi Set"
1053
  msgstr ""
1054
 
1055
  #: admin/settings/classes/YasrStats.php:175
1056
- #: includes/classes/YasrLogDashboardWidget.php:204
1057
- #: includes/yasr-widgets.php:427
1058
  msgid "anonymous"
1059
  msgstr ""
1060
 
@@ -1104,7 +1084,7 @@ msgid ""
1104
  msgstr ""
1105
 
1106
  #: admin/settings/migrations/yasr-settings-migration-page.php:29
1107
- #: admin/settings/yasr-settings-functions-misc.php:70
1108
  msgid "Migration Tools"
1109
  msgstr ""
1110
 
@@ -1134,28 +1114,29 @@ msgid ""
1134
  "rating for all votes. %s\n"
1135
  " E.g. A post has 130 votes with an average of 4.4: "
1136
  "since is impossible to know the single rating,\n"
1137
- " Yasr will import 130 votes with 4.4. %s\n"
 
1138
  " Because of this, statistics in front end will be "
1139
  "disabled for all post or page published before \n"
1140
  " the import."
1141
  msgstr ""
1142
 
1143
- #: admin/settings/migrations/yasr-settings-migration-page.php:79
1144
  msgid "You've already imported WP-PostRatings data on"
1145
  msgstr ""
1146
 
1147
- #: admin/settings/migrations/yasr-settings-migration-page.php:93
1148
- #: admin/settings/migrations/yasr-settings-migration-page.php:152
1149
- #: admin/settings/migrations/yasr-settings-migration-page.php:190
1150
- #: admin/settings/migrations/yasr-settings-migration-page.php:240
1151
  msgid "Import data"
1152
  msgstr ""
1153
 
1154
- #: admin/settings/migrations/yasr-settings-migration-page.php:117
1155
  msgid "Plugin found: KK Star Ratings"
1156
  msgstr ""
1157
 
1158
- #: admin/settings/migrations/yasr-settings-migration-page.php:123
1159
  #, php-format
1160
  msgid ""
1161
  "%s Please note: %s KK Star Ratings doesn't save information about the single "
@@ -1166,7 +1147,8 @@ msgid ""
1166
  "the rating for all votes. %s\n"
1167
  " E.g. A post has 130 votes with an average of "
1168
  "4.4: since is impossible to know the single rating,\n"
1169
- " Yasr will import 130 votes 4.4 votes. %s\n"
 
1170
  " Because of this, statistics in front end will be "
1171
  "disabled for all post or page published before \n"
1172
  " the import.%s\n"
@@ -1175,23 +1157,23 @@ msgid ""
1175
  " 5 ratings star scale."
1176
  msgstr ""
1177
 
1178
- #: admin/settings/migrations/yasr-settings-migration-page.php:138
1179
  msgid "You've already imported KK Star Rating data on"
1180
  msgstr ""
1181
 
1182
- #: admin/settings/migrations/yasr-settings-migration-page.php:173
1183
  msgid "Plugin found: Rate My Post"
1184
  msgstr ""
1185
 
1186
- #: admin/settings/migrations/yasr-settings-migration-page.php:178
1187
  msgid "You've already imported Rate My Post data on"
1188
  msgstr ""
1189
 
1190
- #: admin/settings/migrations/yasr-settings-migration-page.php:207
1191
  msgid "Plugin found: Multi Rating"
1192
  msgstr ""
1193
 
1194
- #: admin/settings/migrations/yasr-settings-migration-page.php:213
1195
  #, php-format
1196
  msgid ""
1197
  "%s Please note: %s depending on the settings, Multi Rating may save data in "
@@ -1202,13 +1184,14 @@ msgid ""
1202
  "the rating for all votes. %s\n"
1203
  " E.g. A post has 130 votes with an average of "
1204
  "4.4: since is impossible to know the single rating,\n"
1205
- " YASR will import 130 votes with 4.4. %s\n"
 
1206
  " Because of this, statistics in front end will be "
1207
  "disabled for all post or page published before \n"
1208
  " the import."
1209
  msgstr ""
1210
 
1211
- #: admin/settings/migrations/yasr-settings-migration-page.php:226
1212
  msgid "You've already imported Multi Rating data on"
1213
  msgstr ""
1214
 
@@ -1220,14 +1203,14 @@ msgstr ""
1220
  msgid "What is a Multi Set?"
1221
  msgstr ""
1222
 
1223
- #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:67
1224
  msgid ""
1225
  "Multi Set allows you to insert a rate for each aspect about the product / "
1226
  "local business / \n"
1227
  " whetever you're reviewing, example in the image below."
1228
  msgstr ""
1229
 
1230
- #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:75
1231
  msgid ""
1232
  "You can create up to 99 different Multi Set and each one can contain up to 9 "
1233
  "different fields. \n"
@@ -1236,7 +1219,7 @@ msgid ""
1236
  " as you can see in this image (click to see it larger)"
1237
  msgstr ""
1238
 
1239
- #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:84
1240
  msgid ""
1241
  "In order to insert your Multi Sets into a post or page, you can either past "
1242
  "the short code that will \n"
@@ -1244,11 +1227,11 @@ msgid ""
1244
  "graphic editor and select \"Insert Multi Set\"."
1245
  msgstr ""
1246
 
1247
- #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:92
1248
  msgid "Close this message"
1249
  msgstr ""
1250
 
1251
- #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:117
1252
  msgid "Save"
1253
  msgstr ""
1254
 
@@ -1281,92 +1264,126 @@ msgstr ""
1281
  msgid "You can insert up to nine elements"
1282
  msgstr ""
1283
 
1284
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:133
1285
  msgid "Element "
1286
  msgstr ""
1287
 
1288
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:142
1289
  msgid "Create New Set"
1290
  msgstr ""
1291
 
1292
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:162
1293
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:193
1294
  msgid "Manage Multiple Set"
1295
  msgstr ""
1296
 
1297
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:164
1298
  msgid "Wich set do you want to edit or remove?"
1299
  msgstr ""
1300
 
1301
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:203
1302
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:316
 
 
 
 
1303
  msgid "Field name"
1304
  msgstr ""
1305
 
1306
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:207
1307
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:320
1308
  msgid "Remove"
1309
  msgstr ""
1310
 
1311
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:245
1312
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:355
1313
  msgid "Remove whole set?"
1314
  msgstr ""
1315
 
1316
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:258
1317
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:368
1318
  msgid ""
1319
  "If you remove something you will remove all the votes for that set or field. "
1320
  "This operation CAN'T BE undone."
1321
  msgstr ""
1322
 
1323
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:266
1324
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:376
1325
  msgid "You can use up to 9 elements"
1326
  msgstr ""
1327
 
1328
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:269
1329
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:379
1330
  msgid "Add element"
1331
  msgstr ""
1332
 
1333
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:271
1334
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:381
1335
  msgid "Save changes"
1336
  msgstr ""
1337
 
1338
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:280
1339
  msgid "No Multiple Set were found"
1340
  msgstr ""
1341
 
1342
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:522
1343
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:768
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1344
  msgid "Settings Saved"
1345
  msgstr ""
1346
 
1347
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:525
1348
  msgid "Something goes wrong trying insert set field name. Please report it"
1349
  msgstr ""
1350
 
1351
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:531
1352
  msgid "Something goes wrong trying insert Multi Set name. Please report it"
1353
  msgstr ""
1354
 
1355
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:604
 
 
 
 
1356
  msgid "Something goes wrong trying to delete a Multi Set . Please report it"
1357
  msgstr ""
1358
 
1359
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:636
1360
  msgid ""
1361
  "Something goes wrong trying to delete a Multi Set's element. Please report it"
1362
  msgstr ""
1363
 
1364
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:695
1365
  msgid ""
1366
  "Something goes wrong trying to update a Multi Set's element. Please report it"
1367
  msgstr ""
1368
 
1369
- #: admin/settings/multiset/yasr-settings-functions-multiset.php:755
1370
  msgid ""
1371
  "Something goes wrong trying to insert set field name in edit form. Please "
1372
  "report it"
@@ -1380,200 +1397,216 @@ msgstr ""
1380
  msgid "Ranking preview"
1381
  msgstr ""
1382
 
1383
- #: admin/settings/rankings/yasr-ranking-builder.php:48
1384
- msgid "Copy Shortcode"
1385
- msgstr ""
1386
-
1387
- #: admin/settings/yasr-settings-functions-misc.php:15
1388
  msgid "General Settings"
1389
  msgstr ""
1390
 
1391
- #: admin/settings/yasr-settings-functions-misc.php:24
1392
  msgid "Aspect & Styles"
1393
  msgstr ""
1394
 
1395
- #: admin/settings/yasr-settings-functions-misc.php:91
1396
  msgid "Auto Insert Options"
1397
  msgstr ""
1398
 
1399
- #: admin/settings/yasr-settings-functions-misc.php:95
1400
  #, php-format
1401
  msgid ""
1402
  "Automatically adds YASR in your posts or pages. %s\n"
1403
  " Disable this if you prefer to use shortcodes."
1404
  msgstr ""
1405
 
1406
- #: admin/settings/yasr-settings-functions-misc.php:113
1407
  msgid "Enable stars next to the title?"
1408
  msgstr ""
1409
 
1410
- #: admin/settings/yasr-settings-functions-misc.php:116
1411
- msgid "Enable this if you want to show stars next to the title"
 
 
 
 
1412
  msgstr ""
1413
 
1414
- #: admin/settings/yasr-settings-functions-misc.php:128
1415
  msgid "Archive Pages"
1416
  msgstr ""
1417
 
1418
- #: admin/settings/yasr-settings-functions-misc.php:132
1419
  msgid ""
1420
  "Enable or disable these settings if you want to show ratings in archive "
1421
  "pages (categories, tags, etc.)"
1422
  msgstr ""
1423
 
1424
- #: admin/settings/yasr-settings-functions-misc.php:145
1425
  msgid "Show stats for visitors votes?"
1426
  msgstr ""
1427
 
1428
- #: admin/settings/yasr-settings-functions-misc.php:149
1429
  #, php-format
1430
  msgid ""
1431
  "Enable or disable the chart bar icon (and tooltip hover it) next to the "
1432
  "%syasr_visitor_votes%s shortcode"
1433
  msgstr ""
1434
 
1435
- #: admin/settings/yasr-settings-functions-misc.php:163
1436
  msgid "Who is allowed to vote?"
1437
  msgstr ""
1438
 
1439
- #: admin/settings/yasr-settings-functions-misc.php:167
1440
  #, php-format
1441
  msgid ""
1442
  "Select who can rate your posts for %syasr_visitor_votes%s and "
1443
  "%syasr_visitor_multiset%s shortcodes"
1444
  msgstr ""
1445
 
1446
- #: admin/settings/yasr-settings-functions-misc.php:182
1447
- msgid "Custom texts"
1448
  msgstr ""
1449
 
1450
- #: admin/settings/yasr-settings-functions-misc.php:185
1451
- msgid "Auto insert custom texts to show before or after the stars"
1452
  msgstr ""
1453
 
1454
- #: admin/settings/yasr-settings-functions-misc.php:197
1455
  msgid "Stuctured data options"
1456
  msgstr ""
1457
 
1458
- #: admin/settings/yasr-settings-functions-misc.php:200
1459
  msgid ""
1460
  "If ratings in a post or page are found, YASR will create structured data to "
1461
  "show them in search results\n"
1462
  " (SERP)"
1463
  msgstr ""
1464
 
1465
- #: admin/settings/yasr-settings-functions-misc.php:204
1466
  msgid "More info here"
1467
  msgstr ""
1468
 
1469
- #: admin/settings/yasr-settings-functions-misc.php:224
1470
  msgid "Upgrade to YASR Pro"
1471
  msgstr ""
1472
 
1473
- #: admin/settings/yasr-settings-functions-misc.php:229
1474
  msgid " User Reviews"
1475
  msgstr ""
1476
 
1477
- #: admin/settings/yasr-settings-functions-misc.php:230
1478
  msgid " Custom Rankings"
1479
  msgstr ""
1480
 
1481
- #: admin/settings/yasr-settings-functions-misc.php:231
1482
  msgid " 20 + ready to use themes"
1483
  msgstr ""
1484
 
1485
- #: admin/settings/yasr-settings-functions-misc.php:232
1486
  msgid " Upload your own theme"
1487
  msgstr ""
1488
 
1489
- #: admin/settings/yasr-settings-functions-misc.php:233
1490
  msgid " Dedicate support"
1491
  msgstr ""
1492
 
1493
- #: admin/settings/yasr-settings-functions-misc.php:234
1494
  msgid " ...And much more!!"
1495
  msgstr ""
1496
 
1497
- #: admin/settings/yasr-settings-functions-misc.php:239
1498
  msgid "Upgrade Now"
1499
  msgstr ""
1500
 
1501
- #: admin/settings/yasr-settings-functions-misc.php:249
1502
  msgid "Start Free Trial"
1503
  msgstr ""
1504
 
1505
- #: admin/settings/yasr-settings-functions-misc.php:252
1506
  msgid "No credit-card, risk free!"
1507
  msgstr ""
1508
 
1509
- #: admin/settings/yasr-settings-functions-misc.php:284
1510
  msgid "YASR official website"
1511
  msgstr ""
1512
 
1513
- #: admin/settings/yasr-settings-functions-misc.php:290
1514
  msgid "Documentation"
1515
  msgstr ""
1516
 
1517
- #: admin/settings/yasr-settings-functions-misc.php:296
1518
  msgid "F.A.Q."
1519
  msgstr ""
1520
 
1521
- #: admin/settings/yasr-settings-functions-misc.php:302
1522
  msgid "Youtube channel"
1523
  msgstr ""
1524
 
1525
- #: admin/settings/yasr-settings-functions-misc.php:325
1526
  msgid "Coffee is vital to make YASR development going on!"
1527
  msgstr ""
1528
 
1529
- #: admin/settings/yasr-settings-functions-misc.php:329
1530
  msgid ""
1531
  "If you are enjoying YASR, and you don't need the pro version, please "
1532
  "consider to buy me a coffee, thanks!"
1533
  msgstr ""
1534
 
1535
- #: admin/settings/yasr-settings-functions-misc.php:332
1536
  msgid "If you are enjoying YASR, please consider to buy me a coffee, thanks!"
1537
  msgstr ""
1538
 
1539
- #: admin/settings/yasr-settings-functions-misc.php:338
1540
  msgid "Buy me a coffee!"
1541
  msgstr ""
1542
 
1543
- #: admin/settings/yasr-settings-functions-misc.php:364
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1544
  msgid "Can I ask your help?"
1545
  msgstr ""
1546
 
1547
- #: admin/settings/yasr-settings-functions-misc.php:372
1548
  msgid "Please rate YASR 5 stars on"
1549
  msgstr ""
1550
 
1551
- #: admin/settings/yasr-settings-functions-misc.php:375
1552
  msgid " It will require just 1 min but it's a HUGE help for me. Thank you."
1553
  msgstr ""
1554
 
1555
- #: admin/settings/yasr-settings-functions-misc.php:413
1556
  #, php-format
1557
- msgid ""
1558
- "Thank you for using <a href=\"%s\" target=\"_blank\">Yet Another Stars "
1559
- "Rating</a>.\n"
1560
- " Please <a href=\"%s\" target=\"_blank\">rate it</a> "
1561
- "5 stars on <a href=\"%s\" target=\"_blank\">WordPress.org</a>"
1562
  msgstr ""
1563
 
1564
- #: admin/settings/yasr-settings-page.php:32
 
1565
  msgid "Settings"
1566
  msgstr ""
1567
 
1568
- #: admin/settings/yasr-stats-page.php:33
1569
  msgid "Ratings Stats"
1570
  msgstr ""
1571
 
1572
- #: admin/settings/yasr-stats-page.php:54
1573
  msgid "MultiSet"
1574
  msgstr ""
1575
 
1576
- #: admin/settings/yasr-stats-page.php:69
1577
  msgid "Upgrade"
1578
  msgstr ""
1579
 
@@ -1581,115 +1614,135 @@ msgstr ""
1581
  msgid "This shortcode was not found."
1582
  msgstr ""
1583
 
1584
- #: admin/yasr-admin-functions.php:155
1585
- msgid "Yet Another Stars Rating: settings"
1586
  msgstr ""
1587
 
1588
- #: admin/yasr-admin-functions.php:189
1589
- #, php-format
1590
- msgid "Contact Us %s"
1591
  msgstr ""
1592
 
1593
- #: admin/yasr-admin-init.php:41
1594
  msgid "This feature is available only in the pro version"
1595
  msgstr ""
1596
 
1597
- #: includes/classes/YasrLogDashboardWidget.php:112
 
 
 
 
 
 
 
 
 
1598
  msgid "You must login to see this widget."
1599
  msgstr ""
1600
 
1601
- #: includes/classes/YasrLogDashboardWidget.php:193
1602
  msgid "No Recent votes yet"
1603
  msgstr ""
1604
 
1605
- #: includes/classes/YasrLogDashboardWidget.php:214
1606
  #, php-format
1607
  msgid "Vote %d from %s on"
1608
  msgstr ""
1609
 
1610
- #: includes/classes/YasrLogDashboardWidget.php:220
1611
  #, php-format
1612
  msgid "You rated %s on"
1613
  msgstr ""
1614
 
1615
- #: includes/classes/YasrLogDashboardWidget.php:231
1616
  msgid "Ip address"
1617
  msgstr ""
1618
 
1619
- #: includes/classes/YasrLogDashboardWidget.php:262
1620
  msgid "Pages"
1621
  msgstr ""
1622
 
1623
- #: includes/js/src/shortcodes/ranking.js:43
1624
- msgid "Total:"
1625
  msgstr ""
1626
 
1627
- #: includes/js/src/shortcodes/ranking.js:45
1628
- msgid "Average:"
 
 
 
 
1629
  msgstr ""
1630
 
1631
- #: includes/js/src/shortcodes/ranking.js:229
1632
- msgid "Ajax Disabled, getting data from source"
1633
  msgstr ""
1634
 
1635
- #: includes/js/src/shortcodes/ranking.js:245
1636
- msgid "Ajax Call Failed. Getting data from source"
1637
  msgstr ""
1638
 
1639
- #: includes/js/src/shortcodes/ranking.js:293
1640
- msgid "Invalid Data Source"
1641
  msgstr ""
1642
 
1643
- #: includes/js/src/shortcodes/ranking.js:421
1644
  msgid "Post"
1645
  msgstr ""
1646
 
1647
- #: includes/js/src/shortcodes/ranking.js:423
1648
- msgid "Order By"
1649
  msgstr ""
1650
 
1651
- #: includes/js/src/shortcodes/ranking.js:577
1652
- msgid "Loading Charts"
1653
  msgstr ""
1654
 
1655
- #: includes/js/src/shortcodes/visitorVotes.js:116
1656
- msgid "YASR ajax call failed. Showing ratings from html"
 
1657
  msgstr ""
1658
 
1659
- #: includes/js/src/shortcodes/visitorVotes.js:384
1660
- msgid "out of 5 stars"
1661
  msgstr ""
1662
 
1663
- #: includes/js/src/shortcodes/visitorVotes.js:388
1664
- msgid "stars"
1665
  msgstr ""
1666
 
1667
- #: includes/js/src/shortcodes/visitorVotes.js:395
1668
- msgid "star"
1669
  msgstr ""
1670
 
1671
- #: includes/rest/classes/YasrCustomEndpoint.php:118
1672
- msgid "This Multi Set doesn't exists"
1673
  msgstr ""
1674
 
1675
- #: includes/rest/classes/YasrCustomEndpoint.php:196
1676
  msgid "No posts found. Try remove some filters"
1677
  msgstr ""
1678
 
1679
- #: includes/rest/classes/YasrCustomEndpoint.php:229
1680
  msgid "Invalid Post ID"
1681
  msgstr ""
1682
 
1683
- #: includes/rest/classes/YasrCustomEndpoint.php:238
1684
  msgid "Post ID doesn't exists"
1685
  msgstr ""
1686
 
1687
- #: includes/shortcodes/classes/YasrMultiSet.php:38
1688
- #: includes/shortcodes/classes/YasrVisitorMultiSet.php:80
 
 
 
 
 
 
 
1689
  msgid "No Set Found with this ID"
1690
  msgstr ""
1691
 
1692
- #: includes/shortcodes/classes/YasrMultiSet.php:126
1693
  msgid "Average"
1694
  msgstr ""
1695
 
@@ -1699,76 +1752,93 @@ msgid ""
1699
  "any review?"
1700
  msgstr ""
1701
 
1702
- #: includes/shortcodes/classes/YasrNoStarsRankings.php:67
1703
  msgid ""
1704
  "Problem while retrieving the top 10 active users chart. Are you sure you "
1705
  "have votes to show?"
1706
  msgstr ""
1707
 
1708
- #: includes/shortcodes/classes/YasrNoStarsRankings.php:84
1709
  msgid "User"
1710
  msgstr ""
1711
 
1712
- #: includes/shortcodes/classes/YasrNoStarsRankings.php:85
1713
  msgid "Number of votes"
1714
  msgstr ""
1715
 
1716
- #: includes/shortcodes/classes/YasrNoStarsRankings.php:87
1717
  msgid "Author"
1718
  msgstr ""
1719
 
1720
- #: includes/shortcodes/classes/YasrNoStarsRankings.php:88
1721
  msgid "Reviews"
1722
  msgstr ""
1723
 
1724
- #: includes/shortcodes/classes/YasrNoStarsRankings.php:117
1725
  msgid "Anonymous"
1726
  msgstr ""
1727
 
1728
- #: includes/shortcodes/classes/YasrNoStarsRankings.php:126
1729
  msgid "Account deleted"
1730
  msgstr ""
1731
 
1732
- #: includes/shortcodes/classes/YasrRankings.php:185
1733
- #: includes/shortcodes/classes/YasrRankings.php:226
1734
  msgid "No posts found with these parameters. Try to remove some filters."
1735
  msgstr ""
1736
 
1737
- #: includes/shortcodes/classes/YasrShortcodesAjax.php:204
1738
- msgid "Rating Updated!"
1739
  msgstr ""
1740
 
1741
- #: includes/shortcodes/classes/YasrShortcodesAjax.php:207
1742
- msgid "Rating Saved!"
1743
  msgstr ""
1744
 
1745
- #: includes/shortcodes/classes/YasrShortcodesAjax.php:469
1746
- msgid "Rating Saved"
1747
  msgstr ""
1748
 
1749
- #: includes/shortcodes/classes/YasrShortcodesAjax.php:480
1750
- msgid "Rating not saved. Please Try again"
 
1751
  msgstr ""
1752
 
1753
- #: includes/shortcodes/classes/YasrShortcodesAjax.php:613
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1754
  msgid "Wrong nonce. Rating can't be updated"
1755
  msgstr ""
1756
 
1757
- #: includes/shortcodes/classes/YasrVisitorMultiSet.php:63
1758
- #: includes/shortcodes/classes/YasrVisitorMultiSet.php:71
1759
- msgid "Submit!"
1760
  msgstr ""
1761
 
1762
- #: includes/shortcodes/classes/YasrVisitorMultiSet.php:158
1763
- msgid "Thank you for voting!"
1764
  msgstr ""
1765
 
1766
- #: includes/shortcodes/classes/YasrVisitorVotes.php:269
1767
- msgid "You've already voted this article with "
 
1768
  msgstr ""
1769
 
1770
- #: includes/yasr-includes-init.php:227
1771
- msgid "Save All Settings"
1772
  msgstr ""
1773
 
1774
  #: includes/yasr-widgets.php:43
@@ -1779,56 +1849,56 @@ msgstr ""
1779
  msgid "Display Overall Rating"
1780
  msgstr ""
1781
 
1782
- #: includes/yasr-widgets.php:99
1783
  msgid "Our Rating:"
1784
  msgstr ""
1785
 
1786
- #: includes/yasr-widgets.php:111 includes/yasr-widgets.php:282
1787
- #: includes/yasr-widgets.php:495
1788
  msgid "Title:"
1789
  msgstr ""
1790
 
1791
- #: includes/yasr-widgets.php:117 includes/yasr-widgets.php:296
1792
  msgid "Size:"
1793
  msgstr ""
1794
 
1795
- #: includes/yasr-widgets.php:200
1796
  msgid "Yasr Visitor Votes"
1797
  msgstr ""
1798
 
1799
- #: includes/yasr-widgets.php:202
1800
  msgid "Show Yasr Visitor Votes"
1801
  msgstr ""
1802
 
1803
- #: includes/yasr-widgets.php:262
1804
  msgid "Rate This:"
1805
  msgstr ""
1806
 
1807
- #: includes/yasr-widgets.php:383
1808
  msgid "Yasr Recent Ratings"
1809
  msgstr ""
1810
 
1811
- #: includes/yasr-widgets.php:385
1812
  msgid "Show the 5 most recent rated posts"
1813
  msgstr ""
1814
 
1815
- #: includes/yasr-widgets.php:439
1816
  #, php-format
1817
  msgid "Vote %s from %s on"
1818
  msgstr ""
1819
 
1820
- #: includes/yasr-widgets.php:461
1821
  msgid "No recent ratings yet"
1822
  msgstr ""
1823
 
1824
- #: includes/yasr-widgets.php:489
1825
  msgid "Recent Ratings"
1826
  msgstr ""
1827
 
1828
- #: yet-another-stars-rating.php:185
1829
  msgid "Buy Yasr Pro"
1830
  msgstr ""
1831
 
1832
- #: yet-another-stars-rating.php:192
1833
  msgid "Thank you for using Yasr Pro"
1834
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: YASR lenguages\n"
5
+ "POT-Creation-Date: 2022-06-10 16:52+0200\n"
6
  "PO-Revision-Date: 2016-07-04 10:26+0100\n"
7
  "Last-Translator: Dario <thedudoworld@gmail.com>\n"
8
  "Language-Team: \n"
20
  "X-Poedit-SearchPathExcluded-2: admin/class-wp-list-table.php\n"
21
  "X-Poedit-SearchPathExcluded-3: node_modules\n"
22
 
23
+ #: admin/classes/YasrEditCategory.php:67
24
  msgid "Select default itemType"
25
  msgstr ""
26
 
27
+ #: admin/classes/YasrEditCategory.php:87
28
+ msgid "Check to update YASR itemType"
 
29
  msgstr ""
30
 
31
+ #: admin/classes/YasrEditCategory.php:92
32
+ msgid ""
33
+ "This will overwrite YASR itemType in all existing posts or pages for this "
34
+ "category "
35
  msgstr ""
36
 
37
+ #: admin/classes/YasrOnInstall.php:26 admin/editor/YasrEditorHooks.php:585
38
  #: admin/settings/migrations/yasr-settings-migration-functions.php:40
39
  #: admin/settings/migrations/yasr-settings-migration-functions.php:113
40
  #: admin/settings/migrations/yasr-settings-migration-functions.php:176
41
  #: admin/settings/migrations/yasr-settings-migration-functions.php:231
42
+ #: admin/settings/yasr-settings-page.php:27
43
+ #: admin/settings/yasr-stats-page.php:27 admin/yasr-admin-functions.php:182
44
+ #: admin/yasr-admin-functions.php:192 admin/yasr-admin-functions.php:201
45
  msgid "You do not have sufficient permissions to access this page."
46
  msgstr ""
47
 
48
+ #: admin/classes/Yasr_WP_List_Table.php:169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  msgid "List View"
50
  msgstr ""
51
 
52
+ #: admin/classes/Yasr_WP_List_Table.php:170
53
  msgid "Excerpt View"
54
  msgstr ""
55
 
56
+ #: admin/classes/Yasr_WP_List_Table.php:334
57
+ msgid "No ratings found."
58
  msgstr ""
59
 
60
+ #: admin/classes/Yasr_WP_List_Table.php:463
61
  msgid "Select bulk action"
62
  msgstr ""
63
 
64
+ #: admin/classes/Yasr_WP_List_Table.php:465
65
  msgid "Bulk Actions"
66
  msgstr ""
67
 
68
+ #: admin/classes/Yasr_WP_List_Table.php:475
69
  msgid "Apply"
70
  msgstr ""
71
 
72
+ #: admin/classes/Yasr_WP_List_Table.php:527
73
+ #: admin/classes/Yasr_WP_List_Table.php:1346
74
  msgid "Show more details"
75
  msgstr ""
76
 
77
+ #: admin/classes/Yasr_WP_List_Table.php:594
78
  msgid "Filter by date"
79
  msgstr ""
80
 
81
+ #: admin/classes/Yasr_WP_List_Table.php:596
82
  msgid "All dates"
83
  msgstr ""
84
 
85
+ #: admin/classes/Yasr_WP_List_Table.php:611
86
  #, php-format
87
  msgid "%1$s %2$d"
88
  msgstr ""
89
 
90
+ #: admin/classes/Yasr_WP_List_Table.php:670
91
+ #: admin/classes/Yasr_WP_List_Table.php:691
92
+ #: admin/classes/Yasr_WP_List_Table.php:713
93
  msgid "No comments"
94
  msgstr ""
95
 
96
+ #: admin/classes/Yasr_WP_List_Table.php:691
97
  msgid "No approved comments"
98
  msgstr ""
99
 
100
+ #: admin/classes/Yasr_WP_List_Table.php:713
101
  msgid "No pending comments"
102
  msgstr ""
103
 
104
+ #: admin/classes/Yasr_WP_List_Table.php:826
105
  msgid "First page"
106
  msgstr ""
107
 
108
+ #: admin/classes/Yasr_WP_List_Table.php:837
109
  msgid "Previous page"
110
  msgstr ""
111
 
112
+ #: admin/classes/Yasr_WP_List_Table.php:844
113
+ #: admin/classes/Yasr_WP_List_Table.php:848
114
  msgid "Current Page"
115
  msgstr ""
116
 
117
+ #: admin/classes/Yasr_WP_List_Table.php:862
118
  msgid "Next page"
119
  msgstr ""
120
 
121
+ #: admin/classes/Yasr_WP_List_Table.php:873
122
  msgid "Last page"
123
  msgstr ""
124
 
125
+ #: admin/classes/Yasr_WP_List_Table.php:1095
126
  msgid "Select All"
127
  msgstr ""
128
 
129
+ #: admin/editor/YasrEditorHooks.php:135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  msgid "Yet Another Stars Rating"
131
  msgstr ""
132
 
133
+ #: admin/editor/YasrEditorHooks.php:154
134
  msgid "You don't have enought privileges to insert Overall Rating"
135
  msgstr ""
136
 
137
+ #: admin/editor/YasrEditorHooks.php:169
138
  msgid "You don't have enough privileges to insert a Multi Set"
139
  msgstr ""
140
 
141
+ #: admin/editor/YasrEditorHooks.php:217
142
+ msgid "Read the doc"
143
  msgstr ""
144
 
145
+ #: admin/editor/YasrEditorHooks.php:257
146
+ msgid "Main"
 
147
  msgstr ""
148
 
149
+ #: admin/editor/YasrEditorHooks.php:272
150
+ #: admin/settings/yasr-settings-functions-misc.php:52
151
+ msgid "Rankings"
152
  msgstr ""
153
 
154
+ #: admin/editor/YasrEditorHooks.php:292
155
+ #: admin/settings/classes/YasrSettings.php:179
156
+ #: admin/settings/yasr-stats-page.php:58
157
  msgid "Overall Rating"
158
  msgstr ""
159
 
160
+ #: admin/editor/YasrEditorHooks.php:301
161
  msgid "Insert Overall Rating"
162
  msgstr ""
163
 
164
+ #: admin/editor/YasrEditorHooks.php:305
165
+ msgid "Insert the author rating"
166
+ msgstr ""
167
+
168
+ #: admin/editor/YasrEditorHooks.php:310 admin/editor/YasrEditorHooks.php:339
169
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:11
170
+ #: admin/js/src/guten/yasrGutenUtils.js:5
171
  msgid "Choose Size"
172
  msgstr ""
173
 
174
+ #: admin/editor/YasrEditorHooks.php:323
175
+ #: admin/settings/classes/YasrSettings.php:178
176
+ #: admin/settings/classes/YasrSettings.php:318
177
+ #: admin/settings/yasr-stats-page.php:46
178
  msgid "Visitor Votes"
179
  msgstr ""
180
 
181
+ #: admin/editor/YasrEditorHooks.php:331
182
  msgid "Insert Visitor Votes"
183
  msgstr ""
184
 
185
+ #: admin/editor/YasrEditorHooks.php:334
186
+ msgid "Insert the ability for your visitors to vote"
187
+ msgstr ""
188
+
189
+ #: admin/editor/YasrEditorHooks.php:352
190
  msgid "Insert Multiset:"
191
  msgstr ""
192
 
193
+ #: admin/editor/YasrEditorHooks.php:366
194
  msgid "Choose wich set you want to insert."
195
  msgstr ""
196
 
197
+ #: admin/editor/YasrEditorHooks.php:372
198
  msgid "Readonly?"
199
  msgstr ""
200
 
201
+ #: admin/editor/YasrEditorHooks.php:378
202
  msgid ""
203
  "If Readonly is checked, only you can insert the votes (in the box above the "
204
  "editor)"
205
  msgstr ""
206
 
207
+ #: admin/editor/YasrEditorHooks.php:385
208
  msgid "Hide Average?"
209
  msgstr ""
210
 
211
+ #: admin/editor/YasrEditorHooks.php:395
212
  msgid "Insert Multi Set"
213
  msgstr ""
214
 
215
+ #: admin/editor/YasrEditorHooks.php:408
216
+ msgid "User Rate History"
217
+ msgstr ""
218
+
219
+ #: admin/editor/YasrEditorHooks.php:420
220
+ msgid ""
221
+ "If user is logged in, this shortcode shows a list of all the ratings \n"
222
+ " provided by the user on [yasr_visitor_votes] "
223
+ "shortcode."
224
+ msgstr ""
225
+
226
+ #: admin/editor/YasrEditorHooks.php:445
227
  msgid "Ranking by overall rating"
228
  msgstr ""
229
 
230
+ #: admin/editor/YasrEditorHooks.php:456
231
  msgid ""
232
  "This ranking shows the highest rated posts rated through the \n"
233
  " yasr_overall_rating shortcode"
234
  msgstr ""
235
 
236
+ #: admin/editor/YasrEditorHooks.php:465
237
  msgid "Ranking by visitors votes"
238
  msgstr ""
239
 
240
+ #: admin/editor/YasrEditorHooks.php:477
241
  msgid ""
242
  "This ranking shows both the highest and most rated posts rated through the \n"
243
  " yasr_visitor_votes shortcode. For an "
244
  "item to appear in this chart, it has to be rated at least twice. "
245
  msgstr ""
246
 
247
+ #: admin/editor/YasrEditorHooks.php:486
248
  msgid "Most Active Authors"
249
  msgstr ""
250
 
251
+ #: admin/editor/YasrEditorHooks.php:498
252
+ msgid "This ranking shows the most active reviewers on your site."
253
+ msgstr ""
254
+
255
+ #: admin/editor/YasrEditorHooks.php:506
256
  msgid "Most Active Users"
257
  msgstr ""
258
 
259
+ #: admin/editor/YasrEditorHooks.php:517
260
+ msgid ""
261
+ "This ranking shows the most active users, displaying the login name if "
262
+ "logged in or “Anonymous” if not."
263
+ msgstr ""
264
+
265
+ #: admin/editor/YasrEditorHooks.php:527
266
  #, php-format
267
  msgid "%s Click here %s to customize the ranking and see a live preview"
268
  msgstr ""
269
 
270
+ #: admin/editor/YasrMetaboxBelowEditor.php:105
271
+ msgid "Structured Data"
272
+ msgstr ""
273
+
274
+ #: admin/editor/YasrMetaboxBelowEditor.php:133
275
+ #: admin/settings/yasr-settings-functions-misc.php:43
276
+ msgid "Multi Sets"
277
+ msgstr ""
278
+
279
+ #: admin/editor/YasrMetaboxBelowEditor.php:179
280
+ msgid "Choose which set you want to use"
281
+ msgstr ""
282
+
283
+ #: admin/editor/YasrMetaboxBelowEditor.php:227
284
+ #: admin/editor/YasrMetaboxBelowEditor.php:251
285
+ #: admin/editor/YasrMetaboxBelowEditor.php:330
286
+ #: admin/editor/YasrMetaboxBelowEditor.php:344
287
+ #: admin/editor/YasrMetaboxBelowEditor.php:358
288
+ #: admin/editor/yasr-metabox-top-right.php:77
289
+ #: admin/settings/rankings/yasr-ranking-builder.php:48
290
+ msgid "Copy Shortcode"
291
+ msgstr ""
292
+
293
+ #: admin/editor/YasrMetaboxBelowEditor.php:232
294
+ #, php-format
295
+ msgid ""
296
+ "Rate each element, and copy this shortcode %s where you want to display this "
297
+ "rating."
298
+ msgstr ""
299
+
300
+ #: admin/editor/YasrMetaboxBelowEditor.php:248
301
+ msgid ""
302
+ "If, you want allow your visitor to vote on this multiset, use this shortcode"
303
+ msgstr ""
304
+
305
+ #: admin/editor/YasrMetaboxBelowEditor.php:257
306
+ msgid "This is just a preview, you can't vote here."
307
+ msgstr ""
308
+
309
+ #: admin/editor/YasrMetaboxBelowEditor.php:283
310
+ msgid "Pro Only features"
311
+ msgstr ""
312
+
313
+ #: admin/editor/YasrMetaboxBelowEditor.php:294
314
+ msgid "Insert this Multi Set in the comment form?"
315
+ msgstr ""
316
+
317
+ #: admin/editor/YasrMetaboxBelowEditor.php:318
318
+ msgid "By enabling this, all ratings fields will be mandatory."
319
+ msgstr ""
320
+
321
+ #: admin/editor/YasrMetaboxBelowEditor.php:326
322
+ msgid "Shortcodes"
323
+ msgstr ""
324
+
325
+ #: admin/editor/YasrMetaboxBelowEditor.php:336
326
+ #: admin/editor/YasrMetaboxBelowEditor.php:350
327
+ msgid "Use this shortcode to print only the average of "
328
+ msgstr ""
329
+
330
+ #: admin/editor/YasrMetaboxBelowEditor.php:364
331
+ msgid ""
332
+ "This shortcode will print a Multi Set with all the ratings given through the "
333
+ "comment form "
334
+ msgstr ""
335
+
336
  #: admin/editor/YasrMetaboxSchemaFields.php:53
337
  msgid "The brand of the product."
338
  msgstr ""
420
  msgstr ""
421
 
422
  #: admin/editor/YasrMetaboxSchemaFields.php:229
423
+ msgid "Operating systems supported e.g. (Windows 11, OSX 12, Android 12)"
424
  msgstr ""
425
 
426
  #: admin/editor/YasrMetaboxSchemaFields.php:260
469
  msgid "More info %s here %s"
470
  msgstr ""
471
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  #: admin/editor/yasr-metabox-schema.php:66
473
  msgid "Rich snippet options"
474
  msgstr ""
489
  msgid "Select ItemType"
490
  msgstr ""
491
 
492
+ #: admin/editor/yasr-metabox-top-right.php:58
493
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:111
494
+ #: admin/js/src/guten/yasrGutenUtils.js:109
495
  msgid "Rate this article / item"
496
  msgstr ""
497
 
498
+ #: admin/editor/yasr-metabox-top-right.php:80
499
+ #, php-format
500
  msgid ""
501
+ "Remember to insert this shortcode %s where you want to display this rating."
 
502
  msgstr ""
503
 
504
+ #: admin/editor/yasr-metabox-top-right.php:97
505
+ #: admin/js/src/guten/yasrSidebar.js:58
506
  msgid "Disable auto insert for this post or page?"
507
  msgstr ""
508
 
509
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:9
510
+ #: admin/js/src/guten/yasrGutenUtils.js:4
511
  msgid "All these settings are optional"
512
  msgstr ""
513
 
514
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:13
515
+ #: admin/js/src/guten/yasrGutenUtils.js:7
516
  msgid "Choose stars size"
517
  msgstr ""
518
 
519
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:14
520
+ #: admin/js/src/guten/yasrGutenUtils.js:8 includes/yasr-widgets.php:128
521
+ #: includes/yasr-widgets.php:312
522
  msgid "Small"
523
  msgstr ""
524
 
525
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:15
526
+ #: admin/js/src/guten/yasrGutenUtils.js:9 includes/yasr-widgets.php:136
527
+ #: includes/yasr-widgets.php:320
528
  msgid "Medium"
529
  msgstr ""
530
 
531
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:16
532
+ #: admin/js/src/guten/yasrGutenUtils.js:10 includes/yasr-widgets.php:144
533
+ #: includes/yasr-widgets.php:329
534
  msgid "Large"
535
  msgstr ""
536
 
537
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:18
538
+ #: admin/js/src/guten/yasrGutenUtils.js:12
539
  msgid "Leave this blank if you don't know what you're doing."
540
  msgstr ""
541
 
542
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:20
543
+ #: admin/js/src/guten/yasrGutenUtils.js:14
544
  msgid "Remember: only the post author can rate here."
545
  msgstr ""
546
 
547
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:21
548
+ #: admin/js/src/guten/yasrGutenUtils.js:15
549
  msgid "This is the star set where your users will be able to vote"
550
  msgstr ""
551
 
564
  msgstr ""
565
 
566
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:30
567
+ #: admin/js/src/guten/yasrGutenUtils.js:260
568
  msgid "To be able to customize this ranking, you need"
569
  msgstr ""
570
 
571
  #: admin/js/src/guten/blocks/deprecated/deprecated_blocks.js:31
572
+ #: admin/js/src/guten/yasrGutenUtils.js:261
573
  msgid "You can buy the plugin, including support, updates and upgrades, on"
574
  msgstr ""
575
 
602
  msgid "votes"
603
  msgstr ""
604
 
605
+ #: admin/js/src/guten/yasrGutenUtils.js:92
606
+ msgid ""
607
+ "This is a template file, you can't rate here. You need to insert the rating "
608
+ "inside the single post or page"
609
+ msgstr ""
610
+
611
+ #: admin/js/src/guten/yasrSidebar.js:90
612
  msgid "YASR post settings"
613
  msgstr ""
614
 
615
+ #: admin/js/src/guten/yasrSidebar.js:97
616
  msgid ""
617
  "This is the same value that you find the \"Yasr: Overall Rating\" block."
618
  msgstr ""
619
 
620
+ #: admin/js/src/guten/yasrSidebar.js:112
621
+ msgid "Yasr: Settings"
622
  msgstr ""
623
 
624
  #: admin/js/src/yasr-settings-rankings.js:206
642
  msgid "Save Settings"
643
  msgstr ""
644
 
645
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:44
646
  msgid "Style Options"
647
  msgstr ""
648
 
649
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:53
650
  msgid "Which color scheme do you want to use?"
651
  msgstr ""
652
 
653
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:62
654
  msgid "Custom CSS Styles"
655
  msgstr ""
656
 
657
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:82
658
  msgid "Light"
659
  msgstr ""
660
 
661
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:83
662
  msgid "Dark"
663
  msgstr ""
664
 
665
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:96
666
  msgid "Preview"
667
  msgstr ""
668
 
669
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:101
670
  msgid "Light theme"
671
  msgstr ""
672
 
673
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:106
674
  msgid "Dark theme"
675
  msgstr ""
676
 
677
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:117
678
  msgid ""
679
  "Please use text area below to write your own CSS styles to override the "
680
  "default ones."
681
  msgstr ""
682
 
683
+ #: admin/settings/aspect_style/yasr-settings-style-functions.php:120
684
  msgid "Leave it blank if you don't know what you're doing."
685
  msgstr ""
686
 
687
+ #: admin/settings/classes/YasrSettings.php:66
688
  msgid "General settings"
689
  msgstr ""
690
 
691
+ #: admin/settings/classes/YasrSettings.php:136
692
  msgid "Advanced Settings"
693
  msgstr ""
694
 
695
+ #: admin/settings/classes/YasrSettings.php:160
696
  msgid "Use Auto Insert?"
697
  msgstr ""
698
 
699
+ #: admin/settings/classes/YasrSettings.php:176
700
+ #: admin/settings/classes/YasrSettings.php:316
701
  msgid "What?"
702
  msgstr ""
703
 
704
+ #: admin/settings/classes/YasrSettings.php:180
705
+ #: admin/settings/classes/YasrSettings.php:197
706
+ #: admin/settings/classes/YasrSettings.php:352
707
  msgid "Both"
708
  msgstr ""
709
 
710
+ #: admin/settings/classes/YasrSettings.php:193
711
  msgid "Where?"
712
  msgstr ""
713
 
714
+ #: admin/settings/classes/YasrSettings.php:195
715
  msgid "Before the content"
716
  msgstr ""
717
 
718
+ #: admin/settings/classes/YasrSettings.php:196
719
  msgid "After the content"
720
  msgstr ""
721
 
722
+ #: admin/settings/classes/YasrSettings.php:210
723
  msgid "Align"
724
  msgstr ""
725
 
726
+ #: admin/settings/classes/YasrSettings.php:212
727
  msgid "Left"
728
  msgstr ""
729
 
730
+ #: admin/settings/classes/YasrSettings.php:213
731
  msgid "Center"
732
  msgstr ""
733
 
734
+ #: admin/settings/classes/YasrSettings.php:214
735
  msgid "Right"
736
  msgstr ""
737
 
738
+ #: admin/settings/classes/YasrSettings.php:227
739
+ #: admin/settings/classes/YasrSettingsRankings.php:112
740
  msgid "Size"
741
  msgstr ""
742
 
743
+ #: admin/settings/classes/YasrSettings.php:241
744
+ #: admin/settings/classes/YasrSettings.php:332
745
  msgid "Exclude Pages?"
746
  msgstr ""
747
 
748
+ #: admin/settings/classes/YasrSettings.php:243
749
+ #: admin/settings/classes/YasrSettings.php:261
750
+ #: admin/settings/classes/YasrSettings.php:334
751
+ #: admin/settings/classes/YasrSettingsRankings.php:297
752
+ #: admin/settings/classes/YasrSettingsRankings.php:366
753
  msgid "Yes"
754
  msgstr ""
755
 
756
+ #: admin/settings/classes/YasrSettings.php:244
757
+ #: admin/settings/classes/YasrSettings.php:262
758
+ #: admin/settings/classes/YasrSettings.php:335
759
+ #: admin/settings/classes/YasrSettingsRankings.php:216
760
+ #: admin/settings/classes/YasrSettingsRankings.php:296
761
+ #: admin/settings/classes/YasrSettingsRankings.php:365
762
  msgid "No"
763
  msgstr ""
764
 
765
+ #: admin/settings/classes/YasrSettings.php:259
766
  msgid "Use only in custom post types?"
767
  msgstr ""
768
 
769
+ #: admin/settings/classes/YasrSettings.php:274
770
  msgid "Select yes if you want to use auto insert only in custom post types"
771
  msgstr ""
772
 
773
+ #: admin/settings/classes/YasrSettings.php:319
774
  msgid "Overall Rating / Author Rating"
775
  msgstr ""
776
 
777
+ #: admin/settings/classes/YasrSettings.php:348
778
  msgid "Where do you want show ratings?"
779
  msgstr ""
780
 
781
+ #: admin/settings/classes/YasrSettings.php:350
782
  msgid "Only on archive pages (categories, tags, etc.)"
783
  msgstr ""
784
 
785
+ #: admin/settings/classes/YasrSettings.php:351
786
  msgid "Only on single posts or pages"
787
  msgstr ""
788
 
789
+ #: admin/settings/classes/YasrSettings.php:384
790
  msgid "Show \"Overall Rating\" in Archive Pages?"
791
  msgstr ""
792
 
793
+ #: admin/settings/classes/YasrSettings.php:397
794
  msgid "Enable to show \"Overall Rating\" in archive pages."
795
  msgstr ""
796
 
797
+ #: admin/settings/classes/YasrSettings.php:402
798
  msgid "Show \"Visitor Votes\" in Archive Page?"
799
  msgstr ""
800
 
801
+ #: admin/settings/classes/YasrSettings.php:415
802
  msgid "Enable to show \"Visitor Votes\" in archive pages"
803
  msgstr ""
804
 
805
+ #: admin/settings/classes/YasrSettings.php:447
806
  msgid "Select \"Yes\" to enable."
807
  msgstr ""
808
 
809
+ #: admin/settings/classes/YasrSettings.php:454
810
  msgid "Example"
811
  msgstr ""
812
 
813
+ #: admin/settings/classes/YasrSettings.php:482
814
  msgid "Allow only logged-in users"
815
  msgstr ""
816
 
817
+ #: admin/settings/classes/YasrSettings.php:483
818
  msgid "Allow everybody (logged in and anonymous)"
819
  msgstr ""
820
 
821
+ #: admin/settings/classes/YasrSettings.php:496
822
  msgid "Select who can rate your posts."
823
  msgstr ""
824
 
825
+ #: admin/settings/classes/YasrSettings.php:519
826
+ msgid "Select default itemType for all post or pages"
 
 
 
 
827
  msgstr ""
828
 
829
+ #: admin/settings/classes/YasrSettings.php:531
830
+ msgid "You can always change itemType in the single post or page."
831
  msgstr ""
832
 
833
+ #: admin/settings/classes/YasrSettings.php:537
834
+ msgid "Choose whether the site represents an organization or a person."
835
  msgstr ""
836
 
837
+ #: admin/settings/classes/YasrSettings.php:557
838
+ msgid "Publisher name (e.g. Google)"
839
  msgstr ""
840
 
841
+ #: admin/settings/classes/YasrSettings.php:568
842
+ msgid "Image Url (if empty siteicon will be used instead)"
843
  msgstr ""
844
 
845
+ #: admin/settings/classes/YasrSettings.php:578
846
  #, php-format
847
  msgid ""
848
+ "Please keep in mind that since September, 16, 2019 blogPosting itemType "
849
+ "will \n"
850
+ " no show stars in SERP anymore. %sHere"
851
+ "%s the announcement by Google."
852
  msgstr ""
853
 
854
+ #: admin/settings/classes/YasrSettings.php:586
855
  #, php-format
856
+ msgid "Also, %sread Google guidelines%s"
 
 
857
  msgstr ""
858
 
859
+ #: admin/settings/classes/YasrSettings.php:616
860
+ msgid "Custom text to display before Overall Rating"
861
  msgstr ""
862
 
863
+ #: admin/settings/classes/YasrSettings.php:622
864
+ msgid "Custom text to display BEFORE Visitor Rating"
865
  msgstr ""
866
 
867
+ #: admin/settings/classes/YasrSettings.php:628
868
+ msgid "Custom text to display AFTER Visitor Rating"
869
+ msgstr ""
870
+
871
+ #: admin/settings/classes/YasrSettings.php:634
872
+ msgid "Custom text to display when login is required to vote"
873
  msgstr ""
874
 
875
  #: admin/settings/classes/YasrSettings.php:640
876
+ msgid "Custom text to display when rating is saved"
877
  msgstr ""
878
 
879
  #: admin/settings/classes/YasrSettings.php:646
880
+ msgid ""
881
+ "Custom text to display when rating is updated (only for logged in users)"
882
  msgstr ""
883
 
884
+ #: admin/settings/classes/YasrSettings.php:653
885
+ msgid "Custom text to display when an user has already rated"
886
  msgstr ""
887
 
888
+ #: admin/settings/classes/YasrSettings.php:668
889
+ #, php-format
890
+ msgid "%s In these fields you can use %s pattern to show the rating (as text)."
891
  msgstr ""
892
 
893
+ #: admin/settings/classes/YasrSettings.php:672
894
  #, php-format
895
  msgid ""
896
+ "%s In these fields you can use %s pattern to show the\n"
897
+ " total count, and %s pattern to show the average."
 
 
898
  msgstr ""
899
 
900
+ #: admin/settings/classes/YasrSettings.php:676
901
+ msgid "Leave a field empty to disable it."
902
+ msgstr ""
903
+
904
+ #: admin/settings/classes/YasrSettings.php:679
905
+ msgid "Allowed html tags:"
906
+ msgstr ""
907
+
908
+ #: admin/settings/classes/YasrSettings.php:690
909
+ msgid "Restore default strings"
910
  msgstr ""
911
 
912
+ #: admin/settings/classes/YasrSettings.php:711
913
  msgid "Load results with AJAX?"
914
  msgstr ""
915
 
916
+ #: admin/settings/classes/YasrSettings.php:726
917
  msgid ""
918
  "This should be enabled if you're using caching plugins. \n"
919
  " Not required for yasr_overall_rating and "
920
  "yasr_multiset."
921
  msgstr ""
922
 
923
+ #: admin/settings/classes/YasrSettings.php:735
924
  #, php-format
925
  msgid "Since you're using the caching plugin %s you should enable this."
926
  msgstr ""
927
 
928
+ #: admin/settings/classes/YasrSettings.php:745
929
  msgid "Do you want to save ip address?"
930
  msgstr ""
931
 
932
+ #: admin/settings/classes/YasrSettings.php:760
933
  #, php-format
934
  msgid ""
935
  "Please note that to comply with the %s EU law, you %s MUST %s warn your "
941
  msgid "Select Ranking"
942
  msgstr ""
943
 
944
+ #: admin/settings/classes/YasrSettingsRankings.php:81
945
  msgid "How many rows?"
946
  msgstr ""
947
 
948
+ #: admin/settings/classes/YasrSettingsRankings.php:134
949
  msgid "Default View"
950
  msgstr ""
951
 
952
+ #: admin/settings/classes/YasrSettingsRankings.php:136
953
+ #: includes/classes/YasrScriptsLoader.php:76
 
954
  msgid "Most Rated"
955
  msgstr ""
956
 
957
+ #: admin/settings/classes/YasrSettingsRankings.php:137
958
+ #: includes/classes/YasrScriptsLoader.php:77
 
959
  msgid "Highest Rated"
960
  msgstr ""
961
 
962
+ #: admin/settings/classes/YasrSettingsRankings.php:158
963
  msgid "At least..."
964
  msgstr ""
965
 
966
+ #: admin/settings/classes/YasrSettingsRankings.php:181
967
  msgid "votes required for most rated"
968
  msgstr ""
969
 
970
+ #: admin/settings/classes/YasrSettingsRankings.php:202
971
  msgid "votes required for highest rated"
972
  msgstr ""
973
 
974
+ #: admin/settings/classes/YasrSettingsRankings.php:213
975
  msgid "Show text before or after the stars?"
976
  msgstr ""
977
 
978
+ #: admin/settings/classes/YasrSettingsRankings.php:217
979
  msgid "Yes, before the stars"
980
  msgstr ""
981
 
982
+ #: admin/settings/classes/YasrSettingsRankings.php:218
983
  msgid "Yes, after the stars"
984
  msgstr ""
985
 
986
+ #: admin/settings/classes/YasrSettingsRankings.php:231
987
  msgid "Text to show"
988
  msgstr ""
989
 
990
+ #: admin/settings/classes/YasrSettingsRankings.php:236
 
991
  msgid "Rating:"
992
  msgstr ""
993
 
994
+ #: admin/settings/classes/YasrSettingsRankings.php:245
995
  #, php-format
996
  msgid "Use return %s to insert the text."
997
  msgstr ""
998
 
999
+ #: admin/settings/classes/YasrSettingsRankings.php:260
1000
  msgid "Start Date"
1001
  msgstr ""
1002
 
1003
+ #: admin/settings/classes/YasrSettingsRankings.php:270
1004
  msgid "End Date"
1005
  msgstr ""
1006
 
1007
+ #: admin/settings/classes/YasrSettingsRankings.php:294
1008
  msgid "Do you want to specify a category?"
1009
  msgstr ""
1010
 
1011
+ #: admin/settings/classes/YasrSettingsRankings.php:313
1012
  msgid "Search Categories:"
1013
  msgstr ""
1014
 
1015
+ #: admin/settings/classes/YasrSettingsRankings.php:363
1016
  msgid "Do you want to specify a custom post type?"
1017
  msgstr ""
1018
 
1019
+ #: admin/settings/classes/YasrSettingsRankings.php:404
1020
  msgid "Do you want to use Username or Display Name?"
1021
  msgstr ""
1022
 
1023
+ #: admin/settings/classes/YasrSettingsRankings.php:406
1024
  msgid "Username"
1025
  msgstr ""
1026
 
1027
+ #: admin/settings/classes/YasrSettingsRankings.php:407
1028
  msgid "User display name"
1029
  msgstr ""
1030
 
1031
+ #: admin/settings/classes/YasrSettingsRankings.php:429
1032
  msgid "Choose Multi Set"
1033
  msgstr ""
1034
 
1035
  #: admin/settings/classes/YasrStats.php:175
1036
+ #: includes/classes/YasrLogDashboardWidget.php:197
1037
+ #: includes/yasr-widgets.php:442
1038
  msgid "anonymous"
1039
  msgstr ""
1040
 
1084
  msgstr ""
1085
 
1086
  #: admin/settings/migrations/yasr-settings-migration-page.php:29
1087
+ #: admin/settings/yasr-settings-functions-misc.php:74
1088
  msgid "Migration Tools"
1089
  msgstr ""
1090
 
1114
  "rating for all votes. %s\n"
1115
  " E.g. A post has 130 votes with an average of 4.4: "
1116
  "since is impossible to know the single rating,\n"
1117
+ " Yasr will import 130 votes with an average of 4.4. "
1118
+ "%s\n"
1119
  " Because of this, statistics in front end will be "
1120
  "disabled for all post or page published before \n"
1121
  " the import."
1122
  msgstr ""
1123
 
1124
+ #: admin/settings/migrations/yasr-settings-migration-page.php:81
1125
  msgid "You've already imported WP-PostRatings data on"
1126
  msgstr ""
1127
 
1128
+ #: admin/settings/migrations/yasr-settings-migration-page.php:95
1129
+ #: admin/settings/migrations/yasr-settings-migration-page.php:154
1130
+ #: admin/settings/migrations/yasr-settings-migration-page.php:192
1131
+ #: admin/settings/migrations/yasr-settings-migration-page.php:242
1132
  msgid "Import data"
1133
  msgstr ""
1134
 
1135
+ #: admin/settings/migrations/yasr-settings-migration-page.php:119
1136
  msgid "Plugin found: KK Star Ratings"
1137
  msgstr ""
1138
 
1139
+ #: admin/settings/migrations/yasr-settings-migration-page.php:125
1140
  #, php-format
1141
  msgid ""
1142
  "%s Please note: %s KK Star Ratings doesn't save information about the single "
1147
  "the rating for all votes. %s\n"
1148
  " E.g. A post has 130 votes with an average of "
1149
  "4.4: since is impossible to know the single rating,\n"
1150
+ " Yasr will import 130 votes with an average of "
1151
+ "4.4 %s\n"
1152
  " Because of this, statistics in front end will be "
1153
  "disabled for all post or page published before \n"
1154
  " the import.%s\n"
1157
  " 5 ratings star scale."
1158
  msgstr ""
1159
 
1160
+ #: admin/settings/migrations/yasr-settings-migration-page.php:140
1161
  msgid "You've already imported KK Star Rating data on"
1162
  msgstr ""
1163
 
1164
+ #: admin/settings/migrations/yasr-settings-migration-page.php:175
1165
  msgid "Plugin found: Rate My Post"
1166
  msgstr ""
1167
 
1168
+ #: admin/settings/migrations/yasr-settings-migration-page.php:180
1169
  msgid "You've already imported Rate My Post data on"
1170
  msgstr ""
1171
 
1172
+ #: admin/settings/migrations/yasr-settings-migration-page.php:209
1173
  msgid "Plugin found: Multi Rating"
1174
  msgstr ""
1175
 
1176
+ #: admin/settings/migrations/yasr-settings-migration-page.php:215
1177
  #, php-format
1178
  msgid ""
1179
  "%s Please note: %s depending on the settings, Multi Rating may save data in "
1184
  "the rating for all votes. %s\n"
1185
  " E.g. A post has 130 votes with an average of "
1186
  "4.4: since is impossible to know the single rating,\n"
1187
+ " YASR will import 130 votes with an average of "
1188
+ "4.4. %s\n"
1189
  " Because of this, statistics in front end will be "
1190
  "disabled for all post or page published before \n"
1191
  " the import."
1192
  msgstr ""
1193
 
1194
+ #: admin/settings/migrations/yasr-settings-migration-page.php:228
1195
  msgid "You've already imported Multi Rating data on"
1196
  msgstr ""
1197
 
1203
  msgid "What is a Multi Set?"
1204
  msgstr ""
1205
 
1206
+ #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:68
1207
  msgid ""
1208
  "Multi Set allows you to insert a rate for each aspect about the product / "
1209
  "local business / \n"
1210
  " whetever you're reviewing, example in the image below."
1211
  msgstr ""
1212
 
1213
+ #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:76
1214
  msgid ""
1215
  "You can create up to 99 different Multi Set and each one can contain up to 9 "
1216
  "different fields. \n"
1219
  " as you can see in this image (click to see it larger)"
1220
  msgstr ""
1221
 
1222
+ #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:85
1223
  msgid ""
1224
  "In order to insert your Multi Sets into a post or page, you can either past "
1225
  "the short code that will \n"
1227
  "graphic editor and select \"Insert Multi Set\"."
1228
  msgstr ""
1229
 
1230
+ #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:93
1231
  msgid "Close this message"
1232
  msgstr ""
1233
 
1234
+ #: admin/settings/multiset/yasr-settings-functions-multiset-page.php:119
1235
  msgid "Save"
1236
  msgstr ""
1237
 
1264
  msgid "You can insert up to nine elements"
1265
  msgstr ""
1266
 
1267
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:132
1268
  msgid "Element "
1269
  msgstr ""
1270
 
1271
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:141
1272
  msgid "Create New Set"
1273
  msgstr ""
1274
 
1275
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:161
1276
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:192
1277
  msgid "Manage Multiple Set"
1278
  msgstr ""
1279
 
1280
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:163
1281
  msgid "Wich set do you want to edit or remove?"
1282
  msgstr ""
1283
 
1284
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:171
1285
+ msgid "Select"
1286
+ msgstr ""
1287
+
1288
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:202
1289
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:319
1290
  msgid "Field name"
1291
  msgstr ""
1292
 
1293
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:206
1294
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:323
1295
  msgid "Remove"
1296
  msgstr ""
1297
 
1298
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:244
1299
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:358
1300
  msgid "Remove whole set?"
1301
  msgstr ""
1302
 
1303
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:257
1304
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:371
1305
  msgid ""
1306
  "If you remove something you will remove all the votes for that set or field. "
1307
  "This operation CAN'T BE undone."
1308
  msgstr ""
1309
 
1310
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:265
1311
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:379
1312
  msgid "You can use up to 9 elements"
1313
  msgstr ""
1314
 
1315
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:270
1316
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:382
1317
  msgid "Add element"
1318
  msgstr ""
1319
 
1320
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:274
1321
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:384
1322
  msgid "Save changes"
1323
  msgstr ""
1324
 
1325
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:283
1326
  msgid "No Multiple Set were found"
1327
  msgstr ""
1328
 
1329
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:425
1330
+ msgid "Content field must be longer than 3 chars"
1331
+ msgstr ""
1332
+
1333
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:431
1334
+ msgid "Content field must be shorter than 40 chars"
1335
+ msgstr ""
1336
+
1337
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:440
1338
+ msgid "You already have a set with this name"
1339
+ msgstr ""
1340
+
1341
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:456
1342
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:664
1343
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:730
1344
+ #, php-format
1345
+ msgid "Field # %d must be at least 3 characters"
1346
+ msgstr ""
1347
+
1348
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:464
1349
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:671
1350
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:737
1351
+ #, php-format
1352
+ msgid "Field # %d must be shorter than 40 characters"
1353
+ msgstr ""
1354
+
1355
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:532
1356
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:787
1357
  msgid "Settings Saved"
1358
  msgstr ""
1359
 
1360
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:535
1361
  msgid "Something goes wrong trying insert set field name. Please report it"
1362
  msgstr ""
1363
 
1364
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:542
1365
  msgid "Something goes wrong trying insert Multi Set name. Please report it"
1366
  msgstr ""
1367
 
1368
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:553
1369
+ msgid "Multi Set's name and first 2 elements can't be empty"
1370
+ msgstr ""
1371
+
1372
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:615
1373
  msgid "Something goes wrong trying to delete a Multi Set . Please report it"
1374
  msgstr ""
1375
 
1376
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:647
1377
  msgid ""
1378
  "Something goes wrong trying to delete a Multi Set's element. Please report it"
1379
  msgstr ""
1380
 
1381
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:710
1382
  msgid ""
1383
  "Something goes wrong trying to update a Multi Set's element. Please report it"
1384
  msgstr ""
1385
 
1386
+ #: admin/settings/multiset/yasr-settings-functions-multiset.php:774
1387
  msgid ""
1388
  "Something goes wrong trying to insert set field name in edit form. Please "
1389
  "report it"
1397
  msgid "Ranking preview"
1398
  msgstr ""
1399
 
1400
+ #: admin/settings/yasr-settings-functions-misc.php:19
 
 
 
 
1401
  msgid "General Settings"
1402
  msgstr ""
1403
 
1404
+ #: admin/settings/yasr-settings-functions-misc.php:28
1405
  msgid "Aspect & Styles"
1406
  msgstr ""
1407
 
1408
+ #: admin/settings/yasr-settings-functions-misc.php:95
1409
  msgid "Auto Insert Options"
1410
  msgstr ""
1411
 
1412
+ #: admin/settings/yasr-settings-functions-misc.php:99
1413
  #, php-format
1414
  msgid ""
1415
  "Automatically adds YASR in your posts or pages. %s\n"
1416
  " Disable this if you prefer to use shortcodes."
1417
  msgstr ""
1418
 
1419
+ #: admin/settings/yasr-settings-functions-misc.php:117
1420
  msgid "Enable stars next to the title?"
1421
  msgstr ""
1422
 
1423
+ #: admin/settings/yasr-settings-functions-misc.php:120
1424
+ msgid "Enable this if you want to show stars next to the title."
1425
+ msgstr ""
1426
+
1427
+ #: admin/settings/yasr-settings-functions-misc.php:122
1428
+ msgid "Please note that this may not work with all themes"
1429
  msgstr ""
1430
 
1431
+ #: admin/settings/yasr-settings-functions-misc.php:134
1432
  msgid "Archive Pages"
1433
  msgstr ""
1434
 
1435
+ #: admin/settings/yasr-settings-functions-misc.php:138
1436
  msgid ""
1437
  "Enable or disable these settings if you want to show ratings in archive "
1438
  "pages (categories, tags, etc.)"
1439
  msgstr ""
1440
 
1441
+ #: admin/settings/yasr-settings-functions-misc.php:151
1442
  msgid "Show stats for visitors votes?"
1443
  msgstr ""
1444
 
1445
+ #: admin/settings/yasr-settings-functions-misc.php:155
1446
  #, php-format
1447
  msgid ""
1448
  "Enable or disable the chart bar icon (and tooltip hover it) next to the "
1449
  "%syasr_visitor_votes%s shortcode"
1450
  msgstr ""
1451
 
1452
+ #: admin/settings/yasr-settings-functions-misc.php:169
1453
  msgid "Who is allowed to vote?"
1454
  msgstr ""
1455
 
1456
+ #: admin/settings/yasr-settings-functions-misc.php:173
1457
  #, php-format
1458
  msgid ""
1459
  "Select who can rate your posts for %syasr_visitor_votes%s and "
1460
  "%syasr_visitor_multiset%s shortcodes"
1461
  msgstr ""
1462
 
1463
+ #: admin/settings/yasr-settings-functions-misc.php:188
1464
+ msgid "Customize strings"
1465
  msgstr ""
1466
 
1467
+ #: admin/settings/yasr-settings-functions-misc.php:191
1468
+ msgid "Customize YASR strings."
1469
  msgstr ""
1470
 
1471
+ #: admin/settings/yasr-settings-functions-misc.php:203
1472
  msgid "Stuctured data options"
1473
  msgstr ""
1474
 
1475
+ #: admin/settings/yasr-settings-functions-misc.php:206
1476
  msgid ""
1477
  "If ratings in a post or page are found, YASR will create structured data to "
1478
  "show them in search results\n"
1479
  " (SERP)"
1480
  msgstr ""
1481
 
1482
+ #: admin/settings/yasr-settings-functions-misc.php:210
1483
  msgid "More info here"
1484
  msgstr ""
1485
 
1486
+ #: admin/settings/yasr-settings-functions-misc.php:223
1487
  msgid "Upgrade to YASR Pro"
1488
  msgstr ""
1489
 
1490
+ #: admin/settings/yasr-settings-functions-misc.php:227
1491
  msgid " User Reviews"
1492
  msgstr ""
1493
 
1494
+ #: admin/settings/yasr-settings-functions-misc.php:228
1495
  msgid " Custom Rankings"
1496
  msgstr ""
1497
 
1498
+ #: admin/settings/yasr-settings-functions-misc.php:229
1499
  msgid " 20 + ready to use themes"
1500
  msgstr ""
1501
 
1502
+ #: admin/settings/yasr-settings-functions-misc.php:230
1503
  msgid " Upload your own theme"
1504
  msgstr ""
1505
 
1506
+ #: admin/settings/yasr-settings-functions-misc.php:231
1507
  msgid " Dedicate support"
1508
  msgstr ""
1509
 
1510
+ #: admin/settings/yasr-settings-functions-misc.php:232
1511
  msgid " ...And much more!!"
1512
  msgstr ""
1513
 
1514
+ #: admin/settings/yasr-settings-functions-misc.php:237
1515
  msgid "Upgrade Now"
1516
  msgstr ""
1517
 
1518
+ #: admin/settings/yasr-settings-functions-misc.php:247
1519
  msgid "Start Free Trial"
1520
  msgstr ""
1521
 
1522
+ #: admin/settings/yasr-settings-functions-misc.php:250
1523
  msgid "No credit-card, risk free!"
1524
  msgstr ""
1525
 
1526
+ #: admin/settings/yasr-settings-functions-misc.php:276
1527
  msgid "YASR official website"
1528
  msgstr ""
1529
 
1530
+ #: admin/settings/yasr-settings-functions-misc.php:289
1531
  msgid "Documentation"
1532
  msgstr ""
1533
 
1534
+ #: admin/settings/yasr-settings-functions-misc.php:295
1535
  msgid "F.A.Q."
1536
  msgstr ""
1537
 
1538
+ #: admin/settings/yasr-settings-functions-misc.php:301
1539
  msgid "Youtube channel"
1540
  msgstr ""
1541
 
1542
+ #: admin/settings/yasr-settings-functions-misc.php:322
1543
  msgid "Coffee is vital to make YASR development going on!"
1544
  msgstr ""
1545
 
1546
+ #: admin/settings/yasr-settings-functions-misc.php:326
1547
  msgid ""
1548
  "If you are enjoying YASR, and you don't need the pro version, please "
1549
  "consider to buy me a coffee, thanks!"
1550
  msgstr ""
1551
 
1552
+ #: admin/settings/yasr-settings-functions-misc.php:329
1553
  msgid "If you are enjoying YASR, please consider to buy me a coffee, thanks!"
1554
  msgstr ""
1555
 
1556
+ #: admin/settings/yasr-settings-functions-misc.php:335
1557
  msgid "Buy me a coffee!"
1558
  msgstr ""
1559
 
1560
+ #: admin/settings/yasr-settings-functions-misc.php:358
1561
+ msgid "You may also like..."
1562
+ msgstr ""
1563
+
1564
+ #: admin/settings/yasr-settings-functions-misc.php:373
1565
+ msgid ""
1566
+ "Movie Helper allows you to easily add links to movie and tv shows, just by "
1567
+ "searching\n"
1568
+ " them while you're writing your content. Search, click, done!"
1569
+ msgstr ""
1570
+
1571
+ #: admin/settings/yasr-settings-functions-misc.php:401
1572
+ msgid ""
1573
+ "\"Comments Not Replied To\" introduces a new area in the administrative "
1574
+ "dashboard that allows you to\n"
1575
+ " see what comments to which you - as the site author - have not yet "
1576
+ "replied."
1577
+ msgstr ""
1578
+
1579
+ #: admin/settings/yasr-settings-functions-misc.php:414
1580
  msgid "Can I ask your help?"
1581
  msgstr ""
1582
 
1583
+ #: admin/settings/yasr-settings-functions-misc.php:422
1584
  msgid "Please rate YASR 5 stars on"
1585
  msgstr ""
1586
 
1587
+ #: admin/settings/yasr-settings-functions-misc.php:425
1588
  msgid " It will require just 1 min but it's a HUGE help for me. Thank you."
1589
  msgstr ""
1590
 
1591
+ #: admin/settings/yasr-settings-functions-misc.php:464
1592
  #, php-format
1593
+ msgid "Thank you for using %s. Please %s rate it%s 5 stars on %s"
 
 
 
 
1594
  msgstr ""
1595
 
1596
+ #: admin/settings/yasr-settings-page.php:33 admin/yasr-admin-functions.php:130
1597
+ #: yet-another-stars-rating.php:181
1598
  msgid "Settings"
1599
  msgstr ""
1600
 
1601
+ #: admin/settings/yasr-stats-page.php:39
1602
  msgid "Ratings Stats"
1603
  msgstr ""
1604
 
1605
+ #: admin/settings/yasr-stats-page.php:52
1606
  msgid "MultiSet"
1607
  msgstr ""
1608
 
1609
+ #: admin/settings/yasr-stats-page.php:67
1610
  msgid "Upgrade"
1611
  msgstr ""
1612
 
1614
  msgid "This shortcode was not found."
1615
  msgstr ""
1616
 
1617
+ #: admin/yasr-admin-functions.php:133
1618
+ msgid "Manage Ratings"
1619
  msgstr ""
1620
 
1621
+ #: admin/yasr-admin-functions.php:171
1622
+ msgid "Contact Us"
 
1623
  msgstr ""
1624
 
1625
+ #: admin/yasr-admin-init.php:32 includes/classes/YasrScriptsLoader.php:559
1626
  msgid "This feature is available only in the pro version"
1627
  msgstr ""
1628
 
1629
+ #: admin/yasr-admin-init.php:46
1630
+ #, php-format
1631
+ msgid "Upgrade to %s to unlock this feature"
1632
+ msgstr ""
1633
+
1634
+ #: includes/classes/YasrDefineOptions.php:158
1635
+ msgid "Save All Settings"
1636
+ msgstr ""
1637
+
1638
+ #: includes/classes/YasrLogDashboardWidget.php:111
1639
  msgid "You must login to see this widget."
1640
  msgstr ""
1641
 
1642
+ #: includes/classes/YasrLogDashboardWidget.php:186
1643
  msgid "No Recent votes yet"
1644
  msgstr ""
1645
 
1646
+ #: includes/classes/YasrLogDashboardWidget.php:207
1647
  #, php-format
1648
  msgid "Vote %d from %s on"
1649
  msgstr ""
1650
 
1651
+ #: includes/classes/YasrLogDashboardWidget.php:213
1652
  #, php-format
1653
  msgid "You rated %s on"
1654
  msgstr ""
1655
 
1656
+ #: includes/classes/YasrLogDashboardWidget.php:224
1657
  msgid "Ip address"
1658
  msgstr ""
1659
 
1660
+ #: includes/classes/YasrLogDashboardWidget.php:255
1661
  msgid "Pages"
1662
  msgstr ""
1663
 
1664
+ #: includes/classes/YasrScriptsLoader.php:69
1665
+ msgid "star"
1666
  msgstr ""
1667
 
1668
+ #: includes/classes/YasrScriptsLoader.php:70
1669
+ msgid "stars"
1670
+ msgstr ""
1671
+
1672
+ #: includes/classes/YasrScriptsLoader.php:72
1673
+ msgid "Rating"
1674
  msgstr ""
1675
 
1676
+ #: includes/classes/YasrScriptsLoader.php:73
1677
+ msgid "Loading, please wait"
1678
  msgstr ""
1679
 
1680
+ #: includes/classes/YasrScriptsLoader.php:74
1681
+ msgid "out of 5 stars"
1682
  msgstr ""
1683
 
1684
+ #: includes/classes/YasrScriptsLoader.php:75
1685
+ msgid "Order by"
1686
  msgstr ""
1687
 
1688
+ #: includes/classes/YasrScriptsLoader.php:78
1689
  msgid "Post"
1690
  msgstr ""
1691
 
1692
+ #: includes/classes/YasrSettingsValues.php:81
1693
+ msgid "Our Score"
1694
  msgstr ""
1695
 
1696
+ #: includes/classes/YasrSettingsValues.php:82
1697
+ msgid "Click to rate this post!"
1698
  msgstr ""
1699
 
1700
+ #: includes/classes/YasrSettingsValues.php:84
1701
+ #, php-format
1702
+ msgid "[Total: %s Average: %s]"
1703
  msgstr ""
1704
 
1705
+ #: includes/classes/YasrSettingsValues.php:87
1706
+ msgid "Rating saved!"
1707
  msgstr ""
1708
 
1709
+ #: includes/classes/YasrSettingsValues.php:88
1710
+ msgid "Rating updated!"
1711
  msgstr ""
1712
 
1713
+ #: includes/classes/YasrSettingsValues.php:90
1714
+ msgid "You have already voted for this article with rating "
1715
  msgstr ""
1716
 
1717
+ #: includes/classes/YasrSettingsValues.php:91
1718
+ msgid "You must sign in to vote"
1719
  msgstr ""
1720
 
1721
+ #: includes/rest/classes/YasrCustomEndpoint.php:181
1722
  msgid "No posts found. Try remove some filters"
1723
  msgstr ""
1724
 
1725
+ #: includes/rest/classes/YasrCustomEndpoint.php:213
1726
  msgid "Invalid Post ID"
1727
  msgstr ""
1728
 
1729
+ #: includes/rest/classes/YasrCustomEndpoint.php:222
1730
  msgid "Post ID doesn't exists"
1731
  msgstr ""
1732
 
1733
+ #: includes/rest/classes/YasrCustomEndpoint.php:244
1734
+ msgid "Invalid Comment ID"
1735
+ msgstr ""
1736
+
1737
+ #: includes/rest/classes/YasrCustomEndpoint.php:351
1738
+ msgid "This Multi Set doesn't exists"
1739
+ msgstr ""
1740
+
1741
+ #: includes/shortcodes/classes/YasrMultiSet.php:89
1742
  msgid "No Set Found with this ID"
1743
  msgstr ""
1744
 
1745
+ #: includes/shortcodes/classes/YasrMultiSet.php:212
1746
  msgid "Average"
1747
  msgstr ""
1748
 
1752
  "any review?"
1753
  msgstr ""
1754
 
1755
+ #: includes/shortcodes/classes/YasrNoStarsRankings.php:69
1756
  msgid ""
1757
  "Problem while retrieving the top 10 active users chart. Are you sure you "
1758
  "have votes to show?"
1759
  msgstr ""
1760
 
1761
+ #: includes/shortcodes/classes/YasrNoStarsRankings.php:86
1762
  msgid "User"
1763
  msgstr ""
1764
 
1765
+ #: includes/shortcodes/classes/YasrNoStarsRankings.php:87
1766
  msgid "Number of votes"
1767
  msgstr ""
1768
 
1769
+ #: includes/shortcodes/classes/YasrNoStarsRankings.php:89
1770
  msgid "Author"
1771
  msgstr ""
1772
 
1773
+ #: includes/shortcodes/classes/YasrNoStarsRankings.php:90
1774
  msgid "Reviews"
1775
  msgstr ""
1776
 
1777
+ #: includes/shortcodes/classes/YasrNoStarsRankings.php:119
1778
  msgid "Anonymous"
1779
  msgstr ""
1780
 
1781
+ #: includes/shortcodes/classes/YasrNoStarsRankings.php:128
1782
  msgid "Account deleted"
1783
  msgstr ""
1784
 
1785
+ #: includes/shortcodes/classes/YasrRankings.php:198
1786
+ #: includes/shortcodes/classes/YasrRankings.php:239
1787
  msgid "No posts found with these parameters. Try to remove some filters."
1788
  msgstr ""
1789
 
1790
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:74
1791
+ msgid "Error in Ajax Call, missing required param."
1792
  msgstr ""
1793
 
1794
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:94
1795
+ msgid "Only logged in user can rate."
1796
  msgstr ""
1797
 
1798
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:132
1799
+ msgid "Error in Ajax Call, rating can't be saved"
1800
  msgstr ""
1801
 
1802
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:252
1803
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:411
1804
+ msgid "Error in Ajax Call, rating can't be saved."
1805
  msgstr ""
1806
 
1807
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:329
1808
+ msgid "Missing post id or set id"
1809
+ msgstr ""
1810
+
1811
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:333
1812
+ msgid "Error with rating"
1813
+ msgstr ""
1814
+
1815
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:336
1816
+ msgid "Missing required param"
1817
+ msgstr ""
1818
+
1819
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:511
1820
+ msgid "Rating Saved"
1821
+ msgstr ""
1822
+
1823
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:646
1824
  msgid "Wrong nonce. Rating can't be updated"
1825
  msgstr ""
1826
 
1827
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:682
1828
+ msgid "Can't show rankings, wrong nonce."
 
1829
  msgstr ""
1830
 
1831
+ #: includes/shortcodes/classes/YasrShortcodesAjax.php:762
1832
+ msgid "Not in Ajax Contest"
1833
  msgstr ""
1834
 
1835
+ #: includes/shortcodes/classes/YasrVisitorMultiSet.php:63
1836
+ #: includes/shortcodes/classes/YasrVisitorMultiSet.php:71
1837
+ msgid "Submit!"
1838
  msgstr ""
1839
 
1840
+ #: includes/shortcodes/classes/YasrVisitorMultiSet.php:164
1841
+ msgid "Thank you for voting!"
1842
  msgstr ""
1843
 
1844
  #: includes/yasr-widgets.php:43
1849
  msgid "Display Overall Rating"
1850
  msgstr ""
1851
 
1852
+ #: includes/yasr-widgets.php:98
1853
  msgid "Our Rating:"
1854
  msgstr ""
1855
 
1856
+ #: includes/yasr-widgets.php:111 includes/yasr-widgets.php:289
1857
+ #: includes/yasr-widgets.php:510
1858
  msgid "Title:"
1859
  msgstr ""
1860
 
1861
+ #: includes/yasr-widgets.php:121 includes/yasr-widgets.php:307
1862
  msgid "Size:"
1863
  msgstr ""
1864
 
1865
+ #: includes/yasr-widgets.php:208
1866
  msgid "Yasr Visitor Votes"
1867
  msgstr ""
1868
 
1869
+ #: includes/yasr-widgets.php:210
1870
  msgid "Show Yasr Visitor Votes"
1871
  msgstr ""
1872
 
1873
+ #: includes/yasr-widgets.php:268
1874
  msgid "Rate This:"
1875
  msgstr ""
1876
 
1877
+ #: includes/yasr-widgets.php:398
1878
  msgid "Yasr Recent Ratings"
1879
  msgstr ""
1880
 
1881
+ #: includes/yasr-widgets.php:400
1882
  msgid "Show the 5 most recent rated posts"
1883
  msgstr ""
1884
 
1885
+ #: includes/yasr-widgets.php:454
1886
  #, php-format
1887
  msgid "Vote %s from %s on"
1888
  msgstr ""
1889
 
1890
+ #: includes/yasr-widgets.php:476
1891
  msgid "No recent ratings yet"
1892
  msgstr ""
1893
 
1894
+ #: includes/yasr-widgets.php:503
1895
  msgid "Recent Ratings"
1896
  msgstr ""
1897
 
1898
+ #: yet-another-stars-rating.php:202
1899
  msgid "Buy Yasr Pro"
1900
  msgstr ""
1901
 
1902
+ #: yet-another-stars-rating.php:209
1903
  msgid "Thank you for using Yasr Pro"
1904
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: rating, rate post, star rating, google rating, block
4
  Requires at least: 4.7
5
  Contributors: Dudo
6
  Tested up to: 6.0
7
- Stable tag: 3.0.8
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
@@ -204,6 +204,9 @@ Yes, YASR is 100% fully compatible with PHP 8
204
 
205
  The full changelog can be found in the plugin's directory. Recent entries:
206
 
 
 
 
207
  = 3.0.8 =
208
  * FIXED: YASR gutenberg panel didn't shop up once hidden
209
  * TWEAKED: minor changes
@@ -233,25 +236,5 @@ The full changelog can be found in the plugin's directory. Recent entries:
233
  * FIX: Author multiset didn't get saved
234
  * TWEAKED: better error handling
235
 
236
- = 3.0.3 =
237
- * FIX: if parameter 'show_average' is enabled on a multi set, a duplicate query was run.
238
- * TWEAKED: loader image has height and width attributes set.
239
- * TWEAKED: minor changes
240
-
241
-
242
- = 3.0.2 =
243
- * Updated Freemius SDK
244
-
245
- = 3.0.1 =
246
- * Minor changes and new pricing page.
247
-
248
- = 3.0.0 =
249
- * Fix for an authenticated XSS vulnerability if 'Load results with AJAX?' is enabled
250
-
251
- = 2.9.9 =
252
- * TWEAKED: removed "Pro only features" box in the editor screen
253
-
254
-
255
-
256
  = Additional Info =
257
  See credits.txt file
4
  Requires at least: 4.7
5
  Contributors: Dudo
6
  Tested up to: 6.0
7
+ Stable tag: 3.0.9
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
204
 
205
  The full changelog can be found in the plugin's directory. Recent entries:
206
 
207
+ = 3.0.9 =
208
+ * TWEAKED: code cleanup in gutenberg blocks
209
+
210
  = 3.0.8 =
211
  * FIXED: YASR gutenberg panel didn't shop up once hidden
212
  * TWEAKED: minor changes
236
  * FIX: Author multiset didn't get saved
237
  * TWEAKED: better error handling
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  = Additional Info =
240
  See credits.txt file
yet-another-stars-rating.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Yet Another Stars Rating
5
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
  * Description: Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
7
- * Version: 3.0.8
8
  * Requires at least: 4.7
9
  * Requires PHP: 5.4
10
  * Author: Dario Curvino
@@ -78,7 +78,7 @@ if ( !function_exists( 'yasr_fs' ) ) {
78
  yasr_fs();
79
  // Signal that SDK was initiated.
80
  do_action( 'yasr_fs_loaded' );
81
- define( 'YASR_VERSION_NUM', '3.0.8' );
82
  //Plugin absolute path
83
  //e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
84
  define( 'YASR_ABSOLUTE_PATH', __DIR__ );
4
  * Plugin Name: Yet Another Stars Rating
5
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
  * Description: Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
7
+ * Version: 3.0.9
8
  * Requires at least: 4.7
9
  * Requires PHP: 5.4
10
  * Author: Dario Curvino
78
  yasr_fs();
79
  // Signal that SDK was initiated.
80
  do_action( 'yasr_fs_loaded' );
81
+ define( 'YASR_VERSION_NUM', '3.0.9' );
82
  //Plugin absolute path
83
  //e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
84
  define( 'YASR_ABSOLUTE_PATH', __DIR__ );