Title: Plugin Name: Always valid lightbox mod
Author: hb860
Published: <strong>2013 年 10 月 23 日</strong>
Last modified: 2013 年 10 月 23 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/always-valid-lightbox-mod.svg)

# Plugin Name: Always valid lightbox mod

 作者：[hb860](https://profiles.wordpress.org/hb860/)

[下载](https://downloads.wordpress.org/plugin/always-valid-lightbox-mod.zip)

 * [详情](https://cn.wordpress.org/plugins/always-valid-lightbox-mod/#description)
 * [评价](https://cn.wordpress.org/plugins/always-valid-lightbox-mod/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/always-valid-lightbox-mod/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/always-valid-lightbox-mod/#developers)

 [支持](https://wordpress.org/support/plugin/always-valid-lightbox-mod/)

## 描述

This plugin is a modification of the “Always valid lightbox” plugin created by [Joffrey Quillet](http://www.joffrey-quillet.fr/).
This mod contains a fix for the buggy image resizing and for the description text
inside the lightbox popup. Also, it uses only the built-in jQuery library. [More info](http://winaero.com/blog/fix-markup-validation-issues-with-the-always-valid-lightbox-mod-plugin).

Always Valid Lightbox is a Lightbox plugin whose markup adapts to the WP site’s 
Doctype, in order to always provide a valid HTML markup.

Also, AVL allows the user to chose the attributes he wants inserted on his image
links, depending on the Doctype declaration used in the website header.php template.

This way, the lightbox never generates markup validation errors at the W3C Validator
test.

The jQuery lightbox effect is an adaptation based on David Ryan’s jQuery lightbox
tutorial : http://dryan.com/articles/jquery-lightbox-tutorial/

## 屏幕截图

 * [[
 * Settings page
 * [[
 * Effect in action

## 安装

 1. Unzip the plugin and upload the ‘always-valid-lightbox-mod’ directory to your `/
    wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Configure the plugin in the Always Valid Lightbox configuration section of your
    administration panel.

## 常见问题

  I do not understand the plugin configuration page

Here’s an explanation for each option :

“Automatically detect the image links in your posts and apply the lightbox attribute
to them” : “Yes” allows the plugin to work in automatic mode. This means the plugin
will automatically detect your images and trigger the lightbox effect when you click
on them. If you choose “No”, you will have to manually edit your site contents and
mark all the links which should trigger a lightbox effect with the ‘data-lightbox
=”true”‘ or the ‘rel=”lightbox”‘ attributes.

“If you chose yes, select which attribute should be inserted in your code (choose
accordingly with your doctype declaration)” : only available if you chose ‘Yes’ 
to the previous option. It allows you to choose the kind of markup the plugin will
automatically insert in your page to trigger the lightbox effect. No matter what
choice you make, the lightbox will work. However, the W3C validity of your page 
will depend on it, so you should choose your markup in accordance with the DOCTYPE
declaration found in your site header.

“Lightbox skin” : choose the appearance of your lightbox effect

For more information about HTML validation and Doctypes, please consult the following
page : http://validator.w3.org/docs/help.html#validation_basics

  How do I display an image title under my lightbox images ?

The lightbox effect automatically takes the HTML “title” attribute of your images
in order to display image titles. If it is not set, it will use the “alt” attribute
instead, so the “title” attribute is not really required.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Plugin Name: Always valid lightbox mod」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ hb860 ](https://profiles.wordpress.org/hb860/)

[帮助将「Plugin Name: Always valid lightbox mod」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/always-valid-lightbox-mod)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/always-valid-lightbox-mod/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/always-valid-lightbox-mod/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/always-valid-lightbox-mod/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/always-valid-lightbox-mod/)。

## 更新日志

#### 1.0

 * Initial release of the mod

## 额外信息

 *  版本 **v1.0**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/always-valid-lightbox-mod/)
 * 标签
 * [images](https://cn.wordpress.org/plugins/tags/images/)[lightbox](https://cn.wordpress.org/plugins/tags/lightbox/)
   [shadowbox](https://cn.wordpress.org/plugins/tags/shadowbox/)
 *  [高级视图](https://cn.wordpress.org/plugins/always-valid-lightbox-mod/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/always-valid-lightbox-mod/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/always-valid-lightbox-mod/reviews/)

## 贡献者

 *   [ hb860 ](https://profiles.wordpress.org/hb860/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/always-valid-lightbox-mod/)