}
function get_content() {
+ global $CFG, $THEME;
if($this->content !== NULL) {
return $this->content;
$this->content = New stdClass;
$this->content->text = format_text($this->course->summary, FORMAT_HTML);
+ if (isediting($this->course->id)) {
+ $path = $CFG->wwwroot.'/course';
+ if (empty($THEME->custompix)) {
+ $pixpath = $path.'/../pix';
+ } else {
+ $pixpath = $path.'/../theme/'.$CFG->theme.'/pix';
+ }
+ $this->content->text .= "<div align=\"right\"><a href=\"$CFG->wwwroot/admin/site.php\"><img src=\"$pixpath/t/edit.gif\" /></a></div>";
+ }
$this->content->footer = '';
return $this->content;