Esempio n. 1
0
function getTeamProfileView($target, $mother)
{
    global $suri, $entry, $entryView, $configVal;
    requireComponent('Textcube.Function.misc');
    $data = Setting::fetchConfigVal($configVal);
    getTeamBlogInitConfigVal($data);
    if ($suri['directive'] != "/rss" && $suri['directive'] != "/sync" && $data['p1'] && empty($data['p2'])) {
        $target .= getTeamProfile($entry['userid']);
    }
    if ($suri['directive'] != "/rss" && $suri['directive'] != "/sync" && $data['p1'] && !empty($data['p2'])) {
        Misc::dress('TeamBlogProfileTag', getTeamProfile($entry['userid']), $entryView);
    }
    return $target;
}
Esempio n. 2
0
function getTeamProfileView($target, $mother)
{
    global $entry, $entryView;
    $context = Model_Context::getInstance();
    $data = $context->getProperty('plugin.config');
    getTeamBlogInitConfigVal($data);
    if ($context->getProperty("suri.directive") != "/rss" && $context->getProperty("suri.directive") != "/sync" && $data['p1'] && empty($data['p2'])) {
        $target .= getTeamProfile($entry['userid']);
    }
    if ($context->getProperty("suri.directive") != "/rss" && $context->getProperty("suri.directive") != "/sync" && $data['p1'] && !empty($data['p2'])) {
        Utils_Misc::dress('TeamBlogProfileTag', getTeamProfile($entry['userid']), $entryView);
    }
    return $target;
}