Giter VIP home page Giter VIP logo

typecho-theme-mdui2333's Introduction


MDUI2333

基于MDUI的一款单栏typecho主题。

作者:ZigZagK | 版本:1.4.8

主题特性

特性 说明
自适应 可以适配各种屏幕尺寸(MDUI自带的嘛)。
全站PJAX & AJAX评论 切换页面、评论时音乐均不会停止,可以愉快地听歌。
全站APlayer播放器 已对Meting插件进行适配,可以添加全站音乐播放器。
代码高亮 使用highlight.jsPrismjs进行代码高亮,并且有行号显示。
数学公式 使用MathJaxKaTeX渲染数学公式。
图片灯箱 使用Fancybox添加图片灯箱。
文章目录 使用jquery_headindex生成手风琴式的文章目录。
主题更新提示 有新版本时会在主题外观设置中显示。
主题设置备份 再也不用担心手贱切换主题导致设置清空啦。
只支持现代浏览器 这是不可抗力,不支持过气浏览器(如IE)
不是很丰富的设置 这哪里是特性了?!
并没有多语言 这根本是敷衍吧?!
暴力膜👓 亮点自寻,子弹吃到饱,这是坠吼的。

所以功能实际上全都是搬人家的轮子的。

演示

可以参考ZigZagK的博客

如何使用

请使用 PHP 7+,typecho正式稳定版v1.2.0获得最佳体验。

  1. Releases中下载最新版,改名为MDUI2333放入主题目录,之后启用主题。
  2. 在设置外观中设置一下主题色强调色,背景图片等。
  3. 更多帮助详见MDUI2333Wiki,也可以在留言板中询问我(注:关于typecho设置的问题和Wiki中有的问题很大概率得不到解答)。
  4. 如果你喜欢,Star本项目吧QwQ!
github下载很慢?

这可能是由于“众所周知的原因”导致的,您可以过段时间再下载,或者使用备用下载地址

注:该下载地址是自动抓取最新Release的,可能会存在抓取失败等情况,不推荐使用。

推荐的插件

请前往MDUI2333-Plugins下载配套插件。

鸣谢

MDUI | jQuery | jquery-pjax

highlight.js | Prism | MathJax | KaTeX | Fancybox | jquery_headindex | Animate.css | twemoji-colr

Meting | ExSearch | Mailer

最初灵感和随机图片来自Material | 评论表情框魔改自Castle | 全站音乐播放器的支持来自AlanDecode

LICENSE

MIT.

打赏

主题是免费哒,但您可以考虑打赏我一杯奶茶QwQ,打赏列表在这里

不想打赏的话,Star本项目也是对我的大力支持!

typecho-theme-mdui2333's People

Contributors

zigzagk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typecho-theme-mdui2333's Issues

几个问题

我真的超~喜欢这个主题的
所以求求你不要鸽了无限加载评论…
把回到顶部按钮改成标准大小而不是小的…
以及能够优雅的自定义表情…
还有自行存储主题配置,以免手贱换主题后又得从头配置…

Pjax不能正确处理非200响应码

字面意思.
如果一篇文章是加密的,而用户未登陆,服务器会返回403错误码,并要求用户输入密码.
但是由于错误的错误处理机制,用户只能看到加载失败的提示.

建议在出错时刷新页面,可以省去很多麻烦.

日记页面 BUG 日期标签栏重复

**问题回顾:**由于要将两个 Typecho 的站点合并,所以将 B 站点的文章转换成 A 站点的评论,分类到日记页面,转移完毕后日记页面卡片显示杂乱无章且日期选项卡重复
e375aecde67a11ce2f73ac7b1f1bbae
2ab086097d45d5e4a6fb3d11285dbfe
1561772bf17681f8f4bd95dce10791e

大佬有解决办法吗

使用php7.4报错

非常喜欢这个主题,分类方面是我一直在寻找的折叠型分类,加上主题样式异常美观,甚是喜爱。
但在使用的过程中也发现一些小的问题,还希望您能花费一些时间阅读参考。

MDUI2333Wiki 推荐环境 PHP 7+
但我使用php7.4环境后会报错
错误信息如下:
Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/blog/usr/themes/MDUI2333/functions.php on line 305
查其原因可能是因为 PHP7.4 不再能够使用花括号来访问数组或者字符串的偏移
我参考的文档https://www.yuanmaluntan.com/post/171.html
随后我更换了php7.3后错误便消失了,在搜索解决方法过程中发现这个问题去年曾经也有人在您的留言板提问过

随后在php7.3的环境下使用links插件时会存在警告
PHP报错 count(): Parameter must be an array or an object that implements Countable
查其原因可能是因为 7.2之后的版本 count传入非数组的变量会出现warning
我参考的文档https://blog.csdn.net/qq_33636325/article/details/89285626
虽然是插件的问题,我还是将php下调为7.1

现在问题已经解决了,但还是想提一个小小建议:
因为对php不够了解,我暂时无法确定7.x-7.3哪个版本是该主题最恰当的,也许这些问题可能在后续的版本升级时给用户带来一定的困扰
因此希望能把推荐环境 php7+ 改为确定的版本,或者是改为您开发时使用的php环境,从而避免使用者花费过多的时间去解决php的问题

再次感谢大佬提供如此优秀的主题!

迷惑操作

if (get_headers(Typecho_Widget::widget('Widget_Options')->themeUrl."/img/QAQ/QAQ.json",1)[0]=='HTTP/1.1 200 OK')  $getJson=file_get_contents(Typecho_Widget::widget('Widget_Options')->themeUrl."/img/QAQ/QAQ.json");
else $getJson=file_get_contents(Helper::options()->themeFile(ThemeName(),"img/QAQ/QAQ.json"));

在functions.php和QAQTAB.php中都有这样一段代码.
很好奇这样的意义何在.
如果博客套了CDN,这样做会大幅增加回程时间.如果CDN速度不佳,就会导致耗费数倍于无此操作的加载时间.
而themeUrl无论如何都只会都只会指向文件实际存在的目录所对应的网页Url,为何不直接从磁盘读取?
就算有必要这样做,get_headers也会耗费时间,为何不直接file_get_contents判断从网络读取是否成功?

@$getJson=file_get_contents(Typecho_Widget::widget('Widget_Options')->themeUrl."/img/QAQ/QAQ.json");
if(empty($getJson)){
    $getJson=file_get_contents(Helper::options()->themeFile(ThemeName(),"img/QAQ/QAQ.json"));
}

这样从网络读取也只会耗费原来1/2的时间.

特别迷惑,求解答.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.