Easily add extra download images and display them.
Bewertungen
4.3
Zuletzt aktualisiert
April 3, 2016
Version
1.2
Aktive Installationen
200
EDD Download Images

This plugin requires Easy Digital Downloads v2.5 or higher. This plugin allows you to add extra images to your downloads. Use the included shortcode or template tag to display the images on your website. Developers can also use this plugin to get an array of the images and display the images any way they wish (eg slideshow).

Kürzel verwenden

[edd_download_images]

Template Tag Usage

if( function_exists( 'edd_di_display_images') ) { edd_di_display_images(); }

Filtering the HTML

To alter the HTML, the following filter is provided (example shows an extra <div> being added around image). Paste this into your functions.php and modify $html to your liking:

function themename_edd_di_display_images( $html, $download_image ) { // here a div tag is wrapped around each image $html = '<div><img class="edd-di-image" src="' . $download_image['image'] . '" /></div>'; return $html; } add_filter( 'edd_di_display_images', 'themename_edd_di_display_images', 10, 2 );

Entwickler

To get the array of images from the Database you can use the following. This will be useful if you’d like to build a slideshow to show all the download’s images:

$images = ( function_exists('edd_di_get_images') ) ? edd_di_get_images() : ''; // see the images in the array var_dump( $images );

Plugins for Easy Digital Downloads

https://easydigitaldownloads.com/extensions/

Kostenlosmit dem Creator-Tarif
Mit deiner Installation stimmst du den Geschäftsbedingungen von WordPress.com sowie den Bedingungen für Drittanbieter-Plugins zu.
Aktive Installationen
200
Getestet bis
4.4.33
Dieses Plugin steht zum Download zur Verfügung, um in deiner selbst gehosteten WordPress-Installation verwendet zu werden.