This commit is contained in:
2021-02-28 23:44:31 +08:00
parent a719feebba
commit 2515039d73
16 changed files with 577 additions and 1076 deletions
+48 -39
View File
@@ -9,46 +9,55 @@
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<?php cyywordpress_post_thumbnail(); ?>
<div class="entry-content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'cyywordpress' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
<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 ( get_edit_post_link() ) : ?>
<footer class="entry-footer">
<?php
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', 'cyywordpress' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
</article><!-- #post-<?php the_ID(); ?> -->
<?php the_title( '<p class="title is-4">', '</p>' ); ?>
<?php cyywordpress_post_thumbnail(); ?>
</div>
</div>
<div class="content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'cyywordpress' ),
'after' => '</div>',
)
);
?>
<?php if ( get_edit_post_link() ) : ?>
<footer class="entry-footer">
<?php
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', 'cyywordpress' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
</div>
</div>
</div>
+50 -47
View File
@@ -9,55 +9,58 @@
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
endif;
<div id="post-<?php the_ID(); ?>" class="card" style=" margin-bottom: 25px;">
<div class="card-content">
<div class="media">
<div class="media-content">
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
if ( is_singular() ) :
the_title( '<p class="title is-4">', '</p>' );
else :
the_title( '<p class="title is-4"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></p>' );
endif;
<?php cyywordpress_post_thumbnail(); ?>
if ( 'post' === get_post_type() ) :
?>
<p class="subtitle is-6">
<?php
cyywordpress_posted_on();
cyywordpress_posted_by();
?>
</p><!-- .entry-meta -->
<?php endif; ?>
</div>
</div>
<div class="entry-content">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'cyywordpress' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);
<div class="content">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'cyywordpress' ),
array(
'span' => array(
'class' => array(),
),
)
),
wp_kses_post( get_the_title() )
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'cyywordpress' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'cyywordpress' ),
'after' => '</div>',
)
);
?>
<footer class="entry-footer">
<?php cyywordpress_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->
<footer class="entry-footer">
<?php cyywordpress_entry_footer(); ?>
</footer><!-- .entry-footer -->
</div>
</div>
</div>