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
samhemelryk
5afbd0e783
blocklib MDL-20207 Added $CFG->undeletableblocktypes and documented in config-dist
2009-09-11 06:00:32 +00:00
samhemelryk
f4e6a86e41
blocks MDL-20206 Added checking to initialise block weight array outsite of min/max if blocks weight already exceeds that range
2009-09-09 02:44:57 +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
poltawski
d836aa4b4f
lib/blocklib: MDL-20146 - Don't mask errors as a way to ignore missing code files
...
Instead of simply ignoring all errors from blocks, allow the errors to be
exposed and test if the file exists. The previous solution makes it very
hard to debug problems with blocks and gives the 'white screen of death' even
with debugging set as high as it can go.
Also ensure that blocks without code are not added to the list of instances,
as I assume was the intended behaviour.
2009-08-22 11:24:39 +00:00
nicolasconnault
7b1f2c829f
MDL-19756 Renamed moodle_select to html_select for better API consistency
2009-08-10 08:38:45 +00:00
nicolasconnault
d81b05e701
MDL-19799 Converted calls to popup_form()
2009-08-10 03:39:21 +00:00
tjhunt
2cdb8d8452
blocks: MDL-19893 move blocks on page UI - part 2
...
This updates the DB.
I beleive this is correct, but it is very hairy and badly needs unit tests.
2009-07-30 10:29:14 +00:00
jerome
1d7e341e8f
block MDL-19946 fix "cannot add block" bug (Tim's fix)
2009-07-30 09:40:11 +00:00
tjhunt
00a24d44f7
blocks: MDL-19893 move blocks on page UI - part 1
...
This does all the UI. It does not yet update the DB when you click to complete the action.
2009-07-30 08:22:12 +00:00
tjhunt
d14edf06ee
blocks: MDL-19399 proper permissions checks for editing blocks.
...
In particular for editing sticky blocks. If the admin addes one at site level,
then the teacher should not be able to change its configuration from
the course page, but should be able to set the position on this page.
2009-07-30 03:44:10 +00:00
tjhunt
166e3bd161
blocks: MDL-19010 fix block editing icon URLs.
2009-07-29 11:14:41 +00:00
tjhunt
e9f7fdec00
blocks: MDL-19946 Sorry, remove debug code.
2009-07-29 03:57:30 +00:00
tjhunt
a23bbaa30b
blocks: MDL-19946 More bug fixes.
2009-07-29 03:51:16 +00:00
tjhunt
d0f0cab776
blocks: MDL-19946 And another bug fix.
2009-07-29 03:21:07 +00:00
tjhunt
7bbc2890f7
blocks: MDL-19946 bugfixes for my previous commit.
2009-07-29 03:19:43 +00:00
tjhunt
a19f419db2
blocks: MDL-19946 Block editing form must be displayed from the original URL, with properliy initialised $page
2009-07-28 09:59:21 +00:00
tjhunt
78d27a9049
blocks MDL-19902: were seeing empty block columns on the front page when not logged in.
...
It turns out the only reliable way to find out whether blocks will appear is to get the contents. :-(
2009-07-22 05:38:28 +00:00
tjhunt
4578a5eb7a
block MDL-19398 Initialise all blocks on this page before output is started.
2009-07-20 03:04:08 +00:00
tjhunt
73e2e5c03d
blocks editing ui: MDL-19398 Can now edit the position of any block.
...
I think this is probaby insecure at the moment. I am still working on it.
2009-07-16 11:05:26 +00:00
tjhunt
1d13c75c15
blocks editing ui: MDL-19398 Can how precisely control block positioning using the edit icon
...
This mostly works now, but ...
* The UI needs further work. In particular we need a non-advanced mode.
* This only works for blocks that use a new edit_form.php to replace config_instance.html.
* .. and so far I have only implemented edit_form.php for the HTML block so far.
* Needs to be enabled (with no block-specific config) for blocks without instance config, so you can control their positioning.
2009-07-16 10:50:19 +00:00
tjhunt
ae42ff6fee
blocks editing ui: MDL-19398 showing and hiding blocks now works.
2009-07-15 07:41:25 +00:00