Commit graph

270 commits

Author SHA1 Message Date
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
nicolasconnault
9c48f05caf MDL-19799 Silencing annoying debugging error for popup_form use 2009-08-27 06:38:17 +00:00
nicolasconnault
3bd6b994fc MDL-19799 Upgraded calls to link_to_popup_window() 2009-08-20 13:18:08 +00:00
nicolasconnault
642816a60c MDL-19799 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:50:50 +00:00
nicolasconnault
54b1669246 MDL-19799 Upgraded calls to choose_from_menu 2009-08-18 00:18:19 +00:00
nicolasconnault
4f4eda4017 MDL-19756 Fixed a debugging message. Thanks Petr! 2009-08-17 09:54:49 +00:00
nicolasconnault
db49be139d MDL-19756 Added the component::has_action() method for quickly detecting if a component has an action of a given type, and unmuted debugging messages for old output functions that have been upgraded in HEAD 2009-08-17 07:00:16 +00:00
nicolasconnault
7a5c78e049 MDL-19756
* Removed outputpixfinders.php and put that code back in outputlib.php
* Created labelled_html_component class and subclassed all appropriate components from it
* Added component::add_confirm_action($message) as a shortcut for adding a confirmation popup
* Fixed bug in close_window_button()
2009-08-13 01:15:58 +00:00
skodak
d1f06fb5f1 MDL-20038 replacing strtolowe() used incorrectly to get module directory name from localised string - that could work only for some modules and in English only ;-) 2009-08-10 20:50:51 +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
e6fcbe276d MDL-19756 Added a shortcut method to moodle_html_components: add_confirm_action($message). This adds the appropriate onclick event handler for a confirmation message and can be used on any component that gets prepared properly by a renderer function. 2009-08-10 07:31:31 +00:00
nicolasconnault
beb56299ec MDL-19786 Renamed user_picture and action_icon component classes to moodle_user_picture and moodle_action_icon. Also moved around the classes in a more logical order in outputcomponents.php 2009-08-10 06:37:29 +00:00
nicolasconnault
94056d9dbe MDL-19756 Renamed help_icon class to moodle_help_icon 2009-08-10 06:26:50 +00:00
nicolasconnault
229e1258e1 MDL-19756 Muting debugging error for optionsextra param of popup_form (used only by navmenu()) 2009-08-10 03:43:27 +00:00
nicolasconnault
0b139298bb MDL-19756 Improved API of popup_form 2009-08-10 03:33:41 +00:00
nicolasconnault
43a228b363 MDL-19756 Improved API of popup_form and corrected a few problems (submit button when no JS etc.) 2009-08-08 09:30:27 +00:00
nicolasconnault
13fb644a09 MDL-19756 Improved API and output of paging_bar 2009-08-07 00:29:27 +00:00
nicolasconnault
56d72c5e81 MDL-19756 Added shortcut to html_select_option to make checkboxes 2009-08-06 06:58:14 +00:00
nicolasconnault
476f2552e4 MDL-19756 Fixed typo in debugging messages and added default string for close_window_button 2009-08-06 02:55:46 +00:00
nicolasconnault
2f838e179f MDL-19756 Simplified function call to help_button 2009-08-06 01:42:49 +00:00
nicolasconnault
9c7b338533 MDL-19756 Fixed BC of update_module_button() 2009-08-06 00:26:09 +00:00
nicolasconnault
bc2e0484a3 MDL-19756 Suppressing debugging messages about deprecated functions for now 2009-08-06 00:05:39 +00:00
mudrd8mz
e8e84cc077 NOBUG: $OUTPUT->user_picture() does not accept link but courseid 2009-08-05 15:16:31 +00:00
mudrd8mz
cd2f8dbc9f NOBUG: $OUTPUT->user_picture() has no $popup parameter 2009-08-05 15:13:22 +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
7527a2f08a MDL-19756 Deprecated update_mymoodle_icon() and upgraded my/index.php with new output code 2009-08-05 00:00:20 +00:00
nicolasconnault
e1cc88403a MDL-19756 Migrated print_heading_with_help 2009-08-04 15:15:11 +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
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
nicolasconnault
051bf8c7f3 MDL-19756 Changed html_button->label to html_button->text 2009-07-29 01:10:30 +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
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
nicolasconnault
3f9a45dffa MDL-19756 Removed redundant component::add_action_object() function and calls to it 2009-07-28 09:37:14 +00:00
tjhunt
6bcdbe4463 Grrr! Nico. 2009-07-28 04:29:42 +00:00
nicolasconnault
bef1011e3d MDL-19756 Fixing deprecated print_spacer() function 2009-07-28 02:31:30 +00:00
nicolasconnault
8100c169db MDL-19756 Fixing deprecated print_spacer() function 2009-07-28 02:27:04 +00:00
skodak
da65c538cd MDL-19756 fixing incorrect parameter objects 2009-07-27 15:13:35 +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
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
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
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
mudrd8mz
897b5c820b MDL-19731 get_renderer() accepts optional subtype
The initial patch has been reviewed at the issue page. This commit also
fixes template_renderer_factory::get_renderer() and sets up folders for
subtypes there.
2009-07-08 09:37:06 +00:00
tjhunt
a64e25f65d themes: MDL-19077 move deprecated function page_id_and_class to deprecatedlib.php 2009-07-06 05:32:29 +00:00