instalaciones

This commit is contained in:
2026-10-04 15:01:32 -06:00
commit 8424dacd03
3537 changed files with 1904886 additions and 0 deletions
@@ -0,0 +1,18 @@
# Cache
/functions/tailwindcss/css
/functions/tailwindcss/css-production
# Logs
*.log
debug.log
# Archivos del sistema
.DS_Store
Thumbs.db
# IDE
.vscode/
.idea/
# Configuración local
wp-config.php
@@ -0,0 +1,240 @@
<?php
/**
* Plugin Name: Alcastromol | Functions WP | Oxygen 6.1.1 | Tailwindcss v3 DF | Y mas
* Plugin URI: https://alcastromol.com/
* Description: Funciones personalizadas y Tailwind v3. Oxygen es opcional.
* Version: 3.2.0
* Author: Alejandro Castro Molina
* Author URI: https://alcastromol.com/
* License: GPL-2.0-or-later
*/
if (!defined('ABSPATH')) {
exit; // Seguridad
}
/*
|--------------------------------------------------------------------------
| Constantes del plugin
|--------------------------------------------------------------------------
*/
define('ALCASTROMOL_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('ALCASTROMOL_PLUGIN_URL', plugin_dir_url(__FILE__));
define('ALCASTROMOL_PLUGIN_VERSION', '3.2.0');
define('ALCASTROMOL_OXYGEN_ENABLED_OPTION', 'alcastromol_oxygen_enabled');
/*
|--------------------------------------------------------------------------
| Integración opcional con Oxygen
|--------------------------------------------------------------------------
*/
function alcastromol_is_oxygen_installed() {
if (defined('BREAKDANCE_MODE') && BREAKDANCE_MODE === 'oxygen') {
return true;
}
if (defined('CT_VERSION')) {
return true;
}
$plugins = (array) get_option('active_plugins', []);
if (in_array('oxygen/plugin.php', $plugins, true)) {
return true;
}
if (is_multisite()) {
$network = (array) get_site_option('active_sitewide_plugins', []);
if (isset($network['oxygen/plugin.php'])) {
return true;
}
}
return false;
}
function alcastromol_get_oxygen_option() {
$saved = get_option(ALCASTROMOL_OXYGEN_ENABLED_OPTION, null);
if ($saved === null) {
return alcastromol_is_oxygen_installed() ? '1' : '0';
}
return $saved === '1' ? '1' : '0';
}
function alcastromol_is_oxygen_enabled() {
return alcastromol_get_oxygen_option() === '1' && alcastromol_is_oxygen_installed();
}
add_action('plugins_loaded', 'alcastromol_check_oxygen');
function alcastromol_check_oxygen() {
if (alcastromol_is_oxygen_enabled()) {
return;
}
if (alcastromol_get_oxygen_option() === '1' && !alcastromol_is_oxygen_installed()) {
add_action('admin_notices', function () {
echo '<div class="notice notice-warning">
<p><strong>Alcastromol Functions:</strong> Oxygen no está instalado. Tailwind v3 funciona de forma independiente. Puedes activar Oxygen más tarde desde Centro de funciones → Tailwind v3.</p>
</div>';
});
}
}
/*
|--------------------------------------------------------------------------
| Función segura para cargar archivos
|--------------------------------------------------------------------------
*/
function alcastromol_require($file) {
$path = ALCASTROMOL_PLUGIN_PATH . $file;
if (file_exists($path)) {
require_once $path;
}
}
/*
|--------------------------------------------------------------------------
| Limpieza de WordPress / Oxygen
|--------------------------------------------------------------------------
*/
alcastromol_require('functions/clear-header.php');
/*
|--------------------------------------------------------------------------
| Insertar código en HEAD
|--------------------------------------------------------------------------
*/
alcastromol_require('functions/insert-code-header.php');
/*
|--------------------------------------------------------------------------
| Insertar código en FOOTER (opcional)
|--------------------------------------------------------------------------
*/
// alcastromol_require('functions/insert-code-footer.php');
/*
|--------------------------------------------------------------------------
| Funciones del Admin
|--------------------------------------------------------------------------
|
| - Desactivar actualizaciones automáticas
| - Desactivar pantalla completa del editor
| - Limpiar admin bar
| - Categorías y tags en media
|
*/
alcastromol_require('functions/admin/admin.php');
alcastromol_require('functions/admin/admin-comments.php');
register_activation_hook(__FILE__, 'alcastromol_setup_comment_settings');
function alcastromol_cleanup_options() {
delete_option('alcastromol_comments_done');
}
alcastromol_require('functions/admin/admin-permalinks.php');
register_activation_hook(__FILE__, 'alcastromol_setup_permalinks');
alcastromol_require('functions/admin/admin-general.php');
register_activation_hook(__FILE__, 'alcastromol_setup_general_settings');
register_deactivation_hook(__FILE__, 'alcastromol_cleanup_options');
/*
|--------------------------------------------------------------------------
| Centro de funciones
|--------------------------------------------------------------------------
*/
alcastromol_require('functions/admin/modules-dashboard.php');
alcastromol_require('functions/optimizer/optimizer.php');
alcastromol_require('functions/debug/debug.php');
alcastromol_require('functions/animejs/animejs.php');
/*
|--------------------------------------------------------------------------
| TailwindCSS
|--------------------------------------------------------------------------
*/
// Agregar CSS
alcastromol_require('functions/tailwindcss/tailwindcss.php');
// Sistema de cache para Tailwind
alcastromol_require('functions/tailwindcss/cache-system.php');
// Integración administrativa, acciones por entrada y barra superior
alcastromol_require('functions/tailwindcss/admin-integration.php');
// permitir clases de tailwind dentro de oxygen
/**==============================================
* *
* \wp-content\plugins\oxygen\builder\dist\js\app-DSmHGY7G.js
*
* / BUSCA esto
* if(!ro(n)){Bs.log.message(uo(S(`"%s" is not a valid class name.`),n));return}
// CAMBIA por esto
* if(!e||!String(e).trim()){Bs.log.message(uo(S(`"%s" is not a valid class name.`),n));return}
*
* Buscar ------
* for(let t of e)if(!ro(`.${t}`)){this.errorMessage=S(`Invalid class name`);return}
*
* Cambia por:
*
* for(let t of e)if(!t||!String(t).trim()){this.errorMessage=S(`Invalid class name`);return}
*
*
* \wp-content\plugins\oxygen\builder\dist\js\store-BBZRLWAp.js
*
* Buscar
* function G9(e){return/^-?[.]+[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(e)}
*
* CAmbiar por
*
* function G9(e){return typeof e==`string`&&e.startsWith(`.`)&&e.length>1}
*
*
*=============================================**/
/**
* Reemplaza el bundle JS de Oxygen por una copia parchada
* para permitir clases con : y [].
*/
/*
|--------------------------------------------------------------------------
| Plugins requeridos (TGM Plugin Activation)
|--------------------------------------------------------------------------
*/
alcastromol_require('required-plugins/class-tgm-plugin-activation.php');
alcastromol_require('required-plugins/plugins.php');
@@ -0,0 +1,38 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
function alcastromol_setup_comment_settings() {
if (get_option('alcastromol_comments_done')) {
return;
}
update_option('default_pingback_flag', 1);
update_option('default_ping_status', 'closed');
update_option('default_comment_status', 'closed');
update_option('require_name_email', 1);
update_option('comment_registration', 1);
update_option('close_comments_for_old_posts', 1);
update_option('close_comments_days_old', 14);
update_option('show_comments_cookies_opt_in', 1);
update_option('thread_comments', 1);
update_option('thread_comments_depth', 5);
update_option('page_comments', 0);
update_option('comments_per_page', 50);
update_option('default_comments_page', 'last');
update_option('comment_order', 'asc');
update_option('comments_notify', 1);
update_option('moderation_notify', 1);
update_option('comment_moderation', 1);
update_option('comment_previously_approved', 1);
update_option('alcastromol_comments_done', 1);
}
@@ -0,0 +1,23 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
function alcastromol_setup_general_settings() {
if (get_option('alcastromol_general_done')) {
return;
}
update_option('WPLANG', 'es_MX');
update_option('timezone_string', 'America/Mexico_City');
update_option('date_format', 'd/m/Y');
update_option('time_format', 'g:i a');
update_option('alcastromol_general_done', 1);
}
@@ -0,0 +1,20 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
function alcastromol_setup_permalinks() {
global $wp_rewrite;
$structure = '/%postname%';
update_option('permalink_structure', $structure);
$wp_rewrite->set_permalink_structure($structure);
$wp_rewrite->use_trailing_slashes = false;
flush_rewrite_rules();
}
@@ -0,0 +1,85 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
/*
|--------------------------------------------------------------------------
| Desactivar actualizaciones automáticas
|--------------------------------------------------------------------------
*/
if (!defined('AUTOMATIC_UPDATER_DISABLED')) {
define('AUTOMATIC_UPDATER_DISABLED', true);
}
/*
|--------------------------------------------------------------------------
| Optimización de recursos (Heartbeat + Cron)
|--------------------------------------------------------------------------
*/
add_action('init', 'alcastromol_admin_optimizations');
function alcastromol_admin_optimizations() {
// Desactivar Heartbeat en frontend
if (!is_admin()) {
wp_deregister_script('heartbeat');
}
}
/*
|--------------------------------------------------------------------------
| Desactivar pantalla completa en editor de bloques
|--------------------------------------------------------------------------
*/
add_action('enqueue_block_editor_assets', 'alcastromol_disable_fullscreen_editor');
function alcastromol_disable_fullscreen_editor() {
$script = "
window.onload = function() {
const isFullscreenMode = wp.data.select('core/edit-post').isFeatureActive('fullscreenMode');
if (isFullscreenMode) {
wp.data.dispatch('core/edit-post').toggleFeature('fullscreenMode');
}
}";
wp_add_inline_script('wp-blocks', $script);
}
/*
|--------------------------------------------------------------------------
| Categorías y Tags para Media
|--------------------------------------------------------------------------
*/
add_action('init', 'alcastromol_media_taxonomies');
function alcastromol_media_taxonomies() {
register_taxonomy_for_object_type('category', 'attachment');
register_taxonomy_for_object_type('post_tag', 'attachment');
}
/*
|--------------------------------------------------------------------------
| Configuración inicial de comentarios
|--------------------------------------------------------------------------
*/
function alcastromol_comment_settings() {
update_option('comment_moderation', 1);
}
@@ -0,0 +1,447 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
/*
|--------------------------------------------------------------------------
| Módulos del centro de funciones
|--------------------------------------------------------------------------
*/
function alcastromol_default_modules() {
return [
'tailwind' => '1',
'cache' => '1',
'optimizer' => '0',
'debug' => '0',
'animejs' => '0',
];
}
function alcastromol_get_modules() {
$saved = get_option('alcastromol_modules', []);
if (!is_array($saved)) {
$saved = [];
}
return array_merge(alcastromol_default_modules(), $saved);
}
function alcastromol_is_module_active($module) {
$modules = alcastromol_get_modules();
return isset($modules[$module]) && $modules[$module] === '1';
}
function alcastromol_module_icon($name) {
$icons = [
'tailwind' => '<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 6.2c-2.6 0-4.2 1.3-5 3.8 1.1-1.5 2.4-2.1 4-1.7.9.2 1.6.8 2.3 1.5.9 1 1.9 1.9 3.7 1.9 2.6 0 4.2-1.3 5-3.8-1.1 1.5-2.4 2.1-4 1.7-.9-.2-1.6-.8-2.3-1.5-.9-1-1.9-1.9-3.7-1.9z"/><path d="M6.3 12.1c-2.6 0-4.2 1.3-5 3.8 1.1-1.5 2.4-2.1 4-1.7.9.2 1.6.8 2.3 1.5.9 1 1.9 1.9 3.7 1.9 2.6 0 4.2-1.3 5-3.8-1.1 1.5-2.4 2.1-4 1.7-.9-.2-1.6-.8-2.3-1.5-.9-1-1.9-1.9-3.7-1.9z"/></svg>',
'cache' => '<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><ellipse cx="12" cy="6.5" rx="6.5" ry="2.6"/><path d="M5.5 6.5v5.2c0 1.5 2.9 2.6 6.5 2.6s6.5-1.1 6.5-2.6V6.5"/><path d="M5.5 11.7v5.2c0 1.5 2.9 2.6 6.5 2.6s6.5-1.1 6.5-2.6v-5.2"/></svg>',
'optimizer' => '<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3.5H7.2A1.7 1.7 0 0 0 5.5 5.2v13.6A1.7 1.7 0 0 0 7.2 20.5h9.6a1.7 1.7 0 0 0 1.7-1.7V8z"/><path d="M14 3.5V8h4.5"/><path d="M12 11.2v5.2"/><path d="M9.6 14.6 12 17l2.4-2.4"/></svg>',
'debug' => '<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20v-3"/><path d="M8 7.5V6a4 4 0 0 1 8 0v1.5"/><rect x="5" y="7.5" width="14" height="9.5" rx="2"/><path d="M3 12h2M19 12h2M8.5 20.5 7 23M15.5 20.5 17 23"/><path d="M9 13h.01M15 13h.01"/></svg>',
'animejs' => '<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 16c2.2-6 4.2-9 8-9s5.8 3 8 9"/><path d="M8 16.5 12 8l4 8.5"/></svg>',
];
return isset($icons[$name]) ? $icons[$name] : '';
}
function alcastromol_get_module_cards() {
return [
'tailwind' => [
'title' => 'Tailwind v3',
'desc' => 'Carga Tailwind CSS v3 en el sitio. En desarrollo usa el CDN y en producción el CSS compilado, con la configuración del tema.',
'settings' => admin_url('admin.php?page=alcastromol-tailwind-mode'),
'bg' => '#e8f3ff',
'color' => '#3b82f6',
'icon' => 'tailwind',
'badge' => '',
'locked' => false,
],
'cache' => [
'title' => 'Cache de Tailwind',
'desc' => 'Guarda el HTML del sitio para que Tailwind detecte las clases de páginas, entradas, productos, taxonomías y templates.',
'settings' => admin_url('admin.php?page=tailwind-cache'),
'bg' => '#f4e9ff',
'color' => '#9333ea',
'icon' => 'cache',
'badge' => '',
'locked' => false,
],
'optimizer' => [
'title' => 'Optimizador de archivos',
'desc' => 'Detecta los CSS y JS del sitio. Puedes retirar su URL, agrupar el CSS crítico y el no crítico, juntar el JS en el header, o marcar data-nowprocket y media print.',
'settings' => admin_url('admin.php?page=alcastromol-optimizer'),
'bg' => '#e7f8ef',
'color' => '#16a34a',
'icon' => 'optimizer',
'badge' => '',
'locked' => false,
],
'debug' => [
'title' => 'Modo debug',
'desc' => 'Activa o desactiva WP_DEBUG, WP_DEBUG_LOG y WP_DEBUG_DISPLAY en wp-config.php. Encendido muestra los errores y los guarda en debug.log.',
'settings' => admin_url('admin.php?page=alcastromol-debug'),
'bg' => '#fff4e5',
'color' => '#d97706',
'icon' => 'debug',
'badge' => '',
'locked' => false,
],
'animejs' => [
'title' => 'Anime.js',
'desc' => 'Carga Anime.js 4 desde el CDN. Cada import (animate, text, utils y el resto) se activa por separado y solo entra al sitio el que esté encendido.',
'settings' => admin_url('admin.php?page=alcastromol-animejs'),
'bg' => '#fff1e8',
'color' => '#ea580c',
'icon' => 'animejs',
'badge' => '',
'locked' => false,
],
];
}
add_action('admin_menu', function () {
add_menu_page(
'Centro de funciones',
'Centro de funciones',
'manage_options',
'alcastromol-functions',
'alcastromol_functions_dashboard_page',
'dashicons-screenoptions',
58
);
add_submenu_page(
'alcastromol-functions',
'Centro de funciones',
'Inicio',
'manage_options',
'alcastromol-functions',
'alcastromol_functions_dashboard_page'
);
}, 9);
add_action('wp_ajax_alcastromol_toggle_module', function () {
if (!current_user_can('manage_options')) {
wp_send_json_error(['message' => 'No tienes permisos.'], 403);
}
check_ajax_referer('alcastromol_toggle_module', 'nonce');
$module = sanitize_key($_POST['module'] ?? '');
$active = ($_POST['active'] ?? '0') === '1' ? '1' : '0';
$allowed = ['tailwind', 'cache', 'optimizer', 'debug', 'animejs'];
if (!in_array($module, $allowed, true)) {
wp_send_json_error(['message' => 'Esta función todavía no se puede activar.'], 400);
}
if ($module === 'debug') {
$result = function_exists('alcastromol_debug_set')
? alcastromol_debug_set($active === '1')
: new WP_Error('alcastromol_debug_missing', 'El módulo de debug no está disponible.');
if (is_wp_error($result)) {
wp_send_json_error(['message' => $result->get_error_message()], 500);
}
}
$modules = alcastromol_get_modules();
$modules[$module] = $active;
update_option('alcastromol_modules', $modules);
wp_send_json_success([
'module' => $module,
'active' => $active,
]);
});
function alcastromol_functions_dashboard_page() {
if (!current_user_can('manage_options')) {
return;
}
$modules = alcastromol_get_modules();
$cards = alcastromol_get_module_cards();
$nonce = wp_create_nonce('alcastromol_toggle_module');
?>
<div class="wrap alcastromol-functions-wrap">
<h1>Centro de funciones</h1>
<p class="alcastromol-functions-intro">Activa las funciones del plugin y abre sus ajustes.</p>
<div class="alcastromol-modules" data-nonce="<?php echo esc_attr($nonce); ?>">
<?php foreach ($cards as $id => $card) : ?>
<?php
$active = !empty($modules[$id]) && $modules[$id] === '1';
$locked = !empty($card['locked']);
if ($id === 'debug' && function_exists('alcastromol_debug_status')) {
$debug_status = alcastromol_debug_status();
if (!is_wp_error($debug_status)) {
$active = !empty($debug_status['enabled']);
$locked = empty($debug_status['writable']);
}
}
?>
<article class="alcastromol-module<?php echo $active ? ' is-active' : ''; ?><?php echo $locked ? ' is-locked' : ''; ?>">
<div class="alcastromol-module-icon" style="background:<?php echo esc_attr($card['bg']); ?>;color:<?php echo esc_attr($card['color']); ?>;">
<?php echo alcastromol_module_icon($card['icon']); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</div>
<header>
<h2>
<?php echo esc_html($card['title']); ?>
<?php if ($card['badge'] !== '') : ?>
<span class="alcastromol-badge"><?php echo esc_html($card['badge']); ?></span>
<?php endif; ?>
</h2>
<p><?php echo esc_html($card['desc']); ?></p>
</header>
<div class="alcastromol-module-status">
<?php if ($card['settings'] !== '') : ?>
<a class="button button-secondary" href="<?php echo esc_url($card['settings']); ?>">Ajustes</a>
<?php else : ?>
<span class="button button-secondary disabled" aria-disabled="true">Ajustes</span>
<?php endif; ?>
<label class="alcastromol-switch">
<input
class="alcastromol-module-toggle"
type="checkbox"
value="<?php echo esc_attr($id); ?>"
<?php checked($active); ?>
<?php disabled($locked); ?>
aria-label="<?php echo esc_attr($card['title']); ?>"
>
<span class="track"></span>
</label>
</div>
</article>
<?php endforeach; ?>
</div>
</div>
<style>
body.toplevel_page_alcastromol-functions #wpcontent {
background: #f3f5f7;
}
.alcastromol-functions-wrap {
max-width: 1280px;
}
.alcastromol-functions-wrap > h1 {
font-weight: 600;
padding: 8px 0 0;
}
.alcastromol-functions-intro {
margin: 4px 0 18px;
color: #646970;
font-size: 14px;
}
.alcastromol-modules {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}
.alcastromol-module {
display: flex;
flex-direction: column;
min-height: 248px;
padding: 22px 20px 16px;
background: #fff;
border: 1px solid #e7eaee;
border-radius: 10px;
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.alcastromol-module-icon {
display: flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
border-radius: 12px;
}
.alcastromol-module header {
margin-top: 16px;
}
.alcastromol-module h2 {
margin: 0 0 8px;
font-size: 16px;
line-height: 1.3;
font-weight: 650;
color: #1d2327;
}
.alcastromol-badge {
display: inline-block;
margin-left: 6px;
padding: 2px 6px;
border-radius: 4px;
background: #f43f5e;
color: #fff;
font-size: 10px;
font-weight: 700;
letter-spacing: .03em;
vertical-align: middle;
}
.alcastromol-module header p {
margin: 0;
min-height: 66px;
color: #646970;
font-size: 13px;
line-height: 1.55;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.alcastromol-module-status {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: auto;
padding-top: 18px;
}
.alcastromol-module-status .button.disabled {
opacity: .55;
pointer-events: none;
}
.alcastromol-switch {
position: relative;
display: inline-block;
width: 38px;
height: 22px;
flex: 0 0 auto;
}
.alcastromol-switch input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.alcastromol-switch .track {
position: absolute;
inset: 0;
background: #c3c4c7;
border-radius: 999px;
cursor: pointer;
transition: background .15s ease;
}
.alcastromol-switch .track:before {
content: "";
position: absolute;
width: 16px;
height: 16px;
left: 3px;
top: 3px;
background: #fff;
border-radius: 50%;
box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
transition: transform .15s ease;
}
.alcastromol-switch input:checked + .track {
background: #2ea3f7;
}
.alcastromol-switch input:checked + .track:before {
transform: translateX(16px);
}
.alcastromol-switch input:focus-visible + .track {
outline: 2px solid #2271b1;
outline-offset: 2px;
}
.alcastromol-switch input:disabled + .track {
opacity: .5;
cursor: not-allowed;
}
.alcastromol-module.is-saving {
opacity: .72;
}
@media (max-width: 1400px) {
.alcastromol-modules {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 960px) {
.alcastromol-modules {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 782px) {
.alcastromol-modules {
grid-template-columns: 1fr;
}
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function () {
var grid = document.querySelector('.alcastromol-modules');
if (!grid || typeof ajaxurl === 'undefined') {
return;
}
grid.addEventListener('change', function (event) {
var input = event.target;
if (!input.classList || !input.classList.contains('alcastromol-module-toggle') || input.disabled) {
return;
}
var card = input.closest('.alcastromol-module');
var checked = input.checked;
card.classList.toggle('is-active', checked);
card.classList.add('is-saving');
var data = new FormData();
data.append('action', 'alcastromol_toggle_module');
data.append('nonce', grid.getAttribute('data-nonce'));
data.append('module', input.value);
data.append('active', checked ? '1' : '0');
var message = 'No se pudo guardar el cambio.';
fetch(ajaxurl, {
method: 'POST',
credentials: 'same-origin',
body: data
}).then(function (response) {
return response.json();
}).then(function (json) {
if (!json || !json.success) {
if (json && json.data && json.data.message) {
message = json.data.message;
}
throw new Error(message);
}
}).catch(function () {
input.checked = !checked;
card.classList.toggle('is-active', input.checked);
window.alert(message);
}).finally(function () {
card.classList.remove('is-saving');
});
});
});
</script>
<?php
}
@@ -0,0 +1,428 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
/*
|--------------------------------------------------------------------------
| Anime.js por CDN
|--------------------------------------------------------------------------
|
| Carga Anime.js 4 desde jsDelivr. Cada subpath oficial se activa aparte,
| así el sitio solo descarga los módulos encendidos.
|
*/
define('ALCASTROMOL_ANIMEJS_VERSION', '4.3.6');
define('ALCASTROMOL_ANIMEJS_OPTION', 'alcastromol_animejs_imports');
function alcastromol_animejs_catalog() {
return [
'animation' => [
'label' => 'animate',
'import' => "import { animate } from 'animejs/animation'",
'path' => 'animation/index.js',
'desc' => 'Animaciones con animate().',
],
'text' => [
'label' => 'text',
'import' => "import { splitText } from 'animejs/text'",
'path' => 'text/index.js',
'desc' => 'Parte títulos y párrafos en líneas, palabras o letras.',
],
'utils' => [
'label' => 'utils',
'import' => "import { stagger, random } from 'animejs/utils'",
'path' => 'utils/index.js',
'desc' => 'stagger, random y utilidades de tiempo y targets.',
],
'timeline' => [
'label' => 'timeline',
'import' => "import { createTimeline } from 'animejs/timeline'",
'path' => 'timeline/index.js',
'desc' => 'Secuencias con createTimeline().',
],
'timer' => [
'label' => 'timer',
'import' => "import { createTimer } from 'animejs/timer'",
'path' => 'timer/index.js',
'desc' => 'Temporizadores con createTimer().',
],
'animatable' => [
'label' => 'animatable',
'import' => "import { createAnimatable } from 'animejs/animatable'",
'path' => 'animatable/index.js',
'desc' => 'Valores animables que se actualizan al vuelo.',
],
'draggable' => [
'label' => 'draggable',
'import' => "import { createDraggable } from 'animejs/draggable'",
'path' => 'draggable/index.js',
'desc' => 'Arrastre con createDraggable().',
],
'layout' => [
'label' => 'layout',
'import' => "import { createLayout } from 'animejs/layout'",
'path' => 'layout/index.js',
'desc' => 'Transiciones de layout con createLayout().',
],
'scope' => [
'label' => 'scope',
'import' => "import { createScope } from 'animejs/scope'",
'path' => 'scope/index.js',
'desc' => 'Agrupa animaciones y las limpia con el scope.',
],
'engine' => [
'label' => 'engine',
'import' => "import { engine } from 'animejs/engine'",
'path' => 'engine/index.js',
'desc' => 'Control del motor: pausa, tiempo y velocidad.',
],
'easings' => [
'label' => 'easings',
'import' => "import * as easings from 'animejs/easings'",
'path' => 'easings/index.js',
'desc' => 'Curvas, spring y cubic-bezier.',
],
'svg' => [
'label' => 'svg',
'import' => "import * as svg from 'animejs/svg'",
'path' => 'svg/index.js',
'desc' => 'Motion path, morph y drawable.',
],
'waapi' => [
'label' => 'waapi',
'import' => "import { waapi } from 'animejs/waapi'",
'path' => 'waapi/index.js',
'desc' => 'animate() ligero sobre la Web Animations API.',
],
'events' => [
'label' => 'events',
'import' => "import * as events from 'animejs/events'",
'path' => 'events/index.js',
'desc' => 'Scroll y otros observadores de eventos.',
],
];
}
function alcastromol_animejs_default_imports() {
$defaults = [];
foreach (alcastromol_animejs_catalog() as $id => $item) {
$defaults[$id] = $id === 'animation' ? '1' : '0';
}
return $defaults;
}
function alcastromol_animejs_get_imports() {
$saved = get_option(ALCASTROMOL_ANIMEJS_OPTION, null);
$defaults = alcastromol_animejs_default_imports();
if (!is_array($saved)) {
return $defaults;
}
$imports = $defaults;
foreach ($defaults as $id => $value) {
if (array_key_exists($id, $saved)) {
$imports[$id] = $saved[$id] === '1' ? '1' : '0';
}
}
return $imports;
}
function alcastromol_animejs_is_import_active($id) {
$imports = alcastromol_animejs_get_imports();
return isset($imports[$id]) && $imports[$id] === '1';
}
function alcastromol_animejs_module_url($path) {
return 'https://cdn.jsdelivr.net/npm/animejs@' . ALCASTROMOL_ANIMEJS_VERSION . '/dist/modules/' . ltrim($path, '/');
}
function alcastromol_animejs_should_load() {
if (is_admin() || wp_doing_ajax() || wp_doing_cron()) {
return false;
}
if (defined('REST_REQUEST') && REST_REQUEST) {
return false;
}
if (is_feed() || is_embed() || is_customize_preview()) {
return false;
}
if (function_exists('alcastromol_is_module_active') && !alcastromol_is_module_active('animejs')) {
return false;
}
if (function_exists('alcastromol_is_tailwind_builder_context') && alcastromol_is_tailwind_builder_context()) {
return false;
}
return true;
}
function alcastromol_animejs_enabled_ids() {
$enabled = [];
foreach (alcastromol_animejs_get_imports() as $id => $active) {
if ($active === '1' && isset(alcastromol_animejs_catalog()[$id])) {
$enabled[] = $id;
}
}
return $enabled;
}
function alcastromol_animejs_print() {
if (!alcastromol_animejs_should_load()) {
return;
}
$catalog = alcastromol_animejs_catalog();
$enabled = alcastromol_animejs_enabled_ids();
if (!$enabled) {
return;
}
$imports = [];
$pairs = [];
foreach ($enabled as $id) {
$alias = 'mod_' . $id;
$url = alcastromol_animejs_module_url($catalog[$id]['path']);
$imports[] = 'import * as ' . $alias . " from '" . esc_url($url) . "';";
$pairs[] = $id . ': ' . $alias;
}
echo "<script type=\"module\" id=\"alcastromol-animejs\">\n";
echo implode("\n", $imports) . "\n";
echo "const modules = { " . implode(', ', $pairs) . " };\n";
echo "const api = { modules };\n";
echo "for (const mod of Object.values(modules)) { Object.assign(api, mod); }\n";
echo "window.animejs = api;\n";
echo "window.dispatchEvent(new CustomEvent('animejs:ready'));\n";
echo "</script>\n";
}
add_action('wp_head', 'alcastromol_animejs_print', 20);
add_action('admin_menu', function () {
add_submenu_page(
'alcastromol-functions',
'Anime.js',
'Anime.js',
'manage_options',
'alcastromol-animejs',
'alcastromol_animejs_admin_page'
);
}, 22);
add_action('admin_post_alcastromol_animejs_save', function () {
if (!current_user_can('manage_options')) {
wp_die('No tienes permisos.');
}
check_admin_referer('alcastromol_animejs_save');
$posted = isset($_POST['imports']) && is_array($_POST['imports']) ? wp_unslash($_POST['imports']) : [];
$imports = alcastromol_animejs_default_imports();
foreach ($imports as $id => $value) {
$imports[$id] = !empty($posted[$id]) ? '1' : '0';
}
update_option(ALCASTROMOL_ANIMEJS_OPTION, $imports);
wp_safe_redirect(admin_url('admin.php?page=alcastromol-animejs&updated=1'));
exit;
});
function alcastromol_animejs_admin_page() {
if (!current_user_can('manage_options')) {
return;
}
$catalog = alcastromol_animejs_catalog();
$imports = alcastromol_animejs_get_imports();
$active = function_exists('alcastromol_is_module_active') && alcastromol_is_module_active('animejs');
?>
<div class="wrap alcastromol-animejs">
<h1>Anime.js</h1>
<p class="alcastromol-animejs-intro">
Anime.js <?php echo esc_html(ALCASTROMOL_ANIMEJS_VERSION); ?> entra desde jsDelivr.
Enciende solo los imports que el sitio va a usar. Quedan en <code>window.animejs</code> cuando dispara <code>animejs:ready</code>.
</p>
<?php if (!$active) : ?>
<div class="notice notice-warning">
<p>Anime.js está apagado. Actívalo en Centro de funciones para cargarlo en el sitio.</p>
</div>
<?php endif; ?>
<?php if (isset($_GET['updated']) && $_GET['updated'] === '1') : ?>
<div class="notice notice-success is-dismissible">
<p>Imports de Anime.js guardados.</p>
</div>
<?php endif; ?>
<form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
<?php wp_nonce_field('alcastromol_animejs_save'); ?>
<input type="hidden" name="action" value="alcastromol_animejs_save">
<div class="alcastromol-animejs-list">
<?php foreach ($catalog as $id => $item) : ?>
<?php $on = !empty($imports[$id]) && $imports[$id] === '1'; ?>
<label class="alcastromol-animejs-row<?php echo $on ? ' is-on' : ''; ?>">
<span class="alcastromol-animejs-copy">
<strong><?php echo esc_html($item['label']); ?></strong>
<code><?php echo esc_html($item['import']); ?></code>
<span><?php echo esc_html($item['desc']); ?></span>
</span>
<span class="alcastromol-switch">
<input type="checkbox" name="imports[<?php echo esc_attr($id); ?>]" value="1" <?php checked($on); ?>>
<span class="track"></span>
</span>
</label>
<?php endforeach; ?>
</div>
<?php submit_button('Guardar imports'); ?>
</form>
<p class="alcastromol-animejs-use">
<code>document.addEventListener('animejs:ready', function () { animejs.animate('.card', { opacity: [0, 1], y: [22, 0] }); });</code>
</p>
</div>
<style>
.alcastromol-animejs {
max-width: 860px;
}
.alcastromol-animejs-intro {
color: #646970;
font-size: 14px;
}
.alcastromol-animejs-list {
display: flex;
flex-direction: column;
gap: 8px;
margin: 16px 0 8px;
}
.alcastromol-animejs-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px 16px;
background: #fff;
border: 1px solid #e7eaee;
border-radius: 10px;
}
.alcastromol-animejs-row.is-on {
border-color: #fdba74;
}
.alcastromol-animejs-copy {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.alcastromol-animejs-copy strong {
color: #1d2327;
font-size: 14px;
}
.alcastromol-animejs-copy code {
font-size: 12px;
background: transparent;
padding: 0;
}
.alcastromol-animejs-copy span {
color: #646970;
font-size: 13px;
}
.alcastromol-animejs-use {
margin-top: 8px;
}
.alcastromol-animejs-use code {
display: block;
padding: 12px 14px;
white-space: normal;
}
.alcastromol-switch {
position: relative;
display: inline-block;
width: 38px;
height: 22px;
flex: 0 0 auto;
}
.alcastromol-switch input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.alcastromol-switch .track {
position: absolute;
inset: 0;
background: #c3c4c7;
border-radius: 999px;
cursor: pointer;
transition: background .15s ease;
}
.alcastromol-switch .track:before {
content: "";
position: absolute;
width: 16px;
height: 16px;
left: 3px;
top: 3px;
background: #fff;
border-radius: 50%;
box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
transition: transform .15s ease;
}
.alcastromol-switch input:checked + .track {
background: #ea580c;
}
.alcastromol-switch input:checked + .track:before {
transform: translateX(16px);
}
.alcastromol-switch input:focus-visible + .track {
outline: 2px solid #2271b1;
outline-offset: 2px;
}
</style>
<?php
}
@@ -0,0 +1,145 @@
<?php
if (!defined('ABSPATH')) {
exit; // Seguridad: evita acceso directo
}
/*
|--------------------------------------------------------------------------
| Limpieza del front: oEmbed, emoji, Gutenberg y classic-theme-styles
|--------------------------------------------------------------------------
*/
add_action('init', 'alcastromol_clean_frontend_head', 20);
function alcastromol_clean_frontend_head() {
if (is_admin()) {
return;
}
// oEmbed discovery links
remove_action('wp_head', 'wp_oembed_add_discovery_links', 4);
remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
remove_action('wp_head', 'wp_oembed_add_host_js');
add_filter('embed_oembed_discover', '__return_false');
// img auto-sizes contain CSS
remove_action('wp_head', 'wp_enqueue_img_auto_sizes_contain_css_fix', 0);
remove_action('wp_head', 'wp_print_auto_sizes_contain_css_fix', 1);
add_filter('wp_img_tag_add_auto_sizes', '__return_false');
// Emoji
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action('wp_enqueue_scripts', 'wp_enqueue_emoji_styles');
remove_filter('the_content_feed', 'wp_staticize_emoji');
remove_filter('comment_text_rss', 'wp_staticize_emoji');
remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
add_filter('tiny_mce_plugins', 'alcastromol_disable_emojis_tinymce');
add_filter('wp_resource_hints', 'alcastromol_disable_emojis_dns_prefetch', 10, 2);
// Estilos de bloques y classic theme
remove_action('wp_enqueue_scripts', 'wp_enqueue_global_styles');
remove_action('wp_footer', 'wp_enqueue_global_styles', 1);
remove_action('wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles');
remove_action('wp_enqueue_scripts', 'wp_common_block_scripts_and_styles');
remove_action('enqueue_block_assets', 'wp_enqueue_classic_theme_styles');
remove_action('enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles');
remove_action('enqueue_block_assets', 'enqueue_block_styles_assets', 30);
// REST API links en el <head>
remove_action('wp_head', 'rest_output_link_wp_head', 10);
remove_action('template_redirect', 'rest_output_link_header', 11);
}
function alcastromol_disable_emojis_tinymce($plugins) {
if (!is_array($plugins)) {
return [];
}
return array_diff($plugins, ['wpemoji']);
}
function alcastromol_disable_emojis_dns_prefetch($urls, $relation_type) {
if ($relation_type !== 'dns-prefetch') {
return $urls;
}
return array_filter($urls, function ($url) {
return strpos($url, 'https://s.w.org/images/core/emoji/') === false;
});
}
add_action('wp_enqueue_scripts', 'alcastromol_dequeue_frontend_styles', 100);
add_action('wp_enqueue_scripts', 'alcastromol_dequeue_frontend_jquery', PHP_INT_MAX);
add_action('wp_print_scripts', 'alcastromol_dequeue_frontend_jquery', 1);
function alcastromol_dequeue_frontend_jquery() {
global $pagenow;
if (is_admin() || in_array($pagenow, ['wp-login.php', 'wp-register.php'], true)) {
return;
}
wp_dequeue_script('jquery');
wp_dequeue_script('jquery-core');
wp_dequeue_script('jquery-migrate');
wp_deregister_script('jquery');
wp_deregister_script('jquery-core');
wp_deregister_script('jquery-migrate');
}
function alcastromol_dequeue_frontend_styles() {
if (is_admin()) {
return;
}
$handles = [
'global-styles',
'classic-theme-styles',
'wp-block-library',
'wp-block-library-theme',
'core-block-supports',
'wp-emoji-styles',
'wp-img-auto-sizes-contain',
];
foreach ($handles as $handle) {
wp_dequeue_style($handle);
wp_deregister_style($handle);
}
global $wp_styles;
if (!($wp_styles instanceof WP_Styles)) {
return;
}
foreach (array_keys($wp_styles->registered) as $handle) {
if (strpos($handle, 'wp-block-') === 0) {
wp_dequeue_style($handle);
wp_deregister_style($handle);
}
}
}
if (function_exists('alcastromol_is_oxygen_enabled') && alcastromol_is_oxygen_enabled()) {
add_filter('breakdance_register_font', function ($font) {
$isGoogleFont = !empty($font['dependencies']['googleFonts']);
if ($isGoogleFont) {
return false;
}
return $font;
});
}
@@ -0,0 +1,585 @@
<?php
if (!defined('ABSPATH')) {
exit;
}
/*
|--------------------------------------------------------------------------
| Modo debug en wp-config.php
|--------------------------------------------------------------------------
*/
function alcastromol_debug_constants() {
return ['WP_DEBUG', 'WP_DEBUG_LOG', 'WP_DEBUG_DISPLAY'];
}
function alcastromol_debug_config_path() {
$candidates = [];
if (defined('ABSPATH')) {
$candidates[] = ABSPATH . 'wp-config.php';
$candidates[] = dirname(ABSPATH) . '/wp-config.php';
}
foreach ($candidates as $path) {
if (is_file($path)) {
return $path;
}
}
return '';
}
function alcastromol_debug_define_pattern() {
return '/^([ \t]*)define\s*\(\s*[\'"](WP_DEBUG|WP_DEBUG_LOG|WP_DEBUG_DISPLAY)[\'"]\s*,\s*([^)]*)\)\s*;[ \t]*(?:(?:\/\/|#).*)?$/';
}
function alcastromol_debug_read() {
$path = alcastromol_debug_config_path();
if ($path === '' || !is_readable($path)) {
return new WP_Error('alcastromol_debug_read', 'No se pudo leer wp-config.php.');
}
$contents = file_get_contents($path);
if (!is_string($contents)) {
return new WP_Error('alcastromol_debug_read', 'No se pudo leer wp-config.php.');
}
return [
'path' => $path,
'contents' => $contents,
'writable' => is_writable($path),
];
}
function alcastromol_debug_scan($contents) {
$newline = str_contains($contents, "\r\n") ? "\r\n" : "\n";
$lines = preg_split("/\r\n|\n|\r/", $contents);
$state = [
'WP_DEBUG' => null,
'WP_DEBUG_LOG' => null,
'WP_DEBUG_DISPLAY' => null,
];
$indexes = [];
if (!is_array($lines)) {
return new WP_Error('alcastromol_debug_read', 'No se pudo leer wp-config.php.');
}
foreach ($lines as $index => $line) {
if (!preg_match(alcastromol_debug_define_pattern(), $line, $match)) {
continue;
}
$name = $match[2];
if (isset($indexes[$name])) {
return new WP_Error('alcastromol_debug_duplicate', 'wp-config.php define ' . $name . ' más de una vez.');
}
$indexes[$name] = $index;
$raw = trim($match[3]);
$normalized = strtolower(trim($raw, " \t'\""));
$state[$name] = [
'on' => in_array($normalized, ['true', '1'], true),
'raw' => $raw,
];
}
return [
'newline' => $newline,
'lines' => $lines,
'state' => $state,
'indexes' => $indexes,
];
}
function alcastromol_debug_status() {
$file = alcastromol_debug_read();
if (is_wp_error($file)) {
return $file;
}
$scan = alcastromol_debug_scan($file['contents']);
if (is_wp_error($scan)) {
return $scan;
}
$enabled = true;
foreach (alcastromol_debug_constants() as $name) {
$item = $scan['state'][$name];
if (!is_array($item) || empty($item['on'])) {
$enabled = false;
break;
}
}
return [
'path' => $file['path'],
'writable' => $file['writable'],
'state' => $scan['state'],
'enabled' => $enabled,
];
}
function alcastromol_debug_is_enabled() {
$status = alcastromol_debug_status();
if (is_wp_error($status)) {
return $status;
}
return $status['enabled'];
}
function alcastromol_debug_transform($contents, $enabled) {
$scan = alcastromol_debug_scan($contents);
if (is_wp_error($scan)) {
return $scan;
}
$value = $enabled ? 'true' : 'false';
$lines = $scan['lines'];
$indexes = array_values($scan['indexes']);
sort($indexes);
$indent = '';
$anchor = null;
if ($indexes) {
$anchor = $indexes[0];
if (preg_match('/^([ \t]*)/', $lines[$anchor], $match)) {
$indent = $match[1];
}
}
foreach (array_reverse($indexes) as $index) {
array_splice($lines, $index, 1);
}
if ($anchor === null) {
foreach ($lines as $index => $line) {
if (str_contains($line, 'stop editing')) {
$anchor = $index;
break;
}
}
if ($anchor === null) {
return new WP_Error('alcastromol_debug_anchor', 'No se encontró dónde escribir el modo debug en wp-config.php.');
}
}
$block = [];
foreach (alcastromol_debug_constants() as $name) {
$block[] = $indent . "define( '{$name}', {$value} );";
}
array_splice($lines, $anchor, 0, $block);
return implode($scan['newline'], $lines);
}
function alcastromol_debug_unmanaged_lines($contents) {
$lines = preg_split("/\r\n|\n|\r/", $contents);
$kept = [];
if (!is_array($lines)) {
return [];
}
foreach ($lines as $line) {
if (preg_match(alcastromol_debug_define_pattern(), $line)) {
continue;
}
$kept[] = $line;
}
return $kept;
}
function alcastromol_debug_lint($contents) {
if (!is_string($contents) || $contents === '') {
return new WP_Error('alcastromol_debug_lint', 'El resultado estaba vacío y no se guardó.');
}
if (!defined('TOKEN_PARSE')) {
return true;
}
try {
token_get_all($contents, TOKEN_PARSE);
} catch (ParseError $exception) {
return new WP_Error('alcastromol_debug_lint', 'No se guardó wp-config.php porque el resultado no es PHP válido. ' . $exception->getMessage());
}
return true;
}
function alcastromol_debug_sync_module($enabled) {
if (!function_exists('alcastromol_get_modules')) {
return;
}
$modules = alcastromol_get_modules();
$modules['debug'] = $enabled ? '1' : '0';
update_option('alcastromol_modules', $modules);
}
function alcastromol_debug_set($enabled) {
$enabled = (bool) $enabled;
$file = alcastromol_debug_read();
if (is_wp_error($file)) {
return $file;
}
if (!$file['writable']) {
return new WP_Error('alcastromol_debug_write', 'wp-config.php no tiene permisos de escritura.');
}
$next = alcastromol_debug_transform($file['contents'], $enabled);
if (is_wp_error($next)) {
return $next;
}
if ($next !== $file['contents']) {
if (alcastromol_debug_unmanaged_lines($file['contents']) !== alcastromol_debug_unmanaged_lines($next)) {
return new WP_Error('alcastromol_debug_guard', 'El cambio afectaba otras líneas de wp-config.php y no se guardó.');
}
$lint = alcastromol_debug_lint($next);
if (is_wp_error($lint)) {
return $lint;
}
if (file_put_contents($file['path'], $next, LOCK_EX) === false) {
return new WP_Error('alcastromol_debug_write', 'No se pudo guardar wp-config.php.');
}
}
alcastromol_debug_sync_module($enabled);
return true;
}
function alcastromol_debug_lines($enabled) {
$value = $enabled ? 'true' : 'false';
$lines = [];
foreach (alcastromol_debug_constants() as $name) {
$lines[] = "define( '{$name}', {$value} );";
}
return $lines;
}
function alcastromol_debug_notice($type, $message) {
set_transient('alcastromol_debug_notice_' . get_current_user_id(), [
'type' => $type,
'message' => $message,
], MINUTE_IN_SECONDS);
}
if (function_exists('add_action')) {
add_action('admin_menu', function () {
add_submenu_page(
'alcastromol-functions',
'Modo debug',
'Modo debug',
'manage_options',
'alcastromol-debug',
'alcastromol_debug_admin_page'
);
}, 22);
add_action('admin_bar_menu', function ($bar) {
if (!current_user_can('manage_options')) {
return;
}
$bar->add_node([
'id' => 'alcastromol-debug',
'parent' => 'alcastromol-tailwind',
'title' => 'Modo debug',
'href' => admin_url('admin.php?page=alcastromol-debug'),
]);
}, 92);
add_action('admin_post_alcastromol_debug_save', function () {
if (!current_user_can('manage_options')) {
wp_die('No tienes permisos.');
}
check_admin_referer('alcastromol_debug_save');
$enabled = !empty($_POST['debug_mode']);
$result = alcastromol_debug_set($enabled);
if (is_wp_error($result)) {
alcastromol_debug_notice('error', $result->get_error_message());
} elseif ($enabled) {
alcastromol_debug_notice('success', 'Modo debug activado en wp-config.php.');
} else {
alcastromol_debug_notice('success', 'Modo debug desactivado en wp-config.php.');
}
wp_safe_redirect(admin_url('admin.php?page=alcastromol-debug'));
exit;
});
}
function alcastromol_debug_state_label($value) {
if (!is_array($value) || !isset($value['raw'])) {
return 'no está';
}
return $value['raw'];
}
function alcastromol_debug_admin_page() {
if (!current_user_can('manage_options')) {
return;
}
$status = alcastromol_debug_status();
$notice = get_transient('alcastromol_debug_notice_' . get_current_user_id());
if ($notice) {
delete_transient('alcastromol_debug_notice_' . get_current_user_id());
}
$enabled = !is_wp_error($status) && !empty($status['enabled']);
$writable = !is_wp_error($status) && !empty($status['writable']);
$log = WP_CONTENT_DIR . '/debug.log';
?>
<div class="wrap alcastromol-debug">
<h1>Modo debug</h1>
<p class="alcastromol-debug-intro">
Activa o desactiva estas constantes en <code>wp-config.php</code>.
Encendido, WordPress muestra los errores de PHP y los guarda en <code>wp-content/debug.log</code>.
</p>
<?php if (is_array($notice) && !empty($notice['message'])) : ?>
<div class="notice notice-<?php echo $notice['type'] === 'error' ? 'error' : 'success'; ?> is-dismissible">
<p><?php echo esc_html($notice['message']); ?></p>
</div>
<?php endif; ?>
<?php if (is_wp_error($status)) : ?>
<div class="notice notice-error">
<p><?php echo esc_html($status->get_error_message()); ?></p>
</div>
<?php else : ?>
<?php if ($enabled) : ?>
<div class="notice notice-warning">
<p>El modo debug está activo. Los avisos de PHP se ven en el sitio público y en el administrador.</p>
</div>
<?php endif; ?>
<?php if (!$writable) : ?>
<div class="notice notice-error">
<p>No se puede escribir <code>wp-config.php</code>. Revisa los permisos del archivo.</p>
</div>
<?php endif; ?>
<section class="alcastromol-debug-box">
<h2><?php echo $enabled ? 'Activo' : 'Inactivo'; ?></h2>
<p>El interruptor escribe las tres líneas juntas. Apagado las deja en <code>false</code>.</p>
<form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
<?php wp_nonce_field('alcastromol_debug_save'); ?>
<input type="hidden" name="action" value="alcastromol_debug_save">
<label class="alcastromol-debug-toggle">
<span class="alcastromol-switch">
<input type="checkbox" name="debug_mode" value="1" <?php checked($enabled); ?> <?php disabled(!$writable); ?>>
<span class="track"></span>
</span>
Modo debug
</label>
<pre class="alcastromol-debug-rules"><?php echo esc_html(implode("\n", alcastromol_debug_lines($enabled))); ?></pre>
<ul class="alcastromol-debug-state">
<?php foreach (alcastromol_debug_constants() as $name) : ?>
<li><code><?php echo esc_html($name); ?></code> <?php echo esc_html(alcastromol_debug_state_label($status['state'][$name])); ?></li>
<?php endforeach; ?>
</ul>
<?php submit_button('Guardar', 'primary', 'submit', false, $writable ? [] : ['disabled' => 'disabled']); ?>
</form>
<p class="alcastromol-debug-meta">
Archivo: <code><?php echo esc_html($status['path']); ?></code>
<?php if (is_file($log)) : ?>
· Log: <code>wp-content/debug.log</code>
(<?php echo esc_html(size_format(filesize($log))); ?>,
<?php echo esc_html(date_i18n('d/m/Y g:i a', filemtime($log))); ?>)
<?php else : ?>
· El log se crea en <code>wp-content/debug.log</code> cuando aparezca el primer error.
<?php endif; ?>
</p>
</section>
<?php endif; ?>
</div>
<style>
.alcastromol-debug {
max-width: 860px;
}
.alcastromol-debug-intro,
.alcastromol-debug-meta,
.alcastromol-debug-box p {
color: #646970;
}
.alcastromol-debug-box {
margin: 18px 0;
padding: 18px 20px 8px;
background: #fff;
border: 1px solid #e7eaee;
border-radius: 10px;
}
.alcastromol-debug-box h2 {
margin: 0 0 8px;
}
.alcastromol-debug-toggle {
display: inline-flex;
align-items: center;
gap: 10px;
font-weight: 600;
color: #1d2327;
}
.alcastromol-debug-rules {
margin: 14px 0;
padding: 14px 16px;
overflow: auto;
background: #f8f9fb;
border: 1px solid #e7eaee;
border-radius: 8px;
color: #1d2327;
font-size: 12px;
line-height: 1.55;
}
.alcastromol-debug-state {
margin: 0 0 14px;
padding-left: 18px;
color: #1d2327;
}
.alcastromol-switch {
position: relative;
display: inline-block;
width: 38px;
height: 22px;
flex: 0 0 auto;
}
.alcastromol-switch input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.alcastromol-switch .track {
position: absolute;
inset: 0;
background: #c3c4c7;
border-radius: 999px;
cursor: pointer;
transition: background .15s ease;
}
.alcastromol-switch .track:before {
content: "";
position: absolute;
width: 16px;
height: 16px;
left: 3px;
top: 3px;
background: #fff;
border-radius: 50%;
box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
transition: transform .15s ease;
}
.alcastromol-switch input:checked + .track {
background: #d97706;
}
.alcastromol-switch input:checked + .track:before {
transform: translateX(16px);
}
.alcastromol-switch input:focus-visible + .track {
outline: 2px solid #2271b1;
outline-offset: 2px;
}
.alcastromol-switch input:disabled + .track {
opacity: .5;
cursor: not-allowed;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function () {
var input = document.querySelector('.alcastromol-debug-toggle input');
var preview = document.querySelector('.alcastromol-debug-rules');
if (!input || !preview) {
return;
}
var blocks = {
on: <?php echo wp_json_encode(implode("\n", alcastromol_debug_lines(true))); ?>,
off: <?php echo wp_json_encode(implode("\n", alcastromol_debug_lines(false))); ?>
};
input.addEventListener('change', function () {
preview.textContent = input.checked ? blocks.on : blocks.off;
});
});
</script>
<?php
}
@@ -0,0 +1,49 @@
<?php
if (!defined('ABSPATH')) {
exit; // Seguridad: evita acceso directo
}
function custom_header_code()
{
$humans = file_exists("humans.txt");
if (!$humans) {
$createFile = fopen("humans.txt", "w") or die("Unable to open file!");
$txt = "/* TEAM */ \n";
fwrite($createFile, $txt);
$txt = "Desarrollado por: Alejandro Castro Molina \n";
fwrite($createFile, $txt);
$txt = "Email: alcastromol@gmail.com \n";
fwrite($createFile, $txt);
$txt = "Location: Acapulco, Gro., Méx \n";
fwrite($createFile, $txt);
$txt = " \n";
fwrite($createFile, $txt);
$txt = " \n";
fwrite($createFile, $txt);
$txt = "/* SITE */ \n";
fwrite($createFile, $txt);
$txt = "Last update: " . date("Y/m/d") . " \n";
fwrite($createFile, $txt);
$txt = "Standards: Html5, CSS3 (tailwindcss), Js (vanilla) y PHP 8.3 \n";
fwrite($createFile, $txt);
$txt = "Components: jQuery. \n";
fwrite($createFile, $txt);
$txt = "Software: Tema Personalizado desarrollado desde 0 \n";
fwrite($createFile, $txt);
fclose($createFile);
}
?>
<!--================================================
= Autoria del desarrollo Web =
=================================================-->
<link type="text/plain" rel="author" href="<?php echo get_home_url(); ?>/humans.txt" />
<!--==== Autoria del desarrollo Web ====-->
<?php
}
add_action('wp_head', 'custom_header_code');
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,157 @@
<?php
if (!defined('ABSPATH')) exit;
function alcastromol_tailwind_post_is_cacheable($post) {
$post = get_post($post);
if (!$post || $post->post_status !== 'publish') return false;
$options = alcastromol_get_cache_options();
$types = isset($options['post_types']) && is_array($options['post_types']) ? $options['post_types'] : [];
return in_array($post->post_type, $types, true);
}
function alcastromol_tailwind_get_post_cache_action_url($post_id, $context = 'admin') {
$post_id = absint($post_id);
$endpoint = admin_url('admin-post.php');
if ($context === 'front' && function_exists('pll_home_url')) {
$endpoint = trailingslashit(pll_home_url()) . 'wp-admin/admin-post.php';
}
$url = add_query_arg([
'action' => 'alcastromol_generate_tailwind_post_cache',
'post_id' => $post_id,
'context' => sanitize_key($context),
], $endpoint);
return wp_nonce_url($url, 'alcastromol_generate_tailwind_post_cache_' . $post_id);
}
function alcastromol_tailwind_add_post_row_action($actions, $post) {
if (function_exists('alcastromol_is_module_active') && !alcastromol_is_module_active('cache')) return $actions;
if (!current_user_can('manage_options') || !alcastromol_tailwind_post_is_cacheable($post)) return $actions;
$actions['alcastromol_tailwind_cache'] = sprintf(
'<a href="%s" aria-label="%s">%s</a>',
esc_url(alcastromol_tailwind_get_post_cache_action_url($post->ID, 'admin')),
esc_attr(sprintf('Generar cache Tailwind para %s', get_the_title($post))),
esc_html__('Generar cache Tailwind')
);
return $actions;
}
add_filter('post_row_actions', 'alcastromol_tailwind_add_post_row_action', 20, 2);
add_filter('page_row_actions', 'alcastromol_tailwind_add_post_row_action', 20, 2);
add_action('admin_post_alcastromol_generate_tailwind_post_cache', function () {
$post_id = absint($_REQUEST['post_id'] ?? 0);
$context = sanitize_key($_REQUEST['context'] ?? 'admin');
if (!$post_id || !current_user_can('manage_options') || !current_user_can('edit_post', $post_id)) {
wp_die('No tienes permisos para generar este cache.');
}
check_admin_referer('alcastromol_generate_tailwind_post_cache_' . $post_id);
$post = get_post($post_id);
if (!$post || !alcastromol_tailwind_post_is_cacheable($post)) {
wp_die('Este post type no está activo en la configuración de cache de Tailwind.');
}
$url = get_permalink($post_id);
$slug = alcastromol_get_post_cache_slug($post_id);
$ok = $url && $slug ? alcastromol_cache_url($url, $slug) : false;
if ($context === 'front') {
wp_redirect($url ?: home_url('/'));
exit;
}
$object = get_post_type_object($post->post_type);
$fallback = ($object && $object->show_ui)
? add_query_arg('post_type', $post->post_type, admin_url('edit.php'))
: admin_url('edit.php');
$redirect = wp_get_referer() ?: $fallback;
$redirect = add_query_arg([
'tailwind_post_cache' => $ok ? 'generated' : 'failed',
'tailwind_post_id' => $post_id,
], $redirect);
wp_safe_redirect($redirect);
exit;
});
add_action('admin_notices', function () {
if (empty($_GET['tailwind_post_cache'])) return;
$status = sanitize_key($_GET['tailwind_post_cache']);
$post_id = absint($_GET['tailwind_post_id'] ?? 0);
if ($status === 'generated') {
echo '<div class="notice notice-success is-dismissible"><p><strong>Cache Tailwind generado.</strong> ';
echo $post_id ? 'Entrada #' . esc_html($post_id) . '.' : '';
echo '</p></div>';
} else {
echo '<div class="notice notice-error is-dismissible"><p><strong>No se pudo generar el cache Tailwind de la entrada.</strong></p></div>';
}
});
add_action('admin_bar_menu', function ($bar) {
if (!current_user_can('manage_options')) return;
$bar->add_node([
'id' => 'alcastromol-tailwind',
'title' => 'Centro de funciones',
'href' => admin_url('admin.php?page=alcastromol-functions'),
'meta' => ['class' => 'alcastromol-tailwind-admin-bar'],
]);
$bar->add_node([
'id' => 'alcastromol-functions-home',
'parent' => 'alcastromol-tailwind',
'title' => 'Inicio',
'href' => admin_url('admin.php?page=alcastromol-functions'),
]);
$bar->add_node([
'id' => 'alcastromol-tailwind-mode',
'parent' => 'alcastromol-tailwind',
'title' => 'Tailwind v3',
'href' => admin_url('admin.php?page=alcastromol-tailwind-mode'),
]);
$bar->add_node([
'id' => 'alcastromol-tailwind-cache',
'parent' => 'alcastromol-tailwind',
'title' => 'Cache de Tailwind',
'href' => admin_url('admin.php?page=tailwind-cache'),
]);
if (!is_admin() && is_singular()) {
$post_id = get_queried_object_id();
if ($post_id && alcastromol_tailwind_post_is_cacheable($post_id) && (!function_exists('alcastromol_is_module_active') || alcastromol_is_module_active('cache'))) {
$bar->add_node([
'id' => 'alcastromol-tailwind-current-post-cache',
'parent' => 'alcastromol-tailwind',
'title' => 'Generar cache de esta entrada',
'href' => alcastromol_tailwind_get_post_cache_action_url($post_id, 'front'),
]);
}
}
}, 90);
function alcastromol_tailwind_render_compile_section() {
$mode = alcastromol_get_tailwind_mode();
$cli = alcastromol_tailwind_get_cli_path();
$result = get_transient('alcastromol_tailwind_compile_result_' . get_current_user_id());
if ($result) delete_transient('alcastromol_tailwind_compile_result_' . get_current_user_id());
?>
<hr style="margin:28px 0;">
<h2>Compilar CSS de Tailwind</h2>
<p>Genera el archivo CSS productivo utilizando el cache HTML actual y Tailwind Standalone CLI.</p>
<?php if (is_array($result)) : ?>
<div class="notice <?php echo !empty($result['success']) ? 'notice-success' : 'notice-error'; ?> inline" style="max-width:900px;">
<p><strong><?php echo esc_html($result['message'] ?? 'Proceso terminado.'); ?></strong></p>
<?php if (!empty($result['file_size'])) : ?>
<p>Tamaño: <code><?php echo esc_html($result['file_size']); ?></code>
<?php if (!empty($result['modified'])) : ?> · Modificado: <code><?php echo esc_html($result['modified']); ?></code><?php endif; ?></p>
<?php endif; ?>
<?php if (!empty($result['stderr'])) : ?><pre style="white-space:pre-wrap;"><?php echo esc_html($result['stderr']); ?></pre><?php endif; ?>
</div>
<?php endif; ?>
<table class="widefat striped" style="max-width:900px; margin:14px 0 16px;"><tbody>
<tr><td style="width:220px;"><strong>Modo actual</strong></td><td><code><?php echo esc_html($mode); ?></code>
<?php if ($mode !== 'production') : ?> · <a href="<?php echo esc_url(admin_url('admin.php?page=alcastromol-tailwind-mode')); ?>">Cambiar a producción</a><?php endif; ?></td></tr>
<tr><td><strong>CLI detectado</strong></td><td><?php if ($cli) : ?><code><?php echo esc_html($cli); ?></code><?php else : ?><span style="color:#b32d2e;">No detectado</span><?php endif; ?></td></tr>
<tr><td><strong>CSS productivo</strong></td><td><code><?php echo esc_html(ALCASTROMOL_TAILWIND_OUTPUT_CSS); ?></code>
<?php if (file_exists(ALCASTROMOL_TAILWIND_OUTPUT_CSS)) : ?><br><?php echo esc_html(size_format(filesize(ALCASTROMOL_TAILWIND_OUTPUT_CSS))); ?> · <?php echo esc_html(date_i18n('d/m/Y g:i a', filemtime(ALCASTROMOL_TAILWIND_OUTPUT_CSS))); ?><?php endif; ?></td></tr>
</tbody></table>
<form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
<?php wp_nonce_field('alcastromol_compile_tailwind_cli_nonce'); ?>
<input type="hidden" name="action" value="alcastromol_compile_tailwind_cli">
<?php submit_button('Generar CSS compilado', 'primary', 'submit', false, (!$cli || $mode !== 'production') ? ['disabled'=>'disabled'] : []); ?>
</form>
<?php
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,49 @@
@import "tailwindcss";
/* Scan archivos (ruta de cache) */
@source "../cache/*.{php,html,js}";
/* Theme */
@theme {
/*
--color-azul: #08283B;
--color-rojo-principal: #F52542;
--color-rojo-obscuro: #9B142D;
--color-rojo-obscuro2: #E6324C;
--breakpoint-xxxl: 1536px;
--breakpoint-xxl: 1439px;
--breakpoint-xl: 1280px;
--breakpoint-lg: 1024px;
--breakpoint-md: 768px;
--breakpoint-sm: 640px;
--breakpoint-ssm: 550px; */
}
/* Container
.container {
margin-inline: auto;
padding-inline: 1rem;
}
@media (min-width: 550px) {
.container { max-width: 550px; }
}
@media (min-width: 768px) {
.container { max-width: 768px; }
}
@media (min-width: 900px) {
.container { max-width: 900px; }
}
@media (min-width: 1024px) {
.container { max-width: 1024px; }
}
@media (min-width: 1240px) {
.container { max-width: 1240px; }
} */
@@ -0,0 +1,10 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.container-xl {
max-width: 1440px;
margin: 0 auto;
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,935 @@
{
"name": "alcastromol-tailwind-build",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "alcastromol-tailwind-build",
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"any-promise": "^1.3.0",
"anymatch": "^3.1.3",
"arg": "^5.0.2",
"binary-extensions": "^2.3.0",
"braces": "^3.0.3",
"camelcase-css": "^2.0.1",
"chokidar": "^3.6.0",
"commander": "^4.1.1",
"cssesc": "^3.0.0",
"didyoumean": "^1.2.2",
"dlv": "^1.1.3",
"fast-glob": "^3.3.3",
"fastq": "^1.20.1",
"fill-range": "^7.1.1",
"function-bind": "^1.1.2",
"glob-parent": "^6.0.2",
"hasown": "^2.0.2",
"is-binary-path": "^2.1.0",
"is-core-module": "^2.16.1",
"is-extglob": "^2.1.1",
"is-glob": "^4.0.3",
"is-number": "^7.0.0",
"jiti": "^1.21.7",
"lilconfig": "^3.1.3",
"lines-and-columns": "^1.2.4",
"merge2": "^1.4.1",
"micromatch": "^4.0.8",
"mz": "^2.7.0",
"nanoid": "^3.3.11",
"normalize-path": "^3.0.0",
"object-assign": "^4.1.1",
"object-hash": "^3.0.0",
"path-parse": "^1.0.7",
"picocolors": "^1.1.1",
"picomatch": "^2.3.1",
"pify": "^2.3.0",
"pirates": "^4.0.7",
"postcss": "^8.5.8",
"postcss-import": "^15.1.0",
"postcss-js": "^4.1.0",
"postcss-load-config": "^6.0.1",
"postcss-nested": "^6.2.0",
"postcss-selector-parser": "^6.1.2",
"postcss-value-parser": "^4.2.0",
"queue-microtask": "^1.2.3",
"read-cache": "^1.0.0",
"readdirp": "^3.6.0",
"resolve": "^1.22.11",
"reusify": "^1.1.0",
"run-parallel": "^1.2.0",
"source-map-js": "^1.2.1",
"sucrase": "^3.35.1",
"supports-preserve-symlinks-flag": "^1.0.0",
"thenify": "^3.3.1",
"thenify-all": "^1.6.0",
"tinyglobby": "^0.2.15",
"to-regex-range": "^5.0.1",
"ts-interface-checker": "^0.1.13",
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"tailwindcss": "^3.4.19"
}
},
"node_modules/@alloc/quick-lru": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",
"integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
"dev": true,
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.0",
"@jridgewell/trace-mapping": "^0.3.24"
}
},
"node_modules/@jridgewell/resolve-uri": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.31",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"node_modules/@nodelib/fs.scandir": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
"integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
"dependencies": {
"@nodelib/fs.stat": "2.0.5",
"run-parallel": "^1.1.9"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/@nodelib/fs.stat": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
"integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
"engines": {
"node": ">= 8"
}
},
"node_modules/@nodelib/fs.walk": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
"integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
"dependencies": {
"@nodelib/fs.scandir": "2.1.5",
"fastq": "^1.6.0"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/any-promise": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
"integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A=="
},
"node_modules/anymatch": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/arg": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
"integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg=="
},
"node_modules/binary-extensions": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
"integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/braces": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
"dependencies": {
"fill-range": "^7.1.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/camelcase-css": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
"integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
"engines": {
"node": ">= 6"
}
},
"node_modules/chokidar": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
"dependencies": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
"glob-parent": "~5.1.2",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
"normalize-path": "~3.0.0",
"readdirp": "~3.6.0"
},
"engines": {
"node": ">= 8.10.0"
},
"funding": {
"url": "https://paulmillr.com/funding/"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
}
},
"node_modules/chokidar/node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dependencies": {
"is-glob": "^4.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/commander": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
"integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
"engines": {
"node": ">= 6"
}
},
"node_modules/cssesc": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
"integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
"bin": {
"cssesc": "bin/cssesc"
},
"engines": {
"node": ">=4"
}
},
"node_modules/didyoumean": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
"integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw=="
},
"node_modules/dlv": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="
},
"node_modules/fast-glob": {
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
"integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
"dependencies": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
"glob-parent": "^5.1.2",
"merge2": "^1.3.0",
"micromatch": "^4.0.8"
},
"engines": {
"node": ">=8.6.0"
}
},
"node_modules/fast-glob/node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dependencies": {
"is-glob": "^4.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/fastq": {
"version": "1.20.1",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
"integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
"dependencies": {
"reusify": "^1.0.4"
}
},
"node_modules/fdir": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
"engines": {
"node": ">=12.0.0"
},
"peerDependencies": {
"picomatch": "^3 || ^4"
},
"peerDependenciesMeta": {
"picomatch": {
"optional": true
}
}
},
"node_modules/fill-range": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
"dependencies": {
"to-regex-range": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/glob-parent": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
"integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
"dependencies": {
"is-glob": "^4.0.3"
},
"engines": {
"node": ">=10.13.0"
}
},
"node_modules/hasown": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
"dependencies": {
"function-bind": "^1.1.2"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/is-binary-path": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"dependencies": {
"binary-extensions": "^2.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/is-core-module": {
"version": "2.16.1",
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
"integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
"dependencies": {
"hasown": "^2.0.2"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dependencies": {
"is-extglob": "^2.1.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"engines": {
"node": ">=0.12.0"
}
},
"node_modules/jiti": {
"version": "1.21.7",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",
"integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
"bin": {
"jiti": "bin/jiti.js"
}
},
"node_modules/lilconfig": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
"integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/antonk52"
}
},
"node_modules/lines-and-columns": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
},
"node_modules/merge2": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
"integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
"engines": {
"node": ">= 8"
}
},
"node_modules/micromatch": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
"integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
"dependencies": {
"braces": "^3.0.3",
"picomatch": "^2.3.1"
},
"engines": {
"node": ">=8.6"
}
},
"node_modules/mz": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
"integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
"dependencies": {
"any-promise": "^1.0.0",
"object-assign": "^4.0.1",
"thenify-all": "^1.0.0"
}
},
"node_modules/nanoid": {
"version": "3.3.11",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"bin": {
"nanoid": "bin/nanoid.cjs"
},
"engines": {
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
"node_modules/normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/object-hash": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",
"integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",
"engines": {
"node": ">= 6"
}
},
"node_modules/path-parse": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
},
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="
},
"node_modules/picomatch": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
"integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
"engines": {
"node": ">=8.6"
},
"funding": {
"url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/pify": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
"integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/pirates": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
"integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
"engines": {
"node": ">= 6"
}
},
"node_modules/postcss": {
"version": "8.5.8",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
"integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/postcss"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
"nanoid": "^3.3.11",
"picocolors": "^1.1.1",
"source-map-js": "^1.2.1"
},
"engines": {
"node": "^10 || ^12 || >=14"
}
},
"node_modules/postcss-import": {
"version": "15.1.0",
"resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
"integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
"dependencies": {
"postcss-value-parser": "^4.0.0",
"read-cache": "^1.0.0",
"resolve": "^1.1.7"
},
"engines": {
"node": ">=14.0.0"
},
"peerDependencies": {
"postcss": "^8.0.0"
}
},
"node_modules/postcss-js": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",
"integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
"camelcase-css": "^2.0.1"
},
"engines": {
"node": "^12 || ^14 || >= 16"
},
"peerDependencies": {
"postcss": "^8.4.21"
}
},
"node_modules/postcss-load-config": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",
"integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
"lilconfig": "^3.1.1"
},
"engines": {
"node": ">= 18"
},
"peerDependencies": {
"jiti": ">=1.21.0",
"postcss": ">=8.0.9",
"tsx": "^4.8.1",
"yaml": "^2.4.2"
},
"peerDependenciesMeta": {
"jiti": {
"optional": true
},
"postcss": {
"optional": true
},
"tsx": {
"optional": true
},
"yaml": {
"optional": true
}
}
},
"node_modules/postcss-nested": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",
"integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
"postcss-selector-parser": "^6.1.1"
},
"engines": {
"node": ">=12.0"
},
"peerDependencies": {
"postcss": "^8.2.14"
}
},
"node_modules/postcss-selector-parser": {
"version": "6.1.2",
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",
"integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",
"dependencies": {
"cssesc": "^3.0.0",
"util-deprecate": "^1.0.2"
},
"engines": {
"node": ">=4"
}
},
"node_modules/postcss-value-parser": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"node_modules/queue-microtask": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
"integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
},
"node_modules/read-cache": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
"integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",
"dependencies": {
"pify": "^2.3.0"
}
},
"node_modules/readdirp": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"dependencies": {
"picomatch": "^2.2.1"
},
"engines": {
"node": ">=8.10.0"
}
},
"node_modules/resolve": {
"version": "1.22.11",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",
"integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",
"dependencies": {
"is-core-module": "^2.16.1",
"path-parse": "^1.0.7",
"supports-preserve-symlinks-flag": "^1.0.0"
},
"bin": {
"resolve": "bin/resolve"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/reusify": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
"integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
"engines": {
"iojs": ">=1.0.0",
"node": ">=0.10.0"
}
},
"node_modules/run-parallel": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
"integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"dependencies": {
"queue-microtask": "^1.2.2"
}
},
"node_modules/source-map-js": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/sucrase": {
"version": "3.35.1",
"resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",
"integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.2",
"commander": "^4.0.0",
"lines-and-columns": "^1.1.6",
"mz": "^2.7.0",
"pirates": "^4.0.1",
"tinyglobby": "^0.2.11",
"ts-interface-checker": "^0.1.9"
},
"bin": {
"sucrase": "bin/sucrase",
"sucrase-node": "bin/sucrase-node"
},
"engines": {
"node": ">=16 || 14 >=14.17"
}
},
"node_modules/supports-preserve-symlinks-flag": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/tailwindcss": {
"version": "3.4.19",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",
"integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",
"dev": true,
"dependencies": {
"@alloc/quick-lru": "^5.2.0",
"arg": "^5.0.2",
"chokidar": "^3.6.0",
"didyoumean": "^1.2.2",
"dlv": "^1.1.3",
"fast-glob": "^3.3.2",
"glob-parent": "^6.0.2",
"is-glob": "^4.0.3",
"jiti": "^1.21.7",
"lilconfig": "^3.1.3",
"micromatch": "^4.0.8",
"normalize-path": "^3.0.0",
"object-hash": "^3.0.0",
"picocolors": "^1.1.1",
"postcss": "^8.4.47",
"postcss-import": "^15.1.0",
"postcss-js": "^4.0.1",
"postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",
"postcss-nested": "^6.2.0",
"postcss-selector-parser": "^6.1.2",
"resolve": "^1.22.8",
"sucrase": "^3.35.0"
},
"bin": {
"tailwind": "lib/cli.js",
"tailwindcss": "lib/cli.js"
},
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/thenify": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
"integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
"dependencies": {
"any-promise": "^1.0.0"
}
},
"node_modules/thenify-all": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
"integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
"dependencies": {
"thenify": ">= 3.1.0 < 4"
},
"engines": {
"node": ">=0.8"
}
},
"node_modules/tinyglobby": {
"version": "0.2.15",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
"dependencies": {
"fdir": "^6.5.0",
"picomatch": "^4.0.3"
},
"engines": {
"node": ">=12.0.0"
},
"funding": {
"url": "https://github.com/sponsors/SuperchupuDev"
}
},
"node_modules/tinyglobby/node_modules/picomatch": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"dependencies": {
"is-number": "^7.0.0"
},
"engines": {
"node": ">=8.0"
}
},
"node_modules/ts-interface-checker": {
"version": "0.1.13",
"resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
"integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA=="
},
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
}
}
}
@@ -0,0 +1,79 @@
{
"name": "alcastromol-tailwind-build",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "Tailwind",
"tailwindDevWatch": "npx tailwindcss -i ./css-dev/input.css -o ./css-production/styles-tailwind-dev.css --watch",
"tailwindFinalwatch": "npx tailwindcss -i ./css-dev/input.css -o ./css-production/styles-tailwind.css --minify --watch",
"tailwindcssProd": "tailwindcss -i ./css-dev/input.css -o css/styles-tailwind.css"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"tailwindcss": "^3.4.19"
},
"dependencies": {
"any-promise": "^1.3.0",
"arg": "^5.0.2",
"binary-extensions": "^2.3.0",
"braces": "^3.0.3",
"camelcase-css": "^2.0.1",
"anymatch": "^3.1.3",
"chokidar": "^3.6.0",
"commander": "^4.1.1",
"cssesc": "^3.0.0",
"didyoumean": "^1.2.2",
"dlv": "^1.1.3",
"fast-glob": "^3.3.3",
"function-bind": "^1.1.2",
"glob-parent": "^6.0.2",
"hasown": "^2.0.2",
"fill-range": "^7.1.1",
"fastq": "^1.20.1",
"is-binary-path": "^2.1.0",
"is-core-module": "^2.16.1",
"is-extglob": "^2.1.1",
"is-number": "^7.0.0",
"is-glob": "^4.0.3",
"jiti": "^1.21.7",
"lilconfig": "^3.1.3",
"merge2": "^1.4.1",
"lines-and-columns": "^1.2.4",
"micromatch": "^4.0.8",
"nanoid": "^3.3.11",
"mz": "^2.7.0",
"normalize-path": "^3.0.0",
"object-assign": "^4.1.1",
"object-hash": "^3.0.0",
"path-parse": "^1.0.7",
"picocolors": "^1.1.1",
"picomatch": "^2.3.1",
"pirates": "^4.0.7",
"pify": "^2.3.0",
"postcss": "^8.5.8",
"postcss-import": "^15.1.0",
"postcss-load-config": "^6.0.1",
"postcss-nested": "^6.2.0",
"postcss-value-parser": "^4.2.0",
"queue-microtask": "^1.2.3",
"read-cache": "^1.0.0",
"postcss-js": "^4.1.0",
"postcss-selector-parser": "^6.1.2",
"readdirp": "^3.6.0",
"resolve": "^1.22.11",
"reusify": "^1.1.0",
"source-map-js": "^1.2.1",
"thenify": "^3.3.1",
"run-parallel": "^1.2.0",
"sucrase": "^3.35.1",
"tinyglobby": "^0.2.15",
"to-regex-range": "^5.0.1",
"thenify-all": "^1.6.0",
"util-deprecate": "^1.0.2",
"ts-interface-checker": "^0.1.13",
"supports-preserve-symlinks-flag": "^1.0.0"
},
"description": ""
}
@@ -0,0 +1,66 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
"content": [
"./cache/*.{php,html,js}",
"C:/laragon/www/tvacapulco/wp-content/themes/tvacapulco/**/*.{php,html,js}"
],
"theme": {
"screens": {
"xxxxl": {
"max": "1701px"
},
"xxxl": {
"max": "1550px"
},
"xxl": {
"max": "1439px"
},
"xl": {
"max": "1119px"
},
"lg": {
"max": "1024px"
},
"md": {
"max": "767px"
},
"sm": {
"max": "479px"
},
"ssm": {
"max": "380px"
}
},
"container": {
"center": true,
"padding": "1rem",
"screens": {
"DEFAULT": "1702px"
}
},
"extend": {
"colors": {
"color": {
"1": "#004983",
"2": "#333333",
"3": "#B0B0B0"
},
"tva": {
"red": "#E30613",
"burgundy": "#B8405C",
"ink": "#1A1A1A",
"muted": "#6B6B6B",
"line": "#E6E6E6",
"soft": "#F5F5F5"
}
},
"fontFamily": {
"sans": [
"Inter",
"sans-serif"
]
}
}
},
"plugins": []
};
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,352 @@
<?php
if (!defined('ABSPATH')) {
exit; // Seguridad: evita acceso directo
}
/*======================================================
= Requiriendo plugins a instalar =
======================================================*/
add_action( 'tgmpa_register', 'my_theme_register_required_plugins' );
/**
* Register the required plugins for this theme.
*
* <snip />
*
* This function is hooked into tgmpa_init, which is fired within the
* TGM_Plugin_Activation class constructor.
*/
function my_theme_register_required_plugins() {
/*
* Array of plugin arrays. Required keys are name and slug.
* If the source is NOT from the .org repo, then source is also required.
*/
$plugins = array(
// This is an example of how to include a plugin from the WordPress Plugin Repository.
array(
'name' => 'Cookie Notice & Compliance for GDPR / CCPA',
'slug' => 'cookie-notice',
'required' => false,
),
array(
'name' => 'Advanced Custom Fields',
'slug' => 'advanced-custom-fields',
'required' => false,
),
array(
'name' => 'Ad Inserter – Ad Manager & AdSense Ads',
'slug' => 'ad-inserter',
'required' => false,
),
array(
'name' => 'User Activity Log',
'slug' => 'user-activity-log',
'required' => false,
),
array(
'name' => 'WP Mail SMTP by WPForms – The Most Popular SMTP and Registro de correo electrónico Plugin',
'slug' => 'wp-mail-smtp',
'required' => false,
),
array(
'name' => 'FAQ Schema For Pages And Posts',
'slug' => 'faq-schema-for-pages-and-posts',
'required' => false,
),
array(
'name' => 'Duplicate Page',
'slug' => 'duplicate-page',
'required' => false,
),
array(
'name' => 'Table of Contents Plus',
'slug' => 'table-of-contents-plus',
'required' => false,
),
array(
'name' => 'WPS Hide Login',
'slug' => 'wps-hide-login',
'required' => false,
),
array(
'name' => 'Rank Math SEO',
'slug' => 'seo-by-rank-math',
'required' => true,
),
array(
'name' => 'LoginPress | Custom Login Page Customizer',
'slug' => 'loginpress',
'required' => true,
),
array(
'name' => 'En construcción',
'slug' => 'under-construction-page',
'required' => false,
),
array(
'name' => 'AGCA - Custom Dashboard & Login Page',
'slug' => 'ag-custom-admin',
'required' => false,
),
array(
'name' => 'Bulk Page Generator',
'slug' => 'bulk-page-generator',
'required' => false,
),
array(
'name' => 'Custom Login Page Customizer',
'slug' => 'login-customizer',
'required' => false,
),
array(
'name' => 'Custom Post Type UI',
'slug' => 'custom-post-type-ui',
'required' => true,
),
array(
'name' => 'Disable Media Pages',
'slug' => 'disable-media-pages',
'required' => true,
),
array(
'name' => 'Disable Post Revision',
'slug' => 'disable-post-revision',
'required' => true,
),
array(
'name' => 'Duplicate Page',
'slug' => 'duplicate-page',
'required' => true,
),
array(
'name' => 'Error Log Monitor',
'slug' => 'error-log-monitor',
'required' => false,
),
array(
'name' => 'Optimize Database after Deleting Revisions',
'slug' => 'rvg-optimize-database',
'required' => false,
),
array(
'name' => 'CompressX - AVIF & WebP Converter',
'slug' => 'compressx',
'required' => true,
),
array(
'name' => 'Query Monitor',
'slug' => 'query-monitor',
'required' => false,
),
array(
'name' => 'Yabe Webfont',
'slug' => 'yabe-webfont',
'required' => true,
),
array(
'name' => 'Permalink Manager Lite',
'slug' => 'permalink-manager',
'required' => false,
),
array(
'name' => 'WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager',
'slug' => 'insert-headers-and-footers',
'required' => true,
),
array(
'name' => 'Remove CPT base',
'slug' => 'remove-cpt-base',
'required' => false,
),
array(
'name' => 'All-In-One Security (AIOS) – Security and Firewall',
'slug' => 'all-in-one-wp-security-and-firewall',
'required' => true,
),
array(
'name' => 'Polylang',
'slug' => 'polylang',
'required' => false,
),
array(
'name' => 'LiteSpeed Cache',
'slug' => 'litespeed-cache',
'required' => true,
),
array(
'name' => 'Post Type Switcher',
'slug' => 'post-type-switcher',
'required' => false,
),
array(
'name' => 'All-in-One WP Migration and Backup',
'slug' => 'all-in-one-wp-migration',
'required' => true,
),
array(
'name' => 'Media Library Helper Bulk alt',
'slug' => 'media-library-helper',
'required' => false,
),
array(
'name' => 'Modern Image Formats',
'slug' => 'webp-uploads',
'required' => false,
),
array(
'name' => 'CompressX',
'slug' => 'compressx',
'required' => false,
),
array(
'name' => 'Descargar plugin',
'slug' => 'download-plugin',
'required' => false,
),
array(
'name' => 'WP Multilang',
'slug' => 'wp-multilang',
'required' => false,
),
array(
'name' => 'Woocommerce',
'slug' => 'woocommerce',
'required' => false,
),
array(
'name' => 'Post Export Import with Media',
'slug' => 'post-export-import-with-media',
'required' => false,
),
array(
'name' => 'PiWeb Product Enquiry or product catalog for WooCommerce',
'slug' => 'enquiry-quotation-for-woocommerce',
'required' => false,
),
array(
'name' => 'Swiper JS',
'slug' => 'alcastromol-swiperjs',
'source' => 'https://alcastromol.com/repositorio/plugins/alcastromol-swiperjs.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'wp-rocket-3.15.3',
'slug' => 'wp-rocket',
'source' => 'https://alcastromol.com/repositorio/plugins/wp-rocket-3.15.3.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Polylang Pro',
'slug' => 'polylang-pro',
'source' => 'https://alcastromol.com/repositorio/plugins/polylang-pro.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Polylang for WooCommerce',
'slug' => 'polylang-wc',
'source' => 'https://alcastromol.com/repositorio/plugins/polylang-wc.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
// <snip />
);
if (function_exists('alcastromol_is_oxygen_enabled') && alcastromol_is_oxygen_enabled()) {
$plugins = array_merge($plugins, array(
array(
'name' => 'Oxygen 6 con Parche para Tailwind 3',
'slug' => 'oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/oxygen-6-con-parche.zip',
'required' => true,
'version' => '1.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance Form to Oxygen 6',
'slug' => 'breakdance-forms-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-forms-for-oxygen.zip',
'required' => true,
'version' => '0.3.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance Elements for Oxygen',
'slug' => 'breakdance-elements-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-elements-for-oxygen.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance WooCommerce for Oxygen',
'slug' => 'breakdance-woocommerce-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-woocommerce-for-oxygen.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
));
}
/*
* Array of configuration settings. Amend each line as needed.
*
* TGMPA will start providing localized text strings soon. If you already have translations of our standard
* strings available, please help us make TGMPA even better by giving us access to these translations or by
* sending in a pull-request with .po file(s) with the translations.
*
* Only uncomment the strings in the config array if you want to customize the strings.
*/
$config = array(
'id' => 'tgmpa', // Unique ID for hashing notices for multiple instances of TGMPA.
'default_path' => '', // Default absolute path to bundled plugins.
'menu' => 'tgmpa-install-plugins', // Menu slug.
'parent_slug' => 'plugins.php', // Parent menu slug.
'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
'has_notices' => false, // Show admin notices or not.
'dismissable' => true, // If false, a user cannot dismiss the nag message.
'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.
'is_automatic' => false, // Automatically activate plugins after installation or not.
'message' => '', // Message to output right before the plugins table.
'position' => 99,
/*
'strings' => array(
'page_title' => __( 'Install Required Plugins', 'theme-slug' ),
'menu_title' => __( 'Install Plugins', 'theme-slug' ),
// <snip>...</snip>
'nag_type' => 'updated', // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'.
)
*/
);
tgmpa( $plugins, $config );
}
+2
View File
@@ -0,0 +1,2 @@
<?php
// Silence is golden.