PluginProbe
YayMail – WooCommerce Email Customizer / 3.3.1
YayMail – WooCommerce Email Customizer v3.3.1
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / includes / License / views / expired-admin-notice.php

expired-admin-notice.php in YayMail – WooCommerce Email Customizer 3.3.1, at includes/License/views/expired-admin-notice.php

26 lines 745 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use YayMail\License\License;
4
5 defined( 'ABSPATH' ) || exit;
6
7 $class = 'notice notice-error';
8 $renew_text = 'Please click here to renew your license key and continue receiving automatic updates.';
9 $licensing_plugins = $this->get_licensing_plugins();
10 foreach ( $licensing_plugins as $_plugin ) {
11 $license = new License( $_plugin['slug'] );
12 if ( $license->is_expired() ) {
13 $message = "Your license key for {$_plugin['name']} has expired.";
14 ?>
15 <div class="<?php echo esc_attr( $class ); ?>">
16 <p>
17 <?php echo esc_html( $message ); ?>
18 <a href="<?php echo esc_url( $license->get_renewal_url() ); ?>" target="_blank">
19 <?php echo esc_html( $renew_text ); ?>
20 </a>
21 </p>
22 </div>
23 <?php
24 }
25 }
26