mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
This commit is contained in:
parent
da3ab9c4be
commit
aa6c1ced0a
@ -30,7 +30,7 @@ require_once($CFG->dirroot.'/lib/formslib.php');
|
||||
|
||||
/**
|
||||
* The mform class for creating and editing a calendar
|
||||
*
|
||||
*
|
||||
* @copyright 2009 Sam Hemelryk
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
@ -56,7 +56,7 @@ $day = optional_param('cal_d', 0, PARAM_INT);
|
||||
$mon = optional_param('cal_m', 0, PARAM_INT);
|
||||
$yr = optional_param('cal_y', 0, PARAM_INT);
|
||||
if ($courseid = optional_param('course', 0, PARAM_INT)) {
|
||||
$course = $DB->get_record('course', array('id'=>$courseid));
|
||||
$course = $DB->get_record('course', array('id'=>$courseid));
|
||||
} else {
|
||||
$course = NULL;
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ function calendar_get_upcoming($courses, $groups, $users, $daysinfuture, $maxeve
|
||||
}
|
||||
if ($event->modulename == 'assignment'){
|
||||
// TODO: rewrite this hack somehow
|
||||
if (!calendar_edit_event_allowed($event)){ // cannot manage entries, eg. student
|
||||
if (!calendar_edit_event_allowed($event)){ // cannot manage entries, eg. student
|
||||
if (!$assignment = $DB->get_record('assignment', array('id'=>$event->instance))) {
|
||||
// print_error("invalidid", 'assignment');
|
||||
continue;
|
||||
@ -572,9 +572,9 @@ function calendar_print_event($event, $showactions=true) {
|
||||
if (isset($event->cssclass)) {
|
||||
echo '<td class="description '.$event->cssclass.'">';
|
||||
} else {
|
||||
echo '<td class="description">';
|
||||
echo '<td class="description">';
|
||||
}
|
||||
|
||||
|
||||
echo $event->description;
|
||||
if (calendar_edit_event_allowed($event) && $showactions) {
|
||||
echo '<div class="commands">';
|
||||
@ -860,7 +860,7 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL, $courses
|
||||
} else {
|
||||
$content .= '<td style="width: 11px;"><img src="'.$OUTPUT->old_icon_url('t/show') . '" class="iconsmall" alt="'.get_string('hide').'" title="'.get_string('tt_showcourse', 'calendar').'" style="cursor:pointer" onclick="location.href='."'".CALENDAR_URL.'set.php?var=showcourses'.$getvars."'".'" /></td>';
|
||||
$content .= '<td><a href="'.CALENDAR_URL.'set.php?var=showcourses'.$getvars.'" title="'.get_string('tt_showcourse', 'calendar').'">'.get_string('course', 'calendar').'</a></td>'."\n";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1190,7 +1190,7 @@ function calendar_session_vars($course=null) {
|
||||
if ($course !== null) {
|
||||
// speedup hack for calendar related blocks
|
||||
$SESSION->cal_courses_shown = array($course->id => $course);
|
||||
} else {
|
||||
} else {
|
||||
$SESSION->cal_courses_shown = calendar_get_default_courses(true);
|
||||
}
|
||||
if(empty($SESSION->cal_users_shown)) {
|
||||
@ -1219,9 +1219,9 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
|
||||
$SESSION->cal_courses_shown = intval($SESSION->cal_courses_shown);
|
||||
}
|
||||
if($courseeventsfrom === NULL) {
|
||||
$courseeventsfrom = $SESSION->cal_courses_shown;
|
||||
$courseeventsfrom = $SESSION->cal_courses_shown;
|
||||
}
|
||||
|
||||
|
||||
// MDL-9059, $courseeventsfrom can be an int, or an array of ints, or an array of course objects
|
||||
// convert all to array of objects
|
||||
// we probably should do some clean up and make sure that session is set to use the proper form
|
||||
@ -1233,8 +1233,8 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
|
||||
foreach ($courseeventsfrom as $i=>$courseid) { // TODO: this seems wrong, the array is often constructed as [courseid] => 1 ???
|
||||
if (is_int($courseid)) {
|
||||
$courseeventsfrom[$i] = $DB->get_record('course', array('id'=>$courseid));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($groupeventsfrom === NULL) {
|
||||
@ -1325,7 +1325,7 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
|
||||
$courserecord = $courseeventsfrom[$courseid];
|
||||
} else {
|
||||
$courserecord = $DB->get_record('course', array('id'=>$courseid));
|
||||
}
|
||||
}
|
||||
$courserecord = $DB->get_record('course', array('id'=>$courseid));
|
||||
if ($courserecord->groupmode != NOGROUPS || !$courserecord->groupmodeforce) {
|
||||
$groupids[] = $courseid;
|
||||
@ -1592,7 +1592,7 @@ function calendar_get_allowed_types(&$allowed) {
|
||||
|
||||
if(has_capability('moodle/calendar:manageentries', $coursecontext)) {
|
||||
$allowed->courses = array($course->id => 1);
|
||||
|
||||
|
||||
if($course->groupmode != NOGROUPS || !$course->groupmodeforce) {
|
||||
$allowed->groups = groups_get_all_groups($SESSION->cal_course_referer);
|
||||
}
|
||||
@ -1877,7 +1877,7 @@ class calendar_event {
|
||||
|
||||
/**
|
||||
* Return the number of repeat events there are in this events series
|
||||
*
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function count_repeats() {
|
||||
@ -1965,7 +1965,7 @@ class calendar_event {
|
||||
|
||||
$DB->set_field('event', 'description', $this->properties->description, array('id'=>$this->properties->id));
|
||||
}
|
||||
|
||||
|
||||
// Log the event entry.
|
||||
add_to_log($this->properties->courseid, 'calendar', 'add', 'event.php?action=edit&id='.$this->properties->id, $this->properties->name);
|
||||
|
||||
@ -2209,7 +2209,7 @@ class calendar_event {
|
||||
} else {
|
||||
$draftiddescription = 0;
|
||||
}
|
||||
|
||||
|
||||
// Structure the description field as the editor requires
|
||||
$properties->description = array('text'=>$properties->description, 'format'=>$properties->format, 'itemid'=>$draftiddescription);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
$options[CALENDAR_TF_12] = get_string('timeformat_12', 'calendar');
|
||||
$options[CALENDAR_TF_24] = get_string('timeformat_24', 'calendar');
|
||||
$select = html_select::make($options, "timeformat", $prefs->timeformat, false);
|
||||
$select->nothingvalue = '';
|
||||
$select->nothingvalue = '';
|
||||
echo $OUTPUT->select($select);
|
||||
?>
|
||||
<p><?php print_string('explain_timeformat', 'calendar'); ?></p>
|
||||
@ -30,7 +30,7 @@
|
||||
$options[5] = get_string('friday', 'calendar');
|
||||
$options[6] = get_string('saturday', 'calendar');
|
||||
$select = html_select::make($options, 'startwday', $prefs->startwday, false);
|
||||
$select->nothingvalue = '';
|
||||
$select->nothingvalue = '';
|
||||
echo $OUTPUT->select($select);
|
||||
?>
|
||||
<p><?php print_string('explain_startwday', 'calendar'); ?></p>
|
||||
@ -46,7 +46,7 @@
|
||||
$options[$i] = $i;
|
||||
}
|
||||
$select = html_select::make($options, "maxevents", $prefs->maxevents, false);
|
||||
$select->nothingvalue = '';
|
||||
$select->nothingvalue = '';
|
||||
echo $OUTPUT->select($select);
|
||||
?>
|
||||
<p><?php print_string('explain_maxevents', 'calendar'); ?></p>
|
||||
@ -62,7 +62,7 @@
|
||||
$options[$i] = $i;
|
||||
}
|
||||
$select = html_select::make($options, "lookahead", $prefs->lookahead, false);
|
||||
$select->nothingvalue = '';
|
||||
$select->nothingvalue = '';
|
||||
echo $OUTPUT->select($select);
|
||||
?>
|
||||
<p><?php print_string('explain_lookahead', 'calendar'); ?></p>
|
||||
@ -72,9 +72,9 @@
|
||||
<tr>
|
||||
<th scope="row"><?php print_string('pref_persistflt', 'calendar')?>:</th>
|
||||
<td>
|
||||
<?php
|
||||
<?php
|
||||
$select = html_select::make(array(0 => get_string('no'), 1 => get_string('yes')), 'persistflt', $prefs->persistflt, false);
|
||||
$select->nothingvalue = '';
|
||||
$select->nothingvalue = '';
|
||||
echo $OUTPUT->select($select);
|
||||
?>
|
||||
<p><?php print_string('explain_persistflt', 'calendar'); ?></p>
|
||||
|
@ -399,7 +399,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Extract information: events vs. time
|
||||
calendar_events_by_day($events, $m, $y, $eventsbyday, $durationbyday, $typesbyday, $courses);
|
||||
|
||||
@ -539,54 +539,54 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course
|
||||
|
||||
echo "</table>\n"; // Tabular display of days ends
|
||||
|
||||
// OK, now for the filtering display
|
||||
echo '<div class="filters"><table><tr>';
|
||||
|
||||
// Global events
|
||||
if($SESSION->cal_show_global) {
|
||||
echo '<td class="event_global" style="width: 8px;"></td><td><strong>'.get_string('globalevents', 'calendar').':</strong> ';
|
||||
echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showglobal&'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
else {
|
||||
echo '<td style="width: 8px;"></td><td><strong>'.get_string('globalevents', 'calendar').':</strong> ';
|
||||
echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showglobal&'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
|
||||
// Course events
|
||||
if(!empty($SESSION->cal_show_course)) {
|
||||
echo '<td class="event_course" style="width: 8px;"></td><td><strong>'.get_string('courseevents', 'calendar').':</strong> ';
|
||||
echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showcourses&'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
else {
|
||||
echo '<td style="width: 8px;"></td><td><strong>'.get_string('courseevents', 'calendar').':</strong> ';
|
||||
echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showcourses&'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
|
||||
echo "</tr>\n";
|
||||
|
||||
// OK, now for the filtering display
|
||||
echo '<div class="filters"><table><tr>';
|
||||
|
||||
// Global events
|
||||
if($SESSION->cal_show_global) {
|
||||
echo '<td class="event_global" style="width: 8px;"></td><td><strong>'.get_string('globalevents', 'calendar').':</strong> ';
|
||||
echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showglobal&'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
else {
|
||||
echo '<td style="width: 8px;"></td><td><strong>'.get_string('globalevents', 'calendar').':</strong> ';
|
||||
echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showglobal&'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
|
||||
// Course events
|
||||
if(!empty($SESSION->cal_show_course)) {
|
||||
echo '<td class="event_course" style="width: 8px;"></td><td><strong>'.get_string('courseevents', 'calendar').':</strong> ';
|
||||
echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showcourses&'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
else {
|
||||
echo '<td style="width: 8px;"></td><td><strong>'.get_string('courseevents', 'calendar').':</strong> ';
|
||||
echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showcourses&'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
|
||||
echo "</tr>\n";
|
||||
|
||||
if(!empty($USER->id) && !has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM), 0, false)) {
|
||||
echo '<tr>';
|
||||
// Group events
|
||||
if($SESSION->cal_show_groups) {
|
||||
echo '<td class="event_group" style="width: 8px;"></td><td><strong>'.get_string('groupevents', 'calendar').':</strong> ';
|
||||
echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showgroups&'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
else {
|
||||
echo '<td style="width: 8px;"></td><td><strong>'.get_string('groupevents', 'calendar').':</strong> ';
|
||||
echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showgroups&'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
// User events
|
||||
if($SESSION->cal_show_user) {
|
||||
echo '<td class="event_user" style="width: 8px;"></td><td><strong>'.get_string('userevents', 'calendar').':</strong> ';
|
||||
echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showuser&'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
else {
|
||||
echo '<td style="width: 8px;"></td><td><strong>'.get_string('userevents', 'calendar').':</strong> ';
|
||||
echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showuser&'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
echo '<tr>';
|
||||
// Group events
|
||||
if($SESSION->cal_show_groups) {
|
||||
echo '<td class="event_group" style="width: 8px;"></td><td><strong>'.get_string('groupevents', 'calendar').':</strong> ';
|
||||
echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showgroups&'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
else {
|
||||
echo '<td style="width: 8px;"></td><td><strong>'.get_string('groupevents', 'calendar').':</strong> ';
|
||||
echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showgroups&'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
// User events
|
||||
if($SESSION->cal_show_user) {
|
||||
echo '<td class="event_user" style="width: 8px;"></td><td><strong>'.get_string('userevents', 'calendar').':</strong> ';
|
||||
echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showuser&'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
else {
|
||||
echo '<td style="width: 8px;"></td><td><strong>'.get_string('userevents', 'calendar').':</strong> ';
|
||||
echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showuser&'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
|
||||
}
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
echo '</table></div>';
|
||||
}
|
||||
|
||||
|
@ -2,9 +2,9 @@ function completion_init() {
|
||||
// Check the reload-forcing
|
||||
var changeDetector=document.getElementById('completion_dynamic_change');
|
||||
if(changeDetector.value==1) {
|
||||
changeDetector.value=0;
|
||||
changeDetector.value=0;
|
||||
window.location.reload();
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
var toggles=YAHOO.util.Dom.getElementsByClassName('togglecompletion', 'form');
|
||||
@ -13,7 +13,7 @@ function completion_init() {
|
||||
completion_init_toggle(toggles[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function completion_init_toggle(form) {
|
||||
// Store all necessary references for easy access
|
||||
@ -22,7 +22,7 @@ function completion_init_toggle(form) {
|
||||
switch(inputs[i].name) {
|
||||
case 'id' : form.cmid=inputs[i].value; break;
|
||||
case 'completionstate' : form.otherState=inputs[i].value; break;
|
||||
}
|
||||
}
|
||||
if(inputs[i].type=='image') {
|
||||
form.image=inputs[i];
|
||||
}
|
||||
@ -84,7 +84,7 @@ function completion_handle_failure(o) {
|
||||
|
||||
function completion_toggle(e) {
|
||||
YAHOO.util.Event.preventDefault(e);
|
||||
// By setting completion_wwwroot you can cause it to use absolute path
|
||||
// By setting completion_wwwroot you can cause it to use absolute path
|
||||
// otherwise script assumes it is called from somewhere in /course
|
||||
var target = moodle_cfg.wwwroot + '/course/togglecompletion.php';
|
||||
YAHOO.util.Connect.asyncRequest('POST',target,
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //$Id$
|
||||
<?php
|
||||
|
||||
require_once($CFG->libdir.'/formslib.php');
|
||||
require_once($CFG->libdir.'/questionlib.php');
|
||||
@ -141,4 +141,4 @@ class delete_category_form extends moodleform {
|
||||
return $errors;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -163,4 +163,3 @@
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
@ -52,7 +52,7 @@ class course_edit_form extends moodleform {
|
||||
$coursecontext = null;
|
||||
$context = $categorycontext;
|
||||
}
|
||||
|
||||
|
||||
/// form definition with new course defaults
|
||||
//--------------------------------------------------------------------------------
|
||||
$mform->addElement('header','general', get_string('general', 'form'));
|
||||
@ -114,7 +114,7 @@ class course_edit_form extends moodleform {
|
||||
$mform->setConstants('idnumber', $course->idnumber);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$mform->addElement('editor','summary_editor', get_string('summary'), null, $editoroptions);
|
||||
$mform->setHelpButton('summary_editor', array('text2', get_string('helptext')), true);
|
||||
$mform->setType('summary_editor', PARAM_RAW);
|
||||
@ -496,4 +496,4 @@ class course_edit_form extends moodleform {
|
||||
return $errors;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -116,4 +116,4 @@ echo $OUTPUT->heading($strtitle);
|
||||
$mform->display();
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
||||
class editcategory_form extends moodleform {
|
||||
|
||||
@ -41,5 +41,5 @@ class editcategory_form extends moodleform {
|
||||
|
||||
$this->add_action_buttons(true, $strsubmit);
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //$Id$
|
||||
<?php
|
||||
|
||||
require_once($CFG->libdir.'/formslib.php');
|
||||
|
||||
|
@ -131,4 +131,3 @@ $enrol->print_entry($course);
|
||||
|
||||
/// Easy!
|
||||
|
||||
?>
|
@ -689,7 +689,7 @@ final class course_external extends moodle_external {
|
||||
}
|
||||
|
||||
$activities = get_array_of_activities($id);
|
||||
|
||||
|
||||
foreach ($activities as $activity) {
|
||||
if (empty($type)) {
|
||||
$module = array('id' => $activity->id, 'courseid' => $id, 'name' => $activity->name, 'type' => $activity->mod);
|
||||
@ -746,4 +746,4 @@ final class course_external extends moodle_external {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -3,33 +3,33 @@ Course formats
|
||||
|
||||
To create a new course format, make another folder in here.
|
||||
|
||||
If you want a basic format, you only need to write the 'standard files' listed
|
||||
below.
|
||||
If you want a basic format, you only need to write the 'standard files' listed
|
||||
below.
|
||||
|
||||
If you want to store information in the database for your format, or control
|
||||
access to features of your format, you need some of the optional files too.
|
||||
|
||||
All names below assume that your format is called 'yourformat'.
|
||||
All names below assume that your format is called 'yourformat'.
|
||||
|
||||
|
||||
Standard files
|
||||
--------------
|
||||
|
||||
* yourformat/format.php
|
||||
* yourformat/format.php
|
||||
|
||||
Code that actually displays the course view page. See existing formats for
|
||||
Code that actually displays the course view page. See existing formats for
|
||||
examples.
|
||||
|
||||
* yourformat/config.php
|
||||
|
||||
Configuration file, mainly controlling default blocks for the format.
|
||||
* yourformat/config.php
|
||||
|
||||
Configuration file, mainly controlling default blocks for the format.
|
||||
See existing formats for examples.
|
||||
|
||||
|
||||
* yourformat/lang/en_utf8/format_yourformat.php
|
||||
|
||||
Language file containing basic language strings for your format. Here
|
||||
is a minimal language file:
|
||||
|
||||
|
||||
<?php
|
||||
$string['formatyourformat']='Your format'; // Name to display for format
|
||||
$string['nameyourformat']='section'; // Name of a section within your format
|
||||
@ -37,20 +37,20 @@ $string['nameyourformat']='section'; // Name of a section within your format
|
||||
|
||||
The first string is used in the dropdown menu of course settings. The second
|
||||
is used when editing an activity within a course of your format.
|
||||
|
||||
Note that existing formats store their language strings in the main
|
||||
|
||||
Note that existing formats store their language strings in the main
|
||||
moodle.php, which you can also do, but this separate file is recommended
|
||||
for contributed formats.
|
||||
|
||||
|
||||
You can also store other strings in this file if you wish. They can be
|
||||
accessed as follows, for example to get the section name:
|
||||
|
||||
|
||||
get_string('nameyourformat','format_yourformat');
|
||||
|
||||
|
||||
Of course you can have other folders as well as just English if you want
|
||||
to provide multiple languages.
|
||||
|
||||
|
||||
|
||||
|
||||
Optional files (database access)
|
||||
--------------------------------
|
||||
|
||||
@ -61,17 +61,17 @@ visit the admin page.
|
||||
|
||||
Database table definitions. Use your format name at the start of the table
|
||||
names to increase the chance that they are unique.
|
||||
|
||||
|
||||
* yourformat/db/upgrade.php
|
||||
|
||||
Database upgrade instructions. Similar to other upgrade.php files, so look
|
||||
at those for modules etc. if you want to see.
|
||||
|
||||
at those for modules etc. if you want to see.
|
||||
|
||||
The function must look like:
|
||||
|
||||
function xmldb_format_yourformat_upgrade($oldversion) {
|
||||
|
||||
function xmldb_format_yourformat_upgrade($oldversion) {
|
||||
...
|
||||
|
||||
|
||||
* yourformat/version.php
|
||||
|
||||
Required if you use database tables.
|
||||
@ -81,7 +81,7 @@ visit the admin page.
|
||||
$plugin->requires = 2006092801; // Required Moodle version
|
||||
?>
|
||||
|
||||
|
||||
|
||||
Optional files (backup)
|
||||
-----------------------
|
||||
|
||||
@ -94,44 +94,44 @@ the course. You can't back up the course format data independently.
|
||||
|
||||
function yourformat_backup_format_data($bf,$preferences) {
|
||||
...
|
||||
|
||||
|
||||
* yourformat/restorelib.php
|
||||
|
||||
Similar to restore code for other plugins. Must have a function:
|
||||
|
||||
|
||||
function yourformat_restore_format_data($restore,$data) {
|
||||
...
|
||||
|
||||
|
||||
($data is the xmlized data underneath FORMATDATA in the backup XML file.
|
||||
Do print_object($data); while testing to see how it looks.)
|
||||
|
||||
|
||||
Optional file (capabilities)
|
||||
|
||||
|
||||
Optional file (capabilities)
|
||||
----------------------------
|
||||
|
||||
|
||||
If this file exists, Moodle refreshes your format's capabilities
|
||||
(checks that they are all included in the database) whenever you increase
|
||||
the version in yourformat/version.php.
|
||||
|
||||
|
||||
* yourformat/db/access.php
|
||||
|
||||
Contains capability entries similar to other access.php files.
|
||||
|
||||
Contains capability entries similar to other access.php files.
|
||||
|
||||
The array definition must look like:
|
||||
|
||||
$format_yourformat_capabilities = array(
|
||||
|
||||
$format_yourformat_capabilities = array(
|
||||
...
|
||||
|
||||
Format names must look like:
|
||||
|
||||
|
||||
Format names must look like:
|
||||
|
||||
format/yourformat:specialpower
|
||||
|
||||
|
||||
Capability definitions in your language file must look like:
|
||||
|
||||
|
||||
$string['yourformat:specialpower']='Revolutionise the world';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Optional file (styles)
|
||||
----------------------
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //$Id$
|
||||
<?php
|
||||
//
|
||||
// Optional course format configuration file
|
||||
//
|
||||
@ -8,4 +8,4 @@
|
||||
// The default blocks layout for this course format:
|
||||
$format['defaultblocks'] = ':news_items,recent_activity,calendar_upcoming';
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
// format.php - course format featuring single activity
|
||||
// included from view.php
|
||||
|
||||
@ -12,6 +12,6 @@
|
||||
$moduleformat = $module.'_course_format_display';
|
||||
if (function_exists($moduleformat)) {
|
||||
$moduleformat($USER,$course);
|
||||
} else {
|
||||
} else {
|
||||
echo $OUTPUT->notification('The module '. $module. ' does not support single activity course format');
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ function callback_scorm_display_content() {
|
||||
return false;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //$Id$
|
||||
<?php
|
||||
//
|
||||
// Optional course format configuration file
|
||||
//
|
||||
@ -8,4 +8,4 @@
|
||||
// The default blocks layout for this course format:
|
||||
$format['defaultblocks'] = ':search_forums,calendar_upcoming,social_activities,recent_activity,admin,course_list';
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
// format.php - course format featuring social forum
|
||||
// included from view.php
|
||||
|
||||
|
@ -80,4 +80,4 @@ function callback_social_display_content() {
|
||||
return false;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -7,4 +7,4 @@
|
||||
$CFG->ajaxcapable = true;
|
||||
$CFG->ajaxtestedbrowsers = array('MSIE' => 6.0, 'Gecko' => 20061111);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -2,10 +2,9 @@
|
||||
//
|
||||
// Optional course format configuration file
|
||||
//
|
||||
// This file contains any specific configuration settings for the
|
||||
// This file contains any specific configuration settings for the
|
||||
// format.
|
||||
//
|
||||
// The default blocks layout for this course format:
|
||||
$format['defaultblocks'] = ':search_forums,news_items,calendar_upcoming,recent_activity';
|
||||
//
|
||||
?>
|
@ -4,25 +4,25 @@
|
||||
// Included from "view.php"
|
||||
/**
|
||||
* Evaluation topics format for course display - NO layout tables, for accessibility, etc.
|
||||
*
|
||||
* A duplicate course format to enable the Moodle development team to evaluate
|
||||
* CSS for the multi-column layout in place of layout tables.
|
||||
*
|
||||
* A duplicate course format to enable the Moodle development team to evaluate
|
||||
* CSS for the multi-column layout in place of layout tables.
|
||||
* Less risk for the Moodle 1.6 beta release.
|
||||
* 1. Straight copy of topics/format.php
|
||||
* 2. Replace <table> and <td> with DIVs; inline styles.
|
||||
* 3. Reorder columns so that in linear view content is first then blocks;
|
||||
* styles to maintain original graphical (side by side) view.
|
||||
*
|
||||
* Target: 3-column graphical view using relative widths for pixel screen sizes
|
||||
* Target: 3-column graphical view using relative widths for pixel screen sizes
|
||||
* 800x600, 1024x768... on IE6, Firefox. Below 800 columns will shift downwards.
|
||||
*
|
||||
*
|
||||
* http://www.maxdesign.com.au/presentation/em/ Ideal length for content.
|
||||
* http://www.svendtofte.com/code/max_width_in_ie/ Max width in IE.
|
||||
*
|
||||
* @copyright © 2006 The Open University
|
||||
* @author N.D.Freear@open.ac.uk, and others.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
* @package
|
||||
* @package
|
||||
*/
|
||||
//TODO (nfreear): Accessibility: evaluation, lang/en_utf8/moodle.php: $string['formattopicscss']
|
||||
|
||||
|
@ -70,4 +70,4 @@ function callback_topics_definition() {
|
||||
function callback_topics_request_key() {
|
||||
return 'topic';
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -7,4 +7,4 @@
|
||||
$CFG->ajaxcapable = true;
|
||||
$CFG->ajaxtestedbrowsers = array('MSIE' => 6.0, 'Gecko' => 20061111);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -2,10 +2,9 @@
|
||||
//
|
||||
// Optional course format configuration file
|
||||
//
|
||||
// This file contains any specific configuration settings for the
|
||||
// This file contains any specific configuration settings for the
|
||||
// format.
|
||||
//
|
||||
// The default blocks layout for this course format:
|
||||
$format['defaultblocks'] = ':search_forums,news_items,calendar_upcoming,recent_activity';
|
||||
//
|
||||
?>
|
@ -1,27 +1,27 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
// Display the whole course as "weeks" made of of modules
|
||||
// Included from "view.php"
|
||||
/**
|
||||
* Evaluation weekly format for course display - NO layout tables, for accessibility, etc.
|
||||
*
|
||||
* A duplicate course format to enable the Moodle development team to evaluate
|
||||
* CSS for the multi-column layout in place of layout tables.
|
||||
*
|
||||
* A duplicate course format to enable the Moodle development team to evaluate
|
||||
* CSS for the multi-column layout in place of layout tables.
|
||||
* Less risk for the Moodle 1.6 beta release.
|
||||
* 1. Straight copy of weeks/format.php
|
||||
* 2. Replace <table> and <td> with DIVs; inline styles.
|
||||
* 3. Reorder columns so that in linear view content is first then blocks;
|
||||
* styles to maintain original graphical (side by side) view.
|
||||
*
|
||||
* Target: 3-column graphical view using relative widths for pixel screen sizes
|
||||
* Target: 3-column graphical view using relative widths for pixel screen sizes
|
||||
* 800x600, 1024x768... on IE6, Firefox. Below 800 columns will shift downwards.
|
||||
*
|
||||
*
|
||||
* http://www.maxdesign.com.au/presentation/em/ Ideal length for content.
|
||||
* http://www.svendtofte.com/code/max_width_in_ie/ Max width in IE.
|
||||
*
|
||||
* @copyright © 2006 The Open University
|
||||
* @author N.D.Freear@open.ac.uk, and others.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
* @package
|
||||
* @package
|
||||
*/
|
||||
//TODO (nfreear): Accessibility: evaluation, lang/en_utf8/moodle.php: $string['formatweekscss']
|
||||
|
||||
@ -86,9 +86,9 @@
|
||||
// Note, 'right side' is BEFORE content.
|
||||
echo '<li id="section-0" class="section main" >';
|
||||
echo '<div class="left side"> </div>';
|
||||
echo '<div class="right side" > </div>';
|
||||
echo '<div class="right side" > </div>';
|
||||
echo '<div class="content">';
|
||||
|
||||
|
||||
echo '<div class="summary">';
|
||||
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
@ -103,7 +103,7 @@
|
||||
' class="icon edit" alt="'.$streditsummary.'" /></a></p>';
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
|
||||
print_section($course, $thissection, $mods, $modnamesused);
|
||||
|
||||
if ($PAGE->user_is_editing()) {
|
||||
@ -177,7 +177,7 @@
|
||||
|
||||
// Note, 'right side' is BEFORE content.
|
||||
echo '<div class="right side">';
|
||||
|
||||
|
||||
if ($displaysection == $section) {
|
||||
echo '<a href="view.php?id='.$course->id.'&week=0#section-'.$section.'" title="'.$strshowallweeks.'">'.
|
||||
'<img src="'.$OUTPUT->old_icon_url('i/all') . '" class="icon wkall" alt="'.$strshowallweeks.'" /></a><br />';
|
||||
|
@ -71,4 +71,4 @@ function callback_weeks_definition() {
|
||||
function callback_weeks_request_key() {
|
||||
return 'week';
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -71,4 +71,4 @@ foreach ($imports as $import => $importdir) {
|
||||
}
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
require_once($CFG->libdir.'/formslib.php');
|
||||
|
||||
@ -57,4 +57,4 @@ class course_import_activities_form_2 extends moodleform {
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -104,4 +104,3 @@ require_once('mod.php');
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
@ -97,4 +97,4 @@
|
||||
if (!empty($table)) {
|
||||
echo $OUTPUT->table($table);
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
require_once($CFG->libdir.'/formslib.php');
|
||||
|
||||
@ -34,4 +34,4 @@ class course_import_groups_form extends moodleform {
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -232,4 +232,3 @@ function my_file_get_contents($filename, $use_include_path = 0) {
|
||||
return $data;
|
||||
}
|
||||
|
||||
?>
|
@ -53,4 +53,3 @@ echo $OUTPUT->box_end();
|
||||
|
||||
echo '</p>';
|
||||
|
||||
?>
|
@ -12,7 +12,7 @@
|
||||
onFocus="getElementById('studentform').add.disabled=true;
|
||||
getElementById('studentform').remove.disabled=false;
|
||||
getElementById('studentform').addselect.selectedIndex=-1;">
|
||||
<?php
|
||||
<?php
|
||||
foreach ($alreadycourses as $course) {
|
||||
echo "<option value=\"$course->id\">".course_format_name($course,60)."</option>\n";
|
||||
}
|
||||
@ -34,7 +34,7 @@
|
||||
getElementById('studentform').remove.disabled=true;
|
||||
getElementById('studentform').removeselect.selectedIndex=-1;">
|
||||
<?php
|
||||
|
||||
|
||||
if (!empty($searchcourses)) {
|
||||
echo "<optgroup label=\"$strsearchresults (" . count($searchcourses) . ")\">\n";
|
||||
foreach ($searchcourses as $course) {
|
||||
@ -57,7 +57,7 @@
|
||||
</select>
|
||||
<br />
|
||||
<label for="searchtext" class="accesshide"><?php p($strsearch) ?></label>
|
||||
<input type="text" name="searchtext" id="searchtext" size="30" value="<?php p($searchtext) ?>"
|
||||
<input type="text" name="searchtext" id="searchtext" size="30" value="<?php p($searchtext) ?>"
|
||||
onFocus ="getElementById('studentform').add.disabled=true;
|
||||
getElementById('studentform').remove.disabled=true;
|
||||
getElementById('studentform').removeselect.selectedIndex=-1;
|
||||
|
@ -167,4 +167,4 @@
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
/// Displays external information about a course
|
||||
|
||||
@ -94,4 +94,4 @@
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (!confirm_sesskey()) {
|
||||
|
||||
if (strpos($jump, $CFG->wwwroot) === 0) { // Anything on this site
|
||||
redirect(new moodle_url(urldecode($jump)));
|
||||
} else if (preg_match('/^[a-z]+\.php\?/', $jump)) {
|
||||
} else if (preg_match('/^[a-z]+\.php\?/', $jump)) {
|
||||
redirect(new moodle_url(urldecode($jump)));
|
||||
}
|
||||
|
||||
@ -44,4 +44,3 @@ if(isset($_SERVER['HTTP_REFERER'])) {
|
||||
redirect(new moodle_url($_SERVER['HTTP_REFERER'])); // Return to sender, just in case
|
||||
}
|
||||
|
||||
?>
|
@ -406,7 +406,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
|
||||
echo "<td class=\"cell c2\">\n";
|
||||
$link = html_link::make("/iplookup/index.php?ip=$log->ip&user=$log->userid", $log->ip);
|
||||
$link->add_action(new popup_action('click', $link->url, 'iplookup', array('height' => 440, 'width' => 700)));
|
||||
echo $OUTPUT->link($link);
|
||||
echo $OUTPUT->link($link);
|
||||
echo "</td>\n";
|
||||
$fullname = fullname($log, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id)));
|
||||
echo "<td class=\"cell c3\">\n";
|
||||
@ -419,7 +419,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
|
||||
} else {
|
||||
$link = html_link::make(make_log_url($log->module,$log->url), $displayaction);
|
||||
$link->add_action(new popup_action('click', $link->url, 'fromloglive'), array('height' => 440, 'width' => 700));
|
||||
echo $OUTPUT->link($link);
|
||||
echo $OUTPUT->link($link);
|
||||
}
|
||||
echo "</td>\n";;
|
||||
echo "<td class=\"cell c5\">{$log->info}</td>\n";
|
||||
@ -518,7 +518,7 @@ function print_mnet_log($hostid, $course, $user=0, $date=0, $order="l.time ASC",
|
||||
echo "<td class=\"r$row c2\" >\n";
|
||||
$link = html_link::make("/iplookup/index.php?ip=$log->ip&user=$log->userid", $log->ip);
|
||||
$link->add_action(new popup_action('click', $link->url, 'iplookup', array('height' => 400, 'width' => 700)));
|
||||
echo $OUTPUT->link($link);
|
||||
echo $OUTPUT->link($link);
|
||||
echo "</td>\n";
|
||||
$fullname = fullname($log, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id)));
|
||||
echo "<td class=\"r$row c3\" >\n";
|
||||
@ -1655,14 +1655,14 @@ function print_section_add_menus($course, $section, $modnames, $vertical=false,
|
||||
if (!empty($resources)) {
|
||||
$select = html_select::make_popup_form($popupurl, 'add', $resources, "ressection$section", null);
|
||||
$select->nothinglabel = $straddresource;
|
||||
$select->set_help_icon('resource/types', $straddresource);
|
||||
$select->set_help_icon('resource/types', $straddresource);
|
||||
$output .= $OUTPUT->select($select);
|
||||
}
|
||||
|
||||
if (!empty($activities)) {
|
||||
$select = html_select::make_popup_form($popupurl, 'add', $activities, "section$section", null);
|
||||
$select->nothinglabel = $straddactivity;
|
||||
$select->set_help_icon('mods', $straddactivity);
|
||||
$select->set_help_icon('mods', $straddactivity);
|
||||
$output .= $OUTPUT->select($select);
|
||||
}
|
||||
|
||||
@ -2010,7 +2010,7 @@ function print_category_info($category, $depth, $showcourses = false) {
|
||||
$link = html_link::make('/course/info.php?id='.$course->id, '<img alt="'.$strsummary.'" src="'.$OUTPUT->old_icon_url('i/info') . '" />');
|
||||
$link->add_action(new popup_action('click', $link->url, 'courseinfo', array('height' => 400, 'width' => 500)));
|
||||
$link->title = $strsummary;
|
||||
echo $OUTPUT->link($link);
|
||||
echo $OUTPUT->link($link);
|
||||
} else {
|
||||
echo '<img alt="" style="width:18px;height:16px;" src="'.$OUTPUT->old_icon_url('spacer') . '" />';
|
||||
}
|
||||
@ -3700,7 +3700,7 @@ class course_request {
|
||||
// Notify the admin if required.
|
||||
if ($CFG->courserequestnotify) {
|
||||
$users = get_users_from_config($CFG->courserequestnotify, 'moodle/site:approvecourse');
|
||||
|
||||
|
||||
$a = new stdClass;
|
||||
$a->link = "$CFG->wwwroot/course/pending.php";
|
||||
$a->user = fullname($USER);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
// Allows a teacher/admin to login as another user (in stealth mode)
|
||||
|
||||
require_once('../config.php');
|
||||
@ -80,4 +80,4 @@
|
||||
notice($strloggedinas, "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
@ -324,4 +324,4 @@ if ((!empty($movetosection) or !empty($moveto)) and confirm_sesskey()) {
|
||||
print_error('unknowaction');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -613,14 +613,14 @@
|
||||
$currenttab = 'update';
|
||||
require($CFG->dirroot.'/'.$CFG->admin.'/roles/tabs.php');
|
||||
}
|
||||
|
||||
|
||||
$helpicon = new moodle_help_icon();
|
||||
$helpicon->page = 'mods';
|
||||
$helpicon->text = $pageheading;
|
||||
$helpicon->module = $module->name;
|
||||
echo $OUTPUT->heading_with_help($helpicon, $OUTPUT->mod_icon_url('icon', $module->name));
|
||||
|
||||
|
||||
$mform->display();
|
||||
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //$Id$
|
||||
<?php
|
||||
require_once ($CFG->libdir.'/formslib.php');
|
||||
if (!empty($CFG->enablecompletion) or !empty($CFG->enableavailability)) {
|
||||
require_once($CFG->libdir.'/completionlib.php');
|
||||
@ -59,7 +59,7 @@ abstract class moodleform_mod extends moodleform {
|
||||
} else {
|
||||
$this->context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
}
|
||||
|
||||
|
||||
// Guess module name
|
||||
$matches = array();
|
||||
if (!preg_match('/^mod_([^_]+)_mod_form$/', get_class($this), $matches)) {
|
||||
@ -198,10 +198,10 @@ abstract class moodleform_mod extends moodleform {
|
||||
get_string('completedwarningtext', 'completion', $completedcount)),
|
||||
'unlockcompletion');
|
||||
$mform->setHelpButton('completedwarning', array('completionlocked', get_string('help_completionlocked', 'completion'), 'completion'));
|
||||
|
||||
|
||||
$freeze = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($freeze) {
|
||||
$mform->freeze('completion');
|
||||
@ -212,7 +212,7 @@ abstract class moodleform_mod extends moodleform {
|
||||
$mform->freeze('completionusegrade');
|
||||
}
|
||||
$mform->freeze($this->_customcompletionelements);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Availability conditions
|
||||
@ -273,7 +273,7 @@ abstract class moodleform_mod extends moodleform {
|
||||
$errors['cmidnumber'] = get_string('idnumbertaken');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Completion: Don't let them choose automatic completion without turning
|
||||
// on some conditions
|
||||
if (array_key_exists('completion', $data) && $data['completion']==COMPLETION_TRACKING_AUTOMATIC) {
|
||||
@ -284,12 +284,12 @@ abstract class moodleform_mod extends moodleform {
|
||||
}
|
||||
|
||||
// Conditions: Don't let them set dates which make no sense
|
||||
if (array_key_exists('availablefrom', $data) &&
|
||||
$data['availablefrom'] && $data['availableuntil'] &&
|
||||
if (array_key_exists('availablefrom', $data) &&
|
||||
$data['availablefrom'] && $data['availableuntil'] &&
|
||||
$data['availablefrom'] > $data['availableuntil']) {
|
||||
$errors['availablefrom'] = get_string('badavailabledates', 'condition');
|
||||
}
|
||||
|
||||
|
||||
return $errors;
|
||||
}
|
||||
|
||||
@ -305,7 +305,7 @@ abstract class moodleform_mod extends moodleform {
|
||||
$default_values = (array)$default_values;
|
||||
}
|
||||
|
||||
$this->data_preprocessing($default_values);
|
||||
$this->data_preprocessing($default_values);
|
||||
parent::set_data($default_values);
|
||||
}
|
||||
|
||||
@ -401,14 +401,14 @@ abstract class moodleform_mod extends moodleform {
|
||||
$grouparray[] =& $mform->createElement('static', '', '','% '.get_string('grade_upto','condition').' ');
|
||||
$grouparray[] =& $mform->createElement('text', 'conditiongrademax','',array('size'=>3));
|
||||
$grouparray[] =& $mform->createElement('static', '', '','%');
|
||||
$mform->setType('conditiongrademin',PARAM_FLOAT);
|
||||
$mform->setType('conditiongrademax',PARAM_FLOAT);
|
||||
$group = $mform->createElement('group','conditiongradegroup',
|
||||
$mform->setType('conditiongrademin',PARAM_FLOAT);
|
||||
$mform->setType('conditiongrademax',PARAM_FLOAT);
|
||||
$group = $mform->createElement('group','conditiongradegroup',
|
||||
get_string('gradecondition', 'condition'),$grouparray);
|
||||
|
||||
// Get version with condition info and store it so we don't ask
|
||||
// twice
|
||||
if(!empty($this->_cm)) {
|
||||
if(!empty($this->_cm)) {
|
||||
$ci = new condition_info($this->_cm, CONDITION_MISSING_EXTRATABLE);
|
||||
$this->_cm = $ci->get_full_course_module();
|
||||
$count = count($this->_cm->conditionsgrade)+1;
|
||||
@ -442,10 +442,10 @@ abstract class moodleform_mod extends moodleform {
|
||||
COMPLETION_COMPLETE_PASS=>get_string('completion_pass','condition'),
|
||||
COMPLETION_COMPLETE_FAIL=>get_string('completion_fail','condition'));
|
||||
|
||||
$grouparray = array();
|
||||
$grouparray = array();
|
||||
$grouparray[] =& $mform->createElement('select','conditionsourcecmid','',$completionoptions);
|
||||
$grouparray[] =& $mform->createElement('select','conditionrequiredcompletion','',$completionvalues);
|
||||
$group = $mform->createElement('group','conditioncompletiongroup',
|
||||
$group = $mform->createElement('group','conditioncompletiongroup',
|
||||
get_string('completioncondition', 'condition'),$grouparray);
|
||||
|
||||
$count = empty($this->_cm) ? 1 : count($this->_cm->conditionscompletion)+1;
|
||||
@ -455,15 +455,15 @@ abstract class moodleform_mod extends moodleform {
|
||||
$mform->setHelpButton('conditioncompletiongroup[0]', array('completioncondition', get_string('help_completioncondition', 'condition'), 'condition'));
|
||||
}
|
||||
|
||||
// Do we display availability info to students?
|
||||
$mform->addElement('select', 'showavailability', get_string('showavailability', 'condition'),
|
||||
array(CONDITION_STUDENTVIEW_SHOW=>get_string('showavailability_show', 'condition'),
|
||||
// Do we display availability info to students?
|
||||
$mform->addElement('select', 'showavailability', get_string('showavailability', 'condition'),
|
||||
array(CONDITION_STUDENTVIEW_SHOW=>get_string('showavailability_show', 'condition'),
|
||||
CONDITION_STUDENTVIEW_HIDE=>get_string('showavailability_hide', 'condition')));
|
||||
$mform->setDefault('showavailability', CONDITION_STUDENTVIEW_SHOW);
|
||||
$mform->setDefault('showavailability', CONDITION_STUDENTVIEW_SHOW);
|
||||
$mform->setHelpButton('showavailability', array('showavailability', get_string('help_showavailability', 'condition'), 'condition'));
|
||||
}
|
||||
|
||||
// Conditional activities: completion tracking section
|
||||
// Conditional activities: completion tracking section
|
||||
if(!isset($completion)) {
|
||||
$completion = new completion_info($COURSE);
|
||||
}
|
||||
@ -477,8 +477,8 @@ abstract class moodleform_mod extends moodleform {
|
||||
$mform->addElement('hidden', 'completionunlocked', 0);
|
||||
$mform->setType('completionunlocked', PARAM_INT);
|
||||
|
||||
$mform->addElement('select', 'completion', get_string('completion', 'completion'),
|
||||
array(COMPLETION_TRACKING_NONE=>get_string('completion_none', 'completion'),
|
||||
$mform->addElement('select', 'completion', get_string('completion', 'completion'),
|
||||
array(COMPLETION_TRACKING_NONE=>get_string('completion_none', 'completion'),
|
||||
COMPLETION_TRACKING_MANUAL=>get_string('completion_manual', 'completion')));
|
||||
$mform->setHelpButton('completion', array('completion', get_string('help_completion', 'completion'), 'completion'));
|
||||
$mform->setDefault('completion', $this->_features->defaultcompletion
|
||||
@ -507,7 +507,7 @@ abstract class moodleform_mod extends moodleform {
|
||||
// Automatic completion according to module-specific rules
|
||||
$this->_customcompletionelements = $this->add_completion_rules();
|
||||
foreach ($this->_customcompletionelements as $element) {
|
||||
$mform->disabledIf($element, 'completion', 'ne', COMPLETION_TRACKING_AUTOMATIC);
|
||||
$mform->disabledIf($element, 'completion', 'ne', COMPLETION_TRACKING_AUTOMATIC);
|
||||
}
|
||||
|
||||
$gotcompletionoptions = $gotcompletionoptions ||
|
||||
@ -518,17 +518,17 @@ abstract class moodleform_mod extends moodleform {
|
||||
$mform->getElement('completion')->addOption(
|
||||
get_string('completion_automatic', 'completion'),
|
||||
COMPLETION_TRACKING_AUTOMATIC);
|
||||
}
|
||||
}
|
||||
|
||||
// Completion expected at particular date? (For progress tracking)
|
||||
$mform->addElement('date_selector', 'completionexpected', get_string('completionexpected', 'completion'), array('optional'=>true));
|
||||
$mform->setHelpButton('completionexpected', array('completionexpected', get_string('help_completionexpected', 'completion'), 'completion'));
|
||||
$mform->disabledIf('completionexpected', 'completion', 'eq', COMPLETION_TRACKING_NONE);
|
||||
$mform->disabledIf('completionexpected', 'completion', 'eq', COMPLETION_TRACKING_NONE);
|
||||
}
|
||||
|
||||
$this->standard_hidden_coursemodule_elements();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Can be overridden to add custom completion rules if the module wishes
|
||||
* them. If overriding this, you should also override completion_rule_enabled.
|
||||
@ -640,4 +640,4 @@ abstract class moodleform_mod extends moodleform {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -111,10 +111,10 @@ if (empty($pending)) {
|
||||
$keyicon->alt = $strrequireskey;
|
||||
$keyicon->add_class('icon');
|
||||
$keyicon = $OUTPUT->image($keyicon);
|
||||
|
||||
|
||||
foreach ($pending as $course) {
|
||||
$course = new course_request($course);
|
||||
|
||||
|
||||
// Check here for shortname collisions and warn about them.
|
||||
$course->check_shortname_collision();
|
||||
|
||||
|
@ -304,4 +304,3 @@ function compare_activities_by_time_asc($a, $b) {
|
||||
return ($a->timestamp < $b->timestamp) ? -1 : 1;
|
||||
}
|
||||
|
||||
?>
|
@ -56,7 +56,7 @@ class recent_form extends moodleform {
|
||||
} else {
|
||||
$groups = '';
|
||||
}
|
||||
|
||||
|
||||
if ($courseusers = get_users_by_capability($context, 'moodle/course:view', 'u.id, u.firstname, u.lastname', 'lastname ASC, firstname DESC', '', '', $groups)) {
|
||||
foreach ($courseusers as $courseuser) {
|
||||
$options[$courseuser->id] = fullname($courseuser, $viewfullnames);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
// Display all the interfaces for importing data into a specific course
|
||||
|
||||
require_once('../config.php');
|
||||
@ -40,4 +40,4 @@
|
||||
}
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -65,4 +65,4 @@ $coursereport_log_capabilities = array(
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -212,4 +212,3 @@ switch ($type) {
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
// Displays different views of the logs.
|
||||
|
||||
require_once('../../../config.php');
|
||||
@ -157,4 +157,4 @@
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
exit;
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
// Display link to live logs in separate window
|
||||
|
||||
require_once('../../../config.php');
|
||||
@ -37,9 +37,9 @@
|
||||
echo $OUTPUT->container_start('info');
|
||||
$link = html_link::make('/course/report/log/live.php?id='. $course->id, get_string('livelogs'));
|
||||
$link->add_action(new popup_action('click', $link->url, 'livelog', array('height' => 500, 'width' => 800)));
|
||||
echo $OUTPUT->link($link);
|
||||
echo $OUTPUT->link($link);
|
||||
echo $OUTPUT->container_end();
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
||||
|
||||
|
@ -28,7 +28,7 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
|
||||
|
||||
global $USER, $CFG, $SITE, $DB, $OUTPUT, $SESSION;
|
||||
require_once $CFG->dirroot.'/mnet/peer.php';
|
||||
|
||||
|
||||
$mnet_peer = new mnet_peer();
|
||||
$mnet_peer->set_id($hostid);
|
||||
|
||||
@ -41,9 +41,9 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
|
||||
if ($numcourses < COURSE_MAX_COURSES_PER_DROPDOWN && !$showcourses) {
|
||||
$showcourses = 1;
|
||||
}
|
||||
|
||||
|
||||
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
|
||||
|
||||
|
||||
// Context for remote data is always SITE
|
||||
// Groups for remote data are always OFF
|
||||
if ($hostid == $CFG->mnet_localhost_id) {
|
||||
@ -254,7 +254,7 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
|
||||
echo "<input type=\"hidden\" name=\"showusers\" value=\"$showusers\" />\n";
|
||||
echo "<input type=\"hidden\" name=\"showcourses\" value=\"$showcourses\" />\n";
|
||||
if (has_capability('coursereport/log:view', $sitecontext) && $showcourses) {
|
||||
$cid = empty($course->id)? '1' : $course->id;
|
||||
$cid = empty($course->id)? '1' : $course->id;
|
||||
$select = html_select::make($dropdown, "host_course", $hostid.'/'.$cid);
|
||||
$select->nested = true;
|
||||
echo $OUTPUT->select($select);
|
||||
@ -299,16 +299,16 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select
|
||||
."&id=$course->id&date=$selecteddate&modid=$selectedactivity&showusers=1&showcourses=$showcourses";
|
||||
print_string('logtoomanyusers','moodle',$a);
|
||||
}
|
||||
|
||||
|
||||
echo $OUTPUT->select(html_select::make($dates, "date", $selecteddate, get_string("alldays")));
|
||||
|
||||
|
||||
$select = html_select::make($activities, "modid", $selectedactivity);
|
||||
$select->nothinglabel = get_string("allactivities");
|
||||
$select->nothingvalue = '';
|
||||
echo $OUTPUT->select($select);
|
||||
|
||||
|
||||
echo $OUTPUT->select(html_select::make($actions, 'modaction', $modaction, get_string("allactions")));
|
||||
|
||||
|
||||
$logformats = array('showashtml' => get_string('displayonpage'),
|
||||
'downloadascsv' => get_string('downloadtext'),
|
||||
'downloadasods' => get_string('downloadods'),
|
||||
@ -329,10 +329,10 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate='today'
|
||||
if ($numcourses < COURSE_MAX_COURSES_PER_DROPDOWN && !$showcourses) {
|
||||
$showcourses = 1;
|
||||
}
|
||||
|
||||
|
||||
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
|
||||
|
||||
/// Setup for group handling.
|
||||
if ($course->groupmode == SEPARATEGROUPS and !has_capability('moodle/site:accessallgroups', $context)) {
|
||||
$selectedgroup = -1;
|
||||
@ -367,7 +367,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate='today'
|
||||
// this may be a lot of users :-(
|
||||
$courseusers = $DB->get_records('user', array('deleted'=>0), 'lastaccess DESC', 'id, firstname, lastname, idnumber');
|
||||
}
|
||||
|
||||
|
||||
if (count($courseusers) < COURSE_MAX_USERS_PER_DROPDOWN && !$showusers) {
|
||||
$showusers = 1;
|
||||
}
|
||||
@ -530,19 +530,19 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate='today'
|
||||
print_string('logtoomanyusers','moodle',$a);
|
||||
}
|
||||
echo $OUTPUT->select(html_select::make($dates, "date", $selecteddate, get_string("alldays")));
|
||||
|
||||
|
||||
$select = html_select::make($activities, "modid", $selectedactivity);
|
||||
$select->nothinglabel = get_string("allactivities");
|
||||
$select->nothingvalue = '';
|
||||
echo $OUTPUT->select($select);
|
||||
|
||||
|
||||
echo $OUTPUT->select(html_select::make($actions, 'modaction', $modaction, get_string("allactions")));
|
||||
|
||||
|
||||
$logformats = array('showashtml' => get_string('displayonpage'),
|
||||
'downloadascsv' => get_string('downloadtext'),
|
||||
'downloadasods' => get_string('downloadods'),
|
||||
'downloadasexcel' => get_string('downloadexcel'));
|
||||
|
||||
|
||||
echo $OUTPUT->select(html_select::make($logformats, 'logformat', $logformat, false));
|
||||
echo '<input type="submit" value="'.get_string('gettheselogs').'" />';
|
||||
echo '</div>';
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
// Displays live view of recent logs
|
||||
|
||||
require_once("../../../config.php");
|
||||
@ -16,12 +16,12 @@
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
require_capability('coursereport/log:viewlive', $context);
|
||||
|
||||
add_to_log($course->id, "course", "report live", "report/log/live.php?id=$course->id", $course->id);
|
||||
add_to_log($course->id, "course", "report live", "report/log/live.php?id=$course->id", $course->id);
|
||||
|
||||
session_get_instance()->write_close();
|
||||
|
||||
// we override the default framename so header/footer
|
||||
// links open in a new window
|
||||
// links open in a new window
|
||||
if (empty($CFG->framename) || $CFG->framename==='_top') {
|
||||
$CFG->framename = '_blank';
|
||||
}
|
||||
@ -46,4 +46,4 @@
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
@ -18,7 +18,7 @@
|
||||
echo '<p>';
|
||||
$link = html_link::make('/course/report/log/live.php?id='. $course->id, get_string('livelogs'));
|
||||
$link->add_action(new popup_action('click', $link->url, 'livelog', array('height' => 500, 'width' => 800)));
|
||||
echo $OUTPUT->link($link);
|
||||
echo $OUTPUT->link($link);
|
||||
echo '</p>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?PHP // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -26,4 +26,4 @@
|
||||
$plugin->version = 2007101504;
|
||||
$plugin->requires = 2007101532;
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -39,4 +39,4 @@ $coursereport_outline_capabilities = array(
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -160,4 +160,4 @@
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
@ -11,4 +11,3 @@
|
||||
echo "$activityreport</a>\n";
|
||||
echo '</p>';
|
||||
}
|
||||
?>
|
@ -1,4 +1,4 @@
|
||||
<?PHP // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -26,4 +26,4 @@
|
||||
$plugin->version = 2007101501;
|
||||
$plugin->requires = 2007101532;
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -39,4 +39,4 @@ $coursereport_participation_capabilities = array(
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
require_once('../../../config.php');
|
||||
require_once($CFG->dirroot.'/lib/tablelib.php');
|
||||
@ -13,7 +13,7 @@
|
||||
$action = optional_param('action', '', PARAM_ALPHA);
|
||||
$page = optional_param('page', 0, PARAM_INT); // which page to show
|
||||
$perpage = optional_param('perpage', DEFAULT_PAGE_SIZE, PARAM_INT); // how many per page
|
||||
|
||||
|
||||
$PAGE->set_url('course/report/participation/index.php', compact('id', 'roleid', 'instanceid', 'timefrom', 'page', 'perpage'));
|
||||
|
||||
if ($action != 'view' and $action != 'post') {
|
||||
@ -185,7 +185,7 @@
|
||||
}
|
||||
|
||||
list($actionsql, $params) = $DB->get_in_or_equal($actions, SQL_PARAMS_NAMED, 'action0');
|
||||
$actionsql = "l.action $actionsql";
|
||||
$actionsql = "l.action $actionsql";
|
||||
|
||||
$relatedcontexts = get_related_contexts_string($context);
|
||||
|
||||
@ -291,4 +291,4 @@
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
@ -11,4 +11,4 @@
|
||||
echo "$participationreport</a>\n";
|
||||
echo '</p>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?PHP // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -26,4 +26,4 @@
|
||||
$plugin->version = 2007101501;
|
||||
$plugin->requires = 2007101532;
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -39,4 +39,4 @@ $coursereport_progress_capabilities = array(
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -291,4 +291,4 @@ print '<ul class="progress-actions"><li><a href="index.php?course='.$course->id.
|
||||
get_string('excelcsvdownload','completion').'</a></li></ul>';
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //$Id$
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); // It must be included from a Moodle page
|
||||
@ -12,4 +12,4 @@
|
||||
echo '</p>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -3,7 +3,7 @@ var SVGNS='http://www.w3.org/2000/svg',XLINKNS='http://www.w3.org/1999/xlink';
|
||||
function textrotate_make_svg(el)
|
||||
{
|
||||
var string=el.firstChild.nodeValue;
|
||||
|
||||
|
||||
// Add absolute-positioned string (to measure length)
|
||||
var abs=document.createElement('div');
|
||||
abs.appendChild(document.createTextNode(string));
|
||||
@ -18,7 +18,7 @@ function textrotate_make_svg(el)
|
||||
var width=(textHeight*9)/8;
|
||||
svg.setAttribute('width',width);
|
||||
svg.setAttribute('height',textWidth+20);
|
||||
|
||||
|
||||
// Add text
|
||||
var text=document.createElementNS(SVGNS,'text');
|
||||
svg.appendChild(text);
|
||||
@ -27,7 +27,7 @@ function textrotate_make_svg(el)
|
||||
text.setAttribute('text-anchor','end');
|
||||
text.setAttribute('transform','rotate(90)');
|
||||
text.appendChild(document.createTextNode(string));
|
||||
|
||||
|
||||
// Is there an icon near the text?
|
||||
var icon=el.parentNode.firstChild;
|
||||
if(icon.nodeName.toLowerCase()=='img') {
|
||||
@ -41,7 +41,7 @@ function textrotate_make_svg(el)
|
||||
image.setAttribute('height',16);
|
||||
image.setAttributeNS(XLINKNS,'href',icon.src);
|
||||
svg.appendChild(image);
|
||||
}
|
||||
}
|
||||
|
||||
// Replace original content with this new SVG
|
||||
el.parentNode.insertBefore(svg,el);
|
||||
@ -59,7 +59,7 @@ function textrotate_init() {
|
||||
|
||||
elements=YAHOO.util.Dom.getElementsByClassName('completion-expected', 'div');
|
||||
for(var i=0;i<elements.length;i++)
|
||||
{
|
||||
{
|
||||
var el=elements[i];
|
||||
el.style.display='inline';
|
||||
var parent=el.parentNode;
|
||||
@ -81,5 +81,5 @@ function textrotate_init() {
|
||||
}
|
||||
}
|
||||
|
||||
YAHOO.util.Event.onDOMReady(textrotate_init);
|
||||
YAHOO.util.Event.onDOMReady(textrotate_init);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?PHP // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -26,4 +26,4 @@
|
||||
$plugin->version = 2007101500;
|
||||
$plugin->requires = 2007101532;
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -39,4 +39,4 @@ $coursereport_stats_capabilities = array(
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -181,4 +181,3 @@ if (empty($param->crosstab)) {
|
||||
|
||||
$graph->draw_stack();
|
||||
|
||||
?>
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
require_once('../../../config.php');
|
||||
require_once($CFG->dirroot.'/lib/statslib.php');
|
||||
@ -71,4 +71,4 @@
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php //$Id$
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
@ -15,4 +15,4 @@
|
||||
echo '</p>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
if (!defined('MOODLE_INTERNAL')) {
|
||||
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||
@ -225,4 +225,4 @@
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?PHP // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
@ -26,4 +26,4 @@
|
||||
$plugin->version = 2007101501;
|
||||
$plugin->requires = 2007101532;
|
||||
|
||||
?>
|
||||
|
||||
|
@ -55,7 +55,7 @@ $PAGE->set_heading($strtitle);
|
||||
if ($requestform->is_cancelled()){
|
||||
redirect($returnurl);
|
||||
|
||||
} else if ($data = $requestform->get_data()) {
|
||||
} else if ($data = $requestform->get_data()) {
|
||||
$request = course_request::create($data);
|
||||
|
||||
// and redirect back to the course listing.
|
||||
|
@ -141,4 +141,4 @@ class reject_request_form extends moodleform {
|
||||
$this->add_action_buttons(true, get_string('reject'));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -103,4 +103,4 @@ echo $OUTPUT->box(get_string('resetinfo'));
|
||||
$mform->display();
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
require_once $CFG->libdir.'/formslib.php';
|
||||
|
||||
class course_reset_form extends moodleform {
|
||||
|
@ -18,9 +18,9 @@
|
||||
/**
|
||||
* List of all resource type modules in course
|
||||
*
|
||||
* @package moodlecore
|
||||
* @package moodlecore
|
||||
* @copyright 2009 Petr Skoda (http://skodak.org)
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
require_once('../config.php');
|
||||
|
@ -212,4 +212,4 @@ switch($requestmethod) {
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -134,4 +134,3 @@ if ($scales = $DB->get_records("scale", array("courseid"=>0), "name ASC")) {
|
||||
echo $OUTPUT->close_window_button();
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
/// Displays external information about a course
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
$show = optional_param('show', 0, PARAM_INT);
|
||||
$blocklist = optional_param('blocklist', 0, PARAM_INT);
|
||||
$modulelist= optional_param('modulelist', '', PARAM_ALPHAEXT);
|
||||
|
||||
|
||||
$PAGE->set_url('course/search.php', compact('search', 'page', 'perpage', 'blocklist', 'modulelist', 'edit'));
|
||||
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
|
||||
$search = trim(strip_tags($search)); // trim & clean raw searched string
|
||||
@ -190,7 +190,7 @@
|
||||
|
||||
$form = new html_form();
|
||||
$form->url = new moodle_url("$CFG->wwwroot/course/search.php", array(
|
||||
'edit' => $edit,
|
||||
'edit' => $edit,
|
||||
'sesskey' => sesskey(),
|
||||
'search' => s($search, true),
|
||||
'page' => $page,
|
||||
@ -394,4 +394,4 @@
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -74,7 +74,7 @@ class course_external_test extends UnitTestCase {
|
||||
$course->shortname = "TestCourseForCourse";
|
||||
$course->idnumber = 123456789;
|
||||
$course = create_course($course);
|
||||
$this->course = $course;
|
||||
$this->course = $course;
|
||||
|
||||
}
|
||||
|
||||
@ -314,7 +314,7 @@ class course_external_test extends UnitTestCase {
|
||||
$course["id"] = $this->course->id;
|
||||
$params[] = $course;
|
||||
$activities = course_external::get_course_modules($params);
|
||||
|
||||
|
||||
$activities = course_external::get_course_activities($params);
|
||||
varlog($activities);
|
||||
chat_delete_instance($chatid);
|
||||
@ -331,4 +331,4 @@ class course_external_test extends UnitTestCase {
|
||||
}
|
||||
*/
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// //
|
||||
|
@ -83,4 +83,3 @@ if ($returnurl===false) {
|
||||
}
|
||||
redirect($returnurl);
|
||||
|
||||
?>
|
@ -81,4 +81,3 @@ if($fromajax) {
|
||||
redirect($backto);
|
||||
}
|
||||
|
||||
?>
|
@ -121,4 +121,3 @@ if ($userid) {
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
@ -390,4 +390,3 @@ function print_outline_row($mod, $instance, $result) {
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
?>
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
// Display the course home page.
|
||||
|
||||
@ -69,7 +69,7 @@
|
||||
}
|
||||
|
||||
//If course is hosted on an external server, redirect to corresponding
|
||||
//url with appropriate authentication attached as parameter
|
||||
//url with appropriate authentication attached as parameter
|
||||
if (file_exists($CFG->dirroot .'/course/externservercourse.php')) {
|
||||
include $CFG->dirroot .'/course/externservercourse.php';
|
||||
if (function_exists('extern_server_course')) {
|
||||
@ -141,7 +141,7 @@
|
||||
|
||||
|
||||
// AJAX-capable course format?
|
||||
$useajax = false;
|
||||
$useajax = false;
|
||||
$ajaxformatfile = $CFG->dirroot.'/course/format/'.$course->format.'/ajax.php';
|
||||
$bodytags = '';
|
||||
|
||||
@ -178,13 +178,13 @@
|
||||
$completion = new completion_info($course);
|
||||
if ($completion->is_enabled() && ajaxenabled()) {
|
||||
$PAGE->requires->yui_lib('connection')->asap();
|
||||
$PAGE->requires->js('course/completion.js')->asap();
|
||||
$PAGE->requires->js('course/completion.js')->asap();
|
||||
$PAGE->requires->js_function_call('completion_init')->on_dom_ready();
|
||||
$PAGE->requires->data_for_js('completion_strsaved', get_string('saved', 'completion'));
|
||||
$PAGE->requires->data_for_js('completion_strtitley', get_string('completion-title-manual-y', 'completion'));
|
||||
$PAGE->requires->data_for_js('completion_strtitlen', get_string('completion-title-manual-n', 'completion'));
|
||||
$PAGE->requires->data_for_js('completion_stralty', get_string('completion-alt-manual-y', 'completion'));
|
||||
$PAGE->requires->data_for_js('completion_straltn', get_string('completion-alt-manual-n', 'completion'));
|
||||
$PAGE->requires->data_for_js('completion_straltn', get_string('completion-alt-manual-n', 'completion'));
|
||||
}
|
||||
|
||||
// The "Editing On" button will be appearing only in the "main" course screen
|
||||
@ -242,12 +242,12 @@
|
||||
// Content wrapper end.
|
||||
echo "</div>\n\n";
|
||||
|
||||
// Use AJAX?
|
||||
// Use AJAX?
|
||||
if ($useajax && has_capability('moodle/course:manageactivities', $context)) {
|
||||
// At the bottom because we want to process sections and activities
|
||||
// after the relevant html has been generated. We're forced to do this
|
||||
// because of the way in which lib/ajax/ajaxcourse.js is written.
|
||||
|
||||
// because of the way in which lib/ajax/ajaxcourse.js is written.
|
||||
|
||||
echo '<script type="text/javascript" ';
|
||||
echo "src=\"{$CFG->wwwroot}/lib/ajax/ajaxcourse.js\"></script>\n";
|
||||
$COURSE->javascriptportal->print_javascript($course->id);
|
||||
@ -256,4 +256,4 @@
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
/// The Web service script that is called from the filepicker front end
|
||||
|
||||
|
@ -1,53 +1,53 @@
|
||||
<?PHP // $Id$
|
||||
<?php
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// This file contains a few configuration variables that control
|
||||
/// This file contains a few configuration variables that control
|
||||
/// how Moodle uses this theme.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
$THEME->sheets = array('styles', 'styles_select');
|
||||
|
||||
/// This variable is an array containing the names of all the
|
||||
/// This variable is an array containing the names of all the
|
||||
/// stylesheet files you want included in this theme, and in what order
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
$THEME->standardsheets = true;
|
||||
$THEME->standardsheets = true;
|
||||
|
||||
/// This variable can be set to an array containing
|
||||
/// filenames from the *STANDARD* theme. If the
|
||||
/// array exists, it will be used to choose the
|
||||
/// filenames from the *STANDARD* theme. If the
|
||||
/// array exists, it will be used to choose the
|
||||
/// files to include in the standard style sheet.
|
||||
/// When false, then no files are used.
|
||||
/// When true or NON-EXISTENT, then ALL standard files are used.
|
||||
/// This parameter can be used, for example, to prevent
|
||||
/// This parameter can be used, for example, to prevent
|
||||
/// having to override too many classes.
|
||||
/// Note that the trailing .css should not be included
|
||||
/// eg $THEME->standardsheets = array('styles_layout','styles_fonts','styles_color');
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
$THEME->parent = '';
|
||||
$THEME->parent = '';
|
||||
|
||||
/// This variable can be set to the name of a parent theme
|
||||
/// which you want to have included before the current theme.
|
||||
/// This can make it easy to make modifications to another
|
||||
/// This can make it easy to make modifications to another
|
||||
/// theme without having to actually change the files
|
||||
/// If this variable is empty or false then a parent theme
|
||||
/// If this variable is empty or false then a parent theme
|
||||
/// is not used.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
$THEME->parentsheets = false;
|
||||
$THEME->parentsheets = false;
|
||||
|
||||
/// This variable can be set to an array containing
|
||||
/// filenames from a chosen *PARENT* theme. If the
|
||||
/// array exists, it will be used to choose the
|
||||
/// filenames from a chosen *PARENT* theme. If the
|
||||
/// array exists, it will be used to choose the
|
||||
/// files to include in the standard style sheet.
|
||||
/// When false, then no files are used.
|
||||
/// When true or NON-EXISTENT, then ALL standard files are used.
|
||||
/// This parameter can be used, for example, to prevent
|
||||
/// This parameter can be used, for example, to prevent
|
||||
/// having to override too many classes.
|
||||
/// Note that the trailing .css should not be included
|
||||
/// eg $THEME->parentsheets = array('styles_layout','styles_fonts','styles_color');
|
||||
@ -61,23 +61,23 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
|
||||
|
||||
$THEME->metainclude = false;
|
||||
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from this theme into the
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from this theme into the
|
||||
/// <head></head> part of the page.
|
||||
|
||||
|
||||
$THEME->standardmetainclude = true;
|
||||
|
||||
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from the standard theme into the
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from the standard theme into the
|
||||
/// <head></head> part of the page.
|
||||
|
||||
|
||||
$THEME->parentmetainclude = false;
|
||||
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from the parent theme into the
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from the parent theme into the
|
||||
/// <head></head> part of the page.
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@ $THEME->block_r_max_width = 200;
|
||||
|
||||
$THEME->navmenuwidth = 50;
|
||||
|
||||
/// You can use this to control the cutoff point for strings
|
||||
/// You can use this to control the cutoff point for strings
|
||||
/// in the navmenus (list of activities in popup menu etc)
|
||||
/// Default is 50 characters wide.
|
||||
|
||||
@ -97,22 +97,22 @@ $THEME->makenavmenulist = false;
|
||||
|
||||
/// By setting this to true, then you will have access to a
|
||||
/// new variable in your header.html and footer.html called
|
||||
/// $navmenulist ... this contains a simple XHTML menu of
|
||||
/// all activities in the current course, mostly useful for
|
||||
/// $navmenulist ... this contains a simple XHTML menu of
|
||||
/// all activities in the current course, mostly useful for
|
||||
/// creating popup navigation menus and so on.
|
||||
|
||||
|
||||
|
||||
$THEME->resource_mp3player_colors =
|
||||
$THEME->resource_mp3player_colors =
|
||||
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
|
||||
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
|
||||
'font=Arial&fontColour=3333FF&buffer=10&waitForPlay=no&autoPlay=yes';
|
||||
|
||||
/// With this you can control the colours of the "big" MP3 player
|
||||
/// With this you can control the colours of the "big" MP3 player
|
||||
/// that is used for MP3 resources.
|
||||
|
||||
|
||||
$THEME->filter_mediaplugin_colors =
|
||||
$THEME->filter_mediaplugin_colors =
|
||||
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
|
||||
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
|
||||
'waitForPlay=yes';
|
||||
@ -122,10 +122,10 @@ $THEME->filter_mediaplugin_colors =
|
||||
|
||||
$THEME->custompix = false;
|
||||
|
||||
/// If true, then this theme must have a "pix"
|
||||
/// subdirectory that contains copies of all
|
||||
/// If true, then this theme must have a "pix"
|
||||
/// subdirectory that contains copies of all
|
||||
/// files from the moodle/pix directory, plus a
|
||||
/// "pix/mod" directory containing all the icons
|
||||
/// "pix/mod" directory containing all the icons
|
||||
/// for all the activity modules.
|
||||
|
||||
|
||||
@ -134,7 +134,7 @@ $THEME->custompix = false;
|
||||
///$CFG->block_search_button = link_arrow_right(get_string('search'), $url='', $accesshide=true);
|
||||
///
|
||||
/// Accessibility: Right and left arrow-like characters are
|
||||
/// used in the breadcrumb trail, course navigation menu
|
||||
/// used in the breadcrumb trail, course navigation menu
|
||||
/// (previous/next activity), calendar, and search forum block.
|
||||
///
|
||||
/// If the theme does not set characters, appropriate defaults
|
||||
@ -143,4 +143,4 @@ $THEME->custompix = false;
|
||||
/// use < > » - these are confusing for blind users.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
?>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<div id="footer-l">
|
||||
<div id="footer-r">
|
||||
<div id="footer-m" class="clearfix">
|
||||
|
||||
|
||||
<div id="footer-logo">
|
||||
<a href="http://moodle.org" target="_blank"><img src="<?php echo $CFG->themewww .'/'. current_theme() ?>/images/logo.jpg" title="Moodle <?php echo $CFG->release ?>" /></a>
|
||||
</div>
|
||||
@ -22,7 +22,7 @@
|
||||
<div id="footer-loggedinas">
|
||||
<?php echo $loggedinas; ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -55,11 +55,11 @@
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
/* <![CDATA[ */
|
||||
var CSSClass={};CSSClass.is=function(e,c){if(typeof e=="string")e=document.getElementById(e);var classes=e.className;if(!classes)return false;if(classes==c)return true;return e.className.search("\\b"+c+"\\b")!=-1;};CSSClass.add=function(e,c){if(typeof e=="string")e=document.getElementById(e);if(CSSClass.is(e,c))return;if(e.className)c=" "+c;e.className+=c;};CSSClass.remove=function(e,c){if(typeof e=="string")e=document.getElementById(e);e.className=e.className.replace(new RegExp("\\b"+c+"\\b\\s*","g"),"");};
|
||||
|
||||
|
||||
var jsscript = {
|
||||
|
||||
|
||||
corrections: function () {
|
||||
|
||||
|
||||
// check for layouttabel and add haslayouttable class to body
|
||||
function setbodytag () {
|
||||
var bd = document.getElementsByTagName('body')[0];
|
||||
@ -83,15 +83,15 @@
|
||||
setTimeout(function() { setbodytag() }, 10);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
setbodytag();
|
||||
},
|
||||
|
||||
|
||||
init: function() {
|
||||
jsscript.corrections();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
jsscript.init();
|
||||
/* ]]> */
|
||||
</script>
|
||||
|
@ -34,7 +34,7 @@
|
||||
if ($home) { // This is what gets printed on the home page only
|
||||
?>
|
||||
<?php echo $OUTPUT->container_start('clearfix header-home'); ?>
|
||||
|
||||
|
||||
<div id="header-t">
|
||||
<div id="header-r">
|
||||
<div id="header-l">
|
||||
|
@ -2,15 +2,15 @@
|
||||
Chameleon, the flexible Moodle theme.
|
||||
</h3>
|
||||
<p>
|
||||
Chameleon is a Moodle theme with an option to interactively change your theme within your browser page.
|
||||
You click on an element to change it's style. Please read the
|
||||
<a href="http://docs.moodle.org/en/Chameleon" alt="Chameleon Moodle Docs">Chameleon Moodle Docs explanation</a>
|
||||
Chameleon is a Moodle theme with an option to interactively change your theme within your browser page.
|
||||
You click on an element to change it's style. Please read the
|
||||
<a href="http://docs.moodle.org/en/Chameleon" alt="Chameleon Moodle Docs">Chameleon Moodle Docs explanation</a>
|
||||
for more information about Chameleon's interactive theme work.
|
||||
</p>
|
||||
<p>
|
||||
To enable editing you change "$THEME->chameleonenabled = false;" in the config.php file
|
||||
in your Chameleon theme folder to true. It is recommended to change "$THEME->chameleonenabled = true;"
|
||||
back to false again once you're satisfied with your theme because the editing engine loads several
|
||||
To enable editing you change "$THEME->chameleonenabled = false;" in the config.php file
|
||||
in your Chameleon theme folder to true. It is recommended to change "$THEME->chameleonenabled = true;"
|
||||
back to false again once you're satisfied with your theme because the editing engine loads several
|
||||
extra files into the browser. Therefore the page loading speed is reduced.
|
||||
</p>
|
||||
|
||||
@ -19,14 +19,14 @@
|
||||
</h4>
|
||||
|
||||
<p>
|
||||
If you want to hand code styles you must not write hooks as comma separated lists of elements like
|
||||
If you want to hand code styles you must not write hooks as comma separated lists of elements like
|
||||
<pre>
|
||||
td#middle-column div.bt,
|
||||
td#middle-column div.bt,
|
||||
div#middle-column div.bt {
|
||||
...
|
||||
}
|
||||
</pre>
|
||||
in Chameleon themes because the Chameleon engine can't handle these comma lists.
|
||||
in Chameleon themes because the Chameleon engine can't handle these comma lists.
|
||||
Please write two separate statements instead.
|
||||
<pre>
|
||||
td#middle-column div.bt {
|
||||
@ -39,6 +39,6 @@ div#middle-column div.bt {
|
||||
</p>
|
||||
|
||||
<p>
|
||||
A Moodle Theme from <strong>Urs Hunkler, <a href="http://www.unodo.de">unodo</a>
|
||||
A Moodle Theme from <strong>Urs Hunkler, <a href="http://www.unodo.de">unodo</a>
|
||||
and Andrew Walker, <a href="http://www.altoncollege.ac.uk/">Alton College</a></strong>.
|
||||
</p>
|
@ -1,14 +1,14 @@
|
||||
<?PHP // $Id$
|
||||
<?php
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// This file contains a few configuration variables that control
|
||||
/// This file contains a few configuration variables that control
|
||||
/// how Moodle uses this theme.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
$THEME->sheets = array('user_styles');
|
||||
|
||||
/// This variable is an array containing the names of all the
|
||||
/// This variable is an array containing the names of all the
|
||||
/// stylesheet files you want included in this theme, and in what order
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -16,38 +16,38 @@ $THEME->sheets = array('user_styles');
|
||||
$THEME->standardsheets = array('styles_layout', 'styles_color');
|
||||
|
||||
/// This variable can be set to an array containing
|
||||
/// filenames from the *STANDARD* theme. If the
|
||||
/// array exists, it will be used to choose the
|
||||
/// filenames from the *STANDARD* theme. If the
|
||||
/// array exists, it will be used to choose the
|
||||
/// files to include in the standard style sheet.
|
||||
/// When false, then no files are used.
|
||||
/// When true or NON-EXISTENT, then ALL standard files are used.
|
||||
/// This parameter can be used, for example, to prevent
|
||||
/// This parameter can be used, for example, to prevent
|
||||
/// having to override too many classes.
|
||||
/// Note that the trailing .css should not be included
|
||||
/// eg $THEME->standardsheets = array('styles_layout','styles_fonts','styles_color');
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
$THEME->parent = '';
|
||||
$THEME->parent = '';
|
||||
|
||||
/// This variable can be set to the name of a parent theme
|
||||
/// which you want to have included before the current theme.
|
||||
/// This can make it easy to make modifications to another
|
||||
/// This can make it easy to make modifications to another
|
||||
/// theme without having to actually change the files
|
||||
/// If this variable is empty or false then a parent theme
|
||||
/// If this variable is empty or false then a parent theme
|
||||
/// is not used.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
$THEME->parentsheets = false;
|
||||
$THEME->parentsheets = false;
|
||||
|
||||
/// This variable can be set to an array containing
|
||||
/// filenames from a chosen *PARENT* theme. If the
|
||||
/// array exists, it will be used to choose the
|
||||
/// filenames from a chosen *PARENT* theme. If the
|
||||
/// array exists, it will be used to choose the
|
||||
/// files to include in the standard style sheet.
|
||||
/// When false, then no files are used.
|
||||
/// When true or NON-EXISTENT, then ALL standard files are used.
|
||||
/// This parameter can be used, for example, to prevent
|
||||
/// This parameter can be used, for example, to prevent
|
||||
/// having to override too many classes.
|
||||
/// Note that the trailing .css should not be included
|
||||
/// eg $THEME->parentsheets = array('styles_layout','styles_fonts','styles_color');
|
||||
@ -62,28 +62,28 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
|
||||
|
||||
$THEME->metainclude = true;
|
||||
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from this theme into the
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from this theme into the
|
||||
/// <head></head> part of the page.
|
||||
|
||||
|
||||
$THEME->standardmetainclude = true;
|
||||
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from the standard theme into the
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from the standard theme into the
|
||||
/// <head></head> part of the page.
|
||||
|
||||
|
||||
$THEME->parentmetainclude = false;
|
||||
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from the parent theme into the
|
||||
/// When this is enabled (or not set!) then Moodle will try
|
||||
/// to include a file meta.php from the parent theme into the
|
||||
/// <head></head> part of the page.
|
||||
|
||||
|
||||
$THEME->navmenuwidth = 50;
|
||||
|
||||
/// You can use this to control the cutoff point for strings
|
||||
/// You can use this to control the cutoff point for strings
|
||||
/// in the navmenus (list of activities in popup menu etc)
|
||||
/// Default is 50 characters wide.
|
||||
|
||||
@ -92,34 +92,34 @@ $THEME->makenavmenulist = false;
|
||||
|
||||
/// By setting this to true, then you will have access to a
|
||||
/// new variable in your header.html and footer.html called
|
||||
/// $navmenulist ... this contains a simple XHTML menu of
|
||||
/// all activities in the current course, mostly useful for
|
||||
/// $navmenulist ... this contains a simple XHTML menu of
|
||||
/// all activities in the current course, mostly useful for
|
||||
/// creating popup navigation menus and so on.
|
||||
|
||||
|
||||
$THEME->chameleonenabled = false;
|
||||
|
||||
/// By setting this to true it enables editing of the stylsheets.
|
||||
/// It is recommended to set this to false again once you're
|
||||
/// It is recommended to set this to false again once you're
|
||||
/// satisfied with your theme.
|
||||
|
||||
|
||||
$THEME->chameleonteachereditenabled = false;
|
||||
|
||||
/// If you use chameleon as a course theme setting this to true
|
||||
/// will allow teachers on that course to edit the theme.
|
||||
/// If you use chameleon as a course theme setting this to true
|
||||
/// will allow teachers on that course to edit the theme.
|
||||
|
||||
|
||||
$THEME->resource_mp3player_colors =
|
||||
$THEME->resource_mp3player_colors =
|
||||
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
|
||||
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
|
||||
'font=Arial&fontColour=3333FF&buffer=10&waitForPlay=no&autoPlay=yes';
|
||||
|
||||
/// With this you can control the colours of the "big" MP3 player
|
||||
/// With this you can control the colours of the "big" MP3 player
|
||||
/// that is used for MP3 resources.
|
||||
|
||||
|
||||
$THEME->filter_mediaplugin_colors =
|
||||
$THEME->filter_mediaplugin_colors =
|
||||
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
|
||||
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
|
||||
'waitForPlay=yes';
|
||||
@ -129,11 +129,11 @@ $THEME->filter_mediaplugin_colors =
|
||||
|
||||
$THEME->custompix = true;
|
||||
|
||||
/// If true, then this theme must have a "pix"
|
||||
/// subdirectory that contains copies of all
|
||||
/// If true, then this theme must have a "pix"
|
||||
/// subdirectory that contains copies of all
|
||||
/// files from the moodle/pix directory, plus a
|
||||
/// "pix/mod" directory containing all the icons
|
||||
/// "pix/mod" directory containing all the icons
|
||||
/// for all the activity modules.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
?>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
<!-- <p><div class="homelink"><a <?php echo $CFG->frametarget ?> href="<?php $CFG->wwwroot ?>/course/view.php?id=<?php $COURSE->id ?>"> <?php $COURSE->shortname ?> </a></div></p> -->
|
||||
<p>
|
||||
<!-- <<a href="http://validator.w3.org/check?verbose=1&ss=1&uri=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->themewww/$CFG->theme" ?>/xhtml_1_0.gif" alt="XHTML Validator" /></a>
|
||||
<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo urlencode(qualified_me()) ?>&warning=1&profile=css2&usermedium=all"><img src="<?php echo "$CFG->themewww/$CFG->theme" ?>/css.gif" alt="CSS Validator" /></a>
|
||||
<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo urlencode(qualified_me()) ?>&warning=1&profile=css2&usermedium=all"><img src="<?php echo "$CFG->themewww/$CFG->theme" ?>/css.gif" alt="CSS Validator" /></a>
|
||||
<a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&url1=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->themewww/$CFG->theme" ?>/section_508.gif" alt="Section 508 Validator" /></a> -->
|
||||
</p>
|
||||
</div>
|
||||
|
@ -13,7 +13,7 @@ Each of these modules contains a number of expected components:
|
||||
icon.gif: a 16x16 icon for the module
|
||||
|
||||
db/mysql.sql: an SQL dump of all the required db tables and data
|
||||
|
||||
|
||||
index.php: a page to list all instances in a course
|
||||
|
||||
view.php: a page to view a particular instance
|
||||
@ -37,6 +37,6 @@ Each of these modules contains a number of expected components:
|
||||
|
||||
|
||||
If you are a developer and interested in developing new Modules see:
|
||||
|
||||
|
||||
Moodle Documentation: http://moodle.org/doc
|
||||
Moodle Community: http://moodle.org/community
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* These styles are ONLY included for IE 7 (via meta.php)
|
||||
*/
|
||||
|
||||
|
||||
input[type="submit"] {
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user