Root cause: mu-plugin allow-unfiltered-html.php was replacing all filtered content with raw DB content at PHP_INT_MAX priority. Solution: Modified mu-plugin on server to call roi_inject_content_ads() after getting raw content. NOTE: The mu-plugin change is only on the production server at: /wp-content/mu-plugins/allow-unfiltered-html.php The change adds roi_inject_content_ads() call after YouTube Facade filter. This allows ads to be injected into posts even with the raw content bypass. Cleaned up: - Removed debug logging from adsense-placement.php - Removed template-level debug from single.php - Removed debug markers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
110 lines
2.3 KiB
PHP
110 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* Single Post Template
|
|
*
|
|
* Replica EXACTAMENTE la estructura del template RDash (líneas 135-1020)
|
|
* Sin wrappers extra de WordPress tradicional.
|
|
*
|
|
* @package ROI_Theme
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<?php while (have_posts()) : the_post(); ?>
|
|
|
|
<main id="main-content" class="site-main" role="main">
|
|
|
|
<!-- Hero Section - Componente dinámico -->
|
|
<?php
|
|
if (function_exists('roi_render_component')) {
|
|
echo roi_render_component('hero');
|
|
}
|
|
?>
|
|
|
|
<!-- Main Content Grid (Template líneas 169-1020) -->
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
<!-- Main Content Column (col-lg-9) -->
|
|
<div class="col-lg-9">
|
|
|
|
<!-- Featured Image - Componente dinámico -->
|
|
<?php
|
|
if (function_exists('roi_render_component')) {
|
|
echo roi_render_component('featured-image');
|
|
}
|
|
?>
|
|
|
|
<!-- Post Content -->
|
|
<article class="post-content">
|
|
<?php
|
|
the_content();
|
|
|
|
wp_link_pages(array(
|
|
'before' => '<div class="page-links">' . esc_html__('Pages:', 'roi-theme'),
|
|
'after' => '</div>',
|
|
));
|
|
?>
|
|
</article>
|
|
|
|
<!-- Share Buttons - Componente dinámico -->
|
|
<?php
|
|
if (function_exists('roi_render_component')) {
|
|
echo roi_render_component('social-share');
|
|
}
|
|
?>
|
|
|
|
<!-- CTA Post - Componente dinámico -->
|
|
<?php
|
|
if (function_exists('roi_render_component')) {
|
|
echo roi_render_component('cta-post');
|
|
}
|
|
?>
|
|
|
|
<!-- Related Posts - Componente dinámico -->
|
|
<?php
|
|
if (function_exists('roi_render_component')) {
|
|
echo roi_render_component('related-post');
|
|
}
|
|
?>
|
|
|
|
</div><!-- .col-lg-9 -->
|
|
|
|
<!-- Sidebar Column (col-lg-3) -->
|
|
<div class="col-lg-3">
|
|
<div class="sidebar-sticky">
|
|
<!-- Table of Contents - Componente dinámico -->
|
|
<?php
|
|
if (function_exists('roi_render_component')) {
|
|
echo roi_render_component('table-of-contents');
|
|
}
|
|
?>
|
|
|
|
<!-- CTA Box Sidebar - Componente dinámico -->
|
|
<?php
|
|
if (function_exists('roi_render_component')) {
|
|
echo roi_render_component('cta-box-sidebar');
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- .row -->
|
|
</div><!-- .container -->
|
|
|
|
</main><!-- #main-content -->
|
|
|
|
<?php endwhile; ?>
|
|
|
|
<!-- Contact Form Section - Componente dinámico -->
|
|
<?php
|
|
if (function_exists('roi_render_component')) {
|
|
echo roi_render_component('contact-form');
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
get_footer();
|