1113 Commits

Author SHA1 Message Date
skodak
ea87845660 MDL-16089 new general page type needed for framed resources, this is not accessible but unfortunately it works much better than object embedding; it will be also used by phpmyadmin integration 2009-07-14 06:33:34 +00:00
tjhunt
4625ab9a8c themes: MDL-19077 $OUTPUT->header does the main skip destination, layout.php should now. 2009-07-13 04:24:29 +00:00
tjhunt
99a70a7c08 Clarify comment. 2009-07-10 05:42:54 +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
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
sam_marshall
e3568fde9c MDL-19692: Improvement to help icon for completion tickboxes, based on user testing 2009-07-02 09:18:26 +00:00
samhemelryk
ddbeb7a7ec chat ajax MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 06:00:59 +00:00
tjhunt
b70094743a themes: MDL-19077 change how the theme is initialised and CSS is served.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

$THEME is now initialised at the same time as $OUTPUT. Old functions like
theme_setup are deprecated in favour of methods on $PAGE. There is a new
theme_config class in outputlib.php that deals with loading the theme config.php file.

CSS used to be served by themes styles.php files calling a function in weblib.php.
Now it works by each theme's styles.php file doing
$themename = basename(dirname(__FILE__));
require_once(dirname(__FILE__) . '/../../theme/styles.php');
which is less code to be copied into each theme. (Old-style styles.php files still
work thanks to some code in deprecatedlib.php.)

Admin UI for choosing a theme cleaned up.

A couple of theme-specific hard-coded hacks like $THEME->cssconstants and
$THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction
hook. See examples at the end of outputlib.php

Also:
* Fix setting the theme in the URL, which seems to have been broken since 1.9.
* Fix up errors on a few pages caused by the new initialisation order.
* MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE.
* httpsrequired() from moodlelib.php moved to $PAGE->https_required().
* Move has_started() method to the renderer base class.
* Further fixes to display of early errors.
* Remove print_header/footer_old from weblib. I did not mean to commit them before.
2009-07-01 05:54:26 +00:00
samhemelryk
a1b53dcf3f messages MDL-19664 Clean up the messages javascript code
I have cleaned up the message Javascript code, implementing the new PAGE methods
and at the same time implemented the new OUTPUT methods
2009-06-30 08:33:29 +00:00
samhemelryk
9262d2d30f formslib MDL-19626 Fixed broken show/hide advanced button
Updated formslib showadvanced inline JS to use new $PAGE methods
and replaced inline noscript with css handled display
2009-06-29 01:58:11 +00:00
ptrkmkl
583011c1f2 MDL-19547: Added CSS selector for .tag_cloud .s0 to styles_fonts.css 2009-06-26 18:14:43 +00:00
tjhunt
34a2777ccb themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
Also, part of the change from weblib.php functions to $OUTPUT-> methods.

This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.

The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.

A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.

All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
samhemelryk
ba458143e3 mod-lesson MDL-16706 Removed inline scripts and modified timer to take obj args 2009-06-25 06:29:41 +00:00
tjhunt
5af6ec1b2e MDL-19600 remove remaining traces of docstyles.php.
(Not used since Moodle 1.6.)
Also remove the remaining bits of lang/en_utf8/docs.
2009-06-23 04:39:11 +00:00
dongsheng
994d4a3be1 "MDL-18971, fix forum unread post highlighting issue, thanks Eric straw's patch, merged from 1.9" 2009-05-25 09:19:27 +00:00
moodler
cf37931b7f theme/standard MDL-19082 Added a margin to standard theme on redirects page (merged from 1.9) 2009-05-08 08:20:44 +00:00
tjhunt
1d00ec6a6a blocklib: MDL-19010 finally fix the regressions that mean that you could not create a new course. 2009-05-08 03:11:24 +00:00
dongsheng
ccf84b11bc "MDL-18971, fixed .unread class definition, merged from 1.9" 2009-05-07 05:40:22 +00:00
tjhunt
08eab89703 blocklib: MDL-19010 add block and get_blocks methods 2009-05-06 09:14:42 +00:00
tjhunt
66b10689e2 blocklib: MDL-19010 upgrade database tables ready for now blocks system 2009-05-06 09:12:03 +00:00
skodak
38a9fc5566 MDL-18930 fixed behaviour of dropdown menu selector in gradebook - the headings are not selectable again like the rest of moodle dropdowns; merged from MOODLE_19_STABLE 2009-04-22 20:54:06 +00:00
tjhunt
0f74bb01ff filters: MDL-7336 settings page for setting the local enabled/disabled state 2009-04-13 07:12:41 +00:00
nicolasconnault
0000badd05 MDL-17273 Added a back button to the error message and fixed missing handling of "custom" scope. Merged from MOODLE_19_STABLE 2009-04-09 12:29:54 +00:00
rezaie9
88e99d8df9 Improvment in displaying tabs in Safari
Changes applyed by Shamim Rezaie (http://rezaie.info)
2009-04-07 07:25:05 +00:00
rezaie9
9847966074 Fixing:
- alignment of review options headers in quiz module
- inappropriate margin for navbar
- tabs problem (MDL-10719)
Changes applyed by Shamim Rezaie (http://rezaie.info)
2009-04-06 22:50:21 +00:00
fmarier
316914bf6e MDL-17037 ran all GIF images through gifsicle and PNG through optipng 2009-04-05 23:33:00 +00:00
tjhunt
91eb445ca0 switch roles: MDL-18132 Convert allow override page to use the shared code. 2009-03-25 02:17:14 +00:00
tjhunt
3e10e4292d quiz editing: MDL-17454 first attemtp, and MDL-18554
This is a minimal fix for MDL-18554, I have just added a cancel button and made it work.

The more substantial part of this is MDL-17454, trying to make the quiz editing screen behave appropriately when shuffle questions is on. I am sure Olli will have opinions about this and want to change it further. Rought summary:
* When shufflequestions is off, never restrict manual paging, even if questionsperpage is set.
* When shuffle questions is on:
** Always display the quiz with the defined number of questions per page.
** Remove controls to add things except at the end of the quiz.
** Disable most of the order and paging tab, but still allow the question list to be reordered, in case that helps teachers track which questions they have added.
** Still allow questions to be reordered on the edit tab, but when moving the top question on a page up, reorder with the previous question, rather than moving to the previous page.
* Change the status bar, so that the yellow highlight is reserved for alert information. The more informative stuff is now plain, and moved to under the title. To my mind that associates it more closely with the quiz name. Also it moves Total of grades and Maximum grade closer together.
* JavaScript cleaned up. I learn more about YUI every day.
* Some PHP code clean ups that I forgot to commit separately before making substantive changes.
2009-03-17 09:51:34 +00:00
tjhunt
b4a33c4ba6 formslib dates: MDL-16592 Forgot to commit these stylesheet changes. 2009-03-17 07:15:51 +00:00
tjhunt
c34760f93c Whitespace fix. 2009-03-17 07:14:14 +00:00
pilpi
3419d39f8b quiz editing: MDL-18556 In quiz reordering tab, eye fails to group questions/pages correctly
Changed the coloring, margins and paddings slightly to enhance grouping.
2009-03-13 15:47:08 +00:00
tjhunt
8e7cebb0d8 formslib dates: MDL-16592 show a pop-up calendar for picking dates.
Not quite finished. There is a small issue with keyboard focus. See bug.
2009-03-13 09:56:53 +00:00
tjhunt
692e0c3395 MDL-18521 Countdown timer should be visible on the summary page 2009-03-11 07:10:57 +00:00
dongsheng
1b25f19692 "FILE_MANAGER, REPOSITORY/MDL-16597, remove padding in file listing" 2009-03-10 07:31:14 +00:00
mjollnir_
6fe538efdb MDL-18462 theme: consistency in css for incorrect questions (merged from MOODLE_19_STABLE)
CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS:  Tag: MOODLE_19_STABLE
CVS: 	theme/standard/styles_color.css
CVS: ----------------------------------------------------------------------
2009-03-09 09:25:09 +00:00
rezaie9
874807f098 Improvements in:
- alignment of survey questions
- removing horizontal scrollbar from lessons
- online users block
- navigation menu direction
- displaying names in grading report
Changes applyed by Shamim Rezaie (http://rezaie.info)
2009-03-05 21:04:06 +00:00
tjhunt
af52eceef4 qtype admin: MDL-18425 also related to MDL-18355.
Allow question types  to be displayed in order that is better than random or alphabetical. Since we don't know all the qtypes there may be:
1. Store the order in the DB (config plugins).
2. Set up a good default order for the standard types. (Unknown types go at the end by default.)
3. Allow admins to edit the order on the qtype admin screen.
2009-03-03 07:47:32 +00:00
tjhunt
7f92f0ad39 quiz editing: MDL-18355 further refinements to the UI. 2009-03-03 05:13:53 +00:00
nicolasconnault
34f0062766 MDL-18004 Fixed problem of duplicate entries in the drop-down 2009-02-27 15:38:34 +00:00
nicolasconnault
7981d537da MDL-18004 Fixed problem of duplicate entries in the drop-down 2009-02-27 15:25:05 +00:00
tjhunt
944efb3e8b quiz editing: MDL-18376 Since there is no grading for description, we can show more question text. Thanks Olli. 2009-02-26 06:51:35 +00:00
tjhunt
b974f94757 quiz editing: MDL-18355 Try to improve the discoverability of Description again. 2009-02-26 06:33:18 +00:00
tjhunt
7cf3af550c quiz editing: MDL-18355 further refinements to the UI. Thanks Olli. 2009-02-26 05:53:31 +00:00
tjhunt
a781921fd0 question bank: MDL-16412 Allow admins to enable/disable of each question type 2009-02-25 09:31:49 +00:00
tjhunt
8e84d9788c quiz editing: MDL-18173 tidy up wording and add cursor: help. 2009-02-25 07:27:02 +00:00
tjhunt
cd120b2344 quiz editing / question bank: MDL-18355 Convert the add question drop-down to be a button that pops up a YUI dialogue.
That allows us to have a few sentences explanation of each question type, and is also easier to fit into a tight layout.

This commit should also fix MDL-18214 Layout screwed in Safari with long category names.
2009-02-25 07:14:03 +00:00
tjhunt
b5f2275111 upgrade: Make the environment page a bit less rediculously long. I still can't make it fit on one screen. 2009-02-23 02:59:34 +00:00
dongsheng
e47d5adef3 "FILTER/MDL-18230, remove hardcoded style for TeX formulas image, merged from 1.9" 2009-02-16 03:10:01 +00:00
skodak
828b6d1067 MDL-18040 adding warning that the security report processing may take a long time 2009-01-27 16:21:56 +00:00
tjhunt
692d0480e0 question bank: MDL-16345 minor pritification. 2009-01-23 07:29:12 +00:00