Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Display the page/post loop part
- * @since Simple Catch Pro 1.3.2
- */
- function simplecatch_loop() {
- if ( is_page() ): ?>
- <section <?php post_class(); ?> >
- <header class="entry-header">
- <h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a></h1>
- </header>
- <div class="entry-content clearfix">
- <?php the_content();
- // copy this <!--nextpage--> and paste at the post content where you want to break the page
- wp_link_pages(array(
- 'before' => '<div class="pagination">Pages: ',
- 'after' => '</div>',
- 'link_before' => '<span>',
- 'link_after' => '</span>',
- 'pagelink' => '%',
- 'echo' => 1
- ) ); ?>
- </div>
- </section><!-- .post -->
- <?php elseif ( is_single() ): ?>
- <section <?php post_class(); ?>>
- <header class="entry-header">
- <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a></h1>
- <div class="entry-meta">
- <ul class="clearfix">
- <li class="no-padding-left author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php echo esc_attr(get_the_author_meta( 'display_name' ) ); ?>" rel="author"><?php _e( 'By', 'simple-catch-pro' ); ?> <?php the_author_meta( 'display_name' );?></a></li>
- <li class="entry-date updated"><?php echo get_the_modified_date(); ?></li>
- <li><?php comments_popup_link( __( 'No Comments', 'simple-catch-pro' ), __( '1 Comment', 'simple-catch-pro' ), __( '% Comments', 'simple-catch-pro' ) ); ?></li>
- </ul>
- </div>
- </header>
- <div class="entry-content clearfix">
- <?php the_content();
- // copy this <!--nextpage--> and paste at the post content where you want to break the page
- wp_link_pages(array(
- 'before' => '<div class="pagination">Pages: ',
- 'after' => '</div>',
- 'link_before' => '<span>',
- 'link_after' => '</span>',
- 'pagelink' => '%',
- 'echo' => 1
- ) );
- ?>
- </div>
- <footer class="entry-meta">
- <?php
- $tag = get_the_tags();
- if (! $tag ) { ?>
- <div class='tags'><?php _e( 'Categories: ', 'simple-catch-pro' ); ?> <?php the_category(', '); ?> </div>
- <?php } else {
- the_tags( '<div class="tags"> ' . __('Tags', 'simple-catch-pro') . ': ', ', ', '</div>');
- } ?>
- </footer>
- </section> <!-- .post -->
- <?php endif;
- } // simplecatch_loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement