post-feed.php
2.9 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
<div class="fl-post-feed-post<?php if($settings->image_position == 'beside') echo ' fl-post-feed-image-beside'; if(has_post_thumbnail() && $settings->show_image) echo ' fl-post-feed-has-image'; ?>" itemscope itemtype="<?php FLPostGridModule::schema_itemtype(); ?>">
<?php FLPostGridModule::schema_meta(); ?>
<?php if(has_post_thumbnail() && $settings->show_image && $settings->image_position == 'above-title') : ?>
<div class="fl-post-feed-image">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail($settings->image_size); ?>
</a>
</div>
<?php endif; ?>
<div class="fl-post-feed-header">
<h2 class="fl-post-feed-title" itemprop="headline">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
<?php if($settings->show_author || $settings->show_date || $settings->show_comments) : ?>
<div class="fl-post-feed-meta">
<?php if($settings->show_author) : ?>
<span class="fl-post-feed-author">
<?php
printf(
_x( 'By %s', '%s stands for author name.', 'fl-builder' ),
'<a href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '"><span>' . get_the_author_meta( 'display_name', get_the_author_meta( 'ID' ) ) . '</span></a>'
);
?>
</span>
<?php endif; ?>
<?php if($settings->show_date) : ?>
<?php if($settings->show_author) : ?>
<span class="fl-sep"> | </span>
<?php endif; ?>
<span class="fl-post-feed-date">
<?php FLBuilderLoop::post_date($settings->date_format); ?>
</span>
<?php endif; ?>
<?php if($settings->show_comments) : ?>
<?php if($settings->show_author || $settings->show_date) : ?>
<span class="fl-sep"> | </span>
<?php endif; ?>
<span class="fl-post-feed-comments">
<?php comments_popup_link(__('0 Comments', 'fl-builder'), __('1 Comment', 'fl-builder'), __('% Comments', 'fl-builder')); ?>
</span>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php if(has_post_thumbnail() && $settings->show_image && in_array($settings->image_position, array('above', 'beside'))) : ?>
<div class="fl-post-feed-image">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail($settings->image_size); ?>
</a>
</div>
<?php endif; ?>
<?php if($settings->show_content || $settings->show_more_link) : ?>
<div class="fl-post-feed-content" itemprop="text">
<?php
if ($settings->show_content) {
if ( 'full' == $settings->content_type ) {
the_content();
}
else {
the_excerpt();
}
}
?>
<?php if($settings->show_more_link) : ?>
<a class="fl-post-feed-more" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php echo $settings->more_link_text; ?></a>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="fl-clear"></div>
</div>