$picture = $story->picture(); $approve = 0; $published = $story->published(); if (isset($published) && $published > 0) { $approve = 1; } if ($story->published() != 0) { $published = $story->published(); } if ($story->expired() != 0) { $expired = $story->expired(); } else { $expired = 0; } $type = $story->type(); $topicdisplay = $story->topicdisplay(); $topicalign = $story->topicalign(false); if (!news_is_admin_group()) { include_once XOOPS_ROOT_PATH . '/modules/news/include/storyform.inc.php'; } else { include_once XOOPS_ROOT_PATH . '/modules/news/include/storyform.original.php'; } echo '</td></tr></table>'; break; case 'preview': $topic_id = intval($_POST['topic_id']); $xt = new NewsTopic($topic_id); if (isset($_GET['storyid'])) { $storyid = intval($_GET['storyid']); } else { if (isset($_POST['storyid'])) {
} } $story['morelink'] = ''; $story['adminlink'] = ''; unset($isadmin); if (is_object($xoopsUser)) { if ($xoopsUser->isAdmin($xoopsModule->getVar('mid')) || news_getmoduleoption('authoredit') && $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(_NW_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_NW_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/news/article.php?storyid=' . $article->storyid(); $xoopsTpl->assign('lang_printerpage', _NW_PRINTERFRIENDLY); $xoopsTpl->assign('lang_sendstory', _NW_SENDSTORY); $xoopsTpl->assign('lang_pdfstory', _NW_MAKEPDF); $xoopsTpl->assign('lang_on', _ON); $xoopsTpl->assign('lang_postedby', _POSTEDBY); $xoopsTpl->assign('lang_reads', _READS); $xoopsTpl->assign('mail_link', 'mailto:?subject=' . sprintf(_NW_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_NW_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/news/article.php?storyid=' . $article->storyid()); if (xoops_trim($article->picture()) != '') { $xoopsTpl->assign('articlePicture', XOOPS_URL . '/modules/news/images/topics/' . $article->picture()); } else {