placeholder und maxlength adjusted

This commit is contained in:
ctr49 2021-01-18 17:24:32 +01:00
parent 42dc3d9f8d
commit 08c802dc26
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ function wolkal3000_feeds_section_text() {
function wolkal3000_feeds_setting_string($args) {
$options = get_option('wolkal3000_options');
$placeholder = "SEZ1234567890ABC";
$placeholder = "ABCDEFGHIKLMNOPQ";
// die id entspricht dem unique_id in add_settings_field.
// der name wird options.php als Name der zu setzenden Option übergeben
// der Value ist der inhalt von der $option[unique_id].
@ -111,7 +111,7 @@ function wolkal3000_timer_section_text() {
function wolkal3000_timer_setting_string() {
$options = get_option('wolkal3000_options');
$placeholder = "default 60";
echo '<input type="text" id="wolkal3000_timer" name="wolkal3000_options[wolkal3000_timer]" value="' . $options['wolkal3000_timer'] . '" size="6" maxlength="6" placeholder="' . $placeholder . '" > Minuten </br>';
echo '<input type="text" id="wolkal3000_timer" name="wolkal3000_options[wolkal3000_timer]" value="' . $options['wolkal3000_timer'] . '" size="6" maxlength="4" placeholder="' . $placeholder . '" > Minuten </br>';
}