Files
roi-theme/wp-content/plugins/thrive-ultimatum/tcb-bridge/editor/campaign/shortcode.php
root a22573bf0b 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>
2025-11-03 21:04:30 -06:00

43 lines
1.5 KiB
PHP
Executable File

<?php
global $design;
$key = '';
$type = '';
if ( ! empty( $design[ TVE_Ult_Const::FIELD_TEMPLATE ] ) ) {
list( $type, $key ) = TU_Template_Manager::tpl_type_key( $design[ TVE_Ult_Const::FIELD_TEMPLATE ] );
}
$key = preg_replace( '#_v(.+)$#', '', $key );
$design_body_class = 'tve-ult-body-shortcode';
$is_gutenberg_preview = isset( $_GET['tve_block_preview'] );
include TVE_Ult_Const::plugin_path() . 'tcb-bridge/editor/head.php'; ?>
<?php if ( $is_gutenberg_preview ) { ?>
<style type="text/css">#wpadminbar, .tve-ult-template-description {
display: none !important;
}
html {
margin: 0 !important;
}
</style>
<script>
document.addEventListener( "DOMContentLoaded", () => {
if ( window.TVE_Dash ) {
TVE_Dash.forceImageLoad( document );
}
} );
</script>
<?php } ?>
<div id="tve-ult-editor-replace">
<div class="tvu-triggered tve-ult-shortcode">
<div class="tl-style" id="tvu_<?php echo $key ?>" data-state="<?php echo $design['id'] ?>">
<?php echo tve_ult_editor_custom_content( $design ) ?>
</div>
</div>
<div class="tve-ult-template-description"
style="opacity: .6; padding-top: 240px; text-align: center; position: relative; z-index: -1;">
<h4><?php echo __( 'This is a Design type called "Shortcode". It is displayed on posts that have its code in the content.', 'thrive-ult') ?></h4>
</div>
</div>
<?php include TVE_Ult_Const::plugin_path( 'tcb-bridge/editor/footer.php' ); ?>