[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The main template file 4 * 5 * This is the most generic template file in a WordPress theme and one of the 6 * two required files for a theme (the other being style.css). 7 * It is used to display a page when nothing more specific matches a query. 8 * For example, it puts together the home page when no home.php file exists. 9 * 10 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 11 * 12 * @package WordPress 13 * @subpackage Twenty_Thirteen 14 * @since Twenty Thirteen 1.0 15 */ 16 17 get_header(); ?> 18 19 <div id="primary" class="content-area"> 20 <div id="content" class="site-content" role="main"> 21 <?php if ( have_posts() ) : ?> 22 23 <?php 24 // Start the loop. 25 while ( have_posts() ) : 26 the_post(); 27 ?> 28 <?php get_template_part( 'content', get_post_format() ); ?> 29 <?php endwhile; ?> 30 31 <?php twentythirteen_paging_nav(); ?> 32 33 <?php else : ?> 34 <?php get_template_part( 'content', 'none' ); ?> 35 <?php endif; ?> 36 37 </div><!-- #content --> 38 </div><!-- #primary --> 39 40 <?php get_sidebar(); ?> 41 <?php get_footer(); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 24 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |