improve custom fields and add function displayHotAndClassic()

This commit is contained in:
xiaomlove
2021-03-05 02:05:27 +08:00
parent ee6660f9a8
commit f4c402a87b
9 changed files with 140 additions and 103 deletions

View File

@@ -271,4 +271,16 @@ class Imdb
$result .= '</div></td>';
return $result;
}
public function renderHotAndClassic()
{
global $showextinfo, $showmovies;
$shouldDisplay = ($showextinfo['imdb'] == 'yes' || get_setting('main.enable_pt_gen_system')) && ($showmovies['hot'] == "yes" || $showmovies['classic'] == "yes");
if (!$shouldDisplay) {
return '';
}
}
}