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