-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·76 lines (65 loc) · 2.63 KB
/
single.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
<?php get_header(); ?>
<?php while ( have_posts() ) : the_post() ?>
<?php $imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "Full")?>
<div class="blog-single">
<div class="article-featured-image-wrapper">
<div class="article-featured-image animated fadeIn" style="background-image:url('<?=$imgsrc[0]?>');">
<div class="blog-single-article-header-wrapper">
<div class="blog-single-article-header">
<h1 class="article-title">
<span>
<?php the_title(); ?>
</span>
</h1>
<div class="media article-title-about">
<img src="https://secure.gravatar.com/avatar/<?php echo md5(get_the_author_meta('email'))?>?s=200" class="img-circle media-object pull-left img-author">
<div class="media-body">
<p class="article-info">
<span>
<time class="published" datetime="<?php the_time('Y-m-d\TH:i:sO') ?>">
Posted on <?php the_time( get_option( 'date_format' ) ); ?>
</time>
<br />
Written by <a href="<?php the_author_meta('user_url') ?>"><?php the_author_meta('first_name'); ?></a>
</span>
</p>
</div>
</div>
</div>
</div>
<a href="#content"><i class="fa fa-angle-down blog-single-scroll-down"></i></a>
</div>
</div>
<div class="container" id="content">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="content">
<?php the_content(); ?>
<?php wp_link_pages('before=<div class="page-link">Pages:&after=</div>') ?>
</div>
</article>
<div class="about-author">
<hr>
<div class="media">
<img src="https://secure.gravatar.com/avatar/<?php echo md5(get_the_author_meta('email'))?>?s=200" class="img-circle pull-left media-object">
<div class="media-body">
<h3 class="media-heading">About <?php the_author_meta('first_name'); ?></h3>
<p>
<?php the_author_meta('description'); ?>
</p>
</div>
</div>
</div>
<div class="disqus-container">
<?php disqus_embed('saloon'); ?>
</div>
</div>
<?php endwhile; ?>
<div class="subscribe">
<div class="subscribe-inner">
<h3>Who are we?</h3>
<p>We're two developers who love creating products. Here we want to share some of our projects, ideas and experiences.</p>
<p>If you want to <strong>stay up to date</strong>, join <strong>1 billion subscribers</strong>:</p>
<?php mailchimpSF_signup_form(); ?>
</div>
</div>
<?php get_footer(); ?>