[wordpress插件] AutoCapAutoCap

wordpress 插件 文章 2020-02-25 02:10 511 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Automatically generates a caption for images based on the IMG title attribute.

基于IMG标题属性自动为图像生成标题。

Usage

用法

The plugin converts any IMG tag with a non-empty title attribute into a caption block, with the text of the title attribute becoming the caption.

该插件将带有非空title属性的任何IMG标签转换为标题块,而title属性的文本成为标题。

In addition, the plugin will extract the alignment of the caption that WordPress usually adds and assign that to the caption block.

此外,该插件将提取WordPress通常添加的标题的对齐方式,并将其分配给标题块。

So:

所以:

name

  ”名称“

width="400" class="alignleft">

width =“ 400” class =“ alignleft”>

will become:

将变为:

    

  
    

        

        

name

”名称“

width="400">        

width =“ 400”>        

This will be the caption.

    

这将是标题。    

The plugin has a Admin options panel that let’s you set the start date for the plugin’s activity.

插件有一个“管理选项”面板,可让您设置插件活动的开始日期。

Any posts you’ve made after that start date will be affected by the plugin, and posts made before that date will not be.

您在该开始日期之后发布的所有帖子都会受到该插件的影响,而在该日期之前发布的帖子则不会受到该插件的影响。

This allows you to easily maintain backwards compatibility with posts you’ve already made, while captioning new posts after you add the plugin.

这样一来,您可以轻松地保持与已发布帖子的向后兼容性,同时在添加插件后为新帖子添加字幕。

Leaving the date field blank will result in all posts being captioned.

将日期字段保留为空白将导致所有帖子都带有标题。

You can more finely control what is captioned by adding “nocap” or “autocap” to the IMG class attribute.

您可以通过在IMG类属性中添加“ nocap”或“ autocap”来更好地控制标题。

The “nocap” class attribute will suppress an image from being captioned, even if it has a the title attribute set.

即使已设置标题属性,“ nocap”类属性也会禁止对图像进行字幕。

The “autocap” class attribute works in conjunction with the Restrict Captioning option in the Admin panel.

“ autocap”类属性与“管理”面板中的限制字幕选项一起使用。

When Restrict Captioning is set the plugin requires the “autocap” class attribute to trigger the captioning.

设置限制字幕后,插件需要使用“ autocap”类属性来触发字幕。

Release Notes

发行说明

0.94 – Added support for “nocap” and “autocap” class attributes on images for finer control of captioning.

0.94 –添加了对图像上“ nocap”和“ autocap”类属性的支持,以更好地控制字幕。

(based on a suggestion by Blair Mitchelmore)

(基于Blair Mitchelmore的建议)

0.93 – Fixed bug that prevented parenthesis from being used in the captions.

0.93 –修复了阻止在标题中使用括号的错误。

0.90 – Beta

0.90 – Beta

安装步骤

    1. Download and unzip.
    2. 下载并解压缩。

    3. Copy the autocap folder to your plugins directory.
    4. autocap 文件夹复制到您的 plugins 目录中。

    5. Activate in the admin panel.
    6. 在管理面板中激活。

    7. Enjoy
    8. 享受

下载地址
https://downloads.wordpress.org/plugin/autocap.0.94.zip
-EOF-

AI助手支持GPT4.0