Jason Fowler
e9904e0988
MDL-35874 - Blocks - Adding a label to the 'Add a block' block's select field
2012-12-13 15:08:23 +08:00
Frederic Massart
fbb207c57a
MDL-36323 usability: New icon names to assign and switch roles
2012-11-14 14:07:40 +08:00
Dan Poltawski
cedf976367
MDL-35964 - blocks: add missing global $CFG
...
Thanks Rosie!
2012-10-31 14:28:24 +08:00
Dan Poltawski
b01783f086
Merge branch 'MDL-35964' of git://github.com/timhunt/moodle
2012-10-29 13:48:44 +08:00
Dan Poltawski
ea0a092e99
Merge branch 'wip-mdl-32218' of git://github.com/rajeshtaneja/moodle
2012-10-16 14:35:28 +08:00
Marina Glancy
a49e2ea7e6
MDL-35769 Course formats: Added function format_base::default_blocks() to replace format config.php
2012-10-15 14:14:33 +08:00
Tim Hunt
1c76fc96d1
MDL-35964 blocks: prevent undeletable blocks being deleted!
...
This commit simplifies the logic, so that $CFG->undeletableblocks
applies to all blocks, not just ones on certain page types in the
system context.
It also makes the setting apply to adding blocks, so you cannot
accidentally add a block that you cannot delete.
2012-10-12 20:36:02 +01:00
Rajesh Taneja
2bb1d1fbb8
MDL-32218 Blocks: allowblockstodock is also checked for region dock status
2012-10-04 17:25:45 +08:00
Rex Lorenzo
1336e2e160
MDL-35374 - Cannot delete blocks off frontpage
2012-09-11 12:27:17 -07:00
Eloy Lafuente (stronk7)
df5ac8d0ec
MDL-6424 - blocks - Add missing global vars.
2012-09-06 19:39:49 +02:00
Eloy Lafuente (stronk7)
7c2bc95ae2
Merge branch 'wip-MDL-6424-master' of git://github.com/abgreeve/moodle
2012-09-06 19:31:43 +02:00
Ankit Agarwal
d197ea4300
MDL-34549 libraries: Replace get_context_instance_by_id() by context::instance_by_id()
2012-08-24 11:30:10 +08:00
Adrian Greeve
2b7ece005e
MDL-6424 - blocks - Adding a warning screen when the user clicks the delete link.
2012-08-21 14:31:24 +08:00
Matt Meisberger
dbc623c4fc
MDL-34742 - adding ability to move blocks into empty column
2012-08-17 14:44:06 +08:00
Adrian Greeve
b0c6dc1cac
MDL-34465 - lib - Replacing get_context_instance with context_XXXX::instance (group 8)
2012-07-27 10:10:46 +08:00
Dan Poltawski
7067a161a3
Merge branch 'wip-mdl-31023' of git://github.com/rajeshtaneja/moodle
2012-07-23 13:13:47 +08:00
Rajesh Taneja
afb92f1b9e
MDL-31023 libraries: removed deprecated function and classes from pagelib.php
2012-07-19 15:48:45 +08:00
Rajesh Taneja
1e12c1203b
MDL-30651 libraries: Replaced deprecated PARAM_INTEGER with PARAM_INT
2012-07-19 15:37:46 +08:00
Ruslan Kabalin
5683815612
MDL-31263 Rewrite block drag/drop using YUI3
2012-04-24 13:25:43 +08:00
Petr Skoda
f20edd5208
MDL-32094 fix various E_STRICT compatibility problems
2012-03-18 18:37:24 +01:00
Petr Skoda
b85b25ebb8
MDL-31006 fix various notices in PHP54
...
PHP54 compatibility
2012-01-18 01:03:20 +01:00
sam marshall
7728860ae5
MDL-30655 Blocks: Moving block to top of list can cause (harmless) PHP warnings
2011-12-09 17:45:23 +00:00
Eloy Lafuente (stronk7)
da78edea18
Merge branch 'MDL-30340-sticky-blocks_simplify_frontpage_ui' of git://github.com/stronk7/moodle
2011-12-05 10:57:53 +01:00
Martin Dougiamas
192a3380f1
MDL-30340 blocks - fix/restrict frontpage dark magic application
...
It seems that there are some overlapping constants in the blocks
subsystem that were causing some code, initially planned only
to frontpage, to be executed in other contexts. This commit moves
the bui_editingatfrontpage condition as root condition.
2011-12-05 10:28:54 +01:00
Eloy Lafuente (stronk7)
49ae1fdcea
MDL-30340 blocks - incorrect option in user profile template and missing lang string in my template
2011-12-05 01:14:19 +01:00
Eloy Lafuente (stronk7)
d4e71a4eed
MDL-30340 blocks - hide some redundant pagetypepattern options at front page
...
The dual front-page/system-wide form to edit blocks can
be reduced asuming that, always:
A) system sets the context to system,
recursively and with page-type set to "*"
B) frontpage only sets the context to site-course,
non-recursively and with page-type set to "site-index"
C) frontpage all added sets the context to site-course,
recursively and with paget-type set to "*"
And that is the change that this patch provides, by:
1) detecting properly if we are editing blocks @ protpage
2) passing that information to the form data processor
3) setting parentcontextid, showinsubcontexts and
pagetypepattern following the A, B, C immutables above.
Finally, and affecting some other system-wide pages, there
are cases (my, user templates...) having only one possible
pagetypepattern, and it looks badly if the page has subpages, so
for those system-wide cases we are showing exceptionaly the
pagetypepattern statically. This will be revisited once MDL-30574
is decided and implemented, although perhaps it's ok to leave it
as default to places with only one pagetypepattern available.
2011-12-05 01:09:02 +01:00
David Mudrak
9d2c424d83
MDL-30340 Block stickiness computation improvements
...
This is an attempt to clean up and fix the computation of the block
stickiness. At first, the page pattern can't be ignored because the user
may want to currently try to limit the page pattern. Second, the
site-index pattern can be forced only if the user selected 'Front page
only' as the page context.
2011-12-03 16:57:21 +01:00
David Mudrak
7c600d46aa
MDL-30340 Trivial change in PHP doc block - the function does not accept any params
2011-12-03 16:57:21 +01:00
Eloy Lafuente (stronk7)
b2221ee59c
MDL-30340 blocks - avoid lockin'blocks in subcontexts.
...
Everytime that one block instance is edited @ any subcontext,
guarantee that the 'bring back' pattern (* = all pages) is
available, so the block can be reseted to its original context
2011-12-03 11:21:48 +01:00
Sam Hemelryk
6335838604
Merge branch 'wip-MDL-30010' of git://github.com/lazydaisy/moodle
2011-11-14 12:10:17 +13:00
Mary Evans
afc7026a57
MDL-30010FIX for pagelayout problems when moving blocks
2011-11-06 19:48:10 +00:00
Petr Skoda
2a1ce6a8ed
MDL-30150 support frankenstyle in page type callbacks
2011-11-06 11:32:12 +01:00
Petr Skoda
aff24313be
MDL-29401 introduce new frankenstyle PARAM types
...
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Sam Hemelryk
d609d96261
MDL-28599 textlib Separated collator to collatorlib with static methods, and added support for locale aware sorting of objects
2011-09-06 15:39:00 +12:00
Sam Hemelryk
6919b90f05
MDL-25602 blocks Altered order of block editing icons and added CSS to better control the size of block editing icons
2011-08-12 10:26:20 +08:00
Marina Glancy
28e63a9d8c
MDL-27122 Allow admin to change CFG->undeletableblocktypes on 'Manage blocks' settings page. Instances of protected block types will be undeletable only from site context
2011-07-29 13:51:40 +08:00
Tim Hunt
fd3932fe54
MDL-26618 Moving sticky blocks on other pages does not work in Oracle.
...
This was due to some missing $DB->sql_empty() in a query affecting the
block_positions table.
2011-07-04 15:36:16 +01:00
Eloy Lafuente (stronk7)
ddaa914789
MDL-27829 block creation - ensure correct pagetypepattern in mod/ pages
2011-07-01 20:38:06 +02:00
Eloy Lafuente (stronk7)
0822174adc
Merge branch 'MDL-27812_front_page_blocks' of git://github.com/andyjdavis/moodle
2011-06-29 15:29:14 +02:00
Andrew Davis (andyjdavis)
d863aecb92
MDL-27812 blocks: fixed the ability to add a block and have it display on all pages
2011-06-28 18:50:03 +08:00
Andrew Davis (andyjdavis)
b38e2e28a1
MDL-27829 blocks: altered the algorithm used to find plugin page types
2011-06-27 12:27:41 +08:00
Andrew Davis (andyjdavis)
b822fc8511
MDL-27829 blocks: added some brains to generate_page_type_patterns() so that it can handle special cases like course reports
2011-06-22 17:01:21 +08:00
Andrew Davis (andyjdavis)
0f63f2714f
MDL-26105 blocks: made the block settings help icons work
2011-06-16 12:05:53 +02:00
Andrew Davis (andyjdavis)
84a1bea972
MDL-26105 blocks: readded the my moodle page's page type list generator function
2011-06-16 12:05:48 +02:00
Sam Hemelryk
46d3b9be73
Merged branch 's7_MDL-26105_block_settings_master' git://github.com/andyjdavis/moodle.git with changes
2011-06-13 16:54:52 +08:00
Andrew Davis (andyjdavis)
fb794ab73c
MDL-26105 blocks: fixed some php errors and made a help string better
2011-06-09 17:03:27 +08:00
Sam Hemelryk
32a510de4e
MDL-26105 block setting, improvement, replace switch-case with get_core_subsystems + get_plugin_types
2011-06-09 13:51:14 +08:00
Dongsheng Cai
b1627a92e5
MDL-26105 Block settings should contains less options, and be more user friendly
...
AMOS BEGIN
MOV [page-blog-index, pagetype], [page-blog-index, blog]
MOV [page-blog-x, pagetype], [page-blog-x, blog]
MOV [page-tag-x, pagetype], [page-tag-x, tag]
MOV [page-course-view-weeks, pagetype], [page-course-view-weeks, format_weeks]
MOV [page-course-view-weeks-x, pagetype], [page-course-view-weeks-x, format_weeks]
MOV [page-course-view-topics, pagetype], [page-course-view-topics, format_topics]
MOV [page-course-view-topics-x, pagetype], [page-course-view-topics-x, format_topics]
AMOS END
2011-06-09 13:51:14 +08:00
Sam Hemelryk
faca4f2f29
MDL-27400 Fixed up typo in blocklib.php
2011-05-06 16:27:15 +08:00
Petr Skoda
cf717dc26b
MDL-27148 use new get_in_or_equal() param prefix instead of start
2011-04-14 15:15:01 +02:00