This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
content.php
125 lines (121 loc) · 4.36 KB
/
content.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php if( is_single() ){?>
<div class="content">
<div class="content-heading">
<div class="container">
<h3 class="heading"><span class="pull-left"><?php the_title(); ?></span> <small class="pull-right"><?php the_time('F, d Y'); ?></small></h3>
</div>
</div>
<div class="container">
<section class="content-inner">
<div class="tile-wrap">
<div class="tile">
<div class="pull-left tile-side">
<div class="avatar avatar-sm">
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));?>"><?php echo get_avatar(get_the_author_meta('ID')); ?></a>
</div>
</div>
<div class="tile-inner">
<span>
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));?>">
<?php the_author();?>
</a>
<small><i>(<?php the_author_url();?>)</i></small>
</span>
<span class="pull-right"><?php comments_popup_link( '<span>' . __( 'No Comment', 'doc' ) . '</span>', __( '1 Comment', 'doc' ), __( '% Comments', 'doc' ) ); ?></span>
</div>
</div>
</div>
<?php the_post_thumbnail("big_thumb"); ?>
<p><?php the_content(); ?></p>
<div class="tile-wrap">
<div class="tile">
<div class="tile-inner">
<span class="pull-left">CATEGORY : <?php the_category(', '); ?></span>
<span class="pull-right"><?php the_tags('TAGS : ',', ','');?></span>
</div>
</div>
</div>
<div class="card">
<div class="card-main">
<div class="card-header">
<div class="card-inner">
Related Post
</div>
</div>
<div class="card-inner">
</div>
</div>
</section>
</div>
</div>
<?php } else if( is_page() ){ ?>
<div class="content">
<div class="container">
<?php the_post_thumbnail("big_thumb"); ?>
<p><?php the_content(); ?></p>
</div>
</div>
<?php } else { ?>
<div class="col-lg-3 col-md-4 col-sm-6">
<div class="card">
<div class="card-main">
<div class="card-header">
<div class="card-header-side pull-left">
<div class="avatar">
<?php echo get_avatar( get_the_author_meta('ID') ); ?>
</div>
</div>
<div class="card-inner">
<span><a href="<?php echo get_author_posts_url(get_the_author_meta('ID'));?>"><?php the_author();?></a></span>
</div>
</div>
<div class="card-img">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail("small_thumb");
} else { ?>
<img alt="alt text" src="<?php bloginfo("template_directory");?>/images/samples/landscape.jpg">
<?php } ?>
</div>
<div class="card-inner">
<p><a href="<?php the_permalink();?>"><?php the_title();?></a></p>
</div>
<div class="tile tile-collapse">
<div data-target="#tile-collapse-<?php the_ID(); ?>" data-toggle="tile">
<div class="pull-left tile-side" data-ignore="tile">
<div class="avatar avatar-sm avatar-amber">
<span class="icon">alarm</span>
</div>
</div>
<div class="tile-inner">
<div class="text-overflow"><?php the_time('F, d Y'); ?> <i class="fa fa-ellipsis-h"></i></div>
</div>
</div>
<div class="tile-active-show collapse" id="tile-collapse-<?php the_ID(); ?>">
<div class="tile-sub">
<p><small><?php echo get_the_excerpt(); ?></small></p>
<p align="right">
<a class="btn btn-flat btn-xs" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>" target="_blank">
<span class="fa fa-facebook"></span>
</a>
<a class="btn btn-flat btn-xs" href="https://plus.google.com/share?url=<?php the_permalink();?>" target="_blank">
<span class="fa fa-google-plus"></span>
</a>
<a class="btn btn-flat btn-xs" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink();?>&summary" target="_blank">
<span class="fa fa-linkedin"></span>
</a>
<a class="btn btn-flat btn-xs" href="http://twitter.com/share?url=<?php the_permalink();?>" target="_blank">
<span class="fa fa-twitter"></span>
</a>
</p>
</div>
<div class="tile-footer">
<div class="tile-footer-btn pull-left">
<a class="btn btn-flat waves-attach" data-toggle="tile" href="#tile-collapse-<?php the_ID(); ?>"><span class="icon">close</span> Close</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>