parent
ba91c32776
commit
a269490f1a
|
@ -8,12 +8,16 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section class="no-results not-found">
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="content-no-results-page not-found">
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
|
|
||||||
<h2 class="page-title"><?php _e( 'Nothing Found', 'understrap' ); ?></h2>
|
<h2 class="page-title"><?php _e( 'Nothing Found', 'understrap' ); ?></h2>
|
||||||
|
|
||||||
</header><!-- .page-header -->
|
</header><!-- .page-header -->
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
|
|
||||||
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||||
|
|
||||||
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'understrap' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
|
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'understrap' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
|
||||||
|
@ -26,8 +30,11 @@
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'understrap' ); ?></p>
|
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'understrap' ); ?></p>
|
||||||
|
|
||||||
<?php get_search_form(); ?>
|
<?php get_search_form(); ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div><!-- .page-content -->
|
</div><!-- .page-content -->
|
||||||
</section><!-- .no-results -->
|
|
||||||
|
</article><!-- .no-results -->
|
||||||
|
|
|
@ -6,24 +6,33 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="content-page-item">
|
||||||
|
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
|
|
||||||
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
|
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
|
||||||
|
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
<?php echo get_the_post_thumbnail( $post_id, 'large' ); ?>
|
<?php echo get_the_post_thumbnail( $post_id, 'large' ); ?>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
wp_link_pages( array(
|
wp_link_pages( array(
|
||||||
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
|
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
) );
|
) );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
|
|
||||||
<?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?>
|
<?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?>
|
||||||
|
|
||||||
</footer><!-- .entry-footer -->
|
</footer><!-- .entry-footer -->
|
||||||
|
|
||||||
</article><!-- #post-## -->
|
</article><!-- #post-## -->
|
||||||
|
|
|
@ -8,22 +8,34 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="content-search-item">
|
||||||
|
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
|
|
||||||
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
|
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
|
||||||
|
|
||||||
<?php if ( 'post' == get_post_type() ) : ?>
|
<?php if ( 'post' == get_post_type() ) : ?>
|
||||||
<div class="entry-meta">
|
|
||||||
<?php understrap_posted_on(); ?>
|
<div class="entry-meta">
|
||||||
</div><!-- .entry-meta -->
|
|
||||||
|
<?php understrap_posted_on(); ?>
|
||||||
|
|
||||||
|
</div><!-- .entry-meta -->
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
<div class="entry-summary">
|
<div class="entry-summary">
|
||||||
|
|
||||||
<?php the_excerpt(); ?>
|
<?php the_excerpt(); ?>
|
||||||
|
|
||||||
</div><!-- .entry-summary -->
|
</div><!-- .entry-summary -->
|
||||||
|
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
|
|
||||||
<?php understrap_entry_footer(); ?>
|
<?php understrap_entry_footer(); ?>
|
||||||
|
|
||||||
</footer><!-- .entry-footer -->
|
</footer><!-- .entry-footer -->
|
||||||
|
|
||||||
</article><!-- #post-## -->
|
</article><!-- #post-## -->
|
||||||
|
|
|
@ -4,28 +4,39 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="content-single">
|
||||||
|
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
|
|
||||||
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
|
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
|
||||||
|
|
||||||
<div class="entry-meta">
|
<div class="entry-meta">
|
||||||
|
|
||||||
<?php understrap_posted_on(); ?>
|
<?php understrap_posted_on(); ?>
|
||||||
|
|
||||||
</div><!-- .entry-meta -->
|
</div><!-- .entry-meta -->
|
||||||
|
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
<?php echo get_the_post_thumbnail( $post_id, 'large' ); ?>
|
<?php echo get_the_post_thumbnail( $post_id, 'large' ); ?>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
wp_link_pages( array(
|
wp_link_pages( array(
|
||||||
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
|
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
) );
|
) );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
|
|
||||||
<?php understrap_entry_footer(); ?>
|
<?php understrap_entry_footer(); ?>
|
||||||
|
|
||||||
</footer><!-- .entry-footer -->
|
</footer><!-- .entry-footer -->
|
||||||
|
|
||||||
</article><!-- #post-## -->
|
</article><!-- #post-## -->
|
||||||
|
|
34
content.php
34
content.php
|
@ -11,32 +11,36 @@
|
||||||
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
|
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
|
||||||
|
|
||||||
<?php if ( 'post' == get_post_type() ) : ?>
|
<?php if ( 'post' == get_post_type() ) : ?>
|
||||||
<div class="entry-meta">
|
|
||||||
<?php understrap_posted_on(); ?>
|
<div class="entry-meta">
|
||||||
</div><!-- .entry-meta -->
|
<?php understrap_posted_on(); ?>
|
||||||
|
</div><!-- .entry-meta -->
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</header><!-- .entry-header -->
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
<?php echo get_the_post_thumbnail( $post_id, 'large' ); ?>
|
<?php echo get_the_post_thumbnail( $post_id, 'large' ); ?>
|
||||||
|
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
the_excerpt();
|
the_excerpt();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
wp_link_pages( array(
|
wp_link_pages( array(
|
||||||
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
|
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
) );
|
) );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
|
|
||||||
<?php understrap_entry_footer(); ?>
|
<?php understrap_entry_footer(); ?>
|
||||||
|
|
||||||
</footer><!-- .entry-footer -->
|
</footer><!-- .entry-footer -->
|
||||||
|
|
||||||
</article><!-- #post-## -->
|
</article><!-- #post-## -->
|
|
@ -24,7 +24,9 @@ get_header(); ?>
|
||||||
<?php
|
<?php
|
||||||
// If comments are open or we have at least one comment, load up the comment template
|
// If comments are open or we have at least one comment, load up the comment template
|
||||||
if ( comments_open() || get_comments_number() ) :
|
if ( comments_open() || get_comments_number() ) :
|
||||||
|
|
||||||
comments_template();
|
comments_template();
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Reference in New Issue