HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: /home/mirz4654/public_html/wp-content/themes/nexter/index.php
<?php
/**
 * The main template file
 *
 * 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.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Nexter
 * @since	1.0.0
 */

get_header();
?>

<?php 	
	$get_sidebar = nexter_site_sidebar_layout();
	$content_column = 'nxt-col-md-12';
	
	if(!empty($get_sidebar) && ($get_sidebar['layout'] == 'left-sidebar' || $get_sidebar['layout'] == 'right-sidebar') ){
		$content_column = ' nxt-col-md-8 nxt-col-sm-12';		
	}
?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main">

		<?php
		if ( have_posts() ) :

				echo '<div class="nxt-row">';
				
					/* Left Sidebar */
					if ( !empty($get_sidebar) && $get_sidebar['layout'] == 'left-sidebar' ) :
						get_sidebar();
					endif;
					/* Left Sidebar */
					
					echo '<div class="nxt-col '.esc_attr($content_column).'">';
				
						echo '<div class="nxt-blog-post-listing nxt-block mt-2">';
						
							echo '<div class="nxt-row m-0">';
							/* Start the Loop */
								while ( have_posts() ) :
									the_post();
									
									get_template_part( 'template-parts/archive/archive', 'layout-1' ); 
									
								endwhile;
								
							echo '</div>'; //End nxt-row
							$pagination = nexter_pagination();
							if ($pagination !== null) {
								echo wp_kses_post($pagination);
							}
						echo '</div>'; //End blog-post-listing
				
					echo '</div>'; //End nxt-col
					
					/* Right Sidebar */
					if ( !empty($get_sidebar) && $get_sidebar['layout'] == 'right-sidebar' ) :
						get_sidebar();
					endif;
					/* Right Sidebar */
					
				echo '</div>'; //End nxt-row
				
		else :

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

		endif;
		?>

		</main><!-- #main -->
	</div><!-- #primary -->

<?php
get_footer();