| 1 |
<?php |
| 2 |
/** |
| 3 |
* Summary inline |
| 4 |
* |
| 5 |
* @var int $productId |
| 6 |
* @var string $totalLabel |
| 7 |
* @var string $eachLabel |
| 8 |
* @var string $title |
| 9 |
* @var string $showNonTiered |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'WPINC' ) ) { |
| 13 |
die; |
| 14 |
} |
| 15 |
|
| 16 |
do_action( 'tiered_pricing_table/summary/before_inline_summary', $totalLabel, $eachLabel ); |
| 17 |
|
| 18 |
?> |
| 19 |
<div class="clear"></div> |
| 20 |
<div class="tier-pricing-summary-table tier-pricing-summary-table--inline tier-pricing-summary-table--hidden" |
| 21 |
data-tier-pricing-table-summary |
| 22 |
data-show-non-tiered="<?php echo esc_attr( isset( $showNonTiered ) ? $showNonTiered : 'no' ); ?>" |
| 23 |
data-product-id="<?php echo esc_attr( $productId ); ?>"> |
| 24 |
<?php if ( $title ) : ?> |
| 25 |
<h4 style="margin: 20px 0;"><?php echo esc_html( $title ); ?></h4> |
| 26 |
<?php endif; ?> |
| 27 |
<b><span class="tier-pricing-summary-table-inline__label"><?php echo esc_html( $totalLabel ); ?></span></b> <span |
| 28 |
data-tier-pricing-table-summary-total></span> |
| 29 |
<br> |
| 30 |
<b><span class="tier-pricing-summary-table-inline__label"><?php echo esc_html( $eachLabel ); ?></span></b> <span |
| 31 |
data-tier-pricing-table-summary-product-price></span> |
| 32 |
<br> |
| 33 |
</div> |
| 34 |
|
| 35 |
<?php do_action( 'tiered_pricing_table/summary/after_inline_summary', $totalLabel, $eachLabel ); ?> |
| 36 |
|