Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (26 sloc) 1.353 kb
<?php
class block_facetoface extends block_base {
function init() {
$this->title = get_string('formaltitle', 'block_facetoface');
$this->version = 2009120400;
}
function get_content() {
global $CFG;
if ($this->content !== NULL) {
return $this->content;
}
$this->content = new stdClass;
$this->content->footer = '';
$timenow = time();
$startyear = strftime('%Y', $timenow);
$startmonth = strftime('%m', $timenow);
$startday = strftime('%d', $timenow);
$this->content->text = '';
$this->content->text .= "<ul>\n";
$this->content->text .= '<li><a href="'.$CFG->wwwroot.'/blocks/facetoface/mysignups.php">'.get_string('mybookings', 'block_facetoface')."</a></li>\n";
$this->content->text .= '<li><a href="'.$CFG->wwwroot.'/blocks/facetoface/mysessions.php">'.get_string('upcomingsessions', 'block_facetoface')."</a></li>\n";
$this->content->text .= '<li><a href="'.$CFG->wwwroot.'/blocks/facetoface/mysessions.php?startday='.$startday.'&amp;startmonth='.$startmonth.'&amp;startyear='.$startyear.'&amp;endday=1&amp;endmonth=1&amp;endyear=2020">'.get_string('allfuturesessions', 'block_facetoface')."</a></li>\n";
$this->content->text .= "</ul>\n";
return $this->content;
}
}
Jump to Line
Something went wrong with that request. Please try again.