' . $check_res[CHECK_ACTION_MESSAGE] . ' |
';
return $ret;
}
$oMedia = new BxDolMedia();
$oMedia -> iProfileID = $aPhotoConf['profileID'];
$oMedia -> sMediaType = (isset($_REQUEST['show'])) ? $_REQUEST['show'] : 'video';
$oMedia -> BxDolMedia();
$oMedia -> getActiveMediaArray();
$ret .= ProfileDetails( $oMedia -> iProfileID );
$ret .= '';
if( $oTemplConfig -> customize['media_gallery']['showMediaTabs'] )
{
$ret .= '';
$ret .= getMediaTabs( $oMedia -> sMediaType, $oMedia -> aMediaConfig );
$ret .= '
';
}
//print_r( $oMedia -> aMedia);
$i = 1;
foreach( $oMedia -> aMedia as $aValue )
{
$ret .= '' . "\n";
if( $i >= $oMedia -> aMediaConfig['max'][$oMedia -> sMediaType] )
{
break;
}
$i ++;
}
$ret .= '';
return $ret;
}
function getMediaTabs( $show = 'video', $aMediaConf )
{
$aItems = array( 'audio', 'video' );
/*
echo '
';
print_r($aMediaConf);
echo '
';
*/
foreach( $aItems as $sItem )
{
if( $aMediaConf['enable'][$sItem] )
{
if( $sItem == $show )
{
$ret .= '';
$ret .= '
';
$ret .= _t('_' . $sItem . '');
$ret .= '
';
$ret .= '
';
}
else
{
$ret .= '';
}
}
else
{
$ret .= '';
}
}
return $ret;
}
?>