public function run()
{
$options = $this->options;
$html = '';
if ($this->closeButtonPosition === self::CLOSE_BUTTON_POSITION_AFTER_CONTENT) {
$html = $this->renderCloseButton();
}
$html .= Html::endTag('div');
$html .= $this->renderFooter();
if ($this->closeButtonPosition === self::CLOSE_BUTTON_POSITION_SUCCEED_CONTENT_CONTAINER) {
$html .= $this->renderCloseButton();
}
$tag = ArrayHelper::remove($options, 'tag', 'div');
$html .= Html::endTag($tag);
echo $html;
}