124 Commits

Author SHA1 Message Date
moodler
f21eb048cd Use $CFG->pixpath 2005-03-14 13:48:43 +00:00
defacer
3ef642d96a Implemented discussion from bug 2547:
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
moodler
fa966efe7a FIxed some old <p> tags 2005-02-08 18:33:08 +00:00
defacer
6573a08f63 Changing !$course->category to $course->id == SITEID 2005-02-05 03:16:44 +00:00
defacer
e89d741af3 New naming conventions for class names to bring them in line with the
rest of Moodle. The convention for blocks is now:

class block_something extends block_base { ... }

HOWTO updated accordingly, plus some more minor polishing. More to come.
2004-11-23 18:53:34 +00:00
defacer
2456d7c815 Updated the two standard blocks that have configuration features to work
with the latest version of the Blocks API.
2004-11-19 02:36:57 +00:00
moodler
ade736f13c When there are no courses to list in the block, then include a link for adding one. 2004-11-18 06:33:23 +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
398ef378dc admin/block.php is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 23:13:37 +00:00
gustav_delius
b4510d5333 closed some input tags 2004-09-12 22:23:51 +00:00
gustav_delius
98ea2a6e02 closed some image tags 2004-09-12 21:55:34 +00:00
defacer
2b0d60ec78 Fix for bug 1662:
Changed the way applicable formats for blocks are handled. The changes are
short codewise, but to grasp all the implications read the forum discussion
at the relevant URL.
2004-08-22 16:54:48 +00:00
moodler
7da0830c40 Whoops, accidentally checked in some aborted code 2004-08-12 05:06:48 +00:00
moodler
9fb216e8b6 Fixed some version numbers on three blocks 2004-08-12 04:44:14 +00:00
moodler
a4851aaf71 Add link to "all courses" for admins etc 2004-08-04 02:35:29 +00:00
moodler
2eb68e6f6b Various cleanups of the installation process 2004-07-29 18:01:32 +00:00
gustav_delius
c293c07a5e Make sure course list block is never empty. 2004-06-01 09:47:28 +00:00
gustav_delius
c96a69542a Removed spurious characters from start of file (introduced by myself) 2004-05-30 10:48:11 +00:00
gustav_delius
58bed599f3 Configuration option for block_course_list to determine what admin sees 2004-05-30 09:01:56 +00:00
moodler
4588b7d2e5 Undoing Gustav's checkin ... the admin needs to see all courses 2004-05-30 05:52:26 +00:00
gustav_delius
fad21b7c7b Also admin now sees only his or her own courses in the "My courses" block. Fixes bug 526 2004-05-30 01:02:39 +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
paca70
a595c0b6ea Files for postgresql 2004-04-19 04:30:55 +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