Example #1
0
global $is_ajax;
$is_ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']);
if (!$is_ajax) {
    get_header();
}
?>

<div class="single-content">

	<?php 
while (have_posts()) {
    the_post();
    ?>

        <?php 
    $post_image_src = wps_get_post_image($post->ID, 'large');
    ?>

        <article id="post-<?php 
    the_ID();
    ?>
">
			<div class="entry-wrapper">
				<div class="entry-header">
					<h1 class="entry-title"><?php 
    the_title();
    ?>
</h1>
					<div class="entry-meta">
						<?php 
    echo wps_posted_on();
Example #2
0
        ?>
	
	<?php 
    }
    // end if not an ajax request
    ?>

	
	<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
	
    	<?php 
            $post_image_src = wps_get_post_image($post->ID);
            ?>
    	
    	<article id="post-<?php 
            the_ID();
            ?>
">
    		<div class="entry-wrapper" style="<?php 
            echo $post_image_src == '' || !wps_get_option('show_thumbnails') ? "padding-right:0" : null;
            ?>
">
    			<a href="<?php 
            the_permalink();
            ?>
" target="_self" rel="bookmark" style="display:block;">
    				<div class="entry-image" style="<?php