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,37 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\Integrations\Automator;
use Thrive\Automator\Items\App;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Architect_App extends App {
public static function get_id() {
return 'architect';
}
public static function get_name() {
return 'Architect';
}
public static function get_description() {
return 'Architect related items';
}
public static function get_logo() {
return 'tap-architect-logo';
}
public static function has_access() {
return true;
}
}

View File

@@ -0,0 +1,146 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\Integrations\Automator;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class Main
*
* @package TCB\Integrations\Automator
*/
class Main {
/**
* Add WooCommerce support
* process trigger callback
*
*/
public static function init() {
if ( defined( 'THRIVE_AUTOMATOR_RUNNING' )
&& ( ( defined( 'TVE_DEBUG' ) && TVE_DEBUG )
|| ( defined( 'TAP_VERSION' ) && version_compare( TAP_VERSION, '1.0', '>=' ) ) ) ) {
static::add_hooks();
}
}
/**
* @param string $subpath
*
* @return string
*/
public static function get_integration_path( $subpath = '' ) {
return TVE_TCB_ROOT_PATH . 'inc/automator/' . $subpath;
}
public static function add_hooks() {
static::load_apps();
static::load_data_objects();
static::load_fields();
static::load_action_fields();
static::load_actions();
static::load_trigger_fields();
static::load_triggers();
add_action( 'tap_output_extra_svg', [ 'TCB\Integrations\Automator\Main', 'display_icons' ] );
add_filter( 'tvd_automator_api_data_sets', [ 'TCB\Integrations\Automator\Main', 'dashboard_sets' ], 1, 1 );
add_filter( 'tve_automator_should_use_form', [ 'TCB\Integrations\Automator\Main', 'filter_lgs' ], 10, 4 );
}
public static function load_apps() {
foreach ( static::load_files( 'apps' ) as $app ) {
\thrive_automator_register_app( new $app() );
}
}
public static function load_triggers() {
foreach ( static::load_files( 'triggers' ) as $trigger ) {
\thrive_automator_register_trigger( new $trigger() );
}
}
public static function load_actions() {
foreach ( static::load_files( 'actions' ) as $action ) {
\thrive_automator_register_action( new $action() );
}
}
public static function load_action_fields() {
foreach ( static::load_files( 'action-fields' ) as $field ) {
\thrive_automator_register_action_field( new $field() );
}
}
public static function load_trigger_fields() {
foreach ( static::load_files( 'trigger-fields' ) as $field ) {
\thrive_automator_register_trigger_field( new $field() );
}
}
public static function load_fields() {
foreach ( static::load_files( 'fields' ) as $field ) {
\thrive_automator_register_data_field( new $field() );
}
}
public static function load_data_objects() {
foreach ( static::load_files( 'data-objects' ) as $data_object ) {
\thrive_automator_register_data_object( new $data_object() );
}
}
public static function display_icons() {
include_once static::get_integration_path( 'icons.svg' );
}
public static function load_files( $type ) {
$integration_path = static::get_integration_path( $type );
$local_classes = [];
foreach ( glob( $integration_path . '/*.php' ) as $file ) {
require_once $file;
$class = 'TCB\Integrations\Automator\\' . static::get_class_name_from_filename( $file );
if ( class_exists( $class ) ) {
$local_classes[] = $class;
}
}
return $local_classes;
}
public static function get_class_name_from_filename( $filename ) {
$name = str_replace( 'class-', '', basename( $filename, '.php' ) );
return str_replace( '-', '_', ucwords( $name, '-' ) );
}
/**
* Enroll form_data as data that can be used in TD for Automator actions
*
* @param $sets
*
* @return mixed
*/
public static function dashboard_sets( $sets ) {
$sets[] = 'form_data';
return $sets;
}
public static function filter_lgs( $allow, $lg_post, $trigger_id, $trigger_data ) {
$form_type = $lg_post->form_type;
if ( $trigger_id === Register_Form_Submit::get_id() && ( empty( $form_type ) || $form_type !== 'registration_form' ) ) {
$allow = false;
}
return $allow;
}
}

View File

@@ -0,0 +1,93 @@
<?php
namespace TCB\Integrations\Automator;
use TCB\inc\helpers\FormSettings;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class Form_Consent_Field
*/
class Form_Identifier_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* Field name
*/
public static function get_name() {
return 'Specific forms';
}
/**
* Field description
*/
public static function get_description() {
return 'Select forms that contain the identifier';
}
/**
* Field input placeholder
*/
public static function get_placeholder() {
return 'Filter by form name identifier';
}
public static function get_id() {
return 'form_identifier';
}
public static function get_supported_filters() {
return [ 'autocomplete' ];
}
/**
* For multiple option inputs, name of the callback function called through ajax to get the options
*/
public static function get_options_callback() {
$lg_ids = new \WP_Query( [
'post_type' => FormSettings::POST_TYPE,
'fields' => 'id=>parent',
'posts_per_page' => '-1',
'post_status' => 'draft',
] );
$lgs = [];
foreach ( $lg_ids->posts as $lg ) {
$lg_post = FormSettings::get_one( $lg->ID );
if ( ! empty( $lg_post ) ) {
$post = get_post( $lg->post_parent );
if ( ! empty( $post ) && $post->post_status !== 'trash' ) {
$saved_identifier = $lg_post->form_identifier;
if ( empty( $saved_identifier ) && ! empty( $lg->post_parent ) ) {
$form_identifier = ( empty( $post->post_name ) ? '' : $post->post_name ) . '-form-' . substr( uniqid( '', true ), - 6, 6 );
$config = $lg_post->get_config( false );
$config['form_identifier'] = $form_identifier;
$post_title = 'Form settings' . ( $lg->post_parent ? ' for content ' . $lg->post_parent : '' );
$lg_post->set_config( $config )
->save( $post_title, [ 'post_parent' => $lg->post_parent ] );
}
$form_id = $lg_post->form_identifier;
$lgs[ $form_id ] = [
'label' => $form_id,
'id' => $form_id,
];
}
}
}
return $lgs;
}
public static function is_ajax_field() {
return true;
}
public static function get_dummy_value() {
return 'test-form-23131231';
}
}

View File

@@ -0,0 +1,85 @@
<?php
namespace TCB\Integrations\Automator;
use TCB\inc\helpers\FormSettings;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class Form_Post_Field
*/
class Form_Post_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* Field name
*/
public static function get_name() {
return 'Page or post containing form';
}
/**
* Field description
*/
public static function get_description() {
return 'Select pages or posts on your website that contain forms';
}
/**
* Field input placeholder
*/
public static function get_placeholder() {
return 'Filter by post';
}
/**
* For multiple option inputs, name of the callback function called through ajax to get the options
*/
public static function get_options_callback() {
$lg_posts = new \WP_Query( [
'post_type' => FormSettings::POST_TYPE,
'fields' => 'id=>parent',
'posts_per_page' => '-1',
'post_status' => 'draft',
] );
$posts = [];
/**
* Prevent showing LG from some post types
*/
$banned_post_types = apply_filters( 'tve_aut_banned_post_types', [] );
foreach ( $lg_posts->posts as $lg_post ) {
$parent_post = get_post( $lg_post->post_parent );
if ( ! empty( $parent_post ) && ! in_array( $parent_post->post_type, $banned_post_types, true ) ) {
$posts[ $parent_post->ID ] = [
'label' => $parent_post->post_title,
'id' => $parent_post->ID,
];
}
}
return $posts;
}
public static function get_id() {
return 'post_id';
}
public static function get_supported_filters() {
return [ 'autocomplete' ];
}
public static function is_ajax_field() {
return true;
}
public static function get_dummy_value() {
return '10';
}
public static function get_field_value_type() {
return static::TYPE_STRING;
}
}

View File

@@ -0,0 +1,21 @@
<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1"
xmlns="http://www.w3.org/2000/svg" id="tve-automator-icons">
<defs>
<symbol id="tap-architect-logo" viewBox="0 0 43 44">
<g fill="none" fill-rule="evenodd">
<g>
<g>
<g>
<g>
<path fill="#434343" fill-rule="nonzero" d="M42.82 41.754h-.485c-5.318 0-10.06-3.348-11.84-8.36l-7.19-20.217-4.313 12.11c-1.165.204-2.232.42-2.876.575-1.515.317-3.508.762-4.987 1.349-.862.35-1.725.699-2.548 1.09L18.627.01h9.358L42.82 41.755z" transform="translate(-692 -149) translate(599 109) translate(93 40)"/>
<path fill="#58A245"
d="M24.861 27.289c-.319-.006-.635.06-.926.192-.371.155-.713.372-1.012.642l-.69.67c-.042.043-.08.09-.112.14-1.286 1.617-1.573 1.876-2.588 3.926-.47.944-1 1.857-1.588 2.732-.4.601-.762 1.208-1.216 1.769-.044.057-.075.083-.121.135-.295.35-.62.676-.97.972-.236.21-.488.402-.753.575-.218.144-.431.288-.676.429l-.36.195c-.057.04-.116.076-.177.11l-.176.086c-.069.034-.132.051-.207.086-1.557.734-3.224 1.207-4.935 1.398l-1.003.123c-.288.043-1.09.084-1.82.095-.453.018-.907.007-1.358-.031l.112-.288c.236-.54.5-1.069.79-1.582.053-.08.076-.152.133-.241l.575-.987 1.47-2.053 1.337-1.406.095-.104c.057-.052.066-.046.118-.089l.31-.273.118-.084c.08-.063.118-.1.205-.166l1.42-.99c.478-.319.99-.61 1.478-.897l1.542-.843c.575-.287 1.576-.82 2.122-1.058l1.608-.753c-.259.054-.511.134-.754.238l-.742.253-1.463.53c-.717.247-1.424.575-2.117.862l-1.349.61c-.612.274-1.21.58-1.791.915-.576.319-1.11.695-1.671 1.032l-1.864 1.326c-.043.034-.089.066-.135.097l-1.035.903c-.314.328-.685.642-.978.99-.035.05-.073.097-.115.14-.267.29-.517.596-.748.915-.346.474-.669.964-.966 1.47l-.492.937c-.195.394-.992 2.3-1.03 2.816H.3C.174 43.2.078 42.642.012 42.079v-.613-.063c.051-.4.04-.664.123-1.17.234-1.431.772-2.796 1.579-4l.797-1.15c.413-.525.863-1.02 1.345-1.482.248-.198.472-.5.74-.702.115-.089.23-.212.359-.31.13-.098.23-.199.365-.288l.762-.575c.781-.57 1.608-1.076 2.47-1.513.92-.463 1.835-.845 2.793-1.228 1.375-.496 2.788-.88 4.225-1.15 1.357-.288 4.794-.955 6.45-.98h.354c.851-.02 2.174-.003 2.487.434z"
transform="translate(-692 -149) translate(599 109) translate(93 40)"/>
</g>
</g>
</g>
</g>
</g>
</symbol>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -0,0 +1,103 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\Integrations\Automator;
use TCB\inc\helpers\FormSettings;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Form_Identifier extends \Thrive\Automator\Items\Trigger_Field {
public static function get_name() {
return 'Select specific form identifier';
}
public static function get_description() {
return 'Target a specific form on your website. Form identifiers are added under advanced options when editing a form. If your form identifier is not listed, please re-save the page containing the form. Custom form fields are only available when a specific form is selected.';
}
public static function get_placeholder() {
return 'All forms (custom fields will not be available)';
}
public static function get_id() {
return 'form_identifier';
}
public static function get_type() {
return 'select';
}
/**
* For multiple option inputs, name of the callback function called through ajax to get the options
*/
public static function get_options_callback( $trigger_id, $trigger_data ) {
$lg_ids = new \WP_Query( [
'post_type' => FormSettings::POST_TYPE,
'fields' => 'id=>parent',
'posts_per_page' => '-1',
'post_status' => 'draft',
] );
$lgs = [
'none' => [
'label' => 'All forms (custom fields will not be available)',
'id' => 'none',
],
];
foreach ( $lg_ids->posts as $lg ) {
$lg_post = FormSettings::get_one( $lg->ID );
if ( ! apply_filters( 'tve_automator_should_use_form', true, $lg_post, $trigger_id, $trigger_data ) ) {
continue;
}
if ( $lg_post !== null ) {
// For symbol lead generation form, there is no post_parent
$post_name = '';
if ( ! empty( $lg->post_parent ) ) {
$post = get_post( $lg->post_parent );
if ( ! empty( $post ) && $post->post_status !== 'trash' ) {
$post_name = empty( $post->post_name ) ? '' : $post->post_name;
}
}
$form_id = $lg_post->form_identifier;
$parent = ' for content ' . ( empty( $lg->post_parent ) ? 'of symbol ' . $lg->ID : $lg->post_parent );
if ( empty( $form_id ) ) {
$form_identifier = $post_name . '-form-' . substr( uniqid( '', true ), - 6, 6 );
$config = $lg_post->get_config( false );
$config['form_identifier'] = $form_identifier;
$post_title = 'Form settings' . $parent;
$lg_post->set_config( $config )
->save( $post_title, [ 'post_parent' => $lg->post_parent ] );
}
$inputs = $lg_post->inputs;
if ( ! empty( $inputs ) ) {
$lgs[ $lg->ID ] = [
'label' => $form_id,
'id' => $lg->ID,
];
}
}
}
return $lgs;
}
public static function is_ajax_field() {
return true;
}
public static function get_dummy_value() {
return 'test-form-23131231';
}
}

View File

@@ -0,0 +1,98 @@
<?php
namespace TCB\Integrations\Automator;
use Thrive\Automator\Items\Data_Object;
use Thrive\Automator\Utils;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Register_Form_Submit extends \Thrive\Automator\Items\Trigger {
public static function get_id() {
return 'thrive/registerform';
}
public static function get_wp_hook() {
return 'thrive_register_form_through_wordpress_user';
}
public function get_automation_wp_hook() {
return empty( $this->data['form_identifier']['value'] ) ? static::get_wp_hook() : Utils::create_dynamic_trigger( static::get_wp_hook(), strtolower( trim( preg_replace( '/[^A-Za-z0-9-]+/', '-', $this->data['form_identifier']['value'] ) ) ) );
}
public static function get_provided_data_objects() {
return [ 'user_data', 'form_data' ];
}
public static function get_hook_params_number() {
return 2;
}
public static function get_app_id() {
return Architect_App::get_id();
}
public static function get_name() {
return 'Registration form submitted';
}
public static function get_description() {
return 'Triggers only when a new user is created after submitting a registration form. This trigger does not fire if the user account already existed.';
}
public static function get_image() {
return 'tap-architect-logo';
}
public static function get_required_trigger_fields() {
return [ 'form_identifier' ];
}
/**
* Override default method so we manually init user data if we can match the form's email with an existing user
*
* @param array $params
*
* @return array
* @see Automation::start()
*/
public function process_params( $params = [] ) {
$data_objects = [];
$aut_id = $this->get_automation_id();
if ( ! empty( $params ) ) {
$data_object_classes = Data_Object::get();
if ( empty( $data_object_classes['user_data'] ) ) {
$data_objects['user_data'] = $params[0];
} else {
$data_objects['user_data'] = new $data_object_classes['user_data']( $params[0], $aut_id );
}
if ( ! empty( $params[1] ) ) {
$form_data = $params[1];
foreach ( $form_data as $key => $param ) {
if ( is_array( $param ) ) {
$form_data[ $key ] = implode( ',', $param );
}
}
if ( empty( $data_object_classes['form_data'] ) ) {
/* if we don't have a class that parses the current param, we just leave the value as it is */
$data_objects['form_data'] = $form_data;
} else {
/* when a data object is available for the current parameter key, we create an instance that will handle the data */
$data_objects['form_data'] = new $data_object_classes['form_data']( $form_data, $aut_id );
}
}
}
return $data_objects;
}
public static function sync_trigger_data( $trigger_data ) {
return tve_sync_form_data( $trigger_data );
}
}

View File

@@ -0,0 +1,121 @@
<?php
namespace TCB\Integrations\Automator;
use Thrive\Automator\Items\Data_Object;
use Thrive\Automator\Utils;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Submit_Form extends \Thrive\Automator\Items\Trigger {
public static function get_id() {
return 'thrive/submitform';
}
public static function get_wp_hook() {
return 'tcb_api_form_submit';
}
public function get_automation_wp_hook() {
return empty( $this->data['form_identifier']['value'] ) ? static::get_wp_hook() : Utils::create_dynamic_trigger( static::get_wp_hook(), strtolower( trim( preg_replace( '/[^A-Za-z0-9-]+/', '-', $this->data['form_identifier']['value'] ) ) ) );
}
public static function get_provided_data_objects() {
return [ 'form_data', 'user_data', 'email_data' ];
}
public static function get_hook_params_number() {
return 1;
}
public static function get_app_id() {
return Architect_App::get_id();
}
public static function get_name() {
return 'Form submit';
}
public static function get_description() {
return 'Triggers when a visitor submits a form built with the Thrive Visual Editor';
}
public static function get_image() {
return 'tap-architect-logo';
}
/**
* Override default method so we manually init user data if we can match the form's email with an existing user
*
* @param array $params
*
* @return array
* @see Automation::start()
*/
public function process_params( $params = [] ) {
$data_objects = [];
$aut_id = 0;
if ( method_exists( Submit_Form::class, 'get_automation_id' ) ) {
$aut_id = $this->get_automation_id();
}
if ( ! empty( $params ) ) {
$form_data = $params[0];
foreach ( $params[0] as $key => $param ) {
if ( is_array( $param ) ) {
$form_data[ $key ] = implode( ',', $param );
}
}
/* get all registered data objects and see which ones we use for this trigger */
$data_object_classes = Data_Object::get();
if ( empty( $data_object_classes['form_data'] ) ) {
/* if we don't have a class that parses the current param, we just leave the value as it is */
$data_objects['form_data'] = $form_data;
} else {
/* when a data object is available for the current parameter key, we create an instance that will handle the data */
$data_objects['form_data'] = new $data_object_classes['form_data']( $form_data, $aut_id );
}
$user_data = null;
/**
* try to match email with existing user
*/
if ( ! empty( $form_data['email'] ) ) {
$matched_user = get_user_by( 'email', $form_data['email'] );
if ( ! empty( $matched_user ) ) {
$user_data = tvd_get_current_user_details( $matched_user->ID );
}
if ( empty( $data_object_classes['email_data'] ) ) {
$data_objects['email_data'] = [ 'email' => $form_data['email'] ];
} else {
$data_objects['email_data'] = new $data_object_classes['email_data']( $form_data['email'], $aut_id );
}
}
if ( ! empty( $user_data ) ) {
if ( empty( $data_object_classes['user_data'] ) ) {
$data_objects['user_data'] = $user_data;
} else {
$data_objects['user_data'] = new $data_object_classes['user_data']( $user_data, $aut_id );
}
}
}
return $data_objects;
}
public static function get_required_trigger_fields() {
return [ 'form_identifier' ];
}
public static function sync_trigger_data( $trigger_data ) {
return tve_sync_form_data( $trigger_data );
}
}

View File

@@ -0,0 +1,4 @@
<div class="click no-blur" data-fn-click="domAddBlock">
<div><?php tcb_icon( 'add', false, 'editor' ); ?></div>
<span><?php echo __( 'BLOCK', 'thrive-cb' ) ?></span>
</div>

View File

@@ -0,0 +1,5 @@
<div class="tcb-add-block-below no-outline">
<div>
<span><?php tcb_icon( 'add', false, 'editor' ); ?></span>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div class="tcb-add-tab-container-wrap click no-blur" data-fn-click="addTab">
<?php tcb_icon( 'add', false, 'editor' ); ?>
</div>

View File

@@ -0,0 +1,33 @@
<#if(preview_none){#>
<div class="no-animation tcb-text-center"><?php echo __( 'None', 'thrive-cb' ) ?></div>
<#} else {#>
<div class="animation-item tcb-relative">
<div class="tcb-left">
<# if ( has_preview ) { #>
<i title="<?php esc_attr_e( 'Preview', 'thrive-db' ) ?>" class="click anim-preview" data-fn="preview" data-index="<#=i#>">
<?php tcb_icon( 'eye-regular' ) ?>
</i>
<# } else { #>
<span title="<?php esc_html_e( 'To preview this, use the Preview tool (it will open the page in a new tab)', 'thrive-cb' ) ?>" style="color: #6d7a86;">
<?php tcb_icon( 'eye-slash-regular2' ) ?>
</span>
<# } #>
</div>
<span class="tcb-truncate t-80 pl-20">
<#=trigger_text#>
</span>
<span class="col-sep tcb-absolute"></span>
<span class="col-sep tcb-absolute"></span>
<span class="tcb-icon-2w anim-arrow"><?php tcb_icon( 'long-arrow-right-light' ) ?></span>
<span class="tcb-truncate pl-5"><#=action_text#></span>
<div class="tcb-right">
<a href="javascript:void(0)" data-side="left" data-tooltip="<?php esc_attr_e( 'Edit', 'thrive-db' ) ?>" class="click" data-fn="edit" data-index="<#=i#>">
<?php tcb_icon( 'pen-light' ) ?>
</a>
<a href="javascript:void(0)" data-side="right" data-tooltip="<?php esc_attr_e( 'Remove', 'thrive-db' ) ?>" class="click" data-fn="remove" data-index="<#=i#>">
<?php tcb_icon( 'trash-light' ) ?>
</a>
</div>
</div>
</div>
<#}#>

View File

@@ -0,0 +1 @@
<li class="click" data-fn="click" data-index="<#= index #>"><#= index + 1#>. <#= item.get('title') #></li>

View File

@@ -0,0 +1,26 @@
<?php $is_ttb_active = tve_dash_is_ttb_active() ?>
<div class="<?php echo $is_ttb_active ? '' : 'inherit-typography' ?>" <?php echo $is_ttb_active ? '' : 'data-paneltlt-hover data-fn="openTooltip"' ?>>
<div class="tve-inherit-typography <?php echo $is_ttb_active ? '' : 'tcb-disabled' ?>"></div>
</div>
<div id="settings" class="tcb-relative <?php echo $is_ttb_active ? 'tcb-hidden' : '' ?>">
<div class="state-lp-settings state settings">
<hr>
<div class="list">
<a href="#" class="click s-setting" data-fn="toggleThemeCss" data-do="disable">
<span class="s-name"><?php echo esc_html__( 'Disable Theme CSS', 'thrive-cb' ); ?></span>
<?php echo tcb_icon( 'toggle-off-regular' ); ?>
</a>
<a href="#" class="click s-setting tcb-disabled" data-fn="toggleThemeCss" data-do="enable">
<span class="s-name"><?php echo esc_html__( 'Enable Theme CSS', 'thrive-cb' ); ?></span>
<?php echo tcb_icon( 'toggle-on-regular' ); ?>
</a>
</div>
</div>
</div>
<?php if ( tcb_editor()->is_landing_page() ) : ?>
<div class="p-texts center-text <?php echo tve_dash_is_ttb_active() ? 'typography-button' : '' ?>" <?php echo tve_dash_is_ttb_active() ? 'data-fn="openTooltip"' : '' ?>>
<button class="style-input lp-typography-button tve-button click " data-fn="f:main.sidebar_extra.settings.landingPageFonts">
<?php echo esc_html__( 'Edit landing page typography', 'thrive-cb' ); ?>
</button>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,4 @@
<div class="tcb-flex flex-dir-column">
<div class="c-s-p-section-title mb-10"><?php echo __( 'Master Template Colors', 'thrive-cb' ); ?></div>
<div class="c-s-p-section-description"><?php echo __( 'Easily customize whole ranges of colors used in the current template', 'thrive-cb' ); ?></div>
</div>

View File

@@ -0,0 +1,4 @@
<div class="tcb-flex space-between mt-10 c-s-p-sep click" data-fn="dom_toggle_other_variables">
<div class="c-s-p-section-title"><?php echo __( 'Other Template Colors', 'thrive-cb' ); ?></div>
<span class="c-s-p-other-icon pr-10"><?php tcb_icon('a_down'); ?></span>
</div>

View File

@@ -0,0 +1,7 @@
<div class="tcb-flex flex-dir-column mt-10">
<div class="tcb-flex space-between tcb-relative">
<select id="c-s-p-palettes-select" class="change" data-fn="dom_change_palette"></select>
<span class="palettes-arrow"><?php tcb_icon('a_down'); ?></span>
<a href="javascript:void(0);" class="palettes-action-btn click" data-fn="domResetActivePalette" data-position="top" data-tooltip="<?php echo __( 'Reset Active Palette', 'thrive-cb' ); ?>"><?php tcb_icon('sync-regular'); ?></a>
</div>
</div>

View File

@@ -0,0 +1,6 @@
<svg class="tcb-icon tcb-icon-central-style-panel tooltip-image-align">
<use xlink:href="#icon-central-style-panel"></use>
</svg>
<p class="tooltip-header tcb-tooltip text-green tooltip-text-align"><?php echo __( 'Quickly Style the General Look of this page.', 'thrive-cb' ); ?></p>
<p class="tooltip-text-typography"><?php echo __( 'With this style editor you can reuse elements and styles, control colors and typography
or inherit them from your active theme.', 'thrive-cb' ); ?></p>

After

Width:  |  Height:  |  Size: 500 B

View File

@@ -0,0 +1,26 @@
<div class="modal-item">
<div class="cloud-template-item<#=item.locked ? ' locked' : ''#>">
<div class="cloud-item <#=item.locked ? '' : ' click'#><#=selected ? ' active' : ''#>" data-id="<#= item.id || 0 #>" data-fn="dom_select" data-name="<#= item.name #>">
<div class="cb-template-wrapper">
<div class="cb-template-name">
<#=item.name #>
<?php tcb_icon( 'check-light' ) ?>
</div>
<div class="cb-template-thumbnail lazy-loading">
<# if ( item.locked ) { #>
<span class="locked-star">
<?php tcb_icon( 'star' ) ?>
</span>
<div class="template-locked-text
<#= (item.thumb_size.h * 281)/item.thumb_size.w < 150 ? 'button-only': '' #>
<#= (item.thumb_size.h * 281)/item.thumb_size.w < 63 ? 'small': '' #>">
<p><?php echo esc_html__( 'Available in the full version of Thrive Architect', 'thrive-cb' ); ?></p>
<a href="https://thrivethemes.com/architect/upgrade/?utm_campaign=tarc-upgrade&utm_medium=tarc-lite&utm_source=ttb-ui&utm_content=tarc-element&utm_term=ttb-customer" title="Thrive Architect" target="_blank"><?php echo esc_html__( 'Upgrade', 'thrive-cb' ); ?></a>
</div>
<# } #>
<img class="tve-lazy-img" src='<?php echo esc_url( tve_editor_css( 'images/loading-spinner.gif' ) ); ?>' data-src="<#= item.thumb #>" data-ratio="<#= parseFloat(parseInt(item.thumb_size ? item.thumb_size.h : 150) / parseInt(item.thumb_size ? item.thumb_size.w : 150)).toFixed(3) #>"/>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,19 @@
<div class="template-item <#=item.locked ? ' locked' : ''#>">
<div class="template-wrapper click<#=selected ? ' active' : ''#>" data-id="<#= item.id #>" data-fn="dom_select">
<div class="template-thumbnail" style="background-image: url('<#= item.thumb #>')">
<# if ( item.locked ) { #>
<span class="locked-star">
<?php tcb_icon( 'star' ) ?>
</span>
<div class="template-locked-text">
<p><?php echo __( 'Available in the full version of Thrive Architect', 'thrive-cb' ); ?></p>
<a href="https://thrivethemes.com/architect/upgrade/?utm_campaign=tarc-upgrade&utm_medium=tarc-lite&utm_source=ttb-ui&utm_content=tarc-element&utm_term=ttb-customer" title="Thrive Architect" target="_blank"><?php echo __( 'Upgrade', 'thrive-cb' ); ?></a>
</div>
<# } #>
</div>
<div class="template-name">
<#= item.name #>
</div>
<div class="selected"></div>
</div>
</div>

View File

@@ -0,0 +1,15 @@
<div class="conditional-display-wrapper">
<div class="current-display"><#= name #></div>
<div class="conditional-display-list" style="display:none"></div>
<div class="tcb-i-wrapper">
<div class="click tcb-i" data-fn="toggleDisplayDropdown"><#= dropdownIcon #></div>
<div class="click tcb-i" data-key="" data-fn="resetDisplay"><#= resetIcon #></div>
<div class="click tcb-i" data-key="" data-fn="toggleVisibility"><#= visibilityIcon #><#= hiddenIcon #></div>
<div class="click tcb-i" data-key="" data-fn="duplicateDisplay"><#= duplicateIcon #></div>
<div class="click tcb-i" data-key="" data-fn="openConditionsModal"><#= openModalIcon #></div>
</div>
</div>
<div class="click tcb-i conditional-display-small" data-fn="toggleSmallOptions"><#= smallOptionsIcon #></div>

View File

@@ -0,0 +1,51 @@
<div class="display-item click mouseenter <#= display.isActive()? 'active':'' #>" data-key="<#= display.getKey() #>" data-fn-click="activateDisplay" data-fn-mouseenter="hoverDisplay">
<?php tcb_icon( 'dots2' ); ?>
<div class="display-name-wrapper">
<span class="display-name" data-key="<#= display.getKey() #>"><#= display.name() #></span>
<# if(!display.isDefault()) { #>
<span class="display-index"><#= display.get( 'order' ) + 1 #>.</span>
<button class="click" data-fn="editDisplayName" data-key="<#= display.getKey() #>" data-side="top" data-tooltip="Edit"><?php tcb_icon( 'pen-light' ); ?></button>
<# } #>
</div>
<div class="display-actions-wrapper">
<# if(!display.isDefault()) { #>
<button class="click" data-fn="resetDisplay" data-key="<#= display.getKey() #>" data-side="top" data-tooltip="Reset"><?php tcb_icon( 'undo-regular' ); ?></button>
<# } #>
<# if(display.isDefault() && hasDisplays) { #>
<button class="click" data-fn="toggleVisibility" data-key="<#= display.getKey() #>" data-side="top" data-tooltip="Visibility">
<# if(display.isVisible()) { #>
<?php tcb_icon( 'eye-light' ); ?>
<# } else { #>
<?php tcb_icon( 'eye-light-slash' ); ?>
<# } #>
</button>
<# } #>
<button class="click" data-fn="duplicateDisplay" data-key="<#= display.getKey() #>" data-side="top" data-tooltip="Duplicate"><?php tcb_icon( 'duplicate' ); ?></button>
<# if(!display.isDefault()) { #>
<button class="click<#= display.hasConditions() ? '':' conditions-warning'#>"
data-fn="openConditionsModal"
data-key="<#= display.getKey() #>"
data-side="top" data-tooltip-config='{"warning":<#= display.hasConditions() ? 0:1#>}' data-tooltip="<#= display.hasConditions() ? 'Conditions':'Display conditions are not set'#>">
<?php tcb_icon( 'control-switch' ); ?>
</button>
<# } #>
<# if(!display.isDefault() && !display.isActive()) { #>
<button class="click additional-actions" data-fn="openActionsTooltip"><?php tcb_icon( 'three-dots' ); ?></button>
<# } #>
<div class="hidden additional-actions-tooltip">
<div class="click additional-action" data-fn="removeDisplay" data-key="<#= display.getKey() #>">
<?php tcb_icon( 'trash-light' );
echo esc_html__( 'Delete', 'thrive-cb' ); ?>
</div>
</div>
</div>
<# if(!display.isDefault() && !display.hasConditions()) { #>
<span class="no-conditions"><?php tcb_icon( 'warning' ); ?></span>
<# } #>
</div>

View File

@@ -0,0 +1 @@
<select id="tcb-condition-display-autocomplete"></select>

View File

@@ -0,0 +1,4 @@
<li class="select2-selection__choice">
<span class="select2-selection__choice__remove" role="presentation" data-value="<#= data.value #>">×</span>
<span class="select2-title"><#= data.label #></span>
</li>

View File

@@ -0,0 +1,4 @@
<select class="change" data-fn="selectChanged">
<option value="1"><?php echo esc_html__( 'True', 'thrive-cb' ) ?></option>
<option value="0"><?php echo esc_html__( 'False', 'thrive-cb' ) ?></option>
</select>

View File

@@ -0,0 +1 @@
<div class="tcb-condition-checkbox-list"></div>

View File

@@ -0,0 +1,4 @@
<div class="tcb-condition-date-time-container">
<div class="tcb-condition-date-time"></div>
<div class="tcb-condition-date-picker"></div>
</div>

View File

@@ -0,0 +1,2 @@
<input class="tcb-condition-input change" type="number" data-fn="inputChanged" min="<#= this.minInterval #>" max="<#= this.maxInterval #>">
<div class="tcb-interval-select tcb-conditional-display-select"></div>

View File

@@ -0,0 +1,4 @@
<input type="text" class="tcb-condition-datepicker-input change" data-fn="changeDate">
<div class="tcb-condition-datepicker-icon click" data-fn="openDatePicker">
<?php tcb_icon( 'calendar-range' ); ?>
</div>

View File

@@ -0,0 +1 @@
<div class="tcb-dropdown-container tcb-conditional-display-select"></div>

View File

@@ -0,0 +1 @@
<input class="tcb-condition-input change" data-fn="inputChanged" placeholder="<#= this.placeholderText #>">

View File

@@ -0,0 +1 @@
<input class="tcb-condition-input change" type="number" data-fn="inputChanged" step="1" min="<#= this.min #>" max="<#= this.max #>" >

View File

@@ -0,0 +1 @@
<div class="tcb-operator-select tcb-conditional-display-select"></div>

View File

@@ -0,0 +1 @@
<input class="tcb-condition-input input" data-fn="stringNameChanged" placeholder="variable name">

View File

@@ -0,0 +1,2 @@
<div class="tcb-condition-string-compare-select tcb-conditional-display-select"></div>
<input class="tcb-condition-input tcb-condition-string-value change" data-fn="stringValueChanged" placeholder="value">

View File

@@ -0,0 +1,2 @@
<input class="tcb-condition-input-hour input" type="number" data-fn="hourChanged" min="<#= this.minHours #>" max="<#= this.maxHours #>">
<input class="tcb-condition-input-minute input" type="number" data-fn="minuteChanged" min="<#= this.minMinutes #>" max="<#= this.maxMinutes #>">

View File

@@ -0,0 +1,3 @@
<a href="<?php echo admin_url( 'options-general.php' ) ?>" target="_blank" class="tcb-condition-input-timezone">
UTC+<?php echo get_option( 'gmt_offset' ) ?>
</a>

View File

@@ -0,0 +1,24 @@
<div class="tcb-conditional-display-title">
<span class="tcb-conditional-title-text"><?php echo esc_html__( 'Display conditions', 'thrive-cb' ); ?></span>
<span><?php echo esc_html__( 'for', 'thrive-cb' ); ?></span>
<span class="tcb-conditional-current-display"></span>
</div>
<div class="tcb-conditional-display-setting-select-container">
<div class="tcb-conditional-display-select"></div>
</div>
<div class="tcb-condition-set-list"></div>
<div class="tcb-condition-set-action-buttons" style="display:flex;flex-direction:row;">
<button class="tcb-condition-new-set click green-text" data-fn="addSet">
<?php tcb_icon( 'plus-regular' );
echo esc_html__( 'New condition set', 'thrive-cb' ); ?>
</button>
<button class="tcb-condition-select-existing-set green-text">
<?php tcb_icon( 'search-regular' );
echo esc_html__( 'Select an existing condition set', 'thrive-cb' ); ?>
<div class="tcb-condition-select-arrow"></div>
<div class="tcb-condition-set-select2-container"></div>
</button>
</div>

View File

@@ -0,0 +1 @@
<div class="tcb-entity-select tcb-conditional-display-select"></div>

View File

@@ -0,0 +1 @@
<div class="tcb-field-select tcb-conditional-display-select"></div>

View File

@@ -0,0 +1,19 @@
<p class="tcb-condition-connector-label"><#= this.index ? 'and': 'When' #></p>
<div class="tcb-condition-wrapper">
<div class="tcb-condition-entity tcb-condition-item"></div>
<div class="tcb-condition-field tcb-condition-item"></div>
<div class="tcb-condition-key tcb-condition-item"></div>
<div class="tcb-condition-compared-value tcb-condition-item"></div>
<div class="tcb-condition-comparator-extra-container hidden"></div>
<div class="tcb-condition-gray-overlay"></div>
</div>
<button class="tcb-condition-delete-rule click" data-fn="openRuleDeleteOverlay"><?php tcb_icon( 'trash-light' ); ?></button>
<div class="tcb-condition-delete-rule-overlay hidden">
<span><?php echo esc_html__( 'Are you sure you want to delete this rule?', 'thrive-cb' ); ?></span>
<div class="tcb-delete-actions">
<button class="click" data-fn="closeDeleteOverlay"><?php echo esc_html__( 'No, Cancel', 'thrive-cb' ); ?></button>
<button class="click" data-fn="deleteRule"><?php echo esc_html__( 'Yes, Delete', 'thrive-cb' ); ?></button>
</div>
</div>

View File

@@ -0,0 +1,2 @@
<span class="default-value click" data-fn="selectToggle"></span>
<ul></ul>

View File

@@ -0,0 +1,94 @@
<div class="tcb-condition-set-wrapper">
<div class="tcb-condition-global-during-edit edit-set-title hidden">
<?php echo esc_html__( 'Edit Global Conditions Set', 'thrive-cb' ); ?>
</div>
<div class="tcb-condition-global-edit-warning hidden">
<?php tcb_icon( 'info-circle-solid' ); ?>
<div class="tcb-condition-global-edit-wrapper">
<div class="tcb-condition-notice-title"><?php echo esc_html__( 'Edit Global Conditions Set', 'thrive-cb' ); ?></div>
<div class="tcb-condition-global-notice-text">
<?php echo esc_html__( 'You are about to edit a Global Condition Set. Any updates to the condition set will impact all the display views where you applied it. Do you want to continue?', 'thrive-cb' ); ?>
</div>
<div class="tcb-condition-global-notice-buttons">
<button class="tcb-condition-global-edit-cancel click" data-fn="closeEditWarning"><?php echo esc_html__( 'NO, CANCEL', 'thrive-cb' ); ?></button>
<button class="tcb-condition-global-edit-remove click" data-fn="editSet"><?php echo esc_html__( 'YES, EDIT AS GLOBAL SET', 'thrive-cb' ); ?></button>
</div>
</div>
</div>
<div class="tcb-condition-set-upper-row">
<div class="tcb-condition-set-label">
<span class="tcb-condition-label"><#= this.model.get( 'label' ) #></span>
<span class="tcb-condition-edit click" data-fn="showRename"><?php tcb_icon( 'pen-regular' ); ?></span>
<span class="tcb-condition-rename click" data-fn="renameSet"><?php tcb_icon( 'check-light' ); ?></span>
</div>
<div class="tcb-condition-set-actions">
<button class="tcb-condition-option-save click" data-fn="saveGlobalSet" data-tooltip="Global condition sets can be reused and updated across your website" data-position="top">
<?php tcb_icon( 'globe-americas-solid' ); ?>
<span>
<?php echo esc_html__( 'Save as global', 'thrive-cb' ); ?>
</span>
</button>
<span class="tcb-condition-set-global-icon" data-tooltip="Global condition set" data-position="top">
<?php tcb_icon( 'globe-americas-solid' ); ?>
</span>
<button class="tcb-condition-set-button click" data-fn="openSetTooltip">
<?php tcb_icon( 'three-dots' ); ?>
</button>
<div class="tcb-condition-set-tooltip hidden">
<button class="tcb-condition-option-unlink click" data-fn="unlinkGlobalSet">
<?php tcb_icon( 'unlink-light' ); ?>
<?php echo esc_html__( 'Unlink from global condition set', 'thrive-cb' ); ?>
</button>
<button class="tcb-condition-option-edit click" data-fn="openEditWarning">
<?php tcb_icon( 'pen-light' ); ?>
<?php echo esc_html__( 'Edit global condition set', 'thrive-cb' ); ?>
</button>
<button class="tcb-condition-option-delete click" data-fn="beforeSetDelete">
<?php tcb_icon( 'trash-light' ); ?>
<span class="tcb-delete-text">
<?php echo esc_html__( 'Delete condition set', 'thrive-cb' ); ?>
</span>
</button>
</div>
</div>
</div>
<div class="tcb-condition-set-rule-container"></div>
<button class="tcb-condition-set-add-rule-button click green-text" data-fn="addRule"><?php echo esc_html__( '+ Add rule', 'thrive-cb' ); ?></button>
<div class="tcb-condition-delete-overlay hidden">
<div class="tcb-condition-delete-overlay-wrapper">
<?php tcb_icon( 'exclamation-triangle' ); ?>
<div class="tcb-condition-delete-wrapper">
<div class="tcb-condition-notice-title global"><?php echo esc_html__( 'Delete Global Set', 'thrive-cb' ); ?></div>
<div class="tcb-condition-notice-title regular"><?php echo esc_html__( 'Delete Set', 'thrive-cb' ); ?></div>
<div class="tcb-condition-delete-text-global">
<?php echo esc_html__( 'You are about to delete a Global condition set. The ', 'thrive-cb' ); ?>
<strong class="tcb-condition-set-name"></strong>
<?php echo esc_html__( 'condition set will be permanently removed from everywhere. Do you want to continue?', 'thrive-cb' ); ?>
</div>
<div class="tcb-condition-delete-text-regular">
<?php echo esc_html__( 'You are about to delete the', 'thrive-cb' ); ?>
<strong class="tcb-condition-set-name"></strong>
<?php echo esc_html__( 'condition set. Do you want to continue?', 'thrive-cb' ); ?>
</div>
<div class="tcb-condition-global-notice-buttons">
<button class="tcb-condition-global-delete-cancel click" data-fn="closeDeleteOverlay"><?php echo esc_html__( 'NO, CANCEL', 'thrive-cb' ); ?></button>
<button class="tcb-condition-global-delete-remove click" data-fn="deleteSet"><?php echo esc_html__( 'YES, DELETE', 'thrive-cb' ); ?></button>
</div>
</div>
</div>
</div>
<div class="tcb-condition-global-during-edit edit-set-buttons hidden">
<button class="tcb-condition-global-edit-cancel click" data-fn="cancelEditing"><?php echo esc_html__( 'CANCEL', 'thrive-cb' ); ?></button>
<button class="tcb-condition-global-edit-remove click" data-fn="saveGlobalEdit"><?php echo esc_html__( 'SAVE', 'thrive-cb' ); ?></button>
</div>
</div>
<div class="tcb-condition-modal-divider">
<?php echo esc_html__( 'or', 'thrive-cb' ); ?>
</div>

View File

@@ -0,0 +1,8 @@
<li class="cdg-display-item<#= isVisible ? '' : ' not-visible'#>" data-display-key="<#= displayKey #>" data-display-group="<#= groupKey #>">
<button class="click cdg-display" data-display-key="<#= displayKey #>" data-display-group="<#= groupKey #>" data-fn="<#= isVisible ? 'locateElement' : 'setDisplayActive'#>">
<#= displayName #>
<#= isVisible ? TVE.icon( 'crosshairs-regular' ):'' #>
</button>
<ul class="nested-cdg"><#= nestedGroups #></ul>
</li>

View File

@@ -0,0 +1,13 @@
<li class="cdg-item mb-5 mt-5 level-<#= level #><#= isVisible ? '' : ' not-visible'#>">
<div class="cdg-info">
<div class="cdg-el-icon"><#= icon #></div>
<div>
<div class="cdg-el-name"><#= name #></div>
<div class="cdg-displays-number">
<#= numberOfDisplays#>
<?php echo esc_html__( 'displays', 'thrive-cb' ); ?>
</div>
</div>
</div>
<ul class="cdg-displays"><#= displaysHtml #></ul>
</li>

View File

@@ -0,0 +1,38 @@
<p><?php echo __( 'Where do you want to receive your messages?', 'thrive-cb' ) ?></p>
<div class="grey-container">
<div class="input-container">
<span><?php echo __( 'To (email):', 'thrive-cb' ) ?></span>
<input type="text" class="change input" data-fn-input="input" data-fn-change="change" name="to"
value="<#= model.get('to') #>">
</div>
<div class="input-container">
<span><?php echo __( 'Subject:', 'thrive-cb' ) ?></span>
<input type="text" class="change input" data-fn-input="input" data-fn-change="change" name="subject"
value="<#= model.get('subject') #>">
</div>
<div class="tcb-shortcodes"></div>
<div id="tcb-recipients" style="display: none;">
<div class="input-container">
<span><?php echo __( 'CC:', 'thrive-cb' )?></span>
<div>
<input type="text" class="change input" data-fn-input="input" data-fn-change="change" name="cc"
value="<#= model.get('cc') #>">
<span><?php echo __( 'You can add multiple emails separated by commas', 'thrive-cb' ) ?></span>
</div>
</div>
<div class="input-container">
<span><?php echo __( 'BCC:', 'thrive-cb' )?></span>
<div>
<input type="text" class="change input" data-fn-input="input" data-fn-change="change" name="bcc"
value="<#= model.get('bcc') #>">
<span><?php echo __( 'You can add multiple emails separated by commas', 'thrive-cb' ) ?></span>
</div>
</div>
</div>
<button id="tcb-add-more-recipients" class="click" data-fn="add_more_recipients"><span><?php echo __( 'Add more recipients', 'thrive-cb' ) ?></span></button>
</div>

View File

@@ -0,0 +1 @@
<span class="tcb-error" style="display: none;"><#= error #></span>

View File

@@ -0,0 +1 @@
<button class="mousedown" data-fn="insert_shortcode"><#= shortcode #><span>+</span></button>

View File

@@ -0,0 +1,82 @@
<div class="tcb-cf-submit-action-wrapper">
<div class="tcb-cf-submit-action" data-action="reload">
<div><?php echo tcb_icon( 'reload1', true ) ?></div>
<p><?php echo __( 'Reload page', 'thrive-cb' ) ?></p>
</div>
<div class="tcb-cf-submit-action" data-action="redirect">
<div><?php echo tcb_icon( 'url', true ) ?></div>
<p><?php echo __( 'Redirect to custom URL', 'thrive-cb' ) ?></p>
</div>
<div class="tcb-cf-submit-action" data-action="notification">
<div><?php echo tcb_icon( 'notif', true ) ?></div>
<p><?php echo __( 'Show success notification', 'thrive-cb' ) ?></p>
</div>
</div>
<div class="row">
<div class="col tcb-action-form" id="tcb-action-reload"></div>
<div class="col tcb-action-form" id="tcb-action-redirect">
<p class="pb-0"><?php echo __( 'Insert the url where you want user to be redirected', 'thrive-cb' ) ?></p>
<div id="tcb-cf-url"></div>
</div>
<div class="col tcb-action-form" id="tcb-action-notification">
<p class="pb-0"><?php echo __( 'Insert the notification text which will appear when the Contact Form will be sent', 'thrive-cb' ) ?></p>
<input name="notification" id="tcb-cf-notification" type="text" class="change input" data-fn-change="change"
data-fn-input="input" value="<#= model.get('notification') #>"
placeholder="<?php echo __( 'Notification', 'thrive-cb' ) ?>">
</div>
</div>
<div class="tcb-switch">
<label for="tcb-send-confirmation-email"><?php echo __( 'Send confirmation email to user', 'thrive-cb' ) ?>
<input id="tcb-send-confirmation-email" name="send_confirmation_email" class="change"
data-fn-change="change" type="checkbox">
<span class="tcb-lever"></span>
</label>
</div>
<div class="row" id="tcb-confirmation-message-wrapper">
<div class="col col-xs-12">
<input type="text" id="tcb-cf-input-subject" name="confirmation_subject" class="change input"
data-fn-input="input" data-fn-change="change" value="<#= model.get('confirmation_subject') #>"
placeholder="<?php echo __( 'Subject', 'thrive-cb' ) ?>">
<textarea name="confirmation_message" class="change input" data-fn-input="input" data-fn-change="change"><#= model.get('confirmation_message') #></textarea>
<div class="tcb-cf-shortcode-wrapper">
<div class="tcb-cf-shortcode-buttons">
<span><?php echo __( 'Add shortcodes:', 'thrive-cb' ) ?></span>
</div>
<div class="tcb-shortcodes"></div>
</div>
</div>
<div class="tcb-switch">
<label
for="tcb-personalize-sender"><?php echo __( 'Would you like to personalize the Sender Details?', 'thrive-cb' ) ?>
<input id="tcb-personalize-sender" type="checkbox" name="sender_personalized" class="change"
data-fn-change="change">
<span class="tcb-lever"></span>
</label>
</div>
<div id="tcb-sender-details-wrapper">
<div class="input-container">
<label for="tcb-personalize-from-name"><?php echo __( 'From name', 'thrive-cb' ) ?></label>
<input id="tcb-personalize-from-name" type="text" name="from_name" class="change input"
data-fn-change="change" data-fn-input="input"
placeholder="<?php echo __( 'From Name:', 'thrive-cb' ) ?>"
value="<#= model.get('from_name') #>">
</div>
<div class="input-container">
<label for="tcb-personalize-from-email"><?php echo __( 'From email', 'thrive-cb' ) ?></label>
<input id="tcb-personalize-from-email" type="text" name="from_email" class="change input"
data-fn-change="change" data-fn-input="input"
placeholder="<?php echo __( 'From Email:', 'thrive-cb' ) ?>"
value="<#= model.get('from_email') #>">
</div>
<div class="input-container">
<label for="tcb-personalize-from-reply-to"><?php echo __( 'Reply-To', 'thrive-cb' ) ?></label>
<select name="reply_to" id="tcb-personalize-from-reply-to" class="change"
data-fn-change="change"></select>
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
<a href="javascript:void(0);" class="click cb-category" data-fn="filter" data-source="category" data-item="<#= id #>"><#= icon #><#= name #></a>

View File

@@ -0,0 +1,9 @@
<div class="control-grid">
<span class="label tcb-truncate"><#= model.get( 'local_variable_name' ) #></span>
<div class="input">
<span class="sp-transparent click" data-fn="edit_local_variable" data-var="<#= model.get( 'local_variable' ) #>" data-index="<#= index #>">
<span class="tcb-icon-inline" style="background-size:auto;background-image:<#= bg #>"></span>
</span>
<input type="text" value="<#= model.get( 'local_variable_code' ) #>" readonly>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<div class="ct-item modal-item click" data-fn="selectTemplate" data-id="<#= item.id #>" data-name="<#= item.label #>" data-category="<#= item.id_category #>">
<div class="modal-title-w-options">
<div class="modal-item-name"><#= item.label #></div>
<span><?php tcb_icon( 'check-regular' ); ?></span>
</div>
<div class="card">
<div class="cb-template-thumbnail lazy-loading">
<img class="tve-lazy-img" src="<?php echo esc_url( tve_editor_css( 'images/loading-spinner.gif' ) ); ?>" data-src="<#= item.thumb.url #>" data-ratio="<#= parseFloat(parseInt(item.thumb.h) / parseInt(item.thumb.w)).toFixed(3) #>"/>
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
<a href="javascript:void(0);" class="click cb-category<#= extra_cls#>" data-fn="filter" data-source="favorites" data-item="favorites"><?php tcb_icon( 'heart-light' ); ?> <?php echo esc_html__( 'My Favorites', 'thrive-cb' ) ?></a>

View File

@@ -0,0 +1 @@
<div><a href="javascript:void(0);" class="click cb-group" data-fn="filter" data-source="group" data-item="<#= group #>"><?php tcb_icon( 'html' ); ?>&nbsp;<#= group #></a></div>

View File

@@ -0,0 +1,4 @@
<a href="javascript:void(0);" class="click lp-category" data-fn="filter" data-source="category" data-item="<#= id #>">
<span><#= name #></span>
<span><#= counter #></span>
</a>

View File

@@ -0,0 +1,4 @@
<a href="javascript:void(0);" class="click lp-group" data-fn="filter" data-source="group" data-item="<#= group #>">
<span><#= group #></span>
<span class="lp-group-count"><#= counter #></span>
</a>

View File

@@ -0,0 +1,7 @@
<div class="cb-template-item modal-item click" data-id="<#= item.id #>" data-fn="domDownloadTpl">
<div class="cb-template-wrapper">
<div class="cb-template-thumbnail lazy-loading">
<img class="tve-lazy-img" src="<?php echo esc_url( tve_editor_css( 'images/loading-spinner.gif' ) ); ?>" data-src="<#= item.thumb #>" data-ratio="<#= parseFloat(parseInt(item.thumb_sizes.h) / parseInt(item.thumb_sizes.w)).toFixed(3) #>"/>
</div>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div class="flex flex-center">
<?php echo __( 'No results. Please adjust the search.', 'thrive-cb' ); ?>
</div>

View File

@@ -0,0 +1,18 @@
<div class="cb-template-item modal-item click<#=selected ? ' active' : ''#><#=item.fav ? ' cb-fav' : ''#>" data-id="<#= item.id #>" data-fn="dom_select">
<div class="cb-template-wrapper">
<div class="cb-template-thumbnail lazy-loading">
<a href="javascript:void(0);" class="click cb-thumb-overlay" data-id="<#= item.id #>" data-fn="dom_insert_into_content"></a>
<img class="tve-lazy-img" src='<?php echo esc_url( tve_editor_css( 'images/loading-spinner.gif' ) ); ?>' data-ratio="<#= item.thumb_sizes ? parseFloat(parseInt(item.thumb_sizes.h) / parseInt(item.thumb_sizes.w)).toFixed(3) : ''#>" data-src="<#= item.thumb #>"/>
</div>
<div class="cb-actions">
<a href="javascript:void(0);" class="click" data-id="<#= item.id #>" data-fn="dom_preview"><span id="cb-preview-light"><?php tcb_icon( 'eye-light' ); ?></span><span><?php echo esc_html__( 'Preview Block', 'thrive-cb' ) ?></span></a>
<div>
<div class="cb-separator"></div>
<a href="javascript:void(0);" class="click cb-favorite" data-id="<#= item.id #>" data-fn="dom_fav">
<span data-tooltip="<#= favorite_data[item.fav].tooltip #>"><#= TVE.icon(favorite_data[item.fav].icon) #></span>
</a>
</div>
</div>
<div class="selected"></div>
</div>
</div>

View File

@@ -0,0 +1,14 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<p class="tooltip-header"><?php echo __( 'Page Blocks and Content Blocks', 'thrive-cb' ); ?></p>
<p class="tooltip-text"><strong style="font-weight: 500;"><?php echo __( 'Together as one. Available Everywhere.', 'thrive-cb' ); ?></strong></p>
<p class="tooltip-text"><?php echo __( 'Page blocks and content blocks have merged into one element, <strong style="font-weight: 500;">Blocks</strong>, to help you create more engaging blogposts and build landing pages faster.', 'thrive-cb' ); ?></p>

View File

@@ -0,0 +1,3 @@
<span>
<?php echo __( 'A placeholder will be displayed in the editor for posts that have no image set.', 'thrive-cb' ); ?>
</span>

View File

@@ -0,0 +1,22 @@
<div class="control-grid mb-10 custom-fields-state" data-state="static">
<label class="label"><?php echo __( 'Source', 'thrive-cb' ) ?></label>
<select class="v-source change input" data-fn="selectSource">
</select>
</div>
<div class="custom-fields-state" data-state="static">
<div class="v-settings" id="a-settings-custom" data-view="custom"></div>
<div class="v-settings" style="display:none" id="a-settings-soundcloud" data-view="soundcloud"><?php tcb_template( 'actions/audio-providers/soundcloud' ) ?></div>
<div class="v-settings" style="display:none" id="a-settings-spotify" data-view="spotify"><?php tcb_template( 'actions/audio-providers/spotify' ) ?></div>
</div>
<div class="tve-advanced-controls mt-10">
<div class="dropdown-header" data-prop="advanced">
<span>
<?php echo __( 'Advanced', 'thrive-cb' ); ?>
</span>
</div>
<div class="dropdown-content clear-top">
<div class="a-checkbox-settings" id="a-checkbox-settings-custom" data-setting="custom" style="display:none"><?php tcb_template( 'actions/audio-providers/custom-extra' ) ?></div>
<div class="a-checkbox-settings" id="a-checkbox-settings-soundcloud" data-setting="soundcloud" style="display:none"><?php tcb_template( 'actions/audio-providers/soundcloud-extra' ) ?></div>
</div>
</div>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 2/9/2018
* Time: 2:48 PM
*/
?>
<label><?php echo __( 'Select Background Effect', 'thrive-cb' ) ?></label>
<div class="drop-panel-control tcb-background-effect-select tve-control"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="opacity"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="grayscale"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="brightness"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="sepia"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="contrast"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="invert"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="saturate"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="blur"></div>
<div class="drop-panel-control tcb-background-effect-slider tve-control" data-key="hue-rotate"></div>

View File

@@ -0,0 +1,43 @@
<div class="image-picker-wrapper"></div>
<div class="control-grid">
<div>
<label><?php echo __( 'Image display', 'thrive-cb' ) ?></label>
<select id="bg-image-prop" class="change" data-fn="prop">
<option value="size:auto"><?php echo __( 'Default', 'thrive-cb' ) ?></option>
<option value="size:cover"><?php echo __( 'Cover', 'thrive-cb' ) ?></option>
<option value="size:contain"><?php echo __( 'Contain', 'thrive-cb' ) ?></option>
<option value="size:percentage"><?php echo __( 'Percentage', 'thrive-cb' ) ?></option>
</select>
</div>
<div class="tve-scale-fit">
<div class="bg-image-position-area tcb-disabled">
<div class="bg-image-control click" data-fn="set_position" data-value="0%:0%" style="position: absolute; top:-3px; left: -3px;"></div>
<div class="bg-image-control click" data-fn="set_position" data-value="50%:0%" style="position: absolute; top:-4px; left: 45%;"></div>
<div class="bg-image-control click" data-fn="set_position" data-value="100%:0%" style="position: absolute; top:-3px; right: -3px;"></div>
<div class="bg-image-control click" data-fn="set_position" data-value="0%:50%" style="position: absolute; top:45%; left: -4px;"></div>
<div class="bg-image-control click" data-fn="set_position" data-value="50%:50%" style="position: absolute; top:45%; left: 45%;"></div>
<div class="bg-image-control click" data-fn="set_position" data-value="100%:50%" style="position: absolute; top:45%; right: -4px;"></div>
<div class="bg-image-control click" data-fn="set_position" data-value="0%:100%" style="position: absolute; bottom: -3px; left: -3px;"></div>
<div class="bg-image-control click" data-fn="set_position" data-value="50%:100%" style="position: absolute; bottom: -4px; left: 45%;"></div>
<div class="bg-image-control click" data-fn="set_position" data-value="100%:100%" style="position: absolute; bottom:-3px; right: -3px;"></div>
</div>
</div>
</div>
<div class="control-grid tve-background-image-repeat tcb-hidden">
<div>
<label><?php echo __( 'Repeat', 'thrive-cb' ) ?></label>
<select id="bg-image-repeat-prop" class="change" data-fn="prop">
<option value="repeat:no-repeat"><?php echo __( 'No repeat', 'thrive-cb' ) ?></option>
<option value="repeat:repeat-y"><?php echo __( 'Repeat vertically', 'thrive-cb' ) ?></option>
<option value="repeat:repeat-x"><?php echo __( 'Repeat horizontally', 'thrive-cb' ) ?></option>
<option value="repeat:repeat"><?php echo __( 'Repeat both', 'thrive-cb' ) ?></option>
</select>
</div>
</div>
<div class="tve-image-size-percentages">
<div class="drop-panel-control tve-image-width tve-control"></div>
<div class="drop-panel-control tve-image-height tve-control"></div>
</div>
<div class="control-grid p-0 tve-static-background-image-control">
<label class="tcb-checkbox"><input type="checkbox" class="change" id="bg-static" data-fn="static" value="1"><span><?php echo __( 'Static background image', 'thrive-cb' ) ?></span></label>
</div>

View File

@@ -0,0 +1,16 @@
<div class="tve-drag-image-wrapper">
<div class="tve-drag-image tve-drag-image-overlay"></div>
<div class="tve-drag-image tve-drag-image-handle" data-key="default">
<?php tcb_icon( 'arrows-alt-regular' ) ?>
<span><?php echo __( 'Drag to Reposition', 'thrive-cb' ) ?></span>
</div>
<div class="tve-drag-image tve-drag-image-handle" data-key="height">
<?php tcb_icon( 'arrows-alt-v-regular' ) ?>
<span><?php echo __( 'Move Up or Down to Reposition', 'thrive-cb' ) ?></span>
</div>
<div class="tve-drag-image tve-drag-image-handle" data-key="width">
<?php tcb_icon( 'arrows-alt-h-regular' ) ?>
<span><?php echo __( 'Move Left or Right to Reposition', 'thrive-cb' ) ?></span>
</div>
</div>

View File

@@ -0,0 +1,20 @@
<div class="tve-border-toggle-color"></div>
<div class="flex-mid pb-10 space-between">
<div class="flex-mid boxes pr-15">
<div class="border-boxes">
<div class="tve-border-side click top" data-fn="borderSide" data-value="top"></div>
<div class="tve-border-side click left" data-fn="borderSide" data-value="left"></div>
<div class="tve-border-side click right" data-fn="borderSide" data-value="right"></div>
<div class="tve-border-side click bottom" data-fn="borderSide" data-value="bottom"></div>
<div class="tve-border-side default center click" data-fn="borderSide" data-value=""></div>
</div>
</div>
<div class="tve-border-settings">
<div class="flex pb-10 space-between">
<div class="tcb-color-toggle-element tve-border-color hide-input mr-10"></div>
<div class="tcb-color-toggle-element tve-border-gradient hide-input mr-10"></div>
<div class="tve-border-width no-space input-small"></div>
</div>
<div class="tve-border-style no-space"></div>
</div>
</div>

View File

@@ -0,0 +1,28 @@
<div class="<#=this.get_css_class()#>button-group-holder control-grid no-space tve-group-<#= (this.model.config.name || '').replace(/ /g,'-') #>">
<# if(this.model.config.name) { #><span class="button-group-name label grey-text">
<#= this.model.config.name #>
<# if ( this.model.config.instructions ) { #>
<span class="click" data-type="<#=this.model.config.instructions.type#>" data-url="<#=this.model.config.instructions.url#>" data-link="<#=this.model.config.instructions.link#>" data-fn="openInstructionsLightbox"><#= TVE.icon( this.model.config.instructions.type + "-instructions" ) #></span>
<# } #>
<# if ( this.model.config.info ) { #>
<span class="click tcb-vertical-info" data-paneltlt-hover data-fn="openTooltip" <#= this.model.config.icontooltip ? 'data-tooltip="' + this.model.config.icontooltip + '"' : ''#> <#= this.model.config.iconside ? 'data-side="' + this.model.config.iconside + '"' : ''#>><?php tcb_icon( 'info-circle-solid' ); ?></span>
<# } #>
</span>
<# } #>
<div class="items-<#=this.model.config.buttons.length#> input tve-btn-group">
<# _.each(this.get_buttons(), function(button) { #>
<div class="tve-btn click <#= button.default? 'active default':'' #> <#= button.text=='' || !button.text ?'':'btn-text' #>"
<#= button.tooltip ? ' data-tooltip="' + button.tooltip + '"' : ''#> <#= button.tooltip_side ? ' data-side="' + button.tooltip_side + '"' : ''#>
<# button.data && _.each(button.data, function(v,k) { #> data-<#= k #>="<#= v #>" <# }); #>
data-fn="_click"
data-value="<#= button.value #>"<#= button.hidden ? ' style="display:none"' : '' #>>
<#= button.icon?TVE.icon(button.icon, 'svg', false, button.icon_cls || ''):'' #>
<#= button.text #>
</div>
<# }); #>
</div>
</div>
<div class="control-grid full-width">
<div style="display: none" class="fill tcb-text-right control-summary padding-top-5 w-100"></div>
<div style="display: none" class="info-text"><#=this.model.config.info_text || ''#></div>
</div>

View File

@@ -0,0 +1,14 @@
<div class="button-group-holder control-grid">
<# if ( this.data.label ) { #>
<div class="group-label label"><#=this.data.label#>:</div>
<# } #>
<div class="tve-btn-group input <#=this.data.group_class || 'grey'#>">
<# _.each( this.data.buttons, function( btn, key ) { #>
<div class="btn-inline tve-btn click <#=btn.class || ''#>" data-fn="tab_click" data-panel="<#=key#>" data-tooltip="<#=btn.title#>" data-side="<#=this.get('data.tooltip_side', 'bottom')#>">
<#=this.icon( btn )#>
</div>
<# }, this ); #>
</div>
</div>

View File

@@ -0,0 +1,9 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/11/2018
* Time: 10:35 AM
*/
?>
<button class="click tve-button-toggle <#= this.model.config.class #>" data-fn="_click"><#= this.model.config.label #></button>

View File

@@ -0,0 +1,7 @@
<div class="button-item mb-5" data-name="<#= template.name #>">
<div class="tve-select-item tve-select-item-cloud click" data-value="<#= template.cls #>" data-fn="select">
<div class="tve-cloud-button">
<img src="<#= template.thumb #>" loading="lazy" width="<#= template.thumb_size.w #>" height="<#= template.thumb_size.h #>">
</div>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="button-item">
<div class="tve-select-item click" data-value="<#= template.cls #>" data-fn="select">
<div class="thrv_wrapper thrv-button <#= template.cls #>">
<a href="javascript:void(0);" class="tcb-button-link">
<span class="tcb-button-texts"><span class="tcb-button-text thrv-inline-text <#= template.cls #>-prtext"><?php echo __( 'Button', 'thrive-cb' ); ?></span></span>
</a>
</div>
<p><#= template.name #></p>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="button-item">
<div class="tve-select-item click" data-value="<#=key #>" data-fn="select">
<div class="thrv-button">
<a href="#" class="tcb-button-link <#=key #>">
<p class="tcb-button-texts"><span class="tcb-button-text thrv-inline-text"><?php echo __( 'Button', 'thrive-cb' ) ?></span></p>
</a>
</div>
<p><#=label #></p>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="button-category-label full-width"><?php echo strtoupper( __( 'Saved Templates', 'thrive-cb' ) ); ?></div>
<style><#=media_css #></style>
<# _.each( items, function ( template, k ) { #>
<div class="button-item template-button-item">
<div class="tve-select-item click" data-value="tcb-saved-button-template-<#=template['id'] #>" data-fn="select">
<#=template['content'].replace('href', 'data-href').replace('tcb-button-icon', 'tcb-button-icon tcb-hidden') #>
<p><#=template.label#></p>
</div>
</div>
<# }); #>

View File

@@ -0,0 +1,8 @@
<div class="panel-text">
<#= this.model.config.label #>
</div>
<div class="row middle-xs">
<# _.each(this.model.config.items, function(label, key) { #>
<#= this.render_item( key, label ) #>
<# }, this); #>
</div>

View File

@@ -0,0 +1,13 @@
<# if ( ! this.model.config.hide_name && this.model.config.name) { #>
<div class="grey-text">
<#= this.model.config.name #>
</div>
<# } #>
<label class="tcb-checkbox">
<input class="tve-checkbox change" type="checkbox" data-fn="check" <#= this.model.config.name? 'data-name="' + this.model.config.name + '"':'' #> value="<#= this.model.config.value ? this.model.config.value : 1 #>"
<#= this.model.config.checked || this.model.config.default ? 'checked' : '' #> >
<span class="grey-text"><#= this.model.config.label #></span>
<# if ( this.model.config.tooltip ) { #>
<p class="click m-0" data-tooltip="<#- this.model.config.tooltip #>" data-side="<#- this.model.config.tooltip_side #>"><?php tcb_icon( 'info-circle-solid' ); ?></p>
<# } #>
</label>

View File

@@ -0,0 +1,6 @@
<label class="tcb-checkbox">
<input class="tve-checkbox change" name="<#= item.get('name') #>" type="checkbox" data-fn="check" value="<#= item.value ? item.value : 1 #>">
<span>
<#= item.get('label') #>
</span>
</label>

View File

@@ -0,0 +1,23 @@
<# if ( this.model.config.flat || ( this.model.config.options && this.model.config.options.flat ) ) { #>
<div class="color-picker-control"><input type="text" class="color-picker"></div>
<# } else { #>
<div class="color-picker-control control-grid<#=this.getExtraClass()#>">
<# if(this.model.config.label || this.model.config.label_icon ) { #>
<div class="color-picker-label label">
<#= this.model.config.label_icon ? TVE.icon( this.model.config.label_icon ) : this.model.config.label #>
<# if ( this.model.config.info ) { #>
<span class="click tve-color-info"> <?php tcb_icon( 'info-circle-solid' ); ?></span>
<# } #>
</div>
<# } #>
<div class="color-picker-input control-grid input p-0">
<div class="input">
<input type="text" class="color-picker">
<div class="color-input-container">
<input type="text" class="color-input" disabled placeholder="None">
</div>
</div>
</div>
</div>
<# } #>

View File

@@ -0,0 +1,9 @@
<div class="tcb-relative tcb-flex pt-20 <#=wrapper_class #>">
<span class="sp-transparent click variable-square-control" data-fn="dom_edit_css_variable" data-var="<#= css_variable #>" data-index="<#= index #>">
<span class="tcb-icon-inline variable-square-control" style="background-size:auto;background-image:<#= bg #>"></span>
</span>
<span class="click variable-name" data-fn="dom_edit_css_variable"><#= name #></span>
<# if(show_locate_control){ #>
<?php tcb_icon( 'crosshairs-solid', false, 'sidebar', 'click', array( 'data-fn' => 'locate_variable' ) ); ?>
<# } #>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/14/2018
* Time: 4:23 PM
*/
?>
<div class="tve-cf-item" data-css="<#= wrapper_css #>">
<div class="thrv-cf-input-wrapper" data-type="<#= item_type #>">
<label data-css="<#= label_css #>"><#= label #></label>
<div class="tve-cf-input" data-css="<#= input_css #>">
<input placeholder="First Name" type="text" name="first_name">
</div>
</div>
</div>

View File

@@ -0,0 +1,72 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/8/2018
* Time: 8:50 AM
*/
$captcha_api = Thrive_Dash_List_Manager::credentials( 'recaptcha' );
?>
<div class="control-grid">
<div class="label">
<?php echo __( 'Field Type', 'thrive-cb' ); ?>
</div>
<div class="input">
<select class="change tcb-cf-item-type" data-fn="change_setting" data-setting="type"></select>
</div>
</div>
<div class="tcb-edit-item-category" id="text">
<div class="control-grid">
<div class="label">
<?php echo __( 'Label', 'thrive-cb' ); ?>
</div>
<div class="input">
<input type="text" class="change input tcb-cf-item-label" data-fn="change_setting" data-fn-input="change_setting" data-setting="label"/>
</div>
</div>
<div class="control-grid">
<div class="label">
<?php echo __( 'Placeholder', 'thrive-cb' ); ?>
</div>
<div class="input">
<input type="text" class="change input tcb-cf-item-placeholder" data-fn="change_setting" data-fn-input="change_setting" data-setting="placeholder"/>
</div>
</div>
<div class="control-grid no-space">
<div class="label">
<label class="tcb-checkbox"><input type="checkbox" class="change tcb-cf-item-required" data-fn="change_setting" data-setting="required"/><span><?php echo __( 'Required', 'thrive-cb' ) ?></span></label>
</div>
</div>
</div>
<div class="tcb-edit-item-category" id="recaptcha">
<?php if ( ! empty( $captcha_api ) ) : ?>
<div class="control-grid">
<div class="label">
<?php echo __( 'Size', 'thrive-cb' ); ?>
</div>
<div class="input">
<select class="change tcb-cf-item-recaptcha_size" data-fn="change_setting" data-setting="recaptcha_size">
<option value="normal"><?php echo __( 'Normal', 'thrive-cb' ); ?></option>
<option value="compact"><?php echo __( 'Compact', 'thrive-cb' ); ?></option>
</select>
</div>
</div>
<div class="control-grid">
<div class="label">
<?php echo __( 'Style', 'thrive-cb' ); ?>
</div>
<div class="input">
<select class="change tcb-cf-item-recaptcha_style" data-fn="change_setting" data-setting="recaptcha_style">
<option value="light"><?php echo __( 'Light', 'thrive-cb' ); ?></option>
<option value="dark"><?php echo __( 'Dark', 'thrive-cb' ); ?></option>
</select>
</div>
</div>
<?php else : ?>
<div class="control-grid">
<div class="blue-text"><?php tcb_icon( 'info' ); ?></div>
<span><?php echo sprintf( __( 'You cant add a Recaptcha field because you dont have a Google API connection available. For more info %s .', 'thrive-cb' ), '<a style="color: #6cafec !important;" target="_blank" href="' . admin_url( 'admin.php?page=tve_dash_api_connect' ) . '">click here</a>' ); ?></span>
</div>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 6/5/2018
* Time: 11:27 AM
*/
$captcha_api = Thrive_Dash_List_Manager::credentials( 'recaptcha' );
if ( ! empty( $captcha_api ) ) :
?>
<div class="tve-cf-item">
<div class="thrv-cf-input-wrapper" data-type="g-recaptcha-response">
<div class="g-recaptcha tve-captcha-container" data-site-key="<?php echo $captcha_api['site_key']; ?>" data-theme="<#= theme #>" data-type="image" data-size="<#= size #>"></div>
</div>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,8 @@
<div class="row middle-xs">
<div class="col-xs-12 tcb-text-center">
<button class="blue button-link click mt-15 mb-15" data-fn="open_modal">
<?php tcb_icon( 'envelope' ); ?>
<?php echo __( 'Email & after submit setup', 'thrive-cb' ); ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<span>
<?php echo __( 'See Background Style Panel for more advanced background image settings', 'thrive-cb' ); ?>
</span>

View File

@@ -0,0 +1,3 @@
<div class="tooltip-text">
<?php echo __( "The vertical position control isn't available when the overflow is set to: auto, hidden or scroll.", 'thrive-cb' ); ?>
</div>

View File

@@ -0,0 +1,14 @@
<div class="control-grid">
<div class="label flex-mid pr-15">
<div class="corner-boxes">
<div class="tve-corner tve-border-side click top-left" data-fn="corner" data-value="top-left"></div>
<div class="tve-corner tve-border-side click top-right" data-fn="corner" data-value="top-right"></div>
<div class="tve-corner tve-border-side click bottom-right" data-fn="corner" data-value="bottom-right"></div>
<div class="tve-corner tve-border-side click bottom-left" data-fn="corner" data-value="bottom-left"></div>
<div class="tve-corner tve-border-side click default center" data-fn="corner" data-value=""></div>
</div>
</div>
<div class="corner-radius input">
<div class="tve-corner-value no-space input-small"></div>
</div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="tve-select-item click tcb-text-center" data-fn="select" data-value="<#=key #>">
<div class="tcb_countdown_timer_style_wrapper">
<#= TVE.icon( value.preview ) #>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<div class="custom-fields-options mt-5 full-width">
<label><?php echo __( 'Custom Source', 'thrive-cb' ); ?></label>
<select data-fn="selectCustomField" class="change"></select>
</div>
<div class="tve-advanced-controls custom-fields-more-options full-width">
<div class="dropdown-header" data-prop="advanced">
<span>
<?php echo __( 'More Options', 'thrive-cb' ); ?>
</span>
</div>
<div class="dropdown-content pt-0">
<label><?php echo __( 'If not available', 'thrive-cb' ); ?></label>
<select class="custom-fields-placeholder-options change mb-5" data-fn="selectPlaceholder">
<option value="hide"><?php echo __( 'Hide element', 'thrive-cb' ); ?></option>
<option value="replace"><?php echo __( 'Show Default', 'thrive-cb' ); ?></option>
</select>
<div class="custom-fields-placeholder-input">
<label><?php echo __( 'Default', 'thrive-cb' ); ?></label>
<div class="image-picker-input"></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,40 @@
<div class="tve-custom-fields-tabs"></div>
<div class="tve-advanced-controls custom-fields-state p-10 mb-5" data-state="dynamic">
<div class="mb-10 dynamic-fields-options">
<label><?php echo __( 'Dynamic source', 'thrive-cb' ); ?></label>
<select data-fn="selectDynamicField" class="change"></select>
</div>
<div class="custom-fields-options">
<label><?php echo __( 'Custom source', 'thrive-cb' ); ?></label>
<select data-fn="selectCustomField" class="change"></select>
</div>
<div class="custom-fields-extra-options">
<div class="rating-options">
<label><?php echo __( 'Max rating', 'thrive-cb' ); ?></label>
<select class="rating-max change" data-fn="changeRatingMax"></select>
</div>
</div>
</div>
<div class="tve-advanced-controls custom-fields-more-options mb-10" hidden style="margin-top: -5px">
<div class="dropdown-header" data-prop="advanced">
<span>
<?php echo __( 'More options', 'thrive-cb' ); ?>
</span>
</div>
<div class="dropdown-content pt-0">
<label><?php echo __( 'If not available', 'thrive-cb' ); ?><span class="acf-image-placeholder-tooltip click tve-cb-img-info ml-5" data-fn="openTooltip"><?php tcb_icon( 'info-circle-solid' ); ?></span></label>
<select class="custom-fields-placeholder-options change mb-5" data-fn="selectPlaceholder">
<option value="hide"><?php echo __( 'Hide element', 'thrive-cb' ); ?></option>
<option value="replace"><?php echo __( 'Show default', 'thrive-cb' ); ?></option>
</select>
<div class="custom-fields-placeholder-input">
<label><?php echo __( 'Default', 'thrive-cb' ); ?></label>
<input type="number" class="tve-input input change width-input has-um" data-fn-input="onNumberInput">
<div class="audio-picker-input"></div>
<div class="responsivevideo-picker-input"></div>
<div class="image-picker-input"></div>
<input type="text" class="tve-input input change width-input has-um" data-fn-input="onTextInput">
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<div class="custom-fields-options mt-5 full-width">
<label><?php echo __( 'Custom source', 'thrive-cb' ); ?></label>
<select data-fn="selectCustomField" class="change"></select>
</div>
<div class="tve-advanced-controls custom-fields-more-options full-width">
<div class="dropdown-header" data-prop="advanced">
<span>
<?php echo __( 'More options', 'thrive-cb' ); ?>
</span>
</div>
<div class="dropdown-content pt-0">
<label><?php echo __( 'If not available', 'thrive-cb' ); ?></label>
<select class="custom-fields-placeholder-options change mb-5" data-fn="selectPlaceholder">
<option value="hide"><?php echo __( 'Hide element', 'thrive-cb' ); ?></option>
<option value="replace"><?php echo __( 'Show default', 'thrive-cb' ); ?></option>
</select>
<div class="custom-fields-placeholder-input">
<label><?php echo __( 'Default', 'thrive-cb' ); ?></label>
<div class="image-picker-input"></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,20 @@
<div class="tve-custom-fields-data-options flex space-between wrap">
<span class="label"><#= this.model.config.label #></span>
<div class="tve-cf-tabs"></div>
<div class="tve-cf-notice info-text"></div>
<div class="tve-cf-boxes">
<div data-tab="static" style="display: none;"></div>
<div class="mb-10" data-tab="dynamic">
<div class="tve-cf-type"></div>
<div class="tve-cf-data"></div>
<div class="tve-cf-value"></div>
<div class="tve-cf-default-value"></div>
<div class="tcb-flex space-between tcb-dynamic-data-buttons">
<div id="apply-dynamic" class="tve-button click" data-fn="setDynamicData"><?php echo __( 'Insert', 'thrive-cb' ); ?></div>
<div id="remove-dynamic" class="tve-button tve-remove click has-dynamic" data-fn="removeDynamicData"><?php echo __( 'Remove', 'thrive-cb' ); ?></div>
<div id="modify-dynamic" class="tve-button click has-dynamic" data-fn="setDynamicData"><?php echo __( 'Update', 'thrive-cb' ); ?></div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Created by PhpStorm.
* User: User
* Date: 5/23/2018
* Time: 2:25 PM
*/
?>
<div class="tcb-flex space-between pb-10">
<div class="label"><?php echo esc_html__( 'Insert / edit hyperlink', 'thrive-cb' ); ?></div>
</div>
<div class="control-grid no-space full-width pb-5">
<input type="text" class="tcb-menu-item-text change target input" data-fn-change="changed" data-fn-input="labelChanged" value="" autocomplete="off">
</div>
<div class="tcb-button-link-container">
<div class="btn-link mt-10"></div>
</div>
<div class="tcb-menu-display-container mt-10">
<hr>
<div class="tcb-menu-display mt-5"></div>
</div>

View File

@@ -0,0 +1,49 @@
<div class="tve-modal-content instance-options menu-options step1">
<span class="tcb-modal-title"><?php echo __( 'What type of menu would you like to build?', 'thrive-cb' ); ?></span>
<div class="flex-mid space-between tcb-modal-content">
<a href="#" class="menu-type p-10 click<#=this.model.get('type')==='regular' ? ' selected' : ''#>" data-fn="selectOption" data-attr="type" data-value="regular">
<span><?php echo __( 'Standard Dropdown Menu', 'thrive-cb' ); ?></span>
<img src="<?php echo tve_editor_css( 'images/custom-menu-thumbs/standard.jpg' ) ?>" alt="">
</a>
<a href="#" class="menu-type p-10 click<#=this.model.get('type')==='mega' ? ' selected' : ''#>" data-fn="selectOption" data-attr="type" data-value="mega">
<span><?php echo __( 'Simple Mega Menu', 'thrive-cb' ); ?></span>
<img src="<?php echo tve_editor_css( 'images/custom-menu-thumbs/megamenu.png' ) ?>" alt="">
</a>
</div>
<div class="flex-end flex tcb-modal-footer goto-2" style="visibility: hidden">
<button type="button" class="tve-button medium green click white-text" data-fn="step2">
<#=this.hasWordpressMenus() ? <?php echo json_encode( __( 'Continue', 'thrive-cb' ) ); ?> : <?php echo json_encode( __( 'Select Template', 'thrive-cb' ) ); ?>#>
</button>
</div>
</div>
<div class="tve-modal-content instance-options menu-options step2" style="display: none">
<span class="tcb-modal-title"><?php echo __( 'What menu source would you like to use?', 'thrive-cb' ); ?></span>
<div class="flex-mid space-around tcb-modal-content">
<a href="#" class="item option click<#=this.model.get('source')==='custom' ? ' selected' : ''#>" data-fn="selectOption" data-attr="source" data-value="custom">
<?php tcb_icon( 'plus-circle-regular' ) ?>
<p class="mt-20"><?php echo __( 'Create a Custom Menu', 'thrive-cb' ); ?></p>
</a>
<a href="#" class="item option click<#=this.model.get('source')==='wp' ? ' selected' : ''#>" data-fn="selectOption" data-attr="source" data-value="wp">
<?php tcb_icon( 'wordpress-brands' ) ?>
<p class="mt-20"><?php echo __( 'Use a WordPress Menu', 'thrive-cb' ); ?></p>
</a>
</div>
<div class="flex-mid space-between tcb-modal-footer">
<button type="button" class="tve-button medium grey white-text click" data-fn="step1">
<?php echo __( 'Back', 'thrive-cb' ); ?>
</button>
<div class="wp" style="display: none">
<select class="change choose-menu" data-fn="selectOption" data-attr="menu_id">
<option disabled selected><?php echo __( 'Choose a WordPress Menu', 'thrive-cb' ); ?></option>
<#_.each(this.menus, function(item){#>
<option value="<#=item.value#>"
<#=item.value==this.model.get('menu_id') ? ' selected' : ''#>><#=item.name#></option>
<#}, this)#>
</select>
</div>
<button type="button" class="tve-button medium green click white-text goto-3" data-fn="done" style="display: none">
<?php echo __( 'Select Template', 'thrive-cb' ); ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,21 @@
<div class="panel-text">
<#= this.model.config.label #>
</div>
<style class="preview-style" type="text/css"></style>
<div class="tve-style-options p-0 mt-0">
<div class="flex-mid p-5 tcb-text-center no-templates" style="flex: 0 0 100%; display: none"><?php echo __( 'This menu has no item styles. You have to choose a menu template to populate this list - each menu template comes with a default set of styled menu items.', 'thrive-cb' ); ?></div>
<# _.each(this.model.config.items, function(set, setIndex) { #>
<div class="flex-mid p-5 style-set set-<#=set.id#>" style="flex: 0 0 100%"><#=set.name#></div>
<div class="flex-mid wrap style-set set-<#=set.id#>">
<# _.each( set.styles, function( item, index ) { #>
<# if ( item ) { #>
<div class="tve-select-item split ha wa click menu-item p-5 mb-0" data-value="<#=setIndex + '::' + index #>" data-fn="select">
<ul class="menu-preview">
<li class="li-<#=index#>"><a href="javascript:void(0)"><span class="tve-disabled-text-inner"><#=item.name#></span></a></li>
</ul>
</div>
<# } #>
<#}, this ) #>
</div>
<# }, this); #>
</div>

View File

@@ -0,0 +1,12 @@
<div class="control-grid">
<div class="label">
<#= this.model.config.label #>
</div>
<div class="input tve-datepicker-wrapper">
<input type="text" class="tve-input-control tve-datepicker-input change" data-fn="changed" <#= this.model.extra_attrs #> />
<div class="thrv-datepicker-icon click" data-fn="date_trigger_click">
<?php tcb_icon( 'calendar-range' ); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,24 @@
<div class="control-grid">
<div class="decoration-boxes">
<div class="tve-decoration-side click top" data-fn="decorationSide" data-value="top"></div>
<div class="tve-decoration-side click left" data-fn="decorationSide" data-value="left"></div>
<div class="tve-decoration-side click right" data-fn="decorationSide" data-value="right"></div>
<div class="tve-decoration-side click default bottom" data-fn="decorationSide" data-value="bottom"></div>
<div class="tve-decoration-side disabled center" data-value=""></div>
</div>
<div class="decoration-type input">
<select class="tve-select change tcb-base-divider-control mt-10" data-fn="chooseType">
<option value="none"><?php echo __( 'None', 'thrive-cb' ) ?></option>
<option value="slanted"><?php echo __( 'Slanted edge', 'thrive-cb' ) ?></option>
<option value="pointer"><?php echo __( 'Pointer', 'thrive-cb' ) ?></option>
<option value="divider"><?php echo __( 'Divider', 'thrive-cb' ) ?></option>
<option value="fancy_divider"><?php echo __( 'Fancy divider', 'thrive-cb' ) ?></option>
</select>
</div>
</div>
<div class="tve-control tve-sub-control tcb-template-control" style="display:none"></div>
<div class="tve-control tve-sub-control tve-slanted-control" style="display:none"></div>
<div class="tve-control tve-sub-control tve-pointer-control" style="display:none"></div>
<div class="tve-control tve-sub-control tve-divider-control" style="display:none"></div>
<div class="tve-control tve-sub-control tve-fancydivider-control" style="display:none"></div>

View File

@@ -0,0 +1,37 @@
<div class="row">
<div class="col-xs-6">
<div class="group-label grey-text">
<?php echo __( 'Style', 'thrive-cb' ) ?>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="button-group-holder">
<div class="tve-btn-group">
<div class="btn-inline tve-btn icon-medium click padded tve-divider-zigzag" data-fn="setStyle" data-style="zigzag" title="Zig Zag">
<svg class="tcb-icon tcb-icon-open-lightbox">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-S1"></use>
</svg>
</div>
<div class="btn-inline tve-btn click icon-medium padded tve-divider-curves" data-fn="setStyle" data-style="curves" title="Curves">
<svg class="tcb-icon tcb-icon-open-lightbox">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-S2"></use>
</svg>
</div>
</div>
</div>
</div>
</div>
<div class="tve-divider-sliders">
<div class="row">
<div class="col-xs-12">
<div class="tve-control tve-divider-width"></div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="tve-control tve-divider-height"></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,15 @@
<div class="row">
<div class="col-xs-12">
<div class="tve-control tve-pointer-width"></div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="tve-control tve-pointer-height"></div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="tve-control tve-pointer-inverted-angle mt-10"></div>
</div>
</div>

View File

@@ -0,0 +1,6 @@
<div class="row">
<div class="col-xs-12">
<div class="tve-control tve-slanted-angle"></div>
<div class="tve-control tve-inverted-angle mt-10"></div>
</div>
</div>

View File

@@ -0,0 +1,24 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/3/2018
* Time: 7:27 AM
*/
?>
<div class="row">
<div class="col-xs-12 grey-text mt-10">
<div class="tve-control tve-shape-svg-height"></div>
</div>
<div class="col-xs-12 grey-text mt-10">
<div class="tve-control tve-shape-svg-change-dir"></div>
</div>
<div class="col-xs-12 grey-text mt-10">
<div class="tve-control tve-shape-svg-bring-front"></div>
</div>
<div class="col-xs-12 mt-10">
<div class="tve-control tve-shape-svg-color"></div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<div class="row">
<div class="col-xs-12">
<div class="tve-control tve-shape-svg-height"></div>
</div>
<div class="col-xs-12 grey-text mt-10">
<div class="tve-control tve-shape-svg-change-dir"></div>
</div>
<div class="col-xs-12 grey-text mt-10">
<div class="tve-control tve-shape-svg-invert"></div>
</div>
<div class="col-xs-12 grey-text mt-10">
<div class="tve-control tve-shape-svg-bring-front"></div>
</div>
<div class="col-xs-12 mt-10">
<div class="tve-control tve-shape-svg-color"></div>
</div>
</div>

Some files were not shown because too many files have changed in this diff Show More