function get_content()
 {
     global $CFG, $USER;
     require_once $CFG->dirroot . '/mod/elluminate/lib.php';
     if ($this->content !== NULL) {
         return $this->content;
     }
     $this->content = new stdClass();
     $this->content->items = array();
     $this->content->icons = array();
     $this->content->footer = '';
     if (!isloggedin() || empty($this->instance)) {
         return $this->content;
     }
     /*
     if (isadmin()) {
     $this->content->items[] = '<a href="' . $CFG->wwwroot . '/blocks/elluminate/' .
     'manageusers.php?course=' . $this->instance->pageid . '">' .
     get_string('manageusers', 'block_elluminate') . '</a>';
     $this->content->icons[] = '<img src="' . $CFG->pixpath . '/c/group.gif" ' .
     'width="16" height="16" alt="' .
     get_string('manageusers', 'block_elluminate') . '" />';
     }
     */
     if ($recordings = elluminate_recent_recordings()) {
         $this->content->items[] = '<b>' . get_string('recentrecordings', 'block_elluminate') . ':</b>';
         $this->content->icons[] = '';
         foreach ($recordings as $recording) {
             $elluminate = get_record('elluminate', 'meetingid', $recording->meetingid);
             $this->content->items[] = '<a href="' . $CFG->wwwroot . '/mod/elluminate/view.php?a=' . $elluminate->id . '&amp;group=' . $elluminate->groupid . '" target="new">' . $recording->name . '</a>';
             /*
             $this->content->items[] = '<a href="' . $CFG->wwwroot .
             '/mod/elluminate/loadrecording.php?id=' .
             $recording->recordingid . '" target="new">' .
             $recording->name . '</a><br /><span class="breadcrumb">' .
             userdate($recording->created) . '</span>';
             */
             $this->content->icons[] = '<img src="' . $CFG->pixpath . '/i/backup.gif" ' . 'width="16" height="16" alt="' . get_string('recentrecordings', 'block_elluminate') . '" />';
         }
     }
     return $this->content;
 }
 function get_content()
 {
     global $CFG, $USER, $DB, $OUTPUT;
     require_once $CFG->dirroot . '/mod/elluminate/lib.php';
     if ($this->content !== NULL) {
         return $this->content;
     }
     $this->content = new stdClass();
     $this->content->items = array();
     $this->content->icons = array();
     $this->content->footer = '';
     if (!isloggedin() || empty($this->instance)) {
         return $this->content;
     }
     if ($recordings = elluminate_recent_recordings()) {
         $this->content->items[] = '<b>' . get_string('recentrecordings', 'block_elluminate') . ':</b>';
         $this->content->icons[] = '';
         $baseurl = new moodle_url('/mod/elluminate/view.php');
         foreach ($recordings as $recording) {
             $elluminate = $DB->get_record('elluminate', array('meetingid' => $recording->meetingid));
             $url = new moodle_url($baseurl);
             $url->params(array('a' => $elluminate->id, 'group' => $elluminate->groupid));
             $icon = '<img src="' . $OUTPUT->pix_url('icon', 'feedback') . '" class="icon" alt="" />&nbsp;';
             $this->content->text = ' <a href="' . $url->out() . '">' . $recording->name . '</a>';
         }
     }
     return $this->content;
 }