Title: Before/After
Author: keighl
Published: <strong>2009年12月1日</strong>
Last modified: 2010年1月7日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/beforeafter.svg)

# Before/After

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

[ダウンロード](https://downloads.wordpress.org/plugin/beforeafter.zip)

 * [詳細](https://ja.wordpress.org/plugins/beforeafter/#description)
 * [レビュー](https://ja.wordpress.org/plugins/beforeafter/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/beforeafter/#installation)
 * [開発](https://ja.wordpress.org/plugins/beforeafter/#developers)

 [サポート](https://wordpress.org/support/plugin/beforeafter/)

## 説明

Organize “before and after” style portfolios embedded within WordPress posts. Before/
After allows you to select specific images out of your media library, and sort them
into respective before and after groups from the post editing page. Useful for anyone
who features their work or services (web-designers, artists, plumbers, etc.) on 
their site.

**[Support & Examples](http://www.keighl.com/plugins/before-after/)**

=Use=

 * Add images to your Media Library; these images will become available to you on
   the post add/edit page.
 * On the post add/edit page, simply drag images from the Media Library column into
   the Before and After columns.
 * To remove an item, double-click it.

=Template Tags=

=`<?php $beforeafter->is_gallery( id ); ?>`=

Returns true if there is a Before/After gallery associated with a particular post.

 * id:
    - A post id. Typically the current post, $post->ID

=`<?php $beforeafter->gallery( type , id , file , links , list , rel , limit ); ?
>`=

Returns the images stored in a particular Before/After gallery.

 * type:
    - Determines which gallery to return: before or after.
    - Values: ‘before’ , ‘after’
    - Default: ‘after’
 * id:
    - The post id. If set to 0, will return images from all posts with Before/After
      galleries.
    - Default: 0
 * file:
    - Determines the type of image to return: the original image file, or the thumbnail.
    - Values: ‘thumb’ , ‘file’
    - Default: ‘thumb’
 * links:
    - If set to true, will wrap images with links to the original files.
    - Values: true, false
    - Default: true
 * list:
    - If set to true, wraps the image in
    -  tags.
    - Values: true, fase
    - Default: false
 * rel:
    - Alters the default rel parameter for image links.
    - Default: ‘beforeafter’
 * limit:
    - Limits how many items are returned.
    - Default: all of ‘em.

## スクリーンショット

[⌊A view from the post add/edit interface.⌉⌊A view from the post add/edit interface
.⌉[

A view from the post add/edit interface.

## インストール

 1. Upload `beforeafter.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place template tags in theme files.

## FAQ

  Can you upload photos directly from the post edit page?

No. Upload them to the media library directly; it works better.

  Can an image be in more than one gallery?

As of right now, no. If folks feel the need to do this, I can implement that feature.
Please note that the images are still available to do any other WordPress stuff (
eg. insert into post content), but may only used once within Before/After.

I’ve set it up this way to avoid confusing multiple images in the admin interface.

  How is Before/After styled?

It is not styled in any way. The plugin gives you an admin interface, and the template
tags to build any kind of gallery you want. Style it with CSS, or use it in conjunction
with a javascript library like jQuery.

To use this plugin you must be familiar with theme files and rudimentary PHP.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Before/After はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献し
ています。

貢献者

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

[“Before/After” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/beforeafter)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/beforeafter/)するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/beforeafter/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/beforeafter/)
を [RSS](https://plugins.trac.wordpress.org/log/beforeafter/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

=0.2=
 * Adds a ‘limit’ argument to gallery()

#### 0.1

 * Initial release.

## メタ

 *  バージョン **0.2**
 *  最終更新日 **16年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 2.5またはそれ以降 **
 *  検証済み最新バージョン: **2.9.2**
 *  言語
 * [English (US)](https://wordpress.org/plugins/beforeafter/)
 * タグ
 * [before after](https://ja.wordpress.org/plugins/tags/before-after/)[cms](https://ja.wordpress.org/plugins/tags/cms/)
   [image gallery](https://ja.wordpress.org/plugins/tags/image-gallery/)[media library](https://ja.wordpress.org/plugins/tags/media-library/)
   [portfolio](https://ja.wordpress.org/plugins/tags/portfolio/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/beforeafter/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/beforeafter/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/beforeafter/reviews/)

## 貢献者

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

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/beforeafter/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](http://www.keighl.com/plugins/before-after/)