typecho教程:调用最新文章

调用最新文章

12-25

<?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=6')->to($contents); ?>
<?php while($contents->next()): ?>

			<div class="mportfoliobox">
				<!-- mportfoliobg will enable the background image which is seen on mouse over -->
				<!-- Portfolio Block One-->
				<div class="mportfolio mportfoliobgvideo"><!-- The line for prettyphoto lightbox -->
					<a href="<?php%20$contents->permalink()%20?>">
						<!-- Class fade will enable fade in out -->
						<img class="fade" src="<?php%20Fimg_Plugin::showfimg($contents->cid,1);?>" alt="<?php $contents->title() ?>" />
					</a>
				</div>
				<!-- Contents -->
				<div class="portfoliotitle clear"><?php $contents->title() ?></div>
				<div class="portfoliocontents"><span class="portleft"><a href="<?php%20$contents->cid();%20?>.html" target="_blank">在线演示</a> <a href="<?php%20Fimg_Plugin::showfimg($contents->cid,2);?>">图片演示</a></span><span class="portright"><a href="<?php%20Fimg_Plugin::showfimg($contents->cid,3);?>">模板下载</a></span></div>
			</div>

<?php endwhile; ?>