From e1263bcd22f026c4026b384bba849cfc61554744 Mon Sep 17 00:00:00 2001 From: "R.Brown" Date: Sun, 22 Sep 2013 08:56:06 +0200 Subject: [PATCH] add description to the fields --- options.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/options.php b/options.php index 8fb16cb..1a83465 100644 --- a/options.php +++ b/options.php @@ -159,6 +159,7 @@ function page_init() 'CT_COMMON_SETTINGS', array( 'id' => 'ct_id_number', + 'description' => '', ) ); */ @@ -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), ) ); } @@ -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 ""; + echo ""; + echo "

$description

"; } /**