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

<section class="about_topics clearfix">
	<h3>
					<?php if(is_category("topics") ): ?>
						<img src="/img/topics/topics_ttl.png" alt="トピックス" width="295" height="90">
					<?php else: ?>
						<img src="/img/blog/other_top.jpg" width="960" height="300" alt="その他" class="only_pc">
						<img src="/img/blog/other_top_sp.jpg" width="900" height="400" alt="その他" class="only_sp">
					<?php endif; ?>
	</h3>
	<div class="box">
						<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
						<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 endwhile; endif; ?>
					</dl>
					<?php twentyfourteen_paging_nav(); ?>
				</div>

			<p id="pageTop"><a data-scroll href="#header"><br>page top</a></p>

<?php get_footer(); ?>



