<?php
/*
Template Name: top test
*/
?>
<?php get_header(); ?>
<div>
<div id=”slideshow”></div>
</div>
<div id=”mainlink_wrapper”>
<div id=”mainlink1″>
<a href=”/step/index.html”><img src=”/images/mainlink1_1off.png” alt=”お墓ご購入の手順”></a>
</div>
<div id=”mainlink2″>
<a href=”/promise/index.html”><img src=”images/mainlink2_1off.png” alt=”富士石材について”></a>
</div>
<div id=”mainlink3″>
<a href=”/nishitamareien/index.html”><img src=”/images/mainlink3_1off.png” alt=”西多摩霊園のご案内”></a>
</div>
</div>
<div id=”reason”>
<div id=”btn”><a href=”/first/index.html”><img src=”/images/reason_btn_off.png” alt=”初めての方へ”></a></div>
</div>
<div id=”news”>
<!–<a href=”/newsblog/”>一覧を見る</a>5件くらいになったら表示させる–>
<img src=”/images/news_ttl.png” alt=”お知らせ”>
<div id=”contents_wrapper”>
<div id=”contents”>
<?php
query_posts(‘post_type=newsblog&posts_per_page=-1’);
if(have_posts()): while(have_posts()): the_post();
?>
<?php if(empty($post->post_content) && post_custom(‘チラシ画像’) == ” ): ?>
<div><p><?php the_time(‘Y.m.d’); ?></p><p><?php the_title(); ?></p></div>
<?php else: ?>
<div><p><?php the_time(‘Y.m.d’); ?></p><p><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></p></div>
<?php endif; ?>
<?php
endwhile; endif;
wp_reset_query();
?>
</div>
</div>
</div>
<div></div>
<div id=”bnr_area”>
<div><a href=”/newsblog/”><img src=”/common/images/bnr_blog.png” alt=”ブログ”></a></div>
<div><a href=”http://nishitamareien.com/” target=”_blank”><img src=”/common/images/bnr_nishitama.png” alt=”西多摩霊園”></a></div>
</div>
</div><!–end of container–>
<?php get_footer(); ?>