-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop.php
41 lines (34 loc) · 1 KB
/
loop.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
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post();
$slug = basename(get_permalink());
?>
<div id="<?php // the_title(); To do: make this echo the slug?> " class="jbasewrap post <?php echo $slug; ?>">
<div class="leftcol textalignright">
<h1><?php the_title(); ?></h1>
<?php if( !is_page()) { ?>
<div class="meta push1">
<p>Posted in <?php
$cat = get_the_category();
$catname = $cat[0]->name;
$catlink = get_category_link( $cat[0]->term_id );
?>
<a class="fixed" href="<?php echo $catlink; ?>" title="view other <?php echo $catname; ?> posts"><?php echo $catname; ?></a> // <?php echo get_the_date('d F Y'); ?>
</p>
</div>
<?php } ?>
</div>
<div class="rightcol push3">
<?php the_content(); ?>
<?php if( !is_page()) { ?>
<hr>
<div class="tags">
<?php the_tags(); ?>
</div>
<?php } ?>
</div>
<br class="clearboth" />
</div>
<?php
endwhile;
endif;
?>