|
|
@@ -125,12 +125,13 @@ class BxBaseFunctions extends BxDolFactory implements iBxDolSingleton
|
|
|
return $this->simpleBox($sName, $sContent, $isHiddenByDefault, false, 'popup_slide.html');
|
|
|
}
|
|
|
|
|
|
- function inlineBox($sName, $sContent, $isHiddenByDefault = false)
|
|
|
+ function inlineBox($sName, $sContent, $isHiddenByDefault = false)
|
|
|
{
|
|
|
return $this->simpleBox($sName, $sContent, $isHiddenByDefault, false, 'popup_inline.html');
|
|
|
}
|
|
|
|
|
|
- protected function simpleBox($sName, $sContent, $isHiddenByDefault, $isPlaceInCenter, $sTemplate) {
|
|
|
+ protected function simpleBox($sName, $sContent, $isHiddenByDefault, $isPlaceInCenter, $sTemplate)
|
|
|
+ {
|
|
|
$iId = !empty($sName) ? $sName : time();
|
|
|
|
|
|
if(!is_array($sContent))
|
|
|
@@ -149,6 +150,16 @@ class BxBaseFunctions extends BxDolFactory implements iBxDolSingleton
|
|
|
return $sContent;
|
|
|
}
|
|
|
|
|
|
+ function simpleBoxContent($sContent, $bWithIndent = true)
|
|
|
+ {
|
|
|
+ if(!$bWithIndent)
|
|
|
+ return $sContent;
|
|
|
+
|
|
|
+ return $this->_oTemplate->parseHtmlByName('popup_content_indent.html', array(
|
|
|
+ 'content' => $sContent
|
|
|
+ ));
|
|
|
+ }
|
|
|
+
|
|
|
function getTemplateIcon($sName)
|
|
|
{
|
|
|
$sUrl = $this->_oTemplate->getIconUrl($sName);
|