-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (19 loc) · 994 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ( in_category('110') ) continue // Archived, skip ?>
<div class="box bg1" id="post-<?php the_ID(); ?>">
<?php if ( in_category('6') ) { // External link ?>
<h2><a href="<?php echo get_post_meta($post->ID, "external_link", true); ?>" rel="bookmark" title="<?php echo str_ireplace("<br />", ": ", $post->post_title); ?>"><?php the_title(); ?></a></h2>
<?php } else { // Internal link ?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo str_ireplace("<br />", ": ", $post->post_title); ?>"><?php the_title(); ?></a></h2>
<?php } ?>
<div class="entry">
<?php if( !empty($post->post_excerpt) ) { the_excerpt(); } else { the_content(); } ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<?php include (TEMPLATEPATH . '/not_found.php'); ?>
<?php endif; ?>
<?php get_footer(); ?>