Exemplo n.º 1
0
function the_detail_box($post = 0)
{
    $post = get_post($post);
    $bg = has_featured_image() ? get_the_post_thumbnail($post->ID, 'full') : '<div class="background"></div>';
    $details = get_the_details();
    if (has_details()) {
        ?>
	<div id="details">
		<?php 
        echo $bg;
        ?>
		<h2>Overview</h2>
		<table>
			<?php 
        foreach (get_the_details() as $key => $val) {
            ?>
				<tr>
					<td><?php 
            echo strpretty($key);
            ?>
</td>
					<td><hr></td>
					<td><?php 
            echo $val;
            ?>
</td>
				</tr>
			<?php 
        }
        ?>
		</table>
	</div>
	<?php 
    }
}
Exemplo n.º 2
0
            ?>
</span><?php 
        }
        ?>
				</a>
			</div>
		<?php 
    }
    ?>
	</header>
<?php 
}
?>
<section class="entry body">
	<?php 
if (!is_singular() && has_featured_image()) {
    the_title(sprintf('<h2><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>');
}
if (is_singular()) {
    ?>
		<?php 
    if (get_current_url() == get_permalink()) {
        the_detail_box() . the_content();
    }
    if (get_endpoint('reviews')) {
        hub_reviews();
    }
    if (get_endpoint('news')) {
        hub_posts();
    }
    if (get_endpoint('images')) {