micolog 模板的制作-illacrimo-plus-1

这篇文章写了一部分很久都没有更新,现在终于把这部分完善了。各位看官请接着看~~

base.html
{{ blog.title}}:          博客标题
{{ blog.feedurl }}:      RSS地址
/static/wlwmanifest.xml
{{ blog.theme_name }}     当前主题名称
{{blog.baseurl}}          根域名
{{self.m_list_pages}}     自定义页面列表
{{self.logouturl}}        用户退出
{{ blog.author }}         blog作者
{{ self.login_user.email }} 当前用户email
{{ self.login_user.nickname }} 当前用户名

{% block title %} {{ blog.title}}{% endblock %}     标题块
{% block head_block %}{% endblock %}                头部文件块
{%if ishome%}current_page_item{%else%}page_item{%endif%} 判断是否当前页为首页
{% block topmenu %}{% endblock %}         顶部菜单(生成)
{%if self.is_admin%}{%endif%}             判断是否是admin
{%if self.is_login%}{%endif%}             判断是否是登录用户

{%block content %}{%endblock%}            通用页面中间内容部分

index.html
{% extends "base.html" %}   继承自base.html
{% block content%}{% endblock %}  定义content块替换base.html中的此块
循环中
{{entry.key}}       文章ID
{{entry.title}}     文章名字
{{entry.author}}    文章作者
/{{ entry.link }}   文章URL
{{entry.edit_url}}   文章编辑地址
{{entry.date|datetz:"F jS, Y"}}  文章时间(具体参数可以参照php语言的时间格式化)
{{entry.content_excerpt}}  文章简介
{{entry.commentcount}}  评论数量
{% if entry.strtags %}Tags: {%for tag in entry.tags%}{{tag}} {%endfor%}{%endif%}   文章tags循环(附加判断是否有tags)
{% if show_next %}Older Posts »{%endif%}    下一页
{% if show_prev %}« Newer Posts{%endif%}   上一页

siderbar.html
{% for comment in recent_comments %}

  • {{comment.author}}:{{comment.shortcontent}}... {%endfor%}       最近评论(循环列表)
    {%for next in entry.next%}
    {{next.title}}?
    {%endfor%}                        下一篇文章
    {%for prev in entry.prev%}
    ?{{prev.title}}
    {%endfor%}                        上一篇文章
    {{ entry.content }}               文章正文

    comments.html
    {{entry.comments.count}}          文章评论数量
    {%cycle alt1,alt %}               文章评论间隔(奇数编号的评论为alt1,偶数为alt)
     

    123

    category.html
    {{category.name}}                 分类名字

大家可以看到还有几个模板文件没有替换,比如:tag.html,error404.html,这些文件大家可以自己看着办,因为这些文件都几乎没有什么标签了。

大家可以参照这个标签列表来替换你喜欢的wordpress主题,按照上面的文件顺序查找替换所有php的标签(类似这样的“”的内容)就可以完成了,如果你喜欢这个主题也可以用我做的这个。

用法:将其解压到micolog\themes\目录下,修改script.js替换QQ号码还有msn号码就可以了。

具体介绍请参看:http://www.cbmland.com/post/767/illacrimo-plus-theme-204-for-wordpress-27.html

下载:

illacrimo Plus Theme 2.04 for wordpress 2.7 for micolog

p.s. 由于没有更好的文件上传空间了,所以麻烦大家到纳米盘下载了哈。

http://d.namipan.com/d/e20d20d71abe8253674dd4dbfd73021d65537c94ec410500

这是微软的下载点:

http://cid-c02be930ae8e85a2.skydrive.live.com/self.aspx/.Public/illacrimo-plus.rar

对不起,忘记把Google广告去掉了,请大家打开sing.html把两处广告和base.html的一处广告去掉。