finish custom field basic

This commit is contained in:
xiaomlove
2021-03-04 20:43:55 +08:00
parent 7c857deaf4
commit 6bfa625ef0
4 changed files with 175 additions and 21 deletions
+6
View File
@@ -5,6 +5,7 @@ dbconn();
require_once(get_langfile_path());
loggedinorreturn();
$id = intval($_GET["id"] ?? 0);
$customField = new \Nexus\Field\Field();
int_check($id);
if (!isset($id) || !$id)
@@ -153,6 +154,11 @@ else {
print("</td></tr>\n");
// ---------------- end subtitle block -------------------//
/**************start custom fields****************/
echo $customField->renderTorrentDetailPageMixed($id);
/**************end custom fields****************/
if ($CURUSER['showdescription'] != 'no' && !empty($row["descr"])){
$torrentdetailad=$Advertisement->get_ad('torrentdetail');
tr("<a href=\"javascript: klappe_news('descr')\"><span class=\"nowrap\"><img class=\"minus\" src=\"pic/trans.gif\" alt=\"Show/Hide\" id=\"picdescr\" title=\"".($lang_details['title_show_or_hide'] ?? '')."\" /> ".$lang_details['row_description']."</span></a>", "<div id='kdescr'>".($Advertisement->enable_ad() && $torrentdetailad ? "<div align=\"left\" style=\"margin-bottom: 10px\" id=\"ad_torrentdetail\">".$torrentdetailad[0]."</div>" : "").format_comment($row["descr"])."</div>", 1);