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,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>