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,14 @@
<div class="tcb-meta-boxes-modal-title"><?php echo __( 'WordPress settings', 'thrive-cb' ); ?></div>
<div class="ml-30 mr-30 mt-20 mb-20">
<select class="tcb-meta-boxes-select" name="meta-boxes-select" multiple></select>
</div>
<div class="tcb-editor-meta-boxes-wrapper">
<iframe id="tcb-editor-meta-boxes-iframe" data-src="<?php echo add_query_arg( TCB_Editor_Meta_Boxes::FLAG, 1, get_edit_post_link() ); ?>"></iframe>
</div>
<div class="tcb-meta-boxes-modal-footer">
<button class="tve-button medium grey ghost click" data-fn="close"><?php echo __( 'Cancel', 'thrive-cb' ); ?></button>
<button class="tve-button medium green click" data-fn="triggerSave"><?php echo __( 'Save', 'thrive-cb' ); ?></button>
</div>

View File

@@ -0,0 +1 @@
<div class="tve-lg-api-connections"></div>

View File

@@ -0,0 +1,33 @@
<div class="error-container"></div>
<div style="position: absolute;top: 0;" id="blocks-lightbox-drop-panels"></div>
<div class="tve-modal-content">
<div id="cb-cloud-menu" class="modal-sidebar">
<div class="lp-search">
<?php tcb_icon( 'search-regular' ); ?>
<input type="text" data-source="search" class="keydown" data-fn="filter" placeholder="<?php echo esc_html__( 'Search', 'thrive-cb' ); ?>"/>
<?php tcb_icon( 'close2', false, 'sidebar', 'click', [ 'data-fn' => 'domClearSearch' ] ); ?>
</div>
<div class="lp-menu-wrapper">
<div id="block-source-select-wrapper">
<span class="text-12"><?php echo esc_html__( 'Filter blocks:', 'thrive-cb' ); ?></span>
<select id="block-source-select" class="change" data-fn="sourceChanged"></select>
</div>
<div class="sidebar-title">
<p><?php echo esc_html__( 'Block types', 'thrive-cb' ); ?></p>
<span class="tcb-hl"></span>
</div>
<div id="lp-groups-wrapper"></div>
</div>
</div>
<div id="cb-cloud-templates" class="modal-content">
<div class="tcb-modal-tabs flex-center space-between">
<span id="lp-blk-pack-title" class="tcb-modal-title ml-20"></span>
<span data-fn="clearCache" class="tcb-refresh mr-30 click flex-center">
<span class="mr-10"><?php tcb_icon( 'sync-regular' ); ?></span>
<span class="mr-10"><?php echo esc_html__( 'Refresh from cloud', 'thrive-cb' ); ?></span>
</span>
</div>
<div id="lp-blk-pack-description" class="mb-30 ml-20"></div>
<div id="cb-pack-content"></div>
</div>
</div>

View File

@@ -0,0 +1,19 @@
<h2 class="tcb-modal-title"><?php echo esc_html__( 'Set error message' ) ?></h2>
<div class="tcb-fields-error control-grid wrap"></div>
<div class="control-grid">
<button type="button" class="tve-button text-only click" data-fn="restore_defaults">
<?php tcb_icon( 'close' ) ?>
<?php echo esc_html__( 'Restore errors to default' ) ?>
</button>
</div>
<div class="tcb-modal-footer">
<button type="button" class="tcb-left tve-button text-only tcb-modal-cancel">
<?php echo esc_html__( 'Cancel', 'thrive-cb' ) ?>
</button>
<button type="button" class="tcb-right medium tve-button tcb-modal-save">
<?php echo esc_html__( 'Save', 'thrive-cb' ) ?>
</button>
</div>

View File

@@ -0,0 +1,46 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="error-container"></div>
<div class="tve-modal-content">
<div id="cb-cloud-menu" class="modal-sidebar">
<div class="fixed top">
<div class="lp-search">
<?php tcb_icon( 'search-regular' ); ?>
<input type="text" data-source="search" class="keydown" data-fn="filter" placeholder="<?php echo esc_html__( 'Search', 'thrive-cb' ); ?>"/>
<?php tcb_icon( 'close2', false, 'sidebar', 'click', [ 'data-fn' => 'domClearSearch' ] ); ?>
</div>
</div>
<div class="lp-menu-wrapper mt-30">
<div class="sidebar-title">
<p><?php echo esc_html__( 'Type', 'thrive-cb' ); ?></p>
<span class="tcb-hl"></span>
</div>
<div id="types-wrapper" class="mt-10"></div>
</div>
</div>
<div id="cb-cloud-templates" class="modal-content">
<div class="tcb-modal-tabs flex-center space-between">
<span id="cb-pack-title" class="tcb-modal-title"><?php echo __( 'Templates', 'thrive-cb' ) ?></span>
<span data-fn="clearCache" class="tcb-refresh mr-30 click flex-center">
<span class="mr-10"><?php tcb_icon( 'sync-regular' ); ?></span>
<span class="mr-10"><?php echo __( 'Refresh from cloud', 'thrive-cb' ); ?></span>
</span>
</div>
<div class="warning-ct-change">
<div class="tcb-notification info-text">
<div class="tcb-warning-label"><?php echo esc_html__( 'Warning!', 'thrive-cb' ); ?></div>
<div class="tcb-notification-content"></div>
</div>
</div>
<div id="cb-pack-content"></div>
</div>
</div>

View File

@@ -0,0 +1,49 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$name_placeholder = '<span class="element-name"></span>';
?>
<div class="tcb-modal-tabs flex-center space-between">
<span class="tcb-modal-title ml-10">
<?php if ( defined( 'TVE_STAGING_TEMPLATES' ) && TVE_STAGING_TEMPLATES ) : ?>
<span style="color: #810000"><?php echo esc_html__( 'Warning! The templates listed here are only used for testing purposes', 'thrive-cb' ); ?></span>
<?php else : ?>
<?php echo sprintf( esc_html( __( 'Choose %s Template', 'thrive-cb' ) ), $name_placeholder ); ?>
<?php endif ?>
</span>
<span data-fn="clearCache" class="tcb-refresh mr-30 click flex-center">
<span class="mr-10"><?php tcb_icon( 'sync-regular' ); ?></span>
<span class="mr-10"><?php echo esc_html__( 'Refresh from cloud', 'thrive-cb' ); ?></span>
</span>
</div>
<div class="error-container tcb-absolute"></div>
<div class="warning-ct-change ml-0">
<div class="tcb-notification info-text">
<div class="tcb-warning-label"><?php echo esc_html__( 'Warning!', 'thrive-cb' ); ?></div>
<div class="tcb-notification-content"></div>
</div>
</div>
<div class="tve-templates-wrapper">
<div class="content-templates" id="cloud-templates"></div>
</div>
<div class="tcb-modal-footer">
<button type="button" class="justify-self-start tve-button medium tcb-modal-back grey" style="display: none"><?php echo esc_html__( 'Back', 'thrive-cb' ); ?></button>
<div class="tcb-confirmation-footer">
<span class="tcb-confirmation-message"><?php echo esc_html__( 'Please confirm that you want to replace this template', 'thrive-cb' ); ?></span>
<button type="button" class="tcb-right tve-button medium tcb-modal-save ml-25">
<?php echo esc_html__( 'Replace Template', 'thrive-cb' ); ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<div class="title"></div>
<div class="description"></div>
<div class="buttons-wrapper">
<button class="cancel-action click" data-fn="cancelAction">
<?php echo esc_html__( 'No, Cancel', 'thrive-cb' ); ?>
</button>
<button class="apply-action click" data-fn="applyAction"></button>
</div>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div id="tcb-conditional-display"></div>
<div class="tcb-modal-footer">
<button type="button" class="green tcb-modal-save tcb-right tve-button">
<?php echo esc_html__( 'Save conditions', 'thrive-cb' ); ?>
</button>
</div>

View File

@@ -0,0 +1,69 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 2/15/2019
* Time: 12:26 PM
*/
?>
<div class="error-container"></div>
<div class="cb-modal-step" data-step="1">
<div class="tve-modal-content">
<div id="cb-cloud-menu" class="modal-sidebar tcb-hidden">
<select id="cb-pack-select" class="change" data-fn="dom_pack_changed"></select>
<span><?php echo esc_html__( 'CATEGORY', 'thrive-cb' ); ?></span>
<div id="cb-pack-categories"></div>
<div class="cb-filter-wrapper">
<span>
<?php echo esc_html__( 'Block types', 'thrive-cb' ); ?>
</span>
<div>
<input type="text" id="filter_groups" class="keyup" data-fn-keyup="filter_groups" placeholder="<?php echo esc_html__( 'Filter Blocks...', 'thrive-cb' ); ?>">
<span>
<?php tcb_icon( 'search-regular', false, 'sidebar', 'cb-search-icon' ); ?>
<?php tcb_icon( 'times-regular', false, 'sidebar', 'cb-clear-search click', [ 'data-fn' => 'dom_clear_groups_search' ] ); ?>
</span>
</div>
</div>
<div class="cb-groups-wrapper">
<div id="cb-pack-groups"></div>
<a href="javascript:void(0);" class="cb-clear-search click" data-fn="dom_clear_groups_search"><?php echo esc_html__( 'Show All', 'thrive-cb' ); ?></a>
</div>
</div>
<div id="cb-cloud-templates" class="modal-content">
<div id="cb-pack-title" class="tcb-modal-title"></div>
<div id="cb-pack-content"></div>
</div>
</div>
</div>
<div class="cb-modal-step" data-step="2" style="display: none;">
<div class="cb-preview-bar">
<div class="cb-preview-title">
<a href="javascript:void(0);" id="cb-frame-favorite" class="click" data-id="" data-fn="dom_prev_fav">
<span data-tooltip=""></span>
</a>
<div class="cb-separator"></div>
<div id="cb-frame-title"></div>
</div>
</div>
<div class="cb-iframe-wrapper">
<iframe id="cb-preview-frame"></iframe>
</div>
<div class="cb-steps">
<div class="tcb-left">
<a class="tve-button click" href="javascript:void(0);" data-fn="dom_go_to_step" data-step="1">
<span class="cb-back"><?php tcb_icon( 'chevron-up-regular' ); ?></span>
<span><?php echo esc_html__( 'Back to Blocks', 'thrive-cb' ) ?></span>
</a>
</div>
<div class="tcb-right">
<button id="cb-preview-insert-block" type="button" class="tve-button medium click" data-fn="dom_insert_into_content">
<?php tcb_icon( 'arrow-alt-to-bottom-light' ); ?>
<div class="cb-separator"></div>
<?php echo esc_html__( 'Insert Into Content', 'thrive-cb' ) ?>
</button>
</div>
</div>
</div>

View File

@@ -0,0 +1,28 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<span class="tcb-modal-title m-0"><?php echo esc_html__( 'Export Content', 'thrive-cb' ); ?></span>
<div class="error-container" style="display: none;"></div>
<div class="tve-template-image">
<div class="tvd-input-field">
<input type="text" id="tve-export-content-name" required>
<label for="tve-export-content-name"><?php echo esc_html__( 'Content Name', 'thrive-cb' ); ?></label>
</div>
</div>
<div class="tcb-modal-footer m-20 p-0 flex-end">
<button type="button" class="tcb-right tve-button medium green tcb-modal-save">
<?php echo esc_html__( 'Download File', 'thrive-cb' ); ?>
</button>
</div>

View File

@@ -0,0 +1,43 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="error-container"></div>
<div class="tve-modal-content">
<div id="cb-cloud-menu" class="modal-sidebar">
<div class="lp-search">
<?php tcb_icon( 'search-regular' ); ?>
<input type="text" data-source="search" class="keydown" data-fn="filter" placeholder="<?php echo esc_html__( 'Search', 'thrive-cb' ); ?>"/>
<?php tcb_icon( 'close2', false, 'sidebar', 'click', [ 'data-fn' => 'domClearSearch' ] ); ?>
</div>
<div class="lp-menu-wrapper">
<div class="sidebar-title mt-30">
<p><?php echo esc_html__( 'Type', 'thrive-cb' ); ?></p>
<span class="tcb-hl"></span>
</div>
<div id="lp-groups-wrapper"></div>
</div>
<div class="fixed bottom"></div>
</div>
<div id="cb-cloud-templates" class="modal-content">
<span id="lp-blk-pack-title" class="tcb-modal-title"><?php echo __( 'Templates', 'thrive-cb' ); ?></span>
<div id="cb-pack-content">
<div class="tve-symbols-wrapper">
<div class="text-no-symbols">
<?php echo esc_html__( "Oups! We couldn't find anything called " ) ?><span class="search-word"></span><?php echo esc_html__( '. Maybe search for something else ?' ); ?>
</div>
</div>
<div class="tve-content-templates-wrapper">
<div class="text-no-templates" style="display: none;">
<?php echo esc_html__( "Oups! We couldn't find anything called " ) ?><span class="search-word"></span><?php echo esc_html__( '. Maybe search for something else ?' ); ?>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<h2 class="tcb-modal-title ml-0"><?php echo esc_html__( 'Insert Custom HTML into the Page', 'thrive-cb' ); ?></h2>
<div class="row pt-10">
<div class="col col-xs-12">
<?php echo esc_html__( 'Type or paste HTML code below.', 'thrive-cb' ); ?>
</div>
</div>
<div class="row pt-10">
<div class="col col-xs-12">
<div class="tcb-custom-html-code-wrapper">
<textarea id="tcb-custom-html-code"></textarea>
</div>
</div>
</div>
<div class="tcb-modal-footer flex-end pr-0">
<button type="button" class="tcb-right tve-button medium green tcb-modal-save"><?php echo esc_html__( 'Save', 'thrive-cb' ); ?></button>
</div>

View File

@@ -0,0 +1,109 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if (! defined('ABSPATH')) {
exit; // Silence is golden!
}
?>
<h2 class="tcb-modal-title">
<?php echo esc_html__('Compose Email', 'thrive-cb'); ?>
</h2>
<div class="tve-email-setup">
<div class="tve-advanced-controls m-0">
<div class="dropdown-header open" data-prop="primary">
<span class="dropdown-title"><?php echo esc_html__('Primary Email', 'thrive-cb'); ?></span>
</div>
<div class="dropdown-content pt-0 pb-0" data-prop="primary">
<div class="input-container-with-label mt-5">
<span class="tve-email-label"><?php echo esc_html__('To', 'thrive-cb'); ?></span>
<input type="text" class="tve-email-data change input" data-fn="setValue" data-prop="to">
<span class="click tve-add-more ml-5" data-fn="toggleRecipients">+ CC/BCC</span>
</div>
<span class="tcb-error" data-error-prop="to"></span>
<div class="tve-email-more-recipients tcb-hidden">
<div class="input-container-with-label mt-5">
<span class="tve-email-label"><?php echo esc_html__('CC', 'thrive-cb'); ?></span>
<input type="text" class="tve-email-data change input" data-fn="setValue" data-prop="cc">
</div>
<span class="tcb-error" data-error-prop="cc"></span>
<div class="input-container-with-label mt-5">
<span class="tve-email-label"><?php echo esc_html__('BCC', 'thrive-cb'); ?></span>
<input type="text" class="tve-email-data change input" data-fn="setValue" data-prop="bcc">
</div>
<span class="tcb-error" data-error-prop="bcc"></span>
</div>
<div class="input-container-with-label mt-5">
<span class="tve-email-label"><?php echo esc_html__('From name', 'thrive-cb'); ?></span>
<input type="text" class="tve-email-data change input" data-fn="setValue" data-prop="from_name">
</div>
<span class="tcb-error" data-error-prop="from_name"></span>
<div class="input-container-with-label mt-5">
<span class="tve-email-label tcb-relative">
<?php echo esc_html__('From email', 'thrive-cb'); ?>
<span class="click tve-from-email-info" data-paneltlt-hover><?php tcb_icon('info-circle-solid'); ?></span>
<span class="tve-from-email-tooltip-target"></span>
</span>
<input type="text" class="tve-email-data change input" data-fn="setValue" data-prop="from_email">
</div>
<span class="tcb-error" data-error-prop="from_email"></span>
<div class="input-container mt-15">
<input type="text" class="tve-email-data change input prevent-focus supports-shortcode" data-fn="setValue" data-prop="email_subject">
</div>
<div class="input-container mt-15">
<textarea class="tve-email-data change input prevent-focus supports-shortcode" data-fn="setValue" data-prop="email_message"></textarea>
</div>
<div class="tve-email-shortcodes mt-10 mb-10">
<span class="tve-email-label mr-15 inline tcb-relative">
<?php echo esc_html__('Add shortcodes', 'thrive-cb'); ?>
<span class="click tve-email-shortcode-info" data-paneltlt-hover><?php tcb_icon('info-circle-solid'); ?></span>
<span class="tve-email-shortcode-tooltip-target"></span>
</span>
<div class="tve-email-shortcode">
<select class="tve-select-shortcode"></select>
<span class="tve-lg-shortcode-select-arrow"><?php tcb_icon('a_down'); ?></span>
</div>
<div class="tve-email-add-shortcode click tve-button ml-15 ghost blue" data-fn="addShortcode" data-target="email_message"><?php echo esc_html__('Insert Field', 'thrive-cb'); ?></div>
</div>
</div>
</div>
<div class="tve-advanced-controls m-0 mt-15">
<div class="dropdown-header" data-prop="confirmation">
<span class="dropdown-title"><?php echo esc_html__('Send confirmation email to user that submitted the form', 'thrive-cb'); ?></span>
<div class="tve-email-enable-confirmation"></div>
</div>
<div class="dropdown-content pt-0 pb-0" data-prop="confirmation">
<div class="input-container mt-5">
<input type="text" class="tve-email-data change input prevent-focus supports-shortcode" data-fn="setValue" data-prop="email_confirmation_subject">
</div>
<div class="input-container mt-15">
<textarea class="tve-email-data change input prevent-focus supports-shortcode" data-fn="setValue" data-prop="email_confirmation_message"></textarea>
</div>
<div class="tve-email-shortcodes mt-10 mb-10" data-prop="confirmation">
<span class="tve-email-label mr-15 inline tcb-relative">
<?php echo esc_html__('Add shortcodes', 'thrive-cb'); ?>
<span class="click tve-email-shortcode-info-2" data-paneltlt-hover><?php tcb_icon('info-circle-solid'); ?></span>
<span class="tve-email-shortcode-tooltip-target-2"></span>
</span>
<div class="tve-email-shortcode">
<select class="tve-select-shortcode"></select>
<span class="tve-lg-shortcode-select-arrow"><?php tcb_icon('a_down'); ?></span>
</div>
<div class="tve-email-add-shortcode click tve-button ml-15 ghost blue" data-fn="addShortcode" data-target="email_confirmation_message"><?php echo esc_html__('Insert Field', 'thrive-cb'); ?></div>
</div>
</div>
</div>
</div>
<div class="tcb-modal-footer">
<button type="button" class="justify-self-start tve-button medium tcb-modal-cancel ghost grey"><?php echo esc_html__('Cancel', 'thrive-cb'); ?></button>
<button type="button" class="tcb-right tve-button medium tcb-modal-save">
<?php echo esc_html__('Save and Apply', 'thrive-cb'); ?>
</button>
</div>

View File

@@ -0,0 +1,25 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tcb-modal-tabs flex-center space-between">
<span class="tcb-modal-title"><?php echo esc_html__( 'Choose', 'thrive-cb' ); ?> <span class="element-name"></span></span>
<span data-fn="clearCache" class="tcb-refresh mr-30 click flex-center">
<span class="mr-10"><?php tcb_icon( 'sync-regular' ); ?></span>
<span><?php echo esc_html__( 'Refresh from cloud', 'thrive-cb' ); ?></span>
</span>
</div>
<div class="tve-templates-wrapper ml-50">
<div id="cloud-templates" class="content-templates tve-templates-container pb-10"></div>
</div>
<div class="tcb-modal-footer flex space-between" style="position: fixed;">
<button type="button" class="tcb-left tve-button medium gray tcb-modal-cancel"><?php echo esc_html__( 'Cancel', 'thrive-cb' ); ?></button>
<button type="button" class="tcb-right tve-button medium green tcb-modal-save"><?php echo esc_html__( 'Choose Divider', 'thrive-cb' ); ?></button>
</div>

View File

@@ -0,0 +1,42 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
$attributes = tcb_editor()->lcns_attributes();
?>
<div class="tve-license-modal-content grace-period">
<img class="tve-license-icon" src="<?php echo TVE_DASH_URL ?>/css/images/licensing/licensing-<?= $attributes['source'] ?>-grace-period@2x.webp" alt="License icon"/>
<div>
<h3>
<?php echo sprintf( esc_html( __( 'Heads up! Your %s license has expired', 'thrive-cb' ) ), $attributes['product'] ); ?>
</h3>
<p><?php _e( "An active license is needed to access your software or edit your content. Youll also get access to new features, updates, security improvements, templates and support. Your visitors will still be able to access any content you've created", 'thrive-cb' ); ?></p>
<p>
<?php
echo sprintf(
esc_html__( 'You may close this lightbox and continue using your software during your grace period for another %s.', 'thrive-cb' ),
'<strong>' . TD_TTW_User_Licenses::get_instance()->get_grace_period_left( $attributes['product'] ) . __( ' days', 'thrive-cb' ) . '</strong>'
)
?>
</p>
<p>
<?php echo __( "Doesn't sound right? Your license might need to be refreshed.", 'thrive-cb' ); ?>
<a href="<?php echo TD_TTW_User_Licenses::get_instance()->get_recheck_url(); ?>">
<?php echo __( 'Click here to refresh your license now.', 'thrive-cb' ) ?>
</a>
</p>
<div class="tve-license-buttons">
<button class="tve-button-empty" onclick="window.open('https://help.thrivethemes.com/en/articles/8223498-what-happens-when-your-thrive-product-license-expires', '_blank')"><?php _e( 'Learn more', 'thrive-cb' ); ?></button>
<button class="tve-button-action" onclick="window.open('<?php echo $attributes['link'] ?>', '_blank')"><?php _e( 'Renew now', 'thrive-cb' ); ?></button>
</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!
}
?>
<h2 class="tcb-modal-title"><?php echo esc_html__( 'Choose Header', 'thrive-cb' ); ?></h2>

View File

@@ -0,0 +1,62 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Help cards content
*/
$items = array(
array(
'title' => __( 'Knowledge Base', 'thrive-cb' ),
'picture' => tve_editor_url( 'editor/css/images/help-corner/knowledge-base.svg' ),
'picture-alt' => __( 'Knowledge Base Item Picture', 'thrive-cb' ),
'text' => array(
__( 'Search our extensive knowledge base for “how-to” articles and instructions.', 'thrive-cb' ),
),
'class' => 'knowledge-base',
),
array(
'title' => __( 'Thrive University', 'thrive-cb' ),
'picture' => tve_editor_url( 'editor/css/images/help-corner/thrive-university.svg' ),
'picture-alt' => __( 'Thrive University Item Picture', 'thrive-cb' ),
'text' => array(
__( 'Take one of our online courses on website building and online marketing.', 'thrive-cb' ),
),
'class' => 'thrive-university',
),
array(
'title' => __( 'Get Support', 'thrive-cb' ),
'picture' => tve_editor_url( 'editor/css/images/help-corner/support.svg' ),
'picture-alt' => __( 'Support Item Picture', 'thrive-cb' ),
'text' => array(
__( 'Contact our friendly support team who will help you with any issues or questions.', 'thrive-cb' ),
),
'class' => 'support',
),
);
?>
<h2><?php echo esc_html__( 'Help Corner', 'thrive-cb' ); ?></h2>
<div class="parent">
<?php foreach ( $items as $item ) : ?>
<div class="<?php echo esc_attr( $item['class'] ); ?> click item" data-fn="chooseLink">
<img src="<?php echo esc_url( $item['picture'] ); ?>" alt="<?php echo esc_attr( $item['picture-alt'] ); ?>"/>
<div class="item-title">
<span><?php echo esc_html( $item['title'] ); ?></span>
</div>
<div class="item-text">
<?php foreach ( $item['text'] as $text ) : ?>
<p><?php echo esc_html( $text ); ?></p>
<?php endforeach; ?>
</div>
</div>
<?php endforeach; ?>
</div>

View File

@@ -0,0 +1,68 @@
<?php
$items = array(
array(
'picture' => tve_editor_url( 'editor/css/images/help-corner-lightbox/group-83.png' ),
'picture-alt' => __( 'Change Template', 'thrive-cb' ),
'text' => array(
__( 'Quickly add new elements or change the template', 'thrive-cb' ),
),
'class' => 'change-template',
),
array(
'picture' => tve_editor_url( 'editor/css/images/help-corner-lightbox/group-84.png' ),
'picture-alt' => __( 'Select any element', 'thrive-cb' ),
'text' => array(
__( 'Select any element in the canvas and customize it\'s properties ', 'thrive-cb' ),
),
'class' => 'select-element',
),
array(
'picture' => tve_editor_url( 'editor/css/images/help-corner-lightbox/group-29.png' ),
'picture-alt' => __( 'Create multiple selections', 'thrive-cb' ),
'text' => array(
__( 'Create multiple selections for moving/styling', 'thrive-cb' ),
),
'class' => 'create-selections',
),
);
?>
<div class="modal-help-corner">
<div class="slider-help-corner">
<?php foreach ( $items as $item ) : ?>
<div class="slide-content">
<div class="slide">
<div class="slide-image">
<img src="<?php echo esc_url( $item['picture'] ); ?>" alt="<?php echo esc_attr( $item['picture-alt'] ); ?>"
class="<?php echo esc_attr( $item['class'] ); ?> "/>
</div>
<div class="slide-text">
<?php foreach ( $item['text'] as $text ) : ?>
<p><?php echo esc_html( $text ); ?></p>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="help-modal-navigation">
<div class="circle-arrow click" data-fn="prevSlide"><?php tcb_icon( 'long-arrow-right-light' ) ?></div>
<div class="slider-dots-help">
<span class="dot-content click active" data-fn="switchSlide" data-slide="0"></span>
<span class="dot-content click" data-fn="switchSlide" data-slide="1"></span>
<span class="dot-content click" data-fn="switchSlide" data-slide="2"></span>
</div>
<div class="circle-arrow click" data-fn="nextSlide"><?php tcb_icon( 'long-arrow-right-light' ) ?></div>
</div>
<div class="flex-row center-text">
<button class="open-help-corner click" data-fn="openHelpCorner">
<?php tcb_icon( 'help-corner' ) ?>
<?php echo __( 'Help Corner', 'thrive-cb' ); ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,101 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package TCB2.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tve-modal-content">
<div id="cb-cloud-menu" class="modal-sidebar">
<div class="fixed top">
<div class="icons-input">
<?php tcb_icon( 'search-regular' ); ?>
<input type="text" class="tve-search-icon keyup click" data-fn="searchIcon" data-fn-click="focusSearch" data-source="search" placeholder="<?php echo esc_html__( 'Search', 'thrive-cb' ); ?>"/>
<?php tcb_icon( 'close2', false, 'sidebar', 'click tcb-hidden', [ 'data-fn' => 'domClearSearch' ] ); ?>
</div>
</div>
<div class="icons-menu-wrapper">
<div class="icons-label-wrapper p-10 pl-20">
<span class="icons-label"><?php echo esc_html__( 'Icon style', 'thrive-cb' ); ?></span>
<span class="separator"></span>
</div>
<div class="tve-icon-styles tve-icon-filters">
<div class="tve-icon-pack click mt-5 tve-selected tve-icon-default-style" data-fn="filterByStyle"><span><?php echo esc_html__( 'All ', 'thrive-cb' ) ?></span></div>
</div>
<div class="icons-label-wrapper p-10 pl-20">
<span class="icons-label"><?php echo esc_html__( 'Icon packs', 'thrive-cb' ); ?></span>
<span class="separator"></span>
</div>
<div class="tve-icon-packs tve-icon-filters">
</div>
</div>
<div class="fixed bottom mt-10 mb-10">
<div class="tve-icon-settings click pr-10 mb-10 mt-10 pl-20" data-fn="showSettings">
<hr>
<div class="pt-10 pb-10 icons-wrapper">
<?php tcb_icon( 'cog-light' ); ?>
<span class="icons-label"><?php echo esc_html__( 'Manage icon packs', 'thrive-cb' ) ?></span>
<?php tcb_icon( 'exclamation-circle-solid', false, 'sidebar', 'kit-warning', [ "data-tooltip" => "Something is wrong with your Font Awesome setup, click here to resolve", "data-side" => "top", "data-width" => "15%" ] ); ?>
</div>
<hr>
</div>
</div>
</div>
<div id="tve-icon-content" class="modal-content">
<span class="tcb-modal-title"><?php echo esc_html__( 'Icon library', 'thrive-cb' ); ?></span>
<div id="icon-pack-content">
<div class="choose-icon">
<span><?php echo esc_html__( 'Choose an icon', 'thrive-cb' ); ?></span>
<span class="tve-icons-number"></span>
</div>
<div class="tve-icons-wrapper pt-5">
<div class="tve-icons-before" style="height: 4000px;"></div>
<div class="tve-icons-rendered"></div>
<div class="tve-icons-after"></div>
</div>
</div>
<div class="tcb-modal-footer flex-end pr-40">
<button type="button" class="tve-button tcb-modal-save">
<?php echo esc_html__( 'Select', 'thrive-cb' ); ?>
</button>
</div>
</div>
<div id="tve-icon-settings" class="tcb-hidden modal-content">
<div class="tve-fa-pro-settings">
<span class="tcb-modal-title"><?php echo esc_html__( 'Font Awesome Pack', 'thrive-cb' ); ?></span>
<div class="tcb-modal-content ml-50">
<span>
<?php echo esc_html__( 'To enable Font Awesome Pro icons, paste your kit ID or script below. Once your kit has been accepted, your new icons will be available under the matching filters.', 'thrive-cb' ); ?>
</span>
<br>
<a href="https://thrivethemes.com/tkb_item/how-to-add-font-awesome-pro-icons-in-thrive-architect/" target="_blank" class="mt-15 mb-35"><?php echo esc_html__( 'Learn how to use Font Awesome Pro here', 'thrive-cb' ); ?></a>
<div class="icons-input white tve-fa-input pr-0">
<input type="text" class="change input tve-fa-kit" data-fn="toggleProSettings" placeholder="<?php echo esc_html__( 'Add your Font Awesome Pro Kit', 'thrive-cb' ); ?>">
<?php tcb_icon( 'check-regular', false, 'sidebar', 'click tcb-hidden kit-action', [ 'data-fn' => 'handlePro' ] ); ?>
<?php tcb_icon( 'sync-regular', false, 'sidebar', 'click tcb-hidden kit-action', [ 'data-fn' => 'handlePro' ] ); ?>
<?php tcb_icon( 'trash-alt-light', false, 'sidebar', 'click tcb-hidden kit-action', [ 'data-fn' => 'toggleDeletePro' ] ); ?>
</div>
<div class="icons-input tve-fa-warning tcb-hidden pr-0">
<span><?php echo esc_html__( 'Are you sure you want to delete your kit?', 'thrive-cb' ); ?></span>
<span class="mr-10 click kit-action" data-fn="clearFAPro"><?php echo esc_html__( 'YES', 'thrive-cb' ); ?></span>
<span class="click kit-action" data-fn="toggleProInput"><?php echo esc_html__( 'CANCEL', 'thrive-cb' ); ?></span>
</div>
<div class="kit-warning kit-warning-message">
<div class="warning-title">
<?php tcb_icon( 'exclamation-circle-solid' ) ?>
<?php echo esc_html__( 'There was an issue accessing your Font Awesome Pro Kit', 'thrive-cb' ); ?>
</div>
<div class="warning-description">
<?php echo esc_html__( 'This usually occurs when your kit was deleted or you do not have an active subscription. Please check your Font Awesome account and update the above kit details as required.', 'thrive-cb' ); ?>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,26 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tcb-modal-tabs">
<span class="tcb-new-tab click" data-fn="openIntercomArticle">
<?php tcb_icon( 'external-link-regular' ); ?>
<?php echo esc_html__( 'Open in new tab', 'thrive-cb' ) ?>
</span>
</div>
<div class="tve-modal-content">
<div class="tcb-video-instructions">
<iframe></iframe>
</div>
<div class="tcb-article-instructions">
<h1 class="tcb-article-title mt-0"></h1>
<div class="tcb-article-content"></div>
</div>
</div>

View File

@@ -0,0 +1,104 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="error-container"></div>
<div style="position: absolute;top: 0;" id="lp-lightbox-drop-panels"></div>
<div class="tcb-modal-step" data-step="1">
<div class="lp-cloud-menu modal-sidebar">
<div class="lp-search">
<?php tcb_icon( 'search-regular' ); ?>
<input type="text" data-source="search" class="keydown" data-fn="filter" placeholder="<?php echo esc_html__( 'Search', 'thrive-cb' ); ?>"/>
<?php tcb_icon( 'close2', false, 'sidebar', 'click', [ 'data-fn' => 'domClearSearch' ] ); ?>
</div>
<div class="lp-menu-wrapper">
<div class="mt-30">
<div class="sidebar-title">
<p><?php echo esc_html__( 'Default Templates', 'thrive-cb' ); ?></p>
<span class="tcb-hl"></span>
</div>
<div id="lp-default-filters"></div>
</div>
<div class="mt-30">
<div class="sidebar-title">
<p><?php echo esc_html__( 'My Templates', 'thrive-cb' ); ?></p>
<span class="tcb-hl"></span>
</div>
<div id="lp-saved-filters"></div>
</div>
</div>
</div>
<div class="lp-cloud-templates modal-content">
<div class="lp-template-title-text ml-10 space-between">
<span class="tcb-modal-title">
<?php if ( defined( 'TVE_STAGING_TEMPLATES' ) && TVE_STAGING_TEMPLATES ) : ?>
<span style="color: #810000"><?php echo esc_html__( 'Warning! The templates listed here are only used for testing purposes', 'thrive-cb' ); ?></span>
<?php else : ?>
<?php echo esc_html__( 'Landing Page Library', 'thrive-cb' ); ?>
<?php endif; ?>
</span>
<span data-fn="clearCache" class="tcb-refresh mr-30 click flex-center">
<span class="mr-10"><?php tcb_icon( 'sync-regular' ); ?></span>
<span class="mr-10"><?php echo esc_html__( 'Refresh from cloud', 'thrive-cb' ); ?></span>
</span>
</div>
<div class="lp-set-list-group mt-20 lp-smart">
<p>
<?php echo esc_html__( 'Theme Landing Page sets', 'thrive-cb' ); ?>
</p>
<span class="tve-separator"></span>
</div>
<div id="lp-ttb-set-list" class="pl-30 pt-10 lp-smart"></div>
<div class="lp-set-list-group mt-20 lp-smart">
<p>
<?php echo esc_html__( 'Smart Landing page sets', 'thrive-cb' ); ?>
</p>
<span class="tve-separator"></span>
</div>
<div id="lp-set-list" class="pl-30 pt-10"></div>
</div>
</div>
<div class="tcb-modal-step" data-step="2" style="display: none;">
<div class="lp-cloud-menu modal-sidebar">
<div class="lp-menu-wrapper">
<div class="sidebar-title mt-10">
<p class="set-name"></p>
<span class="tcb-hl"></span>
</div>
<div class="set-filters"></div>
</div>
</div>
<div class="lp-cloud-templates modal-content">
<div class="lp-modal-back ml-40 click" data-fn="domGoToSetsView">
<span>
<?php tcb_icon( 'chevron-circle-left-light', false, 'sidebar' ); ?>
</span>
<span>
<?php echo esc_html__( 'BACK to library', 'thrive-cb' ); ?>
</span>
</div>
<div class="lp-template-title-text ml-10">
<span class="set-name tcb-modal-title"></span>
<i></i>
<span class="set-full lp-locked"><?php echo esc_html__( 'Upgrade', 'thrive-cb' ); ?></span>
<?php
/**
* Allows other plugins / themes to insert icons here
*/
do_action( 'tcb_extra_landing_page_lightbox_icons' );
?>
<span><?php tcb_icon( 'cubes-light', false, 'sidebar', 'set-blocks' ); ?></span>
</div>
<div id="lp-set-tpl-list" class="pl-30 pt-10"></div>
</div>
<div class="lp-footer">
<button class="tve-btn tve-button click green click" data-fn="save"><?php echo esc_html__( 'Apply Template', 'thrive-cb' ); ?></button>
</div>
</div>

View File

@@ -0,0 +1,36 @@
<h2 class="tcb-modal-title"><?php echo esc_html__( 'Set error messages', 'thrive-cb' ); ?></h2>
<div class="tcb-fields-error control-grid wrap"></div>
<div class="control-grid">
<button type="button" class="tve-button text-only click" data-fn="restore_defaults">
<?php tcb_icon( 'close' ) ?>
<?php echo esc_html__( 'Restore errors to default', 'thrive-cb' ) ?>
</button>
</div>
<div class="tcb-gray" id="tcb-signup-error-wrapper" style="display: none">
<div class="control-grid">
<label class="tcb-checkbox pb-10">
<input type="checkbox" id="tcb-sign-up-error-enabled">
<span><?php echo esc_html__( "Add 'Signup failed' error message", 'thrive-cb' ) ?></span>
</label>
</div>
<div class="control-grid">
<p><?php echo esc_html__( "This error message is shown in the rare case that the signup fails. This can happen when your connected email marketing service can't be reached.", 'thrive-cb' ) ?></p>
</div>
<div class="control-grid" id="tcb-lg-signup-error-editor" style="display: none;">
<div>
<?php wp_editor( '', 'tcb_lg_error', [ 'quicktags' => false, 'media_buttons' => false ] ); ?>
</div>
</div>
</div>
<div class="tcb-modal-footer">
<button type="button" class="tcb-left tve-button text-only tcb-modal-cancel">
<?php echo esc_html__( 'Cancel', 'thrive-cb' ) ?>
</button>
<button type="button" class="tcb-right tve-button medium tcb-modal-save">
<?php echo esc_html__( 'Save', 'thrive-cb' ) ?>
</button>
</div>

View File

@@ -0,0 +1,38 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
$attributes = tcb_editor()->lcns_attributes();
?>
<div class="tve-license-modal-content expired">
<img class="tve-license-icon"
src="<?php echo TVE_DASH_URL ?>/css/images/licensing/licensing-<?php echo $attributes['source'] ?>-expired@2x.webp"
alt="License icon"/>
<div>
<h3>
<?php echo sprintf( esc_html( __( 'Heads up! Your %s license has expired', 'thrive-cb' ) ), $attributes['product'] ); ?>
</h3>
<p><?php _e( 'An active license is needed to access your software and manage your content. Youll also get access to new features, updates, security improvements, templates and support.', 'thrive-cb' ); ?></p>
<p><?php _e( 'Your visitors can continue to access your website content.', 'thrive-cb' ); ?>
<p>
<?php echo __( "Doesn't sound right? Your license might need to be refreshed.", 'thrive-cb' ); ?>
<a href="<?php echo TD_TTW_User_Licenses::get_instance()->get_recheck_url(); ?>">
<?php echo __( 'Click here to refresh your license now.', 'thrive-cb' ) ?>
</a>
</p>
<div class="tve-license-buttons">
<button class="tve-button-empty"
onclick="window.open('https://help.thrivethemes.com/en/articles/8223498-what-happens-when-your-thrive-product-license-expires', '_blank')"><?php _e( 'Learn more', 'thrive-cb' ); ?></button>
<button class="tve-button-action"
onclick="window.open('<?php echo $attributes['link'] ?>', '_blank')"><?php _e( 'Renew now', 'thrive-cb' ); ?></button>
</div>
</div>
</div>

View File

@@ -0,0 +1,42 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<span class="tcb-modal-title m-0"><?php echo esc_html__( 'Export Template', 'thrive-cb' ) ?></span>
<div class="error-container" style="display: none;"></div>
<div class="tve-template-image">
<div class="thumbnail-preview choose-image">
<div class="thumbnail-text">
<span>
<?php echo esc_html__( 'Click to upload a photo.', 'thrive-cb' ); ?>
</span>
<span>
<?php echo esc_html__( 'Recommended image size: 166x140px. If you do not choose a picture, the default template thumbnail will be used.', 'thrive-cb' ); ?>
</span>
</div>
<button type="button" class="tve-button remove-image"><?php tcb_icon( 'trash-light' ); ?><?php echo esc_html__( 'Remove', 'thrive-cb' ) ?></button>
</div>
<div class="tvd-input-field">
<input type="text" id="tve-export-template-name" required>
<label for="tve-export-template-name"><?php echo esc_html__( 'Template Name', 'thrive-cb' ); ?></label>
</div>
</div>
<div class="tcb-modal-footer m-20 p-0 flex-end">
<button type="button" class="tcb-right tve-button medium green tcb-modal-save">
<?php echo esc_html__( 'Download File', 'thrive-cb' ) ?>
</button>
</div>

View File

@@ -0,0 +1,41 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<span class="tcb-modal-title m-0"><?php echo esc_html__( 'Save Page Template', 'thrive-cb' ) ?></span>
<div class="mt-10 mb-30">
<?php echo esc_html__( 'You can save the current page as a template for use on another post / page on your site.', 'thrive-cb' ) ?>
</div>
<div class="control-grid wrap">
<label class="label full-width" for="tve-lp-template-name"><?php echo esc_html__( 'Template Name', 'thrive-cb' ); ?></label>
<input type="text" id="tve-lp-template-name" required>
</div>
<div class="tve-tags-wrapper control-grid wrap mt-20">
<label class="label full-width"><?php echo esc_html__( 'Tags', 'thrive-cb' ); ?></label>
<div class="tve-tags-list"></div>
<div class="control-grid fill">
<input type="text" class="tve-new-tag-name mr-50">
<a class="tve-add-tag">
<span class="circle mr-5">+</span>
<span>
<?php echo esc_html__( 'Add tag', 'thrive-cb' ) ?>
</span>
</a>
</div>
</div>
<div class="tcb-modal-footer m-20 p-0 flex-end">
<button type="button" class="tcb-right tve-button medium green tcb-modal-save">
<?php echo esc_html__( 'Save Template', 'thrive-cb' ) ?>
</button>
</div>

View File

@@ -0,0 +1,10 @@
<h2 class="tcb-modal-title"><?php echo esc_html__( 'Content Templates', 'thrive-cb' ); ?></h2>
<div class="mt-20">
<?php echo esc_html__( 'You have no content templates saved at the moment. Create a new content template in order to use this option.', 'thrive-cb' ) ?>
<br><br>
<a href="https://thrivethemes.com/tkb_item/how-to-use-the-content-template-element/" target="_blank"><?php echo esc_html__( 'Click here to found out more about saving and loading templates', 'thrive-cb' ) ?></a>
</div>
<div class="tcb-modal-footer pt-40">
<button type="button" class="tcb-modal-save tcb-right tve-button medium green"><?php echo esc_html__( 'Done', 'thrive-cb' ) ?></button>
</div>

View File

@@ -0,0 +1,37 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
/* define a list of post types that the user can choose from */
$all_post_types = apply_filters( 'tve_link_autocomplete_post_types', get_post_types( [
'public' => true,
'show_ui' => true,
] ) );
$blacklist = apply_filters( 'tve_post_types_blacklist', [ 'tcb_lightbox', TCB_Symbols_Post_Type::SYMBOL_POST_TYPE ] );
$saved = maybe_unserialize( get_option( 'tve_hyperlink_settings', apply_filters( 'tve_link_autocomplete_default_post_types', [ 'post', 'page' ] ) ) ); // by default, show posts and pages
if ( is_string( $saved ) ) {
$saved = [ $saved ];
}
$all_post_types = array_diff( $all_post_types, $blacklist ); ?>
<h2 class="tcb-modal-title"><?php esc_html_e( 'Thrive Hyperlink Settings', 'thrive-cb' ) ?></h2>
<p class="tcb-modal-description"><?php echo esc_html__( 'Select the content to be included in search results.', 'thrive-cb' ) ?></p>
<div class="inline-checkboxes row">
<?php foreach ( $all_post_types as $i => $post_type ) : $info = get_post_type_object( $post_type ) ?>
<div class="col col-xs-4">
<label for="tcb-post-type-<?php echo esc_attr( $i ) ?>" class="tcb-checkbox tcb-truncate" title="<?php echo esc_attr( $info->labels->menu_name ) ?>">
<input type="checkbox" class="post-type" name="post_types[]" id="tcb-post-type-<?php echo esc_attr( $i ); ?>"<?php checked( in_array( $post_type, $saved ) ) ?>
value="<?php echo esc_attr( $post_type ) ?>">
<span><?php echo esc_html( $info->labels->menu_name ); ?></span>
</label>
</div>
<?php endforeach ?>
</div>
<div class="tcb-modal-footer pt-40">
<button type="button" class="tcb-modal-save tcb-right tve-button medium green"><?php echo esc_html__( 'Continue', 'thrive-cb' ) ?></button>
</div>

View File

@@ -0,0 +1,5 @@
<span class="tcb-modal-title m-0 mb-20"><?php echo esc_html__( 'Page Event Manager', 'thrive-cb' ) ?></span>
<div class="modal-header"></div>
<div class="page-events">
<div id="events-form"></div>
</div>

View File

@@ -0,0 +1,74 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Allows the Thrive Theme or other plugins to hook here
*
* Returns the configuration array for page wizard
*/
$items = apply_filters( 'tcb_get_page_wizard_items', array(
array(
'title' => __( 'Normal Page', 'thrive-cb' ),
'layout' => 'normal',
'order' => 0,
'picture' => tve_editor_url( 'editor/css/images/page-wizard/normal-page.png' ),
'text' => array(
__( 'Used for creating content pages that should look like other content on your site.', 'thrive-cb' ),
__( 'These pages use theme templates and are useful for creating content rich company pages (about us, services, pricing etc.).', 'thrive-cb' ),
),
),
array(
'title' => __( 'Pre-built Landing Page', 'thrive-cb' ),
'layout' => 'lp',
'order' => 100,
'picture' => tve_editor_url( 'editor/css/images/page-wizard/pre-built-lp.png' ),
'text' => array(
__( 'Choose from our library over 200 pre-built landing pages.', 'thrive-cb' ),
__( 'This is mostly useful if you want to build a marketing page but dont want the hassle of designing it yourself.', 'thrive-cb' ),
__( 'Simply choose a design you like and modify to fit your needs.', 'thrive-cb' ),
),
),
) );
/**
* Sort the items array based on order index
*/
usort( $items, function ( $a, $b ) {
return $a['order'] - $b['order'];
} )
?>
<h2><?php echo esc_html__( 'What page would you like to create?', 'thrive-cb' ); ?></h2>
<div class="info-text red">
<span>
<?php echo esc_html__( 'Warning!', 'thrive-cb' ); ?>
</span>
<span>
<?php echo esc_html__( 'If you change your page template, any custom content you added to the page will be deleted', 'thrive-cb' ); ?>
</span>
</div>
<div class="parent">
<?php foreach ( $items as $item ) : ?>
<div class="click item" data-fn="chooseLayout" data-layout="<?php echo esc_attr( $item['layout'] ); ?>">
<div>
<img src="<?php echo esc_url( $item['picture'] ); ?>" alt="Item Picture"/>
</div>
<div>
<span><?php echo esc_html( $item['title'] ); ?></span>
</div>
<hr class="mb-20">
<div>
<?php foreach ( $item['text'] as $text ) : ?>
<p><?php echo esc_html( $text ); ?></p>
<?php endforeach; ?>
</div>
</div>
<?php endforeach; ?>
</div>

View File

@@ -0,0 +1,24 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div id="post-list-query-options">
</div>
<div class="tcb-modal-footer">
<button type="button" class="tcb-left tve-button white-text grey tcb-modal-cancel">
<?php echo esc_html__( 'Cancel', 'thrive-cb' ); ?>
</button>
<button type="button" class="green tcb-modal-save tcb-right tve-button">
<?php echo esc_html__( 'Save and Close', 'thrive-cb' ); ?>
</button>
</div>

View File

@@ -0,0 +1,56 @@
<div class="tve-post-option-confirm tve-post-option-confirm-private tcb-hide">
<div class="clearfix pb-10 tcb-post-options-modal-content flex-center">
<?php if ( get_post_type() === 'post' ) : ?>
<h2><?php echo esc_html__( 'Are you sure you want to privately publish this post?', 'thrive-cb' ) ?></h2>
<?php else : ?>
<h2><?php echo esc_html__( 'Are you sure you want to privately publish this page?', 'thrive-cb' ) ?></h2>
<?php endif; ?>
</div>
<div class="tcb-modal-footer pl-0 pr-0">
<button type="button" class="tcb-left tve-button text-only tve-cancel-change tcb-modal-cancel click" data-fn="cancelChanges">
<?php echo esc_html__( 'Cancel', 'thrive-cb' ) ?>
</button>
<button type="button" class="tcb-right tve-button medium tcb-modal-save click" data-post-status="private" data-fn="setPostStatus">
<?php echo esc_html__( 'Yes, privately publish', 'thrive-cb' ) ?>
</button>
</div>
</div>
<div class="tve-post-option-confirm tve-post-option-confirm-unpublish tcb-hide">
<div class="clearfix pb-10 tcb-post-options-modal-content flex-center">
<?php if ( get_post_type() === 'post' ) : ?>
<h2><?php echo esc_html__( 'Are you sure you want to unpublish this post?', 'thrive-cb' ) ?></h2>
<?php else : ?>
<h2><?php echo esc_html__( 'Are you sure you want to unpublish this page?', 'thrive-cb' ) ?></h2>
<?php endif; ?>
</div>
<div class="tcb-modal-footer pl-0 pr-0">
<button type="button" class="tcb-left tve-button text-only tve-cancel-change tcb-modal-cancel click" data-fn="cancelChanges">
<?php echo esc_html__( 'Cancel', 'thrive-cb' ) ?>
</button>
<button type="button" class="tcb-right tve-button medium tcb-modal-save click" data-post-status="draft" data-fn="setPostStatus">
<?php echo esc_html__( 'Yes, unpublish', 'thrive-cb' ) ?>
</button>
</div>
</div>
<div class="tve-post-option-confirm tve-post-option-confirm-publish tcb-hide">
<div class="clearfix pb-10 tcb-post-options-modal-content flex-center">
<?php if ( get_post_type() === 'post' ) : ?>
<h2><?php echo esc_html__( 'Are you sure you want to publish this post?', 'thrive-cb' ) ?></h2>
<?php else : ?>
<h2><?php echo esc_html__( 'Are you sure you want to publish this page?', 'thrive-cb' ) ?></h2>
<?php endif; ?>
</div>
<div class="tcb-modal-footer pl-0 pr-0">
<button type="button" class="tcb-left tve-button text-only tve-cancel-change tcb-modal-cancel click" data-fn="cancelChanges">
<?php echo esc_html__( 'Cancel', 'thrive-cb' ) ?>
</button>
<button type="button" class="tcb-right tve-button medium tcb-modal-save click" data-post-status="publish" data-fn="setPostStatus">
<?php echo esc_html__( 'Yes, publish', 'thrive-cb' ) ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<?php
$post_id = get_the_ID();
$revisions = wp_get_post_revisions( $post_id, ['numberposts' => 10] );
$first_revision = reset( $revisions );
?>
<h2 class="tcb-modal-title ml-0"><?php echo esc_html__( 'Revision Manager', 'thrive-cb' ) ?></h2>
<p class="tcb-modal-description mb-0"><?php echo esc_html__( 'Use the revision manager to restore your page to a previous version:', 'thrive-cb' ); ?></p>
<div id="tcb-revision-list"></div>
<div class="tcb-modal-footer tcb-modal-footer pl-0 pr-0 pt-0">
<div>
<?php if ( empty( $first_revision ) ) : ?>
<?php echo esc_html__( 'The current post has no revisions!', 'thrive-cb' ); ?>
<?php else : ?>
<a href="<?php echo esc_url(add_query_arg( [ 'revision' => $first_revision->ID ], admin_url( 'revision.php' ) )); ?>"
class="tcb-modal-lnk blue"
target="_blank"><?php tcb_icon( 'revision' ); ?>&nbsp;<?php echo esc_html__( 'Show the default WordPress Revision Manager', 'thrive-cb' ); ?></a>
<?php endif; ?>
</div>
<div>
<button type="button" class="tcb-right tve-button medium green white-text tcb-modal-cancel"><?php echo esc_html__( 'Close', 'thrive-cb' ) ?></button>
</div>
</div>

View File

@@ -0,0 +1,89 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tcb-modal-save-content">
<span class="tcb-modal-title"><?php echo esc_html__( 'Save Element for Later Use', 'thrive-cb' ) ?></span>
<div class="error-container"></div>
<div class="tcb-modal-save-container">
<div class="tcb-preview-container">
<div class="tcb-preview-image lazy-loading">
<img class="tve-lazy-img" src="" data-loading-src="<?php echo esc_url( tve_editor_css( 'images/loading-spinner-large.gif' ) ); ?>" alt="">
</div>
</div>
<div style="flex: 0 0 100px;"></div>
<div class="save-container">
<span class="tcb-save-as-label"><?php echo esc_html__( 'Save As', 'thrive-cb' ) ?></span>
<div class="tcb-center-checkbox">
<label class="modal-switch">
<span class="sp template-text"><?php echo esc_html__( 'Template', 'thrive-cb' ) ?></span>
<input type="checkbox" name="change_element" id="change_element">
<span class="slider round"></span>
<span class="sp symbol-text"><?php echo esc_html__( 'Symbol', 'thrive-cb' ) ?></span>
</label>
</div>
<p class="element-description"><?php echo esc_html__( 'Content templates can be used across your website but they are edited only locally.', 'thrive-cb' ) ?></p>
<div class="tvd-input-field">
<label class="tcb-save-as-label tcb-input-name"><?php echo esc_html__( 'Template Name', 'thrive-cb' ); ?></label>
<input class="keydown tvd-active content-title" type="text" name="title" data-source="search" data-fn="filter">
<img class="tve-lazy-img tcb-input-loader" src="<?php echo esc_url( tve_editor_css( 'images/loading-spinner-large.gif' ) ); ?>" alt="">
<label class="tvd-active tcb-ct-symbol-message"></label>
</div>
<div class="tvd-input-field category_selection category-container mt-20">
<label class="tcb-save-as-label"><?php echo esc_html__( 'Category', 'thrive-cb' ); ?></label>
<select id="tcb-save-template-categ-suggest"></select>
</div>
</div>
</div>
</div>
<div class="tcb-modal-footer">
<span class="tcb-show-templates">
<a class="click" data-fn="show_templates">
<span><?php tcb_icon( 'save' ); ?></span>
<span class="tcb-show-templates-label"><?php echo esc_html__( 'Show all Saved Templates', 'thrive-cb' ) ?></span>
<span class="tcb-hide-templates-label" style="color: #0c81bf"><?php echo esc_html__( 'Hide all Saved Templates', 'thrive-cb' ) ?></span>
</a>
</span>
<div class="tvd-input-field">
<label class="tcb-save-as-label tcb-input-name"><?php echo esc_html__( 'Template Name', 'thrive-cb' ); ?></label>
<input class="keydown tvd-active content-title" type="text" name="title" data-source="search" data-fn="filter">
</div>
<div class="tcb-relative">
<button type="button" class="tcb-right tve-button medium green tcb-modal-save">
<?php echo esc_html__( 'Save New Template', 'thrive-cb' ) ?>
</button>
<div class="update-template-tooltip" style="position:absolute">
<div class="drop-panel tooltip-panel panel-light ">
<div class="popup-content mb-40">
<p><?php echo sprintf( esc_html__( '"%s" already exists' ), '<span class="tcb-template-name"></span>' ); ?></p>
<p class="tooltip-text mb-20"><?php echo esc_html__( 'Do you want to update it?', 'thrive-cb' ); ?></p>
<span class="tooltip-text light"><?php echo esc_html__( 'Updating it will overwrite its current contents', 'thrive-cb' ); ?></span>
</div>
<div class="action-buttons control-grid">
<div data-fn="onCancel" class="click tve-button drop-panel-action btn-cancel"><?php echo esc_html__( 'Cancel', 'thrive-cb' ); ?></div>
<div data-fn="onApply" class="click tve-button drop-panel-action btn-apply"><?php echo esc_html__( 'Update Existing Template', 'thrive-cb' ); ?></div>
</div>
<div class="tcb-panel-arrow"></div>
</div>
</div>
</div>
</div>
<div class="tcb-templates-wrapper click" data-fn="clearSelected">
<div id="tcb-templates-number-container">
<span id="tcb-templates-number"></span>
<span> <?php echo esc_html__( ' existing files', 'thrive-cb' ) ?></span>
</div>
<div id="cb-pack-content"></div>
</div>

View File

@@ -0,0 +1,27 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<span class="tcb-modal-title m-0"><?php echo esc_html__( 'Save Content as Template', 'thrive-cb' ) ?></span>
<div class="tcb-modal-description">
<?php echo esc_html__( 'You can save your work as a template for use on another post/page on your site.', 'thrive-cb' ) ?>
</div>
<div class="tvd-input-field mb-5 mt-25">
<input type="text" id="tve-template-name" required>
<label for="tve-template-name"><?php echo esc_html__( 'Template Name', 'thrive-cb' ); ?></label>
</div>
<div class="tcb-modal-footer m-20 p-20 flex-end flex-end">
<button type="button" class="tcb-right tve-button medium green tcb-modal-save">
<?php echo esc_html__( 'Save Template', 'thrive-cb' ) ?>
</button>
</div>

View File

@@ -0,0 +1,14 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="sections-container"></div>

View File

@@ -0,0 +1,37 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<h2 class="tcb-modal-title"><?php echo esc_html__( 'Choose symbol', 'thrive-cb' ) ?></h2>
<span class="click tcb-modal-close"><?php tcb_icon( 'modal-close' ) ?></span>
<div class="status tpl-ajax-status"><?php echo esc_html__( 'Fetching data', 'thrive-cb' ); ?>...</div>
<div class="error-container"></div>
<div class="tvd-input-field">
<input type="text" class="search-symbols" id="tcm-symbol-search" name="tcm-symbol-search" placeholder="<?php echo esc_html__( 'Search symbols...', 'thrive-cb' ); ?>">
<span class="search"></span>
</div>
<div style="background: #f0f3f3 url(<?php echo esc_url( tve_editor_css( 'images/symbol_animation_02.gif' ) ); ?>) center no-repeat;" class="tve-symbols-wrapper">
<div class="text-no-symbols">
<?php echo esc_html__( "Oups! We couldn't find anything called " ) ?><span class="search-word"></span><?php echo esc_html__( '. Maybe search for something else ?' ); ?>
</div>
<div class="symbols-container modal-symbols-templates" id="symbols-template"></div>
</div>
<div class="tcb-modal-footer">
<button type="button" disabled="false" class="tcb-right tve-button medium green tcb-modal-save">
<?php echo esc_html__( 'Choose Symbol', 'thrive-cb' ) ?>
</button>
</div>

View File

@@ -0,0 +1,17 @@
<span class="tcb-modal-title ml-0 mt-0"><?php echo esc_html__( 'Insert WordPress Content into the page', 'thrive-cb' ) ?></span>
<div class="pt-10" id="tve_tinymce_shortcode_mce_holder">
<?php
tcb_remove_tinymce_conflicts();
wp_editor( '', 'tve_tinymce_shortcode', [
'dfw' => true,
'tabfocus_elements' => 'insert-media-button,save-post',
'editor_height' => 260,
'textarea_rows' => 15,
] );
?>
</div>
<div class="tcb-modal-footer flex-end pr-0">
<button type="button" class="tcb-right tve-button medium green tcb-modal-save"><?php echo esc_html__( 'Save', 'thrive-cb' ) ?></button>
</div>