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,109 @@
<div class="tvd-error-log-table">
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s6">
<h3 class="tvd-title"><?php echo esc_html__( "Thrive API Connections - error logs", 'thrive-dash' ) ?></h3>
</div>
<div class="tvd-col tvd-s6">
<h5 class="tvd-right-align">
<span class="tvd-error-log-item-number"></span>
<span><?php echo esc_html__( "items", 'thrive-dash' ) ?></span>
</h5>
</div>
</div>
<table class="tvd-collection tvd-with-header tvd-not-fixed-table">
<thead>
<tr class="tvd-collection-header">
<td>
<h5>
<?php echo esc_html__( 'Form data', 'thrive-dash' ) ?>
</h5>
</td>
<td class="tvd-error-log-connection tvd-col tvd-s1 tvd_filter_desc tvd-pointer"
data-val="connection">
<h5>
<?php echo esc_html__( 'Service', 'thrive-dash' ) ?>
<span class="tvd-icon-expanded tvd-orderby-icons"></span>
</h5>
</td>
<td class="tvd-error-log-date tvd-col tvd-s1 tvd-pointer tvd_filter_desc tvd-order-filter-active"
data-val="date">
<h5>
<?php echo esc_html__( 'Date', 'thrive-dash' ) ?>
<span class="tvd-icon-expanded tvd-orderby-icons"></span>
</h5>
</td>
<td>
<h5>
<?php echo esc_html__( 'Error Message', 'thrive-dash' ) ?>
</h5>
</td>
<td class="tvd-center-align">
<h5>
<?php echo esc_html__( 'Actions', 'thrive-dash' ) ?>
</h5>
</td>
</tr>
</thead>
<tbody class="tvd-error-log-table-content">
</tbody>
<tfoot>
<tr class="tvd-collection-item">
<td colspan="4">
<div class="tvd-right">
<p class="tvd-inline-block tvd-small-text tvd-no-margin">
<strong>
<?php echo esc_html__( 'Rows per page', 'thrive-dash' ) ?>
</strong>
</p>
<div class="tvd-input-field tvd-inline-block tvd-input-field-small tvd-no-margin">
<select class="" id="tvd-row-nr-per-page" tabindex="-1"
aria-hidden="true">
<option value="5">5</option>
<option value="10" selected>10</option>
<option value="15">15</option>
<option value="20">20</option>
</select>
</div>
<span class="tvd-inline-block tvd-margin-left"></span>
<p class="tvd-inline-block tvd-small-text tvd-no-margin">
<strong>
<?php echo esc_html__( 'Jump to page', 'thrive-dash' ) ?>
</strong>
</p>
<div class="tvd-input-field tvd-inline-block">
<input class="tvd-jump-to-page tvd-no-margin tvd-input-field-small" type="text" name="current_page"
data-error="<?php echo esc_html__( 'Page doesn\'t exist', 'thrive-dash' ) ?>"
id="current-page-input" value="">
</div>
<a class="tvd-jump-to-page-button tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-blue tvd-btn-small tvd-margin-left-small"
href="javascript:void(0)" tabindex="1"><?php echo esc_html__( 'Go', 'thrive-dash' ) ?></a>
</div>
</td>
<td>
<div class="tvd-pagination-container">
<p class="tvd-inline-block tvd-small-text">
<strong>
<?php echo esc_html__( 'Page', 'thrive-dash' ) ?>
<span class="tvd-error-log-current-page"></span>&nbsp;
<?php echo esc_html__( 'of', 'thrive-dash' ) ?>&nbsp;
<span class="tvd-error-log-total-pages"></span>
</strong>
</p>
<a class="tvd-previous-page tvd-text-gray tvd-margin-left" href="javascript:void(0)"><span
class="tvd-icon-chevron-left"></span></a>
<a class="tvd-next-page tvd-text-gray tvd-margin-left" href="javascript:void(0)"><span
class="tvd-icon-chevron-right2"></span></a>
</div>
</td>
</tr>
</tfoot>
</table>
</div>
<a class="tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-gray"
href="<?php echo esc_url( admin_url( "admin.php?page=tve_dash_api_connect" ) ); ?>"><?php echo esc_html__( "Back to API Connections", 'thrive-dash' ) ?></a>
<script type="text/template" id="tvd-error-log-entry-template">
<?php include plugin_dir_path( __FILE__ ) . 'error-log-entry.php'; ?>
</script>

View File

@@ -0,0 +1,309 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
unset( $available_apis['zoom'] );
?>
<script type="text/javascript">
TVE_Dash.API.ConnectedAPIs = new TVE_Dash.API.collections.Connections(<?php echo Thrive_Dash_List_Manager::to_json( $connected_apis ); ?>);
TVE_Dash.API.AvailableAPIs = new TVE_Dash.API.collections.Connections(<?php echo Thrive_Dash_List_Manager::to_json( $available_apis ); ?>);
TVE_Dash.API.ToBeConnected = new TVE_Dash.API.models.ToBeConnected();
TVE_Dash.API.ThirdPartyAPIs = new Backbone.Collection(<?php echo json_encode( Thrive_Dash_List_Manager::get_third_party_autoresponders() ); ?>);
TVE_Dash.API.APITypes = new TVE_Dash.API.collections.APITypes(<?php echo json_encode( $types ); ?>);
</script>
<?php include dirname( __FILE__ ) . '/admin-messages.php' ?>
<?php include TVE_DASH_PATH . '/templates/header.phtml'; ?>
<div class="tvd-v-spacer"></div>
<div class="tvd-container tvd-hide tvd-show-onload">
<h3 class="tvd-section-title"><?php echo esc_html__( "Active Connections", 'thrive-dash' ) ?></h3>
<div class="tvd-row tvd-api-list"></div>
<?php if ( ! empty( Thrive_Dash_List_Manager::get_third_party_autoresponders() ) ) : ?>
<h3 class="tvd-section-title"><?php echo esc_html__( 'Third Party Connections', 'thrive-dash' ) ?></h3>
<div class="tvd-row tvd-third-party-api-list"></div>
<?php endif; ?>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<div style="height: 100px"></div>
</div>
</div>
<div class="tvd-row tvd-connections-footer">
<div class="tvd-col tvd-s12 tvd-m6">
<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 class="tvd-col tvd-s12 tvd-m6">
<a href="<?php echo esc_url( admin_url( 'admin.php?page=tve_dash_api_error_log' ) ); ?>"
class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-dark tvd-waves-effect tvd-right tvd-btn-small">
<?php echo esc_html__( "View Error Logs", 'thrive-dash' ); ?>
</a>
</div>
</div>
</div>
<script type="text/template" id="tvd-api-connected">
<div class="tvd-card tvd-white tvd-small">
<div class="tvd-card-image" style="background-image: url('<#= item.get('logoUrl') #>');">
<img src="<#= item.get('logoUrl') #>" alt="<#= item.get('title')#>">
</div>
<div class="tvd-card-action">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6">
<h4>
<#= item.get('title') === 'Brevo' ? 'Brevo (SendinBlue)' : item.get('title') #>
</h4>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<div class="tvd-right tvd-flex-mid">
<# if ( item.get('can_test') ) { #>
<a class="tvd-api-test tvd-btn tvd-btn-green tvd-btn-toggle">
<i class="tvd-icon-exchange tvd-left"></i>
<span class="tvd-btn-text"><?php echo esc_html__( "Test", 'thrive-dash' ) ?></span>
</a>
<# } #>
<# if ( item.get('can_edit') ) { #>
<a class="tvd-api-edit tvd-btn tvd-btn-blue tvd-btn-toggle">
<i class="tvd-icon-pencil tvd-left"></i>
<span class="tvd-btn-text"><?php echo esc_html__( "Edit", 'thrive-dash' ) ?></span>
</a>
<# } #>
<# if ( item.get('can_delete') ) { #>
<a class="tvd-api-delete tvd-btn tvd-btn-red tvd-btn-toggle">
<i class="tvd-icon-trash-o tvd-left"></i>
<span class="tvd-btn-text"><?php echo esc_html__( "Delete", 'thrive-dash' ) ?></span>
</a>
<# } #>
<#= item.get('status_icon') || '' #>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="tvd-api-state-new">
<div class="tvd-card tvd-small tvd-card-new tvd-valign-wrapper" id="tvd-add-new-api">
<div class="tvd-card-content tvd-valign tvd-center-align tvd-pointer">
<i class="tvd-icon-plus tvd-icon-rounded tvd-icon-medium"></i>
<h4><?php echo esc_html__( "Add new Connection", 'thrive-dash' ) ?></h4>
</div>
</div>
</script>
<script type="text/template" id="tvd-api-state-select">
<div class="tvd-card tvd-small tvd-card-new tvd-valign-wrapper">
<div class="tvd-card-content tvd-valign tvd-center-align">
<div class="tvd-row">
<div class="tvd-col tvd-s10 tvd-offset-s1">
<div class="input-field2">
<select id="selected-api">
<optgroup label="" class="tvd-hide">
<option
value="none"><?php echo esc_html__( "- Select an app -", 'thrive-dash' ) ?></option>
</optgroup>
</select>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="tvd-api-state-form">
<div class="tvd-card tvd-white">
<div class="tvd-card-content tvd-card-content-wfooter"></div>
</div>
</script>
<script type="text/template" id="tvd-api-state-error">
<div class="tvd-card tvd-orange">
<div class="tvd-card-content tvd-card-content-wfooter">
<div class="tvd-center-align">
<i class="tvd-icon-close tvd-icon-big tvd-icon-border tvd-icon-rounded"></i>
</div>
<h3 class="tvd-card-title"><?php echo esc_html__( "The connection didn't work.", 'thrive-dash' ) ?></h3>
<p class="tvd-center tvd-card-spacer">
<?php echo esc_html__( "Error message:", 'thrive-dash' ) ?>
<#= item.get('response').message#>
</p>
<br><br>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-api-cancel tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-waves-effect"><?php echo esc_html__( "Cancel", 'thrive-dash' ) ?></a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-api-retry tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-waves-effect"><?php echo esc_html__( "Retry", 'thrive-dash' ) ?></a>
</div>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="tvd-api-state-success">
<div class="tvd-card tvd-green">
<div class="tvd-card-content tvd-center-align">
<i class="tvd-icon-check tvd-icon-big tvd-icon-border tvd-icon-rounded"></i>
<h3 class="tvd-modal-title">
<#= item.get('title') #><br/><?php echo esc_html__( "Connection Ready!", 'thrive-dash' ) ?></h3>
<p class="tvd-open-video" data-source="KuZcvyv-Tvs">
<# if(typeof item.get('success_message') !== 'undefined' && item.get('success_message') != '') { #>
<#= item.get('success_message') #>
<# } else { #>
<# if(item.get('key') === 'sendowl') { #>
<?php echo esc_html__( "You can now connect Thrive Apprentice to ", 'thrive-dash' ) ?>
<#= item.get('title') #>.
<a href="<?php echo esc_url( get_admin_url() . 'admin.php?page=thrive_apprentice#settings/sendowl/quick-start' ) ?>"><?php echo esc_html__( "Click here to discover the Quick Start Guide.", 'thrive-dash' ) ?></a>
<# } else { #>
<?php echo esc_html__( "You can now connect your opt-in forms to ", 'thrive-dash' ) ?>
<#= item.get('title') #>.
<# if ( item.get('type') !== 'storage' ) { #>
<a>
<?php echo esc_html__( "See how it's done.", 'thrive-dash' ) ?>
</a>
<# } #>
<# } #>
<# } #>
</p>
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6 tvd-offset-m3">
<a href="javascript:void(0)"
class="tvd-api-done tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-full-btn tvd-btn-margin-top tvd-waves-effect"><?php echo esc_html__( "Done", 'thrive-dash' ) ?></a>
</div>
</div>
</div>
</div>
</script>
<?php foreach ( $connected_apis as $key => $api ) : ?>
<?php /** @var $api Thrive_Dash_List_Connection_Abstract */ ?>
<script type="text/template" id="tvd-api-form-<?php echo esc_attr( $key ) ?>">
<?php echo $api->output_setup_form() //phpcs:ignore ?>
</script>
<?php endforeach; ?>
<?php foreach ( $available_apis as $key => $api ) : ?>
<?php /** @var $api Thrive_Dash_List_Connection_Abstract */ ?>
<script type="text/template" id="tvd-api-form-<?php echo esc_attr( $key ) ?>">
<?php echo $api->output_setup_form() //phpcs:ignore ?>
</script>
<?php endforeach; ?>
<script type="text/template" id="tvd-api-form-preloader">
<div class="tvd-card-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>
</script>
<script type="text/template" id="tvd-api-connection-error">
<div class="tvd-card tvd-orange tvd-valign-wrapper">
<div class="tvd-card-content tvd-valign tvd-center-align">
<a href="javascript:void(0)" class="tvd-close-card">
<i class="tvd-icon-close2"></i>
</a>
<i class="tvd-icon-exclamation tvd-icon-rounded tvd-icon-medium"></i>
<h4><?php echo esc_html__( "The connection failed.", 'thrive-dash' ) ?></h4>
<p>
<#= item.get('response').message #>
</p>
<a class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-api-edit tvd-waves-effect">
<?php echo esc_html__( "Edit settings", 'thrive-dash' ) ?>
</a>
</div>
</div>
</script>
<script type="text/template" id="tvd-api-confirm-delete">
<div class="tvd-card tvd-small tvd-red">
<div class="tvd-card-content tvd-center-align">
<h4 class="tvd-margin-top">
<?php echo esc_html__( "Are you sure you want to delete this connection?", 'thrive-dash' ) ?>
</h4>
</div>
<div class="tvd-card-action">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-api-delete-yes tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-left tvd-waves-effect"
href="javascript:void(0)">
<?php echo esc_html__( "Yes, delete", 'thrive-dash' ) ?>
</a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-api-delete-no tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-right tvd-waves-effect">
<?php echo esc_html__( "No, keep it", 'thrive-dash' ) ?>
</a>
</div>
</div>
</div>
</div>
</script>
<script type="text/template" id="tvd-api-connection-hover">
<div class="tvd-card tvd-small <#= color #> tvd-valign-wrapper">
<div class="tvd-card-content tvd-valign tvd-center-align">
<a href="javascript:void(0)" class="tvd-close-card">
<i class="tvd-icon-close2"></i>
</a>
<i class="<#= icon #> tvd-icon-medium"></i>
<h4 class="tvd-dark-text">
<#= text ? text : 'Testing...' #>
</h4>
</div>
</div>
</script>
<script type="text/template" id="tvd-third-party-api">
<div class="tvd-col tvd-s12 tvd-m4 tvd-l3">
<div class="tvd-card tvd-white tvd-small">
<div class="tvd-card-image" style="background-image: url('<#= item.get('thumbnail') #>');">
<img src="<#= item.get('thumbnail') #>">
</div>
<div class="tvd-card-action">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6 tvd-third-party-label">
<h4>
<#= item.get( 'title' ) #>
</h4>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<div class="tvd-right tvd-flex-mid">
<a href="<#= item.get( 'controls_link' ) #>" class="tvd-api-link" target="_blank">
<i class="tvd-icon-pencil tvd-left"></i>
</a>
<span class="tvd-api-status-icon status-<#= item.get( 'is_connected' ) ? 'green' : 'red' #>"</span>
</div>
</div>
</div>
</div>
</div>
</div>
</script>

View File

@@ -0,0 +1,17 @@
<div class="iconmanager-messages">
<?php if ( ! empty( $GLOBALS['thrive_list_api_message']['error'] ) ) : ?>
<div class="clear" style="height: 10px"></div>
<div class="error below-h2" style="margin-left: 0;">
<p><?php echo strip_tags( $GLOBALS['thrive_list_api_message']['error'], '<a>' ); ?></p>
</div>
<?php endif ?>
<?php if ( ! empty( $GLOBALS['thrive_list_api_message']['success'] ) ) : ?>
<div class="clear" style="height: 10px"></div>
<div class="updated below-h2" style="margin-left: 0;">
<p><?php echo esc_html( $GLOBALS['thrive_list_api_message']['success'] ); ?></p>
<?php if ( ! empty( $GLOBALS['thrive_list_api_message']['redirect'] ) ) : ?>
<input type="hidden" id="tve-redirect-to" value="<?php echo esc_attr( $GLOBALS['thrive_list_api_message']['redirect'] ); ?>">
<?php endif ?>
</div>
<?php endif ?>
</div>

View File

@@ -0,0 +1,21 @@
<h4><?php echo esc_html__( "Step 2: Choose your API Connection", 'thrive-dash' ) ?></h4>
<hr class="tve_lightbox_line"/>
<?php
include dirname( __FILE__ ) . '/partials/api-select.php';
include dirname( __FILE__ ) . '/partials/api-lists.php'; ?>
<?php if ( ! empty( $connected_apis ) ) : ?>
<div class="tve-sp"></div>
<div class="tve-sp"></div>
<div id="tve-save-api tve_clearfix">
<a href="javascript:void(0)" class="tve_click tve_editor_button tve_editor_button_default tve_button_margin tve_right" data-ctrl="function:auto_responder.dashboard"
data-edit="<?php echo esc_attr( $edit_api_key ); ?>">
<?php echo esc_html__( "Cancel", 'thrive-dash' ) ?>
</a>
<a href="javascript:void(0)" class="tve_click tve_editor_button tve_editor_button_success tve_right" data-ctrl="function:auto_responder.api.save"
data-edit="<?php echo esc_attr( $edit_api_key ); ?>">
<?php echo esc_html__( "Save", 'thrive-dash' ) ?>
</a>
</div>
<?php endif ?>

View File

@@ -0,0 +1,10 @@
<h4><?php echo esc_html__( "Step 2: Insert HTML code", 'thrive-dash' ) ?></h4>
<hr class="tve_lightbox_line"/>
<p><?php echo esc_html__( "Step 2: Now insert your full HTML autoresponder code. You can find more information about what code is required", 'thrive-dash' ) ?>
<a class="tve_lightbox_link tve_lightbox_link_info" target="_blank" href="https://thrivethemes.com/tkb_item/add-autoresponder-code-form/"><?php echo esc_html__( "in our knowledge base", 'thrive-dash' ) ?></a>
</p>
<?php $show_textarea = true;
$show_reCaptcha = false;
include dirname( __FILE__ ) . '/autoresponder-code-fields.php' ?>

View File

@@ -0,0 +1,17 @@
<h4><?php echo esc_html__( "Step 1: Choose Connection Type", 'thrive-dash' ) ?></h4>
<hr class="tve_lightbox_line"/>
<p><?php echo esc_html__( "Choose whether you would like to connect using HTML form code or through an established API connection ?", 'thrive-dash' ) ?></p>
<div class="tve_lightbox_select_holder">
<select class="" id="connection-type">
<?php foreach ( $connection_types as $connection_key => $connection_name ) : ?>
<option value="<?php echo esc_attr( $connection_key ); ?>"><?php echo esc_html( $connection_name ); ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="tve-sp"></div>
<div class="tve_clearfix">
<a href="javascript:void(0)" class="tve_click tve_editor_button tve_editor_button_success tve_right"
data-ctrl="function:auto_responder.connection_form" data-step2="1">
<?php echo esc_html__( "Go to the next step", 'thrive-dash' ) ?>
</a>
</div>

View File

@@ -0,0 +1,51 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
if ( isset( $show_textarea ) ) : ?>
<textarea name="tve_lead_generation_code" placeholder="<?php echo esc_html__( "Insert your code here", 'thrive-dash' ) ?>"
class="tve_lightbox_textarea"></textarea>
<div class="tve_clearfix">
<a href="javascript:void(0)" class="tve_editor_button tve_editor_button_default tve_right tve_button_margin tve_click "
data-ctrl="function:auto_responder.dashboard"><?php echo esc_html__( "Cancel", 'thrive-dash' ) ?></a>
<a href="javascript:void(0)"
class="tve_editor_button tve_editor_button_success tve_right tve_lead_generate_fields tve_click"
data-ctrl="function:auto_responder.generate_fields"><?php echo esc_html__( "Generate Fields", 'thrive-dash' ) ?></a>
</div>
<?php endif ?>
<div class="tve_large_lightbox tve_lead_gen_lightbox_small">
<?php unset( $show_textarea ) ?>
<div id="generated_inputs_container"
class="tve_clearfix">
<?php echo isset( $fields_table ) ? $fields_table : '' ?>
</div>
<div id="tve_lg_icon_list" style="display: none">
<table>
<tfoot>
<tr>
<td style="width: 10%;"><?php echo esc_html__( 'Choose an icon', 'thrive-dash' ) ?></td>
<td>
<?php $icon_click = 'function:auto_responder.choose_icon';
$icon_hide_header = true;
if ( function_exists( 'tve_editor_path' ) ) {
include_once tve_editor_path( 'editor/lb_icon.php' );
}
?>
</td>
</tr>
</tfoot>
</table>
</div>
<?php if ( ! empty( $show_reCaptcha ) ): ?>
<?php include dirname( __FILE__ ) . '/captcha-settings.php'; ?>
<?php endif; ?>
<?php do_action( 'tve_tcb_delivery_connection' ); ?>
<?php do_action( 'tve_tcb_add_form_options', $data ); ?>
</div>

View File

@@ -0,0 +1,61 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$captcha_api = Thrive_Dash_List_Manager::credentials( 'recaptcha' );
$captcha_available = ! empty( $captcha_api['site_key'] );
?>
<div class="tve_lead_captcha_settings">
<div class="tve_lightbox_input_holder">
<input class="tve_lg_validation_options tve_change"
type="checkbox"
name="tve_api_use_captcha"
data-ctrl="function:auto_responder.use_captcha_changed" id="tve-captcha"
<?php echo $captcha_available ? '' : ' disabled'; ?>
>
<label for="tve-captcha">
<?php echo esc_html__( 'Add Captcha to Prevent Spam Signups', 'thrive-dash' );
if ( ! $captcha_available ) {
echo '(<a href="' . esc_url(admin_url( 'admin.php?page=tve_dash_api_connect' )) . '">' . esc_html__( 'Requires integration with Google ReCaptcha', 'thrive-dash' ) . ')</a>';
}
?>
</label>
</div>
<div class="tve_captcha_options" style="display:none;">
<label><?php echo esc_html__( 'Theme', 'thrive-dash' ); ?>:</label>
<div class="tve_lightbox_select_holder tve_captcha_option">
<select class="tve_captcha_theme tve_change" data-option="captcha_theme" data-ctrl="function:auto_responder.captcha_option_changed">
<option value="light"><?php echo esc_html__( 'Light', 'thrive-dash' ); ?></option>
<option value="dark"><?php echo esc_html__( 'Dark', 'thrive-dash' ); ?></option>
</select>
</div>
<label><?php echo esc_html__( 'Type', 'thrive-dash' ); ?>:</label>
<div class="tve_lightbox_select_holder tve_captcha_option">
<select class="tve_captcha_type tve_change" data-option="captcha_type" data-ctrl="function:auto_responder.captcha_option_changed">
<option value="image"><?php echo esc_html__( 'Image', 'thrive-dash' ); ?></option>
<option value="audio"><?php echo esc_html__( 'Audio', 'thrive-dash' ); ?></option>
</select>
</div>
<label><?php echo esc_html__( 'Size', 'thrive-dash' ); ?>:</label>
<div class="tve_lightbox_select_holder tve_captcha_option">
<select class="tve_captcha_size tve_change" data-option="captcha_size" data-ctrl="function:auto_responder.captcha_option_changed">
<option value="normal"><?php echo esc_html__( 'Normal', 'thrive-dash' ); ?></option>
<option value="compact"><?php echo esc_html__( 'Compact', 'thrive-dash' ); ?></option>
</select>
</div>
</div>
</div>

View File

@@ -0,0 +1,202 @@
<h4><?php echo esc_html__( "Connect with Service", 'thrive-dash' ) ?></h4>
<hr class="tve_lightbox_line"/>
<?php
$connection_config = $data['connection_config'];
$klicktipp_option = count( $connection_config ) == 1 && isset( $connection_config['klicktipp'] );
$custom_messages = is_array( $data['custom_messages'] ) ? $data['custom_messages'] : array();
$custom_messages['error'] = empty( $custom_messages['error'] ) ? '' : $custom_messages['error'];
$custom_messages['success'] = empty( $custom_messages['success'] ) ? '' : $custom_messages['success'];
$create_account = $data['create_account'];
/**
* at this stage, we have a list of existing connections that are to be displayed in a list
*/
$available = Thrive_Dash_List_Manager::get_available_apis( true );
$helper = new Thrive_Dash_Api_CustomHtml();
$form_type = $helper->getFormType();
$form_type !== 'lead_generation' ? $variations = $helper->getFormVariations() : $variations = array();
if ( function_exists( 'tve_leads_get_form_variation' ) ) {
if ( ! empty( $_POST['_key'] ) ) {
$this_variation = tve_leads_get_form_variation( null, sanitize_text_field( $_POST['_key'] ) );
if ( $form_type != 'lightbox' && $this_variation['form_state'] == 'lightbox' ) {
foreach ( $variations as $key => $variation ) {
if ( $variation['form_state'] == 'lightbox' ) {
unset( $variations[ $key ] );
}
}
}
}
}
?>
<div class="tve_large_lightbox tve_lead_gen_lightbox_small">
<p><?php echo esc_html__( 'Your sign up form is connected to service(s) using the following API connections:', 'thrive-dash' ) ?></p>
<table>
<caption><?php echo esc_html__( 'API connections', 'thrive-dash' ) ?></caption>
<thead>
<tr>
<th scope="col" colspan="2">
<?php echo esc_html__( "Service Name", 'thrive-dash' ) ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ( $connection_config as $key => $list_id ) : if ( ! isset( $available[ $key ] ) ) {
continue;
} ?>
<tr>
<td width="90%">
<?php echo esc_html( $available[ $key ]->get_title() ); ?>
</td>
<td width="10%">
<a href="javascript:void(0)" class="tve_click" data-ctrl="function:auto_responder.connection_form"
data-connection-type="api" data-key="<?php echo esc_attr( $key ); ?>" title="<?php echo esc_html__( "Settings", 'thrive-dash' ) ?>">
<span class="tve_icm tve-ic-cog tve_ic_small tve_lightbox_icon_small"></span>
</a>
&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0)" class="tve_click" data-ctrl="function:auto_responder.api.remove"
data-key="<?php echo esc_attr( $key ); ?>" title="<?php echo esc_html__( "Remove", 'thrive-dash' ) ?>">
<span class="tve_icm tve-ic-close tve_ic_small tve_lightbox_icon_small"></span>
</a>
</td>
</tr>
<?php endforeach ?>
</tbody>
</table>
<div class="tve-sp"></div>
<?php if ( count( $available ) != count( $connection_config ) ) : ?>
<div class="clearfix">
<a href="javascript:void(0)" class="tve_click tve_right tve_editor_button tve_editor_button_success"
data-ctrl="function:auto_responder.connection_form" data-connection-type="api">
<?php echo esc_html__( "Add New Connection", 'thrive-dash' ) ?>
</a>
</div>
<?php endif ?>
<div class="tve_clear" style="height:30px;"></div>
<p><?php echo esc_html__( 'Select which fields to display and their properties (you can reorder them by dragging the "move" icon from the left):', 'thrive-dash' ) ?></p>
<?php
$fields_table = isset( $data['fields_table'] ) ? $data['fields_table'] : '';
$show_thank_you_url = true;
$show_reCaptcha = true;
include dirname( __FILE__ ) . '/autoresponder-code-fields.php';
?>
<div class="tve-sp"></div>
<?php if ( ! empty( $data['show_submit_options'] ) ) : ?>
<div class="tve_gray_box tve_ps_container">
<h4><?php echo esc_html__( "Action After Signup", 'thrive-dash' ) ?></h4>
<?php $submit = ! empty( $_POST['submit_option'] ) ? sanitize_text_field( $_POST['submit_option'] ) : 'reload' ?>
<?php if ( $submit == 'page' ) {
$thank_you_url = ! empty( $_POST['thank_you_url'] ) ? esc_url_raw( $_POST['thank_you_url'] ) : 0;
$post = get_post( $thank_you_url );
} ?>
<?php $state = ! empty( $_POST['state'] ) ? sanitize_text_field( $_POST['state'] ) : '' ?>
<label><?php echo esc_html__( "After the form is submitted:", 'thrive-dash' ) ?>&nbsp;</label>
<div class="tve_lightbox_select_holder tve_lightbox_select_holder_submit tve_lightbox_input_inline tve_lightbox_select_inline">
<select class="tve_lg_validation_options tve_change tve-api-submit-filters" id="tve-api-submit-option"
data-ctrl="function:auto_responder.api.submit_option_changed">
<option <?php echo ! empty( $create_account ) ? 'style="display:none"' : '' ?>
value="reload"<?php echo $submit == 'reload' ? ' selected="selected"' : '' ?>><?php echo esc_html__( "Reload current page", 'thrive-dash' ) ?>
</option>
<option <?php echo ! empty( $create_account ) ? 'style="display:none"' : '' ?>
value="redirect"<?php echo $submit == 'redirect' ? ' selected="selected"' : '' ?>><?php echo esc_html__( "Redirect to URL", 'thrive-dash' ) ?>
</option>
<option <?php echo ! empty( $create_account ) ? 'style="display:none"' : '' ?>
value="message" <?php echo $submit == 'message' ? ' selected="selected"' : '' ?>><?php echo esc_html__( "Display message without reload", 'thrive-dash' ) ?>
</option>
<option
value="page" <?php echo $submit == 'page' ? ' selected="selected"' : '' ?>><?php echo esc_html__( "Redirect to Page", 'thrive-dash' ) ?>
</option>
<?php if ( $form_type !== 'lead_generation' && ! empty( $variations ) ) : ?>
<option <?php echo ! empty( $create_account ) ? 'style="display:none"' : '' ?>
value="state" <?php echo $submit == 'state' ? ' selected="selected"' : '' ?>><?php echo esc_html__( "Switch State", 'thrive-dash' ) ?>
</option>
<?php endif; ?>
<?php if ( $klicktipp_option ) : ?>
<option <?php echo ! empty( $create_account ) ? 'style="display:none"' : '' ?>
value="klicktipp-redirect" <?php echo $submit == 'klicktipp-redirect' ? ' selected="selected"' : '' ?>><?php echo esc_html__( "KlickTipp Thank You URL", 'thrive-dash' ) ?>
</option>
<?php endif; ?>
</select>
</div>
<input <?php echo $submit !== 'redirect' ? ' style="display: none"' : '' ?> size="70"
class="tve_change tve_text tve_lightbox_input tve_lightbox_input_inline tve_lightbox_input_inline_redirect"
data-ctrl="function:auto_responder.api.thank_you_url"
value="<?php echo ! empty( $_POST['thank_you_url'] ) ? sanitize_text_field( esc_attr( $_POST['thank_you_url'] ) ) : '' ?>"
placeholder="http://"/>
<input <?php echo $submit !== 'page' ? ' style="display: none"' : '' ?> size="70"
class="tve_change tve_text tve_lightbox_input tve_lightbox_input_inline tve-api-pages"
data-ctrl="function:auto_responder.api.set_page_search"
value="<?php echo isset( $post ) ? esc_attr( $post->post_title ) : '' ?>"
placeholder="Search for pages or posts"/>
<div class="tve_message_settings" <?php echo $submit !== 'message' ? ' style="display: none"' : '' ?>>
<p><?php echo esc_html__( "The following message will be displayed in a small popup after signup, without reloading the page.", 'thrive-dash' ) ?></p>
<div class="tve_dashboard_tab_success tve_dashboard_tab tve_dashboard_tab_selected">
<?php wp_editor( $custom_messages['success'], 'tve_success_wp_editor', $settings = array(
'quicktags' => false,
'media_buttons' => false
) ); ?>
</div>
</div>
<?php if ( $form_type !== 'lead_generation' ) : ?>
<div class="tve_state_settings" <?php echo $submit !== 'state' ? ' style="display: none"' : '' ?>>
<?php if ( ! empty( $variations ) ) : ?>
<label><?php echo esc_html__( "Choose the state to switch :", 'thrive-dash' ) ?>&nbsp;</label>
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline">
<select class="tve_change_states tve_change" data-ctrl="function:auto_responder.api.state_changed">
<?php foreach ( $variations as $variation ) : ?>
<option data-state="<?php echo esc_attr( $variation['form_state'] ); ?>"
value="<?php echo esc_attr( $variation['key'] ); ?>" <?php echo $state == $variation['key'] ? ' selected="selected"' : '' ?>><?php echo esc_html( $variation['state_name'] ); ?>
</option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<div
class="tve-shortcodes-wrapper tve-shortcodes-message" <?php echo $submit == 'message' && ! empty( $_POST['error_message_option'] ) && sanitize_text_field( $_POST['error_message_option'] ) != 1 ? '' : 'style="display:none"' ?>>
<?php include dirname( __FILE__ ) . '/partials/api-shortcodes.php'; ?>
</div>
<div class="tve-sp"></div>
<div class="tve-error-message-option tve_lightbox_input_holder">
<input type="checkbox" <?php echo ! empty( $_POST['error_message_option'] ) && absint( $_POST['error_message_option'] ) == 1 ? 'checked' : '' ?> class="tve_change" id="tve-error-message-option"
data-ctrl="function:auto_responder.error_message_option_changed"/>
<label for="tve-error-message-option"><?php echo esc_html__( "Add Error Message", 'thrive-dash' ) ?></label>
</div>
<div class="tve_gray_box tve-error-message-wrapper" <?php echo ! empty( $_POST['error_message_option'] ) && absint( $_POST['error_message_option'] ) != 1 ? 'style="display:none"' : '' ?>>
<h4><?php echo esc_html__( "Edit your error message", 'thrive-dash' ) ?></h4>
<p><?php echo esc_html__( "This error message is shown in the rare case that the signup fails. This can happen when your connected email marketing service can't be reached.", 'thrive-dash' ) ?>
</p>
<div class="tve_dashboard_tab_error">
<?php wp_editor( $custom_messages['error'], 'tve_error_wp_editor', $settings = array(
'quicktags' => false,
'media_buttons' => false
) ); ?>
</div>
</div>
<div class="tve-shortcodes-wrapper tve-shortcodes-error" <?php echo ! empty( $_POST['error_message_option'] ) && absint( $_POST['error_message_option'] ) != 1 ? 'style="display:none"' : '' ?>>
<?php include dirname( __FILE__ ) . '/partials/api-shortcodes.php'; ?>
</div>
<?php endif ?>
<div class="tve-sp"></div>
<div class="tve_clearfix">
<a href="javascript:void(0)" class="tve_click tve_editor_button tve_editor_button_default tve_right tve_button_margin"
data-ctrl="function:controls.lb_close">
<?php echo esc_html__( "Cancel", 'thrive-dash' ) ?>
</a>
&nbsp;
<a href="javascript:void(0)" class="tve_click tve_editor_button tve_editor_button_success tve_right"
data-ctrl="function:auto_responder.save_api_connection" data-edit-custom="1">
<?php echo esc_html__( "Save", 'thrive-dash' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,31 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
if ( empty( $_POST['edit_custom_html'] ) ) : ?>
<h4><?php echo esc_html__( "Connect with Service", 'thrive-dash' ) ?></h4>
<hr class="tve_lightbox_line"/>
<p><?php echo esc_html__( "Your sign up form is connected to a service using custom HTML form code.", 'thrive-dash' ) ?></p>
<div class="tve-sp"></div>
<div class="tve_clearfix">
<a href="javascript:void(0)" class="tve_click tve_editor_button tve_editor_button_cancel tve_right tve_button_margin"
data-ctrl="function:auto_responder.remove_custom_html">
<span><?php echo esc_html__( "Delete Connection", 'thrive-dash' ) ?></span>
</a>
&nbsp;
<a href="javascript:void(0)" class="tve_click tve_editor_button tve_editor_button_success tve_right"
data-ctrl="function:auto_responder.dashboard" data-edit-custom="1">
<span><?php echo esc_html__( "Edit HTML form code", 'thrive-dash' ) ?></span>
</a>
</div>
<?php else : ?>
<?php $show_textarea = true;
$show_reCaptcha = false;
include dirname( __FILE__ ) . '/autoresponder-code-fields.php'; ?>
<?php endif; ?>

View File

@@ -0,0 +1,11 @@
<h4><?php echo esc_html__( 'Connect with Service', 'thrive-dash' ) ?></h4>
<hr class="tve_lightbox_line"/>
<p><?php echo esc_html__( 'This setting allows you to connect your sign up form with various web services, such as autoresponder accounts.', 'thrive-dash' ) ?>
<br/>
<?php echo esc_html__( 'You currently have no connections set up with this sign up form', 'thrive-dash' ) ?></p>
<div class="tve_clearfix">
<a href="javascript:void(0)" class="tve_click tve_editor_button tve_editor_button_success tve_right"
data-ctrl="function:auto_responder.connection_form">
<?php echo esc_html__( "Create a new Connection", 'thrive-dash' ) ?>
</a>
</div>

View File

@@ -0,0 +1,37 @@
<div id="thrive-api-list">
<div class="tve-sp"></div>
<?php if ( ! empty( $selected_api ) ) : ?>
<?php $list_subtitle = $selected_api->get_list_sub_title() ?>
<?php $api_key = $selected_api->get_key(); ?>
<?php $selected_api->render_before_lists_settings( empty( $extra_settings[ $api_key ] ) ? array() : $extra_settings[ $api_key ] ) ?>
<div class="tve-list-container tve-api-option-group tve-api-option-group-list" <?php echo $api_key == 'drip' && isset( $extra_settings[ $api_key ]['type'] ) && $extra_settings[ $api_key ]['type'] == 'automation' ? 'style="display:none"' : ''; ?>>
<?php if ( false === $lists ) : /** this means there's been an error while connecting / communicating to the API */ ?>
<p class="error-message" style="color: red">
<?php echo esc_html__( 'Error while communicating with the service:', 'thrive-dash' ) ?><?php echo esc_html( $selected_api->get_api_error() ) ?>
</p>
<?php else : ?>
<h6><?php echo empty( $list_subtitle ) ? 'Choose your mailing list:' : esc_html( $list_subtitle ) ?></h6>
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline">
<select id="thrive-api-list-select"<?php echo ( empty( $lists ) ) ? ' disabled' : ' data-api="' . esc_attr( $api_key ) . '"' ?> <?php echo ( ! empty( $lists ) && $api_key == 'mailchimp' ) ? 'class="tve_change" data-ctrl="function:auto_responder.api.api_get_groups"' : '' ?> >
<?php if ( empty( $lists ) ) : ?>
<option value=""><?php echo esc_html__( 'No list available', 'thrive-dash' ) ?></option>
<?php endif ?>
<?php foreach ( $lists as $list ) : ?>
<option value="<?php echo esc_attr( $list['id'] ) ?>"<?php echo ! empty( $selected_list ) && $selected_list == $list['id'] ? ' selected="selected"' : '' ?>><?php echo esc_html( $list['name'] ) ?></option>
<?php endforeach ?>
</select>
</div>
&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0)" class="tve_click tve_lightbox_link tve_lightbox_link_refresh" data-ctrl="function:auto_responder.api.reload_lists" data-force-fetch="1"" data-api="<?php echo esc_attr( $api_key ) ?>"><?php echo esc_html__( 'Reload', 'thrive-dash' ) ?></a>
<?php
if ( ! empty( $selected_list ) ) {
$extra_settings[ $api_key ]['list_id'] = $selected_list;
}
?>
<?php if ( ! empty( $lists ) || $api_key == 'drip' ) : ?>
<?php echo $selected_api->render_extra_editor_settings( empty( $extra_settings[ $api_key ] ) ? array() : $extra_settings[ $api_key ] ); // phpcs:ignore ?>
<?php endif ?>
<?php endif; /* false === $lists */ ?>
</div>
<?php endif; /* !empty ($selected_api) */ ?>
</div>

View File

@@ -0,0 +1,24 @@
<div id="thrive-api-connections">
<?php if ( empty( $connected_apis ) ) : ?>
<h6><?php echo esc_html__( "You currently don't have any API integrations set up.", 'thrive-dash' ) ?></h6>
<a href="<?php echo esc_url( admin_url( 'admin.php?page=tve_dash_api_connect' ) ); ?>" target="_blank"
class="tve_lightbox_link tve_lightbox_link_create"><?php echo esc_html__( "Click here to set up a new API connection", 'thrive-dash' ) ?></a>
<?php else : ?>
<h6><?php echo esc_html__( "Choose from your list of existing API connections or", 'thrive-dash' ) ?>
<a href="<?php echo esc_url( admin_url( 'admin.php?page=tve_dash_api_connect' ) ); ?>" target="_blank" class="tve_lightbox_link tve_lightbox_link_create">
<?php echo esc_html__( 'add a new integration', 'thrive-dash' ) ?>
</a>
</h6>
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline">
<select id="thrive-api-connections-select" class="tve_change"
data-ctrl="function:auto_responder.api.api_get_lists" autocomplete="off">
<?php foreach ( $connected_apis as $key => $api ) : ?>
<option
value="<?php echo esc_attr( $key ) ?>"<?php echo $edit_api_key == $key ? ' selected="selected"' : '' ?>><?php echo esc_html( $api->get_title() ); ?></option>
<?php endforeach ?>
</select>
</div>
&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0)" data-ctrl="function:auto_responder.api.reload_apis" class="tve_click tve_lightbox_link tve_lightbox_link_refresh"><?php echo esc_html__( "Reload", 'thrive-dash' ) ?></a>
<?php endif ?>
</div>

View File

@@ -0,0 +1,45 @@
<h4 class="tl-clickable tl-toggle-tab-display collapsed tvd-pointer" data-target="#tve-shortcode-list">
<?php echo esc_html__( 'Available Shortcodes', 'thrive-dash' ) ?>
</h4>
<div class="tvd-relative">
<ul class="tvd-collection tvd-not-visible" id="tve-shortcode-list">
<li class="tvd-collection-item">
<div class="tve-copy-row">
<div class="tve-shortcode-input">
<div class="tvd-input-field">
<input readonly="readonly" type="text" value="[lead_email]" class="tve-copy tve_lightbox_input"/>
</div>
</div>
<div class="tve-shortcode-copy">
<a class="tve-copy-to-clipboard tve_editor_button tve_editor_button_blue" href="javascript:void(0)">
<span class="tve-copy-text"><?php echo esc_html__( 'Copy', 'thrive-dash' ) ?></span>
</a>
</div>
<div class="tvd-col tvd-s6">
<div class="tve-align-stupid-text">
<?php echo esc_html__( 'Displays the email of the person who opted in.', 'thrive-dash' ) ?>
</div>
</div>
</div>
</li>
<li class="tvd-collection-item">
<div class="tve-copy-row tvd-row tvd-collapse tvd-no-mb">
<div class="tve-shortcode-input">
<div class="tvd-input-field">
<input readonly="readonly" type="text" value="[lead_name]" class="tve-copy tve_lightbox_input"/>
</div>
</div>
<div class="tve-shortcode-copy">
<a class="tve-copy-to-clipboard tve_editor_button tve_editor_button_blue" href="javascript:void(0)">
<span class="tve-copy-text"><?php echo esc_html__( 'Copy', 'thrive-dash' ) ?></span>
</a>
</div>
<div class="tvd-col tvd-s6">
<div class="tve-align-stupid-text">
<?php echo esc_html__( 'Displays the name of the person who opted in.', 'thrive-dash' ) ?>
</div>
</div>
</div>
</li>
</ul>
</div>

View File

@@ -0,0 +1,36 @@
<td class="tvd-error-entry-api_data">
<span class="tvd-normal">
<#= item.get( 'fields_html' ) #>
</span>
</td>
<td class="tvd-error-entry-connection">
<span class="tvd-normal">
<#- item.get( 'connection_explicit' ) #>
</span>
</td>
<td class="tvd-error-entry-date">
<span class="tvd-normal">
<#- item.get( 'date' ) #>
</span>
</td>
<td class="tvd-error-entry-error_message">
<span class="tvd-normal">
<#- item.get( 'error_message' ) #>
</span>
</td>
<td class="tvd-error-entry-actions" data-log-id="<#= item.get( 'id' ) #>">
<div class="row-actions visible tvd-center-align">
<# if ( item.get( 'connection_type' ) !== 'storage' ) { #>
<span class="retry">
<span class="tvd-icon-loop2 tvd-tooltipped tvd-logs-icon tvd-logs-icon-repeat"
data-position="bottom"
data-tooltip="<?php echo esc_html__( 'Retry', 'thrive-dash' ) ?>"></span>
</span>
<# } #>
<span class="delete">
<span class="tvd-icon-trash-o tvd-tooltipped tvd-logs-icon tvd-logs-icon-delete"
data-position="bottom"
data-tooltip="<?php echo esc_html__( 'Delete', 'thrive-dash' ) ?>"></span>
</span>
</div>
</td>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,50 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
if ( ! empty( $args['name'] ) && false !== $has_shortcode ) : ?>
<br>
<b><?php echo ! empty( $labels['name'] ) ? esc_html( $labels['name'] ) . ':' : esc_html__( 'Name:', 'thrive-dash' ); ?> </b><span> <?php echo esc_html( $args['name'] ); ?> </span>
<?php endif; ?>
<?php if ( false !== $has_shortcode ) : ?>
<br>
<b><?php echo ! empty( $labels['email'] ) ? esc_html( $labels['email'] ) . ':' : esc_html__( 'Email:', 'thrive-dash' ); ?></b><span> <?php echo esc_html( $args['email'] ); ?> </span>
<?php endif; ?>
<?php if ( ! empty( $args['phone'] ) && false !== $has_shortcode ) : ?>
<br>
<b><?php echo ! empty( $labels['phone'] ) ? esc_html( $labels['phone'] ) . ':' : esc_html__( 'Phone:', 'thrive-dash' ); ?></b><span> <?php echo esc_html( $args['phone'] ); ?> </span>
<?php endif; ?>
<?php if ( isset( $args['include_date'] ) && 1 === (int) $args['include_date'] ) : ?>
<br>
<b><?php echo esc_html__( 'Date:', 'thrive-dash' ); ?> </b> <span> <?php echo esc_html( date_i18n( 'jS F, Y' ) ); ?> </span>
<?php endif; ?>
<?php if ( isset( $args['include_time'] ) && 1 === (int) $args['include_time'] ) : ?>
<br>
<b><?php echo esc_html__( 'Time:', 'thrive-dash' ); ?> </b> <span> <?php echo esc_html( $time ); ?> </span>
<?php endif; ?>
<?php if ( isset( $args['include_page_url'] ) && 1 === (int) $args['include_page_url'] ) : ?>
<br>
<b><?php echo esc_html__( 'Page URL:', 'thrive-dash' ); ?> </b> <span> <a href="<?php echo esc_url( $args['url'] ); ?>"> <?php echo esc_html( $args['url'] ); ?> </a> </span>
<?php endif; ?>
<?php if ( isset( $args['include_ip'] ) && 1 === (int) $args['include_ip'] ) : ?>
<br>
<b><?php echo esc_html__( 'IP Address:', 'thrive-dash' ); ?> </b> <span> <?php echo esc_html( tve_dash_get_ip() ); ?> </span>
<?php endif; ?>
<?php if ( isset( $args['include_device_settings'] ) && 1 === (int) $args['include_device_settings'] ) : ?>
<br>
<b><?php echo esc_html__( 'Device Settings:', 'thrive-dash' ); ?> </b><span> <?php echo esc_html( isset( $_SERVER['HTTP_USER_AGENT'] ) ? sanitize_text_field( $_SERVER['HTTP_USER_AGENT'] ) : '' ); ?> </span>
<?php endif; ?>
<br>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$api_slug = strtolower( str_replace( array( ' ', '-' ), '', $this->get_key() ) ); ?>
<?php $video_urls = $this->get_api_video_urls(); ?>
<?php if ( array_key_exists( $api_slug, $video_urls ) && ! empty( $video_urls[ $api_slug ] ) ) : ?>
<div class="ttw-video-urls-container tvd-m6 tvd-no-padding tvd-left ttw-<?php echo esc_attr( $api_slug ); ?>-video">
<p class="ttw-video-urls-wrapper">
<a class="ttw-video-urls tvd-open-video" data-source="<?php echo esc_attr( $video_urls[ $api_slug ] ) ?>"><?php echo esc_html__( 'I need help with this', 'thrive-dash' ); ?></a>
</p>
</div>
<?php endif ?>

View File

@@ -0,0 +1,27 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ) ?></h2>
<div class="tvd-row">
<form class="tvd-col tvd-s12">
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>"/>
<div class="tvd-input-field">
<input id="tvd-ac-api-url" type="text" name="connection[api_url]"
value="<?php echo esc_attr( $this->param( 'api_url' ) ); ?>">
<label for="tvd-ac-api-url"><?php echo esc_html__( 'API URL', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ac-api-key" type="text" name="connection[api_key]"
value="<?php echo esc_attr( $this->param( 'api_key' ) ); ?>">
<label for="tvd-ac-api-key"><?php echo esc_html__( 'API key', 'thrive-dash' ) ?></label>
</div>
<?php $this->display_video_link(); ?>
</form>
</div>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-api-cancel tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-full-btn tvd-waves-effect"><?php echo esc_html__( 'Cancel', 'thrive-dash' ) ?></a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-api-connect tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn"><?php echo esc_html__( 'Connect', 'thrive-dash' ) ?></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,76 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
if ( ! empty( $data['forms'] ) ): ?>
<div class="tve-sp"></div>
<p class="tl-mock-paragraph"><?php echo esc_html__( 'Choose the form you want to use:', 'thrive-dash' ) ?></p>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s4">
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline tve_activecampaign_select tvd-input-field">
<?php foreach ( $data['forms'] as $list_id => $forms ): ?>
<label for="tve-api-extra" class="tve-custom-select">
<select data-list-id="<?php echo esc_attr( $list_id ); ?>" style="display: none;" class="tve-api-extra tve_disabled tl-api-connection-list" name="activecampaign_form">
<?php foreach ( $forms as $id => $form ): ?>
<option value="<?php echo esc_attr( $form['id'] ); ?>" <?php echo ! empty( $data['form'] ) && $data['form'] == $form['id'] ? 'selected' : ''; ?>><?php echo esc_html( $form['name'] ); ?></option>
<?php endforeach; ?>
</select>
</label>
<?php endforeach; ?>
</div>
</div>
</div>
<div class="tve_activecampaign_no_forms">
<p>
<?php echo esc_html__( 'No forms available for this list!', 'thrive-dash' ); ?>
</p>
</div>
<?php elseif ( ! empty( $this->_error ) ): ?>
<div class="tve_activecampaign_error">
<p>
<?php echo esc_html__( 'No forms available!', 'thrive-dash' ); ?>
</p>
</div>
<?php endif; ?>
<div class="tve-sp"></div>
<div class="tvd-v-spacer vs-2"></div>
<div class="tvd-input-field">
<input id="activecampaign_tags" type="text" class="tve-api-extra tve_lightbox_input tve_lightbox_input_inline" name="activecampaign_tags" value="<?php echo ! empty( $data['tags'] ) ? esc_attr( $data['tags'] ) : '' ?>" size="40"/>
<label for="activecampaign_tags"><?php echo esc_html__( 'Tags', 'thrive-dash' ) ?></label>
</div>
<?php
$tags_message = __( "Comma-separated lists of tags to assign to a new contact in ActiveCampaign", 'thrive-dash' );
$tags_message = apply_filters( 'tvd_tags_text_for_' . $this->get_key(), $tags_message );
?>
<p><?php echo esc_html( $tags_message ); ?></p>
<script type="text/javascript">
(
function ( $ ) {
$( document ).on( 'change', '#thrive-api-list-select', function () {
var list_id = $( '#thrive-api-list-select' ).find( ':selected' ).val(),
select = $( '.tve_activecampaign_select' ),
no_forms = $( '.tve_activecampaign_no_forms' ),
no_form_def = $( '.tve_activecampaign_error' ),
$forms = $( 'select.tve-api-extra[data-list-id="' + list_id + '"]' );
select.show();
no_forms.hide();
$( 'select.tve-api-extra[name="activecampaign_form"]' ).addClass( 'tve_disabled' ).hide().parents( '.tve-custom-select' ).hide();
if ( $forms.length > 0 ) {
$forms.removeClass( 'tve_disabled' ).show().parents( '.tve-custom-select' ).show();
no_form_def.hide();
} else {
select.hide();
no_forms.show();
}
} );
$( '#thrive-api-list-select' ).trigger( 'change' );
}
)( jQuery );
</script>

View File

@@ -0,0 +1,43 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** @var $this Thrive_Dash_List_Connection_AWeber */
?>
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ) ?></h2>
<?php try { ?>
<div class="tvd-row">
<p><?php echo esc_html__( 'Click the button below to login to your AWeber account and authorize the API Connection.', 'thrive-dash' ) ?></p>
<?php $this->display_video_link(); ?>
</div>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-api-cancel tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-full-btn tvd-waves-effect"><?php echo esc_html__( "Cancel", 'thrive-dash' ); ?></a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn"
href="<?php echo esc_url( $this->getAuthorizeUrl() ) ?>"><?php echo esc_html__( 'Connect', 'thrive-dash' ); ?></a>
</div>
</div>
</div>
<?php } catch ( Thrive_Dash_Api_AWeber_Exception $e ) { ?>
<?php
$url = false;
$message = $e->getMessage();
$api_url = isset( $e->url ) ? $e->url : false;
?>
<p style="color: red"><?php echo esc_html__( 'There has been an error while communicating with AWeber API. Below are the error details:', 'thrive-dash' ); ?></p>
<?php echo esc_html( $message );
if ( $api_url ) {
echo ' (API URL: ' . esc_html( $api_url ) . ')';
}
}
?>

Some files were not shown because too many files have changed in this diff Show More