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,3 @@
<div class="notice notice-info is-dismissible">
<p><?php echo $error ?></p>
</div>

View File

@@ -0,0 +1,23 @@
<?
/** @var td_Connection $this */
?>
<div class="td-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-dash' ) ?>
</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-dash' ), '<a target="_blank" href="https://thrivethemes.com/support/">' . __( "click here", 'thrive-dash' ) . '</a>' ); ?>
</p>
<a class="td-retry" href="<?php echo TD_TTW_Update_Manager::get_instance()->get_admin_url(); ?>">
<?php echo __( 'Try again', 'thrive-dash' ) ?>
</a>
</div>
<div id="td-notification-box" class="td-error td-show">
<h3><?php echo __( 'Ooops!', 'thrive-dash' ) ?></h3>
<p><?php echo __( 'Something went wrong, cant connect to account.', 'thrive-dash' ) ?></p>
</div>

View File

@@ -0,0 +1,24 @@
<?php
/** @var TD_TTW_Connection $this */
/** @var string $login_url */
$login_url = TD_TTW_Connection::get_instance()->get_login_url();
?>
<div class="td-connect-screen">
<div>
<h2><?php echo __( 'Connect to ThriveThemes.com to receive updates.', 'thrive-dash' ) ?></h2>
<p><?php echo __( 'Click on the button below to be taken to Thrive Themes and simply log into your account to access product updates', 'thrive-dash' ) ?></p>
<p><?php echo __( 'Make sure that you use the same username and password that used when signing up at ThriveThemes.com', 'thrive-dash' ) ?></p>
<hr class="td-le-rule"/>
<a class="td-login" href="<?php echo $login_url; ?>">
<?php echo __( 'Log into my account', 'thrive-dash' ) ?>
</a>
<p>
<a href="http://help.thrivethemes.com/en/articles/4957014-having-trouble-logging-into-your-thrive-themes-account/"
target="_blank"><?php echo __( "I'm having difficulties.", 'thrive-dash' ) ?></a>
</p>
</div>
</div>

View File

@@ -0,0 +1,69 @@
<?php if ( TD_TTW_Connection::is_debug_mode() ) : ?>
<?php
$urls = array(
'local' => 'http://local.thrivethemes.com',
'live' => 'https://thrivethemes.com',
'staging1' => 'https://staging.thrivethemes.com',
'staging2' => 'https://staging2.thrivethemes.com',
'staging3' => 'https://staging3.thrivethemes.com',
'staging5' => 'https://staging-ttw.com',
'hetzner' => 'https://staging-hetz.thrivethemes.com',
);
?>
<h2>Debug mode: ON</h2>
<ul>
<li>
<label for="tpm-debug-server">Hit server</label>:
<select id="tpm-debug-server">
<?php foreach ( $urls as $name => $url ) : ?>
<option <?php echo $url === TD_TTW_Connection::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 TD_TTW_Connection::get_ttw_url() ?>"
target="_blank"><?php echo TD_TTW_Connection::get_ttw_url() ?></a>
</li>
<li>
<p><strong>License details fetched from TTW:</strong></p>
<pre>
<?php foreach ( TD_TTW_User_Licenses::get_instance()->get_all() as $license ) : ?>
<?php print_r( $license->get_data() ); ?>
<?php endforeach; ?>
</pre>
</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>TPM Token</b> <?php echo get_option( 'tpm_token', 'not_set' ) ?>
</li>
</ul>
<?php endif; ?>
<script type="text/javascript">
( function ( $ ) {
$( function () {
var $list = $( '#tpm-debug-server' );
$list.change( function () {
window.location = '<?php echo TD_TTW_Update_Manager::get_instance()->get_admin_url() ?>' + '&td_action=set_url&url=' + this.value;
} );
} );
} )( jQuery );
</script>

View File

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

View File

@@ -0,0 +1,38 @@
<?php /** @var $this TD_TTW_User_Licenses */ ?>
<div class="td-license-cnt">
<h2 class="products-h2">
<?php echo __( 'License Details', 'thrive-dash' ) ?>
</h2>
<div class="td-refresh-license">
<a href="<?php echo $this->get_recheck_url() ?>">
<?php echo __( 'Refresh', 'thrive-dash' ) ?>
</a>
</div>
<?php foreach ( $this->get_licenses_details() as $license_data ) : ?>
<?php $license = new TD_TTW_License( $license_data ); ?>
<?php /** @var TD_TTW_License $license */ ?>
<div class="td-ttw-license-details">
<span> <?php echo $license->get_name() ?> </span>
<span class="td-badge<?php echo ! $license->is_active() ? '-expired' : '' ?>">
<?php echo $license->get_state(); ?>
</span>
<div class="td-rcnt">
<?php if ( ! $license->is_refunded() && ! empty( $license->get_expiration() ) ) : ?>
<span><?php echo __( 'Renewal date - ', 'thrive-dash' ) . $license->get_expiration(); ?></span>
<?php elseif ( ! empty( $license->get_refunded_date() ) ) : ?>
<span><?php echo __( 'Refund date - ', 'thrive-dash' ) . $license->get_refunded_date(); ?></span>
<?php endif; ?>
</div>
<?php if ( ! $license->is_active() ) : ?>
<div class="td-renew-license">
<a href="<?php echo TD_TTW_Update_Manager::SUITE_URL ?>">
<?php echo __( 'Renew license', 'thrive-dash' ) ?>
</a>
</div>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>

View File

@@ -0,0 +1,19 @@
<div class="notice error tve-dashboard-license-message tvd-license <?php echo $classes ?>">
<svg class="td-icon">
<use xlink:href="#icon-multiple"></use>
</svg>
<h4><?php echo __( 'Multiple thrive subscriptions have expired.', 'thrive-dash' ) ?></h4>
<p>
<?php echo __( "An active license is needed to access your software or edit your content. Youll also get access to new features, updates, security improvements, templates and support. Your visitors will still be able to access any content you've created.", 'thrive-dash' ) . ' ' . $extra_text ?>
<?php echo __( "Doesn't sound right? Your license might need to be refreshed.", 'thrive-dash' ); ?>
<a href="<?php echo TD_TTW_User_Licenses::get_instance()->get_recheck_url(); ?>">
<?php echo __( 'Click here to refresh your license now.', 'thrive-dash' ) ?>
</a>
</p>
<div>
<a href="https://help.thrivethemes.com/en/articles/8223498-what-happens-when-your-thrive-product-license-expires"
target="_blank"><?php echo __( 'Learn more', 'thrive-dash' ) ?></a>
<a class="tve-license-link" target="_blank"
href="<?php echo tvd_get_individual_plugin_license_link() ?>"><?php echo __( 'Renew now', 'thrive-dash' ) ?></a>
</div>
</div>

View File

@@ -0,0 +1,20 @@
<div class="notice error tve-dashboard-license-message tvd-license <?php echo $classes ?>">
<svg class="td-icon">
<use xlink:href="#icon-multiple"></use>
</svg>
<h4><?php echo __( 'Your Thrive Suite subscription has expired.', 'thrive-dash' ) ?></h4>
<p>
<?php echo __( "An active license is needed to access your software or edit your content. Youll also get access to new features, updates, security improvements, templates and support. Your visitors will still be able to access any content you've created.", 'thrive-dash' ) . ' ' . $extra_text ?>
<?php echo __( "Doesn't sound right? Your license might need to be refreshed.", 'thrive-dash' ); ?>
<a href="<?php echo TD_TTW_User_Licenses::get_instance()->get_recheck_url(); ?>">
<?php echo __( 'Click here to refresh your license now.', 'thrive-dash' ) ?>
</a>
</p>
<div>
<a href="https://help.thrivethemes.com/en/articles/8223498-what-happens-when-your-thrive-product-license-expires"
target="_blank"><?php echo __( 'Learn more', 'thrive-dash' ) ?></a>
<a class="tve-license-link" target="_blank"
href="<?php echo tvd_get_individual_plugin_license_link() ?>"><?php echo __( 'Renew now', 'thrive-dash' ) ?></a>
</div>
</div>

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>