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,48 @@
<div class="tvd-card tvd-white tvd-large tvd-slim-card">
<div class="tvu-campaign-controls">
<# if ( item.get( 'type' ) ) { #>
<span
class="tvu-campaign-type-<#= item.get('type') #> tvu-campaign-type tvd-badge tvd-inline-block">
<#= ThriveUlt.util.upperFirst( item.get('type')) #>
</span>
<# } #>
</div>
<div class="tvd-card-content">
<span class="tvd-icon-pencil tvd-pointer tvu-edit-campaign-title tvu-btn-icon-small tvd-right tvu-lightgray tvd-right-align"></span>
<h3 class="tvd-card-title tvd-truncate">
<#= item.get('post_title') #>
</h3>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<h4><?php echo __( 'Archived on', 'thrive-ult' ) ?></h4>
<span class="tvu-log-label">
<#= item.get('post_modified') #>
</span>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<h4><?php echo __( 'Last registered results', 'thrive-ult' ) ?></h4>
</div>
<div class="tvd-col tvd-s6">
<span class="tvu-log-count tvu-log-count-impressions tvd-block"><#= item.get( 'impressions' ) #></span>
<span class="tvu-log-label"><?php echo __( 'Impressions', 'thrive-ult' ) ?></span>
</div>
<div class="tvd-col tvd-s6">
<# if ( ! item.get( 'has_event_logs' ) || item.get( 'conversions' ) ) { #>
<span class="tvu-log-count tvu-log-count-conversions tvd-block"><#= item.get( 'conversion_rate' ) #><span class="tvu-log-count-percent">%</span></span>
<span class="tvu-log-label"><?php echo __( 'Conversion rate', 'thrive-ult' ) ?></span>
<# } #>
</div>
</div>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s10 tvd-offset-s1">
<a href="javascript:void(0)" class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn tvu-archive-campaign">
<?php echo __( 'Reactivate Campaign', 'thrive-ult' ) ?>
</a>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<h3 class="tvd-title"><?php echo __( 'Archived Campaigns', 'thrive-ult' ) ?></h3>
<div id="tvu-no-campaign-text">
<p>
<?php echo sprintf(
__( 'No archived campaigns.', 'thrive-ult' )
) ?>
</p>
</div>
<div class="tvd-v-spacer"></div>
<div class="tvd-row" id="tvu-campaigns-list"></div>
<div class="tvd-row">
<div class="tvd-col tvd-s6">
<a href="#purge-cache" class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-dark tvd-waves-effect">
&laquo; <?php echo __( 'Back to Dashboard', 'thrive-ult' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="control-grid">
<h3 class="mr-30">
<?php echo __( 'Conversion Events', 'thrive-ult' ) ?>
<?php tve_ult_video( 'z2Rki4nTFDg' ) ?>
</h3 class>
<div class="tvd-right">
<a href="javascript:void(0)" id="tvu-add-conversion-event" class="tvu-add-conversion-event tvd-tooltipped tvd-btn tvd-btn-blue tvd-waves-effect tvd-waves-light tvd-right tvd-margin-right" data-tooltip="<?php echo __( 'Add new conversion event', 'thrive-ult' ) ?>" data-position="left"><?php echo __( 'Add New', 'thrive-ult' ) ?></a>
</div>
</div>
<div id="tvu-conversion-events" class="tvu-conversion-events"></div>

View File

@@ -0,0 +1,24 @@
<div class="tvd-card tvd-red tvd-large tvd-valign-wrapper tvd-slim-card tve-delete-campaign-card" tabindex="-1">
<div class="tvd-card-content tvd-center-align tvd-valign">
<h4 class="tvd-margin-top">
<?php echo __( "Are you sure you want to delete this campaign?", 'thrive-ult' ) ?>
</h4>
<# if(item.get('type') === ThriveUlt.util.campaignType.evergreen) { #>
<p><?php echo __( 'When deleting it, any relation between another campaign and this one will be lost', 'thrive-ult' ) ?></p>
<# } #>
</div>
<div class="tvd-card-action">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-left tvu-delete-yes">
<?php echo __( "Yes, delete", 'thrive-ult' ) ?>
</a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-right tvu-delete-no">
<?php echo __( "No, keep it", 'thrive-ult' ) ?>
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,132 @@
<div class="tvd-v-spacer"></div>
<div class="tvd-row">
<div class="tvd-col tvd-s8">
<div class="tvu-edit-title-align">
<span><?php echo __( 'Campaign name:', 'thrive-ult' ) ?></span>
<div class="tvu-edit-title-container">
<h3 class="tvu-campaign-title">
<#= item.get('post_title') #>
</h3>
<span class="tvd-icon-pencil tvd-pointer tvu-edit-campaign-title tvd-inline-block"></span>
</div>
</div>
</div>
<div class="tvd-col tvd-s3 tvd-offset-s1">
<div class="tvd-right">
<span class="tvd-inline-block tvu-campaign-status-label">
<?php echo __( 'Campaign status:', 'thrive-ult' ) ?>
</span>
<span class="tvu-campaign-status-<#= item.get('status') #> tvd-pointer tvu-campaign-status tvd-inline-block tvu-campaign-status-list">
<#= item.get('status') #>
</span>
</div>
</div>
</div>
<div class="tvd-row" id="tvu-campaign-settings">
<div class="tvd-col tvd-s12 tvd-m4 tvd-l4">
<div class="tvd-card tvd-white tvu-small-card">
<div class="tvd-card-content">
<div class="tvd-row tvd-no-margin tvd-valign-wrapper">
<div class="tvd-col tvd-s12 tvd-m3 tvd-hide-on-meds-and-down tvd-l2 tvd-center-align tvd-valign tvu-campaign-icon">
<i class="tvu-icon-list tvu-gray-text tvu-large-icon"></i>
</div>
<div class="tvd-col tvd-s12 tvd-ms12 tvd-m9 tvd-l10 tvd-valign">
<h3 class="tvu-campaign-type-title tvd-truncate"><?php echo __( 'Campaign Type', 'thrive-ult' ) ?></h3>
<p class="tvu-campaign-type tvu-campaign-card-summary"><?php echo __( 'Not set', 'thrive-ult' ) ?></p>
</div>
</div>
</div>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin tvd-valign-wrapper">
<div class="tvd-col tvd-s12 tvd-m1 tvd-hide-on-meds-and-down tvd-l2 tvd-center-align tvd-valign">
<p>&nbsp;</p>
</div>
<div class="tvd-col tvd-s12 tvd-m11 tvd-ms12 tvd-l10 tvd-valign tvd-relative">
<hr class="tvu-lightgray-line">
<a class="tvd-btn-flat tvu-btn-flat tvu-btn-flat-blue tvu-edit-campaign" href="javascript:void(0)">
<?php echo __( 'Edit', 'thrive-ult' ) ?>
<# if ( item.get_settings_step() === 'type' ) { #>
<div class="tvd-tooltip-visible tvd-fixed-bottom tvd-normalize">
<span><?php echo __( 'Next step: select a campaign type', 'thrive-ult' ) ?></span>
</div>
<# } #>
</a>
<# if ( item.get_settings_step() === 'lockdown_type' ) { #>
<div class="tvd-tooltip-visible tvd-fixed-bottom tvd-normalize tvu-edit-campaign" style="cursor: pointer;">
<span><?php echo __( 'Next step: select a campaign trigger for open campaigns', 'thrive-ult' ) ?></span>
</div>
<# } #>
<# if ( item.get_settings_step() === 'leads_missing' ) { #>
<div class="tvd-tooltip-visible tvd-fixed-bottom tvd-normalize tvu-edit-campaign" style="cursor: pointer;">
<span><?php echo __( 'Next step: Thrive Leads was deactivated, change trigger', 'thrive-ult' ) ?></span>
</div>
<# } #>
</div>
</div>
</div>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m4 tvd-l4">
<div class="tvd-card tvd-white tvu-small-card">
<div class="tvd-card-content">
<div class="tvd-row tvd-no-margin tvd-valign-wrapper">
<div class="tvd-col tvd-s12 tvd-hide-on-meds-and-down tvd-m3 tvd-l2 tvd-center-align tvd-valign">
<i class="tvu-icon-eye tvu-gray-text tvu-large-icon"></i>
</div>
<div class="tvd-col tvd-s12 tvd-m9 tvd-ms12 tvd-l10 tvd-valign">
<h3><?php echo __( 'Display', 'thrive-ult' ) ?></h3>
<p id="tvu-display-summary" class="tvu-campaign-card-summary">
<#= item.get( 'display_settings_summary' ) || <?php echo wp_json_encode( __( 'Not set', 'thrive-ult' ) ) ?> #>
</p>
</div>
</div>
</div>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin tvd-valign-wrapper">
<div class="tvd-col tvd-m1 tvd-hide-on-meds-and-down tvd-l2 tvd-center-align tvd-valign">
<p>&nbsp;</p>
</div>
<div class="tvd-col tvd-s12 tvd-m11 tvd-ms12 tvd-l10 tvd-valign tvd-relative">
<hr class="tvu-lightgray-line">
<a class="tvd-btn-flat tvu-btn-flat tvu-btn-flat-blue tvu-display-settings tvd-relative"
href="javascript:void(0)"> <?php echo __( 'Edit', 'thrive-ult' ) ?>
<# if ( item.get_settings_step() === 'display' ) { #>
<div class="tvd-tooltip-visible tvd-fixed-bottom tvd-normalize">
<span><?php echo __( 'Next step: select a display mode', 'thrive-ult' ) ?></span></div>
<# } #>
</a>
</div>
</div>
</div>
</div>
</div>
<div id="tvd-lockdown-wrapper" class="tvd-col tvd-s12 tvd-m4 tvd-l4"></div>
</div>
<h3><?php echo __( 'Designs', 'thrive-ult' ) ?></h3>
<div class="control-grid flex-start" id="tvu-designs-list">
<div class="tvu-add-design tvd-pointer">
<div class="tvd-card tvd-medium-xxsmall tvd-card-new tvd-valign-wrapper tvd-relative">
<div class="tvd-card-content tvd-valign tvd-center-align">
<i class="tvd-icon-plus tvd-icon-rounded tvd-icon-medium"></i>
<h4><?php echo __( 'New Design', 'thrive-ult' ) ?></h4>
</div>
<# if ( item.get_settings_step() === 'design' ) { #>
<div class="tvd-tooltip-visible tvd-fixed-right"><span><?php echo __( 'Next step: create a countdown timer design', 'thrive-ult' ) ?></span></div>
<# } #>
</div>
</div>
</div>
<# if ( item.can_set_events() ) { #>
<div class="control-grid top">
<div id="tvu-timeline-wrapper"></div>
<div id="tvu-conversion-wrapper"></div>
</div>
<# } #>
<div class="tvd-v-spacer vs-2"></div>
<div class="control-grid">
<a href="#purge-cache" class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-dark tvd-waves-effect">
&laquo; <?php echo __( 'Back to Dashboard', 'thrive-ult' ) ?>
</a>
</div>

View File

@@ -0,0 +1,88 @@
<div class="tvd-card tvd-white tvd-large tvd-slim-card">
<div class="tvu-campaign-controls">
<# if ( item.get( 'type' ) ) { #>
<span
class="tvu-campaign-type-<#= item.get('type') #> tvu-campaign-type tvd-badge tvd-inline-block">
<#= ThriveUlt.util.upperFirst( item.get('type')) #>
</span>
<# } #>
<div class="tvd-inline-block tvu-campaign-actions tvd-margin-left">
<a data-id="<#= item.get('ID') #>" class="tvu-campaign-display tvu-icon-gray tvu-btn-icon-small tvd-tooltipped" data-position="top"
data-tooltip="<?php echo __( 'Display settings', 'thrive-ult' ) ?>" href="javascript:void(0)">
<i class="tvd-icon-settings"></i>
</a>
<a data-id="<#= item.get('ID') #>" class="tvu-copy-campaign tvu-icon-gray tvu-btn-icon-small tvd-tooltipped" data-position="top"
data-tooltip="<?php echo __( 'Duplicate campaign', 'thrive-ult' ) ?>">
<i class="tvu-icon-clone"></i>
</a>
<a data-id="<#= item.get('ID') #>"
class="tvu-delete-campaign tvu-icon-gray tvu-btn-icon-small tvd-tooltipped" data-position="top"
data-tooltip="<?php echo __( 'Delete campaign', 'thrive-ult' ) ?>">
<i class="tvd-icon-trash-o"></i>
</a>
<i class="tvu-drag-card tvu-icon-handle tvu-icon-gray tvu-btn-icon-small tvd-tooltipped" data-position="top"
data-tooltip="<?php echo __( 'Drag & Drop the card in order to change the campaign priority.', 'thrive-ult' ) ?>"></i>
<# if( ! item.is_archived()) { #>
<a data-id="<#= item.get('ID') #>" data-archived="false" href="javascript:void(0)"
class="tvu-archive-campaign tvu-icon-gray tvu-btn-icon-small tvd-tooltipped" data-position="top"
data-tooltip="<#= item.get_archive_tooltip() #>">
<i class="tvd-icon-archive"></i>
</a>
<# } #>
</div>
<span class="tvu-campaign-status-card tvu-campaign-status-running tvd-pointer tvu-campaign-status tvd-tooltipped<#= ( item.is_running() ? '' : ' tvd-hide' ) #>"
data-tooltip="<?php echo __( 'Pause Campaign', 'thrive-ult' ) ?>" data-position="top"></span>
<span class="tvu-campaign-status-card tvu-campaign-status-paused tvd-pointer tvu-campaign-status tvd-tooltipped<#= ( item.is_running() ? ' tvd-hide' : '' ) #>"
data-tooltip="<?php echo __( 'Start Campaign', 'thrive-ult' ) ?>" data-position="top"></span>
</div>
<div class="tvd-card-content">
<span class="tvd-icon-pencil tvd-pointer tvu-edit-campaign-title tvu-btn-icon-small tvd-right tvu-lightgray tvd-right-align"></span>
<h3 class="tvd-card-title tvd-truncate">
<#= item.get('post_title') #>
</h3>
<div class="tvu-campaign-chart" id="tu-chart-<#= item.get('ID') #>" style="height: 150px;">
<div class="tvd-center-align tu-chart-loader tvd-relative tvu-graph-overlay">
<div class="tvd-preloader-wrapper tvd-big tvd-active">
<div class="tvd-spinner-layer tvd-spinner-blue-only">
<div class="tvd-circle-clipper tvd-left">
<div class="tvd-circle"></div>
</div>
<div class="tvd-gap-patch">
<div class="tvd-circle"></div>
</div>
<div class="tvd-circle-clipper tvd-right">
<div class="tvd-circle"></div>
</div>
</div>
</div>
</div>
<div class="tvd-center-align tvu-chart-no-data tvd-hide tvd-valign-wrapper">
<p class="tvd-valign">
<?php echo __( 'After the first few impressions / conversions are registered, the stats will be shown here', 'thrive-ult' ) ?>
</p>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s6 <# if ( ! item.get( 'has_event_logs' ) ) { #>tvu-blurred-item<# } #>">
<span class="tvu-log-count tvu-log-count-impressions tvd-block"><#= item.get( 'impressions' ) #></span>
<span class="tvu-log-label"><?php echo __( 'Impressions', 'thrive-ult' ) ?></span>
</div>
<div class="tvd-col tvd-s6 <# if ( ! item.get( 'has_event_logs' ) ) { #>tvu-blurred-item<# } #>">
<# if ( ! item.get( 'has_event_logs' ) || item.get( 'conversions' ) ) { #>
<span class="tvu-log-count tvu-log-count-conversions tvd-block"><#= item.get( 'conversion_rate' ) #><span class="tvu-log-count-percent">%</span></span>
<span class="tvu-log-label"><?php echo __( 'Conversion rate', 'thrive-ult' ) ?></span>
<# } #>
</div>
</div>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin">
<div class="tvd-col tvd-s10 tvd-offset-s1">
<a href="#dashboard/campaign/<#= item.get('ID') #>" class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn tvu-edit-campaign">
<?php echo __( 'Edit Campaign', 'thrive-ult' ) ?>
</a>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,19 @@
<div class="tvd-card tvd-red tvu-small-card">
<div class="tvd-card-content tvd-center-align">
<h4 class="tvd-margin-top"><?php echo __( 'Are you sure you want to disable Lockdown?', 'thrive-ult' ); ?></h4>
</div>
<div class="tvd-card-action">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-left tvu-delete-yes">
<?php echo __( 'Yes, disable it', 'thrive-ult' ) ?>
</a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-right tvu-delete-no">
<?php echo __( 'No, keep it', 'thrive-ult' ) ?>
</a>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,7 @@
<div class="tvd-input-field mr-20">
<input id="tvu-email-link<#= key || key == 0 ? key : 0 #>" readonly="readonly" class="tvd-no-focus tvu-email-link tvu-lockdown-input mb-0 p-5" type="text"
value="<#= model.get('link') ? model.get('link') : '' #>">
</div>
<a class="tve-copy-to-clipboard tvu-url-to-copy tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-blue" href="javascript:void(0)">
<span class="tvd-copy-text"><?php echo __( 'Copy', 'thrive-ult' ) ?></span>
</a>

View File

@@ -0,0 +1,57 @@
<div class="tvd-card tvd-white tvu-small-card <#= !item.get('type') || !item.has_valid_lockdown_trigger() ? 'tvd-gray' : '' #>">
<div class="tvd-card-content">
<div class="tvd-row tvd-no-margin tvd-valign-wrapper">
<div class="tvd-col tvd-s12 tvd-m3 tvd-hide-on-meds-and-down tvd-l2 tvd-center-align tvd-valign">
<# if(!item.get('lockdown')) { #>
<i class="tvu-icon-unlock tvu-gray-text tvu-large-icon"></i>
<# } else { #>
<i class="tvu-icon-lock tvu-gray-text tvu-large-icon"></i>
<# } #>
</div>
<div class="tvd-col tvd-s12 tvd-m9 tvd-ms12 tvd-l10 tvd-valign">
<h3 class="tvd-truncate">
<#= !item.get('lockdown') ? '<?php echo __( 'Open Campaign', 'thrive-ult' ) ?>' : '<?php echo __( 'Lockdown Campaign', 'thrive-ult' ) ?>' #>
</h3>
<p class="tvu-lockdown-summary tvu-campaign-card-summary">
<# if ( ! item.get( 'type' ) ) { #>
<?php $link = '<a href="javascript:void(0)" class="tvu-edit-campaign">' . __( 'Campaign Type', 'thrive-ult' ) . '</a>' ?>
<?php echo sprintf( __( 'Lockdown feature will become available after you setup the %s', 'thrive-ult' ), $link ) ?>
<# } else { #>
<#= !item.get('lockdown') ? '<?php echo __( 'Select the lockdown options for the campaign', 'thrive-ult' ) ?>' : '<?php echo __( 'Activated for ', 'thrive-ult' ) ?>' + ThriveUlt.util.get_type_title( item.get('type') ) #>
<# } #>
</p>
</div>
</div>
</div>
<div class="tvd-card-action">
<div class="tvd-row tvd-no-margin tvd-valign-wrapper">
<div class="tvd-col tvd-m1 tvd-l2 tvd-hide-on-meds-and-down tvd-center-align tvd-valign">
<p>&nbsp;</p>
</div>
<div class="tvd-col tvd-s12 tvd-m11 tvd-l10 tvd-ms12 tvd-valign tvd-relative">
<hr class="tvu-lightgray-line">
<div class="tvd-row tvd-collapse tvd-no-mb">
<div class="tvd-col <#= !item.get('lockdown') ? 'tvd-m10 tvd-l10 ' : 'tvd-m6 tvd-l6 ' #>">
<a class="tvd-btn-flat tvu-btn-flat <#= !item.get('type') || !item.has_valid_lockdown_trigger() ? 'tvd-tooltipped tvd-disabled tvu-disabled' : 'tvu-btn-flat-blue tvu-lockdown' #>"
href="javascript:void(0)"
data-tooltip="<?php echo __( "The lockdown feature requires the campaign trigger to be either 'Thrive Leads conversion', 'Visit to Promotion Page' or '3rd party event'", 'thrive-ult' ) ?>">
<#= !item.get('lockdown') ? '<?php echo __( 'Activate Lockdown', 'thrive-ult' ) ?>' : '<?php echo __( 'Edit', 'thrive-ult' ) ?>' #>
</a>
<# if ( item.get_settings_step() === 'lockdown' ) { #>
<div class="tvd-tooltip-visible tvd-fixed-bottom tvd-normalize">
<span><?php echo __( 'Next step: select campaign pages', 'thrive-ult' ) ?></span>
</div>
<# } #>
</div>
<div class="tvd-col tvd-m6 tvd-l6">
<# if(item.get('lockdown')) { #>
<a class="tvd-btn-flat tvu-btn-flat tvu-btn-flat-red tvu-disable-lockdown tvd-right" href="javascript:void(0)">
<?php echo __( 'Disable', 'thrive-ult' ) ?>
</a>
<# } #>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<input id="tvu-promotion-url<#= key ? key : 0 #>" class="tvd-no-focus tvu-promotion-url" type="text" value="<#= model.get('value') ? model.get('value') : '' #>"
<#= key && key > 0 ? '' : 'data-field="promotion"' #>
data-allow-regex="^http(s)?:\/\/">
<label class=" <#= model.get('value') ? 'tvd-active' : '' #>" for="tvu-promotion-url<#= key ? key : 0 #>"><?php echo __( 'Enter search term to select page', 'thrive-ult' ) ?></label>
<# if ( key && key > 0) { #>
<div class="tvu-close-input tvd-right"><a href="javascript:void(0)" class="tve-ult-remove-button tvd-icon-trash-o"></a></div>
<# } #>

View File

@@ -0,0 +1,11 @@
<div class="tvd-row tvd-add-link-row">
<div class="tvd-col tvd-s4">
<div class="tvd-input-field">
<input type="text" class="tvu_leads_directUrl" id="tvu_leads_directUrl"/>
<label for="tvu_leads_directUrl"><?php echo __( "Add new link", 'thrive-ult' ); ?></label>
</div>
</div>
<div class="tvd-col tvd-s2">
<button class="tvu_leads_addDirectLink tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green"><?php echo __( "Add Link", 'thrive-ult' ); ?></button>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s8">
<div class="tvd-vertical-align">
<a href="<#= label #>" target="_blank"><#= label #></a>
</div>
</div>
<div class="tvd-col tvd-s4">
<button class="tvu_leads_removeDirectLink tvd-btn-icon tvd-btn-icon-red tvd-right">
<span class="tvd-icon-delete2"></span>
<?php echo __( "Remove Link", 'thrive-ult' ); ?>
</button>
</div>
</div>

View File

@@ -0,0 +1 @@
<a id="<#= identifier #>" class="tvu_leads_tabFilter <#= cssClass #>" href="javascript:void(0)"><#= label #></a>

View File

@@ -0,0 +1,3 @@
<div class="tvu_leads_tabs_wrapper tvu_leads_clearfix">
<ul class="tvd-tabs tvu_leads_tabs"></ul>
</div>

View File

@@ -0,0 +1,75 @@
<div class="tvd-modal-content">
<h3 class="tvd-modal-title">
<?php echo sprintf( __( '%s - display settings', 'thrive-ult' ), "<#= model.get( 'post_title' ) #>" ) ?>
<?php tve_ult_video( 'YYOw8BGkm4g' ) ?>
</h3>
<div id="tvu-leads-options-container">
<div class="control-grid flex-start">
<div class="tvd-input-field w-200 mr-30">
<select class="tvu_leads_saved_options tvd-select2" id="tvu_load_template" data-field="load_template" data-placeholder="<?php echo __( 'Current selection', 'thrive-ult' ) ?>">
<option value=""></option>
</select>
<label for="tvu_load_template"></label>
</div>
<button class="tvu_leads_load_saved_options tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-full-btn w-200"><?php echo __( 'Load Saved Options', 'thrive-ult' ) ?></button>
</div>
<div id="tve-message-container">
<div class="error">
<?php
$cache_plugin = tve_dash_detect_cache_plugin();
$message = $cache_plugin
? sprintf( __( 'After saving these settings, the cache data from %s plugin will be automatically cleared (this is required each time you make a change to these settings)', 'thrive-ult' ), '<strong>' . $cache_plugin . '</strong>' )
: sprintf( __( 'If you have a caching plugin installed (such as %1$sW3 Total Cache%2$s or %1$sWP Super Cache%2$s), please clear the cache after modifying these settings', 'thrive-ult' ), '<strong>', '</strong>' );
?>
<p><?php echo $message ?></p>
</div>
</div>
<div class="tvd-v-spacer vs-2"></div>
<h4>
<?php echo __( 'Display Logic', 'thrive-ult' ); ?>
<span class="inclusions-count">(0)</span>
</h4>
<p><?php echo __( 'Use these settings to configure where the campaign should be displayed:', 'thrive-ult' ) ?></p>
<div id="show_options"></div>
<div class="tvd-v-spacer vs-3"></div>
<h4 data-target="#exclusions_wrapper" class="tl-clickable tl-toggle-tab-display collapsed tvd-pointer">
<span><?php echo __( "Exclusions", 'thrive-ult' ); ?></span>
<span class="exclusions-count">(0)</span>
</h4>
<div class="tvd-relative">
<div id="exclusions_wrapper" class="tvd-not-visible">
<p><?php echo __( 'Use these settings to configure where the campaign should be HIDDEN. Attention! This will override the display logic above', 'thrive-ult' ) ?></p>
<div id="hide_options"></div>
</div>
</div>
<div class="tvd-v-spacer vs-3"></div>
<div class="tvu_leads_tabs_content tvu_leads_clearfix" style="display: block">
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12">
<h4><?php echo __( 'Save as Template', 'thrive-ult' ); ?></h4>
<p><?php echo __( "You can save the display configuration that you've created if you'd like a template to re-use with other campaigns.", 'thrive-ult' ); ?></p>
</div>
</div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-l3 tvd-s4">
<div class="tvd-input-field">
<input class="tvu_leads_left tvd-skip-modal-save" type="text" name="tvu_leads_new_template_name" id="tvu_leads_new_template_name"/>
<label for="tvu_leads_new_template_name"
data-error="<?php echo __( 'Template name is required', 'thrive-ult' ) ?>"><?php echo __( 'Template name', 'thrive-ult' ); ?></label>
</div>
</div>
<div class="tvd-col tvd-l3 tvd-s4">
<button
class="tvu_leads_add_new_template tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green"><?php echo __( 'Save Display Template', 'thrive-ult' ); ?></button>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="tvd-modal-footer control-grid">
<button class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-modal-close tvd-waves-effect"><?php echo __( 'Cancel', 'thrive-ult' ); ?></button>
<button class="tvu_leads_save_widget_options tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-right"><?php echo __( 'Save & close', 'thrive-ult' ); ?></button>
</div>
<a href="javascript:void(0)" class="tvd-modal-action tvd-modal-close tvd-modal-close-x"><i class="tvd-icon-close2"></i></a>

View File

@@ -0,0 +1,3 @@
<input value="<#= id #>" id="opt-<#= ( typeof base_id !== 'undefined' ? base_id : 'opt_' ) + id #>" type="checkbox" class="tvu_leads_toggle_option" <# if (isChecked) { #> checked="checked"<# } #> />
<label for="opt-<#= ( typeof base_id !== 'undefined' ? base_id : 'opt_' ) + id #>" data-type="<#= type #>" class="tvd-truncate"><#= label #></label>

View File

@@ -0,0 +1,6 @@
<div class="tvd-row">
<div class="tvd-input-field tvd-col tvd-s4">
<input class="tvu-leads-posts tvu-leads-autocomplete" id="tvu-leads-posts" type="text"/>
<label for="tvu-leads-posts"><?php echo __( 'Search...', 'thrive-ult' ) ?></label>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div class="tvu_leads_selectedFilter">
<span><?php echo __( "Taxonomy:", 'thrive-ult' ); ?> <#= filter #></span>
</div>

View File

@@ -0,0 +1,5 @@
<a href="#<#= tab.getTabIdFromIdentifier() #>">
<# if (tab.countCheckedOptions()) { #><strong> <# }#>
<#= tab.get('label') #> (<#= tab.countCheckedOptions() #>)
<# if (tab.countCheckedOptions()) { #></strong> <# }#>
</a>

View File

@@ -0,0 +1,10 @@
<label data-type="post_tag"></label>
<div class="tvu-tags-filter" style="padding-bottom: 20px;">
<div class="tvd-row">
<div class="tvd-col tvd-s3">
<div class="tvd-input-field">
<input class="tvu-leads-tags tvu-leads-autocomplete" placeholder="<?php echo __( 'Search...', 'thrive-ult' ) ?>" type="text"/>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,14 @@
<div class="tvd-row tvd-collapse tvu-timeline-heading-row">
<div class="tvd-col tvd-s12">
<div class="tvd-inline-block tvd-relative">
<h3>
<?php echo __( 'Timeline', 'thrive-ult' ) ?>
<?php tve_ult_video( 'ehoZrTBVc-A' ) ?>
</h3>
<# if ( item.get_settings_step() === 'timeline' ) { #>
<div class="tvd-tooltip-visible tvd-fixed-right" style="min-width: 280px;"><span><?php echo __( 'Next step: setup timeline events', 'thrive-ult' ) ?></span></div>
<# } #>
</div>
</div>
</div>
<div id="tvu-timeline" class="tvu-timeline-el"></div>

View File

@@ -0,0 +1,35 @@
<div class="tvu-campaign-option tvu-campaign-absolute">
<p class="grey m-0"><?php echo __( 'Fixed Dates Campaign', 'thrive-ult' ) ?></p>
<p><?php echo __( 'Tell us when you would like the new offer to start and end', 'thrive-ult' ) ?></p>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s6 tvd-m3">
<div class="tvd-input-field tvd-timepicker-left">
<input id="tvu-start-date" type="text" class="tvd-no-focus tvd-no-margin-bottom" value="<#= item.start && item.start.date ? item.start.date : '' #>" data-field="start_date">
<label <#= item.start && item.start.date ? 'class="tvd-active"' : '' #> for="tvu-start-date"><?php echo __( 'Start Date', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s6 tvd-m3">
<div class="tvd-input-field timepicker-append-to">
<input id="tvu-start-hour" type="text" class="tvd-no-focus tvd-no-margin-bottom" value="<#= item.start && item.start.time ? item.start.time : '' #>" data-field="start_time">
<label <#= item.start && item.start.time ? 'class="tvd-active"' : '' #> for="tvu-start-hour"><?php echo __( 'Start Hour', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s6 tvd-m3">
<div class="tvd-input-field tvd-timepicker-left">
<input id="tvu-end-date" type="text" class="tvd-no-focus tvd-no-margin-bottom" value="<#= item.end && item.end.time ? item.end.date : '' #>" data-field="end_date">
<label <#= item.end && item.end.date ? 'class="tvd-active"' : '' #> for="tvu-end-date"><?php echo __( 'End Date', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s6 tvd-m3">
<div class="tvd-input-field timepicker-append-to">
<input id="tvu-end-hour" type="text" class="tvd-no-focus tvd-no-margin-bottom" value="<#= item.end && item.end.time ? item.end.time : '' #>" data-field="end_time">
<label <#= item.end && item.end.time ? 'class="tvd-active"' : '' #> for="tvu-end-hour"><?php echo __( 'End Hour', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
</div>
<div>
<p class="mb-0" style="font-style: italic;"><?php echo __( 'Your current timezone settings are: ', 'thrive-ult' ) ?> <strong class="tu-timezone"><#= ThriveUlt.globals.settings.get('timezone') ? ThriveUlt.globals.settings.get('timezone') : '<?php __( 'Not Set', 'thrive-ult' ) ?>' #></strong>. <?php echo __( 'Local time is ', 'thrive-ult' ) ?> <strong
class="tu-time"><?php echo tve_ult_current_time( 'Y-m-d H:i' ); ?></strong>, <?php echo __( 'see ', 'thrive-ult' ) ?><?php echo __( ' Date & Time Settings', 'thrive-ult' ) ?></p>
</div>

View File

@@ -0,0 +1,15 @@
<p class="grey m-0"><?php echo __( 'Campaign is triggered when', 'thrive-ult' ) ?></p>
<div class="control-grid pb-5">
<select class="tvu-fluentcrm-trigger-dropdown tvd-select2">
<option value="tags"><?php echo __( 'Contact is added to tags', 'thrive-ult' ) ?></option>
</select>
</div>
<p class="grey m-0"><?php echo __( 'Which tags should trigger the countdown', 'thrive-ult' ) ?></p>
<div class="tvu-trigger-tags-select-multiple control-grid pb-5">
<select id="tvu-fluentcrm-trigger-tags" multiple="multiple"></select>
</div>
<a href="<#= kb_article #>" target="_blank">
<p class="help-link m-0 mt-10 tvu-btn-flat"><?php echo __( 'Click here for help with incoming webhooks', 'thrive-ult' ) ?></p>
</a>

View File

@@ -0,0 +1,16 @@
<p class="grey m-0 mb-5"><?php echo __( 'Click to copy the webhook URL' ) ?></p>
<div class="tvd-copy-row control-grid tvd-webhook p-20">
<div class="tvd-col p-0 tvd-webhook-link">
<div class="tvd-input-field">
<input id="tu-webhook-genreated-url" class="tvd-no-focus tu-webhook-generated-url m-0" type="text" value="<#= url #>">
</div>
</div>
<div class="tvd-col p-0">
<a class="tve-copy-to-clipboard tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-blue" href="javascript:void(0)">
<span class="tvd-copy-text"><?php echo __( 'Copy', 'thrive-ult' ) ?></span>
</a>
</div>
</div>
<a href="<#= kb_article #>" target="_blank">
<p class="help-link m-0 mt-10 tvu-btn-flat"><?php echo __( 'Click here for help with incoming webhooks', 'thrive-ult' ) ?></p>
</a>

View File

@@ -0,0 +1,7 @@
<input type="checkbox" id="tve-rolling-repeat-<#= item.get('ID') #>" name="repeat-on-<#= item.get('ID') #>" class="tvu-rolling-repeat-check" <#= item.get('checked') === true ? checked="checked" : '' #> <#= item.get('disabled') === true ? disabled="disabled" : '' #> />
<label for="tve-rolling-repeat-<#= item.get('ID') #>">
<?php echo __( "<#= item.get('label') #>", 'thrive-ult' ); ?>
</label>

View File

@@ -0,0 +1,21 @@
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field">
<input id="tvu-rolling-day-duration" class="tvd-no-margin-bottom tvd-no-focus" type="text" value="<#= item.duration ? item.duration : 1 #>" data-field="duration" maxlength="2">
<label class="tvd-active" for="tvu-rolling-day-duration">
<?php echo __( 'Duration (hours)', 'thrive-ult' ) ?>
</label>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field tvu-no-margin-select">
<select class="tvu-rolling-repeat" id="tvu-rolling-repeat" data-max-height="450px">
<# _.times( 31, function ( index ) { var i = index + 1 #>
<option
<#= ( item.repeat == i ? ' selected' : '' ) #> value="<#= i #>"><#= i #></option>
<# } ) #>
</select>
<label for="tvu-rolling-repeat"><?php echo __( 'Repeat every (days)', 'thrive-ult' ) ?></label>
</div>
</div>
</div>

View File

@@ -0,0 +1,4 @@
<input <#= ids && _.contains(ids, item.get('ID')) ? 'checked="checked"' : '' #> type="checkbox" id="tvu-lead-conversion-<#= item.get('ID') #>" value="<#= item.get('ID') #>" class="tvu-lead-conversion" />
<label for="tvu-lead-conversion-<#= item.get('ID') #>">
<#= item.get('post_title') #>
</label>

View File

@@ -0,0 +1,16 @@
<# if( collection || shortcodes || thriveBoxes || thriveQuizzes || leadGenPages || lightBoxes) { #>
<br>
<div class="control-grid flex-start tvd-no-padding-bottom">
<span class="tvd-no-margin grey"><?php echo __( 'Which forms on your site should trigger the countdown? ', 'thrive-ult' ); ?></span>
<span class="tvd-icon-info-gray tvd-tooltipped" data-position="top" data-tooltip="<?php echo __( 'Select any form youve built in Thrive Leads (search by lead group, Thrivebox or shortcode) and any quiz builder quiz that contains an optin gate. You can also search for any page built in Thrive Architect on your site. Any Thrive Architect lead generation element submission on the selected page will trigger the lockdown.', 'thrive-ult' ) ?>"></span>
</div>
<# if((collection && collection.length == 0) && (shortcodes && shortcodes.length == 0) && (thriveBoxes && thriveBoxes.length == 0) && (thriveQuizzes && thriveQuizzes.length == 0)&& (leadGenPages && leadGenPages.length == 0)&& (lightBoxes && lightBoxes.length == 0) ) { #>
<div class="tvu-no-conversion-posts tvd-small-text grey"><?php echo __( 'No trigger defined', 'thrive-ult' ); ?></div>
<# } else { #>
<div class="tvu-evergreen-leads-checkboxes tvd-row">
<select id="tvu-trigger-form-ids" class="tvd-browser-default" multiple="multiple"></select>
</div>
<# } #>
<div class="tvd-v-spacer"></div>
<# } #>

View File

@@ -0,0 +1,2 @@
<a href="#dashboard/campaign/<#= item.get('ID')#>" class="tvd-modal-close"><#= item.get('post_title') #></a>

View File

@@ -0,0 +1,25 @@
<div class="tvd-v-spacer"></div>
<div class="tvd-input-field">
<input id="tvu-specific-url" type="text" value="" data-field="post_search">
<label for="tvu-specific-url"><?php echo __( 'Search for content on site', 'thrive-ult' ) ?></label>
</div>
<div class="control-grid flex-start pb-0">
<div class="control-grid flex-start w-200 mr-30">
<span class="tvd-no-margin grey"><?php echo __( 'Redirect when expired?', 'thrive-ult' ) ?></span>
<span class="tvd-icon-info-gray tvd-tooltipped" data-position="top" data-tooltip="<?php echo __( 'Activate this toggle to set a cookie on each visitor who lands on the promotion page for the first time. This allows you to redirect the visitors to a different page if they land on the promotion page after the cookie has expired.', 'thrive-ult' ) ?>"></span>
</div>
<div class="tvd-switch pb-20">
<label>
<?php echo __( 'NO', 'thrive-ult' ) ?>
<input class="tvu-redirect-switch" <#= settings.redirect == 1 ? 'checked' : '' #> type="checkbox">
<span id="tvu-repeat-campaign-switch" class="tvd-lever"></span>
<?php echo __( 'YES', 'thrive-ult' ) ?>
</label>
</div>
</div>
<div class="tvd-input-field tvd-redirect-input" <#= settings.redirect == 1 ? '' : ' style="display: none"' #>>
<input id="tvu-redirect-url" type="text" value="" data-field="post_search_redirect">
<label for="tvu-redirect-url"><?php echo __( 'Search for content on site', 'thrive-ult' ) ?></label>
</div>

View File

@@ -0,0 +1,156 @@
<p class="grey m-0"><?php echo __( 'What type of evergreen countdown would you like?', 'thrive-ult' ) ?></p>
<div class="control-grid mb-0">
<select class="tvu-real-time tvd-select2">
<option value="absolute"><?php echo __( 'Absolute - the countdown duration is exactly the same for every user', 'thrive-ult' ) ?></option>
<option value="realistic"
<#= item.real == 1 ? 'selected' : '' #> >
<?php echo __( 'Minimum duration - the countdown ends at a specified time of day after the minimum duration is met', 'thrive-ult' ) ?>
</option>
</select>
</div>
<p class="grey tvu-duration-label-realistic mt-0 control-grid flex-start <#= item.real == 1 ? '' : 'hidden' #>">
<?php echo __( 'Set minimum countdown duration', 'thrive-ult' ) ?>
<a href="https://thrivethemes.com/tkb_item/how-to-use-the-absolute-and-minimum-duration-options-when-creating-an-evergreen-campaign/" class="tvd-icon-info-gray tvd-tooltipped"
data-position="top" data-tooltip="<?php echo __( 'Learn more about this option', 'thrive-ult' ) ?>" target="_blank"></a>
</p>
<p class="grey tvu-duration-label-absolute mt-0 <#= item.real == 1 ? 'hidden' : '' #>">
<?php echo __( 'Set countdown duration', 'thrive-ult' ) ?>
</p>
<div class="control-grid flex-start pb-0">
<div class="tvd-input-field mr-30">
<input id="tvu-evergreen-days" class="tvu-evergreen-duration" maxlength="3" type="text" value="<#= item.days_duration #>" data-field="days_duration">
<label for="tvu-evergreen-days">
<?php echo __( 'Days', 'thrive-ult' ) ?>
</label>
</div>
<div class="tvd-input-field mr-30">
<input id="tvu-evergreen-hours" class="tvu-evergreen-duration" maxlength="3" type="text" value="<#= item.hours_duration #>" data-field="hours_duration">
<label for="tvu-evergreen-hours">
<?php echo __( 'Hours', 'thrive-ult' ) ?>
</label>
</div>
<div class="tvd-input-field mr-30">
<input id="tvu-evergreen-minutes" class="tvu-evergreen-duration" maxlength="3" type="text" value="<#= item.minutes_duration #>" data-field="minutes_duration">
<label for="tvu-evergreen-minutes">
<?php echo __( 'Minutes', 'thrive-ult' ) ?>
</label>
</div>
<div class="tvd-input-field">
<input id="tvu-evergreen-seconds" class="tvu-evergreen-duration" maxlength="3" type="text" value="<#= item.seconds_duration #>" data-field="seconds_duration">
<label for="tvu-evergreen-seconds">
<?php echo __( 'Seconds', 'thrive-ult' ) ?>
</label>
</div>
</div>
<div class="tvu-real-time-wrapper tvd-margin-bottom control-grid wrap flex-start m-0 p-0"<#= item.real == 1 ? '' : ' style="display: none"' #>>
<p class="grey fill mb-0"><?php echo __( "What time should the countdown end after the minimum duration is met?", 'thrive-ult' ) ?></p>
<div class="control-grid">
<div class="tvd-input-field timepicker-append-to tvd-input-field-medium tvd-no-padding-left">
<input id="tvu-real-time" type="text" class="tvd-no-focus tvd-no-margin w-75"
value="<#= item.realtime ? item.realtime : '' #>" data-field="real_time">
</div>
<p class="tvd-inline-block tvd-vertical-align ml-20 mb-0 mt-0">
<?php echo __( "o'clock. ", 'thrive-ult' ) ?>
</p>
</div>
<div class="control-grid ml-20">
<p class="tvd-inline-block tvd-vertical-align tvd-inline-block tvd-vertical-align mr-20 mt-0 mb-0">
<?php echo __( 'Timezone:', 'thrive-ult' ) ?>
</p>
<div class="tvd-input-field mt-0 mb-0 mr-20 w-175">
<select id="tvu-evergreen-gmt-offset" class="tvd-select2" name="gmt_offset" aria-describedby="timezone-description">
<?php echo wp_timezone_choice( get_user_locale() ); ?>
</select>
</div>
<p class="tvd-inline-block tvd-vertical-align tvd-no-margin gray-text tvd-small-text">
<?php echo __( 'Universal time is: ', 'thrive-ult' ) ?>
<?php echo date( 'Y-m-d h-i-s' ) ?>
</p>
</div>
</div>
<div class="control-grid flex-start pb-0 mt-10">
<div class="control-grid flex-start w-200 mr-30">
<span class="tvd-no-margin grey"><?php echo __( 'Activate Lockdown?', 'thrive-ult' ) ?></span>
<span class="tvd-icon-info-gray tvd-tooltipped" data-position="top" data-tooltip="<?php echo __( 'Lockdown campaigns are more secure and work by restricting access to email subscribers only', 'thrive-ult' ) ?>"></span>
</div>
<div class="tvd-switch pb-20">
<label>
<?php echo __( 'NO', 'thrive-ult' ) ?>
<input class="tvu-lockdown-switch" <#= !lockdown == 1 ? '' : 'checked' #> type="checkbox">
<span class="tvd-lever"></span>
<?php echo __( 'YES', 'thrive-ult' ) ?>
</label>
</div>
</div>
<div class="control-grid flex-start pb-0">
<div class="control-grid flex-start w-200 mr-30">
<span class="tvd-no-margin grey"><?php echo __( 'Repeat this campaign?', 'thrive-ult' ) ?></span>
<span class="tvd-icon-info-gray tvd-tooltipped" data-position="top" data-tooltip="<?php echo __( 'Optionally restart the campaign after the initial promotion period has ended. This allows you to reopen the offer for a limited period as a final attempt to convert anyone who missed the initial promotion window', 'thrive-ult' ) ?>"></span>
</div>
<div class="tvd-switch pb-20">
<label>
<?php echo __( 'NO', 'thrive-ult' ) ?>
<input class="tvu-repeat-switch" <#= item.evergreen_repeat == 1 ? 'checked' : '' #> type="checkbox">
<span id="tvu-repeat-campaign-switch" class="tvd-lever"></span>
<?php echo __( 'YES', 'thrive-ult' ) ?>
</label>
</div>
</div>
<div class="tvu-gray-box tvu-repeat-wrapper tvd-margin-bottom"<#= item.evergreen_repeat == 1 ? '' : ' style="display: none"' #>>
<p class="tvd-inline-block tvd-vertical-align tvd-no-margin">
<?php echo __( "Show this campaign again after", 'thrive-ult' ) ?>
</p>
<div class="tvd-input-field tvd-inline-block tvd-input-field-small">
<input id="tvu-evergreen-expire" class="tvd-no-margin" maxlength="5" type="text"
value="<#= item.end && typeof item.end !== 'object' ? item.end : '' #>" data-field="end">
</div>
<p class="tvd-inline-block tvd-vertical-align tvd-no-margin">
<?php echo __( 'days.', 'thrive-ult' ) ?>
</p>
</div>
<div class="tvd-v-spacer"></div>
<p class="grey m-0"><?php echo __( 'When should the countdown start', 'thrive-ult' ) ?></p>
<div class="control-grid pb-5">
<select class="tvu-evergreen-settings tvd-select2">
<# if(collection instanceof ThriveUlt.collections.LeadGroupsCollection) { #>
<option value="conversion"
<#= item.trigger.type == 'conversion' ? 'selected' : '' #>><?php echo __( 'When a lead generation form is submitted', 'thrive-ult' ) ?></option>
<# } #>
<# if(lockdown == 1) { #>
<option value="promotion"
<#= item.trigger.type == 'promotion' ? 'selected' : '' #>><?php echo __( 'Visit to promotion page', 'thrive-ult' ) ?></option>
<option value="webhook"
<#= item.trigger.type == 'webhook' ? 'selected' : '' #>><?php echo __( '3rd party event', 'thrive-ult' ); ?></option>
<# } else { #>
<option value="first"
<#= item.trigger.type == 'first' ? 'selected' : '' #>><?php echo __( 'First visit to site', 'thrive-ult' ) ?></option>
<option value="url"
<#= item.trigger.type == 'url' ? 'selected' : '' #>><?php echo __( 'Visit to a specific page', 'thrive-ult' ) ?></option>
<# } #>
</select>
</div>
<div id="tvu-trigger-description" class="tvd-small-text tvu-campaign-trigger-description grey"></div>
<div id="tvu-evergreen-settings"></div>
<div class="tvu-evergreen-linked">
<p>
<strong><?php echo __( "This campaign will automatically start when a conversion event of the following campaigns are met", 'thrive-ult' ); ?>
: </strong></p>
<div class="tvu-evergreen-linked-to"></div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="control-grid mb-0 mt-20">
<select class="tvu-webhook-api tvd-browser-default tvd-select2 " id="tvu-webhook-api"></select>
</div>
<div class="tvu-api-integration"></div>

View File

@@ -0,0 +1,30 @@
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field">
<input id="tvu-rolling-duration" maxlength="3" type="text" value="<#= item.duration ? item.duration : 1 #>" class="tvu-rolling-monthly tvd-no-margin-bottom" data-field="duration">
<label class="tvd-active" for="tvu-rolling-duration"><?php echo __( 'Duration (days)', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field tvu-no-margin-select">
<select class="tvu-rolling-repeat" id="tvu-rolling-repeat-month">
<# _.times( 12, function ( index ) { var i = index + 1 #>
<option
<#= ( item.repeat == i ? ' selected' : '' ) #> value="<#= i #>"><#= i #></option>
<# } ) #>
</select>
<label for="tvu-rolling-repeat-month"><?php echo __( 'Repeat every (months)', 'thrive-ult' ) ?> </label>
</div>
</div>
</div>
<div class="tvd-v-spacer"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12">
<p class="tvu-repeat-paragraph">
<?php echo __( 'Repeat On:', 'thrive-ult' ) ?>
</p>
</div>
<div class="tvd-col tvd-s12">
<div class="tvu-monthly-repeats-wrapper"></div>
</div>
</div>

View File

@@ -0,0 +1,91 @@
<p class="grey m-0"><?php echo __( 'Recurring Campaign', 'thrive-ult' ) ?></p>
<p><?php echo __( 'Tell us when you would like the new offer to start and how many days the campaign should last for', 'thrive-ult' ) ?></p>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field tvd-timepicker-left">
<input id="tvu-start-date" type="text" class="tvd-no-focus tvd-no-margin-bottom" value="<#= settings.start && settings.start.date ? settings.start.date : '' #>" data-field="start_date">
<label <#= settings.start ? 'class="tvd-active"' : '' #> for="tvu-start-date"><?php echo __( 'Start date', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field timepicker-append-to">
<input id="tvu-start-hour" type="text" class="tvd-no-focus tvd-no-margin-bottom" value="<#= settings.start && settings.start.time ? settings.start.time : '' #>" data-field="start_time">
<label <#= settings.start ? 'class="tvd-active"' : '' #> for="tvu-start-hour"><?php echo __( 'Start hour', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field tvu-no-margin-select">
<select name="" id="tvu-select-recurrence-change" class="tvu-campaign-recurrence" data-field="recurrence">
<option value="daily"
<#= item.get('rolling_type') == 'daily' ? 'selected' : '' #>><?php echo __( 'Daily', 'thrive-ult' ) ?></option>
<option value="weekly"
<#= item.get('rolling_type') == 'weekly' ? 'selected' : '' #>><?php echo __( 'Weekly', 'thrive-ult' ) ?></option>
<option value="monthly"
<#= item.get('rolling_type') == 'monthly' ? 'selected' : '' #>><?php echo __( 'Monthly', 'thrive-ult' ) ?></option>
<option value="yearly"
<#= item.get('rolling_type') == 'yearly' ? 'selected' : '' #>><?php echo __( 'Yearly', 'thrive-ult' ) ?></option>
</select>
<label for="tvu-select-recurrence-change"><?php echo __( 'Repeats', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
<div class="tvd-v-spacer"></div>
<div id="tvu-rolling-options"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12">
<p class="tvd-no-margin"><?php echo __( "Ends:", 'thrive-ult' ); ?> </p>
</div>
<div class="tvd-col tvd-s6 tvd-m2">
<p class="tvu-align-radio">
<input class="" name="ends" type="radio" value="never" id="tve-rolling-end-never" <#= settings.end === null ? 'checked' : '' #> />
<label for="tve-rolling-end-never"><?php echo __( "Never", 'thrive-ult' ); ?></label>
</p>
</div>
<div class="tvd-col tvd-s6 tvd-m4">
<div class="tvd-row">
<div class="tvd-col tvd-s2">
<p>
<input class="" name="ends" type="radio" value="after" id="tve-rolling-end-after" <#= settings.end && settings.end.length < 4 ? 'checked' : '' #>/>
<label for="tve-rolling-end-after"></label>
</p>
</div>
<div class="tvd-col tvd-s10">
<div class="tvd-input-field">
<input class="tvd-no-margin-bottom" id="tvu-rolling-end-after-in" type="text" value="<#= settings.end && settings.end.length < 4 ? settings.end : '' #>" data-field="occurrences_number" maxlength="4">
<label <#= settings.end && settings.end.length < 4 ? 'class="tvd-active"' : '' #> for="tvu-rolling-end-after-in" class="tve_text"><?php echo __( 'After (occurrences)', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
</div>
<div class="tvd-col tvd-s6 tvd-m4">
<div class="tvd-row">
<div class="tvd-col tvd-s2">
<p>
<input class="" name="ends" type="radio" value="date" id="tve-rolling-end-on" <#= settings.end !== null && typeof settings.end === 'object' ? 'checked' : '' #> />
<label for="tve-rolling-end-on"></label>
</p>
</div>
<div class="tvd-col tvd-s10">
<div class="tvd-input-field">
<input id="tvu-end-date" type="text" class="tvd-no-focus tvd-no-margin-bottom" value="<#= settings.end !== null && typeof settings.end === 'object' && settings.end.date ? settings.end.date : '' #>" data-field="end_date">
<label <#= settings.end && settings.end.length > 4 ? 'class="tvd-active"' : '' #> for="tvu-end-date"><?php echo __( 'On', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
</div>
<div class="tvd-col tvd-s6 tvd-m2">
<div class="tvd-input-field timepicker-append-to">
<input id="tvu-end-hour" type="text" class="tvd-no-focus tvd-no-margin-bottom" value="<#= settings.end !== null && typeof settings.end === 'object' && settings.end.time ? settings.end.time : '' #>" data-field="end_time">
<label <#= settings.end ? 'class="tvd-active"' : '' #> for="tvu-end-hour"><?php echo __( 'End hour', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
<div>
<h4><?php echo __( 'Description', 'thrive-ult' ) ?></h4>
<p><?php echo __( 'This campaign will repeat every', 'thrive-ult' ) ?> <span class="tvu-campaign-rolling-repeat"></span> <span class="tvu-campaign-rolling-day">on </span></p>
</div>
<div>
<p style="font-style: italic;"><?php echo __( 'Your current timezone settings are: ', 'thrive-ult' ) ?> <strong class="tu-timezone"><#= ThriveUlt.globals.settings.get('timezone') ? ThriveUlt.globals.settings.get('timezone') : '<?php __( 'Not Set', 'thrive-ult' ) ?>' #></strong>. <?php echo __( 'Local time is ', 'thrive-ult' ) ?> <strong
class="tu-time"><?php echo tve_ult_current_time( 'Y-m-d H:i' ); ?></strong>, <?php echo __( 'see ', 'thrive-ult' ) ?><?php echo __( ' Date & Time Settings', 'thrive-ult' ) ?></p>
</div>

View File

@@ -0,0 +1,30 @@
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field">
<input maxlength="2" id="tvu-rolling-duration" type="text" value="<#= item.duration ? item.duration : 1 #>" class="tvu-rolling-weekly tvd-no-margin-bottom" data-field="duration">
<label class="tvd-active" for="tvu-rolling-duration"><?php echo __( 'Duration (days)', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field tvu-no-margin-select">
<select class="tvu-rolling-repeat" id="tvu-rolling-repeat-weekly">
<# _.times( 10, function ( index ) { var i = index + 1 #>
<option
<#= ( item.repeat == i ? ' selected' : '' ) #> value="<#= i #>"><#= i #></option>
<# } ) #>
</select>
<label for="tvu-rolling-repeat-weekly"><?php echo __( 'Repeat every (weeks)', 'thrive-ult' ) ?> </label>
</div>
</div>
</div>
<div class="tvd-v-spacer"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12">
<p class="tvu-repeat-paragraph">
<?php echo __( 'Repeat On:', 'thrive-ult' ) ?>
</p>
</div>
<div class="tvd-col tvd-s12">
<div class="tvu-weekly-repeats-wrapper"></div>
</div>
</div>

View File

@@ -0,0 +1,19 @@
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field">
<input id="tvu-rolling-year-duration" maxlength="4" class="tvd-no-margin-bottom" type="text" value="<#= item.duration ? item.duration : 1 #>" data-field="duration">
<label class="tvd-active" for="tvu-rolling-year-duration"><?php echo __( 'Duration (days)', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m4">
<div class="tvd-input-field tvu-no-margin-select">
<select class="tvu-rolling-repeat" id="tvu-rolling-repeat-year">
<# _.times( 5, function ( index ) { var i = index + 1 #>
<option
<#= ( item.repeat == i ? ' selected' : '' ) #> value="<#= i #>"><#= i #></option>
<# } ) #>
</select>
<label for="tvu-rolling-repeat-year"><?php echo __( 'Repeat every (years)', 'thrive-ult' ) ?> </label>
</div>
</div>
</div>