mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
17 lines
1.0 KiB
PHP
17 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* NEXT / PREVIOUS POSTS (精华版)
|
||
|
*/
|
||
|
|
||
|
if ( akina_option('post_nepre') == 'yes') {
|
||
|
?>
|
||
|
<section class="post-squares nextprev">
|
||
|
<div class="post-nepre <?php if(get_next_post()){echo 'half';}else{echo 'full';} ?> previous">
|
||
|
<?php previous_post_link('%link','<div class="background lazyload" style="background-image:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg);" data-src="'.get_prev_thumbnail_url().'"></div><span class="label">Previous Post</span><div class="info"><h3>%title</h3><hr></div>') ?>
|
||
|
</div>
|
||
|
<div class="post-nepre <?php if(get_previous_post()){echo 'half';}else{echo 'full';} ?> next">
|
||
|
<?php next_post_link('%link','<div class="background lazyload" style="background-image:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg);" data-src="'.get_next_thumbnail_url().'"></div><span class="label">Next Post</span><div class="info"><h3>%title</h3><hr></div>') ?>
|
||
|
</div>
|
||
|
</section>
|
||
|
<?php } ?>
|