-
Notifications
You must be signed in to change notification settings - Fork 17
/
delibera_loop_pauta.php
64 lines (57 loc) · 2.59 KB
/
delibera_loop_pauta.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
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="entry-meta">
<span class="entry-author author vcard">
<?php _e( 'Discussão criada por', 'delibera' ); ?>
<a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( __( 'Ver o perfil de %s', 'delibera' ), get_the_author() ); ?>">
<?php the_author(); ?>
</a>
</span><!-- entry-date -->
<span class="entry-date">
<?php echo ' ' . __( 'em', 'delibera' ) . ' '; ?>
<?php the_date('m/d/y'); ?>
</span><!-- .entry-date -->
<span class="entry-prazo">
<?php
if ( delibera_get_prazo( $post->ID ) == -1 )
_e( 'Prazo encerrado', 'delibera' );
else
printf( _n( 'Encerra em um dia', 'Encerra em %1$s dias', delibera_get_prazo( $post->ID ), 'delibera' ), number_format_i18n( delibera_get_prazo( $post->ID ) ) );
?>
</span><!-- .entry-prazo -->
</div><!-- .entry-meta -->
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<div class="entry-content">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php //the_content( __( 'Continue lendo', 'delibera'), true );
$content = $post->post_content;
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Páginas:', 'delibera' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<div class="entry-utility">
<?php if ( count( get_the_category() ) ) : ?>
<span class="cat-links">
<?php printf( __( 'Arquivado em', 'delibera' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
</span>
<span class="meta-sep">|</span>
<?php endif; ?>
<span class="comments-link">
<a href="<?php echo delibera_get_comments_link(); ?>">
<?php
_e( 'Discuta', 'delibera' );
comments_number( '', ' ('. __( 'Um comentário', 'delibera' ) . ')', ' ('. __( '% comentários', 'delibera' ) . ')' );
?>
</a>
</span>
<span class="archive-situacao">
<?php echo delibera_get_situacao($post->ID)->name; ?>
</span>
</div><!-- .entry-utility -->
</div><!-- #post-## -->