File manager - Edit - /home/verseaumee/middletvnew26/wp-content/plugins/shopbuild/templates/theme-replacement.php
Back
<?php /** * ShopBuild Theme Replacement Template * * This template takes over the entire page rendering when a Custom Header/Footer is active. * It manually constructs the document structure (HTML, Head, Body) and executes the main loop, * bypassing the theme's header.php and footer.php entirely. */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); } else { do_action( 'wp_body_open' ); } ?> <div id="shopbuild-main-content" class="site-content"> <main id="primary" class="site-main"> <?php if ( class_exists( 'WooCommerce' ) && ( is_woocommerce() || is_cart() || is_checkout() || is_account_page() ) ) { ?> <div class="woocommerce-shopbuild-wrapper"> <?php if( ! is_singular('product') && apply_filters( 'woocommerce_show_page_title', true ) ) { ?> <header class="woocommerce-products-header"> <h1 class="woocommerce-products-header__title page-title"><?php woocommerce_page_title(); ?></h1> <?php do_action( 'woocommerce_archive_description' ); ?> </header> <?php } if(is_checkout()){ ?> <div class="storebuild-template-builder woocommerce"> <form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url(wc_get_checkout_url()); ?>" enctype="multipart/form-data"> <?php do_action('storebuild_checkout_content'); ?> </form> </div> <?php }else{ woocommerce_content(); } // the_content(); // If you want to render WooCommerce content directly, uncomment the line below ?> </div> <?php } elseif ( have_posts() ) { while ( have_posts() ) { the_post(); // If Single or Page, show full content if ( is_singular() ) { ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( ! is_front_page() && ! is_page_template( 'elementor_header_footer' ) ) : ?> <header class="entry-header"> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> </header> <?php endif; ?> <div class="entry-content"> <?php the_content(); ?> </div> </article> <?php } // If Archive or Search, show excerpts else { ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'mb-5' ); ?> style="margin-bottom: 40px;"> <header class="entry-header"> <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> </header> <div class="entry-summary"> <?php the_excerpt(); ?> </div> </article> <?php } } // Pagination the_posts_pagination(); } else { ?> <section class="no-results not-found"> <header class="page-header"> <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'shopbuild' ); ?></h1> </header> <div class="page-content"> <p><?php esc_html_e( 'It seems we can’t find what you’re looking for.', 'shopbuild' ); ?></p> </div> </section> <?php } ?> </main> </div> <?php // Render Custom Footer // do_action( 'shopbuild_render_footer' ); ?> <?php wp_footer(); ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings