quandigital/caption 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

quandigital/caption

最新稳定版本:1.0.1

Composer 安装命令:

composer require quandigital/caption

包简介

WordPress plugin to override the default [caption] shortcode

README 文档

README

WordPress plugin to override the default [caption] shortcode

Usage

[caption src="IMAGEURL" width="WIDTH%"]CAPTION[/caption]
  • Although the width is specified in percentages, the shortcode creates a full class that is added to the container if width is 100 or a half class if the width is anything else.
  • If caption is empty (i.e. there is no content in the shortcode), only the images gets returned

Example

[caption src="http://www.quandigital.com/uploads/2014/08/3_kaufprozess.png" width="100"]Unterschiedliche Kaufentscheidungsprozesse bei Männern und Frauen (<a href="http://webmagazin.de/business/ecommerce/Webdesign-E-Commerce-Frauen-shoppen-anders-Maenner-auch-Gender-Commerce?page=2">Marti Barletta, 2006</a>)[/caption]

Output

<div class="content-image full">
    <img src="http://www.quandigital.com/uploads/2014/08/3_kaufprozess.png" />
    <div class="caption">
        Unterschiedliche Kaufentscheidungsprozesse bei Männern und Frauen (<a href="http://webmagazin.de/business/ecommerce/Webdesign-E-Commerce-Frauen-shoppen-anders-Maenner-auch-Gender-Commerce?page=2">Marti Barletta, 2006</a>)
    </div>
</div>

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-10