function ambrositeNextPrev() { if (is_single()) { ?> <div id="ambro"> <?php next_post_link_plus(array('in_same_cat' => false, 'format' => '%link', 'before' => '<li class = "singlePostNav" id = "next"><span class = "label">Next Article: </span>', 'after' => '</li>')); ?> <?php previous_post_link_plus(array('in_same_cat' => false, 'format' => '%link', 'before' => '<li class = "singlePostNav" id = "previous"><span class = "label">Previous Article: </span>', 'after' => '</li>')); ?> </div> <?php } }
?> <a href="<?php echo get_page_link($parent_id); ?> "> <?php } else { ?> <a href="../"> <?php } ?> <i class="icon-grid"></i></a> <?php next_post_link_plus(array('order_by' => 'menu_order', 'loop' => true, 'in_same_tax' => $arrownav, 'format' => '%link', 'link' => '<i class="icon-arrow-right"></i>')); ?> </div> </div> </div> </div> </div><!--container--> </div><!--titleclass--> <?php if (!post_password_required()) { ?> <?php global $post; $layout = get_post_meta($post->ID, '_kad_ppost_layout', true); $ppost_type = get_post_meta($post->ID, '_kad_ppost_type', true); $imgheight = get_post_meta($post->ID, '_kad_posthead_height', true);
?> <a href="<?php echo $previous_post_link; ?> " rel="prev"><?php _e('Previous', 'Avada'); ?> </a> <?php } ?> <?php if ($portfolioID || $categoryID) { $next_post_link = next_post_link_plus(array('format' => '%link', 'link' => __('Next', 'Avada'), 'in_same_tax' => 'portfolio_category', 'in_cats' => $nav_categories, 'return' => 'href')); } else { $next_post_link = next_post_link_plus(array('format' => '%link', 'link' => __('Next', 'Avada'), 'return' => 'href')); } ?> <?php if ($next_post_link) { if ($portfolioID || $categoryID) { if ($portfolioID) { $next_post_link = tf_addUrlParameter($next_post_link, 'portfolioID', $portfolioID); } else { $next_post_link = tf_addUrlParameter($next_post_link, 'categoryID', $categoryID); } } ?> <a href="<?php echo $next_post_link; ?>
<?php /** * @package progression */ ?> <div class="width-container"> <div class="pagination-portfolio"> <span> <?php if (function_exists('next_post_link_plus')) { next_post_link_plus(array('loop' => false, 'tooltip' => 'Previous post', 'in_same_tax' => 'portfolio_type', 'format' => '%link', 'link' => '<i class="fa fa-chevron-left"></i>')); } ?> </span> <span> <?php $terms = get_the_terms($post->ID, 'portfolio_type'); foreach ($terms as $term) { $term_link = get_term_link($term, 'portfolio_type'); if (is_wp_error($term_link)) { continue; } echo '<a href="' . $term_link . '">' . '<i class="fa fa-th"></i>' . '</a>'; break; unset($term); } ?> </span> <span>
?> <a href="<?php echo get_page_link($virtue["portfolio_link"]); ?> "> <?php } else { ?> <a href="../"> <?php } ?> <i class="icon-th"></i></a> <?php next_post_link_plus(array('order_by' => 'menu_order', 'loop' => true, 'format' => '%link', 'link' => '<i class="icon-chevron-right"></i>')); ?> <span> </span> </div> <h1 class="entry-title"><?php the_title(); ?> </h1> </div> </div><!--container--> </div><!--titleclass--> <div id="content" class="container"> <div class="row"> <div class="main <?php echo kadence_main_class(); ?>
'link' => '%title', 'before' => '', 'after' => '', 'in_same_cat' => false, 'ex_cats' => '', 'num_results' => 1, 'echo' => true ) ); ?></div> <div class="nav-next"><?php next_post_link_plus( array( 'order_by' => 'post_date', 'meta_key' => '', 'loop' => true, 'thumb' => false, 'max_length' => 0, 'format' => '%link', 'link' => '%title', 'before' => '', 'after' => '', 'in_same_cat' => false, 'ex_cats' => '', 'num_results' => 1, 'echo' => true ) ); ?></div> <?php else : ?> <div class="nav-previous"><?php previous_post_link( '%link', '%title' ); ?></div> <div class="nav-next"><?php next_post_link( '%link', '%title' ); ?></div> <?php endif; ?> </nav> <header> <div class="entry-meta">
<div class="pagination"> <?php if (previous_post_link_plus(array('post_type' => ' "portfolio" ', 'return' => 'id'))) { ?> <span class="page-numbers"><?php previous_post_link_plus(array('post_type' => ' "portfolio" ')); ?> </span> <?php } if (next_post_link_plus(array('post_type' => ' "portfolio" ', 'return' => 'id'))) { ?> <span class="page-numbers"><?php next_post_link_plus(array('post_type' => ' "portfolio" ')); ?> </span> <?php } ?> </div> <?php } the_adminbar(); } } ?> </div>
?> </time></b> </p> </div> <nav id="nav-single"> <h3 class="assistive-text"><?php _e('Post navigation', 'twentyeleven'); ?> </h3> <span class="nav-previous"><?php previous_post_link_plus(array('order_by' => 'post_date', 'format' => '%link', 'link' => __('<span class="meta-nav">←</span> Previous', 'twentyeleven'), 'tooltip' => '%title')); ?> </span> <span class="nav-next"><?php next_post_link_plus(array('order_by' => 'post_date', 'format' => '%link', 'link' => __('Next <span class="meta-nav">→</span>', 'twentyeleven'))); ?> </span> </nav><!-- #nav-single --> <?php the_content(); ?> <?php $show_sep = false; ?> <?php if ('post' == get_post_type()) { // Hide category and tag text for pages on Search /* translators: used between list items, there is a space after the comma */
$nextlink = '<li class="rs-close"></li>'; else: $nextlink = get_previous_post_link('%link', '<li class="rs-right"></li>'); ; endif; if (empty($prev)): $prevlink = ''; else: $prevlink = get_next_post_link('%link', '<li class="rs-left"></li>'); endif; */ //$prev = mod_get_adjacent_post('prev', 'show_space'); //$next = mod_get_adjacent_post('next', 'show_space'); var_dump(next_post_link_plus(array('in_same_meta' => 'show_space', 'return' => 'href'))); $prevurl = previous_post_link_plus(array('in_same_meta' => 'show_space', 'return' => 'href')); $nexturl = next_post_link_plus(array('in_same_meta' => 'show_space', 'return' => 'href')); ?> <?php if ($prevurl) { $prevlink = '<a rel="next" href="' . $prevurl . '?section=spaces"><li class="rs-left"></li></a>'; } if ($nexturl) { $nextlink = '<a rel="prev" href="' . $nexturl . '?section=spaces"><li class="rs-right"></li></a>'; } } } ?> <?php echo $nextlink; ?> </ul>
?> <li class="prev_plus"><?php next_post_link_plus(array('in_cats' => '184', 'format' => '%link')); ?> </li> <li class="next_plus"><?php previous_post_link_plus(array('in_cats' => '184', 'format' => '%link')); ?> </li> <?php } if (in_array("voitures-en-transit", $test)) { ?> <li class="prev_plus"><?php next_post_link_plus(array('in_cats' => '185', 'format' => '%link')); ?> </li> <li class="next_plus"><?php previous_post_link_plus(array('in_cats' => '185', 'format' => '%link')); ?> </li> <?php } ?> </ul> </div><!--close single_additional_description--> <?php