页面修改

This commit is contained in:
yaoyuan2.chu
2021-03-11 17:39:01 +08:00
parent 2515039d73
commit a29ff4b0b8
8 changed files with 82 additions and 41 deletions
+29 -20
View File
@@ -9,27 +9,36 @@
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<div id="post-<?php the_ID(); ?>" class="card" style=" margin-bottom: 25px;">
<div class="card-content">
<div class="media">
<div class="media-content">
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php
cyywordpress_posted_on();
cyywordpress_posted_by();
?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php the_title( sprintf( '<h2 class="title is-4"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php cyywordpress_post_thumbnail(); ?>
<?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php
cyywordpress_posted_on();
cyywordpress_posted_by();
?>
</div><!-- .entry-meta -->
<?php endif; ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php cyywordpress_post_thumbnail(); ?>
<footer class="entry-footer">
<?php cyywordpress_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->
</div>
</div>
<div class="content">
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<footer class="entry-footer">
<?php cyywordpress_entry_footer(); ?>
</footer><!-- .entry-footer -->
</div>
</div>
</div><!-- #post-<?php the_ID(); ?> -->
+2 -1
View File
@@ -39,7 +39,8 @@
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'cyywordpress' ),
// __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'cyywordpress' ),
__( '继续阅读 <span class="screen-reader-text"> "%s"</span>', 'cyywordpress' ),
array(
'span' => array(
'class' => array(),