Advertisement
cyberdev

Untitled

Aug 30th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template Part for displaying "next|prev links".
  4. *
  5. * For the full license information, please view the Licensing folder
  6. * that was distributed with this source code.
  7. *
  8. * @package Bimber_Theme 4.10
  9. */
  10.  
  11. // Prevent direct script access.
  12. if ( ! defined( 'ABSPATH' ) ) {
  13. die( 'No direct script access allowed' );
  14. }
  15.  
  16. global $post;
  17. ?>
  18. <?php $post = get_previous_post(true); ?>
  19. <?php if ( ! empty( $post ) ) : setup_postdata( $post ); ?>
  20. <a class="g1-teaser g1-teaser-prev" href="<?php echo esc_url( get_permalink() ); ?>">
  21. <div class="g1-teaser-arrow"></div>
  22. <article <?php post_class( 'entry-tpl-listxxs' ); ?>>
  23. <?php
  24. bimber_render_entry_featured_media( array(
  25. 'size' => 'thumbnail',
  26. 'apply_link' => false,
  27. ) );
  28. ?>
  29.  
  30. <header class="entry-header">
  31. <?php the_title( '<h3 class="g1-epsilon g1-epsilon-1st entry-title">', '</h3>' ); ?>
  32. </header>
  33. </article>
  34. </a>
  35. <?php endif; ?>
  36. <?php wp_reset_postdata(); ?>
  37.  
  38. <?php $post = get_next_post(true); ?>
  39. <?php if ( ! empty( $post ) ) : setup_postdata( $post ); ?>
  40. <a class="g1-teaser g1-teaser-next" href="<?php echo esc_url( get_permalink() ); ?>">
  41. <div class="g1-teaser-arrow"></div>
  42. <article <?php post_class( 'entry-tpl-listxxs' ); ?>>
  43. <?php
  44. bimber_render_entry_featured_media( array(
  45. 'size' => 'thumbnail',
  46. 'apply_link' => false,
  47. ) );
  48. ?>
  49.  
  50. <header class="entry-header">
  51. <?php the_title( '<h3 class="g1-epsilon g1-epsilon-1st entry-title">', '</h3>' ); ?>
  52. </header>
  53. </article>
  54. </a>
  55. <?php endif; ?>
  56. <?php
  57. wp_reset_postdata();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement