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,41 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list tve-active-campaign-list" data-name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose the form you want to use:', 'thrive-cb' ); ?>
</div>
<div class="control-grid p-0">
<select class="tve-api-extra activecampaign-list-form" name="form"></select>
</div>
<div class="field-description ac-error m-0">
<?php echo __( 'No forms available!', 'thrive-cb' ); ?>
</div>
</div>
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# if ( api.get('lists').length == 0 ) { #>
<#= TVE.tpl( 'util/option', {value:0, selected: true, text: '<?php echo __( 'No lists found', 'thrive-cb' ); ?>'}) #>
<# } #>
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>

View File

@@ -0,0 +1,13 @@
<!-- Used by 3rd party APIs -->
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose the form you want to use:', 'thrive-cb' ); ?>
</div>
<div class="control-grid p-0">
<select class="tve-api-extra tcb-form-list" name="form"></select>
</div>
<div class="field-description tcb-forms-error m-0">
<?php echo __( 'No forms available!', 'thrive-cb' ); ?>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose the type of optin you would like for your integration', 'thrive-cb' ) ?>
</div>
<select class="tve-api-extra tve-api-optin-select" name="optin">
<#= TVE.tpl( 'util/option', {value:'s', selected: (api.getConfig('optin') === 's'), text: '<?php echo __( 'Single optin', 'thrive-cb' ) ?>'}) #>
<#= TVE.tpl( 'util/option', {value:'d', selected: (api.getConfig('optin') === 'd'), text: '<?php echo __( 'Double optin', 'thrive-cb' ) ?>'}) #>
</select>
</div>

View File

@@ -0,0 +1,15 @@
<!-- Used by 3rd party APIs -->
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>

View File

@@ -0,0 +1,15 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>

View File

@@ -0,0 +1,144 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose what should happen in Drip when this form is submitted:', 'thrive-cb' ); ?>
</div>
<# var type = api.getConfig('type') #>
<div class="tvd-input-field">
<select class="tve-api-extra drip-connection-type" name="type">
<#= TVE.tpl( 'util/option', {value:'list', selected: (type && type == 'list'), text: '<?php echo __( 'Add to Campaign', 'thrive-cb' ) ?>'})
#>
<#= TVE.tpl( 'util/option', {value:'automation', selected: (type && type == 'automation'), text:
'<?php echo __( 'Record Custom Event', 'thrive-cb' ) ?>'}) #>
<#= TVE.tpl( 'util/option', {value:'tag', selected: (type && type == 'tag'), text:
'<?php echo __( 'Add to Tags', 'thrive-cb' ) ?>'}) #>
</select>
</div>
</div>
<div class="api-field tve-api-option-group tve-api-option-group-list"
<#= ( ! type || type == 'list' ) ? '' : 'style="display: none;"' #>>
<div class="field-description">
<?php echo __( '(You can add new subscribers to an existing Drip campaign or record a custom event. Custom events are used for Drip Automations.)', 'thrive-cb' ) ?>
</div>
<div class="field-description">
<?php echo __( 'Choose campaign: ', 'thrive-cb' ) ?>
</div>
<div class="control-grid">
<select class="api-list" name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>
<div class="api-field tve-api-option-group tve-api-option-group-list"
<#= ( ! type || type == 'list' ) ? '' : 'style="display: none;"' #>>
<div class="tve-custom-proprieties-container mt-10">
<div class="field-description mt-20"><?php echo __( 'If you use a name field in your form, these are the labels under which collected names are passed on to Drip.', 'thrive-cb' ) ?></div>
<div class="field-description" style="margin: 0;">
<?php echo __( 'First Name field label:', 'thrive-cb' ) ?>
</div>
<div class="tvd-input-field ">
<input type="text" name="first_name_field" value="<#= api.getConfig('first_name_field') || 'thrive_first_name' #>"
placeholder="thrive_first_name" style="margin-top: 0;margin-bottom: 20px;color: #6d7882;font-size:13px;height: 1.5em;"/>
</div>
<div class="field-description" style="margin: 0;">
<?php echo __( 'Last Name field label:', 'thrive-cb' ) ?>
</div>
<div class="tvd-input-field ">
<input type="text" name="last_name_field" value="<#= api.getConfig('last_name_field') || 'thrive_last_name' #>" placeholder="thrive_last_name"
style="margin-top: 0;color: #6d7882;font-size:13px;height: 1.5em;"/>
</div>
<div class="field-description">
<?php echo __( 'Choose opt-in type:', 'thrive-cb' ) ?>
</div>
<div class="tvd-input-field">
<select class="tve-api-extra tl-api-connection-list" name="optin">
<option value="s"
<#= api.getConfig('optin') === 's' ? 'selected="selected"' : '' #> ><?php echo __( 'Single optin', 'thrive-cb' ) ?></option>
<option value="d"
<#= api.getConfig('optin') === 'd' ? 'selected="selected"' : '' #> ><?php echo __( 'Double optin', 'thrive-cb' ) ?></option>
</select>
</div>
</div>
</div>
<div class="api-field tve-api-option-group tve-api-option-group-automation"
<#= ( ! type || type == 'list' ) ? 'style="display: none;"' : '' #>>
<div class="field-description">
<?php echo __( 'Set custom event parameters:', 'thrive-cb' ) ?>
</div>
<div class="tve-custom-fields-container">
<# var properties = api.get('custom_properties')? api.get('custom_properties'): [], no = 1 #>
<# if ( Object.keys(properties).length ) { #>
<# _.each(properties, function(item, index) { #>
<div class="tve-field-pair">
<div class="control-grid wrap">
<div class="tvd-input-field">
<div class="field-description mb-0"><?php echo __( 'Custom Field', 'thrive-cb' ) ?></div>
<input type="text" placeholder="thrive_custom_field" class="drip-custom-field mt-0 index-custom-field tve-api-extra-excluded" name="field"
value="<#= index #>"/>
</div>
<div class="tvd-input-field">
<div class="field-description mb-0"><?php echo __( 'Custom Field Value', 'thrive-cb' ) ?></div>
<input type="text" placeholder="<?php echo __( 'Custom Field Value', 'thrive-cb' ) ?>"
class="drip-custom-field-value mt-0 tve-api-extra" name="field[<#= index #>]" value="<#= item #>"/>
</div>
<# if(no++ > 1) { #>
<div class="tve-remove-action">
<button class="button-link red tve-remove-added-field click"><?php echo __( 'Remove', 'thrive-cb' ) ?></button>
</div>
<# } #>
</div>
</div>
<# } ) #>
<# } else {#>
<div class="tve-field-pair">
<div class="control-grid wrap">
<div class="tvd-input-field">
<div class="field-description mb-0"><?php echo __( 'Custom Field', 'thrive-cb' ) ?></div>
<input type="text" class="index-custom-field drip-custom-field" name="field" placeholder="thrive_custom_field"/>
</div>
<div class="tvd-input-field">
<div class="field-description mb-0"><?php echo __( 'Value', 'thrive-cb' ) ?></div>
<input type="text" placeholder="<?php echo __( 'Value', 'thrive-cb' ) ?>"
class="drip-custom-field-value tve-api-extra" name="field[thrive_custom_field]"/>
</div>
<div class="tve-remove-action" style="display:none">
<span class="tcb-right red tve-remove-added-field click"> <?php tcb_icon( 'trash-light' ) ?></span>
</div>
</div>
</div>
<# } #>
</div>
<div>
<div>
<button class="button-link blue tve-add-new-field click">
<?php echo __( 'Add a new custom field', 'thrive-cb' ) ?>
</button>
</div>
<div class="field-description">
<?php echo __( 'Custom field value must be without spaces (use dashes or underscores, instead).', 'thrive-cb' ); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,5 @@
<label class="tcb-checkbox">
<input type="checkbox" class="<#= inputData.classes #>" data-fn="setVal"
data-elem-attr="<#= inputData.id #>" <#= parseInt( value ) === 1 ? 'checked' : '' #> >
<span><#= inputData.label #></span>
</label>

View File

@@ -0,0 +1,14 @@
<div class="settings">
<div class="label"><?php echo __( 'Message', 'thrive-cb' ); ?></div>
<div class="tve-email-modal-settings mt-10 click" data-fn="openSettings">
<div class="input">
<a href="javascript:void(0)" class="click center style-input">
<span class="mr-5">
<?php tcb_icon( 'pen-nib-light' ); ?>
</span>
<span class="tcb-truncate t-80"><?php echo __( 'Compose Email', 'thrive-cb' ); ?></span>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<div>
<div class="label"><#= inputData.label #></div>
<input type="text" class="<#= inputData.classes #>" value="<#= value #>" placeholder="<#= inputData.placeholder #>"
data-fn="setVal" data-fn-focusout="onFocusout" data-elem-attr="<#= inputData.id #>">
<div class="info-text orange error-details email-err-box tcb-hide">
<p class="m-0 p-0 email-err" data-elem-msg="<#= inputData.id #>"></p>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="label">
<#= inputData.label #>
<# if ( inputData.tooltip ) { #>
<span data-paneltlt-hover class="tve-cb-img-info ml-5 tcb-message-tooltip"><?php tcb_icon( 'info-circle-solid' ); ?></span>
<# } #>
</div>
<textarea rows="3" class="<#= inputData.classes #>" data-fn="setVal" data-fn-focusout="onFocusout" data-elem-attr="<#= inputData.id #>"><#= value #></textarea>
<div class="info-text orange error-details email-err-box tcb-hide">
<p class="m-0 p-0 email-err" data-elem-msg="<#= inputData.id #>"></p>
</div>

View File

@@ -0,0 +1,21 @@
<div class="api-field">
<div class="tve-email-providers">
<div class="label">
<?php echo __( 'Email delivery service', 'thrive-cb' ); ?>
<span data-paneltlt-hover class="tve-cb-img-info ml-5 tcb-email-tooltip"><?php tcb_icon( 'info-circle-solid' ); ?></span>
</div>
<div class="tcb-relative tve-providers-select">
<select id="lg-email-service" class="tve-select change" data-fn="selectEmailProvider"></select>
<span class="select2-arrow"><?php tcb_icon( 'a_down' ); ?></span>
</div>
</div>
<?php if ( ! function_exists( 'wp_mail_smtp' ) ) : ?>
<div class="info-text orange mt-0 tve-own-site-warning">
<?php $link = sprintf( '<a href="%s" class="blue-text" style="display: inline" target="_blank">%s</a>', 'https://wpmailsmtp.com', __( 'WP Mail SMTP', 'thrive-cb' ) ); ?>
<?php $other_link = sprintf( '<a href="%s" class="blue-text" style="display: inline" target="_blank">%s</a>', 'https://www.wpbeginner.com/plugins/how-to-set-up-wp-mail-smtp-with-any-host-ultimate-guide/', __( 'Learn more here', 'thrive-cb' ) ); ?>
<?php echo sprintf( __( 'Using the default WordPress mailer is known to result in low delivery rates. We strongly recommend using %s and/or a transactional email service. %s', 'thrive-cb' ), $link, $other_link ); ?>
</div>
<?php endif; ?>
<div class="tve-email-settings"></div>
</div>

View File

@@ -0,0 +1,32 @@
<# var ever_schedules = api.get( 'extra_settings' ) #>
<div class="api-field">
<div class="field-description">
<?php echo __( 'Select webinar', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select id="tve-everwebinar-webinar-select" class="api-list change tve-everwebinar-webinar-select" data-fn="setupChange" data-name="list">
<# if ( api.get( 'lists' ).length == 0 ) { #>
<#= TVE.tpl( 'util/option', { value:0, selected: true, text: <?php echo json_encode( __( 'No webinars found', 'thrive-cb' ) ); ?> } ) #>
<# } #>
<# _.each( api.get( 'lists' ), function( item ) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: ( api.getConfig('list') == item.id ), text: item.name} ) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<# if ( typeof ever_schedules !== 'undefined' && !! ever_schedules && !! ever_schedules.schedules ) { #>
<div id="thrive-api-everwebinar-schedules" class="api-field tve-everwebinar-api-wrapper" style="position: relative;">
<div class="field-description "><?php echo __( 'Select webinar date and time:', 'thrive-cb' ) ?></div>
<select class="tve-api-extra" id="thrive-api-everwebinar-schedules-select" name="schedules">
<# _.each( ever_schedules.schedules, function( schedule ) { #>
<#= TVE.tpl( 'util/option', { value: schedule.schedule_id, selected: ( api.getConfig('schedule') == schedule.schedule_id ), text: schedule.date + ' ' +
ever_schedules.timezone} ) #>
<# } ) #>
</select>
</div>
<# } #>

View File

@@ -0,0 +1,24 @@
<div class="field-description"><?php echo __( 'Choose your group:', 'thrive-cb' ) ?></div>
<# if (item.type == 'dropdown' || item.type == 'hidden' ) { #>
<select class="thrive-api-group-select tve-api-extra" name="group">
<# _.each( item.groups, function(group) { #>
<#= TVE.tpl( 'util/option', {value:group.id, selected: (selected_groups.indexOf(group.id) !== -1), text: group.name}) #>
<# } ) #>
</select>
<# } else { #>
<# _.each( item.groups, function(group) { #>
<#= TVE.tpl( 'util/input',
{ id:'thrive-group-checkbox-'+group.id,
'_class': 'thrive-api-group-select tve-api-extra',
name:'group',
value:group.id,
checked: (selected_groups.indexOf(group.id) !== -1),
'_type': ( item.type == 'checkboxes' ? 'checkbox' : item.type)
}) #>
<label class="thrive-api-group-select" for="thrive-group-checkbox-<#= group.id #>">
<#= group.name #>
</label>
<# } ) #>
<# } #>

View File

@@ -0,0 +1,8 @@
<div class="tve-password-strength-wrapper">
<div class="tve-password-strength tve-password-strength-0"></div>
<div class="tve-password-strength tve-password-strength-1"></div>
<div class="tve-password-strength tve-password-strength-2"></div>
<div class="tve-password-strength tve-password-strength-3"></div>
<span class="tve-password-strength-icon"></span>
<span class="tve-password-strength-text"></span>
</div>

View File

@@ -0,0 +1,44 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list tve-active-campaign-list" data-name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose the type of optin you would like for the FluentCRM integration', 'thrive-cb' ) ?>
</div>
<select class="tve-api-extra tl-api-connection-list" name="optin">
<#= TVE.tpl( 'util/option', {value:'s', selected: (api.getConfig('optin') === 's'), text: '<?php echo __( 'Single optin', 'thrive-cb' ) ?>'}) #>
<#= TVE.tpl( 'util/option', {value:'d', selected: (api.getConfig('optin') === 'd'), text: '<?php echo __( 'Double optin', 'thrive-cb' ) ?>'}) #>
</select>
<div class="field-description info-text grey-text">
<?php echo __( '(Double optin means your subscribers will need to confirm their email address before being added to your list)', 'thrive-cb' ) ?>
</div>
</div>
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>

View File

@@ -0,0 +1,25 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description">
<?php echo __( 'Cycle day:', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<input id="get-response-cycleday" type="number" max="103" min="0" class="tve-api-extra"
name="cycleday" value="<#= api.getConfig('cycleday') ? api.getConfig('cycleday') : '0' #>"/>
</div>
<div class="field-description"><?php echo __( 'Number of the cycle day(between 0 and 103)', 'thrive-cb' ) ?></div>
</div>

View File

@@ -0,0 +1,15 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your tag', 'thrive-cb' ); ?>:
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose tag:', 'thrive-cb' ) ?>
</div>
<div class="control-grid">
<div class="tvd-input-field">
<select class="tve-api-extra" name="tag">
<#= TVE.tpl( 'util/option', {value:0, selected: (api.getConfig('tag') == 0), text: '<?php echo __( 'No tag', 'thrive-cb' ) ?>'}) #>
<# _.each( api.get('extra_settings').tags, function( tag, id ) { #>
<#= TVE.tpl( 'util/option', {value:id, selected: (api.getConfig('tag')== id), text: tag}) #>
<# } ) #>
</select>
</div>
</div>
</div>

View File

@@ -0,0 +1,56 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list mailchimp-api-list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list') == item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div id="thrive-api-groups" class="api-field" style="position: relative;">
<# var groupin = api.get('groupin') #>
<div class="field-description">
<?php echo __( 'Choose your grouping:', 'thrive-cb' ) ?>
</div>
<select class="tve-api-extra" id="thrive-api-groupin-select" name="groupin"></select>
</div>
<div class="tve-groups-wrapper api-field"></div>
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose the type of optin you would like for the Mailchimp integration', 'thrive-cb' ) ?>
</div>
<select class="tve-api-extra tl-api-connection-list" name="optin">
<#= TVE.tpl( 'util/option', {value:'s', selected: (api.getConfig('optin') === 's'), text: '<?php echo __( 'Single optin', 'thrive-cb' ) ?>'}) #>
<#= TVE.tpl( 'util/option', {value:'d', selected: (api.getConfig('optin') === 'd'), text: '<?php echo __( 'Double optin', 'thrive-cb' ) ?>'}) #>
</select>
<div class="field-description info-text grey-text">
<?php echo __( '(Double optin means your subscribers will need to confirm their email address before being added to your list)', 'thrive-cb' ) ?>
</div>
</div>
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>

View File

@@ -0,0 +1,39 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# if ( api.get('lists').length == 0 ) { #>
<#= TVE.tpl( 'util/option', {value:0, selected: true, text: '<?php echo __( 'No lists found', 'thrive-cb' ); ?>'}) #>
<# } #>
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose the type of optin you would like for the Mailster integration', 'thrive-cb' ) ?>
</div>
<select class="tve-api-extra tl-api-connection-list" name="optin">
<#= TVE.tpl( 'util/option', {value:'s', selected: (api.getConfig('optin') === 's'), text: '<?php echo __( 'Single optin', 'thrive-cb' ) ?>'}) #>
<#= TVE.tpl( 'util/option', {value:'d', selected: (api.getConfig('optin') === 'd'), text: '<?php echo __( 'Double optin', 'thrive-cb' ) ?>'}) #>
</select>
<div class="field-description">
<?php
$url = 'https://thrivethemes.com/tkb_item/what-is-the-difference-between-a-single-opt-in-and-a-double-opt-in/';
echo sprintf( '<a href="' . $url . '" target="_blank">%s</a>', __( 'Check what double optin means', 'thrive-cb' ) );
?>
</div>
</div>

View File

@@ -0,0 +1,52 @@
<# var ontraport_extra = api.get( 'extra_settings' ) #>
<# var ontraport_sequences = ( !! ontraport_extra && !! ontraport_extra.sequences ) ? ontraport_extra.sequences : '' #>
<div class="api-field">
<div class="control-grid">
<div class="tve-btn-group" style="width: 100%">
<div class="tve-ontraport-type tvd-ontraport-campaigns tve-btn btn-text" data-type="campaigns">
<?php echo __( 'Campaigns', 'thrive-cb' ); ?>
</div>
<div class="tve-ontraport-type tvd-ontraport-sequences tve-btn btn-text" data-type="sequences">
<?php echo __( 'Sequences', 'thrive-cb' ); ?>
</div>
</div>
<div>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="control-grid">
<div class="full-width">
<div id="thrive-api-ontraport-campaigns" class="tve-ontraport" style="display: none;">
<div class="field-description">
<?php echo __( 'Select campaign', 'thrive-cb' ) ?>
</div>
<select id="thrive-api-ontraport-campaigns-select" class="api-list tvd-ontraport-change change tve-api-extra <# if ( api.get( 'lists' ).length == 0 ) { #>tcb-disabled<# } #>" name="campaigns" data-fn="setupChange" data-name="list">
<# if ( api.get( 'lists' ).length == 0 ) { #>
<#= TVE.tpl( 'util/option', { value:"", selected: true, text: <?php echo json_encode( __( 'No campaigns found', 'thrive-cb' ) ); ?> } ) #>
<# } else { #>
<# _.each( api.get( 'lists' ), function( item ) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: ( api.getConfig('list') == item.id ), text: item.name} ) #>
<# } ) #>
<# } #>
</select>
</div>
<div id="thrive-api-ontraport-sequences" class="tve-ontraport" style="display: none;">
<div class="field-description">
<?php echo __( 'Select sequence', 'thrive-cb' ); ?>
</div>
<select id="thrive-api-ontraport-sequences-select" class="api-list tvd-ontraport-change change tve-ontraport-sequence-select <# if ( ontraport_sequences.length == 0 ) { #>tcb-disabled<# } #>" data-fn="setupChange" data-name="list">
<# if ( ! ontraport_sequences || ontraport_sequences.length == 0 ) { #>
<#= TVE.tpl( 'util/option', { value:"", selected: true, text: <?php echo json_encode( __( 'No sequences found', 'thrive-cb' ) ); ?> } ) #>
<# } else { #>
<# _.each( ontraport_sequences, function( sequence ) { #>
<#= TVE.tpl( 'util/option', { value: sequence.id, selected: ( api.getConfig('list') == sequence.id ), text: sequence.name } ) #>
<# } ) #>
<# } #>
</select>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,14 @@
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# if ( api.get('lists').length == 0 ) { #>
<#= TVE.tpl( 'util/option', {value:0, selected: true, text: '<?php echo __( 'No lists found', 'thrive-cb' ); ?>'}) #>
<# } #>
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>
<div class="api-field">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
</div>

View File

@@ -0,0 +1,15 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose your mailing list', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (api.getConfig('list')==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
<div class="field-description"><?php echo __( "Note: we would prefer displaying the list names instead of IDs here, but unfortunately that isn't possible with Sendy.", 'thrive-cb' ) ?></div>
</div>

View File

@@ -0,0 +1,18 @@
<div class="api-field">
<div class="field-description">
<?php echo __( 'Choose which role will be granted to new users', 'thrive-cb' ); ?>
<span data-paneltlt-hover class="tve-cb-img-info ml-5 tcb-wordpress-tooltip"><?php tcb_icon( 'info-circle-solid' ); ?></span>
</div>
<div class="control-grid">
<select class="api-list change" data-fn="setupChange" data-name="list">
<# let selected = api.getConfig('list') #>
<# selected = selected? selected: 'subscriber' #>
<# _.each(api.get('lists'), function(item) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: (selected==item.id), text: item.name}) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>

View File

@@ -0,0 +1,28 @@
<div class="api-field tve-zapier-api-wrapper">
<label class="tcb-checkbox">
<input id="zapier_send_ip" class="tve-checkbox" type="checkbox" <#= 1 == api.getConfig('send_ip') ? 'checked="checked"' : '' #> />
<span>
<?php echo __( 'Send IP Address', 'thrive-cb' ); ?>
</span>
</label>
<div class="tve-zapier-data">
<div class="field-description mb-40">
<?php echo __( 'Tags', 'thrive-cb' ); ?>
</div>
<div class="tvd-input-field">
<select id="tve-lg-select-tags" multiple name="tags" tabindex="-1" class="select2-hidden-accessible tve-api-extra" aria-hidden="true">
<# if ( api.getConfig('tags') ) { #>
<# _.each( api.getConfig('tags').split(','), function( tag ) { #>
<option value="<#=tag#>" selected="selected"><#=tag#></option>
<# }, this ) #>
<# } #>
</select>
</div>
<input id="thriveleads_group" type="hidden" class="tve-api-extra" name="thriveleads_group" value="<#= api.getConfig('thriveleads_group_id') ? api.getConfig('thriveleads_group_id') : '' #>"/>
<input id="thriveleads_type" type="hidden" class="tve-api-extra" name="thriveleads_type" value="<#= api.getConfig('thriveleads_type') ? api.getConfig('thriveleads_type') : '' #>"/>
<input id="thriveleads_name" type="hidden" class="tve-api-extra" name="thriveleads_name" value="<#= api.getConfig('thriveleads_name') ? api.getConfig('thriveleads_name') : '' #>"/>
<input id="source_url" type="hidden" class="tve-api-extra" name="source_url" value="<#= encodeURIComponent( window.location.href ) #>"/>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<# var zoom_extra = api.get( 'extra_settings' ) #>
<# var zoom_users = ( !! zoom_extra && !! zoom_extra.users ) ? zoom_extra.users : '' #>
<# if ( zoom_users.length > 0 ) { #>
<div id="thrive-api-zoom-users" class="api-field" style="position: relative;">
<div class="field-description"><?php echo __( 'Select user:', 'thrive-cb' ) ?></div>
<select class="tve-api-extra" id="thrive-api-zoom-users-select" name="users">
<# _.each( zoom_users, function( user ) { #>
<#= TVE.tpl( 'util/option', { value: user.id, selected: false, text: user.name} ) #>
<# } ) #>
</select>
</div>
<# } #>
<div class="api-field tve-zoom-api-wrapper">
<div class="field-description">
<?php echo __( 'Select user\'s webinar', 'thrive-cb' ); ?>
</div>
<div class="control-grid">
<select id="tve-zoom-webinar-select" class="api-list change tve-zoom-webinar-select" data-fn="setupChange" data-name="list">
<# if ( api.get( 'lists' ).length == 0 ) { #>
<#= TVE.tpl( 'util/option', { value:0, selected: true, text: '<?php echo __( 'No webinars found', 'thrive-cb' ); ?>' } ) #>
<# } #>
<# _.each( api.get( 'lists' ), function( item ) { #>
<#= TVE.tpl( 'util/option', {value:item.id, selected: ( api.getConfig('list') == item.id ), text: item.name} ) #>
<# } ) #>
</select>
<span class="click tve-refresh-api-list" data-fn="forceGet" data-tooltip="<?php echo __( 'Refresh', 'thrive-cb' ); ?>" data-side="top"> <?php tcb_icon( 'redo-regular' ) ?></span>
</div>
</div>