From 97372ec997dd54ea06fcf8b73ac75246be544f77 Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 22 Aug 2020 16:48:38 +0800 Subject: [PATCH] =?UTF-8?q?seo=E4=BC=98=E5=8C=96=E6=A0=87=E9=A2=98,?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0,=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/Post.php | 10 +++++----- view/index/common/_left.html | 4 ++-- view/index/common/_right.html | 14 ++++---------- view/index/index/index.html | 1 + view/index/post/read.html | 8 ++++---- 5 files changed, 16 insertions(+), 21 deletions(-) diff --git a/app/model/Post.php b/app/model/Post.php index cec26d3..3b3048d 100644 --- a/app/model/Post.php +++ b/app/model/Post.php @@ -147,12 +147,12 @@ class Post extends Model public function getShareTextAttr() { - $shareText = get_system_config('post_share_text_tpl'); + $share_text = get_system_config('post_share_text_tpl'); - $shareText = str_replace('%post_title%',$this->getAttr('title'),$shareText); - $shareText = str_replace('%post_desc%',$this->getAttr('desc'),$shareText); - $shareText = str_replace('%post_url%',$this->getAttr('read_url'),$shareText); + $share_text = str_replace('%post_title%',$this->getAttr('title'),$share_text); + $share_text = str_replace('%post_desc%',$this->getAttr('desc'),$share_text); + $share_text = str_replace('%post_url%',$this->getAttr('read_url'),$share_text); - return $shareText; + return $share_text; } } diff --git a/view/index/common/_left.html b/view/index/common/_left.html index 2cde5ba..3a2f9fc 100644 --- a/view/index/common/_left.html +++ b/view/index/common/_left.html @@ -1,12 +1,12 @@