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,43 @@
<?php echo 'function(trigger, action, config) {'; ?>
var $element = jQuery( this ),
$at = $element.closest( '.tcb-col, .thrv_wrapper' );
if ( $at.length === 0 ) {
$at = $element;
}
if ( ! config.loop && $at.data( 'a-done' ) ) {
return;
}
$at.data( 'a-done', 1 );
const hadAnimStart = $at.hasClass( 'tve_anim_start' );
$at.removeClass( function ( i, cls ) {
return cls.split( ' ' ).filter( function ( item ) {
return item.indexOf( 'tve_anim_' ) === 0;
} ).join( ' ' );
} ).addClass( 'tve_anim_' + config.anim ).removeClass( 'tve_anim_start' );
if ( config.loop ) {
setTimeout( function () {
$at.addClass( 'tve_anim_start' );
}, hadAnimStart ? 50 : 0 );
if ( trigger === 'mouseover' ) {
$element.one( 'mouseleave', function () {
$at.removeClass( 'tve_anim_start' );
} );
}
if ( trigger === 'tve-viewport' ) {
$element.one( 'tve-viewport-leave', function () {
/**
* double check for viewport
* animation in animation triggers weird behaviors
*/
if ( ! TCB_Front.isInViewport( $element ) ) {
$at.removeClass( 'tve_anim_start' );
}
} );
}
} else {
setTimeout( function () {
$at.addClass( 'tve_anim_start' );
}, 50 );
}
return false;
<?php echo '}'; ?>

View File

@@ -0,0 +1,21 @@
<div class="animation-container">
<label for="anim-animation"><?php esc_html_e( 'Animation', 'thrive-cb' ) ?></label>
<select class="change" data-fn="select" id="anim-animation">
<?php foreach ( $data as $key => $group ) : ?>
<optgroup label="<?php echo esc_attr( $group['title'] ) ?>">
<?php foreach ( $group['items'] as $k => $item ) : ?>
<option data-default="<?php echo in_array( 'tve-viewport', $item['trigger'] ) ? 1 : 0 ?>"
data-hover="<?php echo in_array( 'mouseover', $item['trigger'] ) ? 1 : 0 ?>"
value="<?php echo esc_attr( $k ) ?>"
label="<?php echo esc_attr( $item['title'] ) ?>"><?php echo esc_html( $item['title'] ) ?></option>
<?php endforeach ?>
</optgroup>
<?php endforeach ?>
</select>
</div>
<div class="sep"></div>
<div class="trigger-container" id="anim-trigger" style="display: none">
<label for="animation-trigger"><?php echo esc_html__( 'Animation Trigger', 'thrive-cb' ) ?></label>
<select id="animation-trigger" class="change tcb-select" data-fn="change_trigger"></select>
</div>
<label class="tcb-checkbox"><input type="checkbox" class="anim-loop tcb-checkbox"><span><?php esc_html_e( 'Loop animation', 'thrive-cb' ) ?></span></label>

View File

@@ -0,0 +1,15 @@
<div class="inline-checkboxes">
<label class="tcb-checkbox">
<input type="checkbox" class="change" data-fn="extraSettingsChanged" data-elem-attr="data-autoplay" data-elem-attr-val="1" data-elem-attr-val-unchecked="0"><span><?php echo esc_html__( 'Autoplay', 'thrive-cb' ) ?></span>
</label>
</div>
<div class="inline-checkboxes">
<label class="tcb-checkbox">
<input type="checkbox" class="change" data-fn="extraSettingsChanged" data-elem-attr="loop" data-elem-attr-val="1" data-elem-attr-val-unchecked="0"><span><?php echo esc_html__( 'Loop', 'thrive-cb' ) ?></span>
</label>
</div>
<div class="inline-checkboxes">
<label class="tcb-checkbox">
<input type="checkbox" class="change" data-fn="extraSettingsChanged" data-elem-attr="no-download" data-elem-attr-val="0" data-elem-attr-val-unchecked="1"><span><?php echo esc_html__( 'Allow Users to Download', 'thrive-cb' ) ?>&nbsp;<span class="click" data-fn="openDownloadTooltip"><?php tcb_icon( 'info-circle-solid' ); ?></span></span>
</label>
</div>

View File

@@ -0,0 +1,5 @@
<div class="control-grid full-width">
<label for="a-custom-url">URL</label>
<input type="text" data-setting="url" class="click audio-url tve_provider_url" data-fn="changeCustom" id="a-custom-url" placeholder="e.g. https://my-url.com">
</div>
<div class="url-validate inline-message"></div>

View File

@@ -0,0 +1,15 @@
<div class="inline-checkboxes">
<label class="tcb-checkbox">
<input type="checkbox" class="change" data-fn="extraSettingsChanged" data-elem-attr="auto_play" data-elem-attr-val="1" data-elem-attr-val-unchecked="0"><span><?php echo esc_html__( 'Autoplay', 'thrive-cb' ) ?></span>
</label>
</div>
<div class="inline-checkboxes">
<label class="tcb-checkbox">
<input type="checkbox" class="change" data-fn="extraSettingsChanged" data-elem-attr="show_artwork" data-elem-attr-val="false" data-elem-attr-val-unchecked="true"><span><?php echo esc_html__( 'Do not show artwork', 'thrive-cb' ) ?></span>
</label>
</div>
<div class="inline-checkboxes">
<label class="tcb-checkbox">
<input type="checkbox" class="change" data-fn="extraSettingsChanged" data-elem-attr="show_user" data-elem-attr-val="false" data-elem-attr-val-unchecked="true"><span><?php echo esc_html__( 'Do not show user', 'thrive-cb' ) ?></span>
</label>
</div>

View File

@@ -0,0 +1,5 @@
<div class="control-grid full-width">
<label for="a-soundcloud-url">URL</label>
<input type="text" data-setting="url" class="change audio-url tve_provider_url" data-fn="changeInput" id="a-soundcloud-url" placeholder="e.g. https://soundcloud.com/djmartindus/dancehall-party-march-2019">
</div>
<div class="url-validate inline-message"></div>

View File

@@ -0,0 +1,5 @@
<div class="control-grid full-width">
<label for="a-spotify-url">URL</label>
<input type="text" data-setting="url" class="change audio-url tve_provider_url" data-fn="changeInput" id="a-spotify-url" placeholder="e.g. https://open.spotify.com/album/60GMfKsppuyvSG36HurCMz">
</div>
<div class="url-validate inline-message"></div>

View File

@@ -0,0 +1,7 @@
<?php echo 'function(trigger,action,config){' ?>
const closeButtons = ThriveGlobal.$j( '.tve_p_lb_close' );
closeButtons.each( ( index, button ) => {
button.click();
} );
<?php echo 'return false;}';

View File

@@ -0,0 +1,184 @@
<?php echo 'function(trigger,action,config){' ?>
var $target = jQuery( this ),
offset = $target.offset(),
target_w = $target.outerWidth(),
target_h = $target.outerHeight(),
$element = $target,
sameImage = ( config.url && $element.attr( 'src' ) && $element.attr( 'src' ) === config.url ) || ( config.id && $element.attr( 'data-id' ) && $element.attr( 'data-id' ) == config.id );
if ( config.id ) {
$fullSize = jQuery( "#tcb-image-zoom-" + config.id + " img" );
if ( $fullSize.length ) {
$element = $fullSize;
}
}
/* If it is the same img but set from Anim&Action work like Open full size image on click*/
if ( ! sameImage || ( sameImage && config.sizeChanged ) ) {
if ( config.id ) {
$element = jQuery( "#tcb-image-zoom-" + config.id + " img" )
} else if ( $element.find( "img" ).length ) {
$element = $element.find( "img" )
}
}
$element = $element.first();
var imageSrc = $element.attr( "data-opt-src" ) || $element.attr( "src" ),
imgAlt = $target.attr( 'alt' ) || '',
$lightbox = jQuery( '#tve_zoom_lightbox' ),
$overlay = jQuery( '#tve_zoom_overlay' ),
windowWidth = window.innerWidth,
windowHeight = window.innerHeight,
img_size = $element.data( "tve-zoom-clone" ),
resizeScale = windowWidth < 600 ? 0.8 : 0.9;
if ( imageSrc.indexOf( 'data:image' ) !== - 1 && $element.attr( 'data-src' ) ) {
imageSrc = $element.attr( 'data-src' );
}
/**
* Force lazy load of the image
*/
if ( window.lazySizes ) {
lazySizes.loader.unveil( $element[ 0 ] );
}
if ( typeof img_size === 'undefined' ) {
var $clone = $element.clone()
.css( {
position: "absolute",
width: "",
height: "",
left: "-8000px",
top: "-8000px"
} ).removeAttr( "width height" );
$clone.appendTo( "body" );
/**
* `.one()` ensures this will not get executed multiple times.
*/
$clone.one( 'load', function () {
var $parent = $element.parent(),
height = parseFloat( $element.attr( 'data-init-height' ) ) || parseFloat( $element.attr( 'height' ) || $element.height() ),
width = parseFloat( $element.attr( 'data-init-width' ) ) || parseFloat( $element.attr( 'width' ) || $element.width() );
/**
* If we cant get the size try to make the parent visible until we get img props
*/
if ( ! ( height && width ) ) {
$parent.css( {display: 'block', visibility: 'hidden'} );
height = $element.height();
width = $element.width();
$parent.css( {display: 'none', visibility: ''} );
}
img_size = {
"originalWidth": width,
"width": width,
"originalHeight": height,
"height": height
};
if ( img_size.originalWidth > windowWidth * resizeScale || img_size.originalHeight > windowHeight * resizeScale ) {
var widthPercent = img_size.originalWidth / windowWidth,
heightPercent = img_size.originalHeight / windowHeight;
img_size.width = ( ( widthPercent > heightPercent ) ? ( windowWidth * resizeScale ) : ( windowHeight * resizeScale * ( img_size.originalWidth / img_size.originalHeight ) ) );
img_size.height = ( ( widthPercent > heightPercent ) ? ( windowWidth * resizeScale * ( img_size.originalHeight / img_size.originalWidth ) ) : ( windowHeight * resizeScale ) );
img_size.width += 30;
img_size.height += 30;
}
$element.data( "tve-zoom-clone", img_size );
show_lightbox();
} );
/**
* Firefox doesnt trigger load event for the clone when is open full size image
*/
if ( TCB_Front.browser.mozilla && ( sameImage || typeof sameImage === 'undefined' ) ) {
$clone.trigger( 'load' );
} else if ( imageSrc.includes( '.optimole.com/' ) ) {
/**
* Optimole w/ lazy-load will actually trigger loading of this image URL earlier.
* Image is already loaded at this point. Just need to trigger the load event manually
*/
$clone.trigger( 'load' );
} else {
/**
* Finally, some failsafe mechanism, trigger the load event with a delay. There have been cases reported where it does not "always" work.
*/
setTimeout( function () {
$clone.trigger( 'load' );
}, 500 );
}
} else {
show_lightbox();
}
function show_lightbox() {
if ( $lightbox.length ) {
$lightbox.show();
} else {
$lightbox = jQuery( "<div id='tve_zoom_lightbox'><div class='tve_close_lb thrv-svg-icon'>" + TCB_Front.icons.get('cross') + "</div><div id='tve_zoom_image_content'></div></div>" )
.appendTo( 'body' );
$overlay = jQuery( "<div id='tve_zoom_overlay'></div>" ).hide()
.appendTo( 'body' );
var tve_close_lb = function () {
$lightbox.hide();
$overlay.hide();
};
/* set listeners for closing the lightbox */
jQuery( document ).on( "click", ".tve_close_lb", tve_close_lb );
jQuery( document ).on( "click", "#tve_zoom_overlay", tve_close_lb );
jQuery( document ).on( "keyup", function ( e ) {
if ( e.keyCode == 27 ) {
tve_close_lb();
}
} );
jQuery( window ).resize( function () {
var _sizes = $lightbox.data( "data-sizes" ),
windowWidth = window.innerWidth,
windowHeight = window.innerHeight,
resizeScale = windowWidth < 600 ? 0.8 : 0.9;
if ( _sizes.originalWidth > windowWidth * resizeScale || _sizes.originalHeight > windowHeight * resizeScale ) {
var widthPercent = _sizes.originalWidth / windowWidth,
heightPercent = _sizes.originalHeight / windowHeight;
_sizes.width = ( ( widthPercent > heightPercent ) ? ( windowWidth * resizeScale ) : ( windowHeight * resizeScale * ( _sizes.originalWidth / _sizes.originalHeight ) ) );
_sizes.height = ( ( widthPercent > heightPercent ) ? ( windowWidth * resizeScale * ( _sizes.originalHeight / _sizes.originalWidth ) ) : ( windowHeight * resizeScale ) );
}
$lightbox.width( _sizes.width );
$lightbox.css( "margin-left", - ( _sizes.width + 30 ) / 2 );
$lightbox.css( "margin-top", - ( _sizes.height + 30 ) / 2 );
} );
}
$lightbox.data( "data-sizes", img_size );
jQuery( "#tve_zoom_image_content" ).html( "<img src='" + imageSrc + "' alt='" + imgAlt + "'/>" );
$lightbox.css( {
left: offset.left + target_w / 2,
top: offset.top + target_h / 2,
marginLeft: 0,
marginTop: 0,
width: 0,
opacity: 0
} ).animate( {
opacity: 1,
left: '50%',
top: '50%',
marginLeft: - ( img_size.width + 30 ) / 2,
marginTop: - ( img_size.height + 30 ) / 2,
width: img_size.width
}, 150 );
$overlay.fadeIn( 150 );
}
<?php echo 'return false;}';

View File

@@ -0,0 +1,11 @@
<div id="lb-container"></div>
<div class="control-grid no-space">
<label for="lb-animation"><?php echo esc_html__( 'Animation', 'thrive-cb' ) ?></label>
<div class="input">
<select id="lb-animation">
<?php foreach ( $data as $k => $s ) : ?>
<option value="<?php echo esc_attr( $k ) ?>"><?php echo esc_html( $s ) ?></option>
<?php endforeach ?>
</select>
</div>
</div>

View File

@@ -0,0 +1,14 @@
<div class="row middle-xs">
<div class="col col-xs-10">
<?php echo esc_html__( 'Insert / edit hyperlink', 'thrive-cb' ) ?>
</div>
<div class="col col-xs-2 tcb-text-right">
<span class="click" data-fn="open_settings">
<?php tcb_icon( 'settings' ) ?>
</span>
</div>
</div>
<div id="a-link-main"></div>
<label class="tcb-checkbox"><input type="checkbox" class="change target" data-fn="attr" data-attr="target" value="_blank"><span><?php echo esc_html__( 'Open in new tab', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" class="change rel" data-fn="attr" data-attr="rel" value="nofollow"><span><?php echo esc_html__( 'Set link as nofollow', 'thrive-cb' ) ?></span></label>

View File

@@ -0,0 +1,6 @@
<?php $reset_url = network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ); ?>
<p><?php echo esc_html__( 'Someone has requested a password reset for the following account:', 'thrive-cb' ); ?></p>
<p><?php echo sprintf( esc_html__( 'Site Name: %s', 'thrive-cb' ), esc_html( $site_name ) ); ?></p>
<p><?php echo sprintf( esc_html__( 'Username: %s', 'thrive-cb' ), esc_html( $user->user_login ) ); ?></p>
<p><?php echo esc_html__( 'If this was a mistake, just ignore this email and nothing will happen.', 'thrive-cb' ); ?></p>
<p><?php echo esc_html__( 'To reset your password, visit the following address:', 'thrive-cb' ); ?> <a href="<?php echo esc_url( $reset_url ) ?>"><?php echo esc_html( $reset_url ) ?></a></p>

View File

@@ -0,0 +1,6 @@
<div class="control-grid full-width tcb-bn-url">
<label for="v-bn-url">URL <span class="click tve-bunnynet-info ml-5" data-paneltlt-hover data-fn="openTooltip"><?php tcb_icon( 'info-circle-solid' ); ?></span></label>
<input type="text" data-setting="url" class="bn-url tve_provider_url" id="v-bn-url" placeholder="e.g. https://video.bunnycdn.com/play/{library-id}/{video-id}">
</div>
<div class="bunnynet-url-validate inline-message"></div>

View File

@@ -0,0 +1,35 @@
<?php
$settings = array(
array(
'setting' => 'autoplay',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Autoplay', 'thrive-cb' ),
'info' => true,
'info_fn' => 'openTooltip',
),
array(
'setting' => 'controls',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Hide player controls', 'thrive-cb' ),
'disable_option' => 'no-download',
'disable_option_val' => 0,
),
array(
'setting' => 'loop',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Loop', 'thrive-cb' ),
),
array(
'setting' => 'no-download',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Allow users to download', 'thrive-cb' ),
),
);
foreach ( $settings as $setting ) {
tcb_template( 'actions/responsive-video-providers/provider-extra', $setting );
}

View File

@@ -0,0 +1 @@
<div class="extra-settings"></div>

View File

@@ -0,0 +1,27 @@
<?php
$settings = array(
array(
'setting' => 'autoplay',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Autoplay', 'thrive-cb' ),
'info' => true,
'info_fn' => 'openTooltip',
),
array(
'setting' => 'controls',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Hide player controls', 'thrive-cb' ),
),
array(
'setting' => 'loop',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Loop', 'thrive-cb' ),
),
);
foreach ( $settings as $setting ) {
tcb_template( 'actions/responsive-video-providers/provider-extra', $setting );
}

View File

@@ -0,0 +1,5 @@
<div class="control-grid full-width">
<label for="v-eh-url">URL</label>
<input type="text" data-setting="url" class="eh-url tve_provider_url" id="v-eh-url" placeholder="e.g. https://www.domain.com/video.extension">
</div>
<div class="eh-url-validate inline-message"></div>

View File

@@ -0,0 +1,38 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
if ( empty( $data ) || ! is_array( $data ) ) {
return;
}
?>
<div class="control-grid switch" data-setting="<?php echo esc_attr( $data['setting'] ); ?>">
<div class="fill">
<span class="switch-label"><?php echo esc_html( $data['label'] ); ?></span>
<?php if ( ! empty( $data['info'] ) ): ?>
<span class="click tve-switch-info" data-fn="<?php echo esc_attr( $data['info_fn'] ); ?>" data-paneltlt-hover><?php tcb_icon( 'info-circle-solid' ); ?></span>
<?php endif; ?>
</div>
<div class="tcb-switch">
<label>
<input type="checkbox" class="change"
data-fn="extra_settings_changed"
data-elem-attr="<?php echo esc_attr( $data['setting'] ); ?>"
data-elem-attr-val="<?php echo esc_attr( $data['checked_val'] ); ?>"
data-elem-attr-val-unchecked="<?php echo esc_attr( $data['unchecked_val'] ); ?>"
<?php if ( ! empty( $data['disable_option'] ) ) : ?>
data-disable-option="<?php echo esc_attr( $data['disable_option'] ); ?>"
data-disable-value="<?php echo esc_attr( $data['disable_option_val'] ); ?>"
<?php endif; ?>
>
<span class="tcb-lever"></span>
</label>
</div>
</div>

View File

@@ -0,0 +1,33 @@
<?php
$settings = array(
array(
'setting' => 'autoplay',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Autoplay', 'thrive-cb' ),
'info' => true,
'info_fn' => 'openTooltip',
),
array(
'setting' => 'modestbranding',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Hide logo', 'thrive-cb' ),
),
array(
'setting' => 'showinfo',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Hide title bar', 'thrive-cb' ),
),
array(
'setting' => 'byline',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Hide byline', 'thrive-cb' ),
),
);
foreach ( $settings as $setting ) {
tcb_template( 'actions/responsive-video-providers/provider-extra', $setting );
}

View File

@@ -0,0 +1,13 @@
<div class="control-grid wrap">
<label for="v-v-url">
<?php echo esc_html__( 'URL', 'thrive-cb' ) ?>
</label>
<input type="text" data-setting="url" class="v-url tve_provider_url full-width" id="v-v-url" placeholder="e.g. https://vimeo.com/22676965">
</div>
<div class="inline-message"></div>
<div class="control-grid wrap no-space">
<label>
<?php echo esc_html__( 'Player color', 'thrive-cb' ) ?>
</label>
<div class="tcb-text-right v-setting-color full-width"></div>
</div>

View File

@@ -0,0 +1,7 @@
<div class="control-grid wrap">
<label for="v-v-url">
<?php echo esc_html__( 'URL', 'thrive-cb' ) ?>
</label>
<input type="text" data-setting="url" class="v-url tve_provider_url full-width" id="v-v-url" placeholder="e.g. https://domain.vooplayer.com/22676965">
</div>
<div class="vooplayer-url-validate inline-message"></div>

View File

@@ -0,0 +1,27 @@
<?php
$settings = array(
array(
'setting' => 'autoplay',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Autoplay', 'thrive-cb' ),
'info' => true,
'info_fn' => 'openTooltip',
),
array(
'setting' => 'play-bar',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Disable Playbar', 'thrive-cb' ),
),
array(
'setting' => 'fs',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Hide full-screen button', 'thrive-cb' ),
),
);
foreach ( $settings as $setting ) {
tcb_template( 'actions/responsive-video-providers/provider-extra', $setting );
}

View File

@@ -0,0 +1,13 @@
<div class="control-grid wrap">
<label for="v-w-url">
<?php echo esc_html__( 'URL', 'thrive-cb' ) ?>
</label>
<input type="text" data-setting="url" class="w-url tve_provider_url fill" id="v-w-url" placeholder="e.g. http://fast.wistia.net/embed/iframe/pestdpyl7m">
</div>
<div class="inline-message"></div>
<div class="control-grid wrap no-space">
<label>
<?php echo esc_html__( 'Player color', 'thrive-cb' ) ?>
</label>
<div class="tcb-text-right v-setting-color full-width"></div>
</div>

View File

@@ -0,0 +1,49 @@
<?php
$settings = array(
array(
'setting' => 'autoplay',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Autoplay', 'thrive-cb' ),
'info' => true,
'info_fn' => 'openTooltip',
),
array(
'setting' => 'no-cookie',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Disable YouTube cookies', 'thrive-cb' ),
'info' => true,
'info_fn' => 'cookieTooltip',
),
array(
'setting' => 'rel',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Optimize related videos', 'thrive-cb' ),
),
array(
'setting' => 'controls',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Hide player controls', 'thrive-cb' ),
'disable_option' => 'modestbranding,fs',
'disable_option_val' => 0,
),
array(
'setting' => 'fs',
'checked_val' => 0,
'unchecked_val' => 1,
'label' => __( 'Hide full-screen', 'thrive-cb' ),
),
array(
'setting' => 'modestbranding',
'checked_val' => 1,
'unchecked_val' => 0,
'label' => __( 'Hide logo', 'thrive-cb' ),
),
);
foreach ( $settings as $setting ) {
tcb_template( 'actions/responsive-video-providers/provider-extra', $setting );
}

View File

@@ -0,0 +1,5 @@
<div class="control-grid full-width">
<label for="v-yt-url">URL</label>
<input type="text" data-setting="url" class="yt-url tve_provider_url" id="v-yt-url" placeholder="e.g. https://www.youtube.com/watch?v=oJ440S7gTBU">
</div>
<div class="yt-url-validate inline-message"></div>

View File

@@ -0,0 +1,63 @@
<?php echo 'function(trigger,action,config){' ?>
if ( ! config.event_tooltip_text ) {
return false;
}
ThriveGlobal.$j( '.tve_ui_tooltip' ).remove();
var base = ThriveGlobal.$j( '<div></div>', {
'class': 'tve_ui_tooltip tve_tooltip_style_' + config.event_tooltip_style + ' tve_tooltip_position_' + config.event_tooltip_position
} );
base.text( config.event_tooltip_text )
.appendTo( 'body' );
var tooltip_width = base.outerWidth(),
tooltip_height = base.outerHeight(),
offset = 10,
top = 0,
left = 0;
var rect = this.getBoundingClientRect();
switch ( config.event_tooltip_position ) {
case 'top':
left = (rect.right - rect.left - tooltip_width ) / 2 + rect.left;
top = rect.top - tooltip_height - offset;
break;
case 'top_right':
left = rect.right + offset;
top = rect.top - tooltip_height - offset;
break;
case 'right':
left = rect.right + offset;
top = ( rect.bottom - rect.top - tooltip_height ) / 2 + rect.top;
break;
case 'bottom_right':
left = rect.right + offset;
top = rect.bottom + offset;
break;
case 'bottom':
left = ( rect.right - rect.left - tooltip_width ) / 2 + rect.left;
top = rect.bottom + offset;
break;
case 'bottom_left':
left = rect.left - tooltip_width - offset;
top = rect.bottom + offset;
break;
case 'left':
left = rect.left - tooltip_width - offset;
top = (rect.bottom - rect.top - tooltip_height ) / 2 + rect.top;
break;
case 'top_left':
left = rect.left - tooltip_width - offset;
top = rect.top - tooltip_height - offset;
break;
default:
left = 1;
top = 1;
break;
}
base.css( {
top: top + 'px',
left: left + 'px'
} );
ThriveGlobal.$j( this ).on( 'mouseleave', function () {
ThriveGlobal.$j( '.tve_ui_tooltip' ).remove();
} );
<?php echo 'return false;}';

View File

@@ -0,0 +1,18 @@
<label for="e-tooltip-text" class="panel-text"><?php echo esc_html__( 'Show Tooltip on Hover', 'thrive-cb' ) ?></label>
<input type="text" class="change" data-fn="text" placeholder="<?php echo esc_attr__( 'Tooltip text', 'thrive-cb' ) ?>" id="e-tooltip-text">
<div class="mt-5">
<label for="e-tooltip-position" class="panel-text"><?php echo esc_html__( 'Tooltip direction', 'thrive-cb' ) ?></label>
<select id="e-tooltip-position" class="change" data-fn="pos">
<?php foreach ( $data['positions'] as $direction => $title ) : ?>
<option label="<?php echo esc_attr( $title ) ?>" value="<?php echo esc_attr( $direction ) ?>"><?php echo esc_html( $title ) ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="mt-5">
<label for="tooltip-style" class="panel-text"><?php echo esc_html__( 'Style', 'thrive-cb' ) ?></label>
<select class="change t-style" data-fn="style" id="tooltip-style">
<?php foreach ( $data['styles'] as $k => $s ) : ?>
<option value="<?php echo esc_attr( $k ) ?>"><?php echo esc_html( $s ) ?></option>
<?php endforeach ?>
</select>
</div>

View File

@@ -0,0 +1,112 @@
<?php echo 'function(trigger,action,config){' ?>
if ( ! config || ! config.p || ! config.p.id ) {
return false;
}
if ( config.s === 'wistia' ) {
if ( ! window.tcb_w_videos || ! window.tcb_w_videos[ config.p.id ] ) {
return false;
}
var _v = window.tcb_w_videos[ config.p.id ];
if ( config.p.a ) {
_v.play();
}
_v.popover.show();
return false;
}
/* SUPP-10584 - Some ids include = and we need to escape it to not break the html */
var $target = ThriveGlobal.$j( '#tcb-video-popup-' + config.p.id.toString().replace( /=/g, '\\\=' ) ),
$overlay = ThriveGlobal.$j( '#tcb-video-popup-overlay' ),
$body = ThriveGlobal.$j( 'body,html' ),
$document = ThriveGlobal.$j( document ),
width = $target.outerWidth(),
height = $target.outerHeight();
/**
* Adding this class to make the video responsive
*/
if ( config.p.vertical ) {
$target.find( '.tve_responsive_video_container' ).addClass( 'tve_responsive_vertical_video_container' );
}
if ( ! $overlay.length ) {
$overlay = ThriveGlobal.$j( '<div id="tcb-video-popup-overlay" class="tcb-video-popup-overlay"><a href="javascript:void(0)" class="tcb-popup-close" style="display:none"></a></div>' ).css( {
position: 'fixed',
zIndex: 999992,
top: 0,
left: 0,
width: '100%',
height: '100%',
opacity: '0.3',
background: '#000',
display: 'none'
} ).appendTo( 'body' );
}
$overlay.fadeIn( 300 ).find( '.tcb-popup-close' ).hide();
$target.css( {
display: 'none',
visibility: '',
zIndex: 999993,
left: '50%',
top: '50%',
background: '#000',
boxShadow: '0 10px 25px rgba(0,0,0,0.5)'
} );
var $ifr = $target.find( 'iframe' ),
is_custom = false;
if ( $target.hasClass( 'tcb-custom-video' ) ) {
is_custom = true;
if ( ! $target.data( 'tcb-video-player' ) ) {
var _id = $target.find( '.wp-video-shortcode' ).attr( 'id' );
if ( typeof mejs !== 'undefined' && mejs && mejs.players && mejs.players[ _id ] ) {
$target.data( 'tcb-video-player', mejs.players[ _id ] );
} else {
$target.data( 'tcb-video-player', $target.find( 'video' )[ 0 ] );
}
}
} else if ( $ifr.length && $ifr.attr( 'data-src' ) ) {
$ifr.attr( 'src', $ifr.attr( 'data-src' ) );
}
$body.css( 'overflow', 'hidden' );
$target.show( 300, function () {
$overlay.find( '.tcb-popup-close' ).fadeIn( 200 );
if ( is_custom && config.p.a ) {
/* autoplay video */
$target.data( 'tcb-video-player' ).play();
}
} );
function close_it() {
$overlay.find( '.tcb-popup-close' ).hide();
$document.off( 'keyup.videoPopup' );
$overlay.fadeOut( 300 );
$target.hide( 300, function () {
if ( ! $ifr.attr( 'data-src' ) ) {
$ifr.attr( 'data-src', $ifr.attr( 'src' ) );
}
$ifr.removeAttr( 'src' );
if ( is_custom ) {
try {
$target.data( 'tcb-video-player' ).pause();
$target.data( 'tcb-video-player' ).setCurrentTime && $target.data( 'tcb-video-player' ).setCurrentTime( 0 );
} catch ( e ) {
console.log( 'Cannot pause video' );
}
}
} );
$body.css( 'overflow', '' );
}
$overlay.off( 'click.videoPopup' ).on( 'click.videoPopup', function () {
close_it();
} );
// Return on ESC
ThriveGlobal.$j( document ).off( 'keyup.videoPopup' ).on( 'keyup.videoPopup', function ( e ) {
if ( e.keyCode === 27 ) { // ESC key
close_it();
}
} );
return false;
<?php echo '}' ?>

View File

@@ -0,0 +1,6 @@
<div class="control-grid tcb-bn-url no-space wrap">
<label for="v-bn-url"><?php echo esc_html__( 'URL', 'thrive-cb' ) ?> <span class="tve-bunnynet-info ml-5" data-paneltlt-hover data-fn="openTooltip"><?php tcb_icon( 'info-circle-solid' ); ?></span></label>
<input type="text" data-setting="url" class="bn-url fill" id="v-bn-url">
</div>
<div class="bunnynet-url-validate inline-message"></div>

View File

@@ -0,0 +1,5 @@
<div class="extra-settings">
<div class="inline-checkboxes">
<label class="tcb-checkbox"><input type="checkbox" data-setting="a" value="1" checked="checked"><span><?php echo esc_html__( 'Autoplay', 'thrive-cb' ) ?></span></label>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<div class="control-grid no-space wrap">
<label for="v-eh-url"><?php echo esc_html__( 'URL', 'thrive-cb' ) ?></label>
<input type="text" data-setting="url" class="eh-url fill" id="v-eh-url">
</div>
<div class="eh-url-validate inline-message"></div>
<div class="extra-settings">
<div class="inline-checkboxes">
<label class="tcb-checkbox"><input type="checkbox" data-setting="a" value="1" checked="checked"><span><?php echo esc_html__( 'Autoplay', 'thrive-cb' ) ?></span></label>
</div>
</div>

View File

@@ -0,0 +1,26 @@
<div class="control-grid no-space wrap">
<label for="v-v-url">
<?php echo esc_html__( 'URL', 'thrive-cb' ) ?>
</label>
<input type="text" data-setting="url" class="v-url fill" id="v-v-url">
</div>
<div class="inline-message"></div>
<div class="extra-settings">
<div class="control-grid no-space wrap">
<label>
<?php echo esc_html__( 'Player color', 'thrive-cb' ) ?>
</label>
<div class="tcb-text-right v-setting-color full-width"></div>
</div>
<div class="inline-checkboxes">
<label class="tcb-checkbox"><input type="checkbox" data-setting="a" value="1" checked="checked"><span><?php echo esc_html__( 'Autoplay', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" data-setting="l" value="1"><span><?php echo esc_html__( 'Loop', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" data-setting="p" value="1"><span><?php echo esc_html__( 'Show portrait', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" data-setting="t" value="1"><span><?php echo esc_html__( 'Show title', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" data-setting="b" value="1"><span><?php echo esc_html__( 'Show byline', 'thrive-cb' ) ?></span></label>
</div>
<span class="info-text">
<?php echo tcb_icon( 'info' ) ?>
<?php echo esc_html__( 'Title, portrait and byline are visible only when the video is stopped.' ); ?>
</span>
</div>

View File

@@ -0,0 +1,5 @@
<div class="control-grid no-space wrap">
<label for="v-v-url"><?php echo esc_html__( 'URL', 'thrive-cb' ) ?></label>
<input type="text" data-setting="url" class="v-url fill" id="v-v-url">
</div>
<div class="vooplayer-url-validate inline-message"></div>

View File

@@ -0,0 +1,18 @@
<div class="control-grid no-space wrap">
<label for="v-w-url"><?php echo esc_html__( 'URL', 'thrive-cb' ) ?></label>
<input type="text" data-setting="url" class="w-url fill" id="v-w-url">
</div>
<div class="inline-message"></div>
<div class="extra-settings">
<div class="control-grid no-space wrap">
<label>
<?php echo esc_html__( 'Player color', 'thrive-cb' ) ?>
</label>
<div class="tcb-text-right v-setting-color full-width"></div>
</div>
<div class="inline-checkboxes">
<label class="tcb-checkbox"><input type="checkbox" data-setting="a" value="1" checked="checked"><span><?php echo esc_html__( 'Autoplay', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" data-setting="p" value="1"><span><?php echo esc_html__( 'Playbar', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" data-setting="hfs" value="1"><span><?php echo esc_html__( 'Hide full-screen button', 'thrive-cb' ) ?></span></label>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<div class="control-grid no-space wrap">
<label for="v-yt-url"><?php echo esc_html__( 'URL', 'thrive-cb' ) ?></label>
<input type="text" data-setting="url" class="yt-url fill" id="v-yt-url">
</div>
<div class="yt-url-validate inline-message"></div>
<div class="extra-settings">
<div class="inline-checkboxes">
<label class="tcb-checkbox"><input type="checkbox" class="change" data-fn="videoPopSettingChanged" data-setting="no-cookie" value="1"><span><?php echo esc_html__( 'Disable cookies on YouTube', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" class="change" data-fn="videoPopSettingChanged" data-setting="a" value="1" checked="checked"><span><?php echo esc_html__( 'Autoplay', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" class="change" data-fn="videoPopSettingChanged" data-setting="hrv" value="1"><span><?php echo esc_html__( 'Optimize related', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" class="change" data-fn="videoPopSettingChanged" data-setting="ahi" value="1"><span><?php echo esc_html__( 'Hide player controls', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" class="change" data-fn="videoPopSettingChanged" data-setting="hfs" value="1"><span><?php echo esc_html__( 'Hide full-screen', 'thrive-cb' ) ?></span></label>
<label class="tcb-checkbox"><input type="checkbox" class="change" data-fn="videoPopSettingChanged" data-setting="hyl" value="1"><span><?php echo esc_html__( 'Hide logo', 'thrive-cb' ) ?></span></label>
</div>
</div>

View File

@@ -0,0 +1 @@
<div class="update-nag"><?php echo esc_html__( 'This page is setup as a "Blog Page" from WordPress Reading Settings. Thrive Architect cannot be loaded in such instances.', 'thrive-cb' ) ?></div>

View File

@@ -0,0 +1,22 @@
<style type="text/css">
#tcb-admin-page-loader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
background: rgba(0, 0, 0, .4);
display: none;
}
#tcb-admin-page-loader img {
position: absolute;
top: 50%;
left: 50%;
margin: -25px 0 0 -25px;
}
</style>
<div id="tcb-admin-page-loader">
<img src="<?php echo esc_url( tve_editor_css( 'images/loader_transparent.gif' ) ); ?>" alt="" width="50" height="50"/>
</div>

View File

@@ -0,0 +1,96 @@
<?php
$license_warning_class='';
if ( TD_TTW_User_Licenses::get_instance()->is_in_grace_period( 'tcb' ) ) {
$license_warning_class = 'tve-license-warning';
}elseif ( ! TD_TTW_User_Licenses::get_instance()->has_active_license( 'tcb' ) ) {
$license_warning_class = 'tve-license-warning-red';
}
if ( ! empty( $data['show_migrate_button'] ) ) :
?>
<br>
<div class="postbox" style="text-align: center;">
<div class="inside thrive-architect">
<?php echo esc_html__( 'You can upgrade this post / page to Thrive Architect. Upgrading the content will disable the default WP editor for this post and activate the Thrive Architect editor for it. This will allow you to have your content (text and images) saved if you want to disable Thrive Architect for this post. You will not lose any content during this action - all of your current WP editor content will get saved as a "WordPress Content" element and appended to the end of the Thrive Architect content', 'thrive-cb' ); ?>
<br><br>
<a class="thrive-architect-edit-link <?php echo $license_warning_class; ?>" href="javascript:void(0)" data-edit="<?php echo esc_attr( $data['edit_url'] ); ?>" id="tcb2-migrate-post">
<div class="thrive-architect-admin-icon-holder">
<div class="thrive-architect-admin-icon"></div>
</div>
<div class="thrive-architect-admin-text">
<?php echo esc_html__( 'Upgrade to Thrive Architect', 'thrive-cb' ); ?>
</div>
</a>
<br/>
</div>
</div>
<br>
<?php endif; ?>
<?php tve_enqueue_style( 'tve_architect_edit_links', tve_editor_css( 'thrive-architect-edit-links.css' ) ); ?>
<br/>
<?php if ( ! $data['landing_page'] && ! empty( $data['tcb_enabled'] ) ) : ?>
<div class="postbox" style="text-align: center;">
<div class="inside thrive-architect">
<p>
<?php echo esc_html__( 'You are currently using Thrive Architect to edit this content.', 'thrive-cb' ); ?>
</p>
<p class="bottom-spacing">
<?php echo esc_html__( 'You can continue editing with Thrive Architect or return to the default WordPress editor', 'thrive-cb' ); ?>
</p>
<br>
<a class="thrive-architect-edit-link tcb-enable-editor <?php echo $license_warning_class; ?>" data-id="<?php echo esc_attr( $data['post_id'] ); ?>" href="<?php echo esc_url( $data['edit_url'] ); ?>"
id="thrive_preview_button" target="_blank">
<div class="thrive-architect-admin-icon-holder">
<div class="thrive-architect-admin-icon"></div>
</div>
<div class="thrive-architect-admin-text">
<?php echo esc_html__( 'Launch Thrive Architect', 'thrive-cb' ); ?>
</div>
</a>
<p>
<?php echo esc_html__( 'or', 'thrive-cb' ); ?>
</p>
<a href="javascript:void(0)" class="tcb-disable" data-id="<?php echo esc_attr( $data['post_id'] ); ?>"
id="tcb2-show-wp-editor"><?php echo esc_html__( 'Return to the WP editor', 'thrive-cb' ); ?></a>
</div>
</div>
<div class="tcb-flags">
<input disabled="disabled" type="hidden" name="tcb_disable_editor" id="tcb_disable_editor"
value="<?php echo esc_attr( wp_create_nonce( 'tcb_disable_editor' ) ); ?>">
</div>
<?php elseif ( ! empty( $data['landing_page'] ) ) : ?>
<div class="postbox" style="text-align: center;">
<div class="inside thrive-architect">
<p>
<?php echo esc_html__( 'You are currently using a Thrive Architect landing page to display this piece of content.', 'thrive-cb' ); ?>
</p>
<p class="bottom-spacing">
<?php echo esc_html__( 'You can continue editing with Thrive Architect or revert to your theme template', 'thrive-cb' ); ?>
</p>
<br>
<a class="thrive-architect-edit-link tcb-enable-editor <?php echo $license_warning_class; ?>" data-id="<?php echo esc_attr( $data['post_id'] ); ?>" href="<?php echo esc_url( $data['edit_url'] ); ?>"
id="thrive_preview_button" target="_blank">
<div class="thrive-architect-admin-icon-holder">
<div class="thrive-architect-admin-icon"></div>
</div>
<div class="thrive-architect-admin-text">
<?php echo esc_html__( 'Launch Thrive Architect', 'thrive-cb' ); ?>
</div>
</a>
<p>
<?php echo esc_html__( 'or', 'thrive-cb' ); ?>
</p>
<a href="javascript:void(0)" class="button tcb-revert" data-nonce="<?php esc_attr_e( $data['nonce'] ); ?>"><?php echo esc_html__( 'Revert to theme template', 'thrive-cb' ); ?></a>
</div>
</div>
<?php else : ?>
<a class="thrive-architect-edit-link tcb-enable-editor <?php echo $license_warning_class; ?>" data-id="<?php echo esc_attr( $data['post_id'] ); ?>" href="<?php echo esc_url( $data['edit_url'] ); ?>"
id="thrive_preview_button" target="_blank">
<div class="thrive-architect-admin-icon-holder">
<div class="thrive-architect-admin-icon"></div>
</div>
<div class="thrive-architect-admin-text">
<?php echo esc_html__( 'Launch Thrive Architect', 'thrive-cb' ); ?>
</div>
</a>
<?php endif; ?>

View File

@@ -0,0 +1,60 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/21/2019
* Time: 3:27 PM
*/
//Central Style Panel Drawer
$has_data = array(
'styles' => ! empty( $data['styles']['button'] ) || ! empty( $data['styles']['section'] ) || ! empty( $data['styles']['contentbox'] ),
'vars' => ! empty( $data['vars']['colours'] ) || ! empty( $data['vars']['gradients'] ) || ! empty( $data['skin_palettes'] ),
'fonts' => true,
);
?>
<div id="c-s-p-content" class="scrollbar">
<div class="items-4 input tve-btn-group tve-csp-button-group">
<?php if ( $has_data['vars'] ) : ?>
<div class="tve-btn click" data-fn="dom_switch_section" data-value="vars">
<span><?php tcb_icon( 'palette' ); ?></span>
<span><?php echo esc_html__( 'Colors', 'thrive-cb' ); ?></span>
</div>
<?php endif; ?>
<?php if ( $has_data['styles'] ) : ?>
<div class="tve-btn click" data-fn="dom_switch_section" data-value="styles">
<span><?php tcb_icon( 'blocks' ); ?></span>
<span><?php echo esc_html__( 'Elements', 'thrive-cb' ); ?></span>
</div>
<?php endif; ?>
<?php if ( $has_data['fonts'] ) : ?>
<div class="tve-btn click" data-fn="dom_switch_section" data-value="fonts">
<span><?php tcb_icon( 'typography' ); ?></span>
<span><?php echo esc_html__( 'Fonts', 'thrive-cb' ); ?></span>
</div>
<?php endif; ?>
</div>
<?php if ( $has_data['styles'] ) : ?>
<div class="c-s-p-section" data-section="styles">
<?php foreach ( $data['styles'] as $key => $set_templates ) : ?>
<?php if ( empty( $set_templates ) ) : ?>
<?php continue; ?>
<?php endif; ?>
<div class="c-s-p-tpl-list-wrapper">
<span class="c-s-p-list-title"></span>
<div class="c-s-p-tpl-list" data-list="<?php echo esc_attr( $key ); ?>"></div>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if ( $has_data['vars'] ) : ?>
<div class="c-s-p-section" data-section="vars"></div>
<?php endif; ?>
<?php if ( $has_data['fonts'] ) : ?>
<div class="c-s-p-section" data-section="fonts"></div>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,84 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/** @var $data TCB_Editor */
?>
<!-- used for palette colors in sidebar preview-->
<style id="tve-elem-palettes"></style>
<div id="tve_cpanel" class="state-default">
<div class="tve-cpanel-top-content">
<?php do_action( 'tcb_cpanel_top_content' ); ?>
</div>
<div class="tve-active-element no-states" data-default="<?php echo esc_html__( 'No Element Selected', 'thrive-cb' ); ?>">
<div class="element-name-info-wrapper">
<div class="element-name"><?php echo esc_html__( 'No Element Selected', 'thrive-cb' ); ?></div>
<span class="element-info click"></span>
</div>
<div class="element-states"></div>
<div id="multiple-selection-settings" style="display:none;">
<button class="tve-button active click" data-type="move" data-fn="toggleMultipleSelectMode">
<?php tcb_icon( 'move' ); ?>
<span><?php echo esc_html__( 'Moving', 'thrive-cb' ); ?></span>
</button>
<button class="tve-button click" data-type="style" data-fn="toggleMultipleSelectMode">
<?php tcb_icon( 'brush' ); ?>
<span><?php echo esc_html__( 'Styling', 'thrive-cb' ); ?></span>
</button>
</div>
</div>
<div id="tve-scroll-panel" class="trigger">
<div class="tve-panel">
<?php /* information at the top of components that we are currently in Edit Mode */ ?>
<div id="component-edit-mode" class="info-text grey-text orange border white-bg bigger m-5 tcb-hide">
<?php echo sprintf( esc_html__( 'You are now in Edit Mode. When finished, press "DONE" in the bottom bar', 'thrive-cb' ) ); ?>
</div>
<div id="multiple-selection-notice" class="tcb-hide multi-select-sidebar-message">
<?php echo sprintf( esc_html__( 'Multiple selection mode activated.', 'thrive-cb' ) ); ?>
<br>
<?php echo sprintf( esc_html__( 'You can now %s the selected elements across the page', 'thrive-cb' ), '<span class="selection-action">move</span>' ); ?>
</div>
<button id="group-moving-exit" data-fn="exit_multiple_selected_mode" class="tcb-hide multi-select-sidebar-message click">
<?php echo sprintf( esc_html__( 'Exit group moving', 'thrive-cb' ) ); ?>
</button>
<div id="component-jump-mode" class="tcb-hide tcb-flex">
<p class="info-text grey-text orange border white-bg bigger m-5"><?php echo esc_html__( 'Select an element as your target and click "Add jumplink" when you are done.', 'thrive-cb' ); ?></p>
<img id="tve-jumplink-helper" src="<?php echo esc_url( tve_editor_css( 'images/jumplink-helper.png' ) ); ?>" width="179" height="135" srcset="<?php echo esc_url( tve_editor_css( 'images/jumplink-helper@2x.png' ) ); ?> 2x">
</div>
<div class="sidebar-block default-text default-visible">
<?php $file = apply_filters( 'tcb_editor_default_sidebar', TVE_TCB_ROOT_PATH . '/inc/views/sidebar-default.php' ); ?>
<?php if ( is_file( $file ) ) : ?>
<?php require_once $file; ?>
<?php endif; ?>
</div>
<div id="tve-components" class="tcb-flex sidebar-block" style="display: none">
<div id="tcb-drop-panels"></div>
<?php $data->elements->output_components(); ?>
</div>
<?php /* custom sidebar states for elements */ ?>
<?php foreach ( $data->elements->custom_sidebars() as $key => $element_sidebar ) : ?>
<div class="sidebar-block" style="display: none" id="sidebar-<?php echo esc_attr( $key ); ?>"
data-title="<?php echo esc_attr( $element_sidebar['title'] ); ?>"><?php echo $element_sidebar['template']; ?></div> <?php // phpcs:ignore ?>
<?php endforeach ?>
</div>
</div>
<div class="tve-settings tcb-relative" id="tcb-editor-settings"><?php tcb_template( 'editor-settings', $data ); ?></div>
<a href="javascript:void(0)" class="panel-extend click" data-fn="togglePanel" data-title-collapsed="<?php echo esc_attr__( 'Expand panel', 'thrive-cb' ); ?>"
data-title-expanded="<?php echo esc_attr__( 'Collapse panel', 'thrive-cb' ); ?>" title="<?php echo esc_attr__( 'Collapse panel', 'thrive-cb' ); ?>">
<?php tcb_icon( 'caret-left-solid' ); ?>
</a>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<audio controls style="width: 100%;" playsinline class="tcb-audio" data-c-f-id="<?php echo $data['name']; ?>" data-title="<?php echo $data['title']; ?>" data-id="<?php echo $data['id']; ?>" <?php echo $data['extra']; ?>>
<source src="<?php echo $data['url']; ?>" type="<?php echo $data['mime_type']; ?>">
</audio>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<img class="<?php echo $data['classes']; ?>" alt="<?php echo $data['alt']; ?>"
data-css="<?php echo $data['data-css']; ?>" data-id="<?php echo $data['id']; ?>" data-c-f-id="<?php echo $data['name']; ?>"
width="<?php echo $data['width']; ?>" height="<?php echo $data['height']; ?>"
title="<?php echo $data['title']; ?>" src="<?php echo $data['url']; ?>" <?php echo $data['extra']; ?>>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<video style="width: 100%;" data-provider="external" class="dynamic-source" is-placeholder=1 data-c-f-hidden=1 data-is-video-background=1 controlslist="nodownload" data-c-f-id="<?php echo $data['name']; ?>" data-title="<?php echo $data['title']; ?>" data-id="<?php echo $data['id']; ?>" <?php echo $data['extra']; ?>>
<source src="<?php echo $data['url']; ?>" type="<?php echo $data['mime_type']; ?>">
</video>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<video style="width: 100%;" data-provider="external" class="tcb-responsive-video" controlslist="nodownload" data-c-f-id="<?php echo $data['name']; ?>" data-title="<?php echo $data['title']; ?>" data-id="<?php echo $data['id']; ?>" <?php echo $data['extra']; ?>>
<source src="<?php echo $data['url']; ?>" type="<?php echo $data['mime_type']; ?>">
</video>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-theme
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="state-custom-scripts state state-no-search">
<span class="label tcb-hide"><?php echo esc_html__( 'Custom Scripts', 'thrive-cb' ); ?></span>
<div class="scripts-message-container">
<section class="custom-scripts-section">
<span class="message"><?php echo esc_html__( 'Custom Scripts are now more easily accessibile in the left settings sidebar', 'thrive-cb' ); ?></span>
</section>
</div>
</div>

View File

@@ -0,0 +1,43 @@
<div class="side">
<?php if ( tcb_editor()->has_revision_manager() ) : ?>
<a class="click" href="javascript:void(0)" data-fn="revisions"
data-tooltip="<?php echo esc_attr__( 'Revision Manager', 'thrive-cb' ); ?>" data-position="top">
<?php tcb_icon( 'clock-regular' ); ?>
</a>
<?php endif ?>
<a class="click tve-disabled" id="tcb-undo" href="javascript:void(0)" data-fn="undo" data-position="top"
data-tooltip="<?php echo esc_attr__( 'Undo', 'thrive-cb' ); ?>">
<?php tcb_icon( 'undo-regular' ); ?>
</a>
<a class="click tve-disabled" id="tcb-redo" href="javascript:void(0)" data-fn="redo" data-position="top"
data-tooltip="<?php echo esc_attr__( 'Redo', 'thrive-cb' ); ?>">
<?php tcb_icon( 'redo-regular' ); ?>
</a>
</div>
<div class="side save">
<a href="javascript:void(0)" class="save-btn click save" data-fn="save">
<span class="txt"><?php echo esc_html__( 'Save work', 'thrive-cb' ); ?></span>
<span class="drop click" data-fn="click_save_arrow"><?php tcb_icon( 'chevron-up-regular' ); ?></span>
</a>
<a href="javascript:void(0)" class="save-btn click edit-mode p-0 tve-button orange" data-fn="f:main.EditMode.exit"><?php echo esc_html__( 'DONE', 'thrive-cb' ); ?></a>
<a href="javascript:void(0)" class="save-btn click jump-mode p-0 tve-button orange" data-fn="f:jumplinks.cancel"><?php echo esc_html__( 'EXIT', 'thrive-cb' ); ?></a>
</div>
<div class="save-options">
<div class="save-options-dropdown">
<a href="<?php echo esc_url( tcb_get_preview_url( false, false ) ); ?>" class="click" data-fn="save_exit"><?php esc_html_e( 'Save and Preview', 'thrive-cb' ); ?></a>
<a id="tve-save-dash-return" href="<?php echo esc_url( tcb_get_default_edit_url() ); ?>" class="click" data-fn="save_exit"></a>
<a class="click" data-fn="toggle_without_save_options"><?php esc_html_e( 'Exit without saving', 'thrive-cb' ); ?></a>
</div>
<div class="exit-without-save">
<div class="center-text confirm-exit">
<span> <?php echo esc_html__( 'Are you sure you want to', 'thrive-cb' ) ?> </span>
<span class="confirm-exit-bold"><?php echo esc_html__( ' exit without saving?', 'thrive-cb' ) ?> </span>
</div>
<div class="action-buttons">
<a href="<?php echo esc_url( tcb_get_preview_url( false, false ) ); ?>" data-fn="exit_without_save" class="click tve-button btn-apply"><?php echo esc_html__( 'Yes, exit', 'thrive-cb' ) ?></a>
<button data-fn="cancel_exit" class="click tve-button btn-cancel"><?php echo esc_html__( 'Cancel', 'thrive-cb' ) ?></button>
</div>
</div>
</div>

View File

@@ -0,0 +1,8 @@
<?php foreach ( tcb_editor()->elements->get_promoted() as $element ) : ?>
<div class="tve-element tve-promoted-element" data-elem="<?php echo esc_attr( $element->tag() ) ?>" data-alternate="<?php echo esc_attr($element->alternate()) ?>" draggable="true">
<div class="item">
<span class="tve-e-icon"><?php tcb_icon( $element->icon() ); ?></span>
<span class="tve-e-name"><?php echo esc_html( $element->name() ); ?></span>
</div>
</div>
<?php endforeach; ?>

View File

@@ -0,0 +1,27 @@
<?php foreach ( tcb_editor()->elements->get_for_front() as $category => $elements ) : ?>
<div class="tve-category expanded"<?php echo empty( $elements ) ? ' style="display: none;"' : ''; ?>
data-category="<?php echo esc_attr( $category ); ?>">
<a class="c-header" href="javascript:void(0)" onclick="this.parentNode.classList.toggle('expanded')">
<?php tcb_icon( 'caret-right-solid' ) ?>
<?php echo esc_html( $category ); ?>
</a>
<div class="c-items">
<?php foreach ( $elements as $element ) : ?>
<div class="tve-element" data-elem="<?php echo esc_attr( $element->tag() ) ?>" data-alternate="<?php echo esc_attr( $element->alternate() ) ?>"
draggable="true">
<button class="tve-element-pin<?php echo $element->pinned ? ' pinned' : ''; ?>"
data-cat="<?php echo esc_attr( $element->category() ) ?>"></button>
<div class="item">
<span class="tve-e-icon">
<?php tcb_icon( $element->icon() ); ?>
</span>
<span class="tve-e-name">
<?php echo esc_html( $element->name() ); ?>
</span>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<?php endforeach; ?>
<?php do_action( 'tcb_sidebar_elements_notice' ); ?>

View File

@@ -0,0 +1,18 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tcb-elem-placeholder thrv_audio thrv_wrapper" data-type="custom">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'audio-player', false, 'editor' ); ?>
<?php echo esc_html__( 'Insert Audio', 'thrive-cb' ); ?>
</span>
<div class="tve_audio_container" style="display: none;">
<div class="audio_overlay"></div>
</div>
</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 class="thrv_wrapper tcb-add-block-placeholder thrv-page-section thrv-lp-block tcb-elem-placeholder tve_no_icons tcb-no-title" data-static="1">
<span class="tcb-inline-placeholder-action">
<span class="tcb-placeholder-button">+</span>
<span class="tcb-placeholder-title"><?php echo esc_html__( 'Add a Block', 'thrive-cb' ); ?></span>
<span class="tcb-placeholder-subtitle"><?php echo esc_html__( 'or drag an element into the page', 'thrive-cb' ); ?></span>
</span>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv-button thrv-button-v2 tcb-local-vars-root">
<div class="thrive-colors-palette-config" style="display: none !important">__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"62516":{"name":"Main Accent","parent":-1}},"gradients":[]},"palettes":[{"name":"Default Palette","value":{"colors":{"62516":{"val":"rgb(19, 114, 211)","hsl":{"h":210,"s":0.83,"l":0.45}}},"gradients":[]}}]}__CONFIG_colors_palette__</div>
<a href="#" class="tcb-button-link tcb-plain-text">
<span class="tcb-button-texts"><span class="tcb-button-text thrv-inline-text"> Click Here Now </span></span>
</a>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/3/2017
* Time: 1:47 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_disqus_comments">
<div id="disqus_thread" data-disqus_identifier="368" data-disqus_shortname="<?php echo esc_attr( tve_get_comments_disqus_shortname() ); ?>" data-disqus_url=""></div>
</div>

View File

@@ -0,0 +1,21 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/4/2017
* Time: 12:00 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$facebook_admins_arr = tve_get_comments_facebook_admins();
$facebook_admins_str = '';
if ( ! empty( $facebook_admins_arr ) && is_array( $facebook_admins_arr ) ) {
$facebook_admins_str = implode( ';', $facebook_admins_arr );
}
?>
<div class="thrv_wrapper thrv_facebook_comments tve_draggable">
<div class="tve-fb-comments" data-colorscheme="light" data-numposts="20" data-order-by="social" data-href="" data-fb-moderator-ids="<?php echo esc_attr( $facebook_admins_str ); ?>"></div>
</div>

View File

@@ -0,0 +1,48 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv-contact-form" data-ct="contact_form-21969">
<form action="" method="post" novalidate>
<div class="tve-cf-item-wrapper">
<div class="tve-cf-item">
<div class="thrv-cf-input-wrapper" data-type="first_name">
<label><?php echo esc_html__( 'First Name', 'thrive-cb' ) ?></label>
<div class="tve-cf-input">
<input placeholder="John" data-placeholder="John" type="text" name="first_name" required="required">
</div>
</div>
</div>
<div class="tve-cf-item">
<div class="thrv-cf-input-wrapper" data-type="email">
<label><?php echo esc_html__( 'Email Address', 'thrive-cb' ) ?></label>
<div class="tve-cf-input">
<input placeholder="j.doe@inbox.com" data-placeholder="j.doe@inbox.com" type="email" name="email" required="required">
</div>
</div>
</div>
<div class="tve-cf-item">
<div class="thrv-cf-input-wrapper" data-type="message">
<label><?php echo esc_html__( 'Message', 'thrive-cb' ) ?></label>
<div class="tve-cf-input">
<textarea placeholder="Type your message here..." data-placeholder="Type your message here..." name="message" required="required"></textarea>
</div>
</div>
</div>
</div>
<div class="thrv_wrapper tve-form-button tcb-local-vars-root">
<div class="thrive-colors-palette-config" style="display: none !important">__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"cf6ff":{"name":"Main Color","parent":-1},"73c8d":{"name":"Dark Accent","parent":"cf6ff"}},"gradients":[]},"palettes":[{"name":"Default","value":{"colors":{"cf6ff":{"val":"rgb(20, 115, 210)","hsl":{"h":210,"s":0.82,"l":0.45}},"73c8d":{"val":"rgb(21, 89, 162)","hsl_parent_dependency":{"h":211,"s":0.77,"l":0.35}}},"gradients":[]}}]}__CONFIG_colors_palette__</div>
<a href="#" class="tcb-button-link tve-form-button-submit">
<span class="tcb-button-texts tcb-plain-text"><span class="tcb-button-text thrv-inline-text"><?php echo esc_html__( 'Send Message', 'thrive-cb' ); ?></span></span>
</a>
<input type="submit" style="display: none !important;">
</div>
</form>
</div>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 2/18/2019
* Time: 10:18 AM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv-content-block tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'add', false, 'editor' ); ?>
<?php echo esc_html__( 'Add Content Block', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad">
<div class="tve-content-box-background"></div>
<div class="tve-cb tcb-parent-placeholder-empty"><div class="tcb-replaceable-placeholder"><?php echo esc_html__( 'Click to add text or drag and drop element from right hand panel', 'thrive-cb' ); ?></div></div>
</div>

View File

@@ -0,0 +1,42 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/16/2017
* Time: 12:42 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_countdown_timer thrv-countdown_timer_evergreen tve_clearfix init_done tve_red"
data-day="0"
data-hour="0"
data-min="0"
data-sec="0"
data-id="<?php echo esc_attr( uniqid( 'evergreen_' ) ); ?>"
data-expday="0"
data-exphour="1"
data-norestart="0">
<div class="sc_timer_content tve_clearfix tve_block_center">
<div class="tve_t_day tve_t_part">
<div class="t-digits"></div>
<div class="thrv-inline-text t-caption">Days</div>
</div>
<div class="tve_t_hour tve_t_part">
<div class="t-digits"></div>
<div class="thrv-inline-text t-caption">Hours</div>
</div>
<div class="tve_t_min tve_t_part">
<div class="t-digits"></div>
<div class="thrv-inline-text t-caption">Minutes</div>
</div>
<div class="tve_t_sec tve_t_part">
<div class="t-digits"></div>
<div class="thrv-inline-text t-caption">Seconds</div>
</div>
<div class="tve_t_text"></div>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_ct_symbol tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'add', false, 'editor' ); ?>
<?php echo esc_html__( 'Insert Content Template or Symbol', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 4/20/2017
* Time: 4:00 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv-divider" data-style-d="tve_sep-1" data-thickness-d="3" data-color-d="rgb(66, 66, 66)" data-gradient-d="linear-gradient(90deg, rgb(66, 66, 66) 0%, rgb(0, 0, 0) 100%)">
<hr class="tve_sep tve_sep-1">
</div>

View File

@@ -0,0 +1,5 @@
<div class="thrv_wrapper tcb-elem-placeholder <?php echo esc_attr( $data['class'] ) ?>"<?php echo isset( $data['extra_attr'] ) ? ' ' . $data['extra_attr'] : '' ?>> <?php // phpcs:ignore ?>
<span class="tcb-inline-placeholder-action with-icon"><?php tcb_icon( $data['icon'], false, 'editor' ) ?>
<?php echo esc_html( $data['title'] ); ?>
</span>
</div>

View File

@@ -0,0 +1,26 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 4/20/2017
* Time: 4:00 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv-fill-counter tve_red tve_normalfc thrv_data_element">
<div class="tve_fill_counter_n" style="stroke-dasharray: 476.25;" data-fill="75">
<svg viewBox="0 0 202 202" class="tve_fill_counter_circle" shape-rendering="optimizeSpeed">
<circle class="tve_fill_counter_circle_inner" r="101" cx="101" cy="101"></circle>
</svg>
<div class="tve_fill_text_in">
<div class="tve_fill_text_value">
<div class="thrv-inline-text tve_fill_text tve_editable"><div class="tve-fill-text-dynamic" contenteditable="false">75%</div></div>
</div>
<div class="thrv-inline-text tve_editable tve_data_element_label">Fill Counter</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,11 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_symbol tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php echo esc_html__( 'Insert Footer', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 4/28/2017
* Time: 4:30 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv-google-map-embedded-code tve-flexible-container">
<iframe title="Google Map" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=""></iframe>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_symbol tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php echo esc_html__( 'Insert Header', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 4/18/2017
* Time: 12:03 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_custom_html_shortcode tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'custom_html', false, 'editor' ); ?>
<?php echo esc_html__( 'Insert Custom HTML', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_icon tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'add', false, 'editor' ); ?>
<?php echo esc_html__( 'Add Icon', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper tcb-image-gallery tcb-elem-placeholder tcb-gallery-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'images', false, 'editor' ); ?>
<span class="tcb-placeholder-text"><?php echo esc_html__( '+ Select images', 'thrive-cb' ); ?></span>
</span>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper tve_image_caption tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'image', false, 'editor' ); ?><span class="tcb-placeholder-text"><?php echo esc_html__( 'Insert Image', 'thrive-cb' ); ?></span>
</span>
</div>

View File

@@ -0,0 +1,282 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
$dynamic_links = [
'register' => [ 'label' => 'Register' ],
'login' => [ 'label' => 'Log In' ],
'logout' => [ 'label' => 'Logout' ],
'bk_to_login' => [ 'label' => 'Back to Login' ],
'pass_reset' => [ 'label' => 'Password Reset' ],
];
foreach ( $dynamic_links as $key => $dynamic_link ) {
$_link = tcb_get_dynamic_link( $dynamic_link['label'], 'Login Form' );
if ( $_link ) {
$dynamic_link['id'] = isset( $_link['id'] ) ? $_link['id'] : '';
$dynamic_link['url'] = isset( $_link['url'] ) ? $_link['url'] : '#';
$dynamic_links[ $key ] = $dynamic_link;
}
}
?>
<div class="thrv_wrapper thrv-login-element" data-ct="login" data-ct-name="Default" data-type="login">
<div class="tcb-login-form-wrapper tve_empty_dropzone tve_no_drag tve-form-state tve-active-state" data-state="login">
<div class="thrv_wrapper tcb-login-form tcb-no-clone tcb-no-delete tcb-no-save tve_no_drag">
<form action="" method="post" novalidate class="tve-login-form">
<div class="tve-form-drop-zone">
<div class="tve-login-item-wrapper">
<div class="tve-login-form-item tcb-no-clone tcb-no-delete tcb-no-save">
<div class="thrv-form-input-wrapper tcb-no-clone tcb-no-delete tcb-no-save" data-type="email">
<div class="thrv_wrapper tcb-label tcb-removable-label thrv_text_element tcb-no-delete tcb-no-save tcb-no-clone tve_no_drag">
<div class="tcb-plain-text"><?php echo esc_html__( 'Username or Email Address', 'thrive-cb' ); ?></div>
</div>
<div class="tve-login-form-input tcb-no-clone tcb-no-delete tcb-no-save">
<input type="text" name="username">
</div>
</div>
</div>
<div class="tve-login-form-item tcb-no-clone tcb-no-delete tcb-no-save">
<div class="thrv-form-input-wrapper tcb-no-clone tcb-no-delete tcb-no-save" data-type="password">
<div class="thrv_wrapper tcb-label tcb-removable-label thrv_text_element tcb-no-delete tcb-no-save tcb-no-clone tve_no_drag">
<div class="tcb-plain-text"><?php echo esc_html__( 'Password', 'thrive-cb' ); ?></div>
</div>
<div class="tve-login-form-input tcb-no-clone tcb-no-delete tcb-no-save">
<input type="password" name="password">
</div>
</div>
</div>
<div class="tve-login-form-item tcb-remember-me-item tcb-no-delete tcb-no-clone tcb-no-save">
<?php tcb_template( 'controls/lead-generation/lg-gdpr.phtml', [ 'remember_me' => true ], false, 'backbone' ); ?>
</div>
</div>
<div class="thrv_wrapper thrv-button tar-login-submit tar-login-elem-button tcb-no-delete tcb-no-save tcb-no-scroll tcb-no-clone tcb-local-vars-root">
<div class="thrive-colors-palette-config" style="display: none !important">__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"62516":{"name":"Main Accent","parent":-1}},"gradients":[]},"palettes":[{"name":"Default Palette","value":{"colors":{"62516":{"val":"rgb(19, 114, 211)","hsl":{"h":210,"s":0.83,"l":0.45}}},"gradients":[]}}]}__CONFIG_colors_palette__</div>
<a href="javascript:void(0);" class="tcb-button-link tcb-no-delete" data-editable="false">
<span class="tcb-button-texts tcb-no-clone tve_no_drag tcb-no-save tcb-no-delete"><span class="tcb-button-text thrv-inline-text tcb-no-clone tve_no_drag tcb-no-save tcb-no-delete"><?php esc_html_e( 'Log In', 'thrive-cb' ); ?></span></span>
</a>
</div>
<div class="thrv_wrapper thrv_text_element tcb-lost-password-link tar-login-elem-link tcb-no-title tcb-no-save">
<p class="tcb-switch-state" data-switch_state="forgot_password" data-shortcode-id="1">
<a href="javascript:void(0)"
class="tve-dynamic-link"
data-dynamic-link="thrive_login_form_shortcode"
data-shortcode-id="<?php echo esc_attr( $dynamic_links['pass_reset']['id'] ); ?>"
data-editable="false"
><?php esc_html_e( 'I have forgotten my password', 'thrive-cb' ); ?></a>
</p>
<p style="text-align: center">
<?php esc_html_e( "Don't have an account yet?", 'thrive-cb' ); ?>
<a href="javascript:void(0)"
class="tve-dynamic-link"
data-dynamic-link="thrive_login_form_shortcode"
data-shortcode-id="<?php echo esc_attr( $dynamic_links['register']['id'] ); ?>"
data-editable="false"
><?php esc_html_e( 'Sign up', 'thrive-cb' ); ?></a>
</p>
</div>
<!--Needed for the loader-->
<button type="submit" style="display: none"></button>
</div>
</form>
</div>
</div>
<div class="tcb-login-form-wrapper tve_empty_dropzone tve_no_drag tve-form-state tcb-permanently-hidden" data-state="register">
<div class="thrv_wrapper tcb-registration-form tcb-no-clone tcb-no-delete tcb-no-save tve_no_drag" data-form-settings="<?php echo esc_attr( json_encode( TCB_Login_Element_Handler::get_registration_form_default_settings() ) ); ?>">
<form action="" method="post" novalidate class="tve-login-form">
<div class="tve-form-drop-zone tve_lead_generated_inputs_container">
<div class="tve-login-item-wrapper tve-form-fields-container">
<div class="tve-login-form-item tcb-no-clone tcb-no-delete tcb-no-save tve_lg_input_container">
<div class="thrv-form-input-wrapper tcb-no-clone tcb-no-delete tcb-no-save" data-type="name">
<div class="thrv_wrapper tcb-label tcb-removable-label thrv_text_element tcb-no-delete tcb-no-save tcb-no-clone tve_no_drag">
<div class="tcb-plain-text"><?php esc_html_e( 'Name', 'thrive-cb' ); ?></div>
</div>
<div class="tve-login-form-input tcb-no-clone tcb-no-delete tcb-no-save">
<input type="text" name="name" data-field="name" data-name="Name" placeholder="<?php esc_attr_e( 'Enter your name', 'thrive-cb' ); ?>">
</div>
</div>
</div>
<div class="tve-login-form-item tcb-no-clone tcb-no-delete tcb-no-save tve_lg_input_container">
<div class="thrv-form-input-wrapper tcb-no-clone tcb-no-delete tcb-no-save" data-type="email">
<div class="thrv_wrapper tcb-label tcb-removable-label thrv_text_element tcb-no-delete tcb-no-save tcb-no-clone tve_no_drag">
<div class="tcb-plain-text"><?php esc_html_e( 'Email', 'thrive-cb' ); ?></div>
</div>
<div class="tve-login-form-input tcb-no-clone tcb-no-delete tcb-no-save">
<input type="email" name="email" data-validation="email" data-required="1" data-field="email" data-name="Email" placeholder="<?php esc_attr_e( 'Enter your email', 'thrive-cb' ); ?>">
</div>
</div>
</div>
<div class="tve-login-form-item tcb-no-clone tcb-no-delete tcb-no-save tve_lg_input_container">
<div class="thrv-form-input-wrapper tcb-no-clone tcb-no-delete tcb-no-save" data-type="password">
<div class="thrv_wrapper tcb-label tcb-removable-label thrv_text_element tcb-no-delete tcb-no-save tcb-no-clone tve_no_drag">
<div class="tcb-plain-text"><?php esc_html_e( 'Password', 'thrive-cb' ); ?></div>
</div>
<div class="tve-login-form-input tcb-no-clone tcb-no-delete tcb-no-save">
<input type="password" name="password" data-required="1" data-field="password" data-name="Password">
<div class="tve-password-strength-wrapper">
<div class="tve-password-strength tve-password-strength-0"></div>
<div class="tve-password-strength tve-password-strength-1"></div>
<div class="tve-password-strength tve-password-strength-2"></div>
<div class="tve-password-strength tve-password-strength-3"></div>
<span class="tve-password-strength-icon"></span>
<span class="tve-password-strength-text"></span>
</div>
</div>
</div>
</div>
<div class="tve-login-form-item tcb-no-clone tcb-no-save tve_lg_input_container">
<div class="thrv-form-input-wrapper tcb-no-clone tcb-no-delete tcb-no-save" data-type="confirm_password">
<div class="thrv_wrapper tcb-label tcb-removable-label thrv_text_element tcb-no-delete tcb-no-save tcb-no-clone tve_no_drag">
<div class="tcb-plain-text"><?php esc_html_e( 'Confirm password', 'thrive-cb' ); ?></div>
</div>
<div class="tve-login-form-input tcb-no-clone tcb-no-delete tcb-no-save">
<input type="password" name="confirm_password" data-required="1" data-field="confirm_password" data-name="Confirm password">
</div>
</div>
</div>
</div>
<div class="thrv_wrapper thrv-button tar-login-submit tar-login-elem-button tcb-no-delete tcb-no-save tcb-no-clone tcb-local-vars-root">
<div class="thrive-colors-palette-config" style="display: none !important">__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"62516":{"name":"Main Accent","parent":-1}},"gradients":[]},"palettes":[{"name":"Default Palette","value":{"colors":{"62516":{"val":"rgb(19, 114, 211)","hsl":{"h":210,"s":0.83,"l":0.45}}},"gradients":[]}}]}__CONFIG_colors_palette__</div>
<a href="javascript:void(0);" class="tcb-button-link tcb-no-delete" data-editable="false">
<span class="tcb-button-texts tcb-no-clone tve_no_drag tcb-no-save tcb-no-delete"><span class="tcb-button-text thrv-inline-text tcb-no-clone tve_no_drag tcb-no-save tcb-no-delete"><?php esc_html_e( 'Sign Up', 'thrive-cb' ); ?></span></span>
</a>
</div>
<!--Needed for the loader-->
<button type="submit" style="display: none"></button>
</div>
<input type="hidden" class="tve-lg-err-msg" value="<?php echo esc_attr( json_encode( TCB_Login_Element_Handler::get_registration_error_messages() ) ); ?>">
<input id="_sendParams" type="hidden" name="_sendParams" value="1">
<input id="_back_url" type="hidden" name="_back_url" value="#">
</form>
</div>
<div class="thrv_wrapper thrv_text_element tar-login-elem-link tcb-no-title tcb-no-save">
<p class="tcb-switch-state" data-switch_state="login" data-shortcode-id="1">
<?php esc_html_e( 'Already have an account?', 'thrive-cb' ); ?>
<a href="javascript:void(0)"
class="tve-dynamic-link"
data-dynamic-link="thrive_login_form_shortcode"
data-shortcode-id="<?php echo esc_attr( $dynamic_links['login']['id'] ); ?>"
data-editable="false"
><?php esc_html_e( 'Login', 'thrive-cb' ); ?></a>
</p>
</div>
</div>
<div class="tcb-login-form-wrapper tve-form-state tve_empty_dropzone tcb-permanently-hidden tve_no_drag" data-state="forgot_password">
<div class="thrv_wrapper tcb-login-form tcb-no-clone tcb-no-delete tcb-no-save tve_no_drag">
<form action="" method="post" class="tve-login-form" novalidate>
<div class="tve-form-drop-zone">
<div class="thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad tcb-no-delete tcb-no-save tcb-no-clone">
<div class="tve-content-box-background"></div>
<div class="tve-cb">
<div class="thrv_wrapper thrv_text_element thrv-form-title" data-tag="h2">
<h2><?php echo esc_html__( 'Password Reset', 'thrive-cb' ); ?></h2>
</div>
<div class="thrv_wrapper thrv_text_element thrv-form-info">
<p><?php echo esc_html__( 'Please enter your email address. You will receive a link to create a new password via email', 'thrive-cb' ); ?></p>
</div>
<div class="tve-cf-item-wrapper">
<div class="tve-login-form-item tcb-no-clone tcb-no-delete tcb-no-save">
<div class="thrv-form-input-wrapper" data-type="text">
<div class="thrv_wrapper tcb-label tcb-removable-label thrv_text_element tcb-no-delete tcb-no-save tcb-no-clone tve_no_drag">
<div class="tcb-plain-text"><?php echo esc_html__( 'Username or Email Address', 'thrive-cb' ); ?></div>
</div>
<div class="tve-login-form-input tcb-no-clone tcb-no-delete tve_no_drag tcb-no-save">
<input type="text" name="login">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="thrv_wrapper thrv-button tar-login-submit tar-login-elem-button tcb-no-delete tcb-no-save tcb-no-clone tcb-local-vars-root">
<div class="thrive-colors-palette-config" style="display: none !important">__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"62516":{"name":"Main Accent","parent":-1}},"gradients":[]},"palettes":[{"name":"Default Palette","value":{"colors":{"62516":{"val":"rgb(19, 114, 211)","hsl":{"h":210,"s":0.83,"l":0.45}}},"gradients":[]}}]}__CONFIG_colors_palette__</div>
<a href="javascript:void(0);" class="tcb-button-link" data-editable="false">
<span class="tcb-button-texts"><span class="tcb-button-text thrv-inline-text"><?php esc_html_e( 'Get New Password', 'thrive-cb' ); ?></span></span>
</a>
</div>
<div class="thrv_wrapper thrv_text_element tar-login-elem-link tcb-no-title tcb-no-save">
<p class="tcb-switch-state" data-switch_state="login" data-shortcode-id="0">
<a href="javascript:void(0)" class="tve-dynamic-link" data-dynamic-link="thrive_login_form_shortcode" data-shortcode-id="<?php echo esc_attr( $dynamic_links['bk_to_login']['id'] ); ?>" data-editable="false"><?php esc_html_e( 'Back to login', 'thrive-cb' ); ?></a>
</p>
</div>
<!--Needed for the loader-->
<button type="submit" style="display: none"></button>
</div>
</form>
</div>
</div>
<div class="tcb-login-form-wrapper tve-form-state tve_empty_dropzone tcb-permanently-hidden tve_no_drag" data-state="reset_confirmation">
<div class="tve-form-drop-zone">
<div class="thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad">
<div class="tve-content-box-background"></div>
<div class="tve-cb">
<div class="thrv_wrapper thrv_text_element thrv-form-title" data-tag="h2">
<h2><?php echo esc_html__( 'Password Reset', 'thrive-cb' ); ?></h2>
</div>
<div class="thrv_wrapper thrv_text_element thrv-form-info">
<p><?php echo esc_html__( 'The instructions to reset your password are sent to the email address you provided. If you did not receive the email, please check your spam folder as well', 'thrive-cb' ); ?></p>
</div>
</div>
</div>
<div class="thrv_wrapper thrv_text_element tar-login-elem-link tcb-no-title tcb-no-save">
<p class="tcb-switch-state" data-switch_state="login" data-shortcode-id="0">
<a href="javascript:void(0)" class="tve-dynamic-link" data-dynamic-link="thrive_login_form_shortcode" data-shortcode-id="<?php echo esc_attr( $dynamic_links['bk_to_login']['id'] ); ?>" data-editable="false"><?php esc_html_e( 'Back to login', 'thrive-cb' ); ?></a>
</p>
</div>
</div>
</div>
<div class="tcb-login-form-wrapper tve-form-state tve_empty_dropzone tcb-permanently-hidden tve_no_drag" data-state="logged_in">
<div class="tve-form-drop-zone">
<div class="thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad ">
<div class="tve-content-box-background"></div>
<div class="tve-cb">
<div class="thrv_wrapper thrv_text_element thrv-form-title tar-login-elem-h2" data-tag="h2">
<h2><?php echo esc_html__( 'You are already logged in', 'thrive-cb' ); ?></h2>
</div>
</div>
</div>
<div class="thrv_wrapper thrv_text_element tar-login-elem-link tcb-no-title tcb-no-save">
<p class="tcb-switch-state" data-switch_state="login" data-shortcode-id="0">
<a href="<?php echo esc_url( $dynamic_links['logout']['url'] ); ?>" class="tve-dynamic-link" data-dynamic-link="thrive_login_form_shortcode" data-shortcode-id="<?php echo esc_attr( $dynamic_links['logout']['id'] ); ?>" data-editable="false"><?php esc_html_e( 'Log Out', 'thrive-cb' ); ?></a>
</p>
</div>
</div>
</div>
<input type="hidden" name="config" value="<?php echo esc_attr( base64_encode( serialize( TCB_Login_Element_Handler::get_default_settings() ) ) ); ?>">
</div>

View File

@@ -0,0 +1,47 @@
<?php
$menus = tve_get_custom_menus();
$attributes = array(
'menu_id' => isset( $_POST['menu_id'] ) ? sanitize_text_field( $_POST['menu_id'] ) : ( ! empty( $menus[0] ) ? $menus[0]['id'] : 'custom' ),
'uuid' => isset( $_POST['uuid'] ) ? sanitize_text_field( $_POST['uuid'] ) : '',
/* color is not used anymore. kept here for backwards compat */
'color' => isset( $_POST['colour'] ) ? sanitize_text_field( $_POST['colour'] ) : '',
'dir' => isset( $_POST['dir'] ) ? sanitize_text_field( $_POST['dir'] ) : 'tve_horizontal',
'font_class' => isset( $_POST['font_class'] ) ? sanitize_text_field( $_POST['font_class'] ) : '',
'font_size' => isset( $_POST['font_size'] ) ? sanitize_text_field( $_POST['font_size'] ) : '',
'ul_attr' => isset( $_POST['ul_attr'] ) ? sanitize_text_field( $_POST['ul_attr'] ) : '',
'link_attr' => isset( $_POST['link_attr'] ) ? sanitize_text_field( $_POST['link_attr'] ) : '',
'top_link_attr' => isset( $_POST['top_link_attr'] ) ? sanitize_text_field( $_POST['top_link_attr'] ) : '',
'trigger_attr' => isset( $_POST['trigger_attr'] ) ? sanitize_text_field( $_POST['trigger_attr'] ) : '',
'primary' => isset( $_POST['primary'] ) && ( sanitize_text_field( $_POST['primary'] ) == 'true' || sanitize_text_field( $_POST['primary'] ) == '1' ) ? 1 : '',
'head_css' => isset( $_POST['head_css'] ) ? $_POST['head_css'] : '', //phpcs:ignore
'background_hover' => isset( $_POST['background_hover'] ) ? sanitize_text_field( $_POST['background_hover'] ) : '', //phpcs:ignore
'main_hover' => isset( $_POST['main_hover'] ) ? sanitize_text_field( $_POST['main_hover'] ) : '', //phpcs:ignore
'child_hover' => isset( $_POST['child_hover'] ) ? sanitize_text_field( $_POST['child_hover'] ) : '', //phpcs:ignore
'dropdown_icon' => isset( $_POST['dropdown_icon'] ) ? sanitize_text_field( $_POST['dropdown_icon'] ) : 'style_1',
'mobile_icon' => isset( $_POST['mobile_icon'] ) ? sanitize_text_field( $_POST['mobile_icon'] ) : '',
'template' => isset( $_POST['template'] ) ? sanitize_text_field( $_POST['template'] ) : 'first',
'template_name' => isset( $_POST['template_name'] ) ? sanitize_text_field( $_POST['template_name'] ) : 'Basic',
'unlinked' => isset( $_POST['unlinked'] ) ? $_POST['unlinked'] : new stdClass(), //phpcs:ignore
'icon' => isset( $_POST['icon'] ) ? $_POST['icon'] : new stdClass(), //phpcs:ignore
'top_cls' => isset( $_POST['top_cls'] ) ? $_POST['top_cls'] : new stdClass(), //phpcs:ignore
'type' => isset( $_POST['type'] ) ? sanitize_text_field( $_POST['type'] ) : '',
'layout' => isset( $_POST['layout'] ) ? $_POST['layout'] : [ 'default' => 'grid' ], //phpcs:ignore
'mega_desc' => isset( $_POST['mega_desc'] ) ? $_POST['mega_desc'] : [], //phpcs:ignore
'actions' => isset( $_POST['actions'] ) ? $_POST['actions'] : new stdClass(), //phpcs:ignore
'images' => isset( $_POST['images'] ) ? $_POST['images'] : new stdClass(), //phpcs:ignore
'img_settings' => isset( $_POST['img_settings'] ) ? $_POST['img_settings'] : new stdClass(), //phpcs:ignore
'logo' => isset( $_POST['logo'] ) && $_POST['logo'] !== 'false' ? $_POST['logo'] : [], //phpcs:ignore
);
if ( ! $attributes['dropdown_icon'] && $attributes['dir'] === 'tve_vertical' ) {
$icon_styles = tcb_elements()->element_factory( 'menu' )->get_icon_styles();
$styles = array_keys( $icon_styles );
$attributes['dropdown_icon'] = reset( $styles );
}
$attributes['font_class'] .= ( ! empty( $_POST['custom_class'] ) ? ' ' . sanitize_text_field( $_POST['custom_class'] ) : '' );
?>
<div class="thrive-shortcode-config" style="display: none !important"><?php echo '__CONFIG_widget_menu__' . json_encode( array_filter( $attributes ) ) . '__CONFIG_widget_menu__'; ?></div>
<?php echo tve_render_widget_menu( $attributes ); //phpcs:ignore ?>

View File

@@ -0,0 +1 @@
<p class="tve_more_tag"><span class="tve_no_edit"><?php echo esc_html__( 'More...', 'thrive-cb' ) ?></span></p>

View File

@@ -0,0 +1,72 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<style>
.tar-new-block-container {
background-color: #f1f1f1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 15px;
font-family: Roboto, sans-serif;
font-size: 16px !important;
color: #565a5f !important;
letter-spacing: -0.12px;
border: 15px solid #fff;
}
.tar-block-title h2 {
font-size: 24px !important;
color: #171b1b !important;
opacity: 0.5;
font-family: Roboto, sans-serif;
}
.tar-new-block-description {
color: #565a5f;
font-family: Roboto, sans-serif;
}
#tar-logo {
opacity: 0.1;
}
.mb-10 {
margin-bottom: 10px;
}
.sym-new-container {
border: solid 1px #ebebeb;
}
</style>
<div class="tar-new-block-container">
<svg width="82" height="84" viewBox="0 0 82 84" id="tar-logo" class="mb-10">
<defs>
<path id="bqp31b3asa" d="M0.476 0.473L65.942 0.473 65.942 80.475 0.476 80.475z"></path>
</defs>
<g fill="none" fill-rule="evenodd">
<g>
<g>
<g transform="translate(-445 -188) translate(445 188) translate(16)">
<path fill="#434343" d="M65.942 80.475h-.932c-10.17 0-19.239-6.417-22.641-16.018L28.638 25.721 20.41 48.926c-2.23.393-4.27.806-5.524 1.078-2.902.607-6.712 1.46-9.536 2.588-1.666.67-3.278 1.335-4.875 2.086L19.687.473h17.9l28.355 80.002z" mask="url(#chmlltq7cb)"></path>
</g>
<path fill="#58A245"
d="M48 52.836c-.852.014-1.177.126-1.785.365-.697.26-1.415.74-1.958 1.215l-1.33 1.265c-.126.124-.125.147-.219.267-2.479 3.064-3.035 3.554-4.983 7.434-.907 1.81-1.945 3.502-3.066 5.17-.771 1.136-1.475 2.284-2.349 3.348-.086.11-.146.16-.232.258-.537.665-1.23 1.263-1.872 1.836-.43.385-.964.755-1.457 1.086-.424.269-.831.566-1.304.812l-.694.37c-.15.087-.196.136-.347.207-.111.05-.225.113-.335.163-.135.061-.26.099-.4.162-2.753 1.375-6.385 2.271-9.53 2.644l-1.937.235c-.563.084-2.103.158-3.517.181-1.18.02-2.268 0-2.619-.063l.215-.542c.456-1.025.969-2.027 1.527-2.994.098-.155.144-.288.256-.457l1.134-1.87 2.837-3.884 2.582-2.664c.073-.072.11-.121.185-.196.11-.096.124-.084.224-.17l.603-.513c.087-.059.123-.095.224-.158.16-.122.23-.194.393-.317l2.748-1.876c.919-.602 1.91-1.152 2.854-1.696l2.975-1.593c1.117-.554 3.04-1.552 4.098-2.002l3.106-1.43c-.45.049-1.033.305-1.456.454-.5.167-.935.316-1.435.48l-2.824 1.002c-1.381.468-2.75 1.088-4.09 1.624l-2.6 1.156c-.968.397-2.485 1.18-3.463 1.73-1.103.606-2.142 1.317-3.223 1.955l-3.598 2.51c-.087.065-.174.122-.26.187L9.04 70.244c-.604.62-1.318 1.216-1.885 1.871-.098.121-.098.146-.221.268-.529.538-.992 1.14-1.448 1.735-.671.895-1.294 1.825-1.866 2.778l-.947 1.775C2.3 79.419.758 83.005.687 83.998L.573 84c-.003-.13-.43-1.76-.553-3.165L0 79.671c0-.033.01-.071.008-.117.1-.757.08-1.257.24-2.218.39-2.647 1.544-5.32 3.047-7.572l1.541-2.175c.43-.569 2.099-2.427 2.595-2.803.482-.38.91-.949 1.429-1.33.223-.167.445-.402.692-.586.258-.193.444-.377.704-.562l1.472-1.076c1.496-1.077 3.104-2.034 4.77-2.865 1.777-.879 3.542-1.6 5.394-2.327 2.414-.945 5.668-1.657 8.154-2.166 2.621-.56 9.261-1.804 12.456-1.856l.686-.012c1.655-.028 4.21.003 4.812.83"
transform="translate(-445 -188) translate(445 188)"></path>
</g>
</g>
</g>
</svg>
<div class="tar-block-title"><h2 class="mb-10">Thrive Block</h2></div>
<div class="tar-new-block-description"><?php echo esc_html__( 'Currently this block has no content.', 'thrive-cb' ); ?></div>
<div class="tvo-new-block-description mb-10"><?php echo esc_html__( 'It will update once your block has been saved in Architect.', 'thrive-cb' ); ?></div>
</div>

View File

@@ -0,0 +1,21 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper tve-number-counter tcb-plain-text tcb-label-bottom" data-label-position="tcb-label-bottom" data-label="true">
<span class="thrv-inline-text tve-number-label tcb-plain-text tcb-label-top"><?php echo __( 'Customers served!', 'thrive-cb' ); ?></span>
<span class="tve-number-wrapper tcb-plain-text" data-anim="ticker" data-refresh-interval="10" data-from="100" data-formatted-from="100" data-to="15000" data-final-number="15,000" data-decimals="0" data-thousand-divider="," data-decimal-character="." data-speed="2507">
<span class="tve-number-prefix tve-mini-label tcb-plain-text thrv-inline-text"></span>
<span class="thrv-inline-text tve-number">15,000</span>
<span class="tve-number-suffix tve-mini-label tcb-plain-text thrv-inline-text"></span>
</span>
<span class="thrv-inline-text tcb-plain-text tve-number-label tcb-label-bottom"><?php echo __( 'Customers served!', 'thrive-cb' ); ?></span>
</div>

View File

@@ -0,0 +1,39 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-theme
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
[tcb_post_featured_image]
<div class="tcb-clear tcb-post-list-cb-clear">
<div class="thrv_wrapper thrv_contentbox_shortcode thrv-content-box tcb-post-list-cb">
<div class="tve-content-box-background"></div>
<div class="tve-cb">
[tcb_post_categories]
</div>
</div>
</div>
[tcb_post_title]
[tcb_post_content]
<div class="tcb-clear tcb-post-read-more-clear">
<div class="tcb-post-read-more thrv_wrapper">
<a href="[tcb_post_the_permalink]" class="tcb-button-link tcb-post-read-more-link">
<span class="tcb-button-texts">
<span class="tcb-button-text thrv-inline-text">
<?php echo esc_html__( 'Read More', 'thrive-cb' ); ?>
</span>
</span>
</a>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper tcb-group-editing-item <?php echo esc_attr( $data['classes'] ); ?>"
data-id="<?php echo esc_attr( $data['id'] ); ?>"
data-name="<?php echo esc_attr( $data['name'] ); ?>"
data-selector="<?php echo ! empty( $data['css'] ) ? esc_attr( $data['css'] ) : ''; ?>">
<div class="thrive-colors-palette-config" style="display: none !important">__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"62516":{"name":"Main Accent","parent":-1}},"gradients":[]},"palettes":[{"name":"Default Palette","value":{"colors":{"62516":{"val":"var(--tcb-skin-color-0)"}},"gradients":[]}}]}__CONFIG_colors_palette__</div>
<a class="tcb-button-link tcb-plain-text">
<span class="tcb-button-texts">
<span class="tcb-button-text"> <?php echo esc_attr( $data['display_name'] ); ?> </span>
</span>
</a>
</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 class="thrv_wrapper tve_lg_checkbox_wrapper tve-updated-dom tcb-local-vars-root <?php echo esc_attr( $data['classes'] ); ?>"
data-id="<?php echo esc_attr( $data['id'] ); ?>"
data-name="<?php echo esc_attr( $data['name'] ); ?>"
data-value="<?php echo ! empty( $data['template'] ) ? esc_attr( $data['template'] ) : 'default'; ?>"
data-override-colors="<?php echo ! empty( $data['override_colors'] ) ? esc_attr( $data['override_colors'] ) : ''; ?>"
data-selector="<?php echo ! empty( $data['css'] ) ? esc_attr( $data['css'] ) : ''; ?>">
<label>
<span class="tve-checkmark">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"/></svg>
</span>
<span class="tve-input-option-text"><?php echo esc_attr( $data['display_name'] ); ?></span>
</label>
</div>

View File

@@ -0,0 +1,20 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<li class="tve-dynamic-dropdown-option tve_no_icons tve-dynamic-dropdown-editable <?php echo esc_attr( $data['classes'] ); ?>"
data-id="<?php echo esc_attr( $data['id'] ); ?>"
data-name="<?php echo esc_attr( $data['name'] ); ?>"
data-value="<?php echo esc_attr( $data['id'] ); ?>"
data-selector="<?php echo !empty($data['css']) ? esc_attr( $data['css'] ) : ''; ?>">
<div class="tve-input-option-text tcb-plain-text">
<span contenteditable="false"><?php echo esc_attr( $data['display_name'] ); ?></span>
</div>
</li>

View File

@@ -0,0 +1,31 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper tcb-filter-dropdown tve-dynamic-dropdown tcb-local-vars-root <?php echo esc_attr( $data['dropdown_animation'] ) ?>"
data-style="<?php echo ! empty( $data['template'] ) ? esc_attr( $data['template'] ) : 'default'; ?>"
data-selector="<?php echo ! empty( $data['css'] ) ? esc_attr( $data['css'] ) : ''; ?>"
data-icon="<?php echo esc_attr( $data['dropdown_icon_style'] ) ?>"
data-dropdown-animation="<?php echo esc_attr( $data['dropdown_animation'] ) ?>"
data-override-colors="<?php echo ! empty( $data['override_colors'] ) ? esc_attr( $data['override_colors'] ) : ''; ?>"
data-placeholder="<?php echo esc_attr( $data['dropdown_placeholder'] ) ?>">
<input type="text" style="position: absolute; opacity: 0;" autocomplete="off" readonly/>
<a class="tve-lg-dropdown-trigger tcb-plain-text" tabindex="-1">
<span class="tve-disabled-text-inner"><?php echo esc_attr( $data['dropdown_placeholder'] ) ?></span>
<span class="tve-item-dropdown-trigger">
<?php if ( ! empty( $data['dropdown_icon'] ) ) {
echo( $data['dropdown_icon'] );
} else { ?>
<svg xmlns="http://www.w3.org/2000/svg" class="tve-dropdown-icon-up" viewBox="0 0 320 512"><path d="M151.5 347.8L3.5 201c-4.7-4.7-4.7-12.3 0-17l19.8-19.8c4.7-4.7 12.3-4.7 17 0L160 282.7l119.7-118.5c4.7-4.7 12.3-4.7 17 0l19.8 19.8c4.7 4.7 4.7 12.3 0 17l-148 146.8c-4.7 4.7-12.3 4.7-17 0z"></path></svg>
<?php } ?>
</span>
</a>
<?php echo( $data['dropdown_content'] ); ?>
</div>

View File

@@ -0,0 +1,24 @@
<li class="thrv_wrapper tve_no_icons dynamic-item-with-icon <?php echo esc_attr( $data['classes'] ); ?>"
data-id="<?php echo esc_attr( $data['id'] ); ?>"
data-name="<?php echo esc_attr( $data['name'] ); ?>"
data-selector="<?php echo ! empty( $data['css'] ) ? '.tcb-post-list-filter' . esc_attr( $data['css'] ) : ''; ?>">
<div class="tcb-styled-list-icon"
data-selector="<?php echo ! empty( $data['css'] ) ? '.tcb-post-list-filter' . esc_attr( $data['css'] ) . ' .tcb-styled-list-icon .thrv_icon' : ''; ?>">
<?php
if ( ! empty( $data['icon'] ) ) {
echo $data['icon'];
} else {
?>
<div class="thrv_wrapper thrv_icon tve_no_drag tve_no_icons tcb-icon-inherit-style tcb-icon-display"
data-tcb-elem-type="filter_dynamic_list_icon"
data-selector="<?php echo ! empty( $data['css'] ) ? '.tcb-post-list-filter' . esc_attr( $data['css'] ) . ' .tcb-styled-list-icon .thrv_icon' : ''; ?>">
<svg class="tcb-icon" viewBox="0 0 192 512" data-id="icon-angle-right-light" data-name="">
<path d="M166.9 264.5l-117.8 116c-4.7 4.7-12.3 4.7-17 0l-7.1-7.1c-4.7-4.7-4.7-12.3 0-17L127.3 256 25.1 155.6c-4.7-4.7-4.7-12.3 0-17l7.1-7.1c4.7-4.7 12.3-4.7 17 0l117.8 116c4.6 4.7 4.6 12.3-.1 17z"></path>
</svg>
</div>
<?php } ?>
</div>
<div class="thrv-advanced-inline-text tcb-filter-list-text" data-selector="<?php echo ! empty( $data['css'] ) ? esc_attr( $data['css'] ) . ' .tcb-filter-list-text' : ''; ?>">
<span data-selector="<?php echo ! empty( $data['css'] ) ? esc_attr( $data['css'] ) . ' .tcb-filter-list-text span' : ''; ?>"><?php echo esc_attr( $data['display_name'] ); ?></span>
</div>
</li>

View File

@@ -0,0 +1,20 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper tcb-local-vars-root click tcb-filter-radio <?php echo esc_attr( $data['classes'] ); ?>"
data-id="<?php echo esc_attr( $data['id'] ); ?>"
data-name="<?php echo esc_attr( $data['name'] ); ?>"
data-value="<?php echo ! empty( $data['template'] ) ? esc_attr( $data['template'] ) : 'default'; ?>"
data-override-colors="<?php echo ! empty( $data['override_colors'] ) ? esc_attr( $data['override_colors'] ) : ''; ?>"
data-selector="<?php echo ! empty( $data['css'] ) ? esc_attr( $data['css'] ) : ''; ?>">
<span class="tve-checkmark"></span>
<span class="tve-input-option-text"><?php echo esc_attr( $data['display_name'] ); ?></span>
</div>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/26/2017
* Time: 4:43 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_post_grid tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'post_grid', false, 'editor' ); ?>
<?php echo esc_html__( 'Add post grid', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper tcb-post-read-more">
<a href="#" class="tcb-button-link tcb-post-read-more-link">
<span class="tcb-button-texts"><span class="tcb-button-text thrv-inline-text"> Read More </span></span>
</a>
</div>
<?php

View File

@@ -0,0 +1,24 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/20/2017
* Time: 9:47 AM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tcb-elem-placeholder thrv_responsive_video thrv_wrapper tcb-lazy-load" data-type="youtube">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'video-player', false, 'editor' ); ?>
<?php echo esc_html__( 'Insert Video', 'thrive-cb' ); ?>
</span>
<div class="tve_responsive_video_container" style="display: none;">
<div class="video_overlay"></div>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 4/12/2017
* Time: 2:22 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_content_reveal tve-elem-default-pad" data-after="5" data-redirect-url="">
<div class="tve_reveal_container tcb-parent-placeholder-empty"><div class="tcb-replaceable-placeholder"><?php echo esc_html__( 'Click to add text or drag and drop element from right hand panel', 'thrive-cb' ); ?></div></div>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* FileName section-placeholder.php.
*
* @project: thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div id="<?php echo esc_attr( $data['id'] ) ?>" class="thrv_wrapper tcb-no-delete tve_no_drag thrive-shortcode tcb-elem-placeholder <?php echo esc_attr( $data['class'] ) ?>"<?php echo isset( $data['extra_attr'] ) ? ' ' . $data['extra_attr'] : '' ?> draggable="false">
<span class="tcb-inline-placeholder-action with-icon"><?php tcb_icon( $data['icon'], false, 'editor' ) ?>
<?php echo esc_html( $data['title'] ); ?>
</span>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv-page-section tve-height-update">
<div class="tve-page-section-out"></div>
<div class="tve-page-section-in tve_empty_dropzone"></div>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_symbol tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php echo esc_html__( 'Insert Symbol', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,3 @@
<div class="thrv_wrapper tcb-elem-placeholder thrv-table-placeholder">
<span class="tcb-inline-placeholder-action with-icon"><?php tcb_icon( 'table', false, 'editor' ) ?><?php echo esc_html__( 'Insert table', 'thrive-cb' ) ?></span>
</div>

View File

@@ -0,0 +1,23 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_tabs_shortcode thrv-tabbed-content">
<div class="tve_scT tve_red">
<ul class="tve_clearfix">
<li class="tve_tS"><span class="tve_scTC1 thrv-inline-text tve_editable"><?php echo esc_html__( 'First tab', 'thrive-cb' ) ?></span></li>
<li><span class="tve_scTC2 thrv-inline-text tve_editable"><?php echo esc_html__( 'Second tab', 'thrive-cb' ) ?></span></li>
<li><span class="tve_scTC3 thrv-inline-text tve_editable"><?php echo esc_html__( 'Third tab', 'thrive-cb' ) ?></span></li>
</ul>
<div class="tve_scTC tve_scTC1" style="display: block"></div>
<div class="tve_scTC tve_scTC2"></div>
<div class="tve_scTC tve_scTC3"></div>
</div>
</div>

View File

@@ -0,0 +1,15 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_text_element">
<p><?php echo esc_html__( 'Enter your text here...', 'thrive-cb' ) ?></p>
</div>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_contents_table" data-columns="2" data-headers="h1,h2,h3">
<div class="tve_contents_table">
<span class="tve_ct_title"><?php echo esc_html__( 'Quick Navigation', 'thrive-cb' ) ?></span>
<div class="tve_ct_content tve_clearfix"></div>
</div>
</div>

View File

@@ -0,0 +1,103 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper thrv_toggle" data-columns="2" data-animation="slide-fade" data-animation-speed="fast" data-ct-name="Default" data-ct="toggle-55351">
<div class="tve-toggle-grid">
<div class="tve-toggle-column" data-index="1">
<div class="thrv_toggle_item tve_faq">
<div class="tve_faqI">
<div class="tve_faqB thrv_toggle_title tve-toggle-show-icon tve-toggle-icon-right tcb-icon-display" data-icon-code="icon-ellipsis-h-light" data-css="tve-u-17010f7948c" data-selector='[data-css="tve-u-17010f7948a"] .thrv_toggle_title' data-tcb_hover_state_parent="">
<div class="tve_toggle">
<svg class="tcb-icon" viewBox="0 0 320 512" data-id="icon-ellipsis-h-light">
<path d="M192 256c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm88-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-240 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"></path>
</svg>
</div>
<h4 class="tve-toggle-text"><?php echo esc_html__( 'Content Toggle Headline', 'thrive-cb' ); ?></h4>
</div>
<div class="tve_faqC ">
<div class="thrv_wrapper thrv_toggle_content tve-elem-default-pad" data-css="tve-u-17010f7948e">
<div class="tve-content-box-background" data-css="tve-u-17010f7948f"></div>
<div class="tve-cb">
<div class="thrv_wrapper thrv_text_element"><p data-css="tve-u-17010f79490"><?php echo esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque finibus commodo nibh, ut elementum velit sollicitudin at. Donec suscipit commodo risus. Nunc vel orci eget ligula elementum consequat. Fusce velit erat, convallis scelerisque aliquet ut, facilisis egestas tellus. Quisque sit amet sapien placerat, ultricies sapien ut, vestibulum ex.', 'thrive-cb' ); ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="thrv_toggle_item tve_faq">
<div class="tve_faqI">
<div class="tve_faqB thrv_toggle_title tve-toggle-show-icon tve-toggle-icon-right tcb-icon-display" data-icon-code="icon-ellipsis-h-light" data-css="tve-u-17010f7948c" data-selector='[data-css="tve-u-17010f7948a"] .thrv_toggle_title' data-tcb_hover_state_parent="">
<div class="tve_toggle">
<svg class="tcb-icon" viewBox="0 0 320 512" data-id="icon-ellipsis-h-light">
<path d="M192 256c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm88-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-240 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"></path>
</svg>
</div>
<h4 class="tve-toggle-text"><?php echo esc_html__( 'Content Toggle Headline', 'thrive-cb' ); ?></h4>
</div>
<div class="tve_faqC">
<div class="thrv_wrapper thrv_toggle_content tve-elem-default-pad" data-css="tve-u-17010f7948e">
<div class="tve-content-box-background" data-css="tve-u-17010f7948f"></div>
<div class="tve-cb">
<div class="thrv_wrapper thrv_text_element"><p><?php echo esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque finibus commodo nibh, ut elementum velit sollicitudin at. Donec suscipit commodo risus. Nunc vel orci eget ligula elementum consequat. Fusce velit erat, convallis scelerisque aliquet ut, facilisis egestas tellus. Quisque sit amet sapien placerat, ultricies sapien ut, vestibulum ex.', 'thrive-cb' ); ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tve-toggle-column" data-index="2">
<div class="thrv_toggle_item tve_faq">
<div class="tve_faqI">
<div class="tve_faqB thrv_toggle_title tve-toggle-show-icon tve-toggle-icon-right tcb-icon-display" data-icon-code="icon-ellipsis-h-light" data-css="tve-u-17010f7948c" data-selector='[data-css="tve-u-17010f7948a"] .thrv_toggle_title' data-tcb_hover_state_parent="">
<div class="tve_toggle">
<svg class="tcb-icon" viewBox="0 0 320 512" data-id="icon-ellipsis-h-light">
<path d="M192 256c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm88-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-240 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"></path>
</svg>
</div>
<h4 class="tve-toggle-text"><?php echo esc_html__( 'Content Toggle Headline', 'thrive-cb' ); ?></h4>
</div>
<div class="tve_faqC">
<div class="thrv_wrapper thrv_toggle_content tve-elem-default-pad" data-css="tve-u-17010f7948e">
<div class="tve-content-box-background" data-css="tve-u-17010f7948f"></div>
<div class="tve-cb">
<div class="thrv_wrapper thrv_text_element"><p><?php echo esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque finibus commodo nibh, ut elementum velit sollicitudin at. Donec suscipit commodo risus. Nunc vel orci eget ligula elementum consequat. Fusce velit erat, convallis scelerisque aliquet ut, facilisis egestas tellus. Quisque sit amet sapien placerat, ultricies sapien ut, vestibulum ex.', 'thrive-cb' ); ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="thrv_toggle_item tve_faq">
<div class="tve_faqI">
<div class="tve_faqB thrv_toggle_title tve-toggle-show-icon tve-toggle-icon-right tcb-icon-display" data-icon-code="icon-ellipsis-h-light" data-css="tve-u-17010f7948c" data-selector='[data-css="tve-u-17010f7948a"] .thrv_toggle_title' data-tcb_hover_state_parent="">
<div class="tve_toggle">
<svg class="tcb-icon" viewBox="0 0 320 512" data-id="icon-ellipsis-h-light">
<path d="M192 256c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm88-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-240 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"></path>
</svg>
</div>
<h4 class="tve-toggle-text"><?php echo esc_html__( 'Content Toggle Headline', 'thrive-cb' ); ?></h4>
</div>
<div class="tve_faqC">
<div class="thrv_wrapper thrv_toggle_content tve-elem-default-pad" data-css="tve-u-17010f7948e">
<div class="tve-content-box-background" data-css="tve-u-17010f7948f"></div>
<div class="tve-cb">
<div class="thrv_wrapper thrv_text_element"><p><?php echo esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque finibus commodo nibh, ut elementum velit sollicitudin at. Donec suscipit commodo risus. Nunc vel orci eget ligula elementum consequat. Fusce velit erat, convallis scelerisque aliquet ut, facilisis egestas tellus. Quisque sit amet sapien placerat, ultricies sapien ut, vestibulum ex.', 'thrive-cb' ); ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,13 @@
<div class="thrv_wrapper thrv_toggle_shortcode" data-hover-color="#1abc9c" data-text-hover-color="#fff">
<div class="tve_faq">
<div class="tve_faqI">
<div class="tve_faqB">
<svg class="tve_toggle" id="tcb-icon-caret-right-solid" viewBox="0 0 192 512" width="100%" height="100%">
<path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"></path>
</svg>
<h4 class="tve_editable"><?php echo esc_html__( 'Content Toggle Headline', 'thrive-cb' ); ?></h4>
</div>
<div class="tve_faqC" style="display: none;"></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,13 @@
<div class="thrv_wrapper thrv_tw_qs tve_clearfix tve-twitter-x" data-url="https://twitter.com/intent/tweet" data-via="" data-use_custom_url="">
<div class="thrv_tw_qs_container">
<div class="thrv_tw_quote">
<p><?php echo esc_html__( 'Insert your postable quote/phrase here', 'thrive-cb' ) ?></p>
</div>
<div class="thrv_tw_qs_button tve_p_right">
<span>
<i></i>
<span class="thrv_tw_qs_button_text "><?php echo esc_html__( 'Click to Post', 'thrive-cb' ) ?></span>
</span>
</div>
</div>
</div>

View File

@@ -0,0 +1,80 @@
<?php $palette = array(
'active_palette' => 0,
'config' => [
'colors' => [
'cf6ff' => [
'name' => 'Main Color',
'parent' => - 1,
],
'73c8d' => [
'name' => 'Dark Accent',
'parent' => 'cf6ff',
],
],
'gradients' => [],
],
'palettes' => array(
array(
'name' => 'Default',
'value' => array(
'colors' => array(
'cf6ff' => array(
'val' => 'rgb(20, 115, 210)',
'hsl' => [
'h' => 210,
's' => 0.82,
'l' => 0.45,
],
),
'73c8d' => array(
'val' => 'rgb(21, 89, 162)',
'hsl_parent_dependency' => [
'h' => 211,
's' => 0.77,
'l' => 0.35,
],
),
),
'gradients' => [],
),
),
),
); ?>
<div class="thrv_wrapper tve-user-profile" data-ct="user_profile--1">
<div class="tve-user-profile-container tve-prevent-content-edit"
data-config="__TCB_UP__{&quot;error_message&quot;:{&quot;email&quot;:&quot;Email address invalid&quot;,&quot;required&quot;:&quot;Required field missing&quot;,&quot;passwordmismatch&quot;:&quot;Password mismatch&quot;},&quot;fields&quot;:[&quot;first_name&quot;,&quot;last_name&quot;,&quot;username&quot;,&quot;user_email&quot;],&quot;label_pos&quot;:&quot;left&quot;,&quot;success_message&quot;:&quot;Profile updated successfully&quot;}__TCB_UP__">
<input type="hidden" class="tve-up-messages" value="{&quot;success_message&quot;:&quot;Profile updated successfully&quot;,&quot;error_message&quot;:{&quot;email&quot;:&quot;Email address invalid&quot;,&quot;required&quot;:&quot;Required field missing&quot;,&quot;passwordmismatch&quot;:&quot;Password mismatch&quot;}}">
<form action="#" method="post" novalidate="">
<div class="tve_lead_generated_inputs_container tve_clearfix">
<div class="tve-up-editable tve-up-item" data-type="first_name">
<div class="tve-up-editable tve-up-input">
<input name="first_name" type="text" placeholder="First Name">
</div>
</div>
<div class="tve-up-editable tve-up-item" data-type="last_name">
<div class="tve-up-editable tve-up-input">
<input name="last_name" type="text" placeholder="Last Name">
</div>
</div>
<div class="tve-up-editable tve-up-item" data-type="username">
<div class="tve-up-editable tve-up-input">
<input name="username" type="text" placeholder="Username" readonly>
</div>
</div>
<div class="tve-up-editable tve-up-item" data-type="user_email">
<div class="tve-up-editable tve-up-input">
<input name="user_email" type="email" placeholder="Email">
</div>
</div>
<div class="thrv_wrapper tve-form-button tcb-local-vars-root tve-up-editable tve-up-button">
<div class="thrive-colors-palette-config" style="display: none !important">__CONFIG_colors_palette__<?php echo json_encode( $palette ); ?>__CONFIG_colors_palette__
</div>
<a href="#" class="tcb-button-link tve-form-button-submit tcb-plain-text">
<span class="tcb-button-texts"><span class="tcb-button-text thrv-inline-text">Sign Up</span></span>
</a>
<input type="submit" style="display: none !important;">
</div>
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 4/10/2017
* Time: 10:27 AM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="thrv_wrapper tve_wp_shortcode tcb-elem-placeholder">
<span class="tcb-inline-placeholder-action with-icon">
<?php tcb_icon( 'wordpress', false, 'editor' ); ?>
<?php echo esc_html__( 'Insert WordPress Content', 'thrive-cb' ); ?>
</span>
</div>

View File

@@ -0,0 +1,93 @@
<div class="tve-modal-content">
<div>
<div class="tve-avatar-picker-title" style="text-align: center">
<?php echo __( 'Current avatar', 'thrive-cb' ); ?>
</div>
<div class="tve-avatar-image-preview"></div>
</div>
<div class="tve-avatar-connections-list">
<div class="tve-avatar-picker-title">
<?php echo __( 'Load a new Avatar:', 'thrive-cb' ); ?>
</div>
<div class="tve-google-sign-in" data-connection="google"><!-- auto generated button--></div>
<div class="tve-avatar-connection-item" data-connection="facebook">
<button class="tve-facebook-sign-in" data-trigger="click" data-fn="onFacebookLoginClick">
<svg width="16" height="17" viewBox="0 0 16 17">
<path d="M15.75 1.254a.827.827 0 0 0-.264-.633.873.873 0 0 0-.615-.246H.88a.857.857 0 0 0-.633.246.857.857 0 0 0-.246.633v13.992c0 .234.082.44.246.615a.827.827 0 0 0 .633.264h7.523v-6.117H6.363V7.652h2.04V5.895c0-1.008.28-1.782.843-2.32.563-.54 1.3-.81 2.215-.81.726 0 1.336.024 1.828.071V4.98h-1.266c-.445 0-.761.106-.949.317-.14.164-.21.445-.21.844v1.511h2.355l-.317 2.356h-2.039v6.117h4.008a.827.827 0 0 0 .633-.264.873.873 0 0 0 .246-.615V1.254z" fill="#1272B2"
fill-rule="nonzero"/>
</svg>
Facebook
</button>
</div>
<div class="tve-avatar-connection-item" data-connection="gravatar" data-trigger="click" data-fn="optionSelected">
<button class="tve-gravatar-image">
<svg width="18" height="18" viewBox="0 0 18 18">
<path d="M9 0a1.8 1.8 0 0 0-1.8 1.8v6.3a1.8 1.8 0 0 0 3.6 0V3.908A5.403 5.403 0 0 1 14.4 9c0 2.981-2.419 5.4-5.4 5.4a5.401 5.401 0 0 1-3.818-9.218 1.8 1.8 0 1 0-2.546-2.546A9 9 0 1 0 9 0" fill="#1E8CBE" fill-rule="nonzero"/>
</svg>
Gravatar
</button>
<div class="tve-avatar-extra-options" data-trigger="click" data-fn="optionSelected">
<input type="email" class="tve-avatar-gravatar-email" data-trigger="onEnter" data-fn="applyGravatar">
<button type="button" data-trigger="click" data-fn="applyGravatar">
<svg width="13" height="10" viewBox="0 0 13 10" xmlns="http://www.w3.org/2000/svg">
<path d="M11.275.732a.275.275 0 0 1 .203-.076c.085 0 .16.026.228.076l.711.737c.068.05.102.118.102.203 0 .085-.034.16-.102.228L4.8 9.518a.275.275 0 0 1-.203.076.371.371 0 0 1-.228-.076L.992 6.115a.241.241 0 0 1-.102-.203c0-.085.034-.16.102-.228l.71-.711a.316.316 0 0 1 .23-.102c.084 0 .151.034.202.102l2.463 2.463L11.275.732z" fill="#FFF" fill-rule="nonzero"/>
</svg>
</button>
</div>
</div>
<div class="tve-avatar-connection-item" data-connection="custom" data-trigger="click" data-fn="optionSelected">
<button type="button" class="tve-custom-url-image">
<svg width="20" height="19" viewBox="0 0 20 19" xmlns="http://www.w3.org/2000/svg">
<g stroke="#000" stroke-width="1.5" fill="none" fill-rule="evenodd" opacity=".433" stroke-linecap="round" stroke-linejoin="round">
<path d="M13.143 5.048h4.048a1.62 1.62 0 0 1 1.619 1.619v9.714A1.62 1.62 0 0 1 17.19 18H2.62A1.62 1.62 0 0 1 1 16.381V4.238A1.62 1.62 0 0 1 2.62 2.62h4.047"/>
<path d="m13.143 9.905-3.238 3.238-3.238-3.238M9.905 1v12.143"/>
</g>
</svg>
<?php echo __( 'Custom url', 'thrive-cb' ); ?>
</button>
<div class="tve-avatar-extra-options">
<input type="text" class="tve-avatar-custom-url-input" data-trigger="onEnter" data-fn="applyCustomUrl">
<button type="button" data-trigger="click" data-fn="applyCustomUrl">
<svg width="13" height="10" viewBox="0 0 13 10" xmlns="http://www.w3.org/2000/svg">
<path d="M11.275.732a.275.275 0 0 1 .203-.076c.085 0 .16.026.228.076l.711.737c.068.05.102.118.102.203 0 .085-.034.16-.102.228L4.8 9.518a.275.275 0 0 1-.203.076.371.371 0 0 1-.228-.076L.992 6.115a.241.241 0 0 1-.102-.203c0-.085.034-.16.102-.228l.71-.711a.316.316 0 0 1 .23-.102c.084 0 .151.034.202.102l2.463 2.463L11.275.732z" fill="#FFF" fill-rule="nonzero"/>
</svg>
</button>
</div>
</div>
<div class="tve-avatar-connection-item" data-trigger="click" data-fn="optionSelected">
<button class="tve-avatar-no-image" data-trigger="click" data-fn="resetImage">
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<g fill="#979797" fill-rule="nonzero">
<path d="M9 4.286a3 3 0 1 1 0 6 3 3 0 0 1 0-6zM9 5.57A1.714 1.714 0 1 0 9 9a1.714 1.714 0 0 0 0-3.429z"/>
<path d="M9 0a9 9 0 1 1 0 18A9 9 0 0 1 9 0zm0 1.286a7.714 7.714 0 1 0 0 15.428A7.714 7.714 0 0 0 9 1.286z"/>
<path d="M11.032 11.752a3.214 3.214 0 0 1 3.384 1.6l1.01 1.816-1.124.625-1.01-1.816a1.929 1.929 0 0 0-2.03-.96l-1.563.284c-.372.067-.753.069-1.126.004l-1.545-.27a1.814 1.814 0 0 0-2.006 1.142l-.72 1.887-1.2-.458.719-1.887a3.1 3.1 0 0 1 3.428-1.95l1.544.27c.224.038.453.037.676-.003l1.563-.284z"/>
</g>
</svg>
<?php echo __( 'No image', 'thrive-cb' ); ?>
</button>
</div>
</div>
</div>
<div class="tve-modal-footer">
<button class="tve-modal-button gray" data-dismiss="true">
<?php echo __( 'Cancel', 'thrive-cb' ); ?>
</button>
<button class="tve-modal-button green" data-trigger="click" data-fn="save">
<?php echo __( 'Save changes', 'thrive-cb' ); ?>
</button>
</div>

View File

@@ -0,0 +1,44 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Stuff to be included in the inner frame
*/
?>
<div id="tcb-inner-actions">
<div id="tcb-table-panel">
<div class="tcb-btn-row above-element">
<button class="tcb-table-btn" data-fn="addColumn"><?php tcb_icon( 'add', false, 'editor' ) ?><?php echo esc_html__( 'Add column', 'thrive-cb' ) ?></button>
<button class="tcb-table-btn" data-fn="addRow"><?php tcb_icon( 'add', false, 'editor' ) ?><?php echo esc_html__( 'Add row', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-one" data-fn="split"><?php tcb_icon( 'split', false, 'editor' ) ?><?php echo esc_html__( 'Split', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-more" data-fn="merge"><?php tcb_icon( 'merge', false, 'editor' ) ?><?php echo esc_html__( 'Merge', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-one move-left" data-fn="moveLeft"><?php echo esc_html__( 'Move column left', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-one move-right" data-fn="moveRight"><?php echo esc_html__( 'Move column right', 'thrive-cb' ) ?></button>
<div class="tcb-panel-right">
<button disabled class="tcb-table-btn tcb-btn-red m-disable m-enable-one"
data-fn="removeColumn"><?php tcb_icon( 'delete', false, 'editor' ) ?><?php echo esc_html__( 'Remove column', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn tcb-btn-red m-disable m-enable-one"
data-fn="removeRow"><?php tcb_icon( 'delete', false, 'editor' ) ?><?php echo esc_html__( 'Remove row', 'thrive-cb' ) ?></button>
</div>
</div>
<div class="tcb-btn-row below-element">
<button disabled class="tcb-table-btn m-disable m-enable-one m-enable-more" data-fn="insertColumn" data-arg="after"><?php echo esc_html__( 'Insert column after', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-one m-enable-more" data-fn="insertColumn" data-arg="before"><?php echo esc_html__( 'Insert column before', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-one m-enable-more" data-fn="insertRow" data-arg="after"><?php echo esc_html__( 'Insert row after', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-one m-enable-more" data-fn="insertRow" data-arg="before"><?php echo esc_html__( 'Insert row before', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-one m-enable-more" data-fn="cloneColumn" data-arg="before"><?php echo esc_html__( 'Clone column', 'thrive-cb' ) ?></button>
<button disabled class="tcb-table-btn m-disable m-enable-one m-enable-more" data-fn="cloneRow" data-arg="before"><?php echo esc_html__( 'Clone row', 'thrive-cb' ) ?></button>
<div class="tcb-panel-right">
<button class="tcb-table-btn tcb-btn-green" data-fn="cancel"><?php echo esc_html__( 'Close', 'thrive-cb' ) ?></button>
</div>
</div>
</div>
<img src="<?php echo esc_url( tve_editor_css( 'images/drag-img.png' ) ); ?>" width="20" height="20" id="tcb-drag-img">
</div>

View File

@@ -0,0 +1,108 @@
<?php /* Display a layout for editing Thrive Lightbox posts */
global $is_thrive_theme;
$options = [];
if ( $is_thrive_theme ) {
$options = thrive_get_options_for_post( get_the_ID() );
}
do_action( 'get_header' );
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?> style="margin-top: 0 !important;height:100%">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?> style="margin-top: 0 !important;height:100%">
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?> style="margin-top: 0 !important;height:100%">
<!--<![endif]-->
<?php
/** @var TCB_Lightbox $lightbox */
$lightbox = $data['lightbox'];
$config = $lightbox->globals();
$is_for_landing_page = $lightbox->meta( 'tve_lp_lightbox' );
?>
<head>
<?php if ( $is_thrive_theme ) : ?>
<?php tha_head_top(); ?>
<?php endif ?>
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
<meta name="robots" content="noindex, nofollow"/>
<title>
<?php /* Genesis wraps the meta title into another <title> tag using this hook: genesis_doctitle_wrap. the following line makes sure this isn't called */ ?>
<?php /* What if they change the priority at which this hook is registered ? :D */ ?>
<?php remove_filter( 'wp_title', 'genesis_doctitle_wrap', 20 ); ?>
<?php wp_title( '|', true, 'right' ); ?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<?php
if ( $is_for_landing_page ) {
$landing_page_config = tve_get_landing_page_config( $is_for_landing_page );
if ( ! empty( $landing_page_config['fonts'] ) ) {
foreach ( $landing_page_config['fonts'] as $font ) {
echo "<link href='" . esc_url( $font ) . "' rel='stylesheet' type='text/css'/>";
}
}
}
wp_head();
if ( $is_thrive_theme ) {
if ( ! empty( $options['favicon'] ) ) {
echo '<link rel="shortcut icon" href="' . esc_url( $options['favicon'] ) . '"/>';
}
if ( ! empty( $options['custom_css'] ) ) {
echo '<style type="text/css">' . $options['custom_css'] . '</style>';
}
tha_head_bottom();
}
?>
</head>
<body <?php body_class( 'tve-l-open tve-o-hidden tve-lightbox-page' ); ?>>
<div class="bSe<?php echo $is_for_landing_page ? ' wrp cnt' : ''; ?>" style="display: none">
<div class="awr"></div>
</div>
<?php /** X-Theme conflict - X-Theme reads the top offset of this element without checking if it exists - and it causes the editor not to load */ ?>
<div class="x-navbar-fixed-top-active">
<div class="x-navbar-wrap"></div>
</div>
<div class="tve_p_lb_overlay" style="<?php echo esc_attr( $config['overlay']['css'] ); ?>"<?php echo $config['overlay']['custom_color']; ?>></div> <?php // phpcs:ignore ?>
<div class="tve_post_lightbox wrp cnt bSe">
<article>
<div class="tve_p_lb_background tve-scroll">
<div class="tcb-lp-lb tve_editable tve_p_lb_content<?php echo esc_attr( $config['content']['class'] ); ?>"
style="<?php echo esc_attr( $config['content']['css'] ); ?>"<?php echo $config['content']['custom_color']; //phpcs:ignore ?>>
<div class="tve_p_lb_inner" id="tve-p-scroller" style="<?php echo $config['inner']['css']; ?>">
<?php
while ( have_posts() ) {
the_post();
the_content();
}
?>
</div>
<a href="javascript:void(0)"
class="tve_p_lb_close<?php echo esc_attr( $config['close']['class'] ); ?>"
style="<?php echo esc_attr( $config['close']['css'] ); ?>"<?php echo $config['close']['custom_color']; // phpcs:ignore ?>
title="<?php echo esc_attr__( 'Close', 'thrive-cb' ); ?>">x</a>
</div>
<div class="tve-spacer"></div>
</div>
</article>
</div>
<?php do_action( 'get_footer' ); ?>
<?php wp_footer(); ?>
<?php if ( ! is_editor_page() ) : ?>
<script type="text/javascript">
jQuery( document ).ready( function () {
/* trigger lightbox opening */
jQuery( '.tve_p_lb_content' ).trigger( 'tve.lightbox-open' );
} );
</script>
<?php endif ?>
</body>
</html>

View File

@@ -0,0 +1,96 @@
<?php
/**
* The template for displaying the main editor page
*
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?><!DOCTYPE html>
<html class="no-js" style="height: 100%;overflow:hidden">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<title><?php echo esc_html( get_the_title() . ' | ' . apply_filters( 'tcb_editor_title', __( 'Thrive Architect', 'thrive-cb' ) ) ); ?></title>
<?php wp_head(); ?>
<?php do_action( 'tcb_hook_editor_head' ); ?>
<?php tve_load_global_variables(); ?>
<?php echo tve_get_shared_styles( '', '300' ); ?>
<script>
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>';
</script>
</head>
<body class="tcb-editor-main preview-desktop <?php echo get_post_type() ?>" style="padding: 0;margin: 0;height: 100%;overflow:hidden;">
<div class="tcb-wrap-all" id="tve-main-frame">
<div id="tve-page-loader" class="tve-open">
<?php tcb_template( 'loading-spinner.php' ); ?>
</div>
<div id="sidebar-top">
<div id="tcb-sidebar-top-left">
<?php do_action( 'tve_top_buttons' ); ?>
<?php if ( tcb_editor()->has_post_breadcrumb_option() ) : ?>
<?php $post_breadcrumb_data = tcb_editor()->post_breadcrumb_data(); ?>
<span id="tcb-post-option-breadcrumb" class="tcb-left pr-5 click tcb-active-element-breadcrumbs-item" data-index="" data-selector="<?php echo esc_attr( $post_breadcrumb_data['selector'] ); ?>" data-fn="postOptionsClicked">
<span class="tcb-breadcrumb-name"><?php echo esc_html( $post_breadcrumb_data['label'] ); ?></span>
<span class="tcb-icon"><?php tcb_icon( 'cog-regular' ); ?><?php tcb_icon( 'cog-solid' ); ?></span>
<span class="cont"><i></i></span>
</span>
<?php endif; ?>
<div id="tcb-top-nav-list" class="<?php echo in_array( get_post_type(), [ 'post', 'page' ] ) ? 'tve-has-post-options' : '' ?>"></div>
</div>
<!-- Here buttons/images/text will be added dynamically -->
<div id="tcb-sidebar-top-right">
<div class="button-group">
</div>
</div>
</div>
<div class="tcb-relative">
<div id="tcb-right-drop-panels"></div>
</div>
<div class="fr-center-toolbar">
<div id="main-fr-toolbar" style="display: none">
<div class="fr-drag"><span></span><span class="r"></span></div>
</div>
</div>
<?php tcb_editor()->render_menu(); ?>
<?php do_action( 'tcb_editor_iframe_before' ); ?>
<div id="tcb-frame-container">
<?php $id = get_the_ID() === absint( $_GET['post'] ) ? get_the_ID() : absint( $_GET['post'] ); //MMM compatibility ?>
<iframe tabindex="-1" id="tve-editor-frame" data-src="<?php echo esc_attr( tcb_get_editor_url( $id, false ) ); ?>"></iframe>
<div class="top canvas-border"></div>
<div class="right canvas-border"></div>
<div class="bottom canvas-border"></div>
<div class="left canvas-border"></div>
</div>
<?php do_action( 'tcb_editor_iframe_after' ); ?>
<?php tcb_template( 'sidebar-bottom' ); ?>
<?php tcb_template( 'sidebar-right' ); ?>
<div id="main-icons">
<?php include TVE_TCB_ROOT_PATH . 'editor/css/fonts/control-panel.svg'; ?>
<svg id="tve-icon-picker" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<defs></defs>
</svg>
</div>
<div id="inline-drop-panels"></div>
<div class="fr-center-toolbar bottom" id="edit-mode-tool">
<div id="tcb-edit-mode-button"></div>
</div>
</div>
<?php wp_footer(); ?>
<?php do_action( 'admin_print_footer_scripts' ); ?>
<?php do_action( 'tcb_hook_editor_footer' ); ?>
<div style="display: none" id="tve-static-elements">
<?php echo tcb_editor()->elements->layout(); //phpcs:ignore ?>
</div>
</body>
</html>

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