Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( !function_exists( 'marstheme_video_pagination' ) ){
- function marstheme_video_pagination( $post_id ) {
- if ( get_previous_post_link() || get_next_post_link() ):
- ?>
- <div class="nav-links">
- <div class="row">
- <div class="col-md-6 col-xs-12 previous-post">
- <?php if( get_previous_post_link() ):?>
- <?php previous_post_link( '<h4>'.__('<i class="fa fa-angle-left"></i> Previous %link', 'mars').'</h4>', '%title' );?>
- <?php endif;?>
- </div>
- <div class="col-md-6 col-xs-12 next-post">
- <?php if( get_next_post_link() ):?>
- <?php next_post_link( '<h4>'.__('%link Next <i class="fa fa-angle-right"></i>', 'mars').'</h4>', '%title' );?>
- <?php endif;?>
- </div>
- </div>
- </div>
- <?php endif;
- }
- add_action( 'mediapress_media_pagination' , 'marstheme_video_pagination', 10, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement