HEX
Server: Apache/2
System: Linux vpslll9m.sdns.vn 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
User: thuexe247c (1044)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/thuexe247c/public_html/wp-content/themes/flex-multi-business/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 flex-multi-business
 */

get_header();
?>
<div class="box-image position-relative">
  <div class="single-page-img"></div>
  <div class="page-header">
    <?php
      the_archive_title( '<h1 class="entry-title">', '</h1>' );
      the_archive_description( '<div class="taxonomy-description">', '</div>' );
    ?>
     <span><?php flex_multi_business_the_breadcrumb(); ?></span>
  </div>
</div>

<?php
    $sidebar_layout = get_theme_mod('flex_multi_business_sidebar_layout_section', 'right');
    if ($sidebar_layout == 'left') {
        $sidebar_layout = 'has-left-sidebar';
    } elseif ($sidebar_layout == 'right') {
        $sidebar_layout = 'has-right-sidebar';
    } elseif ($sidebar_layout == 'no') {
        $sidebar_layout = 'no-sidebar';
    }
?>

		<?php
		if ( have_posts() ) : ?>

			<!-- blog detail start-->
		    <div class="sp-100 bg-w">
		        <div class="container">
		            <div class="row <?php echo esc_attr($sidebar_layout); ?>">
		            	<?php if( is_active_sidebar( 'main-sidebar' ) ){ ?>
								<div class="col-lg-8">
						<?php }else{ ?>
								<div class="col-lg-12">
						<?php } ?>	 	
			                <?php while ( have_posts() ) : the_post(); ?>
								<?php get_template_part( 'template-parts/content', get_post_type() ); ?>
							<?php endwhile; ?>	

							<div class="row">
		                        <div class="col-12 text-center">
		                            <div class="pagination mt-5">
		                                <?php echo paginate_links(); ?>
		                            </div>
		                        </div>
		                    </div>
							
						</div>	
						
						<?php
		                if (($sidebar_layout == 'has-left-sidebar') || ($sidebar_layout == 'has-right-sidebar')) { ?>
							<div class="col-lg-4">
								<?php get_sidebar(); ?>
							</div>
						<?php } ?>
					</div>
					</div>
				</div>
			</div>
		<?php
		else :

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

		endif;
		?>

<?php
get_footer();