Created
October 6, 2010 15:58
-
-
Save lizheming/613570 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* MicroBlog | |
* Author:怡红公子 | |
* @package custom | |
*/ | |
?> | |
<?php $this->need('header.php'); ?> | |
<div class="grid_10" id="content"> | |
<div class="post"> | |
<ul class="pagecookery_list"> | |
<li id="panel"><span style="float:left;"><a href="http://pagecookery.net" target="_blank">怡红别院</a><span style="font-size:10px;font-family:"Lucida Grande",Verdana,Arial;"><a href="http://pagecookery.net/">http://pagecookery.net/</a></span></span><a href="http://pagecookery.net/?act=login" target="_blank">登录</a> | <a href="http://pagecookery.net/?act=comments" target="_blank">评论</a> | <a href="http://pagecookery.net/?act=following" target="_blank">关注</a></li> | |
<?php | |
$xmlfile = "http://pagecookery.net/rss.xml"; | |
$xml = simplexml_load_file($xmlfile); | |
$n="20"; | |
for($i=0;$i<$n;$i++){ | |
?> | |
<li> | |
<div id="entry-<?php echo $i;?>" class="entry"> | |
<?php echo $xml->channel->item[$i]->description;?><span class="entry-meta" id="entry-meta"><a href="<?php echo $xml->channel->item[$i]->link; ?>"><?php echo $xml->channel->item[$i]->title;?></a></span> | |
</div> | |
</li> | |
<?php }?> | |
</ul> | |
</div> | |
</div><!-- end #content--> | |
<?php $this->need('sidebar.php'); ?> | |
<?php $this->need('footer.php'); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment