Thank you for your help.
Melissa
]]>
This is done by using regular checkbox Pieform elements and form template where those elements are arragned and icons are added.
Do you want to achieve something similar? It would be helpful if you could provide a sketch of a form (or at least the arrangement of form elements that you want to achieve).
HTH, Gregor
]]>label -> labelhtml
help -> helphtml
I don't know if it also applies to title and description, since those two I don't use. All of my items are radio input, which does not use title, and I don't want the description to be under the item. I want it to be an icon that displays text when the mouse is over it, or is a link that can clicked. I know that using a language file is better, but in this instance it would add a level of complication. I am just working on dialog boxes outside of any plug (to mark them up), and I have not figured out how to access that language files that way.
Thank you for your help.
]]>
Use hard-coded strings instead of get_string function (from my example above):
'elementname' => array(
'type' => 'text',
'title' => 'Element title',
'description' => 'One line help with the <a href="http://www.google.com">link to Google</a>...',
...
)
But I would advice against that. I'm trying to avoid using hard-coded strings because you might easily miss one of them, when exchanging them with get_string function...
HTH, Gregor
]]>]]>
'elementname' => array(
'type' => 'text',
'title' => get_string('elementtitle', 'artefact.test'),
'description' => get_string('elementdesc', 'artefact.test', '<a href="http://www.google.com">', '</a>'),
...
)
and in the 'artefact.test.php' language file there should be:
$string['elementtitle'] = 'Element title',
$string['elementdesc'] = 'One line help with the %slink to Google%s...'; // first and second %s are being replaced by arguments 3 and 4 in the appropriate get_string function...
The above example should give you a text field with label 'Element title' and a description (help line in your case) underneath the element...
I think that you should include the form in your template .tpl file with the argument "safe", like this:
{form|safe}
HTH, Gregor
]]>