mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-04-28 14:08:48 -04:00
Fix toggle
This commit is contained in:
parent
1539375b39
commit
dc1cf2691c
@ -170,12 +170,12 @@ class Template{
|
||||
* Renders a toggle switch
|
||||
* Created by Yigit Kerem Oktay
|
||||
*/
|
||||
public static function render_toggle($toggletext,$input_name,$checked=false){
|
||||
public static function render_toggle($toggletext,$input_name,$checked){
|
||||
?>
|
||||
<div>
|
||||
<h3><?php echo $toggletext; ?></h3>
|
||||
<label class="switch">
|
||||
<input type="checkbox" name="<?php echo $input_name; ?>" <?php if($checked){ echo $checked; } ?> >
|
||||
<input type="checkbox" name="<?php echo $input_name; ?>" <?php if($checked){ echo "checked"; } ?> >
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user