A "before and after" portfolio generator. Uses images uploaded to the media library; organize galleries from the post add/edit page.
評分
最近更新:
January 7, 2010
版本
0.2
活躍安裝總數
10

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

=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.
免費使用Creator方案
活躍安裝總數
10
目前已測試版本
2.9.2
此外掛程式已可供下載,並可用於你的 WordPress 自助託管安裝。