Skip to content

Commit

Permalink
add description to the fields
Browse files Browse the repository at this point in the history
  • Loading branch information
R.Brown committed Sep 22, 2013
1 parent 23bbf2b commit e1263bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion options.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ function page_init()
'CT_COMMON_SETTINGS',
array(
'id' => 'ct_id_number',
'description' => '',
)
);
*/
Expand All @@ -171,6 +172,7 @@ function page_init()
'CT_COMMON_SETTINGS',
array(
'id' => 'ct_copyright_format',
'description' => __('%ident_nr%, %source%, %author%, %publisher%, %license% can be used as placeholders', CT_SLUG),
)
);
}
Expand Down Expand Up @@ -211,8 +213,10 @@ function print_common_section_info()
function ct_text_field_callback($args)
{
$id = $args['id'];
$description = $args['description'];
$value = get_single_option($id);
echo "<input type='text' id='$id' name='CT_OPTIONS[$id]' value='$value' />";
echo "<input type='text' id='$id' name='CT_OPTIONS[$id]' value='$value' class='regular-text' />";
echo "<p class='description'>$description</p>";
}

/**
Expand Down

0 comments on commit e1263bc

Please sign in to comment.