mirror of
				https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
				synced 2025-10-30 03:20:24 -04:00 
			
		
		
		
	Add new functionality
This commit is contained in:
		
							parent
							
								
									3b4fe3f27c
								
							
						
					
					
						commit
						990462cece
					
				| @ -170,12 +170,12 @@ class Template{ | ||||
|   * Renders a toggle switch | ||||
|   * Created by Yigit Kerem Oktay | ||||
|   */ | ||||
|   public static function render_toggle($toggletext,$input_name){ | ||||
|   public static function render_toggle($toggletext,$input_name,$checked=false){ | ||||
|     ?>
 | ||||
|           <div> | ||||
|           <p><?php echo $toggletext; ?></p>
 | ||||
|           <label class="switch"> | ||||
|               <input type="checkbox" name="<?php echo $input_name; ?>" > | ||||
|               <input type="checkbox" name="<?php echo $input_name; ?>" <?php if($checked){ echo $checked; } ?> >
 | ||||
|               <span class="slider round"></span> | ||||
|           </label> | ||||
|           </div> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user