function ui_register()
{
$jetpack_email = $this->get_jetpack_email();
$jetpack_available = !empty($jetpack_email) && !is_wp_error($jetpack_email);
?>
<div id="vp-wrap" class="wrap">
<div id="vp-head">
<h2>VaultPress <a href="https://dashboard.vaultpress.com/" class="button-secondary" target="_blank"><?php
_e('Visit Dashboard', 'vaultpress');
?>
</a></h2>
</div>
<div id="vp_registration" <?php
if ($jetpack_available) {
echo 'class="jetpack-available"';
}
?>
>
<div class="grid">
<div class="vp_card-dark half">
<h2><?php
_e('The VaultPress plugin <strong>requires a subscription</strong>.', 'vaultpress');
?>
</h2>
<p class="vp_card-description"><?php
_e('Get realtime backups, automated security scanning, and support from WordPress experts.', 'vaultpress');
?>
</p>
<a class="vp_button-mega" href="https://vaultpress.com/plugin/?utm_source=plugin-unregistered&utm_medium=view-plans-and-pricing&utm_campaign=1.0-plugin"><?php
_e('View plans and pricing »', 'vaultpress');
?>
</a>
</div>
<?php
if ($jetpack_available) {
?>
<div class="vp_card half connect-via-jetpack">
<h2><?php
_e('Instantly connect through Jetpack', 'vaultpress');
?>
</h2>
<p class="vp_card-description"><?php
printf(__('Start a <strong>free</strong> five-day trial of VaultPress Lite. Registering will create a VaultPress account for %s.', 'vaultpress'), $jetpack_email);
?>
</p>
<form method="post" action="">
<fieldset>
<button class="vp_button-mega"><?php
_e('Start free trial', 'vaultpress');
?>
</button>
<input type="hidden" name="action" value="register" />
<input type="hidden" name="key_source" value="jetpack" />
<?php
wp_nonce_field('vaultpress_register');
?>
</fieldset>
</form>
</div>
<?php
}
?>
<div class="vp_card half">
<h2><?php
_e('Already have a VaultPress account?', 'vaultpress');
?>
</h2>
<p class="vp_card-description"><?php
_e('Paste your registration key below:', 'vaultpress');
?>
</p>
<form method="post" action="">
<fieldset>
<textarea class="vp_input-register" placeholder="<?php
echo esc_attr(__('Enter your key here...', 'vaultpress'));
?>
" name="registration_key"></textarea>
<button class="vp_button-secondary"><?php
_e('Register ', 'vaultpress');
?>
</button>
<input type="hidden" name="action" value="register" />
<?php
wp_nonce_field('vaultpress_register');
?>
</fieldset>
</form>
</div>
</div><!-- .card-grid -->
</div><!-- #vp_registration -->
</div><!-- #vp-head -->
<?php
}