* Handle more link url for story block.

This commit is contained in:
孔令茂
2023-05-10 20:01:27 +08:00
parent 9b0221601e
commit ee4a6199ff
3 changed files with 21 additions and 19 deletions
+6 -12
View File
@@ -145,10 +145,10 @@ class block extends control
/**
* 设置一个区块的大小。
* Resize a block.
*
* @param string $blockID
* @param string $type
* @param string $data
*
* @param string $blockID
* @param string $type
* @param string $data
* @access public
* @return void
*/
@@ -281,16 +281,10 @@ class block extends control
if(method_exists('blockZen', $function)) $this->blockZen->$function($block);
/* 补全 moreLink 信息。 */
$module = $block->module;
$moreLink = '';
if(isset($this->config->block->modules[$module]->moreLinkList->{$code}))
{
list($moduleName, $method, $vars) = explode('|', sprintf($this->config->block->modules[$module]->moreLinkList->{$code}, isset($block->params->type) ? $block->params->type : ''));
$this->view->moreLink = $this->createLink($moduleName, $method, $vars);
}
$this->blockZen->createMoreLink($block, 0);
/* 组织渲染页面需要的数据。*/
$this->view->moreLink = $moreLink;
$this->view->moreLink = $block->moreLink;
$this->view->title = $block->title;
$this->view->block = $block;
$this->view->longBlock = $this->block->isLongBlock($block);