mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 13:32:41 +08:00
improve custom fields and add function displayHotAndClassic()
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user