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,37 @@
<?php
global $design;
$key = '';
$type = '';
if ( ! empty( $design[ TVE_Ult_Const::FIELD_TEMPLATE ] ) ) {
list( $type, $key ) = TU_Template_Manager::tpl_type_key( $design[ TVE_Ult_Const::FIELD_TEMPLATE ] );
}
$key = preg_replace( '#_v(.+)$#', '', $key );
$is_header_bar = $design['post_type'] == TVE_Ult_Const::DESIGN_TYPE_HEADER_BAR;
$design_body_class = 'tve-ult-body-ribbon' . ( ! $is_header_bar ? '-footer' : '' );
$css = $is_header_bar ? 'bottom: 5%;' : 'top: 5%;';
include TVE_Ult_Const::plugin_path() . 'tcb-bridge/editor/head.php'; ?>
<div id="tve-ult-editor-replace">
<div class="tvu-triggered tve-ult-bar<?php if ( ! $is_header_bar ) {
echo ' tvu-footer';
} else echo ' tvu-header' ?>">
<div class="tl-style" id="tvu_<?php echo $key ?>" data-state="<?php echo $design['id'] ?>">
<?php echo tve_ult_editor_custom_content( $design ) ?>
</div>
<?php //echo apply_filters( 'tve_leads_variation_append_states', '', $design ); ?>
</div>
<div class="tve-ult-template-description"
style="opacity: .6; text-align: center; z-index: -1; position: absolute; left: 50%; transform: translateX(-50%);width: fit-content; <?php echo $css; ?>">
<?php if ( $is_header_bar ) : ?>
<h4><?php echo __( 'This is a Design type called "Header Bar". It is displayed on the top of the page and it\'s usually a long horizontal bar', 'thrive-ult') ?></h4>
<h4><?php echo __( 'The content of the page will be scrolled down with the same amount as the ribbon\'s height', 'thrive-ult') ?></h4>
<h4><?php echo __( 'The ribbon will always stay on top, even when the user scrolls the page', 'thrive-ult') ?></h4>
<?php else : ?>
<h4><?php echo __( 'This is a Design type called "Footer Bar". It is displayed on the bottom of the page and it\'s usually a long horizontal bar', 'thrive-ult') ?></h4>
<?php endif ?>
</div>
</div>
<?php include TVE_Ult_Const::plugin_path( 'tcb-bridge/editor/footer.php' ); ?>

View File

@@ -0,0 +1,42 @@
<?php
global $design;
$key = '';
$type = '';
if ( ! empty( $design[ TVE_Ult_Const::FIELD_TEMPLATE ] ) ) {
list( $type, $key ) = TU_Template_Manager::tpl_type_key( $design[ TVE_Ult_Const::FIELD_TEMPLATE ] );
}
$key = preg_replace( '#_v(.+)$#', '', $key );
$design_body_class = 'tve-ult-body-shortcode';
$is_gutenberg_preview = isset( $_GET['tve_block_preview'] );
include TVE_Ult_Const::plugin_path() . 'tcb-bridge/editor/head.php'; ?>
<?php if ( $is_gutenberg_preview ) { ?>
<style type="text/css">#wpadminbar, .tve-ult-template-description {
display: none !important;
}
html {
margin: 0 !important;
}
</style>
<script>
document.addEventListener( "DOMContentLoaded", () => {
if ( window.TVE_Dash ) {
TVE_Dash.forceImageLoad( document );
}
} );
</script>
<?php } ?>
<div id="tve-ult-editor-replace">
<div class="tvu-triggered tve-ult-shortcode">
<div class="tl-style" id="tvu_<?php echo $key ?>" data-state="<?php echo $design['id'] ?>">
<?php echo tve_ult_editor_custom_content( $design ) ?>
</div>
</div>
<div class="tve-ult-template-description"
style="opacity: .6; padding-top: 240px; text-align: center; position: relative; z-index: -1;">
<h4><?php echo __( 'This is a Design type called "Shortcode". It is displayed on posts that have its code in the content.', 'thrive-ult') ?></h4>
</div>
</div>
<?php include TVE_Ult_Const::plugin_path( 'tcb-bridge/editor/footer.php' ); ?>

View File

@@ -0,0 +1,22 @@
<?php
global $design;
$key = '';
if ( ! empty( $design[ TVE_Ult_Const::FIELD_TEMPLATE ] ) ) {
list( $type, $key ) = TU_Template_Manager::tpl_type_key( $design[ TVE_Ult_Const::FIELD_TEMPLATE ] );
}
$key = preg_replace( '#_v(.+)$#', '', $key );
$design_body_class = 'tve-ult-body-widget';
include TVE_Ult_Const::plugin_path() . 'tcb-bridge/editor/head.php';
?>
<div id="tve-ult-editor-replace">
<div class="tve-ult-widget tvu-triggered">
<div class="tl-style" id="tvu_<?php echo empty( $key ) ? '' : $key ?>" data-state="<?php echo $design['id'] ?>">
<?php echo tve_ult_editor_custom_content( $design ) ?>
</div>
</div>
</div>
<?php include TVE_Ult_Const::plugin_path() . 'tcb-bridge/editor/footer.php'; ?>

View File

@@ -0,0 +1,18 @@
<?php
/*
* This file has to be included at the end of all editor layouts
*/
if ( ! empty( $is_ajax_render ) ) {
/**
* If AJAX-rendering the contents, we need to only output the html part,
* and do not include any of the custom css / fonts etc needed - used in the state manager
*/
return;
}
?>
<div class="fr-dropdown-holder"></div>
<?php do_action( 'get_footer' ) ?>
<?php wp_footer() ?>
</body>
</html>

View File

@@ -0,0 +1,46 @@
<?php
/*
* This file has to be included at the beginning of all editor layouts
*/
if ( ! empty( $is_ajax_render ) ) {
/**
* If AJAX-rendering the contents, we need to only output the html part,
* and do not include any of the custom css / fonts etc needed - used in the state manager
*/
return;
}
?>
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<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( '' ); ?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<?php wp_head(); ?>
<?php echo tve_ult_editor_output_custom_css( $design, false ); ?>
</head>
<?php
$body_class = ! empty( $_COOKIE['tve_ult_state_collapse'] ) ? 'tl-state-collapse ' : '';
$body_class .= ' ' . $design_body_class;
if ( tve_ult_is_editor_page() ) {
$body_class .= ' tve_editor_page';
}
?>
<body <?php body_class( $body_class ) ?>>
<div class="cnt bSe"></div>

View File

@@ -0,0 +1,60 @@
<?php
$is_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;
if ( ! $is_ajax && ! tve_ult_is_editor_page() ) {
return;
}
global $design; // this is the main variation (variation parent)
if ( ! isset( $current_design ) ) {
$current_design = $design; // this is the variation being edited now
}
/**
* Shows a bar at the bottom of the page having all of the states defined for this form
*/
$states = tve_ult_get_related_states( $design );
?>
<?php if ( empty( $do_not_wrap ) ) : ?>
<div class="tl-form-states-container" id="tu-form-states">
<?php endif ?>
<div class="design-states">
<span class="title"><?php echo __( 'Current States', 'thrive-ult') ?></span>
<button data-fn="collapse" title="<?php echo __( 'Close', 'thrive-ult') ?>" class="click state-close btn-icon">
<?php tcb_icon( 'close2' ) ?>
</button>
<ul class="state-steps">
<?php foreach ( $states as $index => $s ) : ?>
<li data-fn="select" data-id="<?php echo $s['id'] ?>" class="click<?php echo $s['id'] == $current_design['id'] ? ' state-active' : '' ?>">
<button data-fn="duplicate"
data-id="<?php echo $s['id'] ?>"
title="<?php echo __( 'Duplicate state', 'thrive-ult') ?>"
class="state-clone click btn-icon"><?php tcb_icon( 'clone' ) ?></button>
<?php if ( $index > 0 ) : ?>
<button data-fn="remove"
data-id="<?php echo $s['id'] ?>"
title="<?php echo __( 'Delete state', 'thrive-ult') ?>"
class="state-delete btn-icon click"><?php tcb_icon( 'trash' ) ?></button>
<button data-fn="edit"
data-id="<?php echo $s['id'] ?>"
data-state-name="<?php echo $s['post_title']; ?>"
title="<?php echo __( 'Edit state', 'thrive-ult') ?>"
class="state-edit btn-icon click"><?php tcb_icon( 'edit' ) ?></button>
<?php endif ?>
<span class="state-name"><?php echo $s['post_title'] . ( empty( $s['parent_id'] ) ? '<strong> (' . __( 'Main', 'thrive-ult') . ')</strong>' : '' ); ?></span>
</li>
<?php endforeach ?>
<li data-fn="add"
class="state-add click">
<?php tcb_icon( 'plus' ) ?>
<?php echo __( 'Add new state', 'thrive-ult') ?>
</li>
</ul>
</div>
<?php
if ( empty( $do_not_wrap ) ) :
?>
<div class="states-button-container">
<button class="states-expand click" data-fn="expand">+</button>
</div>
</div>
<?php endif ?>