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

BC Responsive Images

描述

BC Responsive Images is a WordPress shortcode plugin to enable editors and developers to automatically generate and manage Responsive Images via the WP Editor and within template files.

Originally created by Burfield’s team of Bath WordPress Designers for internal use, we have subsequently released it as a Plugin with the following features

  • Mobile first – utilizes the excellent jQuery Picture Plugin to serve appropriately sized images only when required.
  • Resizes images on-the-fly – powered by the superb WPThumb Plugin (where available) to avoid the dreaded “Regenerate Thumbnails” issue. Falls-back to WP Core images.
  • Fully featured shortcode [brimg] to allow editors to create Responsive Images within posts.
  • Powerful and customisable template function brimg() for developers to make use of in templates.
  • Simple yet powerful – set default breakpoints in the Plugin settings but still have the power to define your own on a case-by-case basis.

Upgrade Notices

None currently.

屏幕截图

  • The Plugin settings menu.

安装

Installation of the Plugin is simple.

  1. Upload the bc-responsive-images directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure your desired Breakpoints and associated image sizes via the “BC Resposive Images” plugin settings menu item.
  4. Place a call to <?php brimg() ?> in your templates or utilise the [brimg] shortcode to generate your images.

Full usage instructions can be found on the Plugin’s GitHub repository.

常见问题

Is this a Plug & Play solution for Responsive Images in WordPress

Yes…and no. The Plugin provides an interface to allow both technical and non-technical users to create Responsive Images. It does however assume at least a basic knowledge of best practices for creating mobile-first responsive websites.

You will need to configure default breakpoints using the Plugin’s settings menu.

Can I use my own markup pattern/script for Responsive Images?

Not currently. jQuery Picture is the default script to load the images at various breakpoints and the HTML is processed to match that syntax.

In a (upcoming) future release we will provide hooks and filters to allow developers to provide their own scripts and markup patterns.

I have a build process for scripts and css. Can I include scripts manually

Why yes you can! Simply uncheck the checkbox box in the Plugin settings page to disable script inclusion. Be sure to re-include the script correctly though…

评价

此插件暂无评价。

贡献者及开发者

“BC Responsive Images” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“BC Responsive Images”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.1.0

  • Alpha release.