8008 Commits

Author SHA1 Message Date
tjhunt
fbaaeaebac forum: $PAGE->set_url on forum view page. 2009-07-14 09:36:02 +00:00
skodak
4e94ce8ec5 MDL-16075 fixed incomplete conversion of glossary comments 2009-07-14 08:26:45 +00:00
tjhunt
652ee8aa56 feedback MDL-19773 - temporary work-around so cron can run.
This still needs to be fixed properly.
2009-07-13 05:44:35 +00:00
skodak
42f9706865 fixed obsolete readme info 2009-07-09 20:02:27 +00:00
tjhunt
d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
samhemelryk
4d49202ffc javascript-UFO MDL-19738 Stopped ufo.js being included in outputlib and included it in each place it was actually being used.
It will no only be loaded when it is being used. If something new comes along they will need to remember to require it.
At the same time cleaned up a few deprecated calls
2009-07-08 04:12:11 +00:00
samhemelryk
e11a8328b3 javascript MDL-16673 Removed all removeable uses of CFG->javascript
In doing this I was able to eliminate the need for javascript.php files, now removed.
I will also be filing several subtasks to clean up the linked to JS files in OUTPUT as well
as all instance of the old style of focusing.
2009-07-07 09:09:16 +00:00
samhemelryk
19c9f09430 filelib MDL-19707 Converted existing ...str_replace('png','gif')... to use file_extension_icon and file_mimetype_icon 2009-07-07 06:16:01 +00:00
tjhunt
8f4e377dfe MDL-19690 - pixpath - cannot use $OUTPUT in CSS. Use $PAGE->theme instead. 2009-07-07 03:49:13 +00:00
Moodle HQ git importer
005a41a3ee Fixing drift between CVS and git 2009-07-06 00:38:18 +00:00
skodak
86900a93bb MDL-14589 improved _pluginfile function - added forcedownload param and fixed docs 2009-07-03 13:40:37 +00:00
skodak
98edf7b647 MDL-14589 improved _pluginfile function - added forcedownload param and fixed docs 2009-07-03 13:39:39 +00:00
tjhunt
d436d197d1 MDL-19690 - the last lot of $CFG->pixpath to $OUTPUT->old_icon_url
Including MDL-19693

RIP $CFG->pixpath
2009-07-03 07:55:30 +00:00
tjhunt
ddedf979b4 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:19:25 +00:00
samhemelryk
7747c8dbd6 mod-feedback MDL-16706 Removed inline JS and added PAGE methods 2009-07-03 02:01:21 +00:00
samhemelryk
183abffc6b mod-scorm MDL-16706 Added missing global from commites yesterday 2009-07-03 01:36:18 +00:00
skodak
fa381ac70e MDL-19700 removing unused global 2009-07-02 15:27:46 +00:00
skodak
2ece30dd13 MDL-16438 fixed incomplete plugin centralisation, sorry; unfortunately install is kind of non-working now; this may break current dev installs :-( 2009-07-02 15:11:28 +00:00
skodak
41d2f7f781 MDL-16438 fixed incomplete plugin centralisation, sorry; unfortunately install is kind of non-working now; this may break current dev installs :-( 2009-07-02 15:02:51 +00:00
skodak
db4ecf4c7f MDL-16438 dixed resource borking install - no code execution in lib.php files! 2009-07-02 15:01:22 +00:00
tjhunt
5ef444007d MDL-19690 - Eliminate all remaining $CFG->modpixpath apart from mod/scorm 2009-07-02 12:25:19 +00:00
tjhunt
e63f88c9a6 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url
and $CFG->modpixpath to $OUTPUT->mod_icon_url
2009-07-02 12:07:58 +00:00
tjhunt
c8873c496b MDL-19690 - eliminate the $OUTPUT->initialise_deprecated_cfg_pixpath horrible hack.
Replace $CFG->pixpath with $OUPTUT->old_icon_url(...) instead.
2009-07-02 11:23:47 +00:00
tjhunt
f2a1963c43 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 11:09:15 +00:00
tjhunt
5d3b999468 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:26:02 +00:00
tjhunt
4096752d1d MDL-19690 - first 53 $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:06:39 +00:00
samhemelryk
618a452947 mod-quiz MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 06:46:47 +00:00
samhemelryk
0e2f318080 mod-scorm MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 06:40:54 +00:00
samhemelryk
8f36c245ed mod-assignment MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 06:37:30 +00:00
samhemelryk
ddbeb7a7ec chat ajax MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 06:00:59 +00:00
skodak
cdaacf753f MDL-19674 even uglier hack whcih works around the pixpath problem, the long term solution is to write a new setting 2009-07-01 08:10:06 +00:00
tjhunt
0456fc1ac4 MDL-19674 - err - slighly more sensible version of the previous commit. 2009-07-01 04:17:31 +00:00
tjhunt
14ab5ca92b Grrrr!!! MDL-19674 2009-07-01 04:13:47 +00:00
skodak
adf8f3f9ad MDL-19668 improvements of _with_advanced admin setting classes finished, quiz settings updated too 2009-06-30 16:55:56 +00:00
skodak
c304d58106 MDL-19668 renaming textbox and select elements 2009-06-30 15:23:33 +00:00
moodler
cadf365256 mod/assignment/type/online MDL-14045 Just tidying up code and removing inappropriate styles 2009-06-30 07:40:08 +00:00
tjhunt
a5cb8d6987 MDL-19077 - Finish eliminating customcorners-specific code in core.
The custom-corners-specific code now in theme/customcornser/renderers.php
and lib/deprecatedlib.php.

Also, $CFG->pixpath is now causing more problems than ever. If it is
giving your problems, please call $OUTPUT->initialise_deprecated_cfg_pixpath()
as a temporary fix. As you can imagine, we are thinking about a better
long-term fix, which is why that method as a silly, and easy to grep name.
2009-06-29 08:17:31 +00:00
samhemelryk
f3665549b8 mod-scorm MDL-16706 Replaced inline JS with new PAGE methods and created player.js 2009-06-29 02:38:22 +00:00
stronk7
ce40c8ff2b MDL-19579 code coverage - add more initial $includecoverage attributes 2009-06-26 18:12:05 +00:00
tjhunt
34a2777ccb themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
Also, part of the change from weblib.php functions to $OUTPUT-> methods.

This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.

The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.

A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.

All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
samhemelryk
002575adeb mod-forum MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 07:49:37 +00:00
samhemelryk
a39fe289b0 mod-feedback MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 07:32:52 +00:00
samhemelryk
0763ab2c65 mod-chat MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 06:53:23 +00:00
samhemelryk
bd257031a9 mod-scorm MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 06:31:26 +00:00
samhemelryk
8ab94a36fe mod-chat MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 05:55:55 +00:00
samhemelryk
30972c2bac mod-chat MDL-16706 Removed inline JS and replaced with new PAGE methods
Removed print_header $meta at same time as no longer used
2009-06-26 05:49:33 +00:00
samhemelryk
cafe98f394 mod-resource-file MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 05:12:43 +00:00
samhemelryk
1d6b319b11 mod-resource MDL-16706 Removed inline JS and replaced with new PAGE methods 2009-06-26 04:04:31 +00:00
tjhunt
75b7cac00d quiz: Fix copy/paste error. 2009-06-25 06:58:43 +00:00
tjhunt
fa98e6d15a Kill some debug code. 2009-06-25 06:56:41 +00:00