[wordpress插件] Customize Comments自定义评论

wordpress 插件 文章 2020-04-10 14:20 482 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin is a proof of concept for how comment editing might be added to the Customizer, with edits to comments being staged in changesets along with any other changes made in customziation session.

此插件是如何将注释编辑添加到定制程序的概念证明,对注释的编辑以及在自定义会话中进行的任何其他更改都将在变更集中进行。

It demonstrates scalable lazy-loading of controls/settings via the REST API.

它演示了通过REST API可扩展的控件/设置的延迟加载。

It demonstrates both dynamic settings and dynamic partials.

它演示了动态设置和动态部分。

A new Comments section is added to the Customizer, and when this section is expanded the most recent comments are fetched from the REST API and then are added as textarea controls in the section.

新的“注释”部分已添加到“定制器”,并且在扩展此部分时,将从REST API获取最新注释,然后将其作为textarea控件添加到该部分中。

A button appears at the bottom of the section for loading subsequent pages of comments.

该部分的底部会出现一个按钮,用于加载后续的评论页面。

The comments are listed with the comment author and publish date along with the post it was commented on.

评论与评论作者一起列出,并与评论发表的日期一起发布。

Only the comment’s content is currently editable.

目前只有评论内容是可编辑的。

When you do edit a comment that appears in the preview, then the comment will be previewed with selective refresh after a low-fidelity instant preview.

当您确实编辑预览中显示的评论时,该评论将在低保真即时预览后进行选择性刷新以进行预览。

When you navigate to a post and see the comment list, clicking the “Edit Comment” link in the Customizer preview will cause the comment to be loaded into a new textarea control in the section, and the control will then be focused for

当您导航到帖子并查看评论列表时,单击Customizer预览中的“编辑评论”链接将导致评论被加载到该部分的新textarea控件中,然后该控件将针对

editing.

编辑。

This is a natural companion to the Customize Posts feature plugin.

这是自定义帖子功能插件的自然伴侣。

下载地址
https://downloads.wordpress.org/plugin/customize-comments.0.1.0.zip
-EOF-

AI助手支持GPT4.0