Added support for hiding or showing channel on frontpage in settings

This commit is contained in:
Kasper Rynning-Tønnesen
2015-01-12 21:15:18 +01:00
parent 5a415b09a9
commit a7e563679b
15 changed files with 6 additions and 1 deletions

0
js/iscroll-min.js vendored Normal file → Executable file
View File

0
js/main-min.js vendored Normal file → Executable file
View File

0
js/playercontrols.js Normal file → Executable file
View File

0
php/footer-old.php Normal file → Executable file
View File

View File

@@ -23,8 +23,13 @@ foreach($dir as $files){
} }
} }
if($time_lasted < $time){ if($time_lasted < $time){
$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($channels, ucfirst(str_replace(".json", "", $files)));
} }
}
array_push($all_channels, ucfirst(str_replace(".json", "", $files))); array_push($all_channels, ucfirst(str_replace(".json", "", $files)));
} }
} }

0
static/GitHub_Logo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

0
static/ajax-loader.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

0
static/bg1.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
static/bg2.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

0
static/bg3.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

0
static/bg4.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

0
static/bg5.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

0
static/controlstyle.css Normal file → Executable file
View File

0
static/open_sans.woff Normal file → Executable file
View File

0
static/player.webp Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB