<?php /** * The Template for displaying all single posts. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ get_header(); ?> <div id="container"> <?php ttw_put_ttw_widgetarea('postpages-widget-area', 'ttw-top-widget', 'ttw_hide_special_posts'); ?> <div id="content" role="main"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div id="nav-above" class="navigation"> <div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">' . _x('←', 'Previous post link', TTW_TRANS) . '</span> %title'); ?> </div> <div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">' . _x('→', 'Next post link', TTW_TRANS) . '</span>');
* 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 WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ get_header(); ?> <div id="container"> <?php ttw_put_ttw_widgetarea('top-widget-area', 'ttw-top-widget', 'ttw_hide_widg_posts'); ?> <div id="content" role="main"> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and that will be used instead. */ get_template_part('loop', 'index'); ?> </div><!-- #content --> <?php ttw_put_ttw_widgetarea('bottom-widget-area', 'ttw-bot-widget', 'ttw_hide_widg_posts'); ?> </div><!-- #container --> <?php get_sidebar(); get_footer();