nicolasconnault
19be3ad085
MDL-19756 Removed TODO for choose_from_radio
2009-08-06 00:07:43 +00:00
mudrd8mz
6f391f7642
Fixes the displayed text and makes the new API lighter
2009-08-05 11:50:17 +00:00
nicolasconnault
28fbce88cf
MDL-19756 Fixed bugs and improved API in various places
2009-08-05 08:49:56 +00:00
nicolasconnault
cf13298081
MDL-19756 Deprecated update_course_icon() and implemented a simple $OUTPUT->edit_button($moodleurl) method which uses $USER->editing
2009-08-05 02:39:42 +00:00
nicolasconnault
c351150fca
MDL-19756 MDL-19825 MDL-19823 MDL-19794 Deprecated update_tag_button, update_categories_search_button and print_user, and updated a few pages that depended on the now deprecated functions
2009-08-05 02:03:50 +00:00
nicolasconnault
e1cc88403a
MDL-19756 Migrated print_heading_with_help
2009-08-04 15:15:11 +00:00
nicolasconnault
234b857c0c
MDL-19756 Fixed regression in unit tests
2009-08-04 13:59:02 +00:00
nicolasconnault
0affac4d65
MDL-19756 Fixed regression in popup_form()
2009-08-04 09:09:06 +00:00
nicolasconnault
6a5c71b95c
MDL-19756 Migrated print_textfield, choose_from_radio and print_checkbox
2009-08-04 02:42:24 +00:00
nicolasconnault
49c8c8d27e
MDL-19976 Refactored select_menu() into select(), now supporting menu, radio and checkbox rendering. Added radio() and checkbox() functions.
2009-08-04 02:05:32 +00:00
nicolasconnault
ce60cbc8ff
MDL-19756 Migrated print_close_window to $OUTPUT->print_close_window($text)
2009-08-03 11:03:16 +00:00
nicolasconnault
17811cef2c
MDL-19756 Outputting a debugging message if $OUTPUT->form() is called without $contents but with a $form->button set. Should use $OUTPUT->button($form) instead
2009-07-31 11:14:16 +00:00
nicolasconnault
2c78f462ed
MDL-19756 MDL-19973 Fixed support of url by user_picture, and improved API for adding a popup action (set $userpic->popup = true)
2009-07-31 02:39:38 +00:00
skodak
f6486af888
fixed broken validation of parameters in confirm method
2009-07-30 09:05:18 +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
nicolasconnault
74623e0a3a
MDL-19756 Improved API of OUTPUT->confirm()
2009-07-30 06:09:45 +00:00
nicolasconnault
496908435e
MDL-19756 Migrated popup_form
2009-07-30 03:47:12 +00:00
tjhunt
a6f57fb2ef
MDL-19756 Try to bring some consistency to how we handle & is attribute values.
2009-07-29 08:52:49 +00:00
tjhunt
34f4a68b9f
MDL-19756 Fixes to make actions on action_icons work.
2009-07-29 08:45:24 +00:00
moodler
4042788347
theme/styles MDL-19953 $THEME->csslifetime lets themers adjust the cacheability of their theme in seconds.
...
Also:
1) In dev mode, caching is 60 seconds all the time.
2) Standard theme always has a long 2 days
2009-07-29 08:12:48 +00:00
nicolasconnault
55536d8453
MDL-19756 Updated unit tests
2009-07-29 01:13:04 +00:00
nicolasconnault
c68e409892
MDL-19756 Migrated time selectors from weblib to outputlib
2009-07-29 01:08:52 +00:00
nicolasconnault
053203a8d5
MDL-19756 Migrated choose_from_menu_yesno and choose_from_menu_nested into $OUTPUT->select_menu()
2009-07-28 12:12:24 +00:00
nicolasconnault
3f9a45dffa
MDL-19756 Removed redundant component::add_action_object() function and calls to it
2009-07-28 09:37:14 +00:00
tjhunt
52842d6117
outputlib: MDL-19756 fix $OUTPUT->user_picture.
2009-07-28 07:57:57 +00:00
nicolasconnault
18644ceafa
MDL-19756 Improved the API for moodle_html_component::add_action to allow the first param to be a component_action object
2009-07-28 03:26:41 +00:00
nicolasconnault
8e127eb38e
MDL-19756 Migrating choose_from_menu to outputlib
2009-07-28 02:45:13 +00:00
skodak
360dde50ba
MDL-19943 new debug optiosn for validators link and page info in footer
2009-07-27 20:36:28 +00:00
skodak
5db2b5951f
MDL-19756 better broken param diag
2009-07-27 15:14:49 +00:00
nicolasconnault
cd5184a278
MDL-19756 Fixed incorrectly thrown exception in output->confirm()
2009-07-27 12:02:39 +00:00
nicolasconnault
f8065dd287
MDL-19756 Migrated the following functions from weblib to outputlib:
...
1. button_to_popup_window
2. link_to_popup_window
3. print_single_button
4. print_spacer
5. print_file_picture (deprecated)
6. print_user_picture
7. print_png (deprecated)
8. helpbutton
9. doclink
10. print_paging_bar
11. notice_yesno
2009-07-27 10:33:00 +00:00
tjhunt
aaee3df074
outputlib: debugging message was not being displayed when you forgot print_footer.
2009-07-24 04:45:29 +00:00
nicolasconnault
b32e908271
MDL-19077 Fixed whitespace
2009-07-23 02:35:58 +00:00
nicolasconnault
fa1afe32a1
MDL-19077 Fixed PHPdocs, whitespace and all typos I could find, except for a few stub methods which have a TODO tag
2009-07-23 02:33:58 +00:00
tjhunt
6e5516bf27
Fix my silly mistake. Thanks for noticing Eloy.
2009-07-22 14:26:47 +00:00
tjhunt
3ceb69108a
themes: MDL-19077 pass the region name ot the block output function.
...
Might be useful if a theme wants to render blocks differently in regions like 'top' or 'bottom'.
2009-07-22 07:13:43 +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
4565dcff25
html_table: MDL-19755 deprecate the attributes of html_table that lead to in-line styling in the HTML.
2009-07-21 07:04:19 +00:00
tjhunt
2c0901cb5a
MDL-19010: In developer debug mode, print information about this page in the footer.
2009-07-20 06:18:16 +00:00
tjhunt
c45cb4bbd7
Improve comment. Thanks David Mudrak.
2009-07-18 11:59:17 +00:00
tjhunt
61f879d293
themes: MDL-19077 better handling of top of body code for legacy themes.
2009-07-17 06:51:25 +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
tjhunt
1936f20b8b
blocks editing ui: MDL-19398 move generating the block edit icons to blocklib.php
...
Since that is where the resulting actions are processed.
2009-07-14 10:57:06 +00:00
tjhunt
144390b4d9
themes: MDL-19077 Don't need both output_starting_hook and starting_output method on page.
2009-07-14 05:14:45 +00:00
skodak
75904dfa13
MDL-19755 fixed regression - no class test must be done before adding allign classes ;-)
2009-07-13 20:33:56 +00:00
mudrd8mz
480b0720ae
MDL-19755 print_table replaced with $OUTPUT->table
...
rowclass property has been deprecated, rowclasses should be used.
Direct assigning of the class has been deprecated,
moodle_html_elements::set_classes() should be used instead. In both
cases, debugging message is displayed.
2009-07-13 11:10:30 +00:00
tjhunt
60a5b18833
themes: MDL-19077 fix bugs in cli_renderer. Use correct doctype with legacy header.html.
2009-07-13 06:10:03 +00:00
jerome
728f96c756
output MDL-19077 typo bug on $debugdisableredirect
2009-07-10 07:08:12 +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