Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
admin: allow using numbered input type
Browse files Browse the repository at this point in the history
  • Loading branch information
andi34 authored Jan 24, 2022
1 parent 75eaaba commit e9d1330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,11 @@ function isElementHidden($element_class, $setting)

switch($setting['type']) {
case 'input':
case 'number':
echo '<div class="tooltip">';
echo '<label class="settinglabel" data-i18n="'.$i18ntag.'">'.$i18ntag.'</label>';
echo '<span class="tooltiptext" data-i18n="manual:'.$i18ntag.'">manual:'.$i18ntag.'</span></div>';
echo '<input class="settinginput" type="text" name="'.$setting['name'].'" value="'.$setting['value'].'" placeholder="'.$setting['placeholder'].'"/>';
echo '<input class="settinginput" type="'.($setting['type'] === 'number' ? 'number' : 'text').'" name="'.$setting['name'].'" value="'.$setting['value'].'" placeholder="'.$setting['placeholder'].'"/>';
break;
case 'range':
echo '<div class="tooltip">';
Expand Down

0 comments on commit e9d1330

Please sign in to comment.