This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
studio-2012/wp-content/themes/studio12/index.php
T
2012-05-22 06:01:15 +02:00

46 lines
967 B
PHP

<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php get_sidebar("right"); ?>
<div id="main-content">
<?php if (have_posts()) :
$post = $posts[0]; $c=0;
while (have_posts()) : the_post();
$c++; ?>
<?php if($c == 1) : ?>
<article <?php post_class("firstpostindex") ?> id="post-<?php the_ID(); ?>">
<?php the_post_thumbnail("firstpost"); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_excerpt(25); ?>
</div>
<hr />
</article>
<?php else : ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php the_post_thumbnail(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_excerpt(25); ?>
</div>
<hr />
</article>
<div style="clear:both;"> </div>
<?php endif; ?>
<?php endwhile; ?>
<?php else : ?>
<h2>Not Found</h2>
<?php endif; ?>
</div>
<?php get_footer(); ?>