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
tier-pricing-table / views / admin / notifications / activation-notification.php

activation-notification.php in Tiered Pricing Table for WooCommerce 8.0.2, at views/admin/notifications/activation-notification.php

67 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use TierPricingTable\Addons\GlobalTieredPricing\CPT\GlobalTieredPricingCPT;
4 use TierPricingTable\Admin\Notifications\Notifications\ActivationNotification;
5 use TierPricingTable\Core\ServiceContainer;
6 use TierPricingTable\TierPricingTablePlugin;
7
8 if ( ! defined( 'WPINC' ) ) {
9 die;
10 }
11
12 ActivationNotification::setInactive();
13 ?>
14
15 <div class="updated notice is-dismissible" style="border: 1px solid #c3c4c7; padding: 15px 20px">
16 <div style="display: flex; gap: 10px; align-items: center">
17 <div>
18 <img height="100px"
19 src="<?php echo esc_attr( ServiceContainer::getInstance()->getFileManager()->locateAsset( 'admin/pricing-logo.png' ) ); ?>"
20 alt="">
21 </div>
22 <div>
23 <p>
24 <span style="font-size: 1.3em">
25 <?php esc_html_e( 'Thanks for installing the', 'tier-pricing-table' ); ?>
26 <b><?php esc_html_e( 'Tiered Pricing Table', 'tier-pricing-table' ); ?></b>!
27 </span>
28 </p>
29 <p>
30 <span>
31 <?php
32 $productsURL = add_query_arg( array(
33 'post_type' => 'product',
34 ), admin_url( 'edit.php' ) );
35
36 $globalRulesURL = add_query_arg( array(
37 'post_type' => GlobalTieredPricingCPT::SLUG,
38 ), admin_url( 'edit.php' ) );
39
40 $productsLink = sprintf( '<b><a target="_blank" href="%s">%s</a></b>', $productsURL,
41 __( 'products', 'tier-pricing-table' ) );
42
43 $globalPricingRulesLink = sprintf( '<a target="_blank" href="%s"><b>%s</b></a>',
44 $globalRulesURL, __( 'a global pricing rule', 'tier-pricing-table' ) );
45
46 // translators: %1$s: product links, %2$s: categories
47 echo wp_kses_post( sprintf( __( 'Add quantity-based pricing rules directly in the %1$s or create %2$s that will work for product categories and user roles.',
48 'tier-pricing-table' ), $productsLink, $globalPricingRulesLink ) );
49 ?>
50 </span>
51 </p>
52 <p style="margin-top: 10px">
53 <span>
54 <a href="<?php echo esc_attr( ServiceContainer::getInstance()->getSettings()->getLink() ); ?>"
55 class="button button-primary">
56 <?php esc_html_e( 'Settings', 'tier-pricing-table' ); ?>
57 </a>
58 <a href="<?php echo esc_attr( TierPricingTablePlugin::getDocumentationURL() ); ?>"
59 target="_blank" class="button">
60 <?php esc_html_e( 'Documentation', 'tier-pricing-table' ); ?>
61 </a>
62 </span>
63 </p>
64 </div>
65 </div>
66 </div>
67