?>
" <?php 
post_class($classes);
?>
>

    <div class="col-sm-1 row-left fadeInUp-Big">

        <!-- Post Navigation -->
        <?php 
zen_portfolio_single_nav(get_the_ID());
?>
        <!-- End Post Navigation -->

        <?php 
zen_portfolio_gallery_nav();
?>

        <?php 
zen_favorite_post_button();
?>

        <?php 
zen_display_share_buttons();
?>

    </div>

    <div class="col-sm-11 fadeInUp">

        <div class="col-sm-12 row-left row-right">
Example #2
0
    function zen_portfolio_single_nav_bottom($current_id)
    {
        $args = array('posts_per_page' => 999, 'offset' => 0, 'category' => '', 'orderby' => 'post_date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'zen_portfolio', 'post_mime_type' => '', 'post_parent' => '', 'post_status' => 'publish', 'suppress_filters' => true);
        $posts_array = get_posts($args);
        $n = count($posts_array);
        $has_next = false;
        $has_previous = false;
        $next_portfolio = array();
        $previous_portfolio = array();
        for ($i = 0; $i < $n; $i++) {
            if ($current_id == $posts_array[$i]->ID) {
                if ($i == 0) {
                    $has_next = false;
                    $has_previous = true;
                    $next_portfolio = array();
                    $previous_portfolio = array('title' => $posts_array[$i + 1]->post_title, 'link' => $posts_array[$i + 1]->guid);
                } else {
                    if ($i == $n - 1) {
                        $has_next = true;
                        $has_previous = false;
                        $next_portfolio = array('title' => $posts_array[$i - 1]->post_title, 'link' => $posts_array[$i - 1]->guid);
                        $previous_portfolio = array();
                    } else {
                        $has_next = true;
                        $has_previous = true;
                        $next_portfolio = array('title' => $posts_array[$i - 1]->post_title, 'link' => $posts_array[$i - 1]->guid);
                        $previous_portfolio = array('title' => $posts_array[$i + 1]->post_title, 'link' => $posts_array[$i + 1]->guid);
                    }
                }
            }
        }
        ?>

        <div class="col-sm-1 row-left">
        <?php 
        if ($has_previous) {
            ?>
            <a href="<?php 
            echo $previous_portfolio['link'];
            ?>
" class="btn-prev-article">
                <div class="simple-tipsy tipsy-prev">
                    <div class="arrow-simple-tipsy"></div>
                    <h1>
                        <?php 
            _e('Previous Portfolio Item:', 'zen7');
            ?>
                    </h1>
                    <p>"<?php 
            echo $previous_portfolio['title'];
            ?>
"</p>
                </div>
            </a>
        <?php 
        }
        ?>
        </div>

        <div class="col-sm-1 col-sm-offset-4-5 row-left">

            <?php 
        zen_portfolio_gallery_nav();
        ?>

        </div>

        <div class="col-sm-1 col-sm-offset-4-5 row-right">
        <?php 
        if ($has_next) {
            ?>
            <a href="<?php 
            echo $next_portfolio['link'];
            ?>
" class="btn-next-article">
                <div class="simple-tipsy tipsy-next">
                    <div class="arrow-simple-tipsy"></div>
                    <h1>
                        <?php 
            _e('Next Portfolio Item:', 'zen7');
            ?>
                    </h1>
                    <p>"<?php 
            echo $next_portfolio['title'];
            ?>
"</p>
                </div>
            </a>
        <?php 
        }
        ?>
        </div>

        <?php 
    }