installed plugin Easy Digital Downloads
version 3.1.0.3
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Displays the download terms block.
|
||||
*
|
||||
* @var array $block_attributes
|
||||
* @var WP_Query $downloads
|
||||
* @var array $classes
|
||||
*/
|
||||
?>
|
||||
<div class="<?php echo esc_attr( implode( ' ', array_filter( $classes ) ) ); ?>">
|
||||
<?php
|
||||
while ( $downloads->have_posts() ) {
|
||||
$downloads->the_post();
|
||||
?>
|
||||
<article class="edd-blocks__download">
|
||||
<?php
|
||||
if ( ! empty( $block_attributes['title'] ) || ! empty( $block_attributes['image_location'] ) ) {
|
||||
include 'header.php';
|
||||
}
|
||||
if ( ! empty( $block_attributes['content'] ) || ! empty( $block_attributes['price'] ) ) {
|
||||
include 'content.php';
|
||||
}
|
||||
if ( $block_attributes['purchase_link'] ) {
|
||||
include 'footer.php';
|
||||
}
|
||||
?>
|
||||
</article>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if ( $block_attributes['pagination'] ) {
|
||||
include 'pagination.php';
|
||||
}
|
Reference in New Issue
Block a user