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,94 @@
<?php require_once( TVE_DASH_PATH . '/templates/header.phtml' ); ?>
<div class="tvd-row tvd-success-message">
<p>ID saved successfully</p>
</div>
<style>
.tvd-success-message {
display: none;
}
#aff-invalid {
display: none;
}
</style>
<div class="tvd-container">
<div id="tve_dash_general_settings">
<?php if ( ! empty( $affiliate_links ) ) : ?>
<h3 class="tvd-section-title tvd-thrive-links">
<span>
<?php echo __( "Thrive Links", 'thrive-dash' ) ?>
</span>
<a class='tvd-add-affiliate-url tvd-icon-pencil' href="#aff_modal"></a>
</h3>
<div class="container" id="tve_affiliate_links">
<?php foreach ( $affiliate_links as $affiliate_link ): ?>
<label class="affiliate-link-container tcb-checkbox">
<span class="tve-affiliate-link"><?php echo $affiliate_link['label'] ?></span>
<input type="checkbox" <?php echo $affiliate_link['checked'] == true ? 'checked' : ''; ?> class="tve-checked"
data-product="<?php echo $affiliate_link['tag'] ?>">
<span class="checkmark"></span>
</label>
<?php endforeach; ?>
</div>
<?php endif; ?>
<h3 class="tvd-section-title"><?php echo __( "General Settings", 'thrive-dash' ) ?></h3>
<?php foreach ( $settings as $setting ): ?>
<?php if ( ! in_array( $setting['type'], $accepted_settings ) ): continue; endif; ?>
<?php endforeach; ?>
<div class="container tcb-text-settings">
<?php foreach ( $settings as $setting ): ?>
<div class="tvd-row-settings" data-setting-name="<?php echo $setting['name']; ?>" data-setting-type="<?php echo $setting['type']; ?>">
<?php if ( $setting['type'] === 'text' ) : ?>
<?php if ( $setting['multiple'] && is_array( $setting['value'] ) ): ?>
<?php foreach ( $setting['value'] as $key => $value ): ?>
<?php include dirname( __FILE__ ) . '/text_setting_row.phtml'; ?>
<?php endforeach; ?>
<?php else: ?>
<?php $value = $setting['value']; ?>
<?php include dirname( __FILE__ ) . '/text_setting_row.phtml'; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>
<div class="container">
<?php foreach ( $settings as $setting ): ?>
<div class="tvd-row-settings" data-setting-name="<?php echo $setting['name']; ?>" data-setting-type="<?php echo $setting['type']; ?>">
<?php if ( $setting['type'] === 'checkbox' ): ?>
<label class="tvd-checkbox-setting tcb-checkbox">
<span><?php echo $setting['description'] ?></span>
<input type="checkbox" id="<?php echo $setting['id'] ?>" <?php echo( ! empty( $setting['value'] ) ? ' checked' : '' ); ?> value="1" class="noUi-target noUi-ltr noUi-horizontal noUi-background tvd-save-option">
<span class="checkmark"></span>
<?php if ( ! empty( $setting['link'] ) ): ?>
<a href="<?php echo $setting['link'] ?>" class="tvd-learn-more" target="_blank"><?php echo __( 'Learn more', 'thrive-dash' ); ?></a>
<?php endif; ?>
</label>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
<div class="tvd-col tvd-m6">
<a href="<?php echo admin_url( 'admin.php?page=tve_dash_section' ); ?>" class="tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-gray">
<?php echo __( "Back To Dashboard", 'thrive-dash' ); ?>
</a>
</div>
<?php include TVE_DASH_PATH . '/templates/affiliate-modal.phtml'; ?>

View File

@@ -0,0 +1,39 @@
<div class="tvd-container">
<?php if (!empty($message)) echo $message ?>
<h3 class="tvd-section-title">License reset</h3>
<form id="tvd-reset" method="post" action="<?php echo admin_url('admin.php?page=tve_dash_reset') ?>">
<p>
<input type="checkbox" id="tcb" value="tcb" name="products[]" checked/>
<label for="tcb">TCB</label>
</p>
<p>
<input type="checkbox" id="tl" value="tl" name="products[]" checked/>
<label for="tl">TL</label>
</p>
<p>
<input type="checkbox" id="tcw" value="tcw" name="products[]" checked/>
<label for="tcw">TCW</label>
</p>
<p>
<input type="checkbox" id="themes" value="themes" name="products[]" checked/>
<label for="themes">Themes</label>
</p>
<p>
<input type="checkbox" id="dash" value="dash" name="products[]" checked/>
<label for="dash">Dashboard (all)</label>
</p>
<input type="hidden" name="page" value="tve_dash_reset">
<input type="hidden" name="s" value="1">
<input type="submit" class="button button-primary button-large" value="Delete licenses">
</form>
</div>

View File

@@ -0,0 +1,25 @@
<div class="tvd-settings-item <?= $setting['multiple'] === true ? 'wrap-options' : '' ?>">
<div class="tvd-settings-label">
<?php if ( ( $setting['multiple'] && empty( $key ) ) || ! $setting['multiple'] ): ?>
<?php echo $setting['label']; ?>
<?php else: ?>
&nbsp;
<?php endif; ?>
</div>
<div class="tvd-input-field">
<input type="<?php echo $setting['type']; ?>" class="<?php echo $setting['class']; ?>" id="<?php echo $setting['id']; ?>" value="<?php echo esc_attr( $value ); ?>">
<label for="<?php echo $setting['id']; ?>" data-success="<?php echo $setting['data-success']; ?>" data-error="<?php echo $setting['data-error']; ?>">&nbsp</label>
</div>
<div class="tvd-input-actions">
<?php if ( ( $setting['multiple'] && empty( $key ) ) || ! $setting['multiple'] ): ?>
<a class='tvd-save-option'><span></span></a>
<?php if ( $setting['multiple'] ): ?>
<span class='tvd-add-option'><span>+</span><?php echo __( "Add new", 'thrive-dash' ); ?> </span>
<?php endif; ?>
<?php else: ?>
<a class='tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-red tvd-delete-option'></a>
<?php endif; ?>
</div>
</div>