forked from disgogo/flexmarket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog-3col.php
81 lines (56 loc) · 2.42 KB
/
blog-3col.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<div class="span4">
<div class="blog-post">
<?php $temp = get_post_meta( $post->ID, '_mpt_post_select_temp', true ); ?>
<?php if (has_post_thumbnail($post->ID) || $temp == 'video' ) : ?>
<div class="align-center">
<?php
$id = get_the_ID();
if ($temp == 'image-carousel') {
mpt_load_image_carousel( $id , 'tb-360');
} else if ($temp == 'video') {
mpt_load_video_post( $id , '245');
} else {
mpt_load_featured_image( $id , 'tb-360');
}
?>
</div>
<div class="clear padding10"></div>
<?php endif; ?>
<div class="row-fluid">
<div class="span2">
<center>
<?php
$year = get_the_time('Y');
$month = get_the_time('M');
$day = get_the_time('j');
?>
<div class="date">
<span class="month"><?php echo $month; ?></span>
<div class="clear"></div>
<span class="day"><?php echo $day; ?></span>
<div class="clear"></div>
<span class="year"><?php echo $year; ?></span>
</div>
<div class="comments" style="font-size: 0.65em;"><a href="<?php comments_link(); ?>"><?php comments_number( 'No Comments' , '1 Comment' , '% Comments' ); ?></a></div>
</center>
</div>
<div class="clear padding10 visible-phone"></div>
<div class="span10">
<a href="<?php the_permalink(); ?>"><h3 class="post-title"><?php the_title(); ?></h3></a>
<div class="post-meta muted">
<span>Posted By <?php the_author(); ?> In <?php the_category(', '); ?><?php the_tags(' Tagged with ', ', '); ?> </span>
</div>
<div class="clear padding5"></div>
<div class="post-excerpt"><?php the_excerpt();?></div>
<div class="align-right">
<a href="<?php the_permalink(); ?>">
<!-- Button (hidden phone) -->
<button class="btn btn-large hidden-phone" type="button">Read More »</button>
<!-- Button (visible phone) -->
<button class="btn btn-large btn-block visible-phone" type="button">Read More »</button>
</a>
</div>
</div>
</div>
</div>
</div>