Exemplo n.º 1
0
    if (!$is_single && !$media_shortcode) {
        $image_size = apply_filters('wmhook_post_thumbnail_image_size', wm_option('skin-image-blog'));
        if (!$image_size) {
            $image_size = WM_DEFAULT_IMAGE_SIZE;
        }
        echo wm_thumb(array('attr-link' => wm_schema_org('image'), 'link' => get_permalink(), 'size' => $image_size));
    }
    ?>
	</div>

	<?php 
}
/**
 * Post title
 */
wm_post_title();
/**
 * Post content
 */
if ($is_single) {
    //Outputs full post content including excerpt at the top
    wmhook_entry_top();
    if (has_excerpt() && !$pagination_suffix && !wm_option('blog-disable-single-post-excerpt')) {
        echo wm_excerpt();
    }
    //Content is stripped out fo media
    echo apply_filters('the_content', $content);
    wmhook_entry_bottom();
} else {
    //Outputs excerpt or content until <!--more--> tag
    echo $content;
Exemplo n.º 2
0
 * @subpackage  Post Formats
 * @copyright   2014 WebMan - Oliver Juhas
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
echo wm_schema_org('article');
?>
>

	<?php 
wm_post_title(false);
wmhook_entry_top();
//Featured image
if (has_post_thumbnail()) {
    $image_size = apply_filters('wmhook_quote_post_thumbnail_image_size', 'admin-thumbnail');
    echo '<div class="quote-container has-thumbnail">';
    echo wm_thumb(array('attr-link' => wm_schema_org('image'), 'link' => '', 'size' => $image_size));
} else {
    echo '<div class="quote-container">';
}
echo apply_filters('wmhook_content_filters', get_the_content());
echo '</div>';
wmhook_entry_bottom();
?>

</article>