{"id":22880,"date":"2013-04-09T02:44:48","date_gmt":"2013-04-09T02:44:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/edd-download-images\/"},"modified":"2016-04-03T06:59:50","modified_gmt":"2016-04-03T06:59:50","slug":"edd-download-images","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/edd-download-images\/","author":10539184,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"1.2","tested":"4.4.34","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"EDD Download Images","header_author":"Andrew Munro, Sumobi","header_description":"","assets_banners_color":"ffffff","last_updated":"2016-04-03 06:59:50","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/sumobi.com\/shop\/edd-download-images\/","header_author_uri":"http:\/\/sumobi.com","rating":4.3,"author_block_rating":0,"active_installs":100,"downloads":11866,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"1.2":"<ul>\n<li>Fix: Images sometimes were not being saved correctly on first save<\/li>\n<li>New: Images can now be reordered via drag and drop. Requires EDD 2.5+<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":"1","4":0,"5":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"694187","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.1.1","1.1.2","1.1.3","1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"694182","resolution":"1","location":"assets"}},"screenshots":{"1":"The new repeatable image upload fields integrated seamlessly with Easy Digital Downloads"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[5346,25502,5484,2665,163],"plugin_category":[45,50],"plugin_contributors":[78291],"plugin_business_model":[],"class_list":["post-22880","plugin","type-plugin","status-publish","hentry","plugin_tags-digital-downloads","plugin_tags-e-downloads","plugin_tags-easy-digital-downloads","plugin_tags-edd","plugin_tags-images","plugin_category-ecommerce","plugin_category-media","plugin_contributors-sumobi","plugin_committers-cklosows","plugin_committers-nosegraze","plugin_committers-smub","plugin_committers-sumobi","plugin_support_reps-dgoldak","plugin_support_reps-misulicus"],"banners":{"banner":"https:\/\/ps.w.org\/edd-download-images\/assets\/banner-772x250.png?rev=694187","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/edd-download-images_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/edd-download-images\/assets\/screenshot-1.png?rev=694182","caption":"The new repeatable image upload fields integrated seamlessly with Easy Digital Downloads"}],"raw_content":"<!--section=description-->\n<p>This plugin requires <a href=\"http:\/\/wordpress.org\/extend\/plugins\/easy-digital-downloads\/\" title=\"Easy Digital Downloads\">Easy Digital Downloads<\/a> 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).<\/p>\n\n<h4>Shortcode Usage<\/h4>\n\n<pre><code>[edd_download_images]\n<\/code><\/pre>\n\n<h4>Template Tag Usage<\/h4>\n\n<pre><code>if( function_exists( 'edd_di_display_images') ) {\n    edd_di_display_images();\n}\n<\/code><\/pre>\n\n<h4>Filtering the HTML<\/h4>\n\n<p>To alter the HTML, the following filter is provided (example shows an extra <code>&lt;div&gt;<\/code> being added around image). Paste this into your functions.php and modify $html to your liking:<\/p>\n\n<pre><code>function themename_edd_di_display_images( $html, $download_image ) {\n    \/\/ here a div tag is wrapped around each image\n    $html = '&lt;div&gt;&lt;img class=\"edd-di-image\" src=\"' . $download_image['image'] . '\" \/&gt;&lt;\/div&gt;';\n    return $html;\n}\nadd_filter( 'edd_di_display_images', 'themename_edd_di_display_images', 10, 2 );\n<\/code><\/pre>\n\n<h4>Developers<\/h4>\n\n<p>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:<\/p>\n\n<pre><code>$images = ( function_exists('edd_di_get_images') ) ? edd_di_get_images() : '';\n\n\/\/ see the images in the array\nvar_dump( $images );\n<\/code><\/pre>\n\n<p><strong>Plugins for Easy Digital Downloads<\/strong><\/p>\n\n<p><a href=\"https:\/\/easydigitaldownloads.com\/extensions\/\" title=\"Plugins for Easy Digital Downloads\">https:\/\/easydigitaldownloads.com\/extensions\/<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload entire <code>edd-download-images<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory, or just upload the ZIP package via 'Plugins &gt; Add New &gt; Upload' in your WP Admin<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Add additional images to each download<\/li>\n<\/ol>\n\n<p><strong>Extensions for Easy Digital Downloads<\/strong><\/p>\n\n<p><a href=\"https:\/\/easydigitaldownloads.com\/extensions\/\" title=\"Extensions for Easy Digital Downloads\">https:\/\/easydigitaldownloads.com\/extensions\/<\/a><\/p>\n\n<p><strong>Tips for Easy Digital Downloads<\/strong><\/p>\n\n<p><a href=\"http:\/\/sumobi.com\/blog\" title=\"Tips for Easy Digital Downloads\">http:\/\/sumobi.com\/blog<\/a><\/p>\n\n<p><strong>Follow me on Twitter<\/strong>\n<a href=\"http:\/\/twitter.com\/sumobi_\" title=\"Twitter\">http:\/\/twitter.com\/sumobi_<\/a><\/p>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<ul>\n<li>Fix: Images sometimes were not being saved correctly on first save<\/li>\n<li>New: Images can now be reordered via drag and drop. Requires EDD 2.5+<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Fix: If there were more than 3 images, they weren't being saved properly due to recent changes in EDD<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Fix: template tag not working from previous update<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fix: [edd_download_images] not showing images in correct location<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fix: Now working for EDD v1.9<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Easily add extra download images and display them.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22880"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sumobi"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22880"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22880"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22880"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22880"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22880"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}