60 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
3179b0006a blocklib: MDL-19010 Fix blocks that were relying on ->instance in an unfortunate way 2009-05-06 09:15:33 +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
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
31940ba622 moodle_page: MDL-12212 remove code in legacy page types that stores a course record 2009-05-06 08:35:39 +00:00
dongsheng
771dc7b298 "MDL-14129, fix error() in moodle2" 2008-12-12 05:45:43 +00:00
skodak
45df7de3ad MDL-14679 towards /blog conversion 2008-06-01 13:48:12 +00:00
dongsheng
fae11dca56 MDL-14129, fix print_error call 2008-04-24 02:24:49 +00:00
moodler
dde73b9e69 Merged MDL-8566 from 1.9 2008-04-22 05:56:21 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
scyrma
3d535996db MDL-13404 - Merge from 1.9 (re-commit, including missing file) 2008-02-25 01:58:17 +00:00
skodak
bb06244703 MDL-13404 reverted - missing file and other minor problems 2008-02-22 19:53:48 +00:00
scyrma
db32b054d1 MDL-13404 - Merge from 1.9 2008-02-22 10:25:36 +00:00
tjhunt
2647f80ecd MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message - and there were also instances in blog. 2008-01-09 17:23:47 +00:00
toyomoyo
69882467d4 fixing duplicate header 2007-11-30 01:16:26 +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
toyomoyo
0f106650ee merged fix for MDL-11709, print_header() warning for blogs 2007-10-11 08:14:13 +00:00
toyomoyo
bd1f4559f7 MDL-10956, convert blogs to use the same tags (and convert old tags) 2007-08-27 08:46:00 +00:00
toyomoyo
fc3ebc9d43 reversing previous change as it breaks page layout 2007-08-21 05:52:28 +00:00
toyomoyo
bf2956a9ba merged fix for MDL-9777, correcting usage of layout-table 2007-08-21 05:48:18 +00:00
nicolasconnault
e295df447f MDL-10870 All files updated to new build_navigation() method. 2007-08-17 11:18:58 +00:00
urs_hunkler
939c95479b added/changed custom corners lib and calls to add the necessary divs 2007-05-09 14:39:13 +00:00
poltawski
a044c05ddb MDL-9742 - changed tabs to spaces in a few places where there are one
or two
2007-05-08 15:07:25 +00:00
urs_hunkler
c16ba031ac merged from 1.8 - removed commented old block widths definitions 2007-03-07 09:49:56 +00:00
toyomoyo
3d6d244728 fix for MDL-5829, blocks on blog page can not be minimized 2007-02-15 03:21:05 +00:00
toyomoyo
fbe31d22d1 xhtml validation fixes for MDL-8425 2007-02-06 08:24:37 +00:00
urs_hunkler
c15816ce95 'set sideblock left and right min/max width with values set in theme/config.php' 2007-01-28 17:11:05 +00:00
Martin Langhoff
f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
toyomoyo
649ee916d1 merged fix for MDL-7140 duplicate course name in header 2006-11-02 03:17:44 +00:00
toyomoyo
47b87873e0 merged fix for MDL-7302, tagid lost when turning editting on and off 2006-10-31 08:50:55 +00:00
skodak
e96f2a77db Code cleanup in blog.
MDL-6805  Fixed redirects in blog; MDL-6807  partially fixed use of capabilitites - it needs more testing and possibly minor fixing, the commit contains other blog bugfixes too. In general it should work exactly the same. The introduction of roles makes proper setup more difficult :-(

Expect some more fixes soon, no other bigger changes...
2006-10-06 10:11:52 +00:00
skodak
290cf2f484 fixed broken table layout in blog MDL-6806 2006-10-03 20:18:58 +00:00
skodak
86a1ba04fd replace all uses of isset($USER->id) with empty() to allow proper operation of $CFG->notloggedinroleid hack 2006-09-02 11:44:04 +00:00
toyomoyo
b3e900cee6 some more UI change 2006-08-16 09:11:43 +00:00
toyomoyo
0a8a95c91e some more UI stuff 2006-08-15 08:29:29 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
moodler
c96a3047ec Merged header fixes from stable 1.6 2006-06-18 07:45:22 +00:00
toyomoyo
e3ec7995a7 merged, centering of tabs on blog page issue 2006-06-16 02:59:37 +00:00
skodak
940e39369a fixed block width calculation; merged from MOODLE_16_STABLE 2006-05-19 21:01:26 +00:00
moodler
b0bc8e3008 More little fixes to links and headers 2006-05-01 03:30:55 +00:00
moodler
44fdf0f301 Some typos 2006-05-01 03:25:07 +00:00
moodler
37610bf9dd FIxed some headers 2006-05-01 03:24:05 +00:00
toyomoyo
5a50c2b2f4 replacing hardcoded url with $CFG->wwwroot 2006-05-01 03:19:13 +00:00
toyomoyo
9fad492eb5 some small fixes, mostly for 5174 2006-04-24 03:36:02 +00:00
moodler
a0a6424c75 formatting fix :-) Really I'm just testing the CVS mailing script 2006-04-21 04:10:12 +00:00
toyomoyo
8c9814f9d8 added a feature that automatically adds 2 default blocks for new blog users. (block_menu and block_tags blocks) 2006-04-20 06:35:39 +00:00
toyomoyo
48e79fd146 some clean up 2006-04-20 02:14:17 +00:00
toyomoyo
f4c85f469a various small changes 2006-04-18 01:59:13 +00:00