attribs) {
$this->attribs = [
'class' => 'side_block ' . $this->getSideBlock()->getBackgroundColor()
. ' sb-' . $this->getSideBlock()->getType()
];
}
return $this->attribs;
}
public function renderAttribs()
{
return Html::renderAttribs($this->getAttribs());
}
public function renderTitle()
{
if ($this->getSideBlock()->isTitleHidden()) {
return '';
}
return Html::renderContainer('h3', $this->getSideBlock()->getTitle());
}
public function renderLink()
{
if (!($title = $this->getSideBlock()->getLinkTitle())) {
return '';
}
if (!($url = $this->getSideBlock()->getLinkUrl())) {
return '';
}
$attribs = [
'href' => $url,
'class' => 'view-all',
'target' => Qs_Url::parseTarget($url),
];
return Html::renderContainer(['div', 'a'], $title, $attribs);
}
}