Linux 软件免费装
Banner图

EDD Download Images

开发者 sumobi
更新时间 2016年4月3日 14:59
PHP版本: 3.3 及以上
WordPress版本: 4.4.2
版权: GPLv2 or later
版权网址: 版权信息

标签

images edd easy digital downloads digital downloads sumobi e-downloads download images additional images

下载

1.1 1.1.1 1.1.2 1.1.3 1.2

详情介绍:

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). Shortcode Usage [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 = ' '; return $html; } add_filter( 'edd_di_display_images', 'themename_edd_di_display_images', 10, 2 ); Developers 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/

安装:

  1. Upload entire edd-download-images to the /wp-content/plugins/ directory, or just upload the ZIP package via 'Plugins > Add New > Upload' in your WP Admin
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. Add additional images to each download
Extensions for Easy Digital Downloads https://easydigitaldownloads.com/extensions/ Tips for Easy Digital Downloads http://sumobi.com/blog Follow me on Twitter http://twitter.com/sumobi_

屏幕截图:

  • The new repeatable image upload fields integrated seamlessly with Easy Digital Downloads

升级注意事项:

1.2
  • Fix: Images sometimes were not being saved correctly on first save
  • New: Images can now be reordered via drag and drop. Requires EDD 2.5+

更新日志:

1.2 1.1.3 1.1.2 1.1.1 1.1 1.0