summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2022-09-20 00:19:46 +0800
committerEltrac Koalar <hi@guhub.cn>2022-09-20 00:19:46 +0800
commit0be5b82ef6e8a42a8213759b70bc1d63dad2d0f1 (patch)
tree1231e3fb8c1b41ff438329fcc0b674b73b8c8bee /libs
parentf1f2233871a52575afe59b89151b6eab33cce764 (diff)
:lips: Perf: 优化友情链接功能
- 移除 masonry,停用瀑布流布局 - 暂时使用 inline-block 布局友情链接 - 移除友情链接随机排序功能
Diffstat (limited to 'libs')
-rw-r--r--libs/Matcha.php3
-rw-r--r--libs/Options.php12
2 files changed, 0 insertions, 15 deletions
diff --git a/libs/Matcha.php b/libs/Matcha.php
index 17f8704..6b31b5b 100644
--- a/libs/Matcha.php
+++ b/libs/Matcha.php
@@ -123,7 +123,6 @@ class Matcha
'https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js',
'https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery.pjax/2.0.1/jquery.pjax.min.js',
'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery.lazy/1.7.11/jquery.lazy.min.js',
- 'https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/masonry/4.2.2/masonry.pkgd.min.js',
'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/bigfoot/2.1.4/bigfoot.min.js',
'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js',
'https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/fluidbox/2.0.5/js/jquery.fluidbox.min.js',
@@ -135,7 +134,6 @@ class Matcha
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/jquery.pjax/2.0.1/jquery.pjax.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.11/jquery.lazy.min.js',
- 'https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/bigfoot/2.1.4/bigfoot.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/fluidbox/2.0.5/js/jquery.fluidbox.min.js',
@@ -157,7 +155,6 @@ class Matcha
"jquery/jquery.fluidbox.min",
'jquery/jquery.ba-throttle-debounce.min',
'tocbot/tocbot.min',
- "masonry/masonry.pkgd.min",
"bigfoot/bigfoot"
);
}
diff --git a/libs/Options.php b/libs/Options.php
index 80f0d15..43180e0 100644
--- a/libs/Options.php
+++ b/libs/Options.php
@@ -102,18 +102,6 @@ function themeConfig($form) {
')
);
$form->addInput($EnableViewsCount->addRule('required', _t('此处必须设置')));
- //友情链接随机排序
- $EnableRandomLinks = new Typecho_Widget_Helper_Form_Element_Radio('EnableRandomLinks', array(
- 'able' => _t('启用'),
- 'disable' => _t('停用'),
- ),
- 'able',
- _t('是否启用友情链接随机排序'),
- _t('
- 启用后,友情链接页面的友情链接列表将会随机排序,每次刷新后得到的顺序都不一样。
- ')
- );
- $form->addInput($EnableRandomLinks->addRule('required', _t('此处必须设置')));
//启用不蒜子统计
$EnableBusuanzi = new Typecho_Widget_Helper_Form_Element_Radio('EnableBusuanzi', array(
'able' => _t('启用'),