コード例 #1
0
                <article class="post clearfix">

	                <header>
	                	<h2><a href="<?php 
        the_permalink();
        ?>
" rel="bookmark" title="<?php 
        printf(__('Permanent Link to %s', 'nicethemes'), get_the_title());
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
						<?php 
        nice_post_meta();
        ?>
	                </header>

	                <?php 
        if (has_post_thumbnail()) {
            ?>

		            	<figure class="featured-image">
							<?php 
            nice_image(array('width' => 620, 'height' => 285, 'class' => 'wp-post-image'));
            ?>
		                </figure>

					<?php 
        }
コード例 #2
0
ファイル: single.php プロジェクト: supahseppe/path-of-gaming
if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
	die ( 'You do not have sufficient permissions to access this page!' );
}

get_header(); ?>

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

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

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

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

			<div class="entry">

				<?php
				$embed = get_post_meta( $id, 'embed', true );
				$video_class = '';

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

					<figure class="featured-image">