|
Revision 1292, 1.3 kB
(checked in by ewout, 1 year ago)
|
Fix some notices in the userdetails page.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
global $page_owner; |
|---|
| 4 |
|
|---|
| 5 |
$visualEditor = __gettext("Visual text editing"); |
|---|
| 6 |
$visualEditorRules = __gettext("Set this to 'yes' if you would like to use a visual (WYSIWYG) text editor for your posts and comments."); |
|---|
| 7 |
|
|---|
| 8 |
$body = <<< END |
|---|
| 9 |
|
|---|
| 10 |
<h2>$visualEditor</h2> |
|---|
| 11 |
<p> |
|---|
| 12 |
$visualEditorRules |
|---|
| 13 |
</p> |
|---|
| 14 |
|
|---|
| 15 |
END; |
|---|
| 16 |
|
|---|
| 17 |
$editor = run('userdetails:editor', $page_owner); |
|---|
| 18 |
|
|---|
| 19 |
if ($editor == "yes") { |
|---|
| 20 |
$body .= templates_draw( array( |
|---|
| 21 |
'context' => 'databox', |
|---|
| 22 |
'name' => __gettext("Enable visual editor: "), |
|---|
| 23 |
'column1' => "<label><input type=\"radio\" name=\"visualeditor\" value=\"yes\" checked=\"checked\" /> " . __gettext("Yes") . "</label> <label><input type=\"radio\" name=\"visualeditor\" value=\"no\" /> " . __gettext("No") . "</label>" |
|---|
| 24 |
) |
|---|
| 25 |
); |
|---|
| 26 |
} else { |
|---|
| 27 |
$body .= templates_draw( array( |
|---|
| 28 |
'context' => 'databox', |
|---|
| 29 |
'name' => __gettext("Enable visual editor: "), |
|---|
| 30 |
'column1' => "<label><input type=\"radio\" name=\"visualeditor\" value=\"yes\" /> " . __gettext("Yes") . "</label> <label><input type=\"radio\" name=\"visualeditor\" value=\"no\" checked=\"checked\" /> " . __gettext("No") . "</label>" |
|---|
| 31 |
) |
|---|
| 32 |
); |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
$run_result .= $body; |
|---|
| 37 |
|
|---|
| 38 |
?> |
|---|