File: /home/rockyroadprintin/public_html/wp-content/themes/consulting/admin/templates/startup.php
<?php
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
$activated = STM_Theme_Activation::check_token();
$token = STM_Theme_Info::get_activation_info();
$code = isset( $token['code'] ) ? $token['code'] : null;
$confirmation = 'Are you sure to deactivate current site? The theme will be deleted during the deactivation process.';
?>
<div class="wrap stm-admin-wrap stm-admin-start-screen">
<?php STM_Theme_Admin_Pages::get_admin_tabs(); ?>
<?php include __DIR__ . '/theme_info.php' ?>
<div class="stm-startup-admin-content">
<?php if ( ! $activated ) { ?>
<div class="stm-admin-box stm-admin-not-activated">
<div class="__header __text">This theme is not activated on this website</div>
<div class="__activate_row">
<a href="<?php echo esc_url( STM_Theme_Info::get_activation_url() ) ?>" class="stm-button">Activate</a>
<a href="<?php echo esc_url( STM_INSTRUCTIONS_URL ) ?>" target="_blank">How to activate the theme?</a>
</div>
</div>
<div class="stm-admin-box">
<div class="__header">Why do I need theme activation?</div>
<ul class="stm-admin-checklist">
<li>After theme activation, you will be able to choose a layout and import demo content</li>
<li>Activation of the theme will create an account on the theme author's support platform where you can submit any support request related to the theme</li>
</ul>
</div>
<?php } else { ?>
<div class="stm-admin-box stm-admin-activated">
<div class="__header __text">The theme is activated on the website<i class="fa fa-check-circle"></i></div>
<div class="__code_row">
<div class="__code">
<?php echo esc_attr( $code ); ?>
</div>
<form method="post" onsubmit="return confirm('<?php echo esc_attr( $confirmation ); ?>')">
<input type="hidden" name="action" value="stm-deactivate" />
<button type="submit" class="__deactivate">Deactivate & Delete Theme</button>
</form>
</div>
</div>
<?php } ?>
</div>
</div>