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,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 ) . ')';
}
}
?>

View File

@@ -0,0 +1,14 @@
<div class="tve-sp"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s4">
<div class="tvd-input-field">
<input id="aweber_tags" type="text" class="tve-api-extra tve_lightbox_input tve_lightbox_input_inline" name="aweber_tags" value="<?php echo ! empty( $data['tags'] ) ? esc_attr( $data['tags'] ) : '' ?>" size="40"/>
<label for="aweber_tags"><?php echo esc_html__( 'Tags', 'thrive-dash' ) ?></label>
</div>
</div>
<?php
$tags_message = __( "Comma-separated lists of tags to assign to a new contact in Aweber", 'thrive-dash' );
$tags_message = apply_filters( 'tvd_tags_text_for_' . $this->get_key(), $tags_message );
?>
<p><?php echo esc_html( $tags_message ); ?></p>
</div>

View File

@@ -0,0 +1,61 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** var $this Thrive_Dash_List_Connection_Awsses */
$admin_email = get_option( 'admin_email' );
?>
<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-aw-api-email" type="text" name="connection[email]"
value="<?php echo esc_attr( $this->param( 'email', $admin_email ) ) ?>">
<label for="tvd-aw-api-email"><?php echo esc_html__( "Email", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-aw-api-secret" type="text" name="connection[secretkey]"
value="<?php echo esc_attr( $this->param( 'secretkey' ) ) ?>">
<label for="tvd-aw-api-secret"><?php echo esc_html__( "Secret key", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-aw-api-key" type="text" name="connection[key]" value="<?php echo esc_attr( $this->param( 'key' ) ) ?>">
<label for="tvd-aw-api-key"><?php echo esc_html__( "Access key", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<select id="tvd-aw-api-country" class="tvd-browser-default" type="text" name="connection[country]">
<option value="ireland" <?php echo $this->param( 'country' ) == "ireland" ? 'selected="selected"' : '' ?> >Ireland</option>
<option value="useast" <?php echo $this->param( 'country' ) == "useast" ? 'selected="selected"' : '' ?> >US East (N. Virginia)</option>
<option value="uswest" <?php echo $this->param( 'country' ) == "uswest" ? 'selected="selected"' : '' ?> >US West (N. Oregon)</option>
</select>
<label for="tvd-aw-api-country"><?php echo esc_html__( "Email Zone", 'thrive-dash' ) ?></label>
</div>
<?php $this->display_video_link(); ?>
</form>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<p class="tve-form-description tvd-note-text">
<?php echo esc_html__( 'Note: sending email through SES will only work if your email address has been verified and you are not in sandbox mode.', 'thrive-dash' ) ?>
<a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html"
target="_blank"><?php echo esc_html__( 'Learn more', 'thrive-dash' ) ?></a>.
</p>
</div>
</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,67 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$admin_email = get_option( 'admin_email' ); ?>
<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-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ) ?>">
<label for="tvd-mm-api-key"><?php echo esc_html__( 'API key', 'thrive-dash' ) ?></label>
</div>
<p><?php echo esc_html__( 'Would you also like to connect to the Transactional Email Service ?', 'thrive-dash' ) ?></p>
<br/>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<input class="tvd-new-connection-yes" name="connection[new_connection]" type="radio" value="1"
id="tvd-new-connection-yes" <?php echo $this->param( 'new_connection' ) == 1 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-yes"><?php echo esc_html__( 'Yes', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<?php $connection = $this->param( 'new_connection' ); ?>
<input class="tvd-new-connection-no" name="connection[new_connection]" type="radio" value="0"
id="tvd-new-connection-no" <?php echo empty( $connection ) || $connection == 0 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-no"><?php echo esc_html__( 'No', 'thrive-dash' ); ?></label>
</p>
</div>
<br/>
<br/>
<div class="tvd-input-field">
<input id="tvd-aw-api-email" type="text" name="connection[email]"
value="<?php echo esc_attr($this->param( 'email', $admin_email )) ?>">
<label for="tvd-aw-api-email" class="tvd-active"><?php echo esc_html__( 'Campaign Monitor-approved email address', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-col tvd-s12 tvd-m12 tvd-no-padding">
<p>
<strong><?php echo esc_html__( 'Note:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'Sending email through Campaign Monitor will only work if your email address has been verified and you have a paying account.', 'thrive-dash' ) ?>
<strong><a target="_blank"
href="https://help.campaignmonitor.com/topic.aspx?t=88#manage-your-own"><?php echo esc_html__( 'Learn More', 'thrive-dash' ) ?></a></strong>.
</p>
<div class="tvd-col tvd-s12 tvd-m12">
<?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,43 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$admin_email = get_option( 'admin_email' ); ?>
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ) ?></h2>
<div class="tvd-row">
<p>
<strong><?php echo esc_html__( 'Note:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'Connecting to Campaign Monitor Email Service will also connect to Campaign Monitor autoresponder.', 'thrive-dash' ) ?>
</p>
<form class="tvd-col tvd-s12">
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ) ?>"/>
<input name="connection[new_connection]" type="hidden" value="1"/>
<div class="tvd-input-field">
<input id="tvd-aw-api-email" type="text" name="connection[email]"
value="<?php echo esc_attr( $this->param( 'email', $admin_email ) ) ?>">
<label for="tvd-aw-api-email" class="tvd-active"><?php echo esc_html__( 'Campaign Monitor-approved email address', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ) ?>">
<label for="tvd-mm-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,34 @@
<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-rc-api-client-id" type="text" name="connection[client_id]"
value="<?php echo esc_attr( $this->param( 'client_id' ) ); ?>">
<label for="tvd-rc-api-client-id"><?php echo esc_html__( 'Client ID', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ac-api-client-secret" type="text" name="connection[client_secret]"
value="<?php echo esc_attr( $this->param( 'client_secret' ) ); ?>">
<label for="tvd-ac-api-client-secret"><?php echo esc_html__( 'Client Secret', 'thrive-dash' ) ?></label>
</div>
<?php $this->display_video_link(); ?>
<div class="ttw-help-urls-container">
<p>
<a href="https://thrivethemes.com/docs/setting-up-an-api-connection-with-constant-contact/" target="_blank"><?php echo esc_html__( 'I need help with this', 'thrive-dash' ); ?></a>
</p>
</div>
</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-redirect 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,82 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** @var $this Thrive_Dash_List_Connection_ConstantContact */
?>
<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-cc-api-key" type="text" name="connection[api_key]"
value="<?php echo esc_attr( $this->param( 'api_key' ) ); ?>">
<label for="tvd-cc-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
<p><?php echo esc_html__( "To get an API Key you have to follow these steps:", 'thrive-dash' ) ?></p>
<ol>
<li>
<?php echo sprintf( __( "Register a new account %s", 'thrive-dash' ), '<a target="_blank" href="https://constantcontact.mashery.com/member/register">' . esc_html__( "here", 'thrive-dash' ) . '</a>' ) ?></li> <?php //phpcs:ignore ?>
<li>
<?php echo esc_html__( "Log in and create a new Application for which the API key will be automatically be generated.", 'thrive-dash' ) ?></li>
<li>
<?php echo esc_html__( "Copy+Paste the API Key into the field", 'thrive-dash' ) ?></li>
</ol>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<a id="btn-get-token" class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn" href="<?php echo esc_url( $this->getTokenUrl() ); ?>"><?php echo esc_html__( "Get Token", 'thrive-dash' ) ?></a>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<div class="tvd-input-field">
<input id="tvd-cc-api-token" type="text" name="connection[api_token]"
value="<?php echo esc_attr( $this->param( 'api_token' ) ); ?>">
<label for="tvd-cc-api-token"><?php echo esc_html__( "API token", 'thrive-dash' ) ?></label>
<p><?php echo esc_html__( "To get an API Token you have to follow these steps:", 'thrive-dash' ) ?></p>
<ol>
<li><?php echo esc_html__( "After you have completed the steps for getting an API Key you have to click the Get Token Button", 'thrive-dash' ) ?></li>
<li><?php echo esc_html__( "Follow the steps until you receive the token string", 'thrive-dash' ) ?></li>
<li><?php echo esc_html__( "Copy+Paste the token string into the field and click the Connect to Constant Contact button", 'thrive-dash' ) ?></li>
</ol>
</div>
</div>
</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>
<script type="text/javascript">
(
function ( $ ) {
var _token_url = $( "#btn-get-token" ).attr( 'href' );
$( "#btn-get-token" ).click( function () {
var api_key = $( "#tvd-cc-api-key" ).val(),
$this = $( this );
if ( ! api_key ) {
alert( '<?php echo __( "Please enter the API Key in order to get the token !", 'thrive-dash' ) ?>' );
return false;
}
$this.attr( 'href', _token_url + api_key );
} );
}
)( jQuery );
</script>

View File

@@ -0,0 +1,22 @@
<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-ck-api-url" type="text" name="connection[key]" value="<?php echo esc_attr( $this->param( 'key' ) ) ?>">
<label for="tvd-ck-api-url"><?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,28 @@
<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-d-client-id" type="text" name="connection[client_id]"
value="<?php echo esc_attr( $this->param( 'client_id' ) ); ?>">
<label for="tvd-d-client-id"><?php echo esc_html__( "Client ID", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-d-api-token" type="text" name="connection[token]"
value="<?php echo esc_attr( $this->param( 'token' ) ); ?>">
<label for="tvd-d-api-token"><?php echo esc_html__( "API token", '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,19 @@
<div class="tve-custom-proprieties-container tve-api-option-group tve-api-option-group-list" <?php echo ! isset( $data['type'] ) || $data['type'] == 'list' ? '' : 'style="display: none;"'; ?>>
<div class="tve-sp"></div>
<p class="tl-mock-paragraph"><?php echo esc_html__( 'Choose the type of optin you would like for the Drip integration. When choosing single opt-in the confirmation message should be disabled for the list on your GetDrip Account', '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 tvd-input-field">
<label for="tve-api-extra" class="tve-custom-select">
<select class="tve-api-extra tl-api-connection-list" name="drip_optin">
<option value="s" <?php echo $data['optin'] === 's' ? ' selected="selected"' : '' ?>><?php echo esc_html__( 'Single optin', 'thrive-dash' ) ?></option>
<option value="d" <?php echo $data['optin'] === 'd' ? ' selected="selected"' : '' ?>><?php echo esc_html__( 'Double optin', 'thrive-dash' ) ?></option>
</select>
</label>
</div>
</div>
</div>
<br>
<p><?php echo esc_html__( '(Double optin means your subscribers will need to confirm their email address before being added to your list).', 'thrive-dash' ) ?></p>
</div>
</div>

View File

@@ -0,0 +1,79 @@
<div class="tve-custom-proprieties-container tve-api-option-group tve-api-option-group-automation" <?php echo ! isset( $data['type'] ) || $data['type'] == 'list' ? 'style="display: none;"' : ''; ?>>
<div class="tve-sp"></div>
<h6><?php echo esc_html__( 'Choose the proprieties you would like to attach to the call. You can only use underscores and dashes in the custom field input.', 'thrive-dash' ) ?></h6>
<div class="tve-custom-fields-container">
<div class="tvd-row tvd-collapse tve-custom-fields">
<?php
$proprieties = isset( $data['proprieties'] ) ? $data['proprieties'] : array();
reset( $proprieties );
$first_key = key( $proprieties );
?>
<div class="tvd-col tvd-s6">
<div class="tvd-input-field">
<p><?php echo esc_html__( 'Custom Field', 'thrive-dash' ) ?></p>
<input type="text"
class="drip-custom-field tve_disabled tve_lightbox_input tve_lightbox_input_inline tve_change"
name="drip_field" data-ctrl="auto_responder.api.change_input_name"
value="<?php echo ! empty( $first_key ) ? esc_attr( $first_key ) : 'thrive_custom_field' ?>"/>
</div>
</div>
<div class="tvd-col tvd-s6">
<div class="tvd-input-field">
<p><?php echo esc_html__( 'Custom Field Value', 'thrive-dash' ) ?></p>
<input type="text"
class="drip-custom-field-value tve-api-extra tve_lightbox_input tve_lightbox_input_inline"
name="drip_field[<?php echo ! empty( $first_key ) ? esc_attr( $first_key ) : 'thrive_custom_field' ?>]"
value="<?php echo ! empty( $proprieties[ $first_key ] ) ? esc_attr( $proprieties[ $first_key ] ) : 'Custom Field Value' ?>"
/>
</div>
</div>
</div>
<?php if ( ! empty( $proprieties ) && count( $proprieties ) > 1 ) : ?>
<?php array_shift( $proprieties ); ?>
<?php foreach ( $proprieties as $field => $field_value ) : ?>
<div class="tvd-row tvd-collapse tve-custom-fields">
<div class="tvd-col tvd-s6">
<div class="tvd-input-field">
<p><?php echo esc_html__( 'Custom Field', 'thrive-dash' ) ?></p>
<input type="text"
class="drip-custom-field tve-api-extra-excluded tve_lightbox_input tve_lightbox_input_inline tve_change"
name="drip_field" data-ctrl="auto_responder.api.change_input_name"
value="<?php echo esc_attr( $field ); ?>"
/>
</div>
</div>
<div class="tvd-col tvd-s6">
<div class="tvd-input-field">
<p><?php echo esc_html__( 'Custom Field Value', 'thrive-dash' ) ?></p>
<input type="text"
class="drip-custom-field-value tve-api-extra tve_lightbox_input tve_lightbox_input_inline"
name="drip_field[<?php echo esc_attr( $field ) ?>]"
value="<?php echo esc_attr( $field_value ); ?>"
/>
</div>
</div>
<div class="tvd-col tvd-s6">
<a href="javascript:void(0)" data-ctrl="auto_responder.api.remove_field"
class="tve_click tve_lightbox_link tve_lightbox_link_remove"><?php echo esc_html__( 'Remove', 'thrive-dash' ) ?></a>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s2">
<a href="javascript:void(0)" data-ctrl="auto_responder.api.add_new_field" class="tve_click tve_lightbox_link tve_lightbox_link_create">
<?php echo esc_html__( 'Add a new custom field', 'thrive-dash' ) ?>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<div class="tve-sp"></div>
<h6><?php echo esc_html__( 'Choose the type of Drip integration you would like to use', 'thrive-dash' ) ?></h6>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s4">
<?php ?>
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline tvd-input-field">
<label for="tve-api-extra" class="tve-custom-select">
<select class="tve-api-extra tl-api-connection-list tve_change" name="drip_type" data-ctrl="auto_responder.api.change_integration_type">
<option value="list" <?php isset( $data['type'] ) ? selected( $data['type'], 'list' ) : ''; ?>><?php echo esc_html__( 'Mailing List', 'thrive-dash' ) ?></option>
<option value="automation" <?php isset( $data['type'] ) ? selected( $data['type'], 'automation' ) : ''; ?>><?php echo esc_html__( 'Drip Automation', 'thrive-dash' ) ?></option>
</select>
</label>
</div>
</div>
</div>
<br>
<p><?php echo esc_html__( '(You can select from having a Mailing List integration or use Drip Automation services which allow you to create actions from events with custom proprieties sent trough the API)', 'thrive-dash' ) ?></p>

View File

@@ -0,0 +1,28 @@
<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-db-api-client-id" type="text" name="connection[client_id]"
value="<?php echo esc_attr( $this->param( 'client_id' ) ); ?>">
<label for="tvd-db-api-client-id"><?php echo esc_html__( 'App key', 'thrive-dash' ); ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-db-api-client-secret" type="text" name="connection[client_secret]"
value="<?php echo esc_attr( $this->param( 'client_secret' ) ); ?>">
<label for="tvd-db-api-client-secret"><?php echo esc_html__( 'App secret', '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-redirect 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,28 @@
<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-ew-api-key" type="text" name="connection[key]" value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-ew-api-key">
<?php echo esc_html__( 'API key', 'thrive-dash' ) ?>
</label>
</div>
</form>
<p><?php echo __( 'For more information please read the following', 'thrive-dash' ) ?> <a href="https://help.thrivethemes.com/en/articles/5151467-how-to-set-up-use-an-api-connection-with-everwebinar" target="_blank"><strong><?php echo __( 'Knowledge Base Article', 'thrive-dash' ) ?></strong></a></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-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,29 @@
<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-rc-api-app-id" type="text" name="connection[app_id]"
value="<?php echo esc_attr( $this->param( 'app_id' ) ); ?>">
<label for="tvd-rc-api-app-id"><?php echo esc_html__( 'App ID', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ac-api-app-secret" type="text" name="connection[app_secret]"
value="<?php echo esc_attr( $this->param( 'app_secret' ) ); ?>">
<label for="tvd-ac-api-app-secret"><?php echo esc_html__( 'App Secret', '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-redirect 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,31 @@
<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-pixel-id" type="text" name="connection[pixel_id]"
value="<?php echo esc_attr( $this->param( 'pixel_id' ) ); ?>">
<label for="tvd-ac-api-pixel-id"><?php echo esc_html__( 'Pixel ID', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-rc-api-access-token" type="text" name="connection[access_token]"
value="<?php echo esc_attr( $this->param( 'access_token' ) ); ?>">
<label for="tvd-rc-api-access-token"><?php echo esc_html__( 'Access token', 'thrive-dash' ) ?></label>
</div>
<p class="tve-form-description tvd-note-text">
<a href="https://help.thrivethemes.com/en/articles/7793479-how-to-use-facebook-events-with-thrive-automator" target="_blank"><?php echo esc_html__( 'I need help with this', 'thrive-dash' ) ?></a>
</p>
</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,36 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<?php
/** @var $this Thrive_Dash_List_Connection_MailPoet */
?>
<?php $installed = $this->pluginInstalled(); ?>
<?php if ( ! empty( $installed ) ) : ?>
<div class="tvd-row">
<p><?php echo esc_html__( 'Click the button below to enable FluentCRM integration.', 'thrive-dash' ) ?></p>
<?php $this->display_video_link(); ?>
</div>
<form>
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>">
<input type="hidden" name="connection[connected]" value="1">
</form>
<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 tvd-api-connect"
href="javascript:void(0)"><?php echo esc_html__( 'Connect', 'thrive-dash' ) ?></a>
</div>
</div>
</div>
<?php else : ?>
<p><?php echo esc_html__( 'You currently do not have FluentCRM plugin installed or activated.', 'thrive-dash' ) ?></p>
<br>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12">
<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>
</div>
<?php endif ?>

View File

@@ -0,0 +1,51 @@
<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-gr-api-key" type="text" name="connection[key]" value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-gr-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<?php $version = $this->param( 'version' ); ?>
<div class="tvd-input-field tvd-extra-options <?php echo empty( $version ) || $version == 2 ? 'tvd-hide"' : ''; ?>">
<?php $url = $this->param( 'url' ); ?>
<input id="tvd-gr-api-url" type="text" name="connection[url]"
value="<?php echo ! empty( $url ) ? esc_url( $url ) : 'https://api.getresponse.com/v3' ?>">
<label for="tvd-gr-api-url"><?php echo esc_html__( "API URL", 'thrive-dash' ) ?></label>
</div>
<p class="tvd-extra-options <?php echo empty( $version ) || $version == 2 ? 'tvd-hide"' : ''; ?>"><strong><?php echo esc_html__( 'Notification:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'The Enterprise URL is only needed if you\'re connecting to an Enterprise GetResponse Account.', 'thrive-dash' ) ?></p>
<div class="tvd-input-field tvd-extra-options <?php echo empty( $version ) || $version == 2 ? 'tvd-hide"' : ''; ?>">
<?php $enterprise = $this->param( 'enterprise' ); ?>
<input id="tvd-gr-api-enterprise" type="text" name="connection[enterprise]"
value="<?php echo ! empty( $enterprise ) ? esc_attr( $enterprise ) : '' ?>">
<label for="tvd-gr-api-enterprise"><?php echo esc_html__( "Enterprise URL", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<p>
<input class="tvd-version-2 tvd-api-hide-extra-options" name="connection[version]" type="radio" value="2"
id="tvd-version-2" <?php echo empty( $version ) || $version == 2 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-2"><?php echo esc_html__( 'Version 2', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<p>
<input class="tvd-version-3 tvd-api-show-extra-options" name="connection[version]" type="radio" value="3"
id="tvd-version-3" <?php echo ! empty( $version ) && $version == 3 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-3"><?php echo esc_html__( 'Version 3', 'thrive-dash' ); ?></label>
</p>
</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,36 @@
<div class="tve-sp"></div>
<h6><?php echo esc_html__( 'Cycle day:', 'thrive-dash' ) ?></h6>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s4">
<div class="tvd-input-field">
<input id="get-response_cycleday" type="text"
maxlength="3"
class="tve-api-extra tve_lightbox_input tve_lightbox_input_inline"
name="get-response_cycleday"
value="<?php echo ! empty( $data['cycleday'] ) ? esc_attr( $data['cycleday'] ) : '0' ?>"
size="40"/>
<p><?php echo esc_html__( 'Number of the cycle day(between 0 and 103)', 'thrive-dash' ) ?></p>
</div>
</div>
</div>
<script type="text/javascript">
(function ( $ ) {
var TVE_Content_Builder = TVE_Content_Builder || {};
if ( TVE_Content_Builder.auto_responder ) {
TVE_Content_Builder.auto_responder['get-response'] = TVE_Content_Builder.auto_responder['get-response'] || {};
TVE_Content_Builder.auto_responder['get-response'].validate = function () {
var $input = $( '#get-response_cycleday' ),
value = $input.val();
if ( isNaN( value ) || value < 0 || value > 103 ) {
alert( 'Invalid cycle day' );
return false;
}
return true;
}
}
})( jQuery );
</script>

View File

@@ -0,0 +1,28 @@
<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-rc-api-client-id" type="text" name="connection[client_id]"
value="<?php echo esc_attr( $this->param( 'client_id' ) ); ?>">
<label for="tvd-rc-api-client-id"><?php echo esc_html__( 'Client ID', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ac-api-client-secret" type="text" name="connection[client_secret]"
value="<?php echo esc_attr( $this->param( 'client_secret' ) ); ?>">
<label for="tvd-ac-api-client-secret"><?php echo esc_html__( 'Client Secret', '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-redirect 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,34 @@
<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-rc-api-client-id" type="text" name="client_id"
value="<?php echo esc_attr( $this->param( 'client_id' ) ); ?>">
<label for="tvd-rc-api-client-id"><?php echo esc_html__( 'Client ID', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ac-api-client-secret" type="text" name="client_secret"
value="<?php echo esc_attr( $this->param( 'client_secret' ) ); ?>">
<label for="tvd-ac-api-client-secret"><?php echo esc_html__( 'Client Secret', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ac-api-key" type="text" name="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,64 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$version = (int) $this->get_version(); ?>
<h2 class="tvd-card-title"><?php echo 2 === (int) $version ? esc_html( $this->get_title() . ' ' . $version . '.0' ) : esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<?php /** @var $this Thrive_Dash_List_Connection_GoToWebinar */
?>
<?php if ( $this->is_connected() && $this->expiresIn() > 30 && 2 !== $version ) : ?>
<p class="tvd-card-spacer tvd-card-margin"><?php echo esc_html__( 'GoToWebinar is connected. The access token expires on:', 'thrive-dash' ); ?>
<strong><?php echo esc_html( $this->getExpiryDate() ); ?></strong></p>
<?php elseif ( $this->isExpired() && 2 !== $version ) : ?>
<p class="tvd-card-spacer tvd-card-margin">
<?php echo esc_html__( 'The GoToWebinar access token has expired on:', 'thrive-dash' ); ?>
<strong><?php echo esc_html( $this->getExpiryDate() ); ?></strong>. <?php echo esc_html__( 'You need to renew the token by providing your GoToWebinar credentials below', 'thrive-dash' ); ?>
</p>
<?php elseif ( $this->is_connected() && $this->expiresIn() <= 30 && 2 !== $version ) : ?>
<p class="tvd-card-spacer tvd-card-margin"><?php echo sprintf( esc_html__( 'The GoToWebinar access token will expire in <strong>%s days</strong>. Renew the token by providing your GoToWebinar credentials below', 'thrive-dash' ), esc_html( $this->expiresIn() ) ); ?></p>
<?php else : ?>
<p class="tvd-card-spacer tvd-card-margin"><?php echo esc_html__( 'Fill in your GoToWebinar username (email) and password below to connect', 'thrive-dash' ); ?></p>
<?php endif ?>
<form class="tvd-col tvd-s12" autocomplete="false">
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>"/>
<div class="tvd-input-field tvd-margin-top">
<input id="tvd-gtw-api-email" type="text" class="text" autocomplete="new-email" name="gtw_email" value="<?php echo esc_attr( $this->getUsername() ); ?>"/>
<label for="tvd-gtw-api-email"><?php echo esc_html__( 'Email', 'thrive-dash' ); ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-gtw-api-password" type="password" autocomplete="new-password" class="text" name="gtw_password" value="<?php echo esc_attr( $this->getPassword() ); ?>"/>
<label for="tvd-gtw-api-password"><?php echo esc_html__( 'Password', 'thrive-dash' ); ?></label>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<p>
<input class="tvd-version-1 tvd-api-hide-extra-options" name="connection[version]" type="radio" value="1" disabled id="tvd-version-1" <?php checked( $version, 1, true ); ?> />
<label for="tvd-version-1"><?php echo esc_html__( 'Version 1', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<p>
<input class="tvd-version-2 tvd-api-show-extra-options" name="connection[version]" type="radio" value="2" id="tvd-version-2" <?php echo ! $this->is_connected() || 2 === $version ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-2"><?php echo esc_html__( 'Version 2', 'thrive-dash' ); ?></label>
<input type="hidden" name="connection[versioning]" value="1">
</p>
</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,50 @@
<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() ); ?>"/>
<?php $version = $this->param( 'version' );
$is_v1 = empty( $version ) || $version == 1;
$is_v2 = ! empty( $version ) && $version == 2;
?>
<div class="tvd-input-field">
<input id="tvd-hs-api-key" type="text" name="connection[key]" value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-hs-api-key" class="tvd-toggle-version-1 <?php echo $is_v1 ? '' : 'tvd-hide' ?>"><?php echo esc_html__( "API key", 'thrive-dash' ); ?></label>
<label for="tvd-hs-api-key" class="tvd-toggle-version-2 <?php echo ( empty( $this->get_key() ) && empty( $version ) ) || $is_v2 ? '' : 'tvd-hide' ?>"><?php echo esc_html__( "Access token", 'thrive-dash' ); ?></label>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding tvd-margin-bottom">
<p>
<input class="tvd-version-1 tvd-change-version" name="connection[version]" type="radio" value="1"
id="tvd-version-1" <?php echo ! empty( $this->get_key() ) && $is_v1 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-1"><?php echo esc_html__( 'Version 1', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding tvd-margin-bottom">
<p>
<input class="tvd-version-2 tvd-change-version" name="connection[version]" type="radio" value="2"
id="tvd-version-2" <?php echo ( empty( $this->get_key() ) && empty( $version ) ) || $is_v2 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-2"><?php echo esc_html__( 'Version 2', 'thrive-dash' ); ?></label>
</p>
</div>
<p class="tvd-toggle-version-1 tvd-margin-top-normal <?php echo ! empty( $version ) || $version == 2 ? 'tvd-hide' : ''; ?>">
<strong><?php echo esc_html__( 'Notification:', 'thrive-dash' ) ?> </strong>
<?php echo esc_html__( 'Starting November 30, 2022, HubSpot API keys will no longer work. Instead, you\'ll need to switch to Version 2 that uses a Private App access token.', 'thrive-dash' ) ?>
</p>
<p class="tvd-toggle-version-2 tvd-margin-top-normal <?php echo $version == 2 ? '' : 'tvd-hide'; ?>">
<?php echo esc_html__( 'Please make sure you set Read and Write permissions for Contacts and Lists in order for your connection to work. ', 'thrive-dash' ) ?>
<a href="https://help.thrivethemes.com/en/articles/4647663-how-to-set-up-and-use-an-api-connection-with-hubspot/"
target="_blank"><?php echo esc_html__( 'Learn more', 'thrive-dash' ) ?></a>
</p>
<?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,32 @@
<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-ic-api-username" type="text" name="connection[apiUsername]"
value="<?php echo esc_attr( $this->param( 'apiUsername' ) ); ?>">
<label for="tvd-ic-api-username"><?php echo esc_html__( "iContact username", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ic-api-appid" type="text" name="connection[appId]"
value="<?php echo esc_attr( $this->param( 'appId' ) ); ?>">
<label for="tvd-ic-api-appid"><?php echo esc_html__( "Application ID", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ic-api-password" type="text" name="connection[apiPassword]"
value="<?php echo esc_attr( $this->param( 'apiPassword' ) ); ?>">
<label for="tvd-ic-api-password"><?php echo esc_html__( "Application password", '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,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-is-api-client" type="text" name="connection[client_id]"
value="<?php echo esc_attr( $this->param( 'client_id' ) ); ?>">
<label for="tvd-is-api-client"><?php echo esc_html__( "Client ID", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-is-api-key" type="text" name="connection[api_key]"
value="<?php echo esc_attr( $this->param( 'api_key' ) ); ?>">
<label id="tvd-is-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,27 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<form class="tvd-col tvd-s12">
<div class="tvd-input-field">
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>"/>
<input id="tvd-kt-api-user" type="text" name="connection[kt_user]"
value="<?php echo esc_attr( $this->param( 'user' ) ); ?>">
<label for="tvd-kt-api-user"><?php echo esc_html__( "Username", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-kt-api-password" type="text" name="connection[kt_password]"
value="<?php echo esc_attr( $this->param( 'password' ) ); ?>">
<label for="tvd-kt-api-password"><?php echo esc_html__( "Password", '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,18 @@
<div class="tve-sp"></div>
<h6><?php echo esc_html__( 'Choose tag:', 'thrive-dash' ) ?></h6>
<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 tvd-input-field">
<select class="tve-api-extra tl-api-connection-list" name="klicktipp_tag">
<option
value="0"<?php echo isset( $data['tag'] ) && $data['tag'] === '0' ? ' selected="selected"' : '' ?>>
<?php echo esc_html__( 'No tag', 'thrive-dash' ) ?>
</option>
<?php foreach ( $data['tags'] as $id => $tag ) : ?>
<option <?php echo isset( $data['tag'] ) && $data['tag'] == $id ? ' selected="selected"' : '' ?>
value="<?php echo esc_attr( $id ); ?>"><?php echo esc_html( $tag ); ?></option>
<?php endforeach; ?>
</select>
</div>
</div>
</div>

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-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mm-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="id-mm-api-email" type="text" name="connection[username]"
value="<?php echo esc_attr( $this->param( 'username' ) ); ?>">
<label for="id-mm-api-email"><?php echo esc_html__( "Email", '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,65 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$admin_email = get_option( 'admin_email' ); ?>
<?php $mandirll_key = $this->param( 'mandrill-key' ) ?>
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<p class="card-mb-10">
<strong><?php echo esc_html__( 'Notification:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'If you would like to use Transactional emails. You should fill in the Mandrill API Key and Mandrill-approved email address optional fields.', 'thrive-dash' ) ?>
</p>
<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-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mm-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<input type="checkbox" id="tvd-show-mandrill-options" class="tvd-api-show-extra-options" name="connection[show_mandrill]"
<?php echo ! empty( $mandirll_key ) ? 'checked' : '' ?> >
<label for="tvd-show-mandrill-options">Add Mandrill Connection</label>
<a href="#">Link</a>
<div class="tvd-hide tvd-extra-options">
<h4><strong><?php echo esc_html__( 'Mandrill:', 'thrive-dash' ) ?> </strong></h4>
<div class="tvd-input-field">
<input id="tvd-pm-api-email" type="text" name="connection[email]"
value="<?php echo esc_attr( $this->param( 'email', $admin_email ) ); ?>">
<label for="tvd-pm-api-email">
<?php echo esc_html__( "Mandrill-approved email address", 'thrive-dash' ) ?>
</label>
</div>
<div class="tvd-input-field">
<input id="tvd-mandrill-api-key" type="text" name="connection[mandrill-key]"
value="<?php echo esc_attr( $this->param( 'mandrill-key' ) ); ?>">
<label for="tvd-mandrill-api-key"><?php echo esc_html__( "Mandrill API key", 'thrive-dash' ) ?></label>
</div>
</div>
<div class="tvd-row tvd-hide tvd-extra-options">
<div class="tvd-col tvd-s12">
<p class="tvd-form-description tvd-note-text">
<?php echo esc_html__( 'Note: sending from Mandrill only works if the email you enter has been verified in Mandrill.', 'thrive-dash' ) ?>
<a href="https://mandrillapp.com/settings/sending-domains" target="_blank"><?php echo esc_html__( 'Learn more', 'thrive-dash' ) ?></a>.
</p>
</div>
</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,59 @@
<div id="thrive-api-groups">
<?php if ( ! empty( $data['groups'] ) ) : ?>
<div class="tve-sp"></div>
<h6><?php echo esc_html__( 'Choose your grouping:', 'thrive-dash' ) ?></h6>
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline">
<select class="tve-api-extra" id="thrive-api-groupin-select" name="mailchimp_groupin">
<option <?php echo ! isset( $data['groupin'] ) ? 'selected="selected"' : ''; ?> value="0"><?php echo esc_html__( 'No Group', 'thrive-dash' ) ?></option>
<?php foreach ( $data['groups'] as $groups ) : ?>
<option <?php echo isset( $data['groupin'] ) && $data['groupin'] == $groups->id ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $groups->id ) ?>"><?php echo esc_html( $groups->title ) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php foreach ( $data['groups'] as $groups ) : ?>
<div class="tve-groups-wrapper tve-groups-select-<?php echo esc_attr( $groups->id ) ?>" <?php echo isset( $data['groupin'] ) && $data['groupin'] == $groups->id ? '' : 'style="display:none"'; ?>>
<div class="tve-sp"></div>
<h6><?php echo esc_html__( 'Choose your group:', 'thrive-dash' ) ?></h6>
<?php if ( $groups->type == 'dropdown' || $groups->type == 'hidden' ) : ?>
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline">
<select class="thrive-api-group-select <?php echo isset( $data['groupin'] ) && $data['groupin'] == $groups->id ? 'tve-api-extra' : ''; ?>" name="mailchimp_group">
<?php foreach ( $groups->groups as $group ) : ?>
<option <?php echo isset( $data['group'] ) && $data['group'] == $group->id ? 'selected="selected"' : ''; ?> value="<?php echo esc_attr( $group->id ) ?>"><?php echo esc_html( $group->name ) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php else : ?>
<?php foreach ( $groups->groups as $group ) : ?>
<?php
$selected_groups = array();
if ( isset( $data['group'] ) ) {
$selected_groups = explode( ',', $data['group'] );
} ?>
<input style="margin-top: -5px;" id="thrive-group-checkbox-<?php echo esc_attr( $group->id ); ?>" <?php echo in_array( $group->id, $selected_groups ) ? 'checked="checked"' : '' ?> name="mailchimp_group" class="thrive-api-group-select <?php echo isset( $data['groupin'] ) && $data['groupin'] == $groups->id ? 'tve-api-extra' : ''; ?>" type="<?php echo $groups->type == 'checkboxes' ? 'checkbox' : esc_attr( $groups->type ); ?>" name="<?php echo esc_attr( $groups->id ) ?>" value="<?php echo esc_attr( $group->id ) ?>">
<label class="thrive-api-group-select" for="thrive-group-checkbox-<?php echo esc_attr( $group->id ) ?>">
<?php echo esc_html( $group->name ); ?>
</label>
<?php endforeach; ?>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
<script type="text/javascript">
(function ( $ ) {
$('#thrive-api-groupin-select').change(function(e) {
var $container = $('#thrive-api-groups'),
element = 'tve-groups-select-' + e.target.value;
$container.find('.tve-groups-wrapper').each(function () {
var $this = $(this);
$this.hide().find('input[type="radio"], input[type="checkbox"], select').removeClass('tve-api-extra');
if($this.hasClass(element)) {
$this.show().find('input[type="radio"], input[type="checkbox"], select').addClass('tve-api-extra')
}
})
});
})( jQuery );
</script>

View File

@@ -0,0 +1,19 @@
<div class="tve-sp"></div>
<p class="tl-mock-paragraph"><?php echo esc_html__( 'Choose the type of optin you would like for the Mailchimp integration', '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 tvd-input-field">
<label for="tve-api-extra" class="tve-custom-select">
<select class="tve-api-extra tl-api-connection-list" name="mailchimp_optin">
<option
value="s"<?php echo $data['optin'] === 's' ? ' selected="selected"' : '' ?>><?php echo esc_html__( 'Single optin', 'thrive-dash' ) ?></option>
<option
value="d"<?php echo $data['optin'] === 'd' ? ' selected="selected"' : '' ?>><?php echo esc_html__( 'Double optin', 'thrive-dash' ) ?></option>
</select>
</label>
</div>
</div>
</div>
<br>
<p><?php echo esc_html__( '(Double optin means your subscribers will need to confirm their email address before being added to your list)', 'thrive-dash' ) ?></p>

View File

@@ -0,0 +1,42 @@
<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() ); ?>"/>
<?php $version = $this->param( 'version' );
$is_v1 = empty( $version ) || (int) $version === 1;
$is_v2 = ! empty( $version ) && (int) $version === 2;
?>
<div class="tvd-input-field">
<input id="tvd-mm-api-key" type="text" name="connection[key] " value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mm-api-key" class="tvd-toggle-version-1 <?php echo $is_v1 ? '' : 'tvd-hide' ?>"><?php echo esc_html__( "API key", 'thrive-dash' ); ?></label>
<label for="tvd-mm-api-key" class="tvd-toggle-version-2 <?php echo ( empty( $this->get_key() ) && empty( $version ) ) || $is_v2 ? '' : 'tvd-hide' ?>"><?php echo esc_html__( "API key", 'thrive-dash' ); ?></label>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding tvd-margin-bottom">
<p>
<input class="tvd-version-1 tvd-change-version" name="connection[version]" type="radio" value="1"
id="tvd-version-1" <?php echo ! empty( $this->get_key() ) && $is_v1 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-1"><?php echo esc_html__( 'Version 1', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding tvd-margin-bottom">
<p>
<input class="tvd-version-2 tvd-change-version" name="connection[version]" type="radio" value="2"
id="tvd-version-2" <?php echo ( empty( $this->get_key() ) && empty( $version ) ) || $is_v2 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-2"><?php echo esc_html__( 'Version 2', 'thrive-dash' ); ?></label>
</p>
</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,54 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** var $this Thrive_Dash_List_Connection_Mailgun */
?>
<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-mg-api-domain" type="text" name="connection[domain]"
value="<?php echo esc_attr( $this->param( 'domain' ) ); ?>">
<label for="tvd-mg-api-domain"><?php echo esc_html__( "Mailgun-approved domain name", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-mg-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mg-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<select id="tvd-mailgun-zone" type="text" name="connection[zone]">
<option value="worldwide"><?php echo esc_html__( 'Worldwide', 'thrive-dash' ) ?></option>
<option value="europe"><?php echo esc_html__( 'Europe', 'thrive-dash' ) ?></option>
</select>
<label for="tvd-mailgun-zone"><?php echo esc_html__( 'Email Zone', 'thrive-dash' ) ?></label>
</div>
<?php $this->display_video_link(); ?>
</form>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-12">
<p class="tve-form-description tvd-note-text">
<?php echo esc_html__( 'Note: Sending through Mailgun only works if your domain name has been set and verified within your Mailgun account.', 'thrive-dash' ) ?>
<a href="https://help.mailgun.com/hc/en-us/articles/202052074-How-do-I-verify-my-domain-" target="_blank"><?php echo esc_html__( 'Learn more', 'thrive-dash' ) ?></a>.
</p>
</div>
</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,58 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<?php
/** @var $this Thrive_Dash_List_Connection_MailPoet */
?>
<?php $installed = $this->pluginInstalled(); ?>
<?php if ( ! empty( $installed ) ) : ?>
<div class="tvd-row">
<p><?php echo esc_html__( 'Click the button below to enable MailPoet integration.', 'thrive-dash' ) ?></p>
</div>
<form>
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>">
<?php if ( count( $installed ) > 1 ) : ?>
<?php $version = $this->param( 'version' ); ?>
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6">
<p>
<input class="tvd-new-connection-yes" name="connection[version]" type="radio" value="2"
id="tvd-new-connection-yes" <?php echo empty( $version ) || $version == 2 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-yes"><?php echo esc_html__( 'Version 2', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<p>
<input class="tvd-new-connection-no" name="connection[version]" type="radio" value="3"
id="tvd-new-connection-no" <?php echo $version == 3 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-no"><?php echo esc_html__( 'Version 3', 'thrive-dash' ); ?></label>
</p>
</div>
</div>
<?php else : ?>
<input type="hidden" name="connection[version]" value="<?php echo esc_attr( $installed[0] ); ?>">
<?php endif; ?>
<?php $this->display_video_link(); ?>
</form>
<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 tvd-api-connect"
href="javascript:void(0)"><?php echo esc_html__( 'Connect', 'thrive-dash' ) ?></a>
</div>
</div>
</div>
<?php else : ?>
<p><?php echo esc_html__( 'You currently do not have any MailPoet WP plugin installed or activated.', 'thrive-dash' ) ?></p>
<br>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12">
<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>
</div>
<?php endif ?>

View File

@@ -0,0 +1,46 @@
<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-mm-api-key" type="text" name="connection[url]"
value="<?php echo esc_attr( $this->param( 'url' ) ); ?>">
<label for="tvd-mm-api-key"><?php echo esc_html__( 'API URL', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mm-api-key"><?php echo esc_html__( 'API key', 'thrive-dash' ) ?></label>
</div>
<p><?php echo esc_html__( 'Would you also like to connect to the Transactional Email Service ?', 'thrive-dash' ) ?></p>
<br/>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<input class="tvd-new-connection-yes" name="connection[new_connection]" type="radio" value="1"
id="tvd-new-connection-yes" <?php echo $this->param( 'new_connection' ) == 1 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-yes"><?php echo esc_html__( 'Yes', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<?php $connection = $this->param( 'new_connection' ); ?>
<input class="tvd-new-connection-no" name="connection[new_connection]" type="radio" value="0"
id="tvd-new-connection-no" <?php echo empty( $connection ) || $connection == 0 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-no"><?php echo esc_html__( 'No', 'thrive-dash' ); ?></label>
</p>
</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,37 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<p>
<strong><?php echo esc_html__( 'Notification:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'Mail Relay limits the number of emails sent per minute to 6. All emails sent after this limit will be discarded', 'thrive-dash' ) ?>
</p>
<p>
<strong><?php echo esc_html__( 'Note:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'Connecting to Mail Relay Email Service will also connect to Mail Relay autoresponders.', 'thrive-dash' ) ?>
</p>
</div>
<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-mm-api-key" type="text" name="connection[domain]"
value="<?php echo esc_attr( $this->param( 'domain' ) ); ?>">
<label for="tvd-mm-api-key"><?php echo esc_html__( 'API URL', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mm-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,40 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<?php
/** @var $this Thrive_Dash_List_Connection_Mailster */
?>
<?php if ( ! empty( $this->pluginInstalled() ) ) : ?>
<div class="tvd-row">
<p><?php echo esc_html__( 'Click the button below to enable Mailster integration.', 'thrive-dash' ); ?></p>
</div>
<form>
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>">
<?php $this->display_video_link(); ?>
</form>
<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 tvd-api-connect"
href="javascript:void(0)"><?php echo esc_html__( 'Connect', 'thrive-dash' ); ?></a>
</div>
</div>
</div>
<?php else : ?>
<p>
<?php echo esc_html__( 'You currently do not have Mailster plugin installed or activated.', 'thrive-dash' ); ?>
</p>
<br>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12">
<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>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,59 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$admin_email = get_option( 'admin_email' ); ?>
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<p>
<strong><?php echo esc_html__( 'Notification:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'If you would like to use Autoresponders to subescribe users. You should fill in the Mailchimp API Key optional field.', 'thrive-dash' ) ?>
</p>
</div>
<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-pm-api-email" type="text" name="connection[email]"
value="<?php echo esc_attr( $this->param( 'email', $admin_email ) ); ?>">
<label for="tvd-pm-api-email">
<?php echo esc_html__( "Mandrill-approved email address", 'thrive-dash' ) ?>
</label>
</div>
<div class="tvd-input-field">
<input id="tvd-m-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-m-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<h4><strong><?php echo esc_html__( 'Mailchimp:', 'thrive-dash' ) ?> </strong></h4>
<div class="tvd-input-field">
<input id="tve-leads-key-mailchimp" class="tve-leads-key-mailchimp" type="text" name="connection[mailchimp_key]"
value="<?php echo esc_attr( $this->param( 'mailchimp_key' ) ); ?>">
<label for="tve-leads-key-mailchimp"><?php echo esc_html__( "Mailchimp API key", 'thrive-dash' ) ?></label>
</div>
<?php $this->display_video_link(); ?>
</form>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<p class="tvd-form-description tvd-note-text">
<?php echo esc_html__( 'Note: Sending from Mandrill only works if the email you enter has been verified in Mandrill.', 'thrive-dash' ) ?>
<a href="https://mandrillapp.com/settings/sending-domains" target="_blank"><?php echo esc_html__( 'Learn more', 'thrive-dash' ) ?></a>.
</p>
</div>
</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,27 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<form class="tvd-col tvd-s12">
<div class="tvd-input-field">
<input id="tvd-op-api-id" type="text" name="connection[app_id]"
value="<?php echo esc_attr( $this->param( 'app_id' ) ); ?>">
<label for="tvd-op-api-id"><?php echo esc_html__( "Application ID", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-op-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-op-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>"/>
<?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,33 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<?php $installed = $this->pluginInstalled(); ?>
<?php if ( ! empty( $installed ) ) : ?>
<div class="tvd-row">
<p><?php echo esc_html__( 'Click the button below to enable Thrive Ovation integration.', 'thrive-dash' ) ?></p>
<?php $this->display_video_link(); ?>
</div>
<form>
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>">
<input type="hidden" name="connection[connected]" value="1">
</form>
<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 tvd-api-connect"
href="javascript:void(0)"><?php echo esc_html__( 'Connect', 'thrive-dash' ) ?></a>
</div>
</div>
</div>
<?php else : ?>
<p><?php echo esc_html__( 'You currently do not have Thrive Ovation plugin installed or activated.', 'thrive-dash' ) ?></p>
<br>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12">
<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>
</div>
<?php endif ?>

View File

@@ -0,0 +1,49 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$admin_email = get_option( 'admin_email' );
?>
<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-pm-api-email" type="text" name="connection[email]"
value="<?php echo esc_attr( $this->param( 'email', $admin_email ) ); ?>">
<label for="tvd-pm-api-email">
<?php echo esc_html__( "Postmark-approved email address", 'thrive-dash' ) ?>
</label>
</div>
<div class="tvd-input-field">
<input id="tvd-pm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-pm-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<?php $this->display_video_link(); ?>
</form>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<p class="tvd-form-description tvd-note-text">
<?php echo esc_html__( 'Note: sending from Postmark only works if the email you enter has been verified in Postmark.', 'thrive-dash' ) ?>
<a href="http://developer.postmarkapp.com/" target="_blank"><?php echo esc_html__( 'Learn more', 'thrive-dash' ) ?></a>.
</p>
</div>
</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,69 @@
<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-row">
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding tvd-browsing-history"><?php echo esc_html__( 'reCaptcha version', 'thrive-dash' ) ?></div>
<div class="tvd-col tvd-s12 tvd-m3 tvd-no-padding">
<p>
<input class="tvd-recaptcha-version" name="connection[version]" type="radio" value="v2"
id="tvd-recaptcha-v2" <#- item && item.site_key && item.connection && item.connection.version ==='v2'? 'checked="checked"':''#> >
<label for="tvd-recaptcha-v2">V2</label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m3 tvd-no-padding">
<p>
<input class="tvd-recaptcha-version" name="connection[version]" type="radio" value="v3"
id="tvd-recaptcha-v3" <#- ! item || ( item && item.connection && item.connection.version ==='v3' ) ? 'checked="checked"':''#>>
<label for="tvd-recaptcha-v3">V3</label>
</p>
</div>
</div>
<div class="tvd-row tvd-use-browsing-history"
<#= item && ( item.connection && item.connection.version !=='v3' ) ? 'style="display:none;"' : '' #> >
<div class="tvd-col tvd-s12 tvd-m9 tvd-no-padding "><?php echo esc_html__( 'Use browsing history to determine genuine traffic (recommended)', 'thrive-dash' ) ?></div>
<div class="tvd-col tvd-s12 tvd-m3 tvd-no-padding tvd-switch">
<label>
<input type="checkbox" name="connection[browsing_history]" value="1" <#- ! item || ( item && item.connection && item.connection.browsing_history ) ? 'checked="checked"':''#>>
<span class="tvd-lever"></span>
</label>
</div>
</div>
<div class="tvd-row tvd-use-browsing-history" <#= item && ( item.connection && item.connection.version !=='v3' ) ? 'style="display:none;"' : '' #> >
<div class="tvd-col tvd-s12 tvd-m9 tvd-no-padding "><?php echo esc_html__( 'Reject the scores below:', 'thrive-dash' ) ?></div>
<div class="tvd-row" style="margin-bottom: 0px;">
<div class="tvd-col tvd-m10">
<input type="range" id="rangeInputId" oninput="rangeOutputId.value = rangeInputId.value" name="connection[threshold]" min="0" max="1" step="0.1"
value="<#= item && ( item.connection && item.connection.threshold )? item.connection.threshold: 0.5 #>"/>
</div>
<div class="tvd-col tvd-margin-top">
<output id="rangeOutputId"><#= item && ( item.connection && item.connection.threshold )? item.connection.threshold: 0.5 #></output>
</div>
</div>
</div>
<div class="tvd-input-field tvd-row">
<input id="tvd-rc-api-site-key" type="text" name="site_key"
value="<#- item && item.site_key #>">
<label for="tvd-rc-api-site-key"><?php echo esc_html__( 'Site key', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field tvd-row">
<input id="tvd-ac-api-secret-key" type="text" name="secret_key"
value="<#- item && item.secret_key #>">
<label for="tvd-ac-api-secret-key"><?php echo esc_html__( 'Secret key', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-row">
<?php $this->display_video_link(); ?>
</div>
</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,22 @@
<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-mm-api-key" type="text" name="connection[api_key]"
value="<?php echo esc_attr( $this->param( 'api_key' ) ) ?>">
<label for="tvd-mm-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,61 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** @var $this Thrive_Dash_List_Connection_SendGrid */
$version = (int) $this->get_version();
$version = ! $version ? 1 : $version;
?>
<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-mm-api-key" type="text" name="connection[key]" value="<?php echo esc_attr( $this->param( 'key' ) ); ?>"/>
<label for="tvd-mm-api-key"><?php echo esc_html__( 'API key', 'thrive-dash' ); ?></label>
</div>
<p><?php echo esc_html__( 'Would you also like to connect to the Transactional Email Service ?', 'thrive-dash' ); ?></p>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<input class="tvd-new-connection-yes" name="connection[new_connection]" type="radio" value="1" id="tvd-new-connection-yes" <?php echo $this->param( 'new_connection' ) == 1 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-yes"><?php echo esc_html__( 'Yes', 'thrive-dash' ); ?></label>
</div>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<?php $connection = $this->param( 'new_connection' ); ?>
<input class="tvd-new-connection-no" name="connection[new_connection]" type="radio" value="0" id="tvd-new-connection-no" <?php echo empty( $connection ) || $connection == 0 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-no"><?php echo esc_html__( 'No', 'thrive-dash' ); ?></label>
</p>
</div>
<br><br>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<input class="tvd-version-1 tvd-api-hide-extra-options" name="connection[version]" type="radio" disabled value="1" id="tvd-version-1" <?php checked( $version, 1, true ); ?> />
<label for="tvd-version-1"><?php echo esc_html__( 'Version 1', 'thrive-dash' ); ?></label>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<input class="tvd-version-2 tvd-api-show-extra-options" name="connection[version]" type="radio" value="2" id="tvd-version-2" <?php echo ! $this->is_connected() || 2 === $version ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-2"><?php echo esc_html__( 'Version 2', 'thrive-dash' ); ?></label>
</div>
<input type="hidden" name="connection[versioning]" value="1">
<?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,28 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<p>
<strong><?php echo esc_html__( 'Note:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'Connecting to SendGrid Email Service will also connect to SendGrid autoresponders.', 'thrive-dash' ) ?>
</p>
</div>
<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-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mm-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,51 @@
<?php
/** var $this Thrive_Dash_List_Connection_SendinblueEmail */
?>
<h2 class="tvd-card-title"><?php echo $this->get_title() ?></h2>
<p class="tvd-center">
<?php echo __( 'formerly SendinBlue', 'thrive-dash' ); ?>
</p>
<div class="tvd-row">
<form class="tvd-col tvd-s12">
<input type="hidden" name="api" value="<?php echo $this->get_key() ?>"/>
<input type="hidden" name="connection[v3]" value="1"/>
<div class="tvd-input-field">
<input id="tvd-aw-api-email" type="text" name="connection[key]"
value="<?php echo $this->param( 'key' ) ?>">
<label for="tvd-aw-api-email"><?php echo __( 'API key', 'thrive-dash' ) ?></label>
</div>
<p><?php echo __( 'Would you also like to connect to the Transactional Email Service ?', 'thrive-dash' ) ?></p>
<br/>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<input class="tvd-new-connection-yes" name="connection[new_connection]" type="radio" value="1"
id="tvd-new-connection-yes" <?php echo $this->param( 'new_connection' ) == 1 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-yes"><?php echo __( 'Yes', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<?php $connection = $this->param( 'new_connection' ); ?>
<input class="tvd-new-connection-no" name="connection[new_connection]" type="radio" value="0"
id="tvd-new-connection-no" <?php echo empty( $connection ) || $connection == 0 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-no"><?php echo __( 'No', 'thrive-dash' ); ?></label>
</p>
</div>
<?php $this->display_video_link(); ?>
</form>
</div>
<?php if ( ! empty( $this->param( 'key' ) ) && ! $this->is_v3() ) : ?>
<a class="tvd-api-upgrade-v3 tvd-api-connect tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-blue tvd-full-btn tvd-margin-bottom"
href="javascript:void(0)"><?php echo __( 'I want to use API v3', 'thrive-dash' ) ?>
</a>
<?php endif ?>
<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 __( '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 __( 'Connect', 'thrive-dash' ) ?></a>
</div>
</div>
</div>

View File

@@ -0,0 +1,51 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** var $this Thrive_Dash_List_Connection_SendinblueEmail */
?>
<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-aw-api-email" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-aw-api-email"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<p><?php echo esc_html__( 'Would you also like to connect to the Transactional Email Service ?', 'thrive-dash' ) ?></p>
<br/>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<input class="tvd-new-connection-yes" name="connection[new_connection]" type="radio" value="1"
id="tvd-new-connection-yes" <?php echo $this->param( 'new_connection' ) == 1 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-yes"><?php echo esc_html__( 'Yes', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m4 tvd-no-padding">
<p>
<?php $connection = $this->param( 'new_connection' ); ?>
<input class="tvd-new-connection-no" name="connection[new_connection]" type="radio" value="0"
id="tvd-new-connection-no" <?php echo empty( $connection ) || $connection == 0 ? 'checked="checked"' : ''; ?> />
<label for="tvd-new-connection-no"><?php echo esc_html__( 'No', 'thrive-dash' ); ?></label>
</p>
</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,44 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** var $this Thrive_Dash_List_Connection_SendinblueEmail */
?>
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<p class="tve-form-description tvd-note-text">
<?php echo esc_html__( 'Note: Sending email through Sendinblue only works if the SMTP feature is activated for your account.', 'thrive-dash' ) ?>
<a href="https://resources.sendinblue.com/en/francais-mon-compte-sendinblue-smtp-nest-pas-active-comment-faire/"
target="_blank"><?php echo esc_html__( 'Learn more', 'thrive-dash' ) ?></a>.
</p>
<p>
<strong><?php echo esc_html__( 'Note:', 'thrive-dash' ) ?> </strong><?php echo esc_html__( 'Connecting to Sendinblue Email Service will also connect to Sendinblue autoresponders.', 'thrive-dash' ) ?>
</p>
</div>
<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-aw-api-email" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-aw-api-email"><?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,32 @@
<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-sl-api-url" type="text" name="connection[api_url]"
value="<?php echo esc_attr( $this->param( 'api_url' ) ); ?>">
<label for="tvd-sl-api-url"><?php echo esc_html__( 'API URL', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-sl-api-key" type="text" name="connection[api_key]"
value="<?php echo esc_attr( $this->param( 'api_key' ) ) ?>">
<label for="tvd-sl-api-key"><?php echo esc_html__( 'API key', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-sl-hash-key" type="text" name="connection[hash_key]"
value="<?php echo esc_attr( $this->param( 'api_key' ) ) ?>">
<label for="tvd-sl-hash-key"><?php echo esc_html__( 'HASH 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,40 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** var $this Thrive_Dash_List_Connection_SendLayer */
?>
<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-mg-api-key" type="text" name="connection[key]" value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mg-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
</form>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-12">
<p class="tve-form-description tvd-note-text">
<a href="https://help.thrivethemes.com/en/articles/8707465-setting-up-an-api-connection-with-sendlayer" target="_blank"><?php echo esc_html__( 'I need help with this', 'thrive-dash' ) ?></a>.
</p>
</div>
</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,33 @@
<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-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mm-api-key"><?php echo esc_html__( 'API key', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-mm-api-key" type="text" name="connection[secret]"
value="<?php echo esc_attr( $this->param( 'secret' ) ); ?>">
<label for="tvd-mm-api-key"><?php echo esc_html__( 'API Secret', 'thrive-dash' ) ?></label>
</div>
<br/>
<a href="https://thrivethemes.com/tkb_item/how-to-set-the-right-permissions-for-a-new-api-key-in-sendowl/" target="_blank"><?php echo esc_html__( 'Important: Be sure to set the right permissions for your API key to work', 'thrive-dash' ) ?></a>
<?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,81 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$version = $this->param( 'version' ); ?>
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row">
<form class="">
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>"/>
<input type="hidden" name="connection[versioning]" value="1"/>
<div class="tvd-col tvd-s10 tvd-extra-options <?php echo empty( $version ) || $version === '1' ? 'tvd-hide"' : ''; ?>">
<div class="tvd-input-field">
<input id="tvd-s-api-url" type="text" name="connection[api_key]"
value="<?php echo esc_attr( $this->param( 'api_key' ) ) ?>">
<label for="tvd-s-api-url"><?php echo esc_html__( "Api Key", 'thrive-dash' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s10">
<div class="tvd-input-field">
<input id="tvd-s-api-url" type="text" name="connection[url]"
value="<?php echo esc_attr( $this->param( 'url' ) ); ?>">
<label for="tvd-s-api-url"><?php echo esc_html__( "Installation URL", 'thrive-dash' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s10">
<div class="tvd-input-field">
<input class="tvd-api-add-chip" id="tvd-s-api-lists" type="text" data-name="connection[lists][]" name="connection[lists][]"/>
<label for="tvd-s-api-lists"><?php echo esc_html__( "List ID", 'thrive-dash' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s2">
<i class="tvd-icon-question-circle tvd-tooltipped" data-position="top"
data-tooltip="<?php echo esc_html__( "Write the list ID and press the enter key", 'thrive-dash' ) ?>"></i>
</div>
<div class="tvd-api-chip-wrapper tvd-col tvd-s12">
<?php /** @var $this Thrive_Dash_List_Connection_Sendy */ ?>
<?php $lists = $this->param( 'lists' ); ?>
<?php if ( ! empty( $lists ) ) : ?>
<?php foreach ( $lists as $key => $value ) : ?>
<div class="tvd-chip"><?php echo esc_html( $value ); ?><i class="tvd-icon-close2"></i></div><input
type="hidden" name="connection[lists][]"
value="<?php echo esc_attr( $value ); ?>"/>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<p>
<input class="tvd-version-2 tvd-api-hide-extra-options" name="connection[version]" type="radio" value="1"
id="tvd-version-1" <?php echo empty( $version ) || $version === '1' ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-1"><?php echo esc_html__( 'Below 4.0.3.3', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<p>
<input class="tvd-version-3 tvd-api-show-extra-options" name="connection[version]" type="radio" value="2"
id="tvd-version-2" <?php echo ! empty( $version ) && $version === '2' ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-2"><?php echo esc_html__( 'Above 4.0.3.3', 'thrive-dash' ); ?></label>
</p>
</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,2 @@
<div class="tve-sp"></div>
<p><?php echo esc_html__( "Note: we would prefer displaying the list names instead of IDs here, but unfortunately that isn't possible with Sendy.", 'thrive-dash' ) ?></p>

View File

@@ -0,0 +1,31 @@
<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-pm-api-memberid" type="text" name="connection[memberid]"
value="<?php echo esc_attr( $this->param( 'memberid' ) ) ?>">
<label for="tvd-pm-api-memberid">
<?php echo esc_html__( "Member ID", 'thrive-dash' ) ?>
</label>
</div>
<div class="tvd-input-field">
<input id="tvd-mm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-mm-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,45 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** @var $this Thrive_Dash_List_Connection_Slack */
$is_iframe = isset( $_SERVER['HTTP_SEC_FETCH_DEST'] ) && $_SERVER['HTTP_SEC_FETCH_DEST'] == 'iframe';
?>
<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 Slack 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" <?php echo $is_iframe ? 'target="_blank"' : '' ?>
href="<?php echo esc_url( $this->get_authorize_url() ) ?>"><?php echo esc_html__( 'Connect', 'thrive-dash' ); ?></a>
</div>
</div>
</div>
<?php } catch ( 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 Slack API. Below are the error details:', 'thrive-dash' ); ?></p>
<?php echo esc_html( $message );
if ( $api_url ) {
echo ' (API URL: ' . esc_html( $api_url ) . ')';
}
}
?>

View File

@@ -0,0 +1,49 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$admin_email = get_option( 'admin_email' );
?>
<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-mg-api-domain" type="text" name="connection[domain]"
value="<?php echo esc_attr( $this->param( 'domain' ) ); ?>">
<label
for="tvd-mg-api-domain"><?php echo esc_html__( "SparkPost-verified email", 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-pm-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-pm-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<?php $this->display_video_link(); ?>
</form>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-12">
<p class="tve-form-description tvd-note-text">
<?php echo esc_html__( 'Note: Sending through SparkPost only works if your domain name has been set and verified within your SparkPost account. You can use "testing@sparkpostbox.com" as verified email to test your application while waiting for your own to be verified.', 'thrive-dash' ) ?>
<a href="https://support.sparkpost.com/customer/portal/articles/1933360-verify-sending-domains"
target="_blank"><?php echo esc_html__( 'Learn more', 'thrive-dash' ) ?></a>.
</p>
</div>
</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,155 @@
<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-row tvd-collapse">
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline tvd-input-field">
<label for="tvd-ac-api-secret-key" class="tvd-active tvd-label-dark-text"><?php echo esc_html__( 'Theme', 'thrive-dash' ) ?></label>
<select class="tve-api-extra tl-api-connection-list" name="theme">
<option value="auto"
<#- (item && item.theme === 'auto') ? 'selected="selected"' : '' #>><?php echo esc_html__( 'Auto', 'thrive-dash' ) ?></option>
<option value="light"
<#- (item && item.theme === 'light') ? 'selected="selected"' : '' #>><?php echo esc_html__( 'Light', 'thrive-dash' ) ?></option>
<option value="dark"
<#- (item && item.theme === 'dark') ? 'selected="selected"' : '' #>><?php echo esc_html__( 'Dark', 'thrive-dash' ) ?></option>
</select>
</div>
</div>
<div class="tvd-row tvd-collapse">
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline tvd-input-field">
<label for="tvd-ac-api-secret-key" class="tvd-active tvd-label-dark-text"><?php echo esc_html__( 'Language', 'thrive-dash' ) ?></label>
<select class="tve-api-extra tl-api-connection-list" name="language">
<?php foreach ( $this->supportedLanguages() as $language ) {
echo $language['html'];
} ?>
</select>
</div>
</div>
<div class="tvd-row tvd-collapse">
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline tvd-input-field">
<label for="tvd-ac-api-secret-key" class="tvd-active tvd-label-dark-text"><?php echo esc_html__( 'Appearance mode', 'thrive-dash' ) ?></label>
<select class="tve-api-extra tl-api-connection-list" name="appearance">
<option value="always"
<#- (item && item.appearance === 'always') ? 'selected="selected"' : '' #> ><?php echo esc_html__( 'Always', 'thrive-dash' ) ?></option>
<option value="interaction-only"
<#- (item && item.appearance === 'interaction-only') ? 'selected="selected"' : '' #> ><?php echo esc_html__( 'Interaction Only', 'thrive-dash' ) ?></option>
</select>
</div>
</div>
<div class="tvd-row tvd-collapse">
<div class="tve_lightbox_select_holder tve_lightbox_input_inline tve_lightbox_select_inline tvd-input-field">
<label for="tvd-ac-api-secret-key" class="tvd-active tvd-label-dark-text"><?php echo esc_html__( 'Size', 'thrive-dash' ) ?></label>
<select class="tve-api-extra tl-api-connection-list" name="size" value="<#- item && item.size #>">
<option value="normal"
<#- (item && item.size === 'normal') ? 'selected="selected"' : '' #> ><?php echo esc_html__( 'Normal', 'thrive-dash' ) ?></option>
<option value="compact"
<#- (item && item.size === 'compact') ? 'selected="selected"' : '' #> ><?php echo esc_html__( 'Compact', 'thrive-dash' ) ?></option>
</select>
</div>
</div>
<div class="tvd-input-field tvd-row">
<input id="tvd-tt-api-site-key" type="text" name="site_key" value="<#- item && item.site_key #>">
<label for="tvd-tt-api-site-key"><?php echo esc_html__( 'Site key', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field tvd-row">
<input id="tvd-tt-api-secret-key" type="text" name="secret_key" value="<#- item && item.secret_key #>">
<label for="tvd-tt-api-secret-key"><?php echo esc_html__( 'Secret key', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-row">
<p class="tve-form-description tvd-note-text">
<a href="https://developers.cloudflare.com/turnstile/get-started" target="_blank"><?php echo esc_html__( 'I need help with this', 'thrive-dash' ) ?></a>
</p>
</div>
<div id="tvd-tt-api-notification"></div>
<div class="cf-turnstile" id="turnstile" data-sitekey=""></div>
<input id="tvd-tt-api-token" type="hidden" name="api_token" value="<#- item && item.api_token #>">
</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>
<script type="text/javascript">
(
function ( $ ) {
$( document ).ready( function () {
$( '#tvd-tt-api-site-key' ).on( 'keyup', function () {
loadTurnstile();
} );
$( '#tvd-tt-api-secret-key' ).on( 'keyup', function () {
loadTurnstile();
} );
function valid( value ) {
if ( ! value ) {
return false;
}
return value && value.length
}
function showMessage( class_name, message ) {
const $notification_wrapper = $( '#tvd-tt-api-notification' );
$notification_wrapper.empty();
if ( message.length === 0 ) {
return;
}
$notification_wrapper.append( `<h4 class="${class_name}">${message}</h4>` )
}
function loadTurnstile() {
let siteKey = $( '#tvd-tt-api-site-key' ).val(); // it is important for api settings in dashbaord
let secretKey = $( '#tvd-tt-api-secret-key' ).val();
if ( ! valid( siteKey ) || ! valid( secretKey ) ) {
return;
}
let id = '#turnstile';
let $turnstile = jQuery( id );
$turnstile.attr( 'data-sitekey', siteKey );
$turnstile.html( '' );
const $input = $( '#tvd-tt-api-token' );
const $btn = $( '#tvd-api-connect-btn' );
$input.val( "invalid_token" );
showMessage( 'tve-warning', 'Please wait! We are verifying your site key.' )
turnstile.render( id, {
sitekey: siteKey,
'error-callback': errorCallback,
callback: ( token ) => {
$input.val( token );
showMessage( '', '' );
}
} )
}
function errorCallback( error ) {
showMessage( 'tve-error', 'Error! please enter valid credentials.' );
if ( typeof turnstile.reset === 'function' ) {
turnstile.reset();
}
}
} );
}
)( jQuery );
</script>

View File

@@ -0,0 +1,40 @@
<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-rc-api-access-token" type="text" name="access_token"
value="<?php echo esc_attr( $this->param( 'access_token' ) ); ?>">
<label for="tvd-rc-api-access-token"><?php echo esc_html__( 'Access Token', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-rc-api-token-secret" type="text" name="token_secret"
value="<?php echo esc_attr( $this->param( 'token_secret' ) ) ?>">
<label for="tvd-rc-api-token-secret"><?php echo esc_html__( 'Access Token Secret', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-rc-api-api-key" type="text" name="api_key"
value="<?php echo esc_attr( $this->param( 'api_key' ) ) ?>">
<label for="tvd-rc-api-api-key"><?php echo esc_html__( 'Api Key', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-ac-api-api-secret" type="text" name="api_secret"
value="<?php echo esc_attr( $this->param( 'api_secret' ) ) ?>">
<label for="tvd-ac-api-api-secret"><?php echo esc_html__( 'Api Secret', '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,57 @@
<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-wj-api-key" type="text" name="connection[key]"
value="<?php echo esc_attr( $this->param( 'key' ) ); ?>">
<label for="tvd-wj-api-key"><?php echo esc_html__( "API key", 'thrive-dash' ) ?></label>
</div>
<?php $version = $this->param( 'version' ); ?>
<?php if ( $this->is_connected() && 4 !== (int) $version ) : ?>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<p>
<input class="tvd-version-1 tvd-api-show-extra-options" name="connection[version]" type="radio" value="1"
id="tvd-version-1" <?php echo ! empty( $version ) && $version == 1 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-1"><?php echo esc_html__( 'New version', 'thrive-dash' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s12 tvd-m6 tvd-no-padding">
<p>
<input class="tvd-version-0 tvd-api-hide-extra-options" name="connection[version]" type="radio" value="0"
id="tvd-version-0" <?php echo empty( $version ) || $version == 0 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-0"><?php echo esc_html__( 'Old version', 'thrive-dash' ); ?></label>
</p>
</div>
<?php endif; ?>
<div class="tvd-col tvd-s12 tvd-m12 tvd-no-padding">
<p>
<input class="tvd-version-4 tvd-api-show-extra-options" name="connection[version]" type="radio" value="<?php echo esc_attr( TD_Inbox::WEBINARJAM_V4 ); ?>"
id="tvd-version-4" <?php echo empty( $version ) || $version == TD_Inbox::WEBINARJAM_V4 ? 'checked="checked"' : ''; ?> />
<label for="tvd-version-4">
<?php echo sprintf( esc_html__( 'Version %s', 'thrive-dash' ), esc_html( TD_Inbox::WEBINARJAM_V4 ) ); ?>
</label>
</p>
</div>
<?php $this->display_video_link(); ?>
</form>
</div>
<div class="tvd-row tvd-card-title">
<?php
echo esc_html__( "When you switch between versions, please make sure to update all forms connected to this API." );
?>
</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,37 @@
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<div class="tvd-row tvd-center tvd-wordpress-helper">
<# if (item.registration_disabled) { #>
<?php esc_html_e( 'Enabling this connection will allow Thrive registration forms to accept new signups.', 'thrive-dash' ); ?>
<# } else { #>
<?php esc_html_e( 'Disabling this connection will prevent Thrive registration forms from accepting new signups.', 'thrive-dash' ); ?>
<# } #>
</div>
<?php $this->display_video_link(); ?>
<br>
<br>
<form class="tvd-hide">
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>">
</form>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-waves-effect tvd-btn-compact tvd-waves-light tvd-btn tvd-btn-<#=item.registration_disabled ? 'green' : 'red'#> tvd-full-btn"
href="javascript:void(0)" data-custom-action="wordpressToggleState">
<# if (item.registration_disabled) { #>
<?php esc_html_e( 'YES, ENABLE', 'thrive-dash' ); ?>
<# } else { #>
<?php esc_html_e( 'YES, DISABLE', 'thrive-dash' ); ?>
<# } #>
</a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-api-cancel tvd-btn-compact tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-full-btn tvd-waves-effect">
<# if (item.registration_disabled) { #>
<?php esc_html_e( 'CANCEL', 'thrive-dash' ); ?>
<# } else { #>
<?php esc_html_e( 'NO, KEEP IT', 'thrive-dash' ); ?>
<# } #>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,87 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** var $this Thrive_Dash_List_Connection_Zapier */
$using_https = ( strpos( get_site_url(), 'https://' ) !== false ) && is_ssl() ? true : false;
?>
<h2 class="tvd-card-title"><?php echo esc_html( $this->get_title() ); ?></h2>
<?php if ( ! $using_https ) : ?>
<div class="tvd-row tvd-text-red">
<p><?php echo esc_html__( 'In order to be able to create a connection between your website and Zapier, your website must be secure.', 'thrive-dash' ); ?></p>
<p>&nbsp;</p>
<p><?php echo esc_html__( 'Thus, for security reasons, please make sure that your website has a valid SSL certificate and it works properly on the "https" protocol.', 'thrive-dash' ); ?></p>
<p>&nbsp;</p>
<p><?php echo sprintf( esc_html__( 'If you need more information on this matter, please read %s this article%s.', 'thrive-dash' ), '<a href="https://thrivethemes.com/tkb_item/how-to-make-sure-your-website-is-secure-with-ssl-and-https/" target="_blank">', '</a>' ); ?></p>
</div>
<?php else : ?>
<div class="tdz-mb20">
<p><?php echo esc_html__( 'Copy the API Key and the Blog URL from the fields below to connect to Zapier.', 'thrive-dash' ); ?></p>
</div>
<div class="tvd-row">
<form class="tvd-col tvd-s12 tvd-zapier-rel">
<input type="hidden" name="api" value="<?php echo esc_attr( $this->get_key() ); ?>"/>
<div class="tvd-input-field">
<input id="tvd-zapier-api-key" readonly type="text" name="connection[api_key]" value="<?php echo esc_attr( $this->get_api_key() ); ?>">
<label for="tvd-zapier-api-key"><?php echo esc_html__( 'API key', 'thrive-dash' ); ?></label>
</div>
<div class="tvd-row tvd-collapse tvd-copy-row">
<div class="tvd-no-margin-left">
<div class="tvd-input-field">
<input type="hidden" id="tvd-zapier-token-hidden" class="tvd-zapier-token-hidden tvd-copy" disabled="disabled"
name="tvd-zapier-token-hidden" value="<?php echo esc_attr( $this->get_api_key() ); ?>"/>
<span class="">
<a class="tvd-zapier-copy-key tvd-right"
href="javascript:void(0)">
<span class="">&nbsp;</span>
</a>
</span>
</div>
</div>
</div>
<div class="tvd-input-field">
<input id="tvd-zapier-api-blog_url" readonly type="text" name="connection[blog_url]" value="<?php echo esc_attr( $this->get_blog_url() ); ?>">
<label for="tvd-zapier-api-blog_url"><?php echo esc_html__( 'Blog URL', 'thrive-dash' ); ?></label>
</div>
<div class="tvd-row tvd-collapse tvd-copy-row">
<div class="tvd-no-margin-left">
<div class="tvd-input-field">
<input type="hidden" id="tvd-zapier-url-hidden" class="tvd-zapier-url-hidden tvd-copy" disabled="disabled"
name="tvd-zapier-url-hidden"
value="<?php echo esc_attr( $this->get_blog_url() ); ?>"/>
<span class="">
<a class="tvd-zapier-copy-url tvd-right"
href="javascript:void(0)">
<span class="">&nbsp;</span>
</a>
</span>
</div>
</div>
</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>
<?php endif; ?>

View File

@@ -0,0 +1,47 @@
<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-mm-zoho-url" type="text" name="connection[account_url]"
value="<?php echo esc_attr( $this->param( 'account_url' ) ); ?>">
<label for="tvd-mm-zoho-url"><?php echo esc_html__( 'Account Url', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-mm-api-client-id" type="text" name="connection[client_id]"
value="<?php echo esc_attr( $this->param( 'client_id' ) ); ?>">
<label for="tvd-mm-api-client-id"><?php echo esc_html__( 'Zoho Client ID', 'thrive-dash' ) ?></label>
</div>
<div class="tvd-input-field">
<input id="tvd-mm-api-client-secret" type="text" name="connection[client_secret]"
value="<?php echo esc_attr( $this->param( 'client_secret' ) ); ?>">
<label for="tvd-mm-api-client-secret"><?php echo esc_html__( 'Zoho Client Secret', 'thrive-dash' ) ?></label>
</div>
<?php if ( empty( $this->param( 'account_url' ) ) ) : ?>
<div class="tvd-input-field">
<input id="tvd-mm-api-code" type="text" name="connection[access_code]"
value="<?php echo esc_attr( $this->param( 'access_code' ) ); ?>">
<label for="tvd-mm-api-code"><?php echo esc_html__( 'Access Code', 'thrive-dash' ) ?></label>
</div>
<?php else: ?>
<input type="hidden" name="connection[access_token]" value="<?php echo esc_attr( $this->param( 'access_token' ) ); ?>">
<input type="hidden" name="connection[refresh_token]" value="<?php echo esc_attr( $this->param( 'refresh_token' ) ); ?>">
<input type="hidden" name="connection[acctk_validity_time]" value="<?php echo esc_attr( $this->param( 'acctk_validity_time' ) ); ?>">
<?php endif; ?>
<?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>