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,14 @@
<div id="aff_modal" class="tvd-modal">
<div class="tvd-col tvd-m3 tvd-input-field">
<input placeholder="Affiliate ID" type="text" id="affiliate-id" value="">
<span id="aff-invalid">Invalid affiliate ID</span>
</div>
<p>Please make sure that you add a valid ID number</p>
<div class="">
<a class='tvd-modal-close'>Cancel</a>
<a class='tvd-waves-effect tvd-waves-light tvd-btn-small tvd-right tvd-btn-green tvd-save-aff-id'>Save</a>
</div>
</div>

View File

@@ -0,0 +1,99 @@
<div class="td-icon-modal-content">
<div id="cb-cloud-menu">
<div class="fixed top">
<div class="icons-input">
<?php dashboard_icon( 'search-regular' ); ?>
<input type="text" class="tvd-search-icon keyup click" data-fn="searchIcon"
data-fn-click="focusSearch" data-source="search"
placeholder="<?php echo esc_html__( 'Search', 'thrive-dash' ); ?>"/>
<?php dashboard_icon( 'close2', false, 'sidebar', 'click tvd-hidden', array( 'data-fn' => 'domClearSearch' ) ); ?>
</div>
</div>
<div class="icons-menu-wrapper">
<div class="icons-label-wrapper p-10 pl-20">
<span class="icons-label"><?php echo __( 'Icon style', 'thrive-dash' ); ?></span>
<span class="separator"></span>
</div>
<div class="td-icon-styles td-icon-filters">
<div class="td-icon-pack click mt-5 tvd-selected td-icon-default-style" data-fn="filterByStyle">
<span><?php echo __( 'All ', 'thrive-dash' ) ?></span></div>
</div>
<div class="icons-label-wrapper p-10 pl-20">
<span class="icons-label"><?php echo __( 'Icon packs', 'thrive-dash' ); ?></span>
<span class="separator"></span>
</div>
<div class="td-icon-packs td-icon-filters">
</div>
</div>
<div class="fixed bottom mt-10 mb-10">
<div class="td-icon-settings click pr-10 mb-10 mt-10 pl-20" data-fn="showSettings">
<hr>
<div class="pt-10 pb-10 icons-wrapper">
<?php dashboard_icon( 'cog-light' ); ?>
<span class="icons-label"><?php echo __( 'Manage icon packs', 'thrive-dash' ) ?></span>
<?php dashboard_icon( 'exclamation-circle-solid', false, 'sidebar', 'kit-warning', [
"data-tooltip" => "Something is wrong with your Font Awesome setup, click here to resolve",
"data-side" => "top",
"data-width" => "15%"
] ); ?>
</div>
<hr>
</div>
</div>
</div>
<div id="td-icon-content">
<span class="icons-title pl-10"><?php echo __( 'Icon library', 'thrive-dash' ); ?></span>
<div class="choose-icon mr-30 pl-10">
<span><?php echo __( 'Choose an icon', 'thrive-dash' ); ?></span>
<span class="td-icons-number"></span>
</div>
<div id="icon-pack-content" class="mt-10">
<div class="td-icons-wrapper pt-5">
<div class="td-icons-before" style="height: 4000px;"></div>
<div class="td-icons-rendered"></div>
<div class="td-icons-after"></div>
</div>
</div>
<div class="td-modal-footer flex-end pr-40">
<button type="button" class="tvd-right tvd-button medium tvd-modal-save">
<?php echo __( 'Select', 'thrive-dash' ); ?>
</button>
</div>
</div>
<div id="td-icon-settings" class="tvd-hidden">
<div class="tvd-fa-pro-settings">
<span class="icons-title mb-35"><?php echo __( 'Font Awesome Pack', 'thrive-dash' ); ?></span>
<span>
<?php echo __( 'To enable Font Awesome Pro icons, paste your kit ID or script below. Once your kit has been accepted, your new icons will be available under the matching filters.', 'thrive-dash' ); ?>
</span>
<a href="https://thrivethemes.com/tkb_item/how-to-add-font-awesome-pro-icons-in-thrive-architect/"
target="_blank"
class="mt-15 mb-15"><?php echo __( 'Learn how to use Font Awesome Pro here', 'thrive-dash' ); ?></a>
<div class="icons-input white tvd-fa-input pr-0">
<input type="text" class="change input tvd-fa-kit" data-fn="toggleProSettings"
placeholder="<?php echo __( 'Add your Font Awesome Pro Kit', 'thrive-dash' ); ?>">
<?php dashboard_icon( 'check-regular', false, 'sidebar', 'click tvd-hidden kit-action', array( 'data-fn' => 'handlePro' ) ); ?>
<?php dashboard_icon( 'trash-alt-light', false, 'sidebar', 'click tvd-hidden kit-action', array( 'data-fn' => 'toggleDeletePro' ) ); ?>
</div>
<div class="icons-input tvd-fa-warning tvd-hidden pr-0">
<span><?php echo __( 'Are you sure you want to delete your kit?', 'thrive-dash' ); ?></span>
<span class="mr-10 click kit-action"
data-fn="clearFAPro"><?php echo __( 'YES', 'thrive-dash' ); ?></span>
<span class="click kit-action"
data-fn="toggleProInput"><?php echo __( 'CANCEL', 'thrive-dash' ); ?></span>
</div>
<div class="kit-warning kit-warning-message">
<div class="warning-title">
<?php dashboard_icon( 'exclamation-circle-solid' ) ?>
<?php echo __( 'There was an issue accessing your Font Awesome Pro Kit', 'thrive-dash' ); ?>
</div>
<div class="warning-description">
<?php echo __( 'This usually occurs when your kit was deleted or you do not have an active subscription. Please check your Font Awesome account and update the above kit details as required.', 'thrive-dash' ); ?>
</div>
</div>
</div>
</div>
</div>
<?php include TVE_DASH_PATH . '/css/font/icon-library.svg'; ?>

View File

@@ -0,0 +1,38 @@
<div class="tvd-license-modal-content <#= model.license_class #>">
<img class="tvd-license-icon"
src="<?php echo TVE_DASH_URL ?>/css/images/licensing/licensing-<#= model.product_class #>-<#= model.license_class #>@2x.webp"
alt="License icon"/>
<div>
<h3>
<?php _e( 'Heads up! Your ', 'thrive-dash' ); ?>
<#= model.title #>
<?php _e( ' license has expired', 'thrive-dash' ); ?>
</h3>
<p><?php _e( "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' ); ?></p>
<# if ( model.license_class === 'grace-period' ) { #>
<p>
<?php
echo sprintf(
esc_html__( 'You may close this lightbox and continue using your software during your grace period for another %s.', 'thrive-dash' ), '<strong> <#= model.grace_time #> ' . __( 'days', 'thrive-dash' ) . '</strong>'
)
?>
</p>
<# } #>
<p>
<?php echo __( "Doesn't sound right? Your license might need to be refreshed.", 'thrive-dash' ); ?>
<br>
<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 class="tvd-license-buttons">
<button class="tvd-button-empty"
onclick="window.open('https://help.thrivethemes.com/en/articles/8223498-what-happens-when-your-thrive-product-license-expires', '_blank')">
<?php _e( 'Learn more', 'thrive-dash' ); ?></button>
<button class="tvd-button-action"
onclick="window.open('<#= model.license_link #>', '_blank')"><?php _e( 'Renew now', 'thrive-dash' ); ?></button>
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<div class="tvd-modal-preloader-wrapper">
<div class="tvd-modal-preloader">
<div class="tvd-preloader-wrapper tvd-big tvd-active">
<div class="tvd-spinner-layer tvd-spinner-blue-only">
<div class="tvd-circle-clipper tvd-left">
<div class="tvd-circle"></div>
</div>
<div class="tvd-gap-patch">
<div class="tvd-circle"></div>
</div>
<div class="tvd-circle-clipper tvd-right">
<div class="tvd-circle"></div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,6 @@
<div class="no-icons-container mr-40 ml-10" style="height: <#= height*0.95#>px;">
<span><?php dashboard_icon( 'file-search-solid' ) ?></span>
<span class="no-results mt-30 mb-5"><?php echo __( 'No results found', 'thrive-dash' ); ?></span>
<span><?php echo __( 'Try adjusting your search to find what you are looking for', 'thrive-dash' ); ?></span>
</div>
<?php include TVE_DASH_PATH . '/css/font/icon-library.svg'; ?>

View File

@@ -0,0 +1,17 @@
<div class="tvd-preloader-overlay tvd-page-preloader" id="tvd-hide-onload" style="display: none">
<div class="tvd-card-preloader">
<div class="tvd-preloader-wrapper tvd-bigger tvd-active">
<div class="tvd-spinner-layer tvd-spinner-blue-only">
<div class="tvd-circle-clipper tvd-left">
<div class="tvd-circle"></div>
</div>
<div class="tvd-gap-patch">
<div class="tvd-circle"></div>
</div>
<div class="tvd-circle-clipper tvd-right">
<div class="tvd-circle"></div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,144 @@
<div class="tva-modal-token-step tvi-step-one">
<div class="tvd-modal-content tva-choose-template">
<h3 class="tvd-modal-title"><?php echo __( 'Give Our Team Access to Your Site Temporarily', 'thrive-dash' ) ?></h3>
<p>
<?php echo __( 'You can safely and securely give our team access to your site in order to debug problems that you\'re having.', 'thrive-dash' ) ?>
<a href="https://thrivethemes.com/tkb_item/what-are-access-tokens-and-how-do-they-work/" target="_blank" class="tvd-blue-text">
<?php echo __( 'How does this work?', 'thrive-dash' ) ?>
</a>
</p>
</div>
<div class="tvd-modal-footer">
<div class="tvd-row">
<div class="tvd-col tvd-s3 tvd-no-margin-left">
<?php echo __( 'Give access for', 'thrive-dash' ) ?>
</div>
<div class="tvd-col tvd-s2 tvd-no-margin-left">
<div class="tvd-input-field">
<input type="text" id="tva-access-days" class="tva-access-days tvd-s4" name="tva-access-days" value="<#= this.model.get('valid_days') #>"/>
</div>
</div>
<div class="tvd-col tvd-s3 tvd-no-margin-left">
<?php echo __( 'days', 'thrive-dash' ) ?>
</div>
<div class="tvd-col tvd-s4 tva-personalize-button">
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tva-generate-token-data">
<?php echo __( 'Go', 'thrive-dash' ) ?>
</a>
</div>
</div>
</div>
</div>
<div class="tva-modal-token-step tvi-step-two">
<div class="tvd-modal-content tva-choose-template">
<# if ( this.model.get('disabled') ) { #>
<div class="tvd-row tvd-collapse tv-dash-token-expired">
<p><?php echo __( 'The token is curently not active.', 'thrive-dash' ) ?></p>
<p><?php echo __( 'Please generate a new token, or choose a new date until the token will be active.', 'thrive-dash' ) ?></p>
</div>
<# } else { #>
<div class="tvd-row tvd-collapse">
<h1><?php echo __( 'Here is your Access Token', 'thrive-dash' ) ?></h1>
<p><?php echo __( 'Copy this code and send it to our support team', 'thrive-dash' ) ?></p>
</div>
<# } #>
<div class="tvd-row tvd-collapse tvd-copy-row">
<div class="tvd-col tvd-s8 tvd-collapse tvd-copy-row">
<div class="tvd-input-field">
<input type="text" id="tva-generated-token" class="tva-generated-token tvd-copy" disabled="disabled" name="tva-generated-token"
value="<#= this.model.get('token') #>"/>
<label class="tvd-active" for="tva-generated-token"><?php echo __( 'Token', 'thrive-dash' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s4 tvd-collapse">
<div class="tvd-input-field tvd-margin-left-small tvd-margin-right-small">
<input type="text" id="tva-token-valid" class="tva-token-valid" name="tva-token-valid" placeholder="&nbsp;/ /&nbsp;"
data-value="<#= this.model.get('valid_until') #>" value="<#= this.model.get('valid_until') #>"/>
<label class="tvd-active" for="tva-token-valid"><?php echo __( 'Valid until', 'thrive-dash' ) ?></label>
</div>
</div>
</div>
</div>
<div class="tvd-row tvd-modal-footer">
<div class="tvd-row">
<# if(this.model.get('has_token')) { #>
<div class="tvd-col tvd-s5 tva-personalize-button">
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-red tvd-waves-light tvd-left tva-delete-token-ask">
<?php echo __( 'Remove access', 'thrive-dash' ) ?>
</a>
</div>
<# } #>
<div class="tvd-col <#= this.model.get('saved') ? 'tvd-s7' : 'tvd-s12' #>">
<div class="tvd-row tvd-collapse tvd-copy-row">
<div class="tvd-no-margin-left">
<div class="tvd-input-field">
<input type="hidden" id="tva-generated-token-hidden" class="tva-generated-token-hidden tvd-copy" disabled="disabled"
name="tva-generated-token-hidden"
value="<#= this.model.get('token') #>"/>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-right">
<span class="">
<a class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-copy-token tva-save-token tvd-right"
href="javascript:void(0)">
<span class=""><?php echo __( 'Copy & Close', 'thrive-dash' ) ?></span>
</a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tva-modal-token-step">
<div class="tvd-modal-content">
<div class="tvd-row tvd-collapse tv-dash-token-expired">
<h3><?php echo __( 'Something went wrong.', 'thrive-dash' ) ?></h3>
<p><?php echo __( 'It seems that there\'s a connection problem and the token cannot be generated, if you would like to add your site details manually please click ', 'thrive-dash' ) ?>
<a class="tvd-text-green" href="https://thrivethemes.com/members/myaccount/"
target="_blank"><?php echo __( 'here', 'thrive-dash' ) ?></a>.</p>
</div>
</div>
<div class="tvd-row tvd-modal-footer">
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-gray tvd-waves-light tvd-right tvd-modal-close">
<?php echo __( 'Close', 'thrive-dash' ) ?>
</a>
</div>
</div>
</div>
</div>
<div class="tva-modal-token-step tvd-card tvd-red tvd-delete-token-card">
<div class="tvd-card-content">
<h3 class="tvd-margin-top">
<?php echo __( 'Are you sure you want to delete the access token?', 'thrive-dash' ) ?>
</h3>
</div>
<div class="tvd-card-action">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<a class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-left tvd-delete-token-yes">
<?php echo __( 'Yes, delete', 'thrive-dash' ) ?>
</a>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<a class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-right tvd-delete-token-no">
<?php echo __( 'No, keep it', 'thrive-dash' ) ?>
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,4 @@
<div class="tvd-tag" data-slug="<#= model.get('slug') #>">
<span class="tvd-input-field" role="textbox" contenteditable=""><#= model.get('name') #></span>
<span class="tvd-remove-tag">&times;</span>
</div>

View File

@@ -0,0 +1,8 @@
<div class="tvd-tags-heading"></div>
<div class="tvd-tags-list">
<div class="tvd-add-tag-wrapper">
<span class="tvd-no-tags"></span>
<div class="tvd-add-tag-toggle">+&nbsp;<span></span></div>
<input class="tvd-add-tag tvd-hide" type="text">
</div>
</div>

View File

@@ -0,0 +1,39 @@
<?php /** @var \TD\DB_Updater\Updater $update_handler */ ?>
<div class="td-update">
<div class="td-content">
<?php $update_handler->output_welcome_message(); ?>
<div class="td-error" id="td-error-message" style="display: none"></div>
<div class="btn-action">
<button class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green db-update-start fm">
<i class="tvd-icon-spinner mdi-pulse tvd-icon-medium"></i>
<span>Start upgrade</span>
</button>
<a href="<?php echo $update_handler->get_dashboard_url(); ?>" style="display: none" class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green td-finished">
<?php echo esc_html__( 'Finished! Click here to resume opening ' . $update_handler->get_product_name(), 'thrive-dashboard' ); ?>
</a>
<div class="td-error" style="display: none">
<button style="display: none" class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green td-error td-reload">
<?php echo esc_html__( 'Try Again', 'thrive-dashboard' ); ?>
</button>
</div>
<div class="step-progress hide-start">
<div class="progress-top">
<label for="td-progress">Overall progress:</label>
<progress id="td-progress" max="100" value="0"> 0%</progress>
</div>
<div class="progress-bottom gray-text text-lighten-1" id="td-speed-details"></div>
</div>
</div>
<div class="td-update-out hide-start">
<pre></pre>
</div>
</div>
</div>
<script type="text/javascript">
jQuery( function ( $ ) {
var updater = new TVE_Dash.views.DbUpdater( {
el: $( '.td-update' )[ 0 ],
updater: <?php echo json_encode( tve_dash_get_updater_key( $update_handler ) ); ?>
} );
} );
</script>

View File

@@ -0,0 +1,36 @@
<div class="tvd-header">
<nav id="tvd-nav">
<div class="nav-wrapper">
<div class="tve-logo tvd-left">
<a href="<?php menu_page_url( 'tve_dash_section' ); ?>"
class="tvd-users-dashboard-logo"
title="<?php echo __( 'Thrive Dashboard', 'thrive-dash' ) ?>">
<span class="tvd-logo-container">
<img class="thrive_admin_logo"
src="<?php echo TVE_DASH_URL ?>/css/images/thrive-logo.png"
alt="">
</span>
</a>
</div>
<ul id="tvd-dash-submenu" class="tvd-right">
<?php do_action( 'tvd_notification_inbox' ); ?>
<li>
<a id="tvd-support-token" href="javascript:void(0)" class=" tvd-btn tvd-btn-green tvd-full-btn dashtoken">
<?php _e( 'Support login', 'thrive-dash' ); ?>
</a>
</li>
</ul>
</div>
</nav>
</div>
<div class="td-app-notification-overlay overlay close"></div>
<div class="td-app-notification-drawer">
<div class="td-app-notification-holder">
<div class="td-app-notification-header notification-header-notify-td"></div>
<div class="td-app-notification-wrapper notification-wrapper-notify-td"></div>
<div class="notification-footer notification-footer-notify-td"></div>
</div>
</div>
<?php include TVE_DASH_PATH . '/templates/share.phtml'; ?>

View File

@@ -0,0 +1,12 @@
<div class="tvd-modal-content yt-video">
<iframe width="800px" height="450px" allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen msallowfullscreen allow="autoplay; encrypted-media"></iframe>
</div>
<a class="tvd-modal-action tvd-modal-close tvd-modal-close-x tvd-modal-close-x-yt" href="javascript:void(0)">
<span class="tvd-icon-close-modal">
<svg id="icon-close2" viewBox="0 0 30 32">
<path d="M0.655 2.801l1.257-1.257 27.655 27.655-1.257 1.257-27.655-27.655z"/>
<path d="M28.31 1.543l1.257 1.257-27.655 27.655-1.257-1.257 27.655-27.655z"/>
</svg></span>
</a>

View File

@@ -0,0 +1,18 @@
<?php
/** @var TVE_Dash_Product_Abstract $this */
?>
<div class="tvd-col tvd-s6 tvd-ms6 tvd-m4 tvd-l3" id="tvd-product-<?php echo $this->get_tag() ?>">
<div class="tvd-card tvd-white tvd-medium">
<div class="tvd-card-content">
<?php echo $this->render_more_links() ?>
<div class="tvd-center-align">
<img src="<?php echo $this->logoUrl; ?>" alt="" class="tvd-responsive-img">
</div>
<h2 class="tvd-card-title"><?php echo $this->title ?></h2>
<p class="tvd-center"><?php echo $this->description ?></p>
</div>
<div class="tvd-card-action">
<span><?php echo $this->render_button($this->title) ?></span>
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
<div><?php echo $exception->getMessage() ?></div>

View File

@@ -0,0 +1,98 @@
<?php
/** @var $this TVE_Dash_Product_Abstract */
?>
<div class="tvd-col tvd-s6 tvd-ms6 tvd-m4 tvd-l3 tvd-inactive-product" id="tvd-product-<?php echo $this->get_tag() ?>">
<div class="tvd-card tvd-gray tvd-medium tvd-disabled" data-state="inactive">
<div class="tvd-card-content">
<div class="tvd-center-align">
<img src="<?php echo $this->logoUrl; ?>" alt="" class="tvd-responsive-img">
</div>
<h2 class="tvd-card-title"><?php echo $this->title; ?></h2>
<p class="tvd-center">
<?php echo $this->description ?>
</p>
<div class="tvd-card-action">
<a class="tve-dash-show-license-form tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-blue tvd-full-btn">
<?php echo __("Activate License", 'thrive-dash') ?>
</a>
</div>
</div>
</div>
<div class="tvd-card tvd-gray tvd-medium tvd-disabled" data-state="form" style="display: none;">
<div class="tvd-card-content">
<div class="tvd-center-align">
<img src="<?php echo $this->logoUrl; ?>" alt="<?php echo $this->title ?>"
class="tvd-responsive-img" height="50" width="50">
</div>
<h4 class="tvd-card-title"><?php echo __( "Enter your license details:", 'thrive-dash' ) ?></h4>
<form class="tve-dash-item-license-form tvd-col tvd-s12">
<div class="tvd-row">
<div class="tvd-input-field">
<input id="email-<?php echo $this->get_tag() ?>" type="email" name="email" class="tvd-validate" value="">
<label for="email-<?php echo $this->get_tag() ?>"><?php echo __( "Email address", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="license-<?php echo $this->get_tag() ?>" type="text" name="license" class="tvd-validate" value="">
<label for="license-<?php echo $this->get_tag() ?>"><?php echo __( "License key", 'thrive-dash' ) ?></label>
</div>
<input type="hidden" name="tag" value="<?php echo $this->get_tag() ?>">
</div>
<div class="tvd-card-action">
<button type="submit"
class="tve-dash-item-license-btn tvd-waves-light tvd-btn tvd-btn-blue tvd-full-btn">
<?php echo __( "Validate", 'thrive-dash' ) ?>
</button>
<button type="button"
class="tve-dash-show-inactive-state tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-full-btn tvd-btn-margin-top tvd-waves-effect">
<?php echo __( "Cancel", 'thrive-dash' ) ?>
</button>
</div>
</form>
</div>
</div>
<div class="tvd-card tvd-green tvd-medium" data-state="success" style="display: none;">
<div class="tvd-card-content">
<div class="tvd-center-align">
<img src="<?php echo $this->logoUrlWhite ?>" alt="<?php echo $this->title ?>" class="tvd-responsive-img">
</div>
<div class="tvd-center-align">
<i class="tvd-icon-check tvd-icon-large tvd-icon-top"></i>
</div>
<h2 class="tvd-center"><?php echo __("License Activated", 'thrive-dash') ?></h2>
</div>
</div>
<div class="tvd-card tvd-orange tvd-medium" data-state="error" style="display: none;">
<div class="tvd-card-content">
<div class="tvd-center-align">
<img src="<?php echo $this->logoUrlWhite ?>" width="70" alt="<?php echo $this->title ?>" class="tvd-responsive-img">
</div>
<h3 class="tvd-card-title">
<?php echo __("We weren't able to validate your license.", 'thrive-dash') ?>
</h3>
<p class="tvd-center tvd-card-spacer">
<?php echo __("Reason:", 'thrive-dash') ?> <span class="tvd-license-error"></span>
</p>
</div>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tve-dash-show-inactive-state tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-waves-effect">
<?php echo __("Cancel", 'thrive-dash') ?>
</a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tve-dash-show-license-form tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-waves-effect tvd-right">
<?php echo __("Retry", 'thrive-dash') ?>
</a>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,100 @@
<?php require_once( TVE_DASH_PATH . '/templates/header.phtml' ); ?>
<div class="tvd-container">
<?php if ( ! empty( $products ) ): ?>
<h3 class="tvd-section-title"><?php echo __( "Your installed products", 'thrive-dash' ) ?></h3>
<div class="tvd-row" id="tvd-installed-products">
<?php /** @var TVE_Dash_Product_Abstract $item */ ?>
<?php foreach ( $products as $item ) : ?>
<?php $item->render(); ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if ( ! empty( $thrive_features ) ) : ?>
<h3 class="tvd-section-title"><?php echo __( 'Thrive features', 'thrive-dash' ) ?></h3>
<div class="tvd-row">
<?php foreach ( $thrive_features as $key => $thrive_feature ) : ?>
<div class="tvd-col tvd-s6 tvd-ms6 tvd-m4 tvd-l3">
<div class="tvd-card tvd-white tvd-medium">
<div class="tvd-card-content tvd-new-cc">
<div class="tvd-center-align tvd-w-svg">
<span><?php echo dashboard_icon( $thrive_feature['icon'] ) ?></span>
</div>
<h2 class="tvd-card-title"><?php echo $thrive_feature['title'] ?></h2>
<p class="tvd-center"><?php echo $thrive_feature['description'] ?></p>
<div class="tvd-card-action">
<a class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn" href="<?php echo $thrive_feature['btn_link'] ?>"><?php echo $thrive_feature['btn_text'] ?></a>
</div>
</div>
</div>
</div>
<?php endforeach ?>
</div>
<?php endif ?>
<?php /* these are examples of the current feature set:
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6 tvd-l3">
<div class="tvd-card tvd-white tvd-medium">
<div class="tvd-card-content">
<div class="tvd-center-align">
<i class="tvd-icon-exchange tvd-icon-large"></i>
</div>
<h2 class="tvd-card-title"><?php echo __("API Connections", 'thrive-dash') ?></h2>
<p><?php echo __("Connect to your email marketing system, reCaptcha, email delivery services & more.", 'thrive-dash') ?></p>
<div class="tvd-card-action">
<a class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn" href="<?php echo add_query_arg('page', 'tve_dash_api_connect', admin_url('admin.php')) ?>"><?php echo __("Manage Connections", 'thrive-dash') ?></a>
</div>
</div>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-l3">
<div class="tvd-card tvd-white tvd-medium">
<div class="tvd-card-content">
<div class="tvd-center-align">
<i class="tvd-icon-font tvd-icon-large"></i>
</div>
<h2 class="tvd-card-title"><?php echo __("Custom Fonts", 'thrive-dash') ?></h2>
<p><?php echo __("Add & edit Google Fonts and other custom fonts to use in your Thrive products.", 'thrive-dash') ?></p>
<div class="tvd-card-action">
<a class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn" href="<?php echo add_query_arg('page', 'tve_dash_font_manager', admin_url('admin.php')) ?>"><?php echo __("Manage Fonts", 'thrive-dash'); ?></a>
</div>
</div>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-l3">
<div class="tvd-card tvd-white tvd-medium">
<div class="tvd-card-content">
<div class="tvd-center-align">
<i class="tvd-icon-rocket tvd-icon-large"></i>
</div>
<h2 class="tvd-card-title"><?php echo __("Retina Icons", 'thrive-dash') ?></h2>
<p><?php echo __("Add & edit fully scalable icons with our font icon manager.", 'thrive-dash') ?></p>
<div class="tvd-card-action">
<a class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn" href="<?php echo add_query_arg('page', 'tve_dash_icon_manager', admin_url('admin.php')) ?>"><?php echo __("Manage Icons", 'thrive-dash'); ?></a>
</div>
</div>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-l3">
<div class="tvd-card tvd-white tvd-medium">
<div class="tvd-card-content">
<div class="tvd-center-align">
<i class="tvd-icon-cogs tvd-icon-large"></i>
</div>
<h2 class="tvd-card-title"><?php echo __("General Settings", 'thrive-dash') ?></h2>
<p><?php echo __("Shared settings between multiple themes and plugins.", 'thrive-dash') ?></p>
<div class="tvd-card-action">
<a class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn" href="<?php echo add_query_arg('page', 'tve_dash_general_settings_section', admin_url('admin.php')) ?>"><?php echo __("Manage Settings", 'thrive-dash'); ?></a>
</div>
</div>
</div>
</div>
</div>
END: examples of the current feature set */ ?>
</div>
<?php include TVE_DASH_PATH . '/css/font/dashboard-icons.svg' ?>

View File

@@ -0,0 +1,127 @@
<?php require_once( TVE_DASH_PATH . '/templates/header.phtml' ); ?>
<div class="tvd-container">
<h3 class="tvd-section-title"><?php echo __( 'Thrive product licenses', 'thrive-dash' ); ?></h3>
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6 tvd-offset-m4">
<div class="tvd-card tvd-white" data-state="form">
<div class="tvd-card-content">
<h2 class="tvd-card-title">
<?php echo __( 'Enter your license details:', 'thrive-dash' ); ?>
</h2>
<div class="tvd-v-spacer vs-2"></div>
<form id="license_manager_form" method="post">
<div class="tvd-input-field">
<input type="email" id="email" name="email" value=""/>
<label for="email"><?php echo __( 'Email address', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input type="text" name="license" id="license" value=""/>
<label for="license"><?php echo __( 'License key', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-v-spacer vs-2"></div>
<button class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-blue tvd-full-btn"
type="submit"><?php echo __( 'Activate License', 'thrive-dash' ) ?></button>
<div class="tvd-v-spacer vs-2"></div>
<p class="tvd-center-align"><?php echo __( 'Need help finding your license key?', 'thrive-dash' ) ?></p>
<p class="tvd-center-align tvd-open-video" data-source="VwFChgdiIa0">
<a>
<?php echo __( 'Click here', 'thrive-dash' ) ?>
</a>
</p>
</form>
</div>
</div>
<div class="tvd-card tvd-orange tvd-medium" data-state="error" style="display: none">
<div class="tvd-card-content">
<h2 class="tvd-card-title">
<?php echo __( "Sorry, we weren't able to validate your license.", 'thrive-dash' ) ?>
</h2>
<p class="tvd-center tvd-card-spacer">
<strong><?php echo __( "Reason:", 'thrive-dash' ) ?></strong>
<span id="tvd-license-error"></span>
</p>
<p class="tvd-center-align"><?php echo sprintf( __( "To resolve this problem, please %s and try entering it again", 'thrive-dash' ), "<strong>" . __( "check your license key", 'thrive-dash' ) . "</strong>" ) ?></p>
<div class="tvd-v-spacer vs-2"></div>
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-center-align">
<a class="tvd-license-manager-retry tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-waves-effect"
href="javascript:void(0)"><?php echo __( "Retry", 'thrive-dash' ) ?></a>
</div>
</div>
</div>
</div>
<div class="tvd-card tvd-green" data-state="success" style="display: none">
<div class="tvd-card-content">
<div class="tvd-center-align">
<i class="tvd-icon-check tvd-icon-large"></i>
</div>
<h2 class="tvd-card-title">
<?php echo __( 'Success!', 'thrive-dash' ) ?>
</h2>
<table class="tvd-bordered">
<tr>
<td><?php echo __( "Product:", 'thrive-dash' ) ?></td>
<td><span id="tvd-license-name"></span></td>
</tr>
<tr>
<td><?php echo __( "Licenses used:", 'thrive-dash' ) ?></td>
<td><span id="tvd-license-uses"></span></td>
</tr>
<tr>
<td><?php echo __( "License type:", 'thrive-dash' ) ?></td>
<td><span id="tvd-license-type"></span></td>
</tr>
</table>
<div class="tvd-v-spacer vs-2"></div>
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-license-manager-new tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-waves-effect"
href="javascript:void(0)"><?php echo __( "New License", 'thrive-dash' ) ?></a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<?php if ( ! empty( $return_url ) ) : ?>
<a class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-waves-effect"
href="<?php echo $return_url; ?>">
<?php echo __( "Go Back", 'thrive-dash' ) ?>
</a>
<?php else : ?>
<a class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-waves-effect"
href="<?php echo admin_url( 'admin.php?page=tve_dash_section' ); ?>">
<?php echo __( "Go To Dashboard", 'thrive-dash' ) ?>
</a>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tvd-row">
<?php if ( ! empty( $products ) ) : ?>
<?php /** @var $product TVE_Dash_Product_Abstract */ ?>
<?php foreach ( $products as $product ) : ?>
<div class="tvd-col tvd-s12 tvd-m6 tvd-offset-m4">
<div class="tvd-card tvd-green tvd-card-notice">
<div class="tvd-card-content tvd-card-content-small">
<i class="tvd-icon-check tvd-left"></i>
<p>
<strong><?php echo __( "Active:", 'thrive-dash' ) ?></strong> <?php echo $product->get_title() ?>
</p>
</div>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>

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>

View File

@@ -0,0 +1,45 @@
<div id="tvd-modal1" class="tvd-modal tvd-share-modal">
<div class="tvd-modal-content tvd-center-align">
<?php $current_screen = get_current_screen(); ?>
<div id="fb-root"></div>
<?php
$url = 'https://thrivethemes.com/';
$fb = tve_dash_get_thrivethemes_shares( 'facebook' );
?>
<span class="tvd-icon-heart tvd-share-icon"></span>
<div class="tvd-v-spacer"></div>
<h2>
<?php echo __( 'Share the Love', 'thrive-dash' ) ?>
</h2>
<div class="tvd-v-spacer"></div>
<p>
<?php echo __( 'Love Thrive Themes? Help Us Spread the Word!', 'thrive-dash' ) ?>
</p>
<div class="share-thrive">
<a class="tvd-share tvd-share-facebook"
href="http://www.facebook.com/share.php?u=<?php echo $url ?>&title=''"
onclick="window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=350,width=500');return false;">
<span class="tvd-share-item">
<span class="tvd-share-count-icon"></span>
<span
class="tvd-share-count-text"><?php echo __( 'SHARE', 'thrive-dash' ) ?></span>
</span>
<?php if ( ! empty( $fb ) ) : ?>
<span class="tvd-share-count"><?php echo $fb; ?></span>
<?php endif ?>
</a>
<a class="tvd-share tvd-share-twitter"
href="http://twitter.com/intent/tweet?status=WordPress themes for startups and business builders <?php echo $url; ?>"
onclick="window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=350,width=500');return false;">
<span class="tvd-share-item">
<span class="tvd-share-count-icon"></span>
<span class="tvd-share-count-text"><?php echo __( 'TWEET', 'thrive-dash' ) ?></span>
</span>
</a>
</div>
</div>
<a class="tvd-modal-action tvd-modal-close tvd-modal-close-x" href="javascript:void(0)">
<i class="tvd-icon-close2"></i>
</a>
</div>