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,2 @@
<p><?php echo $action['description'] ?></p>

View File

@@ -0,0 +1,27 @@
<p><?php echo $action['description'] ?></p>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s6">
<div class="tvd-input-field">
<select name="campaign" id="tvu-campaign" data-name="">
<option value="0"><?php echo __( "Choose campaign", 'thrive-ult') ?></option>
<?php foreach ( $campaigns as $c ) : ?>
<?php $selected = ( ! empty( $action['campaign'] && $c->ID == $action['campaign'] ) ? 'selected="selected"' : '' ); ?>
<option <?php echo $selected ?> value="<?php echo $c->ID ?>"><?php echo $c->post_title ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-campaign"><?php echo __( "Choose campaign", 'thrive-ult') ?></label>
</div>
</div>
</div>
<script type="text/javascript">
(
function ( $ ) {
ThriveUlt.util.ajax_done = function () {
var $campaign = $( "#tvu-campaign" );
$campaign.trigger( 'change' );
TVE_Dash.materialize( $( "#tvu-campaign" ).parent() );
};
}
)( jQuery )
</script>

View File

@@ -0,0 +1,2 @@
<p><?php echo __( "No options for this action", 'thrive-ult') ?></p>

View File

@@ -0,0 +1,95 @@
<?php if ( $all_used ) : ?>
<p class="tvd-text-red"><?php echo __( 'All designs are already used', 'thrive-ult') ?></p>
<?php return; ?>
<?php endif; ?>
<?php if ( empty( $designs ) ) : ?>
<p class="tvd-text-red"><?php echo __( 'No design available', 'thrive-ult') ?></p>
<?php return; ?>
<?php endif; ?>
<div class="tvd-card tvd-white">
<div class="tvd-card-content">
<div class="tvd-row tvd-collapse tvd-no-margin-bottom">
<div class="tvd-col tvd-s5">
<div class="tvd-input-field tvd-no-margin">
<select name="design" id="tvu-design" data-name="" data-field="design">
<option disabled selected value="0"><?php echo __( 'Choose design to show', 'thrive-ult') ?></option>
<?php foreach ( $designs as $d ) : ?>
<?php $selected = ( ! empty( $action['design'] ) && $d['id'] == $action['design'] ? 'selected="selected"' : '' ); ?>
<option <?php echo $selected ?>
value="<?php echo $d['id'] ?>"><?php echo $d['post_title'] ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-design">&nbsp;</label>
</div>
</div>
<div class="tvd-col tvd-s1">
&nbsp;
</div>
<div id="tvu-states-wrapper" class="tvd-col tvd-s5" style="display: none;">
<div class="tvd-input-field tvd-no-margin">
<select id="tvu-state" name="state" data-name="" data-field="state">
<option disabled selected value="0"><?php echo __( 'Choose design state', 'thrive-ult') ?></option>
</select>
<label for="tvu-state">&nbsp;</label>
</div>
</div>
<div class="tvd-col tvd-s1">
&nbsp;
</div>
</div>
<div class="tvu-addtimeline-actions">
<a id="tvu-add-event-action" href="javascript:void(0)" class="tvd-icon-check tvd-text-green tvd-pointer tvu-btn-icon-small tvd-margin-right-small"></a>
<a id="tvu-cancel-edit-event-action" class="tvd-icon-close tvu-bluegray-text tvd-pointer tvu-btn-icon-small"></a>
</div>
</div>
</div>
<script type="text/javascript">
(function ( $ ) {
var designs = <?php echo $states ?>,
action = <?php echo json_encode( $action )?>,
$design = $( "#tvu-design" ),
$state = $( "#tvu-state" ),
$states_wrapper = $( "#tvu-states-wrapper" );
$design.change( function () {
var $this = $( this ),
id = $this.val(),
$options = $state.find( 'option' ),
length = 1 - $options.length;
if ( $options.length > 1 ) {
$options.slice( length ).remove();
}
if ( designs[id] === undefined ) {
return TVE_Dash.materialize( $state.parent() );
}
for ( var i = 0; i < designs[id].length; i ++ ) {
var state = designs[id][i];
$state.append( '<option value="' + state.id + '">' + state.post_title + '</option>' );
}
TVE_Dash.materialize( $state.parent() );
$states_wrapper[designs[id].length > 1 ? 'show' : 'hide']();
if ( designs[id].length === 1 ) {
$state.val( designs[id][0]['id'] );
$state.trigger( 'change' );
}
$state.trigger( 'tvdclear' );
} );
ThriveUlt.util.ajax_done = function () {
$design.trigger( 'change' );
if ( action.state ) {
$state.val( action.state );
$state.trigger( 'change' );
}
TVE_Dash.materialize( $state.parent() );
}
})( jQuery )
</script>

View File

@@ -0,0 +1,82 @@
<p><?php echo $action['description'] ?></p>
<?php if ( empty( $designs ) ) : ?>
<p class="tvd-text-red"><?php echo __( "You cannot choose this action because you have not set any design yet", 'thrive-ult') ?></p>
<?php return; ?>
<?php endif; ?>
<div class="tvd-v-spacer"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s6">
<div class="tvd-input-field">
<select name="design" id="tvu-design">
<option disabled selected value="0"><?php echo __( "Choose design to show", 'thrive-ult') ?></option>
<?php foreach ( $designs as $d ) : ?>
<?php $selected = ( ! empty( $action['design'] && $d['id'] == $action['design'] ) ? 'selected="selected"' : '' ); ?>
<option <?php echo $selected ?> value="<?php echo $d['id'] ?>"><?php echo $d['post_title'] ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-design"><?php echo __( "Choose design to show", 'thrive-ult') ?></label>
</div>
</div>
<div id="tvu-states-wrapper" class="tvd-col tvd-s6">
<div class="tvd-input-field">
<select id="tvu-state" name="state">
<option value="0"><?php echo __( "Choose design sate", 'thrive-ult') ?></option>
</select>
<label for="tvu-state"><?php echo __( "Choose design sate", 'thrive-ult') ?></label>
</div>
</div>
</div>
<script type="text/javascript">
(
function ( $ ) {
var designs = <?php echo $states ?>,
action = <?php echo json_encode( $action )?>;
$design = $( "#tvu-design" );
$state = $( "#tvu-state" );
$states_wrapper = $( "#tvu-states-wrapper" );
$design.change( function () {
var $this = $( this ),
id = $this.val(),
$options = $state.find( 'option' ),
length = 1 - $options.length;
if ( $options.length > 1 ) {
$options.slice( length ).remove();
}
if ( designs[id] === undefined ) {
TVE_Dash.materialize( $state.parent() );
return;
}
for ( var i = 0; i < designs[id].length; i ++ ) {
var state = designs[id][i];
$state.append( '<option value="' + state.id + '">' + state.post_title + '</option>' );
}
TVE_Dash.materialize( $state.parent() );
$states_wrapper[designs[id].length > 1 ? 'show' : 'hide']();
if ( designs[id].length === 1 ) {
$state.val( designs[id][0]['id'] );
$state.trigger( 'change' );
}
} );
ThriveUlt.util.ajax_done = function () {
$design.trigger( 'change' );
if ( action.state ) {
$state.val( action.state );
$state.trigger( 'change' );
}
TVE_Dash.materialize( $state.parent() );
}
}
)( jQuery )
</script>

View File

@@ -0,0 +1,4 @@
<div class="tvu-header"></div>
<div class="tvu-breadcrumbs-wrapper" id="tvu-breadcrumbs-wrapper"></div>
<?php echo tvd_get_individual_plugin_license_message( new TU_Product(), true ); ?>
<div id="tvu-admin-wrapper"></div>

View File

@@ -0,0 +1,86 @@
<?php
/**
* notice to be displayed if license is not validated / active
* going to load the styles inline because there are so few lines and not worth an extra server hit.
*/
?>
<div class="tve-ultimatum-notice-overlay">
<div id="tve_ultimatum_license_notice">
<img src="<?php echo TVE_Ult_Const::plugin_url( 'admin/img/logo_330x165.png' ) ?>">
<p>
<?php echo __( 'You need to', 'thrive-ult') ?>
<a class="tve-license-link"
href="<?php echo admin_url( 'admin.php?page=tve_dash_license_manager_section' ); ?>"><?php echo __( 'activate your license', 'thrive-ult') ?></a>
<?php echo __( 'before you can use the Thrive Ultimatum plugin!', 'thrive-ult') ?>
</p>
</div>
</div>
<style type="text/css">
.tve-ultimatum-notice-overlay {
z-index: 1000000;
background: rgba(0, 0, 0, .4);
position: fixed;
width: 100%;
max-width: 100%;
margin-right: -160px;
height: 100%;
top: 32px;
right: 0;
}
@media (max-width: 960px) {
.tve-ultimatum-notice-overlay {
margin-right: -36px;
}
#tve_ultimatum_license_notice {
margin-left: -276px !important;
}
}
@media (max-width: 783px) {
.tve-ultimatum-notice-overlay {
margin-right: 0px;
}
#tve_ultimatum_license_notice {
margin-left: -300px !important;
}
}
#tve_ultimatum_license_notice {
width: 500px;
text-align: center;
top: 50%;
left: 50%;
margin: -100px 0 0 -250px;
padding: 50px;
z-index: 3000;
position: fixed;
-moz-border-radius-bottomleft: 10px;
-webkit-border-bottom-left-radius: 10px;
border-bottom-left-radius: 10px;
-moz-border-radius-bottomright: 10px;
-webkit-border-bottom-right-radius: 10px;
border-bottom-right-radius: 10px;
border-bottom: 1px solid #bdbdbd;
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgi…3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA=');
background-size: 100%;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(100%, #e6e6e6));
background-image: -webkit-linear-gradient(top, #ffffff 20%, #e6e6e6 100%);
background-image: -moz-linear-gradient(top, #ffffff 20%, #e6e6e6 100%);
background-image: -o-linear-gradient(top, #ffffff 20%, #e6e6e6 100%);
background-image: linear-gradient(top, #ffffff 20%, #e6e6e6 100%);
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 2px 5px 3px #efefef;
-moz-box-shadow: 2px 5px 3px #efefef;
box-shadow: 2px 2px 5px 3px rgba(0, 0, 0, .4);
}
#tve_ultimatum_license_notice .tve-license-link, #tve_ultimatum_license_notice .tve-license-link:active, #tve_ultimatum_license_notice .tve-license-link:visited {
color: #5DA61E;
}
</style>

View File

@@ -0,0 +1,67 @@
<?php
/**
* notice to be displayed if license is not validated / active
* going to load the styles inline because there are so few lines and not worth an extra server hit.
*/
?>
<div class="tve-ult-notice-overlay">
<div id="tve_ult_license_notice">
<img src="<?php echo TVE_Ult_Const::plugin_url( 'admin/img/logo_90x90.png' ) ?>" width="90">
<p style="margin: 20px 0">
<?php echo __( "It looks like you have Thrive Architect installed, but it's not compatible with this version of Thrive Ultimatum. Thrive Ultimatum uses Thrive Architect to edit various pieces of content.
To be able to use this feature, please make sure you have the latest versions for both plugins by clicking on the following link and checking for updates:", 'thrive-ult') ?>
</p>
<p style="margin: 0;">
<a class="tve-license-link"
href="<?php echo network_admin_url( 'plugins.php' ); ?>"><?php echo __( 'Manage plugins', 'thrive-ult') ?></a>
</p>
</div>
</div>
<style type="text/css">
.tve-ult-notice-overlay {
z-index: 3000000;
background: rgba(0, 0, 0, .4);
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
#tve_ult_license_notice {
width: 500px;
text-align: center;
top: 50%;
left: 50%;
margin: -150px 0 0 -300px;
padding: 50px;
z-index: 3000;
position: fixed;
-moz-border-radius-bottomleft: 10px;
-webkit-border-bottom-left-radius: 10px;
border-bottom-left-radius: 10px;
-moz-border-radius-bottomright: 10px;
-webkit-border-bottom-right-radius: 10px;
border-bottom-right-radius: 10px;
border-bottom: 1px solid #bdbdbd;
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgi…3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA=');
background-size: 100%;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(100%, #e6e6e6));
background-image: -webkit-linear-gradient(top, #ffffff 20%, #e6e6e6 100%);
background-image: -moz-linear-gradient(top, #ffffff 20%, #e6e6e6 100%);
background-image: -o-linear-gradient(top, #ffffff 20%, #e6e6e6 100%);
background-image: linear-gradient(top, #ffffff 20%, #e6e6e6 100%);
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 2px 5px 3px #efefef;
-moz-box-shadow: 2px 5px 3px #efefef;
box-shadow: 2px 2px 5px 3px rgba(0, 0, 0, .4);
}
#tve_ult_license_notice .tve-license-link, #tve_ult_license_notice .tve-license-link:active, #tve_ult_license_notice .tve-license-link:visited {
color: #5DA61E;
}
</style>

View File

@@ -0,0 +1,9 @@
<ul class="tvu-breadcrumbs">
<# links.each( function( item, index ) { item.has_link = index < links.size() - 1 #>
<li class="tvd-breadcrumb <#= ( item.has_link ? '' : ' tvu-no-link' ) #>">
<# if ( item.has_link ) { #><a href="<#= item.get_url() #>"><# } #>
<#= _.escape ( item.get ( 'label' ) ) #>
<# if ( item.has_link ) { #></a><# } #>
</li>
<# } ) #>
</ul>

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>

View File

@@ -0,0 +1,21 @@
<div class="tvd-col tvd-s4">
<div class="tvd-card tvd-white tvd-small tvd-valign-wrapper">
<div class="tvd-card-content tvd-center-align tvd-valign">
<span class="tvu-conversion-icon <#= item.get('trigger_options').trigger == ThriveUlt.util.trigger_type.conversion ? 'tvu-icon-envelope' : 'tvu-icon-ext-link' #>"></span>
<p>
<#= item.get('trigger_options').trigger == ThriveUlt.util.trigger_type.conversion ? 'User subscription' : 'Visit to conversion <br/> page' #>
</p>
</div>
</div>
</div>
<div class="tvd-col tvd-s4" <#= item.get('trigger_options').event == '' ? 'style="display: none"' : '' #>>
<div class="tvd-card tvd-white tvd-small tvd-valign-wrapper">
<div class="tvd-card-content tvd-center-align tvd-valign">
<span class="tvu-action-icon <#= item.get('trigger_options').trigger == ThriveUlt.util.trigger_type.conversion ? 'tvu-icon-signout' : 'tvu-icon-move' #>"></span>
<p>
<#= item.get('trigger_options').event == ThriveUlt.util.conversion_event.end ? 'End Campaign' : 'Move to another <br/> campaign' #>
</p>
</div>
</div>
</div>

View File

@@ -0,0 +1,38 @@
<div class="tvd-card tvd-white ">
<ul class="tvd-collection tvd-with-header tvd-collection-no-border">
<li class="tvd-collection-header tvu-event-title">
<h4><?php echo __( 'Conversion:', 'thrive-ult' ) ?>
<#= item.get('trigger_options').trigger == ThriveUlt.util.trigger_type.conversion ? 'TL Opt-in' : 'Visit to Conversion Page' #>
</h4>
<div class="tvu-conversion-action-btns tvd-inline-block">
<a class="tvu-bluegray-text tvu-btn-icon-small tvu-campaign-edit" href="javascript:void(0)">
<i class="tvd-icon-pencil"></i>
</a>
<a class="tvu-bluegray-text tvu-btn-icon-small tvu-campaign-delete" href="javascript:void(0)">
<i class="tvd-icon-trash-o tvd-left"></i>
</a>
</div>
</li>
<li class="tvd-collection-item tvu-conversion-event-box">
<p class="tvd-no-margin">
<span class="tvd-icon-chevron-right tvu-bluegray-text"></span>
<?php echo __( 'Ends current Campaign', 'thrive-ult' ) ?>
</p>
<# if(campaign) { #>
<p class="tvd-no-margin">
<span class="tvd-icon-chevron-right tvu-bluegray-text"></span>
<?php echo __( 'Moves to campaign ', 'thrive-ult' ) ?>
<a <# if(!campaign.get( 'designs' ) || !campaign.get( 'designs' ).size() || !campaign.checkDesignsTemplate() || !campaign.get('has_display_settings') || campaign.get( 'status' ) != ThriveUlt.util.status.running) { #> class="tvd-text-red tvd-relative" <# } #> href="#dashboard/campaign/<#= campaign.get( 'ID' ) #>">
<strong> <#= campaign.get( 'post_title' ) #> </strong>
<# if(!campaign.get( 'designs' ) || !campaign.get( 'designs' ).size() || !campaign.checkDesignsTemplate() || !campaign.get('has_display_settings')) { #>
<span class="tvd-tooltip-visible tvd-fixed-bottom tvd-tooltip-visible-big"><span><?php echo __( 'Tip: Complete the setup for this campaign, to enable this conversion event.', 'thrive-ult' ) ?></span></span>
<# } else if ( campaign.get( 'status' ) != ThriveUlt.util.status.running ) { #>
<span class="tvd-tooltip-visible tvd-fixed-bottom"><span><?php echo __( 'Tip: You need to start the linked campaign', 'thrive-ult' ) ?></span></span>
<# } #>
</a>
</p>
<# } #>
</li>
</ul>
</div>

View File

@@ -0,0 +1,4 @@
<input <#= end_id && end_id == item.get('ID') ? 'checked' : '' #> type="radio" id="tvu-campaign-conversion-<#= item.get('ID') #>" name="tvu-campaign-conversion" value="<#= item.get('ID') #>" class="tvu-campaign-conversion" />
<label for="tvu-campaign-conversion-<#= item.get('ID') #>" class="tvd-truncate">
<#= item.get('post_title') #>
</label>

View File

@@ -0,0 +1,9 @@
<h4><?php echo __( 'Select a campaign to move to or create a new evergreen campaign', 'thrive-ult' ) ?></h4>
<div id="tvu-campaign-move-wrapper" class="tvd-row"></div>
<# if(collection.length === 0) { #>
<p><?php echo __( "There are no Evergreen Campaigns to move to", 'thrive-ult' ); ?></p>
<# } #>
<a href="javascript:void(0)" id="tvu-add-evergreen-campaign" class="tvu-add-evergreen-campaign tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-blue tvd-btn-small tvd-inline-block"><?php echo __( '+ Add New', 'thrive-ult' ) ?></a>
<div class="tvd-v-spacer"></div>

View File

@@ -0,0 +1,4 @@
<input <#= ids && typeof ids !== 'number' && ids.indexOf(item.get('ID')) > -1 ? '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') #>" class="tvd-truncate">
<#= item.get('post_title') #>
</label>

View File

@@ -0,0 +1,22 @@
<# if(collection.length == 0) { #>
<div class="tvu-no-conversion-posts"><?php echo __( "No Lead Groups defined", 'thrive-ult' ); ?></div>
<# } else { #>
<h4><?php echo __( 'User subscribes to Lead Groups', 'thrive-ult' ) ?>:</h4>
<div class="tvu-conversion-leads-checkboxes tvd-row"></div>
<div class="tvd-v-spacer"></div>
<# } #>
<# if(thriveBoxes.length == 0) { #>
<div class="tvu-no-conversion-posts"><?php echo __( "No ThriveBoxes defined", 'thrive-ult' ); ?></div>
<# } else { #>
<h4><?php echo __( 'User subscribes to ThriveBoxes', 'thrive-ult' ) ?>:</h4>
<div class="tvu-conversion-thrivebox-checkboxes tvd-row"></div>
<# } #>
<# if(shortcodes.length == 0) { #>
<div class="tvu-no-conversion-posts"><?php echo __( "No Shortcodes defined", 'thrive-ult' ); ?></div>
<# } else { #>
<h4><?php echo __( 'User subscribes to Shortcodes', 'thrive-ult' ) ?>:</h4>
<div class="tvu-conversion-shortcodes-checkboxes tvd-row"></div>
<# } #>

View File

@@ -0,0 +1,6 @@
<h4><?php echo __( 'Visit to conversion page', 'thrive-ult' ) ?></h4>
<div class="tvd-v-spacer vs-half"></div>
<div class="tvd-input-field">
<input id="tvu-specific-url" type="text" value="" data-field="conversion_page">
<label for="tvu-specific-url"><?php echo __( 'Search for content on site', 'thrive-ult' ) ?></label>
</div>

View File

@@ -0,0 +1,35 @@
<h3 class="tvd-title">
<?php echo __( 'Multi Page Campaigns', 'thrive-ult' ) ?>&nbsp;&nbsp;
<a class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-small click tvu-add-new-campaign">
<?php echo __( 'Add New', 'thrive-ult' ); ?>
</a>
</h3>
<div class="" id="tvu-no-campaign-text">
<p>
<?php echo sprintf(
__( "You don't have any campaigns set up yet. Click %s below to start setting up your first one or %s.", 'thrive-ult' ),
'<strong>' . __( 'New Campaign', 'thrive-ult' ) . '</strong>',
tve_ult_video( 'jW01JfxSq5I', __( 'watch a Quick Start Tutorial', 'thrive-ult' ), '', false )
) ?>
</p>
</div>
<div class="tvd-v-spacer"></div>
<div class="tvd-row" id="tvu-campaigns-list">
<div class="tvd-col tvd-s6 tvd-ms6 tvd-m4 tvd-l3 tvu-add-campaign tvd-pointer">
<div class="tvd-card tvd-large tvd-card-new tvd-valign-wrapper">
<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 Campaign', 'thrive-ult' ) ?></h4>
</div>
</div>
</div>
</div>
<div class="tvd-row">
<a href="#dashboard/archived-campaigns" id="tvu-add-conversion-event"
class="tvu-add-conversion-event tvd-btn tvd-btn-blue tvd-waves-effect tvd-waves-light tvd-margin-left">
<?php echo __( 'Archived campaigns', 'thrive-ult' ) ?>
</a>
</div>

View File

@@ -0,0 +1,24 @@
<div class="tvd-card tvd-medium-xxsmall tvd-red tve-delete-design-card" tabindex="-1">
<div class="tvd-card-content tvd-center-align">
<h4 class="tvd-margin-top">
<?php echo __( 'Are you sure you want to delete this design?', 'thrive-ult' ) ?>
</h4>
<p>
<?php echo __( 'By deleting a design you will also delete the actions related to it on the timeline.', '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,45 @@
<div class="tvd-card tvd-white tvd-medium-xxsmall">
<# if ( item.get('tpl')=='' ){ #>
<div class="tvu-card-text">
<span class="tvu-required-design"><#=item.thumb()#></span>
</div>
<# }else{ #>
<div class="tvd-card-image tvu-<#=item.get('post_type')#>-image" style="background-image: url('<#=item.thumb()#>');background-size:cover;height: 100%;">
<img src="<#=item.thumb()#>" alt="">
</div>
<# } #>
<div class="tvd-badge tvu-<#=item.get('post_type')#>"><#=item.get('type_nice_name')#></div>
<div class="tvd-card-action">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6">
<h4>
<#= item.get('post_title') #>
</h4>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<div class="tvu-campaign-actions <#= item.get('tpl')? '':'tvu-design-card-without-template' #> tvd-right">
<# if ( item.get('tpl')=='' ) { #>
<div class="tvd-tooltip-visible tvd-fixed-bottom tvu-adjust-under-edit"><span><?php echo __( 'Choose a template for this design', 'thrive-ult' ) ?></span></div>
<# } #>
<# if( item.get( 'post_type' ) === 'shortcode' ) { #>
<a class="tvu-get-shortcode tvu-icon-gray tvu-btn-icon-small">
<i class="tvu-icon-code"></i>
</a>
<# } #>
<# if( item.get( 'post_type' ) === 'header-bar' ) { #>
<a class="tvu-top-ribbon-settings tvu-icon-gray tvu-btn-icon-small">
<i class="tvd-icon-settings"></i>
</a>
<# } #>
<a class="tvu-edit-design tvu-icon-gray tvu-btn-icon-small"
href="<#= item.get('tcb_edit_url') #>" target="_blank">
<i class="tvd-icon-pencil"></i>
</a>
<a class="tvu-delete-design tvu-icon-gray tvu-btn-icon-small">
<i class="tvd-icon-trash-o"></i>
</a>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<p>
<span class="tvd-icon-chevron-right tvu-bluegray-text"></span> <#= item.getFullName() #>
</p>

View File

@@ -0,0 +1,28 @@
<div class="tvd-row tvd-collapse tvd-no-mb">
<div class="tvd-col tvd-s4">
<span class="tvu-vertical-align">
<#=design.get( 'post_title' )#>
</span>
</div>
<div class="tvd-col tvd-s2 tvd-center-align">
<span class="tvu-vertical-align">
<input id="event-design-<#=design.get('ID')#>" type="checkbox" class="tvu-event-design-display" value="1"<#=design.get( 'event_display' ) ? ' checked' : ''#>>
<label style="padding-left: 20px;" for="event-design-<#=design.get('ID')#>"></label>
</span>
</div>
<div class="tvd-col tvd-s6">
<div class="tvd-no-margin tvu-event-design-state-container"
<#=design.get( 'event_display' ) ? '' : ' style="display:none"'#>>
<select class="tvu-event-design-state">
<option value="<#=design.get( 'ID' )#>"
<#=design.get( 'event_state_selected' ) ? ' selected' : ''#>> [ <?php echo __( 'Main State', 'thrive-ult' ) ?> ]</option>
<# if ( design.get( 'children' ) ) { #>
<# design.get( 'children' ).each( function ( state ) { #>
<option value="<#=state.get( 'ID' )#>"
<#=design.get( 'event_state' ) === state.get( 'ID' ) ? ' selected' : ''#>><#=state.get( 'post_title' ) #></option>
<# } ); #>
<# } #>
</select>
</div>
</div>
</div>

View File

@@ -0,0 +1,14 @@
<div class="tvu-timeline-col tvu-timeline-col-first">
<a href="javascript:void(0)" id="tvu-add-timeline-event"
class="tvu-add-timeline-event tvd-tooltipped" data-tooltip="<?php echo __( "Add new event to timeline", 'thrive-ult' ) ?>" data-position="right">
<span class="tvd-icon-plus"></span>
</a>
<div class="tvu-timeline-date">
<#= item.getLabel() #>
</div>
</div>
<div class="tvu-timeline-col tvu-timeline-col-second">
<p class="tvu-timeline-end tvd-no-margin">
<?php echo __( "Campaign end", 'thrive-ult' ) ?>
</p>
</div>

View File

@@ -0,0 +1,21 @@
<div class="tvu-timeline-col tvu-timeline-col-first">
<div class="tvu-timeline-date">
<#= item.getLabel() #>
</div>
</div>
<div class="tvu-timeline-col tvu-timeline-col-second">
<div class="tvu-timeline-box">
<#= item.get('name') #>
<div class="tvu-timeline-action-btns" style="<#= item.get('is_end') ? 'display:none;': '' #>">
<a class="tvu-bluegray-text tvu-btn-icon-small tvu-event-edit" href="javascript:void(0)">
<i class="tvd-icon-pencil"></i>
</a>
<a class="tvu-bluegray-text tvu-btn-icon-small tvu-event-delete" href="javascript:void(0)"
style="<#= item.get('type') ==='start' ? 'display:none;' : '' #>">
<i class="tvd-icon-trash-o tvd-left"></i>
</a>
</div>
<div class="tvu-event-actions"></div>
</div>
</div>

View File

@@ -0,0 +1,45 @@
<nav id="tvu-nav">
<div class="nav-wrapper">
<div class="tvu-logo tvd-left">
<a href="<?php echo admin_url( 'admin.php?page=tve_ult_dashboard' ) ?>"
title="<?php echo __( 'Thrive Ultimatum Home', 'thrive-ult' ) ?>">
<img src="<?php echo TVE_Ult_Const::plugin_url() . '/admin/img/tvu-logo-white.png'; ?>"/>
</a>
</div>
<ul class="tvd-right">
<li>
<a href="javascript:void(0)" class="tvd-dropdown-button" data-activates="tvu-submenu" data-beloworigin="true" data-hover="false" data-constrainwidth="false">
<i class="tvd-icon-settings" style="font-size: 12px;"></i>
<?php echo __( 'Settings', 'thrive-ult' ) ?>
<i class="tvd-icon-expanded tvd-no-margin-right"></i>
</a>
</li>
<?php do_action( 'tvd_notification_inbox' ); ?>
</ul>
<ul id="tvu-submenu" class="tvd-dropdown-content">
<li>
<a id="date_time_settings" href="#">
<i class="tvu-icon-datetime" style="font-size: 18px;"></i>
<?php echo __( 'Date & Time Settings', 'thrive-ult' ) ?>
</a>
</li>
<li>
<a id="tu-purge-cache" href="#purge-cache" class="tvd-tooltipped"
data-tooltip="<?php echo __( 'Clear the cache for impressions and conversions displayed for each campaign in Ultimatum Dashboard', 'thrive-ult' ) ?>">
<i class="tvd-icon-loop2" style="font-size: 12px;"></i>
<?php echo __( 'Purge Cache', 'thrive-ult' ) ?>
</a>
</li>
</ul>
</div>
</nav>
<div class="td-app-notification-overlay overlay close"></div>
<div class="td-app-notification-drawer">
<div class="td-app-notification-holder">
<div class="td-app-notification-header notification-header-notify-tve-ult"></div>
<div class="td-app-notification-wrapper notification-wrapper-notify-tve-ult"></div>
<div class="notification-footer notification-footer-notify-tve-ult"></div>
</div>
</div>
<?php include TVE_DASH_PATH . '/templates/share.phtml'; ?>

View File

@@ -0,0 +1,23 @@
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( "Copy campaign - ", 'thrive-ult' ) ?>
<#= model.get('post_title') #>
</h3>
<div class="tvd-v-spacer"></div>
<div class="tvu-new-campaign-templates control-grid"></div>
<div id="tvu-campaign-type-options"></div>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( "Cancel", 'thrive-ult' ) ?>
</a>
</div>
<div>
<a href="javascript:void(0)"
class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-right tvd-modal-submit">
<?php echo __( "Copy", 'thrive-ult' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,38 @@
<div class="tvd-modal-content">
<h3 class="tvd-modal-title">
<?php echo __( 'Campaign settings', 'thrive-ult' ) ?>
<?php tve_ult_video( '990MWdzuLh0' ) ?>
</h3>
<p><?php echo __( "Events on timeline may be affected by the campaign's duration.", 'thrive-ult' ) ?></p>
<div class="control-grid">
<?php foreach ( TVE_Ult_Const::campaign_types_details() as $type => $prop_type ) : ?>
<div class="tvu-campaign-selector" data-type="<?php echo $type; ?>">
<div class="tvu-xsmall-card tvd-tooltipped tvd-card tvd-white tvd-pointer tvd-center-align <#= (model.get('type') === '<?php echo $type; ?>')? 'tvu-selected-design':'' #>"
data-position="top" data-tooltip="<?php echo $prop_type['tooltip'] ?>">
<div class="tvd-card-content">
<img width="80"
src="<?php echo TVE_Ult_Const::plugin_url( 'admin/img/' . $prop_type['image'] ); ?>"/>
<p><strong><?php echo $prop_type['name'] ?></strong></p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<div id="tvu-campaign-type-options"></div>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( 'Cancel', 'thrive-ult' ) ?>
</a>
</div>
<div>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvu-save-campaign-type tvd-modal-submit">
<?php echo __( 'Save', 'thrive-ult' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,124 @@
<?php
$tzstring = get_option( TVE_Ult_Const::SETTINGS_TIME_ZONE );
?>
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Set General Date & Time', 'thrive-ult' ) ?></h3>
<div class="tvd-v-spacer"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-m6 tvd-s12">
<h4><?php echo __( 'Date Format', 'thrive-ult' ) ?></h4>
<p><?php echo __( 'Current date format:', 'thrive-ult' ) ?>
<span class="tvu-gray-text">
<#= ThriveUlt.globals.date_formats.get(model.get('date_format')).date #><span>(<#= ThriveUlt.globals.date_formats.get(model.get('date_format')).description #>
)</span>
</span>
</p>
<div class="tvu-gray-box">
<div class="tvd-row tvd-collapse tvd-no-mb">
<div class="tvd-col tvd-l6 tvd-m7 tvd-s12">
<p class="tvd-no-margin tvd-vertical-align">
<?php echo __( 'Change default date format:', 'thrive-ult' ) ?>
</p>
</div>
<div class="tvd-col tvd-l6 tvd-m5 tvd-s12">
<div class="tvd-input-field tvd-no-margin">
<select id="tvu-date-format-setting">
<option disabled selected value="0"><?php echo __( 'Select Date Format', 'thrive-ult' ) ?></option>
<?php foreach ( TVE_Ult_Const::date_format_details( 'all' ) as $k => $v ) : ?>
<option
<#= model.get('date_format') == '<?php echo $k ?>' ? 'selected' : '' #> value="<?php echo $k; ?>"><?php echo $v['description']; ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-date-format-setting">
<?php echo __( 'Set default format date', 'thrive-ult' ) ?>
</label>
</div>
</div>
</div>
</div>
</div>
<div class="tvd-col tvd-m6 tvd-s12">
<h4><?php echo __( 'Time Format', 'thrive-ult' ) ?></h4>
<?php
$timezone = TVE_Ult_Const::get_timezone( $tzstring );
$full_time = gmdate( 'H:i', time() + 3600 * ( $timezone + date( "I" ) ) );
$part_time = gmdate( 'h:i A', time() + 3600 * ( $timezone + date( "I" ) ) );
?>
<p><?php echo __( 'Current time format:', 'thrive-ult' ) ?>
<span class="tvu-gray-text">
<#= model.get('time_format') == 12 ? '<?php echo $part_time ?>' : '<?php echo $full_time ?>'#>
<span>(<#= model.get('time_format') #> <?php echo __( 'hours', 'thrive-ult' ) ?>)</span>
</span>
</p>
<div class="tvu-gray-box">
<div class="tvd-row tvd-collapse tvd-no-mb">
<div class="tvd-col tvd-l6 tvd-m7 tvd-s12">
<p class="tvd-no-margin tvd-vertical-align">
<?php echo __( 'Change default time format:', 'thrive-ult' ) ?>
</p>
</div>
<div class="tvd-col tvd-l6 tvd-m5 tvd-s12">
<div class="tvd-input-field tvd-no-margin">
<select id="tvu-time-format-setting">
<option disabled selected value="0"><?php echo __( 'Select Time Format', 'thrive-ult' ) ?></option>
<option
<#= model.get('time_format') == 24 ? 'selected' : '' #>
value="24"><?php echo __( '24 hours', 'thrive-ult' ) ?> (<?php echo $full_time; ?>)</option>
<option
<#= model.get('time_format') == 12 ? 'selected' : '' #>
value="12"><?php echo __( '12 hours', 'thrive-ult' ) ?> (<?php echo $part_time; ?>)</option>
</select>
<label for="tvu-time-format-setting">
<?php echo __( 'Set default time format', 'thrive-ult' ) ?>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tvd-v-spacer vs-2"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-m6 tvd-s12">
<h4><?php echo __( 'Time Zone Format', 'thrive-ult' ) ?></h4>
<p>
<?php echo __( 'Current time zone:', 'thrive-ult' ) ?>
<span class="tvu-gray-text">
<#= model.get('timezone') ? model.get('timezone') : '<?php __( 'Not Set', 'thrive-ult' ) ?>' #>
</span>
</p>
<div class="tvu-gray-box">
<div class="tvd-row tvd-collapse tvd-no-mb">
<div class="tvd-col tvd-l6 tvd-m7 tvd-s12">
<p class="tvd-no-margin tvd-vertical-align">
<?php echo __( 'Change default timezone:', 'thrive-ult' ) ?>
</p>
</div>
<div class="tvd-col tvd-l6 tvd-m5 tvd-s12">
<div class="tvd-input-field tvd-no-margin">
<select id="tvu-timezone-setting">
<?php echo wp_timezone_choice( $tzstring ); ?>
</select>
<label
for="tvu-timezone-setting"><?php echo __( 'Set default time zone', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( "Cancel", 'thrive-ult' ) ?>
</a>
</div>
<div>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvu-save-date-settings tvd-modal-submit">
<?php echo __( "Save Changes", 'thrive-ult' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,65 @@
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Timeline Event Settings', 'thrive-ult' ) ?></h3>
<div id="tvu-trigger-options" style="display: none">
<div class="tvd-v-spacer vs-2"></div>
<h4><?php echo __( 'Trigger', 'thrive-ult' ) ?></h4>
<div class="tvd-v-spacer"></div>
<?php echo __( 'This event starts', 'thrive-ult' ) ?>
<div class="tvd-input-field tvd-inline-block tvd-input-field-medium tvu-timeline-align-inputs">
<input id="tvu-event-time" type="text" maxlength="3" data-field="time"/>
<label for="tvu-event-start"
data-error="<?php echo __( 'Required field', 'thrive-ult' ) ?>">&nbsp;</label>
</div>
<div class="tvd-input-field tvd-inline-block tvd-input-field-medium tvu-timeline-align-inputs tvd-no-margin">
<select id="tvu-event-unit">
<option value="days"><?php echo __( 'Days', 'thrive-ult' ) ?></option>
<option value="hours"><?php echo __( 'Hours', 'thrive-ult' ) ?></option>
</select>
</div>
<?php echo __( 'before the countdown reaches zero.', 'thrive-ult' ) ?>
</div>
<div class="tvd-v-spacer vs-2"></div>
<div class="tvd-row tvd-collapse">
<div class="tvd-col tvd-s12">
<h4 class="tvd-no-margin"><?php echo __( 'Actions', 'thrive-ult' ) ?></h4>
<em class="tvd-small-text"><?php echo __( 'Choose the designs and states to be displayed once the countdown reaches this event', 'thrive-ult' ) ?></em>
</div>
</div>
<div class="tvu-event-designs">
<ul class="tvd-collection tvd-with-header" id="tvu-event-designs">
<li class="tvd-collection-header">
<div class="tvd-row tvd-collapse tvd-no-mb">
<div class="tvd-col tvd-s4">
<h5>
<?php echo __( 'Design to show', 'thrive-ult' ) ?>
</h5>
</div>
<div class="tvd-col tvd-s2 tvd-center-align">
<h5>
<?php echo __( 'Display', 'thrive-ult' ) ?>
</h5>
</div>
<div class="tvd-col tvd-s6">
<h5>
<?php echo __( 'Design State', 'thrive-ult' ) ?>
</h5>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<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>
</div>
<div>
<button
class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvu-event-save tvd-right">
<?php echo __( 'Save Timeline Event', 'thrive-ult' ) ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,111 @@
<div class="tvd-modal-content">
<h3 class="tvd-modal-title">
<?php echo __( 'Activate Lockdown Campaign', 'thrive-ult' ) ?>
<?php tve_ult_video( 'qSoYNGje8bg' ) ?>
</h3>
<div class="control-grid">
<div>
<p>
<img width="90" class="tvu-selected-design" src="<#= ThriveUlt.plugin_url +'admin/img/tvd-'+ model.get('type') + '-campaign.png' #>"/>
</p>
</div>
<div class="pl-30">
<p class="tvu-small-gray-text mb-10">
<# if(model.get('type') == ThriveUlt.util.campaignType.evergreen) { #>
<?php echo __( "Lockdown campaigns can't be cheated because promotions are tied to an email address. Unknown visitors aren't able to access the promotion. They are especially useful when you set up a sales page, but you don't want anyone to be able to access it before your campaign starts or you want to set up an offer that's available to subscribers exclusively.", 'thrive-ult' ) ?></p>
<# } else { #>
<?php echo __( "A lockdown campaign will only allow visitors to access the promotion page on the days when the campaign is active. Before the campaign starts they will be redirected to a pre-access page and once it's over, if they try to visit the promotion page, they will be redirected to an expired page.", 'thrive-ult' ) ?></p>
<# } #>
<a style="font-size: 12px;" href="https://thrivethemes.com/tkb_item/thrive-ultimatum-open-campaign-vs-lockdown-campaign/"><?php echo __( 'Learn more about the difference between open and locked campaigns', 'thrive-ult' ) ?></a>
</div>
</div>
<div id="tve-message-container">
<div class="notice notice-info mr-0">
<span class="notice-icon">!</span>
<p class="tvd-small-text"><?php echo __( 'Lockdown promotion pages need to be excluded from your caching plugin in order to work correctly.', 'thrive-ult' ) ?></p>
<a target="_blank" href="https://thrivethemes.com/tkb_item/how-to-exclude-a-lockdown-promotion-from-your-caching-plugin/"><?php echo __( 'Learn how to do this', 'thrive-ult' ) ?></a>
</div>
</div>
<div class="tvu-gray-borderless-box p-10 tvu-autocomplete-limit">
<div class="control-grid stretch">
<div class="tvu-white-borderless-box mr-10">
<p class="tvu-bold-text-important mb-0"><?php echo __( 'Pre-access page', 'thrive-ult' ) ?></p>
<p class="tvu-tiny-gray-text mt-5"><?php echo __( 'This is what visitors see if the campaign has not yet started for them', 'thrive-ult' ) ?></p>
<div class="tvd-input-field">
<input id="tvu-lockdown-pre-access-url" class="tvd-no-focus" type="text" value="<#= model.get('lockdown_settings').preaccess.value #>" data-field="preaccess"
data-allow-regex="^http(s)?:\/\/">
<label for="tvu-lockdown-pre-access-url"><?php echo __( 'Enter URL or search term', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvu-white-borderless-box">
<p class="tvu-bold-text-important mb-0"><?php echo __( 'Expired page', 'thrive-ult' ) ?></p>
<p class="tvu-tiny-gray-text mt-5"><?php echo __( 'This is the page that the visitors see once their countdown expires', 'thrive-ult' ) ?></p>
<div class="tvd-input-field">
<input id="tvu-lockdown-expired-url" class="tvd-no-focus" type="text" value="<#= model.get('lockdown_settings').expired.value #>" data-field="expired"
data-allow-regex="^http(s)?:\/\/">
<label for="tvu-lockdown-expired-url"><?php echo __( 'Enter URL or search term', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
<div class="tvu-white-borderless-box pt-15">
<p class="tvu-bold-text-important m-0"><?php echo __( 'Promotion pages', 'thrive-ult' ) ?></p>
<p class="tvu-tiny-gray-text mt-5"><?php echo __( 'These are the pages that are only available during the campaign', 'thrive-ult' ) ?></p>
<# if(model.get('type') == ThriveUlt.util.campaignType.evergreen) { #>
<div class="tvd-row tvd-no-mb">
<div class="tvd-row tvd-collapse tvd-no-mb">
<div class="tvd-col tvd-s12" style="width: 30%">
<div class="tvd-input-field">
<select id="tvu-autoresponder-type">
<option disabled selected value="0"><?php echo __( 'Select Email Service', 'thrive-ult' ) ?></option>
<?php
$connected_apis = Thrive_List_Manager::get_available_apis(
false,
[
'include_types' => [ 'autoresponder', 'integrations' ],
'include_3rd_party_apis' => true,
]
);
?>
<?php foreach ( $connected_apis as $key => $api ) : ?>
<?php $connection = \Thrive_Dash_List_Manager::connection_instance( $key ); ?>
<option data-tag="<?php echo $connection->get_email_merge_tag(); ?>"
value="<?php echo $key ?>"><?php echo $connection->get_title() ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-autoresponder-type tvu-tiny-blue-text"><?php echo __( 'Select Email Service', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
</div>
<# } #>
<div>
<p class="tvu-tiny-blue-text mb-10"><?php echo __( 'URL or search item', 'thrive-ult' ) ?></p>
</div>
<div class="control-grid">
<div class="tve-ult-promotion-wrapper"></div>
<!-- Lockdown box-->
<div class="tvu-url-to-copy-wrapper"></div>
</div>
<div class="pb-10">
<a href="javascript:void(0)" class="tve_ult_add_promotion_field"><span>+</span><?php echo __( 'Add new promotion page', 'thrive-ult' ) ?></a>
</div>
</div>
</div>
</div>
<!--Unchanged-->
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( 'Cancel', 'thrive-ult' ) ?>
</a>
</div>
<div>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvu-save-lockdown-settings tvd-modal-submit">
<?php echo __( 'Save', 'thrive-ult' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,26 @@
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Countdown Design Shortcode', 'thrive-ult' ) ?></h3>
<p><?php echo __( 'Below you have the shortcode for the design created. Copy the code and insert it into any page or post.', 'thrive-ult' ) ?></p>
<div class="tvd-copy-row tvd-row tvd-collapse tvd-no-mb">
<div class="tvd-col tvd-s12 tvd-m9">
<div class="tvd-input-field">
<input id="tu-design-shortcode" readonly="readonly" class="tvd-no-focus tvu-email-link" type="text" value="<#= model.getShortcode() #>">
</div>
</div>
<div class="tvd-col tvd-s12 tvd-m3">
<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>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvd-modal-close">
<?php echo __( 'Done', 'thrive-ult' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<div>
<div class="tvd-center-align tvd-card tvd-white tvd-pointer" tabindex="<#=index#>">
<img src="<#= item.get('image') #>" alt="" class="tvu-new-campaign-tpl"
data-id="<#= item.get('id') #>">
</div>
<p class="tvd-center-align">
<#= item.get('name') #>
</p>
</div>

View File

@@ -0,0 +1,48 @@
<div class="tvu-modal-step">
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Create campaign from scratch or customize a template', 'thrive-ult' ) ?></h3>
<p><?php echo __( 'Choose a template', 'thrive-ult' ) ?></p>
<div class="tvu-new-campaign-templates control-grid"></div>
<div class="tvu-new-campaign-description"></div>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( 'Cancel', 'thrive-ult' ) ?>
</a>
</div>
<div>
<a href="javascript:void(0)"
class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-right tvu-modal-next-step">
<?php echo __( 'Continue', 'thrive-ult' ) ?>
</a>
</div>
</div>
</div>
<div class="tvu-modal-step">
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Name your campaign', 'thrive-ult' ) ?></h3>
<p><?php echo __( 'Enter a name for your campaign. This is for internal use only - your website visitors will not see this name.', 'thrive-ult' ) ?></p>
<div class="tvd-input-field">
<input id="tvu-new-campaign-name" type="text" name="new-campaign-name" data-bind="post_title">
<label for="tvu-new-campaign-name"
data-error="<?php echo __( 'Campaign name is required', 'thrive-ult' ) ?>"><?php echo __( 'Campaign name', 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-modal-footer control-grid">
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvu-modal-prev-step">
<?php echo __( 'Back', 'thrive-ult' ) ?>
</a>
<a href="javascript:void(0)"
class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-right tvd-modal-submit">
<?php echo __( 'Continue', 'thrive-ult' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,135 @@
<div class="tvu-modal-step">
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( "Conversion Events Settings", 'thrive-ult' ) ?></h3>
<p><?php echo __( "Step 1: Set your Trigger", 'thrive-ult' ) ?></p>
<div id="tvu-conversion-options" class="tvd-row tvd-collapse">
<div class="tvd-col tvd-m6">
<div class="tvd-input-field tvu-no-margin-select">
<select name="" id="tvu-select-campaign-trigger" class="tvu-campaign-trigger" data-field="trigger">
<option disabled selected value="0"><?php echo __( 'Choose Trigger', 'thrive-ult' ) ?></option>
<?php foreach ( TU_Campaign_Event::get_triggers() as $key => $details ) : ?>
<option data-icon="<?php echo $key ?>" <#= model.get('trigger_options').trigger && model.get('trigger_options').trigger === '<?php echo $key ?>' ? 'selected' : '' #> value="<?php echo $key ?>" class="tvu-<?php echo $key ?>"><?php echo $details['title'] ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-select-campaign-trigger"><?php echo __( 'Trigger', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
<div class="tvd-v-spacer"></div>
<div id="tvu-conversion-triggers"></div>
</div>
<div class="tvd-modal-footer control-grid">
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( "Cancel", 'thrive-ult' ) ?>
</a>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvu-continue-events">
<?php echo __( "Continue", 'thrive-ult' ) ?>
</a>
</div>
</div>
<div class="tvu-modal-step">
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Conversion Events Settings', 'thrive-ult' ) ?></h3>
<div class="tvd-v-spacer vs-2"></div>
<div id="tvu-trigger-description" class="tvu-trigger-description tvd-row tvd-collapse"></div>
<div class="tvd-v-spacer"></div>
<p class="tvd-no-margin"><?php echo __( "Step 2: Set the action for the trigger, to be performed", 'thrive-ult' ) ?></p>
<div class="tvd-v-spacer"></div>
<div id="tvu-conversion-options" class="tvd-row tvd-collapse">
<div class="tvd-col tvd-m6">
<div class="tvd-input-field tvu-no-margin-select">
<select name="" id="tvu-select-campaign-event" class="tvu-campaign-event" data-field="action_event">
<option disabled selected value="0"><?php echo __( 'Choose action', 'thrive-ult' ) ?></option>
<?php foreach ( TU_Campaign_Event::get_types() as $key => $details ) : ?>
<option <#= model.get('trigger_options').event && model.get('trigger_options').event === '<?php echo $key ?>' ? 'selected' : '' #> value="<?php echo $key ?>" class="tvu-<?php echo $key ?>"><?php echo $details['title'] ?></option>
<?php endforeach; ?>
</select>
<label for="tvu-select-campaign-event"><?php echo __( 'Choose action', 'thrive-ult' ) ?></label>
</div>
</div>
</div>
<div id="tvu-conversion-events"></div>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvu-modal-prev-step">
<?php echo __( "Back", 'thrive-ult' ) ?>
</a>
</div>
<div>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvu-save-new-conversion-event tvd-modal-submit">
<?php echo __( "Save", 'thrive-ult' ) ?>
</a>
</div>
</div>
</div>
<div class="tvu-modal-step">
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Add new Evergreen Campaign', 'thrive-ult' ) ?></h3>
<p><?php echo __( 'Please fill in the fields for the new campaign', 'thrive-ult' ) ?></p>
<div class="tvd-input-field">
<input id="tvu-new-campaign-name" type="text" name="new-campaign-name" data-field="post_title" data-bind="post_title">
<label for="tvu-new-campaign-name"><?php echo __( "Campaign name", 'thrive-ult' ) ?></label>
</div>
<p><?php echo __( 'Tell us how long you would like the evergreen campaign to last for, for each user', 'thrive-ult' ); ?></p>
<div class="control-grid">
<div class="tvd-col tvd-m11">
<div class="tvd-input-field">
<input id="tvu-new-campaign-days" type="text" value="" data-field="duration">
<label for="tvu-new-campaign-days"><?php echo __( "Duration", 'thrive-ult' ) ?></label>
</div>
</div>
<div class="tvd-col tvd-m1">
<p>days</p>
</div>
</div>
<div class="control-grid">
<div class="w-40">
<p class="tvd-no-margin"><?php echo __( 'Repeat this campaign?', 'thrive-ult' ) ?></p>
</div>
<div class="w-30">
<div class="tvd-switch">
<label>
<?php echo __( 'NO', 'thrive-ult' ) ?>
<input class="tvu-new-campaign-repeat-switch" type="checkbox">
<span id="tvu-new-campaign-repeat-campaign-switch" class="tvd-lever"></span>
<?php echo __( 'YES', 'thrive-ult' ) ?>
</label>
</div>
</div>
</div>
<div class="tvu-gray-box tvu-repeat-wrapper tvd-margin-bottom" 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-new-campaign-expire" class="tvd-no-margin" maxlength="5" type="text" value="" data-field="end">
</div>
<p class="tvd-inline-block tvd-vertical-align tvd-no-margin">
<?php echo __( 'days.', 'thrive-ult' ) ?>
</p>
</div>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvu-modal-prev-step">
<?php echo __( "Back", 'thrive-ult' ) ?>
</a>
</div>
<div>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvu-save-new-evergreen-campaign tvd-modal-submit">
<?php echo __( "Add Campaign", 'thrive-ult' ) ?>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,41 @@
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Choose a Design Type', 'thrive-ult' ) ?></h3>
<div class="control-grid top" id="tvu-design-types">
<?php $index = 1; ?>
<?php foreach ( TVE_Ult_Const::design_types_details() as $type => $prop_type ) : ?>
<?php $index ++; ?>
<div class="tvu-campaign-selector <?php echo $type ?>" data-type="<?php echo $type ?>"
tabindex="<?php echo $index ?>"
style="<#= model.has_design_type('<?php echo $type ?>') ? 'display: none;' : '' #>">
<div class="tvd-card tvd-white tvd-pointer tvd-center-align">
<img width="200" src="<?php echo TVE_Ult_Const::plugin_url( 'admin/img/' . $prop_type['image'] ); ?>"/>
</div>
<p class="tvd-center-align"><?php echo $prop_type['name'] ?> - <?php echo $prop_type['description'] ?> </p>
</div>
<?php endforeach; ?>
</div>
<div class="control-grid mt-15" id="tu-top-ribbon-position" style="display: none">
<div><?php echo __( 'Choose how the top ribbon is displayed', 'thrive-ult' ); ?></div>
<div class="tu-display-switch mt-15">
<div data-value="over_content" class="tu-display-option"><?php echo __( 'Over content', 'thrive-ult' ); ?></div>
<div data-value="push_content" class="tu-display-option active"><?php echo __( 'Push content', 'thrive-ult' ); ?></div>
</div>
</div>
<div class="control-grid" id="tu-design-name-wrapper" style="display: none;">
<div class="tvd-input-field">
<input id="tu-design-name" type="text" class="tvd-validate" data-bind="post_title" value="Shortcode">
<label for="tu-design-name""><?php echo __( 'Name' ) ?></label>
</div>
</div>
</div>
<div class="tvd-modal-footer control-grid">
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( 'Cancel', 'thrive-ult' ) ?>
</a>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvu-save-new-design tvd-modal-submit">
<?php echo __( 'Continue', 'thrive-ult' ) ?>
</a>
</div>

View File

@@ -0,0 +1,26 @@
<div class="tvd-modal-content top-ribbon-modal">
<h3 class="tvd-modal-title"><?php echo __( 'Top Ribbon settings', 'thrive-ult' ) ?></h3>
<div class="control-grid mt-25" id="tu-top-ribbon-position">
<div><?php echo __( 'Choose how the top ribbon is displayed', 'thrive-ult' ); ?></div>
<div class="tu-display-switch mt-15">
<div data-value="over_content" class="tu-display-option"><?php echo __( 'Over content', 'thrive-ult' ); ?></div>
<div data-value="push_content" class="tu-display-option active"><?php echo __( 'Push content', 'thrive-ult' ); ?></div>
</div>
</div>
</div>
<div class="tvd-modal-footer control-grid">
<div>
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( 'Cancel', 'thrive-ult' ) ?>
</a>
</div>
<div>
<a href="javascript:void(0)"
class="tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-green tvd-right tvd-modal-submit">
<?php echo __( 'Save', 'thrive-ult' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,2 @@
<input id="tvu-edit-text" data-bind="value" type="text" value="<#= item.get('value') #>">
<label for="tvu-edit-text" <# if ( item.get( 'required' ) ) { #> data-error="<?php echo sprintf( __( '%s is required', 'thrive-ult' ), "<#= item.get( 'label' ) #>" ) ?>" <# } #> class="tvd-active"><#= ( item.get('show_label') ? item.get('label') : '&nbsp;' ) #></label>

View File

@@ -0,0 +1,20 @@
<ul class="tvd-right">
<li>
<a href="#" class="dropdown-button" data-activates="dropdown1">
<i class="tvd-icon-settings" style="font-size: 12px;"></i>
<?php echo __( 'Settings', 'thrive-ult') ?>
</a>
</li>
</ul>
<ul id="dropdown1" class="dropdown-content">
<li>
<a id="tu-purge-cache" href="#purge-cache" class="tvd-tooltipped"
data-tooltip="<?php echo __( 'Clear the cache for impressions and conversions displayed for each campaign in Ultimatum Dashboard', 'thrive-ult') ?>">
<i class="tvd-icon-loop2" style="font-size: 12px;"></i>
<?php echo __( 'Purge Cache', 'thrive-ult') ?>
</a>
</li>
<li><a id="date_time_settings" href="#"><?php echo __( 'Date & Time Settings', 'thrive-ult') ?></a></li>
</ul>