mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
seo优化标题,描述,文章
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user