Я хочу незначительно изменить вывод HTML следующей конфигурации PHP по умолчанию расширения MediaWiki ContactPage , добавив в нее список выбора HTML.
Это весь PHP по умолчаниюКонфигурация доступна в моем LocalSettings.php
файле:
wfLoadExtension( 'ContactPage' );
$wgContactConfig['default'] = array(
'RecipientUser' => 'WikiUser', // Must be the name of a valid account which also has a verified e-mail-address added to it.
'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated
'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required
'RequireDetails' => true, // Either "true" or "false" as required
'IncludeIP' => false, // Either "true" or "false" as required
'MustBeLoggedIn' => true, // Check if the user is logged in before rendering the form
'AdditionalFields' => array(
'Text' => array(
'label-message' => 'emailmessage',
'type' => 'textarea',
'rows' => 20,
'required' => true, // Either "true" or "false" as required
),
),
// Added in MW 1.26
'DisplayFormat' => 'table', // See HTMLForm documentation for available values.
'RLModules' => array(), // Resource loader modules to add to the form display page.
'RLStyleModules' => array(), // Resource loader CSS modules to add to the form display page.
);
Я прочитал расширение README file , но мне неясно, как я могу добавить список выбора HTML, такой как следующий, к коду:
<select name="fruit">
<option value ="none">Nothing</option>
<option value ="guava">Guava</option>
<option value ="lychee">Lychee</option>
<option value ="papaya">Papaya</option>
</select>
Как программист, не являющийся PHP, я спрашиваю, как можно включить такой список выбора HTML в PHP?