Title: Before/After
Author: keighl
Published: <strong>2009-12-01</strong>
Last modified: 2010-01-07

---

Szukaj wtyczek

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

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

# Before/After

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

[Pobierz](https://downloads.wordpress.org/plugin/beforeafter.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/beforeafter/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/beforeafter/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/beforeafter/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/beforeafter/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/beforeafter/)

## Opis

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.

## Zrzuty ekranu

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

A view from the post add/edit interface.

## Instalacja

 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.

## Najczęściej zadawane pytania

  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.

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„Before/After” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój
wtyczki.

Zaangażowani

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

[Przetłumacz wtyczkę “Before/After” na swój język.](https://translate.wordpress.org/projects/wp-plugins/beforeafter)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/beforeafter/), sprawdź
[repozytorium SVN](https://plugins.svn.wordpress.org/beforeafter/) lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/beforeafter/)
przez [RSS](https://plugins.trac.wordpress.org/log/beforeafter/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

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

#### 0.1

 * Initial release.

## Meta

 *  Wersja **0.2**
 *  Ostatnia aktualizacja **16 lat temu**
 *  Włączone instalacje **10+**
 *  Wersja WordPressa ** 2.5 lub nowszej **
 *  Testowano do **2.9.2**
 *  Język
 * [English (US)](https://wordpress.org/plugins/beforeafter/)
 * Tagi
 * [before after](https://pl.wordpress.org/plugins/tags/before-after/)[cms](https://pl.wordpress.org/plugins/tags/cms/)
   [image gallery](https://pl.wordpress.org/plugins/tags/image-gallery/)[media library](https://pl.wordpress.org/plugins/tags/media-library/)
   [portfolio](https://pl.wordpress.org/plugins/tags/portfolio/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/beforeafter/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

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

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/beforeafter/reviews/)

## Zaangażowani

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

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/beforeafter/)

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](http://www.keighl.com/plugins/before-after/)