...
|
...
|
@@ -401,7 +401,7 @@ class WebAction extends Controller_Abstract |
|
|
* @param bool $showMore 是否显示更多内容
|
|
|
* @return void
|
|
|
*/
|
|
|
protected function setTitle($title, $showMore = true, $sign = ' | ')
|
|
|
protected function setTitle($title, $showMore = false, $sign = '')
|
|
|
{
|
|
|
$this->_view->assign('title_more', $showMore);
|
|
|
$this->_view->assign('title', $title . $sign);
|
...
|
...
|
@@ -411,22 +411,25 @@ class WebAction extends Controller_Abstract |
|
|
* 设置网站SEO的关键词
|
|
|
*
|
|
|
* @param string $keywords 关键词,多个之间用","逗号分隔
|
|
|
* @param bool $showMore 是否显示更多内容
|
|
|
* @param string $sign 连接的字符串
|
|
|
* @return void
|
|
|
*/
|
|
|
protected function setKeywords($keywords)
|
|
|
protected function setKeywords($keywords, $showMore = false, $sign = '')
|
|
|
{
|
|
|
$this->_view->assign('keywords', rtrim($keywords, ',') . ',');
|
|
|
$this->_view->assign('keywords_more', $showMore);
|
|
|
$this->_view->assign('keywords', rtrim($keywords, ',') . $sign);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 设置网站SEO的描述内容
|
|
|
*
|
|
|
* @param string $description 描述内容
|
|
|
* @param string $sign 连接的字符串
|
|
|
* @param bool $showMore 是否显示更多内容
|
|
|
* @param string $sign 连接的字符串
|
|
|
* @return void
|
|
|
*/
|
|
|
protected function setDescription($description, $showMore = true, $sign = ' ')
|
|
|
protected function setDescription($description, $showMore = false, $sign = '')
|
|
|
{
|
|
|
$this->_view->assign('description_more', $showMore);
|
|
|
$this->_view->assign('description', $description . $sign);
|
...
|
...
|
|