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,59 @@
<div id="thrive-api-groups">
<?php if ( ! empty( $data['groups'] ) ) : ?>
<div class="tve-sp"></div>
<h6><?php echo esc_html__( 'Choose your grouping:', 'thrive-dash' ) ?></h6>
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline">
<select class="tve-api-extra" id="thrive-api-groupin-select" name="mailchimp_groupin">
<option <?php echo ! isset( $data['groupin'] ) ? 'selected="selected"' : ''; ?> value="0"><?php echo esc_html__( 'No Group', 'thrive-dash' ) ?></option>
<?php foreach ( $data['groups'] as $groups ) : ?>
<option <?php echo isset( $data['groupin'] ) && $data['groupin'] == $groups->id ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $groups->id ) ?>"><?php echo esc_html( $groups->title ) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php foreach ( $data['groups'] as $groups ) : ?>
<div class="tve-groups-wrapper tve-groups-select-<?php echo esc_attr( $groups->id ) ?>" <?php echo isset( $data['groupin'] ) && $data['groupin'] == $groups->id ? '' : 'style="display:none"'; ?>>
<div class="tve-sp"></div>
<h6><?php echo esc_html__( 'Choose your group:', 'thrive-dash' ) ?></h6>
<?php if ( $groups->type == 'dropdown' || $groups->type == 'hidden' ) : ?>
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline">
<select class="thrive-api-group-select <?php echo isset( $data['groupin'] ) && $data['groupin'] == $groups->id ? 'tve-api-extra' : ''; ?>" name="mailchimp_group">
<?php foreach ( $groups->groups as $group ) : ?>
<option <?php echo isset( $data['group'] ) && $data['group'] == $group->id ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $group->id ) ?>"><?php echo esc_html( $group->name ) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php else : ?>
<?php foreach ( $groups->groups as $group ) : ?>
<?php
$selected_groups = array();
if ( isset( $data['group'] ) ) {
$selected_groups = explode( ',', $data['group'] );
} ?>
<input style="margin-top: -5px;" id="thrive-group-checkbox-<?php echo esc_attr( $group->id ); ?>" <?php echo in_array( $group->id, $selected_groups ) ? 'checked="checked"' : '' ?> name="mailchimp_group" class="thrive-api-group-select <?php echo isset( $data['groupin'] ) && $data['groupin'] == $groups->id ? 'tve-api-extra' : ''; ?>" type="<?php echo $groups->type == 'checkboxes' ? 'checkbox' : esc_attr( $groups->type ); ?>" name="<?php echo esc_attr( $groups->id ) ?>" value="<?php echo esc_attr( $group->id ) ?>">
<label class="thrive-api-group-select" for="thrive-group-checkbox-<?php echo esc_attr( $group->id ) ?>">
<?php echo esc_html( $group->name ); ?>
</label>
<?php endforeach; ?>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
<script type="text/javascript">
(function ( $ ) {
$('#thrive-api-groupin-select').change(function(e) {
var $container = $('#thrive-api-groups'),
element = 'tve-groups-select-' + e.target.value;
$container.find('.tve-groups-wrapper').each(function () {
var $this = $(this);
$this.hide().find('input[type="radio"], input[type="checkbox"], select').removeClass('tve-api-extra');
if($this.hasClass(element)) {
$this.show().find('input[type="radio"], input[type="checkbox"], select').addClass('tve-api-extra')
}
})
});
})( jQuery );
</script>

View File

@@ -0,0 +1,19 @@
<div class="tve-sp"></div>
<p class="tl-mock-paragraph"><?php echo esc_html__( 'Choose the type of optin you would like for the Mailchimp integration', 'thrive-dash' ) ?></p>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s4">
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline tvd-input-field">
<label for="tve-api-extra" class="tve-custom-select">
<select class="tve-api-extra tl-api-connection-list" name="mailchimp_optin">
<option
value="s"<?php echo $data['optin'] === 's' ? ' selected="selected"' : '' ?>><?php echo esc_html__( 'Single optin', 'thrive-dash' ) ?></option>
<option
value="d"<?php echo $data['optin'] === 'd' ? ' selected="selected"' : '' ?>><?php echo esc_html__( 'Double optin', 'thrive-dash' ) ?></option>
</select>
</label>
</div>
</div>
</div>
<br>
<p><?php echo esc_html__( '(Double optin means your subscribers will need to confirm their email address before being added to your list)', 'thrive-dash' ) ?></p>