-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitem-small.php
27 lines (27 loc) · 1.17 KB
/
item-small.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
<li id="post-<?php the_ID(); ?>" <?php post_class('three columns'); ?>>
<article id="post-<?php the_ID(); ?>" class="<?php if(fdt_has_event_passed()) echo 'event-passed'; ?>">
<header class="post-header clearfix">
<?php if(get_post_type($post->ID) == 'fdt_event') { ?>
<p class="fdt-event-date">
<span class="day"><?php echo fdt_get_event_date($post->ID, 'd'); ?></span>
<span class="month"><?php echo fdt_get_event_date($post->ID, 'M'); ?></span>
<span class="year"><?php echo fdt_get_event_date($post->ID, 'Y'); ?></span>
<span class="time"><?php echo fdt_get_event_date($post->ID, 'H:i'); ?></span>
</p>
<?php } ?>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<p class="meta">
<span class="author"><?php _e('by', 'feiradetrocas'); ?> <?php the_author(); ?></span>
</p>
</header>
<section class="post-content">
<div class="post-excerpt">
<?php the_excerpt(); ?>
</div>
</section>
<aside class="actions clearfix">
<?php echo jeo_find_post_on_map_button(); ?>
<a href="<?php the_permalink(); ?>"><?php _e('Read more', 'feiradetrocas'); ?></a>
</aside>
</article>
</li>