* add tip content to block without content.

This commit is contained in:
Catouse
2018-06-25 13:25:47 +08:00
parent 1a0cd36e0d
commit a4d0bb2d60
15 changed files with 56 additions and 2 deletions
+8 -1
View File
@@ -332,7 +332,14 @@ class block extends control
$html = '';
if($block->block == 'html')
{
$html = "<div class='panel-body'><div class='article-content'>" . htmlspecialchars_decode($block->params->html) .'</div></div>';
if (empty($block->params->html))
{
$html = "<div class='empty-tip'>" . $this->lang->block->emptyTip . "</div>";
}
else
{
$html = "<div class='panel-body'><div class='article-content'>" . htmlspecialchars_decode($block->params->html) .'</div></div>';
}
}
elseif($block->source != '')
{