forked from megane9988/wp-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
46 lines (46 loc) · 1.45 KB
/
front-page.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
<?php get_header(); ?>
<div class="row main-content">
<div class="large-9 large-centered columns">
<?php $counter = 0;
while ( have_posts() ) : the_post(); $counter++;?>
<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(); ?>>
<h2 class="entry-title"> <a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a> </h2>
<date class="published">
<?php the_time('Y.m.d'); ?>
</date>
</div>
<?php edit_post_link('編集','(',')'); ?>
</div>
<hr>
</div>
<?php
if ($counter == 1) {do_action('wpdbones-ad-content-first') ;}
if ($counter == 4) {do_action('wpdbones-ad-content-above') ;}
if ($counter == 9) {do_action('wpdbones-ad-content-above') ;}
?>
<?php endwhile;?>
<div class="row">
<div class="large-12 columns">
<?php wp_d_paging_nav(); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>