|
|
@@ -1733,43 +1733,6 @@ class BxBaseModProfileModule extends BxBaseModGeneralModule implements iBxDolCon
|
|
|
return $aParams;
|
|
|
}
|
|
|
|
|
|
- protected function _serviceBrowseQuick($aProfiles, $iStart = 0, $iLimit = 4, $aAdditionalParams = array())
|
|
|
- {
|
|
|
- // get paginate object
|
|
|
- $oPaginate = new BxTemplPaginate(array(
|
|
|
- 'on_change_page' => "return !loadDynamicBlockAutoPaginate(this, '{start}', '{per_page}', " . bx_js_string(json_encode($aAdditionalParams)) . ");",
|
|
|
- 'num' => count($aProfiles),
|
|
|
- 'per_page' => $iLimit,
|
|
|
- 'start' => $iStart,
|
|
|
- ));
|
|
|
-
|
|
|
- // remove last item from connection array, because we've got one more item for pagination calculations only
|
|
|
- if (count($aProfiles) > $iLimit)
|
|
|
- array_pop($aProfiles);
|
|
|
-
|
|
|
- // get profiles HTML
|
|
|
- $s = '';
|
|
|
- foreach ($aProfiles as $mixedProfile) {
|
|
|
- $bProfile = is_array($mixedProfile);
|
|
|
-
|
|
|
- $oProfile = BxDolProfile::getInstance($bProfile ? (int)$mixedProfile['id'] : (int)$mixedProfile);
|
|
|
- if(!$oProfile)
|
|
|
- continue;
|
|
|
-
|
|
|
- $aUnitParams = array('template' => array('name' => 'unit', 'size' => 'thumb'));
|
|
|
- if(BxDolModule::getInstance($oProfile->getModule()) instanceof BxBaseModGroupsModule)
|
|
|
- $aUnitParams['template']['name'] = 'unit_wo_cover';
|
|
|
-
|
|
|
- if($bProfile && is_array($mixedProfile['info']))
|
|
|
- $aUnitParams['template']['vars'] = $mixedProfile['info'];
|
|
|
-
|
|
|
- $s .= $oProfile->getUnit(0, $aUnitParams);
|
|
|
- }
|
|
|
-
|
|
|
- // return profiles + paginate
|
|
|
- return $s . (!$iStart && $oPaginate->getNum() <= $iLimit ? '' : $oPaginate->getSimplePaginate());
|
|
|
- }
|
|
|
-
|
|
|
protected function _serviceGetTimelineProfileImage($aEvent, $aBrowseParams, $aBuildParams)
|
|
|
{
|
|
|
$CNF = &$this->_oConfig->CNF;
|