57 Commits

Author SHA1 Message Date
urs_hunkler
5c0f8cab97 table ID was written behind the closing tag of the table - corrected. 2005-01-18 19:53:56 +00:00
urs_hunkler
dc140b6cc0 _ added ids for the layout table 2005-01-18 11:11:26 +00:00
defacer
f032aa7a5f MAJOR CHANGES:
--------------

Brand-new pagelib.php at your disposal! It slices, it dices, it makes your coffee.
It still doesn't understand women... Read the comments in pagelib.php for a first
impression. Feedback highly encouraged!

Blocks code has undergone significant changes to work with Pages. Flexibility is its
middle name, since I think (without having tried it) that adding e.g. a third
placeholder for "center" blocks in courses, with full support for moving around etc,
will now take about 15 lines of new or edited code. If you are not impressed yet, I
suggest watching a documentary on solar physics. :P

MINOR CHANGES:
--------------

Added instance_allow_config() in the blocks class hierarchy to supplement per-instance
configuration options. You can override it to return true and thus get configuration
amenities without allowing multiple instances.

Minor polishing to comments and documentation (whatever caught my eye was game).

Tightened up some code here and there by utilizing all the new features.

BUGFIXES:
---------

A bug in restore_execute.html caused hidden blocks to not be restored at all.
2004-11-08 19:36:07 +00:00
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
stronk7
5b224948aa course/view.php is using sesskey
(changes in blocks done, please check them)

Merged from MOODLE_14_STABLE
2004-10-09 20:16:05 +00:00
stronk7
8b92f5bb7d course/mod.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 17:23:28 +00:00
moodler
44ff1b8791 Changes for XHTML compatibility 2004-10-07 09:18:33 +00:00
moodler
1ddd15afbd Changes for XHTML compatibility 2004-10-07 08:46:30 +00:00
gustav_delius
dfc12289a3 after removing empty line at top of section the editing icon was now a bit cramped in, so added an empty line below it but only if editing is on. 2004-09-30 18:56:08 +00:00
gustav_delius
eab617f96c removed spurious empty line at start of sections 2004-09-30 18:43:24 +00:00
paca70
8bf59996b5 escaped two "'s 2004-09-22 11:23:42 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
26686b7ae3 closed some br and img tags 2004-09-12 22:39:20 +00:00
gustav_delius
9a58f7cb85 towards XHTML compliance 2004-09-12 21:43:59 +00:00
gustav_delius
dcb1bd3c9a towards XHTML compliance 2004-09-12 13:21:01 +00:00
gustav_delius
24f2b65a4d towards XHTML compliance 2004-09-12 12:21:27 +00:00
mchurch
b18a962512 Added config files and block default directives to use with new course
default block function.
2004-09-03 20:06:54 +00:00
moodler
179c9a500f Merged fixes for over-keen cleaning from STABLE 2004-09-03 12:44:11 +00:00
moodler
e0161bff4f Merging in all the resource branch stuff (I know, it's mixed up)
so I can sort out the CVS explosion I had tonight
2004-07-25 14:00:29 +00:00
moodler
6236ed990d Pass the whole $course variable to block_print_blocks_admin()
so we have more information.
2004-06-30 13:11:15 +00:00
defacer
89adb17442 Merging the changes from 1.4 dev branch (site index blocks + various bugfixes) 2004-05-28 10:53:54 +00:00
moodler
51f9729eb0 Fixed missing style 2004-05-27 01:30:30 +00:00
moodler
a18ebcc3c0 Blocks admin to bottom 2004-05-22 09:18:12 +00:00
moodler
9743a982b3 Print Blocks admin down the bottom ... hopefully less
confusion for new teachers just trying to add activities

Also, the new blocks appear there anyway
2004-05-22 09:17:06 +00:00
stronk7
d9ddff71d7 Change one comment. Simply. Bug 1393
(http://moodle.org/bugs/bug.php?op=show&bugid=1393)
2004-05-15 18:52:12 +00:00
gustav_delius
fab178a10b add anchors to week/topics on course homepage 2004-05-06 19:02:25 +00:00
moodler
db7da819d5 Use $course->hiddensections in topics and weeks 2004-04-30 12:17:49 +00:00
stronk7
eccc37c033 Now, in topics format, every course can decide about how to
display hidden topics (collapsed or invisible)
Now it can be set in every course and it's applicable in topics format
2004-04-27 16:36:01 +00:00
moodler
c598d270de The "Add" block is now called "Blocks" ... other block admin stuff can
go in this block later.
2004-04-27 09:30:44 +00:00
stronk7
0f3fe4b6ad First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)
2004-04-18 23:20:53 +00:00
moodler
196ca3fe59 Fixed a bad bug where the Recent News block wasn't obeying Groups properly. 2004-04-12 09:57:14 +00:00
moodler
0d250ac10e Adding calendars by default --- later we need a course option to control
visibility
2004-03-29 15:33:26 +00:00
moodler
5f8505882e To avoid some unpleasant stuff with filters etc, I made slight changes
to separate the printing of the summary text from the edit button ...

Might need some testing because people have adjusted old texts to
work the old way ...   if anyone complains I'll put it back ...
2004-03-19 08:18:13 +00:00
moodler
a711021a75 Added a missing style for the internal table of the headingblock,
since inheritance doesn't seem to work

   headingblockcontent
2004-02-15 13:54:47 +00:00
moodler
3d575e6f08 Improvements to groups.
- you can now actually turn group modes on and off for each activity. :-)
    "Turn Editing On" to see the new icons.

  - Link to Groups page is now smarter about when it does and doesn't appear
2004-01-31 08:40:38 +00:00
moodler
15e06a2444 Fix up group icon display in certain situations 2003-12-30 18:42:58 +00:00
moodler
f374fb1006 This is the first check-in of support for groups.
It's very early (it doesn't actually do anything yet!) but you can
define groups and get an idea of how the interface is shaping up.
I also wanted to show that I have actually done something on this! :-)

From here my plan is to add group support to the modules, one by one
(forums first), then go back and clean up some of the central interfaces,
graphics etc.

Finally, test, test, test and get 1.2 out well before the end of February.
2003-12-30 17:18:06 +00:00
moodler
6049fb78f2 Modification of the course format plugin structures so that it
fits in with other plugin formats in Moodle.
2003-12-21 04:52:25 +00:00
moodler
adcedde7d9 Strip tags from activity name when moving 2003-12-17 03:36:19 +00:00
moodler
5fde0ca615 Use the new fullname function 2003-11-19 16:15:56 +00:00
moodler
445b23013e use format_text, not text_to_html 2003-10-13 14:03:48 +00:00
stronk7
866d33df9b Added to avoid one notice when no news exist !! 2003-09-30 12:25:11 +00:00
stronk7
543e1c58b5 Take off one notice when there is no news in a course... 2003-09-22 14:58:46 +00:00
moodler
809e6508db Hide labels on topic pages 2003-09-14 18:51:52 +00:00
moodler
c9f6251ea8 Two things are in this checkin:
1) Support for the new "label" module has been added.  It's unfortunate
   about having to make these exceptions but this was the overall cleanest
   way I could think of.

2) All local calculation of pixpath and modpixpath has been removed and
   replaced with a single calculation which is done in setup.php and
   stored in $CFG->pixpath and #CFG->modpixpath.  All graphics should
   use these variables so that themes can easily override them.
2003-09-14 12:25:16 +00:00
moodler
1c109ec5b6 Move the search up closer to the top 2003-09-01 08:52:51 +00:00
moodler
f31200247f My Courses is now shown in the course side block if the user is not
an admin.

Also, this block now appears on course main pages (under admin).
2003-08-09 17:17:21 +00:00
moodler
674416eabd Add two hours to avoid possible daylight savings time problems 2003-08-06 15:32:31 +00:00
moodler
7977cffdb0 Arbitrary moving of activities (aka cut and paste)
Some of this code was sent by Howard Miller, but I rewrote most of it
to make it shorter and to fit in better with current code.
2003-07-14 13:08:38 +00:00
moodler
52dcc2f9e6 Some slight cleanup (optimisation) of print_section and print_section_block 2003-07-12 06:52:26 +00:00