Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.48.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : no-sidebar.php
<?php
/**
 * Template Name: Veres No Sidebar
 * Template Post Type: post, page, product
 *
 * This is the most generic template file in a WordPress theme and one of the
 * two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * For example, it puts together the home page when no home.php file exists.
 *
 * Learn more: https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Veres WordPress theme
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}
get_header();


if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'single' ) ) {
    while (have_posts()) :
        the_post();
        ?>

        <main <?php post_class('site-main'); ?> role="main">
            <?php if (apply_filters('veres/filter/enable_page_title', true)) : ?>
                <header class="page-header page-header--default">
                    <div class="container page-header-inner">
                        <?php the_title('<h1 class="entry-title">', '</h1>'); ?>
                    </div>
                </header>
            <?php endif; ?>

            <div id="site-content-wrap" class="container">

                <div class="site-content--default">

                    <div class="page-content">

                        <?php

                        the_content();

                        ?>


                        <div class="clear"></div>

                        <?php
                        if(is_singular('post')){
                            the_tags('<div class="post-tags"><span class="tag-links"><strong>' . __('Tagged: ', 'veres') . '</strong>', ', ', '</span></div>');
                        }

                        wp_link_pages( array(
                            'before' => '<div class="clearfix"></div><div class="page-links">' . esc_html__( 'Pages:', 'veres' ),
                            'after'  => '</div>',
                        ) );

                        ?>

                    </div>

                    <div class="clear"></div>

                    <?php

                    wp_reset_postdata();

                    if(comments_open() || get_comments_number()){
                        comments_template();
                    }
                    ?>

                </div>
            </div>

        </main>

    <?php
    endwhile;
}

get_footer();
© 2025 XylotrechusZ