示例#1
0
    ?>
										<?php 
    $i++;
    ?>
										<li><a href="<?php 
    $relatedPosts->permalink();
    ?>
" title="<?php 
    $relatedPosts->title();
    ?>
">
										<img src="<?php 
    $relatedPosts->options->themeUrl();
    ?>
timthumb.php?src=<?php 
    Thumbnail_Plugin::show($relatedPosts);
    ?>
&h=90&w=150&zc=1" />
										<?php 
    $relatedPosts->title();
    ?>
</a></li>
									<?php 
}
?>
								</ul>
								<?php 
if ($i == 0) {
    ?>
									<li>没有相关文章!</li>
								<?php 
示例#2
0
					<div class="post-content">
 						<div  class="post-excerpt">
							<?php 
    $this->excerpt(360, ' ... ');
    ?>
							<p class="more"><a href="<?php 
    $this->permalink();
    ?>
" title="<?php 
    $this->title();
    ?>
">阅读剩下更多</a></p>
						</div>
						<div class="post-thumbnail">
							<?php 
    Thumbnail_Plugin::show($this);
    ?>
						</div> 
					</div>
					<p class="post-meta">
						<span class="post-views">阅读 (<?php 
    Views_Plugin::theViews('', '', 1);
    ?>
)</span>
						<a href="<?php 
    $this->permalink();
    ?>
/#comments" class="post-comments ds-thread-count" data-thread-key="<?php 
    echo $this->cid;
    ?>
" data-count-type="comments"></a>
    ?>
			<?php 
    while ($posts->next()) {
        ?>
				<li><a href="<?php 
        $posts->permalink();
        ?>
" title="<?php 
        $posts->title();
        ?>
">
					<img src="<?php 
        $posts->options->themeUrl();
        ?>
timthumb.php?src=<?php 
        Thumbnail_Plugin::show($posts);
        ?>
&h=150&w=310&zc=1" />
					<span class="text"><?php 
        $posts->title();
        ?>
</span>
					<span class="wid-tg-comment"><i class="fa fa-comments-o"></i> <?php 
        $posts->commentsNum('%d 评论');
        ?>
</span>
				</a></li>
			<?php 
    }
    ?>