/
loop-page.php
69 lines (50 loc) · 2.33 KB
/
loop-page.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
<?php
/**
* Loop for the page template
*
* @author Conrad Muan <con.muan@gmail.com>
* @package Radical_Framework
* @subpackage templates
**/
?>
<div id="main" role="main" class="grid_9 clearfix">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<article <?php post_class(); ?>>
<header>
<h1 class="the-title"><a href="<?php the_permalink(); ?>" title="Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
</header>
<section class="post-meta">
<div class="author-info clearfix">
<div class="grid_2 alpha author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ) ); ?>
</div>
<div class="grid_7 omega author-description">
<h2><?php the_author(); ?></h2>
<?php the_author_meta('description'); ?>
<p>View all posts written by <?php the_author_posts_link(); ?></p>
</div>
</div>
<div class="posted-under">
<p>Posted under: <?php the_category(); ?></p>
<p><?php the_tags(); ?></p>
<?php edit_post_link('Edit this post'); ?>
</div>
</section>
<?php the_content(); ?>
<?php comments_template( '' , true); ?>
<?php if(have_comments()): ?>
<footer>
<?php if (comments_open()) : ?>
<a href="<?php comments_link(); ?>" title="Link to <?php the_title();?>'s Comments"><?php comments_number('No responses' , 'One response', '% responses'); ?></a>
<?php endif; ?>
</footer>
<?php endif; ?>
</article>
<?php endwhile; else: ?>
<article <?php post_class(); ?>>
<h1>404 - Not Found</h1>
<p>Unfortunately, the content you were looking for was not found. Try searching for it</p>
<?php get_search_form(); ?>
</article>
<?php endif; ?>
</div><!--main-->