1. 10 May, 2005 1 commit
    • defacer's avatar
      · 4fad3618
      defacer authored
      I 'm fed up with the crappy HTML for blocks that keeps giving us
      no end of trouble (bug 1718 is just the tip of the iceberg).
      Rehauling things... these two divs are superfluous.
  2. 11 Apr, 2005 1 commit
  3. 03 Mar, 2005 1 commit
    • defacer's avatar
      · 3ef642d9
      defacer authored
      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
  4. 08 Feb, 2005 1 commit
    • defacer's avatar
      · 8a47e075
      defacer authored
      Changing the way that applicable formats for each block are defined:
      The format for each page is now the same as the id attribute of the
      BODY tag, which in turn is a simple function of the script's relative path:
      The format for e.g. a quiz view page is "mod-quiz-view". The format for the
      site index is "site-index". Exception: the format for courses is not just
      "course-view", but "course-view-weeks" etc.
      Obviously the applicable_formats() override for each block should now take
      this into account. The matching rules now are:
      * You can specify the full format, e.g. "mod-quiz-view" => true
        will allow the block to be added in quizzes
      * Prefixes match the full page format, e.g. "mod" matches ALL activities
      * You can use "*" as a wildcard, e.g. "mod-*-view" matches just the view.php
        page of all activities
      * These rules interoperate, thus "mod-*" is the same as "mod"
      * "all" remains as a catch-all situation
  5. 24 Nov, 2004 1 commit
    • defacer's avatar
      · e89d741a
      defacer authored
      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.
  6. 22 Nov, 2004 1 commit
  7. 20 Oct, 2004 1 commit
    • defacer's avatar
      Da monster-commit of blocks version 2! · 9b4b78fd
      defacer authored
      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.
  8. 17 Sep, 2004 1 commit
    • gustav_delius's avatar
      XHTML compliance · 839f2456
      gustav_delius authored
      - fixed (hopefully) all <img> tags
      - global replace on <br> to <br />
      - &amp; in URLs
      - got the forum module XHTML compliant
      Julian Sedding
  9. 13 Sep, 2004 1 commit
  10. 23 Aug, 2004 1 commit
    • defacer's avatar
      Fix for bug 1662: · 2b0d60ec
      defacer authored
      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.
  11. 30 Jul, 2004 1 commit
  12. 27 Jul, 2004 1 commit
  13. 29 May, 2004 1 commit
  14. 19 Apr, 2004 1 commit
    • stronk7's avatar
      First Official realease of the "Blocks System". · 0f3fe4b6
      stronk7 authored
      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.
      Support it really in backup/restore.
      Enjoy!! Ciao :-)