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,108 @@
<?php /* Display a layout for editing Thrive Lightbox posts */
global $is_thrive_theme;
$options = [];
if ( $is_thrive_theme ) {
$options = thrive_get_options_for_post( get_the_ID() );
}
do_action( 'get_header' );
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?> style="margin-top: 0 !important;height:100%">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?> style="margin-top: 0 !important;height:100%">
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?> style="margin-top: 0 !important;height:100%">
<!--<![endif]-->
<?php
/** @var TCB_Lightbox $lightbox */
$lightbox = $data['lightbox'];
$config = $lightbox->globals();
$is_for_landing_page = $lightbox->meta( 'tve_lp_lightbox' );
?>
<head>
<?php if ( $is_thrive_theme ) : ?>
<?php tha_head_top(); ?>
<?php endif ?>
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
<meta name="robots" content="noindex, nofollow"/>
<title>
<?php /* Genesis wraps the meta title into another <title> tag using this hook: genesis_doctitle_wrap. the following line makes sure this isn't called */ ?>
<?php /* What if they change the priority at which this hook is registered ? :D */ ?>
<?php remove_filter( 'wp_title', 'genesis_doctitle_wrap', 20 ); ?>
<?php wp_title( '|', true, 'right' ); ?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<?php
if ( $is_for_landing_page ) {
$landing_page_config = tve_get_landing_page_config( $is_for_landing_page );
if ( ! empty( $landing_page_config['fonts'] ) ) {
foreach ( $landing_page_config['fonts'] as $font ) {
echo "<link href='" . esc_url( $font ) . "' rel='stylesheet' type='text/css'/>";
}
}
}
wp_head();
if ( $is_thrive_theme ) {
if ( ! empty( $options['favicon'] ) ) {
echo '<link rel="shortcut icon" href="' . esc_url( $options['favicon'] ) . '"/>';
}
if ( ! empty( $options['custom_css'] ) ) {
echo '<style type="text/css">' . $options['custom_css'] . '</style>';
}
tha_head_bottom();
}
?>
</head>
<body <?php body_class( 'tve-l-open tve-o-hidden tve-lightbox-page' ); ?>>
<div class="bSe<?php echo $is_for_landing_page ? ' wrp cnt' : ''; ?>" style="display: none">
<div class="awr"></div>
</div>
<?php /** X-Theme conflict - X-Theme reads the top offset of this element without checking if it exists - and it causes the editor not to load */ ?>
<div class="x-navbar-fixed-top-active">
<div class="x-navbar-wrap"></div>
</div>
<div class="tve_p_lb_overlay" style="<?php echo esc_attr( $config['overlay']['css'] ); ?>"<?php echo $config['overlay']['custom_color']; ?>></div> <?php // phpcs:ignore ?>
<div class="tve_post_lightbox wrp cnt bSe">
<article>
<div class="tve_p_lb_background tve-scroll">
<div class="tcb-lp-lb tve_editable tve_p_lb_content<?php echo esc_attr( $config['content']['class'] ); ?>"
style="<?php echo esc_attr( $config['content']['css'] ); ?>"<?php echo $config['content']['custom_color']; //phpcs:ignore ?>>
<div class="tve_p_lb_inner" id="tve-p-scroller" style="<?php echo $config['inner']['css']; ?>">
<?php
while ( have_posts() ) {
the_post();
the_content();
}
?>
</div>
<a href="javascript:void(0)"
class="tve_p_lb_close<?php echo esc_attr( $config['close']['class'] ); ?>"
style="<?php echo esc_attr( $config['close']['css'] ); ?>"<?php echo $config['close']['custom_color']; // phpcs:ignore ?>
title="<?php echo esc_attr__( 'Close', 'thrive-cb' ); ?>">x</a>
</div>
<div class="tve-spacer"></div>
</div>
</article>
</div>
<?php do_action( 'get_footer' ); ?>
<?php wp_footer(); ?>
<?php if ( ! is_editor_page() ) : ?>
<script type="text/javascript">
jQuery( document ).ready( function () {
/* trigger lightbox opening */
jQuery( '.tve_p_lb_content' ).trigger( 'tve.lightbox-open' );
} );
</script>
<?php endif ?>
</body>
</html>

View File

@@ -0,0 +1,96 @@
<?php
/**
* The template for displaying the main editor page
*
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?><!DOCTYPE html>
<html class="no-js" style="height: 100%;overflow:hidden">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<title><?php echo esc_html( get_the_title() . ' | ' . apply_filters( 'tcb_editor_title', __( 'Thrive Architect', 'thrive-cb' ) ) ); ?></title>
<?php wp_head(); ?>
<?php do_action( 'tcb_hook_editor_head' ); ?>
<?php tve_load_global_variables(); ?>
<?php echo tve_get_shared_styles( '', '300' ); ?>
<script>
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>';
</script>
</head>
<body class="tcb-editor-main preview-desktop <?php echo get_post_type() ?>" style="padding: 0;margin: 0;height: 100%;overflow:hidden;">
<div class="tcb-wrap-all" id="tve-main-frame">
<div id="tve-page-loader" class="tve-open">
<?php tcb_template( 'loading-spinner.php' ); ?>
</div>
<div id="sidebar-top">
<div id="tcb-sidebar-top-left">
<?php do_action( 'tve_top_buttons' ); ?>
<?php if ( tcb_editor()->has_post_breadcrumb_option() ) : ?>
<?php $post_breadcrumb_data = tcb_editor()->post_breadcrumb_data(); ?>
<span id="tcb-post-option-breadcrumb" class="tcb-left pr-5 click tcb-active-element-breadcrumbs-item" data-index="" data-selector="<?php echo esc_attr( $post_breadcrumb_data['selector'] ); ?>" data-fn="postOptionsClicked">
<span class="tcb-breadcrumb-name"><?php echo esc_html( $post_breadcrumb_data['label'] ); ?></span>
<span class="tcb-icon"><?php tcb_icon( 'cog-regular' ); ?><?php tcb_icon( 'cog-solid' ); ?></span>
<span class="cont"><i></i></span>
</span>
<?php endif; ?>
<div id="tcb-top-nav-list" class="<?php echo in_array( get_post_type(), [ 'post', 'page' ] ) ? 'tve-has-post-options' : '' ?>"></div>
</div>
<!-- Here buttons/images/text will be added dynamically -->
<div id="tcb-sidebar-top-right">
<div class="button-group">
</div>
</div>
</div>
<div class="tcb-relative">
<div id="tcb-right-drop-panels"></div>
</div>
<div class="fr-center-toolbar">
<div id="main-fr-toolbar" style="display: none">
<div class="fr-drag"><span></span><span class="r"></span></div>
</div>
</div>
<?php tcb_editor()->render_menu(); ?>
<?php do_action( 'tcb_editor_iframe_before' ); ?>
<div id="tcb-frame-container">
<?php $id = get_the_ID() === absint( $_GET['post'] ) ? get_the_ID() : absint( $_GET['post'] ); //MMM compatibility ?>
<iframe tabindex="-1" id="tve-editor-frame" data-src="<?php echo esc_attr( tcb_get_editor_url( $id, false ) ); ?>"></iframe>
<div class="top canvas-border"></div>
<div class="right canvas-border"></div>
<div class="bottom canvas-border"></div>
<div class="left canvas-border"></div>
</div>
<?php do_action( 'tcb_editor_iframe_after' ); ?>
<?php tcb_template( 'sidebar-bottom' ); ?>
<?php tcb_template( 'sidebar-right' ); ?>
<div id="main-icons">
<?php include TVE_TCB_ROOT_PATH . 'editor/css/fonts/control-panel.svg'; ?>
<svg id="tve-icon-picker" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<defs></defs>
</svg>
</div>
<div id="inline-drop-panels"></div>
<div class="fr-center-toolbar bottom" id="edit-mode-tool">
<div id="tcb-edit-mode-button"></div>
</div>
</div>
<?php wp_footer(); ?>
<?php do_action( 'admin_print_footer_scripts' ); ?>
<?php do_action( 'tcb_hook_editor_footer' ); ?>
<div style="display: none" id="tve-static-elements">
<?php echo tcb_editor()->elements->layout(); //phpcs:ignore ?>
</div>
</body>
</html>