PluginProbe
Tiered Pricing Table for WooCommerce / 6.1.0
Tiered Pricing Table for WooCommerce v6.1.0
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
tier-pricing-table / src / Addons / GlobalTieredPricing / CPT / Columns / Status.php

Status.php in Tiered Pricing Table for WooCommerce 6.1.0, at src/Addons/GlobalTieredPricing/CPT/Columns/Status.php

27 lines 740 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Addons\GlobalTieredPricing\CPT\Columns;
2
3 use TierPricingTable\Addons\GlobalTieredPricing\GlobalPricingRule;
4
5 class Status {
6
7 public function getName(): string {
8 return '<span class="dashicons dashicons-post-status"></span>';
9 }
10
11 public function render( GlobalPricingRule $rule ) {
12 if ( $rule->isSuspended() ) {
13 ?>
14 <mark class="tpt-rule-suspend-status tpt-rule-suspend-status--suspended"
15 title="<?php esc_attr_e( 'The rule is suspended', 'tier-pricing-table' ); ?>">
16 </mark>
17 <?php
18 } else {
19 ?>
20 <mark class="tpt-rule-suspend-status tpt-rule-suspend-status--active"
21 title="<?php esc_attr_e( 'The rule is active', 'tier-pricing-table' ); ?>">
22 </mark>
23 <?php
24 }
25 }
26 }
27