|
|
@@ -28,32 +28,31 @@ class BxSpacesTemplate extends BxBaseModGroupsTemplate
|
|
|
if (count($aChild) == 0)
|
|
|
return false;
|
|
|
|
|
|
- if (!isset($aParams['template_name']))
|
|
|
- $aParams['template_name'] = 'entry-childs.html';
|
|
|
-
|
|
|
- return $this->parseHtmlByName($aParams['template_name'], array('content' => $this->getBrowseQuick($aChild)));
|
|
|
+ if (!isset($aParams['template']))
|
|
|
+ $aParams['template'] = 'unit_wo_cover';
|
|
|
+
|
|
|
+ return $this->parseHtmlByName('entry-childs.html', array('content' => $this->getBrowseQuick($aChild, $aParams['template'])));
|
|
|
}
|
|
|
|
|
|
- public function entryParent($aData)
|
|
|
+ public function entryParent($aData, $aParams = array())
|
|
|
{
|
|
|
$CNF = $this->_oConfig->CNF;
|
|
|
if ($aData[$CNF['FIELD_PARENT']] == 0)
|
|
|
return false;
|
|
|
-
|
|
|
- if (!isset($aParams['template_name']))
|
|
|
- $aParams['template_name'] = 'entry-parent.html';
|
|
|
-
|
|
|
- return $this->parseHtmlByName($aParams['template_name'], array('content' => $this->getBrowseQuick(array($aData[$CNF['FIELD_PARENT']]))));
|
|
|
+
|
|
|
+ if (!isset($aParams['template']))
|
|
|
+ $aParams['template'] = 'unit_wo_cover';
|
|
|
+ return $this->parseHtmlByName('entry-parent.html', array('content' => $this->getBrowseQuick(array($aData[$CNF['FIELD_PARENT']]), $aParams['template'])));
|
|
|
}
|
|
|
|
|
|
- private function getBrowseQuick($aProfiles)
|
|
|
+ private function getBrowseQuick($aProfiles, $sTemplate = 'unit_wo_cover')
|
|
|
{
|
|
|
$sRv = '';
|
|
|
foreach ($aProfiles as $iProfileId) {
|
|
|
$oProfile = BxDolProfile::getInstance($iProfileId);
|
|
|
if(!$oProfile)
|
|
|
continue;
|
|
|
- $sRv .= $oProfile->getUnit(false, array('template' => 'unit_wo_cover'));
|
|
|
+ $sRv .= $oProfile->getUnit(false, array('template' => $sTemplate));
|
|
|
}
|
|
|
return $sRv;
|
|
|
}
|