| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Provide a admin area view for the plugin |
| 5 |
* |
| 6 |
* This file is used to markup the admin-facing aspects of the plugin. |
| 7 |
* |
| 8 |
* @link https://wpcomplete.co |
| 9 |
* @since 1.0.0 |
| 10 |
* |
| 11 |
* @package WPComplete |
| 12 |
* @subpackage wpcomplete/admin/partials |
| 13 |
*/ |
| 14 |
?> |
| 15 |
|
| 16 |
<div class="wpcomplete-settings wrap"> |
| 17 |
|
| 18 |
<h2><img src="https://wpcomplete.co/wp-content/themes/wpc/assets/wpcomplete-dark.png" width="300"></h2> |
| 19 |
|
| 20 |
<?php if ( isset( $_GET['sl_activation'] ) && ( $_GET['sl_activation'] == 'false' ) && ( $message = urldecode( $_GET['message'] ) ) ) { ?> |
| 21 |
<div class="error"> |
| 22 |
<p><?php echo $message; ?></p> |
| 23 |
</div> |
| 24 |
<?php } ?> |
| 25 |
|
| 26 |
<div class="content"> |
| 27 |
<form action="options.php" method="post"> |
| 28 |
<?php |
| 29 |
$name = $this->plugin_name . '_license_key'; |
| 30 |
$text = get_option( $name ); |
| 31 |
$class = ''; |
| 32 |
$license_status = get_option( $this->plugin_name . '_license_status' ); |
| 33 |
$button_name = $this->plugin_name . '_license_activate'; |
| 34 |
|
| 35 |
include 'wpcomplete-admin-settings-license-status.php'; |
| 36 |
|
| 37 |
settings_fields( $this->plugin_name ); |
| 38 |
do_settings_sections( $this->plugin_name ); |
| 39 |
submit_button(); |
| 40 |
?> |
| 41 |
</form> |
| 42 |
</div> |
| 43 |
|
| 44 |
<div class="sidebar"> |
| 45 |
|
| 46 |
<?php if (!WPCOMPLETE_IS_ACTIVATED) : ?> |
| 47 |
<!-- FREE: --> |
| 48 |
<div class="postbox"> |
| 49 |
<h2><span>Update to WPComplete PRO</span></h2> |
| 50 |
<div class="inside"> |
| 51 |
<p>This plugin has a PRO version with tons more features, like:</p> |
| 52 |
<ul> |
| 53 |
<li>redirecting upon completion</li> |
| 54 |
<li>progress graphs (bar and circle)</li> |
| 55 |
<li>textual progress indicators</li> |
| 56 |
<li>full email support</li> |
| 57 |
<li>and more...</li> |
| 58 |
</ul> |
| 59 |
<p><a href="https://wpcomplete.co">Check out all the benefits</a></p> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
|
| 63 |
<div class="postbox"> |
| 64 |
<h2><span>Want 10% off the PRO version?</span></h2> |
| 65 |
<div class="inside"> |
| 66 |
<p>Get a great deal on the PRO version and all our best course tips.</p> |
| 67 |
|
| 68 |
<form action="//wpcomplete.us13.list-manage.com/subscribe/post?u=aa3f8a628a4c1c32b221a6399&id=a3f8cf0350" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> |
| 69 |
<div id="mce-responses" class="clear"> |
| 70 |
<div class="response" id="mce-error-response" style="display:none"></div> |
| 71 |
<div class="response" id="mce-success-response" style="display:none"></div> |
| 72 |
</div> |
| 73 |
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_aa3f8a628a4c1c32b221a6399_a3f8cf0350" tabindex="-1" value=""></div> |
| 74 |
<input type="email" value="" name="EMAIL" placeholder="Email Address" class="required email" id="mce-EMAIL"> |
| 75 |
<input type="hidden" name="GROUPINGS[7265]" value="Free"> |
| 76 |
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"> |
| 77 |
</form> |
| 78 |
</div> |
| 79 |
</div> |
| 80 |
|
| 81 |
<?php endif; ?> |
| 82 |
|
| 83 |
<div class="postbox"> |
| 84 |
<h2><span>Need help?</span></h2> |
| 85 |
<div class="inside"> |
| 86 |
<?php if (!WPCOMPLETE_IS_ACTIVATED) : ?> |
| 87 |
<!-- FREE: --> |
| 88 |
<p>Only our <a href="https://wpcomplete.co">PRO version</a> comes with email support, but feel free to ping us on the <a href="https://wordpress.org/support/plugin/wpcomplete">WordPress support forum</a>.</p> |
| 89 |
<?php else : ?> |
| 90 |
<!-- PREMIUM: --> |
| 91 |
<p>Need help? Found a bug? We are here to help! Email us: <a href="mailto:nerds@wpcomplete.co">nerds@wpcomplete.co</a></p> |
| 92 |
<?php endif; ?> |
| 93 |
</div> |
| 94 |
</div> |
| 95 |
|
| 96 |
</div> |
| 97 |
|
| 98 |
<hr> |
| 99 |
<p>If you like WPComplete, please <a href="https://wordpress.org/support/view/plugin-reviews/wpcomplete">leave us a � |
| 100 |
� |
| 101 |
� |
| 102 |
� |
| 103 |
� |
| 104 |
rating</a>. Your votes really make a difference! Thanks.</p> |
| 105 |
|
| 106 |
</div> |
| 107 |
|