# yaymail/3.2.6/views/license/information-card.php

YayMail – WooCommerce Email Customizer, version 3.2.6. 88 lines.

- Page: https://pluginprobe.com/plugins/yaymail/3.2.6/code/views/license/information-card.php
- Raw: https://pluginprobe.com/plugins/yaymail/3.2.6/raw/views/license/information-card.php
- Modified: 2023-05-09T16:03:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/3.2.6/code/views/license/information-card.php#L10-L20`.

```php
<?php
	$plugin_slug  = $_plugin['slug'];
	$plugin_name  = $_plugin['name'];
	$license_info = $license->get_license_info();
	$expires      = $license_info['expires'];
	$is_expired   = $license->is_expired();
	$is_addon     = false !== strpos( $plugin_slug, 'addon' );
?>
<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;' ); ?>">
	<div class="yaycommerce-license-card-header">
		<div class="yaycommerce-license-card-title-wrapper">
			<h3 class="yaycommerce-license-card-title yaycommerce-license-card-header-item">
				<?php echo esc_html( "{$plugin_name}" ); ?>
				<span class="yaycommerce-license-badge <?php echo esc_attr( $is_expired ? 'error' : 'success' ); ?>"><?php echo esc_html( $is_expired ? 'Expired' : 'Active' ); ?></span>
			</h3>
		</div>
	</div>
	<div class="<?php echo esc_attr( $plugin_slug ); ?>-license-message yaycommerce-license-message"></div> 
	<div class="yaycommerce-license-card-body">
		<table class="yaycommerce-license-table">
			<tbody>
				<tr class="yaycommerce-license-tr">
					<td class="yaycommerce-license-key-text" ><?php echo esc_html( 'Your License Key:' ); ?></td>
					<td class="yaycommerce-license-text">
						<input type="text" disabled value="<?php echo esc_attr( $license->format_license_key() ); ?>">
					</td>
					<td>
						<button class="button yaycommerce-update-license" data-plugin="<?php echo esc_attr( $plugin_slug ); ?>">
							<span>Update</span>
							<span class="activate-loading sync-loading">
								<svg
								data-v-7957300f=""
								xmlns="http://www.w3.org/2000/svg"
								viewBox="0 0 24 24"
								>
									<path
									data-v-7957300f=""
									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"
									></path>
								</svg>
							</span>
						</button>
						<button class="button yaycommerce-remove-license" data-plugin="<?php echo esc_attr( $plugin_slug ); ?>">
							<span>Remove</span>
							<span class="activate-loading sync-loading">
								<svg
								data-v-7957300f=""
								xmlns="http://www.w3.org/2000/svg"
								viewBox="0 0 24 24"
								>
									<path
									data-v-7957300f=""
									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"
									></path>
								</svg>
							</span>
						</button>
					</td>
				</tr>
				<tr class="yaycommerce-license-tr">
					<td class="yaycommerce-license-key-text" >Expiration Date: </td>
					<?php
						$time_in_tz = strtotime( $expires );
					?>
					<td class="yaycommerce-license-text">
						<?php
						if ( 'lifetime' === $expires ) {
							echo 'Lifetime';
						} else {
							echo esc_html( gmdate( 'F j, Y H:i:s', $time_in_tz ) );
						}
						?>
						<?php
						if ( $is_expired ) {
							echo '<strong class="yaycommerce-license-expired-text">(Expired)</strong>';}
						?>
					</td>
				</tr>
			</tbody>
		</table>
		<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>	
		<?php
		if ( $is_expired ) {
			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>';}
		?>
	</div>
</div>

```
