Commit graph

266 commits

Author SHA1 Message Date
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
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
samhemelryk
428acddb72 outputlib MDL-19740 Fixed up outputlib focus handling to deal with the three different ways of requesting focus. 2009-07-08 09:01:20 +00:00
samhemelryk
4d49202ffc javascript-UFO MDL-19738 Stopped ufo.js being included in outputlib and included it in each place it was actually being used.
It will no only be loaded when it is being used. If something new comes along they will need to remember to require it.
At the same time cleaned up a few deprecated calls
2009-07-08 04:12:11 +00:00
samhemelryk
e6f7f2b278 lib MDL-19739 Moved call to include dropdown.js out of outputlib and into the same body of code in weblib
that uses it.
This ensures that it is only loaded if it is used, which is only is the browser is opera, or IE
2009-07-08 03:27:27 +00:00
samhemelryk
e11a8328b3 javascript MDL-16673 Removed all removeable uses of CFG->javascript
In doing this I was able to eliminate the need for javascript.php files, now removed.
I will also be filing several subtasks to clean up the linked to JS files in OUTPUT as well
as all instance of the old style of focusing.
2009-07-07 09:09:16 +00:00
moodler
f77fcb5a8f Fixing a notice for Tim 2009-07-07 07:43:36 +00:00
tjhunt
fdeb7fa192 themes: MDL-19077 - more work on the theme_config class.
* Writing lots more PHPdoc comments for all the settings.
* Strip the comments from the standard theme config.php (see below)
* Move finding the layout template from moodle_core_renderer to the theme_config class
* Move loading meta.php files from moodle_core_renderer to the theme_config class
* MDL-19719 Remove support for $THEME->langsheets, and lang/.../styles.php
* MDL-19719 Put the Vietnamese-specific code into the standard theme
* Support for styles.php in all plugin types (at the theme's discretion). (c/f MDL-16438)
* More PHP doc comments for moodle_core_renderer methods.

About stripping comments from config.php: I'm not sure if this
is a good idea, and I may revert this bit. I am hoping that once
http://phpdocs.moodle.org/HEAD/moodlecore/theme_config.html has
been updated, that will be better than copying and pasting these
comments into every theme. I intend to post in the themes forum
to canvas opinions.
2009-07-07 05:05:06 +00:00
tjhunt
4af1e3b060 outputlib: MDL-19077 better reporting when open/close containers don't match. 2009-07-04 13:36:05 +00:00
tjhunt
ae96b517a2 MDL-19696 & MDL-16706 refactor sam's redirect changes, so they can work during initial install. 2009-07-03 09:03:29 +00:00
tjhunt
d436d197d1 MDL-19690 - the last lot of $CFG->pixpath to $OUTPUT->old_icon_url
Including MDL-19693

RIP $CFG->pixpath
2009-07-03 07:55:30 +00:00
tjhunt
c8873c496b MDL-19690 - eliminate the $OUTPUT->initialise_deprecated_cfg_pixpath horrible hack.
Replace $CFG->pixpath with $OUPTUT->old_icon_url(...) instead.
2009-07-02 11:23:47 +00:00