function afsp_get_the_post_navigation($args = array())
{
    $args = wp_parse_args($args, array('prev_text' => previous_post('%', '', 'no'), 'next_text' => '%title', 'screen_reader_text' => __('Post navigation')));
    $navigation = '';
    $previous = get_previous_post_link('<div class="nav-previous">%link</div>', $args['prev_text']);
    $next = get_next_post_link('<div class="nav-next">%link</div>', $args['next_text']);
    // Only add markup if there's somewhere to navigate to.
    if ($previous || $next) {
        $navigation = afsp_navigation_markup($previous . $next, 'post-navigation', $args['screen_reader_text']);
    }
    return $navigation;
}
<?php get_header(); ?>

	<div id="content" class="widecolumn">
				
  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	
		<div class="navigation">
			<div class="alignleft"><?php previous_post('&laquo; %','','yes') ?></div>
			<div class="alignright"><?php next_post(' % &raquo;','','yes') ?></div>
		</div>
	
		<div class="post">
			<h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
	
			<div class="entrytext">
				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
	
				<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
	
				<p class="postmetadata alt">
					<small>
						This entry was posted
						<?php /* This is commented, because it requires a little adjusting sometimes.
							You'll need to download this plugin, and follow the instructions:
							http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
							/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> 
						on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
						and is filed under <?php the_category(', ') ?>.
						You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 
						
						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
        <?php 
        $Image = get_previous_post();
        $attr = wp_get_attachment_image_src(get_post_thumbnail_id($Image->ID), 'single-post-thumbnail');
        ?>
        <div class="postFooterPrev" style="background:url(<?php 
        echo $attr[0];
        ?>
);">
            <div class="postControlsOpaque">
            </div>
            <h2 class="previousHeader"><?php 
        echo previous_post('%', 'PREVIOUS', 'no');
        ?>
</h2>
            <?php 
        echo '<div class="previousJournalPost">' . previous_post('%', '', 'yes') . '</div>';
        ?>
        </div><?php 
        $Image = get_next_post();
        $attr = wp_get_attachment_image_src(get_post_thumbnail_id($Image->ID), 'single-post-thumbnail');
        ?>
<div class="postFooterNext"  style="background:url(<?php 
        echo $attr[0];
        ?>
); ">
            <div class="postControlsOpaque">
            </div>
            <h2 class="nextHeader"><?php 
        echo next_post('%', 'NEXT', 'no');
        ?>
</h2>
        the_content('Read the rest of this entry &raquo;');
        ?>
              <?php 
        edit_post_link('Edit.', '<p>', '</p>');
        ?>
            </div>
            <div class="clear"></div>
          </div><!-- (class="post") -->

        <?php 
        comments_template();
        ?>

        <div class="navigation">
          <div class="alignleft"><?php 
        previous_post('&laquo; Previous Post: %', '', 'yes');
        ?>
</div>
          <div class="alignright"><?php 
        next_post('Next Post: % &raquo;', '', 'yes');
        ?>
</div>
        </div><!-- (class="navigation") -->

      <?php 
    }
} else {
    ?>

        <h2>Error 404 - Not Found</h2>
        <p>Sorry, but you are looking for something that isn't here.</p>
Exemple #5
0
        the_time(get_option('date_format'));
        ?>
</h3>
			<?php 
        the_content();
        ?>

		<?php 
    }
} else {
    ?>
			<p><?php 
    _e('Sorry, no posts matched your criteria.');
    ?>
</p>
		<?php 
}
?>

		<div class="timeNav">
			<?php 
previous_post('&laquo; %', 'Previous', 'no');
?>
			|
			<?php 
next_post('% &raquo;', 'Next', 'no');
?>
		</div>
	</div>
<?php 
get_footer();
Exemple #6
0
                ?>
<br /><?php 
                the_time('F jS, Y @ g:i A');
                ?>
</p>

<?php 
            }
            comments_template();
            if (!is_page()) {
                ?>
<p>&laquo; <?php 
                next_post('%', 'Next: ', 'yes');
                ?>
 | <?php 
                previous_post('%', 'Previous: ', 'yes');
                ?>
 &raquo;</p>				
<?php 
            }
        } else {
            if ($i == 0) {
                if (is_category()) {
                    ?>
	<h1><?php 
                    _e('Posts in: ');
                    single_cat_title('');
                    ?>
</h1>
<?php 
                } else {
Exemple #7
0
</div>
<div class="cat_tags_close"></div>

</div>

<?php 
        comments_template();
        ?>

<div class="next_previous_links">
<span class="alignleft"><?php 
        next_post('&laquo; %', '', 'yes');
        ?>
</span>
<span class="alignright"><?php 
        previous_post('% &raquo;', '', 'yes');
        ?>
</span>
<div class="clear"></div>

</div>
<?php 
    }
} else {
    ?>

<h2><?php 
    _e('Not Found', 'lightword');
    ?>
</h2>
<p><?php 
	<?php 
/*
	This navigation is used on most pages to move back and forth in your archives.
	It has been placed in its own file so it's easier to change across all of K2
*/
?>

	

	<?php 
if (is_single()) {
    ?>

	<!-- <div class="navigation">
		<div class="left"><?php 
    previous_post('<span>&laquo;</span> %', '', 'yes');
    ?>
</div>
		<div class="right"><?php 
    next_post(' % <span>&raquo;</span>', '', 'yes');
    ?>
</div>
		<div class="clear"></div>
	</div> -->

	<?php 
} else {
    ?>
		
	<div class="navigation">
		<div class="left"><?php 
Exemple #9
0
								</div>
							</div>

							<br>
							<br>
							
							<?php 
        edit_post_link(__('Edit this entry', 'html5reset'), '', '.');
        ?>

							<div class="row next-prev">
								<div class="col-md-3 lt">
									<br>
									<br>
									<p><?php 
        previous_post('%', '<i class="fa fa-angle-left"></i> <span>Previous</span>', 'no');
        ?>
</p>
								</div>
								<div class="col-md-6 text-center">
									<p class="capitalized text-black"><strong>Share this story</strong></p>
									<br>
									<p>
										<?php 
        include TEMPLATEPATH . '/social-icons.php';
        ?>
									</p>
								</div>
								<div class="col-md-3 rt text-right">
									<br>
									<br>
Exemple #10
0
   <?php 
     $prev_post = get_previous_post($in_same_cat = 'true');
     if (!empty($prev_post)) {
         ?>
   <?php 
         if (get_adjacent_post(false, '', true)) {
             ?>
   <div class="pull-left"  style="padding:10px;">
     <?php 
             previous_post('%', '<i class="material-icons">keyboard_arrow_left</i>', 'no');
             ?>
   </div>
   <div class="pull-left hidden-xs"> <small>Read Previous</small>
     <div>
       <?php 
             previous_post('%', '', 'yes', $in_same_cat = 'true');
             ?>
     </div>
   </div>
   <?php 
         }
         ?>
   <?php 
     }
     ?>
 </div>
 <div class="col-xs-6 text-right">
   <?php 
     $next_post = get_next_post($in_same_cat = 'true');
     if (!empty($next_post)) {
         ?>
						<div id="post-anterior-fin"><?php 
previous_post('&laquo; %', 'ANTERIOR', '', 1000);
?>
</div>
						<div id="post-siguiente-fin"><?php 
next_post('% &raquo; ', 'SIGUIENTE', '', 1000);
?>
</div>
					</div>
					<div id="separador-mobile">
						<div class="separador-post-comentario"></div>
					</div>
					<div id="separador-post-b">
						<div class="separador-post-comentario"></div>
						<div id="post-anterior-desktop"><?php 
previous_post('&laquo; %', 'POST ANTERIOR', '', 1000);
?>
</div>
						<div id="post-siguiente-desktop"><?php 
next_post('% &raquo; ', 'SIGUIENTE POST', '', 1000);
?>
</div>
						<div class="separador-post-comentario"></div>
					</div>
					<div id="comentarios-titulo">
						<h3>DEJA TU COMENTARIO</h3>
						<p>Si quieres insertar código: &lt;pre&gt;&lt;code&gt; TU CÓDIGO &lt;/code&gt;&lt;/pre&gt;.</p>
					</div>
					<?php 
comments_template();
?>
<div id="single_wrap" class="chat_move">
<div class="image_wrap">
<?php 
if (has_post_thumbnail()) {
    the_post_thumbnail('full');
}
?>
</div>

<div class="date"><?php 
the_time('jS F, Y');
?>
</div>

<?php 
previous_post('<div class="nav nav_prev">%</div>', '', 'no');
next_post('<div class="nav nav_next">%</div>', '', 'no');
?>
</div>
        the_meta();
        ?>

									<p class="tags"><?php 
        echo get_the_term_list(get_the_ID(), 'custom_tag', '<span class="tags-title">' . __('Browse Related:', 'bonestheme') . '</span> ', ', ');
        ?>
</p>


								</section> <!-- end article section -->

								<footer class="article-header">
											  
									<span class="single-nav">
											<span class="prev"><?php 
        previous_post('%', '&laquo;  Last Clothing Item', 'no');
        ?>
  </span>
											<span class="next"><?php 
        next_post('% ', 'Next Clothing Item &raquo;', 'no');
        ?>
</span>
									</span>		
									
								</footer> <!-- end article footer -->

								<?php 
        comments_template();
        ?>

							</article> <!-- end article -->
Exemple #14
0
<section class="post-nav">
	<span class="post-button previous">
		<?php 
next_post('%', 'Previous', 'no');
?>
	</span>
	<span class="post-button next">
		<?php 
previous_post('%', 'Next', 'no');
?>
	</span>
</section>
			<?php 
    printf(esc_attr__('View all posts by %s', 'mm'), get_the_author());
    ?>
"><?php 
    the_author();
    ?>
</a> <?php 
    edit_post_link(__('Edit', '_s'), '<span class="edit-link">', '</span>');
    ?>
	
		</div>		
	</div>
	
	<div class="single-pagi"> 
		<div class="prev-nav"> <?php 
    previous_post("%", esc_attr__('&laquo; PREVIOUS ', 'mm'), "<br />", "yes", "mm");
    ?>
</div> | 
		<div class="next-nav"> <?php 
    next_post("%", esc_attr__('NEXT &raquo;', 'mm'), "<br />", "yes", "mm");
    ?>
</div> 
		<div class="cb"></div>
	</div>
	<div class="cb"></div>
</div>
</header><!-- .entry-header -->

<section>
	
	
Exemple #16
0
        edit_post_link(__('Edit'), '<li>', '</li>');
        ?>
        </ul>
    </div>
</div>
<!-- END photo meta -->

<!-- BEGIN navigate -->
<div id="navigate">
    <div id="navigate-inner" class="clearfix">
        <?php 
        $wp_query->is_single = true;
        ?>
        <span class="previous"><?php 
        next_post('%', 'Anterior', '');
        ?>
</span>
        <span class="next"><?php 
        previous_post('%', 'Siguiente', '');
        ?>
</span>
    </div>
</div>
<!-- END navigate -->
<?php 
    }
}
?>

<?php 
get_footer();
Exemple #17
0
return w?false:true">
								<li class="linkedin">LinkedIn</li>
							</a>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="wrap">
		<div class="container">
			<div class="row post-navigation">
				<div class="post-navigation-left col-md-6">
					<?php 
    previous_post('<h5>Previous Post</h5> <span>&larr;</span> %', '', 'yes');
    ?>
				</div>
				<div class="post-navigation-right col-md-6">
					<?php 
    next_post('<h5>Next Post</h5> % <span>&rarr;</span>', '', 'yes');
    ?>
				</div>
			</div>
		</div>
	</div>

	<?php 
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        // comments_template();
Exemple #18
0
<?php 
    }
    ?>

<?php 
} else {
    //ERROR: Nothing Found
    ?>

	<h2>No posts were found :(</h2>
	
<?php 
}
//END: The Loop
?>
        <div class="navLinks">
            <span class="halfBlock previousPost"><?php 
previous_post('%', 'Extrait précédent - ');
?>
</span>
            <span class="halfBlock previousPost"><?php 
next_post('%', 'Extrait suivant - ');
?>
</span>
        </div>
</div>
<!--END: Content-->


<?php 
get_footer();
</div>

<?php 
    }
}
// --------------------- END OF POSTS LOOP --------------------------
?>
 

<p class="center"><strong>
<?php 
// navigation links for multi-post pages
posts_nav_link();
// navigation links for single-post pages
previous_post('%');
// uses post title for %
next_post('%');
// uses post title for %
?>
</strong></p>

<?php 
// -------- START OF INCLUDES FOR LAST COMMENTS, MY PROFILE, ETC. --------
$current_skin_includes_path = dirname(__FILE__) . '/';
// Call the dispatcher:
require $skins_path . '_dispatch.inc.php';
// -------------- END OF INCLUDES FOR LAST COMMENTS, MY PROFILE, ETC. -------
?>

</div>
Exemple #20
0
<!-- <div id="caption">
  <a href=''>back</a><a href=''>next</a> 5 of 7 :: <i>UNITED STATES</i>, ink on Mylar, 16" x 40", (2012)
</div>

<div id="image">
  <a href=''>
    <img src='./5.jpg' class='image' alt='slideshow image' title='click for next image...'>
  </a>
</div> -->

<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
<div id="caption"><?php 
        previous_post('%', 'back', 'no');
        next_post('%', 'next', 'no');
        the_title();
        echo "</div>";
        // echo("<div id='image'>");
        the_content();
        // echo("</div>");
    }
}
?>


<?php 
get_footer();
Exemple #21
0
				<div class = "blogCopy clearfix">
					<?php 
        the_title('<h3>', '</h3>');
        ?>
					<p class="blogDate"><?php 
        the_date();
        ?>
 <em> in </em> <em><?php 
        the_category(' ');
        ?>
</em></p>
					<?php 
        the_content();
        ?>
					<h6 class="nextPrev"><?php 
        previous_post('&larr; %', '', 'yes');
        ?>
</h6>
					<h6 class="nextPrev"><?php 
        next_post('% &rarr; ', '', 'yes');
        ?>
</h6>
				</div>
				<div id="mc_embed_signup" class="signupBlog">
					<form action="http://rachelschipper.us6.list-manage.com/subscribe/post?u=d78540946610421bce1e2e4e3&amp;id=f38c5c10d3" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
						<span class="italics">Get great resources just like this delivered straight to your inbox</span>
						<div class="signupBlogForm">
							<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Your Email Address">
							<input type="submit" value="&rarr; Sign Me Up &larr;" name="subscribe" id="mc-embedded-subscribe" class="threeBoxesButton">
						</div>
				    	<div style="position: absolute; left: -5000px;">
Exemple #22
0
        echo strip_tags(get_the_tag_list('', ', ', ''));
        ?>
</p>
</div>

<div id="single-social">
    <?php 
        adj_social_media();
        ?>
               
    <p><span>Share</span></p>
    <div class="clearfix"></div>
</div>
			<div class="prev-next-links">
<div class="prev-post"><?php 
        previous_post('%', 'Previous Post', 'no');
        ?>
</div>
    <div class="next-post"><?php 
        next_post('%', 'Next Post', 'no');
        ?>
</div>
    <div class="clearfix"></div>
    <div class="editlink"><?php 
        edit_post_link();
        // Always handy to have Edit Post Links available
        ?>
</div>
   </div>
    </div>
Exemple #23
0
		<section class="layout">
			<div class="skinny">
				<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
						<h1><?php 
        the_title();
        ?>
 </h1>
						<?php 
        the_content();
    }
    ?>
					<div class="postmenu"> 
						<?php 
    previous_post();
    ?>
    <?php 
    next_post();
    ?>
					</div>
					<?php 
}
?>
			</div>
		</section>
	</main>
<?php 
get_footer();
Exemple #24
0
        echo $sidebar['sidebar_link_location'];
        ?>
"><h6><?php 
        echo $sidebar['sidebar_content'];
        ?>
</h6></a>
					  	<?php 
    }
    ?>
					  </div>
					</div>

						<div class="project-info-box">
							<div class="col2" id="single-nav-left">
								<?php 
    previous_post('%', '<span>Previous Artist</span> </br></span>');
    ?>

							</div>
							<div class="col2" id="single-nav-right">
								<?php 
    next_post('%', '<span>Next Artist</span> </br></span>');
    ?>
							</div>
						</div>
 

				<?php 
}
?>
 /**
  * Vrátí odkaz na předchozí příspěvěk
  * 
  * @author Martin Hlaváč
  * @link http://www.ktstudio.cz
  * 
  * @param boolean $inSameCategory
  * @return mixed null|string (HTML)
  */
 public function getPreviousPostLink($inSameCategory = false)
 {
     return previous_post("&laquo; %", "", "yes", $inSameCategory ? "yes" : "no");
 }
        ?>
		<p><?php 
        printf(__('You are currently browsing the %s weblog archives.', 'k2_domain'), '<a href="' . get_settings('siteurl') . '">' . get_bloginfo('name') . '</a>');
        ?>
</p>

		<?php 
        /* Permalink */
    } elseif (is_single()) {
        ?>
		<p><?php 
        next_post('%', __('Next: ', 'k2_domain'), 'yes');
        ?>
<br/>
		<?php 
        previous_post('%', __('Previous: ', 'k2_domain'), 'yes');
        ?>
</p>

		<?php 
    }
    ?>
	</li>
			
	<?php 
    /* Links */
    if (is_home() && !is_page() && !is_single() && !is_search() && !is_archive() && !is_author() && !is_category() && !is_paged()) {
        $links_list_exist = @$wpdb->get_var("SELECT link_id FROM {$wpdb->links} LIMIT 1");
        if ($links_list_exist) {
            ?>
	<li class="sb-links">
Exemple #27
0
	<span class="category-link">| <?php 
        the_category(' | ');
        ?>
</span>
	<h1><?php 
        the_title();
        ?>
</h1>	
	
	<?php 
        the_content();
        ?>
	<div class="clear"></div>

	<span class="next-prev"><?php 
        previous_post('&laquo; %', '', 'yes');
        ?>
 | <?php 
        next_post('% &raquo; ', '', 'yes');
        ?>
</span>
</section>

<?php 
    }
} else {
    ?>
<p><?php 
    _e('Sorry, no posts here.');
    ?>
</p>
Exemple #28
0
                    <?php 
        the_content();
        wp_link_pages();
        ?>
<div class="pagelink"><?php 
        wp_link_pages('pagelink=Page %');
        ?>
</div>
                    <div class="postmetadata">

<br />
<div class="navigation">
<div class="alignleft">

<?php 
        previous_post('%', '&larr;prev ', 'no');
        ?>

<?php 
        next_post(' % ', 'next&rarr; ', 'no');
        ?>
</div></div>





                </div>


if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
				<section class="single">
					<aside>
						<span class="prev"><?php 
        next_post('%', 'Next', 'no');
        ?>
</span>
						<div><?php 
        echo get_post_type($post->ID);
        ?>
</div>
						<span class="next"><?php 
        previous_post('%', 'Previous', 'no');
        ?>
</span>
						<h3><?php 
        the_title();
        ?>
</h3>
						<h2>the low-down</h2>
						<p><?php 
        the_field('low_down');
        ?>
</p>
						<h2><?php 
        the_field('optional_title');
        ?>
</h2>
Exemple #30
0
        the_permalink();
        ?>
' class='st_facebook_hcount'></span>
					<span st_via="" class='st_twitter_hcount' st_title='<?php 
        the_title();
        ?>
 - Le blog du projet #EnigmaTIC - 'st_url='<?php 
        the_permalink();
        ?>
'></span>
				</div>
			</div>
		</article>
		<div class="nextPrevPost">
			<div class="prev"><?php 
        previous_post('<i class="fa fa-angle-left"></i>&nbsp;&nbsp;<strong>Article précédent</strong> : %', '', 'yes');
        ?>
</div>
			<div class="next"><?php 
        next_post('<strong>Article suivant</strong> : % &nbsp;<i class="fa fa-angle-right"></i>', '', 'yes');
        ?>
</div>
		</div>
		<!-- END OF ARTICLE -->
		<?php 
        if (comments_open()) {
            comments_template();
        }
        ?>
		<?php 
    }