echo skip_main_destination();
+ // Print the Your progress icon if the track completion is enabled
+ $completioninfo = new completion_info($course);
+ $completioninfo->print_help_icon();
+
print_heading_block(get_string('topicoutline'), 'outline');
// Note, an ordered list would confuse - "1" could be the clipboard or summary.
print_container_start();
echo skip_main_destination();
-
+
+ //Print the Your progress icon if the track completion is enabled
+ $completioninfo = new completion_info($course);
+ $completioninfo->print_help_icon();
+
print_heading_block(get_string('weeklyoutline'), 'outline');
// Note, an ordered list would confuse - "1" could be the clipboard or summary.
}
}
if ($completionicon) {
- static $shownhelp=false;
$imgsrc = $CFG->pixpath.'/i/completion-'.$completionicon.'.gif';
$imgalt = get_string('completion-alt-'.$completionicon,'completion');
if ($completion==COMPLETION_TRACKING_MANUAL && !$isediting) {
}
echo "
<form class='togglecompletion$extraclass' method='post' action='togglecompletion.php'><div>";
- if(!$shownhelp && !$isediting) {
- helpbutton('completionicons',get_string('completionicons','completion'),'completion');
- $shownhelp = true;
- }
echo "
<input type='hidden' name='id' value='{$mod->id}' />
<input type='hidden' name='completionstate' value='$newstate' />
} else {
// In auto mode, or when editing, the icon is just an image
echo "<span class='autocompletion'>";
- if (!$shownhelp && !$isediting) {
- helpbutton('completionicons',get_string('completionicons','completion'),'completion');
- $shownhelp = true;
- }
echo "<img src='$imgsrc' alt='$imgalt' title='$imgalt' /></span>";
}
}
$string['unlockcompletion']='Unlock completion options';
$string['writingcompletiondata']='Writing completion data';
$string['completionicons']='progress icons';
+$string['yourprogress']='Your progress';
?>
return $cm->completion;
}
+ /**
+ * Print the Your progress help icon if the completion tracking is enabled.
+ * @global object
+ * @return void
+ */
+ public function print_help_icon() {
+ global $PAGE;
+ if ($this->is_enabled() && !$PAGE->user_is_editing() && isloggedin() && !isguestuser()) {
+ echo '<span class="completionprogress">'.get_string('yourprogress','completion').' ';
+ helpbutton('completionicons',get_string('completionicons','completion'),'completion');
+ echo '</span>';
+ }
+ }
+ // OU specific end
/**
* Updates (if necessary) the completion state of activity $cm for the given
* user.
background:white;
font-size:0.85em;
}
-.course-view form.togglecompletion img.iconhelp,
-.course-view span.autocompletion img.iconhelp {
+.course-view .completionprogress {
+ font-size:0.80em;
+ float:right;
+ padding:8px 26px 5px 5px; ;
+}
+.course-view .completionprogress img.iconhelp {
vertical-align:top;
}