Skip to content

Commit

Permalink
Adiciona data do evento no display pagina inicial
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusandrade committed Apr 8, 2016
1 parent f8d4279 commit f210068
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tv-highlights/upw/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<?php $current_post = ($post->ID == $current_post_id && is_single()) ? 'active' : ''; ?>
<div class="event-item">
<?php
<?php
$current_date = get_the_time();
if ($current_date != $previous_date){
// echo '<div class="date-block">';
Expand All @@ -35,7 +35,7 @@
}
$previous_date = $current_date
?>

<article <?php post_class($current_post); ?>>
<div class="post-thumb">
<?php if (current_theme_supports('post-thumbnails') && $instance['show_thumbnail'] && has_post_thumbnail()) : ?>
Expand Down Expand Up @@ -86,11 +86,17 @@
</h4>
<?php endif; ?>
</header>
<?php
print format_tv_date($post->start);
if ($post->start['day'] != $post->end['day']){
echo ' - ' . format_tv_date($post->end);
}
?>

<?php print get_post_meta($post_id, 'location'); ?>

<?php if ($instance['show_excerpt']) : ?>
<div class="entry-summary">
<label class="excerpt-label">Descrição: </label>
<div class="entry-summary">
<p class="excerpt-content">
<?php echo get_the_excerpt(); ?>
<?php if ($instance['show_readmore']) : ?>
Expand Down Expand Up @@ -172,4 +178,4 @@
<div class="upw-after">
<?php echo wpautop($instance['after_posts']); ?>
</div>
<?php endif; ?>
<?php endif; ?>

0 comments on commit f210068

Please sign in to comment.