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,52 @@
.iconmanager-messages {
padding: 20px 0 10px 0;
}
.iconmanager-messages div.error, .iconmanager-messages div.updated {
margin: 0;
}
.iconmanager-messages div.error p {
color: #dd3d36;
}
.icomoon-icon {
display: inline-block;
margin: 0 10px 10px 0;
padding: 20px 0;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
font-size: 30px;
line-height: 30px;
height: 70px;
width: 70px;
text-align: center;
color: #444;
background-color: #eee;
vertical-align: middle;
}
.icomoon-icon:hover {
background: #ccc;
color: #000;
}
.dash-icon-manager-settings {
background: #fff;
border: 1px solid #E1E1E1;
margin: 0 20px 0 0;
padding: 25px;
color: #323232;
font-family: 'Source Sans Pro', sans-serif;
}
.dash-icon-manager-settings h3 {
border-bottom: 1px solid #e1e1e1;
font-weight: 300;
font-style: italic;
font-size: 25px;
padding-bottom: 10px;
padding-top: 0px;
margin: 0;
}

View File

@@ -0,0 +1,32 @@
<form action="" method="post">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m3 tvd-l2">
<?php echo esc_html__( "Upload Icon Pack", 'thrive-dash' ) ?>
</div>
<div class="tvd-col tvd-s12 tvd-m9 tvd-l10">
<input type="hidden" name="tve_save_icon_pack" value="1">
<input type="text" value="<?php echo esc_attr( $this->icon_pack_name ); ?>" id="tve_icon_pack_file" name="tve_icon_pack_url" class="thrive_options" readonly="readonly">
<input type="hidden" value="<?php echo esc_attr( $this->icon_pack_id ); ?>" id="tve_icon_pack_file_id" name="attachment_id">
<a class="tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-green" id="tve_icon_pack_upload" href="javascript:void(0)">
<i class="tvd-icon-plus"></i> <?php echo esc_html__( "Upload", 'thrive-dash' ) ?>
</a>
<a class="tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-red" id="tve_icon_pack_remove" href="javascript:void(0)">
<i class="tvd-icon-remove"></i> <?php echo esc_html__( "Remove", 'thrive-dash' ) ?>
</a>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m3 tvd-l2">
<?php echo esc_html__( "Save options", 'thrive-dash' ) ?>
</div>
<div class="tvd-col tvd-s12 tvd-m9 tvd-l10">
<input type="submit" id="tve_icon_pack_save" value="<?php echo esc_html__( "Save and Generate Icons", 'thrive-dash' ) ?>" class="tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-blue"/>
</div>
</div>
</form>

View File

@@ -0,0 +1,9 @@
<h3><?php echo esc_html__( "Your Custom Icons", 'thrive-dash' ) ?></h3>
<p><?php echo esc_html__( "These icons are available for use on your site:", 'thrive-dash' ) ?></p>
<div class="icomoon-admin-icons">
<?php foreach ( $this->icons as $class ) : ?>
<span class="icomoon-icon" title="<?php echo array_key_exists( $class, $this->variations ) ? esc_attr( $this->variations[ $class ] ) : esc_attr( $class ) ?>">
<span class="<?php echo esc_attr( $class ); ?>"></span>
</span>
<?php endforeach ?>
</div>

View File

@@ -0,0 +1,65 @@
( function ( $ ) {
$( function () {
const $upload = $( '#tve_icon_pack_upload' ),
$remove = $( '#tve_icon_pack_remove' ),
$input = $( '#tve_icon_pack_file' ),
$inputId = $( '#tve_icon_pack_file_id' );
let wpFileFrame;
$input.on( 'click', () => {
$upload.click();
} );
$upload.on( 'click', e => {
e.preventDefault();
if ( ! wpFileFrame ) {
wpFileFrame = wp.media.frames.file_frame = wp.media( {
title: 'Upload IcoMoon Font Pack',
button: {
text: 'Use file'
},
multiple: false
} );
/* Add class so we can add custom CSS */
wpFileFrame.on( 'open', function () {
wpFileFrame.$el.addClass( 'retina-icon-picker' )
} );
wpFileFrame.on( 'select', function () {
const attachment = wpFileFrame.state().get( 'selection' ).first().toJSON();
$inputId.val( attachment.id );
$input.val( attachment.filename );
} );
}
wpFileFrame.open();
return false;
} );
$remove.on( 'click', function () {
$input.val( '' );
$inputId.val( '' );
} );
const $redirectTo = $( '#tve-redirect-to' ),
$redirectIn = $( '#tve-redirect-count' );
if ( $redirectIn.length && $redirectTo.length ) {
const interval = setInterval( function () {
let _current = parseInt( $redirectIn.text() );
_current --;
$redirectIn.html( _current + '' );
if ( _current === 0 ) {
clearInterval( interval );
location.href = $redirectTo.val();
}
}, 1000 );
}
} );
} )( jQuery );

View File

@@ -0,0 +1,51 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
if ( $this->messages ) : ?>
<?php $this->render( 'messages' ); ?>
<?php endif ?>
<?php if ( empty( $this->messages['redirect'] ) ) : ?>
<?php include TVE_DASH_PATH . '/templates/header.phtml'; ?>
<div class="tvd-v-spacer vs-2"></div>
<div class="dash-icon-manager-settings">
<h3><?php echo esc_html__( "Thrive Icon Manager", 'thrive-dash' ); ?></h3>
<p><?php echo esc_html__( "Thrive Themes integrate with IcoMoon. Here's how it works:", 'thrive-dash' ) ?></p>
<ol>
<li><?php echo wp_kses_post( sprintf( __( "%s to go to the IcoMoon web app and select the icons you want to use in your site", 'thrive-dash' ), '<a target="_blank" href="//icomoon.io/app/#/select">' . __( "Click here", 'thrive-dash' ) . '</a>' ) ); ?></li>
<li><?php echo esc_html__( "Download the font file from IcoMoon to your computer", 'thrive-dash' ) ?></li>
<li><?php echo esc_html__( "Upload the font file through the upload button below", 'thrive-dash' ) ?></li>
<li><?php echo esc_html__( "Your icons will be available for use!", 'thrive-dash' ) ?></li>
</ol>
<div class="clear"></div>
<p>&nbsp;</p>
<h3><?php echo esc_html__( "Import Icons", 'thrive-dash' ) ?></h3>
<?php if ( ! $this->icons ) : ?>
<p><?php echo esc_html__( "You don't have any icons yet, use the Upload button to import a custom icon pack.", 'thrive-dash' ) ?></p>
<?php else: ?>
<p><?php echo esc_html__( "Your custom icon pack has been loaded. To modify your icon pack, simply upload a new file.", 'thrive-dash' ) ?></p>
<?php endif ?>
<?php $this->render( 'form' ) ?>
<div class="clear"></div>
<p>&nbsp;</p>
<?php if ( $this->icons ) : ?>
<?php $this->render( 'icons' ) ?>
<?php endif ?>
<div class="tvd-row" style="margin-top: 10px;">
<a href="<?php echo esc_url( admin_url( 'admin.php?page=tve_dash_section' ) ); ?>" class="tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-gray">
<?php echo esc_html__( "Back To Dashboard", 'thrive-dash' ); ?>
</a>
</div>
</div>
<?php endif ?>

View File

@@ -0,0 +1,15 @@
<div class="iconmanager-messages">
<?php if ( ! empty( $this->messages['error'] ) ) : ?>
<div class="error">
<p><?php echo esc_html( $this->messages['error'] ); ?></p>
</div>
<?php endif ?>
<?php if ( ! empty( $this->messages['success'] ) ) : ?>
<div class="updated">
<p><?php echo sprintf( esc_html( $this->messages['success'] ), '<span id="tve-redirect-count">2</span>' ); ?></p>
<?php if ( ! empty( $this->messages['redirect'] ) ) : ?>
<input type="hidden" id="tve-redirect-to" value="<?php echo esc_attr( $this->messages['redirect'] ); ?>">
<?php endif ?>
</div>
<?php endif ?>
</div>