Darstellung der Beiträge beim Theme OldForest
hallo,
also ich benutze das theme old forest. hier ist es so, dass die beiträge gelistet sind, wie hier:
http://web315.nx24.net/listing.jpg
ich würde es aber gerne so dargestellt haben, wie im original-theme.
hier sind die beiden codes.
archive.php:
PHP
<?php get_header();?>
<?php get_sidebar(); ?>
<div id="content_main">
<!-------first layer---------->
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2>Archive for the '<?php echo single_cat_title(); ?>' Category </h2> <h3>(<em>Chronologically Listed</em>)</h3>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2>Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2>Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2>Search Results</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2>Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2>Blog Archives</h2>
<?php } ?>
<ul class="dates">
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> |
<small>
Posted by <?php the_author() ?> on <?php the_time('M d Y');?> under <?php the_category(', ') ?>
</small>
</li>
<?php endwhile; ?>
</ul>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Vorherige Einträge') ?></div>
<div class="alignright"><?php previous_posts_link('Nächste Einträge »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Nichts gefunden.</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
und index.php
PHP
<?php get_header();?>
<?php get_sidebar(); ?>
<div id="content_main">
<!-----------mod--------------->
<?php if (have_posts()) : ?>
<?php $first = true; ?>
<?php while (have_posts()) : the_post(); ?>
<div class="story<?php if($first == true) echo " first" ?>">
<h2>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?> </a>
</h2>
<p class="details">
Posted by <?php the_author() ?> on <?php the_time('M d Y');?> | <?php comments_popup_link('Comment now »', '1 Comment »', '% Comments »', 'commentslink'); ?>
</p>
<p>
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
</p>
<?php if($first==true) { $first= false;} else {echo '<div class="clear"></div>';$first= true; } ?>
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<!-----------end mod--------------->
</div>
<?php get_footer(); ?>
Alles anzeigen
ich hoffe wirklich, dass mir jemand nen rat geben kann.
liebe grüße
m34