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,54 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<?php $symbol_id = get_the_ID(); ?>
<?php $symbol_title = get_the_title(); ?>
<?php $content = TCB_Symbol_Template::render_content( [], true ); ?>
<?php $symbol_vars = TCB_Symbol_Template::get_edit_symbol_vars(); ?>
<?php $type = ucfirst( $symbol_vars['type'] ); ?>
<?php $data_attr = TCB_Symbol_Template::data_attr( $symbol_id ); ?>
<?php
$shortcode_class = '';
if ( $symbol_vars['css_class'] === 'thrv_header' ) {
$symbol_vars['css_class'] .= ' tve-default-state';
$shortcode_class = 'tve-default-state';
}
?>
<?php TCB_Symbol_Template::body_open(); ?>
<div class="tve-leads-conversion-object">
<div id="tve-leads-editor-replace">
<div class="tve-symbol-container">
<div class="tve_flt" id="tve_flt">
<?php if ( isset( $_GET['tve'] ) ) { ?>
<div class="symbol-extra-info">
<p class="sym-l"><?php echo esc_html__( "Currently Editing {$type} \"{$symbol_title}\"" ); ?></p>
<p class="sym-r"><?php echo sprintf( esc_html__( "Note that this {$symbol_vars['type']} doesn't have any width settings. %sIt will expand to the full width of the content area of your theme." ), '<br>' ); ?></p>
</div>
<?php } ?>
<div id="tve_editor">
<div class="tve_editable thrv_symbol <?php echo esc_attr( $symbol_vars['css_class'] ); ?> thrv_symbol_<?php echo esc_attr( $symbol_id ) ?>" data-id="<?php echo esc_attr( $symbol_id ) ?>">
<div class="thrive-symbol-shortcode <?php echo esc_attr( $shortcode_class ); ?>"<?php echo $data_attr; ?>> <?php // phpcs:ignore ?>
<?php if ( empty( $content ) ) { ?>
<div class="symbol-section-out"></div>
<div class="symbol-section-in"></div>
<?php } else { ?>
<?php echo $content; //phpcs:ignore ?>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php TCB_Symbol_Template::body_close(); ?>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
</div>
<?php do_action( 'get_footer' ); ?>
<?php wp_footer(); ?>
</body>
</html>

View File

@@ -0,0 +1,49 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<?php $is_gutenberg_preview = isset( $_GET['tve_block_preview'] ); ?>
<!doctype html>
<html <?php language_attributes(); ?> style="overflow: unset;">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<title>
<?php wp_title( '' ); ?><?php echo wp_title( '', false ) ? ' :' : ''; ?><?php bloginfo( 'name' ); ?>
</title>
<meta name="description" content="<?php bloginfo( 'description' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> style="overflow: unset;">
<?php if ( $is_gutenberg_preview ) { ?>
<style type="text/css">#wpadminbar, .symbol-extra-info {
display: none !important;
}
html {
margin: 0 !important;
}
</style>
<script>
document.addEventListener( "DOMContentLoaded", () => {
if ( window.TVE_Dash ) {
TVE_Dash.forceImageLoad( document );
}
} );
</script>
<?php } ?>
<div class="sym-new-container">

View File

@@ -0,0 +1,56 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<?php $symbol_id = get_the_ID(); ?>
<?php $symbol_title = get_the_title(); ?>
<?php
$is_gutenberg_preview = isset( $_GET['tve_block_preview'] );
$content = TCB_Symbol_Template::render_content( [], true );
/**
* on gutenberg preview display a placeholder
*/
if ( $is_gutenberg_preview ) {
/**
* since its the frontend page check for empty content without default styles
*/
$symbol_content = TCB_Symbol_Template::content( $symbol_id );
if ( empty( $symbol_content ) ) {
$content = tcb_template( 'elements/no-symbol-content.php', [], true );
}
}
if ( empty( $content ) ) {
$content = tcb_template( 'elements/block.php', [], true );
}
?>
<?php $symbol_vars = TCB_Symbol_Template::get_edit_symbol_vars(); ?>
<?php $type = ucfirst( $symbol_vars['type'] ); ?>
<?php $type = preg_replace( '/-/', ' ', $type ); ?>
<?php $data_attr = TCB_Symbol_Template::data_attr( $symbol_id ); ?>
<?php TCB_Symbol_Template::body_open(); ?>
<div class="tve-leads-conversion-object">
<div id="tve-leads-editor-replace">
<div class="tve-symbol-container">
<div class="tve_flt" id="tve_flt">
<div class="symbol-extra-info">
<p class="sym-l"><?php echo esc_html__( "Currently Editing {$type} \"{$symbol_title}\"" ); ?></p>
<p class="sym-r"><?php echo sprintf( esc_html__( "Note that this {$type} doesn't have any width settings. %sIt will expand to the full width of the content area of your theme." ), '<br>' ); ?></p>
</div>
<div id="tve_editor" class="tve_editable thrv_symbol thrv_symbol_empty <?php echo esc_attr( $symbol_vars['css_class'] ); ?> thrv_symbol_<?php echo esc_attr( $symbol_id ); ?>" data-content="<?php echo esc_html__( "Add {$type} Content Here" ); ?>"<?php echo $data_attr; ?>><?php echo $content; ?></div> <?php // phpcs:ignore ?>
</div>
</div>
</div>
</div>
<?php TCB_Symbol_Template::body_close(); ?>

View File

@@ -0,0 +1,3 @@
<div class="symbols-dashboard-container">
<?php echo esc_html__( 'Symbols', 'thrive-cb' ) ?>
</div>