forked from megane9988/wp-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·96 lines (95 loc) · 3.19 KB
/
index.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
<?php get_header(); ?>
<div class="row main-content">
<div class="large-9 large-centered columns">
<?php if(is_archive()): ?>
<h5 class="page-title">
<?php if ( is_day() ) :
printf( __( '" %s " の一覧', 'wp_d' ), get_the_date() );
elseif ( is_month() ) :
printf( __( '" %s " の一覧', 'wp_d' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'wp_d' ) ) );
elseif ( is_year() ) :
printf( __( '" %s " の一覧', 'wp_d' ), get_the_date( _x( 'Y', 'yearly archives date format', 'wp_d' ) ) );
elseif ( is_category() ) :
printf( __( '" %s " の一覧', 'wp_d' ), single_cat_title( '', false ) );
elseif( is_tag() ) :
printf( __( '" %s " の一覧', 'wp_d' ), single_tag_title( '', false ) );
else :
_e( 'Archives', 'wp_d' );
endif; ?>
</h5>
<hr>
<?php endif; ?>
<?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 mb">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="prime-banner-top">
<?php do_action('wpdbones-ad-content-above'); ?>
</div>
<h2 class="entry-title"> <a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a> </h2>
<date class="published">
<?php the_time('Y.m.d'); ?>
<?php edit_post_link('編集','(',')'); ?>
</date>
</div>
<?php the_content(); ?>
<div class="prime-banner-bottom">
<?php do_action('wpdbones-ad-content-below'); ?>
</div>
<?php if (!is_page()){?>
<ul class="no-bullet post-meta">
<?php
$cats = get_the_category();
foreach( $cats as $cat) {
echo '<li><span class="secondary radius label">';
echo $cat->cat_name . '</span></li>';
}
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo '<li><span class="secondary radius label">';
echo $tag->name . '</span></li>';
}
}
?>
</ul>
<?php }?>
<?php wp_link_pages( ); ?>
<?php if (is_single()){?>
<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>
<?php }?>
</div>
</div>
<?php endwhile;?>
<?php comments_template(); ?>
<hr>
<div class="row">
<div class="large-12 columns">
<?php wp_d_paging_nav(); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>