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 } }
<div class="col-md-4 col-sm-4"> <div class="portfolionav clearfix"> <?php global $post, $virtue_premium; if (!empty($virtue_premium['portfolio_arrow_nav']) && $virtue_premium['portfolio_arrow_nav'] == 'cat') { $arrownav = true; } else { $arrownav = false; } $parent_link = get_post_meta($post->ID, '_kad_portfolio_parent', true); if (!empty($parent_link) && $parent_link != 'default') { $parent_id = $parent_link; } else { $parent_id = $virtue_premium['portfolio_link']; } previous_post_link_plus(array('order_by' => 'menu_order', 'loop' => true, 'in_same_tax' => $arrownav, 'format' => '%link', 'link' => '<i class="icon-arrow-left"></i>')); ?> <?php if (!empty($parent_id)) { ?> <a href="<?php echo get_page_link($parent_id); ?> "> <?php } else { ?> <a href="../"> <?php }
if ($page_categories && is_array($page_categories) && $page_categories[0] !== '0') { $nav_categories = implode(',', $page_categories); } if ($categoryID) { $nav_categories = $categoryID; } ?> <?php if (!$data['portfolio_pn_nav']) { ?> <div class="single-navigation clearfix"> <?php if ($portfolioID || $categoryID) { $previous_post_link = previous_post_link_plus(array('format' => '%link', 'link' => __('Previous', 'Avada'), 'in_same_tax' => 'portfolio_category', 'in_cats' => $nav_categories, 'return' => 'href')); } else { $previous_post_link = previous_post_link_plus(array('format' => '%link', 'link' => __('Previous', 'Avada'), 'return' => 'href')); } ?> <?php if ($previous_post_link) { if ($portfolioID || $categoryID) { if ($portfolioID) { $previous_post_link = tf_addUrlParameter($previous_post_link, 'portfolioID', $portfolioID); } else { $previous_post_link = tf_addUrlParameter($previous_post_link, 'categoryID', $categoryID); } } ?> <a href="<?php echo $previous_post_link; ?>
$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> <?php if (function_exists('previous_post_link_plus')) { previous_post_link_plus(array('loop' => false, 'tooltip' => 'Next post', 'in_same_tax' => 'portfolio_type', 'format' => '%link', 'link' => '<i class="fa fa-chevron-right"></i>')); } ?> </span> <div class="clearfix"></div> </div><!-- close .pagination-portfolio --> </div> <div class="portfolio-single-progression"> <?php if (get_post_meta($post->ID, 'progression_media_embed', true)) { ?> <div class="featured-image-portfolio-single"> <?php echo apply_filters('the_content', get_post_meta($post->ID, 'progression_media_embed', true));
<div id="pageheader" class="titleclass"> <div class="container"> <div class="page-header"> <div class="portfolionav clearfix"> <?php previous_post_link_plus(array('order_by' => 'menu_order', 'loop' => true, 'format' => '%link', 'link' => '<i class="icon-chevron-left"></i>')); ?> <?php global $virtue; if (!empty($virtue['portfolio_link'])) { ?> <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
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <article id="content" role="main" <?php post_class(); ?>> <nav> <?php if ( function_exists('next_post_link_plus') ) : ?> <div class="nav-previous"><?php previous_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> <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',
echo get_the_date(); ?> </p> </div> <div class="clear"></div> <?php if (load_option("portfolio_show_nav") == "on") { ?> <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 } ?>
the_date('Y-m-d'); ?> "><?php echo get_the_date(); ?> </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; ?>
if (empty($next)): $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; ?>
</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 do_action('wpsc_product_addon_after_descr', wpsc_the_product_id()); ?> <?php /**