Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
6,353 additions
and
706 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php get_header();?> | ||
<div class="main"> | ||
<div class="books"> | ||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | ||
<a href="<?php the_permalink(); ?>"> | ||
<?php $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full');?> | ||
<div class="book" style="background-image:url(<?php //echo $full_image_url[0];?>https://img.js.cn/images/2017/02/06/908fa0ec08fa513dfd470f4b3d6d55fbb3fbd9b2.jpg"> | ||
<div class="book-header"> | ||
<h1><?php the_title(); ?></h1> | ||
<?php the_content(); ?> | ||
</div> | ||
</div> | ||
</a> | ||
<?php endwhile; ?> | ||
<?php endif;?> | ||
</div> | ||
<?php get_footer();?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php get_header();?> | ||
<div class="main"> | ||
<div class="posts"> | ||
<?php if (have_posts()) :?> | ||
<nav class="breadcrumbs"> | ||
<?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?> | ||
</nav> | ||
<?php $i = 1;while (have_posts()) : $i++;the_post();?> | ||
<article class="article <?php if($i%2 != 0){ echo 'odd';}?>"> | ||
<a href="<?php the_permalink(); ?>"><div class="article-thumb"><?php the_post_thumbnail();?> | ||
</div></a> | ||
<div class="article-content"> | ||
<?php the_title( sprintf( '<a href="%s" rel="bookmark"><h1>', esc_url( get_permalink() ) ), '</h1></a>' );?> | ||
<?php the_excerpt();?> | ||
<a href="<?php | ||
if(has_post_format('link')){ | ||
echo get_url_in_content( get_the_content() ); | ||
}else{ | ||
the_permalink(); | ||
} | ||
?>" class="more-link">阅读全文</a> | ||
</div> | ||
</article> | ||
<?php endwhile; ?> | ||
<?php the_posts_pagination( array( | ||
'mid_size' =>2, | ||
'prev_text' => '<i class="fa fa-angle-left" aria-hidden="true"></i>', | ||
'next_text' => '<i class="fa fa-angle-right" aria-hidden="true"></i>', | ||
'screen_reader_text' => '' | ||
) ); ?> | ||
<?php endif;?> | ||
</div> | ||
<?php get_footer();?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.