Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/template...
File: block-layout-preview.php
<!DOCTYPE html>
[0] Fix | Delete
<html <?php language_attributes(); ?> style="margin-top: 0 !important;">
[1] Fix | Delete
<head>
[2] Fix | Delete
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
[3] Fix | Delete
<?php
[4] Fix | Delete
show_admin_bar( false );
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Fires in the head, before {@see wp_head()} is called. This action can be used to
[8] Fix | Delete
* insert elements into the beginning of the head before any styles or scripts.
[9] Fix | Delete
*
[10] Fix | Delete
* @since 1.0
[11] Fix | Delete
*/
[12] Fix | Delete
do_action( 'et_head_meta' );
[13] Fix | Delete
?>
[14] Fix | Delete
[15] Fix | Delete
<script type="text/javascript">
[16] Fix | Delete
document.documentElement.className = 'js';
[17] Fix | Delete
</script>
[18] Fix | Delete
[19] Fix | Delete
<?php wp_head(); ?>
[20] Fix | Delete
</head>
[21] Fix | Delete
<?php
[22] Fix | Delete
/**
[23] Fix | Delete
* body's overflow:hidden is necessary to avoid unwanted scrollbar during layout preview loading
[24] Fix | Delete
* Nothing else (inline style added by js, on-page css) is faster enough to prevent it.
[25] Fix | Delete
*/
[26] Fix | Delete
?>
[27] Fix | Delete
<body <?php body_class(); ?> style="overflow: hidden;">
[28] Fix | Delete
<div id="page-container">
[29] Fix | Delete
<?php
[30] Fix | Delete
// Get TB template for current layout block preview page (basically FE of current page);
[31] Fix | Delete
// Use TB if there is applicable template or default layout if it doesn't exist
[32] Fix | Delete
$tb_template = ET_GB_Block_Layout::get_preview_tb_template();
[33] Fix | Delete
[34] Fix | Delete
if ( $tb_template['has_layout'] ) {
[35] Fix | Delete
$layout_id = $tb_template['layout_id'];
[36] Fix | Delete
$layout_enabled = $tb_template['layout_enabled'];
[37] Fix | Delete
$template_id = $tb_template['template_id'];
[38] Fix | Delete
[39] Fix | Delete
et_theme_builder_frontend_render_body( $layout_id, $layout_enabled, $template_id );
[40] Fix | Delete
} else {
[41] Fix | Delete
?>
[42] Fix | Delete
<div id="main-content">
[43] Fix | Delete
<?php while ( have_posts() ): the_post(); ?>
[44] Fix | Delete
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
[45] Fix | Delete
<div class="entry-content">
[46] Fix | Delete
<?php the_content(); ?>
[47] Fix | Delete
</div>
[48] Fix | Delete
</article>
[49] Fix | Delete
<?php endwhile; ?>
[50] Fix | Delete
</div><!-- #main-content -->
[51] Fix | Delete
<?php
[52] Fix | Delete
}
[53] Fix | Delete
?>
[54] Fix | Delete
</div><!-- #page-container -->
[55] Fix | Delete
<div id="block-layout-preview-footer">
[56] Fix | Delete
<?php wp_footer(); ?>
[57] Fix | Delete
</div><!-- #block-layout-preview-footer -->
[58] Fix | Delete
</body>
[59] Fix | Delete
</html>
[60] Fix | Delete
[61] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function