| 1 |
<?php |
| 2 |
/** |
| 3 |
* Summary table |
| 4 |
* |
| 5 |
* @var int $productId |
| 6 |
* @var string $title |
| 7 |
* @var string $totalLabel |
| 8 |
* @var string $eachLabel |
| 9 |
* @var string $showNonTiered |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'WPINC' ) ) { |
| 13 |
die; |
| 14 |
} |
| 15 |
|
| 16 |
do_action( 'tiered_pricing_table/product_page/before_table_summary', $totalLabel, $eachLabel ); |
| 17 |
|
| 18 |
?> |
| 19 |
<div class="clear"></div> |
| 20 |
|
| 21 |
<div class="tier-pricing-summary-table tier-pricing-summary-table--hidden tier-pricing-summary-table--detailed" |
| 22 |
data-tier-pricing-table-summary |
| 23 |
data-show-non-tiered="<?php echo esc_attr( isset( $showNonTiered ) ? $showNonTiered : 'no' ); ?>" |
| 24 |
data-product-id="<?php echo esc_attr( $productId ); ?>"> |
| 25 |
|
| 26 |
<?php if ( $title ) : ?> |
| 27 |
<h4 style="margin: 10px 0;"> |
| 28 |
<?php echo esc_html( $title ); ?> |
| 29 |
</h4> |
| 30 |
<?php endif; ?> |
| 31 |
|
| 32 |
<div class="tiered-pricing-totals tiered-pricing-totals--advanced"> |
| 33 |
<div style="display: flex; justify-content: space-between; border-top: 1px dashed #f5f5f5; border-bottom: 1px dashed #f5f5f5; padding: 5px 0;"> |
| 34 |
<div> |
| 35 |
<span data-tier-pricing-table-summary-product-qty></span> |
| 36 |
<span style="font-size: .9em;">×</span> |
| 37 |
<span data-tier-pricing-table-summary-product-name></span> |
| 38 |
</div> |
| 39 |
<div> |
| 40 |
<del style="margin-right: 5px;"><span data-tier-pricing-table-summary-product-old-price></span></del> |
| 41 |
<span style="font-size: 1.15em" data-tier-pricing-table-summary-product-price></span> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|
| 45 |
<div style="display: flex; justify-content: space-between; font-size: 1.3em; margin-top:5px"> |
| 46 |
<div> |
| 47 |
<?php echo esc_html( $totalLabel ); ?> |
| 48 |
</div> |
| 49 |
<div> |
| 50 |
<span data-tier-pricing-table-summary-total-with-tax></span> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|
| 54 |
</div> |
| 55 |
</div> |
| 56 |
|
| 57 |
|
| 58 |
<?php do_action( 'tiered_pricing_table/product_page/before_table_summary', $totalLabel, $eachLabel ); ?> |
| 59 |
|