i福旦的点点博客模板免费分享

2012.11.02 免费模板 6984 人浏览 留言

很好的主题丫,可惜排版看的眼睛都话花了... 有空好好研究下

i福旦的博客:

陆陆续续有点子门问我能否分享模板代码,由于这个模板是福旦从WP仿过来的,其功能还有一些不完善的地方,主要体现在不支持音乐和图片类型,还有一些写死的地方……

今天花了点时间,将部分写死的地方改成了自定义选项,将模板代码公布如下,希望有朋友能继续完善,补充音乐、图片类型文章的支持,并反馈给福旦,算是福旦偷懒了吧

模板代码是经过压缩的,由于本机venus及工作目录都删掉了,原版模板代码无法找回,这个压缩过的代码看起来可能会有点费劲,还希望对此模板感兴趣的点子门辛苦一下了!在此谢过……

{#image:博客Logo|value:""}{#text:第三方流量统计代码|value:""}{#text:友情链接|value:""}{#text:SEO.首页关键词|value:""}{#text:SEO.首页描述|value:""}{#text:广告码.头部|value:"&nbsp;"}{#text:广告码.列表上方|value:""}{#text:广告码.列表下方|value:""}{#text:广告码.文章上方|value:""}{#text:广告码.文章下方|value:""}{#text:广告码.赞助商|value:""}{#text:广告码.侧边栏|value:""}{#select:文章数.热门文章|value:"6,8,10,12,15"}{#select:文章数.随机推荐|value:"6,8,10,12,15"}{#sys:tags.number|value:"20"}{#sys:notes.operation_link_color|value:"#999"}{#sys:notes.enable_border_radius|value:"true"}{#sys:notes.width|value:"660"}<script type="server/javascript">var iFudon=require('dd://assets/2012/1026/093602LgO4/module.js');iFudon.Eax.appendData('$');if(dian.request.action){if(dian.request.action==='hotBar.html'){var p=dian.data.posts.slice(0);p.sort(function(a,b){return b.total_pageviews-a.total_pageviews});for(var i=0;i<dian.options["文章数.热门文章"].value&&i<p.length;i++){write('<li><a href="'+p[i].url+'" target="_parent">'+p[i]._title+'</a></li>')}}else if(dian.request.action==='randomBar.html'){var p=dian.data.posts.slice(0);p.sort(function(a,b){return Math.random()<0.5?0:1});for(var i=0;i<dian.options["文章数.随机推荐"].value&&i<p.length;i++){write('<li><a href="'+p[i].url+'" target="_parent">'+p[i]._title+'</a></li>')}}else{write('404')}return}</script><!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/><html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11"><meta http-equiv="Content-Type"content="text/html; charset=UTF-8"/><title><?require('dd://assets/2012/0713/181755Gh6M/seotitle.coffee').title(" - "," | ",20,"没有找到文章哦")?></title>{?view.post}<meta name="keywords"content="{$meta.keywords|nohtml}"/><meta name="description"content="{$meta.description|nohtml}"/>{/view.post}{?!view.post}<meta name="keywords"content="{$_SEO.首页关键词}"/><meta name="description"content="{$_SEO.首页描述}"/>{/!view.post}<meta name="google-site-verification"content="76_BCnp3Zg7eZkpbdE7PQEI9O9q98T32qWM8VgyuN1w"/><meta name="baidu-site-verification"content="2LpmGHPE4fsqtltd"/><meta name="baidu_union_verify"content="982268c14587f3cd2b07614b9e553821"><link href="{$meta.rss}"rel="alternate"title="订阅{$global.name|nohtml}"type="application/rss+xml"/><link rel="shortcut icon"type="image/x-icon"href="http://x.papaapp.com/farm1/11c8bf/9de607f5/favicon.ico"/><link rel="apple-touch-icon"href="{$meta.mobile_icon}"/><script type="text/javascript"src="http://t.papaapp.com/js/libs/jquery/1.5.1/jquery.js"></script><link rel="stylesheet"href="http://t.papaapp.com/css/base/rich-content.css"/><link rel="stylesheet"href="http://x.papaapp.com/farm1/11c8bf/50b05167/main.css"/>{$meta.syntaxhighlighter}</head><body><div id="container"><div id="header"><div class="inner clearfix"><div id="caption"><div class="cmeicon"><a href="{$global.url}">{?_博客Logo}<img border="0"src="{$_博客Logo}"/>{/_博客Logo}</a></div></div><div id="searchbox"><form id="searchform"action="/"method="get"><div class="content"><input id="searchtxt"type="text"class="textfield searchtip"name="q"size="24"><input id="searchbtn"type="submit"class="button"value=""></div></form></div><div id="svc-toolbar"class="bgp"><ul class="socials"><li><a href="{$global.url}">首页</a></li><?iFudon.Eax.getPages('1').forEach(function(page){?><li><a href="<?= page.url ?>"title="<?= dian.tools.nohtml(page.title) ?>"><span><?=page.title?></span></a></li><?});?></ul></div>{?_广告码.头部}<div id="ads1">{$_广告码.头部}</div>{/_广告码.头部}</div></div><div id="content"><div class="inner clearfix"><div id="main">{?view.list}{?_广告码.列表上方}<div id="ads2">{$_广告码.列表上方}</div>{/_广告码.列表上方}<?dian.data.posts.forEach(function(post){?><div class="post"id="post_<?= post.id ?>"><div class="dateseo"><span><?=dian.tools.dateFormat(post.date,'short_day_of_week_en')?></span></div><h2><a class="title"href="<?= post.url ?>"rel="bookmark"><?=post._title?></a></h2><div class="info clearfix"><div class="date"><?=dian.tools.dateFormat(post.date,'month_en')?>&nbsp;<?=dian.tools.dateFormat(post.date,'day_of_month')?><?=dian.tools.dateFormat(post.date,'day_of_month_suffix_en')?>,&nbsp;<?=dian.tools.dateFormat(post.date,'year')?></div><span class="cata"><a href="<?= post._category.url ?>"title="View all posts in <?= post._category.name ?>"rel="category tag"><?=post._category.name?></a></span></div><div class="ccomments"><em><a href="<?= post.url ?>#comment"rel="nofollow"title="Comment on <?= post._title ?>"><?=post.notes_count?></a></em><div class="views"><span>comments&nbsp;|&nbsp;<?=post.total_pageviews?>&nbsp;views</span></div></div><div class="content clearfix"><?if(post.text){?><!--文字文章--><?if(post.thumbnail&&post.thumbnail.square_100){?><span class="miniature"><a class="highslide-image"href="<?= post.url ?>"><img title="<?= post._title ?>"src="<?= post.thumbnail.square_100.src ?>"alt="<?= post._title ?>"/></a></span><?}?><div class="post_right_themes"><?=post.summary?><?if(post.more){?><a style="margin-left:10px;"rel="nofollow"href="<?= post.url ?>"class="more-link">Read more…</a><?}?></div><?}else if(post.photo){?><!--图片文章--><?if(post.photos.length>0){?><span class="miniature"><a class="highslide-image"href="<?= post.url ?>"><?post.photos.forEach(function(img){?><img title="<?= img.description||post._title ?>"src="<?= img.square_100.src ?>"alt="<?= img.description||post._title ?>"/><?});?></a></span><?}?><?}else if(post.video){?><div style="text-align:center"><?=post.player?></div><?}?></div></div><?});?><?if(dian.data.pagination){var pagination=dian.data.pagination;?><div id="pagenavi"class="clearfix"style="padding-top:5px;height:42px;"><div class="wp-pagenavi"><span class="pages">Page&nbsp;&nbsp;<?=pagination.current_number?>&nbsp;&nbsp;of&nbsp;&nbsp;<?=pagination.total?></span><?if(pagination.current_number>2){?><a href="<?= pagination.first.url ?>"class="page larger">1</a><?if(pagination.current_number>3){?><span class="extend"style="text-align:center;">...</span><?}?><?}?><?if(pagination.prev){?><a href="<?= pagination.prev.url ?>"class="page larger"><?=pagination.prev.number?></a><?}?><span class="current"><?=pagination.current_number?></span><?if(pagination.next){?><a href="<?= pagination.next.url ?>"class="page larger"><?=pagination.next.number?></a><?}?><?if(pagination.total-pagination.current_number>1){?><?if(pagination.total-pagination.current_number>2){?><span class="extend">...</span><?}?><a href="<?= pagination.last.url ?>"class="page larger"><?=pagination.total?></a><?}?></div></div><?}?>{?_广告码.列表下方}<div id="ads2">{$_广告码.列表下方}</div>{/_广告码.列表下方}{/view.list}{?view.post}<?if(dian.data.posts.length>0){var post=dian.data.posts[0];?><div id="crumb"><a rel="nofollow"href="{$global.url}">Home</a>&nbsp;&raquo;&nbsp;<?if(post._category.url.length>1){?><a href="<?= post._category.url ?>"><?=post._category.name?></a>&nbsp;&raquo;&nbsp;<?}?><?=post._title?></div><?if(post.url=='guestbook'){?><!--根据URL判断特殊页面--><div class="ds-thread post"><div class="content clearfix"style="margin:10px 0 -15px;"><?=post.content?></div></div><script type="text/javascript">var duoshuoQuery={short_name:"ifudon"};(function(){var ds=document.createElement('script');ds.type='text/javascript';ds.async=true;ds.src='http://static.duoshuo.com/embed.js';ds.charset='UTF-8';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(ds)})();</script><?}else if(post.url=='aboutme'){?><div class="post post_without_border"id="post-<?=post.id?>"><div class="caption clearfix"><h1><?=post._title?></h1></div><div class="content clearfix"><?=post.content?></div></div><?}else{?><!--输出文章共同属性--><div class="post post_without_border"id="post-<?= post.id ?>"><div class="caption clearfix"><h1><?=post._title?></h1></div><div class="info clearfix"><div class="idate<?= dian.tools.dateFormat(post.date,'short_day_of_week_en') ?>"></div><div class="date2"><?=dian.tools.dateFormat(post.date,'month_en')+"&nbsp;"?>&nbsp;<?=dian.tools.dateFormat(post.date,'day_of_month')+dian.tools.dateFormat(post.date,'day_of_month_suffix_en')?>,&nbsp;<?=dian.tools.dateFormat(post.date,'year')?></div><span class="addcomment"><a rel="nofollow"href="#diandian_comments">Leave a comment</a></span><span class="comments"><a rel="nofollow"href="#diandian_comments">Go to comments</a></span></div><div class="content clearfix">{?_广告码.文章上方}<div id="ads3">{$_广告码.文章上方}</div>{/_广告码.文章上方}<?if(post.text){?><?=post.content?><?}else if(post.video){?><div style="text-align:center;"><?=post.player?></div><?=post.description?><?}else if(post.link){?><a href="<?= post.link_url ?>"><?=post.description?></a><?}?><?require('dd://assets/2012/0920/1611415Cc6/wumii.coffee').wumii({num:"5",mode:"3",title_length:"30"})?><div id="announce"class="msg-info"><strong>声明:</strong>本文采用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/"rel="nofollow external"><abbr title="署名-非商业性使用-相同方式共享">BY-NC-SA</abbr></a>协议进行授权.转载请注明转自:<a rel="nofollow"class="title"href="<?= post.url ?>">{$global.name}:<?=post._title?></a></div></div></div>{?_广告码.文章下方}<div id="ads2">{$_广告码.文章下方}</div>{/_广告码.文章下方}{?pagination}<div id="postnavi"class="block"><div class="content">{?pagination.prev}<span class="prev"><a href="{$pagination.prev.url}"rel="prev">上一篇文章</a></span>{/pagination.prev}{?pagination.next}<span class="next"><a href="{$pagination.next.url}"rel="next">下一篇文章</a></span>{/pagination.next}<div class="fixed"></div></div></div>{/pagination}<div class="post"><?=post.notes?></div><?}?><?}?>{/view.post}</div><div id="sidebar"><div class="widget"><div class="title">热门文章</div><ul id="hot">正在加载&nbsp;<img src="http://huilang.me/wp-content/uploads/2013/08/095104Dga.gif"></ul><script>var url="{$global.url}/do/hotBar.html?_posts[limit]=100";$.post(url,{name:$(this).val()},function(data){$("#hot").html(data)});</script></div><div class="widget"><div class="title">随机推荐</div><ul id="random">正在加载&nbsp;<img src="http://huilang.me/wp-content/uploads/2013/08/095104Dga.gif"></ul><script>var url="{$global.url}/do/randomBar.html?_posts[limit]=100";$.post(url,{name:$(this).val()},function(data){$("#random").html(data)});</script></div>{?_广告码.赞助商}<div class="widget"><div class="title">赞助商</div>{$_广告码.赞助商}</div>{/_广告码.赞助商}<div class="widget"><div class="title">热门标签</div><embed id="tagc"type="application/x-shockwave-flash"style="margin-bottom:-15px;"width="100%"height="240"bgcolor="#000000"src="http://x.papaapp.com/farm1/9bd5eb/d08ffe76/33D42.swf?r=<?= Math.random() ?>"quality="high"wmode="transparent"allowscriptaccess="always"flashvars="tspeed=120&amp;mode=tags&amp;ncolor=0x6385A1&amp;distr=true&amp;tagcloud=<?= iFudon.Eax.getTagCloud(); ?>"/></div>{?_广告码.侧边栏}<div class="widget">{$_广告码.侧边栏}</div>{/_广告码.侧边栏}<div class="widget"><div class="title">友情链接</div><ul id="links"><?sites = eval("["+dian.options["友情链接"].value+"]").forEach(function(site){?><li><a href="<?=site.url?>" title="<?=site.desc?>"target="_parent"><?=site.title?></a></li><?});?></ul></div></div></div></div><div id="footer"><div class="inner clearfix"style="margin-top:-5px;"><div id="singlepage"><?var flag=false;?><?iFudon.Eax.getPages('2').forEach(function(page){?><?if(flag){?>&nbsp;&#124;&nbsp;<?}?><a href="<?= page.url ?>"rel="no_fllow"><?=page.title?></a><?if(!flag){flag=true}?><?});?></div><div id="copyright">Copyright&nbsp;&copy;&nbsp;2011-2012.&nbsp;All&nbsp;rights&nbsp;reserved.<div class="theme">Powered&nbsp;by&nbsp;<a href="http://www.diandian.com">点点</a>.&nbsp;Theme&nbsp;by&nbsp;<a href="{$global.url}">iFudon</a>,&nbsp;<a href="{$global.url}/sitemap.xml">网站地图</a>.&nbsp;{?_第三方流量统计代码}<span>{$_第三方流量统计代码}</span>{/_第三方流量统计代码}</div></div><span id="mt"></span></div></div></div></body></html>

演示地址就是i福旦的博客,有问题的请随时咨询福旦!当然,更希望点子门能补充图片、音乐类型文章的支持!再次感谢

文章地址:http://huilang.me/theme-ifudan/

回复本文

电子邮件地址不会被公开。 必填项已用*标注

icon_wink.gif icon_neutral.gif icon_mad.gif icon_twisted.gif icon_smile.gif icon_eek.gif icon_sad.gif icon_rolleyes.gif icon_razz.gif icon_redface.gif icon_surprised.gif icon_mrgreen.gif icon_lol.gif icon_idea.gif icon_biggrin.gif icon_evil.gif icon_cry.gif icon_cool.gif icon_arrow.gif icon_confused.gif icon_question.gif icon_exclaim.gif