Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
(function ($) {
$(function () {
var $upload = $("#thrive_upload"),
$remove = $("#thrive_remove"),
wp_file_frame = null,
$input = $("#thrive_attachment_name"),
$input_id = $("#thrive_attachment_id");
$upload.click(function (event) {
event.preventDefault();
if (wp_file_frame) {
wp_file_frame.open();
return false;
}
wp_file_frame = wp.media.frames.file_frame = wp.media({
title: 'Upload .zip fonts files',
button: {
text: 'Use file'
},
multiple: false
});
wp_file_frame.on("select", function () {
var attachment = wp_file_frame.state().get('selection').first().toJSON();
$input.val(attachment.filename);
$input_id.val(attachment.id);
});
wp_file_frame.open();
});
$remove.click(function () {
$input.val('');
$input_id.val(-1);
});
});
})(jQuery);