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,85 @@
<?php
/** @var array $plugin_data */
/** @var stdClass $state */
/** @var string $slug plugin slug */
$slug = $state->update->slug;
/** @var string $version plugin version */
$version = $state->update->version;
?>
<p class="thrv-msg">
<?php echo isset( $error_message ) ? esc_html( $error_message ) : ''; ?>
<?php
echo sprintf(
'<a class="thickbox open-plugin-details-modal" href="%s">%s</a>',
self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $slug . '&section=changelog&TB_iframe=true&width=772&height=877' ),
sprintf(
__( 'View version %s details', 'thrive-dash' ),
$version
)
);
?>
<?php if ( isset( $recheck_url ) ) : ?>
<a class="ttw-rnw" href="<?php echo $recheck_url; ?>">
<?php echo __( 'Try again!', 'thrive-dash' ); ?>
</a>
<?php endif; ?>
</p>
<style>
#<?php echo $slug ?>-update p:last-child {
display: none;
}
#<?php echo $slug ?>-update .thrv-msg:before {
content: "\f160";
color: #d63638;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ttw-rnw, .ttw-cla {
color: #fff !important;
background-color: #1e5496;
text-decoration: none !important;
padding: 0 15px;
border-radius: 3px;
display: inline-block;
line-height: 28px;
}
.ttw-cla {
background-color: #eeeeee;
color: #32373c !important;
border: 1px solid #dfddd7;
}
</style>
<script>
jQuery( '#<?php echo $slug ?>-update .update-message p' )
.filter( function ( index, item ) {
return ! jQuery( item ).hasClass( 'thrv-msg' )
} ).remove();
jQuery( 'body' ).on( 'thickbox:iframe:loaded', function () {
var iframe = jQuery( '#TB_iframeContent' ).contents();
var updateUrl = iframe.find( '#plugin_update_from_iframe' );
if ( updateUrl.data( 'slug' ) === "<?php echo $slug ?>" ) {
iframe
.find( '#plugin-information-footer' )
.empty()
.html(
'<a class="button button-primary right" id="thrv-upgrade-url" href="javascript:void(0)">Buy</a>'
);
jQuery( iframe.find( 'body #thrv-upgrade-url' ) ).on( 'click', function ( e ) {
e.preventDefault();
window.location.href = '<?php echo TD_TTW_Update_Manager::SUITE_URL;?>>'
} );
}
} );
</script>

View File

@@ -0,0 +1,25 @@
<div class="notice notice-warning is-dismissible">
<p>
<?php
echo sprintf(
__( 'Your %s license has expired! ', 'thrive-dash' ),
$membership_name
);
echo sprintf(
sprintf(
__( 'Please %s to get the latest plugin and security updates. ', 'thrive-dash' ),
sprintf(
'<a href="%s" target="_blank">%s</a>',
TD_TTW_Update_Manager::SUITE_URL,
__( 'renew your license', 'thrive-dash' )
)
)
);
echo sprintf(
'<a href="%s" target="_blank">%s</a>',
TD_TTW_User_Licenses::get_instance()->get_recheck_url(),
__( 'Check license again', 'thrive-dash' )
);
?>
</p>
</div>

View File

@@ -0,0 +1,23 @@
<div class="notice notice-warning is-dismissible">
<p>
<?php
echo sprintf(
__( 'Your %s license has expired! ', 'thrive-dash' ),
$membership_name
);
echo sprintf(
__( 'Please %s and %s to continue receiving product updates ', 'thrive-dash' ),
sprintf(
'<a href="%s" target="_blank">%s</a>',
TD_TTW_Update_Manager::SUITE_URL,
__( 'renew your license', 'thrive-dash' )
),
sprintf(
'<a href="%s" target="_blank">%s</a>',
TD_TTW_Connection::get_instance()->get_login_url(),
__( 'connect your account', 'thrive-dash' )
)
);
?>
</p>
</div>

View File

@@ -0,0 +1,24 @@
<div class="notice notice-warning is-dismissible">
<p>
<?php
echo __( 'We managed to connect to your account but your membership is not active. ', 'thrive-dash' );
echo sprintf(
__( 'Please %s and %s. If you believe you have an active membership, visit our %s', 'thrive-dash' ),
sprintf(
'<a href="%s" target="_blank">%s</a>',
TD_TTW_Update_Manager::SUITE_URL,
__( 'renew your membership', 'thrive-dash' )
),
sprintf(
'<a href="%s" target="_blank">%s</a>',
TD_TTW_Connection::get_instance()->get_login_url(),
__( 'reconnect', 'thrive-dash' )
),
sprintf(
'<a href="http://help.thrivethemes.com/en/articles/4957014-having-trouble-logging-into-your-thrive-themes-account/" target="_blank">%s</a>',
__( 'troubleshooting guide', 'thrive-dash' )
)
);
?>
</p>
</div>

View File

@@ -0,0 +1,78 @@
<?php
/** @var array $plugin_data */
/** @var stdClass $state */
/** @var string $slug plugin slug */
$slug = $state->update->slug;
/** @var string $version plugin version */
$version = $state->update->version;
?>
<p class="thrv-msg thrv-deny-updates">
<?php
echo sprintf(
__( 'Connection lost - there is a new version of %s available but your thrivethemes.com account must be connected in order to update. ', 'thrive-dash' ),
$plugin_data['Name']
);
echo sprintf(
'<a class="thickbox open-plugin-details-modal" href="%s">%s</a>',
self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $slug . '&section=changelog&TB_iframe=true&width=772&height=877' ),
sprintf(
__( 'View version %s details', 'thrive-dash' ),
$version
)
);
?>
&nbsp;&nbsp;&nbsp;&nbsp;
<?php
echo sprintf(
'<a class="ttw-connect" href="%s">%s</a>',
TD_TTW_Update_Manager::get_instance()->get_admin_url(),
__( 'Connect account', 'thrive-dash' )
);
?>
</p>
<style>
#<?php echo $slug ?>-update p:last-child {
display: none;
}
#<?php echo $slug ?>-update .thrv-msg:before {
content: "\f106";
color: #1e5496;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ttw-connect {
color: #fff !important;
background-color: #1e5496;
text-decoration: none !important;
padding: 0 15px;
border-radius: 3px;
display: inline-block;
line-height: 28px;
}
</style>
<script>
jQuery( '#<?php echo $slug ?>-update .update-message p' )
.filter( function ( index, item ) {
return ! jQuery( item ).hasClass( 'thrv-msg' )
} )
.remove();
jQuery( 'body' ).on( 'thickbox:iframe:loaded', function () {
var iframe = jQuery( '#TB_iframeContent' ).contents();
var updateUrl = iframe.find( '#plugin_update_from_iframe' );
if ( updateUrl.data( 'slug' ) === "<?php echo $slug ?>" ) {
iframe
.find( '#plugin-information-footer' )
.empty();
}
} );
</script>

View File

@@ -0,0 +1,93 @@
<?php
/** @var array $plugin_data */
/** @var stdClass $state */
/** @var string $slug plugin slug */
$slug = $state->update->slug;
/** @var string $version plugin version */
$version = $state->update->version;
?>
<p class="thrv-msg thrv-deny-updates">
<?php
echo sprintf(
__( 'License expired - there is a new version of %s available but your license must be renewed to update. ', 'thrive-dash' ),
$plugin_data['Name']
);
echo sprintf(
'<a class="thickbox open-plugin-details-modal" href="%s">%s</a>',
self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $slug . '&section=changelog&TB_iframe=true&width=772&height=877' ),
sprintf(
__( 'View version %s details', 'thrive-dash' ),
$version
)
);
?>
&nbsp;&nbsp;&nbsp;&nbsp;
<a class="ttw-rnw" href="https://thrivethemes.com/membership-pricing" target="_blank" rel="noopener">
<?php echo __( 'Renew', 'thrive-dash' ) ?>
</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<?php if ( isset( $recheck_url ) ) : ?>
<a class="ttw-cla" href="<?php echo $recheck_url; ?>">
<?php echo __( 'Check license again', 'thrive-dash' ); ?>
</a>
<?php endif; ?>
</p>
<style>
#<?php echo $slug ?>-update p:last-child {
display: none;
}
#<?php echo $slug ?>-update .thrv-msg:before {
content: "\f160";
color: #1e5496;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ttw-rnw, .ttw-cla {
color: #fff !important;
background-color: #1e5496;
text-decoration: none !important;
padding: 0 15px;
border-radius: 3px;
display: inline-block;
line-height: 28px;
}
.ttw-cla {
background-color: #eeeeee;
color: #32373c !important;
border: 1px solid #dfddd7;
}
</style>
<script>
jQuery( '#<?php echo $slug ?>-update .update-message p' )
.filter( function ( index, item ) {
return ! jQuery( item ).hasClass( 'thrv-msg' )
} ).remove();
jQuery( 'body' ).on( 'thickbox:iframe:loaded', function () {
var iframe = jQuery( '#TB_iframeContent' ).contents();
var updateUrl = iframe.find( '#plugin_update_from_iframe' );
if ( updateUrl.data( 'slug' ) === "<?php echo $slug ?>" ) {
iframe
.find( '#plugin-information-footer' )
.empty()
.html(
'<a class="button button-primary right" id="thrv-upgrade-url" href="javascript:void(0)">Renew</a>'
);
jQuery( iframe.find( 'body #thrv-upgrade-url' ) ).on( 'click', function ( e ) {
e.preventDefault();
window.location.href = '<?php echo TD_TTW_Update_Manager::SUITE_URL;?>>'
} );
}
} );
</script>

View File

@@ -0,0 +1,93 @@
<?php
/** @var array $plugin_data */
/** @var stdClass $state */
/** @var string $slug plugin slug */
$slug = $state->update->slug;
/** @var string $version plugin version */
$version = $state->update->version;
?>
<p class="thrv-msg thrv-deny-updates">
<?php
echo sprintf(
__( 'Membership expired - there is a new version of %s available but your license must be renewed to update. ', 'thrive-dash' ),
$plugin_data['Name']
);
echo sprintf(
'<a class="thickbox open-plugin-details-modal" href="%s">%s</a>',
self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $slug . '&section=changelog&TB_iframe=true&width=772&height=877' ),
sprintf(
__( 'View version %s details', 'thrive-dash' ),
$version
)
);
?>
&nbsp;&nbsp;&nbsp;&nbsp;
<a class="ttw-rnw" href="https://thrivethemes.com/membership-pricing" target="_blank" rel="noopener">
<?php echo __( 'Renew', 'thrive-dash' ) ?>
</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<?php if ( isset( $recheck_url ) ) : ?>
<a class="ttw-cla" href="<?php echo $recheck_url; ?>">
<?php echo __( 'Check license again', 'thrive-dash' ); ?>
</a>
<?php endif; ?>
</p>
<style>
#<?php echo $slug ?>-update p:last-child {
display: none;
}
#<?php echo $slug ?>-update .thrv-msg:before {
content: "\f160";
color: #1e5496;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ttw-rnw, .ttw-cla {
color: #fff !important;
background-color: #1e5496;
text-decoration: none !important;
padding: 0 15px;
border-radius: 3px;
display: inline-block;
line-height: 28px;
}
.ttw-cla {
background-color: #eeeeee;
color: #32373c !important;
border: 1px solid #dfddd7;
}
</style>
<script>
jQuery( '#<?php echo $slug ?>-update .update-message p' )
.filter( function ( index, item ) {
return ! jQuery( item ).hasClass( 'thrv-msg' )
} ).remove();
jQuery( 'body' ).on( 'thickbox:iframe:loaded', function () {
var iframe = jQuery( '#TB_iframeContent' ).contents();
var updateUrl = iframe.find( '#plugin_update_from_iframe' );
if ( updateUrl.data( 'slug' ) === "<?php echo $slug ?>" ) {
iframe
.find( '#plugin-information-footer' )
.empty()
.html(
'<a class="button button-primary right" id="thrv-upgrade-url" href="javascript:void(0)">Renew</a>'
);
jQuery( iframe.find( 'body #thrv-upgrade-url' ) ).on( 'click', function ( e ) {
e.preventDefault();
window.location.href = '<?php echo TD_TTW_Update_Manager::SUITE_URL;?>>'
} );
}
} );
</script>

View File

@@ -0,0 +1,91 @@
<?php
/** @var array $plugin_data */
/** @var stdClass $state */
/** @var string $slug plugin slug */
$slug = $state->update->slug;
/** @var string $version plugin version */
$version = $state->update->version;
?>
<p class="thrv-msg thrv-deny-updates">
<?php
echo sprintf(
__( 'No license - there is a new version of %s available but no license could be found. ', 'thrive-dash' ),
$plugin_data['Name']
);
echo sprintf(
'<a class="thickbox open-plugin-details-modal" href="%s">%s</a>',
self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $slug . '&section=changelog&TB_iframe=true&width=772&height=877' ),
sprintf(
__( 'View version %s details', 'thrive-dash' ),
$version
)
);
?>
<a class="ttw-rnw" href="https://thrivethemes.com/membership-pricing" target="_blank" rel="noopener">
<?php echo __( 'Buy new license', 'thrive-dash' ) ?>
</a>
<?php if ( isset( $recheck_url ) ) : ?>
<a class="ttw-cla" href="<?php echo $recheck_url; ?>">
<?php echo __( 'Check license again', 'thrive-dash' ); ?>
</a>
<?php endif; ?>
</p>
<style>
#<?php echo $slug ?>-update p:last-child {
display: none;
}
#<?php echo $slug ?>-update .thrv-msg:before {
content: "\f160";
color: #1e5496;
height: 28px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ttw-rnw, .ttw-cla {
color: #fff !important;
background-color: #1e5496;
text-decoration: none !important;
padding: 0 15px;
border-radius: 3px;
display: inline-block;
line-height: 28px;
}
.ttw-cla {
background-color: #eeeeee;
color: #32373c !important;
border: 1px solid #dfddd7;
}
</style>
<script>
jQuery( '#<?php echo $slug ?>-update .update-message p' )
.filter( function ( index, item ) {
return ! jQuery( item ).hasClass( 'thrv-msg' )
} ).remove();
jQuery( 'body' ).on( 'thickbox:iframe:loaded', function () {
var iframe = jQuery( '#TB_iframeContent' ).contents();
var updateUrl = iframe.find( '#plugin_update_from_iframe' );
if ( updateUrl.data( 'slug' ) === "<?php echo $slug ?>" ) {
iframe
.find( '#plugin-information-footer' )
.empty()
.html(
'<a class="button button-primary right" id="thrv-upgrade-url" href="javascript:void(0)">Buy</a>'
);
jQuery( iframe.find( 'body #thrv-upgrade-url' ) ).on( 'click', function ( e ) {
e.preventDefault();
window.location.href = '<?php echo TD_TTW_Update_Manager::SUITE_URL;?>>'
} );
}
} );
</script>

View File

@@ -0,0 +1,5 @@
<div class="notice notice-info is-dismissible">
<p>
<?php echo __( 'Your Thrive Themes license has been successfully validated! You can now continue to receive product updates. Thank you for your continued support!', 'thrive-dash' ); ?>
</p>
</div>

View File

@@ -0,0 +1,22 @@
<p>
<strong>
<?php
echo sprintf(
__( 'Connection lost - there is a new version of %s available but your thrivethemes.com account must be %s in order to update. %s', 'thrive-dash' ),
$name,
sprintf(
'<a href="%s">%s</a>',
'admin.php?page=tve_dash_ttw_account',
__( 'connected', 'thrive-dash' )
),
sprintf(
'<a class="%s" aria-label="%s" href="%s">' . __( 'View version %s details', 'thrive-dash' ) . '</a>.',
'thickbox open-plugin-details-modal',
$name,
$details_url,
$version
)
)
?>
</strong>
</p>

View File

@@ -0,0 +1,27 @@
<p>
<strong>
<?php
echo sprintf(
__( 'License expired - there is a new version of %s available but your license must be %s to update. %s', 'thrive-dash' ),
$name,
sprintf(
'<a target="_blank" href="%s">%s</a>',
'https://thrivethemes.com/themebuilder/',
__( 'renewed', 'thrive-dash' )
),
sprintf(
'<a class="%s" aria-label="%s" href="%s">' . __( 'View version %s details', 'thrive-dash' ) . '</a>.',
'thickbox open-plugin-details-modal',
$name,
$details_url,
$version
)
)
?>
</strong>
<?php if ( isset( $recheck_url ) ) : ?>
<a class="ttw-cla" href="<?php echo $recheck_url; ?>">
<?php echo __( 'Check license again', 'thrive-dash' ); ?>
</a>
<?php endif; ?>
</p>

View File

@@ -0,0 +1,27 @@
<p>
<strong>
<?php
echo sprintf(
__( 'Membership expired - there is a new version of %s available but your license must be %s to update. %s', 'thrive-dash' ),
$name,
sprintf(
'<a target="_blank" href="%s">%s</a>',
'https://thrivethemes.com/themebuilder/',
__( 'renewed', 'thrive-dash' )
),
sprintf(
'<a class="%s" aria-label="%s" href="%s">' . __( 'View version %s details', 'thrive-dash' ) . '</a>.',
'thickbox open-plugin-details-modal',
$name,
$details_url,
$version
)
)
?>
</strong>
<?php if ( isset( $recheck_url ) ) : ?>
<a class="ttw-cla" href="<?php echo $recheck_url; ?>">
<?php echo __( 'Check license again', 'thrive-dash' ); ?>
</a>
<?php endif; ?>
</p>

View File

@@ -0,0 +1,36 @@
<p>
<strong>
<?php
echo sprintf(
__( 'No license - there is a new version of %s available but no license could be found for it. %s', 'thrive-dash' ),
$name,
sprintf(
'<a class="%s" aria-label="%s" href="%s">' . __( 'View version %s details', 'thrive-dash' ) . '</a>.',
'thickbox open-plugin-details-modal',
$name,
$details_url,
$version
)
)
?>
</strong>
<a class="ttw-rnw" href="https://thrivethemes.com/themebuilder/" target="_blank" rel="noopener">
<?php echo __( 'Buy new license', 'thrive-dash' ) ?>
</a>
<?php if ( isset( $recheck_url ) ) : ?>
<a class="ttw-cla" href="<?php echo $recheck_url; ?>">
<?php echo __( 'Check license again', 'thrive-dash' ); ?>
</a>
<?php endif; ?>
</p>
<style>
.ttw-rnw {
color: #fff !important;
background-color: #1e5496;
text-decoration: none !important;
padding: 0 15px;
border-radius: 3px;
display: inline-block;
line-height: 28px;
}
</style>

View File

@@ -0,0 +1,17 @@
<p>
<strong>
<?php
echo sprintf(
__( 'There is a new version of %s available. %s', 'thrive-dash' ),
$name,
sprintf(
'<a class="%s" aria-label="%s" href="%s">' . __( 'View version %s details', 'thrive-dash' ) . '</a>.',
'thickbox open-plugin-details-modal',
$name,
$details_url,
$version
)
)
?>
</strong>
</p>