246 Commits

Author SHA1 Message Date
samhemelryk
474f6bfed9 core MDL-19799 Added set_url calls and replaced deprecated functions 2009-10-15 03:43:28 +00:00
samhemelryk
393f161545 core MDL-19786 Updated OUTPUT->header calls that were still using arguments 2009-09-08 02:23:00 +00:00
samhemelryk
7d2a049292 navigation MDL-14632 Very significant navigation commit
This patch introduces two new blocks global_navigation_tree and settings_navigation_tree
both of which have been designed to make full use of the new navigation objects available through
the $PAGE object.
Bulk of this code is within lib/navigationlib.php
2009-08-28 08:47:31 +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
20486a5a21 MDL-19787 Converted print_box* to $OUTPUT->box* 2009-08-10 04:53:22 +00:00
nicolasconnault
d81b05e701 MDL-19799 Converted calls to popup_form() 2009-08-10 03:39:21 +00:00
nicolasconnault
706b82dade MDL-19799 Upgraded calls to print_heading_block 2009-08-06 01:26:12 +00:00
nicolasconnault
f8065dd287 MDL-19756 Migrated the following functions from weblib to outputlib:
1. button_to_popup_window
2. link_to_popup_window
3. print_single_button
4. print_spacer
5. print_file_picture (deprecated)
6. print_user_picture
7. print_png (deprecated)
8. helpbutton
9. doclink
10. print_paging_bar
11. notice_yesno
2009-07-27 10:33:00 +00:00
tjhunt
5e39d7aa09 upgrade: MDL-19763 Improve the redirect that forces a DB upgrade when there are major changes
Also fix redirect, so 303 redirects don't need to fully initialise $OUTPUT.
2009-07-10 08:44:01 +00:00
skodak
80b3328712 MDL-19010 fixed redirect at main page if upgrade required, otherwise it would end with exception due to DB structure changes 2009-07-10 08:03:06 +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
4096752d1d MDL-19690 - first 53 $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:06:39 +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
4fe2250a1f MDL-19352 maintenance mode reiplemented 2009-05-31 14:42:29 +00:00
tjhunt
bb46a4fa2a blocklib: MDL-19010 refactor blocklib to use block_manager to get the blocks for rendering 2009-05-06 09:15:05 +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
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
82611d8d33 moodle_page: MDL-12212 ->docspath 2009-05-06 08:48:13 +00:00
stronk7
b1c83b2c58 MDL-18940 meta description in main page - render multilang summary properly. Merged from 19_STABLE 2009-04-25 21:20:45 +00:00
tjhunt
edc0c49332 file api: MDL-18754 improve the names of some functions.
The new names are documented on
http://docs.moodle.org/en/Development:Convert_Draftarea_Files
2009-04-01 04:34:58 +00:00
dongsheng
6e5e0c9363 "FORUM/MDL-14860, declare subtext varible before use it, merged from 1.9" 2009-03-03 01:03:56 +00:00
dongsheng
730535cb0c "FORUM/MDL-14860, hide unsubscribe link if users are not allowed to unsubscribe from this forum, merged from 1.9" 2009-02-25 05:27:21 +00:00
skodak
644d506ac1 MDL-16698 towards new general editor element + converted course section summaries 2009-02-17 16:18:05 +00:00
skodak
88582df496 MDL-17458 refactored guest and admin user creation + refactored roles install + added protection for installation hijacking + added reliable session test right before editting of admin account 2009-01-29 22:54:41 +00:00
skodak
b9fb71030f MDL-17942 reimplemented detection of mysql max_packet_size problems 2009-01-19 08:03:55 +00:00
skodak
17d9348991 MDL-14992 towards better db sessions 2009-01-16 20:43:17 +00:00
skodak
18818abf4c MDL-17458 $CFG->rolesactive cleanup + other cleanup in upgrade code 2009-01-15 22:09:57 +00:00
skodak
3e46c66a5d MDL-17427 - removed old file based logging from ugprade - going to add new upgrade logging later 2009-01-11 10:18:53 +00:00
skodak
0ad6b20cb2 MDL-17754 session code refactoring; removing test cookie which will be replaced by wwwroot checks 2009-01-02 13:42:43 +00:00
skodak
973d2660e6 MDL-16613 sesskey cleanup 2009-01-02 10:51:26 +00:00
Francois Marier
6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
8618fd2aeb MDL-14679 converted some delete_records 2008-06-02 21:52:27 +00:00
skodak
c7da43571b MDL-14679 converted some count_records 2008-06-02 21:47:31 +00:00
skodak
e3c7f155d8 MDL-14978 removed obsoleted isadmin() 2008-05-25 10:08:05 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
dongsheng
33aa5723ca "MDL-14129, fix print_error call" 2008-04-30 04:09:29 +00:00
stronk7
341b5ed236 Finally fixed version of lastaccess hadling.
Moved from add_to_log() to require_login(). MDL-14272 ; merged from 19_STABLE
2008-04-15 21:46:04 +00:00
skodak
90f4745c22 MDL-14113 patch for multiple issues - see tracker for subtasks; merged from MOODLE_19_STABLE 2008-04-13 19:15:02 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
moodler
0768842c17 Just testing a slight modification to the cvs mail formats 2007-12-28 06:48:31 +00:00
skodak
220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +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
nfreear
317d5ddcb3 Fix for reopened bug MDL-7878, "Link identification and skipping" - includes site and course index.php. 2007-10-22 09:21:11 +00:00
nfreear
0d0afd968d MDL-11436, Encapsulate "accesshide" HTML class in function, and use. Merged. 2007-09-25 11:34:40 +00:00
moodler
5f0314ab24 Make the accesslib upgrade trigger a redirect 2007-09-20 06:49:52 +00:00
martinlanghoff
5f6b9c09b7 index.php: drop unused $hidesitecourse parameter when calling print_courses()
And this is the only user of print_courses() that mentions it
explicitly. Other callers have been checked and don't need or use the
sitecourse.
2007-09-19 07:51:02 +00:00
martinlanghoff
f7016edcb9 index: use $PAGE->edit_course_allowed() instead of editcourseallowed()
$PAGE->edit_course_allowed() has been reworked and is faster/smarter
than editcourseallowed(). It can also be made more specific on a
per-page-type basis.
2007-09-19 07:47:49 +00:00
martinlanghoff
f667ecfe3d accesslib 1.9 upgrade: homepage check to see if we need to upgrade
This check adds a DB query _only when the upgrade is pending_. So
for a few minutes at the most.
2007-09-19 07:45:45 +00:00