From e25516b68c5f45547b276c804f334f6fec0ab7ca Mon Sep 17 00:00:00 2001 From: FlyingSky-CN Date: Mon, 7 Feb 2022 16:30:43 +0800 Subject: [PATCH] release Petals 0.1. --- core/css/style-petals.css | 20 ++++++++++++++++++++ core/css/style.css | 9 --------- core/functions.php | 2 +- footer.php | 14 +++++++------- functions.php | 2 -- header.php | 13 +++++++------ index.php | 2 +- 7 files changed, 36 insertions(+), 26 deletions(-) diff --git a/core/css/style-petals.css b/core/css/style-petals.css index a135bd2..1fcdb9d 100644 --- a/core/css/style-petals.css +++ b/core/css/style-petals.css @@ -1,3 +1,7 @@ +/** + * Main + */ + /** * Page */ @@ -30,6 +34,22 @@ color: #fff; } +/** QR Code */ + +.mdr-qrcode { + background: #fff !important; + line-height: 0px; + width: 170px; + height: 170px; + padding: 10px 0; +} + +.mdr-qrcode canvas { + display: block !important; + margin-right: auto !important; + margin-left: auto !important; +} + /** * Post */ diff --git a/core/css/style.css b/core/css/style.css index c373fd9..7720633 100644 --- a/core/css/style.css +++ b/core/css/style.css @@ -265,15 +265,6 @@ html.pray { text-align: center; } -#pageQrCode { - background: #fff !important; - padding: 10px 0px 0px 10px; - width: 170px; - height: 170px; - right: 8px; - top: 8px -} - #post .mdui-card-header { padding-top: 8px; padding-bottom: 8px; diff --git a/core/functions.php b/core/functions.php index 3932ef5..4933992 100644 --- a/core/functions.php +++ b/core/functions.php @@ -487,7 +487,7 @@ function mdrIsStatus($post) { if (!$post->tags) return false; foreach ($post->tags as $tag) - if (in_array($tag, ['Status', 'status', '状态'])) return true; + if (in_array($tag['name'], ['Status', 'status', '状态'])) return true; return false; } diff --git a/footer.php b/footer.php index f6dc543..cedb174 100644 --- a/footer.php +++ b/footer.php @@ -116,7 +116,7 @@ function mdrfa() { mdui.Drawer('#mdrDrawerL').close(); } options->mdrQrCode) : ?> - getQrCode(); + genQrCode(); al(); ac(); @@ -293,20 +293,20 @@ function ap() { options->DarkMode) : ?> diff --git a/functions.php b/functions.php index f777e0d..75a8e2e 100644 --- a/functions.php +++ b/functions.php @@ -95,8 +95,6 @@ function themeConfig($form) - - diff --git a/header.php b/header.php index ff35f4a..c4e6146 100644 --- a/header.php +++ b/header.php @@ -40,21 +40,22 @@ options->mdrCornertool) : ?> - - + + options->ViewImg) : ?> @@ -80,7 +81,7 @@
options->mdrQrCode) : ?> -
+
diff --git a/index.php b/index.php index 699a033..15d58d4 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ * * @package MDr * @author FlyingSky - * @version Petals Dev + * @version Petals 0.1 * @link https://fsky7.com/ */ $this->need('header.php'); ?>