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,8 @@
<button id="tpm-back" class="blue-button" style="display: none;">
<?php echo __( 'Back to dashboard', Thrive_Product_Manager::T ) ?>
</button>
<button id="tpm-install" disabled data-fn="install">
<span><?php echo __( 'Install and register selected products', Thrive_Product_Manager::T ) ?></span>
<span>(0)</span>
</button>

View File

@@ -0,0 +1,13 @@
<h3>
<#= model.get('name') #>
<span>
( <#= model.get('description') #> )
</span>
</h3>
<span class="tpm-product-status tpm-<#= model.get('status') #>">
<#= typeof model.get_status === 'function' ? model.get_status() : model.get('status') #>
</span>
<div class="tpm-status-extra tpm-<#= model.get('status') #>"><#= model.get('extra') #></div>

View File

@@ -0,0 +1,21 @@
<div class="modal-content">
<h3><?php echo __( 'Convert this site to Client Mode', Thrive_Product_Manager::T ) ?></h3>
<p>
<?php echo __( 'If you convert this website to "Client Mode", then the user of this website will no longer be able to access products from your ThriveThemes.com account.', Thrive_Product_Manager::T ) ?>
</p>
<p>
<?php echo __( "This can be useful if you're handing over websites to clients and you want to prevent them from accessing products that you've purchased.", Thrive_Product_Manager::T ) ?>
</p>
<p>
<?php echo __( 'You can add new products at any point in the future by reconnecting your ThriveThemes.com account in the Product Manager.', Thrive_Product_Manager::T ) ?>
</p>
<div class="modal-footer">
<button class="tpm-button-gray tpm-modal-cancel">
<?php echo __( 'Cancel', Thrive_Product_Manager::T ) ?>
</button>
<button class="tpm-button-green tpm-modal-submit">
<?php echo __( 'Convert to Client Mode', Thrive_Product_Manager::T ) ?>
</button>
</div>
<span class="close"></span>
</div>

View File

@@ -0,0 +1,3 @@
<h3><?php echo __( 'Ooops!', Thrive_Product_Manager::T ) ?></h3>
<p><?php echo __( 'Something went wrong, cant connect to account.', Thrive_Product_Manager::T ) ?></p>
<span id="tpm-close-notification"></span>

View File

@@ -0,0 +1,2 @@
<span class="info dash-tooltip" data-tooltip-position="top" data-tooltip="<#= model.get('description') #>">i</span>
<div class="tpm-img-container" style="background-image: url('<#= model.get('logo_url') #>');"></div>

View File

@@ -0,0 +1,31 @@
<h1><?php echo __( 'Which products would you like to install and license on this site?', Thrive_Product_Manager::T ) ?></h1>
<h2 class="products-h2"><?php echo __( 'Plugins', Thrive_Product_Manager::T ) ?></h2>
<div class="tpm-items-controls">
<a href="<?php echo thrive_product_manager()->get_clear_cache_url() ?>"><?php echo __( 'Refresh list', Thrive_Product_Manager::T ) ?></a>
<label for="tpm-plugins-deselect-all">
<?php echo __( 'Deselect all', Thrive_Product_Manager::T ) ?>
<input type="checkbox" id="tpm-plugins-deselect-all" data-fn="deselect_all" data-args="plugins">
<span class="checkmark"></span>
</label>
<label for="tpm-plugins-select-all">
<?php echo __( 'Select all', Thrive_Product_Manager::T ) ?>
<input type="checkbox" id="tpm-plugins-select-all" data-fn="select_all" data-args="plugins">
<span class="checkmark"></span>
</label>
</div>
<div id="tpm-plugins-list"></div>
<div id="tpm-skins-wrapper">
<h2 class="products-h2"><?php echo __( 'Thrive Theme Builder', Thrive_Product_Manager::T ) ?></h2>
<div class="tpm-items-controls">
<a href="<?php echo thrive_product_manager()->get_clear_cache_url() ?>"><?php echo __( 'Refresh list', Thrive_Product_Manager::T ) ?></a>
</div>
<div id="tpm-skins-list"></div>
</div>

View File

@@ -0,0 +1 @@
<h1><?php echo __( 'Processing your products', Thrive_Product_Manager::T ) ?>&hellip;</h1>

View File

@@ -0,0 +1,3 @@
<span class="info dash-tooltip" data-tooltip-position="top" data-tooltip="<#= model.get('description') #>">i</span>
<div class="tpm-img-container" style="background-image: url('<#= model.get('logo_url') #>');"></div>
<p class="ttb-skin-title"><#= model.get( 'name' ) #></p>

View File

@@ -0,0 +1,5 @@
<div class="bottom-bar">
<div>
<span class="activated"><?php echo __( 'Active', Thrive_Product_Manager::T ) ?></span>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<div class="bottom-bar">
<div>
<span><?php echo __( 'Product not purchased', Thrive_Product_Manager::T ) ?></span>
<div class="container-on-hover">
<a href="http://thrivethemes.com/suite"><?php echo __( 'Upgrade to access', Thrive_Product_Manager::T ) ?></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="bottom-bar">
<div>
<span class="installed"><?php echo __( 'Ready to use', Thrive_Product_Manager::T ) ?></span>
</div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="bottom-bar">
<div>
<span class="installed"><?php echo __( 'Ready to use', Thrive_Product_Manager::T ) ?></span>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="bottom-bar">
<div>
<label>
<?php echo __( 'Activate', Thrive_Product_Manager::T ) ?>
<span><#= model.productOrTheme() #></span>
<input type="checkbox" data-type="<#= model.get('type') #>">
<span class="checkmark"></span>
</label>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="bottom-bar">
<div>
<label>
<?php echo __( 'Install ', Thrive_Product_Manager::T ) ?>
<span><#= model.productOrTheme() #></span>
<input type="checkbox" data-type="<#= model.get('type') #>">
<span class="checkmark"></span>
</label>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<div class="bottom-bar">
<div>
<label>
<?php echo __( 'License product', Thrive_Product_Manager::T ) ?>
<input type="checkbox" data-type="<#= model.get('type') #>">
<span class="checkmark"></span>
</label>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div class="notice notice-info is-dismissible">
<p><?php echo $error ?></p>
</div>

View File

@@ -0,0 +1,23 @@
<?
/** @var TPM_Connection $this */
?>
<div class="tpm-connect-screen">
<h1><?php echo __( 'There seems to be a problem' ) ?></h1>
<p>
<?php echo __( "We can't seem to connect to your ThriveThemes.com account. Usually this is because of some kind of restrictions with your hosting company.", Thrive_Product_Manager::T ) ?>
</p>
<p>
<?php echo sprintf( __( "Not to worry, %s to let us know about the issue and we'll quickly solve this problem for you", Thrive_Product_Manager::T ), '<a target="_blank" href="https://thrivethemes.com/forums/forum/account-and-presales-support/">' . __( "click here", Thrive_Product_Manager::T ) . '</a>' ); ?>
</p>
<a class="tpm-retry" href="<?php echo thrive_product_manager()->get_admin_url(); ?>">
<?php echo __( 'Try again', Thrive_Product_Manager::T ) ?>
</a>
</div>
<div id="tpm-notification-box" class="tpm-error tpm-show">
<h3><?php echo __( 'Ooops!', Thrive_Product_Manager::T ) ?></h3>
<p><?php echo __( 'Something went wrong, cant connect to account.', Thrive_Product_Manager::T ) ?></p>
</div>

View File

@@ -0,0 +1,25 @@
<?php
/** @var TPM_Connection $this */
/** @var string $login_url */
$login_url = $this->get_login_url();
?>
<div class="tpm-connect-screen">
<div>
<h2><?php echo __( 'Connect to ThriveThemes.com to access your product.', Thrive_Product_Manager::T ) ?></h2>
<p><?php echo __( 'Click on the button below to be taken to Thrive Themes and simply log into your account to install your product', Thrive_Product_Manager::T ) ?></p>
<p><?php echo __( 'Make sure that you use the same username and password that used when signing up at ThriveThemes.com', Thrive_Product_Manager::T ) ?></p>
<hr class="tpm-le-rule"/>
<a class="tpm-login" href="<?php echo $login_url; ?>">
<?php echo __( 'Log into my account', Thrive_Product_Manager::T ) ?>
</a>
<p>
<a href="https://thrivethemes.com/tkb_item/how-to-use-the-thrive-product-manager/"
target="_blank"><?php echo __( 'See how it works.', Thrive_Product_Manager::T ) ?></a>
</p>
</div>
</div>
<?php include thrive_product_manager()->path( 'inc/templates/debugger.phtml' ) ?>

View File

@@ -0,0 +1,68 @@
<?php if ( Thrive_Product_Manager::is_debug_mode() ) : ?>
<h2>Debug mode: ON</h2>
<ul>
<li>
<label for="tpm-debug-server">Hit server</label>:
<select id="tpm-debug-server">
<?php foreach ( Thrive_Product_Manager::$ttw_urls as $name => $url ) : ?>
<option <?php echo $url === Thrive_Product_Manager::get_ttw_url() ? 'selected="selected"' : '' ?>
value="<?php echo $url ?>"><?php echo $name ?></option>
<?php endforeach; ?>
</select>
</li>
</ul>
<ul>
<li>
<b>TTW URL</b>:
<a href="<?php echo Thrive_Product_Manager::get_ttw_url() ?>"
target="_blank"><?php echo Thrive_Product_Manager::get_ttw_url() ?></a>
</li>
<li>
<b>TTW
Licenses</b>: <?php echo var_export( TPM_License_Manager::get_instance()->get_ttw_license_instances(), true ); ?>
</li>
<li>
<b>CONNECTED</b>
as: <?php echo TPM_Connection::get_instance()->is_connected() ? var_export( TPM_Connection::get_instance()->get_data(), true ) : 'not connected' ?>
</li>
<li>
<b>OLD way thrive_license</b>: <?php echo var_export( get_option( 'thrive_license', array() ), true ) ?>
</li>
<li>
<b>NEW way tpm_licenses used</b>: <?php echo var_export( get_option( 'tpm_licenses', array() ), true ) ?>
</li>
<li>
<b>CACHE enabled</b>: <?php echo Thrive_Product_Manager::CACHE_ENABLED ? 'true' : 'false' ?>
</li>
<li>
<b>CACHE life time for products</b> <?php echo (int) TPM_Product_List::CACHE_LIFE_TIME / 86400 ?> days <br>
</li>
<li>
<b>CACHE life time for licenses</b> <?php echo (int) TPM_License_Manager::CACHE_LIFE_TIME / 3600 ?> hours
</li>
<li>
<b>TPM Token</b> <?php echo get_option( 'tpm_token', 'not_set' ) ?>
</li>
<li>
<b>Cron Refresh Token Scheduled on</b>:
<?php echo date( 'Y-m-d H:i:s', wp_next_scheduled( TPM_Cron::CRON_HOOK_NAME ) ); ?>
</li>
</ul>
<?php endif; ?>
<script type="text/javascript">
( function ( $ ) {
$( function () {
$( '#tpm-debug-server' ).change( function () {
window.location = TPM.tpm_url + '&tpm_action=set_url&url=' + this.value;
} );
} );
} )( jQuery );
</script>

View File

@@ -0,0 +1,10 @@
<div class="tpm-connect-screen-header">
<h1><span>Thrive</span> Product Manager</h1>
<?php $connection = TPM_Connection::get_instance() ?>
<?php if ( $connection->is_connected() ) : ?>
<a class="tpm-disconnect-account" href="<?php echo $connection->get_disconnect_url() ?>">
<?php echo __( 'Disconnect Thrivethemes.com account', Thrive_Product_Manager::T ) ?>
<span><?php echo $connection->get_email() ?></span>
</a>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,2 @@
<div id="tpm-app"></div>
<?php include thrive_product_manager()->path( 'inc/templates/debugger.phtml' ) ?>