Changeset 3433692
- Timestamp:
- 01/06/2026 02:16:29 PM (5 days ago)
- Location:
- decent-comments/trunk
- Files:
-
- 32 edited
-
blocks/class-decent-comments-blocks.php (modified) (1 diff)
-
blocks/decent-comments/build/index.asset.php (modified) (1 diff)
-
blocks/decent-comments/build/index.js (modified) (1 diff)
-
blocks/decent-comments/build/view.asset.php (modified) (1 diff)
-
blocks/decent-comments/build/view.js (modified) (1 diff)
-
blocks/decent-comments/src/index.js (modified) (1 diff)
-
blocks/decent-comments/src/view.js (modified) (2 diffs)
-
changelog.txt (modified) (1 diff)
-
class-decent-comments-rest.php (modified) (9 diffs)
-
decent-comments.php (modified) (2 diffs)
-
languages/decent-comments-ca_ES.mo (modified) (previous)
-
languages/decent-comments-ca_ES.po (modified) (10 diffs)
-
languages/decent-comments-de_DE.mo (modified) (previous)
-
languages/decent-comments-de_DE.po (modified) (10 diffs)
-
languages/decent-comments-de_DE_formal.mo (modified) (previous)
-
languages/decent-comments-de_DE_formal.po (modified) (10 diffs)
-
languages/decent-comments-es_ES.mo (modified) (previous)
-
languages/decent-comments-es_ES.po (modified) (10 diffs)
-
languages/decent-comments-fr_FR.mo (modified) (previous)
-
languages/decent-comments-fr_FR.po (modified) (12 diffs)
-
languages/decent-comments-it_IT.mo (modified) (previous)
-
languages/decent-comments-it_IT.po (modified) (12 diffs)
-
languages/decent-comments-lt_LT.mo (modified) (previous)
-
languages/decent-comments-lt_LT.po (modified) (12 diffs)
-
languages/decent-comments-pt_PT.mo (modified) (previous)
-
languages/decent-comments-pt_PT.po (modified) (12 diffs)
-
languages/decent-comments-ru_RU.mo (modified) (previous)
-
languages/decent-comments-ru_RU.po (modified) (10 diffs)
-
languages/decent-comments-zh_CN.mo (modified) (previous)
-
languages/decent-comments-zh_CN.po (modified) (11 diffs)
-
languages/decent-comments.pot (modified) (10 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
decent-comments/trunk/blocks/class-decent-comments-blocks.php
r3424828 r3433692 114 114 __DIR__ . '/decent-comments/build/block.json', 115 115 array( 116 'api_version' => '3', 116 117 'style_handles' => array( 'decent-comments' ), 117 118 'editor_script' => 'decent-comments-block-editor', -
decent-comments/trunk/blocks/decent-comments/build/index.asset.php
r3424828 r3433692 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => ' 733fbd31e7abb4aab232');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'd524a6e4a42d8bc0f05f'); -
decent-comments/trunk/blocks/decent-comments/build/index.js
r3424828 r3433692 1 (()=>{"use strict";var e={723(e){e.exports=window.wp.i18n},727(e,t,o){o.d(t,{PU:()=>l,p4:()=>r});const n=window.wp.apiFetch;var s=o.n(n),a=o(723),c=o(790);async function r(e,t){const o=function(e){const t={number:e.number||5,offset:e.offset||0,order:e.order||"asc",orderby:e.orderby||"comment_author_email",...e.post_id&&{post_id:e.post_id},...e.post__in&&{post__in:e.post__in},...e.post__not_in&&{post__not_in:e.post__not_in},...e.post_type&&{post_type:e.post_type},...e.taxonomy&&{taxonomy:e.taxonomy},...e.terms&&{terms:e.terms},...e.term_ids&&{term_ids:e.term_ids},...e.exclude_post_author&&{exclude_post_author:e.exclude_post_author},...e.pingback&&{pingback:e.pingback},...e.trackback&&{trackback:e.trackback},...e.avatar_size&&{avatar_size:e.avatar_size}};return new URLSearchParams(t)}(e);return await s()({path:`decent-comments/v1/comments?${o.toString()}`,method:"GET",headers:{"X-WP-Nonce":t}})}const l=({comments:e,attributes:t})=>(0,c.jsxs)("div",{className:"decent-comments",children:[t.title?.length>0&&(0,c.jsx)("div",{className:"decent-comments-heading gamma widget-title",children:t.title}),(0,c.jsx)("ul",{className:"decent-comments-list",children:0===e.length?(0,c.jsx)("li",{className:"comment no-comment",children:(0,a.__)("No comments","decent-comments")}):e.filter(e=>!t.exclude_post_author||e.author_email!==e.post_author).map(e=>(0,c.jsx)(m,{comment:e,attributes:t},e.id))})]}),m=({comment:e,attributes:t})=>{const o=t.show_author?t.link_authors&&e.author_url?(0,c.jsx)("a",{href:_(e.author_url),className:"comment-author-link",children:e.author}):e.author:null,n=t.show_date?`${e.date} ${(0,a.__)("at","decent-comments")} ${e.time}`:null;let s="",r="";e.author_url&&(s='<a href="'+e.author_url+'" rel="external">',r="</a>");const l=t.show_avatar&&e.avatar?(0,c.jsx)("div",{className:"comment-avatar",dangerouslySetInnerHTML:{__html:s+e.avatar+r}}):null,m=t.show_comment?function(e,t){let o=t.show_excerpt?e:"";if(t.strip_tags&&(o=o.replace(/(<([^>]+)>)/gi,"")),t.max_excerpt_words>0){const e=o.split(" ");o=e.slice(0,t.max_excerpt_words).join(" ")+(e.length>t.max_excerpt_words?t.ellipsis:"")}return t.max_excerpt_characters>0&&(o=o.substring(0,t.max_excerpt_characters)+(o.length>t.max_excerpt_characters?t.ellipsis:"")),o}(e.content,t):"",i=t.show_link&&e.comment_link?(0,c.jsxs)("div",{className:"comment-link",children:[(0,a.__)("on","decent-comments")," ",(0,c.jsx)("a",{href:_(e.comment_link),className:"comment-post-title",children:e.post_title||""})]}):null;return(0,c.jsx)("li",{className:"comment-entry",children:(0,c.jsxs)("div",{className:"comment-content",children:[l,o&&(0,c.jsxs)("div",{className:"comment-author",children:[o," "]}),n&&(0,c.jsxs)("div",{className:"comment-date",children:[n," "]}),i," ",m&&(0,c.jsx)("div",{className:"comment-excerpt",children:m})]})},e.id)};function _(e){try{const t=new URL(e);return["http:","https:"].includes(t.protocol)?encodeURI(e):"#"}catch{return"#"}}},790(e){e.exports=window.ReactJSXRuntime}},t={};function o(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=window.wp.blocks;var s=o(723);const a=window.wp.blockEditor,c=window.wp.components,r=JSON.parse('{"UU":"decent-comments-block/decent-comments"}'),l=window.wp.element;var m=o(727),_=o(790);(0,n.registerBlockType)(r.UU,{apiVersion:3,title:(0,s.__)("Decent Comments","decent-comments"),icon:"admin-comments",category:"widgets",attributes:{title:{type:"string",default:""},number:{type:"number",default:5},offset:{type:"number",default:0},post_id:{type:"string",default:""},post__in:{type:"string",default:""},post__not_in:{type:"string",default:""},post_tag:{type:"string",default:""},exclude_post_author:{type:"boolean",default:!1},show_author:{type:"boolean",default:!0},show_date:{type:"boolean",default:!0},link_authors:{type:"boolean",default:!0},show_avatar:{type:"boolean",default:!0},avatar_size:{type:"number",default:48},show_link:{type:"boolean",default:!0},show_comment:{type:"boolean",default:!0},taxonomy:{type:"string",default:""},terms:{type:"string",default:""},pingback:{type:"boolean",default:!0},trackback:{type:"boolean",default:!0},show_excerpt:{type:"boolean",default:!0},max_excerpt_words:{type:"number",default:20},max_excerpt_characters:{type:"number",default:0},ellipsis:{type:"string",default:""},strip_tags:{type:"boolean",default:!0},order:{type:"string",default:"desc"},orderby:{type:"string",default:"comment_date_gmt"},class:{type:"string",default:""},post_type:{type:"string",default:"post"}},edit:({attributes:e,setAttributes:t})=>{(0,a.useBlockProps)();const[o,n]=(0,l.useState)([]),[r,i]=(0,l.useState)(null);return(0,l.useEffect)(()=>{(async()=>{try{const t={...e};"[current]"!==e.post_id&&"{current}"!==e.post_id||(t.post_id=""),"[current]"!==e.terms&&"{current}"!==e.terms||(t.term_ids="");const o=window.decentCommentsEdit?.nonce||"",s=await(0,m.p4)(t,o);n(s.comments||[]),i(null)}catch(e){i(e),n([])}})()},[e]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a.InspectorControls,{children:(0,_.jsxs)(c.PanelBody,{title:(0,s.__)("Comment Settings","decent-comments"),children:[(0,_.jsx)(c.TextControl,{label:(0,s.__)("Title","decent-comments"),value:e.title,onChange:e=>t({title:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of Comments","decent-comments"),value:e.number,onChange:e=>t({number:parseInt(e)||5}),min:"1",type:"number"}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Order by...","decent-comments"),value:e.orderby,options:[{label:(0,s.__)("Author Email","decent-comments"),value:"comment_author_email"},{label:(0,s.__)("Author URL","decent-comments"),value:"comment_author_url"},{label:(0,s.__)("Content","decent-comments"),value:"comment_content"},{label:(0,s.__)("Comment Date","decent-comments"),value:"comment_date_gmt"},{label:(0,s.__)("Karma","decent-comments"),value:"comment_karma"},{label:(0,s.__)("Post","decent-comments"),value:"comment_post_id"}],onChange:e=>t({orderby:e})}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Sort order","decent-comments"),value:e.order,options:[{label:(0,s.__)("Descending","decent-comments"),value:"desc"},{label:(0,s.__)("Ascending","decent-comments"),value:"asc"}],onChange:e=>t({order:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Post ID","decent-comments"),value:e.post_id,onChange:e=>t({post_id:e||""}),help:(0,s.__)("Title, empty, post ID or [current]","decent-comments")}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Post type","decent-comments"),value:e.post_type,onChange:e=>t({post_type:e}),help:(0,s.__)("Available post types: "+decentCommentsEdit.post_types,"decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Exclude comments from post authors","decent-comments"),checked:e.exclude_post_author,onChange:e=>t({exclude_post_author:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show comment excerpt","decent-comments"),checked:e.show_excerpt,onChange:e=>t({show_excerpt:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of words in excerpts","decent-comments"),value:e.max_excerpt_words,onChange:e=>t({max_excerpt_words:parseInt(e)||20}),min:"0",type:"number"}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of characters in excerpts","decent-comments"),value:e.max_excerpt_characters,onChange:e=>t({max_excerpt_characters:parseInt(e)||0}),min:"0",type:"number"}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Ellipsis"),value:e.ellipsis,onChange:e=>t({ellipsis:e}),help:(0,s.__)("The ellipsis is shown after the excerpt when there is more content.","decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show author","decent-comments"),checked:e.show_author,onChange:e=>t({show_author:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show date","decent-comments"),checked:e.show_date,onChange:e=>t({show_date:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Link authors","decent-comments"),checked:e.link_authors,onChange:e=>t({link_authors:e}),help:(0,s.__)("Whether to link comment authors to their website.","decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show avatar","decent-comments"),checked:e.show_avatar,onChange:e=>t({show_avatar:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Avatar size","decent-comments"),value:e.avatar_size,onChange:e=>t({avatar_size:parseInt(e)||48}),min:"0",type:"number"}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show link to post","decent-comments"),checked:e.show_link,onChange:e=>t({show_link:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show the comment","decent-comments"),checked:e.show_comment,onChange:e=>t({show_comment:e})}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Taxonomy","decent-comments"),value:e.taxonomy,options:[{label:(0,s.__)("All post taxonomies","decent-comments"),value:""},{label:(0,s.__)("category","decent-comments"),value:"category"},{label:(0,s.__)("tag","decent-comments"),value:"post_tag"}],onChange:e=>t({taxonomy:e}),help:(0,s.__)("Select category if you would like to show comments on posts in certain categories. Give the desired categories' slugs in Term. For tags select post_tag and give the tags' slugs in Term.","decent-comments")}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Term","decent-comments"),value:e.terms,onChange:e=>t({terms:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Pingbacks","decent-comments"),checked:e.pingback,onChange:e=>t({pingback:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Trackbacks","decent-comments"),checked:e.trackback,onChange:e=>t({trackback:e})})]})}),(0,_.jsx)("div",{...(0,a.useBlockProps)({className:"wp-block-itthinx-decent-comments","data-attributes":JSON.stringify(e)}),children:r?(0,_.jsx)("div",{className:"decent-comments-error",children:(0,_.jsxs)("p",{children:[(0,s.__)("Error loading comments in editor","decent-comments"),r.message&&`: ${r.message}`]})}):(0,_.jsx)("div",{className:"wp-block-itthinx-decent-comments",children:(0,_.jsx)(m.PU,{comments:o,attributes:e})})})]})},save:({attributes:e})=>(0,_.jsx)("div",{className:"wp-block-itthinx-decent-comments","data-attributes":JSON.stringify(e),children:(0,_.jsx )("p",{children:(0,s.__)("Decent Comments Placeholder","decent-comments")})})})})();1 (()=>{"use strict";var e={723(e){e.exports=window.wp.i18n},727(e,t,o){o.d(t,{PU:()=>l,p4:()=>r});const n=window.wp.apiFetch;var s=o.n(n),a=o(723),c=o(790);async function r(e,t){const o=function(e){const t={number:e.number||5,offset:e.offset||0,order:e.order||"asc",orderby:e.orderby||"comment_author_email",...e.post_id&&{post_id:e.post_id},...e.post__in&&{post__in:e.post__in},...e.post__not_in&&{post__not_in:e.post__not_in},...e.post_type&&{post_type:e.post_type},...e.taxonomy&&{taxonomy:e.taxonomy},...e.terms&&{terms:e.terms},...e.term_ids&&{term_ids:e.term_ids},...e.exclude_post_author&&{exclude_post_author:e.exclude_post_author},...e.pingback&&{pingback:e.pingback},...e.trackback&&{trackback:e.trackback},...e.avatar_size&&{avatar_size:e.avatar_size}};return new URLSearchParams(t)}(e);return await s()({path:`decent-comments/v1/comments?${o.toString()}`,method:"GET",headers:{"X-WP-Nonce":t}})}const l=({comments:e,attributes:t})=>(0,c.jsxs)("div",{className:"decent-comments",children:[t.title?.length>0&&(0,c.jsx)("div",{className:"decent-comments-heading gamma widget-title",children:t.title}),(0,c.jsx)("ul",{className:"decent-comments-list",children:0===e.length?(0,c.jsx)("li",{className:"comment no-comment",children:(0,a.__)("No comments","decent-comments")}):e.filter(e=>!t.exclude_post_author||e.author_email!==e.post_author).map(e=>(0,c.jsx)(m,{comment:e,attributes:t},e.id))})]}),m=({comment:e,attributes:t})=>{const o=t.show_author?t.link_authors&&e.author_url?(0,c.jsx)("a",{href:_(e.author_url),className:"comment-author-link",children:e.author}):e.author:null,n=t.show_date?`${e.date} ${(0,a.__)("at","decent-comments")} ${e.time}`:null;let s="",r="";e.author_url&&(s='<a href="'+e.author_url+'" rel="external">',r="</a>");const l=t.show_avatar&&e.avatar?(0,c.jsx)("div",{className:"comment-avatar",dangerouslySetInnerHTML:{__html:s+e.avatar+r}}):null,m=t.show_comment?function(e,t){let o=t.show_excerpt?e:"";if(t.strip_tags&&(o=o.replace(/(<([^>]+)>)/gi,"")),t.max_excerpt_words>0){const e=o.split(" ");o=e.slice(0,t.max_excerpt_words).join(" ")+(e.length>t.max_excerpt_words?t.ellipsis:"")}return t.max_excerpt_characters>0&&(o=o.substring(0,t.max_excerpt_characters)+(o.length>t.max_excerpt_characters?t.ellipsis:"")),o}(e.content,t):"",i=t.show_link&&e.comment_link?(0,c.jsxs)("div",{className:"comment-link",children:[(0,a.__)("on","decent-comments")," ",(0,c.jsx)("a",{href:_(e.comment_link),className:"comment-post-title",children:e.post_title||""})]}):null;return(0,c.jsx)("li",{className:"comment-entry",children:(0,c.jsxs)("div",{className:"comment-content",children:[l,o&&(0,c.jsxs)("div",{className:"comment-author",children:[o," "]}),n&&(0,c.jsxs)("div",{className:"comment-date",children:[n," "]}),i," ",m&&(0,c.jsx)("div",{className:"comment-excerpt",children:m})]})},e.id)};function _(e){try{const t=new URL(e);return["http:","https:"].includes(t.protocol)?encodeURI(e):"#"}catch{return"#"}}},790(e){e.exports=window.ReactJSXRuntime}},t={};function o(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=window.wp.blocks;var s=o(723);const a=window.wp.blockEditor,c=window.wp.components,r=JSON.parse('{"UU":"decent-comments-block/decent-comments"}'),l=window.wp.element;var m=o(727),_=o(790);(0,n.registerBlockType)(r.UU,{apiVersion:3,title:(0,s.__)("Decent Comments","decent-comments"),icon:"admin-comments",category:"widgets",attributes:{title:{type:"string",default:""},number:{type:"number",default:5},offset:{type:"number",default:0},post_id:{type:"string",default:""},post__in:{type:"string",default:""},post__not_in:{type:"string",default:""},post_tag:{type:"string",default:""},exclude_post_author:{type:"boolean",default:!1},show_author:{type:"boolean",default:!0},show_date:{type:"boolean",default:!0},link_authors:{type:"boolean",default:!0},show_avatar:{type:"boolean",default:!0},avatar_size:{type:"number",default:48},show_link:{type:"boolean",default:!0},show_comment:{type:"boolean",default:!0},taxonomy:{type:"string",default:""},terms:{type:"string",default:""},pingback:{type:"boolean",default:!0},trackback:{type:"boolean",default:!0},show_excerpt:{type:"boolean",default:!0},max_excerpt_words:{type:"number",default:20},max_excerpt_characters:{type:"number",default:0},ellipsis:{type:"string",default:""},strip_tags:{type:"boolean",default:!0},order:{type:"string",default:"desc"},orderby:{type:"string",default:"comment_date_gmt"},class:{type:"string",default:""},post_type:{type:"string",default:"post"}},edit:({attributes:e,setAttributes:t})=>{(0,a.useBlockProps)();const[o,n]=(0,l.useState)([]),[r,i]=(0,l.useState)(null);return(0,l.useEffect)(()=>{(async()=>{try{const t={...e};"[current]"!==e.post_id&&"{current}"!==e.post_id||(t.post_id=""),"[current]"!==e.terms&&"{current}"!==e.terms||(t.term_ids="");const o=window.decentCommentsEdit?.nonce||"",s=await(0,m.p4)(t,o);n(s.comments||[]),i(null)}catch(e){i(e),n([])}})()},[e]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a.InspectorControls,{children:(0,_.jsxs)(c.PanelBody,{title:(0,s.__)("Comment Settings","decent-comments"),children:[(0,_.jsx)(c.TextControl,{label:(0,s.__)("Title","decent-comments"),value:e.title,onChange:e=>t({title:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of Comments","decent-comments"),value:e.number,onChange:e=>t({number:parseInt(e)||5}),min:"1",type:"number"}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Order by...","decent-comments"),value:e.orderby,options:[{label:(0,s.__)("Author Email","decent-comments"),value:"comment_author_email"},{label:(0,s.__)("Author URL","decent-comments"),value:"comment_author_url"},{label:(0,s.__)("Content","decent-comments"),value:"comment_content"},{label:(0,s.__)("Comment Date","decent-comments"),value:"comment_date_gmt"},{label:(0,s.__)("Karma","decent-comments"),value:"comment_karma"},{label:(0,s.__)("Post","decent-comments"),value:"comment_post_id"}],onChange:e=>t({orderby:e})}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Sort order","decent-comments"),value:e.order,options:[{label:(0,s.__)("Descending","decent-comments"),value:"desc"},{label:(0,s.__)("Ascending","decent-comments"),value:"asc"}],onChange:e=>t({order:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Post ID","decent-comments"),value:e.post_id,onChange:e=>t({post_id:e||""}),help:(0,s.__)("Title, empty, post ID or [current]","decent-comments")}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Post type","decent-comments"),value:e.post_type,onChange:e=>t({post_type:e}),help:(0,s.__)("Available post types: "+decentCommentsEdit.post_types,"decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Exclude comments from post authors","decent-comments"),checked:e.exclude_post_author,onChange:e=>t({exclude_post_author:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show comment excerpt","decent-comments"),checked:e.show_excerpt,onChange:e=>t({show_excerpt:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of words in excerpts","decent-comments"),value:e.max_excerpt_words,onChange:e=>t({max_excerpt_words:parseInt(e)||20}),min:"0",type:"number"}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of characters in excerpts","decent-comments"),value:e.max_excerpt_characters,onChange:e=>t({max_excerpt_characters:parseInt(e)||0}),min:"0",type:"number"}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Ellipsis"),value:e.ellipsis,onChange:e=>t({ellipsis:e}),help:(0,s.__)("The ellipsis is shown after the excerpt when there is more content.","decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show author","decent-comments"),checked:e.show_author,onChange:e=>t({show_author:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show date","decent-comments"),checked:e.show_date,onChange:e=>t({show_date:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Link authors","decent-comments"),checked:e.link_authors,onChange:e=>t({link_authors:e}),help:(0,s.__)("Whether to link comment authors to their website.","decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show avatar","decent-comments"),checked:e.show_avatar,onChange:e=>t({show_avatar:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Avatar size","decent-comments"),value:e.avatar_size,onChange:e=>t({avatar_size:parseInt(e)||48}),min:"0",type:"number"}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show link to post","decent-comments"),checked:e.show_link,onChange:e=>t({show_link:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show the comment","decent-comments"),checked:e.show_comment,onChange:e=>t({show_comment:e})}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Taxonomy","decent-comments"),value:e.taxonomy,options:[{label:(0,s.__)("All post taxonomies","decent-comments"),value:""},{label:(0,s.__)("category","decent-comments"),value:"category"},{label:(0,s.__)("tag","decent-comments"),value:"post_tag"}],onChange:e=>t({taxonomy:e}),help:(0,s.__)("Select category if you would like to show comments on posts in certain categories. Give the desired categories' slugs in Term. For tags select post_tag and give the tags' slugs in Term.","decent-comments")}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Term","decent-comments"),value:e.terms,onChange:e=>t({terms:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Pingbacks","decent-comments"),checked:e.pingback,onChange:e=>t({pingback:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Trackbacks","decent-comments"),checked:e.trackback,onChange:e=>t({trackback:e})})]})}),(0,_.jsx)("div",{...(0,a.useBlockProps)({className:"wp-block-itthinx-decent-comments","data-attributes":JSON.stringify(e)}),children:r?(0,_.jsx)("div",{className:"decent-comments-error",children:(0,_.jsxs)("p",{children:[(0,s.__)("Error loading comments in editor","decent-comments"),r.message&&`: ${r.message}`]})}):(0,_.jsx)("div",{className:"wp-block-itthinx-decent-comments",children:(0,_.jsx)(m.PU,{comments:o,attributes:e})})})]})},save:({attributes:e})=>(0,_.jsx)("div",{className:"wp-block-itthinx-decent-comments","data-attributes":JSON.stringify(e),children:(0,_.jsxs)("p",{children:[(0,s.__)("Comments","decent-comments")," …"]})})})})(); -
decent-comments/trunk/blocks/decent-comments/build/view.asset.php
r3424828 r3433692 1 <?php return array('dependencies' => array('react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-i18n'), 'version' => ' f3eb13201388d21477ec');1 <?php return array('dependencies' => array('react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-i18n'), 'version' => 'b482cbb057d63bb32bbd'); -
decent-comments/trunk/blocks/decent-comments/build/view.js
r3424828 r3433692 1 (()=>{"use strict";var t={338(t,e,n){var r=n(795);e.H=r.createRoot,r.hydrateRoot},723(t){t.exports=window.wp.i18n},727(t,e,n){n.d(e,{PU:()=>i,p4:()=>m,vB:()=>a});const r=window.wp.apiFetch;var o=n.n(r),s=n(723),c=n(790);function a(t){return JSON.parse(t||"{}")}async function m(t,e){const n=function(t){const e={number:t.number||5,offset:t.offset||0,order:t.order||"asc",orderby:t.orderby||"comment_author_email",...t.post_id&&{post_id:t.post_id},...t.post__in&&{post__in:t.post__in},...t.post__not_in&&{post__not_in:t.post__not_in},...t.post_type&&{post_type:t.post_type},...t.taxonomy&&{taxonomy:t.taxonomy},...t.terms&&{terms:t.terms},...t.term_ids&&{term_ids:t.term_ids},...t.exclude_post_author&&{exclude_post_author:t.exclude_post_author},...t.pingback&&{pingback:t.pingback},...t.trackback&&{trackback:t.trackback},...t.avatar_size&&{avatar_size:t.avatar_size}};return new URLSearchParams(e)}(t);return await o()({path:`decent-comments/v1/comments?${n.toString()}`,method:"GET",headers:{"X-WP-Nonce":e}})}const i=({comments:t,attributes:e})=>(0,c.jsxs)("div",{className:"decent-comments",children:[e.title?.length>0&&(0,c.jsx)("div",{className:"decent-comments-heading gamma widget-title",children:e.title}),(0,c.jsx)("ul",{className:"decent-comments-list",children:0===t.length?(0,c.jsx)("li",{className:"comment no-comment",children:(0,s.__)("No comments","decent-comments")}):t.filter(t=>!e.exclude_post_author||t.author_email!==t.post_author).map(t=>(0,c.jsx)(d,{comment:t,attributes:e},t.id))})]}),d=({comment:t,attributes:e})=>{const n=e.show_author?e.link_authors&&t.author_url?(0,c.jsx)("a",{href:l(t.author_url),className:"comment-author-link",children:t.author}):t.author:null,r=e.show_date?`${t.date} ${(0,s.__)("at","decent-comments")} ${t.time}`:null;let o="",a="";t.author_url&&(o='<a href="'+t.author_url+'" rel="external">',a="</a>");const m=e.show_avatar&&t.avatar?(0,c.jsx)("div",{className:"comment-avatar",dangerouslySetInnerHTML:{__html:o+t.avatar+a}}):null,i=e.show_comment?function(t,e){let n=e.show_excerpt?t:"";if(e.strip_tags&&(n=n.replace(/(<([^>]+)>)/gi,"")),e.max_excerpt_words>0){const t=n.split(" ");n=t.slice(0,e.max_excerpt_words).join(" ")+(t.length>e.max_excerpt_words?e.ellipsis:"")}return e.max_excerpt_characters>0&&(n=n.substring(0,e.max_excerpt_characters)+(n.length>e.max_excerpt_characters?e.ellipsis:"")),n}(t.content,e):"",d=e.show_link&&t.comment_link?(0,c.jsxs)("div",{className:"comment-link",children:[(0,s.__)("on","decent-comments")," ",(0,c.jsx)("a",{href:l(t.comment_link),className:"comment-post-title",children:t.post_title||""})]}):null;return(0,c.jsx)("li",{className:"comment-entry",children:(0,c.jsxs)("div",{className:"comment-content",children:[m,n&&(0,c.jsxs)("div",{className:"comment-author",children:[n," "]}),r&&(0,c.jsxs)("div",{className:"comment-date",children:[r," "]}),d," ",i&&(0,c.jsx)("div",{className:"comment-excerpt",children:i})]})},t.id)};function l(t){try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?encodeURI(t):"#"}catch{return"#"}}},790(t){t.exports=window.ReactJSXRuntime},795(t){t.exports=window.ReactDOM}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n(338),o=n(723),s=n(727),c=n(790);let a=null,m=null;window.decentCommentsView&&(window.decentCommentsView.current_post_id&&(a=window.decentCommentsView.current_post_id),window.decentCommentsView.current_term_id&&(m=window.decentCommentsView.current_term_id)),document.addEventListener("DOMContentLoaded",async()=>{const t=document.querySelectorAll(".wp-block-itthinx-decent-comments");for(const e of t)try{const t=(0,s.vB)(e.dataset.attributes);"[current]"!==t.post_id&&"{current}"!==t.post_id||a&&(t.post_id=a),"[current]"!==t.terms&&"{current}"!==t.terms||m&&(t.term_ids=m);const n=window.decentCommentsView?.nonce||"",o=await(0,s.p4)(t,n);(0,r.H)(e).render((0,c.jsx)(s.PU,{comments:o.comments||[],attributes:t}))}catch(t){(0,r.H)(e).render((0,c.jsx)("p",{className:"text-red-500",children:(0,o.__)("Error loading comments","decent-comments")})),console.error("Decent Comments Error:",t)}})})();1 (()=>{"use strict";var t={338(t,e,n){var o=n(795);e.H=o.createRoot,o.hydrateRoot},723(t){t.exports=window.wp.i18n},727(t,e,n){n.d(e,{PU:()=>i,p4:()=>m,vB:()=>a});const o=window.wp.apiFetch;var r=n.n(o),s=n(723),c=n(790);function a(t){return JSON.parse(t||"{}")}async function m(t,e){const n=function(t){const e={number:t.number||5,offset:t.offset||0,order:t.order||"asc",orderby:t.orderby||"comment_author_email",...t.post_id&&{post_id:t.post_id},...t.post__in&&{post__in:t.post__in},...t.post__not_in&&{post__not_in:t.post__not_in},...t.post_type&&{post_type:t.post_type},...t.taxonomy&&{taxonomy:t.taxonomy},...t.terms&&{terms:t.terms},...t.term_ids&&{term_ids:t.term_ids},...t.exclude_post_author&&{exclude_post_author:t.exclude_post_author},...t.pingback&&{pingback:t.pingback},...t.trackback&&{trackback:t.trackback},...t.avatar_size&&{avatar_size:t.avatar_size}};return new URLSearchParams(e)}(t);return await r()({path:`decent-comments/v1/comments?${n.toString()}`,method:"GET",headers:{"X-WP-Nonce":e}})}const i=({comments:t,attributes:e})=>(0,c.jsxs)("div",{className:"decent-comments",children:[e.title?.length>0&&(0,c.jsx)("div",{className:"decent-comments-heading gamma widget-title",children:e.title}),(0,c.jsx)("ul",{className:"decent-comments-list",children:0===t.length?(0,c.jsx)("li",{className:"comment no-comment",children:(0,s.__)("No comments","decent-comments")}):t.filter(t=>!e.exclude_post_author||t.author_email!==t.post_author).map(t=>(0,c.jsx)(d,{comment:t,attributes:e},t.id))})]}),d=({comment:t,attributes:e})=>{const n=e.show_author?e.link_authors&&t.author_url?(0,c.jsx)("a",{href:l(t.author_url),className:"comment-author-link",children:t.author}):t.author:null,o=e.show_date?`${t.date} ${(0,s.__)("at","decent-comments")} ${t.time}`:null;let r="",a="";t.author_url&&(r='<a href="'+t.author_url+'" rel="external">',a="</a>");const m=e.show_avatar&&t.avatar?(0,c.jsx)("div",{className:"comment-avatar",dangerouslySetInnerHTML:{__html:r+t.avatar+a}}):null,i=e.show_comment?function(t,e){let n=e.show_excerpt?t:"";if(e.strip_tags&&(n=n.replace(/(<([^>]+)>)/gi,"")),e.max_excerpt_words>0){const t=n.split(" ");n=t.slice(0,e.max_excerpt_words).join(" ")+(t.length>e.max_excerpt_words?e.ellipsis:"")}return e.max_excerpt_characters>0&&(n=n.substring(0,e.max_excerpt_characters)+(n.length>e.max_excerpt_characters?e.ellipsis:"")),n}(t.content,e):"",d=e.show_link&&t.comment_link?(0,c.jsxs)("div",{className:"comment-link",children:[(0,s.__)("on","decent-comments")," ",(0,c.jsx)("a",{href:l(t.comment_link),className:"comment-post-title",children:t.post_title||""})]}):null;return(0,c.jsx)("li",{className:"comment-entry",children:(0,c.jsxs)("div",{className:"comment-content",children:[m,n&&(0,c.jsxs)("div",{className:"comment-author",children:[n," "]}),o&&(0,c.jsxs)("div",{className:"comment-date",children:[o," "]}),d," ",i&&(0,c.jsx)("div",{className:"comment-excerpt",children:i})]})},t.id)};function l(t){try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?encodeURI(t):"#"}catch{return"#"}}},790(t){t.exports=window.ReactJSXRuntime},795(t){t.exports=window.ReactDOM}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o=n(338),r=n(723),s=n(727),c=n(790);let a=null,m=null;window.decentCommentsView&&(window.decentCommentsView.current_post_id&&(a=window.decentCommentsView.current_post_id),window.decentCommentsView.current_term_id&&(m=window.decentCommentsView.current_term_id)),document.addEventListener("DOMContentLoaded",async()=>{const t=document.querySelectorAll(".wp-block-itthinx-decent-comments");for(const e of t){e._decentCommentsRoot||(e._decentCommentsRoot=(0,o.H)(e));const t=e._decentCommentsRoot;try{const n=(0,s.vB)(e.dataset.attributes);"[current]"!==n.post_id&&"{current}"!==n.post_id||a&&(n.post_id=a),"[current]"!==n.terms&&"{current}"!==n.terms||m&&(n.term_ids=m);const o=window.decentCommentsView?.nonce||"",r=await(0,s.p4)(n,o);t.render((0,c.jsx)(s.PU,{comments:r.comments||[],attributes:n}))}catch(e){t.render((0,c.jsx)("p",{className:"text-red-500",children:(0,r.__)("Error loading comments","decent-comments")})),console.error("Decent Comments Error:",e)}}})})(); -
decent-comments/trunk/blocks/decent-comments/src/index.js
r3424828 r3433692 259 259 return ( 260 260 <div className="wp-block-itthinx-decent-comments" data-attributes={JSON.stringify(attributes)}> 261 <p>{ __('Decent Comments Placeholder', 'decent-comments')}</p>261 <p>{ __( 'Comments', 'decent-comments' ) } …</p> 262 262 </div> 263 263 ); -
decent-comments/trunk/blocks/decent-comments/src/view.js
r3424828 r3433692 37 37 document.addEventListener('DOMContentLoaded', async () => { 38 38 const blocks = document.querySelectorAll('.wp-block-itthinx-decent-comments'); 39 for (const block of blocks) { 39 40 for (const block of blocks) { 41 if (!block._decentCommentsRoot) { 42 block._decentCommentsRoot = createRoot(block); 43 } 44 const root = block._decentCommentsRoot; 45 40 46 try { 41 47 const attributes = parseAttributes(block.dataset.attributes); … … 53 59 const nonce = window.decentCommentsView?.nonce || ''; 54 60 const response = await fetchComments(attributes, nonce); 55 const root = createRoot(block);56 61 root.render( 57 62 <RenderComments comments={response.comments || []} attributes={attributes} /> 58 63 ); 59 64 } catch (error) { 60 const root = createRoot(block); 61 root.render( 62 <p className="text-red-500"> 63 {__('Error loading comments', 'decent-comments')} 64 </p> 65 ); 65 root.render( 66 <p className="text-red-500"> 67 {__('Error loading comments', 'decent-comments')} 68 </p> 69 ); 66 70 console.error( 'Decent Comments Error:', error ); 67 71 } 72 68 73 } 69 74 }); -
decent-comments/trunk/changelog.txt
r3426106 r3433692 1 1 == Decent Comments by itthinx - changelog.txt == 2 3 = 3.0.2 = 4 * WordPress 6.9 compatible. 5 * Removed author email from REST response. 6 * Providing author display name instead of email for post authors in REST response. 7 * Fixed warning in Decent Comments Block widget when rendering on the frontend. 8 * Added support for comment_ID as orderby option in REST requests. 9 * Added support for excerpt, max_excerpt_words, max_excerpt_characters, show_author, show_date, show_comment options in REST request. 10 * Added instances of missing code documentation. 11 * Fixed some code formatting issues. 12 * Changed block placeholder to generic verbiage. 13 * Updated the translation template. 14 * Updated the included translations. 2 15 3 16 = 3.0.1 = -
decent-comments/trunk/class-decent-comments-rest.php
r3424828 r3433692 20 20 */ 21 21 22 /** 23 * REST API handling. 24 */ 22 25 class Decent_Comments_Rest { 23 26 27 /** 28 * Initialization. 29 */ 24 30 public static function boot() { 25 31 add_action( 'rest_api_init', array( __CLASS__, 'rest_api_init' ) ); 26 32 } 27 33 34 /** 35 * Register REST API endpoints. 36 */ 28 37 public static function rest_api_init() { 29 38 register_rest_route( … … 59 68 'validate_callback' => 'rest_validate_request_arg' 60 69 ), 61 /*'excerpt_length' => array( 70 'excerpt' => array( 71 'default' => false, 72 'required' => false, 73 'type' => 'boolean', 74 'description' => __( 'Generate an excerpt', 'decent-comments' ), 75 'sanitize_callback' => array( __CLASS__, 'to_boolean' ), 76 'validate_callback' => 'rest_validate_request_arg' 77 ), 78 'max_excerpt_words' => array( 62 79 'default' => 20, 80 'minimum' => 1, 63 81 'required' => false, 64 82 'type' => 'integer', 65 83 'sanitize_callback' => 'absint', 66 'description' => 'Number of words for comment excerpts', 67 'validate_callback' => 'rest_validate_request_arg' 68 ),*/ 84 'description' => __( 'Number of words shown as an excerpt', 'decent-comments' ), 85 'validate_callback' => 'rest_validate_request_arg' 86 ), 87 'max_excerpt_characters' => array( 88 'default' => 0, 89 'minimum' => 0, 90 'required' => false, 91 'type' => 'integer', 92 'sanitize_callback' => 'absint', 93 'description' => __( 'Number of characters shown as an excerpt', 'decent-comments' ), 94 'validate_callback' => 'rest_validate_request_arg' 95 ), 69 96 'orderby' => array( 70 97 'default' => 'comment_author_email', … … 79 106 'comment_content', 80 107 'comment_karma', 81 'comment_post_id' 108 'comment_post_id', 109 'comment_ID' 82 110 ), 83 111 'validate_callback' => 'rest_validate_request_arg' … … 129 157 'type' => 'boolean', 130 158 'description' => __( 'Whether to include Trackbacks', 'decent-comments' ), 159 'sanitize_callback' => array( __CLASS__, 'to_boolean' ), 160 'validate_callback' => 'rest_validate_request_arg' 161 ), 162 'show_author' => array( 163 'default' => true, 164 'required' => false, 165 'type' => 'boolean', 166 'description' => __( 'Show comment author', 'decent-comments' ), 167 'sanitize_callback' => array( __CLASS__, 'to_boolean' ), 168 'validate_callback' => 'rest_validate_request_arg' 169 ), 170 'show_date' => array( 171 'default' => true, 172 'required' => false, 173 'type' => 'boolean', 174 'description' => __( 'Show date', 'decent-comments' ), 175 'sanitize_callback' => array( __CLASS__, 'to_boolean' ), 176 'validate_callback' => 'rest_validate_request_arg' 177 ), 178 'show_comment' => array( 179 'default' => true, 180 'required' => false, 181 'type' => 'boolean', 182 'description' => __( 'Show comment', 'decent-comments' ), 131 183 'sanitize_callback' => array( __CLASS__, 'to_boolean' ), 132 184 'validate_callback' => 'rest_validate_request_arg' … … 140 192 * 141 193 * @param WP_REST_Request $request The REST request object 194 * 142 195 * @return WP_REST_Response|WP_Error 143 196 */ 144 197 public static function decent_comments_rest_endpoint( WP_REST_Request $request ) { 145 198 $args = array( 146 'number' => $request->get_param( 'number' ), 147 'avatar_size' => $request->get_param( 'avatar_size' ), 148 'post_id' => $request->get_param( 'post_id' ), 149 'post_type' => $request->get_param( 'post_type' ), 150 //'excerpt_length' => $request->get_param( 'excerpt_length' ), 151 'orderby' => $request->get_param( 'orderby' ), 152 'order' => $request->get_param( 'order' ) === 'asc' ? 'asc' : 'desc', 153 'show_date' => true, // Enable date display by default 154 'show_author' => true, // Enable author display 155 'show_comment' => true, // Enable comment content/excerpt 156 'taxonomy' => $request->get_param( 'taxonomy' ), 157 'terms' => $request->get_param( 'terms' ), 158 'term_ids' => $request->get_param( 'term_ids'), 159 'pingback' => $request->get_param( 'pingback' ), 160 'trackback' => $request->get_param( 'trackback' ), 161 'exclude_post_author' => $request->get_param( 'exclude_post_author' ) 199 'number' => $request->get_param( 'number' ), 200 'avatar_size' => $request->get_param( 'avatar_size' ), 201 'post_id' => $request->get_param( 'post_id' ), 202 'post_type' => $request->get_param( 'post_type' ), 203 'excerpt' => $request->get_param( 'excerpt' ), 204 'max_excerpt_words' => $request->get_param( 'max_excerpt_words' ), 205 'max_excerpt_characters' => $request->get_param( 'max_excerpt_characters' ), 206 'orderby' => $request->get_param( 'orderby' ), 207 'order' => $request->get_param( 'order' ) === 'asc' ? 'asc' : 'desc', 208 'show_date' => $request->get_param( 'show_date' ), 209 'show_author' => $request->get_param( 'show_author' ), 210 'show_comment' => $request->get_param( 'show_comment' ), 211 'taxonomy' => $request->get_param( 'taxonomy' ), 212 'terms' => $request->get_param( 'terms' ), 213 'term_ids' => $request->get_param( 'term_ids'), 214 'pingback' => $request->get_param( 'pingback' ), 215 'trackback' => $request->get_param( 'trackback' ), 216 'exclude_post_author' => $request->get_param( 'exclude_post_author' ) 162 217 ); 163 218 … … 177 232 178 233 $comment_args = array( 179 'number' => $args['number'], 180 'post_id' => $args['post_id'], 181 'post_type' => $args['post_type'], 182 'taxonomy' => $args['taxonomy'], 183 'terms' => $args['terms'], 184 'term_ids' => $term_ids, 185 'pingback' => $args['pingback'], 186 'trackback' => $args['trackback'], 187 'status' => 'approve', 188 'order' => $args['order'], 189 'orderby' => $args['orderby'], 234 'number' => $args['number'], 235 'post_id' => $args['post_id'], 236 'post_type' => $args['post_type'], 237 'taxonomy' => $args['taxonomy'], 238 'terms' => $args['terms'], 239 'term_ids' => $term_ids, 240 'pingback' => $args['pingback'], 241 'trackback' => $args['trackback'], 242 'status' => 'approve', 243 'order' => $args['order'], 244 'orderby' => $args['orderby'], 245 'excerpt' => $args['excerpt'], 246 'max_excerpt_words' => $args['max_excerpt_words'], 247 'max_excerpt_characters' => $args['max_excerpt_characters'] 190 248 ); 191 249 … … 194 252 if ( !empty( $comments ) ) { 195 253 foreach ( $comments as $comment ) { 254 196 255 $comment_data = array( 197 256 'id' => $comment->comment_ID, 198 'author' => $comment->comment_author,199 'author_email' => $comment->comment_author_email,200 'author_url' => $comment->comment_author_url,201 'date' => mysql2date( get_option( 'date_format' ), $comment->comment_date ),202 'time' => mysql2date( get_option( 'time_format' ), $comment->comment_date, true ),203 'content' => $comment->comment_content,204 'avatar' => get_avatar( $comment->comment_author_email, $args['avatar_size'] ),205 257 'comment_post_id' => $comment->comment_post_ID, 206 258 'post_title' => get_the_title( $comment->comment_post_ID ), 207 259 'comment_link' => get_comment_link( $comment->comment_ID ), 208 'post_author' => self::get_ the_post_author_by_post_id( $comment->comment_post_ID ),260 'post_author' => self::get_post_author( $comment->comment_post_ID ) 209 261 ); 262 263 if ( $args['show_date'] ) { 264 $comment_data['date'] = mysql2date( get_option( 'date_format' ), $comment->comment_date ); 265 $comment_data['time'] = mysql2date( get_option( 'time_format' ), $comment->comment_date, true ); 266 } 267 268 if ( $args['show_author'] ) { 269 $comment_data['author'] = $comment->comment_author; 270 $comment_data['comment_author_url'] = $comment->comment_author_url; 271 $comment_data['avatar'] = get_avatar( $comment->comment_author_email, $args['avatar_size'] ); 272 } 273 274 if ( $args['show_comment'] ) { 275 $comment_data['content'] = Decent_Comments_Renderer::get_comment( 276 $comment->comment_ID, 277 array( 278 'excerpt' => $args['excerpt'], 279 'max_excerpt_words' => $args['max_excerpt_words'], 280 'max_excerpt_characters' => $args['max_excerpt_characters'] 281 ) 282 ); 283 } 284 210 285 $comments_data[] = $comment_data; 211 286 } … … 224 299 } 225 300 226 private static function get_the_post_author_by_post_id( $comment_post_id ) { 227 $post_author_email = null; 228 $post = get_post( $comment_post_id ); 229 if ( $post ) { 230 $post_author_id = $post->post_author; 231 $post_author_user = get_user( $post_author_id ); 232 if ( $post_author_user ) { 233 $post_author_email = $post_author_user->user_email; 301 /** 302 * Provide the post author for display. 303 * 304 * @since 3.0.2 305 * 306 * @param int $post_id 307 * 308 * @return string 309 */ 310 private static function get_post_author( $post_id ) { 311 $author = ''; 312 $post = get_post( $post_id ); 313 if ( $post && !empty( $post->post_author ) ) { 314 $user = get_user( $post->post_author ); 315 if ( $user ) { 316 if ( !empty( $user->display_name ) ) { 317 $author = $user->display_name; 318 } else { 319 $author = $user->user_login; 320 } 234 321 } 235 322 } 236 237 return $post_author_email; 238 } 239 323 return $author; 324 } 325 326 /** 327 * Value conversion to boolean. 328 * 329 * @param mixed $value 330 * @param boolean $default 331 * 332 * @return boolean|string 333 */ 240 334 public static function to_boolean( $value, $default = false ) { 241 335 if ( !is_bool( $default ) ) { … … 274 368 return $value; 275 369 } 276 } Decent_Comments_Rest::boot(); 370 } 371 372 Decent_Comments_Rest::boot(); -
decent-comments/trunk/decent-comments.php
r3426106 r3433692 4 4 * Plugin URI: https://www.itthinx.com/plugins/decent-comments 5 5 * Description: Provides configurable means to display comments that include author's avatars, author link, link to post and most importantly an excerpt of each comment. Thanks for supporting our work with a purchase in our <a href="https://www.itthinx.com/shop/">Shop</a>! 6 * Version: 3.0. 16 * Version: 3.0.2 7 7 * Requires at least: 6.5 8 8 * Requires PHP: 7.4 … … 66 66 * @var string 67 67 */ 68 define( 'DECENT_COMMENTS_PLUGIN_VERSION', '3.0. 1' );68 define( 'DECENT_COMMENTS_PLUGIN_VERSION', '3.0.2' ); 69 69 70 70 /** -
decent-comments/trunk/languages/decent-comments-ca_ES.po
r3426106 r3433692 8 8 "Project-Id-Version: \n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"11 "PO-Revision-Date: 202 5-12-23 11:38+0100\n"10 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 11 "PO-Revision-Date: 2026-01-06 14:53+0100\n" 12 12 "Last-Translator: Chema Bescos <[email protected]>\n" 13 13 "Language-Team: \n" … … 86 86 msgstr "Punts suspensius" 87 87 88 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1488 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 89 89 msgid "Exclude comments from post authors" 90 90 msgstr "Exclou els comentaris dels autors de les publicació" 91 91 92 #: class-decent-comments-rest.php:58 92 #: class-decent-comments-rest.php:74 93 msgid "Generate an excerpt" 94 msgstr "Genera un extracte" 95 96 #: class-decent-comments-rest.php:67 93 97 msgid "ID of the post to get comments for (0 for all posts)" 94 98 msgstr "" … … 175 179 msgstr "Nombre de caràcters als extractes" 176 180 181 #: class-decent-comments-rest.php:93 182 msgid "Number of characters shown as an excerpt" 183 msgstr "Nombre de caràcters mostrats com a extracte" 184 177 185 #: class-decent-comments-widget.php:455 178 186 msgid "Number of comments" 179 187 msgstr "Nombre de comentaris" 180 188 181 #: class-decent-comments-rest.php: 41189 #: class-decent-comments-rest.php:50 182 190 msgid "Number of comments to return" 183 191 msgstr "Nombre de comentaris" … … 187 195 msgstr "Nombre de paraules als extractes" 188 196 197 #: class-decent-comments-rest.php:84 198 msgid "Number of words shown as an excerpt" 199 msgstr "Nombre de paraules mostrades com a extracte" 200 189 201 #: class-decent-comments.php:58 190 202 msgid "Options" … … 211 223 msgstr "Tipus d’entrada" 212 224 213 #: class-decent-comments-rest.php: 99225 #: class-decent-comments-rest.php:127 214 226 msgid "Post category or tag" 215 227 msgstr "Categoria o etiqueta de publicació" … … 244 256 msgstr "Mostra l'avatar" 245 257 258 #: class-decent-comments-rest.php:182 259 msgid "Show comment" 260 msgstr "Mostra comentari" 261 262 #: class-decent-comments-rest.php:166 263 msgid "Show comment author" 264 msgstr "Mostra l'autor del comentari" 265 246 266 #: class-decent-comments-widget.php:539 247 267 msgid "Show comment excerpt" 248 268 msgstr "Mostra l'extracte del comentari" 249 269 250 #: class-decent-comments-widget.php:574 270 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 251 271 msgid "Show date" 252 272 msgstr "Mostra la data" … … 268 288 msgstr "Mostra la data i l'hora en què s'ha publicat el comentari." 269 289 270 #: class-decent-comments-rest.php:5 0290 #: class-decent-comments-rest.php:59 271 291 msgid "Size of author avatars in pixels" 272 292 msgstr "La mida de l'avatar en píxels" 273 293 274 #: class-decent-comments-rest.php: 74294 #: class-decent-comments-rest.php:101 275 295 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 276 296 msgstr "" … … 286 306 msgstr "Ordre de classificació." 287 307 288 #: class-decent-comments-rest.php: 90308 #: class-decent-comments-rest.php:118 289 309 msgid "Sort order: asc or desc" 290 310 msgstr "Ordre de classificació: asc o desc" … … 298 318 msgstr "Taxonomia" 299 319 300 #: class-decent-comments-rest.php:1 07320 #: class-decent-comments-rest.php:135 301 321 msgid "Term ids or slugs" 302 322 msgstr "Identificadors de termes o slugs" … … 351 371 msgstr "Trackbacks" 352 372 353 #: class-decent-comments-rest.php:1 22373 #: class-decent-comments-rest.php:150 354 374 msgid "Whether to include Pingbacks" 355 375 msgstr "Inclou pingbacks" 356 376 357 #: class-decent-comments-rest.php:1 30377 #: class-decent-comments-rest.php:158 358 378 msgid "Whether to include Trackbacks" 359 379 msgstr "Inclou trackbacks" -
decent-comments/trunk/languages/decent-comments-de_DE.po
r3426106 r3433692 8 8 "Project-Id-Version: decent-comments 1.1.3\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"11 "PO-Revision-Date: 202 5-12-23 11:41+0100\n"10 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 11 "PO-Revision-Date: 2026-01-06 14:55+0100\n" 12 12 "Last-Translator: kento <http://www.itthinx.com/plugins/decent-comments/>\n" 13 13 "Language-Team: German <http://www.itthinx.com/plugins/decent-comments/>\n" … … 85 85 msgstr "Ellipse" 86 86 87 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1487 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 88 88 msgid "Exclude comments from post authors" 89 89 msgstr "Kommentare von Eintragsautoren ausschließen" 90 90 91 #: class-decent-comments-rest.php:58 91 #: class-decent-comments-rest.php:74 92 msgid "Generate an excerpt" 93 msgstr "Auszug generieren" 94 95 #: class-decent-comments-rest.php:67 92 96 msgid "ID of the post to get comments for (0 for all posts)" 93 97 msgstr "ID des Artikels mit Kommentaren (0 für alle Artikel)" … … 174 178 msgstr "Anzahl der Zeichen in Auszügen" 175 179 180 #: class-decent-comments-rest.php:93 181 msgid "Number of characters shown as an excerpt" 182 msgstr "Anzahl der Zeichen in Auszügen" 183 176 184 #: class-decent-comments-widget.php:455 177 185 msgid "Number of comments" 178 186 msgstr "Anzahl der Kommentare" 179 187 180 #: class-decent-comments-rest.php: 41188 #: class-decent-comments-rest.php:50 181 189 msgid "Number of comments to return" 182 190 msgstr "Anzahl der Kommentare" … … 186 194 msgstr "Anzahl der Worte in Auszügen" 187 195 196 #: class-decent-comments-rest.php:84 197 msgid "Number of words shown as an excerpt" 198 msgstr "Anzahl der Worte in Auszügen" 199 188 200 #: class-decent-comments.php:58 189 201 msgid "Options" … … 210 222 msgstr "Eintragstyp" 211 223 212 #: class-decent-comments-rest.php: 99224 #: class-decent-comments-rest.php:127 213 225 msgid "Post category or tag" 214 226 msgstr "Artikelkategorie oder Etikett" … … 243 255 msgstr "Den Avatar anzeigen" 244 256 257 #: class-decent-comments-rest.php:182 258 msgid "Show comment" 259 msgstr "Den Kommentar anzeigen" 260 261 #: class-decent-comments-rest.php:166 262 msgid "Show comment author" 263 msgstr "Den Autor der Kommentars anzeigen" 264 245 265 #: class-decent-comments-widget.php:539 246 266 msgid "Show comment excerpt" 247 267 msgstr "Den Auszug anzeigen" 248 268 249 #: class-decent-comments-widget.php:574 269 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 250 270 msgid "Show date" 251 271 msgstr "Datum anzeigen" … … 267 287 msgstr "Das Datum und die Uhrzeit des Kommentars anzeigen." 268 288 269 #: class-decent-comments-rest.php:5 0289 #: class-decent-comments-rest.php:59 270 290 msgid "Size of author avatars in pixels" 271 291 msgstr "Die Größe des Avatars in Pixeln" 272 292 273 #: class-decent-comments-rest.php: 74293 #: class-decent-comments-rest.php:101 274 294 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 275 295 msgstr "" … … 285 305 msgstr "Reihenfolge." 286 306 287 #: class-decent-comments-rest.php: 90307 #: class-decent-comments-rest.php:118 288 308 msgid "Sort order: asc or desc" 289 309 msgstr "Reihenfolge: asc oder desc" … … 297 317 msgstr "Taxonomie" 298 318 299 #: class-decent-comments-rest.php:1 07319 #: class-decent-comments-rest.php:135 300 320 msgid "Term ids or slugs" 301 321 msgstr "Begriffs-IDs oder Slugs" … … 350 370 msgstr "Trackbacks" 351 371 352 #: class-decent-comments-rest.php:1 22372 #: class-decent-comments-rest.php:150 353 373 msgid "Whether to include Pingbacks" 354 374 msgstr "Pingbacks einbeziehen" 355 375 356 #: class-decent-comments-rest.php:1 30376 #: class-decent-comments-rest.php:158 357 377 msgid "Whether to include Trackbacks" 358 378 msgstr "Trackbacks einbeziehen" -
decent-comments/trunk/languages/decent-comments-de_DE_formal.po
r3426106 r3433692 8 8 "Project-Id-Version: decent-comments 1.1.3\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"11 "PO-Revision-Date: 202 5-12-23 11:41+0100\n"10 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 11 "PO-Revision-Date: 2026-01-06 14:55+0100\n" 12 12 "Last-Translator: kento <http://www.itthinx.com/plugins/decent-comments/>\n" 13 13 "Language-Team: German <http://www.itthinx.com/plugins/decent-comments/>\n" … … 85 85 msgstr "Ellipse" 86 86 87 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1487 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 88 88 msgid "Exclude comments from post authors" 89 89 msgstr "Kommentare von Eintragsautoren ausschließen" 90 90 91 #: class-decent-comments-rest.php:58 91 #: class-decent-comments-rest.php:74 92 msgid "Generate an excerpt" 93 msgstr "Auszug generieren" 94 95 #: class-decent-comments-rest.php:67 92 96 msgid "ID of the post to get comments for (0 for all posts)" 93 97 msgstr "ID des Artikels mit Kommentaren (0 für alle Artikel)" … … 174 178 msgstr "Anzahl der Zeichen in Auszügen" 175 179 180 #: class-decent-comments-rest.php:93 181 msgid "Number of characters shown as an excerpt" 182 msgstr "Anzahl der Zeichen in Auszügen" 183 176 184 #: class-decent-comments-widget.php:455 177 185 msgid "Number of comments" 178 186 msgstr "Anzahl der Kommentare" 179 187 180 #: class-decent-comments-rest.php: 41188 #: class-decent-comments-rest.php:50 181 189 msgid "Number of comments to return" 182 190 msgstr "Anzahl der Kommentare" … … 186 194 msgstr "Anzahl der Worte in Auszügen" 187 195 196 #: class-decent-comments-rest.php:84 197 msgid "Number of words shown as an excerpt" 198 msgstr "Anzahl der Worte in Auszügen" 199 188 200 #: class-decent-comments.php:58 189 201 msgid "Options" … … 210 222 msgstr "Eintragstyp" 211 223 212 #: class-decent-comments-rest.php: 99224 #: class-decent-comments-rest.php:127 213 225 msgid "Post category or tag" 214 226 msgstr "Artikelkategorie oder Etikett" … … 243 255 msgstr "Den Avatar anzeigen" 244 256 257 #: class-decent-comments-rest.php:182 258 msgid "Show comment" 259 msgstr "Den Kommentar anzeigen" 260 261 #: class-decent-comments-rest.php:166 262 msgid "Show comment author" 263 msgstr "Den Autor der Kommentars anzeigen" 264 245 265 #: class-decent-comments-widget.php:539 246 266 msgid "Show comment excerpt" 247 267 msgstr "Den Auszug anzeigen" 248 268 249 #: class-decent-comments-widget.php:574 269 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 250 270 msgid "Show date" 251 271 msgstr "Datum anzeigen" … … 267 287 msgstr "Das Datum und die Uhrzeit des Kommentars anzeigen." 268 288 269 #: class-decent-comments-rest.php:5 0289 #: class-decent-comments-rest.php:59 270 290 msgid "Size of author avatars in pixels" 271 291 msgstr "Die Größe des Avatars in Pixeln" 272 292 273 #: class-decent-comments-rest.php: 74293 #: class-decent-comments-rest.php:101 274 294 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 275 295 msgstr "" … … 285 305 msgstr "Reihenfolge." 286 306 287 #: class-decent-comments-rest.php: 90307 #: class-decent-comments-rest.php:118 288 308 msgid "Sort order: asc or desc" 289 309 msgstr "Reihenfolge: asc oder desc" … … 297 317 msgstr "Taxonomie" 298 318 299 #: class-decent-comments-rest.php:1 07319 #: class-decent-comments-rest.php:135 300 320 msgid "Term ids or slugs" 301 321 msgstr "Begriffs-IDs oder Slugs" … … 350 370 msgstr "Trackbacks" 351 371 352 #: class-decent-comments-rest.php:1 22372 #: class-decent-comments-rest.php:150 353 373 msgid "Whether to include Pingbacks" 354 374 msgstr "Pingbacks einbeziehen" 355 375 356 #: class-decent-comments-rest.php:1 30376 #: class-decent-comments-rest.php:158 357 377 msgid "Whether to include Trackbacks" 358 378 msgstr "Trackbacks einbeziehen" -
decent-comments/trunk/languages/decent-comments-es_ES.po
r3426106 r3433692 8 8 "Project-Id-Version: decent-comments 1.3.11\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"11 "PO-Revision-Date: 202 5-12-22 21:17+0100\n"10 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 11 "PO-Revision-Date: 2026-01-06 14:52+0100\n" 12 12 "Last-Translator: kento <http://www.itthinx.com/plugins/decent-comments/>\n" 13 13 "Language-Team: Spanish <http://www.itthinx.com/plugins/decent-comments/>\n" … … 85 85 msgstr "Elipsis" 86 86 87 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1487 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 88 88 msgid "Exclude comments from post authors" 89 89 msgstr "Excluir los comentarios de los autores de los artículos" 90 90 91 #: class-decent-comments-rest.php:58 91 #: class-decent-comments-rest.php:74 92 msgid "Generate an excerpt" 93 msgstr "Generar un extracto" 94 95 #: class-decent-comments-rest.php:67 92 96 msgid "ID of the post to get comments for (0 for all posts)" 93 97 msgstr "ID del artículo para el que obtener comentarios (0 para todos)" … … 168 172 msgstr "Número de caracteres en el resumen" 169 173 174 #: class-decent-comments-rest.php:93 175 msgid "Number of characters shown as an excerpt" 176 msgstr "Número de caracteres en el extracto" 177 170 178 #: class-decent-comments-widget.php:455 171 179 msgid "Number of comments" 172 180 msgstr "Número de comentarios" 173 181 174 #: class-decent-comments-rest.php: 41182 #: class-decent-comments-rest.php:50 175 183 msgid "Number of comments to return" 176 184 msgstr "Número de comentarios a retornar" … … 180 188 msgstr "Número de palabras del resumen" 181 189 190 #: class-decent-comments-rest.php:84 191 msgid "Number of words shown as an excerpt" 192 msgstr "Número de palabras del extracto" 193 182 194 #: class-decent-comments.php:58 183 195 msgid "Options" … … 204 216 msgstr "Tipo de post" 205 217 206 #: class-decent-comments-rest.php: 99218 #: class-decent-comments-rest.php:127 207 219 msgid "Post category or tag" 208 220 msgstr "Categoría o etiqueta de artículo" … … 237 249 msgstr "Mostrar avatar" 238 250 251 #: class-decent-comments-rest.php:182 252 msgid "Show comment" 253 msgstr "Mostrar el comentario" 254 255 #: class-decent-comments-rest.php:166 256 msgid "Show comment author" 257 msgstr "Mostrar autor del comentario" 258 239 259 #: class-decent-comments-widget.php:539 240 260 msgid "Show comment excerpt" 241 261 msgstr "Mostrar resumen del comentario" 242 262 243 #: class-decent-comments-widget.php:574 263 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 244 264 msgid "Show date" 245 265 msgstr "Mostrar fecha" … … 261 281 msgstr "Mostrar la fecha y hora cuando el comentario fue publicado." 262 282 263 #: class-decent-comments-rest.php:5 0283 #: class-decent-comments-rest.php:59 264 284 msgid "Size of author avatars in pixels" 265 285 msgstr "Tamaño del avatar en píxeles" 266 286 267 #: class-decent-comments-rest.php: 74287 #: class-decent-comments-rest.php:101 268 288 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 269 289 msgstr "" … … 279 299 msgstr "Sentido de ordenación." 280 300 281 #: class-decent-comments-rest.php: 90301 #: class-decent-comments-rest.php:118 282 302 msgid "Sort order: asc or desc" 283 303 msgstr "Sentido de ordenación" … … 291 311 msgstr "Taxonomía" 292 312 293 #: class-decent-comments-rest.php:1 07313 #: class-decent-comments-rest.php:135 294 314 msgid "Term ids or slugs" 295 315 msgstr "Ids de términos o slugs" … … 341 361 msgstr "Trackbacks" 342 362 343 #: class-decent-comments-rest.php:1 22363 #: class-decent-comments-rest.php:150 344 364 msgid "Whether to include Pingbacks" 345 365 msgstr "Incluir pingbacks" 346 366 347 #: class-decent-comments-rest.php:1 30367 #: class-decent-comments-rest.php:158 348 368 msgid "Whether to include Trackbacks" 349 369 msgstr "Incluir trackbacks" -
decent-comments/trunk/languages/decent-comments-fr_FR.po
r3426106 r3433692 5 5 "Project-Id-Version: Decent Comments 1.1.0\n" 6 6 "Report-Msgid-Bugs-To: \n" 7 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"8 "PO-Revision-Date: 202 5-12-23 11:18+0100\n"7 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 8 "PO-Revision-Date: 2026-01-06 14:58+0100\n" 9 9 "Last-Translator: \n" 10 10 "Language-Team: \n" … … 17 17 #: blocks/decent-comments/node_modules/@wordpress/style-engine/class-wp-style-engine-processor.php:44 18 18 msgid "$store must be an instance of WP_Style_Engine_CSS_Rules_Store" 19 msgstr " "19 msgstr "$store doit être une instance de WP_Style_Engine_CSS_Rules_Store" 20 20 21 21 #: class-decent-comments-renderer.php:496 … … 82 82 msgstr "Ellipse" 83 83 84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1484 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 85 85 msgid "Exclude comments from post authors" 86 86 msgstr "Exclure les commentaires des auteurs" 87 87 88 #: class-decent-comments-rest.php:58 88 #: class-decent-comments-rest.php:74 89 msgid "Generate an excerpt" 90 msgstr "Générer un extrait" 91 92 #: class-decent-comments-rest.php:67 89 93 msgid "ID of the post to get comments for (0 for all posts)" 90 94 msgstr "" 95 "ID de l'article pour lequel obtenir les commentaires (0 pour tous les " 96 "articles)" 91 97 92 98 #: class-decent-comments-widget.php:630 … … 170 176 msgstr "Nombre de caractères dans les extraits" 171 177 178 #: class-decent-comments-rest.php:93 179 msgid "Number of characters shown as an excerpt" 180 msgstr "Nombre de caractères affichés comme extrait" 181 172 182 #: class-decent-comments-widget.php:455 173 183 msgid "Number of comments" 174 184 msgstr "Nombre de commentaires" 175 185 176 #: class-decent-comments-rest.php: 41186 #: class-decent-comments-rest.php:50 177 187 msgid "Number of comments to return" 178 188 msgstr "Nombre de commentaires" … … 182 192 msgstr "Nombre de mots dans un excerpt" 183 193 194 #: class-decent-comments-rest.php:84 195 msgid "Number of words shown as an excerpt" 196 msgstr "Nombre de mots affichés comme extrait" 197 184 198 #: class-decent-comments.php:58 185 199 msgid "Options" … … 206 220 msgstr "Type d'Article" 207 221 208 #: class-decent-comments-rest.php: 99222 #: class-decent-comments-rest.php:127 209 223 msgid "Post category or tag" 210 msgstr " "224 msgstr "Catégorie ou étiquette de l'article" 211 225 212 226 #: class-decent-comments.php:172 … … 239 253 msgstr "Afficher l'avatar" 240 254 255 #: class-decent-comments-rest.php:182 256 msgid "Show comment" 257 msgstr "Afficher le commentaire" 258 259 #: class-decent-comments-rest.php:166 260 msgid "Show comment author" 261 msgstr "Afficher l'auteur du commentaire" 262 241 263 #: class-decent-comments-widget.php:539 242 264 msgid "Show comment excerpt" 243 265 msgstr "Afficher l'excerpt du commentaire" 244 266 245 #: class-decent-comments-widget.php:574 267 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 246 268 msgid "Show date" 247 269 msgstr "Montrez la date" … … 263 285 msgstr "Montrez la date et l'heure à laquelle le commentaire a été publié." 264 286 265 #: class-decent-comments-rest.php:5 0287 #: class-decent-comments-rest.php:59 266 288 msgid "Size of author avatars in pixels" 267 289 msgstr "La taille de l'avatar en pixels" 268 290 269 #: class-decent-comments-rest.php: 74291 #: class-decent-comments-rest.php:101 270 292 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 271 293 msgstr "" 294 "Trier les commentaires par : date, author_email, author_url, content, karma, " 295 "post" 272 296 273 297 #: class-decent-comments-widget.php:474 … … 279 303 msgstr "Ordonnancement." 280 304 281 #: class-decent-comments-rest.php: 90305 #: class-decent-comments-rest.php:118 282 306 msgid "Sort order: asc or desc" 283 307 msgstr "Ordonnancement: asc ou desc" … … 291 315 msgstr "Taxonomie" 292 316 293 #: class-decent-comments-rest.php:1 07317 #: class-decent-comments-rest.php:135 294 318 msgid "Term ids or slugs" 295 msgstr " "319 msgstr "IDs ou slugs des termes" 296 320 297 321 #: class-decent-comments-widget.php:630 … … 307 331 msgid "Thanks for supporting our work with a purchase in our %sShop%s!" 308 332 msgstr "" 333 "Merci de soutenir notre travail en effectuant un achat dans notre " 334 "%sBoutique%s!" 309 335 310 336 #: class-decent-comments-widget.php:559 … … 341 367 msgstr "Trackbacks" 342 368 343 #: class-decent-comments-rest.php:1 22369 #: class-decent-comments-rest.php:150 344 370 msgid "Whether to include Pingbacks" 345 371 msgstr "Inclure les pingbacks" 346 372 347 #: class-decent-comments-rest.php:1 30373 #: class-decent-comments-rest.php:158 348 374 msgid "Whether to include Trackbacks" 349 375 msgstr "Inclure les trackbacks" -
decent-comments/trunk/languages/decent-comments-it_IT.po
r3426106 r3433692 5 5 "Project-Id-Version: Decent Comments 1.1.0\n" 6 6 "Report-Msgid-Bugs-To: \n" 7 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"8 "PO-Revision-Date: 202 5-12-23 11:18+0100\n"7 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 8 "PO-Revision-Date: 2026-01-06 15:02+0100\n" 9 9 "Last-Translator: \n" 10 10 "Language-Team: \n" … … 17 17 #: blocks/decent-comments/node_modules/@wordpress/style-engine/class-wp-style-engine-processor.php:44 18 18 msgid "$store must be an instance of WP_Style_Engine_CSS_Rules_Store" 19 msgstr " "19 msgstr "$store deve essere un'istanza di WP_Style_Engine_CSS_Rules_Store" 20 20 21 21 #: class-decent-comments-renderer.php:496 … … 82 82 msgstr "Elisione" 83 83 84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1484 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 85 85 msgid "Exclude comments from post authors" 86 86 msgstr "" 87 87 88 #: class-decent-comments-rest.php:58 88 #: class-decent-comments-rest.php:74 89 msgid "Generate an excerpt" 90 msgstr "Genera un estratto" 91 92 #: class-decent-comments-rest.php:67 89 93 msgid "ID of the post to get comments for (0 for all posts)" 90 msgstr " "94 msgstr "ID del post per cui visualizzare i commenti (0 per tutti i post)" 91 95 92 96 #: class-decent-comments-widget.php:630 … … 163 167 msgstr "" 164 168 169 #: class-decent-comments-rest.php:93 170 msgid "Number of characters shown as an excerpt" 171 msgstr "Numero di caratteri visualizzati nell'estratto" 172 165 173 #: class-decent-comments-widget.php:455 166 174 msgid "Number of comments" 167 175 msgstr "Numero di commenti" 168 176 169 #: class-decent-comments-rest.php: 41177 #: class-decent-comments-rest.php:50 170 178 msgid "Number of comments to return" 171 179 msgstr "Numero di commenti" … … 175 183 msgstr "Numero di parole dell'anteprima" 176 184 185 #: class-decent-comments-rest.php:84 186 msgid "Number of words shown as an excerpt" 187 msgstr "Numero di parole visualizzate nell'estratto" 188 177 189 #: class-decent-comments.php:58 178 190 msgid "Options" … … 199 211 msgstr "" 200 212 201 #: class-decent-comments-rest.php: 99213 #: class-decent-comments-rest.php:127 202 214 msgid "Post category or tag" 203 msgstr " "215 msgstr "Categoria o tag del post" 204 216 205 217 #: class-decent-comments.php:172 … … 232 244 msgstr "Mostra avatar" 233 245 246 #: class-decent-comments-rest.php:182 247 msgid "Show comment" 248 msgstr "Mostra commento" 249 250 #: class-decent-comments-rest.php:166 251 msgid "Show comment author" 252 msgstr "Mostra autore del commento" 253 234 254 #: class-decent-comments-widget.php:539 235 255 msgid "Show comment excerpt" 236 256 msgstr "Visualizza un'anteprima del commento" 237 257 238 #: class-decent-comments-widget.php:574 258 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 239 259 msgid "Show date" 240 260 msgstr "" … … 256 276 msgstr "" 257 277 258 #: class-decent-comments-rest.php:5 0278 #: class-decent-comments-rest.php:59 259 279 msgid "Size of author avatars in pixels" 260 280 msgstr "Dimensioni dell'avatar in pixels" 261 281 262 #: class-decent-comments-rest.php: 74282 #: class-decent-comments-rest.php:101 263 283 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 264 284 msgstr "" 285 "Ordina i commenti per: date, author_email, author_url, content, karma, post" 265 286 266 287 #: class-decent-comments-widget.php:474 … … 272 293 msgstr "Ordina." 273 294 274 #: class-decent-comments-rest.php: 90295 #: class-decent-comments-rest.php:118 275 296 msgid "Sort order: asc or desc" 276 297 msgstr "Ordina: asc o desc" … … 284 305 msgstr "Tassonomia" 285 306 286 #: class-decent-comments-rest.php:1 07307 #: class-decent-comments-rest.php:135 287 308 msgid "Term ids or slugs" 288 msgstr " "309 msgstr "ID o slug dei termini" 289 310 290 311 #: class-decent-comments-widget.php:630 … … 301 322 msgid "Thanks for supporting our work with a purchase in our %sShop%s!" 302 323 msgstr "" 324 "Grazie per aver supportato il nostro lavoro con un acquisto nel nostro " 325 "%sNegozio%s!" 303 326 304 327 #: class-decent-comments-widget.php:559 … … 334 357 msgstr "" 335 358 336 #: class-decent-comments-rest.php:1 22359 #: class-decent-comments-rest.php:150 337 360 msgid "Whether to include Pingbacks" 338 361 msgstr "" 339 362 340 #: class-decent-comments-rest.php:1 30363 #: class-decent-comments-rest.php:158 341 364 msgid "Whether to include Trackbacks" 342 365 msgstr "" -
decent-comments/trunk/languages/decent-comments-lt_LT.po
r3426106 r3433692 5 5 "Project-Id-Version: Decent Comments 1.1.0\n" 6 6 "Report-Msgid-Bugs-To: \n" 7 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"8 "PO-Revision-Date: 202 5-12-23 11:20+0100\n"7 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 8 "PO-Revision-Date: 2026-01-06 15:04+0100\n" 9 9 "Last-Translator: \n" 10 10 "Language-Team: \n" … … 17 17 #: blocks/decent-comments/node_modules/@wordpress/style-engine/class-wp-style-engine-processor.php:44 18 18 msgid "$store must be an instance of WP_Style_Engine_CSS_Rules_Store" 19 msgstr " "19 msgstr "„$store“ turi būti WP_Style_Engine_CSS_Rules_Store egzempliorius" 20 20 21 21 #: class-decent-comments-renderer.php:496 … … 82 82 msgstr "Elipsė" 83 83 84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1484 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 85 85 msgid "Exclude comments from post authors" 86 86 msgstr "" 87 87 88 #: class-decent-comments-rest.php:58 88 #: class-decent-comments-rest.php:74 89 msgid "Generate an excerpt" 90 msgstr "" 91 92 #: class-decent-comments-rest.php:67 89 93 msgid "ID of the post to get comments for (0 for all posts)" 90 msgstr " "94 msgstr "Įrašo ID, kad būtų galima gauti komentarus (0 visiems įrašams)" 91 95 92 96 #: class-decent-comments-widget.php:630 … … 165 169 msgstr "" 166 170 171 #: class-decent-comments-rest.php:93 172 msgid "Number of characters shown as an excerpt" 173 msgstr "Simbolių skaičius, rodomas kaip ištrauka" 174 167 175 #: class-decent-comments-widget.php:455 168 176 msgid "Number of comments" 169 177 msgstr "Komentarų skaičius" 170 178 171 #: class-decent-comments-rest.php: 41179 #: class-decent-comments-rest.php:50 172 180 msgid "Number of comments to return" 173 181 msgstr "Komentarų skaičius" … … 177 185 msgstr "Žodžių skaičius ištraukose" 178 186 187 #: class-decent-comments-rest.php:84 188 msgid "Number of words shown as an excerpt" 189 msgstr "Žodžių skaičius, rodomas kaip ištrauka" 190 179 191 #: class-decent-comments.php:58 180 192 msgid "Options" … … 201 213 msgstr "" 202 214 203 #: class-decent-comments-rest.php: 99215 #: class-decent-comments-rest.php:127 204 216 msgid "Post category or tag" 205 msgstr " "217 msgstr "Įrašo kategorija arba žyma" 206 218 207 219 #: class-decent-comments.php:172 … … 234 246 msgstr "Rodyti pseudoportretą" 235 247 248 #: class-decent-comments-rest.php:182 249 msgid "Show comment" 250 msgstr "Rodyti komentarą" 251 252 #: class-decent-comments-rest.php:166 253 msgid "Show comment author" 254 msgstr "Rodyti komentaro autorių" 255 236 256 #: class-decent-comments-widget.php:539 237 257 msgid "Show comment excerpt" 238 258 msgstr "Rodyti komentaro ištrauką" 239 259 240 #: class-decent-comments-widget.php:574 260 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 241 261 msgid "Show date" 242 262 msgstr "" … … 258 278 msgstr "" 259 279 260 #: class-decent-comments-rest.php:5 0280 #: class-decent-comments-rest.php:59 261 281 msgid "Size of author avatars in pixels" 262 282 msgstr "Pseudoportreto dydis, taškais" 263 283 264 #: class-decent-comments-rest.php: 74284 #: class-decent-comments-rest.php:101 265 285 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 266 286 msgstr "" 287 "Rūšiuoti komentarus pagal: date, author_email, author_url, content, karma, " 288 "post" 267 289 268 290 #: class-decent-comments-widget.php:474 … … 274 296 msgstr "Rikiavimo tvarka." 275 297 276 #: class-decent-comments-rest.php: 90298 #: class-decent-comments-rest.php:118 277 299 msgid "Sort order: asc or desc" 278 300 msgstr "Rikiavimo tvarka: asc arba post_tag" … … 286 308 msgstr "Taksonomija" 287 309 288 #: class-decent-comments-rest.php:1 07310 #: class-decent-comments-rest.php:135 289 311 msgid "Term ids or slugs" 290 msgstr " "312 msgstr "Terminų ID arba šliuzus" 291 313 292 314 #: class-decent-comments-widget.php:630 … … 302 324 #, php-format 303 325 msgid "Thanks for supporting our work with a purchase in our %sShop%s!" 304 msgstr " "326 msgstr "Dėkojame, kad remiate mūsų darbą pirkdami mūsų %sShop%s!" 305 327 306 328 #: class-decent-comments-widget.php:559 … … 336 358 msgstr "" 337 359 338 #: class-decent-comments-rest.php:1 22360 #: class-decent-comments-rest.php:150 339 361 msgid "Whether to include Pingbacks" 340 362 msgstr "" 341 363 342 #: class-decent-comments-rest.php:1 30364 #: class-decent-comments-rest.php:158 343 365 msgid "Whether to include Trackbacks" 344 366 msgstr "" -
decent-comments/trunk/languages/decent-comments-pt_PT.po
r3426106 r3433692 5 5 "Project-Id-Version: Decent Comments 1.1.0\n" 6 6 "Report-Msgid-Bugs-To: \n" 7 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"8 "PO-Revision-Date: 202 5-12-23 11:20+0100\n"7 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 8 "PO-Revision-Date: 2026-01-06 15:06+0100\n" 9 9 "Last-Translator: \n" 10 10 "Language-Team: \n" … … 17 17 #: blocks/decent-comments/node_modules/@wordpress/style-engine/class-wp-style-engine-processor.php:44 18 18 msgid "$store must be an instance of WP_Style_Engine_CSS_Rules_Store" 19 msgstr " "19 msgstr "$store deve ser uma instância de WP_Style_Engine_CSS_Rules_Store" 20 20 21 21 #: class-decent-comments-renderer.php:496 … … 82 82 msgstr "Elipse" 83 83 84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1484 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 85 85 msgid "Exclude comments from post authors" 86 86 msgstr "" 87 87 88 #: class-decent-comments-rest.php:58 88 #: class-decent-comments-rest.php:74 89 msgid "Generate an excerpt" 90 msgstr "Gerar um excerto" 91 92 #: class-decent-comments-rest.php:67 89 93 msgid "ID of the post to get comments for (0 for all posts)" 90 94 msgstr "" 95 "ID da publicação para a qual pretende obter comentários (0 para todas as " 96 "publicações)" 91 97 92 98 #: class-decent-comments-widget.php:630 … … 164 170 msgstr "" 165 171 172 #: class-decent-comments-rest.php:93 173 msgid "Number of characters shown as an excerpt" 174 msgstr "Número de caracteres apresentados como excerto" 175 166 176 #: class-decent-comments-widget.php:455 167 177 msgid "Number of comments" 168 178 msgstr "Número de cometários" 169 179 170 #: class-decent-comments-rest.php: 41180 #: class-decent-comments-rest.php:50 171 181 msgid "Number of comments to return" 172 182 msgstr "Número de cometários" … … 176 186 msgstr "Número de palavras nos resumos" 177 187 188 #: class-decent-comments-rest.php:84 189 msgid "Number of words shown as an excerpt" 190 msgstr "Número de palavras apresentadas como excerto" 191 178 192 #: class-decent-comments.php:58 179 193 msgid "Options" … … 200 214 msgstr "" 201 215 202 #: class-decent-comments-rest.php: 99216 #: class-decent-comments-rest.php:127 203 217 msgid "Post category or tag" 204 msgstr " "218 msgstr "Categoria ou etiqueta da publicação" 205 219 206 220 #: class-decent-comments.php:172 … … 233 247 msgstr "Exibir avatar" 234 248 249 #: class-decent-comments-rest.php:182 250 msgid "Show comment" 251 msgstr "Exibir comentário" 252 253 #: class-decent-comments-rest.php:166 254 msgid "Show comment author" 255 msgstr "Ver autor do comentário" 256 235 257 #: class-decent-comments-widget.php:539 236 258 msgid "Show comment excerpt" 237 259 msgstr "Mostrar resumo do comentário" 238 260 239 #: class-decent-comments-widget.php:574 261 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 240 262 msgid "Show date" 241 263 msgstr "" … … 257 279 msgstr "" 258 280 259 #: class-decent-comments-rest.php:5 0281 #: class-decent-comments-rest.php:59 260 282 msgid "Size of author avatars in pixels" 261 283 msgstr "Dimesão do avatar em pixeis" 262 284 263 #: class-decent-comments-rest.php: 74285 #: class-decent-comments-rest.php:101 264 286 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 265 287 msgstr "" 288 "Ordenar comentários por: date, author_email, author_url, content, karma, post" 266 289 267 290 #: class-decent-comments-widget.php:474 … … 273 296 msgstr "Ordenar." 274 297 275 #: class-decent-comments-rest.php: 90298 #: class-decent-comments-rest.php:118 276 299 msgid "Sort order: asc or desc" 277 300 msgstr "Ordenar: asc ou desc" … … 285 308 msgstr "Taxonomia" 286 309 287 #: class-decent-comments-rest.php:1 07310 #: class-decent-comments-rest.php:135 288 311 msgid "Term ids or slugs" 289 msgstr " "312 msgstr "IDs ou slugs dos termos" 290 313 291 314 #: class-decent-comments-widget.php:630 … … 301 324 #, php-format 302 325 msgid "Thanks for supporting our work with a purchase in our %sShop%s!" 303 msgstr " "326 msgstr "Obrigado por apoiar o nosso trabalho com uma compra na nossa %sShop%s!" 304 327 305 328 #: class-decent-comments-widget.php:559 … … 335 358 msgstr "" 336 359 337 #: class-decent-comments-rest.php:1 22360 #: class-decent-comments-rest.php:150 338 361 msgid "Whether to include Pingbacks" 339 362 msgstr "" 340 363 341 #: class-decent-comments-rest.php:1 30364 #: class-decent-comments-rest.php:158 342 365 msgid "Whether to include Trackbacks" 343 366 msgstr "" -
decent-comments/trunk/languages/decent-comments-ru_RU.po
r3426106 r3433692 8 8 "Project-Id-Version: \n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"11 "PO-Revision-Date: 202 5-12-23 11:24+0100\n"10 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 11 "PO-Revision-Date: 2026-01-06 15:07+0100\n" 12 12 "Last-Translator: Igor <[email protected]>\n" 13 13 "Language-Team: \n" … … 89 89 msgstr "Многоточие" 90 90 91 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1491 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 92 92 msgid "Exclude comments from post authors" 93 93 msgstr "Исключить комментарии от авторов сообщения" 94 94 95 #: class-decent-comments-rest.php:58 95 #: class-decent-comments-rest.php:74 96 msgid "Generate an excerpt" 97 msgstr "Сгенерировать отрывок" 98 99 #: class-decent-comments-rest.php:67 96 100 msgid "ID of the post to get comments for (0 for all posts)" 97 101 msgstr "" … … 178 182 msgstr "Количество символов в анонсе" 179 183 184 #: class-decent-comments-rest.php:93 185 msgid "Number of characters shown as an excerpt" 186 msgstr "Количество символов, отображаемых в отрывке" 187 180 188 #: class-decent-comments-widget.php:455 181 189 msgid "Number of comments" 182 190 msgstr "Число комментариев" 183 191 184 #: class-decent-comments-rest.php: 41192 #: class-decent-comments-rest.php:50 185 193 msgid "Number of comments to return" 186 194 msgstr "Число комментариев" … … 190 198 msgstr "Количество слов в анонсах" 191 199 200 #: class-decent-comments-rest.php:84 201 msgid "Number of words shown as an excerpt" 202 msgstr "Количество слов, отображаемых в отрывке" 203 192 204 #: class-decent-comments.php:58 193 205 msgid "Options" … … 214 226 msgstr "Тип сообщения" 215 227 216 #: class-decent-comments-rest.php: 99228 #: class-decent-comments-rest.php:127 217 229 msgid "Post category or tag" 218 230 msgstr "Категория или тег публикации" … … 247 259 msgstr "Показать аватар" 248 260 261 #: class-decent-comments-rest.php:182 262 msgid "Show comment" 263 msgstr "Показать комментарий" 264 265 #: class-decent-comments-rest.php:166 266 msgid "Show comment author" 267 msgstr "Показать автора комментария" 268 249 269 #: class-decent-comments-widget.php:539 250 270 msgid "Show comment excerpt" 251 271 msgstr "Показывать анонс комментария" 252 272 253 #: class-decent-comments-widget.php:574 273 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 254 274 msgid "Show date" 255 275 msgstr "Показать дату" … … 271 291 msgstr "Показывать дату и время публикации комментария." 272 292 273 #: class-decent-comments-rest.php:5 0293 #: class-decent-comments-rest.php:59 274 294 msgid "Size of author avatars in pixels" 275 295 msgstr "Размер аватара в пикселях" 276 296 277 #: class-decent-comments-rest.php: 74297 #: class-decent-comments-rest.php:101 278 298 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 279 299 msgstr "" … … 289 309 msgstr "Порядок сортировки." 290 310 291 #: class-decent-comments-rest.php: 90311 #: class-decent-comments-rest.php:118 292 312 msgid "Sort order: asc or desc" 293 313 msgstr "Порядок сортировки: asc или desc" … … 301 321 msgstr "Таксономия" 302 322 303 #: class-decent-comments-rest.php:1 07323 #: class-decent-comments-rest.php:135 304 324 msgid "Term ids or slugs" 305 325 msgstr "Идентификаторы или псевдонимы терминов" … … 354 374 msgstr "Обратные ссылки" 355 375 356 #: class-decent-comments-rest.php:1 22376 #: class-decent-comments-rest.php:150 357 377 msgid "Whether to include Pingbacks" 358 378 msgstr "Включите pingbacks" 359 379 360 #: class-decent-comments-rest.php:1 30380 #: class-decent-comments-rest.php:158 361 381 msgid "Whether to include Trackbacks" 362 382 msgstr "Включите трекбэки" -
decent-comments/trunk/languages/decent-comments-zh_CN.po
r3426106 r3433692 5 5 "Project-Id-Version: Decent Comments 1.1.0\n" 6 6 "Report-Msgid-Bugs-To: \n" 7 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"8 "PO-Revision-Date: 202 5-12-23 11:34+0100\n"7 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 8 "PO-Revision-Date: 2026-01-06 15:11+0100\n" 9 9 "Last-Translator: \n" 10 10 "Language-Team: \n" … … 82 82 msgstr "更多内容提示" 83 83 84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1484 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 85 85 msgid "Exclude comments from post authors" 86 86 msgstr "排除帖子作者的评论" 87 87 88 #: class-decent-comments-rest.php:58 88 #: class-decent-comments-rest.php:74 89 msgid "Generate an excerpt" 90 msgstr "生成摘录" 91 92 #: class-decent-comments-rest.php:67 89 93 msgid "ID of the post to get comments for (0 for all posts)" 90 94 msgstr "要获取评论的帖子的ID(0表示所有帖子)" … … 126 130 "tags' slugs in <strong>Terms</strong>." 127 131 msgstr "" 128 "若想显示某种分类里的留言请选择 <strong>category</strong> 。请在 "129 " <strong>Terms</strong>里选择分类短语。标签请选择<strong>post_tag</strong> 然"130 " 后在 <strong>Termes</strong>选择标签短语。"132 "若想显示某种分类里的留言请选择 <strong>category</strong> 。请在<strong>词汇</" 133 "strong>里选择分类短语。标签请选择<strong>post_tag</strong> 然后在 <strong>词" 134 "汇</strong>选择标签短语。" 131 135 132 136 #: class-decent-comments-renderer.php:106 … … 159 163 msgstr "摘录中的字符数" 160 164 165 #: class-decent-comments-rest.php:93 166 msgid "Number of characters shown as an excerpt" 167 msgstr "显示为摘录的字符数" 168 161 169 #: class-decent-comments-widget.php:455 162 170 msgid "Number of comments" 163 171 msgstr "留言总数" 164 172 165 #: class-decent-comments-rest.php: 41173 #: class-decent-comments-rest.php:50 166 174 msgid "Number of comments to return" 167 175 msgstr "要返回的评论数量" … … 171 179 msgstr "预览字数量" 172 180 181 #: class-decent-comments-rest.php:84 182 msgid "Number of words shown as an excerpt" 183 msgstr "显示为摘录的单词数" 184 173 185 #: class-decent-comments.php:58 174 186 msgid "Options" … … 195 207 msgstr "帖子类型" 196 208 197 #: class-decent-comments-rest.php: 99209 #: class-decent-comments-rest.php:127 198 210 msgid "Post category or tag" 199 211 msgstr "发布类别或标签" … … 228 240 msgstr "显示头像" 229 241 242 #: class-decent-comments-rest.php:182 243 msgid "Show comment" 244 msgstr "显示评论" 245 246 #: class-decent-comments-rest.php:166 247 msgid "Show comment author" 248 msgstr "显示评论作者" 249 230 250 #: class-decent-comments-widget.php:539 231 251 msgid "Show comment excerpt" 232 252 msgstr "显示留言预览" 233 253 234 #: class-decent-comments-widget.php:574 254 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 235 255 msgid "Show date" 236 256 msgstr "显示日期" … … 252 272 msgstr "显示评论发布的日期和时间。" 253 273 254 #: class-decent-comments-rest.php:5 0274 #: class-decent-comments-rest.php:59 255 275 msgid "Size of author avatars in pixels" 256 276 msgstr "作者头像的尺寸(以像素为单位)" 257 277 258 #: class-decent-comments-rest.php: 74278 #: class-decent-comments-rest.php:101 259 279 msgid "Sort comments by: date, author_email, author_url, content, karma, post" 260 280 msgstr "评论排序方式:日期、作者邮箱、作者网址、内容、积分、帖子" … … 268 288 msgstr "排序." 269 289 270 #: class-decent-comments-rest.php: 90290 #: class-decent-comments-rest.php:118 271 291 msgid "Sort order: asc or desc" 272 292 msgstr "排序顺序:asc 或 desc" … … 280 300 msgstr "分类" 281 301 282 #: class-decent-comments-rest.php:1 07302 #: class-decent-comments-rest.php:135 283 303 msgid "Term ids or slugs" 284 304 msgstr "术语ID或别名" … … 329 349 msgstr "引用链接" 330 350 331 #: class-decent-comments-rest.php:1 22351 #: class-decent-comments-rest.php:150 332 352 msgid "Whether to include Pingbacks" 333 353 msgstr "是否包含引用通知" 334 354 335 #: class-decent-comments-rest.php:1 30355 #: class-decent-comments-rest.php:158 336 356 msgid "Whether to include Trackbacks" 337 357 msgstr "是否包含引用链接" -
decent-comments/trunk/languages/decent-comments.pot
r3426106 r3433692 8 8 msgstr "Project-Id-Version: PACKAGE VERSION\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 202 5-12-22 21:09+0100\n"10 "POT-Creation-Date: 2026-01-06 14:45+0100\n" 11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 84 84 msgstr "" 85 85 86 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:1 1486 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142 87 87 msgid "Exclude comments from post authors" 88 88 msgstr "" 89 89 90 #: class-decent-comments-rest.php:58 90 #: class-decent-comments-rest.php:74 91 msgid "Generate an excerpt" 92 msgstr "" 93 94 #: class-decent-comments-rest.php:67 91 95 msgid "ID of the post to get comments for (0 for all posts)" 92 96 msgstr "" … … 148 152 msgstr "" 149 153 154 #: class-decent-comments-rest.php:93 155 msgid "Number of characters shown as an excerpt" 156 msgstr "" 157 150 158 #: class-decent-comments-widget.php:455 151 159 msgid "Number of comments" 152 160 msgstr "" 153 161 154 #: class-decent-comments-rest.php: 41162 #: class-decent-comments-rest.php:50 155 163 msgid "Number of comments to return" 156 164 msgstr "" … … 160 168 msgstr "" 161 169 170 #: class-decent-comments-rest.php:84 171 msgid "Number of words shown as an excerpt" 172 msgstr "" 173 162 174 #: class-decent-comments.php:58 163 175 msgid "Options" … … 184 196 msgstr "" 185 197 186 #: class-decent-comments-rest.php: 99198 #: class-decent-comments-rest.php:127 187 199 msgid "Post category or tag" 188 200 msgstr "" … … 217 229 msgstr "" 218 230 231 #: class-decent-comments-rest.php:182 232 msgid "Show comment" 233 msgstr "" 234 235 #: class-decent-comments-rest.php:166 236 msgid "Show comment author" 237 msgstr "" 238 219 239 #: class-decent-comments-widget.php:539 220 240 msgid "Show comment excerpt" 221 241 msgstr "" 222 242 223 #: class-decent-comments-widget.php:574 243 #: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174 224 244 msgid "Show date" 225 245 msgstr "" … … 241 261 msgstr "" 242 262 243 #: class-decent-comments-rest.php:5 0263 #: class-decent-comments-rest.php:59 244 264 msgid "Size of author avatars in pixels" 245 265 msgstr "" 246 266 247 #: class-decent-comments-rest.php: 74267 #: class-decent-comments-rest.php:101 248 268 msgid "Sort comments by: date, author_email, author_url, content, karma, " 249 269 "post" … … 258 278 msgstr "" 259 279 260 #: class-decent-comments-rest.php: 90280 #: class-decent-comments-rest.php:118 261 281 msgid "Sort order: asc or desc" 262 282 msgstr "" … … 270 290 msgstr "" 271 291 272 #: class-decent-comments-rest.php:1 07292 #: class-decent-comments-rest.php:135 273 293 msgid "Term ids or slugs" 274 294 msgstr "" … … 319 339 msgstr "" 320 340 321 #: class-decent-comments-rest.php:1 22341 #: class-decent-comments-rest.php:150 322 342 msgid "Whether to include Pingbacks" 323 343 msgstr "" 324 344 325 #: class-decent-comments-rest.php:1 30345 #: class-decent-comments-rest.php:158 326 346 msgid "Whether to include Trackbacks" 327 347 msgstr "" -
decent-comments/trunk/readme.txt
r3426106 r3433692 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 3.0. 18 Stable tag: 3.0.2 9 9 License: GPLv3 10 10
Note: See TracChangeset
for help on using the changeset viewer.