HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/ruwebsiteok/wp-content/themes/driving-school-lite/page.php
<?php
/**
 * The template for displaying all pages.
 * @package Driving School Lite
 */
get_header(); ?>

<?php do_action('driving_school_lite_page_header'); ?>

<main id="maincontent" role="main" class="container">
    <div class="main-wrap-box py-4"> 
        <?php $driving_school_lite_page_layout = get_theme_mod( 'driving_school_lite_single_page_layout','One Column');
        if($driving_school_lite_page_layout == 'One Column'){ ?>
            <?php while ( have_posts() ) : the_post(); ?>
                <div class="title-box">
            		<h1><?php the_title(); ?></h1>
                </div>
                <div id="wrapper">
                    <div class="feature-box">
                        <?php if(get_theme_mod('driving_school_lite_single_page_breadcrumb',true) != ''){ ?>
                            <div class="bradcrumbs">
                                <?php driving_school_lite_the_breadcrumb(); ?>
                            </div>
                        <?php }?>    
                    </div> 
                    <div class="feature-box">
                        <?php the_post_thumbnail(); ?>
                    </div>
                    <div class="entry-content"><?php the_content(); ?> </div>
                    <?php wp_link_pages( array(
                            'before'      => '<div class="page-links"><span class="page-links-title p-3">' . __( 'Pages:', 'driving-school-lite' ) . '</span>',
                            'after'       => '</div>',
                            'link_before' => '<span class="page-number py-2 px-3">',
                            'link_after'  => '</span>',
                            'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'driving-school-lite' ) . ' </span>%',
                            'separator'   => '<span class="screen-reader-text">, </span>',
                    )   ); ?>       
                    <div class="clearfix"></div> 
                    <?php
                        // If comments are open or we have at least one comment, load up the comment template.
                        if ( comments_open() || get_comments_number() ) {
                            comments_template();
                        }
                    ?>
                </div>
            <?php endwhile; // end of the loop. 
            wp_reset_postdata();?>
        <?php }else if($driving_school_lite_page_layout == 'Left Sidebar'){ ?>
            <div class="row">
                <div  id="sidebar" class="col-lg-3 col-md-4">
                    <?php dynamic_sidebar('sidebar-2'); ?>
                </div>
                <div class="col-lg-9 col-md-8">
                    <?php while ( have_posts() ) : the_post(); ?>
                        <div class="title-box">
                            <h1><?php the_title(); ?></h1>
                        </div>
                        <div id="wrapper">
                            <div class="feature-box">
                                <?php if(get_theme_mod('driving_school_lite_single_page_breadcrumb',true) != ''){ ?>
                                    <div class="bradcrumbs">
                                        <?php driving_school_lite_the_breadcrumb(); ?>
                                    </div>
                                <?php }?>    
                            </div> 
                            <div class="feature-box">
                                <?php the_post_thumbnail(); ?>
                            </div>
                            <div class="entry-content"><?php the_content(); ?> </div>
                            <?php wp_link_pages( array(
                                    'before'      => '<div class="page-links"><span class="page-links-title p-3">' . __( 'Pages:', 'driving-school-lite' ) . '</span>',
                                    'after'       => '</div>',
                                    'link_before' => '<span class="page-number py-2 px-3">',
                                    'link_after'  => '</span>',
                                    'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'driving-school-lite' ) . ' </span>%',
                                    'separator'   => '<span class="screen-reader-text">, </span>',
                            )   ); ?>       
                            <div class="clearfix"></div>    
                            <?php
                                // If comments are open or we have at least one comment, load up the comment template.
                                if ( comments_open() || get_comments_number() ) {
                                    comments_template();
                                }
                            ?>
                        </div>
                    <?php endwhile; // end of the loop. 
                    wp_reset_postdata();?>
                </div>
            </div>
        <?php }else if($driving_school_lite_page_layout == 'Right Sidebar'){ ?>
            <div class="row">
                <div class="col-lg-9 col-md-8">
                    <?php while ( have_posts() ) : the_post(); ?>
                        <div class="title-box">
                            <h1><?php the_title(); ?></h1>
                        </div>
                        <div id="wrapper">
                            <div class="feature-box">
                                <?php if(get_theme_mod('driving_school_lite_single_page_breadcrumb',true) != ''){ ?>
                                    <div class="bradcrumbs">
                                        <?php driving_school_lite_the_breadcrumb(); ?>
                                    </div>
                                <?php }?>    
                            </div> 
                            <div class="feature-box">
                                <?php the_post_thumbnail(); ?>
                            </div>
                            <div class="entry-content"><?php the_content(); ?> </div>
                            <?php wp_link_pages( array(
                                    'before'      => '<div class="page-links"><span class="page-links-title p-3">' . __( 'Pages:', 'driving-school-lite' ) . '</span>',
                                    'after'       => '</div>',
                                    'link_before' => '<span class="page-number py-2 px-3">',
                                    'link_after'  => '</span>',
                                    'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'driving-school-lite' ) . ' </span>%',
                                    'separator'   => '<span class="screen-reader-text">, </span>',
                            )   ); ?>       
                            <div class="clearfix"></div> 
                            <?php
                                // If comments are open or we have at least one comment, load up the comment template.
                                if ( comments_open() || get_comments_number() ) {
                                    comments_template();
                                }
                            ?>
                        </div>
                    <?php endwhile; // end of the loop. 
                    wp_reset_postdata();?>
                </div>
                <div  id="sidebar" class="col-lg-3 col-md-4">
                    <?php dynamic_sidebar('sidebar-2'); ?>
                </div>
            </div>
        <?php }?>
    </div>
</main>

<?php do_action('driving_school_lite_page_left_footer'); ?>

<?php get_footer(); ?>