forked from megane9988/wp-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·75 lines (74 loc) · 2.36 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
<?php get_header(); ?>
<div class="row main-content">
<div class="large-9 large-centered columns">
<?php while ( have_posts() ) : the_post(); ?>
<div class="row">
<div class="large-2 columns show-for-large-up">
<div class="row">
<div class="large-12 small-3 columns">
<?php
$author_bio_avatar_size = apply_filters( 'wp-d_author_bio_avatar_size', 320 );
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
?>
</div>
<div class="large-12 small-9 columns">
<p><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php the_author(); ?></a></p>
</div>
</div>
</div>
<div class="large-10 columns">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
<date class="published">
<?php the_time('Y.m.d'); ?> |
</date>
<?php the_category(' | '); ?>
<?php the_tags('', ' | '); ?>
<?php edit_post_link('編集','(',')'); ?>
<div class="sbver">
<div class="social">
<?php SocialButtonVertical(); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="large-10 large-centered columns">
<?php do_action('wpdbones-ad-content-first'); ?>
<?php the_content(); ?>
<?php wp_link_pages('before=<div class="link-page mb">&after=</div>&next_or_number=number&pagelink=<span class="page-numbers">%</span>'); ?>
<?php do_action('wpdbones-ad-content-below'); ?>
<?php echo pad_add_author('') ?>
<div class="sbver">
<div class="social">
<?php SocialButtonVertical(); ?>
</div>
</div>
</div>
</div>
<?php endwhile;?>
<div class="row">
<div class="large-12 columns">
<div class="row">
<div class="small-6 columns">
<?php previous_post_link( '%link', '<span class="meta-nav button small">' . _x( '←前の記事', '', '' ) . '</span>' ); ?>
</div>
<div class="small-6 columns text-right">
<?php next_post_link( '%link', '<span class="meta-nav button small">' . _x( '次の記事→', '', '' ) . '</span>' ); ?>
</div>
</div>
</div>
</div>
<?php comments_template(); ?>
<hr>
<div class="row">
<div class="large-12 columns">
<?php wp_d_paging_nav(); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>