Initial commit.
This commit is contained in:
13
lib/wp-package-updater/templates/license-form.php
Normal file
13
lib/wp-package-updater/templates/license-form.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
} ?>
|
||||
<div class="wrap-license" data-package_slug="<?php echo esc_attr( $package_slug ); ?>" id="<?php echo esc_attr( 'wrap_license_' . $package_id ); ?>" data-nonce="<?php echo esc_attr( wp_create_nonce( 'license_nonce' ) ); ?>">
|
||||
<p class="license-message<?php echo ( ! $show_license ) ? esc_attr( ' hidden' ) : ''; ?>" style="font-weight:bold;"><?php // @codingStandardsIgnoreLine ?>
|
||||
<span class="current-license-error hidden"></span> <span class="current-license-label"><?php esc_html_e( 'Current license key:', 'wp-package-updater' ); ?></span> <span class="current-license"><?php echo esc_html( $license ); ?></span>
|
||||
</p>
|
||||
<p>
|
||||
<label style="vertical-align: initial;"><?php esc_html_e( 'License key to change:', 'wp-package-updater' ); ?></label> <input class="regular-text license" type="text" id="<?php echo esc_attr( 'license_key_' . $package_id ); ?>" value="" >
|
||||
<input type="button" value="Activate" class="button-primary activate-license" />
|
||||
<input type="button" value="Deactivate" class="button deactivate-license" />
|
||||
</p>
|
||||
</div>
|
||||
10
lib/wp-package-updater/templates/plugin-page-license-row.php
Normal file
10
lib/wp-package-updater/templates/plugin-page-license-row.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
} ?>
|
||||
<tr class="plugin-update-tr active installer-plugin-update-tr">
|
||||
<td colspan="3" class="plugin-update colspanchange">
|
||||
<div class="notice inline notice-warning notice-alt">
|
||||
<?php echo $form; ?><?php // @codingStandardsIgnoreLine ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
11
lib/wp-package-updater/templates/theme-page-license.php
Normal file
11
lib/wp-package-updater/templates/theme-page-license.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
} ?>
|
||||
<div class="wrap">
|
||||
<div class="postbox hidden" style="min-width: 500px; position: absolute; top: 150px; left: 50%; transform: translate(-50%, 0);">
|
||||
<div class="inside" style="margin: 50px;">
|
||||
<h2><?php echo esc_html( $title ); ?></h2>
|
||||
<?php echo $form; ?><?php // @codingStandardsIgnoreLine ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user