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,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>