- 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>
63 lines
3.0 KiB
JavaScript
Executable File
63 lines
3.0 KiB
JavaScript
Executable File
/*
|
|
* Contains variables passed from php stored in the variable wpdbt_admin_vars.
|
|
* It also includes the definition of variables used in the plugin scripts.
|
|
*/
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* CONST */
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
const MODE_GENERAL =
|
|
wpdbt_admin_vars.data.current_page == 'details' ||
|
|
wpdbt_admin_vars.data.current_page == 'general';
|
|
const KEY_ATRIBUTE = (MODE_GENERAL == false) ? "id" : "key";
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* INPUT */
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
var input_current_url = document.getElementById('input-current-url');
|
|
var input_name = document.getElementById("search-name");
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* GETS */
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
$_GET_autoload = '';
|
|
$_GET_category = '';
|
|
$_GET_details = '';
|
|
$_GET_origin = '';
|
|
$_GET_status = '';
|
|
$_GET_name = '';
|
|
$_GET_page = '';
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* LOADER */
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
var loader = document.getElementById("container_list_loader");
|
|
var content_list = document.getElementById("container_list_display");
|
|
var content_list_not_found = document.getElementById("container_list_not_found");
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* SELECTORS */
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
var checkbox_elements = document.getElementsByClassName("check-elements");
|
|
var checkbox_all = document.getElementById("check-typebox-all");
|
|
var span_selected = document.getElementById("span-selected");
|
|
var title_modal = document.getElementById("modal-1-title");
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* PAGINATION */
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
var btn_first = document.getElementById("btn-first");
|
|
var btn_last = document.getElementById("btn-last");
|
|
var selectPagination = document.getElementById("select_pagination");
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* LIS ELEMENTS */
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
var current_elements = document.querySelector("#current-elements span#span-elements"); |