| 1 |
<?php |
| 2 |
/** props: $plugin */ |
| 3 |
$plugin_slug = $_plugin['slug']; |
| 4 |
$plugin_name = $_plugin['name']; |
| 5 |
$is_addon = false !== strpos( $plugin_slug, 'addon' ); |
| 6 |
?> |
| 7 |
<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;' ); ?>"> |
| 8 |
<div class="yaycommerce-license-card-header"> |
| 9 |
<div class="yaycommerce-license-card-title-wrapper"> |
| 10 |
<h3 class="yaycommerce-license-card-title yaycommerce-license-card-header-item"> |
| 11 |
<?php echo esc_html( "{$plugin_name} activation" ); ?> |
| 12 |
</h3> |
| 13 |
</div> |
| 14 |
</div> |
| 15 |
<div class="<?php echo esc_attr( $plugin_slug ); ?>-license-message yaycommerce-license-message"></div> |
| 16 |
<div class="yaycommerce-license-card-body"> |
| 17 |
<div class="yaycommerce-license-control"> |
| 18 |
<div class="yaycommerce-license-text" for="inspector-select-control-text"><?php echo esc_html( 'Enter a license key' ); ?></div> |
| 19 |
<div class="yaycommerce-license-base-control"> |
| 20 |
<div class="yaycommerce-license-base-control-field"> |
| 21 |
<input class="yaycommerce-license-text-control-input yaycommerce-license-input" type="password" id="<?php echo esc_attr( "{$plugin_slug}_license_input" ); ?>" value="" /> |
| 22 |
<button class="button-primary yaycommerce-activate-license-button" id="<?php echo esc_attr( "{$plugin_slug}_activate_button" ); ?>" data-plugin="<?php echo esc_attr( $plugin_slug ); ?>"> |
| 23 |
<span>Activate License</span> |
| 24 |
<span class="activate-loading sync-loading"> |
| 25 |
<svg |
| 26 |
data-v-7957300f="" |
| 27 |
xmlns="http://www.w3.org/2000/svg" |
| 28 |
viewBox="0 0 24 24" |
| 29 |
> |
| 30 |
<path |
| 31 |
data-v-7957300f="" |
| 32 |
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" |
| 33 |
></path> |
| 34 |
</svg> |
| 35 |
</span> |
| 36 |
</button> |
| 37 |
</div> |
| 38 |
<p><?php echo esc_html( "To receive updates, please enter your valid {$plugin_name} license key" ); ?></p> |
| 39 |
</div> |
| 40 |
<div class="yaycommerce-license-text" for="inspector-select-control-text"><?php echo esc_html( "By activating {$plugin_name}, you'll have:" ); ?></div> |
| 41 |
<ul class="yaycommerce-license-in-feature"> |
| 42 |
<li><?php echo esc_html( 'Auto-update to the latest version' ); ?></li> |
| 43 |
<li><?php echo esc_html( 'Premium Technical Support' ); ?></li> |
| 44 |
<li><?php echo esc_html( 'Live Chat 1-1 on Facebook for any questions' ); ?></li> |
| 45 |
</ul> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
|