-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-edd.php
22 lines (22 loc) · 912 Bytes
/
sidebar-edd.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* The "Content Sidebar" for single download pages
*/
?>
<div id="content-sidebar" class="content-sidebar widget-area" role="complementary">
<div class="widget product-info-wrapper">
<div class="product-sidebar-price">
<?php if ( edd_has_variable_prices( get_the_ID() ) ) : ?>
<h3 class="widget-title"><?php _e( 'Starting at:', 'tfedd'); edd_price( get_the_ID() ); ?></h3>
<?php elseif ( '0' != edd_get_download_price( get_the_ID() ) && !edd_has_variable_prices( get_the_ID() ) ) : ?>
<h3 class="widget-title"><?php _e( 'Price:', 'tfedd' ); edd_price( get_the_ID() ); ?></h3>
<?php else : ?>
<h3 class="widget-title"><?php _e( 'Free:','tfedd' ); ?></h3>
<?php endif; ?>
</div>
<div class="product-download-buy-button">
<?php echo edd_get_purchase_link( array( 'id' => get_the_ID() ) ); ?>
</div>
</div>
<?php dynamic_sidebar( 'sidebar-edd' ); ?>
</div>