103 Commits

Author SHA1 Message Date
skodak
a5d424df7c MDL-14679 converted some get/set_field() 2008-06-02 21:39:23 +00:00
skodak
f28f2d9022 MDL-14679 towards blocks conversion 2008-06-02 20:15:51 +00:00
sam_marshall
2f74763913 MDL-14815: Added CSS class to blocks when they have editing controls (for themeability) 2008-05-15 09:50:39 +00:00
dongsheng
e8dcf7f949 MDL-14111, fix html tag error 2008-04-02 07:21:10 +00:00
dongsheng
9c34b80d8f MDL-14111, multilang html-block title, merged from MOODLE_19_STABLE, thanks Gordon Bateson 2008-04-01 01:39:44 +00:00
skodak
5cfefc9b02 MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt; merged from MOODLE_19_STABLE 2008-03-23 15:54:42 +00:00
skodak
5c10879f55 MDL-11814 use system context for pinned blocks; merged from MOODLE_19_STABLE 2007-12-20 16:25:49 +00:00
moodler
1f967c82ff Merged MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them. 2007-12-20 01:51:33 +00:00
nfreear
c076f4beef Fixes reopened MDL-7493 "Make sure standard themes are visible under "Windows High Contrast Black" mode" - foreground show/hide block icon/ALT text switched with Javscript. 2007-12-18 17:18:19 +00:00
toyomoyo
b486ef1ae3 MDL-8270, full block backup/restore routine with code 2007-11-15 05:00:44 +00:00
tjhunt
43457dc87c MDL-12066 - Links in the HTML block are not recoded on backup and restore.
This is messy because the links are hidden in the configdata column, which is serialized and base64encoded. So we have to untangle that, then ask the block whether there are any bits of $config that need to be fixed, then re-encode it before backup up. And reverse that on restore. It needs to remain base64 encoded in the backup file, so that the file format is backwards compatible.

I disucssed this with Eloy before doing it.

Merged from MOODLE_19_STABLE.
2007-11-14 17:03:32 +00:00
moodler
dd8f4910ed Hide role assign button from pinned blocks (always) MDL-9723 2007-08-24 02:17:28 +00:00
poltawski
25a7d98066 MDL-10573 - moodle/block:view wasn't working with switch roles or block_list class 2007-08-22 10:35:28 +00:00
tjhunt
2a4e13c5e7 MDL-10894 - Make block add/remove and edit permissions more consistent 2007-08-17 13:07:23 +00:00
poltawski
7e874772a3 MDL-10573 - Added a capability for viewing blocks, this allows role-based control of block
display.

Changed context capability check so that CONTEXT_BLOCK capabilities can also come from the
moodle core capability definitions
2007-08-13 10:08:15 +00:00
moodler
9591bc3c9e Changed applicable_formats to remove certain blocks from the tags pages 2007-08-10 09:33:21 +00:00
moodler
b4483b9107 Switch arrows in blocks when in RTL mode MDL-10768 2007-08-09 08:47:09 +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
nicolasconnault
5db0cffcf6 MDL-8922: Had to modify another bunch of files to fix a simple problem:
when a config block contains a form, the previous form needs to be closed
properly (it was, but there were non-matching closing divs etc...).
2007-03-26 03:06:45 +00:00
nicolasconnault
e92751686f MDL-8922 : Fixed a number of xhtml simple issues, but heaps of hard-core fixes yet to do. 2007-03-23 07:48:02 +00:00
defacer
ccd3dd0ce2 Merge from MOODLE_18_STABLE:
Fixing notices, I should 've done grep "BLOCK_TYPE_NUKE" earlier.
2007-02-26 14:02:21 +00:00
defacer
86ce75a8e5 Merge from MOODLE_18_STABLE:
Killing BLOCK_NUKE constant, since Martin nuked nuke blocks.
2007-02-26 13:29:57 +00:00
toyomoyo
217a8ee950 made some changes so that if a user has any roles assigned in context_module or context_block with moodle/site:manageblocks or moodle/course:manageactivities, he will see the "turn editting on" button without needing to have a role assigned at context_course with moodle/course:manageactivies capability. Of course this user would not be able to edit any blocks or modules he/she is not supposed to edit. Ajax for these users with partial editing privilages are locked. Please report bugs asap as we are looking at backporting this change to 1.8. Cheers. 2007-02-16 07:57:19 +00:00
toyomoyo
5e8adb25a5 merged fixed wrong context, it should be possible to manage a single block 2007-02-16 01:26:19 +00:00
skodak
84c8ede022 MDL-8343 reorganize frontpage settings in admintree - admin tree now allows to specify context together with required capability for each entry
MDL-8352 Fully separate CONTEXT_COURSE, SITEID from COURSE_SYSTEM - first part of cleanup related to frontpage
2007-01-29 21:29:27 +00:00
skodak
0d905d9f34 MDL-7861 new class .icon and .iconsmall 2007-01-08 09:14:05 +00:00
skodak
c6da8ccca3 MDL-7861 some xhtml fixes 2007-01-04 13:01:28 +00:00
moodler
d0b59e3bf6 Fixed a missing space which broken XHTML 1.0 strict 2006-12-12 07:12:11 +00:00
vyshane
5b1675f420 Fix for MDL-7493. Added html id attribute for the image button used to toggle hide and show for blocks. This is used by javascript to replace the image on the fly. 2006-12-11 07:15:30 +00:00
toyomoyo
aa5a393738 merged fix for MDL-7441, wrong size for roles icon 2006-11-13 05:43:41 +00:00
skodak
17e5635c36 fixed 'capabilitities' typos and removed forgotten debug_print_backtrace() commited with MDL-6728 2006-10-08 11:00:49 +00:00
skodak
6859360cd4 coverted /admin/ to proper /$CFG->admin/ in paths 2006-09-26 21:10:14 +00:00
sam_marshall
a82e9bc3bb Added feature to blocks (and restorelib) so that blocks get a method call (default does nothing) after they are restored. This allows blocks to change their settings if necessary in respect of the new course roll-forward 'restore and change start date' feature that Al implemented recently. The core blocks happen not to store dates anyway so don't need this, but contributed blocks may well do. 2006-09-21 12:07:15 +00:00
skodak
6124048972 major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
moodler
09a89b01d0 Nuked nuke. 2006-09-18 03:28:02 +00:00
moodler
6d0bd10c0a A temporary icon for roles (needs work!) 2006-09-06 02:16:48 +00:00
skodak
02cc05a708 fixes for new admin blocks 2006-09-02 23:55:56 +00:00
skodak
35a518c5de fixed admin defaults, some warnings during install and added trmporary hack to make $CFG->notloggedinroleid work 2006-09-02 10:03:30 +00:00
moodler
7468981e67 FIxed roles button on blocks 2006-08-24 03:48:04 +00:00
moodler
28e7967aea FIxed some notices 2006-08-24 03:28:09 +00:00
moodler
0a0bb38019 Ed Coyne's AJAX course format, with some cleanups done.
More cleanups to come from Ed.

This isn't actually working for me right now but he'll fix it now.

This is completely optional and won't affect any other code right now.
2006-08-24 03:20:37 +00:00
vyshane
01199ea958 Updated to use new Roles System. Plus some fixes. 2006-08-16 08:54:07 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +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
sam_marshall
44c55d4662 Added hooks so that blocks can create functions that are run when they are installed and uninstalled. The base implementation does nothing. 2006-07-14 11:17:46 +00:00
nfreear
782792047b Fix bug 5611 (Skip block), across 4 files. Extra parameter $title in weblib.php: print_side_block, edits to moodleblock.class.php, Standard style, en_utf8 language pack. 2006-06-09 14:25:18 +00:00
nfreear
68ac3b35e0 Accessibility: moved H2 from weblib.php: print_side_block_start, to moodleblock.class.php: _title_html (validate, <span>s revert to <div>); skip block link - replaced pixel image with 'accesshide' text; use get_string. 2006-03-06 12:50:43 +00:00
nfreear
02db7f7a02 Accessibility: function _title_html, replaced <div> with H2, enclosed <div> to <span> - now validates! 2006-02-28 13:12:13 +00:00
mjollnir_
f9648e77cf Added cron support for blocks - it was already there in the tables, now we just need to use it 2006-02-14 03:24:08 +00:00
defacer
8eefd42e7e Oops. Forgot some debug code in there. 2005-12-17 04:53:50 +00:00