PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
← All changes | views/frontend/summary-inline.php +18 -14 2.3.3 → 8.0.2 View file →
@@ -1,25 +1,29 @@
1 1 <?php
2 -/**
3 - * Summary inline
4 - *
5 - * @var string $totalLabel
6 - * @var string $eachLabel
7 - * @var string $title
8 - */
9 -
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 +
10 12 if ( ! defined( 'WPINC' ) ) {
11 13 die;
12 14 }
15 +
16 + do_action( 'tiered_pricing_table/summary/before_inline_summary', $totalLabel, $eachLabel );
13 17
14 -do_action( 'tier_pricing_table/product_page/before_inline_summary', $totalLabel, $eachLabel );
15 -
16 18 ?>
17 19 <div class="clear"></div>
18 -<div class="tier-pricing-summary-table tier-pricing-summary-table--inline tier-pricing-summary-table--hidden ?>"
19 - data-tier-pricing-table-summary>
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 ); ?>">
20 24 <?php if ( $title ) : ?>
21 - <h4 style=" margin: 20px 0;"><?php echo esc_html( $title ); ?></h4>
25 + <h4 style="margin: 20px 0;"><?php echo esc_html( $title ); ?></h4>
22 26 <?php endif; ?>
23 27 <b><span class="tier-pricing-summary-table-inline__label"><?php echo esc_html( $totalLabel ); ?></span></b> <span
24 28 data-tier-pricing-table-summary-total></span>
25 29 <br>
@@ -27,5 +31,5 @@
27 31 data-tier-pricing-table-summary-product-price></span>
28 32 <br>
29 33 </div>
30 34
31 -<?php do_action( 'tier_pricing_table/product_page/after_inline_summary', $totalLabel, $eachLabel ); ?>
35 +<?php do_action( 'tiered_pricing_table/summary/after_inline_summary', $totalLabel, $eachLabel ); ?>