- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
91 lines
3.1 KiB
PHP
Executable File
91 lines
3.1 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Provide a admin area view for the plugin
|
|
*
|
|
* This file is used to markup the admin-facing aspects of the plugin.
|
|
*
|
|
* @link https://raiolanetworks.es
|
|
* @since 1.0.0
|
|
*
|
|
* @package Wp_Database_Tools
|
|
* @subpackage Wp_Database_Tools/admin/partials
|
|
*/
|
|
|
|
$settings_page = $this->get_settings_pages();
|
|
|
|
?>
|
|
|
|
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
|
|
|
|
<div id="<?php echo $this->plugin_name; ?>-admin" role="main">
|
|
<div id="wpbody-content">
|
|
|
|
<div id="wpheader" class="<?php echo $this->plugin_name; ?>-header ml--20">
|
|
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-header.php'; ?>
|
|
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-navigation.php'; ?>
|
|
<h1></h1>
|
|
</div>
|
|
|
|
<div class="wrap">
|
|
<!-- For display notices -->
|
|
<h2></h2>
|
|
<div id="poststuff">
|
|
<div id="post-body" class="metabox-holder md_col-2">
|
|
<div id="post-body-content">
|
|
|
|
<div class="inside">
|
|
|
|
<div class="bg-white br-10 px-30 py-20">
|
|
|
|
<h1><?php echo __( 'License', $this->plugin_name ); ?></h1>
|
|
|
|
<form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post" id="active_plugin" class="d-flex-start">
|
|
<input type="hidden" name="action" value="active_plugin">
|
|
<?php wp_nonce_field( 'edd_sample_nonce', 'edd_sample_nonce' ); ?>
|
|
|
|
<div class="user-pass-wrap">
|
|
<input id="input_password" type="password" name="license" id="license" class="input password-input bg-light-gray-color b-none py-5 px-10 w-250" value="" size="20">
|
|
<button id="show-password" onclick="viewPassword()" type="button" class="button button-secondary wp-hide-pw hide-if-no-js b-none btn-dark ml--20 color-white py-5 px-10 h-100" data-toggle="0" aria-label="Show password">
|
|
<span id="btn_visibility" class="dashicons dashicons-visibility" aria-hidden="true"></span>
|
|
</button>
|
|
</div>
|
|
|
|
<input type="submit" name="submit" id="submit" class="button button-secondary b-none btn-dark color-white py-5 px-20 text-uppercase ml-20" value="<?php echo __( 'Active', $this->plugin_name ); ?>">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="bg-white br-10 px-30 py-20 mt-20">
|
|
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-license.php'; ?>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- SIDEBAR -->
|
|
<div id="postbox-container-1" class="postbox-container">
|
|
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-sidebar.php'; ?>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br class="clear">
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function viewPassword() {
|
|
var btn_visibility = document.getElementById("btn_visibility");
|
|
var input_password = document.getElementById("input_password");
|
|
btn_visibility.classList.toggle("dashicons-hidden");
|
|
btn_visibility.classList.toggle("dashicons-visibility");
|
|
(input_password.type === "password") ?
|
|
input_password.type = "text": input_password.type = "password";
|
|
}
|
|
</script>
|
|
</div>
|