mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			476 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			476 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?php
 | |
| /**
 | |
| *
 | |
| *
 | |
| */
 | |
| function DisplayThemeConfig()
 | |
| {
 | |
|     $themes = [
 | |
|         "default"    => "RaspAP (default)",
 | |
|         "hackernews" => "HackerNews",
 | |
|         "terminal"   => "Terminal"
 | |
|     ];
 | |
|     $themeFiles = [
 | |
|         "default"    => "custom.css",
 | |
|         "hackernews" => "hackernews.css",
 | |
|         "terminal"   => "terminal.css"
 | |
|     ];
 | |
|     $selectedTheme = array_search($_COOKIE['theme'], $themeFiles);
 | |
| 
 | |
|     echo renderTemplate("themes", compact("themes", "selectedTheme"));
 | |
| }
 |