]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trail...
authorPetr Skoda <skodak@moodle.org>
Wed, 4 Nov 2009 08:11:02 +0000 (08:11 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 4 Nov 2009 08:11:02 +0000 (08:11 +0000)
211 files changed:
calendar/event_form.php
calendar/export.php
calendar/lib.php
calendar/preferences.html
calendar/view.php
course/completion.js
course/delete_category_form.php
course/edit.php
course/edit_form.php
course/editcategory.php
course/editcategory_form.php
course/editsection_form.php
course/enrol.php
course/external.php
course/format/README.txt
course/format/scorm/config.php
course/format/scorm/format.php
course/format/scorm/lib.php
course/format/social/config.php
course/format/social/format.php
course/format/social/lib.php
course/format/topics/ajax.php
course/format/topics/config.php
course/format/topics/format.php
course/format/topics/lib.php
course/format/weeks/ajax.php
course/format/weeks/config.php
course/format/weeks/format.php
course/format/weeks/lib.php
course/import.php
course/import/activities/import_form.php
course/import/activities/index.php
course/import/activities/mod.php
course/import/groups/import_form.php
course/import/groups/index.php
course/import/groups/mod.php
course/importstudents.html
course/importstudents.php
course/info.php
course/jumpto.php
course/lib.php
course/loginas.php
course/mod.php
course/modedit.php
course/moodleform_mod.php
course/pending.php
course/recent.php
course/recent_form.php
course/report.php
course/report/log/db/access.php
course/report/log/graph.php
course/report/log/index.php
course/report/log/indexlive.php
course/report/log/lib.php
course/report/log/live.php
course/report/log/mod.php
course/report/log/version.php
course/report/outline/db/access.php
course/report/outline/index.php
course/report/outline/mod.php
course/report/outline/version.php
course/report/participation/db/access.php
course/report/participation/index.php
course/report/participation/mod.php
course/report/participation/version.php
course/report/progress/db/access.php
course/report/progress/index.php
course/report/progress/mod.php
course/report/progress/textrotate.js
course/report/progress/version.php
course/report/stats/db/access.php
course/report/stats/graph.php
course/report/stats/index.php
course/report/stats/mod.php
course/report/stats/report.php
course/report/stats/version.php
course/request.php
course/request_form.php
course/reset.php
course/reset_form.php
course/resources.php
course/rest.php
course/scales.php
course/search.php
course/simpletest/broken_testexternal.php
course/simpletest/testcourselib.php
course/switchrole.php
course/togglecompletion.php
course/unenrol.php
course/user.php
course/view.php
repository/repository_ajax.php
theme/anomaly/config.php
theme/anomaly/footer.html
theme/anomaly/header.html
theme/chameleon/README.html
theme/chameleon/config.php
theme/chameleon/footer.html
theme/chameleon/pix/mod/README.txt
theme/chameleon/styles_ie7.css
theme/chameleon/ui/ChameleonCSS.class.php
theme/chameleon/ui/ChameleonFileBrowser.class.php
theme/chameleon/ui/chameleon.php
theme/chameleon/ui/chameleon_js.php
theme/chameleon/ui/chameleon_ui.css
theme/chameleon/ui/css.php
theme/chameleon/ui/sarissa.js
theme/chameleon/user_styles.css
theme/colors/colors.css
theme/colors/config.php
theme/colors/footer.html
theme/colors/gradients.css
theme/colors/header.html
theme/colors/js/CSSClass.js
theme/colors/js/js.php
theme/colors/pix/mod/README.txt
theme/cornflower/config.php
theme/cornflower/cornflower.css
theme/custom_corners/config.php
theme/custom_corners/footer.html
theme/custom_corners/header.html
theme/custom_corners/js/CSSClass.js
theme/custom_corners/js/js.php
theme/custom_corners/user_styles.css
theme/formal_white/config.php
theme/formal_white/fw_color.css
theme/formal_white/fw_fonts.css
theme/formal_white/fw_layout.css
theme/index.php
theme/lines/config.php
theme/lines/footer.html
theme/lines/header.html
theme/lines/js/CSSClass.js
theme/lines/js/js.php
theme/lines/js/yui.php
theme/lines/lines.css
theme/metal/README.txt
theme/metal/colors.css
theme/metal/config.php
theme/metal/gradients.css
theme/oceanblue/config.php
theme/oceanblue/styles_color.css
theme/orangewhite/config.php
theme/orangewhite/csshover.htc
theme/orangewhite/styles_color.css
theme/orangewhite/styles_fonts.css
theme/orangewhite/styles_layout.css
theme/orangewhitepda/config.php
theme/orangewhitepda/styles_pda.css
theme/standard/README.html
theme/standard/rtl.css
theme/standard/styles_color.css
theme/standard/styles_layout.css
theme/standardblue/config.php
theme/standardblue/gradients.css
theme/standardgreen/config.php
theme/standardgreen/gradients.css
theme/standardlogo/config.php
theme/standardred/config.php
theme/standardred/gradients.css
theme/standardwhite/config.php
theme/standardwhite/footer.html
theme/standardwhite/gradients.css
theme/styles.php
theme/wood/README.html
theme/wood/config.php
theme/wood/styles_color.css
user/action_redir.php
user/addnote.php
user/edit.php
user/edit_form.php
user/editadvanced.php
user/editadvanced_form.php
user/editlib.php
user/extendenrol.php
user/external.php
user/filters/courserole.php
user/filters/date.php
user/filters/globalrole.php
user/filters/lib.php
user/filters/profilefield.php
user/filters/select.php
user/filters/simpleselect.php
user/filters/text.php
user/filters/user_filter_forms.php
user/filters/yesno.php
user/groupextendenrol.php
user/index.php
user/messageselect.php
user/policy.php
user/portfolio.php
user/portfoliologs.php
user/profile/definelib.php
user/profile/field/checkbox/define.class.php
user/profile/field/checkbox/field.class.php
user/profile/field/menu/define.class.php
user/profile/field/menu/field.class.php
user/profile/field/text/define.class.php
user/profile/field/text/field.class.php
user/profile/field/textarea/define.class.php
user/profile/field/textarea/field.class.php
user/profile/index.php
user/profile/index_category_form.php
user/profile/index_field_form.php
user/profile/lib.php
user/repository.php
user/selector/lib.php
user/selector/script.js
user/selector/search.php
user/tabs.php
user/view.php

index 890439253fce4564b60f376508135fc9eb2c9617..157c0b4c7d28d098a92f4f1f3899b9bde2f5fd6e 100644 (file)
@@ -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
  */
index e6f7983bef3b27e31e39476f5c983a877df67660..e3ef48ce0203ad2bf3ee87f5c6d919f78e64d241 100644 (file)
@@ -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;
 }
index 1102ada55199766642b49a448a43ecda20874bb3..ec291bdf172b456b9356ea2a5e92e96664883182 100644 (file)
@@ -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&amp;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);
         }
index ea6da9921eb70d1dd6400704d64adfcab8f615bd..8ca47f1beaf03926a9f00a01f803654a89b4d0a5 100644 (file)
@@ -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>
index e02dc607296ea2c2eec74445f68324dd4425c8a9..8b4cbc617d891a98adbafb8ef6bf4d7192a47ce6 100644 (file)
@@ -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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$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&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";  
+                }      
+                echo "</tr>\n";        
+            }  
+               
             echo '</table></div>';
 }
 
index 5144238d259d273d066c63ed5dae1543bd9d7489..3c7dd0383dacaad7883776ff88d0af7d7d678c9f 100644 (file)
@@ -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,
index 9c3fb34a8af8d4495fd1815956f41de9de2a4988..8c18dbcbb1bea2e43c8d9d604caa257ff53be96a 100644 (file)
@@ -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;
     }
 }
-?>
+
index ffe46964b3852a75f57b1fe5dbab078e6e91110f..c02dcde6dfe47539c65ebe9f9a4ca225b8ad2c09 100644 (file)
 
     echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 859178188c1c83bd64d93081badd2bd7fd676436..a833a7260ebde4e548dec2a6b0e1bf0ee1e15702 100644 (file)
@@ -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;
     }
 }
-?>
+
index 522cc283503ec905c7c2be7ae5001260d4c70a8b..c02e9b03602e011b6b3cad021d5de50c19db1e08 100644 (file)
@@ -116,4 +116,4 @@ echo $OUTPUT->heading($strtitle);
 $mform->display();
 
 echo $OUTPUT->footer();
-?>
+
index 8da5a9580319860440dbcc7abcb9f9763729f11a..a5b9cdd09b6d654ca463cb9318e2e412be4b762c 100644 (file)
@@ -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);
     }
-} 
-?>
+}
+
index ef825af0ad625b8c24ca1ed00ea15b010a029c9e..b517ec7f2498f16953f172b108e20435124ab18a 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 require_once($CFG->libdir.'/formslib.php');
 
index 7844da73a9ddc8ce4cc93cc491f57869c19341d8..0cce490f287d211a7ebf1c10ddf6a3263f2adae3 100644 (file)
@@ -131,4 +131,3 @@ $enrol->print_entry($course);
 
 /// Easy!
 
-?>
\ No newline at end of file
index ecd51aac930250ad4dfe9d4db68af318e8bea23c..c3abbe370b2ede3ffd243d7a1099921367cd195e 100644 (file)
@@ -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 {
 
 }
 
-?>
+
index e8fecdb5eeb79e66a224e9cf96b363c97cd0f72e..4543dafccd95d2b16fd909941424bcd6bf479c2b 100644 (file)
@@ -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)
 ----------------------
 
index ca02d73b12582a927f683598539e7ffd2d08740d..13bd6d636a98061aac3a62d9f2d7f4254325af14 100755 (executable)
@@ -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';
 
-?>
+
index d92ea4f2f2ce62df58221c06d0fd0cd92e3d9645..465f7f7ca4d4e8786dc49167554a78ec73e0184f 100644 (file)
@@ -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');
     }
index 01605e555d997c44447bf39e542a6c6689956ef2..09eba86d807583ed901fee19e32dd06347315fbc 100644 (file)
@@ -52,4 +52,4 @@ function callback_scorm_display_content() {
     return false;
 }
 
-?>
+
index d2d8a9ca76a5dba701e95a8a3eb1f8100c41738f..d89f0e8eafbf3172ab675ab3d201d3b03a9f4cbd 100755 (executable)
@@ -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';
 
-?>
+
index 659ae065b6433166eaf93a4c3fb0756b586df27d..65b77377e8e002db6d0ebe81d890243cd20ac178 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
       // format.php - course format featuring social forum
       //              included from view.php
 
index 5b1bd1ef7f5b40f8ca5cc9d28b35329649a02267..7e19bce9dce6f4ded576e66941f7cc472b856373 100644 (file)
@@ -80,4 +80,4 @@ function callback_social_display_content() {
     return false;
 }
 
-?>
+
index 2280eddd8154b13e0fae503de5335e1b812bc498..0dbea4e12239ff5033cbcff834c879df25636263 100644 (file)
@@ -7,4 +7,4 @@
 $CFG->ajaxcapable = true;
 $CFG->ajaxtestedbrowsers = array('MSIE' => 6.0, 'Gecko' => 20061111);
 
-?>
+
index cf58f2db927604976e1ef95cf438d945663f0456..1a429b4e459871fd2df8365549e65b3278b1fcf4 100755 (executable)
@@ -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';
 //
-?>
\ No newline at end of file
index a3b20eb2de970c81c349a2944fdfbe51f228cd73..9a1e56a48993d626a6430f1431502075552e095b 100644 (file)
@@ -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 &copy; 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']
 
index c91a586972beea00dbd213874469026842c78c60..228e21ee132dc1071599cb3beb2a1e1853b357ef 100644 (file)
@@ -70,4 +70,4 @@ function callback_topics_definition() {
 function callback_topics_request_key() {
     return 'topic';
 }
-?>
+
index 2280eddd8154b13e0fae503de5335e1b812bc498..0dbea4e12239ff5033cbcff834c879df25636263 100644 (file)
@@ -7,4 +7,4 @@
 $CFG->ajaxcapable = true;
 $CFG->ajaxtestedbrowsers = array('MSIE' => 6.0, 'Gecko' => 20061111);
 
-?>
+
index cf58f2db927604976e1ef95cf438d945663f0456..1a429b4e459871fd2df8365549e65b3278b1fcf4 100755 (executable)
@@ -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';
 //
-?>
\ No newline at end of file
index 8e56aaa55fd3fbd160ea19157dd15ce219c5e6f3..7830bcfa8fb4d435f3579344e8a88f6869da2faf 100644 (file)
@@ -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 &copy; 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">&nbsp;</div>';
-        echo '<div class="right side" >&nbsp;</div>';        
+        echo '<div class="right side" >&nbsp;</div>';
         echo '<div class="content">';
-        
+
         echo '<div class="summary">';
 
         $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
                  ' class="icon edit" alt="'.$streditsummary.'" /></a></p>';
         }
         echo '</div>';
-        
+
         print_section($course, $thissection, $mods, $modnamesused);
 
         if ($PAGE->user_is_editing()) {
 
             // Note, 'right side' is BEFORE content.
             echo '<div class="right side">';
-            
+
             if ($displaysection == $section) {
                 echo '<a href="view.php?id='.$course->id.'&amp;week=0#section-'.$section.'" title="'.$strshowallweeks.'">'.
                      '<img src="'.$OUTPUT->old_icon_url('i/all') . '" class="icon wkall" alt="'.$strshowallweeks.'" /></a><br />';
index 0130dc45606288de6ffff4af8aa2593e50f46c7a..ebad925bbb457c461121741796b129552074ca50 100644 (file)
@@ -71,4 +71,4 @@ function callback_weeks_definition() {
 function callback_weeks_request_key() {
     return 'week';
 }
-?>
+
index ffb0d05da8f7791b7b808492dd93068b41c5e253..7bef40abf850871c3f44ad9d7b312fa577181e34 100644 (file)
@@ -71,4 +71,4 @@ foreach ($imports as $import => $importdir) {
 }
 
 echo $OUTPUT->footer();
-?>
+
index 4e997fe8f25aa8a223f562a0ab17b6dea22a09af..745933fece8356693c283ca882ea3c892246d294 100755 (executable)
@@ -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 {
     }
 
 }
-?>
+
index 63f942cd31591892abbcfc5b6cd571618af100b3..61bd005fa69c266a7a83891893b6cc9d19439486 100644 (file)
@@ -104,4 +104,3 @@ require_once('mod.php');
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index d021655bafcd5f9585ea55f338c8a54300d26f48..f1d0a59fa756e143c22ff5ddf27faf464c57d906 100644 (file)
@@ -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);
     }
-?>
+
index f0a7f1a6d019547db0bca8ec2cc57f4779f49244..c6bd14f15e13267f5f689724f0debabfdf609e79 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 require_once($CFG->libdir.'/formslib.php');
 
@@ -34,4 +34,4 @@ class course_import_groups_form extends moodleform {
         }
     }
 }
-?>
+
index 60d47f1fc6e39bc9148b281ff2af187df79439f6..cd79671cb05d0f71d1107c4feadc05866e79c016 100755 (executable)
@@ -232,4 +232,3 @@ function my_file_get_contents($filename, $use_include_path = 0) {
     return $data;
 }
 
-?>
\ No newline at end of file
index 4a73e819d28e6fa7b60dd3504996b24dc6f62021..b264515c26447bdf9b6c6bd07ce8157f3d38617d 100644 (file)
@@ -53,4 +53,3 @@ echo $OUTPUT->box_end();
 
 echo '</p>';
 
-?>
\ No newline at end of file
index 64636480754db1bc28298b6fea45de0d5c88a6b3..403c344746532e5d1024af8fb7e27617d4254479 100644 (file)
@@ -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;
index 0a2421cf78e4a17f40b74086885309d35d5e0357..23dcd0770bf697658b24414129f77867d743310f 100644 (file)
 
     echo $OUTPUT->footer();
 
-?>
+
index 2570956c3c080161bda151c35f4a6ecedda014f3..ded88b3e18d76d9a26e15fc0c6464e1f93070e3e 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 /// Displays external information about a course
 
@@ -94,4 +94,4 @@
 
     echo $OUTPUT->footer();
 
-?>
+
index 040f1f7d1a9b48a7882174cae21f585cd3e59f6e..e01aacb5b790453d41dea355968ed52ea2d04b1f 100644 (file)
@@ -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
 }
 
-?>
\ No newline at end of file
index 44eaf7f3bbf583abfdcccada191e58fec2458d4a..f599fcf50b5c0317e48ac3f07d513feb63c15ddc 100644 (file)
@@ -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);
index 630331123d62f57c26c06fa90fb22e738fea3b5c..8a0e7a977f17d5dffcfa649c38bc180a83ca62d7 100644 (file)
@@ -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");
 
 
-?>
+
index d4349c6240969341dfb26f4df77665dfd322a637..2233f0b94810d8c3f98ea007eb8c239c03bdbbec 100644 (file)
@@ -324,4 +324,4 @@ if ((!empty($movetosection) or !empty($moveto)) and confirm_sesskey()) {
     print_error('unknowaction');
 }
 
-?>
+
index c1dcbaa4c02bdf242991d5f180c7f95fd5020bc7..ebc5294842d1512273e39f699d0e9cc34a7407be 100644 (file)
             $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();
     }
index a2dae5d15610b2a4749d7baeba7ba7d1c5974229..fb8f3b7ff25459fb9801b9f65c642ba5fdfcbbe3 100644 (file)
@@ -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 {
     }
 }
 
-?>
+
index f931f4e71bb845a9cfc71879b55e14818384a0b5..3fc067ad9c17151bffc6ec2ab135460a8d17a26a 100644 (file)
@@ -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();
 
index 2c0ab507b2239e776cd574dc687348f32d4cb7b4..dc0dc547d6d53ef29bed97503424b4cafee4d8b1 100644 (file)
@@ -304,4 +304,3 @@ function compare_activities_by_time_asc($a, $b) {
     return ($a->timestamp < $b->timestamp) ? -1 : 1;
 }
 
-?>
\ No newline at end of file
index 12723ebca7d1d470962b6c9c706b877e7581e11b..d90048a5c6637510c1c726f682015ad3dbc38f1e 100644 (file)
@@ -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);
index ad8711bc27d4ff33f224a4e610da827e96bbde41..510ecb003710b129c9c5a3dbde9f80f906526f68 100644 (file)
@@ -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();
-?>
+
index cac7b0ed7a48fc31fa89a2ab8dcde52588eda888..43e741acd85ec9a0dda1bf7629bae7602e55b5c4 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -65,4 +65,4 @@ $coursereport_log_capabilities = array(
     )
 );
 
-?>
+
index 59a9cd3ab92ecb917fd897da5fdcdca5a8343680..eb72edd57131d796f571301316264bf2ccc19ad7 100644 (file)
@@ -212,4 +212,3 @@ switch ($type) {
    break;
 }
 
-?>
\ No newline at end of file
index 2809042fcf5f209cd0c56d2b89dd37e56884f91c..7ca593c24987971bcd64260b3e5a093ddd80a542 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
       // Displays different views of the logs.
 
     require_once('../../../config.php');
     echo $OUTPUT->footer();
 
     exit;
-?>
+
index 63fa96490bd30b9f134d301ae080b17430fd58bd..abfed36b8ebe3aa127ec2c7c9f6498dbd5b10d48 100644 (file)
@@ -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();
 
-?>
+
index 80cf0b64f7694dece25e8bf6136b40e3cdda920c..c43016811ee74ef5409db3933e95be7e08e3c4a7 100644 (file)
@@ -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>';
index 9ed7d5f5e02db9179dfbc5b969e6273166b150a0..f59b1a69b38c78f97518f00642a9b0492cd1a61c 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
       //  Displays live view of recent logs
 
     require_once("../../../config.php");
     $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;
 
-?>
+
index f949ace821f3ccf627a21074e460d710120a32b7..bd38f793b19ea1b4cab401f55c0d224c5b118e00 100644 (file)
@@ -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>';
     }
-?>
+
index 7aa04cfbacb984ba56be1797ad09e211f2ee980e..4c0cf26ff84482e35a264b243d331cf36256a24a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -26,4 +26,4 @@
 $plugin->version  = 2007101504;
 $plugin->requires = 2007101532;
 
-?>
+
index 05cfadcc3f9d819aafcb392469aefee5e8b4e3e1..81a752302b00c0624b9972d56a9777d3a0ab3ebd 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -39,4 +39,4 @@ $coursereport_outline_capabilities = array(
     )
 );
 
-?>
+
index 19ba73e5df25e6d32fea9945a06ae466b7b139c4..8b1821e44e886183ee1713710f9301af46528b3f 100644 (file)
     echo $OUTPUT->footer();
 
 
-?>
+
index 1caf681ac30efcd008541c90373abf923ac0b93a..22a5b667335720753a1e47b7d1bbabeefdff786b 100644 (file)
@@ -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>';
     }
-?>
\ No newline at end of file
index 58927423af61427e72cfbdd56f2ad84acef46376..de2beeb5cd86391eb759d89543841d4a1ae10028 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -26,4 +26,4 @@
 $plugin->version  = 2007101501;
 $plugin->requires = 2007101532;
 
-?>
+
index 420f633f98b0c35452edf2cf9fb76e7f76075e86..d90bc72023609086a017667daa4f73e3c729d48b 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -39,4 +39,4 @@ $coursereport_participation_capabilities = array(
     )
 );
 
-?>
+
index a9db751481dd6ea8c60645fc14830d537186e7e2..6395dc53a1dc77e76185a744b4d2968bd088a17d 100644 (file)
@@ -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') {
         }
 
         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);
 
 
     echo $OUTPUT->footer();
 
-?>
+
index 38428141ecd7d1d1ee230bfedd656dd259409d78..5c1fbffb1474e1c97005e845b25b20f5acd5b7ad 100644 (file)
@@ -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>';
     }
-?>
+
index 58927423af61427e72cfbdd56f2ad84acef46376..de2beeb5cd86391eb759d89543841d4a1ae10028 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -26,4 +26,4 @@
 $plugin->version  = 2007101501;
 $plugin->requires = 2007101532;
 
-?>
+
index da27d3f2e3f31b12158d3e1bac3269edd969d9f0..dbb4390dd77fc2fae860df01b4f1db7a8c557cb9 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -39,4 +39,4 @@ $coursereport_progress_capabilities = array(
     )
 );
 
-?>
+
index 09286a872e4a4a712b800543f074975caffb66ae..8c9bc942920b012466d4ed33ad6c0a112f42d1b9 100644 (file)
@@ -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();
-?>
+
index a2428a2bd1dc7fc4be0b2a6d9b45ec96c693aa5a..e8bbadce1eb92671aed26c5896305729a393e307 100644 (file)
@@ -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>';
         }
     }
-?>
+
index 1c0a40e7ece12aee4fab4310c990635b6374d35b..41dbfbef3ac5c2f2343ef8252611a21a99a3c3c4 100644 (file)
@@ -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);
 
index c62920f9d7c3b16beef80cb5ecdda5b699bf041e..1424557ab6c8eeadfd71872cfa67b2e2884c9b3e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -26,4 +26,4 @@
 $plugin->version  = 2007101500;
 $plugin->requires = 2007101532;
 
-?>
+
index 573b38b962eeaa139bf37b702e46c2133d6e0834..29dbd7914b9188e9e1d0edbe0e93ea7918d0575c 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -39,4 +39,4 @@ $coursereport_stats_capabilities = array(
     )
 );
 
-?>
+
index 8a5796c5c1724a8c719cd4a0e33891c47c105961..d5da0b1fdcc22c3a8434daafaaa577e48dfb5c12 100644 (file)
@@ -181,4 +181,3 @@ if (empty($param->crosstab)) {
 
 $graph->draw_stack();
 
-?>
\ No newline at end of file
index 642c72fb8cef16870d6f0a1ea074d4b29c5eed92..6ff293ad29dca51c1f921ee37fc3c3396d26a5cc 100644 (file)
@@ -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();
 
-?>
+
index e1257b4a9f356af256cdb11d8ff70987cdbd6ddd..1f70b7af2bca3d9dbe62cee8a1b2b698821ebe4f 100644 (file)
@@ -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>';
         }
     }
-?>
+
index 53a9a2cecdce5874240da1f368b0d5d9224eb91b..4be01a4b6fd9455269c29f5c195bed349925bb0b 100644 (file)
@@ -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
         }
     }
 
-?>
+
index 58927423af61427e72cfbdd56f2ad84acef46376..de2beeb5cd86391eb759d89543841d4a1ae10028 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -26,4 +26,4 @@
 $plugin->version  = 2007101501;
 $plugin->requires = 2007101532;
 
-?>
+
index 518b7d6b16860624589644dc28431ef2bfc7f18a..5a3d88610b91cae78025e0aeb1c3bec00afa1721 100644 (file)
@@ -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.
index 5fc5da7cb93e84769151c2ae4297e1ace4536afb..604dd8445d0fa0936feab9712779dcfd70154291 100644 (file)
@@ -141,4 +141,4 @@ class reject_request_form extends moodleform {
         $this->add_action_buttons(true, get_string('reject'));
     }
 }
-?>
+
index 56088f35f81c31cddf96fdcbd3ae7da662196c7d..6c26bbe40e53c137369882a6535f6dbb40b3e9a5 100755 (executable)
@@ -103,4 +103,4 @@ echo $OUTPUT->box(get_string('resetinfo'));
 $mform->display();
 echo $OUTPUT->footer();
 
-?>
+
index 88b19793ffbf1a2c39bb9bb9ddfabac3cf5f30d1..43f9a30cfb14d8dff093e29c826592ad4aa13f15 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 require_once $CFG->libdir.'/formslib.php';
 
 class course_reset_form extends moodleform {
index e1fb68a0fca3e2024e670aa15c207725ca6f44c0..b740707fded9751e2647926e53d526d609ead6ce 100644 (file)
@@ -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');
index d8e5e161d068d6eeda50837fb20b8075af60bfd8..7f072e7be0623904a3673a13677ebce64772508e 100644 (file)
@@ -212,4 +212,4 @@ switch($requestmethod) {
         break;
 }
 
-?>
+
index 38139bd6ff850eacc9eac39bfe4397e239bc8a29..afbae3ff13a3a4a6295ace41925818259a546302 100644 (file)
@@ -134,4 +134,3 @@ if ($scales = $DB->get_records("scale", array("courseid"=>0), "name ASC")) {
 echo $OUTPUT->close_window_button();
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 763fed0e312609d532c3ee269b73c7425530cef6..38bedc557e4a292a9aff7b11aeb3f699a0c66406 100644 (file)
@@ -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
 
             $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,
         }
     }
 
-?>
+
index 1758e58f416e096b02e2a37fa206b7f0275a4942..497ce1ee1045c914d60836b9c9e58779fb7a8c81 100644 (file)
@@ -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 {
     }
 */
 }
-?>
+
index 3afb478fb0020e66034f0df22288afcf6210608b..2104d84491e95cd0e117146b538a493ffdc5c2c3 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
index 739704d249284bdbe0fe589f2e950775ebb2ba49..0313163482776a839c9898551c806809901116ae 100644 (file)
@@ -83,4 +83,3 @@ if ($returnurl===false) {
 }
 redirect($returnurl);
 
-?>
\ No newline at end of file
index 5a72f5f4d857f7ab0b27d0db285215d41b8620f2..31f7462121568a5c373d49a4a586088e76f27b6f 100644 (file)
@@ -81,4 +81,3 @@ if($fromajax) {
     redirect($backto);
 }
 
-?>
\ No newline at end of file
index 04453d3fc8d8113ee4fa1caf3e3a9c2c22acaa2e..95aa9c9b8afd96ef17352152bad3067eef161361 100644 (file)
@@ -121,4 +121,3 @@ if ($userid) {
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 81c453c6e545d9a930902dc661baec644f2bc69b..bc89ef044209b07a101c472f55a1836551fc4b85 100644 (file)
@@ -390,4 +390,3 @@ function print_outline_row($mod, $instance, $result) {
     echo "</tr>";
 }
 
-?>
\ No newline at end of file
index 562f78a239f77b5743647e8abfc19b87ed553eb4..7855be202ec99e3c02402f7925156835dab601cc 100644 (file)
@@ -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')) {
 
 
     // AJAX-capable course format?
-    $useajax = false; 
+    $useajax = false;
     $ajaxformatfile = $CFG->dirroot.'/course/format/'.$course->format.'/ajax.php';
     $bodytags = '';
 
     $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
     // 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);
 
     echo $OUTPUT->footer();
 
-?>
+
index c0c57f564e0cbb9dc81aa0ed4039b316a38f6bd8..8887b3ecf1d72cbc89aa29d88e3e82bed69a01da 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 /// The Web service script that is called from the filepicker front end
 
index aa3fcf901e12e6d3537f5654dd5470dcc1eaf474..d2a58404f86775b88cce4c14266e320978240e8b 100644 (file)
@@ -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 &lt; &gt; &raquo; - these are confusing for blind users.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 153cbfe5c9502ed17265ca5194724b13ee3e69a4..2f9d6f927791aa9a81c3eb0d5dec98c52b1c6a11 100644 (file)
@@ -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>
 <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];
                     setTimeout(function() { setbodytag() }, 10);
                 }
             };
-            
+
             setbodytag();
         },
-        
+
         init: function() {
             jsscript.corrections();
         }
     };
-    
+
     jsscript.init();
 /* ]]> */
 </script>
index fa145b966d30cc794a088e1bc1d80e92019f148b..671059fdff2a6fd5271ac3082463867988da6ff1 100644 (file)
@@ -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">
index a6a1bb8ed26ef19561351839cfddec6fadc0be8b..7303d0295db203a6585ebebbc48f3b7baa79b9c5 100644 (file)
@@ -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>
 
 </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>
\ No newline at end of file
index 6c6c01b7a890057f6f6a838077325e85585303dc..19c5efaaafe7284561f72c4dd73b5ae18ee35edb 100644 (file)
@@ -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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index bd6794bc8ede4fe6123399922f25fc05f3e1ee39..7e0916fc3d4f03b47c1e95f1ab1de0ca47ee8ca9 100644 (file)
@@ -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&amp;ss=1&amp;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()) ?>&amp;warning=1&amp;profile=css2&amp;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()) ?>&amp;warning=1&amp;profile=css2&amp;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&amp;url1=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->themewww/$CFG->theme" ?>/section_508.gif" alt="Section 508 Validator" /></a> -->
 </p>
 </div>
index 6dadbc92bafbe8712e77ba58cfeb658e300b510e..d9ddd912d457b63a5c218cfab16237a7944ba908 100644 (file)
@@ -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
index bab24079c68b6b9c008e11cb602ef148bec9c546..5cfebaa745c3f5f2e98ab53a1639dadf813366fa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * These styles are ONLY included for IE 7 (via meta.php)
  */
+
 input[type="submit"] {
   padding: 0 2px;
 }
index 0713e86e5e5391e0dd39f12447ee8fdbe3b3efad..560c22bb406e0d3aa55f6ebdffb28f2abf4b28ca 100644 (file)
@@ -3,22 +3,22 @@
 class ChameleonCSS {
     var $error;
     var $base;
-    
+
     var $perm;
     var $temp;
 
-    function ChameleonCSS($base, $perm, $temp) { 
+    function ChameleonCSS($base, $perm, $temp) {
         $this->base = $base;
         $this->perm = $perm;
         $this->temp = $temp;
     }
-    
+
     function update($file, $content = '') {
         if (!is_writable($this->base . $this->$file)) {
             $this->error = $this->$file . ' is not writeable, the file permissions are currently ' . $this->getfilepermissions($this->$file);
             return false;
         }
-        
+
         if (!$fp = fopen($this->base . $this->$file, 'w')) {
             $this->error = 'couldn\'t open file';
             return false;
@@ -27,7 +27,7 @@ class ChameleonCSS {
         fclose($fp);
         return true;
     }
-    
+
     function getfilepermissions($file) {
         return substr(sprintf('%o', fileperms($this->base . $file)), -4);
     }
@@ -35,29 +35,29 @@ class ChameleonCSS {
     function read() {
         $permcss = file_get_contents($this->base . $this->perm);
         $tempcss = file_get_contents($this->base . $this->temp);
-           
+
         if ($permcss === false || $tempcss === false) {
             $this->error = 'Couldn\'t read file';
             return false;
         }
-        
+
         $permcss = trim($permcss);
         $tempcss = trim($tempcss);
-        
+
         if ($tempcss == '') {
             return $permcss;
         }
         return $this->_merge($permcss, $tempcss);
     }
-    
-    
-    
-    
+
+
+
+
     function _merge($permcss, $tempcss) {
         $csssrcs = array($this->_toobj($permcss), $this->_toobj($tempcss));
-        
+
         $merged = array();
-        
+
         for ($i = 0; $i < 2; ++$i) {
             foreach ($csssrcs[$i] as $sel => $rule) {
                 $newsel = false;
@@ -84,13 +84,13 @@ class ChameleonCSS {
                 }
             }
         }
-        
+
         return $this->_tostr($merged);
     }
-    
-   
-    
-    
+
+
+
+
     function _toobj($cssstr) {
         $cssobj = array();
         $end = strpos($cssstr, '}');
@@ -120,8 +120,8 @@ class ChameleonCSS {
         }
         return $cssobj;
     }
-    
-    
+
+
     function _tostr($cssobj) {
         $cssstr = '';
         foreach ($cssobj as $sel => $rule) {
index 7b1aca510b3f1fcdd8afef0563bd1103f2f2b7ca..4b1dca53b6f803baa9588b4b579769188d68e5de 100644 (file)
@@ -5,13 +5,13 @@ class ChameleonFileBrowser {
     var $path;
     var $dir;
     var $IMAGE_TYPES;
-  
+
     var $founddirs = array();
     var $foundfiles = array();
 
     function ChameleonFileBrowser() {
         $this->IMAGE_TYPES = array('jpeg', 'jpg', 'gif', 'png');
-        
+
         $tmp = explode('/', str_replace('\\', '/', __FILE__));
         array_pop($tmp);
         array_pop($tmp);
@@ -25,11 +25,11 @@ class ChameleonFileBrowser {
         if ($path == 'root') {
             return 'pix';
         }
-        
+
         if (substr($path, 0, 3) != 'pix') {
             $this->send('<chameleon_error>Not a valid directory</chameleon_error>');
         }
-        
+
         return preg_replace('/[.]+/', '', $path);
     }
 
@@ -44,8 +44,8 @@ class ChameleonFileBrowser {
         if (!is_dir($this->dir)) {
             $this->send('<chameleon_error>Not a valid directory</chameleon_error>');
         }
-        
-        $handle = opendir($this->dir);       
+
+        $handle = opendir($this->dir);
         while (false !== ($file = readdir($handle))) {
             if ($file == '.' || $file == '..') {
                 continue;
@@ -72,10 +72,10 @@ class ChameleonFileBrowser {
             $out .= "  <file type=\"img\">$this->path/$file</file>\n";
         }
         $out .= "</files>";
-        
+
         $this->send($out);
     }
-    
+
     function send($out) {
         header("Content-type: application/xml; charset=utf-8");
         die($out);
index 195bee7d05d54e285ae678c5c0dfaa9f2aeb80d0..10461a906c5f2420baf92cd465a76e615680e1b3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-   
+
 if (!empty($THEME->chameleonenabled)) {
     $chameleon_isadmin = has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
     $chameleon_isteacher = false;
@@ -10,8 +10,8 @@ if (!empty($THEME->chameleonenabled)) {
         $chameleon_courseparam = '?id=' . $COURSE->id;
         $chameleon_isteacher = !empty($COURSE->theme) and has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $COURSE->id));
     }
-    
-    if ($chameleon_isadmin or ($chameleon_isteacher and !empty($CFG->allowcoursethemes) and !empty($THEME->chameleonteachereditenabled))) { 
+
+    if ($chameleon_isadmin or ($chameleon_isteacher and !empty($CFG->allowcoursethemes) and !empty($THEME->chameleonteachereditenabled))) {
         // either we're an admin or we're a teacher and this is being used as the course theme
         // if we're on a page using a course theme edit that, otherwise edit the main chameleon theme
         $chameleon_theme = $PAGE->theme->name;
index 5368180a59226cebb4e4fc81a8664bde56e2bd11..b7f373a1e4529cf489ea255064ae815808aff248 100644 (file)
@@ -37,7 +37,7 @@ String.prototype.trim = function() {
 
     var struct = [];
     var hotspotMode = null;
-        
+
     var Config = {
         THEME_ROOT: '<?php echo $chameleon_theme_root; ?>',
         REMOTE_URI: '<?php echo substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/')); ?>/css.php<?php echo (isset($_GET['id'])) ? '?id='.(int) $_GET['id'] : '?dummy=1'; ?>',
@@ -52,7 +52,7 @@ String.prototype.trim = function() {
         UNITS: ['px', 'pt', 'em', '%'],
         PROPS_LIST: ['color', 'background-color', 'background-image', 'background-attachment', 'background-position', 'font-family', 'font-size', 'font-weight', 'font-style', 'line-height', 'margin', 'padding', 'border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width', 'border-top-style', 'border-right-style', 'border-bottom-style', 'border-left-style', 'border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color']
     };
-      
+
 
 
     var Util = {
@@ -65,7 +65,7 @@ String.prototype.trim = function() {
             obj.setAttribute('id', id);
             return obj;
         },
-    
+
         removeElement: function(obj) {
             if (!obj || !obj.parentNode) return false;
 
@@ -73,7 +73,7 @@ String.prototype.trim = function() {
             if (!kids.length && typeof obj.all != 'undefined') {
                 kids = obj.all;
             }
-            
+
             var n = kids.length;
             while (n--) {
                 if (kids[n].id && Util.__registry[kids[n].id]) {
@@ -83,23 +83,23 @@ String.prototype.trim = function() {
             if (Util.__registry[obj.id]) {
                 Util.__removeAllEvents(obj);
             }
-            obj.parentNode.removeChild(obj); 
+            obj.parentNode.removeChild(obj);
         },
-        
+
         clearElement: function(obj) {
             while (obj.hasChildNodes()) {
                 obj.removeChild(obj.firstChild);
             }
-        }, 
+        },
 
         addEvent: function(obj, ev, fn) {
             if (!Util.__addToRegistry(obj, ev, fn)) return;
-  
+
             if (obj.addEventListener) {
                 obj.addEventListener(ev, fn, false);
             } else if (obj.attachEvent) {
                 obj['e' + ev + fn] = fn;
-                obj[ev + fn] = function() { 
+                obj[ev + fn] = function() {
                     obj['e' + ev + fn](window.event);
                 };
                 obj.attachEvent('on' + ev, obj[ev + fn]);
@@ -112,7 +112,7 @@ String.prototype.trim = function() {
                 obj.removeEventListener(ev, fn, false);
             } else if (obj.detachEvent) {
                 obj.detachEvent('on' + ev, obj[ev + fn]);
-                obj[ev + fn] = null;     
+                obj[ev + fn] = null;
             }
         },
 
@@ -150,9 +150,9 @@ String.prototype.trim = function() {
         },
         __removeFromRegistry: function(obj, ev, fn) {
             var id = Util.__getEventId(obj);
-     
+
             if (!id) return false;
+
             var pos = Util.__findEvent(id, ev, fn);
             if (pos != -1) {
                 Util.__registry[id][ev].splice(pos, 1);
@@ -203,26 +203,26 @@ String.prototype.trim = function() {
             return {x: x, y: y};
         }
     };
-    
-    
-    
+
+
+
 
 
 
 
     var CSS = {
-        
+
         __localCSS: {},
         __remoteCSS: {},
-        
+
         __localSaveRequired: false,
         __remoteSaveRequired: false,
-        
-        
+
+
         requireRemoteSave: function() {
-            CSS.__remoteSaveRequired = true;            
+            CSS.__remoteSaveRequired = true;
         },
-        
+
         clearTheme: function() {
             /*var links = document.getElementsByTagName('link');
             var n = links.length;
@@ -233,7 +233,7 @@ String.prototype.trim = function() {
                 }
             }*/
         },
-        
+
 
         loadRemote: function(doSetup) {
             if (!Sarissa.IS_ENABLED_XMLHTTP) {
@@ -260,34 +260,34 @@ String.prototype.trim = function() {
             xmlhttp.send(null);
             return true;
         },
-        
-        
+
+
         updateTemp: function(e, reset) {
             if (!CSS.__localSaveRequired && !reset) {
                 UI.statusMsg('There are no changes that need saving!', 'chameleon-notice');
                 return;
             }
-            
+
             if (!reset) {
                 UI.statusMsg('Updating temporary styles on the server...', 'chameleon-working');
             } else {
                 UI.statusMsg('Deleting temporary styles from the server...', 'chameleon-working');
             }
-            
+
             var css = CSS.toString();
             var xmlhttp = new XMLHttpRequest();
             xmlhttp.onreadystatechange = function() {
                 if (xmlhttp.readyState == 4) {
                     if (xmlhttp.responseText.indexOf('CHAMELEON_ERROR') != -1) {
                         UI.statusMsg('There was an error saving to the server:\n' + xmlhttp.responseText.replace(/CHAMELEON_ERROR /, '') + '.', 'chameleon-error');
-                        
+
                     } else {
                         CSS.__localSaveRequired = false;
                         if (!reset) {
                             UI.statusMsg('Temporary styles have been updated.', 'chameleon-ok');
                         } else {
                             UI.statusMsg('Temporary styles have been cleared.', 'chameleon-ok');
-                        }        
+                        }
                     }
                     xmlhttp = null;
                 }
@@ -296,14 +296,14 @@ String.prototype.trim = function() {
             xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
             xmlhttp.send('css=' + css);
         },
-        
+
 
         updateRemote: function() {
             if (!CSS.__remoteSaveRequired) {
                 UI.statusMsg('There are no changes that need saving!', 'chameleon-notice');
                 return;
             }
-        
+
             var css = CSS.toString(CSS.__localCSS);
 
             UI.statusMsg('Updating styles on the server...', 'chameleon-working');
@@ -325,33 +325,33 @@ String.prototype.trim = function() {
             xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
             xmlhttp.send('css=' + css);
         },
-        
-    
-        
-        
-      
-      
+
+
+
+
+
+
         hardReset: function(e, noPrompt) {
             if (noPrompt || confirm('Are you sure? This will erase all styles that have not been permanently saved to the server.')) {
                 CSS.__localCSS = {};
                 CSS.updateTemp(null, true);
-                
+
                 CSS.__localCSS = CSS.__clone(CSS.__remoteCSS);
                 CSS.__localSaveRequired = false;
                 CSS.__remoteSaveRequired = false;
                 CSS.preview();
             }
         },
-        
-        
-        
+
+
+
         setPropValue: function(prop, value, selector) {
             if (!selector) var selector = CSS.Selector.get();
 
             if (!CSS.__localCSS[selector]) {
                 CSS.__localCSS[selector] = {};
             }
-            
+
             var matches = prop.match(/^border\-([^\-]+)$/);
             if (value) {
                 var func = CSS.__requiresFunction(prop);
@@ -375,12 +375,12 @@ String.prototype.trim = function() {
                     CSS.unsetProp(prop, selector);
                 }
             }
-            
+
             CSS.__localSaveRequired = true;
             CSS.__remoteSaveRequired = true;
             CSS.preview(selector);
         },
-        
+
         getPropValue: function(prop, selector) {
             if (!selector) var selector = CSS.Selector.get();
 
@@ -403,8 +403,8 @@ String.prototype.trim = function() {
                 delete CSS.__localCSS[selector];
             }
         },
-        
-        
+
+
         __hasProps: function(selector) {
             for (var prop in CSS.__localCSS[selector]) {
                 if (prop) {
@@ -413,8 +413,8 @@ String.prototype.trim = function() {
             }
             return false;
         },
-        
-        
+
+
 
 
         __cleanFunctions: function(val) {
@@ -444,7 +444,7 @@ String.prototype.trim = function() {
 
         fixPath: function(val) {
             if (val == 'none') return val;
-            
+
             var tmp = val.split('(');
             if (tmp.length > 1) {
                 tmp[1] = Config.THEME_ROOT + '/' + tmp[1];
@@ -452,27 +452,27 @@ String.prototype.trim = function() {
             }
             return Config.THEME_ROOT + '/' + val;
         },
-        
-        
-        
+
+
+
         preview: function(sel) {
             var styleId = 'chameleon-preview-styles';
 
             var h = document.getElementsByTagName('head')[0];
             var s = document.getElementById(styleId);
-            
+
             if (!s) {
                 var s = Util.createElement('style', styleId);
                 s.setAttribute('type', 'text/css');
                 h.appendChild(s);
             }
-            
+
             if (navigator.userAgent.toLowerCase().indexOf('msie') != -1  && !window.opera && document.styleSheets && document.styleSheets.length > 0) {
                 var lastStyle = document.styleSheets[document.styleSheets.length - 1];
-                
+
                 var ieCrashProtector = /[^a-z0-9 #_:\.\-\*]/i; // some characters appearing in a selector can cause addRule to crash IE in spectacular style - if the selector contains any character outside this list don't try to add to the preview
                 var ieWarning = false;
-                
+
                 if (sel) {
                     var matchedSelectors = [];
                     if (typeof sel == 'string') {
@@ -490,7 +490,7 @@ String.prototype.trim = function() {
                                 sel.splice(ns, 1);
                                 break;
                             }
-                            
+
                             if (lastStyle.rules[n].selectorText.toLowerCase() == sel[ns].toLowerCase()) {
                                 matchedSelectors.push(sel[ns]);
                                 sel.splice(ns, 1);
@@ -509,7 +509,7 @@ String.prototype.trim = function() {
                     while (n--) {
                         lastStyle.removeRule(n);
                     }
-                   
+
                     for (var sel in CSS.__localCSS) {
                         if (sel.match(ieCrashProtector)) {
                             ieWarning = true;
@@ -519,18 +519,18 @@ String.prototype.trim = function() {
                         lastStyle.addRule(sel, dec);
                     }
                 }
-                
+
                 if (ieWarning) {
                     UI.statusMsg('The edited CSS contains content that can not be previewed by Internet Explorer', 'chameleon-notice');
                 }
-                
+
             } else {
                 Util.clearElement(s);
                 s.appendChild(document.createTextNode(CSS.toString(CSS.__localCSS, true))); // I think innerHTML would be faster here, but it doesn't work in KHTML browsers (Safari etc)
             }
         },
-        
-        
+
+
 
         __merge: function() {
             var merged = {};
@@ -565,7 +565,7 @@ String.prototype.trim = function() {
             }
             return merged;
         },
-        
+
         __clone: function(src) {
             var cloned = {};
             for (var sel in src) {
@@ -578,30 +578,30 @@ String.prototype.trim = function() {
             }
             return cloned;
         },
-        
-        
+
+
         toString: function(css, fixpath) {
             if (!css) var css = CSS.__localCSS;
-            
+
             var dec = '';
             for (var sel in css) {
                 dec += sel + ' ' + CSS.__propsToString(css[sel], fixpath, sel);
             }
             return dec;
         },
-        
+
         __propsToString: function(css, fixpath) {
             CSS.__Shorthand.border = {};
-            
+
             var hasBorder = false;
             var col = false;
             var importantBorders = [];
 
             var dec = '{\n';
             for (var prop in css) {
-                
+
                 var includeProp = true;
-                
+
                 if (prop.indexOf('border') != -1 && prop.indexOf('spacing') == -1 && prop.indexOf('collapse') == -1) {
                     if (css[prop].indexOf('!important') == -1) {
                         CSS.__Shorthand.recordBorder(prop, css[prop]);
@@ -611,7 +611,7 @@ String.prototype.trim = function() {
                     includeProp = false;
                     hasBorder = true;
                 }
-                
+
                 if (prop == 'color') {
                     col = css[prop];
                 }
@@ -624,7 +624,7 @@ String.prototype.trim = function() {
                     }
                 }
             }
-            
+
             if (hasBorder) {
                 dec += CSS.__Shorthand.getBorderString(col);
             }
@@ -634,14 +634,14 @@ String.prototype.trim = function() {
                     dec += '  ' + importantBorders[n].prop + ': ' + importantBorders[n].css + ';\n';
                 }
             }
-            
+
             dec += '}\n';
             return dec;
         },
-        
-                
-        
-        
+
+
+
+
         toObject: function(css) {
             var cssObj = {};
             var end;
@@ -655,7 +655,7 @@ String.prototype.trim = function() {
                 } else {
                     var selectorArr = [selector];
                 }
-                
+
                 var rules = parts.pop().trim();
                 rules = rules.split(';');
                 for (var i = 0; i < rules.length; ++i) {
@@ -665,22 +665,22 @@ String.prototype.trim = function() {
                     var rule = rules[i].split(':');
                     var prop = rule.shift().trim();
                     var val = rule.pop().trim();
-                    
+
                     for (var j = 0; j < selectorArr.length; ++j) {
                         var noFontPropReset = {};
-                        
+
                         selector = selectorArr[j].trim();
                         if (!cssObj[selector]) {
                             cssObj[selector] = {};
                         }
-                    
+
                         if (prop != 'font' && (prop.indexOf('font') != -1 || prop == 'line-height')) {
                             noFontPropReset[prop] = true;
                         }
-                    
+
                         if (prop == 'background') {
                             CSS.__Shorthand.setBackground(cssObj, selector, val);
-                        } else if (prop == 'font') {    
+                        } else if (prop == 'font') {
                             CSS.__Shorthand.setFont(cssObj, selector, val, noFontPropReset);
                         } else if ((prop == 'border' || prop.match(/^border\-([^-]+)$/)) && prop.indexOf('spacing') == -1 && prop.indexOf('collapse') == -1) {
                             CSS.__Shorthand.setBorder(cssObj, selector, val, prop);
@@ -693,11 +693,11 @@ String.prototype.trim = function() {
             }
             return cssObj;
         },
-        
-        
-        
-        
-        
+
+
+
+
+
         getSelectorCSS: function(selector, asObject) {
             if (!selector) var selector = CSS.Selector.get();
 
@@ -707,36 +707,36 @@ String.prototype.trim = function() {
             }
             return selector + ' ' + CSS.__propsToString(css);
         },
-        
-        
-        
+
+
+
         saveRequired: function() {
             return CSS.__localSaveRequired || CSS.__serverSaveRequired;
         },
-        
-        
+
+
         checkSpec: function(e, selector) {
             if (!selector) var selector = CSS.Selector.get();
             if (selector == '') {
                 UI.statusMsg('First you have to choose which item to style!', 'chameleon-notice');
                 return;
             }
-            
+
             var splitSelector = function(selector) {
                 var selectorEnd = selector.split(' ').pop();
                 selectorEnd = selectorEnd.replace(/([\.:#])/g, '|$1');
                 return selectorEnd.split('|');
             };
-            
+
             var similar = [];
-        
+
             var selectorBits = splitSelector(selector);
-        
+
             for (var sel in CSS.__localCSS) {
                 var selBits = splitSelector(sel);
-        
+
                 var n = selectorBits.length;
-        
+
                 while (n--) {
                     var match = selectorBits[n];
                     var m = selBits.length;
@@ -758,15 +758,15 @@ String.prototype.trim = function() {
                     }
                 }
             }
-            
+
             if (similar.length) {
                 UI.Selector.__displayOverview(null, similar, selector);
             } else {
                 UI.statusMsg('Your file currently contains no selectors that appear similar to "' + selector + '"', 'chameleon-notice');
-            }  
+            }
         },
-        
-        
+
+
         unloadPrompt: function() {
             if (CSS.__localSaveRequired) {
                 if (confirm('You have made changes to the CSS on this page since the last time it was saved, these changes will be lost unless you save them now. Select OK to save a temporary copy or Cancel to continue and discard the unsaved CSS.')) {
@@ -779,18 +779,18 @@ String.prototype.trim = function() {
         }
 
     };
-    
-    
-    
+
+
+
     CSS.Selector = {
-        
+
         trimmed: [],
         full: [],
         selector: '',
-        
+
         create: function() {
             CSS.Selector.trimmed = [];
+
             var n = struct.length;
             while (n--) {
                 if (CSS.Selector.full[n]) {
@@ -799,11 +799,11 @@ String.prototype.trim = function() {
             }
             CSS.Selector.set(CSS.Selector.trimmed.join(' '));
         },
-        
+
         modify: function(e) {
             var target = e.target || e.srcElement;
             var p = target.position;
-            
+
             var sel = CSS.Selector.full;
 
             if (!sel[p]) {
@@ -821,27 +821,27 @@ String.prototype.trim = function() {
             CSS.Selector.create();
             UI.Selector.displaySelector(CSS.Selector.trimmed);
         },
-        
+
         set: function(sel) {
             CSS.Selector.selector = sel;
         },
-        
+
         get: function() {
-            return CSS.Selector.selector;  
+            return CSS.Selector.selector;
         },
 
         reset: function() {
             CSS.Selector.trimmed = [];
             CSS.Selector.full = [];
             CSS.Selector.set('');
-        }               
+        }
     };
-    
-    
-    
+
+
+
     CSS.__Shorthand = {
         border: {},
-        
+
         recordBorder: function(prop, value) {
             var pr = prop.split('-')
             var p = pr.pop();
@@ -858,19 +858,19 @@ String.prototype.trim = function() {
             CSS.__Shorthand.border[p].push({prop: prop, value: value});
             CSS.__Shorthand.border[s][p] = value;
         },
-        
+
         getBorderString: function(col) {
             var cb = CSS.__Shorthand.border;
-            
+
             var useHowManyProps = function(prop) {
                 if (!cb['top'] || !cb['right'] || !cb['bottom'] || !cb['left']) {
                     return false;
                 }
-                
+
                 if (!(cb['top'][prop] && cb['right'][prop] && cb['bottom'][prop] && cb['left'][prop])) {
                     return false;
                 }
-                
+
                 if (cb['top'][prop] == cb['right'][prop] && cb['top'][prop] == cb['bottom'][prop] && cb['top'][prop] == cb['left'][prop]) {
                     return 1;
                 }
@@ -882,13 +882,13 @@ String.prototype.trim = function() {
                 }
                 return 4;
             };
-            
+
             var getPropShorthand = function(prop) {
                 var num = useHowManyProps(prop);
                 if (!num) {
                     return '';
                 }
-                
+
                 if (prop.indexOf('color') != -1) {
                     var l = inheritColor(cb['left'][prop]);
                     var r = inheritColor(cb['right'][prop]);
@@ -900,7 +900,7 @@ String.prototype.trim = function() {
                     var t = cb['top'][prop];
                     var b = cb['bottom'][prop];
                 }
-                
+
                 var propShorthand = '';
                 if (num == 1) {
                     propShorthand += '  border-' + prop + ': ' + l;
@@ -913,7 +913,7 @@ String.prototype.trim = function() {
                 }
                 return propShorthand + ';\n';
             };
-            
+
             var propsStr = function(props) {
                 var str = '';
                 for (var i = 0; i < props.length; ++i) {
@@ -921,29 +921,29 @@ String.prototype.trim = function() {
                 }
                 return str;
             };
-            
+
             var inheritColor = function(val) {
-                if (!col || val != 'inherit') return val;               
+                if (!col || val != 'inherit') return val;
                 return col;
             };
-            
+
             var setImportant = function(str) {
                 if (!str) return '';
                 if (str.indexOf('!important') == -1) return str;
                 str = str.replace(/ *\!important */g, ' ');
                 return str.substr(0, str.lastIndexOf(';')) + ' !important;\n';
             };
-                      
+
             var widthEqual = (cb['width']) ? CSS.__Shorthand.__allPropsEqual(cb['width']) : false;
             var styleEqual = (cb['style']) ? CSS.__Shorthand.__allPropsEqual(cb['style']) : false;
             var colorEqual = (cb['color']) ? CSS.__Shorthand.__allPropsEqual(cb['color']) : false;
-                        
+
             if (widthEqual && styleEqual && colorEqual) {
-                var propStr = setImportant(cb['width'][0].value + ' ' + cb['style'][0].value + ' ' + inheritColor(cb['color'][0].value) + ';\n');              
+                var propStr = setImportant(cb['width'][0].value + ' ' + cb['style'][0].value + ' ' + inheritColor(cb['color'][0].value) + ';\n');
                 if (cb['left'] && cb['top'] && cb['right'] && cb['bottom']) {
                     return '  border: ' + propStr;
                 }
-                
+
                 var sideShorthand = '';
                 if (cb['top']) {
                     sideShorthand += '  border-top: ' + propStr;
@@ -959,7 +959,7 @@ String.prototype.trim = function() {
                 }
                 return sideShorthand;
             }
-            
+
             var widthProps = getPropShorthand('width');
             if (!widthProps) {
                 widthProps = (cb['width']) ? propsStr(cb['width']) : '';
@@ -972,15 +972,15 @@ String.prototype.trim = function() {
             if (!colorProps) {
                 colorProps = (cb['color']) ? propsStr(cb['color']) : '';
             }
-            
+
             return setImportant(widthProps) + setImportant(styleProps) + setImportant(colorProps);
 
         },
-        
-        
-        
-        
-        
+
+
+
+
+
         setBorder: function(css, selector, value, prop) {
             var props = {};
             var p = '';
@@ -997,10 +997,10 @@ String.prototype.trim = function() {
                 regexp: /^((rgb\(\d{1,3} *, *\d{1,3} *, *\d{1,3} *\))|(#[A-F0-9]{3}([A-F0-9]{3})?)|([a-z]+))$/i,
                 def: 'inherit'
             };
-            
+
             var bits = value.split(' ');
             var imp = (bits[bits.length - 1] == '!important') ? ' ' + bits.pop() : '';
-                        
+
             if (prop == 'border') {
                 for (var i in props) {
                     css[selector]['border-top-' + i] = props[i].def;
@@ -1029,7 +1029,7 @@ String.prototype.trim = function() {
                             bits.splice(j, 1);
                             break;
                         }
-                    }   
+                    }
                 }
                 imp = '';
 
@@ -1073,18 +1073,18 @@ String.prototype.trim = function() {
                     }
                 }
             }
-            
+
         },
-        
-        
-        
-        
+
+
+
+
         setBackground: function(css, selector, value) {
             var imp = (value.indexOf('!important') != -1) ? ' !important' : '';
             if (imp != '') {
                 value = value.replace(/ *\!important */g, '');
             }
-            
+
             var urlPos = value.indexOf('url(');
             if (urlPos == -1 && value.indexOf('none') == -1) {
                 css[selector]['background-color'] = value + imp;
@@ -1104,12 +1104,12 @@ String.prototype.trim = function() {
                 return;
             }
             css[selector]['background-image'] = 'url(' + bits[1].substr(0, endImg).replace(/["']+/g, '') + ')' + imp; //"
-            
+
             var pos = [];
-            
+
             var bgOptions =  bits[1].substring(endImg + 1).split(' ');
             var n = bgOptions.length;
-            
+
             for (var i = 0; i < n; ++i) {
                 var opt = bgOptions[i].trim();
                 if (opt.indexOf('repeat') != -1) {
@@ -1128,13 +1128,13 @@ String.prototype.trim = function() {
                 css[selector]['background-color'] = col + imp;
             }
         },
-        
+
         setFont: function(css, selector, value, noreset) {
             var imp = (value.indexOf('!important') != -1) ? ' !important' : '';
             if (imp != '') {
                 value = value.replace(/ *\!important */g, '');
             }
-            
+
             var order = ['font-style', 'font-variant', 'font-weight', 'font-size', 'font-family'];
             var numProps = order.length;
             var allowedVals = {};
@@ -1143,13 +1143,13 @@ String.prototype.trim = function() {
             allowedVals['font-weight'] = /(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit)/;
             allowedVals['font-size'] = /([^ ]+)/;
             allowedVals['font-family'] = /(.+$)/;
-            
+
             if (!noreset['font-style']) css[selector]['font-style'] = 'normal';
             if (!noreset['font-variant']) css[selector]['font-variant'] = 'normal';
             if (!noreset['font-weight']) css[selector]['font-weight'] = 'normal';
             if (!noreset['font-size']) css[selector]['font-size'] = 'medium';
             if (!noreset['line-height']) css[selector]['line-height'] = 'normal';
-            
+
             var expandShorthand = function(bits) {
                 var numBits = bits.length;
                 var startProp = 0;
@@ -1172,7 +1172,7 @@ String.prototype.trim = function() {
                     }
                 }
             };
-            
+
             var removeCommaListSpaces = function(str) {
                 var comma = str.indexOf(',');
                 if (comma != -1) {
@@ -1180,29 +1180,29 @@ String.prototype.trim = function() {
                 }
                 return str;
             };
-            
+
             var hasQuote = value.match(/(["'])/); //"
             if (hasQuote) {
                 var tmp = value.split(hasQuote[1]);
                 var bits = removeCommaListSpaces(tmp.shift()).split(' ');
                 var startFont = bits.pop();
-                
+
                 expandShorthand(bits);
-                
-                css[selector]['font-family'] = startFont + hasQuote[1] + tmp.join(hasQuote[1]) + imp;           
+
+                css[selector]['font-family'] = startFont + hasQuote[1] + tmp.join(hasQuote[1]) + imp;
             } else {
-                value = removeCommaListSpaces(value);            
+                value = removeCommaListSpaces(value);
                 expandShorthand(value.split(' '));
             }
         },
-        
-        
-        
+
+
+
 
         __allPropsEqual: function(props) {
             var num = props.length - 1;
             if (num < 3) return false;
-            
+
             for (var i = 0; i < num; ++i) {
                 if (props[i].value != props[i + 1].value) {
                     return false;
@@ -1211,19 +1211,19 @@ String.prototype.trim = function() {
             return true;
         }
     };
-    
-    
-    
+
+
+
     CSS.FreeEdit = {
-      
+
         __initial: {},
-        
+
         setInitial: function(e) {
             var target = e.target || e.srcElement;
 
             CSS.FreeEdit.__initial = CSS.toObject(target.value);
         },
-        
+
         saveComplete: function(e) {
             var target = e.target || e.srcElement;
             target.value = CSS.FreeEdit.__stripComments(target.value);
@@ -1235,11 +1235,11 @@ String.prototype.trim = function() {
 
             CSS.preview();
         },
-        
+
         saveSelector: function(e) {
             var target = e.target || e.srcElement;
             target.value = CSS.FreeEdit.__stripComments(target.value);
-            
+
             var changedSelectors = [];
             var css = CSS.toObject(target.value);
             for (var sel in css) {
@@ -1266,25 +1266,25 @@ String.prototype.trim = function() {
                     }
                 }
             }
-            
+
             CSS.__localSaveRequired = true;
             CSS.__remoteSaveRequired = true;
             CSS.preview(changedSelectors);
         },
-        
+
         __stripComments: function(str) {
             return str.replace(/\/\*([\s\S])*?\*\//g, '');
         }
-        
+
     };
-    
-    
-    
-    
-    
-    
+
+
+
+
+
+
     var FileHandler = {
-        
+
         getFiles: function(path) {
             if (!path) path = '';
             var xmlhttp = new XMLHttpRequest();
@@ -1299,11 +1299,11 @@ String.prototype.trim = function() {
             return true;
         }
     };
-    
-    
-    
-    
-    
+
+
+
+
+
     var UI = {
         boxes: [],
         boxOffsetX: 35,
@@ -1314,7 +1314,7 @@ String.prototype.trim = function() {
 
         statusMsg: function(msg, cls) {
             UI.clearStatusMsg();
-            
+
             var target = UI.__getBox();
             if (!target) {
                 var box = Util.createElement('div', 'chameleon-status-msg');
@@ -1322,26 +1322,26 @@ String.prototype.trim = function() {
                 box.style.zIndex = ++UI.zIndex;
                 UI.addToDoc(box);
             } else {
-         
+
                 var statusTable = Util.createElement('table', 'chameleon-status-msg');
                 var statusTableBody = Util.createElement('tbody');
                 var statusRow = Util.createElement('tr');
                 var statusIconCell = Util.createElement('td');
                 var statusMsgCell = Util.createElement('td');
                 var statusBtnCell = Util.createElement('td');
-                
+
                 if (cls) {
                     statusIconCell.className = cls;
                 }
                 statusMsgCell.appendChild(document.createTextNode(msg));
                 statusBtnCell.appendChild(UI.createButton('chameleon-status-msg-btn', 'OK', 'Clear this message', UI.clearStatusMsg));
-                
+
                 statusRow.appendChild(statusIconCell);
                 statusRow.appendChild(statusMsgCell);
                 statusRow.appendChild(statusBtnCell);
                 statusTableBody.appendChild(statusRow);
                 statusTable.appendChild(statusTableBody);
-                
+
                 target.appendChild(statusTable);
             }
         },
@@ -1362,7 +1362,7 @@ String.prototype.trim = function() {
                 var offset = x + 525 - screen.width;
                 x -= offset;
             }
-            
+
             var box = Util.createElement('div', id);
             box.style.left = x + 'px';
             box.style.top = y + 'px';
@@ -1373,7 +1373,7 @@ String.prototype.trim = function() {
             closeBtn.appendChild(document.createTextNode('x'));
             closeBtn.setAttribute('title', 'Close');
             topBar.setAttribute('title', 'Drag me!');
-            
+
             UI.__dragTargetId = id + '-handle';
 
             Util.addEvent(closeBtn, 'click', UI.closeBoxes);
@@ -1383,12 +1383,12 @@ String.prototype.trim = function() {
 
             topBar.appendChild(closeBtn);
             box.appendChild(topBar);
-   
+
             UI.boxes.push(id);
 
             return box;
         },
-        
+
         closeAllBoxes: function() {
             var n = UI.boxes.length;
             while (n--) {
@@ -1403,7 +1403,7 @@ String.prototype.trim = function() {
                 var target = e.target || e.srcElement;
                 var box = target.parentNode.parentNode;
             }
-                        
+
             var n = UI.boxes.length;
             while (n--) {
                 if (UI.boxes[n] == box.id) {
@@ -1422,7 +1422,7 @@ String.prototype.trim = function() {
             var mouseCoords = Pos.getMouse(e);
             var elementCoords = Pos.getElement(target);
             target.mouseX = mouseCoords.x - elementCoords.x;
-            target.mouseY = mouseCoords.y - elementCoords.y;    
+            target.mouseY = mouseCoords.y - elementCoords.y;
 
             UI.__dragTargetId = target.id;
 
@@ -1439,7 +1439,7 @@ String.prototype.trim = function() {
             var mouseCoords = Pos.getMouse(e);
             target.parentNode.style.left = (mouseCoords.x - target.mouseX) + 'px';
             target.parentNode.style.top = (mouseCoords.y - target.mouseY) + 'px';
-            
+
             if (e.preventDefault) {
                 e.preventDefault();
             } else if (window.event) {
@@ -1451,7 +1451,7 @@ String.prototype.trim = function() {
             var target = e.target || e.srcElement;
             target.parentNode.style.zIndex = ++UI.zIndex;
         },
-        
+
         __getBox: function() {
             var obj = document.getElementById(UI.__dragTargetId);
             if (obj && obj.parentNode) {
@@ -1459,10 +1459,10 @@ String.prototype.trim = function() {
             }
             return false;
         },
-        
-        
-        
-        
+
+
+
+
         setupPane: function(tabs, parentId, tabId, active) {
             for (var i = 0; i < tabs.length; ++i) {
                 var obj = document.getElementById(tabId + '-tab-' + tabs[i]);
@@ -1477,7 +1477,7 @@ String.prototype.trim = function() {
             }
             return parent;
         },
-        
+
         setupButtons: function() {
             var parentId = arguments[0];
             var parent = document.getElementById(parentId);
@@ -1496,7 +1496,7 @@ String.prototype.trim = function() {
                 }
             }
         },
-        
+
         createButton: function(id, value, title, fn, hidden) {
             var btn = Util.createElement('input', id);
             btn.setAttribute('type', 'submit');
@@ -1518,15 +1518,15 @@ String.prototype.trim = function() {
             }
         }
     };
-    
-    
+
+
     UI.Selector = {
         controlsId: 'chameleon-selector-controls',
         viewedProp: null,
         displayPropWatch: false,
         sections: ['choose', 'overview', 'free-edit'],
-        
-        
+
+
         editWindow: function(e) {
             if (!e.shiftKey) {
                 return;
@@ -1537,7 +1537,7 @@ String.prototype.trim = function() {
             if (typeof tmpStruct == 'string') {
                 return;
             }
-            
+
             hotspotMode = false;
 
             var box = document.getElementById('chameleon-selector-box');
@@ -1558,7 +1558,7 @@ String.prototype.trim = function() {
             var tabsContainer = Util.createElement('table', 'chameleon-selector-tabs');
             var tabsBody = Util.createElement('tbody');
             var tabs = Util.createElement('tr');
+
             tabs.appendChild(UI.Selector.__createTab('Choose', UI.Selector.__editSelector, true, 'Choose'));
             tabs.appendChild(UI.Selector.__createTab('Overview', UI.Selector.__displayOverview, false, 'Overview'));
             tabs.appendChild(UI.Selector.__createTab('Free Edit', UI.Selector.__editCode, false, 'Free Edit'));
@@ -1575,18 +1575,18 @@ String.prototype.trim = function() {
             UI.addToDoc(box);
 
             UI.Selector.__editSelector();
-            
+
             if (e.preventDefault) {
                 e.preventDefault();
             } else if (window.event) {
                 window.event.returnValue = false;
             }
         },
-        
-       
+
+
         __listProps: function(e) {
              var target = e.target || e.srcElement;
-             
+
              Util.removeElement(document.getElementById('chameleon-selector-element-list'));
              UI.Selector.viewedProp = target.options[target.selectedIndex].value;
              if (!document.getElementById('chameleon-selector-list')) {
@@ -1595,7 +1595,7 @@ String.prototype.trim = function() {
                  target.parentNode.parentNode.insertBefore(UI.Selector.__elementList(target.options[target.selectedIndex].value), document.getElementById('chameleon-selector-list'));
              }
         },
-        
+
         __editSelector: function() {
             var parent = UI.setupPane(UI.Selector.sections, UI.Selector.controlsId, 'chameleon-selector', 'choose');
             UI.setupButtons('chameleon-selector-buttons', 'edit', 'check');
@@ -1605,17 +1605,17 @@ String.prototype.trim = function() {
             var instructions = Util.createElement('p');
             instructions.appendChild(document.createTextNode('Please choose the element you wish to style.'));
             container.appendChild(instructions);
-            
+
             var options = Util.createElement('p');
-            
+
             if (UI.Selector.__displayPropWatch) {
-                            
+
                 var selectProp = Util.createElement('select', 'chameleon-selector-prop-select');
                 var optionProp = Util.createElement('option');
                 optionProp.appendChild(document.createTextNode('Select a CSS property to view'));
                 optionProp.setAttribute('value', '');
                 selectProp.appendChild(optionProp);
-            
+
                 for (var i = 0; i < Config.PROPS_LIST.length; ++i) {
                     optionProp = Util.createElement('option');
                     optionProp.setAttribute('value', Config.PROPS_LIST[i]);
@@ -1623,52 +1623,52 @@ String.prototype.trim = function() {
                         optionProp.setAttribute('selected', 'selected');
                     }
                     optionProp.appendChild(document.createTextNode(Config.PROPS_LIST[i]));
-                    selectProp.appendChild(optionProp); 
+                    selectProp.appendChild(optionProp);
                 }
-            
+
                 Util.addEvent(selectProp, 'change', UI.Selector.__listProps);
-            
+
                 options.appendChild(selectProp);
+
             }
-            
+
             var togglePropWatch = Util.createElement('a');
             togglePropWatch.setAttribute('title', 'The property inspector allows you to check the current value of a range of CSS properties for these elements');
             togglePropWatch.appendChild(document.createTextNode(' (' + (UI.Selector.__displayPropWatch ? 'Hide property inspector' : 'Show property inspector') + ')'));
             Util.addEvent(togglePropWatch, 'click', UI.Selector.__togglePropWatch);
             options.appendChild(togglePropWatch);
-            
-            
+
+
             container.appendChild(options);
-            
+
             container.appendChild(UI.Selector.__elementList());
 
             parent.appendChild(container);
 
             UI.Selector.displaySelector(CSS.Selector.trimmed);
         },
-        
+
         __togglePropWatch: function() {
             UI.Selector.__displayPropWatch = !UI.Selector.__displayPropWatch;
             UI.Selector.__editSelector();
         },
-        
+
         __displayOverview: function(e, selectors, selector) {
             var parent = UI.setupPane(UI.Selector.sections, UI.Selector.controlsId, 'chameleon-selector', 'overview');
             UI.setupButtons('chameleon-selector-buttons');
-            
+
             var container = Util.createElement('div', 'chameleon-style-overview-container');
             parent.appendChild(container); // doing it this way is much faster than creating the table then applying the overflow
             UI.setOverflow(container, 350, true);
-            
+
             var overviewTable = Util.createElement('table', 'chameleon-style-overview');
             var overviewTableBody = Util.createElement('tbody');
-            
+
             if (!selectors) {
 
                 for (var sel in CSS.__localCSS) {
                     var overviewTableRow = Util.createElement('tr');
-                
+
                     var overviewTableCell = Util.createElement('th');
                     overviewTableCell.className = 'selector';
                     overviewTableCell.appendChild(document.createTextNode(sel));
@@ -1698,12 +1698,12 @@ String.prototype.trim = function() {
                     }
                 }
             } else {
-            
+
                 var n = selectors.length;
-                
+
                 if (!CSS.__localCSS[selector]) {
                     var overviewTableRow = Util.createElement('tr');
-                
+
                     var overviewTableCell = Util.createElement('th');
                     overviewTableCell.className = 'current-selector';
                     overviewTableCell.appendChild(document.createTextNode(selector));
@@ -1720,12 +1720,12 @@ String.prototype.trim = function() {
                     overviewTableRow.appendChild(overviewTableCell);
                     overviewTableBody.appendChild(overviewTableRow);
                 }
-                
+
                 for (var i = 0; i < n; ++i) {
                     var sel = selectors[i];
-                    
+
                     var overviewTableRow = Util.createElement('tr');
-                
+
                     var overviewTableCell = Util.createElement('th');
                     overviewTableCell.className = (sel == selector) ? 'current-selector' : 'selector';
                     overviewTableCell.appendChild(document.createTextNode(sel));
@@ -1741,7 +1741,7 @@ String.prototype.trim = function() {
 
                     overviewTableRow.appendChild(overviewTableCell);
                     overviewTableBody.appendChild(overviewTableRow);
-                    
+
                     for (var prop in CSS.__localCSS[sel]) {
                         overviewTableRow = Util.createElement('tr');
                         overviewTableCell = Util.createElement('td');
@@ -1755,18 +1755,18 @@ String.prototype.trim = function() {
                         overviewTableBody.appendChild(overviewTableRow);
                     }
                 }
-            
+
             }
 
-            overviewTable.appendChild(overviewTableBody);            
+            overviewTable.appendChild(overviewTableBody);
             container.appendChild(overviewTable);
         },
-        
+
         __elementList: function(showComputedStyle) {
             if (!showComputedStyle && UI.Selector.viewedProp) {
                 showComputedStyle = UI.Selector.viewedProp;
             }
-            
+
             var list = Util.createElement('ol', 'chameleon-selector-element-list');
             var n = struct.length;
             var classStr = '';
@@ -1783,7 +1783,7 @@ String.prototype.trim = function() {
                 tag.appendChild(document.createTextNode(struct[n].tagname));
                 tag.selectorValue = struct[n].tagname;
                 tag.position = n;
-               
+
                 UI.Selector.__autoHighlight(tag);
 
                 Util.addEvent(tag, 'click', CSS.Selector.modify);
@@ -1792,8 +1792,8 @@ String.prototype.trim = function() {
 
                 if (idStr = struct[n].id) {
                     var id = Util.createElement('span', 'chameleon-id-attr-' + n);
-                    id.selectorValue = struct[n].tagname + '#' + idStr; 
-                    id.position = n;      
+                    id.selectorValue = struct[n].tagname + '#' + idStr;
+                    id.position = n;
                     id.appendChild(document.createTextNode('#' + idStr));
 
                     UI.Selector.__autoHighlight(id);
@@ -1807,7 +1807,7 @@ String.prototype.trim = function() {
                     for (var i = 0; i < classArr.length; ++i) {
                         var cn = Util.createElement('span', 'chameleon-class-attr-' + n + '-' + i);
                         cn.selectorValue = struct[n].tagname + '.' + classArr[i];
-                        cn.position = n;      
+                        cn.position = n;
                         cn.appendChild(document.createTextNode('.' + classArr[i]));
 
                         UI.Selector.__autoHighlight(cn);
@@ -1821,7 +1821,7 @@ String.prototype.trim = function() {
                         var pc = Util.createElement('span', 'chameleon-pseudo-class' + n + '-' + i);
                         pc.selectorValue = struct[n].tagname + ':' + pseudoClasses[i];
 
-                        pc.position = n;      
+                        pc.position = n;
                         pc.appendChild(document.createTextNode(':' + pseudoClasses[i]));
 
                         UI.Selector.__autoHighlight(pc);
@@ -1830,17 +1830,17 @@ String.prototype.trim = function() {
                         item.appendChild(pc);
                     }
                 }
-                
+
                 if (showComputedStyle) {
                     var sides = ['top', 'right', 'bottom', 'left'];
-                    
+
                     if (document.defaultView && document.defaultView.getComputedStyle) {
                         if (showComputedStyle == 'margin' || showComputedStyle == 'padding') {
                             var styleVal = [];
-                            for (var i = 0; i < 4; ++i) {                                
+                            for (var i = 0; i < 4; ++i) {
                                 styleVal.push(document.defaultView.getComputedStyle(struct[n].el, null).getPropertyValue(showComputedStyle + '-' + sides[i]))
                             }
-                            
+
                             if (styleVal[0] == styleVal[1] && styleVal[1] == styleVal[2] && styleVal[2] == styleVal[3]) {
                                 styleVal = styleVal[0];
                             } else if (styleVal[0] == styleVal[2] && styleVal[1] == styleVal[3]) {
@@ -1850,40 +1850,40 @@ String.prototype.trim = function() {
                             } else {
                                 styleVal = styleVal.join(' ');
                             }
-                        } else {                    
+                        } else {
                             var styleVal = document.defaultView.getComputedStyle(struct[n].el, null).getPropertyValue(showComputedStyle);
                         }
 
-                        
+
                         if (styleVal.indexOf('rgb') != -1) {
                             styleVal = UI.Selector.__formatColor(styleVal);
                         }
+
                     } else if (struct[n].el.currentStyle) {
                         var propBits = showComputedStyle.split('-');
                         for (var i = 1; i < propBits.length; ++i) {
                             propBits[i] = propBits[i].charAt(0).toUpperCase() + propBits[i].substring(1);
                         }
-                        var styleVal = struct[n].el.currentStyle[propBits.join('')];                       
+                        var styleVal = struct[n].el.currentStyle[propBits.join('')];
                     }
-                    
+
                     var sp = Util.createElement('span');
                     sp.className = 'prop-value';
                     sp.appendChild(document.createTextNode(styleVal));
-                    
+
                     item.appendChild(sp);
                 }
 
-                
+
                 list.appendChild(item);
             }
-            
+
             return list;
         },
-        
-        
+
+
         __formatColor: function(color) {
-            var newColor = '';            
+            var newColor = '';
             colorBits = color.replace(/rgb\(|[ \)]/g, '').split(',');
             var hexCol = (colorBits[0] << 16 | colorBits[1] << 8 | colorBits[2]).toString(16);
             while (hexCol.length < 6) {
@@ -1891,15 +1891,15 @@ String.prototype.trim = function() {
             }
             return '#' + hexCol;
         },
-        
-        
+
+
         __editCode: function() {
             var parent = UI.setupPane(UI.Selector.sections, UI.Selector.controlsId, 'chameleon-selector', 'free-edit');
             UI.setupButtons('chameleon-selector-buttons', 'revert', 'save-local', 'save-server');
 
             var container = Util.createElement('div');
             var textarea = Util.createElement('textarea', 'chameleon-free-edit-all-field');
-            
+
             textarea.style.width = '100%';
             textarea.style.height = '350px';
             Util.addEvent(textarea, 'blur', CSS.FreeEdit.saveComplete);
@@ -1909,17 +1909,17 @@ String.prototype.trim = function() {
             parent.appendChild(container);
             textarea.value = CSS.toString(); // avoid Konqueror bug
         },
-        
-        
-        
-        
+
+
+
+
         __selectorList: function() {
             return Util.createElement('ol', 'chameleon-selector-list');
         },
-        
-        
-        
-        
+
+
+
+
         __createTab: function(str, fn, active, title) {
             var id = 'chameleon-selector-tab-' + str.replace(/ +/, '-').toLowerCase();
             var tab = Util.createElement('td', id);
@@ -1941,10 +1941,10 @@ String.prototype.trim = function() {
 
             return p;
         },
-        
-        
-        
-        
+
+
+
+
         __autoHighlight: function(el) {
             if (CSS.Selector.full[el.position] && CSS.Selector.full[el.position].val == el.selectorValue) {
                 UI.Selector.highlight(el);
@@ -1952,7 +1952,7 @@ String.prototype.trim = function() {
                 UI.Selector.unhighlight(el);
             }
         },
-        
+
         highlight: function(el) {
             UI.Selector.unhighlight(el);
             el.className += 'active-selector';
@@ -1961,10 +1961,10 @@ String.prototype.trim = function() {
         unhighlight: function(el) {
             el.className = el.className.replace(/\bactive-selector\b/, '');
         },
-        
-        
-        
-        
+
+
+
+
         displaySelector: function(selector) {
             var n = selector.length;
 
@@ -1991,13 +1991,13 @@ String.prototype.trim = function() {
                 item.appendChild(document.createTextNode('That are descended from ' + UI.Selector.__describe(selector[n])));
                 list.appendChild(item);
             }
-            
+
             UI.setOverflow(list, 100);
         },
 
         __describe: function(txt) {
             if (!txt) return '';
-            
+
             if (txt.indexOf(':') != -1) {
                 var parts = txt.split(':');
                 var pc = ' the "' + parts.pop() + '" state of ';
@@ -2017,23 +2017,23 @@ String.prototype.trim = function() {
             return pc + txt + ' tags';
         }
     };
-    
-    
-    
+
+
+
     UI.CSS = {
         redraw: null,
         colorType: null,
         controlsId: 'chameleon-style-controls',
         sections: ['text', 'backgrounds', 'borders-all', 'borders-separate', 'free-edit'],
-        
+
         __borderEditGroup: true,
-        
+
         editWindow: function(e) {
             if (CSS.Selector.get() == '') {
                 UI.statusMsg('First you have to choose which item to style!', 'chameleon-notice');
                 return;
             }
-            
+
             var box = document.getElementById('chameleon-style-box');
             if (box) UI.closeBoxes(true, box);
 
@@ -2052,7 +2052,7 @@ String.prototype.trim = function() {
             var tabsContainer = Util.createElement('table', 'chameleon-style-tabs');
             var tabsBody = Util.createElement('tbody');
             var tabs = Util.createElement('tr');
+
             tabs.appendChild(UI.CSS.__createTab('Text', UI.CSS.__editText, true, 'Text'));
             tabs.appendChild(UI.CSS.__createTab('Backgrounds', UI.CSS.__editBackgrounds, false, 'Backgrounds'));
             tabs.appendChild(UI.CSS.__createTab('Borders (All)', UI.CSS.__editBordersAll, false, 'Borders (All)'));
@@ -2069,19 +2069,19 @@ String.prototype.trim = function() {
             box.appendChild(UI.CSS.__addButtons());
 
             UI.addToDoc(box);
-            
+
             UI.CSS.__editText();
         },
-        
-        
-        
+
+
+
         launchEditWindow: function(e) {
             var target = e.target || e.srcElement;
             CSS.Selector.set(target.value);
             UI.CSS.editWindow(e);
         },
-        
-        
+
+
         __editText: function(e, redraw) {
             UI.CSS.redraw = arguments.callee;
             UI.CSS.colorType = 'color';
@@ -2096,7 +2096,7 @@ String.prototype.trim = function() {
                 container.appendChild(row.node);
 
                 row = UI.CSS.__selectBox('font-family', '-select-font-family', Check.fontFamily, Config.FONTS_LIST);
-                container.appendChild(row.node);        
+                container.appendChild(row.node);
 
                 row = UI.CSS.__inputField('font-family', '-input-font-family', Check.fontFamily, !row.meta.sel);
                 container.appendChild(row.node);
@@ -2112,7 +2112,7 @@ String.prototype.trim = function() {
 
                 row = UI.CSS.__selectBox('font-style', '-select-font-style', Check.fontStyle, Config.FONT_STYLES);
                 container.appendChild(row.node);
-                
+
                 row = UI.CSS.__selectBox('text-align', '-select-text-align', Check.textAlign, Config.TEXT_ALIGN);
                 container.appendChild(row.node);
 
@@ -2127,7 +2127,7 @@ String.prototype.trim = function() {
                 }
             }
         },
-        
+
         __editBackgrounds: function(e, redraw) {
             UI.CSS.redraw = arguments.callee;
             UI.CSS.colorType = 'background-color';
@@ -2145,12 +2145,12 @@ String.prototype.trim = function() {
                 container.appendChild(row.node);
 
                 var extraFields = row.meta;
-                
+
                 row = UI.CSS.__selectBox('background-repeat', '-select-background-repeat', Check.backgroundRepeat, Config.REPEAT_LIST, !extraFields);
                 container.appendChild(row.node);
 
                 row = UI.CSS.__selectBox('background-position', '-select-background-position', Check.backgroundPosition, Config.POSITION_LIST, !extraFields);
-                container.appendChild(row.node);   
+                container.appendChild(row.node);
 
                 containerTable.appendChild(container);
                 parent.appendChild(containerTable);
@@ -2180,24 +2180,24 @@ String.prototype.trim = function() {
                 imgPreview.setAttribute('height', '20');
             }
         },
-        
+
         __editBordersAll: function(e, redraw) {
             UI.CSS.redraw = arguments.callee;
             UI.CSS.colorType = 'border-color';
-                        
+
             var containerTable = document.getElementById('chameleon-style-edit-borders-all-container');
             if (!containerTable) {
-               
+
                 var parent = UI.setupPane(UI.CSS.sections, UI.CSS.controlsId, 'chameleon-style', 'borders-all');
                 containerTable = Util.createElement('table', 'chameleon-style-edit-borders-all-container');
                 var container = Util.createElement('tbody');
 
                 var row = UI.CSS.__inputField('border-width', '-input-border-width', Check.borderWidth);
                 container.appendChild(row.node);
-  
+
                 row = UI.CSS.__inputField('border-color', '-input-border-color', Check.color);
                 container.appendChild(row.node);
-             
+
                 row = UI.CSS.__selectBox('border-style', '-select-border-style', Check.borderStyle, Config.BORDER_LIST);
                 container.appendChild(row.node);
 
@@ -2209,10 +2209,10 @@ String.prototype.trim = function() {
                 }
             }
         },
-        
+
         __editBordersSeparate: function(e, redraw) {
             UI.CSS.redraw = arguments.callee;
-            
+
             var containerTable = document.getElementById('chameleon-style-edit-borders-separate-container');
             if (!containerTable) {
                 var parent = UI.setupPane(UI.CSS.sections, UI.CSS.controlsId, 'chameleon-style', 'borders-separate');
@@ -2221,24 +2221,24 @@ String.prototype.trim = function() {
 
                 var row = UI.CSS.__inputField('border-top-width', '-input-border-top-width', Check.borderWidth);
                 container.appendChild(row.node);
-  
+
                 row = UI.CSS.__inputField('border-top-color', '-input-border-top-color', Check.color, false, UI.CSS.__setColorType);
                 container.appendChild(row.node);
-             
+
                 row = UI.CSS.__selectBox('border-top-style', '-select-border-top-style', Check.borderStyle, Config.BORDER_LIST);
-                container.appendChild(row.node); 
+                container.appendChild(row.node);
 
 
                 row = UI.CSS.__inputField('border-right-width', '-input-border-right-width', Check.borderWidth);
                 container.appendChild(row.node);
+
                 row = UI.CSS.__inputField('border-right-color', '-input-border-right-color', Check.color, false, UI.CSS.__setColorType);
                 container.appendChild(row.node);
 
                 row = UI.CSS.__selectBox('border-right-style', '-select-border-right-style', Check.borderStyle, Config.BORDER_LIST);
-                container.appendChild(row.node);  
+                container.appendChild(row.node);
+
 
                 row = UI.CSS.__inputField('border-bottom-width', '-input-border-bottom-width', Check.borderWidth);
                 container.appendChild(row.node);
 
@@ -2246,9 +2246,9 @@ String.prototype.trim = function() {
                 container.appendChild(row.node);
 
                 row = UI.CSS.__selectBox('border-bottom-style', '-select-border-bottom-style', Check.borderStyle, Config.BORDER_LIST);
-                container.appendChild(row.node);   
+                container.appendChild(row.node);
+
 
                 row = UI.CSS.__inputField('border-left-width', '-input-border-left-width', Check.borderWidth);
                 container.appendChild(row.node);
 
@@ -2257,7 +2257,7 @@ String.prototype.trim = function() {
 
                 row = UI.CSS.__selectBox('border-left-style', '-select-border-left-style', Check.borderStyle, Config.BORDER_LIST);
                 container.appendChild(row.node);
-                
+
                 containerTable.appendChild(container);
                 parent.appendChild(containerTable);
             } else {
@@ -2266,7 +2266,7 @@ String.prototype.trim = function() {
                 }
             }
         },
-        
+
         __editCode: function(e) {
             UI.CSS.redraw = arguments.callee;
 
@@ -2274,7 +2274,7 @@ String.prototype.trim = function() {
 
             var container = Util.createElement('div');
             var textarea = Util.createElement('textarea', 'chameleon-free-edit-field');
-            
+
             textarea.style.width = '100%';
             textarea.style.height = '350px';
 
@@ -2285,32 +2285,32 @@ String.prototype.trim = function() {
             parent.appendChild(container);
             textarea.value = CSS.getSelectorCSS(); // avoid Konqueror bug
         },
-        
-        
-        
-        
-        
-        
-        
+
+
+
+
+
+
+
         __getPropValue: function(prop) {
             var val = UI.CSS.__getBorderPropValue(prop);
             if (val === '') {
                 return false;
             }
-            
+
             if (val === false) {
                 val = CSS.getPropValue(prop);
             }
             return val;
         },
-        
-        
+
+
         __setColorDisplay: function(prop, value, field, picker) {
             if (!field) var field = document.getElementById(UI.CSS.controlsId + '-input-' + prop);
             if (!picker) var picker = document.getElementById(UI.CSS.controlsId + '-color-picker-' + prop);
-            
+
             if (!field || !picker) return;
-            
+
             field.value = value;
             try {
                 picker.style.backgroundColor = (value != '') ? value.replace(/[ ]*\!important/, '') : '#000';
@@ -2321,22 +2321,22 @@ String.prototype.trim = function() {
                 UI.statusMsg(value + ' is an Invalid color!', 'chameleon-error');
             }
         },
-        
+
         __setImageDisplay: function(value, field, picker) {
             if (!field) var field = document.getElementById(UI.CSS.controlsId + '-input-background-image');
             if (!picker) var picker = document.getElementById(UI.CSS.controlsId + '-background-image-picker');
-            
+
             var preview = document.getElementById('chameleon-image-preview');
-            
+
             if (!field || !picker) return;
-            
+
             field.value = value;
             if (value != '') {
                 if (!preview) {
                     preview = Util.createElement('img', 'chameleon-image-preview');
                     picker.appendChild(preview);
                 }
-                
+
                 if (field.value != 'none') {
                     preview.setAttribute('src', CSS.fixPath(value.replace(/[ ]*\!important/, '')));
                 } else {
@@ -2354,57 +2354,57 @@ String.prototype.trim = function() {
                 picker.setAttribute('title', 'Open image picker');
                 Util.addEvent(picker, 'click', UI.CSS.__loadImagePicker);
             }
-            
-            
+
+
         },
-        
+
         __shorthandWarningIcon: function() {
              var img = Util.createElement('img');
              img.setAttribute('src', CSS.fixPath('ui/images/notice.gif'));
              img.style.margin = '0 2px -5px 0';
-             img.setAttribute('title', 'Currently this property has specific values set for one or more individual sides. Updating the value here will set this property for all sides, overwriting these individual values.');  
+             img.setAttribute('title', 'Currently this property has specific values set for one or more individual sides. Updating the value here will set this property for all sides, overwriting these individual values.');
              return img;
         },
-        
+
         __inputField: function(prop, id, validate, hidden, init) {
             var row = Util.createElement('tr', UI.CSS.controlsId + '-row' + id);
             id = UI.CSS.controlsId + id;
-            
+
             var labelCell = Util.createElement('td');
             var fieldCell = Util.createElement('td');
 
             var field = Util.createElement('input', id);
             field.setAttribute('type', 'text');
             field.className = 'chameleon-input-text';
-            
-            
+
+
             var val = UI.CSS.__getPropValue(prop);
             if (val !== false) {
                 field.value = val;
             } else {
                 labelCell.appendChild(UI.CSS.__shorthandWarningIcon());
             }
-            
+
             Util.addEvent(field, 'blur', validate);
             if (init) {
                 Util.addEvent(field, 'focus', init);
             }
-            
+
             labelCell.appendChild(document.createTextNode(UI.CSS.__formatProp(prop) + ': '));
             labelCell.className = 'label';
 
             fieldCell.appendChild(field);
-             
+
             row.appendChild(labelCell);
             row.appendChild(fieldCell);
-            
+
             if (prop == 'color' || prop.indexOf('-color') != -1) {
                 var colorCell = Util.createElement('td');
                 var colorPicker = Util.createElement('div', UI.CSS.controlsId + '-color-picker-' + prop);
 
                 colorPicker.setAttribute('title', 'Open color picker');
                 UI.CSS.__setColorDisplay(prop, field.value, field, colorPicker);
-                
+
                 Util.addEvent(colorPicker, 'click', UI.CSS.__displayColorPicker);
                 if (init) {
                     Util.addEvent(colorPicker, 'click', init);
@@ -2415,12 +2415,12 @@ String.prototype.trim = function() {
             } else if (prop.indexOf('-image') != -1) {
                 var imgCell = Util.createElement('td');
                 var imgPicker = Util.createElement('div', UI.CSS.controlsId + '-background-image-picker');
-                
+
                 UI.CSS.__setImageDisplay(field.value, field, imgPicker);
 
                 imgCell.appendChild(imgPicker);
                 row.appendChild(imgCell);
-                
+
             } else {
                 fieldCell.setAttribute('colspan', '2');
             }
@@ -2429,8 +2429,8 @@ String.prototype.trim = function() {
             }
             return {node: row, meta: (field.value == 'none') ? false : field.value};
         },
-        
-        
+
+
         __selectBox: function(prop, id, validate, src, hidden) {
             var row = Util.createElement('tr', UI.CSS.controlsId + '-row' + id);
             id = UI.CSS.controlsId + id;
@@ -2438,7 +2438,7 @@ String.prototype.trim = function() {
             var labelCell = Util.createElement('td');
             var fieldCell = Util.createElement('td');
             fieldCell.setAttribute('colspan', '2');
-            
+
             var currentValue = UI.CSS.__getPropValue(prop);
             if (currentValue === false) {
                 labelCell.appendChild(UI.CSS.__shorthandWarningIcon());
@@ -2456,7 +2456,7 @@ String.prototype.trim = function() {
 
             var selected = false;
             var otherSelected = false;
-        
+
             for (var i = 0; i < src.length; ++i) {
                 op = Util.createElement('option');
                 op.setAttribute('value', src[i]);
@@ -2484,9 +2484,9 @@ String.prototype.trim = function() {
 
             return {node: row, meta: {sel: otherSelected, value: currentValue}};
         },
-        
-        
-        
+
+
+
         __createTab: function(str, fn, active, title) {
             var id = 'chameleon-style-tab-' + str.replace(/[\( ]+/, '-').replace(/[\)]+/, '').toLowerCase();
             var tab = Util.createElement('td', id);
@@ -2495,7 +2495,7 @@ String.prototype.trim = function() {
             Util.addEvent(tab, 'click', fn);
             return tab;
         },
-        
+
         __addButtons: function() {
             var p = Util.createElement('p', 'chameleon-style-buttons');
             p.style.textAlign = 'right';
@@ -2506,7 +2506,7 @@ String.prototype.trim = function() {
 
             return p;
         },
-        
+
         __formatProp: function(txt) {
             if (txt.length > 15 && txt.indexOf('-') != -1) {
                 return txt.split('-').slice(1).join('-');
@@ -2519,7 +2519,7 @@ String.prototype.trim = function() {
 
         __loadImagePicker: function(e) {
             var target = e.target || e.srcElement;
-        
+
             if (target.value) {
                 UI.statusMsg('Loading file list for ' + target.value + '...', 'chameleon-working');
                 FileHandler.getFiles(target.value);
@@ -2528,7 +2528,7 @@ String.prototype.trim = function() {
                 FileHandler.getFiles('root');
             }
         },
-        
+
         displayImagePicker: function(xmldata) {
             UI.clearStatusMsg();
 
@@ -2537,15 +2537,15 @@ String.prototype.trim = function() {
 
             var coords = Pos.getElement(document.getElementById('chameleon-style-box'));
             box = UI.makeDraggableBox('chameleon-file-box', coords.x + UI.boxOffsetX, coords.y + UI.boxOffsetY);
-            
+
             if (xmldata.firstChild.nodeName.toLowerCase() == 'chameleon_error') {
                 UI.statusMsg('There was an error reading files from the server:\n' + xmldata.firstChild.firstChild.nodeValue + '.', 'chameleon-error');
                 return;
             }
-            
+
             var files = xmldata.firstChild;
             var hasFiles = false;
-        
+
             var infoTable = Util.createElement('table');
             var infoTableBody = Util.createElement('tbody');
             var infoTableRow = Util.createElement('tr');
@@ -2561,7 +2561,7 @@ String.prototype.trim = function() {
                 Util.addEvent(parentLink, 'click', UI.CSS.__loadImagePicker);
                 parentCell.appendChild(parentLink);
                 infoTableRow.appendChild(parentCell);
-            } 
+            }
 
             var location = Util.createElement('td', 'chameleon-files-location');
             var locationPara = Util.createElement('p');
@@ -2575,7 +2575,7 @@ String.prototype.trim = function() {
             infoTableBody.appendChild(infoTableRow);
             infoTable.appendChild(infoTableBody);
             box.appendChild(infoTable);
-        
+
             var fileList = Util.createElement('div');
 
             for (var i = 0; i < files.childNodes.length; ++i) {
@@ -2609,14 +2609,14 @@ String.prototype.trim = function() {
 
             UI.setOverflow(fileList, 350);
         },
-        
-        
-   
-   
+
+
+
+
         __displayColorPicker: function(e) {
             var box = document.getElementById('chameleon-color-box');
             if (box) UI.closeBoxes(true, box);
-            
+
             var extraColors = ['000000', '333333', '666666', '999999', 'cccccc', 'ffffff', 'ff0000', '00ff00', '0000ff', 'ffff00', 'ff00ff', '00ffff'];
 
             var coords = Pos.getElement(document.getElementById('chameleon-style-box'));
@@ -2633,9 +2633,9 @@ String.prototype.trim = function() {
                         while (col.length < 6) {
                             col = '0' + col;
                         }
-                        
+
                         yi = (xx > 17) ? 5 : 0;
-                                                
+
                         var colorTab = Util.createElement('div');
                         colorTab.style.position = 'absolute';
                         colorTab.style.left = ((15 * x) + 17) + 'px';
@@ -2646,7 +2646,7 @@ String.prototype.trim = function() {
                         colorTab.setAttribute('title', '#' + col);
 
                         container.appendChild(colorTab);
-                        
+
                         if (x == 17) {
                             x = 0;
                             if (xx == 35) {
@@ -2659,10 +2659,10 @@ String.prototype.trim = function() {
                             ++x;
                             ++xx;
                         }
-                    }                
+                    }
                 }
             }
-            
+
             for (var i = 0; i < extraColors.length; ++i) {
                 var colorTab = Util.createElement('div');
                 colorTab.style.position = 'absolute';
@@ -2675,23 +2675,23 @@ String.prototype.trim = function() {
 
                 container.appendChild(colorTab);
             }
-            
+
             Util.addEvent(container, 'click', Check.color);
 
             container.style.height = (((y + yi) * 15) + 20) + 'px';
 
             UI.addToDoc(box);
         },
-        
-      
-      
+
+
+
         __setColorType: function(e) {
             var target = e.target || e.srcElement;
 
             UI.CSS.colorType = UI.CSS.getBorderProp(target.id);
         },
-        
-        
+
+
         getBorderProp: function(id) {
             var separators = ['color-picker', 'input', 'select'];
             for (var i = 0; i < separators.length; ++i) {
@@ -2712,36 +2712,36 @@ String.prototype.trim = function() {
                 if (!p1 && !p2 && !p3 && !p4) {
                     return false;
                 }
-                
+
                 if (!(p1 && p2 && p3 && p4)) {
                     return '';
                 }
-                
-                return (p1 == p2 && p2 == p3 && p3 == p4) ?  p1 : ''; 
+
+                return (p1 == p2 && p2 == p3 && p3 == p4) ?  p1 : '';
             }
             return false;
         }
-          
+
     };
-   
-    
-    
+
+
+
     UI.HotSpots = {
         __selectors: null,
         __counter: 0,
         __lookup: {},
-        
+
         init: function() {
             var box = Util.createElement('div', 'chameleon-launch-hotspots');
             box.appendChild(document.createTextNode('Load hotspots'));
             box.style.zIndex = ++UI.zIndex;
-            
+
             box.hotSpotsOn = false;
             Util.addEvent(box, 'click', UI.HotSpots.__load);
-            
+
             UI.addToDoc(box);
         },
-        
+
         getString: function() {
             var sel = CSS.Selector.get();
             if (UI.HotSpots.__selectors[sel]) {
@@ -2749,21 +2749,21 @@ String.prototype.trim = function() {
             }
             return '"' + sel + '"';
         },
-        
+
         __load: function(e) {
             var target = e.target || e.srcElement;
             target.hotSpotsOn = !target.hotSpotsOn;
-            
+
             UI.HotSpots.__counter = 0;
             UI.HotSpots.__lookup = {};
-            
+
             if (!target.hotSpotsOn) {
                 target.firstChild.nodeValue = 'Show hotspots';
                 UI.HotSpots.__clear();
                 return;
             }
             target.firstChild.nodeValue = 'Hide hotspots';
-          
+
             if (!UI.HotSpots.__selectors) {
                 UI.HotSpots.__selectors = {};
                 UI.HotSpots.__selectors['body'] = 'The body of the page (all pages)';
@@ -2798,55 +2798,55 @@ String.prototype.trim = function() {
                 UI.HotSpots.__selectors['table.generaltable tr.r0'] = 'Odd numbered table rows';
                 UI.HotSpots.__selectors['table.generaltable tr.r1'] = 'Even numbered table rows';
             }
-            
+
             UI.HotSpots.__parse();
         },
-        
+
         __parse: function() {
             var pos = {};
-            
+
             for (var sel in UI.HotSpots.__selectors) {
                 var matches = cssQuery(sel);
                 var nm = matches.length;
                 if (!nm) {
                     continue;
                 }
-                
+
                 for (var j = 0; j < nm; ++j) {
                     if (matches[j].hasAttribute && matches[j].hasAttribute('id') && matches[j].getAttribute('id').indexOf('chameleon') != -1) {
                         continue;
                     }
-                    
+
                     if (!matches[j].chameleonHotspotId) {
                         var coords = Pos.getElement(matches[j]);
                         coords.x = 20 * Math.round(coords.x / 20);
                         coords.y = 20 * Math.round(coords.y / 20);
-                        
+
                         while (pos[coords.x + '-' + coords.y]) {
                             coords.x += 20;
                         }
                         pos[coords.x + '-' + coords.y] = true;
-                        
+
                         var button = UI.HotSpots.__makeButton(UI.HotSpots.__selectors[sel], coords.x, coords.y);
                         UI.addToDoc(button);
-                        
+
                         matches[j].chameleonHotspotId = button.id;
                         UI.HotSpots.__lookup[button.id] = sel;
                         break;
                     } else {
                         UI.HotSpots.__lookup[matches[j].chameleonHotspotId] += '|' + sel;
                         document.getElementById(matches[j].chameleonHotspotId).title += ", " + UI.HotSpots.__selectors[sel];
-                        
+
                         break;
                     }
                 }
             }
-            
+
             pos = null;
             matches = null;
         },
-        
-        
+
+
         __clear: function() {
             for (var sel in UI.HotSpots.__selectors) {
                 var matches = cssQuery(sel);
@@ -2854,7 +2854,7 @@ String.prototype.trim = function() {
                 if (!nm) {
                     continue;
                 }
-                
+
                 for (var j = 0; j < nm; ++j) {
                     if (matches[j].chameleonHotspotId) {
                         UI.HotSpots.__lookup[matches[j].chameleonHotspotId] = null;
@@ -2863,10 +2863,10 @@ String.prototype.trim = function() {
                         break;
                     }
                 }
-            }          
+            }
         },
-     
-        
+
+
         __makeButton: function(title, x, y) {
             var d = Util.createElement('img', 'chameleon-hotspot-' + ++UI.HotSpots.__counter);
             d.style.width = d.style.height = '20px';
@@ -2874,33 +2874,33 @@ String.prototype.trim = function() {
             d.style.left = (x - 5) + 'px';
             d.style.top = (y + 15) + 'px';
             d.style.cursor = 'pointer';
-            
+
             d.setAttribute('src', CSS.fixPath('ui/images/hotspot.gif'));
             d.setAttribute('title', title);
             Util.addEvent(d, 'click', UI.HotSpots.__launch);
             return d;
         },
-        
+
         __launch: function(e) {
             var target = e.target || e.srcElement;
             var selectors = UI.HotSpots.__lookup[target.id].split('|');
-                       
+
             var coords = Pos.getMouse(e);
-            
+
             hotspotMode = true;
-                
+
             var box = document.getElementById('chameleon-selector-box');
             if (box) UI.closeBoxes(true, box);
-                
+
             var box = UI.makeDraggableBox('chameleon-selector-box', coords.x, coords.y);
-            
+
             if (selectors.length > 1) {
                 var instructions = Util.createElement('p');
                 instructions.appendChild(document.createTextNode('This element matches more than one selector, please choose which you would like to style.'));
                 instructions.className = 'chameleon-instructions';
                 box.appendChild(instructions);
             }
-            
+
             var selList = Util.createElement('ul');
             for (var i = 0; i < selectors.length; ++i) {
                 var item = Util.createElement('li');
@@ -2908,38 +2908,38 @@ String.prototype.trim = function() {
                 itemLink.appendChild(document.createTextNode('Add/Edit styles for ' + UI.HotSpots.__selectors[selectors[i]]));
                 itemLink.value = selectors[i];
                 Util.addEvent(itemLink, 'click', UI.HotSpots.__launchCSSEditor);
-                    
+
                 item.appendChild(itemLink);
-                    
+
                 selList.appendChild(item);
-                    
-                box.appendChild(selList);   
+
+                box.appendChild(selList);
             }
             UI.addToDoc(box);
         },
-        
+
         __launchCSSEditor: function(e, value) {
             var target = e.target || e.srcElement;
-            
+
             if (!value) {
                 var value = target.value;
             }
             CSS.Selector.set(value);
             UI.CSS.editWindow(e);
         }
-        
+
     };
-   
 
-    
-   
-    
-    
+
+
+
+
+
     var Check = {
         color: function(e) {
             var target = e.target || e.srcElement;
             if (e.type == 'click' && !target.value) return;
-            
+
             var originalColor = UI.CSS.__getPropValue(UI.CSS.colorType);
             if (originalColor != target.value) {
                 CSS.setPropValue(UI.CSS.colorType, target.value);
@@ -2949,7 +2949,7 @@ String.prototype.trim = function() {
                 UI.closeBoxes(true, target.parentNode.parentNode);
             }
         },
-        
+
         backgroundImage: function(e) {
             var target = e.target || e.srcElement;
 
@@ -2958,20 +2958,20 @@ String.prototype.trim = function() {
             if (e.type == 'click') {
                 UI.closeBoxes(true, document.getElementById('chameleon-file-box'));
             }
-        },   
-        
+        },
+
         backgroundRepeat: function(e) {
             var target = e.target || e.srcElement;
             var value = target.options[target.options.selectedIndex].value.toLowerCase();
             CSS.setPropValue('background-repeat', value);
         },
-        
+
         backgroundPosition: function(e) {
             var target = e.target || e.srcElement;
             var value = target.options[target.options.selectedIndex].value.toLowerCase();
             CSS.setPropValue('background-position', value);
         },
-        
+
         borderWidth: function(e) {
             var target = e.target || e.srcElement;
 
@@ -2991,41 +2991,41 @@ String.prototype.trim = function() {
             } else if (!hasUnits) {
                 target.value = val + 'px';
             }
-            CSS.setPropValue(UI.CSS.getBorderProp(target.id), target.value);  
+            CSS.setPropValue(UI.CSS.getBorderProp(target.id), target.value);
         },
-        
+
         borderStyle: function(e) {
             var target = e.target || e.srcElement;
             var value = target.options[target.options.selectedIndex].value.toLowerCase();
             CSS.setPropValue(UI.CSS.getBorderProp(target.id), value);
         },
-        
+
         fontStyle: function(e) {
             var target = e.target || e.srcElement;
             var value = target.options[target.options.selectedIndex].value.toLowerCase();
             CSS.setPropValue('font-style', value);
         },
-        
+
         fontWeight: function(e) {
             var target = e.target || e.srcElement;
             var value = target.options[target.options.selectedIndex].value.toLowerCase();
             CSS.setPropValue('font-weight', value);
         },
-        
+
         fontSize: function(e) {
             var target = e.target || e.srcElement;
             CSS.setPropValue('font-size', target.value);
         },
-        
+
         lineHeight: function(e) {
             var target = e.target || e.srcElement;
             CSS.setPropValue('line-height', target.value);
         },
-        
+
         fontFamily: function(e) {
             var target = e.target || e.srcElement;
             var n = target.nodeName.toLowerCase();
-            
+
             if (n == 'select') {
                 var value = target.options[target.options.selectedIndex].value.toLowerCase();
                 var fontFamilyInputRow = target.parentNode.parentNode.nextSibling;
@@ -3045,21 +3045,21 @@ String.prototype.trim = function() {
                 CSS.setPropValue('font-family', target.value);
             }
         },
-        
+
         textDecoration: function(e) {
             var target = e.target || e.srcElement;
             var value = target.options[target.options.selectedIndex].value.toLowerCase();
             CSS.setPropValue('text-decoration', value);
         },
-        
+
         textAlign: function(e) {
             var target = e.target || e.srcElement;
             var value = target.options[target.options.selectedIndex].value.toLowerCase();
             CSS.setPropValue('text-align', value);
         }
     };
-    
-    
+
+
 
 
 
@@ -3106,18 +3106,18 @@ String.prototype.trim = function() {
 
     var setup = function() {
         UI.clearStatusMsg();
-        
+
         // UI.HotSpots.init();
-        
+
         var crumb = new cookie('chameleon_server_save_required');
         if (crumb.read() == 1) {
             CSS.requireRemoteSave();
         }
-        
+
         Util.addEvent(window, 'unload', CSS.unloadPrompt);
         Util.addEvent(window, 'unload', Util.cleanUp);
         Util.addEvent(document, 'mousedown', UI.Selector.editWindow);
-        
+
         //CSS.clearTheme();
     };
 
index 63ef82d5a0e96b9af070227d16b9dd475b1269f4..51a479d70b64129ff8fbbea7424d7de0ad887ba1 100644 (file)
@@ -1,9 +1,9 @@
-/* sorry about the massive abuse of !important ;-) this tries to prevent user changes in CSS being 
+/* sorry about the massive abuse of !important ;-) this tries to prevent user changes in CSS being
 inherited by the user interface */
 
 /* general box styles */
-#chameleon-selector-box, #chameleon-style-box, 
-#chameleon-color-box, #chameleon-file-box, 
+#chameleon-selector-box, #chameleon-style-box,
+#chameleon-color-box, #chameleon-file-box,
 #chameleon-export-box {
   position: absolute !important;
   left: 0; top: 0;
@@ -55,8 +55,8 @@ inherited by the user interface */
 }
 
 /* drag handles */
-#chameleon-selector-box #chameleon-selector-box-handle, 
-#chameleon-style-box #chameleon-style-box-handle, 
+#chameleon-selector-box #chameleon-selector-box-handle,
+#chameleon-style-box #chameleon-style-box-handle,
 #chameleon-color-box #chameleon-color-box-handle,
 #chameleon-file-box #chameleon-file-box-handle,
 #chameleon-export-box #chameleon-export-box-handle {
@@ -64,8 +64,8 @@ inherited by the user interface */
   background: #ddd !important;
 }
 
-#chameleon-selector-box #chameleon-selector-box-close, 
-#chameleon-style-box #chameleon-style-box-close, 
+#chameleon-selector-box #chameleon-selector-box-close,
+#chameleon-style-box #chameleon-style-box-close,
 #chameleon-color-box #chameleon-color-box-close,
 #chameleon-file-box #chameleon-file-box-close {
   padding: 1px 5px !important;
@@ -324,9 +324,9 @@ body #chameleon-color-box {
 
 /* the buttons */
 
-#chameleon-selector-box input.chameleon-btn, 
-#chameleon-style-box input.chameleon-btn, 
-#chameleon-color-box input.chameleon-btn, 
+#chameleon-selector-box input.chameleon-btn,
+#chameleon-style-box input.chameleon-btn,
+#chameleon-color-box input.chameleon-btn,
 #chameleon-file-box input.chameleon-btn {
   cursor: pointer !important;
   margin-bottom: 3px !important;
index 57ef7a4bd557d97a5fd4ee31a74df08a625bfd62..1553d73b670ee51fe08623c0755c92e75c3fae61 100644 (file)
@@ -49,7 +49,7 @@ if (isset($_POST['css'])) {
             die('CHAMELEON_ERROR ' . $chameleon->error);
         }
     }
-    
+
 } else {
 
     $css = $chameleon->read();
index a6e138189b85381876b8c2c25690694980511a8d..1205060ece343f2b0fd3552d1fa79bad4fe69716 100644 (file)
@@ -28,7 +28,7 @@
  *
  */
 /**
- * <p>Sarissa is a utility class. Provides "static" methods for DOMDocument and 
+ * <p>Sarissa is a utility class. Provides "static" methods for DOMDocument and
  * XMLHTTP objects, DOM Node serializatrion to XML strings and other goodies.</p>
  * @constructor
  */
@@ -126,14 +126,14 @@ if(_SARISSA_IS_IE){
         };
         return oDoc;
     };
-    // see non-IE version   
+    // see non-IE version
     Sarissa.getParseErrorText = function (oDoc) {
         var parseErrorText = Sarissa.PARSED_OK;
         if(oDoc.parseError != 0){
-            parseErrorText = "XML Parsing Error: " + oDoc.parseError.reason + 
-                "\nLocation: " + oDoc.parseError.url + 
-                "\nLine Number " + oDoc.parseError.line + ", Column " + 
-                oDoc.parseError.linepos + 
+            parseErrorText = "XML Parsing Error: " + oDoc.parseError.reason +
+                "\nLocation: " + oDoc.parseError.url +
+                "\nLine Number " + oDoc.parseError.line + ", Column " +
+                oDoc.parseError.linepos +
                 ":\n" + oDoc.parseError.srcText +
                 "\n";
             for(var i = 0;  i < oDoc.parseError.linepos;i++){
@@ -147,9 +147,9 @@ if(_SARISSA_IS_IE){
     Sarissa.setXpathNamespaces = function(oDoc, sNsSet) {
         oDoc.setProperty("SelectionLanguage", "XPath");
         oDoc.setProperty("SelectionNamespaces", sNsSet);
-    };   
+    };
     /**
-     * Basic implementation of Mozilla's XSLTProcessor for IE. 
+     * Basic implementation of Mozilla's XSLTProcessor for IE.
      * Reuses the same XSLT stylesheet for multiple transforms
      * @constructor
      */
@@ -163,7 +163,7 @@ if(_SARISSA_IS_IE){
      */
     XSLTProcessor.prototype.importStylesheet = function(xslDoc){
         // convert stylesheet to free threaded
-        var converted = new ActiveXObject(_SARISSA_THREADEDDOM_PROGID); 
+        var converted = new ActiveXObject(_SARISSA_THREADEDDOM_PROGID);
         converted.loadXML(xslDoc.xml);
         this.template.stylesheet = converted;
         this.processor = this.template.createProcessor();
@@ -178,7 +178,7 @@ if(_SARISSA_IS_IE){
     XSLTProcessor.prototype.transformToDocument = function(sourceDoc){
         this.processor.input = sourceDoc;
         var outDoc = new ActiveXObject(_SARISSA_DOM_PROGID);
-        this.processor.output = outDoc; 
+        this.processor.output = outDoc;
         this.processor.transform();
         return outDoc;
     };
@@ -320,8 +320,8 @@ else{ /* end IE initialization, try to deal with real browsers now ;-) */
                 };
                 return oDoc;
             };
-            
-            
+
+
         }//if(window.XMLDocument)
         else if(document.implementation && document.implementation.hasFeature && document.implementation.hasFeature('LS', '3.0')){
             Document.prototype.async = true;
@@ -331,13 +331,13 @@ else{ /* end IE initialization, try to deal with real browsers now ;-) */
                 var parser = document.implementation.createLSParser(this.async ? document.implementation.MODE_ASYNCHRONOUS : document.implementation.MODE_SYNCHRONOUS, null);
                 if(this.async){
                     var self = this;
-                    parser.addEventListener("load", 
-                        function(e) { 
+                    parser.addEventListener("load",
+                        function(e) {
                             self.readyState = 4;
                             Sarissa.copyChildNodes(e.newDocument, self.documentElement, false);
-                            self.onreadystatechange.call(); 
-                        }, 
-                        false); 
+                            self.onreadystatechange.call();
+                        },
+                        false);
                 };
                 try {
                     var oDoc = parser.parseURI(sURI);
@@ -357,7 +357,7 @@ else{ /* end IE initialization, try to deal with real browsers now ;-) */
             */
             Sarissa.getDomDocument = function(sUri, sName){
                 return document.implementation.createDocument(sUri?sUri:"", sName?sName:"", null);
-            };        
+            };
         };
     };//if(_SARISSA_HAS_DOM_CREATE_DOCUMENT)
 };
@@ -372,10 +372,10 @@ if(!window.DOMParser){
     DOMParser = function() {
     };
     if(_SARISSA_IS_SAFARI){
-        /** 
+        /**
         * Construct a new DOM Document from the given XMLstring
         * @param sXml the given XML string
-        * @param contentType the content type of the document the given string represents (one of text/xml, application/xml, application/xhtml+xml). 
+        * @param contentType the content type of the document the given string represents (one of text/xml, application/xml, application/xhtml+xml).
         * @return a new DOM Document from the given XML string
         */
         DOMParser.prototype.parseFromString = function(sXml, contentType){
@@ -530,7 +530,7 @@ Sarissa.clearChildNodes = function(oNode) {
 };
 /**
  * <p> Copies the childNodes of nodeFrom to nodeTo</p>
- * <p> <b>Note:</b> The second object's original content is deleted before 
+ * <p> <b>Note:</b> The second object's original content is deleted before
  * the copy operation, unless you supply a true third parameter</p>
  * @argument nodeFrom the Node to copy the childNodes from
  * @argument nodeTo the Node to copy the childNodes to
@@ -559,12 +559,12 @@ Sarissa.copyChildNodes = function(nodeFrom, nodeTo, bPreserveExisting) {
 
 /**
  * <p> Moves the childNodes of nodeFrom to nodeTo</p>
- * <p> <b>Note:</b> The second object's original content is deleted before 
+ * <p> <b>Note:</b> The second object's original content is deleted before
  * the move operation, unless you supply a true third parameter</p>
  * @argument nodeFrom the Node to copy the childNodes from
  * @argument nodeTo the Node to copy the childNodes to
  * @argument bPreserveExisting whether to preserve the original content of nodeTo, default is
- */ 
+ */
 Sarissa.moveChildNodes = function(nodeFrom, nodeTo, bPreserveExisting) {
     if((!nodeFrom) || (!nodeTo)){
         throw "Both source and destination nodes must be provided";
@@ -593,9 +593,9 @@ Sarissa.moveChildNodes = function(nodeFrom, nodeTo, bPreserveExisting) {
     };
 };
 
-/** 
+/**
  * <p>Serialize any object to an XML string. All properties are serialized using the property name
- * as the XML element name. Array elements are rendered as <code>array-item</code> elements, 
+ * as the XML element name. Array elements are rendered as <code>array-item</code> elements,
  * using their index/key as the value of the <code>key</code> attribute.</p>
  * @argument anyObject the object to serialize
  * @argument objectName a name for that object
@@ -605,7 +605,7 @@ Sarissa.xmlize = function(anyObject, objectName, indentSpace){
     indentSpace = indentSpace?indentSpace:'';
     var s = indentSpace  + '<' + objectName + '>';
     var isLeaf = false;
-    if(!(anyObject instanceof Object) || anyObject instanceof Number || anyObject instanceof String 
+    if(!(anyObject instanceof Object) || anyObject instanceof Number || anyObject instanceof String
         || anyObject instanceof Boolean || anyObject instanceof Date){
         s += Sarissa.escape(""+anyObject);
         isLeaf = true;
@@ -621,7 +621,7 @@ Sarissa.xmlize = function(anyObject, objectName, indentSpace){
     return s += (objectName.indexOf(' ')!=-1?"</array-item>\n":"</" + objectName + ">\n");
 };
 
-/** 
+/**
  * Escape the given string chacters that correspond to the five predefined XML entities
  * @param sXml the string to escape
  */
@@ -633,8 +633,8 @@ Sarissa.escape = function(sXml){
         .replace(/'/g, "&apos;");
 };
 
-/** 
- * Unescape the given string. This turns the occurences of the predefined XML 
+/**
+ * Unescape the given string. This turns the occurences of the predefined XML
  * entities to become the characters they represent correspond to the five predefined XML entities
  * @param sXml the string to unescape
  */
@@ -645,4 +645,4 @@ Sarissa.unescape = function(sXml){
         .replace(/&lt;/g,"<")
         .replace(/&amp;/g,"&");
 };
-// 
\ No newline at end of file
+//
\ No newline at end of file
index 289017da76fe3f4e7aaa32b8ecc77e86100354a0..0a89f2464e00e4fcb2f5218cd64e5d4b2d4b6182 100644 (file)
@@ -47,10 +47,10 @@ table.generaltable {
   background-color: #EEEEEE;
 }
 span.arrow {
-  font-family: Arial, Helvetica, Courier, sans-serif; 
+  font-family: Arial, Helvetica, Courier, sans-serif;
 }
 p.arrow_button input {
-  font-family: Arial, Helvetica, Courier, sans-serif; 
+  font-family: Arial, Helvetica, Courier, sans-serif;
 }
 img.resize {
   width: 1em;
@@ -446,7 +446,7 @@ body#grade-index table.grades {
   background-color: #EEEEEE;
   border-width: 1px;
   border-style: solid;
-  border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;  
+  border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
 }
 body#grade-index .grades td {
   border-color: #FFFFFF;
index 93a4f822a9ab399ff9555bcbda8e02936c875429..ea8339f1021c1909d853422d21ef600d4866ef0b 100755 (executable)
@@ -110,7 +110,7 @@ tr.r1 {
 .highlight2 {
   color: #AA0000;
 }
-.headingblock, 
+.headingblock,
 h2.headingblock {
   margin: 0 0 10px;
   padding: 11px 5px 7px;
@@ -120,7 +120,7 @@ h2.headingblock {
   background-color: #e4e4e4;
   border-style: none;
 }
-body#site-index .headingblock, 
+body#site-index .headingblock,
 body#course-view .headingblock {
   margin-top: -1px;
 }
@@ -134,12 +134,12 @@ div.generalbox {
 table.generalbox {
   border-style: none;
 }
-th.header, 
+th.header,
 td.cell {
   border-bottom: 1px solid #EEE;
   text-align: left;
 }
-table.generalbox th, 
+table.generalbox th,
 table.generalbox td {
   border-bottom: 1px solid #EEE;
   text-align: left;
@@ -470,7 +470,7 @@ link
   margin-top: 10px;
 }
 .admin th.header.c0 {
-  
+
 }
 .rolecap .rolecapheading {
   background-color: #FAFAFA;
@@ -609,11 +609,11 @@ link
   background-color: #EEE;
   padding: 1px;
 }
-#left-column .sideblock .header, 
+#left-column .sideblock .header,
 #left-column .sideblock h2.header {
   background-color: #da5a23;
 }
-#right-column .sideblock .header, 
+#right-column .sideblock .header,
 #right-column .sideblock h2.header {
   background-color: #4b95ed;
 }
@@ -692,9 +692,9 @@ div.loginbox.twocolumns div.loginpanel {
 #course-view .subscribelink {
   padding: 0 5px;
 }
-.weeks-format #left-column, 
-.weeks-format #right-column, 
-.topics-format #left-column, 
+.weeks-format #left-column,
+.weeks-format #right-column,
+.topics-format #left-column,
 .topics-format #right-column {
        width: 15.5em;
 }
@@ -1099,7 +1099,7 @@ table.glossarypost {
   border-style: none;
   border-top: 1px solid #EEE;
 }
-.glossarypost div.concept h3, 
+.glossarypost div.concept h3,
 .glossarypost.continuous .concept {
   display: inline;
 }
@@ -1132,7 +1132,7 @@ body#mod-quiz-report table#attempts td {
   border-color: #DDD;
 }
 .que .incorrect {
-  
+
 }
 .que.multianswer .incorrect {
   background-color: #faa;
index 7aa870d9a6925363cc853fb76e9a1eaf83a7a121..4ca51394af9bb6fff0f4d585bc31460156557bb8 100755 (executable)
@@ -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('reset', 'colors');
 
-/// 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('reset', 'colors');
 $THEME->standardsheets = array('styles_layout');
 
 /// 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,21 +92,21 @@ $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';
@@ -116,11 +116,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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 3788820a19db7ddcee28d31f18eedefa77238887..9b207692e65e352cd0880b4323376a4553d73271 100755 (executable)
@@ -1,5 +1,5 @@
 
-<?php    
+<?php
     echo $OUTPUT->container_end(); // content container
 
     echo $OUTPUT->container_start('clearfix footer');
 
     $useridarray = array(2, 3 // MD
                           );
-    
+
     if (!empty($performanceinfo) && isloggedin() && in_array($USER->id, $useridarray)) {
         echo $performanceinfo;
     }
-    
+
     echo $OUTPUT->container_end();
 ?>
 </div>
index c08d817f72166061463c53545807898f4f69021c..2cdca43ea1c56aeacd201b1c791521a8522b67a6 100755 (executable)
@@ -29,7 +29,7 @@ body {
 #header-home hr {
   display: none;
 }
-.headermain, 
+.headermain,
 h1.headermain {
   margin: 10px 0 0 10px;
 }
@@ -68,17 +68,17 @@ h1.headermain {
 .sideblock a {
   color: #eee;
 }
-.sideblock .header, 
+.sideblock .header,
 .sideblock h2.header {
   padding: 5px;
   border-style: none;
   width:  100%;
 }
-#left-column .sideblock .header, 
+#left-column .sideblock .header,
 #left-column .sideblock h2.header {
   background-color: #da5a23;
 }
-#right-column .sideblock .header, 
+#right-column .sideblock .header,
 #right-column .sideblock h2.header {
   background-color: #4b95ed;
 }
index 48f4ce8be0f081e8ae72f0312af9b09cf87e15a0..daeca682798a88938dafe16cf0d8c5ce9f302738 100755 (executable)
@@ -9,19 +9,19 @@
 </head>
 
 <body<?php echo " $bodytags"; ?>>
-    
+
 <div id="page">
-    
-<?php if ($home) {  // This is what gets printed on the home page only  
+
+<?php if ($home) {  // This is what gets printed on the home page only
 ?>
     <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     <?php echo $OUTPUT->container_end(); ?>
        <div class="navbar clearfix">
-               &nbsp;      
+               &nbsp;
     </div>
-<?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
+<?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
     <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
index 1f60ad80e869950effad5ebff481aa94b216236d..9ae17a4ac9a2a4a03c723369edc907504fe237ae 100755 (executable)
@@ -1,6 +1,6 @@
 /**
  * CSSClass.js: utilities for manipulating the CSS class of an HTML element.
- * 
+ *
  * This module defines a single global symbol named CSSClass.  This object
  * contains utility functions for working with the class attribute (className
  * property) of HTML elements.  All functions take two arguments: the element
index e1ba4dde737aa9cbf0f3807c30f9eb80172948df..aee74e903c34142b512443252e32cc39724a5ac6 100755 (executable)
@@ -1,14 +1,14 @@
 <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 () {
             if (top.user) {
                 top.document.getElementsByTagName('frameset')[0].rows = "117,30%,0,200";
             }
-            
+
             // check for layouttabel and add haslayouttable class to body
             function setbodytag () {
                 var bd = document.getElementsByTagName('body')[0];
                     setTimeout(function() { setbodytag() }, 10);
                 }
             };
-            
+
             setbodytag();
         },
-        
+
         init: function() {
             jsscript.corrections();
         }
     };
-    
+
     jsscript.init();
 /* ]]> */
 </script>
\ No newline at end of file
index 5d282681945982673ff81c207468d693a8a7772e..2ee60bb34e6ce83004148c4ed0b8555c9daab204 100755 (executable)
@@ -13,7 +13,7 @@ Each of these modules contains a number of expected components:
   icon.gif: a 16x16 icon for the module\r
 \r
   db/mysql.sql: an SQL dump of all the required db tables and data\r
\r
+\r
   index.php: a page to list all instances in a course\r
 \r
   view.php: a page to view a particular instance\r
@@ -37,6 +37,6 @@ Each of these modules contains a number of expected components:
 \r
 \r
 If you are a developer and interested in developing new Modules see:\r
-  \r
+\r
    Moodle Documentation:  http://moodle.org/doc\r
    Moodle Community:      http://moodle.org/community\r
index de73809ad7073ee509c2e9cbbf0673676386366f..6c93c72606e61b4b22b6dfc29296ee4690e6b35b 100644 (file)
@@ -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('cornflower');
 
-/// 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');
@@ -62,7 +62,7 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
@@ -71,22 +71,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';
@@ -96,12 +96,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
 
-?>
\ No newline at end of file
index 6ea059ff27a332675188f01e6560e8083b49d7b5..50c0b59853fafd9615ee5334fe8d37a42f605239 100755 (executable)
@@ -1,11 +1,11 @@
 /*******************************************************************
  Cornflower CSS
-  
- This CSS file contains all color and layout definitions 
+
+ This CSS file contains all color and layout definitions
  for the Cornflower theme.
+
  This theme requires the Standard theme to be present.
+
 *******************************************************************/
 
 /***
@@ -20,7 +20,7 @@ a:visited {
 a:hover {
   color:#054377;
   text-decoration:underline;
-  
+
   }
 
 body {
@@ -37,21 +37,21 @@ div.header {
 .navbar {
   background-color:#D0E2EE;
   border-color:#D0E2EE;
-  
+
 }
 
 .generalbox {
-  border-color:#739FC4; 
+  border-color:#739FC4;
 }
 .informationbox {
-  border-color:#739FC4; 
+  border-color:#739FC4;
 }
 .feedbackbox {
-  border-color: #739FC4; 
+  border-color: #739FC4;
 }
 
 .noticebox {
-  border-color:#739FC4; 
+  border-color:#739FC4;
 }
 
 .errorbox {
@@ -74,7 +74,7 @@ div.header {
 
 .unread {
   background: #78A2CD;
-} 
+}
 
 /***
  *** Header
@@ -89,7 +89,7 @@ height:112px;
 .headermain {
   background: transparent url(images/hdbgend.jpg) 100% 0 no-repeat;
   float: none;
-  
+
 }
 
 
@@ -98,16 +98,16 @@ height:112px;
  ***/
 
 .admin .generalboxcontent {
-  background-color:#EEEEEE; 
+  background-color:#EEEEEE;
 }
 
 .admin .generalbox {
-  border-color:#739FC4; 
+  border-color:#739FC4;
 }
 
 .admin .informationbox {
-  border-color:#739FC4; 
-  background-color:#FFFFFF; 
+  border-color:#739FC4;
+  background-color:#FFFFFF;
 }
 
 
@@ -348,7 +348,7 @@ table.message_search_results td {
  ***/
 
 .userpicture {
-  background:#EEEEEE; 
+  background:#EEEEEE;
 }
 
 .userinfobox {
@@ -375,21 +375,21 @@ table.message_search_results td {
 }
 
 .forumpost .left {
-  background:#739FC4; 
+  background:#739FC4;
 }
 
 .forumpost .topic {
   border-bottom-color: #739FC4;
-  background:#D0E2EE; 
+  background:#D0E2EE;
 
 }
 
 .forumpost .starter {
-  background:#739FC4; 
+  background:#739FC4;
 }
 
 .forumheaderlist .discussion .starter {
-  background:#D0E2EE; 
+  background:#D0E2EE;
 }
 
 .forumheaderlist td {
@@ -408,10 +408,10 @@ table.message_search_results td {
 }
 
 #mod-forum-discuss .unread .forumpost .message {
-  border-color: #78A2CD; 
-} 
+  border-color: #78A2CD;
+}
 #mod-forum-discuss .forumthread .unread {
-} 
+}
 
 #mod-forum-index .unread {
 }
@@ -548,7 +548,7 @@ h6.main {
   padding-right:10px;
 }
 
-div.headermenu 
+div.headermenu
 {
     position: absolute;
     top: 15px;
index eed045b1577ab83f764be8866d6dd1728e3c37ca..654ae8ffa5a78436a671bc9fd8e9def2bed7c120 100644 (file)
@@ -1,4 +1,4 @@
-<?php   // $Id$
+<?php
 ////////////////////////////////////////////////////////////////////////////////
 /// This file contains a few configuration variables that control
 /// how Moodle uses this theme.
index 87ec37e7308847dafd4df1cfd8c8349347594459..133be3c1cda29d02b2afe055d85cf033db9d011a 100644 (file)
@@ -1,27 +1,27 @@
 <?php echo $OUTPUT->container_end(); ?><!-- end container Content -->
 <!-- START OF FOOTER -->
-<?php 
+<?php
 
-global $CFG, $COURSE; 
+global $CFG, $COURSE;
 if (function_exists('is_in_popup')) {
     $inpopup = is_in_popup();
 } else {
     $inpopup = false;
 }
 
-if (!$inpopup) { 
+if (!$inpopup) {
     echo $OUTPUT->container_start('footer');
-    
+
     echo '<p class="helplink">';
     echo page_doc_link(get_string('moodledocslink'));
     echo '</p>';
-    
+
     echo $loggedinas;
     echo $homelink;
 
     $useridarray = array(2 // MD
                           );
-    
+
     if (!empty($performanceinfo) && isloggedin() && in_array($USER->id, $useridarray)) {
         echo $performanceinfo;
     }
index 508df7552fd307234b1ca565fb5c77969b0e4c1f..d0479dd5338d1ba23dfb8bb67452e3b7bb8ee243 100644 (file)
@@ -6,29 +6,29 @@
     <title><?php echo $title ?></title>
     <link rel="shortcut icon" href="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/favicon.ico" />
 
-    <?php 
+    <?php
         include("$CFG->javascript");
         include($CFG->themedir.'/custom_corners/js/js.php');
-        
+
         // check if page is opened within a popup window
         if (function_exists('is_in_popup')) {
             $inpopup = is_in_popup();
         } else {
             $inpopup = false;
         }
-        
+
         // get class list
         preg_match('/class="([^"]*)"/i', $bodytags, $classes);
         $classlist = explode (' ', $classes[1]);
-        
-        
+
+
         // add "inpopup" or "notinpopup" to class list
         if ($inpopup) {
             array_push($classlist, 'inpopup');
         } else {
             array_push($classlist, 'notinpopup');
         }
-        
+
         //replace classlist with new one
         $bodytags = str_replace($classes[0], 'class="'.implode(' ', $classlist).'"', $bodytags);
     ?>
@@ -46,7 +46,7 @@
     <?php } ?>
 <div id="page">
 
-<?php if (!$inpopup) { 
+<?php if (!$inpopup) {
     if ($home) {  // This is what gets printed on the home page only
 ?>
     <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
index 1f60ad80e869950effad5ebff481aa94b216236d..9ae17a4ac9a2a4a03c723369edc907504fe237ae 100644 (file)
@@ -1,6 +1,6 @@
 /**
  * CSSClass.js: utilities for manipulating the CSS class of an HTML element.
- * 
+ *
  * This module defines a single global symbol named CSSClass.  This object
  * contains utility functions for working with the class attribute (className
  * property) of HTML elements.  All functions take two arguments: the element
index a2efde31cb85a92ec88b9f2627cf22cfa77d9798..e0f1acb447799933b1adeed1d1337db07d7b7d6e 100644 (file)
@@ -1,13 +1,13 @@
 <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 script = {
         corrections: function () {
             if (top.user) {
                 top.document.getElementsByTagName('frameset')[0].rows = "117,30%,0,200";
             }
-            
+
             // check for layouttabel and add layouttable classes to body
             var tagname = 'nolayouttable';
             if (document.getElementById('middle-column')) {
@@ -25,7 +25,7 @@
             } else if(document.getElementsByTagName('body')[0].id.substring(0,9)=='calendar-') {
                 tagname='haslayouttable onlyrightcolumn';
             }
-            
+
             function setbodytag (tagname) {
                 var bd = document.getElementsByTagName('body')[0];
                 if (bd) {
                     setTimeout(function() { setbodytag(tagname) }, 30);
                 }
             }
-            
+
             setTimeout(function() { setbodytag(tagname) }, 30);
         },
-        
+
         init: function() {
             script.corrections();
         }
index 397a03e52ea3a98830efa8b0343d5a41b4eb27fc..20363b66b81c5bfdad863bcc443d2f8c25d2ac53 100644 (file)
@@ -541,7 +541,7 @@ form.mform div.textarea textarea {
   width: 35em;
 }
 form#adminsettings div.form-item {
-  
+
 /*background: url(pix/small_bg_gradient.png) repeat-x 0 bottom;*/
   border-top: 1px solid #F1ECE6;
 }
@@ -562,7 +562,7 @@ body#admin-langimport div.generalbox {
   border-style: none;
 }
 div.htmlarea iframe {
+
 }
 div#header-home {
   position: relative;
index 6f84a8c29e3f135093d0c5fbd65daab2c5525529..d0b309ea6145af0588d78b68ed707a7f9d201591 100644 (file)
@@ -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('fw_layout','fw_color','fw_fonts');
 ///$THEME->sheets = false;
 
-/// 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,37 +16,37 @@ $THEME->standardsheets = array('styles_layout', 'styles_color');
 ///$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,29 +61,29 @@ $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.
 
 
 $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,21 +92,21 @@ $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';
@@ -116,10 +116,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.
 ////////////////////////////////////////////////////////////////////////////////
 
@@ -129,7 +129,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
@@ -138,4 +138,4 @@ $THEME->custompix = false;
 /// use &lt; &gt; &raquo; - these are confusing for blind users.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index f85ce50e19be6678b28264d9811307c49823d452..307b3c1c88ebb8a43931c9583d686c17e08e2589 100644 (file)
@@ -83,19 +83,19 @@ th.header {
 }
 
 /* .generaltable .r0 td.cell.c0 {
- background-color:#C6BDA8; 
+ background-color:#C6BDA8;
 } */
 
 .generaltable .r0 {
- background-color:#FEF9F6; 
+ background-color:#FEF9F6;
 }
 
 .generaltable .r1 {
- background-color:#F1EFEB; 
+ background-color:#F1EFEB;
 }
 
 .generaltable .r1 td.cell.c0 {
-border-color:#C6BDA8; 
+border-color:#C6BDA8;
 /* background-color:#E3DFD4; */
 }
 
@@ -169,7 +169,7 @@ h1.headermain {
 
 .sideblock .header, .sideblock .header h2 {
  background: url(pix/grad/gradient_h.jpg) repeat-x;
- background-color:#E3DFD4; 
+ background-color:#E3DFD4;
 }
 
 .sideblock hr {
@@ -189,7 +189,7 @@ h1.headermain {
 /***
  *** Calendar
 ***/
+
 #calendar .maincalendar,
 #calendar .sidecalendar,
 #calendar .maincalendar .event {
@@ -203,7 +203,7 @@ h1.headermain {
 
 table.calendarmonth tr td {
    border-color:#C6BDA8;
-} 
+}
 
 table.minicalendar {
   border-color:#C6BDA8;
@@ -217,17 +217,17 @@ table.minicalendar tr.weekdays th {
 table.minicalendar tr td.day {
    border-color:#C6BDA8;
   }
-  
+
 table.minicalendar tr td.weekend {
   border-color:#C6BDA8;
   color: red;
   }
-  
+
 #calendar .today,
 .minicalendar .today {
   border-color:#000000 !important;
 }
-  
+
 /* colors for calendar events */
 #calendar .event_global,
 .minicalendar .event_global,
@@ -367,7 +367,7 @@ table.minicalendar tr td.weekend {
 }
 
 .forumpost .left {
-  background:#FEF9F6; 
+  background:#FEF9F6;
 }
 
 .forumpost .topic {
@@ -375,11 +375,11 @@ table.minicalendar tr td.weekend {
 }
 
 .forumpost .starter {
-  background:#FEF9F6; 
+  background:#FEF9F6;
 }
 
 .forumheaderlist .discussion .starter {
-  background:#FEF9F6; 
+  background:#FEF9F6;
 }
 
 .forumheaderlist td {
@@ -399,10 +399,10 @@ table.minicalendar tr td.weekend {
 
 #mod-forum-discuss .forumpost.unread .content {
 /*  border-color: #C6BDA8; */
-} 
+}
 
 #mod-forum-discuss .forumthread .unread {
-} 
+}
 
 #mod-forum-index .unread {
 }
@@ -415,7 +415,7 @@ table.minicalendar tr td.weekend {
 .entryattachment,
 .entryapproval {
   background-color: #E3DFD4;
- } 
+ }
 
 .entrybox {
   border-color: #C6BDA8;
@@ -424,7 +424,7 @@ table.minicalendar tr td.weekend {
 .glossarypost.dictionary,
 .glossarypost.fullwithauthor,
 .glossarypost.fullwithoutauthor,
-.glossarypost.continuous, 
+.glossarypost.continuous,
 .glossarypost.encyclopedia,
 .glossarypost.faq {
   border-color: #C6BDA8;
@@ -436,7 +436,7 @@ table.minicalendar tr td.weekend {
 }
 
 
-.glossarycategoryheader h2, 
+.glossarycategoryheader h2,
 .glossarypost .concept h3 {
   background-color: #FFFFFF
 }
@@ -455,14 +455,14 @@ table.minicalendar tr td.weekend {
 .errorboxcontent {
    background-color:#FEF9F6;
 }
+
 
 /***
  *** Grade
  ***/
 
 .grade-report-grader table#user-grades td.cell span.gradepass {
-  background-color: #C2EBBD; 
+  background-color: #C2EBBD;
 }
 
 .grade-report-grader table#user-grades td.cell span.gradefail {
index d3628e9fe2f36a1df36878c451a81249888655d0..b95d673eac86635d8548b4887a8aa095bd069907 100644 (file)
@@ -69,7 +69,7 @@ div.header,
 /***
  *** Header
  ***/
+
 .breadcrumb {
     font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
     font-size:.85em;
@@ -84,7 +84,7 @@ div.header,
  /***
  *** Blocks
  ***/
+
 .sideblock .footer {
     font-size:0.85em;
     text-align: left;
@@ -114,11 +114,11 @@ table.minicalendar tr.weekdays th {
 table.minicalendar tr td {
   font-size:0.7em;
   }
-  
+
 /***
  *** Course
  ***/
-  
+
 #course-view .section .left {
   font-weight: bold;
   font-size: 1.2em;
index 400d00a1413841358ee351917561343c4f9ca6c5..11d68a5c7e88d2b72ffc2b1c0711c19b547aed3f 100644 (file)
@@ -13,7 +13,7 @@ h5.main,
 h6.main {
   text-align: left;
   padding-left: 5px;
-} 
+}
 
 h1, h2, h3, h4 {
   text-align: left;
@@ -47,15 +47,15 @@ border-bottom-width:1px;
 #content {
 clear:both;
 }
-  
+
 h1, h2, h3, th.header {
   border-width: 1px;
-  border-style: solid; 
+  border-style: solid;
 }
 
 h4 {
   border-bottom-style: solid;
-  border-bottom-width:1px; 
+  border-bottom-width:1px;
 }
 
 input, select {
@@ -72,12 +72,12 @@ input, select {
 }
 
 .generaltable {
-  border-width:0px; 
+  border-width:0px;
 }
 
 .generalbox {
-  border-width:1px; 
-  border-style:solid;  
+  border-width:1px;
+  border-style:solid;
 }
 
 .sitetopiccontent {
@@ -85,17 +85,17 @@ input, select {
   border-style:solid;
 }
 
-.clearfix { 
- min-width: 0; 
- /* overflow: hidden; */ 
+.clearfix {
+ min-width: 0;
+ /* overflow: hidden; */
 }
 
 .clearfix:after {
   /* content: "<!-- -->";  */
-  content: "."; 
-  display: block; 
-  height: 0; 
-  clear: both; 
+  content: ".";
+  display: block;
+  height: 0;
+  clear: both;
   visibility: hidden;
 }
 
@@ -203,14 +203,14 @@ TABLE.loginbox {
 /***
  *** Footer
  ***/
+
 #footer {
   text-align:left;
   margin-top: 5px;
   margin-bottom: 0px;
 }
 
+
 #footer p.helplink {
  margin-bottom: 0px;
 }
@@ -232,22 +232,22 @@ TABLE.loginbox {
 .sideblock .header .hide-show-image {
  padding-top: 4px;
 }
+
 .sideblock .footer {
   border-top-width:1px;
   border-top-style:dashed;
 }
-  
+
 
 /***
  *** Calendar
  ***/
+
 #calendar .today,
 .minicalendar .today {
   border:1px solid !important;
-} 
+}
+
  table.minicalendar {
   width: 100%;
   margin:10px auto;
@@ -286,7 +286,7 @@ table.calendarmonth tr td  {
 /***
  *** Course
  ***/
+
 .headingblock {
   border-width:1px;
   border-style:solid;
@@ -325,9 +325,9 @@ table.calendarmonth tr td  {
   padding-bottom: 5px;
   }
 
-.tabrow0 { 
-   padding-top: 4px; 
-} 
+.tabrow0 {
+   padding-top: 4px;
+}
 
 /***
  *** Modules: glossary
index dfe64b373d0c5d18635893cce1cb99c7bb86c8e0..139409e3eaf0a13c06ab35753990aef8f5188aa6 100644 (file)
@@ -110,7 +110,7 @@ foreach ($themes as $themename => $themedir) {
     if ($readmeurl) {
         $link = html_link::make($readmeurl, get_string('info'));
         $link->add_action(new popup_action('click', $link->url, $themename));
-        $infoitems['readme'] = $OUTPUT->link($link);                    
+        $infoitems['readme'] = $OUTPUT->link($link);
     }
 
     // Contents of the first screenshot/preview cell.
index d541a33c71af7776b12cde2b30a5866df171fda9..e44e9c0341cf4a4d874433b731edaf1510714f49 100755 (executable)
@@ -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('reset', 'lines');
 
-/// 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('reset', 'lines');
 $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,21 +92,21 @@ $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';
@@ -116,11 +116,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 2193d1be04ef756413d41fe0b65ed043496f4a18..5fceaf998968986cb6d7c69925d26e4e1edba2eb 100755 (executable)
@@ -1,5 +1,5 @@
 
-<?php    
+<?php
     echo $OUTPUT->container_end(); // content container
 
     echo $OUTPUT->container_start('clearfix footer');
 
     $useridarray = array(2, 3 // MD
                           );
-    
+
     if (!empty($performanceinfo) && isloggedin() && in_array($USER->id, $useridarray)) {
         echo $performanceinfo;
     }
-    
+
     echo $OUTPUT->container_end();
 ?>
 </div>
index 7bb3e9c20d2aa6c0d634e08beb257a4336db62ac..bb30eff6aef53a133086b7b9bb6e0290dff0d200 100755 (executable)
 </head>
 
 <body<?php echo " $bodytags"; ?>>
-    
+
 <div id="page">
-    
-<?php if ($home) {  // This is what gets printed on the home page only  
+
+<?php if ($home) {  // This is what gets printed on the home page only
 ?>
     <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     <?php echo $OUTPUT->container_end(); ?>
        <div class="navbar clearfix">
-               &nbsp;      
+               &nbsp;
     </div>
-<?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
+<?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
     <?php echo $OUTPUT->container_start('clearfix header'); ?>
         <h1 class="headermain"><?php echo $heading ?></h1>
index 1f60ad80e869950effad5ebff481aa94b216236d..9ae17a4ac9a2a4a03c723369edc907504fe237ae 100755 (executable)
@@ -1,6 +1,6 @@
 /**
  * CSSClass.js: utilities for manipulating the CSS class of an HTML element.
- * 
+ *
  * This module defines a single global symbol named CSSClass.  This object
  * contains utility functions for working with the class attribute (className
  * property) of HTML elements.  All functions take two arguments: the element
index 5b16d503b98fea99d9feeafcdb15640aa276fc60..8421e42522c378435909b082a5bcaf0542436eec 100755 (executable)
@@ -1,14 +1,14 @@
 <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 () {
             if (top.user) {
                 top.document.getElementsByTagName('frameset')[0].rows = "117,30%,0,200";
             }
-            
+
             // check for layouttabel and add haslayouttable class to body
             function setbodytag () {
                 var bd = document.getElementsByTagName('body')[0];
                     setTimeout(function() { setbodytag() }, 10);
                 }
             };
-            
+
             setbodytag();
         },
-        
+
         init: function() {
             jsscript.corrections();
         }
     };
-    
+
     jsscript.init();
 //    setTimeout(function() { jsscript.init() }, 10);
 /* ]]> */
index 1a53f429b1c004ed7ee528a136d5d6d761f87ebe..aafe367d30ee54a916140cd3055d6d47e994bca3 100755 (executable)
                 YAHOO.util.Dom.setStyle(formsets[j], 'border-bottom-color', col);
             }
         }
-        
+
         // var check = document.getElementById('admin-settings');
         if (document.getElementById('admin-settings') || document.getElementById('admin-search')) {
             var check = 1;
-        } 
+        }
         // console.log("page: " + check);
         if (!check) return;
 
index 41659815618c6b2edb1385b8aef018fc0bbeae82..b0a0f5d1ad3c22afae3298e9ebc21e38c0fa300c 100755 (executable)
@@ -111,7 +111,7 @@ h2.headingblock {
   padding-top: 0;
   font-size: 100%;
 }
-#site-index .headingblock, 
+#site-index .headingblock,
 #course-view .headingblock {
   margin-bottom: 0;
 }
@@ -125,12 +125,12 @@ h2.headingblock {
 table.generalbox {
   border-style: none;
 }
-th.header, 
+th.header,
 td.cell {
   border-bottom: 1px solid #EEE;
   text-align: left;
 }
-.generalbox th, 
+.generalbox th,
 .generalbox td {
   border-bottom: 1px solid #EEE;
   text-align: left;
@@ -438,7 +438,7 @@ link
   margin-top: 10px;
 }
 .admin .header.c0 {
-  
+
 }
 .rolecap .rolecapheading {
   background-color: #FAFAFA;
@@ -646,9 +646,9 @@ link
 .haslayouttable div#content {
   margin: 0;
 }
-.weeks-format #left-column, 
-.weeks-format #right-column, 
-.topics-format #left-column, 
+.weeks-format #left-column,
+.weeks-format #right-column,
+.topics-format #left-column,
 .topics-format #right-column {
        width: 15.5em;
 }
@@ -728,7 +728,7 @@ link
   margin-bottom: 2em;
 }
 #course-view .weeks .content ,
-#course-view .topics .content, 
+#course-view .topics .content,
 #course-view .weeks .section,
 #course-view .topics .section {
   background-color: #FFF;
@@ -946,7 +946,7 @@ table.minicalendar {
 .cal_popup_fg div a {
   font-size: 100% !important;
 }
-.block_calendar_month .cal_popup_caption, 
+.block_calendar_month .cal_popup_caption,
 .block_calendar_month .cal_popup_fg div {
   border-color: #9B9984;
   font-size: 100% !important;
@@ -1053,7 +1053,7 @@ p.book_chapter_title {
   border-style: none;
   border-top: 1px solid #EEE;
 }
-.glossarypost .concept h3, 
+.glossarypost .concept h3,
 .glossarypost.continuous .concept {
   display: inline;
 }
@@ -1086,7 +1086,7 @@ p.book_chapter_title {
   border-color: #DDD;
 }
 .que .incorrect {
-  
+
 }
 .que.multianswer .incorrect {
   background-color: #faa;
index c5090dc86722f10f5eef655bb338ff70b05d8f9e..e8fda292e032b11b39df885b79dbbf0de5ffcd98 100644 (file)
@@ -2,7 +2,7 @@ MOODLE THEME: METAL
 
 This theme is designed by A. Chavan (chavan at users.sourceforge.net).
 
-It is based on moodle's "standardwhite" theme. 
+It is based on moodle's "standardwhite" theme.
 It uses the background image from, and is inspired by:
 http://www.alexking.org/software/wordpress/styles/sample.php?wpstyle=metaldreams
 
index 7a7f2452719a43f0d7e82e13a1043b51957eef56..82b297ddbea6a611a8587dd2464c2e7a45248920 100755 (executable)
@@ -1,7 +1,7 @@
 /*******************************************************************
  styles_color.css
-  
- This CSS file contains all color definitions like 
+
+ This CSS file contains all color definitions like
  background-color, font-color, border-color etc.
 
  Styles are organised into the following sections:
@@ -78,11 +78,11 @@ table.formtable tbody th {
 }
 
 /* Alternate rows even */
-.r0 {  
+.r0 {
 }
 
 /* Alternate rows odd */
-.r1 {  
+.r1 {
 }
 
 /* notification messages (can be good or bad) */
@@ -98,20 +98,20 @@ table.formtable tbody th {
 }
 
 .generalbox {
-  border-color:#999999; 
+  border-color:#999999;
 }
 .informationbox {
-  border-color:#999999; 
+  border-color:#999999;
 }
 .feedbackbox {
-  border-color: #999999; 
+  border-color: #999999;
 }
 .feedbackby {
   background-color:#BBBBBB;
 }
 
 .noticebox {
-  border-color:#999999; 
+  border-color:#999999;
 }
 
 .errorbox {
@@ -144,7 +144,7 @@ table.formtable tbody th {
 
 .unread {
   background: #FFD991;
-} 
+}
 
 .censoredtext {
   color:#000000;
@@ -201,16 +201,16 @@ table.formtable tbody th {
  ***/
 
 .generalboxcontent {
-  background-color:#EEEEEE; 
+  background-color:#EEEEEE;
 }
 
 .admin .generalbox {
-  border-color:#999999; 
+  border-color:#999999;
 }
 
 .admin .informationbox {
-  border-color:#999999; 
-  background-color:#FFFFFF; 
+  border-color:#999999;
+  background-color:#FFFFFF;
 }
 
 body#admin-index .c0 {
@@ -501,7 +501,7 @@ table.message_search_results td {
  ***/
 
 .userpicture {
-  background:#EEEEEE; 
+  background:#EEEEEE;
 }
 
 .userinfobox {
@@ -523,8 +523,8 @@ table.message_search_results td {
 
 .assignmentnew .assignmentfeedback{
   background-color:#DDDDDD;
-}   
-  
+}
+
 .assignmentold .assignmentfeedback{
   background-color:#BBBBBB;
 }
@@ -558,7 +558,7 @@ table.message_search_results td {
 }
 
 .forumpost .left {
-  background:#EEEEEE; 
+  background:#EEEEEE;
 }
 
 .forumpost .topic {
@@ -566,11 +566,11 @@ table.message_search_results td {
 }
 
 .forumpost .starter {
-  background:#DDDDDD; 
+  background:#DDDDDD;
 }
 
 .forumheaderlist .discussion .starter {
-  background:#DDDDDD; 
+  background:#DDDDDD;
 }
 
 .forumheaderlist td {
@@ -590,11 +590,11 @@ table.message_search_results td {
 
 #mod-forum-discuss .forumpost.unread .content {
   border-width:3px;
-/*  border-color: #FFD991; */ 
-} 
+/*  border-color: #FFD991; */
+}
 
 #mod-forum-discuss .forumthread .unread {
-} 
+}
 
 #mod-forum-index .unread {
 }
index 8e8fa259a6624b7b93928780cba39ec9da578729..007e263be49649f50355c39f5ae2613d6b471fb7 100644 (file)
@@ -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('gradients', 'colors', 'fonts');
 
-/// 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 = array('styles_layout','styles_fonts','styles_color');  
+$THEME->standardsheets = array('styles_layout','styles_fonts','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,30 +62,30 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
 
-$THEME->makenavmenulist = false;  
+$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';
@@ -95,11 +95,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 4f3cf457d3e496f80d086461d284c7bbdab9b241..8d17a0802e3ddfd0dd165ab5cce3892734d26b2b 100755 (executable)
@@ -12,10 +12,10 @@ body {
 
 th.header,
 td.header,
-div.header {     
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+div.header {
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
 
 .navbar {
@@ -42,4 +42,4 @@ div.header {
 .breadcrumb .sep {
   color:#999999;
 }
-   
+
index 96b7ed63b97ace26d52ccca878e0ae31ff90344f..cc26177a06482f3f3bce9030a4884e3668a5d6dd 100644 (file)
@@ -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('gradients', 'styles_color');
 
-/// 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 = array('styles_layout','styles_fonts','styles_color');  
+$THEME->standardsheets = array('styles_layout','styles_fonts','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,7 +62,7 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
@@ -71,22 +71,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';
@@ -96,12 +96,12 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
 
-?>
+
index 3d46e07d499d656fdc151eff12073e76767ad1b5..37e532b410a268191a8fa77cd37f7686483c48ba 100644 (file)
@@ -863,20 +863,20 @@ table.message_search_results td {
 }
 
 /** inside border of unread posts in nested format in
- * mod/forum/discuss.php 
+ * mod/forum/discuss.php
  **/
 #mod-forum-discuss .forumpost.unread .content {
   border-width:2px;
   border-color: #0000FF;
-} 
+}
 
 #mod-forum-discuss .forumthread .unread {
 }
 /** headers of unread posts in threaded format in
- * mod/forum/discuss.php 
+ * mod/forum/discuss.php
  **/
 #mod-forum-discuss .forumthread.unread {
-  background: #FFFF6B; 
+  background: #FFFF6B;
 }
 
 #mod-forum-index .unread {
@@ -884,7 +884,7 @@ table.message_search_results td {
 
 
 /** unread column background on
- * mod/forum/view.php 
+ * mod/forum/view.php
  **/
 #mod-forum-view .unread{
        background: #FFFF6B;
index 8b336219f68bbceb9b2d0cf7552aaae102c49b95..5221b040be365f1fb273c8c0841bfefeff98f779 100644 (file)
@@ -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('styles_layout', 'styles_fonts', 'styles_color', 'styles_tabs');
 
-/// 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('styles_layout', 'styles_fonts', 'styles_color', '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,7 +62,7 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
@@ -71,22 +71,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';
@@ -96,16 +96,16 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
 
 
-// These colours are not used anymore, so I've set them to 
+// These colours are not used anymore, so I've set them to
 // bright green to help identify where they should be removed
 // These lines will be deleted soon
 
@@ -119,4 +119,4 @@ $THEME->highlight    = "#22FF22";  // Highlighted text (eg after a search)
 $THEME->hidden       = "#22FF22";  // To color things that are hidden
 $THEME->autolink     = "#22FF22";  // To color auto-generated links (eg glossary)
 
-?>
+
index 3d1dbd3dd5930d1af163d678732aac73539ba710..3968b926489e06c5fbcf8405d98511fa6b8604be 100644 (file)
@@ -6,7 +6,7 @@
  *    Peterned - http://www.xs4all.nl/~peterned/
  *    (c) 2004 - Peter Nederlof
  *
- *    Credits  - Arnoud Berendsen 
+ *    Credits  - Arnoud Berendsen
  *             - Martin Reurings
  *    for inspiring me and finding really sick bugs
  *
@@ -22,14 +22,14 @@ var activators = {
 
 function parseStylesheets() {
     var sheets = doc.styleSheets, l = sheets.length;
-    for(var i=0; i<l; i++) 
+    for(var i=0; i<l; i++)
         parseStylesheet(sheets[i]);
 }
     function parseStylesheet(sheet) {
         var l, rules, imports;
         if(sheet.imports) {
             imports = sheet.imports, l = imports.length;
-            for(var i=0; i<l; i++) 
+            for(var i=0; i<l; i++)
                 parseStylesheet(sheet.imports[i]);
         }
 
@@ -40,7 +40,7 @@ function parseStylesheets() {
     function parseCSSRule(rule) {
         var select = rule.selectorText, style = rule.style.cssText;
         if(!(/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i).test(select) || !style) return;
-        
+
         var pseudo = select.replace(/[^:]+:([a-z-]+).*/i, 'on$1');
         var newSelect = select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi, '.$2' + pseudo);
         var className = (/\.([a-z0-9_-]*on(hover|active))/i).exec(newSelect)[1];
@@ -59,7 +59,7 @@ function HoverElement(node, className, events) {
     node.attachEvent(events.on,
         function() { node.className += ' ' + className; });
     node.attachEvent(events.off,
-        function() { node.className = 
+        function() { node.className =
             node.className.replace(new RegExp('\\s+'+className, 'g'),''); });
 }
 
index 7d80e4684e69e3d4350f59e9532046e5e6dc5ef4..a27915b146a9a10d7d3cc4c5d83bff473d8b1802 100644 (file)
@@ -1,7 +1,7 @@
 /*******************************************************************
  styles_color.css
-  
- This CSS file contains all color definitions like 
+
+ This CSS file contains all color definitions like
  background-color, font-color, border-color etc.
 
  Styles are organised into the following sections:
@@ -76,14 +76,14 @@ table.formtable tbody th {
   color:#A00
 }
 /* Alternate rows even */
-.r0 {  
+.r0 {
 }
 /* Alternate rows odd */
-.r1 {  
+.r1 {
 }
 /* notification messages (can be good or bad) */
 .breadcrumb .sep {
-  color: #DA3; 
+  color: #DA3;
 }
 .notifyproblem {
   color:#600
@@ -196,7 +196,7 @@ table.formtable tbody th {
 /***
  *** Admin
  ***/
+
 .admin .generalboxcontent {
   background-color:#EEE
 }
@@ -204,7 +204,7 @@ table.formtable tbody th {
   border-color:#BBB
 }
 .admin .informationbox {
-  border-color:#BBB; 
+  border-color:#BBB;
   background-color:#FFF
 }
 body#admin-index .c0 {
@@ -514,8 +514,8 @@ table.message_search_results td {
 }
 .assignmentnew .assignmentfeedback{
   background-color:#FFEDCE
-}   
-  
+}
+
 .assignmentold .assignmentfeedback{
   background-color:#BBB
 }
@@ -534,7 +534,7 @@ table.message_search_results td {
 /***
  *** Modules:Forum
  ***/
+
 .mod-forum #content {
   background-color:#F9FAFA
 }
@@ -588,7 +588,7 @@ table.message_search_results td {
 /***
  *** Modules:Glossary
  ***/
+
 .mod-glossary #content {
  background-color:#F9FAFA
 }
index 41b8170ece2ecc3404ca0178a70ac60d4dea3820..40d8d819c07fdb57a0041f9f7820cc603fc81bc4 100644 (file)
@@ -1,6 +1,6 @@
 /*******************************************************************
  styles_fonts.css
-  
+
  This CSS file contains all font definitions like family, size,
  weight, text-align, letter-spacing etc.
 
@@ -207,7 +207,7 @@ table.formtable tbody th {
 /***
  *** Blocks
  ***/
+
 .sideblock {
   font-size:0.7em
 }
@@ -393,7 +393,7 @@ body#doc-contents ul {
 .message .summary {
   font-size:0.9em
 }
-.message .note, 
+.message .note,
 .message .pix {
   font-size:0.8em
 }
@@ -464,7 +464,7 @@ body#doc-contents ul {
 #mod-choice-index .cell {
   font-size:0.85em
 }
-  
+
 /***
  *** Modules:Forum
  ***/
index b8c751ea30ec6adf5a3d0155e02ba202cfde6514..edb58956eb306324b9ed5b03847b877e27af5935 100644 (file)
@@ -1,6 +1,6 @@
 /*******************************************************************
  styles_layout.css
-  
+
  This CSS file contains all layout definitions like positioning,
  floats, margins, padding, borders etc.
 
@@ -145,7 +145,7 @@ img.resize {
 /***
  *** Footer
  ***/
+
 #footer {
   margin-top:1em
 }
@@ -205,7 +205,7 @@ form.mform div.textarea textarea {
 /***
  *** Admin
  ***/
+
 .logtable th.header {
   border-left:1px solid;
   border-right:1px solid;
@@ -218,7 +218,7 @@ form.mform div.textarea textarea {
 /***
  *** Blocks
  ***/
+
 .sideblock,
 .sideblock .searchform {
   text-align:left
@@ -347,11 +347,11 @@ form.mform div.textarea textarea {
 .loginbox {
   margin-top:12px
 }
-  
+
 /***
  *** Modules:Forum
  ***/
+
 .forumheaderlist {
   width:90%;
   margin-left:auto;
@@ -364,7 +364,7 @@ form.mform div.textarea textarea {
 #mod-forum-index .generalbox {
   width:100%
 }
-  
+
 /***
  *** Modules:Glossary
  ***/
@@ -379,7 +379,7 @@ form.mform div.textarea textarea {
 /***
  *** Modules:Resource
  ***/
+
 .mod-resource #content {
   margin-top:1px
 }
index e9916968729ac5b86dab85bf5e2145bade1eebde..4769c5f1dfa3d59da3118a9ab76309a73d6de837 100644 (file)
@@ -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('styles_pda');
 
-/// 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('styles_pda');
 $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 = 'orangewhite';  
+$THEME->parent = 'orangewhite';
 
 /// 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 = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_tabs');  
+$THEME->parentsheets = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_tabs');
 
 /// 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,7 +62,7 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
@@ -71,22 +71,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';
@@ -96,11 +96,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 189ad5d139596a440156258dbaaef695a1d56ccc..39d58bc9db37d90ac06535b3ce0f556a89b97ce8 100644 (file)
@@ -1,6 +1,6 @@
 /*  $Id$ */
 
-/************************************************* 
+/*************************************************
 ***
 *** pda
 ***
@@ -18,7 +18,7 @@
 *** header and footer styles
 *** content styles (alphabetically)
 *** admin, course, activities, calendar, blocks
-*** 
+***
 *** Please sort new styles for existing content
 *** into the appropriate part of this CSS file.
 *** Styles for new Blocks or Activities please
   padding:0
 }
 p, a, li, dd, dt, pre, code, input, select {
-  font-size:1.5em !important 
+  font-size:1.5em !important
 }
 .content, .topic {
-  font-size:1.5em !important 
+  font-size:1.5em !important
 }
 #header {
   height:auto;
@@ -55,7 +55,7 @@ p, a, li, dd, dt, pre, code, input, select {
   margin-right:0 !important;
   padding-left:0 !important;
   padding-right:0 !important;
-  border:1px solid #AAA !important 
+  border:1px solid #AAA !important
 }
 #course-view .headingblock,
 #course-view .topics {
@@ -64,7 +64,7 @@ p, a, li, dd, dt, pre, code, input, select {
   border:1px solid #AAA !important;
 }
 #course-view .spacer {
-  height:1em !important; 
+  height:1em !important;
 }
 #course-view .topics .left,
 #course-view .topics .right {
@@ -92,11 +92,11 @@ p, a, li, dd, dt, pre, code, input, select {
   font-weight:bold;
 }
 /** {
-  border:1px solid #A00 !important 
+  border:1px solid #A00 !important
 }*/
 .tabs tr,
 .tabs td {
-  background-image:none !important 
+  background-image:none !important
 }
 .tabs td {
   border:1px solid #AAA !important;
@@ -108,9 +108,9 @@ p, a, li, dd, dt, pre, code, input, select {
 }
 #course-log .r1 td {
   border:1px solid #AAA;
-  text-align:left; 
+  text-align:left;
 }
 .generaltable th,
 .generaltable td {
-  border:1px solid #AAA !important; 
+  border:1px solid #AAA !important;
 }
\ No newline at end of file
index 08e658bfb05da71fa3df30a246c85aa325f8430e..c614124c51c14cafc3bc20ee49dd2e6ff1ef31e6 100644 (file)
@@ -5,7 +5,7 @@
 
 <p>This theme is always the most up-to date.</p>
 
-<p>Programmers working on Moodle should always design for this 
+<p>Programmers working on Moodle should always design for this
 theme, and add new styles to this theme.</p>
 
 <p>By default, these styles are automatically loaded before any other
index 7aa38a1953488c642ed26ca6e77d5433330a0dab..a143847eb50acae5d0d803f03d9aaf21b04a69be 100755 (executable)
@@ -3,9 +3,9 @@
 
  This CSS file contains all layout definitions that are required for
  right-to-left languages. It overrides definitions in other fils to
- move right-floating blocks to the left, align text to the right, 
+ move right-floating blocks to the left, align text to the right,
  swap left and right margins, etc.
+
  *******************************************************************/
 
 body, td, li, div {
@@ -375,7 +375,7 @@ body#mod-quiz-report table#attempts .header {
         #mod-quiz-edit div.question div.content div.qorder{
     left:50px;
     right:auto;
-    
+
 }
 #mod-quiz-edit div.question div.content div.questioncontrols{
     right:auto;
@@ -446,7 +446,7 @@ body#mod-quiz-report table#attempts .header {
     -webkit-border-radius:0.6em;
     border-radius:0.6em;
     -moz-border-radius:0.6em;
-    
+
     margin-right:0.3em;
     border-right:solid #777 thin;
     -webkit-border-radius-bottomright:0;
@@ -467,7 +467,7 @@ body#mod-quiz-report table#attempts .header {
     border-radius-topright:0;
     -moz-border-radius-bottomright:0;
     -moz-border-radius-topright:0;
-    
+
 }
 
 #mod-quiz-edit .reorder div.question div.content{
@@ -608,7 +608,7 @@ form.mform .fitemtitle {
 
 
 /* ========================
-       overrides styles_ie6 
+       overrides styles_ie6
    ======================== */
 
 FORM.mform INPUT {
index e396b1a30432fc78813c3d4c41b7e038ad65d886..1052720676a25253a1e46cd877eb75dceb71e9c6 100644 (file)
@@ -754,10 +754,10 @@ body#course-user .section {
 
 /**
  * unread count background on
- * course/view.php 
+ * course/view.php
  **/
 #course-view .unread{
-       background: #9EBEFF; 
+       background: #9EBEFF;
 }
 
 
@@ -979,14 +979,14 @@ table.message_search_results td {
 /**
  * Patch MDL-18971 version 3 puts the forum classes
  * in page sequence. Also added one course class (above)
- * for course/view.php 
+ * for course/view.php
  **/
 
 /** The location of these classes is unknown
  * Commented out with patch MDL-18971 version 3
  **/
 /*.sideblock .post .head {
-  color:#555555; 
+  color:#555555;
 }*/
 
 /** Unread Posts count background on
@@ -996,15 +996,15 @@ table.message_search_results td {
        background: #9EBEFF;
 }
 
-/** wire frame around cells in 
- * mod/forum/view.php 
+/** wire frame around cells in
+ * mod/forum/view.php
  **/
 .forumheaderlist td {
   border-color: #FFFFFF;
 }
 
-/** Discussion column background in 
- * mod/forum/view.php 
+/** Discussion column background in
+ * mod/forum/view.php
  * The inner class is actually "topic starter"
  **/
 .forumheaderlist .discussion .starter {
@@ -1012,14 +1012,14 @@ table.message_search_results td {
 }
 
 /** unread column background on
- * mod/forum/view.php 
+ * mod/forum/view.php
  **/
 #mod-forum-view .unread{
        background: #9EBEFF;
 }
 
-/** border around posts in 
- * mod/forum/view.php (forumheaderlist) and 
+/** border around posts in
+ * mod/forum/view.php (forumheaderlist) and
  * mod/forum/discuss.php (forumpost)
  **/
 .forumheaderlist,
@@ -1027,55 +1027,55 @@ table.message_search_results td {
   border-color:#DDDDDD;
 }
 
-/** post body color in 
- * mod/forum/discuss.php 
+/** post body color in
+ * mod/forum/discuss.php
  **/
 .forumpost .content {
   background: #FFFFFF;
 }
 
-/** left photo section of each post in 
- * mod/forum/discuss.php 
+/** left photo section of each post in
+ * mod/forum/discuss.php
  **/
 .forumpost .left {
   background:#EEEEEE;
 }
 
-/** line between header and post body in 
- * mod/forum/discuss.php 
+/** line between header and post body in
+ * mod/forum/discuss.php
  **/
 .forumpost .topic {
   border-bottom-color: #EEEEEE;
 }
 
-/** header of the first post in 
- * mod/forum/discuss.php 
+/** header of the first post in
+ * mod/forum/discuss.php
  **/
 .forumpost .starter {
   background:#DDDDDD;
 }
 
 /** header of reply posts and
- * lower corners of all posts in 
- * mod/forum/discuss.php 
+ * lower corners of all posts in
+ * mod/forum/discuss.php
  **/
 #mod-forum-discuss .forumpost {
   background: none;
 }
 
 /** inside border of unread posts in nested format in
- * mod/forum/discuss.php 
+ * mod/forum/discuss.php
  **/
 #mod-forum-discuss .forumpost.unread .content {
   border-width:2px;
-  border-color: #0046C7; 
+  border-color: #0046C7;
 }
 
 /** headers of unread posts in threaded format in
- * mod/forum/discuss.php 
+ * mod/forum/discuss.php
  **/
 #mod-forum-discuss .forumthread.unread {
-  background: #9EBEFF; 
+  background: #9EBEFF;
 }
 
 
index 535fdbe782872bba23ebfeef623df33ff78dc1d2..d6e996a31053beefdce52a3e01ab6fab6872b00e 100644 (file)
@@ -1897,7 +1897,7 @@ body.has_navigation_bar {
     background-color:inherit;
 }
 .navigation_bar .sideblock_tab {
-  
+
 }
 .navigation_bar .sideblock_tab .firsttab {
   margin-top:1em;
@@ -4179,7 +4179,7 @@ table.presets {
   width: 90%;
   margin-left: auto;
   margin-right: auto;
-} 
+}
 
 /***
  *** Modules: Forum
index 319b9cdf3be62a210b4cc579ff4e6cde2aff5765..52548d6814a51873e7a9fe83a567770243f954c4 100644 (file)
@@ -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('gradients');
 
-/// 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 = array('styles_layout','styles_fonts','styles_color','styles_moz');  
+$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
 
 /// 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,30 +62,30 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
 
-$THEME->makenavmenulist = false;  
+$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';
@@ -95,11 +95,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 1f66d8f5c3fd9871949230f7e7930f377b40ab41..e929fb822dcf149b6862202ab81a89bad7ef9832 100644 (file)
@@ -5,15 +5,15 @@
 
 th.header,
 td.header,
-div.header {     
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+div.header {
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
 
 .navbar {
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
 
index 319b9cdf3be62a210b4cc579ff4e6cde2aff5765..52548d6814a51873e7a9fe83a567770243f954c4 100644 (file)
@@ -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('gradients');
 
-/// 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 = array('styles_layout','styles_fonts','styles_color','styles_moz');  
+$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
 
 /// 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,30 +62,30 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
 
-$THEME->makenavmenulist = false;  
+$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';
@@ -95,11 +95,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 1f66d8f5c3fd9871949230f7e7930f377b40ab41..e929fb822dcf149b6862202ab81a89bad7ef9832 100644 (file)
@@ -5,15 +5,15 @@
 
 th.header,
 td.header,
-div.header {     
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+div.header {
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
 
 .navbar {
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
 
index 3b5ee9e81db5f5800771852c012bc244681f633b..af9b94c534754d36b5a1a10c586d51986b13b8c5 100644 (file)
@@ -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('gradients');
 
-/// 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 = array('styles_layout','styles_fonts','styles_color','styles_moz');  
+$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
 
 /// 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 = 'standardwhite';  
+$THEME->parent = 'standardwhite';
 
 /// 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 = array('gradients');  
+$THEME->parentsheets = array('gradients');
 
 /// 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,30 +62,30 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
 
-$THEME->makenavmenulist = false;  
+$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';
@@ -95,11 +95,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 319b9cdf3be62a210b4cc579ff4e6cde2aff5765..52548d6814a51873e7a9fe83a567770243f954c4 100644 (file)
@@ -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('gradients');
 
-/// 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 = array('styles_layout','styles_fonts','styles_color','styles_moz');  
+$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
 
 /// 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,30 +62,30 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
 
-$THEME->makenavmenulist = false;  
+$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';
@@ -95,11 +95,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 1f66d8f5c3fd9871949230f7e7930f377b40ab41..e929fb822dcf149b6862202ab81a89bad7ef9832 100644 (file)
@@ -5,15 +5,15 @@
 
 th.header,
 td.header,
-div.header {     
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+div.header {
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
 
 .navbar {
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
 
index 3074a60ad7a17d1cd70560c4ae11a828c7d9bfa8..2b0049720bb168942f886eca550de82214d7bb98 100644 (file)
@@ -86,11 +86,11 @@ $THEME->layouts = array(
     )
 );
 
-$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';
-$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';
@@ -100,13 +100,13 @@ $THEME->filter_mediaplugin_colors =
 //$CFG->block_search_button = link_arrow_right(get_string('search'), $url='', $accesshide=true);
 
 $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.
 
-$THEME->makenavmenulist = false;  
+$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.
index 2a348043ef1387df4f4b662231d251a39086b6ca..6fbdf2abb622ed74e112e9519bb966e37faef273 100644 (file)
@@ -12,7 +12,7 @@
     echo $loggedinas;
     echo $homelink;
 
-    if (!empty($performanceinfo) and has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) { 
+    if (!empty($performanceinfo) and has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
         echo $performanceinfo;
     }
 
@@ -23,7 +23,7 @@
           <li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=<?php echo urlencode(qualified_me()) ?>">Section 508 Check</a></li>
           <li><a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=0&amp;warnp2n3e=1&amp;url1=<?php echo urlencode(qualified_me()) ?>">WCAG 1 (2,3) Check</a></li>
         </ul></div>
-<?php } 
+<?php }
     echo $OUTPUT->container_end();
 ?>
 
index 4b4bb703cc11d3dffffe883a5dfcc05470d58af2..ef4545c1100e82141853aafd85f60e3792e1360f 100644 (file)
@@ -8,16 +8,16 @@ td.header,
 h1.header,
 h2.header,
 h3.header,
-div.header {     
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+div.header {
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
 table.rotateheaders th.header {
     background-image: none;
 }
 .navbar {
-    background-image:url(gradient.jpg);     
-    background-position:top;    
-    background-repeat:repeat-x;     
+    background-image:url(gradient.jpg);
+    background-position:top;
+    background-repeat:repeat-x;
 }
index 3b94efd576f1a215eb84965c9e6ec54d6973c445..e1d2f46a3c2559c2b0edcc78162c6d3dda0aa73e 100644 (file)
@@ -66,7 +66,7 @@ $DEFAULT_SHEET_LIST = array('styles_layout', 'styles_fonts', 'styles_color');
 $lastmodified = time();
 
 // Set the correct content type. (Should we also be specifying charset here?)
-header('Content-type: text/css'); 
+header('Content-type: text/css');
 header('Last-Modified: ' . gmdate("D, d M Y H:i:s", $lastmodified) . ' GMT');
 header('Pragma: ');
 
index 74b6d49e2a0be49f33c1e0af1c40985897c3de9f..ff1cf66c3dd24e5397f2c439d9491df05671cc4c 100644 (file)
@@ -1,7 +1,7 @@
 <h3>WOOD THEME</h3>
 <hr />
 
-<p>This theme is a really simple one using background 
+<p>This theme is a really simple one using background
 images for near every element inside Moodle.</p>
 
 <p>Two objectives were the main reason to build it:</p>
@@ -9,23 +9,23 @@ images for near every element inside Moodle.</p>
 <ul>
 <li>To learn how all the CSS stuff was working under Moodle 1.5 (now
 I think it's really a great and powerful stuff!).</li>
-<li>To create an image-based theme template to allow quick 
+<li>To create an image-based theme template to allow quick
 modifications by simply changing some images and colors.</li>
 </ul>
 
-<p>This theme is based on Moodle's Standard Theme.  
+<p>This theme is based on Moodle's Standard Theme.
 By default, the styles of the Standard theme
 are automatically loaded before any other
 themes, so that all custom themes need to do is to define their
 own styles to augment or overwrite particular standard styles.</p>
 
-<p>For Wood to work properly, the Moodle Standard theme must 
+<p>For Wood to work properly, the Moodle Standard theme must
 be present and unaltered in the Theme directory.</p>
 
 <p>In this way custom themes are not "left behind" by Moodle upgrades.</p>
 
-<p>For Moodle 1.9 onwards, to use the Wood black hide/show icons 
-(pix/t/switch_minus.gif, switch_plus.gif), admins need to enable Smart pix search  
+<p>For Moodle 1.9 onwards, to use the Wood black hide/show icons
+(pix/t/switch_minus.gif, switch_plus.gif), admins need to enable Smart pix search
 (Site Administration - Miscellaneous - Experimental - smartpix).</p>
 
 <p>For any suggestion, fix or comment about this theme, please, start a discussion
index 10d1156656efbb563b378a5a1402b3fa72c59f0d..77e23a2356e68c7227041ebb1f4069a8b3c0fd92 100644 (file)
@@ -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_color');
 
-/// 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 = array('styles_layout','styles_fonts','styles_color');  
+$THEME->standardsheets = array('styles_layout','styles_fonts','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,30 +62,30 @@ $THEME->pluginsheets = array('mod', 'block', 'format', 'gradereport');
 
 $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.
 
 
-$THEME->makenavmenulist = false;  
+$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';
@@ -95,11 +95,11 @@ $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.
 ////////////////////////////////////////////////////////////////////////////////
 
-?>
+
index 9318b554d5e4e886839ffea79ad6e9080d67b3b7..a7dcac6501939b86d2d91067b3e2fe6bec3fe341 100644 (file)
@@ -207,9 +207,9 @@ legend,
     border-left:1px solid #FFCC99;
     border-bottom:1px solid #330000;
     border-right:1px solid #330000;
-    background-image:url(gradient1.jpg);     
+    background-image:url(gradient1.jpg);
     background-position:bottom;
-    background-repeat:repeat;  
+    background-repeat:repeat;
 }
 .heading-with-help h2.main {
     border:none;
@@ -273,7 +273,7 @@ form.mform fieldset,
     border-left:1px solid #FFCC99;
     border-bottom:1px solid #330000;
     border-right:1px solid #330000;
-    background-image:url(gradient2.jpg);     
+    background-image:url(gradient2.jpg);
     background-position:bottom;
     background-repeat:repeat;
 }
@@ -314,7 +314,7 @@ form.mform fieldset,
     border-left:1px solid #FFCC99;
     border-bottom:1px solid #330000;
     border-right:1px solid #330000;
-    background-image:url(gradient4.jpg);     
+    background-image:url(gradient4.jpg);
     background-position:bottom;
     background-repeat:repeat;
 }
index 007d7651e07e4ced7b87f8a7243c8d9caf5e3a85..3beea3e4eb5ffa32771877b477a4c3bf4bf85c77 100644 (file)
@@ -48,4 +48,3 @@ if (!confirm_sesskey()) {
 }
 
 require_once($formaction);
-?>
\ No newline at end of file
index a65e494e9d8a1d47adb737748c2318c7f40a6e3c..c090fe4126be3eb765d055bbc18929c76198c343 100644 (file)
@@ -129,4 +129,4 @@ foreach ($users as $k => $v) {
 echo $OUTPUT->table($table);
 echo '<div style="width:100%;text-align:center;"><input type="submit" value="' . get_string('savechanges'). '" /></div></form>';
 echo $OUTPUT->footer();
-?>
+
index 1ca16637253d95f895c26d1fa5947069fd84a127..fa20bdeb0103d83e657242a179994abd890c79a3 100644 (file)
@@ -259,4 +259,3 @@ if ($email_changed) {
 /// and proper footer
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index ad7d91069905a747c73cf44955f128a53739f992..338743cd5239340b51d6deb43a25cc5b7a801344 100644 (file)
@@ -153,4 +153,4 @@ class user_edit_form extends moodleform {
     }
 }
 
-?>
+
index 2acce585aa0df4f6f21cb9fe299431c1669fe1b6..9b34f02dea638156ef1072155f8790be9ee7fceb 100644 (file)
@@ -283,4 +283,3 @@ $userform->display();
 /// and proper footer
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 4ad5d59139df6fa37d301ce06812e63485a79f94..5828d6678a0934c76a3973efdbe0517f62d5a694 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/lib/formslib.php');
 
@@ -176,4 +176,4 @@ class user_editadvanced_form extends moodleform {
     }
 }
 
-?>
+
index 2d012ee3c3225b83b4028c6867543f6eaf98e551..b3aa80a096fee947a099abe455d98ff4c70ea85f 100644 (file)
@@ -14,7 +14,7 @@ function useredit_load_preferences(&$user, $reload=true) {
             // reload preferences in case it was changed in other session
             unset($USER->preference);
         }
-        
+
         if ($preferences = get_user_preferences(null, null, $user->id)) {
             foreach($preferences as $name=>$value) {
                 $user->{'preference_'.$name} = $value;
@@ -297,4 +297,4 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
 
 }
 
-?>
+
index a5ed7dd5cf19f7e52fbb6148208a5da3f17c4ec6..79fb79890c13934b7fdbb55512d3233eeb5e2a9c 100644 (file)
@@ -170,7 +170,7 @@ foreach ($_POST as $k => $v) {
             $timeend = $unlimited;
             unset($userbasemenu[2]);
         }
-        
+
         $checkbox = $OUTPUT->select(html_select::make($periodmenu, "extendperiod[{$m[1]}]", "0", $nochange));
         $checkbox2 = $OUTPUT->select(html_select::make($userbasemenu, "extendbase[{$m[1]}]", "2", false));
         $table->data[] = array(
@@ -185,4 +185,4 @@ echo $OUTPUT->table($table);
 echo "\n<div style=\"width:100%;text-align:center;\"><input type=\"submit\" value=\"".get_string('savechanges')."\" /></div>\n</form>\n";
 
 echo $OUTPUT->footer();
-?>
+
index ab3214579ea0afa1d308d97e52c04cf9a9472b83..a6bacc356dc0f227d6c8eb84f58a72e62e5ed674 100644 (file)
@@ -74,14 +74,14 @@ final class user_external extends moodle_external {
         if (has_capability('moodle/user:delete', get_context_instance(CONTEXT_SYSTEM))) {
 
             $this->clean_function_params('delete_users', $params);
-            
+
             foreach ($params->usernames as $username) {
                 $user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>1));
-             
+
                 if (empty($user)) {
                     throw new moodle_exception('wscouldnotdeletenoexistinguser');
                 }
-                
+
                 if (!delete_user($user)) {
                     $deletionsuccessfull = false; //this function is in moodlelib.php
                 }
@@ -131,4 +131,4 @@ final class user_external extends moodle_external {
 
 }
 
-?>
+
index d7d90a01bfc461f520be3d1bbc03868d231f9613..73ba8ece582dd59459d3ef336e9fb78f152304f3 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot .'/user/filters/lib.php');
 
index 7a6965dc7b665c78f59c708a958d161fbc8bdc0e..905a32e1f080cd6f2a0111a40d8caec13e637de1 100755 (executable)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/user/filters/lib.php');
 
@@ -130,4 +130,3 @@ class user_filter_date extends user_filter_type {
         return '';
     }
 }
-?>
\ No newline at end of file
index e802339ea36c80f6d53c95c09b4f7322bfb95329..60b8bcaf7018e9773f1e07520e1a40257532152d 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/user/filters/lib.php');
 
index 15e473197caa3d2494f87ed5c9a48fc6622ac153..1f8e235c9976d6dbae2517504156884bafc6e7e8 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/user/filters/text.php');
 require_once($CFG->dirroot.'/user/filters/date.php');
@@ -80,7 +80,7 @@ class user_filtering {
                     }
                     if (empty($SESSION->user_filtering[$fname])) {
                         unset($SESSION->user_filtering[$fname]);
-                    } 
+                    }
                 }
             }
             // clear+reload the form
@@ -144,7 +144,7 @@ class user_filtering {
                         if (empty($hosts[$hostid])) {
                             $choices[$hostid] = 'id: '.$hostid.' ('.get_string('error').')';
                         }
-                    } 
+                    }
                 }
                 if (count($choices) < 2) {
                     return null; // filter not needed
index 34135e02886cd16db7a0e073f96c8690d793487f..0bf759773b24b53fdeef936c2ce9070e7cd40940 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/user/filters/lib.php');
 
@@ -117,7 +117,7 @@ class user_filter_profilefield extends user_filter_type {
         $params = array();
         if (!array_key_exists($profile, $profile_fields)) {
             return array('', array());
-        } 
+        }
 
         $where = "";
         $op = " IN ";
@@ -130,27 +130,27 @@ class user_filter_profilefield extends user_filter_type {
         switch($operator) {
             case 0: // contains
                 $where = "data $ilike :$name";
-                $params[$name] = "%$value%"; 
+                $params[$name] = "%$value%";
                 break;
             case 1: // does not contain
                 $where = "data NOT $ilike :$name";
-                $params[$name] = "%$value%"; 
+                $params[$name] = "%$value%";
                 break;
             case 2: // equal to
                 $where = "data $ilike :$name";
-                $params[$name] = "$value"; 
+                $params[$name] = "$value";
                 break;
             case 3: // starts with
                 $where = "data $ilike :$name";
-                $params[$name] = "$value%"; 
+                $params[$name] = "$value%";
                 break;
             case 4: // ends with
                 $where = "data $ilike :$name";
-                $params[$name] = "%$value"; 
+                $params[$name] = "%$value";
                 break;
             case 5: // empty
                 $where = "data=:$name";
-                $params[$name] = ""; 
+                $params[$name] = "";
                 break;
             case 6: // is not defined
                 $op = " NOT IN "; break;
@@ -188,7 +188,7 @@ class user_filter_profilefield extends user_filter_type {
 
         if (!array_key_exists($profile, $profile_fields)) {
             return '';
-        } 
+        }
 
         $a = new object();
         $a->label    = $this->_label;
index 725c05b58740d21dd1ba60144256cca040bc4c37..f40dd9e46a457e9ffcabd568045d2b565a136173 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/user/filters/lib.php');
 
index f25453fe8b8ee43d5a46788c5519489654593bf2..3b4c01995c8f9ba0b95e9085ca758862ebd3ff3a 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/user/filters/lib.php');
 
index 329397d00081d32f3f12db689935f44dc10451c4..e35b4d4f9b230f69d9480fe1f2f0a91cfe075e4d 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/user/filters/lib.php');
 
index 9cd507970e81f3b8e7458d55e22150d5ef882566..3186ebc5ccbc88d25d2d4a7239518efd39ec9488 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->libdir.'/formslib.php');
 
index 95aeebe2185a17379392628d4f36c1ab24fba4fa..ee22711f2b7dce11e055eef7ca2459b5bd8d9006 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 /**
  * Generic yes/no filter with radio buttons for integer fields.
index 97a5ce123f96ea13b520bf2dbd0e6e2021c8bb68..dd11fe4a23d6633328ef90cee8faa47d69e199c2 100755 (executable)
@@ -182,4 +182,4 @@ echo '<input type="submit" value="'.get_string('savechanges').'" />';
 echo '</div></form>';
 
 echo $OUTPUT->footer();
-?>
+
index 0569fb46de032f8f2c29f10a645e6d60659492f1..1086de248071a24629ef8ef925c280e3ab0d59f3 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 //  Lists all the users within a given course
 
     $courseid     = optional_param('id', 0, PARAM_INT);                       // this are required
 
     $PAGE->set_url('user/index.php', array(
-            'page' => $page, 
-            'perpage' => $perpage, 
-            'mode' => $mode, 
-            'accesssince' => $accesssince, 
-            'search' => $search, 
-            'roleid' => $roleid, 
-            'contextid' => $contextid, 
+            'page' => $page,
+            'perpage' => $perpage,
+            'mode' => $mode,
+            'accesssince' => $accesssince,
+            'search' => $search,
+            'roleid' => $roleid,
+            'contextid' => $contextid,
             'courseid' => $courseid));
 
     if ($contextid) {
                 $picturecell = new html_table_cell();
                 $picturecell->add_classes(array('left', 'side', 'picture'));
                 $picturecell->text = print_group_picture($group, $course->id, true, false, false);
-                
+
                 $contentcell = new html_table_cell();
                 $contentcell->add_class('content');
                 $contentcell->text = print_group_picture($group, $course->id, true, false, false);
@@ -1166,4 +1166,4 @@ function get_participants_extra ($userids, $avoidroles, $course, $context) {
 
 }
 
-?>
+
index 362059f144b748fa4858ab95804ef6d35d5ef499..81356bcd742761f7a457d47bbf1e880ce942e048 100644 (file)
@@ -177,4 +177,3 @@ if (count($SESSION->emailto[$id])) {
 echo $OUTPUT->footer();
 
 
-?>
\ No newline at end of file
index 40951e9a7cac93067f3da60e13127ed28599c71e..5a6b551523e3c69e98c0f9777985750eef8b7577 100644 (file)
@@ -87,4 +87,3 @@ echo $OUTPUT->confirm($strpolicyagree, $formcontinue, $formcancel);
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index d9a4f8c59f4f8bfac9ad849c8be48c21f5d6b7f9..d88995621de4c9a353d1391542c0578c2524df8f 100644 (file)
@@ -122,4 +122,3 @@ if ($display) {
 }
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index c08f11c775e0fd4a6b1835628f2fae04b6435bf0..35aa89eb00df6b3d0cd1aaee7576f9e020bbb469 100644 (file)
@@ -125,4 +125,4 @@ if ($logcount > 0) {
 
 echo $OUTPUT->footer();
 
-?>
+
index 1cbaa51f2650347b41ef66321b694ca2ba647c28..b2679f43708701932c401dced2fdceb059e6857d 100644 (file)
@@ -39,7 +39,7 @@ class profile_define_base {
         $form->addElement('selectyesno', 'locked', get_string('profilelocked', 'admin'));
 
         $form->addElement('selectyesno', 'forceunique', get_string('profileforceunique', 'admin'));
-        
+
         $form->addElement('selectyesno', 'signup', get_string('profilesignup', 'admin'));
 
         $choices = array();
@@ -545,4 +545,4 @@ function profile_edit_field($id, $datatype, $redirect) {
     }
 }
 
-?>
+
index 15e72817cb0c528c789ce453bc835b0ea57b2447..7785c28f35439a2d461fa89a14708afa54a3b01f 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 class profile_define_checkbox extends profile_define_base {
 
@@ -10,4 +10,4 @@ class profile_define_checkbox extends profile_define_base {
     }
 }
 
-?>
+
index ec09b8c1af57b5b4e508179e823063630ccafcee..3304861ad333401693cfeef64dcd9a062e4dffe9 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 class profile_field_checkbox extends profile_field_base {
 
@@ -27,7 +27,7 @@ class profile_field_checkbox extends profile_field_base {
         $checkbox = &$mform->addElement('advcheckbox', $this->inputname, format_string($this->field->name));
         if ($this->data == '1') {
             $checkbox->setChecked(true);
-        }        
+        }
         $mform->setType($this->inputname, PARAM_BOOL);
         if ($this->is_required() and !has_capability('moodle/user:update', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
             $mform->addRule($this->inputname, get_string('required'), 'nonzero', null, 'client');
@@ -45,4 +45,4 @@ class profile_field_checkbox extends profile_field_base {
 
 }
 
-?>
+
index 78e9d6e52b8723271ab6f3c5fbb7a89a91baccd3..330472c1431feca5775413a737d22f34477aed4f 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 class profile_define_menu extends profile_define_base {
 
@@ -38,4 +38,4 @@ class profile_define_menu extends profile_define_base {
 
 }
 
-?>
+
index 69317ff45ce36f176b6c3a1d4c87957b90f0f61a..6755b64dc6f8fc015bafe498393de4d350c00051 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 class profile_field_menu extends profile_field_base {
     var $options;
@@ -86,4 +86,4 @@ class profile_field_menu extends profile_field_base {
     }
 }
 
-?>
+
index 876311c29871131560e952b4d6e7bf1286850293..ff6be55df29ec5980553163997da5f7d4b238db4 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 class profile_define_text extends profile_define_base {
 
@@ -39,4 +39,4 @@ class profile_define_text extends profile_define_base {
 
 }
 
-?>
+
index 5506b6e169e86edf966ca6996c6073cebb751390..06676531b8cdbdb07e41f47bbe73b77924002df5 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 class profile_field_text extends profile_field_base {
 
@@ -38,4 +38,4 @@ class profile_field_text extends profile_field_base {
 
 }
 
-?>
+
index 44dc79c39d58b8393db0520da6f6ab1831bf7ea9..eac11fd888967faddac77ffa57a3c89de347c3f8 100644 (file)
@@ -14,4 +14,4 @@ class profile_define_textarea extends profile_define_base {
 
 }
 
-?>
+
index d4e243b4ca22f2561ebc464d737bbd4799f23546..245b98a9f3fb4bda72739a03ea76e97942f8a43c 100644 (file)
@@ -41,4 +41,4 @@ class profile_field_textarea extends profile_field_base {
 
 }
 
-?>
+
index 82157a207835fc83ee02aed2305a1f6e9245f8b0..78c9ade03e59f8f0f94620cc93b8cd0cd020e303 100644 (file)
@@ -53,7 +53,7 @@ switch ($action) {
         $optionsyes = array ('id'=>$id, 'confirm'=>1, 'action'=>'deletecategory', 'sesskey'=>sesskey());
         admin_externalpage_print_header();
         echo $OUTPUT->heading('profiledeletecategory', 'admin');
-        
+
         $formcontinue = html_form::make_button($redirect, $optionsyes, get_string('yes'), 'post');
         $formcancel = html_form::make_button($redirect, array(), get_string('no'), 'get');
         echo $OUTPUT->confirm(get_string('profileconfirmcategorydeletion', 'admin', $fieldcount), $formcontinue, $formcancel);
@@ -249,4 +249,4 @@ function profile_field_icons($field) {
 }
 
 
-?>
+
index 6f4ae2a54e0bcef367960acaaaeba08c04355981..2952ab1bea8ec6a1e58b9248e782df43d03bf032 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/lib/formslib.php');
 
@@ -44,4 +44,4 @@ class category_form extends moodleform {
     }
 }
 
-?>
+
index f00dd0e406404785ec05b15ec8c2df89c042ade7..751bed5674c3e8587025460b91fa3abe28ea2aff 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once($CFG->dirroot.'/lib/formslib.php');
 
@@ -51,4 +51,4 @@ class field_form extends moodleform {
     }
 }
 
-?>
+
index b3cfbb7132116c17787bd906e7d103c202095cf3..e9d969ef24bfbb4eb089098dab3fa4b014e40be7 100644 (file)
@@ -17,7 +17,7 @@ class profile_field_base {
     /// Everything else can be extracted from them
     var $fieldid;
     var $userid;
-    
+
     var $field;
     var $inputname;
     var $data;
@@ -47,7 +47,7 @@ class profile_field_base {
         print_error('mustbeoveride', 'debug', '', 'edit_field_add');
     }
 
-    
+
 /***** The following methods may be overwritten by child classes *****/
 
     /**
@@ -58,7 +58,7 @@ class profile_field_base {
         $options->para = false;
         return format_text($this->data, FORMAT_MOODLE, $options);
     }
-    
+
     /**
      * Print out the form field in the edit profile page
      * @param   object   instance of the moodleform class
@@ -106,7 +106,7 @@ class profile_field_base {
         }
 
         $data = new object();
-        
+
         $usernew->{$this->inputname} = $this->edit_save_data_preprocess($usernew->{$this->inputname}, $data);
 
         $data->userid  = $usernew->id;
@@ -207,7 +207,7 @@ class profile_field_base {
 
 
 /***** The following methods generally should not be overwritten by child classes *****/
-   
+
     /**
      * Accessor method: set the userid for this instance
      * @param   integer   id from the user table
@@ -313,7 +313,7 @@ class profile_field_base {
     function is_signup_field() {
         return (boolean)$this->field->signup;
     }
-     
+
 
 } /// End of class definition
 
@@ -346,7 +346,7 @@ function profile_definition(&$mform) {
     if ($categories = $DB->get_records('user_info_category', null, 'sortorder ASC')) {
         foreach ($categories as $category) {
             if ($fields = $DB->get_records('user_info_field', array('categoryid'=>$category->id), 'sortorder ASC')) {
-                    
+
                 // check first if *any* fields will be displayed
                 $display = false;
                 foreach ($fields as $field) {
@@ -445,7 +445,7 @@ function profile_signup_fields(&$mform) {
     $sql = "SELECT uf.id as fieldid, ic.id as categoryid, ic.name as categoryname, uf.datatype
                 FROM {user_info_field} uf
                 JOIN {user_info_category} ic
-                ON uf.categoryid = ic.id AND uf.signup = 1 AND uf.visible<>0 
+                ON uf.categoryid = ic.id AND uf.signup = 1 AND uf.visible<>0
                 ORDER BY ic.sortorder ASC, uf.sortorder ASC";
 
     if ( $fields = $DB->get_records_sql($sql)) {
@@ -486,4 +486,4 @@ function profile_user_record($userid) {
 }
 
 
-?>
+
index 087c066f4e14871bc30cb06b3c7bd199fb478193..0129f1e9d1e9b2916eb65e847d7ac495c26d399d 100644 (file)
@@ -82,4 +82,4 @@ foreach ($instances as $i) {
 echo $OUTPUT->table($table);
 echo $OUTPUT->footer();
 
-?>
+
index 17769027ced8293730feca5b66bf7cfdbd17f68c..587f5b817e9137aec81117a3d42fe46066cbd78e 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -64,13 +64,13 @@ abstract class user_selector_base {
      * or do we match occurrences anywhere? */
     protected $searchanywhere = false;
 
-    // This is used by get selected users, 
+    // This is used by get selected users,
     private $validatinguserids = null;
     // Used to ensure we only output the search options for one user selector on
     // each page.
     private static $searchoptionsoutput = false;
 
-    
+
     // Public API ==============================================================
 
     /**
@@ -322,7 +322,7 @@ abstract class user_selector_base {
     public abstract function find_users($search);
 
     /**
-     * 
+     *
      * Note: this function must be implemented if you use the search ajax field
      *       (e.g. set $options['file'] = '/admin/filecontainingyourclass.php';)
      * @return array the options needed to recreate this user_selector.
@@ -741,7 +741,7 @@ class group_non_members_selector extends groups_user_selector_base {
         list($searchcondition, $searchparams) = $this->search_sql($search, 'u');
 
         // Build the SQL
-        $fields = "SELECT r.id AS roleid, r.shortname AS roleshortname, r.name AS rolename, u.id AS userid, " . 
+        $fields = "SELECT r.id AS roleid, r.shortname AS roleshortname, r.name AS rolename, u.id AS userid, " .
                 $this->required_fields_sql('u') .
                 ', (SELECT count(igm.groupid) FROM {groups_members} igm JOIN {groups} ig ON
                     igm.groupid = ig.id WHERE igm.userid = u.id AND ig.courseid = ?) AS numgroups ';
@@ -773,4 +773,3 @@ class group_non_members_selector extends groups_user_selector_base {
         return $this->convert_array_format($roles, $search);
     }
 }
-?>
\ No newline at end of file
index d8f051c3ed3c7fce9649fcbd568fff0e61ed289a..b4cf65ad91818e1715c8a4b826d7d14354799a4b 100644 (file)
@@ -22,7 +22,7 @@ function user_selector(name, hash, extrafields, lastsearch, strprevselected, str
             hash + '&sesskey=' + moodle_cfg.sesskey + '&search='
 
     // Set up the data source.
-    this.datasource = new YAHOO.util.XHRDataSource(this.searchurl); 
+    this.datasource = new YAHOO.util.XHRDataSource(this.searchurl);
     this.datasource.connXhrMode = 'cancelStaleRequests';
     this.datasource.responseType = YAHOO.util.XHRDataSource.TYPE_JSON;
     this.datasource.responseSchema = {resultsList: 'results'};
@@ -177,7 +177,7 @@ user_selector.prototype.datasource = null;
 
 /**
  * The input element that contains the search term.
- * 
+ *
  * @property searchfield
  * @type HTMLInputElement
  */
@@ -185,7 +185,7 @@ user_selector.prototype.searchfield = null;
 
 /**
  * The clear button.
- * 
+ *
  * @property clearbutton
  * @type HTMLInputElement
  */
@@ -193,7 +193,7 @@ user_selector.prototype.clearbutton = null;
 
 /**
  * The select element that contains the list of users.
- * 
+ *
  * @property listbox
  * @type HTMLSelectElement
  */
@@ -201,7 +201,7 @@ user_selector.prototype.listbox = null;
 
 /**
  * Used to hold the timeout id of the timeout that waits before doing a search.
- * 
+ *
  * @property timeoutid
  * @type Number
  */
@@ -209,7 +209,7 @@ user_selector.prototype.timeoutid = null;
 
 /**
  * The last string that we searched for, so we can avoid unnecessary repeat searches.
- * 
+ *
  * @property lastsearch
  * @type String
  */
@@ -300,7 +300,7 @@ user_selector.prototype.get_search_text = function() {
 }
 
 /**
- * @return the value of one of the option checkboxes.<b> 
+ * @return the value of one of the option checkboxes.<b>
  */
 user_selector.prototype.get_option = function(name) {
     var checkbox = document.getElementById('userselector_' + name + 'id');
index d5f71903ae8637244b60166f2260b11f3afb5a14..2d6bd51ba3a23c01164607dac793271c4849e9e4 100644 (file)
@@ -91,4 +91,3 @@ foreach ($users as &$group) {
 }
 
 echo json_encode(array('results' => $users));
-?>
\ No newline at end of file
index 13f7be2470fea1df68abdaaad49d0ee74fdf687d..0e679c88802756c4c71b4abe67cf72a3239265ff 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 /// This file to be included so we can assume config.php has already been included.
 /// We also assume that $user, $course, $currenttab have been set
 
       print_tabs($tabs, $currenttab, $inactive, $activetwo);
     }
 
-?>
+
index 580efd4846ba2af63bd488ef0967a39b3359849a..f1ff0bb70650a271122bd1c994f744605280e111 100644 (file)
@@ -259,7 +259,7 @@ if ($user->description && !isset($hiddenfields['description'])) {
     if (!$has_courseid && !empty($CFG->profilesforenrolledusersonly) && !$DB->record_exists('role_assignments', array('userid'=>$id))) {
         echo get_string('profilenotshown', 'moodle').'<hr />';
     } else {
-        
+
         $user->description = file_rewrite_pluginfile_urls($user->description, 'pluginfile.php', $usercontext->id, 'user_profile', $id);
         echo format_text($user->description, $user->descriptionformat)."<hr />";
     }
@@ -585,4 +585,4 @@ function print_row($left, $right) {
     echo "\n<tr><td class=\"label c0\">$left</td><td class=\"info c1\">$right</td></tr>\n";
 }
 
-?>
+