﻿<?php
/*
Template Name: ブログ一覧用
*/
?>
<?php get_header(); ?>

<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/css/index_blog-page.css" media="all">

	<div id="contents">
		<article id="main">
			<section class="news_info page sclearfix">
				<h2>
				</h2>
				<div class="blog">
					<dl class="blog_list clearfix">
				
						<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
						<?php if (get_the_ID() != 51 && get_the_ID() != 53) { ?>
						<dt><?php the_time('Y年n月j日'); ?>
						<?php
							$days=7;
							$today=date('U'); $entry=get_the_time('U');
							$diff1=date('U',($today - $entry))/86400;
							if ($days > $diff1) { ?>
								<img src="<?php bloginfo('stylesheet_directory'); ?>/img/top/new.gif" width="18" height="8" alt="new" class="new-img">
							<?php } ?></dt>
							<dd><a href="<?php the_permalink(); ?>">
							<?php if (has_post_thumbnail()) { ?>
								<img src="<?php the_post_thumbnail_url( 'medium' ); ?>" width="60" height="50"><p><?php the_title();?></p></a></dd>
							<?php  } else { ?>
								<img src="/img/common/space.png" width="60" height="50" class="space"><p><?php the_title();?></p></a></dd>
							<?php } ?>
						<?php } ?>
						<?php endwhile; endif; ?>
					</dl>
					<?php twentyfourteen_paging_nav(); ?>
				</div>

			<p id="pageTop"><a data-scroll href="#header"><br>page top</a></p>
						
		<!-- /main --></article>
	<!-- /contents --></div>

<?php get_footer(); ?>



