- 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>
234 lines
9.2 KiB
PHP
Executable File
234 lines
9.2 KiB
PHP
Executable File
<div class="modal micromodal-slide" id="modal-1" aria-hidden="true">
|
|
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
|
|
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="">
|
|
<header class="modal__header">
|
|
<div class="d-flex-start">
|
|
<img width="20px" id="modal-title-icon" class="mr-5" src="">
|
|
<h4 class="modal__title font-lg p-0 color-dark-gray" id="modal-1-title">
|
|
<?php esc_html_e( 'Remove', 'wp-database-tools' ); ?>
|
|
</h4>
|
|
</div>
|
|
|
|
<button class="modal__close" aria-label="Close modal" data-micromodal-close></button>
|
|
</header>
|
|
|
|
<main class="modal__content" id="modal-1-content">
|
|
|
|
<form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post" id="process_actions">
|
|
|
|
<!-- Function PHP -->
|
|
<?php if ( get_admin_page_title() === __( 'General', 'wp-database-tools' ) ) : ?>
|
|
<input type="hidden" name="action" value="process_general">
|
|
<?php endif; ?>
|
|
|
|
<?php if ( get_admin_page_title() === __( 'Tables', 'wp-database-tools' ) ) : ?>
|
|
<input type="hidden" name="action" value="process_tables">
|
|
<?php endif; ?>
|
|
|
|
<?php if ( get_admin_page_title() === __( 'Options', 'wp-database-tools' ) ) : ?>
|
|
<input type="hidden" name="action" value="process_options">
|
|
<?php endif; ?>
|
|
|
|
<?php if ( get_admin_page_title() === __( 'Transients', 'wp-database-tools' ) ) : ?>
|
|
<input type="hidden" name="action" value="process_transients">
|
|
<?php endif; ?>
|
|
|
|
<?php if ( get_admin_page_title() === __( 'Cronjobs', 'wp-database-tools' ) ) : ?>
|
|
<input type="hidden" name="action" value="process_cronjobs">
|
|
<?php endif; ?>
|
|
|
|
<!-- Current url -->
|
|
<input type="hidden" id="input-current-url" name="current-url" value="<?php echo home_url( $_SERVER['REQUEST_URI'] ); ?>">
|
|
<!-- Action type -->
|
|
<input type="hidden" id="action-type" name="action-type">
|
|
<!-- Action elements -->
|
|
<input type="hidden" id="action-individual" name="action-individual">
|
|
<!-- Action keys -->
|
|
<input type="hidden" id="action-keys" name="action-keys">
|
|
<!-- Action keys -->
|
|
<input type="hidden" id="action-prefix" name="action-prefix">
|
|
<!-- Is days -->
|
|
<input type="hidden" id="action-is-days" name="action-is-days">
|
|
<!-- Is details -->
|
|
<input type="hidden" id="action-is-details" name="action-is-details" value="<?php echo $has_details_table ? $detail_page : 'no'; ?>">
|
|
|
|
<?php wp_nonce_field( 'edd_sample_nonce', 'edd_sample_nonce' ); ?>
|
|
|
|
<div class="container-modal" id="modal-edit">
|
|
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
|
|
|
|
<?php if ( get_admin_page_title() == __( 'General', 'wp-database-tools' ) ) : ?>
|
|
<p><?php esc_html_e( 'How many days do you want to keep the data?', 'wp-database-tools' ); ?></p>
|
|
<input type="number" value="0" name="action-days">
|
|
<?php endif; ?>
|
|
|
|
<?php if ( get_admin_page_title() === __( 'Options', 'wp-database-tools' ) || get_admin_page_title() === __( 'Transients', 'wp-database-tools' ) ) : ?>
|
|
<p><?php esc_html_e( 'What value do you want to set the autolaod to?', 'wp-database-tools' ); ?></p>
|
|
<div>
|
|
<div>
|
|
<input type="radio" id="autoloadChoice1" name="autoload" value="yes" checked="checked">
|
|
<label for="autoloadChoice1"><?php esc_html_e( 'Yes', 'wp-database-tools' ); ?></label>
|
|
</div>
|
|
<div>
|
|
<input type="radio" id="autoloadChoice2" name="autoload" value="no">
|
|
<label for="autoloadChoice2"><?php esc_html_e( 'No', 'wp-database-tools' ); ?></label>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
<div class="container-modal" id="modal-cron">
|
|
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
|
|
|
|
</div>
|
|
|
|
<div class="container-modal" id="modal-empty">
|
|
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-warning.php'; ?>
|
|
|
|
</div>
|
|
|
|
<div class="container-modal" id="modal-delete">
|
|
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
|
|
|
|
<?php if ( get_admin_page_title() == __( 'General', 'wp-database-tools' ) ) : ?>
|
|
|
|
<div class="mb-20">
|
|
<div class="mb-10">
|
|
<input type="radio" id="select-delete" name="action-delete" value="selected" checked="checked">
|
|
<label for="select-delete">
|
|
<?php esc_html_e( 'Delete only records that match in date range according to the marked days', 'wp-database-tools' ); ?>
|
|
</label>
|
|
</div>
|
|
|
|
<div>
|
|
<input type="radio" id="all-delete" name="action-delete" value="all">
|
|
<label for="all-delete">
|
|
<?php esc_html_e( 'Delete records irrespective of whether they comply with the set date range', 'wp-database-tools' ); ?>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-warning.php'; ?>
|
|
|
|
<div id="warning-multiple" class="bg-light-red px-10 py-10 br-5 font-bold mt-10">
|
|
<div class="d-flex-start ">
|
|
<img class="mr-5" width="15px" src='<?php echo WPDBT_ADMIN_URL; ?>img/warning.svg'>
|
|
<p class="m-0"><?php esc_html_e( 'We discourage the deletion of records identified as multiple', 'wp-database-tools' ); ?></p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="container-modal" id="modal-optimize">
|
|
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-warning.php'; ?>
|
|
|
|
</div>
|
|
|
|
<div class="container-modal" id="modal-repair">
|
|
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-warning.php'; ?>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div class="container-modal" id="modal-uncategorized">
|
|
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-component-affected-records.php'; ?>
|
|
|
|
<div id="container-modal-details-uncategorized-form-group" class="bt-solid mt-10 py-10 group container-modal-class-uncategorized-form">
|
|
<p class='font-md m-0 mt-10'>
|
|
<?php esc_html_e( 'Does it belong to any origin?', 'wp-database-tools' ); ?>
|
|
</p>
|
|
<?php $id = 'group'; ?>
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-uncategorized-form.php'; ?>
|
|
</div>
|
|
|
|
<div id="container-modal-details-uncategorized-feedback-group">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="container-modal" id="modal-details">
|
|
|
|
<div id="modal-details-plugins" class="d-none">
|
|
<h3 data-type="plugin" class="m-0 pb-10">
|
|
<?php esc_html_e( 'Plugins', 'wp-database-tools' ); ?>
|
|
</h3>
|
|
<div id="container-modal-details-plugins">
|
|
<!-- JS CONTENT -->
|
|
</div>
|
|
</div>
|
|
|
|
<div id="modal-details-themes" class="d-none">
|
|
<h3 data-type="theme" class="m-0 pb-10">
|
|
<?php esc_html_e( 'Themes', 'wp-database-tools' ); ?>
|
|
</h3>
|
|
<div id="container-modal-details-themes">
|
|
<!-- JS CONTENT -->
|
|
</div>
|
|
</div>
|
|
|
|
<div id="modal-details-cores" class="d-none">
|
|
<h3 data-type="core" class="m-0 pb-10">
|
|
<?php esc_html_e( 'WordPress core', 'wp-database-tools' ); ?>
|
|
</h3>
|
|
<div id="container-modal-details-cores">
|
|
<!-- JS CONTENT -->
|
|
</div>
|
|
</div>
|
|
|
|
<div id="modal-details-uncategorized" class="d-none">
|
|
<!-- <h3>Uncategorized</h3> -->
|
|
<div id="container-modal-details-uncategorized">
|
|
|
|
<div class='card-details'>
|
|
<p id="title-uncategorized" class='font-bold font-md-x1 mt-25'><?php esc_html_e( 'Name', 'wp-database-tools' ); ?></p>
|
|
|
|
<div id="container-modal-details-uncategorized-form-individual" class="bt-solid mt-10 py-10 individual container-modal-class-uncategorized-form">
|
|
<p class='font-md m-0 mt-10'>
|
|
<?php esc_html_e( 'Does it belong to any origin?', 'wp-database-tools' ); ?>
|
|
</p>
|
|
<div class="d-flex-between">
|
|
<?php $id = 'individual'; ?>
|
|
<?php require plugin_dir_path( __DIR__ ) . 'components/modal/wp-database-tools-uncategorized-form.php'; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="container-modal-details-uncategorized-feedback-individual">
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</main>
|
|
<footer class="modal__footer d-flex-start mt-10">
|
|
<button onclick="processAction(this)" id="btn-save" class="button button-secondary b-none btn-dark color-white py-5 px-20 text-uppercase mr-20">
|
|
<?php esc_html_e( 'Save', 'wp-database-tools' ); ?>
|
|
</button>
|
|
<button class="button button-secondary b-none py-5 px-20" data-micromodal-close aria-label="Close this dialog window">
|
|
<?php esc_html_e( 'Close', 'wp-database-tools' ); ?>
|
|
</button>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</div>
|