Exemplo n.º 1
0
function cws_blog_output($r, $total_post_count, $posts_per_page, $blogtype, $pinterest_layout, $sb_block, $paged)
{
    if ($r->have_posts()) {
        ob_start();
        while ($r->have_posts()) {
            $r->the_post();
            echo "<div class='item'>";
            cws_post_output($sb_block, $blogtype, $pinterest_layout);
            cws_page_links();
            echo "</div>";
        }
        ob_end_flush();
    }
}
Exemplo n.º 2
0
        echo '</aside>';
    }
}
?>
			<main>
				<div class="grid-row">
					<div class="cws_widget_content">
						<section class="news blog-post">
							<?php 
while (have_posts()) {
    the_post();
    ?>
									<div class="item">
										<?php 
    cws_post_output($sb_block, 'large', '2', $post);
    cws_page_links();
    ?>
									</div>
									<?php 
}
?>
						</section>
					</div>
				</div>
				<?php 
if ($post_type == "portfolio") {
    $cws_stored_meta = $cws_stored_meta[0];
    if (isset($cws_stored_meta["cws-portfolio-use_rel_projects"])) {
        $title = isset($cws_stored_meta["cws-portfolio-rel_projects_title"]) ? $cws_stored_meta["cws-portfolio-rel_projects_title"] : "";
        $postspp = isset($cws_stored_meta["cws-portfolio-rel_projects_num"]) ? $cws_stored_meta["cws-portfolio-rel_projects_num"] : "";
        echo "<div class='grid-row'>";