Easy Digital Downloads – Blocks
EDD Blocks ajoute un bloc des «Téléchargements» pour le nouvel éditeur de WordPress, aussi appelé Gutenberg.
Le bloc des téléchargements vous permet d’afficher une grilles des téléchargements sur votre site similaire au code court [downloads] fourni par Easy Digital Downloads. Le bloc des téléchargements fournit une représentation visuelle de vos téléchargements, vous permettant de voir un aperçu en temps réel de vos téléchargements quand vous configurez les différents réglages.
En plus de pouvoir afficher les téléchargements, une grille des catégories ou des étiquettes des téléchargements peut être affichée.
Requirements
- The latest version of the Gutenberg plugin OR WordPress 5.0 or greater
- Easy Digital Downloads.
Features
Display a grid of Downloads
- Set how many downloads should show per page
- Set how many columns of downloads should show
- Show or hide the buy button
- Show or hide the price
- Show or hide thumbnail images
- Show or hide the excerpt
- Show or hide the full content
- Show or hide the pagination
- Order downloads by « Date Created », « Earnings », « ID », « Price », « Random », « Sales », « Slug » or « Title »
- Order downloads in an « Ascending » or « Descending » order
- Show downloads from a specific category
Display a grid of Download Categories
- Set how many columns of download categories should show
- Show or hide download category thumbnail images
- Show or hide download category names
- Show or hide download category descriptions
- Show or hide download category counts
- Show or hide empty download categories
- Order download categories by « Count », « ID », « Name » or « Slug »
- Order download categories in an « Ascending » or « Descending » order
Display a grid of Download Tags
- Set how many columns of download tags should show
- Show or hide download tag thumbnail images
- Show or hide download tag names
- Show or hide download tag descriptions
- Show or hide download tag counts
- Show or hide empty download tags
- Order download tags by « Count », « ID », « Name » or « Slug »
- Order download tags in an « Ascending » or « Descending » order
Shortcodes
Gutenberg also provides a shortcode block so we’ve added a [download_categories] and [download_tags] shortcode. Each shortcode shares the same attributes, mimicking the options of the Downloads block:
thumbnails
true (default) | false
Whether or not to show the thumbnail image.
title
true (default) | false
Whether or not to show the category or tag name.
description
true (default) | false
Whether or not to show the category or tag description.
show_empty
true | false (default)
Whether or not to show empty terms.
columns
1 | 2 | 3 (default) | 4 | 5 | 6
The number of columns.
count
true (default) | false
Whether or not to show the number of downloads in each term.
orderby
count (default) | id | name | slug
What to order the terms by.
order
ASC | DESC (default)
Dans quel ordre afficher les termes.
Exemples de codes courts
[download_categories count= »false » orderby= »name » order= »ASC » title= »false » columns= »4″]
[download_tags orderby= »id » order= »DESC » columns= »2″]