Esempio n. 1
0
<?php

/**
 * @package oxford
 */
get_header();
?>

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

	<?php 
        echo oxford_get_the_single_featured_images();
        ?>

	<main id="main" class="site-main content-area" role="main">
		<?php 
        get_template_part('content', 'single');
        ?>
		<?php 
        oxford_post_nav();
        ?>
		<?php 
        get_template_part('_post', 'comments');
        ?>
	</main>

<?php 
Esempio n. 2
0
        $more = false;
    }
    /**
     * Content from Homepage or from the featured post
     */
    ?>

	<?php 
    if (oxford_homepage()->has_selected_image) {
        ?>
	<div class="homepage-featured<?php 
        echo ' source-' . oxford_homepage()->content_source;
        ?>
">
		<?php 
        echo oxford_get_the_single_featured_images(get_the_ID(), 'oxford_large', 'oxford_medium', array('show_caption' => false, 'link_to_post' => true));
        ?>
	</div>
	<?php 
    }
    ?>

	<main id="main" class="site-main content-area" role="main">
		<?php 
    if (oxford_homepage()->has_content) {
        ?>
		<div class="homepage-featured<?php 
        echo esc_attr(' source-' . oxford_homepage()->content_source);
        ?>
">
			<article id="post-<?php