371 Commits

Author SHA1 Message Date
tjhunt
ddedf979b4 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:19:25 +00:00
tjhunt
f2a1963c43 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 11:09:15 +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
skodak
adf8f3f9ad MDL-19668 improvements of _with_advanced admin setting classes finished, quiz settings updated too 2009-06-30 16:55:56 +00:00
skodak
c304d58106 MDL-19668 renaming textbox and select elements 2009-06-30 15:23:33 +00:00
skodak
0c079f1912 MDL-19668 PHPDocs improvements and minor cleanup 2009-06-30 15:19:12 +00:00
tjhunt
48adf91aaf MDL-19077 - fix a $CFG->pixpath problem. 2009-06-29 09:19:53 +00:00
skodak
ff5fe31160 MDL-19580 cleanup of require css and js filepicker code 2009-06-24 22:34:29 +00:00
tjhunt
31a9987770 install: MDL-19610 encapsulate empty($CFG->rolesactive) checks in a during_initial_install() function. 2009-06-24 09:17:56 +00:00
skodak
69429650c4 MDL-19211, MDL-19544 improved editor embedding, media and dragmath enabled only when moodle configuration and current user permissions allow it to work 100% 2009-06-20 11:00:40 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
skodak
13a220cfb8 MDL-19500 improved editor embedding 2009-06-14 21:35:07 +00:00
mjollnir_
cfb3825e0d MDL-19355 - portfolio - fix the formatting in the portfolio manage admin page 2009-06-05 14:20:56 +00:00
skodak
4fe2250a1f MDL-19352 maintenance mode reiplemented 2009-05-31 14:42:29 +00:00
stronk7
76b6c644b2 MDL-19346 get_db_directories() - make it use core get_plugin_types() where all the plugins are defined 2009-05-30 15:33:21 +00:00
skodak
c6d4178203 MDL-19333 new indication of plugin name when editing admin settings 2009-05-29 07:56:52 +00:00
samhemelryk
db26acd41d adminlib.php MDL-19236 added phpdocs and copyrights 2009-05-22 02:05:46 +00:00
skodak
a5747cf828 MDL-19211 text editor plugins configuration 2009-05-17 21:10:06 +00:00
skodak
5ca3c8386f MDL-19184, MDL-19212 - refactoring, cleanup and improvements in text editors support; localization support is not finished, inline docs incomplete, expect more commits soon 2009-05-16 20:53:21 +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
tjhunt
b7b2d0f37d moodle_page: MDL-12212 improve comments and add some work-in-progress warnings 2009-05-06 09:29:05 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
tjhunt
f8b80dbd95 moodle_page: MDL-12212 completely remove the old tag and admin page classes 2009-05-06 09:11:07 +00:00
tjhunt
5ec434a9c2 moodle_page: MDL-12212 ->cm and ->activityrecord fields 2009-05-06 09:03:33 +00:00
tjhunt
830dd6e9cd moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting 2009-05-06 08:59:29 +00:00
tjhunt
ad52c04f4c moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
tjhunt
d7ab887938 moodle_page: MDL-14306 (part of MDL-12212) class name on body with ->category
If ->allowcategorythemes is set, includes all parent categories too
2009-05-06 08:46:48 +00:00
tjhunt
f230ce19ea moodle_page: MDL-12212 implement ->pagetype 2009-05-06 08:34:32 +00:00
tjhunt
c13a5e71cc moodle_page: MDL-12212 start of new moodle_page class
* has course and status fields
* $PAGE->status updated by print_header and footer
* $PAGE->set_course now replace course_setup function
* global $PAGE created in setup.php
* unit tests for functionality so far
* Moodle still seems to work after this commit!
2009-05-06 08:29:22 +00:00
tjhunt
fb073f60ec adminlib: MDL-19038 lazy-load the list of users in admin_setting_users_with_capability 2009-05-01 10:32:12 +00:00
jerome
eef760748c repository MDL-15404 display instance number into the administration 2009-05-01 06:55:10 +00:00
nicolasconnault
653a86489e MDL-18083 Committing gradebook improvements to head 2009-04-16 07:16:44 +00:00
tjhunt
dcdf3b2918 filters: MDL-7336 separate out manage filters and common filter settings 2009-04-13 07:15:50 +00:00
tjhunt
86b455cfc7 filters: MDL-7336 finish implementing delete on the admin page 2009-04-13 07:15:19 +00:00
tjhunt
5b8fa09b00 filters: MDL-7336 Finish admin settings page. 2009-04-13 07:04:07 +00:00
tjhunt
456c8cc738 filters: MDL-7336 redo global settings page to use the new libs
Note: ->stringfilters update not done yet.
2009-04-13 07:03:32 +00:00
jerome
f7631e7397 web service MDL-12886 administration: implement settings for servers (add amf debug option) 2009-03-31 03:29:01 +00:00
tjhunt
b810a4d3c9 filters: MDL-17684 Look for the filter name in filter_myfilter.php first.
This makes filters more plugginable, becuase with this lang file name, get_string will look for the filter name in filter/myfilter/lang/en_utf8/filter_myfilter.php.

To do this, there is a new function filter_get_name in filterlib that contains the logic.

Also, a new function filter_get_all_installed to replace the logic for getting all filters that was duplicated in three places.

filter_get_name no longer does such a nice fall-back if the name is missing, to encourage people to supply the right string. The fallback now looks like '[[filtername]] (filter/tidy)'.
2009-03-30 08:33:13 +00:00
dongsheng
a774767903 "MDL-17966, fixed installation blocker, merged from 1.9" 2009-03-26 13:32:28 +00:00
dongsheng
b2bf016e1b "ADMINLIB/MDL-17966, overwrite write_setting to update settings instead execute sql execute in get_settings, this will not hurt performance, merged from 1.9" 2009-03-26 08:56:08 +00:00
dongsheng
145c285b43 "ADMINLIB/MDL-17966, update after writing settings, fix dml calls" 2009-03-26 02:39:35 +00:00
dongsheng
dbeb0aa7f2 "ADMINLIB/MDL-17966, update after writing settings, merged from 1.9" 2009-03-26 02:34:42 +00:00
dongsheng
ff601bf011 "ADMINLIB/MDL-17966, update after writing settings, merged from 1.9" 2009-03-26 02:25:46 +00:00
skodak
cb5f2411d7 MDL-17966 reverting previous commit, solution proposed in tracker 2009-03-24 11:01:45 +00:00
dongsheng
7719860b60 "ADMINLIB/MDL-17966, display changes saved in admin page, merged from 1.9" 2009-03-11 02:42:28 +00:00
tjhunt
de9c561ba9 admin setting: MDL-18485 Improve the display of defaults for admin_setting_text_with_advanced 2009-03-10 06:43:07 +00:00
dongsheng
8763ab760b "REPOSITORY, UPGRADE/MDL-18354, upgrade/install repository plugins using moodle hook" 2009-03-10 02:01:24 +00:00
jerome
386f206787 web service MDL-12886 fix capability name 2009-02-24 07:54:33 +00:00
jerome
d27c5d3383 web service MDL-17135 add moodle/site:usewebservice capability - display only web service users into administration page 2009-02-16 08:06:14 +00:00
jerome
24350e0625 Web service MDL-17135 add web services administration 2009-02-13 03:08:35 +00:00