No edit summary
(Zak's changes)
Line 17: Line 17:
                  
                  
                 <p class="postdate">
                 <p class="postdate">
                     <?php the_time('F jS, Y') ?> <?php _e('at'); ?> <?php the_time() ?>
                     <?php the_time('F jS, Y') ?> <?php _e('at'); ?> <?php the_time() ?> by <a href="http://www.appropedia.org/User:<?php the_author_login(); ?>"><?php the_author(); ?></a>
                    (<?php the_category(', ') ?>)
                     <?php edit_post_link(__('Edit'),' &#183; ',''); ?>
                     <?php edit_post_link(__('Edit'),' &#183; ',''); ?>
                 </p>
                 </p>
Line 25: Line 24:
                     <?php the_content(__('Read the rest of this entry &raquo;')); ?>
                     <?php the_content(__('Read the rest of this entry &raquo;')); ?>
                 </div>
                 </div>
<?php if (get_the_tags()) the_tags(''); ?>
                  
                  
                 <p class="postmeta">
                 <p class="postmeta">
Line 52: Line 52:


<?php get_footer(); ?>
<?php get_footer(); ?>
</pre>
</pre>

Revision as of 16:47, 4 April 2009

This is the Main Index Template (index.php) of the Thirteen theme. Shown here is the default file, and it will be updated as changes are made.

The default version doesn't display tags or author. These apparently must be inserted in "The Loop" (between the while and the endwhile). This has been fixed, with help from Zak Greant, but not pasted here yet.


<?php get_header(); ?>

<div id="content">

    <?php if (have_posts()) : ?>
        
        <?php while (have_posts()) : the_post(); ?>
        
            <div class="post" id="post-<?php the_ID(); ?>">
                <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                
                <p class="postdate">
                    <?php the_time('F jS, Y') ?> <?php _e('at'); ?> <?php the_time() ?> by <a href="http://www.appropedia.org/User:<?php the_author_login(); ?>"><?php the_author(); ?></a>
                    <?php edit_post_link(__('Edit'),' · ',''); ?>
                </p>
                
                <div class="postentry">
                    <?php the_content(__('Read the rest of this entry »')); ?>
                </div>
<?php if (get_the_tags()) the_tags(''); ?> 
                
                <p class="postmeta">
                    <?php comments_popup_link('Comments', '1 Comments', '% Comments'); ?>
                </p>
            </div>
    
        <?php endwhile; ?>

        <p>
            <?php posts_nav_link('', __(''), __('« Previous entries')); ?>
            <?php posts_nav_link(' · ', __(''), __('')); ?>
            <?php posts_nav_link('', __('Next entries »'), __('')); ?>
        </p>
        
    <?php else : ?>

        <h2 class="posttitle"><?php _e('Not Found'); ?></h2>
        <p><?php _e('Sorry, but no posts matched your criteria.'); ?></p>
        <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <?php endif; ?>

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Cookies help us deliver our services. By using our services, you agree to our use of cookies.