| 1 |
<?php |
| 2 |
|
| 3 |
use TierPricingTable\Addons\GlobalTieredPricing\CPT\GlobalTieredPricingCPT; |
| 4 |
|
| 5 |
if ( ! defined( 'WPINC' ) ) { |
| 6 |
die; |
| 7 |
} |
| 8 |
|
| 9 |
?> |
| 10 |
<style> |
| 11 |
#tiered-pricing-data { |
| 12 |
min-height: 350px; |
| 13 |
} |
| 14 |
|
| 15 |
.tpt-global-rules-product-notice { |
| 16 |
display: flex; |
| 17 |
gap: 20px; |
| 18 |
padding: 15px; |
| 19 |
align-items: center; |
| 20 |
background: #fafafa; |
| 21 |
bottom: 0; |
| 22 |
} |
| 23 |
|
| 24 |
.tpt-global-rules-product-notice__text { |
| 25 |
font-weight: bold; |
| 26 |
} |
| 27 |
|
| 28 |
.tpt-global-rules-product-notice__icon svg { |
| 29 |
width: 16px; |
| 30 |
height: 16px; |
| 31 |
vertical-align: sub; |
| 32 |
fill: #555; |
| 33 |
} |
| 34 |
|
| 35 |
.tpt-global-rules-product-notice__button { |
| 36 |
margin-left: auto; |
| 37 |
} |
| 38 |
</style> |
| 39 |
<div class="tpt-global-rules-product-notice"> |
| 40 |
<div class="tpt-global-rules-product-notice__icon"> |
| 41 |
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" |
| 42 |
xmlns:xlink="http://www.w3.org/1999/xlink" |
| 43 |
viewBox="0 0 416.979 416.979" |
| 44 |
xml:space="preserve"> |
| 45 |
<g> |
| 46 |
<path d="M356.004,61.156c-81.37-81.47-213.377-81.551-294.848-0.182c-81.47,81.371-81.552,213.379-0.181,294.85 |
| 47 |
c81.369,81.47,213.378,81.551,294.849,0.181C437.293,274.636,437.375,142.626,356.004,61.156z M237.6,340.786 |
| 48 |
c0,3.217-2.607,5.822-5.822,5.822h-46.576c-3.215,0-5.822-2.605-5.822-5.822V167.885c0-3.217,2.607-5.822,5.822-5.822h46.576 |
| 49 |
c3.215,0,5.822,2.604,5.822,5.822V340.786z M208.49,137.901c-18.618,0-33.766-15.146-33.766-33.765 |
| 50 |
c0-18.617,15.147-33.766,33.766-33.766c18.619,0,33.766,15.148,33.766,33.766C242.256,122.755,227.107,137.901,208.49,137.901z"/> |
| 51 |
</g> |
| 52 |
</svg> |
| 53 |
</div> |
| 54 |
<div class="tpt-global-rules-product-notice__text"> |
| 55 |
<?php |
| 56 |
esc_html_e( 'Looking to set pricing rules for product categories or custom sets of products?', |
| 57 |
'tier-pricing-table' ); |
| 58 |
?> |
| 59 |
</div> |
| 60 |
<div class="tpt-global-rules-product-notice__button"> |
| 61 |
<a target="_blank" |
| 62 |
href="<?php |
| 63 |
echo esc_attr( add_query_arg( array( 'post_type' => GlobalTieredPricingCPT::SLUG ), |
| 64 |
admin_url( 'post-new.php' ) ) ) |
| 65 |
?>" |
| 66 |
class="button button-secondary button-large"> |
| 67 |
<?php esc_html_e( 'Create a global pricing rule', 'tier-pricing-table' ); ?> |
| 68 |
</a> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
|