mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-05-25 10:42:25 -04:00
Add function render_toggle
This commit is contained in:
parent
a07ee2131a
commit
46e5af20b9
15
template.php
15
template.php
@ -166,7 +166,20 @@ class Template{
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders a toggle switch
|
||||
* Created by Yigit Kerem Oktay
|
||||
*/
|
||||
public static fuction render_toggle($toggletext,$input_name){
|
||||
?>
|
||||
<div>
|
||||
<p><?php echo $toggletext; ?></p>
|
||||
<label class="switch">
|
||||
<input type="checkbox" name="<?php echo $input_name; ?>" >
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</div>
|
||||
}
|
||||
/**
|
||||
* Renders footer
|
||||
* @param Boolean $admin decides whether to load admin scripts
|
||||
|
Loading…
x
Reference in New Issue
Block a user