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/interactive-education/index.php
<?php
/**
 * The primary template file
 *
 * @package Interactive Education
 */

get_header();
?>	
	<div id="content" class="site-content">
		<div class="container">
			<?php
			$query = new WP_Query( apply_filters( 'interactive_education_blog_args', array(
				'post_type'           => 'post',
				'post_status'         => 'publish',
				'paged'          	  => get_query_var( 'paged', 1 ),
			)));
			$posts_array = $query->get_posts();
			$interactive_education_show_latest_posts = count( $posts_array ) > 0; ?>
			<section class="section-post-area">
				<div class="row">
					<div class="col-lg-8">
						<div id="primary" class="content-area">
							<?php
								if ( $query->have_posts() ) :

									if ( is_home() && !is_front_page() ) :
										?>
										<header>
											<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
										</header>
										<?php
									endif;

									/* Start the Loop */
									while ( $query->have_posts() ) :
										$query->the_post();

										get_template_part( 'template-parts/content', get_post_type() );

									endwhile;

								elseif ( !is_sticky() && ! $query->have_posts() ):
									get_template_part( 'template-parts/content', 'none' );
								endif;
							?>
							<?php								
								the_posts_pagination( array(
									'total'        => $query->max_num_pages,
									'next_text' => '<span>'.esc_html__( 'Next', 'interactive-education' ) .'</span><span class="screen-reader-text">' . esc_html__( 'Next page', 'interactive-education' ) . '</span>',
									'prev_text' => '<span>'.esc_html__( 'Prev', 'interactive-education' ) .'</span><span class="screen-reader-text">' . esc_html__( 'Previous page', 'interactive-education' ) . '</span>',
									'before_page_number' => '<span class="meta-nav screen-reader-text">' . esc_html__( 'Page', 'interactive-education' ) . ' </span>',
								));
								wp_reset_postdata();
							?>
						</div>
					</div>
					<div class="col-lg-4">
						<div id="secondary" class="sidebar left-sidebar">
							<?php get_sidebar('sidebar-1'); ?>
						</div>
					</div>
				</div>
			</section>
		</div>
	</div>
<?php
get_footer();