Cette page est également disponible en Français Français

WP Envato Affiliate Card is a premium add-on of the free plugin WP Plugin Info Card (available in the WordPress repository).

It lets you display nice cards (3D or flat layout) about Envato products through Envato API data with your affiliate username embedded. Get affiliate cash in the process !

This plugin supports all Envato products types and markets. If you embed an audio product, it will automatically add an audio player. If the included product has a video preview or is a video, the plugin will automatically add a video player. Audio and video players are based on the native WordPress players (HTML5).

Supported markets are: themeforest, codecanyon, videohive, audiojungle, graphicriver, photodune, 3docean, activeden.

This plugin is responsive-friendly:

  • the flipping card has a fixed with of 280px
  • the large layout is fully responsive

How does it work?

It uses Envato API to fetch product data. All you need to do is provide a valid product ID, and then insert the shortcode in any page to make it work at once! (support page content + sidebar)
This plugin is very light and includes scripts and CSS only if and when required. The shortcode may be added everywhere shortcodes are supported in your theme (content, sidebar widget).

The plugin also uses WordPress transients to store data returned by the API for 12 hours (720min by default), so your page loading time will not be increased due to too many requests. You may change this cache duration and/or load the API data asynchronously with AJAX.

The dashboard widget is very easy to set up: you simply add as many products as you want in the admin page and they become visible in your dashboard. Easily monitor all your Envato product from one central location in your admin area! (Fields are added on-the-fly and are sortable via drag-and-drop.)
Perfect to keep track of your own products!

 

envato-admin-options-b-web 

 

As a bonus, the plugin uses the TinyMCE API to improve UI and make inserting shortcodes easier.

 

Customisation

You may provide a list of slugs (comma-separated) in your shortcode slug parameter, WPPIC will randomly choose on item of the list on each page refresh.

You may easily overload the plugin render. You need to create a new “wppic-templates” folder into your theme folder, then copy the template you want to overload from WP Envato Affiliate Card “wppic-templates” folder.

You may create your own template file. You need to create a new “wppic-templates” folder into your theme folder, then copy the template file “wppic-template-envato-large.php” from WP Envato Affiliate Card ‘/wppic-templates’ folder. Rename the file like this “wppic-template-envato-NEWTEMPLATE.php”, edit it as you go and add your own CSS rules. Finally, call your new template by adding the following parameter in your shortcode: layout=”NEWTEMPLATE”

 

Knonw issues

Some H.264 encoded videos from the Envato market cannot be played in the Firefox browser. This is a known issue and the only current solution is to play them through a Flash player. However because the render layouts are responsive, we can’t load a SWF player as a fallback.

envato-desc

Shortcode parameters

Please refer to the WP Plugin Info Card plugin page for full documentation.

  • type: envato (default: plugin)
  • slug: envato product ID – Please refer to the product URL on the envato market to determine its ID. Eg: http://themeforest.net/item/item-name/ITEM-ID
  • custom: value to output : slug, url, name, market, cost, author, avatar, followers, sales, live_preview_url, thumbnail, rating, downloaded, last_updated, audio_url, video_url (default: empty)

 


Examples

 
 
 


Languages

Plugin is fully translatable through PO & MO files.

Available languages are:
– English
– French

 


Installation

1. Upload and activate the two plugins “WP Plugin Info Card” and “WP Plugin Info Card”
2. Click on the “WP Plugin Info Card” sub-menu
3. Follow instructions, every option is documented 😉

 


Demonstration

Card layout

 


Large layout

 


Purchase!

b-web-rate-it

Brice Capobianco

WordPress addict and self-taught. I love to learn and to create, then to share…
Founder of b-website.com