[wordpress插件] add-rel-lightbox添加相关灯箱

wordpress 插件 文章 2020-01-31 02:20 565 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

WordPress plugin to automatically add rel=”lightbox” attribute to link wrapped images, as placed into WordPress posts.

WordPress插件可以自动添加rel =“ lightbox”属性来链接包装好的图像(放置在WordPress帖子中)。

This plugin requires lightbox or slimbox (or any lightbox-compatible image handler) to also be installed on your site, either as part of the theme, or via a plugin.

此插件需要将灯箱或slimbox(或任何与灯箱兼容的图像处理程序)也作为主题的一部分或通过插件安装在您的网站上。

If either lightbox, or add-rel-lightbox is not activated at any time, your site will revert gracefully to the standard “open image as new page”.

如果任何时候都不激活灯箱或add-rel-lightbox,则您的网站将正常还原为标准的“以新页打开图像”。

The plugin currently only works with images placed into posts using the “add media” dialogues, and will only apply to images that are in your media library.

该插件当前仅适用于使用“添加媒体”对话框放置在帖子中的图像,并且仅适用于您的媒体库中的图像。

However, it will also not interfere with any images that have already have attributes applied to them.

但是,它也不会不会干扰任何已经应用了属性的图像。

add-rel-lightbox also works with the [gallery] shortcode, adding the rel=”lightbox” attribute to links created by it.

add-rel-lightbox也可以与[gallery]短代码一起使用,将rel =“ lightbox”属性添加到它创建的链接中。

Note that you will have to use the [gallery link="file"] format, or select “Image File” when inserting the gallery for lighbox to work as expected.

请注意,您必须使用 [gallery link =“ file”] 格式,或在插入图库时选择“图像文件”,以使lighbox正常工作。

Galleries that link to the attachment page are unaffected by this plugin.

链接到附件页面的画廊不受此插件的影响。

In addition to applying rel=”lightbox”, this plugin will retrieve the media library caption for any images, and correctly escape any html entities, so that the caption is displayed as expected in the lightbox.

除了应用rel =“ lightbox”之外,此插件还将检索任何图像的媒体库标题,并正确转义任何html实体,以便在灯箱中按预期显示标题。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

Either Install the plugin by searching for “add-rel-lightbox” from the plugin page of your wordpress installation, or:

通过在您的wordpress安装插件页面中搜索“ add-rel-lightbox”来安装插件,或者:

    1. Download and extract the plugin from the zip file
    2. 从zip文件下载并提取插件

    3. Copy the plugin folder into the /wp-content/plugins/ directory
    4. 将插件文件夹复制到 / wp-content / plugins / 目录

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

    To function, you will also need (lightbox/slimbox/lighbox clone) installed and activated.

    要运行,还需要安装并激活(lightbox / slimbox / lighbox克隆)。

    To Upgrade:

    要升级:

    Either upgrade automatically from your admin pages.

    从管理页面自动升级。

    Or if upgrading manually: deactivate the plugin before copying

    或者,如果是手动升级:请在复制之前停用插件

    the new files across;

    新文件遍布;

    then enable when completed.

    然后在完成后启用。

下载地址

https://downloads.wordpress.org/plugin/add-rel-lightbox.0.4.1.zip

https://downloads.wordpress.org/plugin/add-rel-lightbox.0.4.1.zip

-EOF-

AI助手支持GPT4.0