這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Before After Pictures

外掛說明

Before After Pictures plugin integrates jQuery Before/After Plugin in the wordpress. It can be used to show the difference between edited and original photo, before and after photos of changes, etc.

Please check ‘Other Notes’ for the Usage instructions to see how to use it on your blog

Demosites: http://www.ansichten-und-aussichten.de/beforeafter-pictures/

Operation with default theme
Operation with TwentyTen theme

Author info:
Holger Stroeder

Limitations

  • Both iomages must have the same size in pixels
  • Before/After Pictures works only on single posts and pages

Usage

  • Set the default options on the admin page of the plugin
  • Write the content of your post other than the images
  • Upload the before and after images to wordpress or any other webspace and remember the path/url

  • Switch to ‘Visuell’ mode of the post editor area

  • Click ‘Before/After Pictures’ button
  • Fill in the information in the popup screen (id, before and after image must be set), empty attributes can be deleted

or

  • Switch to ‘HTML’ mode of the post editor area
  • Click ‘Before/After Pictures’ button
  • Fill in the information in the editor area (id, before and after image must be set), empty attributes can be deleted

  • Parameters:
    [beforeafterpics id=” image_before=” image_after=” animateintro=” introdelay=” introduration=” showfulllinks=” /]

id: If you want to place multiple [beforeafter] sections on one page, every shortcode must have an unique id. (required if more than one image in the post)
image_before: path/url to the image file must be set. (required)
image_after: path/url to the image file must be set. (required)
animateintro: Whether or not to have the drag bar start completely to the right of the container and gradually move by itself to the midpoint. (optional)
introdelay: If animateIntro is true, the number of milliseconds to wait before beginning the automatic drag bar move to the center of the image. (optional)
introduration: If animateIntro is true, the number of milliseconds it will take for the drag bar to go from the right side of the image to the middle of the image. (optional)
showfulllinks: Whether or not to display links below the image that a visitor can click on that will automatically show the full before or full after image. (optional)

螢幕擷圖

  • Before/After Pictures button in Visual Editor
  • Before/After Pictures popup screnn
  • Before/After Pictures button in HTML Editor
  • Before/After Pictures shortcodes in editor
  • Before/After Pictures option page
  • Before/After Pictures example

安裝方式

Requirements

  • WordPress: 2.9 or newer

Basic Installation

  • Plugin folder in the WordPress plugins folder must be beforeafter-pictures
  • Upload folder before-after-pics to the /wp-content/plugins/ directory
  • Activate the plugin through the ‘Plugins’ menu in WordPress
  • Check Before/After Pictures Option page
  • Check out ‘Other Notes’ for usage instruction.

常見問題集

  • Example delivered: Just copy and paste the following into a new article and check if everything is fine…
    [beforeafterpics id=’1′ image_before=’/wp-content/plugins/beforeafter-pictures/images/example-before.jpg’ image_after=’/wp-content/plugins/beforeafter-pictures/images/example-after.jpg’ /]

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Before After Pictures〉的開發相關工作。

參與者

將〈Before After Pictures〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.2.1

  • enabled for usage on single pages

0.2

  • minor changes to fix WordPress 3.1 issue(s)
  • added activation and deactivation functions for options
  • default values for option page delivered

0.1

  • initial release