예제 #1
0
function the_img()
{
    $imgurl = get_the_img();
    if (empty($imgurl)) {
        echo '<img src="' . get_bloginfo('template_url') . '/images/default.png" alt="" />';
    } else {
        echo '<img src="' . $imgurl . '" alt="" />';
    }
}
예제 #2
0
            ?>
</a>

		<span class="fr"><?php 
            the_time('m月d日');
            ?>
</span>

		<div class="cc"></div>

		<div class="line"></div>

	</h2>

	<?php 
            if (get_the_img()) {
                echo '<div class="post-list-img"><a href="' . get_permalink() . '" title="' . get_the_title() . '">';
                the_img();
                echo '</a></div>';
            }
            ?>

	<div class="post-list-text"><?php 
            the_excerpt();
            ?>
</div>

	<ul class="post-list-info">

		<li class="cat">分类:<?php 
            the_category(' ');