1291 Commits

Author SHA1 Message Date
tjhunt
ae96b517a2 MDL-19696 & MDL-16706 refactor sam's redirect changes, so they can work during initial install. 2009-07-03 09:03:29 +00:00
tjhunt
3e2e421922 XHTML strict 2009-07-03 07:17:41 +00:00
tjhunt
a28c92539e MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:38:41 +00:00
tjhunt
ddedf979b4 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:19:25 +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
73511be761 MDL-19690 - 4 more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:12:19 +00:00
samhemelryk
e1524dbe5c weblib MDL-16706 Elimate inline scripts, replaced with PAGE methods 2009-07-02 03:47:05 +00:00
tjhunt
b70094743a themes: MDL-19077 change how the theme is initialised and CSS is served.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

$THEME is now initialised at the same time as $OUTPUT. Old functions like
theme_setup are deprecated in favour of methods on $PAGE. There is a new
theme_config class in outputlib.php that deals with loading the theme config.php file.

CSS used to be served by themes styles.php files calling a function in weblib.php.
Now it works by each theme's styles.php file doing
$themename = basename(dirname(__FILE__));
require_once(dirname(__FILE__) . '/../../theme/styles.php');
which is less code to be copied into each theme. (Old-style styles.php files still
work thanks to some code in deprecatedlib.php.)

Admin UI for choosing a theme cleaned up.

A couple of theme-specific hard-coded hacks like $THEME->cssconstants and
$THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction
hook. See examples at the end of outputlib.php

Also:
* Fix setting the theme in the URL, which seems to have been broken since 1.9.
* Fix up errors on a few pages caused by the new initialisation order.
* MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE.
* httpsrequired() from moodlelib.php moved to $PAGE->https_required().
* Move has_started() method to the renderer base class.
* Further fixes to display of early errors.
* Remove print_header/footer_old from weblib. I did not mean to commit them before.
2009-07-01 05:54:26 +00:00
dongsheng
96705c332a "MDL-19077, pixpath is broken, use initialise_deprecated_cfg_pixpath() as a temporary fix" 2009-07-01 04:11:52 +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
e877532055 lib MDL-19077 Created output redirect method and implemented against weblib redirect method
This resolves the meta bug that was used when redirecting with a delay
Thanks Tim for the help with this one
2009-06-29 07:19:05 +00:00
tjhunt
c84a2dbea2 MDL-19077 - change how $OUTPUT is initialised.
Please read the comment at the top of bootstrap_renderer in setuplib.php
2009-06-29 05:00:45 +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
skodak
73735edf48 MDL-16438 fixed regression during recent plugin centralisation effort 2009-06-25 09:14:16 +00:00
skodak
ff5fe31160 MDL-19580 cleanup of require css and js filepicker code 2009-06-24 22:34:29 +00:00
tjhunt
31a9987770 install: MDL-19610 encapsulate empty($CFG->rolesactive) checks in a during_initial_install() function. 2009-06-24 09:17:56 +00:00
tjhunt
8954245a1b themes: MDL-19077 start implementing moodle_core_renderer
Only a couple of methods implemented. Please review the API and
tell me if you are not happy with the direction I am taking.
2009-06-23 10:41:22 +00:00
sam_marshall
a5d75d2af1 MDL-19598: Error in logic that should hide 'skip link' when block doesn't have title 2009-06-22 17:09:32 +00:00
nicolasconnault
31c2087d1e MDL-19566 Refactored some of the more complex regular expressions in their own function and added unit tests for them. 2009-06-22 06:07:56 +00:00
nicolasconnault
6dbcaceef1 MDL-19418 Replaced ereg* by preg* 2009-06-22 01:22:37 +00:00
skodak
69429650c4 MDL-19211, MDL-19544 improved editor embedding, media and dragmath enabled only when moodle configuration and current user permissions allow it to work 100% 2009-06-20 11:00:40 +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
tjhunt
5085a59ad7 javascript: MDL-16695 print_footer('empty'); I had the wrong type of quotes.
Thanks to Dongsheng for noticing.
2009-06-19 08:02:11 +00:00
tjhunt
a978bddea3 javascript: MDL-16695 print_footer('empty'); was not printing the necessary end of page code. 2009-06-17 10:29:42 +00:00
moodler
b03fc39253 Just some whitespace fixes 2009-06-17 08:50:16 +00:00
skodak
13a220cfb8 MDL-19500 improved editor embedding 2009-06-14 21:35:07 +00:00
skodak
44f27e4123 MDL-14990 pritning of backtrace does not rely on $CFG any more and can be used from destructors 2009-06-13 16:07:14 +00:00
skodak
b4154c2d64 MDL-14990 implemented query loggin in new native DML drivers 2009-06-13 15:59:55 +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
samhemelryk
9985cbc4fe breadcrumb MDL-14133 One function missed during fix, got it this time 2009-06-09 06:31:20 +00:00
skodak
4fe2250a1f MDL-19352 maintenance mode reiplemented 2009-05-31 14:42:29 +00:00
skodak
1c39033f29 MDL-15249 error status codes for exceptions and notices 2009-05-27 08:34:04 +00:00
skodak
3316fe24d5 MDL-15249 more cleanup and refactoring - towards cli upgrade 2009-05-26 17:44:25 +00:00
samhemelryk
b868d3d9cf lib MDL-19236 Added boilerplates and copyrights 2009-05-26 06:26:11 +00:00
skodak
258d532221 MDL-15249 preparation for new cli installer + coding style changes 2009-05-25 17:33:28 +00:00
samhemelryk
449611af98 weblib.php MDL-19236 added phpdocs and copyrights 2009-05-22 03:26:07 +00:00
fmarier
ea2678d8b9 MDL-17542 lib/html2text: update to latest upstream version (r2374)
from http://trac.roundcube.net/log/trunk/roundcubemail/program/lib/html2text.php
2009-05-22 02:10:22 +00:00
skodak
5ca3c8386f MDL-19184, MDL-19212 - refactoring, cleanup and improvements in text editors support; localization support is not finished, inline docs incomplete, expect more commits soon 2009-05-16 20:53:21 +00:00
jerome
2a274f2a93 authentication MDL-18273 Custom Authentication Plugin title can be retrieved from specific language file, merged from 19 2009-05-14 07:03:27 +00:00
tjhunt
7130fb212c blocklib: MDL-19010 once again you can add blocks, at least on the coures page. 2009-05-08 03:30:58 +00:00
tjhunt
5d3e9d9fe3 moodle_page: MDL-12212 remove deprecated calls from course/view.php and page_course::print_header 2009-05-06 09:19:46 +00:00
tjhunt
08eab89703 blocklib: MDL-19010 add block and get_blocks methods 2009-05-06 09:14:42 +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
830dd6e9cd moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting 2009-05-06 08:59:29 +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
4912752214 fix remove_params 2009-05-06 08:51:23 +00:00
tjhunt
75781f879c moodle_page: MDL-12212 ->url and cleanup init of $FULLME, etc. 2009-05-06 08:50:32 +00:00