$lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}');
if (time() - $lastcron > 3600 * 24) {
$strinstallation = get_string('installation', 'install');
- $helpbutton = $OUTPUT->help_icon('install', $strinstallation);
+ $helpbutton = $OUTPUT->old_help_icon('install', $strinstallation);
echo $OUTPUT->box(get_string('cronwarning', 'admin').' '.$helpbutton, 'generalbox adminwarning');
}
protected function add_header_cells() {
global $OUTPUT;
echo '<th colspan="' . count($this->displaypermissions) . '" scope="col">' .
- get_string('permission', 'role') . ' ' . $OUTPUT->help_icon('permissions', get_string('permissions', 'role')) . '</th>';
+ get_string('permission', 'role') . ' ' . $OUTPUT->old_help_icon('permissions', get_string('permissions', 'role')) . '</th>';
echo '<th class="risk" colspan="' . count($this->allrisks) . '" scope="col">' . get_string('risks','role') . '</th>';
}
$table->wrap = array('nowrap', '', 'nowrap','nowrap');
$table->width = '90%';
$table->head = array(
- get_string('role') . ' ' . $OUTPUT->help_icon('roles', get_string('roles')),
+ get_string('role') . ' ' . $OUTPUT->old_help_icon('roles', get_string('roles')),
get_string('description'),
get_string('shortname'),
get_string('edit')
echo "<tr>";
echo "<td align=\"right\" colspan=\"2\"><b>";
echo '<label for="menubackup_site_files">'.get_string ("sitefilesused").'</label>';
- echo $OUTPUT->help_icon('sitefilesused', get_string('sitefilesused'));
+ echo $OUTPUT->old_help_icon('sitefilesused', get_string('sitefilesused'));
echo "</b></td><td colspan=\"2\">";
$course_file_options[0] = get_string("no");
$course_file_options[1] = get_string("yes");
echo '<label for="shortnamefield">'.get_string ('shortname').'</label>';
echo "</td>";
echo "<td><input type=\"text\" id=\"shortnamefield\" name=\"shortname\" maxlength=\"100\" size=\"20\" value=\"".s($form1->shortname)."\" alt=\"".get_string("shortname")."\" />" ;
- echo $OUTPUT->help_icon("courseshortname", get_string("shortname"));
+ echo $OUTPUT->old_help_icon("courseshortname", get_string("shortname"));
if (isset($err["shortname"])) echo $OUTPUT->error_text($err["shortname"]);
echo "</td>";
echo "</tr>";
echo '<label for="fullnamefield">'.get_string ('fullname').'</label>';
echo "</td>";
echo "<td><input type=\"text\" id=\"fullnamefield\" name=\"fullname\" maxlength=\"254\" size=\"50\" value=\"".s($form1->fullname)."\" alt=\" ".get_string("fullname")."\" />" ;
- echo $OUTPUT->help_icon("coursefullname", get_string("fullname"));
+ echo $OUTPUT->old_help_icon("coursefullname", get_string("fullname"));
if (isset($err["fullname"])) echo $OUTPUT->error_text($err["fullname"]);
echo"</td></tr>";
} else {
$yearselector = html_writer::select_time('years', "startyear", $form1->startdate);
echo $dayselector . $monthselector . $yearselector;
- echo $OUTPUT->help_icon("coursestartdate", get_string("startdate"));
+ echo $OUTPUT->old_help_icon("coursestartdate", get_string("startdate"));
} else {
print_string('notavailable');
echo '<input type="hidden" name="startyear" value="0" />';
//Now print the Groups tr (assume there is no $info->backup_groups)
echo "<tr>";
echo "<td align=\"right\" colspan=\"2\"><b>";
- $helplink = $OUTPUT->help_icon('grouprestore', get_string('groups'));
+ $helplink = $OUTPUT->old_help_icon('grouprestore', get_string('groups'));
echo '<label for="menurestore_groups">'.get_string ("groups").'</label>'.$helplink;
echo "</b></td><td colspan=\"2\">";
$group_options[RESTORE_GROUPS_NONE] = get_string('none');
'<input id="searchform_search" name="search" type="text" size="16" />';
$this->content->text .= '<button id="searchform_button" type="submit" title="'.$search.'">'.$button.'</button><br />';
$this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->page->course->id.'">'.$advancedsearch.'</a>';
- $this->content->text .= $OUTPUT->help_icon('search', $advancedsearch);
+ $this->content->text .= $OUTPUT->old_help_icon('search', $advancedsearch);
$this->content->text .= '</fieldset></form></div>';
return $this->content;
$tagthisunit = get_string('tagthisunit', $tagslang);
$buttonadd = get_string('add', $tagslang);
$arrowtitle = get_string('arrowtitle', $tagslang);
- $coursetaghelpbutton = $OUTPUT->help_icon('addtags', 'adding tags', $tagslang);
+ $coursetaghelpbutton = $OUTPUT->old_help_icon('addtags', 'adding tags', $tagslang);
$sesskey = sesskey();
$arrowright = $OUTPUT->pix_url('t/arrow_left');
$this->content->footer .= <<<EOT
if (!empty($resources)) {
$select = new url_select($resources, '', array(''=>$straddresource), "ressection$section");
- $select->set_help_icon('resource/types', $straddresource);
+ $select->set_old_help_icon('resource/types', $straddresource);
$output .= $OUTPUT->render($select);
}
if (!empty($activities)) {
$select = new url_select($activities, '', array(''=>$straddactivity), "section$section");
- $select->set_help_icon('mods', $straddactivity);
+ $select->set_old_help_icon('mods', $straddactivity);
$output .= $OUTPUT->render($select);
}
echo html_writer::select($roleoptions,'roleid',$roleid,false);
echo '<label for="menuaction">'.get_string('showactions').'</label>'."\n";
echo html_writer::select($actionoptions,'action',$action,false);
- echo $OUTPUT->help_icon('participationreport', get_string('participationreport'));
+ echo $OUTPUT->old_help_icon('participationreport', get_string('participationreport'));
echo '<input type="submit" value="'.get_string('go').'" />'."\n</div></form>\n";
$baseurl = $CFG->wwwroot.'/course/report/participation/index.php?id='.$course->id.'&roleid='
echo '<label for="formaction">'.get_string("withselectedusers").'</label>';
$displaylist['messageselect.php'] = get_string('messageselectadd');
echo html_writer::select($displaylist, 'formaction', '', array(''=>'choosedots'), array('id'=>'formactionselect'));
- echo $OUTPUT->help_icon("participantswithselectedusers", get_string("withselectedusers"));
+ echo $OUTPUT->old_help_icon("participantswithselectedusers", get_string("withselectedusers"));
echo '<input type="submit" value="' . get_string('ok') . '" />'."\n";
echo '</div>';
echo '</div>'."\n";
<tr valign="top">
<td align="right">an_authcode:</td>
<td><?php echo html_writer::checkbox('an_authcode', '1', !empty($frm->an_authcode), get_string("adminauthcode", "enrol_authorize")); ?>
- <?php echo $OUTPUT->help_icon('authorize/authcode', 'authcode', 'enrol'); ?><br />
+ <?php echo $OUTPUT->old_help_icon('authorize/authcode', 'authcode', 'enrol'); ?><br />
</td>
</tr>
</tr>
<tr valign="top"><td colspan="2"><h4><?php print_string("adminauthorizeccapture", "enrol_authorize") ?>
- <?php echo $OUTPUT->help_icon('authorize/orderreview', 'orderreview', 'enrol'); ?>
+ <?php echo $OUTPUT->old_help_icon('authorize/orderreview', 'orderreview', 'enrol'); ?>
</h4></td></tr>
<tr valign="top">
<td align="right">an_review:</td>
<td><?php echo html_writer::checkbox('an_review', '1', !empty($frm->an_review), get_string("adminreview", "enrol_authorize")); ?>
- <?php echo $OUTPUT->help_icon('authorize/review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol'); ?><br />
+ <?php echo $OUTPUT->old_help_icon('authorize/review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol'); ?><br />
</td>
</tr>
<tr valign="top">
<td align="right">an_capture_day:</td>
<td><input type="text" name="an_capture_day" size="2" maxlength="2" value="<?php p($frm->an_capture_day) ?>" />
- <?php echo $OUTPUT->help_icon('authorize/captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol'); ?><br />
+ <?php echo $OUTPUT->old_help_icon('authorize/captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol'); ?><br />
<?php print_string("reviewday", "enrol_authorize", $frm->an_capture_day) ?></td>
</tr>
<input type="checkbox" value="1" name="enrol_createnewusers" <?php if ($frm->enrol_createnewusers) echo "checked=\"checked\"" ?> />
</td>
<td>
- <?php echo $OUTPUT->help_icon('createnewusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('createnewusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
<input type="checkbox" value="1" name="enrol_imsdeleteusers" <?php if ($frm->enrol_imsdeleteusers) echo "checked=\"checked\"" ?> />
</td>
<td>
- <?php echo $OUTPUT->help_icon('deleteusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('deleteusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
<input type="checkbox" value="1" name="enrol_imssourcedidfallback" <?php if ($frm->enrol_imssourcedidfallback) echo "checked=\"checked\"" ?> />
</td>
<td>
- <?php echo $OUTPUT->help_icon('sourceddidfallback', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('sourceddidfallback', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
<!--
<input type="text" <?php echo 'value="'.intval($frm->enrol_truncatecoursecodes).'"' ?> name="enrol_truncatecoursecodes" size="3" maxlength="3" />
</td>
<td>
- <?php echo $OUTPUT->help_icon('truncatecoursecodes', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('truncatecoursecodes', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
<input type="checkbox" value="1" name="enrol_createnewcourses" <?php if ($frm->enrol_createnewcourses) echo "checked=\"checked\"" ?> />
</td>
<td>
- <?php echo $OUTPUT->help_icon('createnewcourses', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('createnewcourses', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
<input type="checkbox" value="1" name="enrol_createnewcategories" <?php if ($frm->enrol_createnewcategories) echo "checked=\"checked\"" ?> />
</td>
<td>
- <?php echo $OUTPUT->help_icon('categorisation', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('categorisation', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
<input type="checkbox" value="1" name="enrol_imsunenrol" <?php if ($frm->enrol_imsunenrol) echo "checked=\"checked\"" ?> />
</td>
<td>
- <?php echo $OUTPUT->help_icon('unenrol', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('unenrol', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
<td align="right"><?php print_string('restricttarget', 'enrol_imsenterprise') ?>:</td>
<td colspan="2">
<input type="text" <?php echo 'value="'.htmlspecialchars($frm->enrol_imsrestricttarget).'"' ?> name="enrol_imsrestricttarget" size="20" maxlength="32" />
- <?php echo $OUTPUT->help_icon('target', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('target', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
<input type="checkbox" value="1" name="enrol_imscapitafix" <?php if ($frm->enrol_imscapitafix) echo "checked=\"checked\"" ?> />
</td>
<td>
- <?php echo $OUTPUT->help_icon('capita', 'More detail about this option', 'enrol/imsenterprise'); ?>
+ <?php echo $OUTPUT->old_help_icon('capita', 'More detail about this option', 'enrol/imsenterprise'); ?>
</td>
</tr>
public function get_header_cell() {
global $OUTPUT;
$headercell = clone($this->headercell);
- $headercell->text = get_string('aggregation', 'grades').$OUTPUT->help_icon('aggregation', 'aggregation', 'grade');
+ $headercell->text = get_string('aggregation', 'grades').$OUTPUT->old_help_icon('aggregation', 'aggregation', 'grade');
return $headercell;
}
public function get_header_cell() {
global $OUTPUT;
$headercell = clone($this->headercell);
- $headercell->text = get_string('extracredit', 'grades').$OUTPUT->help_icon('aggregationcoefcombo', 'aggregationcoefcombo', 'grade');
+ $headercell->text = get_string('extracredit', 'grades').$OUTPUT->old_help_icon('aggregationcoefcombo', 'aggregationcoefcombo', 'grade');
return $headercell;
}
public function get_header_cell() {
global $OUTPUT;
$headercell = clone($this->headercell);
- $headercell->text = get_string('weightuc', 'grades').$OUTPUT->help_icon('aggregationcoefweight', 'aggregationcoefweight', 'grade');
+ $headercell->text = get_string('weightuc', 'grades').$OUTPUT->old_help_icon('aggregationcoefweight', 'aggregationcoefweight', 'grade');
return $headercell;
}
$headercell = clone($this->headercell);
$headercell->style .= 'width: 40px;';
$headercell->text = get_string('aggregateonlygraded', 'grades')
- . $OUTPUT->help_icon('aggregateonlygraded', 'aggregateonlygraded', 'grade');
+ . $OUTPUT->old_help_icon('aggregateonlygraded', 'aggregateonlygraded', 'grade');
return $headercell;
}
$headercell = clone($this->headercell);
$headercell->style .= 'width: 40px;';
$headercell->text = get_string('aggregatesubcats', 'grades')
- .$OUTPUT->help_icon('aggregatesubcats', 'aggregatesubcats', 'grade');
+ .$OUTPUT->old_help_icon('aggregatesubcats', 'aggregatesubcats', 'grade');
return $headercell;
}
$headercell = clone($this->headercell);
$headercell->style .= 'width: 40px;';
$headercell->text = get_string('aggregateoutcomes', 'grades')
- .$OUTPUT->help_icon('aggregateoutcomes', 'aggregateoutcomes', 'grade');
+ .$OUTPUT->old_help_icon('aggregateoutcomes', 'aggregateoutcomes', 'grade');
return $headercell;
}
public function get_header_cell() {
global $OUTPUT;
$headercell = clone($this->headercell);
- $headercell->text = get_string('droplow', 'grades').$OUTPUT->help_icon('droplow', 'droplow', 'grade');
+ $headercell->text = get_string('droplow', 'grades').$OUTPUT->old_help_icon('droplow', 'droplow', 'grade');
return $headercell;
}
public function get_header_cell() {
global $OUTPUT;
$headercell = clone($this->headercell);
- $headercell->text = get_string('keephigh', 'grades').$OUTPUT->help_icon('keephigh', 'keephigh', 'grade');
+ $headercell->text = get_string('keephigh', 'grades').$OUTPUT->old_help_icon('keephigh', 'keephigh', 'grade');
return $headercell;
}
public function get_header_cell() {
global $OUTPUT;
$headercell = clone($this->headercell);
- $headercell->text = get_string('multfactor', 'grades').$OUTPUT->help_icon('multfactor', 'multfactor', 'grade');
+ $headercell->text = get_string('multfactor', 'grades').$OUTPUT->old_help_icon('multfactor', 'multfactor', 'grade');
return $headercell;
}
public function get_header_cell() {
global $OUTPUT;
$headercell = clone($this->headercell);
- $headercell->text = get_string('plusfactor', 'grades').$OUTPUT->help_icon('plusfactor', 'plusfactor', 'grade');
+ $headercell->text = get_string('plusfactor', 'grades').$OUTPUT->old_help_icon('plusfactor', 'plusfactor', 'grade');
return $headercell;
}
global $PAGE, $OUTPUT;
if ($this->is_enabled() && !$PAGE->user_is_editing() && isloggedin() && !isguestuser()) {
echo '<span id = "completionprogressid" class="completionprogress">'.get_string('yourprogress','completion').' ';
- echo $OUTPUT->help_icon('completionicons',get_string('completionicons','completion'),'completion');
+ echo $OUTPUT->old_help_icon('completionicons',get_string('completionicons','completion'),'completion');
echo '</span>';
}
}
* @return string|void Depending on value of $return
*/
function helpbutton($page, $title, $module='moodle', $image=true, $linktext=false, $text='', $return=false, $imagetext='') {
- debugging('helpbutton() has been deprecated. Please change your code to use $OUTPUT->help_icon().');
+ debugging('helpbutton() has been deprecated. Please change your code to use $OUTPUT->old_help_icon().');
global $OUTPUT;
- $output = $OUTPUT->help_icon($page, $title, $module, $linktext);
+ $output = $OUTPUT->old_help_icon($page, $title, $module, $linktext);
// hide image with CSS if needed
$select->disabled = $disabled;
$select->set_label($selectlabel);
- $select->set_help_icon($help, $helptext);
+ $select->set_old_help_icon($help, $helptext);
$output = $OUTPUT->render($select);
$module = isset($buttonargs[2]) ? $buttonargs[2] : 'moodle';
$linktext = isset($buttonargs[3]) ? $buttonargs[3] : false;
- $element->_helpbutton = $OUTPUT->help_icon($page, $text, $module, $linktext);
+ $element->_helpbutton = $OUTPUT->old_help_icon($page, $text, $module, $linktext);
} else if (!$suppresscheck) {
print_error('nonexistentformelements', 'form', '', $elementname);
*/
function addHelpButton($elementname, $identifier, $title, $component = 'moodle', $linktext = '') {
if (array_key_exists($elementname, $this->_elementIndex)) {
- $element->_helpbutton = $OUTPUT->help_icon($identifier, $title, $component, $linktext);
+ $element->_helpbutton = $OUTPUT->old_help_icon($identifier, $title, $component, $linktext);
} else if (!$suppresscheck) {
debugging(get_string('nonexistentformelements', 'form', $elementname));
}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @since Moodle 2.0
*/
-class help_icon implements renderable {
+class old_help_icon implements renderable {
/**
* @var string $helpidentifier lang pack identifier (should inlcude the "_hlp" suffix)
*/
* @param bool $linktext add extra text to icon
* @return void
*/
- public function set_help_icon($helppage, $title, $component = 'moodle') {
- $this->helpicon = new help_icon($helppage, $title, $component);
+ public function set_old_help_icon($helppage, $title, $component = 'moodle') {
+ $this->helpicon = new old_help_icon($helppage, $title, $component);
}
/**
* @param bool $linktext add extra text to icon
* @return void
*/
- public function set_help_icon($helppage, $title, $component = 'moodle') {
- $this->helpicon = new help_icon($helppage, $title, $component);
+ public function set_old_help_icon($helppage, $title, $component = 'moodle') {
+ $this->helpicon = new old_help_icon($helppage, $title, $component);
}
/**
$image = $this->pix_icon($icon, $iconalt, $component, array('class'=>'icon'));
}
- $help = $this->help_icon($helpidentifier, $text, $component);
+ $help = $this->old_help_icon($helpidentifier, $text, $component);
return $this->heading($image.$text.$help, 2, 'main help');
}
* @param string|bool $linktext true means use $title as link text, string means link text value
* @return string HTML fragment
*/
- public function help_icon($helpidentifier, $title, $component = 'moodle', $linktext = '') {
- $icon = new help_icon($helpidentifier, $title, $component);
+ public function old_help_icon($helpidentifier, $title, $component = 'moodle', $linktext = '') {
+ $icon = new old_help_icon($helpidentifier, $title, $component);
if ($linktext === true) {
$icon->linktext = $title;
} else if (!empty($linktext)) {
* @param help_icon $helpicon
* @return string HTML fragment
*/
- protected function render_help_icon(help_icon $helpicon) {
+ protected function render_old_help_icon(old_help_icon $helpicon) {
global $CFG;
// first get the help image icon
$html .= '<div class="mdl-align">';
$html .= '<input type="submit" value="'.get_string('downloadas', 'table').'"/>';
$html .= html_writer::select($downloadoptions, 'download', $this->defaultdownloadformat, false);
- $html .= $OUTPUT->help_icon('tableexportformats', get_string('tableexportformats', 'table'));
+ $html .= $OUTPUT->old_help_icon('tableexportformats', get_string('tableexportformats', 'table'));
$html .= '</div></form>';
return $html;
unset($roles[$CFG->guestroleid]);
$popupurl = new moodle_url('/course/view.php', array('id'=>$courseid, 'sesskey'=>sesskey()));
$select = new single_select($popupurl, 'switchrole', $roles, null, array(''=>get_string('switchroleto')), 'switchrole');
- $select->set_help_icon('switchrole', get_string('switchroleto'));
+ $select->set_old_help_icon('switchrole', get_string('switchroleto'));
return $OUTPUT->render($select);
}
if (empty($CFG->usesid)) {
echo '<br/>';
echo '('.get_string("cookiesenabled").')';
- echo $OUTPUT->help_icon("cookies", get_string("cookiesenabled"));
+ echo $OUTPUT->old_help_icon("cookies", get_string("cookiesenabled"));
}
?>
</div>
/// TODO XXX: This is only a quick hack ... helpfile locations should be provided as part of the provider definition
if ($provider->component == 'moodle') {
- $helpbtn = $OUTPUT->help_icon('moodle_'.$provider->name, $providername, 'message');
+ $helpbtn = $OUTPUT->old_help_icon('moodle_'.$provider->name, $providername, 'message');
} else {
- $helpbtn = $OUTPUT->help_icon('message_'.$provider->name, $providername, basename($provider->component));
+ $helpbtn = $OUTPUT->old_help_icon('message_'.$provider->name, $providername, basename($provider->component));
}
echo '<tr><th align="right">'.$providername.$helpbtn.'</th><td colspan="'.$number_procs.'"></td></tr>'."\n";
} else {
echo '<div class="format">';
echo html_writer::select(format_text_menu(), "format", $submission->format, false);
- echo $OUTPUT->help_icon("textformat", get_string("helpformatting"));
+ echo $OUTPUT->old_help_icon("textformat", get_string("helpformatting"));
echo '</div>';
}
}
echo '<label for="mailinfo">'.get_string('enableemailnotification','assignment').'</label>';
echo '<input type="hidden" name="mailinfo" value="0" />';
echo '<input type="checkbox" id="mailinfo" name="mailinfo" value="1" '.$lastmailinfo.' />';
- echo $OUTPUT->help_icon('emailnotification', get_string('enableemailnotification', 'assignment'), 'assignment').'</p></div>';
+ echo $OUTPUT->old_help_icon('emailnotification', get_string('enableemailnotification', 'assignment'), 'assignment').'</p></div>';
echo '</div>';
echo '<div class="fastgbutton"><input type="submit" name="fastg" value="'.get_string('saveallfeedback', 'assignment').'" /></div>';
echo '</div>';
echo '</td>';
echo '<td>';
echo '<input type="text" id="perpage" name="perpage" size="1" value="'.$perpage.'" />';
- echo $OUTPUT->help_icon('pagesize', get_string('pagesize','assignment'), 'assignment');
+ echo $OUTPUT->old_help_icon('pagesize', get_string('pagesize','assignment'), 'assignment');
echo '</td></tr>';
echo '<tr><td>';
echo '<label for="quickgrade">'.get_string('quickgrade','assignment').'</label>';
echo '<td>';
$checked = $quickgrade ? 'checked="checked"' : '';
echo '<input type="checkbox" id="quickgrade" name="quickgrade" value="1" '.$checked.' />';
- echo $OUTPUT->help_icon('quickgrade', get_string('quickgrade', 'assignment'), 'assignment').'</p></div>';
+ echo $OUTPUT->old_help_icon('quickgrade', get_string('quickgrade', 'assignment'), 'assignment').'</p></div>';
echo '</td></tr>';
echo '<tr><td colspan="2">';
echo '<input type="submit" value="'.get_string('savepreferences').'" />';
echo html_writer::empty_tag('input', array('type'=>'text', 'id'=>'input_chat_message', 'name'=>'chat_message', 'size'=>'50', 'value'=>''));
echo html_writer::empty_tag('input', array('type'=>'checkbox', 'id'=>'auto', 'checked'=>'checked', 'value'=>''));
echo html_writer::tag('label', get_string('autoscroll', 'chat'), array('for'=>'auto'));
-echo $OUTPUT->help_icon('chatting', get_string('helpchatting', 'chat'), 'chat', true);
+echo $OUTPUT->old_help_icon('chatting', get_string('helpchatting', 'chat'), 'chat', true);
echo html_writer::end_tag('form');
echo html_writer::start_tag('form', array('action'=>'insert.php', 'method'=>'post', 'target'=>'empty', 'id'=>'sendForm'));
<form action="../empty.php" method="get" target="empty" id="inputform"
onsubmit="return empty_field_and_submit();">
<input type="text" name="chat_message" id="chat_message" size="60" value="" />
- <?php echo $OUTPUT->help_icon("chatting", get_string("helpchatting", "chat"), "chat", true); ?>
+ <?php echo $OUTPUT->old_help_icon("chatting", get_string("helpchatting", "chat"), "chat", true); ?>
</form>
<form action="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport/"; ?>" method="get" target="empty" id="sendform">
echo '<tr>';
echo '<td align="right">'.get_string('csvfile', 'data').':</td>';
echo '<td><input type="file" name="recordsfile" size="30" />';
- echo $OUTPUT->help_icon('importcsv', get_string('csvimport', 'data'), 'data');
+ echo $OUTPUT->old_help_icon('importcsv', get_string('csvimport', 'data'), 'data');
echo '</td><tr>';
echo '<td align="right">'.get_string('fielddelimiter', 'data').':</td>';
echo '<td><input type="text" name="fielddelimiter" size="6" />';
echo '<label for="fieldform_jump">'.get_string('newfield','data').'</label>';
$popupurl = $CFG->wwwroot.'/mod/data/field.php?d='.$data->id.'&mode=new&sesskey='. sesskey();
echo $OUTPUT->single_select(new moodle_url($popupurl), 'newtype', $menufield, null, array(''=>'choosedots'), "fieldform");
- echo $OUTPUT->help_icon('fields', get_string('addafield','data'), 'data');
+ echo $OUTPUT->old_help_icon('fields', get_string('addafield','data'), 'data');
echo '</div>';
echo '<div class="sortdefault">';
$str .= '<option value="'.s($key).'" '.$selected.'>'.$desc.'</option>';
}
$str .= '</select>';
- $str .= $OUTPUT->help_icon('textformat', get_string('helpformatting'), 'moodle');
+ $str .= $OUTPUT->old_help_icon('textformat', get_string('helpformatting'), 'moodle');
$str .= '</div>';
$str .= '</div>';
if (!empty($currentfields) && !empty($newfields)) {
echo "<h3>$strfieldmappings ";
- echo $OUTPUT->help_icon('fieldmappings', $strfieldmappings, 'data');
+ echo $OUTPUT->old_help_icon('fieldmappings', $strfieldmappings, 'data');
echo '</h3><table>';
foreach ($newfields as $nid => $newfield) {
echo '<tr><td valign="top" colspan="2" align="center"><h3>'.$strexport.'</h3></td></tr>';
echo '<tr><td><label>'.$strexportaszip.'</label>';
-echo $OUTPUT->help_icon('exportzip', get_string('help'), 'data', false);
+echo $OUTPUT->old_help_icon('exportzip', get_string('help'), 'data', false);
echo '</td><td>';
$options = array();
$options['sesskey'] = sesskey();
echo '</td></tr>';
echo '<tr><td><label>'.$strsaveaspreset.'</label>';
-echo $OUTPUT->help_icon('savepreset', get_string('help'), 'data', false);
+echo $OUTPUT->old_help_icon('savepreset', get_string('help'), 'data', false);
echo '</td><td>';
$options = array();
$options['sesskey'] = sesskey();
echo '</td></tr>';
echo '<tr><td valign="top" colspan="2" align="center"><h3>'.$strimport.'</h3></td></tr>';
echo '<tr><td><label for="fromfile">'.$strfromfile.'</label>';
-echo $OUTPUT->help_icon('importfromfile', get_string('help'), 'data', true);
+echo $OUTPUT->old_help_icon('importfromfile', get_string('help'), 'data', true);
echo '</td><td>';
echo '<form id="uploadpreset" method="post" action="preset.php">';
echo '<fieldset class="invisiblefieldset">';
echo '</td></tr>';
echo '<tr valign="top"><td><label>'.$strusestandard.'</label>';
-echo $OUTPUT->help_icon('usepreset', get_string('help'), 'data', true);
+echo $OUTPUT->old_help_icon('usepreset', get_string('help'), 'data', true);
echo '</td><td>';
echo '<form id="presets" method="post" action="preset.php" >';
if ($mode != 'csstemplate' and $mode != 'jstemplate') {
// Add all the available fields for this data.
echo '<label for="availabletags">'.get_string('availabletags','data').'</label>';
- echo $OUTPUT->help_icon('tags', get_string('tags'), 'data');
+ echo $OUTPUT->old_help_icon('tags', get_string('tags'), 'data');
echo '<br />';
if(is_array($feedbackitems)){
$itemnr = 0;
- $helpbutton = $OUTPUT->help_icon('preview', get_string('preview','feedback'), 'feedback',true);
+ $helpbutton = $OUTPUT->old_help_icon('preview', get_string('preview','feedback'), 'feedback',true);
echo $OUTPUT->heading($helpbutton . get_string('preview', 'feedback'));
if(isset($SESSION->feedback->moving) AND $SESSION->feedback->moving->shouldmoving == 1) {
echo ' ' . get_string('courses') . ': ';
echo html_writer::select($courses, 'coursefilter', $coursefilter);
echo '<input type="submit" value="'.get_string('mapcourse', 'feedback').'"/>';
- echo $OUTPUT->help_icon('mapcourses', '', 'feedback', true);
+ echo $OUTPUT->old_help_icon('mapcourses', '', 'feedback', true);
echo '<input type="button" value="'.get_string('searchagain').'" onclick="document.location=\'mapcourse.php?id='.$id.'\'"/>';
echo '<input type="hidden" name="searchcourse" value="'.$searchcourse.'"/>';
echo '<input type="hidden" name="feedbackid" value="'.$feedback->id.'"/>';
- echo $OUTPUT->help_icon('searchcourses', '', 'feedback', true);
+ echo $OUTPUT->old_help_icon('searchcourses', '', 'feedback', true);
} else {
echo '<input type="text" name="searchcourse" value="'.$searchcourse.'"/> <input type="submit" value="'.get_string('searchcourses').'"/>';
- echo $OUTPUT->help_icon('searchcourses', '', 'feedback', true);
+ echo $OUTPUT->old_help_icon('searchcourses', '', 'feedback', true);
}
echo '</form>';
$analysisurl = new moodle_url('/mod/feedback/analysis_course.php', array('id'=>$id, 'courseid'=>$courseid));
echo '<div class="mdl-align"><a href="'.$analysisurl->out().'">';
echo get_string('course') .' '. get_string('analysis', 'feedback') . ' ('.get_string('completed_feedbacks', 'feedback').': '.intval($completedFeedbackCount).')</a>';
- echo $OUTPUT->help_icon('viewcompleted', '', 'feedback', true);
+ echo $OUTPUT->old_help_icon('viewcompleted', '', 'feedback', true);
echo '</div>';
}else {
$analysisurl = new moodle_url('/mod/feedback/analysis.php', array('id'=>$id, 'courseid'=>$courseid));
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="id" value="'.$id.'" />';
echo '<button type="submit">'.get_string('mapcourses', 'feedback').'</button>';
- echo $OUTPUT->help_icon('mapcourse', '', 'feedback', true);
+ echo $OUTPUT->old_help_icon('mapcourse', '', 'feedback', true);
echo '</form>';
echo '<br />';
echo '</div>';
$output = '<div class="forumsearch">';
$output .= '<form action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline">';
$output .= '<fieldset class="invisiblefieldset">';
- $output .= $OUTPUT->help_icon('search', get_string('search'));
+ $output .= $OUTPUT->old_help_icon('search', get_string('search'));
$output .= '<input name="search" type="text" size="18" value="'.s($search, true).'" alt="search" />';
$output .= '<input value="'.get_string('searchforums', 'forum').'" type="submit" />';
$output .= '<input name="id" type="hidden" value="'.$course->id.'" />';
if (forum_is_forcesubscribed($forumobject)) {
$notekey = $forumnode->add(get_string("forcessubscribe", 'forum'));
$string = get_string('allowchoice', 'forum');
- $helpbutton = $OUTPUT->help_icon("subscription", $string, "forum");
+ $helpbutton = $OUTPUT->old_help_icon("subscription", $string, "forum");
if (has_capability('mod/forum:managesubscriptions', $PAGE->cm->context)) {
$url = new moodle_url('/mod/forum/subscribe.php', array('id'=>$forumobject->id, 'force'=>'no'));
$forumnode->add($string, $url, navigation_node::TYPE_SETTING);
} else if ($forumobject->forcesubscribe == FORUM_DISALLOWSUBSCRIBE) {
$string = get_string('disallowsubscribe', 'forum');
$notekey = $forumnode->add($string);
- $helpbutton = $OUTPUT->help_icon("subscription", $string, "forum");
+ $helpbutton = $OUTPUT->old_help_icon("subscription", $string, "forum");
} else {
$string = get_string("forcesubscribe", "forum");
$notekey = $forumnode->add(get_string("allowsallsubscribe", 'forum'));
- $helpbutton = $OUTPUT->help_icon("subscription", $string, "forum");
+ $helpbutton = $OUTPUT->old_help_icon("subscription", $string, "forum");
if (has_capability('mod/forum:managesubscriptions', $PAGE->cm->context)) {
$url = new moodle_url('/mod/forum/subscribe.php', array('id'=>$forumobject->id, 'force'=>'yes'));
}
?>><?php echo get_string("no") ?>
</option>
- </select> <?php echo $OUTPUT->help_icon("linkcategory", get_string("linkcategory", "glossary"), "glossary") ?>
+ </select> <?php echo $OUTPUT->old_help_icon("linkcategory", get_string("linkcategory", "glossary"), "glossary") ?>
</td>
</tr>
<tr>
echo '(';
print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
echo ') ';
- echo $OUTPUT->help_icon("filetoimport", get_string("filetoimport", "glossary"), "glossary");
+ echo $OUTPUT->old_help_icon("filetoimport", get_string("filetoimport", "glossary"), "glossary");
?>
</b></td>
<td style="width:70%">
<td style="width:25%"><select size="1" name="dest">
<option selected="selected" value="current"><?php print_string("currentglossary","glossary") ?></option>
<option value="new"><?php print_string("newglossary","glossary") ?></option>
- </select> <?php echo $OUTPUT->help_icon("destination", get_string("destination", "glossary"), "glossary") ?></td>
+ </select> <?php echo $OUTPUT->old_help_icon("destination", get_string("destination", "glossary"), "glossary") ?></td>
<td style="width:25%" align="right"><?php print_string("importcategories","glossary") ?>:</td>
<td style="width:25%"><input type="checkbox" name="catsincl" value="1" alt="<?php print_string("importcategories","glossary") ?>" />
- <?php echo $OUTPUT->help_icon("importcategories", get_string("importcategories", "glossary"), "glossary") ?>
+ <?php echo $OUTPUT->old_help_icon("importcategories", get_string("importcategories", "glossary"), "glossary") ?>
</td>
</tr>
</table>
);
print '<tr><td>';
- echo $OUTPUT->help_icon('reportcontent', get_string('reportcontent', 'hotpot'), 'hotpot');
+ echo $OUTPUT->old_help_icon('reportcontent', get_string('reportcontent', 'hotpot'), 'hotpot');
print '</td><th align="right" scope="col">'.get_string('reportcontent', 'hotpot').':</th><td colspan="7">';
foreach ($menus as $name => $options) {
$value = $formdata[$name];
);
print '<tr><td>';
- echo $OUTPUT->help_icon('reportformat', get_string('reportformat', 'hotpot'), 'hotpot');
+ echo $OUTPUT->old_help_icon('reportformat', get_string('reportformat', 'hotpot'), 'hotpot');
print '</td>';
foreach ($menus as $name => $options) {
$value = $formdata[$name];
if (empty($table->caption)) {
$table->caption = get_string('indivresp', 'quiz');
if ($is_html) {
- $table->caption .= $OUTPUT->help_icon('responsestable', $table->caption, 'hotpot');
+ $table->caption .= $OUTPUT->old_help_icon('responsestable', $table->caption, 'hotpot');
}
}
$hints = empty($response->hints) ? 0 : $response->hints;
$br = $is_html ? '<br />' : "\n";
$space = $is_html ? ' ' : "";
$no_value = $is_html ? '--' : "";
- $help_button = $is_html ? $OUTPUT->help_icon("discrimination", get_string('discrimination', 'quiz'), "quiz") : "";
+ $help_button = $is_html ? $OUTPUT->old_help_icon("discrimination", get_string('discrimination', 'quiz'), "quiz") : "";
// table properties
unset($table);
$table->border = 1;
$table->width = '100%';
$table->caption = get_string('itemanal', 'quiz');
if ($is_html) {
- $table->caption .= $OUTPUT->help_icon('analysistable', $table->caption, 'hotpot');
+ $table->caption .= $OUTPUT->old_help_icon('analysistable', $table->caption, 'hotpot');
}
// initialize legend, if necessary
if (!empty($options['reportshowlegend'])) {
$action = new popup_action('click', $link, 'lessonmediafile', $options);
$content = $OUTPUT->action_link($link, get_string('mediafilepopup', 'lesson'), $action, array('title'=>get_string('mediafilepopup', 'lesson')));
- $content .= $OUTPUT->help_icon("mediafilestudent", get_string("mediafile", "lesson"), "lesson");
+ $content .= $OUTPUT->old_help_icon("mediafilestudent", get_string("mediafile", "lesson"), "lesson");
$bc = new block_contents();
$bc->title = get_string('linkedmedia', 'lesson');
$out .= '<input type="hidden" name="categoryid" value="' . $category->id . '" />';
$out .= ' <input type="submit" name="addrandom" value="'.
$straddtoquiz.'" '.$disabled.' />';
- $out .= $OUTPUT->help_icon('random', get_string('random', 'quiz'), 'quiz');
+ $out .= $OUTPUT->old_help_icon('random', get_string('random', 'quiz'), 'quiz');
}
}
return $out;
echo '</div>';
}
echo $OUTPUT->heading($pagetitle.": ".$quiz->name, 2);
-echo $OUTPUT->help_icon('editconcepts', get_string('basicideasofquiz', 'quiz'), 'quiz', true);
+echo $OUTPUT->old_help_icon('editconcepts', get_string('basicideasofquiz', 'quiz'), 'quiz', true);
quiz_print_status_bar($quiz);
$tabindex = 0;
</div>
</form>
</div>
- <?php echo $OUTPUT->help_icon('random', get_string('random', 'quiz'), 'quiz'); ?>
+ <?php echo $OUTPUT->old_help_icon('random', get_string('random', 'quiz'), 'quiz'); ?>
<?php
echo "\n</div>";
}
echo '<label for="inputmaxgrade">' . get_string('maximumgradex', '', $a) . "</label>";
echo '<input type="hidden" name="savechanges" value="save" />';
echo '<input type="submit" value="' . $strsave . '" />';
- echo $OUTPUT->help_icon('maxgrade', get_string('maximumgrade'), 'quiz');
+ echo $OUTPUT->old_help_icon('maxgrade', get_string('maximumgrade'), 'quiz');
echo '</fieldset>';
echo "</div></form>\n";
return $tabindex + 1;
$quizinformationtablehtml .= '<input type="hidden" name="everything" value="1"/>';
$quizinformationtablehtml .= '<input type="submit" value="'.get_string('downloadeverything', 'quiz_statistics').'"/>';
$quizinformationtablehtml .= html_writer::select($downloadoptions, 'download', $this->table->defaultdownloadformat, false);
- $quizinformationtablehtml .= $OUTPUT->help_icon('tableexportformats', get_string('tableexportformats', 'table'));
+ $quizinformationtablehtml .= $OUTPUT->old_help_icon('tableexportformats', get_string('tableexportformats', 'table'));
$quizinformationtablehtml .= '</div></form>';
}
$quizinformationtablehtml .= html_writer::table($quizinformationtable);
if ($question->_stats->negcovar){
$negcovar = get_string('negcovar', 'quiz_statistics');
if (!$this->is_downloading()){
- $negcovar .= $OUTPUT->help_icon('negcovar', $negcovar, 'quiz_statistics');
+ $negcovar .= $OUTPUT->old_help_icon('negcovar', $negcovar, 'quiz_statistics');
return '<div class="negcovar">'.$negcovar.'</div>';
} else {
return $negcovar;
<td>
<input type="text" name="authorfieldpattern" size="30" value="<?php p($form->authorfieldpattern) ?>" />
<?php
- echo $OUTPUT->help_icon('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
+ echo $OUTPUT->old_help_icon('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
if (!empty($err->authorfieldpattern)) { echo $OUTPUT->error_text($err->authorfieldpattern); }
?>
</td>
/// Formatting Rules
echo '<td class="howtowiki">';
- echo $OUTPUT->help_icon('howtowiki', get_string('howtowiki', 'wiki'), 'wiki');
+ echo $OUTPUT->old_help_icon('howtowiki', get_string('howtowiki', 'wiki'), 'wiki');
echo '</td>';
echo '</tr></table>';
$url = new moodle_url('/question/addquestion.php', $params);
echo $OUTPUT->single_button($url, $caption, 'get', array('disabled'=>$disabled, 'title'=>$tooltip));
- echo $OUTPUT->help_icon('types', get_string('createnewquestion', 'question'), 'question');
+ echo $OUTPUT->old_help_icon('types', get_string('createnewquestion', 'question'), 'question');
$PAGE->requires->yui2_lib('dragdrop');
$PAGE->requires->yui2_lib('container');
if (!$choiceformprinted) {
// Print the add and delete form
coursetag_get_jscript();
- $addtagshelp = $OUTPUT->help_icon('addtags', 'adding tags', $tagslang);
+ $addtagshelp = $OUTPUT->old_help_icon('addtags', 'adding tags', $tagslang);
$edittagthisunit = get_string('edittagthisunit', $tagslang);
$arrowtitle = get_string('arrowtitle', $tagslang);
$sesskey = sesskey();
</div>
EOT;
if ($coursetabs) {
- $deletetagshelp = $OUTPUT->help_icon('deletetags', 'deleting tags', $tagslang);
+ $deletetagshelp = $OUTPUT->old_help_icon('deletetags', 'deleting tags', $tagslang);
$editdeletemytag = get_string('editdeletemytag', $tagslang);
$outstr .= <<<EOT1
<div class="coursetag_edit_row">
$outstr = '
<div class="coursetag_more_title">
<div style="padding-bottom:5px">'.$welcome.
- $OUTPUT->help_icon('usingtags', 'using tags', $tagslang).'
+ $OUTPUT->old_help_icon('usingtags', 'using tags', $tagslang).'
</div>
<div class="coursetag_more_link">'.$link1.'</div>
<div class="coursetag_more_link">'.$link2.'</div>
echo '</fieldset>';
$table = new html_table();
$table->head = array (get_string('fullname'),
- get_string('content', 'notes') . $OUTPUT->help_icon('writing', get_string('helpwriting')),
- get_string('publishstate', 'notes') . $OUTPUT->help_icon('status', get_string('publishstate', 'notes'), 'notes'),
+ get_string('content', 'notes') . $OUTPUT->old_help_icon('writing', get_string('helpwriting')),
+ get_string('publishstate', 'notes') . $OUTPUT->old_help_icon('status', get_string('publishstate', 'notes'), 'notes'),
);
$table->align = array ('left', 'center', 'center');
$state_names = note_get_state_names();
}
$title = get_string('extendenrol');
-echo $OUTPUT->heading($title . $OUTPUT->help_icon('extendenrol', $title));
+echo $OUTPUT->heading($title . $OUTPUT->old_help_icon('extendenrol', $title));
echo "<form method=\"post\" action=\"extendenrol.php\">\n";
echo '<input type="hidden" name="id" value="'.$course->id.'" />';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '</p>';
echo '<p>' . get_string('content', 'notes');
-echo $OUTPUT->help_icon('writing', get_string('helpwriting'));
+echo $OUTPUT->old_help_icon('writing', get_string('helpwriting'));
echo '<br /><textarea name="content" rows="5" cols="50">' . strip_tags(@$content) . '</textarea></p>';
echo '<p>' . $strpublishstate;
-echo $OUTPUT->help_icon('status', $strpublishstate, 'notes');
+echo $OUTPUT->old_help_icon('status', $strpublishstate, 'notes');
echo html_writer::select($state_names, 'state', empty($state) ? NOTES_STATE_PUBLIC : $state, false);
echo '</p>';
}
$title = get_string('groupextendenrol');
-echo $OUTPUT->heading($title . $OUTPUT->help_icon('groupextendenrol', $title));
+echo $OUTPUT->heading($title . $OUTPUT->old_help_icon('groupextendenrol', $title));
echo '<form method="post" action="groupextendenrol.php">';
echo '<input type="hidden" name="id" value="'.$course->id.'" />';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
$displaylist['groupextendenrol.php'] = get_string('groupextendenrol');
}
- echo $OUTPUT->help_icon("participantswithselectedusers", get_string("withselectedusers"));
+ echo $OUTPUT->old_help_icon("participantswithselectedusers", get_string("withselectedusers"));
echo html_writer::tag('label', get_string("withselectedusers"), array('for'=>'formactionid'));
echo html_writer::select($displaylist, 'formaction', '', array(''=>'choosedots'), array('id'=>'formactionid'));
<td align="right" valign="middle" nowrap="nowrap">
<?php
//TODO: replace by new editor stuff!
- echo $OUTPUT->help_icon("reading", get_string("helpreading"), "moodle", true);
+ echo $OUTPUT->old_help_icon("reading", get_string("helpreading"), "moodle", true);
echo "<br />";
- echo $OUTPUT->help_icon("writing", get_string("helpwriting"), "moodle", true);
+ echo $OUTPUT->old_help_icon("writing", get_string("helpwriting"), "moodle", true);
echo "<br />";
- echo $OUTPUT->help_icon("questions", get_string("helpquestions"), "moodle", true);
+ echo $OUTPUT->old_help_icon("questions", get_string("helpquestions"), "moodle", true);
echo "<br />";
if ($usehtmleditor) {
- echo $OUTPUT->help_icon("richtext2", get_string("helprichtext"), "moodle", true);
+ echo $OUTPUT->old_help_icon("richtext2", get_string("helprichtext"), "moodle", true);
} else {
//emoticonhelpbutton("theform", "message"); to be replaced by new editor stuff
}
} else {
choose_from_menu(format_text_menu(), "format", $format, "");
}
- echo $OUTPUT->help_icon("textformat", get_string("helpformatting"));
+ echo $OUTPUT->old_help_icon("textformat", get_string("helpformatting"));
?>
</td>
</tr>