Exemplo n.º 1
0
/**
 * @package Match
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
 itemscope="itemscope" itemtype="http://schema.org/BlogPosting" itemprop="blogPost">

	<div class="entry-media">
		<?php 
match_post_thumbnail();
?>
		<div class="entry-format">
			<a href="<?php 
echo esc_url(get_post_format_link('video'));
?>
" title="<?php 
echo esc_attr(__('All Video Posts', 'match'));
?>
" class="entry-format-icon">
				<i class="fa fa-video-camera"></i>
			</a>
		</div><!-- .entry-format -->
	</div><!-- .entry-media -->

	<header class="entry-header">
Exemplo n.º 2
0
/**
 * Display an optional post thumbnail for standard post.
 *
 * @return void
*/
function match_post_thumbnail_standard()
{
    // Sticky Icon
    if (is_sticky() && is_home() && !is_paged()) {
        ?>
	<div class="entry-media">
		<?php 
        match_post_thumbnail();
        ?>
		<div class="entry-format">
			<div class="entry-format-icon">
				<i class="fa fa-thumb-tack"></i>
			</div>
		</div><!-- .entry-format -->
	</div><!-- .entry-media -->
	<?php 
        //printf( '<div class="entry-format"><span class="entry-format-icon"><i class="fa fa-thumb-tack"></i> %1$s</span></div>', __( 'Featued', 'match' ) );
    } elseif ('' != get_the_post_thumbnail()) {
        match_post_thumbnail();
    }
    // if ( is_sticky() && is_home() && ! is_paged() )
}