$story['adminlink'] = ''; unset($isadmin); if(is_object($xoopsUser)) { if( $xoopsUser->isAdmin($xoopsModule->getVar('mid')) || (nw_getmoduleoption('authoredit', NW_MODULE_DIR_NAME) && $article->uid() == $xoopsUser->getVar('uid')) ) { $isadmin = true; $story['adminlink'] = $article->adminlink(); } } $story['topicid'] = $article->topicid(); $story['topic_color'] = '#'.$myts->displayTarea($article->topic_color); $story['imglink'] = ''; $story['align'] = ''; if ( $article->topicdisplay() ) { $story['imglink'] = $article->imglink(); $story['align'] = $article->topicalign(); } $story['hits'] = $article->counter(); $story['mail_link'] = 'mailto:?subject='.sprintf(_MA_NW_INTARTICLE,$xoopsConfig['sitename']).'&body='.sprintf(_MA_NW_INTARTFOUND, $xoopsConfig['sitename']).': '.NW_MODULE_URL . '/article.php?storyid='.$article->storyid(); $xoopsTpl->assign('lang_printerpage', _MA_NW_PRINTERFRIENDLY); $xoopsTpl->assign('lang_sendstory', _MA_NW_SENDSTORY); $xoopsTpl->assign('lang_pdfstory', _MA_NW_MAKEPDF); if ( $article->uname() != '' ) { $xoopsTpl->assign('lang_on', _ON); $xoopsTpl->assign('lang_postedby', _POSTEDBY); } else { $xoopsTpl->assign('lang_on', ''._MA_NW_POSTED.' '._ON.' ');