462 Commits

Author SHA1 Message Date
nicolasconnault
d8772689b2 MDL-19804 Converted all print_footer() calls 2009-08-06 14:15:30 +00:00
nicolasconnault
b2dc6880e4 MDL-19806 Migrated calls to print_heading 2009-08-06 08:21:01 +00:00
nicolasconnault
e09fc68ba7 MDL-19804 Upgraded calls to print_headline 2009-08-06 01:37:33 +00:00
tjhunt
d1dd5d030f chat: Remove unnecessary call-time pass by reference. 2009-07-24 09:16:09 +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
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
samhemelryk
ddbeb7a7ec chat ajax MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 06:00:59 +00:00
stronk7
ce40c8ff2b MDL-19579 code coverage - add more initial $includecoverage attributes 2009-06-26 18:12:05 +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
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
nicolasconnault
6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
skodak
a8c31db2a3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:47:18 +00:00
tjhunt
cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
skodak
7826abc79f MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:25:27 +00:00
stronk7
3e17976332 MDL-19350 upgrade blocks - fixing minor bits in modules 2009-06-03 17:01:51 +00:00
dongsheng
cc852a0a8d "MDL-14651, fixed yui javascript path (since latest yui upgrade), setup in update script in order to get format_text worked" 2009-06-02 05:24:24 +00:00
samhemelryk
b2d5a79a35 mod MDL-19294 Corrected package tags to docs spec 2009-05-27 05:33:12 +00:00
samhemelryk
848bb1134b chat lib MDL-19294 Boilerplate and Phpdocs 2009-05-27 02:40:00 +00:00
skodak
aa282b10fb MDL-15249 $_SERVER['HTTP_HOST'] not availabel in CLI script, replaced by parsing of wwwroot which should give the same info 2009-05-25 20:55:27 +00:00
tjhunt
b7b2d0f37d moodle_page: MDL-12212 improve comments and add some work-in-progress warnings 2009-05-06 09:29:05 +00:00
tjhunt
c85acc871f pagelib: MDL-12212 eliminate chat_page 2009-05-06 09:25:54 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
tjhunt
ad52c04f4c moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
tjhunt
f230ce19ea moodle_page: MDL-12212 implement ->pagetype 2009-05-06 08:34:32 +00:00
tjhunt
c13a5e71cc moodle_page: MDL-12212 start of new moodle_page class
* has course and status fields
* $PAGE->status updated by print_header and footer
* $PAGE->set_course now replace course_setup function
* global $PAGE created in setup.php
* unit tests for functionality so far
* Moodle still seems to work after this commit!
2009-05-06 08:29:22 +00:00
dongsheng
6588e77e0b "MDL-14651, remove a useless capability from chat module" 2009-05-05 09:19:47 +00:00
stronk7
74c288a100 MDL-18577 drop enums support - step2: enums out from install.xml files 2009-05-01 14:07:43 +00:00
stronk7
2a88f626f7 MDL-18577 drop enums support - step2: enums out from editor, dbmanager and all upgrade scripts. 2009-05-01 01:19:16 +00:00
skodak
9b010a102e MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:33:08 +00:00
skodak
dc5c2bd9eb MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:17:21 +00:00
skodak
42f103be4c MDL-18910 moving modedit features to modname_supports() 2009-04-21 08:57:20 +00:00
skodak
65e7c870c1 MDL-18910 normalised module intro and introformat 2009-04-20 18:39:24 +00:00
fmarier
316914bf6e MDL-17037 ran all GIF images through gifsicle and PNG through optipng 2009-04-05 23:33:00 +00:00
dongsheng
c19df282a6 "CHAT/MDL-14949, remove mod/chat:talk capability and check chat and readlog capabilities respectively, merged and modified from 1.9" 2009-03-11 02:34:20 +00:00
dongsheng
5b4773c2b7 "CHAT/MDL-14651, move down DOCTYPE declaration" 2009-03-04 07:15:18 +00:00
skodak
0cb93a7e45 MDL-17427 another round of refactoring of upgrade related functions - this should be final now I hope ;-) 2009-01-29 19:58:47 +00:00
skodak
56949c17de MDL-14992 refactored use of session_write_close() 2009-01-17 15:25:08 +00:00
dongsheng
970470e72e "MDL-14949, reverse changes to permission which can cause problems, merged from 1.9" 2009-01-14 04:36:15 +00:00
skodak
9c82ff2acd MDL-17457 migrated all modules to new db/install.php; added upgrade.txt file for devs converting contrib modules 2009-01-12 21:13:28 +00:00
tjhunt
19f5b2dbee accesslib: MDL-17626 delete the context whenever a block is deleted. This includes a new helper function blocks_delete_all_on_page. 2009-01-09 06:16:36 +00:00
skodak
656be89301 MDL-14123 Full IPv6 support - updating all db fields to theoretical 45 char limit 2009-01-06 18:14:28 +00:00
skodak
6bf25708b6 DML 2.0 regression 2009-01-05 23:42:51 +00:00
skodak
7fdefb1482 MDL-17775 Chat ajax update.php not using sessions anymore 2009-01-03 13:03:05 +00:00
skodak
93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
skodak
973d2660e6 MDL-16613 sesskey cleanup 2009-01-02 10:51:26 +00:00
skodak
d4a1fcaf11 MDL-16613 sesskey cleanup 2009-01-02 10:36:25 +00:00
skodak
d1aa1e4855 MDL-17758 fixed hardcoded /admin/ links 2009-01-01 14:25:29 +00:00
dongsheng
8fcffd7032 "MDL-14651, hide input box when user doesn't have chat:talk capability" 2008-12-16 05:04:56 +00:00