Fix toggle
This commit is contained in:
parent
1539375b39
commit
dc1cf2691c
|
@ -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,$checked=false){
|
public static function render_toggle($toggletext,$input_name,$checked){
|
||||||
?>
|
?>
|
||||||
<div>
|
<div>
|
||||||
<h3><?php echo $toggletext; ?></h3>
|
<h3><?php echo $toggletext; ?></h3>
|
||||||
<label class="switch">
|
<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>
|
<span class="slider round"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue