Simple status box for the sidebar.
[elgg_plugins.git] / yui / yui_userdetails_edit.php
blob3e5048bcfdf32a1ff0fc9034b3de1f6c14fcb01d
1 <?php
3 $yui = __gettext("Yahoo user interface library");
4 $yuiRules = __gettext("Set this to 'yes' if you would like to use the Yahoo user interface library (fancy Javascript effects).");
6 $body = <<< END
8 <h2>$yui</h2>
9 <p>
10 $yuiRules
11 </p>
13 END;
15 $use_yui = run('userdetails:my_uses_YUI', $page_owner);
17 if ($use_yui == "yes") {
18 $body .= templates_draw( array(
19 'context' => 'databox',
20 'name' => __gettext("Enable Yahoo user interface library: "),
21 'column1' => "<label><input type=\"radio\" name=\"my_uses_YUI\" value=\"yes\" checked=\"checked\" /> " . __gettext("Yes") . "</label> <label><input type=\"radio\" name=\"my_uses_YUI\" value=\"no\" /> " . __gettext("No") . "</label>"
24 } else {
25 $body .= templates_draw( array(
26 'context' => 'databox',
27 'name' => __gettext("Enable Yahoo user interface library: "),
28 'column1' => "<label><input type=\"radio\" name=\"my_uses_YUI\" value=\"yes\" /> " . __gettext("Yes") . "</label> <label><input type=\"radio\" name=\"my_uses_YUI\" value=\"no\" checked=\"checked\" /> " . __gettext("No") . "</label>"
34 $run_result .= $body;