-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·87 lines (71 loc) · 3.08 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php //calculate age of post (in days)
$post_age_in_days = (time('U') - get_the_time('U'))/(60*60*24); ?>
<?php //filter week-old announcements
if ($post_age_in_days > 7.0 && in_category(6)) :
continue;
endif;
?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="post-header grid_8 alpha">
<div class="entry-date">
<?php the_time('D, M jS') ?>
</div>
<div class="author">
by <?php the_author_meta('first_name') ?>
<ul class="categories-lg alignright">
<?php
foreach((get_the_category()) as $category) {
echo '<li class=\'' . $category->cat_name . '\'><a href=\'' . get_category_link($category->cat_ID) . '\' title=\'' . $category->cat_name . '\'> </a></li>';
}
?>
</ul>
</div>
<!-- post header comments -->
<div class="entry-comments alignright">
<a class="spch-bub-inside" href="<?php comments_link(); ?>">
<span class="point"></span>
<em><?php comments_number('0', '1', '%'); ?></em>
</a>
</div>
</div> <!-- end .post-header -->
<div class="entry clearfix grid_8 alpha">
<?php
// $thumbnail = get_post_custom_values('thumbnail');
// $isupcoming = in_category('Upcoming') || in_category('Shorts');
//
// if ($thumbnail && !$isupcoming) {
// echo '<div class="photo large grid_12">' . linktoimage(resizeimage($thumbnail[0], ''), get_permalink()) . '</div>';
// }
?>
<?php
if ($isupcoming)
the_content();
else
//the_excerpt();
the_content('');
?>
<div class="entry-footer grid_8 alpha">
<?php if ($isupcoming) { ?>
<span class="read-more grid_4 alpha">Fin</span>
<?php } else { ?>
<a href="<?php the_permalink() ?>" class="read-more grid_4 alpha"><span>Continue reading</span></a>
<?php } ?>
<a href="<?php comments_link(); ?>" class="comments grid_4 omega"><span><?php comments_number(' ', '1', '%'); ?></span> <?php comments_number('Be the first to comment!', 'Comment', 'Comments'); ?></a>
</div><!-- end .entry-footer -->
</div><!-- end entry -->
</div><!-- end post -->
<?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 get_search_form(); ?>
<?php endif; ?>
</div><!-- end #content -->
</div><!-- end #home -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>