Commit graph

215 commits

Author SHA1 Message Date
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
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
samhemelryk
9d0cffa554 moddata MDL-16706 Removed inline scripts in mod data and added data.js 2009-06-22 03:16:25 +00:00
stronk7
5e1f1a6e61 MDL-17327 data module - improve adv. search by avoiding all the extra joins when getting max number of records ; merged from 19_STABLE 2009-06-04 10:31:12 +00:00
tjhunt
4e1132a8c5 forum: MDL-19119 missing requires now course/lib.php is not included everywhere.
Put in most of the obvious missing require_once($CFG->libdir . '/completionlib.php');
2009-05-08 09:00:41 +00:00
stronk7
aa4c6b68b5 MDL-14463 search/order - make it cross-db + delete unused column from query ; merged from 19_STABLE 2009-05-06 17:25:26 +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
3681f9a953 pagelib: MDL-12212 eliminate data_page 2009-05-06 09:26:46 +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
skodak
b4950d9649 MDL-18910 full support for module intro editor with embedded images 2009-04-22 04:31:54 +00:00
skodak
63b0256797 MDL-18910 normalised module intro and introformat 2009-04-20 18:51:37 +00:00
dongsheng
2d9b3ef2d7 "DATA/MDL-18136, change to moodle coding style and fix incorrect parameter of data_get_field_from_id" 2009-03-25 01:49:52 +00:00
dongsheng
f77569e1ad "DATA/MDL-18136, fix pagination in data mod, merged from 1.9" 2009-03-11 04:22:40 +00:00
jerome
c861f079e4 database: MDL-16999 fix "Required Entries" and "Required Entries before viewing" settings. Display a warning message during upgrade process if the fields were set previously (partially merged from 1.9) 2008-11-21 07:19:00 +00:00
stronk7
32d799c683 MDL-15425 Coding style: Change some logical operator uses. Thanks Robert! Merged from 19_STABLE 2008-11-18 00:10:13 +00:00
robertall
d53e5129f8 [MDL-15425] Search Filters are too persistant. Merged from MOODLE_19_STABLE. 2008-10-24 20:17:10 +00:00
skodak
8429163db9 MDL-16493 file and picture element migrated; waiting for file picker to mature, presets not finished yet 2008-09-14 08:22:44 +00:00
sam_marshall
18a2a0cb3a MDL-15498: Completion: added support for basic completion-on-view and on grade (where applicable) to assignment, choice, data, glossary, lesson, and resource. 2008-07-29 17:22:47 +00:00
moodler
4ea69f88f3 MDL-15702 SQL efficiency fix Merged from 1.9 2008-07-18 07:52:36 +00:00
dongsheng
29c1bb159a "MDL-14129, fix print_error" 2008-06-25 14:52:39 +00:00
skodak
245ac55791 MDL-14679 last forgotten bits of dml conversion 2008-06-09 19:48:24 +00:00
skodak
e348793639 MDL-15106 towards data mod dml conversion 2008-06-06 08:39:44 +00:00
skodak
3223bc9e9b MDL-15106 towards data mod dml conversion 2008-06-06 07:36:17 +00:00
skodak
3239b0104e MDL-14458 - optgroups Fields and Other in search menu; removed unused search code, html labels, added option to sort by time modified; merged from MOODLE_19_STABLE 2008-04-21 14:17:02 +00:00
skodak
ea6073bb48 MDL-13025 added data intro text formatting without cleaning - manage activity cap already marked with XSS risk; merged from MOODLE_19_STABLE 2008-04-21 13:26:08 +00:00
skodak
029cf8469b MDL-14018 fixed ##more## icon regression, thanks Robert Allerstorfer for all the testing!; merged from MOODLE_19_STABLE 2008-04-19 21:02:10 +00:00
skodak
bb5740f4c8 MDL-14424 - approval icon is bigger again, it is possible to sort by Approved status now; merged from MOODLE_19_STABLE 2008-04-19 20:48:48 +00:00
skodak
eeeb4f2ad9 MDL-12089 several search related problems fixed in data module; merged from MOODLE_19_STABLE 2008-04-19 15:33:06 +00:00
dongsheng
046dd7dcf6 MDL-11511, revert the changes, see tracker 2008-04-17 08:11:23 +00:00
dongsheng
f752e2fd72 MDL-11511, two new caps are introduced, see tracker, merged from MOODLE_19_STABLE 2008-04-17 05:42:13 +00:00
skodak
026d562efc MDL-9907 searching ilike pg compatibility fix; merged from MOODLE_19_STABLE 2008-04-16 18:57:15 +00:00
skodak
6a5357f492 MDL-14018 fixed searching when date order selected; merged from MODOLE_19_STABLE 2008-04-16 15:09:21 +00:00
skodak
fb9d1e0942 MDL-14018 fixed searching when date order selected; merged from MODOLE_19_STABLE 2008-04-16 15:08:03 +00:00
skodak
832123e166 MDL-14389 fixed adv search flag storage; merged from MOODLE_19_STABLE 2008-04-16 14:09:15 +00:00
skodak
de8ff5813d MDL-9907 searching/sorting by author name fixed when paging, MDL-14389 more transition fixes; merged from MOODLE_19_STABLE 2008-04-16 13:54:01 +00:00
skodak
69c0a60994 MDL-14389 fixed transition from advanced to simple view if multiple fields used; merged from MOODLE_19_STABLE 2008-04-16 13:32:14 +00:00
skodak
714bec7418 MDL-9907 searching/sorting by author name; merged from MOODLE_19_STABLE 2008-04-16 11:51:50 +00:00
dongsheng
c95034f28c MDL-9758, add 2 new tags, see tracker. 2008-04-11 02:34:11 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
nicolasconnault
013a8774a0 MDL-13397 Fixed the language string. 2008-03-31 06:15:51 +00:00
nicolasconnault
87518137bf MDL-13397 Implemented the requiredentries parameter (previously not implemented). This includes a warning message and an SQL restriction on entries fetched for view.php; merging from MOODLE_19_STABLE 2008-02-12 16:04:57 +00:00
nicolasconnault
450a87c566 MDL-13440 fixed typo; merging from 1.9 2008-02-12 13:46:57 +00:00
poltawski
ae082716c7 MDL-13255 - hidden activity capability check was wrong, but require_login()
handles it for us when passsed $cm
2008-01-30 20:58: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
tjhunt
38e179a4ed MDL-11741 - Convert core modules to take advantage of recent improvements to build_navigation.
This check-in removes about 400 lines of code. I hope I have not screwed anything up. I would be grateful if people could review this change, and keep an eye on the navigation bar in modules.

Any navigation bar bugs you find in the near future, feel free to file them in the tracker and assign them to me. Thanks.

If not to many problems are found, I think I would like to backport this to 1.9 stable, but I am not sure that is a good idea. Opinions to the General Developer Forum please. I am about to start a thread there.
2007-10-12 15:55:49 +00:00
skodak
8e1ec6be58 MDL-11298 use textlib_get_instance() instead of new textlib() 2007-09-16 18:49:41 +00:00
Martin Langhoff
13534ef716 cvsimport fixups 2007-08-29 13:10:11 +12:00
mattc-catalyst
01e3838853 MDL-9473: Initialise navlinks array before use
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:55:24 +00:00
mattc-catalyst
3b27b0fe21 MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00