Ejemplo n.º 1
0
         if ($page == $i) {
             $articletag['pagelink'] .= "<a href='article.php?articleid=" . $item_id . "&amp;page=" . $i . "'><span style='color:#ee0000;font-weight:bold;'>" . ($i + 1) . "</span></a>&nbsp;";
         } else {
             $articletag['pagelink'] .= "<a href='article.php?articleid=" . $item_id . "&amp;page=" . $i . "'>" . ($i + 1) . "</a>&nbsp;";
         }
     }
     $articletag['title'] .= " (" . ($page + 1) . "/" . ($pagenum + 1) . ")";
 }
 if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) {
     $articletag['adminlink'] = " [ <a href='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/admin/index.php?op=edit&amp;articleid=" . $article->articleid . "'>" . _EDIT . "</a> | <a href='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/admin/index.php?op=delete&amp;articleid=" . $article->articleid . "'>" . _DELETE . "</a> ] ";
 }
 $articletag['maillink'] = "<a href='print.php?articleid=" . $article->articleid . "'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/print.gif' alt='" . _WFS_PRINTERFRIENDLY . "' /></a> ";
 //$articletag['maillink'] .= "<a href='save.php?articleid=".$article->articleid."'><img src='".XOOPS_URL."/modules/".$xoopsModule->dirname()."/images/download.gif' alt='"._WFS_DOWNLOAD."' /></a> ";
 $articletag['maillink'] .= "<a target='_top' href='mailto:?subject=" . rawurlencode(sprintf(_WFS_INTFILEAT, $xoopsConfig['sitename'])) . "&body=" . rawurlencode(sprintf(_WFS_INTFILEFOUND, $xoopsConfig['sitename']) . ":  " . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/index.php?articleid=" . $article->articleid) . "'><img src='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/friend.gif' alt='" . _WFS_TELLAFRIEND . "' /></a>";
 $articletag['ratelink'] = "<a href='ratefile.php?lid=" . $article->articleid . "'>" . _WFS_RATETHISFILE . "</a>";
 $articletag['catlink'] = "<a href='./index.php?category=" . $article->categoryid() . "'>" . _WFS_BACK2CAT . "</a><b> | </b><a href='./index.php'>" . _WFS_RETURN2INDEX . "</a>";
 $articletag['rating'] = "<b>" . sprintf(_WFS_RATINGA, number_format($article->rating, 2)) . "</b>";
 $articletag['votes'] = "<b>(" . sprintf(_WFS_NUMVOTES, $article->votes) . ")</b>";
 $articletag['counter'] = sprintf(_WFS_VIEWS, $counter);
 $articletag['size'] = sprintf(_WFS_ARTSIZE, prettysize(strlen($articletag['maintext'])));
 // assign the article variables to template
 $xoopsTpl->assign('article', $articletag);
 if ($article->getFilesCount() > 0 && $accessnot >= 1) {
     $xoopsTpl->assign('showfiles', true);
 }
 if ($wfsConfig['novote'] == 1) {
     $xoopsTpl->assign('novote', true);
 } else {
     $xoopsTpl->assign('novote', false);
 }
 // assign lang phrases