-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
34 lines (31 loc) · 1.13 KB
/
single.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
<?php get_header (); ?>
<div id="mainContent" class="container_11">
<div id="content" class="grid_8">
<div id="pageContent" class="main">
<?php if( have_posts() ) : ?>
<?php while( have_posts() ) : the_post() ?>
<h1><?php the_title(); ?></h1> <?php edit_post_link('Editar', '', ' »'); ?>
<div class="author">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), '42' ); ?>
publicado por <?php echo bp_core_get_userlink( $post->post_author ); ?>
<span class="date">em <?php the_time("d \d\e F \d\e Y"); ?></span>
</div>
<div class="postContent">
<?php
$content = stripslashes(get_the_content());
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
?>
</div>
<?php comments_template('/comments.php', true); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<div id="right-column" class="grid_3">
<?php locate_template( array( 'sidebar.php' ), true ) ?>
</div>
<div class="clear"></div>
</div>
<?php get_footer (); ?>