PluginProbe
YayMail – WooCommerce Email Customizer / 3.2.2
YayMail – WooCommerce Email Customizer v3.2.2
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 3.4.2 3.4.3 All 55 releases
yaymail / views / license / information-card.php

information-card.php in YayMail – WooCommerce Email Customizer 3.2.2, at views/license/information-card.php

88 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $plugin_slug = $_plugin['slug'];
3 $plugin_name = $_plugin['name'];
4 $license_info = $license->get_license_info();
5 $expires = $license_info['expires'];
6 $is_expired = $license->is_expired();
7 $is_addon = false !== strpos( $plugin_slug, 'addon' );
8 ?>
9 <div class="yaycommerce-license-card" id="<?php echo esc_attr( "{$plugin_slug}_license_card" ); ?>" style="<?php echo esc_attr( $is_addon ? 'order: 2;' : 'order: 1;' ); ?>">
10 <div class="yaycommerce-license-card-header">
11 <div class="yaycommerce-license-card-title-wrapper">
12 <h3 class="yaycommerce-license-card-title yaycommerce-license-card-header-item">
13 <?php echo esc_html( "{$plugin_name}" ); ?>
14 <span class="yaycommerce-license-badge <?php echo esc_attr( $is_expired ? 'error' : 'success' ); ?>"><?php echo esc_html( $is_expired ? 'Expired' : 'Active' ); ?></span>
15 </h3>
16 </div>
17 </div>
18 <div class="<?php echo esc_attr( $plugin_slug ); ?>-license-message yaycommerce-license-message"></div>
19 <div class="yaycommerce-license-card-body">
20 <table class="yaycommerce-license-table">
21 <tbody>
22 <tr class="yaycommerce-license-tr">
23 <td class="yaycommerce-license-key-text" ><?php echo esc_html( 'Your License Key:' ); ?></td>
24 <td class="yaycommerce-license-text">
25 <input type="text" disabled value="<?php echo esc_attr( $license->format_license_key() ); ?>">
26 </td>
27 <td>
28 <button class="button yaycommerce-update-license" data-plugin="<?php echo esc_attr( $plugin_slug ); ?>">
29 <span>Update</span>
30 <span class="activate-loading sync-loading">
31 <svg
32 data-v-7957300f=""
33 xmlns="http://www.w3.org/2000/svg"
34 viewBox="0 0 24 24"
35 >
36 <path
37 data-v-7957300f=""
38 d="M21.66 10.37a.62.62 0 00.07-.19l.75-4a1 1 0 00-2-.36l-.37 2a9.22 9.22 0 00-16.58.84 1 1 0 00.55 1.3 1 1 0 001.31-.55A7.08 7.08 0 0112.07 5a7.17 7.17 0 016.24 3.58l-1.65-.27a1 1 0 10-.32 2l4.25.71h.16a.93.93 0 00.34-.06.33.33 0 00.1-.06.78.78 0 00.2-.11l.08-.1a1.07 1.07 0 00.14-.16.58.58 0 00.05-.16zM19.88 14.07a1 1 0 00-1.31.56A7.08 7.08 0 0111.93 19a7.17 7.17 0 01-6.24-3.58l1.65.27h.16a1 1 0 00.16-2L3.41 13a.91.91 0 00-.33 0H3a1.15 1.15 0 00-.32.14 1 1 0 00-.18.18l-.09.1a.84.84 0 00-.07.19.44.44 0 00-.07.17l-.75 4a1 1 0 00.8 1.22h.18a1 1 0 001-.82l.37-2a9.22 9.22 0 0016.58-.83 1 1 0 00-.57-1.28z"
39 ></path>
40 </svg>
41 </span>
42 </button>
43 <button class="button yaycommerce-remove-license" data-plugin="<?php echo esc_attr( $plugin_slug ); ?>">
44 <span>Remove</span>
45 <span class="activate-loading sync-loading">
46 <svg
47 data-v-7957300f=""
48 xmlns="http://www.w3.org/2000/svg"
49 viewBox="0 0 24 24"
50 >
51 <path
52 data-v-7957300f=""
53 d="M21.66 10.37a.62.62 0 00.07-.19l.75-4a1 1 0 00-2-.36l-.37 2a9.22 9.22 0 00-16.58.84 1 1 0 00.55 1.3 1 1 0 001.31-.55A7.08 7.08 0 0112.07 5a7.17 7.17 0 016.24 3.58l-1.65-.27a1 1 0 10-.32 2l4.25.71h.16a.93.93 0 00.34-.06.33.33 0 00.1-.06.78.78 0 00.2-.11l.08-.1a1.07 1.07 0 00.14-.16.58.58 0 00.05-.16zM19.88 14.07a1 1 0 00-1.31.56A7.08 7.08 0 0111.93 19a7.17 7.17 0 01-6.24-3.58l1.65.27h.16a1 1 0 00.16-2L3.41 13a.91.91 0 00-.33 0H3a1.15 1.15 0 00-.32.14 1 1 0 00-.18.18l-.09.1a.84.84 0 00-.07.19.44.44 0 00-.07.17l-.75 4a1 1 0 00.8 1.22h.18a1 1 0 001-.82l.37-2a9.22 9.22 0 0016.58-.83 1 1 0 00-.57-1.28z"
54 ></path>
55 </svg>
56 </span>
57 </button>
58 </td>
59 </tr>
60 <tr class="yaycommerce-license-tr">
61 <td class="yaycommerce-license-key-text" >Expiration Date: </td>
62 <?php
63 $time_in_tz = strtotime( $expires );
64 ?>
65 <td class="yaycommerce-license-text">
66 <?php
67 if ( 'lifetime' === $expires ) {
68 echo 'Lifetime';
69 } else {
70 echo esc_html( gmdate( 'F j, Y H:i:s', $time_in_tz ) );
71 }
72 ?>
73 <?php
74 if ( $is_expired ) {
75 echo '<strong class="yaycommerce-license-expired-text">(Expired)</strong>';}
76 ?>
77 </td>
78 </tr>
79 </tbody>
80 </table>
81 <p>Need more licenses? <a class="yaycommerce-license-buy-now" href="<?php echo esc_url( $licensing_plugin->get_option( 'url' ) ); ?>" target="_blank">Buy Now</a></p>
82 <?php
83 if ( $is_expired ) {
84 echo '<p><strong class="yaycommerce-license-expired-text">Your license is expired! <a href="' . esc_url( $license->get_renewal_url() ) . '" class="yaycommerce-license-expired-text" target="_blank">Renew Now!</a></strong></p>';}
85 ?>
86 </div>
87 </div>
88