| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tgnew/wp-content/themes/strapvert/ |
Upload File : |
<?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.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package StrapVert
*/
get_header(); ?>
<?php if ( get_theme_mod( 'strapvert_home_content_visibility' ) != 1 ) { ?>
<div class="container">
<div class="row" role="main">
<div class="span8">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php strapvert_content_nav( 'nav-below' ); ?>
<?php elseif ( ! is_home() || is_paged() ) : ?>
<?php get_template_part( 'no-results', 'index' ); ?>
<?php else : ?>
<?php
$featured_posts = strapvert_get_featured_posts();
if ( ! $featured_posts->have_posts() )
get_template_part( 'no-results', 'index' );
?>
<?php endif; ?>
</div><!-- #content -->
<div class="span4">
<?php get_sidebar(); ?>
</div>
</div><!-- .row main -->
</div>
<?php } ?>
<?php get_footer(); ?>