Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/middletvnew/wp-content/themes/theme/ |
Upload File : |
<?php
/**
* The main template file
*
* @package Art Blog
*/
get_header();
?>
<?php
$art_blog_archive_layout = get_theme_mod( 'art_blog_archive_layout', 'layout-1' );
?>
<div class="container">
<?php if ( $art_blog_archive_layout == 'layout-1' ) { ?>
<div class="main-wrapper">
<main id="primary" class="site-main ct-post-wrapper lay-width">
<?php
if ( 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 ( have_posts() ) :
the_post();
get_template_part( 'revolution/template-parts/content', get_post_format() );
endwhile;
the_posts_navigation();
else :
get_template_part( 'revolution/template-parts/content', 'none' );
endif;
?>
</main>
<?php get_sidebar(); ?>
</div>
<?php
} elseif ( $art_blog_archive_layout == 'layout-2' ) { ?>
<div class="main-wrapper">
<?php get_sidebar(); ?>
<main id="primary" class="site-main ct-post-wrapper lay-width">
<?php
if ( 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 ( have_posts() ) :
the_post();
get_template_part( 'revolution/template-parts/content', get_post_format() );
endwhile;
the_posts_navigation();
else :
get_template_part( 'revolution/template-parts/content', 'none' );
endif;
?>
</main>
</div>
<?php
} elseif ( $art_blog_archive_layout == 'layout-3' ) { // No-sidebar layout ?>
<div class="main-wrapper full-width">
<main id="primary" class="site-main ct-post-wrapper lay-width">
<?php
if ( 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 ( have_posts() ) :
the_post();
get_template_part( 'revolution/template-parts/content', get_post_format() );
endwhile;
the_posts_navigation();
else :
get_template_part( 'revolution/template-parts/content', 'none' );
endif;
?>
</main>
</div>
<?php } ?>
</div>
<?php get_footer(); ?>