mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added support for hiding or showing channel on frontpage in settings
This commit is contained in:
@@ -23,7 +23,12 @@ foreach($dir as $files){
|
||||
}
|
||||
}
|
||||
if($time_lasted < $time){
|
||||
array_push($channels, ucfirst(str_replace(".json", "", $files)));
|
||||
$file = file_get_contents('./lists/'.$files); //Checking if the channel has the setting for showing on the frontpage set to true.
|
||||
$data = json_decode($file, TRUE);
|
||||
$conf = $data['conf']['frontpage'];
|
||||
if($conf == "true"){ //If it is true, the channelname will be shown on the frontpage
|
||||
array_push($channels, ucfirst(str_replace(".json", "", $files)));
|
||||
}
|
||||
}
|
||||
array_push($all_channels, ucfirst(str_replace(".json", "", $files)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user