<!-- BEGIN #content -->
<section id="content">

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

		<article <?php post_class(); ?>>

			<?php // add pageview ?>
			<?php nice_pageviews(); ?>

			<header>
					<?php nice_breadcrumbs( array( 'singular_article_taxonomy' => 'article-category' ) ); ?>

					<h1 class="entry-title"><?php the_title(); ?></h1>

					<?php nice_article_meta(); ?>

			</header>

			<div class="entry">

				<?php

				$embed = get_post_meta( get_the_ID(), 'embed', true );
				$video_class = '';

				if ( $embed <> '' ){
					echo nice_embed( array ( 'id' => get_the_ID() ) );
					$video_class = ' has-video';
				}
				elseif ( has_post_thumbnail() ) { ?>
Esempio n. 2
0
			<?php 
        nice_pageviews();
        ?>

			<header>
					<?php 
        nice_breadcrumbs(array('singular_article_taxonomy' => 'article-category'));
        ?>

					<h1 class="entry-title"><?php 
        the_title();
        ?>
</h1>

					<?php 
        nice_article_meta();
        ?>

			</header>

			<div class="entry">

				<?php 
        $embed = get_post_meta(get_the_ID(), 'embed', true);
        $video_class = '';
        if ($embed != '') {
            echo nice_embed(array('id' => get_the_ID()));
            $video_class = ' has-video';
        } elseif (has_post_thumbnail()) {
            ?>