主题发布: SimpleDark

The Screenshot of Theme SimpleDark

简介

SimpleDark 是一款深色背景的两栏主题。支持 AJAX 、Widgets ,支持主题选项、多语言,不依赖任何插件。

下载

点击此处下载 SimpleDark (已更新至 1.0.3)
从 Google Code 下载最新版 SimpleDark

功能列表

  • 生成@回复链接
  • 鼠标悬浮@回复链接显示原评论 (支持跨页读取)
  • 评论与引用通告分离显示
  • AJAX 提交评论
  • AJAX 翻页 (文章列表、文章内容、评论)
  • AJAX 搜索
  • 将 Protected / Private 信息从文章标题中去除,显示在文章右上角
  • ...

插件支持

  • WP-PostViews
  • WP-RecentComments ( AJAX 提交评论后同步刷新侧边栏评论)
  • WP-Syntax (可在代码右上角显示代码语言)
  • WP-PageNavi
  • Paginator
  • WP-Sticky

插件推荐设置

  • WP-RecentComments:不显示文章标题,字数限制 = 15,头像大小 = 24 (效果参见本站)

适用版本

WordPress 2.8 及以上

浏览器支持

已通过测试的浏览器:IE 6+ 、Firefox 3.5 、Chrome 4.0 、Opera 10.10
由于在 CSS 文件使用了 CSS hack 以及 CSS 表达式以使其能在 IE 下正常显示,故无法通过 CSS 验证。部分 CSS 3 效果仅在 Firefox 和 Chrome 下有效。主题宽度为 960px ,适合使用 1024×768 以上分辨率进行访问。

注意事项

  • 暂不支持嵌套评论,建议在 WordPress 后台关闭此选项
  • 右上角导航条暂不支持显示多级菜单

许可证

SimpleDark 以 GPL 许可证发布,您可以对其进行更改后再度发布,但仍必须以 GPL 许可证发布。

本地化

SimpleDark 自带了简体中文 (zh_CN) 语言包,你可以通过修改您的 WordPress 根目录下的 wp-config.php 文件来将其激活:在该文件中查找 "define ('WPLANG', '');" 并将其替换为 "define ('WPLANG', 'zh_CN');" 。同时您也应该安装 WordPress 自身的简体中文包以打到最完美的汉化效果。

致谢

作者的话

制作 SimpleDark 花费了我不少精力。说实在的,力争将每个细节都考虑周到是一件非常痛苦的事,但即便这样也难免出现这样或那样自己没有想到的问题。希望大家能在这里给我提出宝贵的建议,找到现有的不足之处;同时,如果您喜欢这个主题,那就请您不妨帮助我们推广它。希望在更多人的关注下它能变得越来越好。这是我发布的第一个 WordPress 主题,也借鉴了不少别人解决问题的方法,在此就不一一谢过了。

这是一个新的起点。

2011-03-18: 本文评论已关闭,有相关问题请查看 主题介绍 并留言。

Comments (93)

  1. 13:23, 2010-04-10Justice  / Reply

    @Safari
    你说的是侧边栏的“最新评论”还是文章页面的评论?如果是侧边栏的“最新评论”的话,我是安装了 WP-RecentComments 这个插件的,然后把它的 Widget 放到侧边栏,设置可以参考我上面写的来设。文章页的评论好像你的没啥不一样啊。

  2. 13:29, 2010-04-10Safari  / Reply

    哦谢谢。就是首页的评论列表.嘿嘿解决了非常谢谢你提供的这套主题!

  3. 15:51, 2010-04-23习惯  / Reply

    能否告诉我如何让顶部导航栏上实现即显示分类又显示页面的方法吗?我弄了好久,没弄出来。还是很喜欢这个主题的。

  4. 02:52, 2010-06-05kzdhcster  / Reply

    谢谢,喜欢,不过可以显示页面,却不能显示 子页,不知道是否可以尽快改进这个bug。

  5. 08:55, 2010-10-30Zzc  / Reply

    博主你好
    在官方看到你这个主题 很漂亮 并且启用了:)
    可是我想问问为什么我的站点Ajax不能呢..
    http://woops.in

  6. 11:14, 2010-10-30Justice  / Reply

    @Zzc
    额..你启用 AJAX 的话会怎么样?

  7. 11:15, 2010-10-30Zzc  / Reply

    我已经启用了..
    可是它不给力....

  8. 11:21, 2010-10-30Justice  / Reply

    @Zzc
    你改过主题了吧..我主题里已经加载了 jQuery,你又加载了一遍,你把那个 jquery-latest.min.js 的 link 删掉试试。可能会是这个原因。

  9. 11:22, 2010-10-30Zzc  / Reply

    @Justice
    好的.. 我试试:)

  10. 11:46, 2010-10-30Zzc  / Reply

    @Justice
    估计是和某个插件冲突了..
    换了你的另一个版本的主题也不行..
    那我只能放弃这个效果啦..
    谢谢博主的回复:)

  11. 12:08, 2010-10-30Justice  / Reply

    @Zzc
    那个插件估计是把 jQuery 硬编码了,所以才会冲突吧。你现在还是重复加载了 jQuery。

  12. 12:09, 2010-10-30Zzc  / Reply

    @Justice
    我换回去了..
    当我关闭Flickr Manager的Highslide的时候ajax就出现了

  13. 12:16, 2010-10-30Justice  / Reply

    @Zzc
    Highslide 只是用了 JS 效果,不是 AJAX。你现在是主题内的 JS 效果都因为 jQuery 冲突而无法正常工作了。

  14. 05:39, 2010-11-28Mark Amgine  / Reply

    Hey, I was using your simpledark theme and noticed a bug in which the scrolling to an inline anchor is broken (it doesn't scroll when you have a link like "#bottom").

    I was able to fix it by going to simpledark-base and going to the * Internal Anchor Easing * section and changing "$(target).ScrollTo(300);" to "$(target).scrollTo(300);".

    Hope that helps. Please incorporate this fix into your latest version of the theme.

    Thanks!

  15. 06:18, 2010-11-28Mark Amgine  / Reply

    Hmm...actually what I proposed above doesn't work, it just breaks the functionality and makes it jump directly to the target and gives a javascript error.

    Can't tell exactly why it doesn't work (the other instances of ScrollTo, like $("#comments").ScrollTo(500); all work fine, just this one is broken...

    Hope you can figure it out!

  16. 06:38, 2010-11-28Mark Amgine  / Reply

    Hey, I looked into this further and found out the reason.
    It looks like traditionally, inline anchors use the "name" attribute, but all your inline anchors use id instead. So when you're passing "#comments", jquery will be looking for an element with an ID of "comment". But when I have "#note1" on page and an it would be looking for a div with ID of note1, instead of a name with note1.

    The fix is to make the selector look for either an id OR a name.

    $('[name="'+target.substring(1)+'"],'+target).ScrollTo(300);

    That fix made it work for me. Thanks!

  17. 13:20, 2010-12-01Justice  / Reply

    @Mark Amgine
    Thanks a lot for your suggestion! The fix is quite good and I'll put it in the next update.

  18. 04:23, 2010-12-02Mark Amgine  / Reply

    @Justice
    Glad to help!

    One other thing I found is that the previous and next links are reversed in singular.php

    Just reverse previous_post_link and next_post_link (or if you prefer previous to be on the right, then reverse previous-page and next-page classes.

    And thank you for making this theme!

  19. 18:21, 2010-12-02Justice  / Reply

    @Mark Amgine
    It's really confusing in WordPress that, by the default order of its main loop, "previous" means "newer" and "next" means "older" (in reversed chronological order), while in a single post, its "previous" and "next" means the reversed order (in chronological order). Currently in SimpleDark the combination of tag classes and PHP functions seems incorrect. I'll try to figure out a way to make them consistent, probably to avoid using class names containing "previous & next" but "older & newer" instead which I think would make more sense.

  20. 02:40, 2010-12-17亦白。  / Reply

    我想知道怎么去掉回复的@

  21. 21:13, 2010-12-18Justice  / Reply

    @亦白。
    下个版本我加个选项吧,自己改的话要重新压缩 JS 文件,比较麻烦。

  22. 21:15, 2010-12-18亦白。  / Reply

    @Justice
    突然发现你好V5~这主题也威武。哈哈

  23. 00:28, 2010-12-2387853955  / Reply

    有办法让自己添加的菜单 比如首页菜单 当是首页的时候 白下滑线是在首页的下面吗

  24. 02:33, 2010-12-23Justice  / Reply

    @87853955
    去你那看了一下,现在不是已经有这个效果了吗?

  25. 12:46, 2010-12-2387853955  / Reply

    @Justice
    那是因为我没 自己在菜单里面加菜单 用的 主图默认的 哦 你可以自己试试看哦 在菜单里面加个菜单使用 当加的是首页 首页的时候下滑线没哦

  26. 13:56, 2010-12-23Justice  / Reply

    @87853955
    你首页是怎么添加的?如果从后台自定义菜单里面选择的首页应该会有效果的。我试了一下,首页 URL 最后有没有 '/' 是不一样的。

  27. 01:09, 2011-02-07bobsheep  / Reply

    在用这个主题,很喜欢,问一下,在footer插入统计代码为什么不显示呢?是有特定的位置么

  28. 01:45, 2011-02-07Justice  / Reply

    @bobsheep
    你插入的什么统计代码?在哪插入的?

  29. 11:12, 2011-02-07bobsheep  / Reply

    @Justice
    cnzz的统计代码,script的那个,就放在footer.php里面,“'WordPress'); ?> / <?php printf(__('Theme %1$s by %2$s', THEME_NAME), 'SimpleDark', 'Justice'); ?>”放在这个后面了

  30. 16:58, 2011-02-07Justice  / Reply

    @bobsheep
    放在这个地方应该没有问题啊,你访问的时候网页源代码中有吗?