예제 #1
0
if ($sAction !== false && $sAction == 'get_prof_comment_block') {
    $iProfileID = (int) bx_get('id');
    if ($iProfileID) {
        $sCloseC = _t('_Close');
        bx_import('BxTemplCmtsView');
        $oCmtsView = new BxTemplCmtsView('profile', $iProfileID);
        if (!$oCmtsView->isEnabled()) {
            exit;
        }
        $sCloseImg = getTemplateImage('close.gif');
        $sCaptionItem = <<<BLAH
<div class="dbTopMenu">
    <i class="login_ajx_close sys-icon times"></i>
</div>
BLAH;
        $sCommentsBlock = $GLOBALS['oFunctions']->transBox(DesignBoxContent(_t('_Comments'), $oCmtsView->_getPostReplyBox(), 1, $sCaptionItem), false);
        echo <<<EOF
<style>
    div.cmt-post-reply {
        position: relative;
    }
</style>
{$sCommentsBlock}
EOF;
    }
    exit;
}
// --------------- page variables and login
$_page['name_index'] = 36;
$logged['member'] = member_auth(0);
$_page['header'] = _t("_CHANGE_STATUS_H");