Ejemplo n.º 1
0
} elseif ($ccount == 1) {
    $story['comentstotal'] = _MD_ONECOMMENT;
} else {
    $story['comentstotal'] = sprintf(_MD_NUMCOMMENTS, $ccount);
}
//Assign the user information
$story['uid'] = $article->getVar('uid');
$story['uname'] = $article->getUname();
$story['realname'] = $article->getRealname();
$story['morelink'] = '';
$story['adminlink'] = 0;
if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->getVar('mid'))) {
    $story['adminlink'] = 1;
}
if ($article->showTopicimg()) {
    $story['topic_url'] = $article->imglink($bulletin_topicon_path);
    $story['align'] = $article->getTopicalign();
}
// Related article
if ($bulletin_use_relations) {
    $relations = $article->getRelated();
    foreach ($relations as $relation) {
        $relation_asign = array();
        $relation_asign['storyid'] = $relation->getVar('storyid');
        $relation_asign['title'] = $relation->getVar('title');
        $relation_asign['date'] = formatTimestamp($relation->getVar('published'), $bulletin_date_format);
        $relation_asign['uid'] = $relation->getVar('uid');
        $relation_asign['uname'] = $relation->getUname();
        $relation_asign['realname'] = $relation->getRealname();
        $relation_asign['topicid'] = $relation->getVar('topicid');
        $relation_asign['topic'] = $relation->topic_title();