2394 Commits

Author SHA1 Message Date
nicolasconnault
1451dac31e MDL-19794 Removed a test help icon at the bottom of course/view.php 2009-08-08 11:46:43 +00:00
nicolasconnault
64e12bb710 MDL-19794 Converting calls to popup_form() 2009-08-08 09:31:01 +00:00
nicolasconnault
2f48819b8e MDL-19794 Added global $OUTPUT to print_courses() 2009-08-07 07:18:01 +00:00
nicolasconnault
176e842015 MDL-19794 Converted calls to print_paging_bar 2009-08-07 00:27:42 +00:00
nicolasconnault
d880e0f5e2 MDL-19794 Converted all print_footer() calls 2009-08-06 14:23:49 +00:00
nicolasconnault
d60c112435 MDL-19794 Converted all print_footer() calls 2009-08-06 14:10:33 +00:00
nicolasconnault
7c5286cd85 MDL-19794 Migrated calls to print_heading 2009-08-06 08:15:43 +00:00
nicolasconnault
bb0b907598 MDL-19794 Migrated calls to close_window_button() 2009-08-06 02:54:45 +00:00
nicolasconnault
c0d8e936ef MDL-19799 Migrated calls to print_spacer() 2009-08-06 02:24:31 +00:00
nicolasconnault
008350b585 MDL-19799 Upgraded calls to print_headline 2009-08-06 01:38:17 +00:00
nicolasconnault
27ca34af62 MDL-19794 Upgraded calls to print_heading_block 2009-08-06 01:25:52 +00:00
nicolasconnault
0b280bbaa0 MDL-19794 Upgraded calls to choose_from_menu_nested 2009-08-06 00:34:48 +00:00
nicolasconnault
c351150fca MDL-19756 MDL-19825 MDL-19823 MDL-19794 Deprecated update_tag_button, update_categories_search_button and print_user, and updated a few pages that depended on the now deprecated functions 2009-08-05 02:03:50 +00:00
moodler
17f950eb0d category blocks MDL-19398 Set the proper context on the course category pages so blocks work properly 2009-08-04 09:33:43 +00:00
nicolasconnault
0affac4d65 MDL-19756 Fixed regression in popup_form() 2009-08-04 09:09:06 +00:00
nicolasconnault
49c8c8d27e MDL-19976 Refactored select_menu() into select(), now supporting menu, radio and checkbox rendering. Added radio() and checkbox() functions. 2009-08-04 02:05:32 +00:00
skodak
0a127169fe MDL17980 reverting last commit - other devs agreed, to be explained in tracker 2009-08-03 07:35:41 +00:00
peterbulmer
1b509b3699 MDL17980 mnet improvements
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
nicolasconnault
74623e0a3a MDL-19756 Improved API of OUTPUT->confirm() 2009-07-30 06:09:45 +00:00
nicolasconnault
69e80c0502 MDL-19794 Updated topic and course format's use of popup_form for temporarily working with new outputlib code. Will eventually need proper upgrading. 2009-07-30 03:48:08 +00:00
nicolasconnault
6c843bbcde MDL-19794 Migrated choose_from_menu to the new $OUTPUT->select_menu() function 2009-07-28 09:36:10 +00:00
tjhunt
680a65a0cc course MDL-19794: Fix more initialisation order problems 2009-07-28 04:16:59 +00:00
tjhunt
a102baea51 course MDL-19794: Fix initialisation order problems on course/category.php. 2009-07-28 03:12:04 +00:00
tjhunt
5048e0349c course MDL-19794: Fix initialisation order problems on course/index.php. 2009-07-28 03:03:35 +00:00
nicolasconnault
8e127eb38e MDL-19756 Migrating choose_from_menu to outputlib 2009-07-28 02:45:13 +00:00
tjhunt
ebff477995 MDL-19882 Add missing require_login-s before require_capability. 2009-07-20 08:57:18 +00:00
tjhunt
a8ecfa4d5b MDL-19077: Fix some initialisation order issues on the course/category management pages 2009-07-20 03:28:50 +00:00
tjhunt
7b5bd0602b formslib: moodleform_mod needs to be abstract too.
(See one of the commits I made yesterday.)
2009-07-17 03:40:40 +00:00
sam_marshall
984baa77e2 MDL-19827: Completioninfo bugfix 2009-07-15 14:19:24 +00:00
skodak
308240b164 MDL-19785 temp fix for undefined completioninfo 2009-07-15 08:11:28 +00:00
sam_marshall
905b1de634 MDL-19692: Completion tracking help icon enhancements 2009-07-14 14:00:34 +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
405efa5f95 filelib MDL-19707 Modified file_extension_icon to use extisting function mimeinfo and reverted
two uses of file_extension_icon in course-lib that were incorrect
2009-07-08 01:52: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
samhemelryk
0578e8eb38 course-modedit MDL-16089 Fixed bug caused by recent changes, unable to edit resources 2009-07-07 06:05:39 +00:00
tjhunt
1fb3d044fd Re-order the code, so we process the actions before we do any output. That is the right order anyway, and avoids the problem where require_capability after output is started leads to an exception being thrown. 2009-07-04 14:23:49 +00:00
tjhunt
024d4aafbf XHTML strict. 2009-07-04 13:36:19 +00:00
skodak
9a105989fe MDL-16089 adding easier access to current module instance data in modedit forms 2009-07-03 13:33:03 +00:00
skodak
f80ee89145 MDL-19690 fixed some icon conversion 2009-07-03 09:59:00 +00:00
tjhunt
666e84584c MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 04:23:05 +00:00
tjhunt
42d5737a94 MDL-19690 fix some breakage. 2009-07-02 12:35:13 +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
6b608f8f50 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:53:31 +00:00
tjhunt
4096752d1d MDL-19690 - first 53 $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:06:39 +00:00
sam_marshall
e3568fde9c MDL-19692: Improvement to help icon for completion tickboxes, based on user testing 2009-07-02 09:18:26 +00:00
nicolasconnault
9ee67e60b4 Removed redundant require_capability and require_login, causing havoc on new module page. 2009-07-02 07:49:12 +00:00
nicolasconnault
57a29a9735 Removed useless require_capability, causing havoc on new module page. 2009-07-02 07:44:56 +00:00
samhemelryk
82a91b718d course reports MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 04:14:41 +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