72 Commits

Author SHA1 Message Date
Petr Skoda
a9637e7df4 MDL-14679 fixed a lot more old style uses of insert_record() 2010-09-03 17:47:41 +00:00
Sam Hemelryk
4766a50c19 navigation MDL-22425 Restructured navigation for the nth time plus performance tweaking and course display limit 2010-05-13 09:57:43 +00:00
Martin Dougiamas
bfe6fe455e MDL-19124 Fix up the headers with strings 2010-05-05 05:58:56 +00:00
Martin Dougiamas
bed59ff63e MDL-19124 Removed some test code 2010-05-05 05:54:26 +00:00
Martin Dougiamas
b8fa1826a2 MDL-19124 Removed the my_syspage_block_manager hacks from sys pages and completed the 0->null migration in userid 2010-05-05 05:52:10 +00:00
Martin Dougiamas
03d9401e7d My Moodle MDL-19124 New version of My Moodle, User profiles and Course profiles, all with block support
Thanks very much to Remote Learner Canada, especially Hubert Chathi and Olav Jordan, for their work on the bulk of this code, and also Mike Churchward for supporting them.  I worked on it after that (actually simplified it by removing a feature temporarily: multiple pages) to bring it more to what I was imagining, and to provide a base to build on and get all the navigation perfect.

There's still work to do.  Some blocks don't quite work as expected, and some of the code still needs upgrading to bring it fully into line with 2.0.  We also could use a much better course overview block and better CSS styling of the profile pages.  But it's definitely more usable this it was, I think.
2010-05-04 13:04:35 +00:00
Sam Hemelryk
3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
5c2ed7e215 MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements 2010-01-03 15:46:14 +00:00
Petr Skoda
244a32c617 MDL-21119 lang menu and login info now handled by themes 2009-12-29 17:26:29 +00:00
Petr Skoda
191b267bcd MDL-20790 more page layouts -see base theme for full list; also added new css body class for describing current layout; base layout is now default for beter BC; require_login() now sets 'incourse' layout automatically 2009-12-27 12:02:04 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +00:00
Petr Skoda
1d42298086 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:22:45 +00:00
ericmerrill
e84a97b83c My Moodle: MDL-19089 Course limit for My Moodle not propperly obeyed. Fixing so that it obeys mycoursesperpage and propperly displays '...' 2009-10-07 16:30:07 +00:00
samhemelryk
1a198dde7d core MDL-19791 Replaced deprecated functions, added set_url calls 2009-09-25 06:17:38 +00:00
samhemelryk
96db467adb lib MDL-19799 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents 2009-09-08 01:39:12 +00:00
samhemelryk
609adb68d4 lib MDL-19799 Upgraded print_header and build_navigation calls to OUTPUT/PAGE equivilants 2009-09-04 07:24:58 +00:00
nicolasconnault
642816a60c MDL-19799 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:50:50 +00:00
nicolasconnault
7b1f2c829f MDL-19756 Renamed moodle_select to html_select for better API consistency 2009-08-10 08:38:45 +00:00
nicolasconnault
c7a2fd970e MDL-19799 Converted print_box* to $OUTPUT->box* 2009-08-10 05:50:28 +00:00
nicolasconnault
d81b05e701 MDL-19799 Converted calls to popup_form() 2009-08-10 03:39:21 +00:00
nicolasconnault
7e0d66753e MDL-19799 Converted all print_footer() calls 2009-08-06 14:21:34 +00:00
nicolasconnault
7527a2f08a MDL-19756 Deprecated update_mymoodle_icon() and upgraded my/index.php with new output code 2009-08-05 00:00:20 +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
b7b2d0f37d moodle_page: MDL-12212 improve comments and add some work-in-progress warnings 2009-05-06 09:29:05 +00:00
tjhunt
1b6b940022 moodle_page: MDL-12212 eliminate page_my_moodle 2009-05-06 09:23:37 +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
cfcfb9f3d0 moodle_page: MDL-12212 kill legacy page_allows_editing implementations 2009-05-06 09:02:48 +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
4873f5f709 moodle_page: MDL-12212 Eliminate legacy blocks_ methods
moving blocks will now be broken until the new bockslib is done
2009-05-06 08:53:14 +00:00
tjhunt
d529807a65 moodle_page: MDL-12212 kill $CFG->pagepath (use $PAGE->set_pagetype)
deprecate $PAGE->get_format_name (use $PAGE->pagetype)
deprecate page_id_and_class (use $PAGE->pagetype)
2009-05-06 08:38:55 +00:00
tjhunt
f230ce19ea moodle_page: MDL-12212 implement ->pagetype 2009-05-06 08:34:32 +00:00
skodak
59a82ee1d8 MDL-13224 fixed coding style 2009-04-07 07:45:03 +00:00
dongsheng
8b8ff6ff4c "MDL-13224, convert type of courses limit, everything coming from database is string, merged from 1.9" 2009-04-02 02:49:54 +00:00
dongsheng
497bad9012 "MDL-13224, select how many courses can be shown in mymoodle page" 2009-04-01 07:38:32 +00:00
dongsheng
ebb1a1e847 "MDL-13224, select how many courses can be shown in mymoodle page" 2009-04-01 07:32:57 +00:00
skodak
93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
mudrd8mz
ebebf56bda MDL-16441 Display language selection drop-down list at My Moodle page. Merged from 1.9 2008-09-15 11:31:53 +00:00
dongsheng
12d0687748 "MDL-14460, fix get_context_instance, merged from MOODLE_19_STABLE" 2008-05-01 06:07:24 +00:00
dongsheng
0a5a575579 MDL-14091, fix myMoodle courses list sort order, Thanks Iñaki 2008-04-09 02:46:55 +00:00
skodak
9f7f1a74a0 MDL-12221 custom themes revisited - implemented container concept; merged from MOODLE_19_STABLE 2007-11-23 16:49:51 +00:00
nicolasconnault
8082d195a5 MDL-11865 upgraded pagelib to using build_navigation() 2007-11-01 08:59:48 +00:00
moodler
355bf90704 Merged the flexible column patch from Urs (1.11.2.3) to HEAD 2007-10-10 14:31:27 +00:00
stronk7
374bb2b6c5 Now the my page retrieves all the fields (modinfo included) from the course,
so print_overview() calls are working again.  MDL-10232

Merged from MOODLE_18_STABLE
2007-07-23 15:52:19 +00:00
jmg324
282c169549 MDL-9802 added my:manageblocks capability so admins can define whether users can add/remove blocks from myMoodle page 2007-05-18 11:57:46 +00:00
urs_hunkler
8986786c60 added clearfix to middle-column wrapper div against collapsing 2007-05-09 15:44:50 +00:00
urs_hunkler
eb1ed65076 added/changed custom corners lib and calls to add the necessary divs 2007-05-09 15:34:14 +00:00
martinlanghoff
0a66585b3d get_my_courses() callers update - check of the $fields param - pass null instead
The default way to call get_my_courses() is now to pass null in the $fields
param to get the (cached copy) of the useful fields. Cuts down enormously
on DB traffic, memory footprint, and session size.
2007-05-06 05:32:40 +00:00