Skip to content

Instantly share code, notes, and snippets.

@adahhane
Created May 13, 2012 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adahhane/2690465 to your computer and use it in GitHub Desktop.
Save adahhane/2690465 to your computer and use it in GitHub Desktop.
HomePage
<?php wp_get_header(); ?>
<?php include (TEMPLATEPATH . '/tab.php'); ?>
<div id="content" class="rounded">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post();
if(get_post_type($post)=="information"){?>
<div class="post" id="post-<?php the_ID(); ?>" id="post-<?php the_ID(); ?>">
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="clear"></div>
</div>
<div class="cover">
<div class="entry">
<a href="<?php the_permalink() ?>"><?php flcn_home_image();?></a>
<p><?php the_content_rss('', TRUE, '', 50); ?> </p>
</div>
</div>
</div>
<?php } endwhile; ?>
<div class="clear"></div>
<div id="navigation">
<?php if(function_exists('wp_pagenavi')) : ?>
<?php wp_pagenavi() ?>
<?php else : ?>
<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries','arclite')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;','arclite')) ?></div>
<div class="clear"></div>
<?php endif; ?>
</div>
<?php else : ?>
<h1 class="title">Not Found</h1>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php wp_get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment