From 0be5b82ef6e8a42a8213759b70bc1d63dad2d0f1 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Tue, 20 Sep 2022 00:19:46 +0800 Subject: =?UTF-8?q?:lips:=20Perf:=20=E4=BC=98=E5=8C=96=E5=8F=8B=E6=83=85?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 masonry,停用瀑布流布局 - 暂时使用 inline-block 布局友情链接 - 移除友情链接随机排序功能 --- libs/Matcha.php | 3 --- libs/Options.php | 12 ------------ 2 files changed, 15 deletions(-) (limited to 'libs') 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('启用'), -- cgit v1.2.3