54 Commits

Author SHA1 Message Date
Sam Hemelryk
0f4ab67d84 course MDL-20628 Added the ability to name a course section, thanks Michael for the initial patch 2010-04-23 07:17:21 +00:00
Petr Skoda
d9d74c8e3d MDL-22054 converting course formats to have own lang packs
AMOS START
 MOV [namescorm,core],[sectionname,format_scorm]
 MOV [namesocial,core],[sectionname,format_social]
 MOV [nametopics,core],[sectionname,format_topics]
 MOV [nameweeks,core],[sectionname,format_weeks]
AMOS END
2010-04-11 12:55:59 +00:00
Petr Skoda
ff67afbd95 MDL-22054 converting course formats to have own lang packs
AMOS START
 MOV [formatscorm,core],[pluginname,format_scorm]
 MOV [formatsocial,core],[pluginname,format_social]
 MOV [formattopics,core],[pluginname,format_topics]
 MOV [formatweeks,core],[pluginname,format_weeks]
AMOS END
2010-04-11 12:46:14 +00:00
Petr Skoda
aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
samhemelryk
7d2a049292 navigation MDL-14632 Very significant navigation commit
This patch introduces two new blocks global_navigation_tree and settings_navigation_tree
both of which have been designed to make full use of the new navigation objects available through
the $PAGE object.
Bulk of this code is within lib/navigationlib.php
2009-08-28 08:47:31 +00:00
nicolasconnault
e6db30260f MDL-19794 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:58:26 +00:00
nicolasconnault
98b369f800 MDL-19794 Converted print_box* to $OUTPUT->box* 2009-08-10 04:53:59 +00:00
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
moodler
609bc82be7 course/format/social MDL-18483 For social course format, print forum intro on course page (Merged from 1.9) 2009-05-12 05:10:28 +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
nfreear
5c3550191a Partial fix for reopened bug MDL-7878, "Link identification and skipping" - affects all course formats + other files. 2007-10-22 06:43:00 +00:00
toyomoyo
66af2bf186 fixing a broken get_context_instance() call 2007-08-22 05:51:04 +00:00
tjhunt
40ce63cbb7 MDL-10588 - refactor the code for printing the 'subscribe/unsubscribe from this forum' link into one place. 2007-07-24 17:06:29 +00:00
urs_hunkler
f145c2482d added/changed custom corners lib and calls to add the necessary divs 2007-05-09 15:03:01 +00:00
moodler
afc58a289b Merged some fixes for MDL-9402 from stable (causing forum unread counts to break) 2007-04-17 09:29:55 +00:00
urs_hunkler
689456eb15 'deleted old block width definition' 2007-02-06 20:18:45 +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
moodler
3b456f6ae2 Added a summary to layout tables "layout tables" for further accessibility 2007-01-23 08:28:55 +00:00
moodler
abcaf2cfa5 XHTML Strict fixes 2007-01-05 16:40:04 +00:00
moodler
bd792a758f XHTML Strict fixes MDL-7861 2007-01-04 15:52:11 +00:00
moodler
2ef9d19a51 Added skip links to all course formats to main content MDL-7878 2007-01-03 15:37:07 +00:00
moodler
df2f835eeb Merged changes from stable 2006-06-11 06:48:56 +00:00
skodak
870e3cad2c fix for preferred_width_xx initialization SC#169; merged from MOODLE_15_STABLE 2005-10-29 16:36:15 +00:00
thepurpleblob
46c0bb9b64 Removed optional_variable(), require_variable and all $_GET, $_POST
Replaced with more secure alternatives.
2005-06-10 11:06:19 +00:00
defacer
71de24539a Removing one block from social courses defaults, too overcrowded.
Fixing also line endings.
2005-04-21 13:25:43 +00:00
defacer
df03aecee7 Fix for bug 2945.
I 've also removed a print_spacer(7). Will fix with CSS.
2005-04-19 21:52:29 +00:00
moodler
e14496ec4f No cell spacing 2005-03-26 07:18:22 +00:00
moodler
af328e4b14 Speed and beauty improvements when displaying discussion listings 2005-03-08 17:32:08 +00:00
defacer
dffd4bb948 You know you are beyond hope of redemption when you make "API uniformity" changes. ;-) 2005-03-02 05:56:24 +00:00
defacer
664923229c Since $PAGE knows where the adminblock should be printed, let it do the printing. 2005-03-02 05:47:39 +00:00
defacer
a3f24f7cc5 Improvements in how incoming parameters are handled, how $editing is handled.
More consistency across course formats for editing stuff, using $PAGE.

Also a "bugfix": when turning editing off, cancel moving an activity if you
were in the middle of doing so.
2005-02-12 13:09:18 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
defacer
c1d8705fd2 Change the semantics of blocks_print_adminblock() to make life easier to
developers who use pages. Conversely simplified the code a bit in courses.
2005-02-02 02:41:56 +00:00
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
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
9a58f7cb85 towards XHTML compliance 2004-09-12 21:43:59 +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
6236ed990d Pass the whole $course variable to block_print_blocks_admin()
so we have more information.
2004-06-30 13:11:15 +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
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
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
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