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>

View File

@@ -0,0 +1,16 @@
<hr>
<div class="consent-description mb-10">
<div class="tcb-modal-tab-item-title mb-5"><?php echo __( 'GDPR requirements', 'thrive-cb' ) ?></div>
<div class="warning">
<span><?php echo sprintf( __( 'Define which connections will receive data when the checkbox is %snot ticked%s by the user', 'thrive-cb' ), '<b>','</b>' ); ?></span>
<a href="https://thrivethemes.com/tkb_item/how-to-set-up-the-gdpr-custom-field-type/" target="_blank">
<?php echo __( 'Learn more', 'thrive-cb' ) ?>
</a>
</div>
</div>
<div class="api-list no-space"></div>
<div class="info-text mandatory-info blue mt-10" style="display: none">
<?php tcb_icon( 'info' ); ?>
<?php echo sprintf( __( 'Your GDPR checkbox %swill require%s confirmation to submit the form.', 'thrive-cb' ), '<b>','</b>' ); ?>
</div>

View File

@@ -0,0 +1,43 @@
<div data-settings-field="country">
<div class="country-fields">
<div class="control-grid tve-lg-country--display-type">
<div class="label">
<?php echo __( 'Display', 'thrive-cb' ); ?>
</div>
<div class="input">
<select class="tve-select change" data-fn="changeCountryDisplay">
<option value="all"><?php echo esc_html__( 'All Countries', 'thrive-cb' ); ?></option>
<option value="include"><?php echo esc_html__( 'Only Countries', 'thrive-cb' ); ?></option>
<option value="exclude"><?php echo esc_html__( 'Without Countries', 'thrive-cb' ); ?></option>
</select>
</div>
</div>
<div class="tve-lg-control--group tve-lg-country--display-box tcb-hidden">
<div class="control-grid tve-lg-control--multiselect tve-lg-country--display-list">
<div class="screen-reader-text"></div>
<div class="input">
<select class="tve-select change" multiple="multiple" data-fn="changeCountryList"></select>
</div>
</div>
<div class="control-grid switch tve-lg-country--display-hide tcb-hidden">
<div class="fill">
<span class="switch-label">
<?php echo __( 'Hide from the form', 'thrive-cb' ) ?>
<span class="click tve-lg-country--display-hide-tooltip" data-fn="" data-paneltlt-hover><?php tcb_icon( 'info-circle-solid' ); ?></span>
</span>
</div>
<div class="tcb-switch tcb-text-right">
<label>
<input type="checkbox" class="change" data-fn="" />
<span class="tcb-lever"></span>
</label>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,138 @@
<div data-settings-field="date">
<hr>
<div id="date-container" class="date-fields">
<div class="control-grid lg-picker-date-time">
<div class="label">
<?php echo __( 'Picker Type', 'thrive-cb' ); ?>
</div>
<div class="input">
<select class="change lg-picker-field-date-time" data-fn="changePickerDateTime">
<option value="date"><?php echo esc_html__( 'Date', 'thrive-cb' ); ?></option>
<option value="dateTime"><?php echo esc_html__( 'Date and time', 'thrive-cb' ); ?></option>
<option value="dateRangeTime"><?php echo esc_html__( 'Date range and time', 'thrive-cb' ); ?></option>
<option value="dateRange"><?php echo esc_html__( 'Date range', 'thrive-cb' ); ?></option>
<option value="time"><?php echo esc_html__( 'Time', 'thrive-cb' ); ?></option>
</select>
</div>
</div>
<div class="control-grid lg-format-date-time">
<div class="label">
<?php echo __( 'Format', 'thrive-cb' ); ?>
</div>
<div class="input">
<select class="change lg-format-field-date-time" data-fn="changeFormatDateTime">
<option class="tve-lg-date" value="d/m/Y"><?php echo esc_html__( 'Date ('. date('d/m/Y') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date" value="m/d/Y"><?php echo esc_html__( 'Date ('. date('m/d/Y') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date" value="d-m-Y"><?php echo esc_html__( 'Date ('. date('d-m-Y') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date" value="d M Y"><?php echo esc_html__( 'Date ('. date('d M Y') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date" value="d-M-Y"><?php echo esc_html__( 'Date ('. date('d-M-Y') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date" value="M, d, Y"><?php echo esc_html__( 'Date ('. date('M, d, Y') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date-time" value="d/m/Y h:i K"><?php echo esc_html__( 'Date ('. date('d/m/Y') .' '. date('h:i A') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date-time" value="m/d/Y h:i K"><?php echo esc_html__( 'Date ('. date('m/d/Y') .' '. date('h:i A') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date-time" value="d-m-Y h:i K"><?php echo esc_html__( 'Date ('. date('d-m-Y') .' '. date('h:i A') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date-time" value="d M Y h:i K"><?php echo esc_html__( 'Date ('. date('d M Y') .' '. date('h:i A') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date-time" value="d-M-Y h:i K"><?php echo esc_html__( 'Date ('. date('d-M-Y') .' '. date('h:i A') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-date-time" value="M, d, Y h:i K"><?php echo esc_html__( 'Date ('. date('M, d, Y') .' '. date('h:i A') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-time" value="h:i K"><?php echo esc_html__( 'Time ('. date('h:i A') .')', 'thrive-cb' ); ?></option>
<option class="tve-lg-time" value="H:i"><?php echo esc_html__( 'Time ('. date('H:i') .')', 'thrive-cb' ); ?></option>
</select>
</div>
</div>
<div class="control-grid lg-time-interval">
<div class="label">
<?php echo __( 'Time interval', 'thrive-cb' ); ?>
</div>
<div class="input">
<select class="change lg-time-interval-field" data-fn="changeTimeInterval">
<option value="first-interval"><?php echo esc_html__( '5 minutes', 'thrive-cb' ); ?></option>
<option value="second-interval"><?php echo esc_html__( '15 minutes', 'thrive-cb' ); ?></option>
<option value="third-interval"><?php echo esc_html__( '30 minutes', 'thrive-cb' ); ?></option>
<option value="fourth-interval"><?php echo esc_html__( '1 hour', 'thrive-cb' ); ?></option>
</select>
</div>
</div>
<div class="control-grid switch lg-limit-days-switch">
<div class="fill">
<span class="switch-label"><?php echo __( 'Limit days', 'thrive-cb' ) ?></span>
</div>
<div class="tcb-switch tcb-text-right">
<label>
<input type="checkbox" class="change tve-lg-field-limit-days" data-fn="changeLimitDays"/>
<span class="tcb-lever"></span>
</label>
</div>
</div>
<div class="days-of-the-week" style="display: none">
<label class="label-days"><input type="checkbox" id="1" checked="1"> M <span class="checkmark"></span></label>
<label class="label-days"><input type="checkbox" id="2" checked="1"> T <span class="checkmark"></span></label>
<label class="label-days"><input type="checkbox" id="3" checked="1"> W <span class="checkmark"></span></label>
<label class="label-days"><input type="checkbox" id="4" checked="1"> T <span class="checkmark"></span></label>
<label class="label-days"><input type="checkbox" id="5" checked="1"> F <span class="checkmark"></span></label>
<label class="label-days"><input type="checkbox" id="6"> S <span class="checkmark"></span></label>
<label class="label-days"><input type="checkbox" id="0"> S <span class="checkmark"></span></label>
</div>
<div class="control-grid switch lg-disabled-date-switch">
<div class="fill">
<span class="switch-label"><?php echo __( 'Disabled dates', 'thrive-cb' ) ?></span>
</div>
<div class="tcb-switch tcb-text-right">
<label>
<input type="checkbox" class="change tve-lg-field-disabled-date" data-fn="changeDisabledDates"/>
<span class="tcb-lever"></span>
</label>
</div>
</div>
<div class="control-grid lg-format-disabled-date" style="display:none;">
<div class="lg-full-width-select">
<select class="change lg-field-disabled-date-types" data-fn="changeDisabledDateTypes">
<option value="past-dates" selected="selected"><?php echo esc_html__( 'Past Dates', 'thrive-cb' ); ?></option>
<option value="future-dates"><?php echo esc_html__( 'Future Dates', 'thrive-cb' ); ?></option>
</select>
</div>
</div>
<div class="control-grid switch lg-limit-hours-switch">
<div class="fill">
<span class="switch-label"><?php echo __( 'Limit hours', 'thrive-cb' ) ?></span>
</div>
<div class="tcb-switch tcb-text-right">
<label>
<input type="checkbox" class="change tve-lg-field-limit-hours" data-fn="changeLimitHours"/>
<span class="tcb-lever"></span>
</label>
</div>
</div>
<div class="limit-hours" style="display:none;">
<div class="time-row start-time-row">
<label for="startTime"><?php echo __( 'Start Time', 'thrive-cb' ) ?></label>
<select class="hour" data-fn="populateHoursDropdown"></select>
<select class="minutes" data-fn="populateMinutesDropdown"></select>
<select class="ampm" data-fn="">
<option value="AM">AM</option>
<option value="PM">PM</option>
</select>
</div>
<div class="end-time-row">
<label for="time-row end-time-row"><?php echo __( 'End Time', 'thrive-cb' ) ?></label>
<select class="hour" data-fn="populateHoursDropdown"></select>
<select class="minutes" data-fn="populateMinutesDropdown"></select>
<select class="ampm" data-fn="">
<option value="AM">AM</option>
<option value="PM">PM</option>
</select>
</div>
</div>
<div class="control-grid switch lg-time-instructions-switch" style="display:none;">
<div class="label">
<span class="switch-label"><?php echo __( 'Show instructions', 'thrive-cb' ) ?></span>
<span class="click tve-field-name-info" data-fn="openTimeInstructionsTooltip" data-paneltlt-hover><?php tcb_icon( 'info-circle-solid' ); ?></span>
</div>
<div class="tcb-switch tcb-text-right">
<label>
<input type="checkbox" checked="1" class="change tve-lg-date-field-show-instructions" data-fn="changeShowInstructions"/>
<span class="tcb-lever"></span>
</label>
</div>
</div>
</div>
<hr>
</div>

View File

@@ -0,0 +1,10 @@
<div class="tcb-lg-error-wrapper">
<div class="tvd-input-field">
<input required="" class="change input" data-fn="change" data-fn-input="input" data-key="<#= item.key #>"
id="tl-error-input-<#= item.key #>" type="text" name="<#= item.key#>"
value="<#= item.value #>">
<label for="tl-error-input-<#= item.key #>">
<#= item.label #>
</label>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<div class="tve-api-select">
<div class="label">
<?php echo __( 'Connection', 'thrive-cb' ) ?>
</div>
<div class="tcb-relative">
<select id="lg-api-select" class="change" data-fn="selectApiConnection"></select>
<span class="lg-api-select-arrow select2-arrow"><?php tcb_icon('a_down'); ?></span>
</div>
<a class="click blue-text tcb-text-right mb-10" onclick="window.open('<?php echo admin_url( 'admin.php?page=tve_dash_api_connect#tve_new_api' ); ?>//','_blank')" target="_blank" rel="nofollow">
<?php echo __( 'Go to the API Dashboard', 'thrive-cb' ) ?>
</a>
</div>
<div class="tve-no-apis info-text grey-text tcb-hidden">
<span class="strong">
<?php echo __( 'No API Connections found', 'thrive-cb' ); ?>
</span>
<span><?php echo __( 'Add a new API connection through the ', 'thrive-cb' ); ?><a class="click blue" onclick="window.open('<?php echo admin_url( "admin.php?page=tve_dash_api_connect#tve_new_api" ) ?>','_blank')" target="_blank" rel="nofollow"><?php echo __( 'API Dashboard', 'thrive-cb' ) ?></a></span>
</div>
<div class="tve-lg-no-list pb-10 tcb-hidden">
<span class="info-text orange grey-text"><?php echo __( 'No lists available. Add a new API from API\'s dashboard or choose another API connection.', 'thrive-cb' ) ?></span>
</div>
<div class="connection-setup"></div>
<div class="top-arrow"></div>

View File

@@ -0,0 +1,61 @@
<div data-settings-field="number">
<hr>
<div class="number-fields">
<div class="control-grid min-max-placeholder">
<div class="label">
<?php echo __( 'Min/Max', 'thrive-cb' ); ?>
</div>
<div class="input min-input">
<input type="number" class="change input min-field-placeholder" data-fn=""/>
</div>
<?php echo __( '/', 'thrive-cb' ); ?>
<div class="input max-input">
<input type="number" class="change input max-field-placeholder" data-fn=""/>
</div>
</div>
<div class="control-grid min-max-placeholder-error tcb-hidden" style="color: #fb5c55;">Check the values: Min must be ≤ Max, and Max must be ≥ Min.</div>
<div class="control-grid switch lg-show-instructions-switch">
<div class="label">
<span class="switch-label"><?php echo __( 'Show instructions', 'thrive-cb' ) ?></span>
<span class="click tve-field-name-info" data-fn="openFieldNumberTooltip" data-paneltlt-hover><?php tcb_icon( 'info-circle-solid' ); ?></span>
</div>
<div class="tcb-switch tcb-text-right">
<label>
<input type="checkbox" checked="1" class="change tve-lg-field-show-instructions" data-fn="changeShowInstructions"/>
<span class="tcb-lever"></span>
</label>
</div>
</div>
<div class="control-grid starting-value">
<div class="label">
<?php echo __( 'Starting value', 'thrive-cb' ); ?>
</div>
<div class="input">
<input type="number" class="change input starting-field" data-fn=""/>
</div>
</div>
<div class="control-grid starting-value-error tcb-hidden" style="color: #fb5c55;">Check the value. It must be ≤ to Max value, and ≥ to Min value.</div>
<div class="control-grid decimal-precision">
<div class="label">
<?php echo __( 'Decimal precision', 'thrive-cb' ); ?>
</div>
<div class="input">
<select class="change decimal-precision-field" data-fn="changeDecimalPrecision">
<option value="0"><?php echo esc_html__( '0', 'thrive-cb' ); ?></option>
<option value="1"><?php echo esc_html__( '1', 'thrive-cb' ); ?></option>
<option value="2"><?php echo esc_html__( '2', 'thrive-cb' ); ?></option>
<option value="3"><?php echo esc_html__( '3', 'thrive-cb' ); ?></option>
<option value="4"><?php echo esc_html__( '4', 'thrive-cb' ); ?></option>
</select>
</div>
</div>
<div class="control-grid step-value">
<div class="label">
<?php echo __( 'Step', 'thrive-cb' ); ?>
</div>
<div class="input">
<input type="number" class="change input step-field" min="0" data-fn="changeStep"/>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div data-settings-field="state">
<div class="state-fields"></div>
</div>

View File

@@ -0,0 +1,8 @@
<div class="optin-option-card click <#= item.get('css_class') #>" data-key="<#= item.get('key') #>" data-fn="selectSubmitOption">
<div class="card-image">
<#= icon ? TVE.icon( icon ): '' #>
</div>
<div class="card-label">
<#= item.get('label') #>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<p class="mb-10 ml-10 m-0"><?php echo __( 'Choose Action', 'thrive-cb' ); ?></p>
<div id="lg-options-wrapper" class="pt-10 mt-5"></div>