Commit inicial - WordPress Análisis de Precios Unitarios

- 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>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<div class="w-40p d-grid">
<input
id="search-name"
value="<?php echo $settings_page['filters']['name']; ?>"
class="b-none bg-light-gray-color px-20 py-10 br-5"
placeholder="<?php echo __( 'Search by name', $this->plugin_name ); ?>"
/>
</div>

View File

@@ -0,0 +1,6 @@
<div class="mb-10 container_affected_records">
<h4 class="text-uppercase m-0 dark-blue-color"><?php echo __( 'Records affected', $this->plugin_name ); ?>:</h4>
<p class="pb-10 m-0"><?php echo __( 'The action will be executed on the following records', $this->plugin_name ); ?></p>
<ul class="m-0 mt-5 container_affected_records_list ml-20">
</ul>
</div>

View File

@@ -0,0 +1,6 @@
<div class="bg-light-red px-10 py-10 br-5 font-bold">
<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 echo __( "This operation is irreversible! Don't forget to make a backup of your database first!", $this->plugin_name ); ?></p>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<form id="form-feed-origin-uncategorized-<?php echo $id; ?>" class="d-flex-start gap-10 form-feed-origin-uncategorized-class">
<select id="choices-origin-uncategorized-<?php echo $id; ?>" class="" onchange="updateFormUncategorized(this)" data-type="<?php echo $id; ?>" class="mr-20" name="slug">
<?php if ( ! empty( $this->database->get_plugins() ) ) : ?>
<optgroup data-type="plugin" value="plugin" label="Plugins">
<?php foreach ( $this->database->get_plugins() as $key => $plugin ) : ?>
<option value="<?php echo $plugin['slug'] . '$' . 'plugin'; ?>"><?php echo $plugin['name']; ?></option>
<?php endforeach; ?>
</optgroup>
<?php endif; ?>
<?php if ( ! empty( $this->database->get_themes() ) ) : ?>
<optgroup data-type="theme" value="theme" label="Themes">
<?php foreach ( $this->database->get_themes() as $key => $theme ) : ?>
<option value="<?php echo $theme['slug'] . '$' . 'theme'; ?>"><?php echo $theme['name']; ?></option>
<?php endforeach; ?>
</optgroup>
<?php endif; ?>
<optgroup data-type="core" value="core" label="Core">
<!-- <option>WordPress Core</option> -->
<option selected value="core$core">WordPress Core</option>
</optgroup>
</select>
<input id="uncategorized-section" type="hidden" name="section" value="options">
<input id="uncategorized-value" type="hidden" name="name" value="">
<input id="uncategorized-prefix" type="hidden" name="prefix" value="">
<input id="uncategorized-type" type="hidden" name="type" value="">
<input type="hidden" name="reliability" value="-">
<a onclick="feedOriginInitAjax(this)" data-slug="uncategorized-<?php echo $id; ?>" data-form="uncategorized" class="button font-md button-secondary b-none btn-dark color-white py-5 px-10 text-uppercase mr-20" value="<?php echo __( 'Enviar', $this->plugin_name ); ?>">Enviar</a>
</form>

View File

@@ -0,0 +1,14 @@
<!-- SELECTION -->
<div class="d-flex-start">
<p class="w-95"><?php echo __( 'Selection', $this->plugin_name ); ?>(<span id="span-selected">0</span>):</p>
<div class="d-flex-center align-items-center btn-selections">
<?php foreach ( $settings_page['bulk_actions'] as $key => $action ) : ?>
<button onclick="showModal(this)" data-label="<?php echo $action['label']; ?>" data-individual="no" data-modal="<?php echo $key; ?>" class="tooltip b-none cursor-pointer bg-none p-0 <?php echo $key; ?>">
<span class="tooltiptext small"><?php echo $action['txt']; ?></span>
<img width="15px" src="<?php echo $settings_page['admin_url'] . 'img/icon-' . $key . '.svg'; ?> ">
</button>
<?php endforeach; ?>
</div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="d-flex-start mt-5">
<p class="m-0 text-uppercase font-md dark-blue-color font-bold">
<?php echo __( 'Bulk Actions', $this->plugin_name ) . ':'; ?>
</p>
</div>

View File

@@ -0,0 +1,114 @@
<div id="container_filters">
<div class="d-flex-start mt-5">
<img width="20px" src="<?php echo WPDBT_ADMIN_URL; ?>img/icon-filter.svg">
<p class="ml-5 text-uppercase font-md dark-blue-color font-bold my-10"><?php echo __( 'Advanced filters', $this->plugin_name ); ?>:</p>
</div>
<div class="">
<div class="d-flex-start">
<div id="filters-status" class="mb-10 bb-solid">
<div>
<p class="m-0 text-uppercase font-sm font-bold color-dark-gray"><?php echo __( 'Status', $this->plugin_name ); ?>:</p>
</div>
<div class="d-flex-start ml-10 py-5">
<?php $check = ( $settings_page['filters']['status'] == 'all' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-all" type="radio" name="status" value="all" <?php echo $check; ?>/>
<label class="d-flex-start mr-10" for="status-all"><?php echo __( 'All', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['status'] == 'uninstalled' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-uninstalled" type="radio" name="status" value="uninstalled" <?php echo $check; ?> />
<label class="d-flex-start mr-10" for="status-uninstalled"><?php echo __( 'Uninstalled', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['status'] == 'active' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-active" type="radio" name="status" value="active" <?php echo $check; ?> />
<label class="d-flex-start mr-10" for="status-active"><?php echo __( 'Active', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['status'] == 'inactive' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-inactive" type="radio" name="status" value="inactive" <?php echo $check; ?> />
<label class="d-flex-start mr-10" for="status-inactive"><?php echo __( 'Inactive', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['status'] == 'unknown' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeStatus(this);" id="status-unknown" type="radio" name="status" value="unknown" <?php echo $check; ?>/>
<label class="d-flex-start mr-10" for="status-unknown"><?php echo __( 'Unknown', $this->plugin_name ); ?></label>
</div>
</div>
</div>
<?php if ( 'options' === $settings_page['current_page'] || 'transients' === $settings_page['current_page'] ) : ?>
<div id="filters-autoload" class="pl-15 ml-15" style="border-left: 2px solid gainsboro;">
<div>
<p class="m-0 text-uppercase font-sm font-bold color-dark-gray"><?php echo __( 'Autoload', $this->plugin_name ); ?>:</p>
</div>
<div class="d-flex-start ml-10 py-5">
<?php $check = ( $settings_page['filters']['autoload'] == 'all' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeAutoload(this);" id="autoload-all" type="radio" name="autoload" value="all" <?php echo $check; ?>/>
<label class="d-flex-start mr-10" for="autoload-all"><?php echo __( 'All', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['autoload'] == 'yes' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeAutoload(this);" id="autoload-yes" type="radio" name="autoload" value="yes" <?php echo $check; ?>/>
<label class="d-flex-start mr-10" for="autoload-yes"><?php echo __( 'Yes', $this->plugin_name ); ?></label>
</div>
<?php $check = ( $settings_page['filters']['autoload'] == 'no' ) ? 'checked="checked"' : ''; ?>
<div class="row radio d-flex-center mr-0 ml-0 mb-5">
<input onclick="changeAutoload(this);" id="autoload-no" type="radio" name="autoload" value="no" <?php echo $check; ?> />
<label class="d-flex-start mr-10" for="autoload-no"><?php echo __( 'No', $this->plugin_name ); ?></label>
</div>
</div>
</div>
<?php endif; ?>
</div>
<div>
<div>
<p class="m-0 text-uppercase font-sm font-bold color-dark-gray"><?php echo __( 'Categories', $this->plugin_name ); ?>:</p>
</div>
<div class="d-flex-between ml-10">
<div id="filters" class="d-flex-start mb-10">
<?php $class = ( $settings_page['filters']['cat'] == 'all' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="all" id="all" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5 br-solid">
<?php echo __( 'All', $this->plugin_name ); ?>
</button>
<?php $class = ( $settings_page['filters']['cat'] == 'uncategorized' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="uncategorized" id="uncategorized" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5 br-solid">
<?php echo __( 'Uncategorized', $this->plugin_name ); ?>
</button>
<?php $class = ( $settings_page['filters']['cat'] == 'plugin' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="plugin" id="plugin" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5 br-solid">
<?php echo __( 'Plugins', $this->plugin_name ); ?>
</button>
<?php $class = ( $settings_page['filters']['cat'] == 'theme' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="theme" id="theme" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5 br-solid">
<?php echo __( 'Themes', $this->plugin_name ); ?>
</button>
<?php $class = ( $settings_page['filters']['cat'] == 'core' ) ? 'active' : ''; ?>
<button onclick="filterList(this)" data-type="core" id="core" class="<?php echo $class; ?> cursor-pointer b-none bg-none px-10 py-5">
<?php echo __( 'WordPress Core', $this->plugin_name ); ?>
</button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<div class="header d-flex-between bg-white px-20 py-10">
<div class="d-flex-center">
<div class="br-solid pr-20 bc-light-orange-color">
<img src="<?php echo $settings_page['admin_url']; ?>img/logo-wp-database-tools-color.svg" width="120px">
</div>
<div class="ml-20">
<p style="line-height: 1;" class="m-0 dark-blue-color font-bold text-uppercase font-sm"><?php echo __( 'Version', WPDBT_SLUG ); ?></p>
<p class="m-0 dark-blue-color font-bold font-sm"><?php echo WPDBT_VERSION; ?></p>
</div>
</div>
<img src="<?php echo $settings_page['admin_url']; ?>img/raiola-logotipo-horizontal.svg" width="150px">
</div>
<script>
var license = <?php echo json_encode( $this->license->get_is_active() ); ?>
</script>

View File

@@ -0,0 +1,30 @@
<li class="d-flex-between px-20 bb-solid">
<div class="w-60p d-flex-start align-items-center">
<input id="cb-select-all-1" class="m-0 check-elements id" type="checkbox" data-id="" data-check="false" onchange="checkSelected(this)">
<p class="m-0 ml-10 name"></p>
</div>
<p class="w-10p text-align-center class-active count" data-active=""></p>
<p class="w-10p text-align-center label-days"></p>
<div class="d-flex-center align-items-center w-10p">
<var class="key d-none" data-key=""></var>
<var class="is-days d-none" data-isdays=""></var>
<button data-opacity="" onclick="" data-label="<?php echo __( 'See', $this->plugin_name ); ?>" data-modal="see" class="tooltip cursor-pointer b-none bg-none p-0 class-opacity-see onclick-see">
<span class="tooltiptext small"><?php echo __( 'See', $this->plugin_name ); ?></span>
<img class="icon-see" src="">
</button>
<button data-opacity="" onclick="showModal(this)" data-label="<?php echo __( 'Remove', $this->plugin_name ); ?>" data-individual="yes" data-modal="delete" class="tooltip cursor-pointer b-none bg-none p-0 class-opacity-delete onclick-delete">
<span class="tooltiptext small"><?php echo __( 'Remove', $this->plugin_name ); ?></span>
<img class="icon-delete" src="">
</button>
<button data-opacity="" onclick="" data-label="<?php echo __( 'Edit', $this->plugin_name ); ?>" data-individual="yes" data-modal="edit" class="class-opacity-edit tooltip cursor-pointer b-none bg-none p-0 onclick-edit">
<span class="tooltiptext small"><?php echo __( 'Edit', $this->plugin_name ); ?></span>
<img class="icon-edit" src="">
</button>
</div>
</li>

View File

@@ -0,0 +1,72 @@
<div class="d-flex-between align-items-start">
<?php if ( $this->license->get_is_active() ) : ?>
<div class="mr-30">
<img class="mr-10 mt-5" src="<?php echo $settings_page['admin_url']; ?>img/pro.svg" width="200px">
</div>
<div class="w-60p mr-30">
<h2 class="p-0 font-md-x2"><?php echo __( 'Pro version', $this->plugin_name ); ?></h2>
<h3 class="p-0 font-sm text-uppercase font-bold dark-blue-color m-0 mt-10"><?php echo __( 'Features', $this->plugin_name ); ?></h3>
<div id="pro-features">
<?php if ( $this->license->get_features() ) : ?>
<?php echo $this->license->get_features(); ?>
<?php endif; ?>
</div>
</div>
<?php else : ?>
<div class="d-flex-start w-80p">
<div class="w-60p mr-30">
<h2 class="p-0 font-md-x2"><?php echo __( 'Pro version', $this->plugin_name ); ?></h2>
<h3 class="p-0 font-sm text-uppercase font-bold dark-blue-color m-0 mt-10"><?php echo __( 'Features', $this->plugin_name ); ?></h3>
<div id="pro-features">
<?php if ( $this->license->get_features() ) : ?>
<?php echo $this->license->get_features(); ?>
<?php endif; ?>
</div>
<a target="_blank" href="https://wpdatabasetools.com/plugin/wp-database-tools/" class="button button-secondary b-none btn-dark color-white py-5 px-20 text-uppercase">
<?php echo __( 'Quiero ser pro', $this->plugin_name ); ?>
</a>
</div>
<div class="w-40p text-align-right pr-30">
<?php if ( $this->license->get_price() ) : ?>
<?php foreach ( $this->license->get_price() as $key => $price ) : ?>
<div class="mt-10">
<h4 class="p-0 m-0 font-md mb-5 text-uppercase dark-blue-color"><?php echo $key; ?></h4>
<h5 class="p-0 m-0 font-md-x1"><?php echo $price . '€'; ?><span class="font-sm">/<?php echo __( 'year', $this->plugin_name ); ?></span></h5>
<span class="font-sm"><?php echo __( 'Price including VAT', $this->plugin_name ); ?></span>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<div class="d-flex-start w-20p bl-dotted pl-30 ">
<div>
<h4 class="m-0 text-uppercase"><?php echo __( 'Current License', $this->plugin_name ); ?></h4>
<?php if ( $this->license->get_is_active() ) : ?>
<span class="bg-light-green px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'PRO License', 'WpAdminStyle' ); ?></span>
<?php else : ?>
<span class="bg-light-red px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'Free License', 'WpAdminStyle' ); ?></span>
<?php endif; ?>
</div>
</div>
</div>
<style>
#pro-features ul li {
background: url('<?php echo WPDBT_ADMIN_URL; ?>img/icon-check.svg') no-repeat left center;
}
</style>

View File

@@ -0,0 +1,28 @@
<div id="loader">
<svg width="200px" height="200px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;">
<circle cx="75" cy="50" fill="#e9c588" r="6.39718">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.875s"></animate>
</circle>
<circle cx="67.678" cy="67.678" fill="#e9c588" r="4.8">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.75s"></animate>
</circle>
<circle cx="50" cy="75" fill="#e9c588" r="4.8">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.625s"></animate>
</circle>
<circle cx="32.322" cy="67.678" fill="#e9c588" r="4.8">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.5s"></animate>
</circle>
<circle cx="25" cy="50" fill="#e9c588" r="4.8">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.375s"></animate>
</circle>
<circle cx="32.322" cy="32.322" fill="#e9c588" r="4.80282">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.25s"></animate>
</circle>
<circle cx="50" cy="25" fill="#e9c588" r="6.40282">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="-0.125s"></animate>
</circle>
<circle cx="67.678" cy="32.322" fill="#e9c588" r="7.99718">
<animate attributeName="r" values="4.8;4.8;8;4.8;4.8" times="0;0.1;0.2;0.3;1" dur="1s" repeatCount="indefinite" begin="0s"></animate>
</circle>
</svg>
</div>

View File

@@ -0,0 +1,233 @@
<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>

View File

@@ -0,0 +1,9 @@
<nav id="navigation" class="d-flex-start bg-light-blue-color-x2">
<?php
global $submenu;
foreach ( $submenu[ $this->plugin_name ] as $key => $menu ) {
$is_active_class = ( get_admin_page_title() == $menu[0] ) ? '--active' : '';
echo '<a class="dark-blue-color ' . $is_active_class . '" href="' . menu_page_url( $menu[2], false ) . '">' . $menu[0] . '</a>';
}
?>
</nav>

View File

@@ -0,0 +1,5 @@
<div id="not-found">
<div>
<p class="text-align-center py-10 font-md">No se encontraron resultados</p>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<!-- CURRENT ELEMENTS -->
<div id="current-elements">
<p class="w-100p text-align-right"><span id="span-elements">0</span> <?php echo __( 'Elements', $this->plugin_name ); ?></p>
</div>
<!-- PAGE NUMBER SELECTOR -->
<select class="ml-10" name="select_pagination" id="select_pagination">
<?php foreach ( WPDBT_LIST_PAGINATION as $page ) : ?>
<option value="<?php echo $page; ?>"><?php echo $page; ?></option>
<?php endforeach; ?>
</select>

View File

@@ -0,0 +1,9 @@
<nav class="nav d-flex-between mt-25">
<button id="btn-first" class="button font-sm button-secondary b-none btn-dark py-5 px-10 text-uppercase mr-20 font-bold">
<?php echo __( 'First', $this->plugin_name ); ?>
</button>
<ul class="pagination d-flex-center"></ul>
<button id="btn-last" class="button font-sm button-secondary b-none btn-dark py-5 px-10 text-uppercase ml-20 font-bold">
<?php echo __( 'Last', $this->plugin_name ); ?>
</button>
</nav>

View File

@@ -0,0 +1,19 @@
<div class="my-10">
<h4 class="m-0 text-uppercase dark-blue-color"><?php echo __( 'Current scanner', $this->plugin_name ); ?></h4>
<div id="scanner-feedback-not-loading">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Unexecuted', $this->plugin_name ); ?></p>
</div>
<div id="scanner-feedback" class="d-none">
<div class="d-flex-start align-items-center bg-dark-blue-color br-5">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
<p id="scanner-text" class="m-0 text-uppercase color-light-blue-color-x2 font-sm text-align-left "><?php echo __( 'Performing scanner', $this->plugin_name ); ?></p>
</div>
<div>
<?php echo __( 'This may take a few minutes', $this->plugin_name ); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,169 @@
<?php if (
$_GET['page'] != 'wp-database-tools' &&
$_GET['page'] != 'license' &&
$_GET['page'] != 'general' &&
$settings_page['force_execute_scanner'] != 'YES'
) : ?>
<div class="bg-white br-10 px-30 py-20 mt-6">
<h4 class="m-0 text-uppercase dark-blue-color"><?php echo get_admin_page_title(); ?>
(<span id="load_total_records">0</span>)
</h4>
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Data loading', $this->plugin_name ); ?>
<span id="load_indicator_step"><span id="load_current_step">0</span>/<span id="load_total_step">0</span></span>
</p>
<div class="m-0" id="progress_data">
<div id="progress_data_bar"></div>
</div>
<?php if ( get_admin_page_title() == __( 'Options', $this->plugin_name ) || get_admin_page_title() == __( 'Transients', $this->plugin_name ) ) : ?>
<div class="m-0 mt-5">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Information size (estimate)', $this->plugin_name ); ?></p>
<p class="m-0"><?php echo __( 'Total', $this->plugin_name ); ?>: <span id="info-size-total">-</span></p>
<p class="m-0"><?php echo __( 'Autoloads', $this->plugin_name ); ?>: <span id="info-size-autoload" class="br-5 px-5 py-2">-</span></p>
</div>
<?php endif; ?>
</div>
<?php if ( get_admin_page_title() == __( 'Transients', $this->plugin_name ) ) : ?>
<div class="bg-white br-10 px-30 py-20 mt-6">
<form id="remove_all_transients" class="mt-10">
<label class="mb-5 d-block">
<?php echo __( 'Type <strong>"REMOVE"</strong> to <strong>delete all transients</strong>', 'wp-database-tools' ); ?>
</label>
<input class="w-100p placeholder-light" type="text" placeholder="REMOVE" name="remove" onkeyup="this.value = this.value.toUpperCase();" required>
<button onclick="remove_all_transients(this)" type="button" name="" id="btn_remove_all_transients"
class="d-flex-center button button-secondary b-none btn-dark py-2 px-10 text-uppercase mt-10 w-100p font-md"
style="max-height: 30px;"
disabled
>
<p class="ml-20"><?php echo esc_html__( 'Execute', 'wp-database-tools' ); ?></p>
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</button>
</form>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="bg-white br-10 px-30 py-20 mt-6">
<div>
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-scanner-feedback.php'; ?>
</div>
<h4 class="m-0 text-uppercase dark-blue-color"><?php echo __( 'Last scanner', $this->plugin_name ); ?></h4>
<div class="d-flex-between">
<div>
<div class="">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Date', $this->plugin_name ); ?></p>
<?php
$time_scanner = ( isset( $settings_page['scanner']->time ) ) ? $settings_page['scanner']->time : '-';
?>
<p class="m-0"><?php echo $time_scanner; ?></p>
</div>
</div>
<div class="">
<p class="m-0 font-bold font-sm px-5 text-uppercase"><?php echo __( 'Status', $this->plugin_name ); ?></p>
<?php
$status_scanner = ( isset( $settings_page['scanner']->status ) ) ? $settings_page['scanner']->status : '-';
?>
<?php if ( $status_scanner == 'success' ) : ?>
<span class="bg-light-green font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Success', 'wp-database-tools' ); ?></span>
<?php elseif ( $status_scanner == 'error' ) : ?>
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Error', 'wp-database-tools' ); ?></span>
<?php else : ?>
<span class="">-</span>
<?php endif; ?>
</div>
</div>
<div class="">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Message', $this->plugin_name ); ?></p>
<?php
$time_scanner = ( isset( $settings_page['scanner']->message ) ) ? $settings_page['scanner']->message : 'Sin mensaje';
?>
<p class="m-0"><?php echo $time_scanner; ?></p>
</div>
</div>
<div class="bg-white br-10 px-30 py-20 mt-6">
<h4 class="m-0 text-uppercase dark-blue-color"><?php esc_html_e( 'CRONJOB STATUS', 'wp-database-tools' ); ?></h4>
<div class="d-flex-between">
<div>
<div class="">
<p class="m-0 font-bold font-sm text-uppercase"><?php echo __( 'Date', $this->plugin_name ); ?></p>
<p class="m-0"><?php esc_html_e( get_transient( WPDBT_PREFIX . 'cron_check_date' ) ?? '-' ); ?></p>
</div>
</div>
<div>
<p class="m-0 font-bold font-sm text-uppercase"><?php esc_html_e( 'Status', 'wp-database-tools' ); ?></p>
<?php if ( 'success' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
<span class="bg-light-green font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Success', 'wp-database-tools' ); ?></span>
<?php elseif ( 'error' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Error', 'wp-database-tools' ); ?></span>
<?php elseif ( 'warning' === get_transient( WPDBT_PREFIX . 'cron_check' ) ) : ?>
<span class="bg-light-red font-sm px-5 py-5 d-block text-uppercase br-5 text-align-center"><?php esc_attr_e( 'Warning', 'wp-database-tools' ); ?></span>
<?php else : ?>
<span class="">-</span>
<?php endif; ?>
</div>
</div>
<p class="m-0 font-bold font-sm text-uppercase"><?php esc_html_e( 'Message', 'wp-database-tools' ); ?></p>
<p class="m-0"><?php esc_html_e( get_transient( WPDBT_PREFIX . 'cron_check_message' ) ?? '-' ); ?></p>
</div>
<div class=" mt-6">
<div class="m-0" id="">
<?php if ( $this->license->get_is_active() ) : ?>
<span class="bg-light-green px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'PRO License', 'wp-database-tools' ); ?></span>
<?php else : ?>
<span class="bg-light-red px-10 py-10 d-block text-uppercase font-bold br-5 text-align-center"><?php esc_attr_e( 'Free License', 'wp-database-tools' ); ?></span>
<?php endif; ?>
</div>
</div>
<div class="sm_col-1-1">
<div class="d-flex-center">
<div class="bg-white br-10 px-10 py-20 mt-6">
<?php
$url_support = ( $settings_page['config'] !== false ) ? $settings_page['config']->support->url : '#';
?>
<img width="18px" class="w-100p" src="<?php echo $settings_page['admin_url'] . 'img/support.svg'; ?>">
<a target="_blank" href="<?php echo $url_support; ?>" name="submit" class="d-flex-center button button-secondary b-none btn-orange py-5 px-20 text-uppercase w-100p mt-10">
<span class="font-sm font-bold font-bold text-uppercase"><?php echo __( 'Support', $this->plugin_name ); ?></span>
</a>
</div>
<div class="bg-white br-10 px-10 py-20 mt-6">
<img width="18px" class="w-100p" src="<?php echo $settings_page['admin_url'] . 'img/buy.svg'; ?>">
<a target="_blank" href="https://wpdatabasetools.com/plugin/wp-database-tools/" name="submit" class="d-flex-center button button-secondary b-none btn-dark py-5 px-20 text-uppercase w-100p mt-10">
<span class="font-sm font-bold font-bold text-uppercase"><?php echo __( 'Purchase', $this->plugin_name ); ?></span>
</a>
</div>
</div>
<div class="sm_d-flex">
<?php if ( $settings_page['config'] !== false ) : ?>
<?php foreach ( $settings_page['config']->banners as $key => $banner ) : ?>
<div class="mt-10">
<a target="_blank" href="<?php echo $banner->url; ?>">
<img class="mw-100p" src="<?php echo $banner->image; ?>">
</a>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>

View File

@@ -0,0 +1,12 @@
<div class="container-sorts">
<svg onclick="sortList(this);" data-row="<?php echo $sort_row; ?>" data-order="asc" class="container-svg-sort" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.91 7.72">
<g>
<polygon class="svg-sort <?php echo $sort_active_asc; ?>" points="4.46 1 6.25 4.11 8.05 7.22 4.46 7.22 0.87 7.22 2.66 4.11 4.46 1"/>
</g>
</svg>
<svg onclick="sortList(this);" data-row="<?php echo $sort_row; ?>" data-order="desc" class="container-svg-sort rotate" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.91 7.72">
<g>
<polygon class="svg-sort <?php echo $sort_active_desc; ?>" points="4.46 1 6.25 4.11 8.05 7.22 4.46 7.22 0.87 7.22 2.66 4.11 4.46 1"/>
</g>
</svg>
</div>

View File

@@ -0,0 +1,30 @@
<div id="top-bar" class="d-flex-between">
<!-- SEARCH-->
<?php require plugin_dir_path( __DIR__ ) . 'components/list/wp-database-tools-component-list-search.php'; ?>
<select id="choices" class="w-40p d-grid" placeholder="<?php echo __( 'Filter by origin', $this->plugin_name ); ?>">
<option selected disabled hidden value="placeholder$default" data-select-options="placeholder" placeholder><?php echo __( 'Filter by origin', $this->plugin_name ); ?></option>
</select>
<div class="d-flex-between">
<?php if ( $this->license->get_is_active() ) : ?>
<button type="submit" name="submit" id="scanner-btn" class="button button-secondary b-none btn-dark py-5 px-20 text-uppercase ml-20" disabled>
<?php echo __( 'Scan', $this->plugin_name ); ?>
</button>
<?php else : ?>
<button disabled id="scanner-btn" class="button button-secondary b-none btn-dark py-5 px-20 text-uppercase ml-20">
<?php echo __( 'Scan', $this->plugin_name ); ?>
</button>
<?php endif; ?>
</div>
</div>

View File

@@ -0,0 +1,80 @@
<div id="list-display" class="cronjobs">
<!-- TOP BAR -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-top-bar.php'; ?>
<!-- FILTERS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-categories-filters.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<div class="d-flex-between bg-light-blue-color-x2 px-20 table-cronjobs">
<div class="d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold"><?php echo 'Name'; ?></p>
<?php
$sort_row = 'name';
$sort_active_asc = 'active';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-left font-bold"><?php echo __( 'Arguments', $this->plugin_name ); ?></p>
<p class="text-align-left font-bold"><?php echo __( 'Schedule', $this->plugin_name ); ?></p>
<p class="text-align-left font-bold"><?php echo __( 'Next run', $this->plugin_name ); ?></p>
<div class="text-align-center pl-10 d-flex-center align-items-center">
<p class="text-align-center font-bold"><?php echo __( 'Status', $this->plugin_name ); ?></p>
</div>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Origin', $this->plugin_name ); ?></p>
<?php
$sort_row = 'origin';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<div class="container-list">
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul id="options-list" class="list m-0" >
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,135 @@
<?php
$table_titles = $this->database->get_table_titles( $data['table'] );
?>
<div id="list-display" class="details">
<!-- SEARCH-->
<?php require plugin_dir_path( __DIR__ ) . 'components/list/wp-database-tools-component-list-search.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<!-- HEADER TABLE -->
<div class="d-flex-between bg-light-blue-color-x2 px-20">
<?php foreach ( $table_titles as $key => $title ) : ?>
<?php
$class = ( $key == ( count( $table_titles ) - 1 ) ) ? 'text-align-right' : 'text-align-left'
?>
<?php if ( $key == 0 ) : ?>
<div class="w-60p d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold mr-10"><?php echo $title; ?></p>
</div>
<?php else : ?>
<p class="w-100p mr-10 <?php echo $class; ?>"><?php echo $title; ?></p>
<?php endif; ?>
<?php endforeach ?>
</div>
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul class="list m-0">
<?php if ( count( $data['data'] ) == 0 ) : ?>
<li class="d-flex-between px-20 bb-solid">
</li>
<?php endif; ?>
<?php foreach ( $data['data'] as $index => $row ) : ?>
<?php
$info_tables = $this->database->get_info_tables( $data['table'], $row );
?>
<li class="d-flex-between px-20 bb-solid">
<?php foreach ( $info_tables as $key => $value ) : ?>
<?php if ( $key == 'id' ) : ?>
<div class="w-60p d-flex-start align-items-center">
<input id="cb-select-all-1" class="m-0 check-elements" type="checkbox" data-key="<?php echo $index; ?>" data-check="false" onchange="checkSelected(this)">
<p class="m-0 ml-10 id"><?php echo $value; ?></p>
</div>
<?php else : ?>
<?php
$value = esc_attr( wp_strip_all_tags( $value ) );
// Prepare content
if ( strlen( $value ) > 20 && ( $key == 'content' || $key == 'meta-value' || $key == 'option-value' ) ) {
$span_element = '<span class="tooltiptext value">' . $value . '</span>';
$image = '<img width="15px" src="' . WPDBT_ADMIN_URL . 'img/icon-information.svg">';
$content = $image . substr( $value, 0, 20 ) . '...' . $span_element;
} else {
$content = $value;
}
?>
<?php
$key = str_contains( $key, 'name' ) ? 'name' : $key;
$key = ( $key == 'title' ) ? 'name' : $key;
?>
<p class="w-100p text-align-left tooltip extract break-word mr-10 <?php echo $key; ?>"><?php echo $content; ?></p>
<?php endif; ?>
<?php endforeach ?>
<div class="d-flex-end align-items-left w-100p">
<var class="key d-none" data-key="<?php echo $index; ?>"></var>
<var class="is-days d-none" data-isdays="no"></var>
<button onclick="showModal(this)" data-label="<?php echo __( 'Remove', $this->plugin_name ); ?>" data-individual="yes" data-modal="delete" class="tooltip b-none bg-none p-0">
<span class="tooltiptext small">
<?php echo __( 'Remove', $this->plugin_name ); ?>
</span>
<img src="<?php echo $settings_page['admin_url']; ?>img/icon-delete.svg">
</button>
</div>
</li>
<?php endforeach ?>
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>

View File

@@ -0,0 +1,105 @@
<!-- PREPARE DATA -->
<?php
ob_start();
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-item-general.php';
$item = ob_get_clean();
$list_data = array();
foreach ( $this->database->get_general_data() as $key => $data ) {
$user_options_general = get_option( WPDBT_PREFIX . 'user_options_general' );
$days = isset( $user_options_general[ $key ]['days'] ) ? $user_options_general[ $key ]['days'] : 0;
$has_clean_tables = $data['count'] > 0;
$is_days = $data['is-days'];
$details_url = '&details=' . $key;
// ATRIBUTES
$format_data['name'] = $data['label'];
$format_data['count'] = $data['count'];
$format_data['key'] = $key;
// EXTRA
$format_data['class-active'] = $has_clean_tables ? 'active' : 'inactive';
$format_data['class-opacity-see'] = $has_clean_tables ? 'normal' : 'opacity';
$format_data['class-opacity-delete'] = $has_clean_tables ? 'normal' : 'opacity';
$format_data['class-opacity-edit'] = $is_days ? '' : 'opacity';
$format_data['class-opacity-cron'] = '';
$format_data['is-days'] = $is_days ? 'yes' : 'no';
$format_data['label-days'] = ! $is_days ? 'N/A' : $days;
$format_data['icon-see'] = $settings_page['admin_url'] . 'img/icon-see.svg';
$format_data['icon-delete'] = $settings_page['admin_url'] . 'img/icon-delete.svg';
$format_data['icon-edit'] = $is_days ? $settings_page['admin_url'] . 'img/icon-edit.svg' : '';
$format_data['icon-cron'] = $settings_page['admin_url'] . 'img/icon-cron.svg';
$format_data['onclick-see'] = $has_clean_tables ? "location.href='" . admin_url( sprintf( basename( $_SERVER['REQUEST_URI'] ) ) ) . $details_url . "'" : '';
$format_data['onclick-delete'] = $has_clean_tables ? 'showModal(this)' : '';
$format_data['onclick-edit'] = $is_days ? 'showModal(this)' : '';
$format_data['onclick-cron'] = $settings_page['admin_url'];
// SAVE ARRAY
array_push( $list_data, $format_data );
}
?>
<script>
var item = <?php echo json_encode( $item ); ?>;
var values = <?php echo json_encode( $list_data ); ?>;
</script>
<div id="list-display">
<!-- SEARCH-->
<?php require plugin_dir_path( __DIR__ ) . 'components/list/wp-database-tools-component-list-search.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<!-- HEADER TABLE -->
<div class="d-flex-between bg-light-blue-color-x2 px-20">
<div class="w-60p d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)" >
<p class="m-0 ml-10 font-bold"><?php echo __( 'Name', $this->plugin_name ); ?></p>
</div>
<p class="w-10p text-align-center font-bold"><?php echo __( 'Totals', $this->plugin_name ); ?></p>
<p class="w-10p text-align-center font-bold"><?php echo __( 'Keep', $this->plugin_name ); ?></p>
<p class="w-10p text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<div id="container_list_display" style="display: none;">
<ul class="list m-0">
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>

View File

@@ -0,0 +1,101 @@
<div id="list-display" class="options">
<!-- TOP BAR -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-top-bar.php'; ?>
<!-- FILTERS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-categories-filters.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<div class="d-flex-between bg-light-blue-color-x2 px-10 table-options">
<div class="d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold"><?php echo __( 'ID', $this->plugin_name ); ?></p>
<?php
$sort_row = 'id';
$sort_active_asc = 'active';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="text-align-left d-flex-start align-items-center">
<p class="font-bold"><?php echo __( 'Name', $this->plugin_name ); ?></p>
<?php
$sort_row = 'name';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-left font-bold"><?php echo __( 'Value', $this->plugin_name ); ?></p>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Size', $this->plugin_name ); ?></p>
<?php
$sort_row = 'size';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Autoload', $this->plugin_name ); ?></p>
<p class="text-align-center font-bold"><?php echo __( 'Status', $this->plugin_name ); ?></p>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Origin', $this->plugin_name ); ?></p>
<?php
$sort_row = 'origin';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<div class="container-list">
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul id="options-list" class="list m-0">
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<div class="text-align-center">
<h3><?php echo __( 'Scanner in process', $this->plugin_name ); ?></h3>
<p><?php echo __( 'We are running a priority scan of your database', $this->plugin_name ); ?></p>
<div class="d-flex-center">
<div class="container">
<div class="d-flex-start m-auto">
<p id="status-indicator-first-scanner" class="status process finish font-md p-0 m-0" style="color:#eded89">⬤</p>
<p id="status-indicator-txt" class="text-uppercase m-0"><?php echo __( 'Processing', $this->plugin_name ); ?> (<span id="status-indicator-counter">1</span>) </p>
</div>
<div class="d-flex-start m-auto">
<p id="status-indicator-cron-execute" class="status process finish font-md p-0 m-0" style="color:#eded89">⬤</p>
<p id="status-indicator-txt" class="text-uppercase m-0"><?php echo __( 'Cron execute', $this->plugin_name ); ?></p>
</div>
</div>
<div class="ml-20">
<img id="image-scanner-execute" width="80px" class="" src="<?php echo $settings_page['admin_url'] . 'img/eye-scanner-blue.gif'; ?>">
</div>
</div>
<div class="container-message">
<p id="error-message" style="visibility: hidden;" class="m-auto py-5 px-10 bg-light-red w-fit-content br-5"></p>
<p id="success-message" style="visibility: hidden;" class="m-auto py-5 px-10 bg-light-green w-fit-content br-5"></p>
</div>
</div>

View File

@@ -0,0 +1,99 @@
<div id="list-display" class="tables">
<!-- Top bar -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-top-bar.php'; ?>
<!-- FILTERS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-categories-filters.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<div class="d-flex-between bg-light-blue-color-x2 px-10">
<div class="w-30p d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold"><?php echo __( 'Name', $this->plugin_name ); ?></p>
<?php
$sort_row = 'name';
$sort_active_asc = 'active';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="w-10p d-flex-center align-items-center">
<p class="text-align-left font-bold"><?php echo 'Rows'; ?></p>
<?php
$sort_row = 'row';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="w-10p text-align-left pl-10 d-flex-center align-items-center">
<p class="text-align-center font-bold"><?php echo __( 'Size', $this->plugin_name ); ?></p>
<?php
$sort_row = 'size';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="w-15p text-align-center pl-10 d-flex-center align-items-center">
<p class="text-align-center font-bold"><?php echo __( 'Status', $this->plugin_name ); ?></p>
</div>
<div class="w-25p text-align-left pl-10 d-flex-center align-items-center">
<p class="text-align-center font-bold"><?php echo __( 'Origin', $this->plugin_name ); ?></p>
<?php
$sort_row = 'origin';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="w-10p text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<div class="container-list">
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul id="options-list" class="list m-0" >
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,101 @@
<div id="list-display" class="transients">
<!-- TOP BAR -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-top-bar.php'; ?>
<!-- FILTERS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-categories-filters.php'; ?>
<div class="mt-10">
<!-- BULK ACTIONS -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions.php'; ?>
<div class="d-flex-between">
<!-- BULK ACTIONS SELECTIONS-->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-bulk-actions-selectors.php'; ?>
<div class="d-flex-between">
<!-- SELECT PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination-select.php'; ?>
</div>
</div>
</div>
<div class="d-flex-between bg-light-blue-color-x2 px-10 table-options">
<div class="d-flex-start align-items-center">
<input id="check-typebox-all" class="m-0" type="checkbox" onchange="checkAll(this)">
<p class="m-0 ml-10 font-bold"><?php echo __( 'ID', $this->plugin_name ); ?></p>
<?php
$sort_row = 'id';
$sort_active_asc = 'active';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<div class="text-align-left d-flex-start align-items-center">
<p class="font-bold"><?php echo __( 'Name', $this->plugin_name ); ?></p>
<?php
$sort_row = 'name';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-left font-bold"><?php echo __( 'Value', $this->plugin_name ); ?></p>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Size', $this->plugin_name ); ?></p>
<?php
$sort_row = 'size';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Autoload', $this->plugin_name ); ?></p>
<p class="text-align-center font-bold"><?php echo __( 'Status', $this->plugin_name ); ?></p>
<div class="text-align-center d-flex-center align-items-center">
<p class="font-bold"><?php echo __( 'Origin', $this->plugin_name ); ?></p>
<?php
$sort_row = 'origin';
$sort_active_asc = '';
$sort_active_desc = '';
require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-sort.php';
?>
</div>
<p class="text-align-center font-bold"><?php echo __( 'Actions', $this->plugin_name ); ?></p>
</div>
<div class="container-list">
<!-- NOT RESULTS -->
<div id="container_list_not_found" style="display: none;">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-not-found.php'; ?>
</div>
<!-- LOADER -->
<div id="container_list_loader">
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-loader.php'; ?>
</div>
<!-- LIST -->
<div id="container_list_display" style="display: none;">
<ul id="options-list" class="list m-0">
</ul>
<!-- PAGINATION -->
<?php require plugin_dir_path( __DIR__ ) . 'components/wp-database-tools-admin-component-pagination.php'; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,66 @@
<?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();
$detail_page = null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
?>
<!-- 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'; ?>
</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">
<!-- CONTENT -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-cronjobs.php'; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.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>
</div>

View File

@@ -0,0 +1,74 @@
<?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();
$detail_page = ( isset( $_GET['details'] ) ) ? $_GET['details'] : null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
$data = $has_details_table ? $this->database->get_general_data()[ $detail_page ] : $this->database->get_general_data();
?>
<!-- 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'; ?>
</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">
<!-- LICENSE -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php if ( $has_details_table ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-details.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-general.php'; ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.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>
</div>

View File

@@ -0,0 +1,90 @@
<?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>

View File

@@ -0,0 +1,66 @@
<?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();
$detail_page = ( isset( $_GET['details'] ) ) ? $_GET['details'] : null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo esc_html( $this->plugin_name ); ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo esc_html( $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'; ?>
</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">
<!-- CONTENT -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-options.php'; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.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>
</div>

View File

@@ -0,0 +1,67 @@
<?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();
$detail_page = ( isset( $_GET['details'] ) ) ? $_GET['details'] : null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
?>
<!-- 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'; ?>
</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">
<!-- CONTENT -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-tables.php'; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.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>
</div>

View File

@@ -0,0 +1,66 @@
<?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();
$detail_page = ( isset( $_GET['details'] ) ) ? $_GET['details'] : null;
$has_details_table = isset( $this->database->get_general_data()[ $detail_page ] );
?>
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<div id="<?php echo esc_html( $this->plugin_name ); ?>-admin" role="main">
<div id="wpbody-content">
<div id="wpheader" class="<?php echo esc_html( $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'; ?>
</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">
<!-- CONTENT -->
<div class="inside">
<div class="bg-white br-10 px-30 py-20">
<?php if ( $settings_page['force_execute_scanner'] == 'YES' ) : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-scanner-execute.php'; ?>
<?php else : ?>
<?php include plugin_dir_path( __FILE__ ) . 'sections/' . $this->plugin_name . '-section-transients.php'; ?>
<?php endif; ?>
</div>
</div>
<!-- SIDEBAR -->
<div id="modal-container" class="">
<?php require plugin_dir_path( __FILE__ ) . 'components/' . $this->plugin_name . '-admin-component-modal.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>
</div>

View File

@@ -0,0 +1,64 @@
<?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'; ?>
</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">
<!-- LICENSE -->
<div class="inside">
<div class="d-grid col-4 gap-20">
<?php foreach ( $settings_page['dashboard']['info'] as $key => $info ) : ?>
<div class="bg-white br-10 px-30 py-20 d-flex-start">
<img width="55px" class="mr-10" src="<?php echo $info['icon']; ?>">
<div>
<p class="m-0 font-bold font-md-x2"><?php echo $info['data']; ?></p>
<span class="color-dark-gray mt--5 d-block"><?php echo $info['label']; ?></span>
</div>
</div>
<?php endforeach ?>
</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>
</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>
</div>