Authored by hf

modify to add guang detail page title description

... ... @@ -182,11 +182,13 @@ class InfoController extends AbstractAction
} else {
$data['shareImg'] = Helpers::getImageUrl($detail['getArticle']['cover_image'], 640, 320);
}
$this->setTitle($detail['getArticle']['article_title']);
$this->setDescription($detail['getArticle']['article_summary']);
}
// 标识有微信分享
$data['hasWxShare'] = true;
$this->_view->display('index', $data);
$detail = array();
... ...
... ... @@ -180,6 +180,9 @@ class PlusstarController extends AbstractAction
$data['shareDesc'] = (mb_strlen($data['ps']['intro'], 'utf-8') > 120) ? trim(strip_tags(mb_substr($data['ps']['intro'], 0, 120, 'utf-8'))) . '...' : $data['ps']['intro'];
$data['shareImg'] = $data['ps']['logo'];
$this->setTitle($data['shareTitle']);
$this->setDescription($data['shareDesc']);
$brandInfo = array();
} while (false);
... ...