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,2 @@
<p><?php echo $action['description'] ?></p>

View File

@@ -0,0 +1,27 @@
<p><?php echo $action['description'] ?></p>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s6">
<div class="tvd-input-field">
<select name="campaign" id="tvu-campaign" data-name="">
<option value="0"><?php echo __( "Choose campaign", 'thrive-ult') ?></option>
<?php foreach ( $campaigns as $c ) : ?>
<?php $selected = ( ! empty( $action['campaign'] && $c->ID == $action['campaign'] ) ? 'selected="selected"' : '' ); ?>
<option <?php echo $selected ?> value="<?php echo $c->ID ?>"><?php echo $c->post_title ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-campaign"><?php echo __( "Choose campaign", 'thrive-ult') ?></label>
</div>
</div>
</div>
<script type="text/javascript">
(
function ( $ ) {
ThriveUlt.util.ajax_done = function () {
var $campaign = $( "#tvu-campaign" );
$campaign.trigger( 'change' );
TVE_Dash.materialize( $( "#tvu-campaign" ).parent() );
};
}
)( jQuery )
</script>

View File

@@ -0,0 +1,2 @@
<p><?php echo __( "No options for this action", 'thrive-ult') ?></p>

View File

@@ -0,0 +1,95 @@
<?php if ( $all_used ) : ?>
<p class="tvd-text-red"><?php echo __( 'All designs are already used', 'thrive-ult') ?></p>
<?php return; ?>
<?php endif; ?>
<?php if ( empty( $designs ) ) : ?>
<p class="tvd-text-red"><?php echo __( 'No design available', 'thrive-ult') ?></p>
<?php return; ?>
<?php endif; ?>
<div class="tvd-card tvd-white">
<div class="tvd-card-content">
<div class="tvd-row tvd-collapse tvd-no-margin-bottom">
<div class="tvd-col tvd-s5">
<div class="tvd-input-field tvd-no-margin">
<select name="design" id="tvu-design" data-name="" data-field="design">
<option disabled selected value="0"><?php echo __( 'Choose design to show', 'thrive-ult') ?></option>
<?php foreach ( $designs as $d ) : ?>
<?php $selected = ( ! empty( $action['design'] ) && $d['id'] == $action['design'] ? 'selected="selected"' : '' ); ?>
<option <?php echo $selected ?>
value="<?php echo $d['id'] ?>"><?php echo $d['post_title'] ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-design">&nbsp;</label>
</div>
</div>
<div class="tvd-col tvd-s1">
&nbsp;
</div>
<div id="tvu-states-wrapper" class="tvd-col tvd-s5" style="display: none;">
<div class="tvd-input-field tvd-no-margin">
<select id="tvu-state" name="state" data-name="" data-field="state">
<option disabled selected value="0"><?php echo __( 'Choose design state', 'thrive-ult') ?></option>
</select>
<label for="tvu-state">&nbsp;</label>
</div>
</div>
<div class="tvd-col tvd-s1">
&nbsp;
</div>
</div>
<div class="tvu-addtimeline-actions">
<a id="tvu-add-event-action" href="javascript:void(0)" class="tvd-icon-check tvd-text-green tvd-pointer tvu-btn-icon-small tvd-margin-right-small"></a>
<a id="tvu-cancel-edit-event-action" class="tvd-icon-close tvu-bluegray-text tvd-pointer tvu-btn-icon-small"></a>
</div>
</div>
</div>
<script type="text/javascript">
(function ( $ ) {
var designs = <?php echo $states ?>,
action = <?php echo json_encode( $action )?>,
$design = $( "#tvu-design" ),
$state = $( "#tvu-state" ),
$states_wrapper = $( "#tvu-states-wrapper" );
$design.change( function () {
var $this = $( this ),
id = $this.val(),
$options = $state.find( 'option' ),
length = 1 - $options.length;
if ( $options.length > 1 ) {
$options.slice( length ).remove();
}
if ( designs[id] === undefined ) {
return TVE_Dash.materialize( $state.parent() );
}
for ( var i = 0; i < designs[id].length; i ++ ) {
var state = designs[id][i];
$state.append( '<option value="' + state.id + '">' + state.post_title + '</option>' );
}
TVE_Dash.materialize( $state.parent() );
$states_wrapper[designs[id].length > 1 ? 'show' : 'hide']();
if ( designs[id].length === 1 ) {
$state.val( designs[id][0]['id'] );
$state.trigger( 'change' );
}
$state.trigger( 'tvdclear' );
} );
ThriveUlt.util.ajax_done = function () {
$design.trigger( 'change' );
if ( action.state ) {
$state.val( action.state );
$state.trigger( 'change' );
}
TVE_Dash.materialize( $state.parent() );
}
})( jQuery )
</script>

View File

@@ -0,0 +1,82 @@
<p><?php echo $action['description'] ?></p>
<?php if ( empty( $designs ) ) : ?>
<p class="tvd-text-red"><?php echo __( "You cannot choose this action because you have not set any design yet", 'thrive-ult') ?></p>
<?php return; ?>
<?php endif; ?>
<div class="tvd-v-spacer"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s6">
<div class="tvd-input-field">
<select name="design" id="tvu-design">
<option disabled selected value="0"><?php echo __( "Choose design to show", 'thrive-ult') ?></option>
<?php foreach ( $designs as $d ) : ?>
<?php $selected = ( ! empty( $action['design'] && $d['id'] == $action['design'] ) ? 'selected="selected"' : '' ); ?>
<option <?php echo $selected ?> value="<?php echo $d['id'] ?>"><?php echo $d['post_title'] ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-design"><?php echo __( "Choose design to show", 'thrive-ult') ?></label>
</div>
</div>
<div id="tvu-states-wrapper" class="tvd-col tvd-s6">
<div class="tvd-input-field">
<select id="tvu-state" name="state">
<option value="0"><?php echo __( "Choose design sate", 'thrive-ult') ?></option>
</select>
<label for="tvu-state"><?php echo __( "Choose design sate", 'thrive-ult') ?></label>
</div>
</div>
</div>
<script type="text/javascript">
(
function ( $ ) {
var designs = <?php echo $states ?>,
action = <?php echo json_encode( $action )?>;
$design = $( "#tvu-design" );
$state = $( "#tvu-state" );
$states_wrapper = $( "#tvu-states-wrapper" );
$design.change( function () {
var $this = $( this ),
id = $this.val(),
$options = $state.find( 'option' ),
length = 1 - $options.length;
if ( $options.length > 1 ) {
$options.slice( length ).remove();
}
if ( designs[id] === undefined ) {
TVE_Dash.materialize( $state.parent() );
return;
}
for ( var i = 0; i < designs[id].length; i ++ ) {
var state = designs[id][i];
$state.append( '<option value="' + state.id + '">' + state.post_title + '</option>' );
}
TVE_Dash.materialize( $state.parent() );
$states_wrapper[designs[id].length > 1 ? 'show' : 'hide']();
if ( designs[id].length === 1 ) {
$state.val( designs[id][0]['id'] );
$state.trigger( 'change' );
}
} );
ThriveUlt.util.ajax_done = function () {
$design.trigger( 'change' );
if ( action.state ) {
$state.val( action.state );
$state.trigger( 'change' );
}
TVE_Dash.materialize( $state.parent() );
}
}
)( jQuery )
</script>