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
Tim Hunt
d9c26e2174
blocklib MDL-25654 fix API inconsistency be renaming add_pretend_block to add_fake_block.
...
I added a deprecated method add_pretend_block that forwards to add_fake_block, so old code should be break. However, I aslo updated all the callers in core code.
2010-12-20 18:22:37 +01:00
Sam Hemelryk
bf2b43dfe1
blocks MDL-25074 When adding pretend blocks if the requested region doesn't exist it now uses the default region.
2010-11-05 03:45:32 +00:00
Petr Skoda
365a594107
MDL-24321 switching to stdClass in /lib/
2010-09-21 08:07:44 +00:00
Aparup Banerjee
e2f4557a40
course MDL-24156 added deletion of user_preferences about block instances data after a course delete.
2010-09-20 02:28:42 +00:00
Petr Skoda
9311b925c6
initialized variable before include and fixed wrong require()
2010-09-17 07:52:06 +00:00
Petr Skoda
7604f5c1b0
commenting out unused broken code so that it does not irritate IDEs
2010-09-17 07:49:39 +00:00
Sam Hemelryk
d8ef60bd72
blocks MDL-24066 Blocks can now choose to be hideable + navigation and settings are no longer hideable.
2010-09-14 02:12:41 +00:00
Sam Hemelryk
4d6fd15c00
blocks MDL-23976 Added block method to determine if any of the blocks in a block region are docked. Kudo's to Brandon for the patch.
2010-09-08 09:01:15 +00:00
Petr Skoda
c6947ba7a5
MDL-23899 migration to new locale aware asort
2010-09-05 13:00:47 +00:00
Sam Marshall
51f96f5bd9
blocks MDL-24040 Creating course fails horribly if you make one of the default blocks invisible
2010-09-01 17:36:46 +00:00
Petr Skoda
847bed234d
fixed a few comment typos
2010-08-28 11:54:24 +00:00
Sam Hemelryk
05c92729f2
blocks MDL-23935 fixed abuse of moodle_page protected variables
2010-08-26 06:27:47 +00:00
Petr Skoda
78bfb562a0
MDL-21249 improved php docs and adding direct access prevention in core libs
2010-07-25 13:35:05 +00:00
Martin Dougiamas
34a988e25f
MDL-23183 Made the block config form a little more robust (check file AND class, not just file)
2010-07-18 08:05:00 +00:00
Sam Hemelryk
7e4617f7a6
navigation-dock MDL-22560 Major changes to he way the dock works
...
* Themes can now check if a region is completely docked
* Dock now delegates events to improve performance
* Dock now completely YUI3
* No longer uses YUI overlay instead has custom control
2010-05-31 03:33:34 +00:00
Sam Hemelryk
56ed242b51
navigation MDL-20276 Fixed up the navigation for the quiz module and question section as per Tim's recommendation.
...
* Routine navigation through the quiz and question modules
* Fixed navbar through quiz and questions
* Pages headers added throughout
* Added method to turn a navigation node into a tabs array suitable for use with print tabs
2010-05-21 03:15:48 +00:00
Martin Dougiamas
464c7e70c9
MDL-22313 Implemented missing method is_block_present() in block manager class, so that blocks will properly repect multiplicity settings
2010-05-04 17:58:33 +00:00
Martin Dougiamas
0184a3fd45
MDL-19124 Reimplementing the My Moodle default blocks for upgraded sites, to match new installs
2010-05-04 16:17:41 +00:00
Martin Dougiamas
03d9401e7d
My Moodle MDL-19124 New version of My Moodle, User profiles and Course profiles, all with block support
...
Thanks very much to Remote Learner Canada, especially Hubert Chathi and Olav Jordan, for their work on the bulk of this code, and also Mike Churchward for supporting them. I worked on it after that (actually simplified it by removing a feature temporarily: multiple pages) to bring it more to what I was imagining, and to provide a base to build on and get all the navigation perfect.
There's still work to do. Some blocks don't quite work as expected, and some of the code still needs upgrading to bring it fully into line with 2.0. We also could use a much better course overview block and better CSS styling of the profile pages. But it's definitely more usable this it was, I think.
2010-05-04 13:04:35 +00:00
David Mudrak
69c14bbd3e
MDL-15252 Got rid of yet another dependency on get_string() returning [[...]]
...
Actually none of current blocks defined the checked string 'editinga' so
it does not break BC if get_string('blockconfiga', 'moodle') is used
all the time.
2010-04-27 22:31:29 +00:00
David Mudrak
4d74c87667
MDL-15252 MDL-21375 Removing illegal stringid '*' and some whitespace
2010-04-27 13:04:15 +00:00
Sam Hemelryk
88f77c3c26
navigation MDL-22044 Added setting to limit content that is shown on the navigation back into the navigation block
2010-04-21 09:44:16 +00:00
Sam Hemelryk
3406acdef9
navigation MDL-22044 Major navigation structure changes.
...
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure .
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00
Petr Skoda
15822fe21c
MDL-22054 improving blocks management UI and removing debug message because the block manage page shows the correct info instead
2010-04-11 12:08:40 +00:00
Petr Skoda
4f0c2d0009
MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too
2010-03-31 07:41:31 +00:00
Sam Hemelryk
3c14795adb
navigation MDL-21410 Fixed issue with navigation when in a blocks context and set page layout to admin when editing blocks
2010-02-18 09:23:14 +00:00
Petr Skoda
dd72b308ed
MDL-20204 blocks rendering does not depend on html_component any more
2010-02-17 18:36:26 +00:00
Petr Skoda
75015e5fc1
MDL-20204 converting link to html_writer or action_link
2010-02-11 16:27:53 +00:00
Petr Skoda
f8dab96615
MDL-20204 a lot more steps away from html_select
2010-02-10 09:37:50 +00:00
Martin Dougiamas
0aed347fd1
blocks config MDL-21375 Usability improvements for editing block stickiness, especially when dealing with frontpage and system blocks.
2010-01-20 09:08:04 +00:00
Martin Dougiamas
02ba576c27
blocks/sticky MDL-21375 This patch allows frontpage blocks to be easily turned into SYSTEM-wide sticky blocks. There is still an outstanding problem about how to deal with SYSTEM blocks that are not sticky. I think these should also be seen on the front page all the time but I'm not sure. See the bug for discussion about this.
2010-01-19 10:07:52 +00:00
Petr Skoda
24e4119a09
MDL-21369 fixed regression, thanks Mark Johnson
2010-01-18 12:12:38 +00:00
Petr Skoda
bc0663abfb
MDL-21233 fixed recent regression
2010-01-17 11:01:31 +00:00
Petr Skoda
8afba50b84
MDL-21233 get_query_string() is definitely not recommended in new code, instead use moodle_url constructors with proper parameters; removed some more legacy url concatenation operations; realized out_action is not needed often, because we shoudl pass arounf moodle_url instances instead of old url strings
2010-01-17 10:54:13 +00:00
Petr Skoda
b9bc201962
MDL-21233 escaped parameter is far more importatnt than the overrideparams in out() method - especially all JS urls should be converted to out(false); also it is possible to create new url with overrided parameters in constructor which might be actually work around the double encoding problems in the url (we should never use the out() in moodle_url constructor itself!)
2010-01-17 09:50:55 +00:00
Petr Skoda
eb7880654f
MDL-21233 finally removed the omitquerystring parameters from the out method because: 1/ the least used parameter should nto be first, 2/ it is colliding with the other two paramters, now we have separate funtion for that instead
2010-01-17 09:37:30 +00:00
Petr Skoda
340d461269
MDL-21233 simplifying moodle_url->out() api
2010-01-17 09:18:11 +00:00
Petr Skoda
a4a04ada39
MDL-21233 removing sloppy out_returnurl() from public api, it is considered a bad practise to pass around urls through page parameters, sorry
2010-01-17 09:13:36 +00:00
Petr Skoda
191b267bcd
MDL-20790 more page layouts -see base theme for full list; also added new css body class for describing current layout; base layout is now default for beter BC; require_login() now sets 'incourse' layout automatically
2009-12-27 12:02:04 +00:00
Petr Skoda
649cf95d0b
MDL-21147 renamed find_renderer back to get_renderer() - there are no more collisions with those magic getters
2009-12-17 14:06:22 +00:00
Petr Skoda
56cbc53b76
MDL-21143 theme renderers related refactoring, it should detect more problems now, there is also a list of core renderer subtypes, hopefully the api changes are improvements
2009-12-17 13:45:54 +00:00
Petr Skoda
78946b9bdb
MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks
2009-12-16 18:00:58 +00:00
Tim Hunt
c74eec3bee
blocks: MDL-20711 prevent XSRF.
...
Uses new require_sesskey function from MDL-20702.
2009-11-02 17:16:28 +00:00
Petr Skoda
6f5e085205
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
2009-11-01 16:48:45 +00:00
tjhunt
035b96a9d9
unittests: NOBUG fix pagelib unit tests
...
Fix regression caused by my earlier commit.
(It was preventing a new install.)
2009-09-30 22:35:48 +00:00
tjhunt
7d87587449
unittests: NOBUG fix pagelib unit tests
2009-09-30 16:24:05 +00:00