-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog-1col.php
86 lines (56 loc) · 2.52 KB
/
blog-1col.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
82
83
84
85
86
<div class="blog-post">
<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"><a href="<?php comments_link(); ?>"><?php comments_number( 'No Comments' , '1 Comment' , '% Comments', 'flexmarket' ); ?></a></div>
</center>
</div>
<div class="clear padding10 visible-phone"></div>
<?php $temp = get_post_meta( $post->ID, '_mpt_post_select_temp', true ); ?>
<?php if (has_post_thumbnail($post->ID) || $temp == 'video' ) : ?>
<div class="span5">
<div class="align-center">
<?php
$id = get_the_ID();
if ($temp == 'image-carousel') {
mpt_load_image_carousel($id);
} else if ($temp == 'video') {
mpt_load_video_post($id , '195');
} else {
mpt_load_featured_image($id);
}
?>
</div>
</div>
<?php endif; ?>
<div class="clear padding10 visible-phone"></div>
<div class="span<?php echo (has_post_thumbnail($post->ID) || $temp == 'video' ? '5' : '10'); ?>">
<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>