1
0

post-nextprev.php 1.1 KB

1234567891011121314151617
  1. <?php
  2. /**
  3. * NEXT / PREVIOUS POSTS (精华版)
  4. */
  5. if (iro_opt('article_nextpre') == '1') {
  6. ?>
  7. <section class="post-squares nextprev">
  8. <div class="post-nepre <?php if(get_next_post()){echo 'half';}else{echo 'full';} ?> previous">
  9. <?php previous_post_link('%link','<div class="background lazyload" style="background-image:url('.iro_opt('vision_resource_basepath','https://s.nmxc.ltd/sakurairo_vision/@2.6/').'load_svg/outload.svg);" data-src="'.get_prev_thumbnail_url().'"></div><span class="label">'.__("Previous Post",'sakurairo').'</span><div class="info"><h3>%title</h3><hr></div>') ?>
  10. </div>
  11. <div class="post-nepre <?php if(get_previous_post()){echo 'half';}else{echo 'full';} ?> next">
  12. <?php next_post_link('%link','<div class="background lazyload" style="background-image:url('.iro_opt('vision_resource_basepath','https://s.nmxc.ltd/sakurairo_vision/@2.6/').'load_svg/outload.svg);" data-src="'.get_next_thumbnail_url().'"></div><span class="label">'.__("Next Post",'sakurairo').'</span><div class="info"><h3>%title</h3><hr></div>') ?>
  13. </div>
  14. </section>
  15. <?php } ?>