File Editor
Directories:
.. (Back)
Files:
author-box.php
footer-widgets.php
loop-portfolio.php
loop.php
pagination.php
post-media.php
post-nav.php
welcome-message.php
Create New File
Create
Edit File: post-nav.php
<?php /** * Post Navigation Template * @package themify * @since 1.0.0 */ $post_type = 'post'; if ( ! themify_check( "setting-{$post_type}_nav_disable" ) ) : $in_same_cat = themify_check( "setting-{$post_type}_nav_same_cat" )? true: false; $this_taxonomy = 'post' == get_post_type() ? 'category' : get_post_type() . '-category'; $previous = get_previous_post_link( '<span class="prev">%link</span>', '<span class="arrow">' . _x( '«', 'Previous entry link arrow', 'themify') . '</span> %title', $in_same_cat, '', $this_taxonomy ); $next = get_next_post_link( '<span class="next">%link</span>', '<span class="arrow">' . _x( '»', 'Next entry link arrow','themify') . '</span> %title', $in_same_cat, '', $this_taxonomy ); if ( ! empty( $previous ) || ! empty( $next ) ) : ?> <div class="post-nav clearfix"> <?php echo $previous; ?> <?php echo $next; ?> </div> <!-- /.post-nav --> <?php endif; // empty previous or next endif; // check setting nav disable
Save Changes
Rename File
Rename